1 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3 * debug.c (remote_debug): Add definition.
4 * debug.h (remote_debug): Add declaration.
5 * hostio.c (remote_debug): Remove declaration.
6 * remote-utils.c (struct ui_file): Likewise.
7 (remote_debug): Likewise.
8 * remote-utils.h (remote_debug): Likewise,
9 * server.c (remote_debug): Remove definition.
11 2019-04-10 Kevin Buettner <kevinb@redhat.com>
13 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
14 when using a 64-bit gdbserver.
16 2019-04-09 Tom Tromey <tromey@adacore.com>
18 * linux-low.c (select_event_lwp): Use find_thread_in_random.
20 2019-04-08 Tom Tromey <tom@tromey.com>
22 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
24 (linux_resume_one_lwp): Likewise.
26 2019-04-08 Tom Tromey <tom@tromey.com>
28 * gdbreplay.c: Update.
29 * linux-low.c: Update.
32 2019-04-08 Tom Tromey <tom@tromey.com>
34 * server.c: Use C++ exception handling.
35 * linux-low.c: Use C++ exception handling.
36 * gdbreplay.c: Use C++ exception handling.
38 2019-04-08 Tom Tromey <tom@tromey.com>
40 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
41 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
42 (captured_main, main): Update.
43 * gdbreplay.c (main): Update.
45 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
47 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
48 value in argument pointer, return 1 if the entry is found and 0
49 otherwise. Move comment.
50 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
51 * linux-low.h (linux_get_auxv): Declare.
52 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
54 2019-04-05 Tom Tromey <tromey@adacore.com>
56 * server.c (gdbserver_usage): Use upper-case for metasyntactic
59 2019-03-28 Alan Hayward <alan.hayward@arm.com>
61 * linux-low.c (AT_HWCAP2): Add define if not already included.
63 2019-03-26 Alan Hayward <alan.hayward@arm.com>
65 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
66 (aarch64_arch_setup): Call linux_get_hwcap.
67 * linux-arm-low.c (arm_get_hwcap): Remove function.
68 (arm_read_description): Call linux_get_hwcap.
69 * linux-low.c (linux_get_auxv): New function.
70 (linux_get_hwcap): Likewise.
71 (linux_get_hwcap2): Likewise.
72 * linux-low.h (linux_get_hwcap): New declaration.
73 (linux_get_hwcap2): Likewise.
74 * linux-ppc-low.c (ppc_get_auxv): Remove function.
75 (ppc_arch_setup): Call linux_get_hwcap.
76 * linux-s390-low.c (s390_get_hwcap): Remove function.
77 (s390_arch_setup): Call linux_get_hwcap.
79 2019-03-22 Alan Hayward <alan.hayward@arm.com>
80 Jiong Wang <jiong.wang@arm.com>
82 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
83 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
85 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
87 2019-03-22 Alan Hayward <alan.hayward@arm.com>
88 Jiong Wang <jiong.wang@arm.com>
90 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
91 (aarch64_get_hwcap): New function.
92 (aarch64_arch_setup): Read APIA hwcap.
94 2019-03-22 Alan Hayward <alan.hayward@arm.com>
95 Jiong Wang <jiong.wang@arm.com>
97 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
98 (initialize_low_tracepoint): Likewise.
99 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
100 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
101 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
102 (aarch64_linux_read_description): Likewise.
103 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
105 2019-03-12 John Baldwin <jhb@FreeBSD.org>
107 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
108 i386_create_target_description for 'segments' parameter.
109 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
110 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
111 * win32-i386-low.c (i386_arch_setup): Likewise.
113 2019-03-12 Tom Tromey <tromey@adacore.com>
115 * linux-low.c (iterate_over_lwps): Update.
117 2019-03-06 Tom Tromey <tom@tromey.com>
119 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
120 (captured_main): Use SCOPE_EXIT.
122 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
124 * configure.srv: Use '$enable_unittest' instead of '$development'
125 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
128 2019-02-27 Tom Tromey <tromey@adacore.com>
130 * gdbreplay.c (logchar): Handle \r\n.
132 2019-02-07 Alan Hayward <alan.hayward@arm.com>
134 * linux-low.c (linux_attach): Add process before lwp.
135 * server.c (attach_inferior): Check if already attached.
137 2019-02-07 Tom Tromey <tom@tromey.com>
139 * x86-tdesc.h: Rename include guard.
140 * x86-low.h: Add include guard.
141 * wincecompat.h: Rename include guard.
142 * win32-low.h: Add include guard.
143 * utils.h: Rename include guard.
144 * tracepoint.h: Rename include guard.
145 * tdesc.h: Rename include guard.
146 * target.h: Rename include guard.
147 * server.h: Rename include guard.
148 * remote-utils.h: Rename include guard.
149 * regcache.h: Rename include guard.
150 * nto-low.h: Rename include guard.
151 * notif.h: Add include guard.
152 * mem-break.h: Rename include guard.
153 * lynx-low.h: Add include guard.
154 * linux-x86-tdesc.h: Add include guard.
155 * linux-s390-tdesc.h: Add include guard.
156 * linux-ppc-tdesc-init.h: Add include guard.
157 * linux-low.h: Add include guard.
158 * linux-aarch64-tdesc.h: Add include guard.
159 * linux-aarch32-low.h: Add include guard.
160 * inferiors.h: Rename include guard.
161 * i387-fp.h: Rename include guard.
162 * hostio.h: Rename include guard.
163 * gdbthread.h: Rename include guard.
164 * gdb_proc_service.h: Rename include guard.
165 * event-loop.h: Rename include guard.
166 * dll.h: Rename include guard.
167 * debug.h: Rename include guard.
168 * ax.h: Rename include guard.
170 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
173 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
174 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
176 2019-01-25 Tom Tromey <tom@tromey.com>
178 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
180 2019-01-25 Tom Tromey <tom@tromey.com>
182 * win32-low.c: Fix common/ includes.
183 * win32-i386-low.c: Fix common/ includes.
184 * tracepoint.c: Fix common/ includes.
185 * thread-db.c: Fix common/ includes.
186 * target.h: Fix common/ includes.
187 * symbol.c: Fix common/ includes.
188 * spu-low.c: Fix common/ includes.
189 * server.h: Fix common/ includes.
190 * server.c: Fix common/ includes.
191 * remote-utils.c: Fix common/ includes.
192 * regcache.h: Fix common/ includes.
193 * regcache.c: Fix common/ includes.
194 * nto-x86-low.c: Fix common/ includes.
195 * notif.h: Fix common/ includes.
196 * mem-break.h: Fix common/ includes.
197 * lynx-low.c: Fix common/ includes.
198 * lynx-i386-low.c: Fix common/ includes.
199 * linux-x86-tdesc-selftest.c: Fix common/ includes.
200 * linux-x86-low.c: Fix common/ includes.
201 * linux-low.c: Fix common/ includes.
202 * inferiors.h: Fix common/ includes.
203 * i387-fp.c: Fix common/ includes.
204 * hostio.c: Fix common/ includes.
205 * hostio-errno.c: Fix common/ includes.
206 * gdbthread.h: Fix common/ includes.
207 * gdbreplay.c: Fix common/ includes.
208 * fork-child.c: Fix common/ includes.
209 * event-loop.c: Fix common/ includes.
211 (enum gdb_agent_op): Fix common/ includes.
213 2019-01-21 Tom Tromey <tom@tromey.com>
215 * tracepoint.c: Fix includes.
216 * remote-utils.c: Fix includes.
217 * linux-x86-low.c: Fix includes.
219 2019-01-01 Joel Brobecker <brobecker@adacore.com>
221 * gdbreplay.c (gdbreplay_version): Update copyright year in
223 * server.c (gdbserver_version): Likewise.
225 2018-12-05 Alan Hayward <alan.hayward@arm.com>
227 * linux-low.c (add_lwp): Switch ordering.
229 2018-11-29 Tom Tromey <tom@tromey.com>
231 * win32-low.c (win32_join): Take pid, not process.
232 * target.h (struct target_ops) <join>: Change argument type.
233 (join_inferior): Change argument name.
234 * spu-low.c (spu_join): Take pid, not process.
235 * server.c (handle_detach): Preserve pid before destroying
237 * lynx-low.c (lynx_join): Take pid, not process.
238 * linux-low.c (linux_join): Take pid, not process.
240 2018-11-23 Alan Hayward <alan.hayward@arm.com>
242 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
243 (aarch64_cannot_fetch_register): Likewise.
244 (struct linux_target_ops): Update references.
246 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
248 * linux-ppc-low.c: Include nat/linux-ptrace.h.
250 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
252 * configure.srv (ipa_ppc_linux_regobj): Add
253 powerpc-isa207-htm-vsx32l-ipa.o and
254 powerpc-isa207-htm-vsx64l-ipa.o.
255 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
256 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
257 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
258 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
259 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
260 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
261 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
262 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
263 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
264 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
265 (init_registers_powerpc_isa207_htm_vsx32l)
266 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
267 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
268 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
269 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
270 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
271 (ppc_store_tm_ctarregset): New functions.
272 (ppc_regsets): Add entries for HTM regsets.
273 (ppc_arch_setup): Set htm in features struct when needed. Set
274 sizes for the HTM regsets.
275 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
276 (initialize_low_arch): Call
277 init_registers_powerpc_isa207_htm_vsx32l and
278 init_registers_powerpc_isa207_htm_vsx64l.
279 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
280 PPC_TDESC_ISA207_HTM_VSX.
281 (initialize_low_tracepoint): Call
282 init_registers_powerpc_isa207_htm_vsx32l and
283 init_registers_powerpc_isa207_htm_vsx64l.
285 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
287 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
288 rs6000/power-linux-pmu.xml to srv_xmlfiles.
289 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
290 (ppc_store_pmuregset): New functions.
291 (ppc_regsets): Add entries for ebb and pmu regsets.
292 (ppc_arch_setup): Set isa207 in features struct if the ebb and
293 pmu regsets are available. Set sizes for these regsets.
295 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
297 * configure.srv (ipa_ppc_linux_regobj): Add
298 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
299 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
300 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
301 rs6000/powerpc-isa207-vsx32l.xml, and
302 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
303 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
304 <PPC_TDESC_ISA207_VSX>: New enum value.
305 (init_registers_powerpc_isa207_vsx32l): Declare.
306 (init_registers_powerpc_isa207_vsx64l): Declare.
307 * linux-ppc-low.c (ppc_fill_tarregset): New function.
308 (ppc_store_tarregset): New function.
309 (ppc_regsets): Add entry for the TAR regset.
310 (ppc_arch_setup): Set isa207 in features struct when needed. Set
311 size for the TAR regsets.
312 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
313 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
314 and init_registers_powerpc_isa207_vsx64l.
315 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
316 (initialize_low_tracepoint): Call
317 init_registers_powerpc_isa207_vsx32l and
318 init_registers_powerpc_isa207_vsx64l.
320 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
321 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
323 * configure.srv (ipa_ppc_linux_regobj): Add
324 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
325 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
326 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
327 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
328 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
329 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
330 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
331 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
332 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
333 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
334 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
335 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
336 (ppc_hwcap): Add comment.
337 (ppc_hwcap2): New global.
338 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
339 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
340 (ppc_regsets): Add entries for the DSCR and PPR regsets.
341 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
342 when needed. Set sizes for the the DSCR and PPR regsets.
343 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
344 (initialize_low_arch): Call
345 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
346 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
347 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
348 PPC_TDESC_ISA205_PPR_DSCR_VSX.
349 (initialize_low_tracepoint): Call
350 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
351 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
353 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
355 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
357 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
358 Simon Marchi <simark@simark.ca>
360 * acinclude.m4: Include "../selftest.m4".
361 * configure: Regenerate.
362 * configure.ac: Use "GDB_AC_SELFTEST".
363 * configure.srv: Use "$enable_unittests" instead of
364 "$development" when checking whether unit tests have been
366 * server.c (captured_main): Update message informing that
367 selftests have been disabled.
369 2018-10-04 Tom Tromey <tom@tromey.com>
371 * configure: Rebuild.
373 2018-10-04 Tom Tromey <tom@tromey.com>
375 * server.c (handle_status): Rename inner "thread".
376 (process_serial_event): Declare "res" in 'm' case.
377 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
378 (iterate_over_lwps): Rename inner "thread".
379 (linux_qxfer_libraries_svr4): Rename inner "len".
380 * gdbthread.h (find_thread_in_random): Rename inner "thread".
382 2018-10-01 Gary Benson <gbenson@redhat.com>
384 * gdb_proc_service.h: Moved common code to
385 common/gdb_proc_service.h.
387 2018-10-01 Gary Benson <gbenson@redhat.com>
389 * gdb_proc_service.h: Synchronize comments and whitespace with
390 GDB's version of this file.
392 2018-09-25 Tom Tromey <tom@tromey.com>
394 * configure: Rebuild.
395 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
397 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
399 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
400 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
401 ($(IPA_LIB)): Sort IPA_OBJS.
403 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
405 * Makefile.in: Remove references to $(ADD_DEPS).
407 2018-09-16 Tom Tromey <tom@tromey.com>
409 * remote-utils.c (remote_open): Use GNU style for metasyntactic
411 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
414 2018-09-05 Tom Tromey <tom@tromey.com>
416 * configure: Rebuild.
418 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
421 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
423 2018-08-27 Tom Tromey <tom@tromey.com>
426 * configure: Rebuild.
428 2018-08-27 Tom Tromey <tom@tromey.com>
430 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
431 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
432 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
433 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
434 (s390x_emit_stack_adjust): Add casts to unsigned char.
436 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
440 * server.h (struct client_state) <disable_randomization>:
443 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
445 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
447 (mips_supply_ptrace_register): Likewise.
449 2018-07-22 Tom Tromey <tom@tromey.com>
451 * configure: Rebuild.
453 2018-07-22 Tom Tromey <tom@tromey.com>
455 * win32-low.c (win32_create_inferior): Remove unused variables.
456 * gdbreplay.c (remote_open): Remove unused variable.
457 * remote-utils.c (remote_prepare): Remove unused variable.
458 * x86-tdesc.h (X86_TDESC_H): Define.
459 (amd64_expedite_regs): Define conditionally.
460 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
461 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
462 * remote-utils.c (readchar): Remove unused variable.
464 2018-07-13 Pedro Alves <palves@redhat.com>
466 * linux-low.c (linux_kill): Change parameter to process_info
467 pointer instead of pid. Adjust.
468 * lynx-low.c (lynx_kill): Likewise.
469 * nto-low.c (nto_kill): Likewise.
470 * spu-low.c (spu_kill): Likewise.
471 * win32-low.c (win32_kill): Likewise.
472 * server.c (handle_v_kill, kill_inferior_callback)
473 (detach_or_kill_for_exit): Adjust.
474 * target.c (kill_inferior): Change parameter to process_info
475 pointer instead of pid. Adjust.
476 * target.h (struct target_ops) <kill>: Change parameter to
477 process_info pointer instead of pid. Adjust all implementations
479 (kill_inferior): Likewise.
481 2018-07-13 Pedro Alves <palves@redhat.com>
483 * linux-low.c (linux_detach, linux_join): Change parameter to
484 process_info pointer instead of pid. Adjust.
485 * lynx-low.c (lynx_detach, lynx_join): Likewise.
486 * nto-low.c (nto_detach): Likewise.
487 * spu-low.c (spu_detach, spu_join): Likewise.
488 * win32-low.c (win32_detach, win32_join): Likewise.
489 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
490 * target.h (struct target_ops) <detach, join>: Change parameter to
491 process_info pointer instead of pid. Adjust all implementations
493 (detach_inferior, join_inferior): Rename 'pid' parameter to
496 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
497 Jan Kratochvil <jan.kratochvil@redhat.com>
498 Paul Fertser <fercerpav@gmail.com>
499 Tsutomu Seki <sekiriki@gmail.com>
501 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
502 (OBS): Add 'common/netstuff.o'.
503 (GDBREPLAY_OBS): Likewise.
504 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
505 (remote_open): Implement support for IPv6
507 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
509 (handle_accept_event): Accept connections from IPv6 sources.
510 (remote_prepare): Handle IPv6-style hostnames; implement
511 support for IPv6 connections.
512 (remote_open): Implement support for printing connections from
515 2018-07-11 Pedro Alves <palves@redhat.com>
518 * mem-break.c (any_persistent_commands): Add process_info
519 parameter and use it instead of relying on the current process.
520 Change return type to bool.
521 * mem-break.h (any_persistent_commands): Add process_info
522 parameter and change return type to bool.
523 * server.c (handle_detach): Remove require_running_or_return call.
524 Look up the process_info for the process we're about to detach.
525 If not found, return back error to GDB. Adjust
526 any_persistent_commands call to pass down a process pointer.
528 2018-07-11 Pedro Alves <palves@redhat.com>
530 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
531 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
532 instead of collect_register_by_name.
533 * regcache.c (regcache_raw_get_unsigned_by_name): New.
534 * regcache.h (regcache_raw_get_unsigned_by_name): New.
536 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
537 Pedro Alves <palves@redhat.com>
539 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
541 2018-07-03 Tom Tromey <tom@tromey.com>
543 * linux-low.c: Update.
544 * lynx-low.c: Update.
545 * mem-break.c: Update.
547 * remote-utils.c: Update.
551 * win32-low.c: Update.
553 2018-07-03 Tom Tromey <tom@tromey.com>
557 2018-07-03 Tom Tromey <tom@tromey.com>
559 * linux-low.c: Update.
561 2018-07-03 Tom Tromey <tom@tromey.com>
565 2018-07-03 Tom Tromey <tom@tromey.com>
567 * linux-low.c: Update.
568 * linux-mips-low.c: Update.
569 * lynx-low.c: Update.
571 * remote-utils.c: Update.
575 * thread-db.c: Update.
577 2018-07-03 Tom Tromey <tom@tromey.com>
579 * linux-low.c: Update.
580 * linux-mips-low.c: Update.
581 * lynx-low.c: Update.
582 * mem-break.c: Update.
584 * remote-utils.c: Update.
588 * tracepoint.c: Update.
590 2018-07-03 Tom Tromey <tom@tromey.com>
592 * linux-low.c: Update.
593 * linux-ppc-low.c: Update.
594 * linux-x86-low.c: Update.
595 * proc-service.c: Update.
598 * thread-db.c: Update.
599 * win32-low.c: Update.
601 2018-07-03 Tom Tromey <tom@tromey.com>
603 * linux-low.c: Update.
604 * lynx-low.c: Update.
606 * remote-utils.c: Update.
608 * thread-db.c: Update.
609 * win32-low.c: Update.
611 2018-06-29 Joel Brobecker <brobecker@adacore.com>
613 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
614 parameter in call to 'amd64_create_target_description'.
616 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
618 * x86-tdesc.h: Remove executable permission flag.
620 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
622 * configure.ac: Remove AC_PREREQ, add missing quoting.
623 * configure: Re-generate.
624 * config.in: Re-generate.
625 * aclocal.m4: Re-generate.
627 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
629 * tracepoint.h (current_traceframe): Remove declaration.
631 2018-06-18 Alan Hayward <alan.hayward@arm.com>
633 * linux-aarch64-low.c (is_sve_tdesc): New function.
634 (aarch64_sve_regs_copy_to_regcache): Likewise.
635 (aarch64_sve_regs_copy_from_regcache): Likewise.
636 (aarch64_regs_info): Add SVE checks.
637 (initialize_low_arch): Initialize SVE.
639 2018-06-18 Alan Hayward <alan.hayward@arm.com>
641 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
643 2018-06-11 Alan Hayward <alan.hayward@arm.com>
645 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
646 (initialize_low_tracepoint): Likewise
647 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
648 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
650 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
652 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
654 2018-06-11 Alan Hayward <alan.hayward@arm.com>
656 * server.h (PBUFSIZ): Increase size
658 2018-06-11 Alan Hayward <alan.hayward@arm.com>
660 * regcache.c (regcache::raw_compare): New function.
661 * regcache.h (regcache::raw_compare): New declaration.
663 2018-06-11 Alan Hayward <alan.hayward@arm.com>
665 * regcache.c (new_register_cache): Use new.
666 (free_register_cache): Use delete.
667 (register_data): Use const.
668 (supply_register): Move body inside regcache.
669 (regcache::raw_supply): New override function.
670 (collect_register): Move body inside regcache.
671 (regcache::raw_collect): New override function.
672 (regcache::get_register_status): New override function.
673 * regcache.h (struct regcache): Inherit from reg_buffer_common.
675 2018-06-09 Tom Tromey <tom@tromey.com>
677 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
679 (event_queue): Use std::queue.
680 (gdb_event_xfree): Remove.
681 (initialize_event_loop, process_event, wait_for_event): Update.
683 2018-06-08 Stan Cox <scox@redhat.com>
685 * win32-low.c (win32_create_inferior): last_ptid and last_status
686 moved to client_state.
688 2018-06-08 Pedro Alves <palves@redhat.com>
690 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
691 common/common-exceptions.o, common/common-utils.o,
692 common/errors.o, common/print-utils.o and utils.o.
693 * gdbreplay.c: Include "common-defs.h" instead of the two
694 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
695 string.h or alloca.h.
696 (perror_with_name): Delete.
697 (remote_open): Use xstrdup instead of strdup.
698 (main): Rename to ...
699 (captured_main): ... this.
702 2018-06-08 Tom Tromey <tom@tromey.com>
704 * linux-low.c (linux_low_read_btrace): Update.
706 2018-06-04 Stan Cox <scox@redhat.com>
708 * server.h (struct client_state): New.
709 * server.c (cont_thread, general_thread, multi_process)
710 (report_fork_events, report_vfork_events, report_exec_events)
711 (report_thread_events, swbreak_feature, hwbreak_feature)
712 (vCont_supported, disable_randomization, pass_signals)
713 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
714 Moved to client_state.
715 * remote-utils.c (remote_debug, noack_mode)
716 (transport_is_reliable): Moved to client_state.
717 * tracepoint.c (current_traceframe): Moved to client_state.
720 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
721 linux-low.c, remote-utils.h, target.c: Use client_state.
723 2018-05-31 Alan Hayward <alan.hayward@arm.com>
725 * configure.srv: Add new c/h file.
727 2018-05-31 Alan Hayward <alan.hayward@arm.com>
729 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
732 2018-05-25 Maciej W. Rozycki <macro@mips.com>
734 * gdb.arch/mips-fpregset-core.exp: New test.
735 * gdb.arch/mips-fpregset-core.c: New test source.
737 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
740 * hostio.c (require_int): Do not report overflow for integers
741 between 0xfffffff and 0x7fffffff.
743 2018-05-22 Maciej W. Rozycki <macro@mips.com>
745 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
746 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
747 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
749 (the_low_target): Wire them.
751 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
753 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
754 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
755 mode. Call collect_register_by_name with vscr using
756 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
757 (ppc_store_vrregset): Add and set vscr_offset variable as in
758 ppc_fill_vrregset. Call supply_register_by_name with vscr using
761 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
763 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
764 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
765 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
767 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
769 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
770 (ppc_store_vsxregset): Likewise.
771 (ppc_fill_vrregset): Likewise.
772 (ppc_store_vrregset): Likewise.
773 (ppc_fill_evrregset): Likewise.
774 (ppc_store_evrregset): Likewise.
775 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
776 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
779 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
781 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
782 wordsize of the inferior. Call ppc_linux_target_wordsize.
784 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
786 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
787 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
788 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
789 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
790 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
791 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
792 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
793 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
794 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
795 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
796 (tdesc_powerpc_e500l): Remove.
797 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
798 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
799 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
800 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
802 (ppc_arch_setup): Remove target description matching code. Fill a
803 ppc_linux_features struct and call ppc_linux_match_description
806 2018-05-22 Maciej W. Rozycki <macro@mips.com>
808 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
809 width of the requested register exceeds the width of the
811 (mips_cannot_store_register): Likewise.
813 2018-05-21 Maciej W. Rozycki <macro@mips.com>
815 * linux-mips-low.c (mips_fetch_register): New function. Update
817 (mips_store_gregset): Supply 0 rather than $restart for $zero.
818 (the_low_target): Wire `mips_fetch_register'.
820 2018-05-10 Joel Brobecker <brobecker@adacore.com>
822 * lynx-i386-low.c (LYNXOS_178): New macro.
823 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
824 the layout on LynxOS-178.
825 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
826 handle floating point registers that are not supported by
829 2018-05-10 Tom Tromey <tom@tromey.com>
831 * configure: Rebuild.
833 2018-05-10 Joel Brobecker <brobecker@adacore.com>
836 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
837 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
838 Use it to set the expedite_regs field in the given tdesc.
839 * x86-tdesc.h: New file.
840 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
841 Adjust following the addition of the new expedite_regs parameter
843 * linux-tic6x-low.c (tic6x_read_description): Likewise.
844 * linux-x86-tdesc.c: #include "x86-tdesc.h".
845 (i386_linux_read_description, amd64_linux_read_description):
846 Adjust following the addition of the new expedite_regs parameter
848 * lynx-i386-low.c: #include "x86-tdesc.h".
849 (lynx_i386_arch_setup): Adjust following the addition of the new
850 expedite_regs parameter to init_target_desc.
851 * nto-x86-low.c: #include "x86-tdesc.h".
852 (nto_x86_arch_setup): Adjust following the addition of the new
853 expedite_regs parameter to init_target_desc.
854 * win32-i386-low.c: #include "x86-tdesc.h".
855 (i386_arch_setup): Adjust following the addition of the new
856 expedite_regs parameter to init_target_desc.
858 2018-05-10 Joel Brobecker <brobecker@adacore.com>
861 * win32-low.c (win32_create_inferior): Add call to my_wait
862 setting last_status global.
864 2018-05-10 Joel Brobecker <brobecker@adacore.com>
867 * win32-low.c (create_process): Only call gdb_tilde_expand if
868 inferior_cwd is not NULL.
870 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
872 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
873 registers to the cache if their values have changed.
874 (i387_xsave_to_cache): Provide default values for x87 control
875 registers when these features are available, but disabled.
876 * regcache.c (supply_register_by_name_zeroed): New function.
877 * regcache.h (supply_register_by_name_zeroed): Declare new
880 2018-05-07 Tom Tromey <tom@tromey.com>
882 * configure: Rebuild.
884 2018-05-04 Tom Tromey <tom@tromey.com>
886 * configure: Rebuild.
888 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
889 Pedro Alves <palves@redhat.com>
891 * linux-aarch64-low.c (aarch64_stopped_data_address):
894 2018-04-27 Tom Tromey <tom@tromey.com>
896 * configure: Rebuild.
898 2018-04-23 Tom Tromey <tom@tromey.com>
900 * configure: Rebuild.
902 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
904 * Makefile.in (depcomp): Add "..".
905 (all_deps_files): New and use it.
907 2018-04-18 Alan Hayward <alan.hayward@arm.com>
909 * configure.srv (aarch64*-*-linux*): Don't include xml.
910 (i[34567]86-*-cygwin*): Likewise.
911 (i[34567]86-*-linux*): Likewise.
912 (i[34567]86-*-lynxos*): Likewise.
913 (i[34567]86-*-mingw32ce*): Likewise.
914 (i[34567]86-*-mingw*): Likewise.
915 (i[34567]86-*-nto*): Likewise.
916 (tic6x-*-uclinux): Likewise.
917 (x86_64-*-linux*): Likewise.
918 (x86_64-*-mingw*): Likewise.
919 (x86_64-*-cygwin*): Likewise.
921 2018-04-18 Alan Hayward <alan.hayward@arm.com>
923 * tdesc.c: Remove xml parameter.
925 2018-04-18 Alan Hayward <alan.hayward@arm.com>
927 * server.c (get_features_xml): Remove cast.
928 * tdesc.c (void target_desc::accept): Fill in function.
929 (tdesc_get_features_xml): Remove old xml creation.
930 (print_xml_feature::visit_pre): Add xml vistor.
931 * tdesc.h (struct target_desc): Make xmltarget mutable.
932 (tdesc_get_features_xml): Remove declaration.
934 2018-04-18 Alan Hayward <alan.hayward@arm.com>
936 * tdesc.c (tdesc_architecture_name): Add new function.
937 (tdesc_osabi_name): Likewise.
938 (tdesc_get_features_xml): Use new functions.
940 2018-04-18 Alan Hayward <alan.hayward@arm.com>
942 * tdesc.c (tdesc_create_flags): Remove.
943 (tdesc_add_flag): Likewise.
944 (tdesc_named_type): Likewise.
945 (tdesc_create_union): Likewise.
946 (tdesc_create_struct): Likewise.
947 (tdesc_create_vector): Likewise.
948 (tdesc_add_bitfield): Likewise.
949 (tdesc_add_field): Likewise.
950 (tdesc_set_struct_size): Likewise.
952 2018-04-18 Alan Hayward <alan.hayward@arm.com>
954 * tdesc.c (~target_desc): Remove implictly deleted items.
955 (init_target_desc): Iterate all features.
956 (tdesc_get_features_xml): Use vector.
957 (tdesc_create_feature): Create feature.
958 * tdesc.h (tdesc_feature) Remove
959 (target_desc): Add features.
961 2018-04-18 Alan Hayward <alan.hayward@arm.com>
963 * Makefile.in: Add common/tdesc.c
964 * tdesc.c (init_target_desc): init all reg_defs from register
966 (tdesc_create_reg): Create tdesc_reg.
967 * tdesc.h (tdesc_feature): Add register vector.
969 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
971 * tdesc.h (struct target_desc) <features>: Change type to
972 std::vector<std::string>.
973 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
975 (tdesc_get_features_xml): Likewise.
976 (tdesc_create_feature): Likewise.
978 2018-03-26 Alan Hayward <alan.hayward@arm.com>
980 * regcache.c (find_register_by_number): Return a ref.
981 (find_regno): Use references.
982 (register_size): Likewise.
983 (register_data): Likewise.
984 * tdesc.c (target_desc::~target_desc): Remove free calls.
985 (target_desc::operator==): Use std::vector compare.
986 (init_target_desc): Use reference.
987 (tdesc_create_reg): Use reg constructors.
988 * tdesc.h (struct target_desc): Replace pointer with object.
990 2018-03-23 Alan Hayward <alan.hayward@arm.com>
992 * regcache.c (find_register_by_number): Make static.
993 (find_regno): Use find_register_by_number
994 * regcache.h (struct reg): Remove declaration.
996 2018-03-23 Alan Hayward <alan.hayward@arm.com>
998 * tdesc.c (target_desc::~target_desc): Move to here.
999 (target_desc::operator==): Likewise.
1000 * tdesc.h (target_desc::~target_desc): Move from here.
1001 (target_desc::operator==): Likewise.
1003 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
1005 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
1007 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1009 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
1011 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
1012 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
1013 and init_registers_s390_gs_linux64.
1015 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1017 * linux-s390-low.c (s390_fill_gs): Remove function.
1018 (s390_fill_gsbc): Remove function.
1019 (s390_regsets): Set fill functions for the guarded storage regsets
1022 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1024 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
1025 the word size. Add comment.
1026 (s390_get_wordsize): New function.
1027 (s390_arch_setup): No longer select a temporary tdesc to fetch the
1028 pswm with it. Instead, use s390_get_wordsize to determine the
1029 word size first and derive the correct tdesc from that directly.
1031 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
1033 * Makefile.in: Include silent-rules.mk.
1034 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
1035 (COMPILE): Add ECHO_CXX.
1036 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
1037 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
1038 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
1039 (version-generated.c): Add ECHO_GEN.
1040 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
1041 (IPAGENT_COMPILE): Add ECHO_CXX.
1042 (%-generated.c): Add ECHO_REGDAT.
1044 2018-03-14 Tom Tromey <tom@tromey.com>
1047 * ax.c (ax_printf): Special case for NULL.
1049 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1051 * linux-low.c (linux_qxfer_libraries_svr4): Use
1052 xml_escape_text_append.
1054 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1056 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
1058 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1060 * server.c (handle_general_set): Remove unnecessary xstrdup.
1062 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1064 * server.c (parse_debug_format_options): Adjust to
1065 delim_string_to_char_ptr_vec changes.
1066 * thread-db.c (thread_db_load_search): Adjust to
1067 dirnames_to_char_ptr_vec changes.
1069 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
1071 * target.h (target_enable_btrace, target_disable_btrace)
1072 (target_read_btrace, target_read_btrace_conf): Turn macro into
1073 inline function. Throw error if target method is not defined.
1074 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
1075 check for btrace target method. Be prepared to handle exceptions
1076 from btrace target methods.
1078 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1080 * server.c (captured_main): Change order of error message printed
1081 when the current working directory cannot be found.
1083 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1085 * server.c: Include "filenames.h" and "pathstuff.h".
1086 (program_name): Delete variable.
1087 (program_path): New anonymous class.
1088 (get_exec_wrapper): Use "program_path" instead of
1090 (handle_v_run): Likewise.
1091 (captured_main): Likewise.
1092 (process_serial_event): Likewise.
1094 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1096 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
1097 (OBJS): Add "pathstuff.o".
1098 * server.c (current_directory): New global variable.
1099 (captured_main): Initialize "current_directory".
1101 2018-02-26 Alan Hayward <alan.hayward@arm.com>
1103 * tdesc.c: Use common/tdesc.h.
1104 * tdesc.h: Likewise.
1106 2018-02-20 Alan Hayward <alan.hayward@arm.com>
1107 Simon Marchi <simon.marchi@ericsson.com>
1109 * Makefile.in: Switch order of make rules.
1111 2018-02-19 Alan Hayward <alan.hayward@arm.com>
1113 * Makefile.in: Add common directory in build.
1114 * configure.ac: Add common reference.
1115 * configure: Regenerate.
1117 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1119 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
1120 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
1121 * spu-low.c (spu_target_ops): Likewise.
1122 * win32-low.c (win32_target_ops): Likewise.
1123 * server.c (supported_btrace_packets): Report packets unconditionally.
1124 * target.h (target_ops) <supports_btrace>: Remove.
1125 (target_supports_btrace): Remove.
1127 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1129 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
1130 (handle_btrace_disable): Change return type to void. Use exceptions
1132 (handle_btrace_general_set): Catch exception and copy message to
1135 2018-02-08 Tom Tromey <tom@tromey.com>
1137 * linux-low.c (install_software_single_step_breakpoints): Use
1138 make_scoped_restore.
1139 * inferiors.c (make_cleanup_restore_current_thread): Remove.
1140 (do_restore_current_thread_cleanup): Remove.
1141 * gdbthread.h (make_cleanup_restore_current_thread): Don't
1144 2018-02-08 Tom Tromey <tom@tromey.com>
1146 * mem-break.c (set_raw_breakpoint_at): Use
1147 gdb::unique_xmalloc_ptr.
1149 2018-01-30 Pedro Alves <palves@redhat.com>
1152 * target.c (target_terminal::terminal_state): Rename to ...
1153 (target_terminal::m_terminal_state): ... this.
1155 2018-01-19 James Clarke <jrtc27@jrtc27.com>
1157 * linux-low.c (handle_extended_wait): Surround call to
1158 thread_db_notice_clone with #ifdef USE_THREAD_DB.
1160 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
1162 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
1163 linux_ptrace_attach_fail_reason_string now returning an
1165 (linux_attach): Likewise.
1166 * thread-db.c (attach_thread): Likewise.
1168 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
1171 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
1172 checking for fs_base/gs_base fields in struct user_regs_struct.
1173 * configure: Regenerate.
1175 2018-01-16 Yao Qi <yao.qi@linaro.org>
1178 * linux-low.c (fetch_register): Call supply_register instead of
1181 2018-01-08 Yao Qi <yao.qi@linaro.org>
1182 Simon Marchi <simon.marchi@ericsson.com>
1184 * Makefile.in (OBS): Remove selftest.o.
1185 * configure.ac: Set srv_selftest_objs if $development is true.
1186 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
1187 * configure: Re-generated.
1188 * server.c (captured_main): Wrap variable selftest_filter with
1191 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1193 * server.c (parse_debug_format_options): Return std::string.
1194 (handle_monitor_command, captured_main): Adjust.
1196 2018-01-05 Pedro Alves <palves@redhat.com>
1199 * server.c (captured_main): Pass quiet=false to
1200 save_original_signals_state.
1202 2018-01-01 Joel Brobecker <brobecker@adacore.com>
1204 * gdbreplay.c (gdbreplay_version): Update copyright year in
1206 * server.c (gdbserver_version): Likewise.
1208 2017-12-08 Tom Tromey <tom@tromey.com>
1210 * ax.c (ax_printf): Update.
1212 2017-12-07 Yao Qi <yao.qi@linaro.org>
1214 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
1215 aarch64_linux_read_description.
1216 * linux-amd64-ipa.c (idx2mask): New array.
1217 (get_ipa_tdesc): Move idx2mask out.
1218 (initialize_low_tracepoint): Initialize target descriptions.
1219 * linux-i386-ipa.c (idx2mask): New array.
1220 (get_ipa_tdesc): Move idx2mask out.
1221 (initialize_low_tracepoint): Initialize target descriptions.
1223 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
1225 * tdesc.c (struct tdesc_type): Change return type.
1226 (tdesc_add_flag): Change parameter type.
1227 (tdesc_add_bitfield): Likewise.
1228 (tdesc_add_field): Likewise.
1229 (tdesc_set_struct_size): Likewise.
1231 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
1233 * regcache.c (registers_to_string): Remove unused variable.
1235 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1237 * inferiors.c (for_each_inferior_with_data): Remove.
1238 * inferiors.h (for_each_inferior_with_data): Remove.
1239 * server.c (handle_qxfer_threads_worker): Change parameter type.
1240 (handle_qxfer_threads_proper): Use for_each_thread.
1242 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1244 * inferiors.c (for_each_inferior): Remove.
1245 (clear_inferiors): Use for_each_thread.
1246 * inferiors.h (for_each_inferior): Remove.
1247 * linux-low.c (linux_wait_for_event_filtered): Use
1249 (linux_stabilize_threads): Likewise.
1250 * regcache.c (regcache_release): Likewise.
1251 * server.c (gdb_wants_all_threads_stopped): Likewise.
1252 (clear_pending_status_callback): Remove.
1253 (handle_status): Use for_each_thread.
1254 (captured_main): Likewise.
1255 * win32-low.c (child_init_thread_list): Likewise.
1256 (win32_clear_inferiors): Likewise.
1257 (fake_breakpoint_event): Likewise.
1259 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1261 * inferiors.h (find_inferior): Remove.
1262 * inferiors.c (find_inferior): Remove.
1264 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1266 * linux-low.c (resume_status_pending_p): Update comment.
1267 (need_step_over_p): Update comment.
1269 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1271 * linux-low.c (proceed_one_lwp): Return void, change parameter
1273 (unsuspend_and_proceed_one_lwp): Likewise.
1274 (proceed_all_lwps): Use for_each_thread.
1275 (unstop_all_lwps): Likewise.
1277 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1279 * linux-low.c (linux_resume_one_thread): Return void, take
1281 (linux_resume): Use for_each_thread.
1283 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1285 * linux-low.c (send_sigstop_callback): Return void, change
1286 parameter type. Rename to...
1287 (send_sigstop): ... this.
1288 (suspend_and_send_sigstop_callback): Return void, change parameter
1290 (suspend_and_send_sigstop): ... this.
1291 (stop_all_lwps): Use for_each_thread.
1293 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1295 * linux-low.c (lwp_running): Return bool, remove unused
1297 (linux_stabilize_threads): Use find_thread.
1299 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1301 * linux-low.c (select_singlestep_lwp_callback): Remove.
1302 (count_events_callback): Remove.
1303 (select_event_lwp_callback): Remove.
1304 (select_event_lwp): Use find_thread/for_each_thread.
1306 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1308 * linux-low.c (not_stopped_callback): Return bool, take filter
1310 (linux_wait_for_event_filtered): Use find_thread.
1311 (linux_wait_1): Likewise.
1313 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1315 * linux-low.c (same_lwp): Remove.
1316 (find_lwp_pid): Use find_thread.
1318 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1320 * linux-low.c (delete_lwp_callback): Remove.
1321 (linux_mourn): Use for_each_thread.
1323 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1325 * linux-low.c (linux_detach_lwp_callback): Return void, remove
1326 args parameter, don't check for pid.
1327 (linux_detach): Use for_each_thread.
1329 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1331 * linux-low.c (struct counter): Remove.
1332 (second_thread_of_pid_p): Remove.
1333 (last_thread_of_process_p): Use find_thread.
1335 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1337 * inferiors.c (find_inferior_in_random): Remove.
1338 * inferiors.h (find_inferior_in_random): Remove.
1339 * linux-low.c (status_pending_p_callback): Return bool, accept
1340 parameter ptid directly.
1341 (linux_wait_for_event_filtered): Use find_thread_in_random.
1342 (linux_wait_1): Likewise.
1344 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1346 * inferiors.c (find_inferior_id): Remove.
1347 (find_thread_ptid): Move implemention from find_inferior_id to
1349 * inferiors.h (find_inferior_id): Remove.
1350 * server.c (handle_status): Use find_thread_ptid.
1351 (process_serial_event): Likewise.
1352 * thread-db.c (find_one_thread): Likewise.
1353 (thread_db_thread_handle): Likewise.
1354 * win32-low.c (thread_rec): Likewise.
1355 (child_delete_thread): Likewise.
1356 (win32_thread_alive): Likewise.
1357 (get_child_debug_event): Likewise.
1359 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1361 * linux-mips-low.c (update_watch_registers_callback): Return
1362 void, remove pid_p parameter, don't check for pid.
1363 (mips_insert_point, mips_remove_point): Use for_each_thread.
1365 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1367 * lynx.low (lynx_delete_thread_callback): Remove.
1368 (lynx_mourn): Use for_each_thread.
1370 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1372 * regcache.c (regcache_invalidate_one): Remove.
1373 (regcache_invalidate_pid): use for_each_thread.
1375 2017-11-26 Tom Tromey <tom@tromey.com>
1377 * linux-low.c (linux_create_inferior): Update.
1379 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
1381 * spu-low.c (spu_create_inferior): Fix typo in argument name.
1383 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1385 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
1386 * linux-aarch64-low.c (initialize_low_arch): Call init func.
1387 * linux-aarch64-tdesc-selftest.c: New file.
1388 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
1390 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1392 * configure.srv: Add new file.
1393 * linux-aarch64-low.c (initialize_low_arch): Call init func.
1394 * linux-aarch64-tdesc-selftest.c: New file.
1395 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
1397 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1399 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
1400 * linux-aarch64-low.c (initialize_low_arch): Remove init.
1401 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
1403 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1405 * configure.srv: Add new files.
1406 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
1407 aarch64_linux_read_description.
1408 * linux-aarch64-low.c (aarch64_linux_read_description):
1409 Merge with aarch64_arch_setup.
1410 (aarch64_arch_setup): Call aarch64_linux_read_description.
1411 * linux-aarch64-tdesc.c: New file.
1412 * linux-aarch64-tdesc.h: New file.
1414 2017-11-24 Yao Qi <yao.qi@linaro.org>
1416 * configure.srv: Set $srv_regobj for tic6x-linux.
1417 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
1418 (tic6x_read_description): Move some code to tic6x_arch_setup.
1419 (tic6x_tdesc_test): New function.
1420 (initialize_low_arch): Call selftests::register_test.
1422 2017-11-22 Yao Qi <yao.qi@linaro.org>
1424 * remote-utils.c (prepare_resume_reply): Use memcpy.
1426 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1428 * linux-low.c (kill_one_lwp_callback): Return void, take
1429 argument directly, don't filter on pid.
1430 (linux_kill): Use for_each_thread.
1432 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1434 * linux-low.c (need_step_over_p): Return bool, remove dummy
1436 (linux_resume, proceed_all_lwps): Use find_thread.
1438 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1440 * linux-low.c (resume_status_pending_p): Return bool, remove
1442 (linux_resume): Use find_thread.
1444 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1446 * linux-low.c (struct thread_resume_array): Remove.
1447 (linux_set_resume_request): Return void, take arguments
1449 (linux_resume): Use for_each_thread.
1451 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1453 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
1454 return bool, remove data argument.
1455 (linux_stabilize_threads): Use find_thread.
1457 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1459 * linux-low.c (unsuspend_one_lwp): Remove.
1460 (unsuspend_all_lwps): Use for_each_thread, inline code from
1463 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1465 * gdbthread.h (find_thread): Add overload with ptid_t filter.
1466 * linux-low.c (struct iterate_over_lwps_args): Remove.
1467 (iterate_over_lwps_filter): Remove.
1468 (iterate_over_lwps): Use find_thread.
1470 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1472 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
1473 (linux_handle_new_gdb_connection): Use for_each_thread, inline
1474 code from reset_lwp_ptrace_options_callback.
1476 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1478 * linux-arm-low.c (struct update_registers_data): Remove.
1479 (update_registers_callback): Return void, take arguments
1480 directly, don't check thread's pid.
1481 (arm_insert_point, arm_remove_point): Use for_each_thread.
1483 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1485 * win32-low.c (continue_one_thread): Return void, take argument
1487 (child_continue): Use for_each_thread.
1489 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1491 * win32-i386-low.c (update_debug_registers_callback): Rename
1493 (update_debug_registers): ... this, return void, remove pid_p arg.
1494 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
1496 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1498 * inferiors.h (struct process_info): Add constructor, initialize
1500 <syscalls_to_catch>: Change type to std::vector<int>.
1501 * inferiors.c (add_process): Allocate process_info with new.
1502 (remove_process): Free process_info with delete.
1503 * linux-low.c (handle_extended_wait): Adjust.
1504 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
1505 * server.c (handle_general_set): Adjust.
1507 2017-11-16 Pedro Alves <palves@redhat.com>
1509 * remote-utils.c (remote_close): Block SIGIO signals instead of
1510 uninstalling the SIGIO handler.
1512 2017-11-16 Alan Hayward <alan.hayward@arm.com>
1514 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
1516 2017-11-16 Yao Qi <yao.qi@linaro.org>
1518 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
1519 (tic6x_store_gregset): Likewise.
1520 (tic6x_usrregs_info): Move it up.
1522 2017-11-15 Alan Hayward <alan.hayward@arm.com>
1524 * Makefile.in: Update arch rules.
1525 * configure.srv: Explicitly mark arch/ files.
1527 2017-11-13 Andreas Schwab <schwab@suse.de>
1529 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
1531 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
1533 2017-11-06 Pedro Alves <palves@redhat.com>
1535 * config.in, configure: Regenerate.
1537 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1539 * target.c (struct thread_search): Remove.
1540 (thread_search_callback): Remove.
1541 (prepare_to_access_memory): Use for_each_thread instead of
1542 find_inferior. Inline code from thread_search_callback.
1544 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1546 * server.c (struct visit_actioned_threads_data): Remove.
1547 (visit_actioned_threads): Change prototype to take arguments
1549 (resume): Use find_thread instead of find_inferior.
1551 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1553 * server.c (queue_stop_reply_callback): Change prototype, return
1555 (find_status_pending_thread_callback): Remove.
1556 (handle_status): Replace find_inferior with find_thread and
1559 2017-10-25 Alan Hayward <alan.hayward@arm.com>
1561 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
1563 (aarch64_store_gregset): Likewise.
1564 (aarch64_fill_fpregset): Likewise.
1565 (aarch64_store_fpregset): Likewise.
1567 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
1569 * gdbthread.h (find_thread, for_each_thread): New functions.
1570 * inferiors.c (thread_of_pid): Remove.
1571 (find_any_thread_of_pid): Use find_thread.
1572 * linux-low.c (num_lwps): Use for_each_thread.
1574 2017-10-17 Yao Qi <yao.qi@linaro.org>
1576 * Makefile.in: Remove one rule.
1577 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
1579 2017-10-17 Yao Qi <yao.qi@linaro.org>
1581 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
1582 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
1584 2017-10-17 Yao Qi <yao.qi@linaro.org>
1586 * configure.srv: Rename arm.o with arch/arm.o.
1588 2017-10-17 Yao Qi <yao.qi@linaro.org>
1590 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
1591 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
1592 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
1593 (arch-i386.o, arch-amd64.o): Remove rules.
1594 (arch/%.o): New rule.
1595 Update POSTCOMPILE and COMPILE.pre.
1596 * configure.ac: Invoke AC_CONFIG_COMMANDS.
1597 * configure: Re-generated.
1598 * configure.srv: Replace arch-i386.o with arch/i386.o.
1599 Replace arch-amd64.o with arch/amd64.o.
1601 2017-10-16 Yao Qi <yao.qi@linaro.org>
1603 * configure: Regenerated.
1605 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1607 * inferiors.h: (struct inferior_list): Remove.
1608 (struct inferior_list_entry); Remove.
1609 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
1610 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
1611 get_first_inferior): Remove.
1612 (for_each_inferior, for_each_inferior_with_data, find_inferior,
1613 find_inferior_id, find_inferior_in_random): Change signature.
1614 * inferiors.c (all_threads): Change type to
1615 std::list<thread_info *>.
1616 (get_thread): Remove macro.
1617 (find_inferior, find_inferior_id): Change signature, implement
1619 (find_inferior_in_random): Change signature, implement using
1620 find_thread_in_random.
1621 (for_each_inferior, for_each_inferior_with_data): Change
1622 signature, implement using for_each_thread.
1623 (add_inferior_to_list, remove_inferior): Remove.
1624 (add_thread, get_first_thread, thread_of_pid,
1625 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
1626 (get_first_inferior, one_inferior_p, clear_inferior_list):
1628 (clear_inferiors, get_thread_process): Update.
1629 * gdbthread.h: Include <list>.
1630 (struct thread_info) <entry>: Remove field.
1632 (all_threads): Change type to std::list<thread_info *>.
1633 (get_first_inferior): Add doc.
1634 (find_thread, for_each_thread, find_thread_in_random): New
1636 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
1637 * linux-arm-low.c (update_registers_callback): Update.
1638 * linux-low.c (second_thread_of_pid_p): Update.
1639 (kill_one_lwp_callback, linux_detach_lwp_callback,
1640 delete_lwp_callback, status_pending_p_callback, same_lwp,
1641 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
1642 iterate_over_lwps, not_stopped_callback,
1643 resume_stopped_resumed_lwps, count_events_callback,
1644 select_singlestep_lwp_callback, select_event_lwp_callback,
1645 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
1646 suspend_and_send_sigstop_callback, wait_for_sigstop,
1647 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
1648 lwp_running, linux_set_resume_request, resume_status_pending_p,
1649 need_step_over_p, start_step_over, linux_resume_one_thread,
1650 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
1651 reset_lwp_ptrace_options_callback): Update.
1652 * linux-mips-low.c (update_watch_registers_callback): Update.
1653 * regcache.c (regcache_invalidate_one, regcache_invalidate):
1655 (free_register_cache_thread_one): Remove.
1656 (regcache_release): Update.
1657 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
1658 handle_qxfer_threads_worker): Update.
1659 (handle_query): Update, use list iterator.
1660 (visit_actioned_threads, handle_pending_status,
1661 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
1662 clear_pending_status_callback, set_pending_status_callback,
1663 find_status_pending_thread_callback, handle_status,
1664 process_serial_event): Update.
1665 * target.c (thread_search_callback): Update.
1666 * thread-db.c (thread_db_get_tls_address): Update.
1667 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
1669 * win32-i386-low.c (update_debug_registers_callback): Update.
1670 * win32-low.c (delete_thread_info, child_delete_thread,
1671 continue_one_thread, suspend_one_thread,
1672 get_child_debug_event): Adjust.
1674 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1676 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
1677 * inferiors.h: Include <list>.
1678 (struct process_info) <entry>: Remove field.
1680 (pid_of): Change macro to function.
1681 (ptid_of, lwpid_of): Remove macro.
1682 (all_processes): Change type to std::list<process_info *>.
1683 (ALL_PROCESSES): Remove macro.
1684 (for_each_process, find_process): New function.
1685 * inferiors.c (all_processes): Change type to
1686 std::list<process_info *>.
1687 (find_thread_process): Adjust.
1688 (add_process): Likewise.
1689 (remove_process): Likewise.
1690 (find_process_pid): Likewise.
1691 (get_first_process): Likewise.
1692 (started_inferior_callback): Remove.
1693 (have_started_inferiors_p): Adjust.
1694 (attached_inferior_callback): Remove.
1695 (have_attached_inferiors_p): Adjust.
1696 * linux-low.c (check_zombie_leaders): Likewise.
1697 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
1698 (x86_linux_update_xmltarget): Adjust.
1699 * server.c (handle_query): Likewise.
1700 (gdb_reattached_process): Remove.
1701 (handle_status): Adjust.
1702 (kill_inferior_callback): Likewise.
1703 (detach_or_kill_inferior): Remove.
1704 (print_started_pid): Likewise.
1705 (print_attached_pid): Likewise.
1706 (detach_or_kill_for_exit): Update.
1707 (process_serial_event): Likewise.
1708 * linux-arm-low.c (arm_new_fork): Likewise.
1710 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1712 * dll.h: Include <list>.
1713 (struct dll_info): Add constructor.
1714 <entry>: Remove field.
1715 (all_dlls): Change type to std::list<dll_info>.
1716 * dll.c: Include <algorithm>.
1717 (get_dll): Remove macro.
1718 (all_dlls): Change type to std::list<dll_info *>.
1719 (free_one_dll): Remove.
1720 (match_dll): Likewise.
1721 (loaded_dll): Adjust.
1722 (unloaded_dll): Adjust to all_dlls type change, use
1723 std::find_if. Inline code from match_dll.
1724 (clear_dlls): Adjust to all_dlls type change.
1725 * server.c (emit_dll_description): Remove.
1726 (handle_qxfer_libraries): Adjust to all_dlls type change,
1727 integrate emit_dll_description's functionality.
1729 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1731 * linux-low.h (struct linux_target_ops) <delete_process>: New
1733 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
1734 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
1735 (struct linux_target_ops): Add delete_process callback.
1736 * linux-arm-low.c (arm_delete_process): New.
1737 (struct linux_target_ops): Add delete_process callback.
1738 * linux-bfin-low.c (struct linux_target_ops): Likewise.
1739 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
1740 * linux-m32r-low.c (struct linux_target_ops): Likewise.
1741 * linux-mips-low.c (mips_linux_delete_process): New.
1742 (struct linux_target_ops): Add delete_process callback.
1743 * linux-ppc-low.c (struct linux_target_ops): Likewise.
1744 * linux-s390-low.c (struct linux_target_ops): Likewise.
1745 * linux-sh-low.c (struct linux_target_ops): Likewise.
1746 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
1747 * linux-tile-low.c (struct linux_target_ops): Likewise.
1748 * linux-x86-low.c (x86_linux_delete_process): New.
1749 (struct linux_target_ops): Add delete_process callback.
1750 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
1752 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1754 * linux-aarch64-low.c (the_low_target): Add thread delete
1756 * linux-arm-low.c (arm_delete_thread): New function.
1757 (the_low_target): Add thread delete callback.
1758 * linux-bfin-low.c (the_low_target): Likewise.
1759 * linux-crisv32-low.c (the_low_target): Likewise.
1760 * linux-low.c (delete_lwp): Invoke delete_thread callback if
1762 * linux-low.h (struct linux_target_ops) <delete_thread>: New
1764 * linux-m32r-low.c (the_low_target): Add thread delete callback.
1765 * linux-mips-low.c (mips_linux_delete_thread): New function.
1766 (the_low_target): Add thread delete callback.
1767 * linux-ppc-low.c (the_low_target): Likewise.
1768 * linux-s390-low.c (the_low_target): Likewise.
1769 * linux-sh-low.c (the_low_target): Likewise.
1770 * linux-tic6x-low.c (the_low_target): Likewise.
1771 * linux-tile-low.c (the_low_target): Likewise.
1772 * linux-x86-low.c (the_low_target): Likewise.
1773 * linux-xtensa-low.c (the_low_target): Likewise.
1775 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
1777 * win32-low.c: Include "common-inferior.h".
1779 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1781 * inferiors.c (set_inferior_cwd): New function.
1782 * server.c (handle_general_set): Handle QSetWorkingDir packet.
1783 (handle_query): Inform that QSetWorkingDir is supported.
1784 * win32-low.c (create_process): Pass the inferior's cwd to
1787 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1789 * inferiors.c (current_inferior_cwd): New global variable.
1790 (get_inferior_cwd): New function.
1791 * inferiors.h (struct process_info) <cwd>: New field.
1793 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1795 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
1796 (OBS): Add gdb_tilde_expand.o.
1798 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
1800 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
1801 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
1803 2017-09-29 Pedro Alves <palves@redhat.com>
1805 * ax.c (gdb_parse_agent_expr): Constify.
1806 * ax.h (gdb_parse_agent_expr): Constify.
1807 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
1809 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
1810 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
1811 * remote-utils.h (read_ptid): Constify.
1812 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
1813 (process_point_options, process_serial_event): Constify.
1814 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
1815 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
1816 (cmd_qtbuffer): Constify.
1818 2017-09-29 Pedro Alves <palves@redhat.com>
1820 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
1823 2017-09-29 Pedro Alves <palves@redhat.com>
1825 * linux-low.c (handle_extended_wait): Pass parent thread instead
1826 of process to thread_db_notice_clone.
1827 * linux-low.h (thread_db_notice_clone): Replace parent process
1828 parameter with parent thread parameter.
1829 * thread-db.c (find_one_thread): Add comment.
1830 (thread_db_notice_clone): Replace parent process parameter with
1831 parent thread parameter. Temporarily switch to the parent thread.
1833 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
1835 * gdbthread.h: Include "common-gdbthread.h".
1836 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
1837 "if" when validating the ptid.
1838 * remote-utils.c: Include "gdbthread.h".
1839 (prepare_resume_reply): Use "switch_to_thread".
1840 * target.c (done_accessing_memory): Likewise.
1842 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1844 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
1845 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
1846 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
1847 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
1848 s390x-gs-linux64-ipa.o to ipa_obj.
1849 * linux-s390-low.c (HWCAP_S390_GS): New define.
1850 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
1852 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
1853 (s390_arch_setup): Check for guarded-storage support and choose
1855 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
1856 init_registers_s390x_gs_linux64.
1857 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
1859 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
1860 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
1862 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
1864 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
1866 2017-09-21 Kevin Buettner <kevinb@redhat.com>
1868 * linux-low.h (struct lwp_info): Add new field, thread_handle.
1869 (thread_db_thread_handle): Declare.
1870 * linux-low.c (linux_target_ops): Initialize thread_handle.
1871 * server.c (handle_qxfer_threads_worker): Add support for
1873 * target.h (struct target_ops): Add new function pointer,
1875 (target_thread_handle): Define.
1876 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
1878 (thread_db_thread_handle): New function.
1880 2017-09-21 Kevin Buettner <kevinb@redhat.com>
1882 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
1883 * linux-low.h (thread_db_notice_clone): Declare.
1884 * thread-db.c (thread_db_notice_clone): New function.
1886 2017-09-21 Pedro Alves <palves@redhat.com>
1888 * server.c (gdb_read_memory, handle_status, process_serial_event)
1889 (handle_serial_event, handle_target_event): Adjust to
1890 set_desired_thread prototype change.
1891 * target.c (set_desired_thread): Remove 'use_general' parameter
1893 * target.h (set_desired_thread): Remove 'use_general' parameter.
1895 2017-09-20 Tom Tromey <tom@tromey.com>
1897 * target.c (target_terminal::terminal_state): Define.
1898 (target_terminal::init): Rename from target_terminal_init.
1899 (target_terminal::inferior): Rename from
1900 target_terminal_inferior.
1901 (target_terminal::ours): Rename from target_terminal_ours.
1902 (target_terminal::ours_for_output, target_terminal::info): New.
1904 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1906 * server.c (accumulate_file_name_length): Remove.
1907 (emit_dll_description): Adjust to std::string change.
1908 (handle_qxfer_libraries): Use std::string to hold document.
1910 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1912 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
1913 return type of xml_escape_text.
1914 * server.c (emit_dll_description): Likewise.
1916 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1918 * server.c (captured_main): Accept argument for --selftest.
1919 Update run_tests call.
1920 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
1921 when registering selftests.
1923 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1925 * regcache.c (get_thread_regcache): Update code to use "std::vector"
1926 instead of "VEC" for "target_desc.reg_defs".
1927 (regcache_cpy): Likewise.
1928 (registers_to_string): Likewise.
1929 (registers_from_string): Likewise.
1930 (find_regno): Likewise.
1931 (supply_regblock): Likewise.
1932 (regcache_raw_read_unsigned): Likewise.
1933 * tdesc.c (init_target_desc): Likewise.
1934 (tdesc_create_reg): Likewise.
1935 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
1936 (struct target_desc) <reg_defs>: Convert to "std::vector".
1937 (target_desc): Do not initialize "reg_defs".
1938 (~target_desc): Update code to use "std::vector" instead of "VEC"
1939 for "target_desc.reg_defs".
1940 (operator==): Likewise.
1942 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1944 * inferiors.h (thread_to_gdb_id): Remove.
1945 * inferiors.c (thread_to_gdb_id): Remove.
1946 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
1947 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
1948 lynx_store_registers, lynx_read_memory, lynx_write_memory):
1950 * nto-low.c (nto_fetch_registers, nto_store_registers,
1951 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
1953 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1955 * inferiors.h (gdb_id_to_thread_id): Remove.
1956 * inferiors.c (gdb_id_to_thread_id): Remove.
1957 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
1958 removal. Move pid declaration closer to where it's used.
1960 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1962 * server.c (handle_detach): New function.
1963 (process_serial_event): Move code out, call handle_detach.
1965 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1967 * server.c (require_running): Rename to ...
1968 (require_running_or_return): ... this ...
1969 (require_running_or_break): ... and this.
1970 (handle_query, process_serial_event): Adjust.
1972 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1974 * linux-low.c (linux_set_resume_request): Remove unused
1977 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1979 * server.c (first_thread_of): Remove.
1980 (process_serial_event): Replace usage of first_thread_of with
1981 find_any_thread_of_pid.
1982 * tracepoint.c (same_process_p): Remove.
1983 (gdb_agent_about_to_close): Replace usage of same_process_p with
1984 find_any_thread_of_pid.
1985 * linux-x86-low.c (same_process_callback): Remove.
1986 (x86_arch_setup_process_callback): Replace usage of
1987 same_process_callback with find_any_thread_of_pid.
1988 * thread-db.c (any_thread_of): Remove.
1989 (switch_to_process): Replace usage of any_thread_of with
1990 find_any_thread_of_pid.
1991 * inferiors.c (thread_pid_matches_callback): Remove.
1992 (find_thread_process): Adjust to use find_any_thread_of_pid.
1994 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1996 * regcache.c (get_thread_regcache): Guard calls to "memset"
1999 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2001 * linux-low.c (handle_extended_wait): Use
2002 "allocate_target_description" instead of "XNEW".
2003 * linux-x86-low.c (initialize_low_arch): Likewise.
2005 2017-09-05 Yao Qi <yao.qi@linaro.org>
2007 * configure.srv (srv_i386_regobj): Remove.
2008 (srv_amd64_regobj): Remove.
2009 (srv_regobj): Set it to "" for x86 non-linux targets.
2010 * linux-x86-tdesc.c (i386_linux_read_description):
2011 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
2012 (init_registers_i386): Remove the declaration.
2013 (tdesc_i386): Remove the declaration.
2014 (lynx_i386_arch_setup): Call i386_create_target_description.
2015 * nto-x86-low.c: Likewise.
2016 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
2017 [!__x86_64__]: include arch/i386.h.
2018 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
2020 2017-09-05 Yao Qi <yao.qi@linaro.org>
2022 * configure.srv (srv_amd64_linux_xmlfiles): Remove
2023 i386/amd64-XXX-linux from it.
2025 2017-09-05 Yao Qi <yao.qi@linaro.org>
2027 * configure.srv: Empty srv_amd64_linux_regobj if $development is
2029 (ipa_amd64_linux_regobj): Remove.
2030 (ipa_x32_linux_regobj): Remove.
2032 2017-09-05 Yao Qi <yao.qi@linaro.org>
2034 * Makefile.in (arch-amd64.o): New rule.
2035 * configure.srv: Append arch-amd64.o.
2036 * linux-amd64-ipa.c: Include common/x86-xstate.h.
2037 (get_ipa_tdesc): Call amd64_linux_read_description.
2038 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
2039 and init_registers_amd64_XXX.
2040 * linux-x86-low.c (x86_linux_read_description): Call
2041 amd64_linux_read_description.
2042 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
2043 (initialize_low_arch): Don't call init_registers_x32_XXX and
2044 init_registers_amd64_XXX.
2045 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
2046 and tdesc_amd64_XXX.
2047 [__x86_64__] (amd64_tdesc_test): New function.
2048 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
2049 and init_registers_amd64_XXX.
2050 * linux-x86-tdesc.c: Include arch/amd64.h.
2051 (xcr0_to_tdesc_idx): New function.
2052 (i386_linux_read_description): New function.
2053 (amd64_get_ipa_tdesc_idx): New function.
2054 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
2055 (amd64_get_ipa_tdesc): Declare.
2057 2017-09-05 Yao Qi <yao.qi@linaro.org>
2059 * configure.srv (srv_i386_linux_xmlfiles): Remove
2060 i386/i386-XXX-linux.xml from it.
2062 2017-09-05 Yao Qi <yao.qi@linaro.org>
2064 * configure.srv: Set srv_i386_linux_regobj empty if $development
2066 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
2067 initialize_low_tdesc.
2068 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
2069 with #if initialize_low_tdesc.
2070 * linux-x86-tdesc-selftest.c: New file.
2071 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
2073 2017-09-05 Yao Qi <yao.qi@linaro.org>
2075 * Makefile.in (arch-i386.o): New rule.
2076 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
2077 (x86_64-*-linux*): Likewise.
2078 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
2079 include arch/i386.h.
2080 (i386_linux_read_description): Remove code and call
2081 i386_create_target_description.
2082 * tdesc.c (allocate_target_description): New function.
2083 * tdesc.h (set_tdesc_architecture): Remove declaration.
2084 (set_tdesc_osabi): Likewise.
2086 2017-09-05 Yao Qi <yao.qi@linaro.org>
2088 * linux-x86-tdesc.c: Don't include <inttypes.h>.
2089 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
2090 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
2092 * server.c (get_features_xml): Call tdesc_get_features_xml.
2093 * tdesc.c (set_tdesc_architecture): New function.
2094 (set_tdesc_osabi): New function.
2095 (tdesc_get_features_xml): New function.
2096 (tdesc_create_feature): Add an argument.
2097 * tdesc.h (struct target_desc) <features>: New field.
2098 <arch, osabi>: New field.
2099 (~target_desc): xfree features, arch, and osabi.
2100 (target_desc::oerator==): Don't compare .xmltarget.
2101 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
2102 (set_tdesc_osabi): Likewise.
2103 (tdesc_get_features_xml): Likewise.
2105 2017-09-05 Yao Qi <yao.qi@linaro.org>
2107 * linux-x86-tdesc.c: Include selftest.h.
2108 (i386_tdesc_test): New function.
2109 (initialize_low_tdesc): Call selftests::register_test.
2110 * tdesc.h: Include regdef.h.
2111 (target_desc): Override operator == and !=.
2113 2017-09-05 Yao Qi <yao.qi@linaro.org>
2115 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
2116 (ipa_obj): Likewise.
2117 * linux-i386-ipa.c: Include common/x86-xstate.h
2118 (get_ipa_tdesc): Call i386_linux_read_description.
2119 (initialize_low_tracepoint): Don't call init_registers_XXX
2120 functions, call initialize_low_tdesc instead.
2121 * linux-x86-low.c (x86_linux_read_description): Call
2122 i386_linux_read_description.
2123 (initialize_low_arch): Don't call init_registers_i386_XXX
2124 functions, call initialize_low_tdesc.
2125 * linux-x86-tdesc.c: New file.
2126 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
2127 (i386_get_ipa_tdesc_idx): Declare.
2128 (i386_get_ipa_tdesc): Declare.
2129 (initialize_low_tdesc): Declare.
2131 2017-09-05 Yao Qi <yao.qi@linaro.org>
2133 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
2136 2017-09-05 Yao Qi <yao.qi@linaro.org>
2138 * Makefile.in (IPA_OBJS): Add vec-ipa.o
2139 * regcache.c (get_thread_regcache): Use VEC_length.
2140 (init_register_cache): Likewise.
2141 (regcache_cpy): Likewise.
2142 (registers_to_string): Iterate reg_defs via VEC_iterate.
2143 (find_regno): Likewise.
2144 (find_register_by_number): Use VEC_index.
2145 (register_size): Call find_register_by_number.
2146 (register_data): Call find_register_by_number.
2147 (supply_regblock): Use VEC_length.
2148 (regcache_raw_read_unsigned): Likewise.
2149 * tdesc.c (init_target_desc): Iterate reg_defs via
2151 (default_description): Update initializer.
2152 (copy_target_description): Don't update field num_registers.
2153 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
2154 <num_registers>: Remove.
2156 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2158 * Makefile.in (.SECONDARY): Define target.
2160 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2162 * linux-low.c (linux_wait_1): Adjust.
2163 * server.c (queue_stop_reply_callback): Adjust.
2165 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2167 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
2168 QEnvironmentUnset and QEnvironmentReset packets.
2169 (handle_query): Inform remote that QEnvironmentHexEncoded,
2170 QEnvironmentUnset and QEnvironmentReset are supported.
2172 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
2174 * inferiors.h (inferior_target_data): Rename to ...
2175 (thread_target_data): ... this.
2176 (inferior_regcache_data): Rename to ...
2177 (thread_regcache_data): ... this.
2178 (set_inferior_regcache_data): Rename to ...
2179 (set_thread_regcache_data): ... this.
2180 * inferiors.c (inferior_target_data): Rename to ...
2181 (thread_target_data): ... this.
2182 (inferior_regcache_data): Rename to ...
2183 (thread_regcache_data): ... this.
2184 (set_inferior_regcache_data): Rename to ...
2185 (set_thread_regcache_data): ... this.
2186 (free_one_thread): Update.
2187 * linux-low.h (get_thread_lwp): Update.
2188 * regcache.c (get_thread_regcache): Update.
2189 (regcache_invalidate_thread): Update.
2190 (free_register_cache_thread): Update.
2191 * win32-i386-low.c (update_debug_registers_callback): Update.
2192 (win32_get_current_dr): Update.
2193 * win32-low.c (thread_rec): Update.
2194 (delete_thread_info): Update.
2195 (continue_one_thread): Update.
2196 (suspend_one_thread): Update.
2198 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
2200 * inferiors.c (set_inferior_target_data): Remove.
2201 * inferiors.h (set_inferior_target_data): Remove.
2203 2017-08-18 Yao Qi <yao.qi@linaro.org>
2205 * Makefile.in (OBS): Add selftest.o.
2206 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
2207 * configure, config.in: Re-generated.
2208 * server.c: Include common/sefltest.h.
2209 (captured_main): Handle option --selftest.
2211 2017-08-09 Yao Qi <yao.qi@linaro.org>
2213 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
2214 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
2215 i386-avx-mpx.o and i386-mmx.o.
2216 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
2217 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
2218 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
2219 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
2220 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
2221 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
2222 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
2223 i386/amd64-avx-mpx.xml.
2225 2017-08-09 Yao Qi <yao.qi@linaro.org>
2227 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
2228 and x32-avx-avx512.o.
2229 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
2230 i386/x32-avx-avx512.xml.
2232 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
2234 * tracepoint.h (enum class fast_tpoint_collect_result): New
2236 (fast_tracepoint_collecting): Change return type to
2237 fast_tpoint_collect_result.
2238 * tracepoint.c (fast_tracepoint_collecting): Likewise.
2239 * linux-low.h: Include tracepoint.h.
2240 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
2241 fast_tpoint_collect_result.
2242 * linux-low.c (handle_tracepoints): Adjust.
2243 (linux_fast_tracepoint_collecting): Change return type to
2244 fast_tpoint_collect_result.
2245 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
2246 linux_wait_1, stuck_in_jump_pad_callback,
2247 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
2248 proceed_one_lwp): Adjust to type change.
2250 2017-07-10 Yao Qi <yao.qi@linaro.org>
2252 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
2254 2017-06-29 Yao Qi <yao.qi@linaro.org>
2256 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
2258 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
2260 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
2262 * Makefile.in (IPA_OBJS): Sort and format one item per line.
2264 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
2266 * linux-low.c (linux_create_inferior): Adjust code to access the
2267 environment information via 'gdb_environ' class.
2268 * lynx-low.c (lynx_create_inferior): Likewise.
2269 * server.c (our_environ): Make it an instance of 'gdb_environ'.
2270 (get_environ): Return a pointer to 'our_environ'.
2271 (captured_main): Initialize 'our_environ'.
2272 * server.h (get_environ): Adjust prototype.
2273 * spu-low.c (spu_create_inferior): Adjust code to access the
2274 environment information via 'gdb_environ' class.
2276 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2278 * linux-low.c (linux_read_memory, linux_write_memory): Remove
2279 usage of "register" keyword.
2281 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2283 * configure: Re-generate.
2285 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2287 * configure: Re-generate.
2289 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2291 * Makefile.in (COMPILE.pre): Add "-x c++".
2293 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
2295 * fork-child.c: Conditionally include <signal.h>.
2297 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
2299 * server.c (handle_general_set): Handle new packet
2300 "QStartupWithShell".
2301 (handle_query): Add "QStartupWithShell" to the list of supported
2303 (gdbserver_usage): Add help text explaining the
2304 new "--startup-with-shell" and "--no-startup-with-shell" CLI
2306 (captured_main): Recognize and act upon the presence of the new
2309 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
2310 Pedro Alves <palves@redhat.com>
2312 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
2313 * configure: Regenerate.
2314 * configure.srv (srv_linux_obj): Add "fork-child.o" and
2316 (i[34567]86-*-lynxos*): Likewise.
2317 (spu*-*-*): Likewise.
2318 * fork-child.c: New file.
2319 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
2321 (linux_ptrace_fun): New function.
2322 (linux_create_inferior): Adjust function prototype to reflect
2323 change on "target.h". Adjust function code to use
2325 (linux_request_interrupt): Delete "signal_pid".
2326 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
2327 (lynx_ptrace_fun): New function.
2328 (lynx_create_inferior): Adjust function prototype to reflect
2329 change on "target.h". Adjust function code to use
2331 * nto-low.c (nto_create_inferior): Adjust function prototype and
2332 code to reflect change on "target.h". Update comments.
2333 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
2334 "common-terminal.h" and "environ.h".
2335 (terminal_fd): Moved to fork-child.c.
2336 (old_foreground_pgrp): Likewise.
2337 (restore_old_foreground_pgrp): Likewise.
2338 (last_status): Make it global.
2339 (last_ptid): Likewise.
2340 (our_environ): New variable.
2341 (startup_with_shell): Likewise.
2342 (program_name): Likewise.
2343 (program_argv): Rename to...
2344 (program_args): ...this.
2345 (wrapper_argv): New variable.
2346 (start_inferior): Delete function.
2347 (get_exec_wrapper): New function.
2348 (get_exec_file): Likewise.
2349 (get_environ): Likewise.
2350 (prefork_hook): Likewise.
2351 (post_fork_inferior): Likewise.
2352 (postfork_hook): Likewise.
2353 (postfork_child_hook): Likewise.
2354 (handle_v_run): Update code to deal with arguments coming from the
2355 remote host. Update calls from "start_inferior" to
2357 (captured_main): Likewise. Initialize environment variable. Call
2359 * server.h (post_fork_inferior): New prototype.
2360 (get_environ): Likewise.
2361 (last_status): Declare.
2362 (last_ptid): Likewise.
2363 (signal_pid): Likewise.
2364 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
2365 (spu_ptrace_fun): New function.
2366 (spu_create_inferior): Adjust function prototype to reflect change
2367 on "target.h". Adjust function code to use "fork_inferior".
2368 * target.c (target_terminal_init): New function.
2369 (target_terminal_inferior): Likewise.
2370 (target_terminal_ours): Likewise.
2371 * target.h: Include <vector>.
2372 (struct target_ops) <create_inferior>: Update prototype.
2373 (create_inferior): Update macro.
2374 * utils.c (gdb_flush_out_err): New function.
2375 * win32-low.c (win32_create_inferior): Adjust function prototype
2376 and code to reflect change on "target.h".
2378 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
2380 * inferiors.c (switch_to_thread): New function.
2382 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
2384 * Makefile.in (SFILE): Add "common/job-control.c".
2385 (OBS): Add "job-control.o".
2387 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
2389 * Makefile: Remove "@host_makefile_frag@".
2391 2017-05-05 Pedro Alves <palves@redhat.com>
2393 * configure: Regenerate.
2395 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
2397 * configure: Regenerate.
2399 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
2401 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
2402 software_single_step change of return type to
2403 std::vector<CORE_ADDR>.
2404 * linux-low.c (install_software_single_step_breakpoints):
2406 * linux-low.h (install_software_single_step_breakpoints):
2409 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
2411 * remote-utils.c: Include "gdb_termios.h" instead of
2413 * terminal.h: Delete file.
2415 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
2417 * server.c: Include <vector>.
2418 <program_argv, wrapper_argv>: Convert to std::vector.
2419 (start_inferior): Rewrite function to use C++.
2420 (handle_v_run): Likewise. Update code that calculates the argv
2421 based on the vRun packet; use C++.
2422 (captured_main): Likewise.
2424 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
2426 * server.c (handle_v_cont): Initialize thread_resume::thread
2429 2017-04-05 Pedro Alves <palves@redhat.com>
2431 * configure: Regenerate.
2433 2017-04-05 Pedro Alves <palves@redhat.com>
2435 * gdbreplay.c (sync_error): Constify.
2436 * linux-x86-low.c (push_opcode): Constify.
2438 2017-04-05 Pedro Alves <palves@redhat.com>
2440 * win32-low.c (get_child_debug_event)
2441 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
2442 Report TARGET_WAITKIND_SPURIOUS instead.
2444 2017-04-05 Pedro Alves <palves@redhat.com>
2446 * remote-utils.c (remote_prepare, remote_open): Constify.
2447 * remote-utils.h (remote_prepare, remote_open): Constify.
2448 * server.c (captured_main): Constify 'port' handling.
2450 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
2452 * Makefile.in (clean): Clear .deps.
2454 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
2456 * .gitignore: Remove generated files, replace with wildcard.
2457 * (clean): Replace removal of generated files with wildcard.
2458 (version.c): Replace with...
2459 (version-generated.c): ...this.
2460 (xml-builtin.c): Replace with...
2461 (xml-builtin-generated.c): ...this.
2462 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
2463 (%.c: *regformats*): Replace with...
2464 (%-generated.c: *regformats*): ...this.
2466 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
2468 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
2469 (xtensa_fill_gregset): Call collect_register_by_name for
2471 (xtensa_store_gregset): Call supply_register_by_name for
2474 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
2476 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
2477 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
2478 (xtensa_store_gregset): Call supply_register for all registers in
2479 a0_regnum..a0_regnum + C0_NREGS range.
2481 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2483 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
2484 (ax-ipa.o: ax.c): Remove.
2485 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
2486 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
2487 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
2488 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
2489 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
2491 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2493 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
2494 (print-utils-ipa.o: ../common/print-utils.c): Remove.
2495 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
2496 (errors-ipa.o: ../common/errors.c): Remove.
2497 (format-ipa.o: ../common/format.c): Remove.
2498 (common-utils-ipa.o: ../common/common-utils.c): Remove.
2500 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2502 * Makefile.in (%-ipa.o: %.c): New rule.
2503 (tracepoint-ipa.o: tracepoint.c): Remove.
2504 (utils-ipa.o: utils.c): Remove.
2505 (remote-utils-ipa.o: remote-utils.c): Remove.
2506 (regcache-ipa.o: regcache.c): Remove.
2507 (i386-linux-ipa.o: i386-linux.c): Remove.
2508 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
2509 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
2510 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
2511 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
2512 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
2513 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
2514 (amd64-linux-ipa.o: amd64-linux.c): Remove.
2515 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
2516 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
2517 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
2518 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
2519 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
2520 (aarch64-ipa.o: aarch64.c): Remove.
2521 (s390-linux32-ipa.o: s390-linux32.c): Remove.
2522 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
2523 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
2524 (s390-linux64-ipa.o: s390-linux64.c): Remove.
2525 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
2526 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
2527 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
2528 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
2529 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
2530 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
2531 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
2532 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
2533 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
2534 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
2535 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
2536 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
2537 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
2538 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
2539 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
2540 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
2541 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
2542 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
2543 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
2544 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
2545 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
2546 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
2547 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
2548 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
2549 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
2550 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
2551 (tdesc-ipa.o: tdesc.c): Remove.
2552 (x32-linux-ipa.o: x32-linux.c): Remove.
2553 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
2554 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
2556 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2558 * Makefile.in (%.o: ../arch/%.c): New rule.
2559 (arm.o: ../arch/arm.c): Remove.
2560 (arm-linux.o: ../arch/arm-linux.c): Remove.
2561 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
2562 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
2564 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2566 * Makefile.in (%.o: ../nat/%.c): New rule.
2567 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
2568 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
2569 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
2570 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
2571 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
2572 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
2573 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
2574 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
2575 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
2576 (linux-personality.o: ../nat/linux-personality.c): Remove.
2577 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
2578 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
2579 (x86-linux.o: ../nat/x86-linux.c): Remove.
2580 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
2581 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
2583 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2585 * Makefile.in (%.o: ../common/%.c): New rule.
2586 (signals.o: ../common/signals.c): Remove.
2587 (print-utils.o: ../common/print-utils.c): Remove.
2588 (rsp-low.o: ../common/rsp-low.c): Remove.
2589 (common-utils.o: ../common/common-utils.c): Remove.
2590 (posix-strerror.o: ../common/posix-strerror.c): Remove.
2591 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
2592 (vec.o: ../common/vec.c): Remove.
2593 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
2594 (xml-utils.o: ../common/xml-utils.c): Remove.
2595 (ptid.o: ../common/ptid.c): Remove.
2596 (buffer.o: ../common/buffer.c): Remove.
2597 (format.o: ../common/format.c): Remove.
2598 (filestuff.o: ../common/filestuff.c): Remove.
2599 (agent.o: ../common/agent.c): Remove.
2600 (errors.o: ../common/errors.c): Remove.
2601 (environ.o: ../common/environ.c): Remove.
2602 (common-debug.o: ../common/common-debug.c): Remove.
2603 (cleanups.o: ../common/cleanups.c): Remove.
2604 (common-exceptions.o: ../common/common-exceptions.c): Remove.
2605 (fileio.o: ../common/fileio.c): Remove.
2606 (common-regcache.o: ../common/common-regcache.c): Remove.
2607 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
2608 (new-op.o: ../common/new-op.c): Remove.
2609 (btrace-common.o: ../common/btrace-common.c): Remove.
2611 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2613 * Makefile.in (%.o: ../target/%.c): New rule.
2614 (waitstatus.o: ../target/waitstatus.c): Remove.
2616 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2619 (%.c: ../regformats/%.dat,
2620 (%.c: ../regformats/arm/%.dat,
2621 (%.c: ../regformats/i386/%.dat,
2622 (%.c: ../regformats/rs6000/%.dat): New rules.
2623 (aarch64.c): Remove.
2624 (reg-arm.c): Remove.
2625 (arm-with-iwmmxt.c): Remove.
2626 (arm-with-vfpv2.c): Remove.
2627 (arm-with-vfpv3.c): Remove.
2628 (arm-with-neon.c): Remove.
2629 (reg-bfin.c): Remove.
2630 (reg-cris.c): Remove.
2631 (reg-crisv32.c): Remove.
2633 (i386-linux.c): Remove.
2634 (i386-avx.c): Remove.
2635 (i386-avx-linux.c): Remove.
2636 (i386-avx-avx512.c): Remove.
2637 (i386-avx-avx512-linux.c): Remove.
2638 (i386-mpx.c): Remove.
2639 (i386-mpx-linux.c): Remove.
2640 (i386-avx-mpx-avx512-pku.c): Remove.
2641 (i386-avx-mpx-avx512-pku-linux.c): Remove.
2642 (i386-avx-mpx.c): Remove.
2643 (i386-avx-mpx-linux.c): Remove.
2644 (i386-mmx.c): Remove.
2645 (i386-mmx-linux.c): Remove.
2646 (reg-ia64.c): Remove.
2647 (reg-m32r.c): Remove.
2648 (reg-m68k.c): Remove.
2650 (mips-linux.c): Remove.
2651 (mips-dsp-linux.c): Remove.
2652 (mips64-linux.c): Remove.
2653 (mips64-dsp-linux.c): Remove.
2654 (nios2-linux.c): Remove.
2655 (powerpc-32.c): Remove.
2656 (powerpc-32l.c): Remove.
2657 (powerpc-altivec32l.c): Remove.
2658 (powerpc-cell32l.c): Remove.
2659 (powerpc-vsx32l.c): Remove.
2660 (powerpc-isa205-32l.c): Remove.
2661 (powerpc-isa205-altivec32l.c): Remove.
2662 (powerpc-isa205-vsx32l.c): Remove.
2663 (powerpc-e500l.c): Remove.
2664 (powerpc-64l.c): Remove.
2665 (powerpc-altivec64l.c): Remove.
2666 (powerpc-cell64l.c): Remove.
2667 (powerpc-vsx64l.c): Remove.
2668 (powerpc-isa205-64l.c): Remove.
2669 (powerpc-isa205-altivec64l.c): Remove.
2670 (powerpc-isa205-vsx64l.c): Remove.
2671 (s390-linux32.c): Remove.
2672 (s390-linux32v1.c): Remove.
2673 (s390-linux32v2.c): Remove.
2674 (s390-linux64.c): Remove.
2675 (s390-linux64v1.c): Remove.
2676 (s390-linux64v2.c): Remove.
2677 (s390-te-linux64.c): Remove.
2678 (s390-vx-linux64.c): Remove.
2679 (s390-tevx-linux64.c): Remove.
2680 (s390x-linux64.c): Remove.
2681 (s390x-linux64v1.c): Remove.
2682 (s390x-linux64v2.c): Remove.
2683 (s390x-te-linux64.c): Remove.
2684 (s390x-vx-linux64.c): Remove.
2685 (s390x-tevx-linux64.c): Remove.
2686 (tic6x-c64xp-linux.c): Remove.
2687 (tic6x-c64x-linux.c): Remove.
2688 (tic6x-c62x-linux.c): Remove.
2690 (reg-sparc64.c): Remove.
2691 (reg-spu.c): Remove.
2693 (amd64-linux.c): Remove.
2694 (amd64-avx.c): Remove.
2695 (amd64-avx-linux.c): Remove.
2696 (amd64-avx-avx512.c): Remove.
2697 (amd64-avx-avx512-linux.c): Remove.
2698 (amd64-mpx.c): Remove.
2699 (amd64-mpx-linux.c): Remove.
2700 (amd64-avx-mpx-avx512-pku.c): Remove.
2701 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
2702 (amd64-avx-mpx.c): Remove.
2703 (amd64-avx-mpx-linux.c): Remove.
2705 (x32-linux.c): Remove.
2706 (x32-avx.c): Remove.
2707 (x32-avx-linux.c): Remove.
2708 (x32-avx-avx512.c): Remove.
2709 (x32-avx-avx512-linux.c): Remove.
2710 (reg-xtensa.c): Remove.
2711 (reg-tilegx.c): Remove.
2712 (reg-tilegx32.c): Remove.
2714 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
2716 * Makefile.in (SFILES): Add "common/environ.c".
2717 (OBJS): Add "common/environ.h".
2719 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
2721 * configure.ac: Check if the fs_base and gs_base members of
2722 `struct user_regs_struct' exist.
2723 * config.in: Regenerated.
2724 * configure: Likewise.
2726 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
2728 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
2730 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
2731 (get_next_pcs_syscall_next_pc): Likewise.
2733 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
2735 * win32-i386-low.c: Fix incorrect reference to a couple source files.
2736 * nto-x86-low.c: Likewise.
2738 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
2740 * Makefile.in: Include disable-implicit-rules.mk.
2742 2016-11-23 Pedro Alves <palves@redhat.com>
2744 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
2745 (debug_vprintf): Use std::chrono::steady_clock instead of
2746 gettimeofday. Use '.' instead of ':'.
2747 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
2748 (get_timestamp): Use std::chrono::steady_clock instead of
2751 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2753 * Makefile.in: Fix whitespace formatting.
2755 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2757 * Makefile.in (SFILES, OBS): Flatten list and order
2760 2016-11-23 Pedro Alves <palves@redhat.com>
2762 * event-loop.c (handle_file_event): Use warning.
2763 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
2764 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
2767 2016-11-23 Pedro Alves <palves@redhat.com>
2769 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
2771 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
2772 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
2773 debug_printf and debug_flush for debug output.
2774 * server.c (handle_general_set): Likewise.
2775 * thread-db.c (try_thread_db_load): Use debug_printf for debug
2778 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2780 * Makefile.in (.c.o): Replace rule with ...
2781 (%.o: %.c): ... this one.
2783 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2785 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
2786 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
2788 * configure.ac: Remove checks for the make program.
2789 * configure: Re-generate.
2791 2016-10-28 Pedro Alves <palves@redhat.com>
2793 * Makefile.in (CXX_DIALECT): Get from configure.
2794 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
2795 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
2796 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
2797 * config.in: Regenerate.
2798 * configure: Regenerate.
2800 2016-10-27 Yao Qi <yao.qi@linaro.org>
2802 * linux-low.c (linux_supports_range_stepping): Return true if
2803 can_software_single_step return true.
2805 2016-10-27 Yao Qi <yao.qi@linaro.org>
2807 * inferiors.c (find_inferior_in_random): New function.
2808 * inferiors.h (find_inferior_in_random): Declare.
2809 * linux-low.c (linux_wait_for_event_filtered): Call
2810 find_inferior_in_random instead of find_inferior.
2812 2016-10-27 Yao Qi <yao.qi@linaro.org>
2814 * linux-low.c (linux_wait_1): If single-step breakpoints are
2815 inserted, remove them.
2817 2016-10-26 Pedro Alves <palves@redhat.com>
2819 * linux-low.c (handle_extended_wait): Link parent/child fork
2821 (linux_wait_1): Unlink them.
2822 (linux_set_resume_request): Ignore resume requests for
2823 already-resumed and unhandled fork child threads.
2824 * linux-low.h (struct lwp_info) <fork_relative>: New field.
2825 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
2827 (handle_v_requests) <vCont>: Don't call require_running.
2828 * server.h (in_queued_stop_replies): New declaration.
2830 2016-10-24 Yao Qi <yao.qi@linaro.org>
2833 * linux-aarch64-low.c (append_insns): Cast the return value to
2836 2016-10-10 Yao Qi <yao.qi@linaro.org>
2838 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
2840 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2842 * target.c (target_supports_multi_process): New function, moved
2844 * target.h (target_supports_multi_process): ... here. Remove
2847 2016-10-05 Tom Tromey <tom@tromey.com>
2850 * tracepoint.c (handle_tracepoint_bkpts): Check
2851 ipa_error_tracepoint, not ipa_stopping_tracepoint.
2853 2016-10-05 Yao Qi <yao.qi@linaro.org>
2855 * configure.srv: Update the path of arm-*.xml files.
2857 2016-10-05 Terry Guo <terry.guo@arm.com>
2858 Yao Qi <yao.qi@linaro.org>
2860 * Makefile.in: Adjust the path of rules.
2861 * configure.srv: Update the path of xml files.
2862 * regformats/arm-with-iwmmxt.dat: Regenerated.
2863 * regformats/arm-with-neon.dat: Likewise.
2864 * regformats/arm-with-vfpv2.dat: Likewise.
2865 * regformats/arm-with-vfpv3.dat Likewise.
2867 2016-09-30 Yao Qi <yao.qi@linaro.org>
2870 * target.c (target_stop_and_wait): Don't call
2871 target_continue_no_signal, use resume_stop instead.
2873 2016-09-26 Yao Qi <yao.qi@linaro.org>
2875 * linux-low.c (linux_wait_1): Call debug_exit.
2877 2016-09-23 Pedro Alves <palves@redhat.com>
2879 * Makefile.in (SFILES): Add common/new-op.c.
2880 (OBS): Add common/new-op.o.
2881 (new-op.o): New rule.
2883 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
2885 * .gitinore: Ignore more files.
2887 2016-09-21 Yao Qi <yao.qi@linaro.org>
2889 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
2892 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
2894 * server.c (start_inferior): Call target_mourn_inferior instead of
2895 mourn_inferior; pass ptid_t argument to it.
2897 (handle_target_event): Likewise.
2898 * target.c (target_mourn_inferior): New function.
2899 * target.h (mourn_inferior): Delete macro.
2901 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2903 * linux-low.c (lwp_is_stepping): New function.
2905 2016-09-06 Carl Love <cel@us.ibm.com>
2907 * server.c (start_inferior): Fixed comment, requested comment change
2908 didn't get updated correctly. Removed reference to ptrace () call as
2909 it is only true on Linux systems.
2911 2016-09-06 Carl Love <cel@us.ibm.com>
2913 * server.c (start_inferior): Do not call
2914 function target_post_create_inferior () if the
2915 inferior process has already exited.
2917 2016-09-05 Pedro Alves <palves@redhat.com>
2919 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
2920 (COMPILE.pre, CC_LD): Use CXX directly.
2921 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
2922 * acinclude.m4: Don't include build-with-cxx.m4.
2923 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
2924 * configure: Regenerate.
2926 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
2929 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
2930 call writing data to own_buf.
2932 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2934 * target.c (mywait): Call target_wait instead of
2936 (target_wait): New function.
2938 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2940 * server.c (start_inferior): New variable 'ptid'. Replace calls
2941 to the_target->resume by target_continue{,_no_signal}, depending
2943 * target.c (target_stop_and_wait): Call target_continue_no_signal
2944 instead of the_target->resume.
2945 (target_continue): New function.
2947 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
2949 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
2951 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2954 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
2956 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
2957 * linux-arm-low.c (ps_get_thread_area): Likewise.
2958 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
2959 * linux-m68k-low.c (ps_get_thread_area): Likewise.
2960 * linux-mips-low.c (ps_get_thread_area): Likewise.
2961 * linux-nios2-low.c (ps_get_thread_area): Likewise.
2962 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
2963 * linux-x86-low.c (ps_get_thread_area): Likewise.
2964 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
2966 2016-08-19 Pedro Alves <palves@redhat.com>
2968 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
2970 2016-08-19 Pedro Alves <palves@redhat.com>
2972 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
2973 comment. Use memcpy instead of casting through unsigned long.
2975 2016-08-19 Pedro Alves <palves@redhat.com>
2977 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
2978 allocating around 0x80000000.
2980 2016-08-19 Pedro Alves <palves@redhat.com>
2983 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
2984 (x32-avx512-linux-ipa.o): New rules.
2985 * configure.ac (x86_64-*-linux*): New x32 check.
2986 * configure.srv (ipa_x32_linux_regobj): New.
2987 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
2988 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
2990 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
2992 * configure: Regenerate.
2994 2016-08-09 Pedro Alves <palves@redhat.com>
2997 * Makefile.in (OBS): Add signals-state-save-restore.o.
2998 (signals-state-save-restore.o): New rule.
2999 * config.in: Regenerate.
3000 * configure: Regenerate.
3001 * linux-low.c: Include "signals-state-save-restore.h".
3002 (linux_create_inferior): Call
3003 restore_original_signals_state.
3004 * server.c: Include "dispositions-save-restore.h".
3005 (captured_main): Call save_original_signals_state.
3007 2016-08-05 Pedro Alves <palves@redhat.com>
3009 * configure: Regenerate.
3011 2016-08-04 Yao Qi <yao.qi@linaro.org>
3013 * linux-low.c (regsets_fetch_inferior_registers): Check
3014 errno is ESRCH or not.
3016 2016-08-02 Yao Qi <yao.qi@linaro.org>
3018 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
3019 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
3020 (thread_db_load_search): Update.
3021 (try_thread_db_load_1): Don't look for td_ta_event_addr,
3022 td_ta_set_event and td_ta_event_getmsg.
3024 2016-07-26 Pedro Alves <palves@redhat.com>
3027 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
3028 of unsigned long for 64-bit registers and use uint32_t instead of
3029 unsigned int for 32-bit registers.
3031 2016-07-26 Pedro Alves <palves@redhat.com>
3033 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
3036 2016-07-21 Tom Tromey <tom@tromey.com>
3038 * configure: Rebuild.
3040 2016-07-21 Yao Qi <yao.qi@linaro.org>
3042 * mem-break.c (find_gdb_breakpoint): Cast bp to
3043 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
3045 2016-07-21 Yao Qi <yao.qi@linaro.org>
3047 * server.c (handle_v_requests): Support s and S actions
3048 if target_supports_software_single_step return true.
3050 2016-07-21 Yao Qi <yao.qi@linaro.org>
3052 * linux-low.c (resume_stopped_resumed_lwps): If resume request
3053 is resume_step, call maybe_hw_step.
3054 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
3056 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
3058 (proceed_one_lwp): If resume request is resume_step, install
3059 reinsert breakpoints and call maybe_hw_step.
3061 2016-07-21 Yao Qi <yao.qi@linaro.org>
3063 * linux-low.c (proceed_one_lwp): Declare.
3064 (linux_resume_one_thread): Remove local variable 'step'.
3065 Lift code enqueue signal. Call proceed_one_lwp instead of
3066 linux_resume_one_lwp.
3068 2016-07-21 Yao Qi <yao.qi@linaro.org>
3070 * linux-low.c (linux_resume_one_thread): Call
3071 enqueue_pending_signal.
3073 2016-07-21 Yao Qi <yao.qi@linaro.org>
3075 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
3076 * inferiors.c (do_restore_current_thread_cleanup): New function.
3077 (make_cleanup_restore_current_thread): Likewise.
3078 * linux-low.c (install_software_single_step_breakpoints): Call
3079 make_cleanup_restore_current_thread. Switch current_thread to
3082 2016-07-21 Yao Qi <yao.qi@linaro.org>
3084 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
3085 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
3086 (clone_one_breakpoint): Likewise.
3087 (delete_reinsert_breakpoints): Change parameter to thread.
3089 (has_reinsert_breakpoints): Likewise.
3090 (uninsert_reinsert_breakpoints): Likewise.
3091 (reinsert_reinsert_breakpoints): Likewise.
3092 * mem-break.h (set_reinsert_breakpoint): Update declaration.
3093 (delete_reinsert_breakpoints): Likewise.
3094 (reinsert_reinsert_breakpoints): Likewise.
3095 (uninsert_reinsert_breakpoints): Likewise.
3096 (has_reinsert_breakpoints): Likewise.
3098 2016-07-21 Yao Qi <yao.qi@linaro.org>
3100 * inferiors.c (get_thread_process): Make parameter const.
3101 * inferiors.h (get_thread_process): Update declaration.
3102 * mem-break.c (clone_all_breakpoints): Remove all parameters.
3103 Add new parameters child_thread and parent_thread. Callers
3105 * mem-break.h (clone_all_breakpoints): Update declaration.
3107 2016-07-21 Yao Qi <yao.qi@linaro.org>
3109 * mem-break.c (struct breakpoint) <cond_list>: Remove.
3110 <command_list, handler>: Remove.
3111 (struct gdb_breakpoint): New.
3112 (struct other_breakpoint): New.
3113 (struct reinsert_breakpoint): New.
3114 (is_gdb_breakpoint): New function.
3115 (any_persistent_commands): Update command_list if
3116 is_gdb_breakpoint returns true.
3117 (set_breakpoint): Create breakpoints according to their types.
3118 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
3119 (set_gdb_breakpoint_1): Likewise.
3120 (set_gdb_breakpoint): Likewise.
3121 (clear_breakpoint_conditions): Change parameter type to
3122 'struct gdb_breakpoint *'.
3123 (clear_breakpoint_commands): Likewise.
3124 (clear_breakpoint_conditions_and_commands): Likewise.
3125 (add_condition_to_breakpoint): Likewise.
3126 (add_breakpoint_condition): Likewise.
3127 (add_commands_to_breakpoint): Likewise.
3128 (check_breakpoints): Check other_breakpoint.
3129 (clone_one_breakpoint): Clone breakpopint according to its type.
3130 * mem-break.h (struct gdb_breakpoint): Declare.
3131 (set_gdb_breakpoint): Update declaration.
3132 (clear_breakpoint_conditions_and_commands): Likewise.
3133 (add_breakpoint_condition): Likewise.
3134 (add_breakpoint_commands): Likewise.
3135 * server.c (process_point_options): Change parameter type to
3136 'struct gdb_breakpoint *'.
3138 2016-07-21 Yao Qi <yao.qi@linaro.org>
3140 * mem-break.c (set_breakpoint_at): Rename it to ...
3141 (set_breakpoint_type_at): ... it.
3142 (set_breakpoint_at): Call set_breakpoint_type_at.
3143 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
3144 * mem-break.h (set_breakpoint_at): Update comments.
3146 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
3148 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
3150 (nios2_store_gregset): Likewise.
3152 2016-07-01 Pedro Alves <palves@redhat.com>
3153 Antoine Tremblay <antoine.tremblay@ericsson.com>
3155 * linux-low.c: Change interface to take the target lwp_info
3156 pointer directly and return void. Handle detaching from a zombie
3158 (linux_detach_lwp_callback): New function.
3159 (linux_detach): Detach from the leader thread after detaching from
3162 2016-06-28 Yao Qi <yao.qi@linaro.org>
3164 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
3165 for variable new_offset.
3166 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
3167 (aarch64_ftrace_insn_reloc_cb): Likewise.
3168 (aarch64_ftrace_insn_reloc_tb): Likewise.
3169 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
3170 PRIx64 instead of PRIx32.
3172 2016-06-28 Yao Qi <yao.qi@linaro.org>
3174 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
3175 (the_low_target): Install arm_get_syscall_trapinfo.
3177 2016-06-28 Yao Qi <yao.qi@linaro.org>
3179 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
3181 (the_low_target): Install aarch64_get_syscall_trapinfo.
3183 2016-06-28 Yao Qi <yao.qi@linaro.org>
3185 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
3187 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
3188 Remove parameter sysno.
3189 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
3192 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3194 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
3195 (s390_emit_ne_goto): Likewise.
3196 (s390_emit_lt_goto): Likewise.
3197 (s390_emit_le_goto): Likewise.
3198 (s390_emit_gt_goto): Likewise.
3199 (s390_emit_ge_goto): Likewise.
3200 (s390x_emit_eq_goto): Likewise.
3201 (s390x_emit_ne_goto): Likewise.
3202 (s390x_emit_lt_goto): Likewise.
3203 (s390x_emit_le_goto): Likewise.
3204 (s390x_emit_gt_goto): Likewise.
3205 (s390x_emit_ge_goto): Likewise.
3206 (s390_emit_ops_impl): Mark variable static.
3207 (s390x_emit_ops): Likewise.
3209 2016-06-17 Yao Qi <yao.qi@linaro.org>
3211 * linux-low.c (handle_extended_wait): Call
3212 uninsert_reinsert_breakpoints for the parent process. Remove
3213 reinsert breakpoints from the child process. Reinsert them to
3214 the parent process when vfork is done.
3215 * mem-break.c (uninsert_reinsert_breakpoints): New function.
3216 (reinsert_reinsert_breakpoints): New function.
3217 * mem-break.h (uninsert_reinsert_breakpoints): Declare
3218 (reinsert_reinsert_breakpoints): Declare.
3220 2016-06-17 Yao Qi <yao.qi@linaro.org>
3222 * linux-low.c (handle_extended_wait): If the parent is doing
3223 step-over, remove the reinsert breakpoints from the forked child.
3225 2016-06-17 Yao Qi <yao.qi@linaro.org>
3227 * linux-low.c (unsuspend_all_lwps): Declare.
3228 (linux_low_filter_event): If thread exited, call finish_step_over.
3229 If step-over is finished, unsuspend other threads.
3231 2016-06-17 Yao Qi <yao.qi@linaro.org>
3233 * linux-low.c (linux_resume_one_lwp_throw): Assert
3234 has_reinsert_breakpoints returns false.
3235 * mem-break.c (delete_disabled_breakpoints): Assert
3236 bp type isn't reinsert_breakpoint.
3238 2016-06-17 Yao Qi <yao.qi@linaro.org>
3240 * linux-low.c (maybe_hw_step): New function.
3241 (linux_resume_one_lwp_throw): Call maybe_hw_step.
3242 (finish_step_over): Switch current_thread to lwp temporarily,
3243 and assert has_reinsert_breakpoints returns true.
3244 (proceed_one_lwp): Call maybe_hw_step.
3245 * mem-break.c (has_reinsert_breakpoints): New function.
3246 * mem-break.h (has_reinsert_breakpoints): Declare.
3248 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
3250 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
3252 2016-05-17 Yao Qi <yao.qi@linaro.org>
3254 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
3255 instead of find_inferior.
3257 2016-05-05 Yao Qi <yao.qi@linaro.org>
3259 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
3260 Initialize res to zero.
3262 2016-05-05 Yao Qi <yao.qi@linaro.org>
3264 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
3267 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3269 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
3270 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
3271 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
3273 2016-04-28 Par Olsson <par.olsson@windriver.com>
3274 Simon Marchi <simon.marchi@ericsson.com>
3276 * tracepoint.c (write_inferior_int8): New function.
3277 (cmd_qtenable_disable): Write enable flag using
3278 write_inferior_int8.
3280 2016-04-25 Yao Qi <yao.qi@linaro.org>
3282 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
3283 (need_step_over_p): Return zero if the LWP has pending signals
3284 can be delivered on software single step target.
3286 2016-04-25 Yao Qi <yao.qi@linaro.org>
3288 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
3289 return instead of error.
3291 2016-04-22 Yao Qi <yao.qi@linaro.org>
3293 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
3296 2016-04-22 Yao Qi <yao.qi@linaro.org>
3298 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
3299 signal when stepping over breakpoint with software single
3302 2016-04-21 Pedro Alves <palves@redhat.com>
3304 * linux-s390-low.c (s390_collect_ptrace_register)
3305 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
3307 (s390_check_regset): Use void * instead of gdb_byte *.
3309 2016-04-20 Pedro Alves <palves@redhat.com>
3311 * configure: Renegerate.
3313 2016-04-20 Yao Qi <yao.qi@linaro.org>
3315 * linux-aarch32-low.c: Include "arch/arm-linux.h".
3316 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
3318 (arm_store_gregset): Likewise.
3320 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
3322 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
3323 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
3324 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
3325 (amd64-avx-mpx-linux.c): New rules.
3326 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
3327 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
3328 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
3329 (srv_amd64_regobj): Add amd64-avx-mpx.o.
3330 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
3331 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
3332 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
3333 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
3334 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
3335 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
3336 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
3337 * linux-x86-low.c (x86_linux_read_description): Add case for
3338 X86_XSTATE_AVX_MPX_MASK.
3339 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
3340 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
3341 init_registers_i386_avx_mpx_linux.
3342 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
3343 (initialize_low_tracepoint): Call
3344 init_registers_i386_avx_mpx_linux.
3345 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
3346 (initialize_low_tracepoint): Call
3347 init_registers_amd64_avx_mpx_linux.
3348 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
3349 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
3350 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
3353 2016-04-18 Pedro Alves <palves@redhat.com>
3355 * configure: Regenerate.
3357 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
3359 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
3360 (aarch64_emit_sub): Likewise.
3362 2016-04-12 Pedro Alves <palves@redhat.com>
3364 * utils.c (prepare_to_throw_exception): Delete.
3366 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
3368 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
3370 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
3372 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
3374 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
3376 * linux-aarch64-ipa.c: Add <elf.h> include.
3377 * linux-ppc-ipa.c: Add <elf.h> include.
3378 * linux-s390-ipa.c: Add <elf.h> include.
3380 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
3382 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
3383 (get_raw_reg_ptr): Likewise.
3384 (get_trace_state_variable_value_ptr): Likewise.
3385 (set_trace_state_variable_value_ptr): Likewise.
3386 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
3389 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
3390 Marcin Kościelnicki <koriakin@0x04.net>
3393 * linux-ppc-low.c (emit_insns): New function.
3394 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
3395 (ppc_emit_prologue): New function.
3396 (ppc_emit_epilogue): New function.
3397 (ppc_emit_add): New function.
3398 (ppc_emit_sub): New function.
3399 (ppc_emit_mul): New function.
3400 (ppc_emit_lsh): New function.
3401 (ppc_emit_rsh_signed): New function.
3402 (ppc_emit_rsh_unsigned): New function.
3403 (ppc_emit_ext): New function.
3404 (ppc_emit_zero_ext): New function.
3405 (ppc_emit_log_not): New function.
3406 (ppc_emit_bit_and): New function.
3407 (ppc_emit_bit_or): New function.
3408 (ppc_emit_bit_xor): New function.
3409 (ppc_emit_bit_not): New function.
3410 (ppc_emit_equal): New function.
3411 (ppc_emit_less_signed): New function.
3412 (ppc_emit_less_unsigned): New function.
3413 (ppc_emit_ref): New function.
3414 (ppc_emit_const): New function.
3415 (ppc_emit_reg): New function.
3416 (ppc_emit_pop): New function.
3417 (ppc_emit_stack_flush): New function.
3418 (ppc_emit_swap): New function.
3419 (ppc_emit_stack_adjust): New function.
3420 (ppc_emit_call): New function.
3421 (ppc_emit_int_call_1): New function.
3422 (ppc_emit_void_call_2): New function.
3423 (ppc_emit_if_goto): New function.
3424 (ppc_emit_goto): New function.
3425 (ppc_emit_eq_goto): New function.
3426 (ppc_emit_ne_goto): New function.
3427 (ppc_emit_lt_goto): New function.
3428 (ppc_emit_le_goto): New function.
3429 (ppc_emit_gt_goto): New function.
3430 (ppc_emit_ge_goto): New function.
3431 (ppc_write_goto_address): New function.
3432 (ppc_emit_ops_impl): New static variable.
3433 (ppc64v1_emit_prologue): New function.
3434 (ppc64v2_emit_prologue): New function.
3435 (ppc64_emit_epilogue): New function.
3436 (ppc64_emit_add): New function.
3437 (ppc64_emit_sub): New function.
3438 (ppc64_emit_mul): New function.
3439 (ppc64_emit_lsh): New function.
3440 (ppc64_emit_rsh_signed): New function.
3441 (ppc64_emit_rsh_unsigned): New function.
3442 (ppc64_emit_ext): New function.
3443 (ppc64_emit_zero_ext): New function.
3444 (ppc64_emit_log_not): New function.
3445 (ppc64_emit_bit_and): New function.
3446 (ppc64_emit_bit_or): New function.
3447 (ppc64_emit_bit_xor): New function.
3448 (ppc64_emit_bit_not): New function.
3449 (ppc64_emit_equal): New function.
3450 (ppc64_emit_less_signed): New function.
3451 (ppc64_emit_less_unsigned): New function.
3452 (ppc64_emit_ref): New function.
3453 (ppc64_emit_const): New function.
3454 (ppc64v1_emit_reg): New function.
3455 (ppc64v2_emit_reg): New function.
3456 (ppc64_emit_pop): New function.
3457 (ppc64_emit_stack_flush): New function.
3458 (ppc64_emit_swap): New function.
3459 (ppc64v1_emit_call): New function.
3460 (ppc64v2_emit_call): New function.
3461 (ppc64v1_emit_int_call_1): New function.
3462 (ppc64v2_emit_int_call_1): New function.
3463 (ppc64v1_emit_void_call_2): New function.
3464 (ppc64v2_emit_void_call_2): New function.
3465 (ppc64_emit_if_goto): New function.
3466 (ppc64_emit_eq_goto): New function.
3467 (ppc64_emit_ne_goto): New function.
3468 (ppc64_emit_lt_goto): New function.
3469 (ppc64_emit_le_goto): New function.
3470 (ppc64_emit_gt_goto): New function.
3471 (ppc64_emit_ge_goto): New function.
3472 (ppc64v1_emit_ops_impl): New static variable.
3473 (ppc64v2_emit_ops_impl): New static variable.
3474 (ppc_emit_ops): New function.
3475 (linux_low_target): Wire in ppc_emit_ops.
3477 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
3478 Marcin Kościelnicki <koriakin@0x04.net>
3481 * Makefile.in: Add powerpc-*-ipa.o
3482 * configure.srv: Add ipa_obj for powerpc*-linux.
3483 * linux-ppc-ipa.c: New file.
3484 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
3486 (PPC_FIELD): New macro.
3487 (PPC_SEXT): New macro.
3488 (PPC_OP6): New macro.
3489 (PPC_BO): New macro.
3490 (PPC_LI): New macro.
3491 (PPC_BD): New macro.
3492 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
3493 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
3494 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
3495 (ppc_get_thread_area): New function.
3496 (is_elfv2_inferior): New function.
3497 (gen_ds_form): New function.
3498 (GEN_STD): New macro.
3499 (GEN_STDU): New macro.
3500 (GEN_LD): New macro.
3501 (GEN_LDU): New macro.
3502 (gen_d_form): New function.
3503 (GEN_ADDI): New macro.
3504 (GEN_ADDIS): New macro.
3505 (GEN_LI): New macro.
3506 (GEN_LIS): New macro.
3507 (GEN_ORI): New macro.
3508 (GEN_ORIS): New macro.
3509 (GEN_LWZ): New macro.
3510 (GEN_STW): New macro.
3511 (GEN_STWU): New macro.
3512 (gen_xfx_form): New function.
3513 (GEN_MFSPR): New macro.
3514 (GEN_MTSPR): New macro.
3515 (GEN_MFCR): New macro.
3516 (GEN_MTCR): New macro.
3517 (GEN_SYNC): New macro.
3518 (GEN_LWSYNC): New macro.
3519 (gen_x_form): New function.
3520 (GEN_OR): New macro.
3521 (GEN_MR): New macro.
3522 (GEN_LWARX): New macro.
3523 (GEN_STWCX): New macro.
3524 (GEN_CMPW): New macro.
3525 (gen_md_form): New function.
3526 (GEN_RLDICL): New macro.
3527 (GEN_RLDICR): New macro.
3528 (gen_i_form): New function.
3530 (GEN_BL): New macro.
3531 (gen_b_form): New function.
3532 (GEN_BNE): New macro.
3533 (GEN_LOAD): New macro.
3534 (GEN_STORE): New macro.
3535 (gen_limm): New function.
3536 (gen_atomic_xchg): New function.
3537 (gen_call): New function.
3538 (ppc_relocate_instruction): New function.
3539 (ppc_install_fast_tracepoint_jump_pad): New function.
3540 (ppc_get_min_fast_tracepoint_insn_len): New function.
3541 (ppc_get_ipa_tdesc_idx): New function.
3542 (the_low_target): Wire in the new functions.
3543 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
3545 * linux-ppc-tdesc.h: New file.
3547 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
3549 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
3550 (alloc_jump_pad_buffer): New function.
3551 * linux-amd64-ipa.c: Add <sys/mman.h> include.
3552 (alloc_jump_pad_buffer): New function.
3553 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
3554 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
3555 (alloc_jump_pad_buffer): New function.
3556 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
3557 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
3558 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
3559 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
3561 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
3563 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
3564 * linux-amd64-ipa.c: Likewise.
3565 * linux-i386-ipa.c: Likewise.
3566 * linux-s390-ipa.c: Likewise.
3567 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
3568 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
3569 set_trace_state_variable_value_ptr.
3570 (struct ipa_sym_addresses): Likewise.
3571 (symbol_list): Likewise.
3572 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
3573 accessing gdb_collect directly.
3574 (gdb_collect_ptr_type): New typedef.
3575 (get_raw_reg_ptr_type): New typedef.
3576 (get_trace_state_variable_value_ptr_type): New typedef.
3577 (set_trace_state_variable_value_ptr_type): New typedef.
3578 (gdb_collect_ptr): New global.
3579 (get_raw_reg_ptr): New global.
3580 (get_trace_state_variable_value_ptr): New global.
3581 (set_trace_state_variable_value_ptr): New global.
3582 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
3583 accessing get_raw_reg directly.
3584 (get_get_tsv_func_addr): Likewise for
3585 get_trace_state_variable_value_ptr.
3586 (get_set_tsv_func_addr): Likewise for
3587 set_trace_state_variable_value_ptr.
3588 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
3590 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
3592 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
3594 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
3596 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
3598 (relocate_instruction): Remove own_buf.
3599 * server.c (own_buf): Make global.
3600 (handle_v_requests): Make global.
3601 * server.h (own_buf): New declaration.
3602 (handle_v_requests): New prototype.
3604 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
3607 * linux-s390-low.c (add_insns): New function.
3608 (s390_emit_prologue): New function.
3609 (s390_emit_epilogue): New function.
3610 (s390_emit_add): New function.
3611 (s390_emit_sub): New function.
3612 (s390_emit_mul): New function.
3613 (s390_emit_lsh): New function.
3614 (s390_emit_rsh_signed): New function.
3615 (s390_emit_rsh_unsigned): New function.
3616 (s390_emit_ext): New function.
3617 (s390_emit_log_not): New function.
3618 (s390_emit_bit_and): New function.
3619 (s390_emit_bit_or): New function.
3620 (s390_emit_bit_xor): New function.
3621 (s390_emit_bit_not): New function.
3622 (s390_emit_equal): New function.
3623 (s390_emit_less_signed): New function.
3624 (s390_emit_less_unsigned): New function.
3625 (s390_emit_ref): New function.
3626 (s390_emit_if_goto): New function.
3627 (s390_emit_goto): New function.
3628 (s390_write_goto_address): New function.
3629 (s390_emit_litpool): New function.
3630 (s390_emit_const): New function.
3631 (s390_emit_call): New function.
3632 (s390_emit_reg): New function.
3633 (s390_emit_pop): New function.
3634 (s390_emit_stack_flush): New function.
3635 (s390_emit_zero_ext): New function.
3636 (s390_emit_swap): New function.
3637 (s390_emit_stack_adjust): New function.
3638 (s390_emit_set_r2): New function.
3639 (s390_emit_int_call_1): New function.
3640 (s390_emit_void_call_2): New function.
3641 (s390_emit_eq_goto): New function.
3642 (s390_emit_ne_goto): New function.
3643 (s390_emit_lt_goto): New function.
3644 (s390_emit_le_goto): New function.
3645 (s390_emit_gt_goto): New function.
3646 (s390_emit_ge_goto): New function.
3647 (s390x_emit_prologue): New function.
3648 (s390x_emit_epilogue): New function.
3649 (s390x_emit_add): New function.
3650 (s390x_emit_sub): New function.
3651 (s390x_emit_mul): New function.
3652 (s390x_emit_lsh): New function.
3653 (s390x_emit_rsh_signed): New function.
3654 (s390x_emit_rsh_unsigned): New function.
3655 (s390x_emit_ext): New function.
3656 (s390x_emit_log_not): New function.
3657 (s390x_emit_bit_and): New function.
3658 (s390x_emit_bit_or): New function.
3659 (s390x_emit_bit_xor): New function.
3660 (s390x_emit_bit_not): New function.
3661 (s390x_emit_equal): New function.
3662 (s390x_emit_less_signed): New function.
3663 (s390x_emit_less_unsigned): New function.
3664 (s390x_emit_ref): New function.
3665 (s390x_emit_if_goto): New function.
3666 (s390x_emit_const): New function.
3667 (s390x_emit_call): New function.
3668 (s390x_emit_reg): New function.
3669 (s390x_emit_pop): New function.
3670 (s390x_emit_stack_flush): New function.
3671 (s390x_emit_zero_ext): New function.
3672 (s390x_emit_swap): New function.
3673 (s390x_emit_stack_adjust): New function.
3674 (s390x_emit_int_call_1): New function.
3675 (s390x_emit_void_call_2): New function.
3676 (s390x_emit_eq_goto): New function.
3677 (s390x_emit_ne_goto): New function.
3678 (s390x_emit_lt_goto): New function.
3679 (s390x_emit_le_goto): New function.
3680 (s390x_emit_gt_goto): New function.
3681 (s390x_emit_ge_goto): New function.
3682 (s390_emit_ops): New function.
3683 (struct linux_target_ops): Fill in emit_ops hook.
3685 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
3688 * Makefile.in: Add s390 IPA files.
3689 * configure.srv: Build IPA for s390.
3690 * linux-s390-ipa.c: New file.
3691 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
3692 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
3693 (tdesc_s390_linux32): Likewise.
3694 (init_registers_s390_linux32v1): Likewise.
3695 (tdesc_s390_linux32v1): Likewise.
3696 (init_registers_s390_linux32v2): Likewise.
3697 (tdesc_s390_linux32v2): Likewise.
3698 (init_registers_s390_linux64): Likewise.
3699 (tdesc_s390_linux64): Likewise.
3700 (init_registers_s390_linux64v1): Likewise.
3701 (tdesc_s390_linux64v1): Likewise.
3702 (init_registers_s390_linux64v2): Likewise.
3703 (tdesc_s390_linux64v2): Likewise.
3704 (init_registers_s390_te_linux64): Likewise.
3705 (tdesc_s390_te_linux64): Likewise.
3706 (init_registers_s390_vx_linux64): Likewise.
3707 (tdesc_s390_vx_linux64): Likewise.
3708 (init_registers_s390_tevx_linux64): Likewise.
3709 (tdesc_s390_tevx_linux64): Likewise.
3710 (init_registers_s390x_linux64): Likewise.
3711 (tdesc_s390x_linux64): Likewise.
3712 (init_registers_s390x_linux64v1): Likewise.
3713 (tdesc_s390x_linux64v1): Likewise.
3714 (init_registers_s390x_linux64v2): Likewise.
3715 (tdesc_s390x_linux64v2): Likewise.
3716 (init_registers_s390x_te_linux64): Likewise.
3717 (tdesc_s390x_te_linux64): Likewise.
3718 (init_registers_s390x_vx_linux64): Likewise.
3719 (tdesc_s390x_vx_linux64): Likewise.
3720 (init_registers_s390x_tevx_linux64): Likewise.
3721 (tdesc_s390x_tevx_linux64): Likewise.
3722 (have_hwcap_s390_vx): New static variable.
3723 (s390_arch_setup): Fill have_hwcap_s390_vx.
3724 (s390_get_thread_area): New function.
3725 (s390_ft_entry_gpr_esa): New const.
3726 (s390_ft_entry_gpr_zarch): New const.
3727 (s390_ft_entry_misc): New const.
3728 (s390_ft_entry_fr): New const.
3729 (s390_ft_entry_vr): New const.
3730 (s390_ft_main_31): New const.
3731 (s390_ft_main_64): New const.
3732 (s390_ft_exit_fr): New const.
3733 (s390_ft_exit_vr): New const.
3734 (s390_ft_exit_misc): New const.
3735 (s390_ft_exit_gpr_esa): New const.
3736 (s390_ft_exit_gpr_zarch): New const.
3737 (append_insns): New function.
3738 (s390_relocate_instruction): New function.
3739 (s390_install_fast_tracepoint_jump_pad): New function.
3740 (s390_get_min_fast_tracepoint_insn_len): New function.
3741 (s390_get_ipa_tdesc_idx): New function.
3742 (struct linux_target_ops): Wire in the above functions.
3743 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
3744 * linux-s390-tdesc.h: New file.
3746 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
3748 * linux-s390-low.c (s390_supports_tracepoints): New function.
3749 (struct linux_target_ops): Fill supports_tracepoints hook.
3751 2016-03-18 Yao Qi <yao.qi@linaro.org>
3753 * linux-low.c (lwp_signal_can_be_delivered): New function.
3754 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
3756 2016-03-18 Yao Qi <yao.qi@linaro.org>
3758 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
3759 0 if signal is enqueued. Remove 'signal' from one debugging
3760 message. Move one debugging message to some lines below.
3761 Remove code setting 'signal' to 0.
3763 2016-03-18 Yao Qi <yao.qi@linaro.org>
3765 * linux-low.c (linux_low_filter_event): Remove redundant
3766 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
3768 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
3770 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
3771 (struct linux_target_ops): Wire in the above.
3773 2016-03-03 Yao Qi <yao.qi@linaro.org>
3775 * linux-low.c: Update comments to start_step_over.
3777 2016-03-03 Yao Qi <yao.qi@linaro.org>
3780 * linux-low.c (handle_extended_wait): Set child suspended
3781 if event_lwp->bp_reinsert isn't zero.
3783 2016-03-02 Yao Qi <yao.qi@linaro.org>
3785 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
3786 enqueue_pending_signal.
3788 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
3790 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
3793 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
3795 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
3796 (s390_regmap_3264) [!__s390x__]: New global.
3797 (s390_collect_ptrace_register): Skip map entries containing -1.
3798 (s390_supply_ptrace_register): Ditto.
3799 (s390_fill_gprs_high): New function.
3800 (s390_store_gprs_high): New function.
3801 (s390_regsets): Add NT_S390_HIGH_GPRS.
3802 (s390_get_hwcap): Enable on 31-bit.
3803 (have_hwcap_s390_high_gprs): Enable on 31-bit.
3804 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
3805 Detect NT_S390_HIGH_GPRS.
3806 (s390_usrregs_info_3264): Enable on 31-bit.
3807 (s390_regs_info): Enable regs_info_3264 on 31-bit.
3808 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
3810 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
3813 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
3814 * configure.srv: Ditto.
3815 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
3816 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
3817 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
3818 (init_registers_amd64_linux): Remove prototype.
3819 (tdesc_amd64_linux): Remove declaration.
3820 (get_ipa_tdesc): New function.
3821 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
3822 initialize remaining tdescs.
3823 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
3824 (init_registers_i386_linux): Remove prototype.
3825 (tdesc_i386_linux): Remove declaration.
3826 (get_ipa_tdesc): New function.
3827 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
3828 initialize remaining tdescs.
3829 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
3830 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
3831 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
3832 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
3833 (x86_get_ipa_tdesc_idx): New function.
3834 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
3835 * linux-x86-tdesc.h: New file.
3836 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
3837 (target_get_ipa_tdesc_idx): New macro.
3838 * tracepoint.c (ipa_tdesc_idx): New macro.
3839 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
3840 (symbol_list): Add ipa_tdesc_idx.
3841 (cmd_qtstart): Write ipa_tdesc_idx in the target.
3842 (ipa_tdesc): Remove.
3843 (ipa_tdesc_idx): New variable.
3844 (get_context_regcache): Use get_ipa_tdesc.
3845 (gdb_collect): Ditto.
3847 * tracepoint.h (get_ipa_tdesc): New prototype.
3848 (ipa_tdesc): Remove.
3850 2016-02-24 Pedro Alves <palves@redhat.com>
3852 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
3853 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
3854 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
3855 Factor out common code between the USE_SIGTRAP_SIGINFO and
3856 !USE_SIGTRAP_SIGINFO blocks.
3857 (linux_low_filter_event): Call save_stop_reason instead of
3858 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
3860 (linux_wait_1): Update comments.
3862 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
3864 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
3865 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
3866 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
3867 ppc_insert_point, ppc_remove_point.
3869 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
3871 * linux-s390-low.c (s390_supports_z_point_type): New function.
3872 (struct linux_target_ops): Wire s390_supports_z_point_type in.
3874 2016-02-16 Yao Qi <yao.qi@linaro.org>
3876 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
3877 PC. Get pc from regcache_read_pc.
3879 2016-02-12 Yao Qi <yao.qi@linaro.org>
3881 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
3882 or linux_get_pc_32bit.
3883 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
3885 2016-02-12 Yao Qi <yao.qi@linaro.org>
3887 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
3888 arm_linux_get_next_pcs_fixup.
3890 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
3892 * tracepoint.c (x_tracepoint_action_download): Change
3893 write_inferior_data_ptr to write_inferior_data_pointer.
3894 (cmd_qtstart): Likewise.
3895 (write_inferior_data_ptr): Remove.
3896 (download_agent_expr): Change write_inferior_data_ptr to
3897 write_inferior_data_pointer.
3898 (download_tracepoint_1): Likewise.
3899 (download_tracepoint): Likewise.
3900 (download_trace_state_variables): Likewise.
3902 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
3903 Marcin Kościelnicki <koriakin@0x04.net>
3905 * tracepoint.c (struct tracepoint_action_ops): Remove.
3906 (struct tracepoint_action): Remove ops.
3907 (m_tracepoint_action_download, r_tracepoint_action_download)
3908 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
3909 size and offset accordingly.
3910 (m_tracepoint_action_ops, r_tracepoint_action_ops)
3911 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
3912 (tracepoint_action_send, tracepoint_action_download): New functions.
3913 Helpers for trace action handlers.
3914 (add_tracepoint_action): Remove setup actions ops.
3915 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
3917 2016-02-10 Yao Qi <yao.qi@linaro.org>
3919 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
3921 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
3923 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
3925 * configure: Regenerate.
3927 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
3929 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
3930 void * to gdb_byte *.
3931 * linux-low.c (siginfo_fixup): Likewise.
3932 (linux_xfer_siginfo): Likewise.
3933 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
3935 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
3937 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
3939 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
3941 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
3943 * linux-x86-low.c [__x86_64__]: Include
3944 "nat/amd64-linux-siginfo.h".
3945 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
3946 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
3947 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
3948 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
3949 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
3950 (cpt_si_fd, si_timerid, si_overrun): Move from
3951 nat/amd64-linux-siginfo.c.
3952 * Makefile.in (amd64-linux-siginfo.o:): New rule.
3954 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
3956 * server.c (skip_to_semicolon): Remove.
3957 (process_point_options): Use strchrnul instead of
3960 2016-01-26 Yao Qi <yao.qi@linaro.org>
3962 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
3963 * linux-low.c (install_software_single_step_breakpoints): Don't
3964 call regcache_read_pc.
3965 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
3968 2016-01-26 Yao Qi <yao.qi@linaro.org>
3970 * linux-low.c (install_software_single_step_breakpoints): Call
3971 regcache_read_pc instead of get_pc.
3973 2016-01-26 Yao Qi <yao.qi@linaro.org>
3975 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
3976 (unblock_async_io): Rename to ...
3977 (block_unblock_async_io): ... it. New function.
3978 (enable_async_io): Don't install SIGIO handler. Unblock it
3980 (disable_async_io): Don't ignore SIGIO. Block it instead.
3981 (initialize_async_io): Install SIGIO handler. Don't call
3984 2016-01-26 Yao Qi <yao.qi@linaro.org>
3986 * remote-utils.c (getpkt): If the buffer isn't empty, and the
3987 first character is '\003', call *the_target->request_interrupt.
3989 2016-01-25 Yao Qi <yao.qi@linaro.org>
3991 * remote-utils.c (new_thread_notify): Remove.
3992 (dead_thread_notify): Likewise.
3993 * remote-utils.h (new_thread_notify): Remove declaration.
3994 (dead_thread_notify): Likewise.
3996 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
3998 * gdb.trace/pending.exp: Fix expected message on continue.
4000 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
4002 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
4003 it works properly on big-endian machines where sizeof (CORE_ADDR)
4006 2016-01-21 Pedro Alves <palves@redhat.com>
4008 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
4009 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
4010 * configure: Regenerate.
4012 2016-01-21 Yao Qi <yao.qi@linaro.org>
4014 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
4015 is_thumb and set it according to CPSR saved on the stack.
4016 (get_next_pcs_syscall_next_pc): Pass is_thumb to
4017 arm_sigreturn_next_pc.
4019 2016-01-18 Yao Qi <yao.qi@linaro.org>
4021 * linux-low.c (linux_set_pc_64bit): New function.
4022 (linux_get_pc_64bit): New function.
4023 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
4025 * linux-sparc-low.c (debug_threads): Remove declaration.
4026 (sparc_get_pc): Remove.
4027 (the_low_target): Use linux_get_pc_64bit instead of
4029 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
4030 (the_low_target): Use linux_get_pc_64bit and
4033 2016-01-18 Yao Qi <yao.qi@linaro.org>
4035 * linux-arm-low.c (debug_threads): Remove declaration.
4036 (arm_get_pc, arm_set_pc): Remove.
4037 (the_low_target): Use linux_get_pc_32bit and
4039 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
4040 (the_low_target): Use linux_get_pc_32bit and
4042 * linux-cris-low.c (debug_threads): Remove declaration.
4043 (cris_get_pc, cris_set_pc,): Remove.
4044 (the_low_target): Use linux_get_pc_32bit and
4046 * linux-crisv32-low.c (debug_threads): Remove declaration.
4047 (cris_get_pc, cris_set_pc): Remove.
4048 (the_low_target): Use linux_get_pc_32bit and
4050 * linux-low.c: Include inttypes.h.
4051 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
4052 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
4053 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
4054 (the_low_target): Use linux_get_pc_32bit and
4056 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
4057 (the_low_target): Use linux_get_pc_32bit and
4059 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
4060 (the_low_target): Use linux_get_pc_32bit and
4062 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
4063 (the_low_target): Use linux_get_pc_32bit and
4065 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
4066 (the_low_target): Use linux_get_pc_32bit and
4069 2016-01-18 Gary Benson <gbenson@redhat.com>
4071 * configure.ac (AC_FUNC_FORK): New check.
4072 * config.in: Regenerate.
4073 * configure: Likewise.
4075 2016-01-14 Yao Qi <yao.qi@linaro.org>
4077 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
4078 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
4079 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
4080 arm_get_next_pcs_ctor.
4082 2016-01-12 Josh Stone <jistone@redhat.com>
4083 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4085 * inferiors.h: Include "gdb_vecs.h".
4086 (struct process_info): Add syscalls_to_catch.
4087 * inferiors.c (remove_process): Free syscalls_to_catch.
4088 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
4089 syscall_return stops.
4090 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
4091 * server.c (handle_general_set): Handle QCatchSyscalls.
4092 (handle_query): Report support for QCatchSyscalls.
4093 * target.h (struct target_ops): Add supports_catch_syscall.
4094 (target_supports_catch_syscall): New macro.
4095 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
4096 (struct lwp_info): Add syscall_state.
4097 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
4098 Maintain syscall_state and syscalls_to_catch across exec.
4099 (get_syscall_trapinfo): New function, proxy to the_low_target.
4100 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
4101 (linux_low_filter_event): Toggle syscall_state entry/return for
4102 syscall traps, and set it ignored for all others.
4103 (gdb_catching_syscalls_p): New function.
4104 (gdb_catch_this_syscall_p): New function.
4105 (linux_wait_1): Handle SYSCALL_SIGTRAP.
4106 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
4107 (linux_supports_catch_syscall): New function.
4108 (linux_target_ops): Install it.
4109 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
4110 (the_low_target): Install it.
4112 2016-01-12 Mike Frysinger <vapier@gentoo.org>
4114 * acinclude.m4: Include new ../warning.m4 file.
4115 * configure: Regenerated.
4116 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
4118 2016-01-12 Mike Frysinger <vapier@gentoo.org>
4120 * ax.c (is_goto_target): Mark static.
4121 * linux-low.c (register_addr): Likewise.
4122 (linux_fetch_registers, linux_store_registers): Likewise.
4123 * mem-break.c (any_persistent_commands): Fix old prototype.
4124 (add_commands_to_breakpoint): Mark static.
4125 * regcache.c (find_register_by_name): Delete unused func.
4126 * remote-utils.c (hex_or_minus_one): Mark static.
4127 * server.c (monitor_show_help): Mark static.
4128 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
4129 handle_v_requests): Likewise.
4131 2016-01-12 Pedro Alves <palves@redhat.com>
4133 Remove use of the registered trademark symbol throughout.
4135 2016-01-08 Yao Qi <yao.qi@linaro.org>
4137 * remote-utils.c (getpkt): If c is '\003', call target hook
4140 2016-01-06 Yao Qi <yao.qi@linaro.org>
4142 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
4143 linux-aarch32-low.c.
4144 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4145 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
4146 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
4147 (thumb2_breakpoint): Declare.
4148 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
4149 linux-aarch32-low.h.
4150 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4151 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
4152 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
4154 2016-01-01 Joel Brobecker <brobecker@adacore.com>
4156 * gdbreplay.c (gdbreplay_version): Change copyright year in
4158 * server.c (gdbserver_version): Likewise.
4160 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
4162 * server.c (crc32_table): Delete.
4163 (crc32): Use libiberty's xcrc32 function.
4165 2015-12-22 Joel Brobecker <brobecker@adacore.com>
4167 * lynx-low.c (lynx_delete_thread_callback): New function.
4168 (lynx_mourn): Properly delete our process and all of its
4169 threads. Remove call to clear_inferiors.
4171 2015-12-22 Joel Brobecker <brobecker@adacore.com>
4173 * target.c (thread_search_callback): Add check that
4174 the thread_stopped target callback is not NULL before
4177 2015-12-21 Yao Qi <yao.qi@linaro.org>
4179 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
4182 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4184 * server.c (handle_query): Call target_supports_software_single_step.
4186 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4188 * linux-low.c (single_step): New function.
4189 (linux_resume_one_lwp_throw): Call single_step.
4190 (start_step_over): Likewise.
4192 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4194 * Makefile.in (SFILES): Append arch/arm-linux.c,
4195 arch/arm-get-next-pcs.c.
4196 (arm-linux.o): New rule.
4197 (arm-get-next-pcs.o): New rule.
4198 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
4200 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
4201 to linux-aarch32-low.c.
4202 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4203 (arm_breakpoint_len, thumb_breakpoint): Likewise.
4204 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
4205 (thumb2_breakpoint_len): Likewise.
4206 (arm_is_thumb_mode): Make non-static.
4207 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
4208 from linux-aarch32-low.c.
4209 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4210 (arm_breakpoint_len, thumb_breakpoint): Likewise.
4211 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
4212 (thumb2_breakpoint_len): Likewise.
4213 (arm_is_thumb_mode): New declaration.
4214 * linux-arm-low.c: Include arch/arm-linux.h
4215 aarch/arm-get-next-pcs.h, sys/syscall.h.
4216 (get_next_pcs_ops): New struct.
4217 (get_next_pcs_addr_bits_remove): New function.
4218 (get_next_pcs_is_thumb): New function.
4219 (get_next_pcs_read_memory_unsigned_integer): Likewise.
4220 (arm_sigreturn_next_pc): Likewise.
4221 (get_next_pcs_syscall_next_pc): Likewise.
4222 (arm_gdbserver_get_next_pcs): Likewise.
4223 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
4225 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
4226 * server.h: Include gdb_vecs.h.
4228 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4230 * Makefile.in (SFILES): Append common/common-regcache.c.
4231 (OBS): Append common-regcache.o.
4232 (common-regcache.o): New rule.
4233 * regcache.c (init_register_cache): Initialize cache to
4235 (regcache_raw_read_unsigned): New function.
4236 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
4237 register_status enum.
4239 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4241 * linux-aarch64-low.c (the_low_targets): Rename
4242 breakpoint_reinsert_addr to get_next_pcs.
4243 * linux-arm-low.c (the_low_targets): Likewise.
4244 * linux-bfin-low.c (the_low_targets): Likewise.
4245 * linux-cris-low.c (the_low_targets): Likewise.
4246 * linux-crisv32-low.c (the_low_targets): Likewise.
4247 * linux-low.c (can_software_single_step): Likewise.
4248 (install_software_single_step_breakpoints): New function.
4249 (start_step_over): Use install_software_single_step_breakpoints.
4250 * linux-low.h: New CORE_ADDR vector.
4251 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
4253 * linux-mips-low.c (the_low_targets): Likewise.
4254 * linux-nios2-low.c (the_low_targets): Likewise.
4255 * linux-sparc-low.c (the_low_targets): Likewise.
4257 2015-12-17 Pedro Alves <palves@redhat.com>
4259 * linux-low.c (linux_kill_one_lwp): Remove references to
4261 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
4263 (linux_init_signals): Delete.
4264 (initialize_low): Adjust.
4265 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
4267 2015-12-16 Pedro Alves <palves@redhat.com>
4269 * configure.ac (compiler warning flags): When testing a
4270 -Wno-foo option, check whether -Wfoo works instead.
4271 * configure: Regenerate.
4273 2015-12-11 Don Breazeal <donb@codesourcery.com>
4275 * server.c (process_serial_event): Don't exit from gdbserver
4276 in remote mode if there are still active inferiors.
4278 2015-12-11 Yao Qi <yao.qi@linaro.org>
4280 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
4281 arm_breakpoint_at if the process is 32-bit.
4283 2015-12-11 Yao Qi <yao.qi@linaro.org>
4285 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
4288 2015-12-07 Yao Qi <yao.qi@linaro.org>
4290 * configure.srv: Append arm.o to srv_tgtobj for
4291 aarch64*-*-linux* target.
4292 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
4293 from linux-arm-low.c.
4294 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4295 (arm_breakpoint_len, thumb_breakpoint): Likewise.
4296 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
4297 (thumb2_breakpoint_len): Likewise.
4298 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
4299 (arm_breakpoint_kinds): Likewise.
4300 (arm_breakpoint_kind_from_pc): Likewise.
4301 (arm_sw_breakpoint_from_kind): Likewise.
4302 (arm_breakpoint_kind_from_current_state): Likewise.
4303 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
4304 (arm_sw_breakpoint_from_kind): Declare.
4305 (arm_breakpoint_kind_from_current_state): Declare.
4306 (arm_breakpoint_at): Declare.
4307 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
4308 arm_sw_breakpoint_from_kind if process is 32-bit.
4309 (aarch64_breakpoint_kind_from_pc): New function.
4310 (aarch64_breakpoint_kind_from_current_state): New function.
4311 (the_low_target): Initialize fields breakpoint_kind_from_pc
4312 and breakpoint_kind_from_current_state.
4313 * linux-arm-low.c (arm_breakpoint_kinds): Move to
4314 linux-aarch32-low.c.
4315 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
4316 (arm_breakpoint, arm_breakpoint_len): Likewise.
4317 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
4318 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
4319 (arm_is_thumb_mode): Likewise.
4320 (arm_breakpoint_at): Likewise.
4321 (arm_breakpoint_kind_from_pc): Likewise.
4322 (arm_sw_breakpoint_from_kind): Likewise.
4323 (arm_breakpoint_kind_from_current_state): Likewise.
4326 2015-08-04 Yao Qi <yao.qi@linaro.org>
4328 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
4329 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
4330 * server.c (extended_protocol): Remove "static".
4331 * server.h (extended_protocol): Declare it.
4333 2015-12-04 Josh Stone <jistone@redhat.com>
4335 * target.h (struct target_ops) <arch_setup>: Rename to ...
4336 (struct target_ops) <post_create_inferior>: ... this.
4337 (target_arch_setup): Rename to ...
4338 (target_post_create_inferior): ... this, calling post_create_inferior.
4339 * server.c (start_inferior): Update target_arch_setup calls to
4340 target_post_create_inferior.
4341 * linux-low.c (linux_low_ptrace_options): Forward declare.
4342 (linux_arch_setup): Update its comment for general use.
4343 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
4344 (struct linux_target_ops): Use linux_post_create_inferior.
4345 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
4346 to post_create_inferior.
4347 * nto-low.c (struct nto_target_ops): Likewise.
4348 * spu-low.c (struct spu_target_ops): Likewise.
4349 * win32-low.c (struct win32_target_ops): Likewise.
4351 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
4353 * linux-arm-low.c: Remove duplicate arch/arm.h include.
4355 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4357 * linux-arm-low.c (arm_reinsert_addr): Remove function.
4358 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
4359 * linux-cris-low.c (cris_reinsert_addr> Remove function.
4360 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4361 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
4362 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4363 * linux-mips-low.c (mips_reinsert_addr): Remove function.
4364 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4365 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
4366 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4367 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
4368 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4370 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4372 * linux-low.c (linux_look_up_symbols): Don't call
4373 linux_supports_traceclone.
4374 * linux-low.h (thread_db_init): Remove use_events argument.
4375 * thread-db.c (thread_db_use_event): Remove global variable.
4376 (struct thread_db) <td_thr_event_enable_p>: Remove field.
4377 (struct thread_db) <td_create_bp>: Remove field.
4378 (thread_db_create_event): Remove function.
4379 (thread_db_enable_reporting): Likewise.
4380 (find_one_thread): Don't check for thread_db_use_events.
4381 (attach_thread): Likewise.
4382 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
4383 (try_thread_db_load_1): Don't check for thread_db_use_events.
4384 (thread_db_init): Remove use_events argument and thread events
4386 (remove_thread_event_breakpoints): Remove function.
4387 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
4389 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4391 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
4393 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4394 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
4395 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4396 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
4397 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
4399 * linux-crisv32-low.c (cris_supports_hardware_single_step):
4401 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4402 * linux-low.c (can_hardware_single_step): Use
4403 supports_hardware_single_step.
4404 (can_software_single_step): New function.
4405 (start_step_over): Call can_software_single_step.
4406 (linux_supports_hardware_single_step): New function.
4407 (struct target_ops) <supports_software_single_step>: Initialize.
4408 * linux-low.h (struct linux_target_ops)
4409 <supports_hardware_single_step>: Initialize.
4410 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
4411 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4412 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
4413 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
4414 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
4415 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4416 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
4417 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4418 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
4419 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
4421 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
4422 (struct linux_target_ops) <tile_supports_hardware_single_step>:
4424 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
4425 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4426 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
4428 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4429 * target.h (struct target_ops): <supports_software_single_step>:
4431 (target_supports_software_single_step): New macro.
4433 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4435 * linux-low.c (linux_wait_1): Fix pc advance condition.
4436 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
4437 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
4439 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4441 * linux-arm-low.c (arm_is_thumb_mode): New function.
4442 (arm_breakpoint_at): Use arm_is_thumb_mode.
4443 (arm_breakpoint_kind_from_current_state): New function.
4444 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
4446 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
4447 (linux_breakpoint_kind_from_current_state): New function.
4448 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
4449 * linux-low.h (struct linux_target_ops)
4450 <breakpoint_kind_from_current_state>: New field.
4451 * target.h (struct target_ops): Likewise.
4452 (target_breakpoint_kind_from_current_state): New macro.
4454 2015-11-30 Pedro Alves <palves@redhat.com>
4456 * linux-low.c (linux_resume): Wake up the event loop before
4459 2015-11-30 Pedro Alves <palves@redhat.com>
4461 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
4463 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
4465 * target.c (struct thread_search): New structure.
4466 (thread_search_callback): New function.
4467 (prev_general_thread): New global.
4468 (prepare_to_access_memory, done_accessing_memory): New functions.
4469 * target.h (prepare_to_access_memory, done_accessing_memory):
4470 Replace macros with function declarations.
4472 2015-11-30 Pedro Alves <palves@redhat.com>
4475 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
4476 report TARGET_WAITKIND_NO_RESUMED.
4477 * remote-utils.c (prepare_resume_reply): Handle
4478 TARGET_WAITKIND_NO_RESUMED.
4479 * server.c (report_no_resumed): New global.
4480 (handle_query) <qSupported>: Handle "no-resumed+". Report
4481 "no-resumed+" support.
4482 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
4483 return error if the client doesn't support no-resumed events.
4484 (push_stop_notification): New function.
4485 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
4486 events if the client supports them.
4488 2015-11-30 Pedro Alves <palves@redhat.com>
4490 * linux-low.c (thread_still_has_status_pending_p): Don't check
4492 (lwp_resumed): New function.
4493 (status_pending_p_callback): Return early if the LWP is not
4494 supposed to be resumed.
4496 2015-11-30 Pedro Alves <palves@redhat.com>
4498 * linux-low.c (handle_extended_wait): Assert that the LWP's
4499 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
4500 thread create events, leave the new child's status pending.
4501 (linux_low_filter_event): If GDB wants to hear about thread exit
4502 events, leave the LWP marked dead and don't delete it.
4503 (linux_wait_for_event_filtered): Don't check for thread exit.
4504 (filter_exit_event): New function.
4505 (linux_wait_1): Use it, when returning an exit event.
4506 (linux_resume_one_lwp_throw): Assert that the LWP's
4507 waitstatus is TARGET_WAITKIND_IGNORE.
4508 * remote-utils.c (prepare_resume_reply): Handle
4509 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
4510 * server.c (report_thread_events): New global.
4511 (handle_general_set): Handle QThreadEvents.
4512 (handle_query) <qSupported>: Handle and report QThreadEvents+;
4513 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
4514 TARGET_WAITKIND_THREAD_EXITED.
4515 * server.h (report_thread_events): Declare.
4517 2015-11-30 Pedro Alves <palves@redhat.com>
4519 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
4520 the thread's last_resume_kind was resume_stop.
4522 2015-11-30 Pedro Alves <palves@redhat.com>
4524 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
4527 2015-11-30 Pedro Alves <palves@redhat.com>
4529 * server.c (handle_v_requests): Handle vCtrlC.
4531 2015-11-30 Pedro Alves <palves@redhat.com>
4533 * gdbthread.h (find_any_thread_of_pid): Declare.
4534 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
4536 * server.c (handle_query): If current_thread is NULL, look for
4537 another thread of the selected process.
4539 2015-11-26 Daniel Colascione <dancol@dancol.org>
4540 Simon Marchi <simon.marchi@ericsson.com>
4542 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
4543 * server.c (handle_qxfer_threads_worker): Refactor to include thread
4545 * target.h (struct target_ops) <thread_name>: New field.
4546 (target_thread_name): New macro.
4548 2015-11-23 Joel Brobecker <brobecker@adacore.com>
4550 * regcache.h (regcache_invalidate_pid): Add declaration.
4551 * regcache.c (regcache_invalidate_pid): New function, extracted
4552 from regcache_invalidate.
4553 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
4554 Add trivial documentation comment.
4555 * lynx-low.c: Use regcache_invalidate_pid instead of
4556 regcache_invalidate.
4558 2015-11-23 Joel Brobecker <brobecker@adacore.com>
4560 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
4561 and Elf64_auxv_t if the target is Android.
4563 2015-11-22 Doug Evans <xdje42@gmail.com>
4565 * target.h: #include <sys/types.h>.
4567 2015-11-19 Pedro Alves <palves@redhat.com>
4569 * linux-low.c (linux_process_qsupported): Change prototype.
4571 * linux-low.h (struct linux_target_ops) <process_qsupported>:
4573 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
4574 and adjust to loop over all features.
4575 * server.c (handle_query) <qSupported>: Adjust to call
4576 target_process_qsupported once, passing it a vector of unprocessed
4578 * target.h (struct target_ops) <process_qsupported>: Change
4580 (target_process_qsupported): Adjust.
4582 2015-11-19 Pedro Alves <palves@redhat.com>
4584 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
4586 * configure: Regenerate.
4588 2015-11-19 Pedro Alves <palves@redhat.com>
4590 * configure: Regenerate.
4592 2015-11-19 Yao Qi <yao.qi@linaro.org>
4594 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
4597 2015-11-19 Yao Qi <yao.qi@linaro.org>
4599 * linux-aarch64-low.c (enum aarch64_operand_type): New.
4600 (struct aarch64_operand): Move enum out.
4602 2015-11-19 Yao Qi <yao.qi@linaro.org>
4604 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
4605 struct user_fpsimd_state *.
4606 (aarch64_store_fpregset): Likewise.
4608 2015-11-19 Yao Qi <yao.qi@linaro.org>
4610 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
4611 struct user_pt_regs *.
4612 (aarch64_store_gregset): Likewise.
4614 2015-11-18 Pedro Alves <palves@redhat.com>
4616 * Makefile.in (all_object_files): Add $IPA_OBJS.
4618 2015-11-17 Pedro Alves <palves@redhat.com>
4620 * win32-low.c (win32_resume): Use gdb_signal_from_host,
4621 GDB_SIGNAL_0 and gdb_signal_to_string.
4623 2015-11-17 Pedro Alves <palves@redhat.com>
4625 * win32-low.c (handle_output_debug_string): Remove parameter.
4626 (win32_kill): Remove our_status local and adjust call to
4627 handle_output_debug_string.
4628 (get_child_debug_event): Adjust call to
4629 handle_output_debug_string.
4631 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4633 * linux-mips-low.c (mips_fill_gregset): Add cast.
4634 (mips_store_gregset): Likewise.
4635 (mips_fill_fpregset): Likewise.
4636 (mips_store_fpregset): Likewise.
4638 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4640 * linux-mips-low.c (mips_add_watchpoint): Rename private to
4643 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4645 * linux-mips-low.c (mips_linux_new_thread): Change type of
4646 watch_type to enum target_hw_bp_type.
4648 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4650 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
4651 Change return type to arm_hwbp_type.
4653 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4655 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
4656 (arm_store_gregset): Likewise.
4657 * linux-arm-low.c (arm_get_hwcap): Likewise.
4658 (arm_read_description): Likewise.
4660 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4662 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
4664 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4666 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
4667 (ppc_fill_vsxregset): Likewise.
4668 (ppc_store_vsxregset): Likewise.
4669 (ppc_fill_vrregset): Likewise.
4670 (ppc_store_vrregset): Likewise.
4671 (ppc_fill_evrregset): Likewise.
4672 (ppc_store_evrregset): Likewise.
4674 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4676 * linux-ppc-low.c (ppc_usrregs_info): Remove
4677 forward-declaration.
4678 (ppc_arch_setup): Move lower in file.
4680 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
4682 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
4683 (ps_pdwrite): Likewise.
4685 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
4687 * linux-arm-low.c (arm_new_thread): Move pointer dereference
4688 to after assert checks.
4690 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
4692 * proc-service.c (ps_pdread): Add/adjust casts.
4693 (ps_pdwrite): Add/adjust casts.
4695 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
4697 * server.c (handle_search_memory_1): Cast return value of
4700 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
4702 * server.c (write_qxfer_response): Change type of data to
4705 2015-10-29 Pedro Alves <palves@redhat.com>
4707 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
4709 2015-10-29 Pedro Alves <palves@redhat.com>
4711 * tracepoint.c (clear_installed_tracepoints): Add casts.
4713 2015-10-29 Pedro Alves <palves@redhat.com>
4715 * server.c (handle_v_cont, process_serial_event): Add enum
4716 gdb_signal casts to signal parsing code.
4718 2015-10-29 Pedro Alves <palves@redhat.com>
4720 * linux-low.h (NULL_REGSET): Define.
4721 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
4722 * linux-arm-low.c (arm_regsets): Likewise.
4723 * linux-crisv32-low.c (cris_regsets): Likewise.
4724 * linux-m68k-low.c (m68k_regsets): Likewise.
4725 * linux-mips-low.c (mips_regsets): Likewise.
4726 * linux-nios2-low.c (nios2_regsets): Likewise.
4727 * linux-ppc-low.c (ppc_regsets): Likewise.
4728 * linux-s390-low.c (s390_regsets): Likewise.
4729 * linux-sh-low.c (sh_regsets): Likewise.
4730 * linux-sparc-low.c (sparc_regsets): Likewise.
4731 * linux-tic6x-low.c (tic6x_regsets): Likewise.
4732 * linux-tile-low.c (tile_regsets): Likewise.
4733 * linux-x86-low.c (x86_regsets): Likewise.
4734 * linux-xtensa-low.c (xtensa_regsets): Likewise.
4736 2015-10-29 Pedro Alves <palves@redhat.com>
4738 * linux-low.h (NULL_REGSET): Define.
4739 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
4740 * linux-arm-low.c (arm_regsets): Likewise.
4741 * linux-crisv32-low.c (cris_regsets): Likewise.
4742 * linux-m68k-low.c (m68k_regsets): Likewise.
4743 * linux-mips-low.c (mips_regsets): Likewise.
4744 * linux-nios2-low.c (nios2_regsets): Likewise.
4745 * linux-ppc-low.c (ppc_regsets): Likewise.
4746 * linux-s390-low.c (s390_regsets): Likewise.
4747 * linux-sh-low.c (sh_regsets): Likewise.
4748 * linux-sparc-low.c (sparc_regsets): Likewise.
4749 * linux-tic6x-low.c (tic6x_regsets): Likewise.
4750 * linux-tile-low.c (tile_regsets): Likewise.
4751 * linux-x86-low.c (x86_regsets): Likewise.
4752 * linux-xtensa-low.c (xtensa_regsets): Likewise.
4754 2015-10-26 Doug Evans <dje@google.com>
4756 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
4758 2015-10-26 Doug Evans <dje@google.com>
4760 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
4762 2015-10-26 Doug Evans <dje@google.com>
4764 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
4766 (attach_thread, find_new_threads_callback): Ditto.
4768 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
4770 * mem-break.h (set_breakpoint_data): Remove.
4772 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
4774 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
4775 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
4776 (initialize_low): Remove set_breakpoint_data call.
4777 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
4778 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
4779 (initialize_low): Remove set_breakpoint_data call.
4780 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
4781 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
4782 (initialize_low): Remove set_breakpoint_data call.
4784 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
4786 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
4787 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
4788 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
4789 * target.h (target_breakpoint_kind_from_pc): New macro.
4791 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
4793 * linux-low.c (default_breakpoint_kind_from_pc): New function.
4794 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
4795 the default breakpoint kind.
4797 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4799 * linux-arm-low.c (arm_supports_z_point_type): Add software
4802 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4804 * linux-arm-low.c: Refactor breakpoint definitions.
4805 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
4806 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
4808 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4810 * Makefile.in: Add arm.c/o.
4811 * configure.srv: Likewise.
4812 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
4813 (arm_breakpoint_kind_from_pc): New function.
4814 (arm_sw_breakpoint_from_kind): Return proper kind.
4815 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
4817 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4819 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
4821 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
4822 (struct raw_breakpoint) <size>: Remove.
4823 (struct raw_breakpoint) <kind>: Add.
4824 (bp_size): New function.
4825 (bp_opcode): Likewise.
4826 (find_raw_breakpoint_at): Adjust for kind.
4827 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
4828 (remove_memory_breakpoint): Adjust for kind call bp_size.
4829 (set_raw_breakpoint_at): Adjust for kind.
4830 (set_breakpoint): Likewise.
4831 (set_breakpoint_at): Call breakpoint_kind_from_pc.
4832 (delete_raw_breakpoint): Adjust for kind.
4833 (delete_breakpoint): Likewise.
4834 (find_gdb_breakpoint): Likewise.
4835 (set_gdb_breakpoint_1): Likewise.
4836 (set_gdb_breakpoint): Likewise.
4837 (delete_gdb_breakpoint_1): Likewise.
4838 (delete_gdb_breakpoint): Likewise.
4839 (uninsert_raw_breakpoint): Likewise.
4840 (reinsert_raw_breakpoint): Likewise.
4841 (set_breakpoint_data): Remove.
4842 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
4843 (check_mem_read): Adjust for kind call bp_size.
4844 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
4845 (clone_one_breakpoint): Adjust for kind.
4846 * mem-break.h (set_gdb_breakpoint): Likewise.
4847 (delete_gdb_breakpoint): Likewise.
4848 * server.c (process_serial_event): Likewise.
4850 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4852 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
4853 (struct linux_target_ops) <breakpoint>: Remove.
4854 (struct linux_target_ops) <breakpoint_len>: Remove.
4855 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4856 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4857 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
4858 (arm_sw_breakpoint_from_kind): New function.
4859 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
4860 (struct linux_target_ops) <breakpoint>: Remove.
4861 (struct linux_target_ops) <breakpoint_len>: Remove.
4862 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4863 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4864 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
4865 (struct linux_target_ops) <breakpoint>: Remove.
4866 (struct linux_target_ops) <breakpoint_len>: Remove.
4867 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4868 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4869 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
4870 (struct linux_target_ops) <breakpoint>: Remove.
4871 (struct linux_target_ops) <breakpoint_len>: Remove.
4872 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4873 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4874 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
4875 and sw_breakpoint_from_kind to increment the pc.
4876 (linux_breakpoint_kind_from_pc): New function.
4877 (linux_sw_breakpoint_from_kind): New function.
4878 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
4879 (initialize_low): Call breakpoint_kind_from_pc and
4880 sw_breakpoint_from_kind to replace breakpoint_data/len.
4881 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
4883 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
4884 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
4885 (struct linux_target_ops) <breakpoint>: Remove.
4886 (struct linux_target_ops) <breakpoint_len>: Remove.
4887 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4888 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4889 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
4890 (struct linux_target_ops) <breakpoint>: Remove.
4891 (struct linux_target_ops) <breakpoint_len>: Remove.
4892 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4893 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4894 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
4895 (struct linux_target_ops) <breakpoint>: Remove.
4896 (struct linux_target_ops) <breakpoint_len>: Remove.
4897 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4898 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4899 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
4900 (struct linux_target_ops) <breakpoint>: Remove.
4901 (struct linux_target_ops) <breakpoint_len>: Remove.
4902 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4903 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4904 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
4905 (struct linux_target_ops) <breakpoint>: Remove.
4906 (struct linux_target_ops) <breakpoint_len>: Remove.
4907 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4908 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4909 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
4910 (struct linux_target_ops) <breakpoint>: Remove.
4911 (struct linux_target_ops) <breakpoint_len>: Remove.
4912 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4913 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4914 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
4915 (struct linux_target_ops) <breakpoint>: Remove.
4916 (struct linux_target_ops) <breakpoint_len>: Remove.
4917 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4918 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4919 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
4920 (struct linux_target_ops) <breakpoint>: Remove.
4921 (struct linux_target_ops) <breakpoint_len>: Remove.
4922 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4923 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4924 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
4925 (struct linux_target_ops) <breakpoint>: Remove.
4926 (struct linux_target_ops) <breakpoint_len>: Remove.
4927 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4928 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4929 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
4930 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
4931 (struct linux_target_ops) <breakpoint>: Remove.
4932 (struct linux_target_ops) <breakpoint_len>: Remove.
4933 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4934 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4935 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
4936 (struct linux_target_ops) <breakpoint>: Remove.
4937 (struct linux_target_ops) <breakpoint_len>: Remove.
4938 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4939 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4941 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4943 * linux-cris-low.c (cris_get_pc): Remove void arg.
4945 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
4947 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
4950 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
4952 * inferiors.c (thread_pid_matches_callback): New function.
4953 (find_thread_process): New function.
4954 (remove_thread): Reset current_thread.
4955 (remove_process): Assert threads have been removed first.
4957 2015-10-15 Yao Qi <yao.qi@linaro.org>
4959 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
4961 (aarch64_remove_point): Likewise.
4962 * regcache.c (regcache_register_size): New function.
4964 2015-10-12 Yao Qi <yao.qi@linaro.org>
4966 * linux-aarch64-low.c: Update all callers as emit_load_store
4967 is renamed to aarch64_emit_load_store.
4969 2015-10-12 Yao Qi <yao.qi@linaro.org>
4971 * linux-aarch64-low.c: Update all callers of function renaming
4972 from emit_insn to aarch64_emit_insn.
4974 2015-10-12 Yao Qi <yao.qi@linaro.org>
4976 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
4977 arch/aarch64-insn.h.
4978 (struct aarch64_memory_operand): Likewise.
4980 (emit_insn): Move to arch/aarch64-insn.c.
4981 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
4982 (emit_load_store): Move to arch/aarch64-insn.c.
4983 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
4984 (can_encode_int32): Remove.
4986 2015-10-12 Yao Qi <yao.qi@linaro.org>
4988 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
4989 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
4990 (aarch64_relocate_instruction): Likewise.
4991 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
4992 (struct aarch64_insn_visitor): Likewise.
4994 2015-10-12 Yao Qi <yao.qi@linaro.org>
4996 * linux-aarch64-low.c (struct aarch64_insn_data): New.
4997 (struct aarch64_insn_visitor): New.
4998 (struct aarch64_insn_relocation_data): New.
4999 (aarch64_ftrace_insn_reloc_b): New function.
5000 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
5001 (aarch64_ftrace_insn_reloc_cb): Likewise.
5002 (aarch64_ftrace_insn_reloc_tb): Likewise.
5003 (aarch64_ftrace_insn_reloc_adr): Likewise.
5004 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
5005 (aarch64_ftrace_insn_reloc_others): Likewise.
5007 (aarch64_relocate_instruction): Use visitor.
5009 2015-10-12 Yao Qi <yao.qi@linaro.org>
5011 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
5012 int. Add argument buf.
5013 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
5014 aarch64_relocate_instruction.
5016 2015-10-12 Yao Qi <yao.qi@linaro.org>
5018 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
5019 argument insn. Remove local variable insn. Don't call
5021 (aarch64_install_fast_tracepoint_jump_pad): Call
5024 2015-09-30 Yao Qi <yao.qi@linaro.org>
5026 * linux-aarch64-low.c (emit_movk): Shorten a long line.
5027 (emit_load_store_pair): Likewise.
5029 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
5031 * dll.c (match_dll): Add cast(s).
5032 (unloaded_dll): Likewise.
5033 * linux-low.c (second_thread_of_pid_p): Likewise.
5034 (delete_lwp_callback): Likewise.
5035 (count_events_callback): Likewise.
5036 (select_event_lwp_callback): Likewise.
5037 (linux_set_resume_request): Likewise.
5038 * server.c (accumulate_file_name_length): Likewise.
5039 (emit_dll_description): Likewise.
5040 (handle_qxfer_threads_worker): Likewise.
5041 (visit_actioned_threads): Likewise.
5042 * thread-db.c (any_thread_of): Likewise.
5043 * tracepoint.c (same_process_p): Likewise.
5044 (match_blocktype): Likewise.
5045 (build_traceframe_info_xml): Likewise.
5047 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
5049 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
5051 (gdb_unparse_agent_expr): Likewise.
5052 * hostio.c (require_data): Likewise.
5053 (handle_pread): Likewise.
5054 * linux-low.c (disable_regset): Likewise.
5055 (fetch_register): Likewise.
5056 (store_register): Likewise.
5057 (get_dynamic): Likewise.
5058 (linux_qxfer_libraries_svr4): Likewise.
5059 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
5060 (set_fast_tracepoint_jump): Likewise.
5061 (uninsert_fast_tracepoint_jumps_at): Likewise.
5062 (reinsert_fast_tracepoint_jumps_at): Likewise.
5063 (validate_inserted_breakpoint): Likewise.
5064 (clone_agent_expr): Likewise.
5065 * regcache.c (init_register_cache): Likewise.
5066 * remote-utils.c (putpkt_binary_1): Likewise.
5067 (decode_M_packet): Likewise.
5068 (decode_X_packet): Likewise.
5069 (look_up_one_symbol): Likewise.
5070 (relocate_instruction): Likewise.
5071 (monitor_output): Likewise.
5072 * server.c (handle_search_memory): Likewise.
5073 (handle_qxfer_exec_file): Likewise.
5074 (handle_qxfer_libraries): Likewise.
5075 (handle_qxfer): Likewise.
5076 (handle_query): Likewise.
5077 (handle_v_cont): Likewise.
5078 (handle_v_run): Likewise.
5079 (captured_main): Likewise.
5080 * target.c (write_inferior_memory): Likewise.
5081 * thread-db.c (try_thread_db_load_from_dir): Likewise.
5082 * tracepoint.c (init_trace_buffer): Likewise.
5083 (add_tracepoint_action): Likewise.
5084 (add_traceframe): Likewise.
5085 (add_traceframe_block): Likewise.
5086 (cmd_qtdpsrc): Likewise.
5087 (cmd_qtdv): Likewise.
5088 (cmd_qtstatus): Likewise.
5089 (response_source): Likewise.
5090 (response_tsv): Likewise.
5091 (cmd_qtnotes): Likewise.
5092 (gdb_collect): Likewise.
5093 (initialize_tracepoint): Likewise.
5095 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
5097 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
5098 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
5099 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
5101 (enum aarch64_condition_codes): New enum.
5102 (w0): New static global.
5105 (struct aarch64_memory_operand) <type>: New
5106 MEMORY_OPERAND_POSTINDEX type.
5107 (postindex_memory_operand): New helper function.
5108 (emit_ret): New function.
5109 (emit_load_store_pair): New function, factored out of emit_stp
5110 with support for MEMORY_OPERAND_POSTINDEX.
5111 (emit_stp): Rewrite using emit_load_store_pair.
5112 (emit_ldp): New function.
5113 (emit_load_store): Likewise.
5114 (emit_ldr): Mention post-index instruction in comment.
5115 (emit_ldrh): New function.
5116 (emit_ldrb): New function.
5117 (emit_ldrsw): Mention post-index instruction in comment.
5118 (emit_str): Likewise.
5119 (emit_subs): New function.
5120 (emit_cmp): Likewise.
5121 (emit_and): Likewise.
5122 (emit_orr): Likewise.
5123 (emit_orn): Likewise.
5124 (emit_eor): Likewise.
5125 (emit_mvn): Likewise.
5126 (emit_lslv): Likewise.
5127 (emit_lsrv): Likewise.
5128 (emit_asrv): Likewise.
5129 (emit_mul): Likewise.
5130 (emit_sbfm): Likewise.
5131 (emit_sbfx): Likewise.
5132 (emit_ubfm): Likewise.
5133 (emit_ubfx): Likewise.
5134 (emit_csinc): Likewise.
5135 (emit_cset): Likewise.
5136 (emit_nop): Likewise.
5137 (emit_ops_insns): New helper function.
5138 (emit_pop): Likewise.
5139 (emit_push): Likewise.
5140 (aarch64_emit_prologue): New function.
5141 (aarch64_emit_epilogue): Likewise.
5142 (aarch64_emit_add): Likewise.
5143 (aarch64_emit_sub): Likewise.
5144 (aarch64_emit_mul): Likewise.
5145 (aarch64_emit_lsh): Likewise.
5146 (aarch64_emit_rsh_signed): Likewise.
5147 (aarch64_emit_rsh_unsigned): Likewise.
5148 (aarch64_emit_ext): Likewise.
5149 (aarch64_emit_log_not): Likewise.
5150 (aarch64_emit_bit_and): Likewise.
5151 (aarch64_emit_bit_or): Likewise.
5152 (aarch64_emit_bit_xor): Likewise.
5153 (aarch64_emit_bit_not): Likewise.
5154 (aarch64_emit_equal): Likewise.
5155 (aarch64_emit_less_signed): Likewise.
5156 (aarch64_emit_less_unsigned): Likewise.
5157 (aarch64_emit_ref): Likewise.
5158 (aarch64_emit_if_goto): Likewise.
5159 (aarch64_emit_goto): Likewise.
5160 (aarch64_write_goto_address): Likewise.
5161 (aarch64_emit_const): Likewise.
5162 (aarch64_emit_call): Likewise.
5163 (aarch64_emit_reg): Likewise.
5164 (aarch64_emit_pop): Likewise.
5165 (aarch64_emit_stack_flush): Likewise.
5166 (aarch64_emit_zero_ext): Likewise.
5167 (aarch64_emit_swap): Likewise.
5168 (aarch64_emit_stack_adjust): Likewise.
5169 (aarch64_emit_int_call_1): Likewise.
5170 (aarch64_emit_void_call_2): Likewise.
5171 (aarch64_emit_eq_goto): Likewise.
5172 (aarch64_emit_ne_goto): Likewise.
5173 (aarch64_emit_lt_goto): Likewise.
5174 (aarch64_emit_le_goto): Likewise.
5175 (aarch64_emit_gt_goto): Likewise.
5176 (aarch64_emit_ge_got): Likewise.
5177 (aarch64_emit_ops_impl): New static global variable.
5178 (aarch64_emit_ops): New target function, return
5179 &aarch64_emit_ops_impl.
5180 (struct linux_target_ops): Install it.
5182 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
5184 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
5185 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
5187 * linux-aarch64-ipa.c: New file.
5188 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
5190 (aarch64_get_thread_area): New target method.
5191 (extract_signed_bitfield): New helper function.
5192 (aarch64_decode_ldr_literal): New function.
5193 (enum aarch64_opcodes): New enum.
5194 (struct aarch64_register): New struct.
5195 (struct aarch64_operand): New struct.
5196 (x0): New static global.
5205 (aarch64_register): New helper function.
5206 (register_operand): Likewise.
5207 (immediate_operand): Likewise.
5208 (struct aarch64_memory_operand): New struct.
5209 (offset_memory_operand): New helper function.
5210 (preindex_memory_operand): Likewise.
5211 (enum aarch64_system_control_registers): New enum.
5212 (ENCODE): New macro.
5213 (emit_insn): New helper function.
5214 (emit_b): New function.
5215 (emit_bcond): Likewise.
5216 (emit_cb): Likewise.
5217 (emit_tb): Likewise.
5218 (emit_blr): Likewise.
5219 (emit_stp): Likewise.
5220 (emit_ldp_q_offset): Likewise.
5221 (emit_stp_q_offset): Likewise.
5222 (emit_load_store): Likewise.
5223 (emit_ldr): Likewise.
5224 (emit_ldrsw): Likewise.
5225 (emit_str): Likewise.
5226 (emit_ldaxr): Likewise.
5227 (emit_stxr): Likewise.
5228 (emit_stlr): Likewise.
5229 (emit_data_processing_reg): Likewise.
5230 (emit_data_processing): Likewise.
5231 (emit_add): Likewise.
5232 (emit_sub): Likewise.
5233 (emit_mov): Likewise.
5234 (emit_movk): Likewise.
5235 (emit_mov_addr): Likewise.
5236 (emit_mrs): Likewise.
5237 (emit_msr): Likewise.
5238 (emit_sevl): Likewise.
5239 (emit_wfe): Likewise.
5240 (append_insns): Likewise.
5241 (can_encode_int32_in): New helper function.
5242 (aarch64_relocate_instruction): New function.
5243 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
5244 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
5245 (struct linux_target_ops): Install aarch64_get_thread_area,
5246 aarch64_install_fast_tracepoint_jump_pad and
5247 aarch64_get_min_fast_tracepoint_insn_len.
5249 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
5251 * Makefile.in (aarch64-insn.o): New rule.
5252 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
5254 2015-09-21 Yao Qi <yao.qi@linaro.org>
5256 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
5258 2015-09-21 Yao Qi <yao.qi@linaro.org>
5260 * tracepoint.c (max_jump_pad_size): Remove.
5262 2015-09-18 Yao Qi <yao.qi@linaro.org>
5264 * linux-aarch64-low.c: Don't include sys/uio.h.
5265 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
5267 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
5269 * tracepoint.c (eval_result_type): Change prototype.
5270 (condition_true_at_tracepoint): Fix argument to compiled_cond.
5272 2015-09-15 Pedro Alves <palves@redhat.com>
5274 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
5275 Check whether to report exec events instead of checking whether
5276 multiprocess is enabled.
5278 2015-09-15 Pedro Alves <palves@redhat.com>
5281 * remote-utils.c (prepare_resume_reply): Merge
5282 TARGET_WAITKIND_VFORK_DONE switch case with the
5283 TARGET_WAITKIND_FORKED case.
5285 2015-09-15 Yao Qi <yao.qi@linaro.org>
5287 * server.c (handle_query): Check string comparison using
5288 "else if" instead of "if".
5290 2015-09-15 Yao Qi <yao.qi@linaro.org>
5292 * server.c (vCont_supported): New global variable.
5293 (handle_query): Set vCont_supported to 1 if "vContSupported+"
5294 matches. Append ";vContSupported+" to own_buf.
5295 (handle_v_requests): Append ";s;S" to own_buf if target supports
5296 hardware single step or vCont_supported is false.
5297 (capture_main): Set vCont_supported to zero.
5299 2015-09-15 Yao Qi <yao.qi@linaro.org>
5301 * linux-low.c (linux_supports_conditional_breakpoints): Rename
5303 (linux_supports_hardware_single_step): ... New function.
5304 (linux_target_ops): Update.
5305 * lynx-low.c (lynx_target_ops): Set field
5306 supports_hardware_single_step to target_can_do_hardware_single_step.
5307 * nto-low.c (nto_target_ops): Likewise.
5308 * spu-low.c (spu_target_ops): Likewise.
5309 * win32-low.c (win32_target_ops): Likewise.
5310 * target.c (target_can_do_hardware_single_step): New function.
5311 * target.h (struct target_ops) <supports_conditional_breakpoints>:
5312 Remove. <supports_hardware_single_step>: New field.
5313 (target_supports_conditional_breakpoints): Remove.
5314 (target_supports_hardware_single_step): New macro.
5315 (target_can_do_hardware_single_step): Declare.
5316 * server.c (handle_query): Use target_supports_hardware_single_step
5317 instead of target_supports_conditional_breakpoints.
5319 2015-09-15 Yao Qi <yao.qi@linaro.org>
5321 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
5323 (struct linux_target_ops the_low_target): Install
5324 aarch64_linux_siginfo_fixup.
5326 2015-09-11 Don Breazeal <donb@codesourcery.com>
5327 Luis Machado <lgustavo@codesourcery.com>
5329 * linux-low.c (linux_mourn): Static declaration.
5330 (linux_arch_setup): Move in front of
5331 handle_extended_wait.
5332 (linux_arch_setup_thread): New function.
5333 (handle_extended_wait): Handle exec events. Call
5334 linux_arch_setup_thread. Make event_lwp argument a
5335 pointer-to-a-pointer.
5336 (check_zombie_leaders): Do not check stopped threads.
5337 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
5338 (linux_low_filter_event): Add lwp and thread for exec'ing
5339 non-leader thread if leader thread has been deleted.
5340 Refactor code into linux_arch_setup_thread and call it.
5341 Pass child lwp pointer by reference to handle_extended_wait.
5342 (linux_wait_for_event_filtered): Update comment.
5343 (linux_wait_1): Prevent clobbering exec event status.
5344 (linux_supports_exec_events): New function.
5345 (linux_target_ops) <supports_exec_events>: Initialize new member.
5346 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
5348 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
5349 * server.c (report_exec_events): New global variable.
5350 (handle_query): Handle qSupported query for exec-events feature.
5351 (captured_main): Initialize report_exec_events.
5352 * server.h (report_exec_events): Declare new global variable.
5353 * target.h (struct target_ops) <supports_exec_events>: New
5355 (target_supports_exec_events): New macro.
5356 * win32-low.c (win32_target_ops) <supports_exec_events>:
5357 Initialize new member.
5359 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
5361 * linux-low.c (linux_low_enable_btrace): Remove.
5362 (linux_target_ops): Replace linux_low_enable_btrace with
5363 linux_enable_btrace.
5365 2015-09-03 Yao Qi <yao.qi@linaro.org>
5367 * linux-aarch64-low.c (aarch64_insert_point): Call
5368 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
5371 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5373 * linux-low.c (check_stopped_by_breakpoint): Use
5374 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
5376 2015-08-27 Pedro Alves <palves@redhat.com>
5378 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
5380 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
5382 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
5383 the XNEW-family equivalent.
5384 (compile_bytecodes): Likewise.
5385 * dll.c (loaded_dll): Likewise.
5386 * event-loop.c (append_callback_event): Likewise.
5387 (create_file_handler): Likewise.
5388 (create_file_event): Likewise.
5389 * hostio.c (handle_open): Likewise.
5390 * inferiors.c (add_thread): Likewise.
5391 (add_process): Likewise.
5392 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
5393 * linux-arm-low.c (arm_new_process): Likewise.
5394 (arm_new_thread): Likewise.
5395 * linux-low.c (add_to_pid_list): Likewise.
5396 (linux_add_process): Likewise.
5397 (handle_extended_wait): Likewise.
5398 (add_lwp): Likewise.
5399 (enqueue_one_deferred_signal): Likewise.
5400 (enqueue_pending_signal): Likewise.
5401 (linux_resume_one_lwp_throw): Likewise.
5402 (linux_resume_one_thread): Likewise.
5403 (linux_read_memory): Likewise.
5404 (linux_write_memory): Likewise.
5405 * linux-mips-low.c (mips_linux_new_process): Likewise.
5406 (mips_linux_new_thread): Likewise.
5407 (mips_add_watchpoint): Likewise.
5408 * linux-x86-low.c (initialize_low_arch): Likewise.
5409 * lynx-low.c (lynx_add_process): Likewise.
5410 * mem-break.c (set_raw_breakpoint_at): Likewise.
5411 (set_breakpoint): Likewise.
5412 (add_condition_to_breakpoint): Likewise.
5413 (add_commands_to_breakpoint): Likewise.
5414 (clone_agent_expr): Likewise.
5415 (clone_one_breakpoint): Likewise.
5416 * regcache.c (new_register_cache): Likewise.
5417 * remote-utils.c (look_up_one_symbol): Likewise.
5418 * server.c (queue_stop_reply): Likewise.
5419 (start_inferior): Likewise.
5420 (queue_stop_reply_callback): Likewise.
5421 (handle_target_event): Likewise.
5422 * spu-low.c (fetch_ppc_memory): Likewise.
5423 (store_ppc_memory): Likewise.
5424 * target.c (set_target_ops): Likewise.
5425 * thread-db.c (thread_db_load_search): Likewise.
5426 (try_thread_db_load_1): Likewise.
5427 * tracepoint.c (add_tracepoint): Likewise.
5428 (add_tracepoint_action): Likewise.
5429 (create_trace_state_variable): Likewise.
5430 (cmd_qtdpsrc): Likewise.
5431 (cmd_qtro): Likewise.
5432 (add_while_stepping_state): Likewise.
5433 * win32-low.c (child_add_thread): Likewise.
5434 (get_image_name): Likewise.
5436 2015-08-25 Yao Qi <yao.qi@linaro.org>
5438 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
5440 2015-08-25 Yao Qi <yao.qi@linaro.org>
5442 * Makefile.in (aarch64-linux.o): New rule.
5443 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
5445 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
5446 (aarch64_init_debug_reg_state): Make it extern.
5447 (aarch64_linux_prepare_to_resume): Remove.
5449 2015-08-25 Yao Qi <yao.qi@linaro.org>
5451 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
5452 lwp_arch_private_info and ptid_of_lwp.
5454 2015-08-25 Yao Qi <yao.qi@linaro.org>
5456 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
5457 Find proc_info by find_process_pid. All callers updated.
5459 2015-08-25 Yao Qi <yao.qi@linaro.org>
5461 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
5463 (debug_reg_change_callback): Remove.
5464 (aarch64_notify_debug_reg_change): Remove.
5466 2015-08-25 Yao Qi <yao.qi@linaro.org>
5468 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
5469 Call current_lwp_ptid.
5471 2015-08-25 Yao Qi <yao.qi@linaro.org>
5473 * linux-aarch64-low.c (debug_reg_change_callback): Use
5476 2015-08-25 Yao Qi <yao.qi@linaro.org>
5478 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
5480 2015-08-25 Yao Qi <yao.qi@linaro.org>
5482 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
5484 2015-08-25 Yao Qi <yao.qi@linaro.org>
5486 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
5489 2015-08-25 Yao Qi <yao.qi@linaro.org>
5491 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
5493 (debug_reg_change_callback): Remove argument entry and add argument
5494 lwp. Remove local variable thread. Don't print thread id in the
5495 debugging output. Don't check whether pid of thread equals to pid.
5496 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
5497 iterate_over_lwps instead find_inferior.
5499 2015-08-24 Pedro Alves <palves@redhat.com>
5501 * inferiors.c (get_first_process): New function.
5502 * inferiors.h (get_first_process): New declaration.
5503 * remote-utils.c (read_ptid): Default to the first process in the
5504 list, instead of to the current thread's process.
5506 2015-08-24 Pedro Alves <palves@redhat.com>
5508 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
5509 * event-loop.c: Likewise.
5510 * remote-utils.c: Likewise.
5511 * tracepoint.c: Likewise.
5513 2015-08-24 Pedro Alves <palves@redhat.com>
5515 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
5518 2015-08-21 Pedro Alves <palves@redhat.com>
5520 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
5521 instead of literal 1.
5523 2015-08-21 Pedro Alves <palves@redhat.com>
5525 * tdesc.c (default_description): Explicitly zero-initialize.
5527 2015-08-21 Pedro Alves <palves@redhat.com>
5530 * inferiors.c (remove_thread): Discard any pending stop reply for
5532 * server.c (remove_all_on_match_pid): Rename to ...
5533 (remove_all_on_match_ptid): ... this. Work with a filter ptid
5535 (discard_queued_stop_replies): Change parameter to a ptid. Now
5537 (handle_v_kill, kill_inferior_callback, captured_main)
5538 (process_serial_event): Adjust.
5539 * server.h (discard_queued_stop_replies): Declare.
5541 2015-08-21 Pedro Alves <palves@redhat.com>
5543 * linux-low.c (wait_for_sigstop): Always switch to no thread
5544 selected if the previously current thread dies.
5545 * lynx-low.c (lynx_request_interrupt): Use the first thread's
5546 process instead of the current thread's.
5547 * remote-utils.c (input_interrupt): Don't check if there's no
5549 * server.c (gdb_read_memory, gdb_write_memory): If setting the
5550 current thread to the general thread fails, error out.
5551 (handle_qxfer_auxv, handle_qxfer_libraries)
5552 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
5553 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
5554 (handle_query): Check if there's a thread selected instead of
5555 checking whether there's any thread in the thread list.
5556 (handle_qxfer_threads, handle_qxfer_btrace)
5557 (handle_qxfer_btrace_conf): Don't error out early if there's no
5558 thread in the thread list.
5559 (handle_v_cont, myresume): Don't set the current thread to the
5561 (process_serial_event) <Hg handling>: Also set thread_id if the
5562 previous general thread is still alive.
5563 (process_serial_event) <g/G handling>: If setting the current
5564 thread to the general thread fails, error out.
5565 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
5566 thread's lwp instead of the current thread's.
5567 * target.c (set_desired_thread): If the desired thread was not
5568 found, leave the current thread pointing to NULL. Return an int
5569 (boolean) indicating success.
5570 * target.h (set_desired_thread): Change return type to int.
5572 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
5574 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
5575 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
5577 (ps_get_thread_area): New function.
5579 2015-08-19 Gary Benson <gbenson@redhat.com>
5581 * hostio.c (handle_pread): Do not attempt to read more data
5582 than hostio_reply_with_data can fit in a packet.
5584 2015-08-18 Joel Brobecker <brobecker@adacore.com>
5586 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
5588 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
5590 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
5592 2015-08-06 Pedro Alves <palves@redhat.com>
5594 * tracepoint.c (expr_eval_result): Now an int.
5596 2015-08-06 Pedro Alves <palves@redhat.com>
5598 * gdbthread.h (struct regcache): Forward declare.
5599 (struct thread_info) <regcache_data>: Now a struct regcache
5601 * inferiors.c (inferior_regcache_data)
5602 (set_inferior_regcache_data): Now work with struct regcache
5604 * inferiors.h (struct regcache): Forward declare.
5605 (inferior_regcache_data, set_inferior_regcache_data): Now work
5606 with struct regcache pointers.
5607 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
5608 (free_register_cache_thread): Remove struct regcache pointer
5611 2015-08-06 Pedro Alves <palves@redhat.com>
5613 * server.c (captured_main): On error, print the exception message
5614 to stderr, and if run_once is set, throw a quit.
5616 2015-08-06 Pedro Alves <palves@redhat.com>
5618 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
5621 2015-08-06 Pedro Alves <palves@redhat.com>
5623 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
5624 reading beyond the passed in buffer length.
5626 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5628 * tracepoint.c (symbol_list) <required>: Remove.
5630 2015-08-06 Pedro Alves <palves@redhat.com>
5632 * linux-low.c (handle_extended_wait): Set the fork child's suspend
5633 count if stopping and suspending threads.
5634 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
5635 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
5636 (linux_detach): Complete an ongoing step-over.
5637 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
5639 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
5640 (linux_wait_1): If passing a signal to the inferior after
5641 finishing a step-over, unsuspend and re-resume all lwps. If we
5642 see a single-step event but the thread should be continuing, don't
5643 pass the trap to gdb.
5644 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
5645 internal_error instead of gdb_assert.
5646 (enqueue_pending_signal): New function.
5647 (check_ptrace_stopped_lwp_gone): Add debug output.
5648 (start_step_over): Use internal_error instead of gdb_assert.
5649 (complete_ongoing_step_over): New function.
5650 (linux_resume_one_thread): Don't resume a suspended thread.
5651 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
5654 2015-08-06 Pedro Alves <palves@redhat.com>
5656 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
5657 (linux_thread_alive): Use lwp_is_marked_dead.
5658 (extended_event_reported): Delete.
5659 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
5660 instead of extended_event_reported.
5661 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
5663 (lwp_is_marked_dead): New function.
5664 (lwp_running): Use lwp_is_marked_dead.
5665 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
5668 2015-08-06 Pedro Alves <palves@redhat.com>
5670 * linux-low.c (linux_wait_1): Move fork event output out of the
5671 !report_to_gdb check. Pass event_child->waitstatus to
5672 target_waitstatus_to_string instead of ourstatus.
5674 2015-08-04 Yao Qi <yao.qi@linaro.org>
5676 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
5677 if current_thread is 32 bit.
5679 2015-08-04 Yao Qi <yao.qi@linaro.org>
5681 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
5682 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
5683 * server.c (extended_protocol): Remove "static".
5684 * server.h (extended_protocol): Declare it.
5686 2015-08-04 Yao Qi <yao.qi@linaro.org>
5688 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
5689 both aarch64 and aarch32.
5690 (aarch64_set_pc): Likewise.
5692 2015-08-04 Yao Qi <yao.qi@linaro.org>
5694 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
5695 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
5696 arm-with-neon.xml to srv_xmlfiles.
5697 * linux-aarch64-low.c: Include linux-aarch32-low.h.
5698 (is_64bit_tdesc): New function.
5699 (aarch64_linux_read_description): New function.
5700 (aarch64_arch_setup): Call aarch64_linux_read_description.
5701 (regs_info): Rename to regs_info_aarch64.
5702 (aarch64_regs_info): Return right regs_info.
5703 (initialize_low_arch): Call initialize_low_arch_aarch32.
5705 2015-08-04 Yao Qi <yao.qi@linaro.org>
5707 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
5708 * linux-aarch32-low.c: New file.
5709 * linux-aarch32-low.h: New file.
5710 * linux-arm-low.c (arm_fill_gregset): Move it to
5711 linux-aarch32-low.c.
5712 (arm_store_gregset): Likewise.
5713 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
5714 (arm_store_vfpregset): Call arm_store_vfpregset_num.
5715 (arm_arch_setup): Check if PTRACE_GETREGSET works.
5716 (regs_info): Rename to regs_info_arm.
5717 (arm_regs_info): Return regs_info_aarch32 if
5718 have_ptrace_getregset is 1 and target description is
5719 arm_with_neon or arm_with_vfpv3.
5720 (initialize_low_arch): Don't call init_registers_arm_with_neon.
5721 Call initialize_low_arch_aarch32 instead.
5723 2015-08-04 Yao Qi <yao.qi@linaro.org>
5725 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
5726 * linux-low.c: ... here.
5727 * linux-low.h (have_ptrace_getregset): Declare it.
5729 2015-08-04 Pedro Alves <palves@redhat.com>
5731 * thread-db.c (struct thread_db): Use new typedefs.
5732 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
5734 (disable_thread_event_reporting): Cast result of dlsym to
5735 destination function pointer type.
5736 (thread_db_mourn): Use td_ta_delete_ftype.
5738 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5740 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
5742 (CDX_BREAKPOINT): Define for R2.
5743 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
5744 (the_low_target): Add comments.
5746 2015-07-30 Yao Qi <yao.qi@linaro.org>
5748 * linux-arm-low.c (arm_hwcap): Remove it.
5749 (arm_read_description): New local variable arm_hwcap. Don't
5750 set arm_hwcap to zero.
5752 2015-07-30 Yao Qi <yao.qi@linaro.org>
5754 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
5755 Use regcache->tdesc instead.
5756 (arm_store_wmmxregset): Likewise.
5757 (arm_fill_vfpregset): Likewise.
5758 (arm_store_vfpregset): Likewise.
5760 2015-07-30 Yao Qi <yao.qi@linaro.org>
5762 * linux-arm-low.c: Include arch/arm.h.
5763 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
5764 (arm_store_gregset): Likewise.
5766 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5768 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
5769 ptrace's 4th parameter.
5771 2015-07-27 Yao Qi <yao.qi@linaro.org>
5773 * configure.srv (case aarch64*-*-linux*): Don't set
5776 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
5778 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
5780 * linux-arm-low.c: Likewise.
5781 * linux-cris-low.c: Likewise.
5782 * linux-crisv32-low.c: Likewise.
5783 * linux-low.c: Likewise.
5784 * linux-m68k-low.c: Likewise.
5785 * linux-mips-low.c: Likewise.
5786 * linux-nios2-low.c: Likewise.
5787 * linux-s390-low.c: Likewise.
5788 * linux-sparc-low.c: Likewise.
5789 * linux-tic6x-low.c: Likewise.
5790 * linux-tile-low.c: Likewise.
5791 * linux-x86-low.c: Likewise.
5793 2015-07-24 Pedro Alves <palves@redhat.com>
5795 * config.in: Regenerate.
5796 * configure: Regenerate.
5798 2015-07-24 Pedro Alves <palves@redhat.com>
5800 * acinclude.m4: Include ../ptrace.m4.
5801 * configure.ac: Call GDB_AC_PTRACE.
5802 * config.in, configure: Regenerate.
5804 2015-07-24 Yao Qi <yao.qi@linaro.org>
5806 * linux-low.c (linux_create_inferior): Remove setting to
5807 proc->priv->new_inferior.
5808 (linux_attach): Likewise.
5809 (linux_low_filter_event): Likewise.
5810 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
5812 2015-07-24 Yao Qi <yao.qi@linaro.org>
5814 * linux-low.c (linux_arch_setup): New function.
5815 (linux_low_filter_event): If proc->tdesc is NULL and
5816 proc->attached is true, call the_low_target.arch_setup.
5817 Otherwise, keep status pending, and return.
5818 (linux_resume_one_lwp_throw): Don't call get_pc if
5819 thread->while_stepping isn't NULL. Don't call
5820 get_thread_regcache if proc->tdesc is NULL.
5821 (need_step_over_p): Return 0 if proc->tdesc is NULL.
5822 (linux_target_ops): Install arch_setup.
5823 * server.c (start_inferior): Call the_target->arch_setup.
5824 * target.h (struct target_ops) <arch_setup>: New field.
5825 (target_arch_setup): New marco.
5826 * lynx-low.c (lynx_target_ops): Update.
5827 * nto-low.c (nto_target_ops): Update.
5828 * spu-low.c (spu_target_ops): Update.
5829 * win32-low.c (win32_target_ops): Update.
5831 2015-07-24 Yao Qi <yao.qi@linaro.org>
5833 * linux-low.c (linux_add_process): Don't set
5834 proc->priv->new_inferior.
5835 (linux_create_inferior): Set proc->priv->new_inferior to 1.
5836 (linux_attach): Likewise.
5838 2015-07-24 Yao Qi <yao.qi@linaro.org>
5840 * server.c (start_inferior): Code refactor.
5842 2015-07-24 Yao Qi <yao.qi@linaro.org>
5844 * server.c (process_serial_event): Set general_thread.
5846 2015-07-21 Yao Qi <yao.qi@linaro.org>
5848 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
5849 aarch64_linux_get_debug_reg_capacity.
5851 2015-07-17 Yao Qi <yao.qi@linaro.org>
5853 * Makefile.in (aarch64-linux-hw-point.o): New rule.
5854 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
5855 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
5856 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5857 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5858 (AARCH64_HWP_ALIGNMENT): Likewise.
5859 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5860 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5861 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5862 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5863 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5864 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5865 (struct aarch64_debug_reg_state): Likewise.
5866 (struct arch_lwp_info): Likewise.
5867 (aarch64_align_watchpoint): Likewise.
5868 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5869 (aarch64_watchpoint_length): Likewise.
5870 (aarch64_point_encode_ctrl_reg): Likewise
5871 (aarch64_point_is_aligned): Likewise.
5872 (aarch64_align_watchpoint): Likewise.
5873 (aarch64_linux_set_debug_regs):
5874 (aarch64_dr_state_insert_one_point): Likewise.
5875 (aarch64_dr_state_remove_one_point): Likewise.
5876 (aarch64_handle_breakpoint): Likewise.
5877 (aarch64_handle_aligned_watchpoint): Likewise.
5878 (aarch64_handle_unaligned_watchpoint): Likewise.
5879 (aarch64_handle_watchpoint): Likewise.
5881 2015-07-17 Yao Qi <yao.qi@linaro.org>
5883 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
5884 and don't aarch64_get_debug_reg_state. All callers update.
5885 (aarch64_handle_aligned_watchpoint): Likewise.
5886 (aarch64_handle_unaligned_watchpoint): Likewise.
5887 (aarch64_handle_watchpoint): Likewise.
5888 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
5889 (aarch64_remove_point): Likewise.
5891 2015-07-17 Yao Qi <yao.qi@linaro.org>
5893 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
5895 (aarch64_handle_unaligned_watchpoint): Likewise.
5897 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5899 Revert the previous 3 commits:
5900 Move gdb_regex* to common/
5901 Move linux_find_memory_regions_full & co.
5902 gdbserver build-id attribute generator
5904 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5905 Jan Kratochvil <jan.kratochvil@redhat.com>
5907 gdbserver build-id attribute generator.
5908 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
5909 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
5910 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
5912 (get_dynamic): Use find_pdhr to traverse program headers.
5913 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
5914 (compare_mapping_entry_range, struct find_memory_region_callback_data)
5915 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
5916 (get_hex_build_id): New.
5917 (linux_qxfer_libraries_svr4): Add optional build-id attribute
5918 to reply XML document.
5920 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5921 Jan Kratochvil <jan.kratochvil@redhat.com>
5923 * target.c: Include target/target-utils.h and fcntl.h.
5924 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
5925 (target_fileio_read_stralloc): New functions.
5927 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5929 * Makefile.in (OBS): Add gdb_regex.o.
5931 * config.in: Rebuilt.
5932 * configure: Rebuilt.
5934 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5935 Jan Kratochvil <jan.kratochvil@redhat.com>
5937 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5938 * Makefile.in (OBS): Add target-utils.o.
5939 (linux-maps.o, target-utils.o): New.
5940 * configure.srv (srv_linux_obj): Add linux-maps.o.
5942 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
5944 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
5946 (the_low_target): Install it.
5948 2015-07-14 Pedro Alves <palves@redhat.com>
5950 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
5951 Instead, ignore ECHILD, and throw an error for other errnos.
5953 2015-07-10 Pedro Alves <palves@redhat.com>
5955 * event-loop.c (struct callback_event) <data>: Change type to
5956 gdb_client_data instance instead of gdb_client_data pointer.
5957 (append_callback_event): Adjust.
5959 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
5961 * linux-aarch64-low.c: Add comments for each linux_target_ops
5962 method. Remove comments already covered in target_ops and
5963 linux_target_ops definitions.
5964 (the_low_target): Add comments for each unimplemented method.
5966 2015-07-09 Yao Qi <yao.qi@linaro.org>
5968 * linux-aarch64-low.c (aarch64_regmap): Remove.
5969 (aarch64_usrregs_info): Remove.
5970 (regs_info): Set field usrregs to NULL.
5972 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
5974 * linux-low.c: Include "rsp-low.h"
5975 (linux_low_encode_pt_config, linux_low_encode_raw): New.
5976 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
5977 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
5978 (handle_btrace_enable_pt): New.
5979 (handle_btrace_general_set): Support "pt".
5980 (handle_btrace_conf_general_set): Support "pt:size".
5982 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
5984 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
5987 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
5989 * linux-aarch64-low.c: Remove comment about endianness.
5990 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
5991 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
5994 2015-06-24 Gary Benson <gbenson@redhat.com>
5996 * linux-i386-ipa.c (stdint.h): Do not include.
5997 * lynx-i386-low.c (stdint.h): Likewise.
5998 * lynx-ppc-low.c (stdint.h): Likewise.
5999 * mem-break.c (stdint.h): Likewise.
6000 * thread-db.c (stdint.h): Likewise.
6001 * tracepoint.c (stdint.h): Likewise.
6002 * win32-low.c (stdint.h): Likewise.
6004 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6006 * server.c (write_qxfer_response): Update call to
6007 remote_escape_output.
6009 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6010 Jan Kratochvil <jan.kratochvil@redhat.com>
6012 Merge multiple hex conversions.
6013 * gdbreplay.c (tohex): Rename to 'fromhex'.
6014 (logchar): Use fromhex.
6016 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6018 * server.c (handle_qxfer_libraries): Set `version' attribute for
6021 2015-06-10 Gary Benson <gbenson@redhat.com>
6023 * target.h (struct target_ops) <multifs_open>: New field.
6024 <multifs_unlink>: Likewise.
6025 <multifs_readlink>: Likewise.
6026 * linux-low.c (nat/linux-namespaces.h): New include.
6027 (linux_target_ops): Initialize the_target->multifs_open,
6028 the_target->multifs_unlink and the_target->multifs_readlink.
6029 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
6030 * hostio.c (hostio_fs_pid): New static variable.
6031 (hostio_handle_new_gdb_connection): New function.
6032 (handle_setfs): Likewise.
6033 (handle_open): Use the_target->multifs_open as appropriate.
6034 (handle_unlink): Use the_target->multifs_unlink as appropriate.
6035 (handle_readlink): Use the_target->multifs_readlink as
6037 (handle_vFile): Handle vFile:setfs packets.
6038 * server.c (handle_query): Call hostio_handle_new_gdb_connection
6039 after target_handle_new_gdb_connection.
6041 2015-06-10 Gary Benson <gbenson@redhat.com>
6043 * configure.ac (AC_CHECK_FUNCS): Add setns.
6044 * config.in: Regenerate.
6045 * configure: Likewise.
6046 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
6047 (linux-namespaces.o): New rule.
6048 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
6050 2015-06-09 Gary Benson <gbenson@redhat.com>
6052 * hostio.c (handle_open): Process mode argument with
6053 fileio_to_host_mode.
6055 2015-06-01 Yao Qi <yao.qi@linaro.org>
6057 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
6058 * linux-x86-low.c: Likewise.
6060 2015-05-28 Don Breazeal <donb@codesourcery.com>
6062 * linux-low.c (handle_extended_wait): Initialize
6063 thread_info.last_resume_kind for new fork children.
6065 2015-05-15 Pedro Alves <palves@redhat.com>
6067 * target.h (target_handle_new_gdb_connection): Rewrite using if
6068 wrapped in do/while.
6070 2015-05-14 Joel Brobecker <brobecker@adacore.com>
6072 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
6073 * configure, config.in: Regenerate.
6074 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
6077 2015-05-12 Don Breazeal <donb@codesourcery.com>
6079 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
6080 PTRACE_EVENT_VFORK_DONE.
6081 (linux_low_ptrace_options, extended_event_reported): Add vfork
6083 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
6084 and "vforkdone" for RSP 'T' Stop Reply Packet.
6085 * server.h (report_vfork_events): Declare
6088 2015-05-12 Don Breazeal <donb@codesourcery.com>
6090 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
6091 (the_low_target) <new_fork>: Initialize new member.
6092 * linux-arm-low.c (arm_new_fork): New function.
6093 (the_low_target) <new_fork>: Initialize new member.
6094 * linux-low.c (handle_extended_wait): Call new target function
6096 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
6097 * linux-mips-low.c (mips_add_watchpoint): New function
6098 extracted from mips_insert_point.
6099 (the_low_target) <new_fork>: Initialize new member.
6100 (mips_linux_new_fork): New function.
6101 (mips_insert_point): Call mips_add_watchpoint.
6102 * linux-x86-low.c (x86_linux_new_fork): New function.
6103 (the_low_target) <new_fork>: Initialize new member.
6105 2015-05-12 Don Breazeal <donb@codesourcery.com>
6107 * linux-low.c (handle_extended_wait): Implement return value,
6108 rename argument 'event_child' to 'event_lwp', handle
6109 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
6110 (linux_low_ptrace_options): New function.
6111 (linux_low_filter_event): Call linux_low_ptrace_options,
6112 use different argument fo linux_enable_event_reporting,
6113 use return value from handle_extended_wait.
6114 (extended_event_reported): New function.
6115 (linux_wait_1): Call extended_event_reported and set
6116 status to report fork events.
6117 (linux_write_memory): Add pid to debug message.
6118 (reset_lwp_ptrace_options_callback): New function.
6119 (linux_handle_new_gdb_connection): New function.
6120 (linux_target_ops): Initialize new structure member.
6121 * linux-low.h (struct lwp_info) <waitstatus>: New member.
6122 * lynx-low.c: Initialize new structure member.
6123 * remote-utils.c (prepare_resume_reply): Implement stop reason
6124 "fork" for "T" stop message.
6125 * server.c (handle_query): Call handle_new_gdb_connection.
6126 * server.h (report_fork_events): Declare global flag.
6127 * target.h (struct target_ops) <handle_new_gdb_connection>:
6129 (target_handle_new_gdb_connection): New macro.
6130 * win32-low.c: Initialize new structure member.
6132 2015-05-12 Don Breazeal <donb@codesourcery.com>
6134 * mem-break.c (APPEND_TO_LIST): Define macro.
6135 (clone_agent_expr): New function.
6136 (clone_one_breakpoint): New function.
6137 (clone_all_breakpoints): New function.
6138 * mem-break.h: Declare new functions.
6140 2015-05-12 Don Breazeal <donb@codesourcery.com>
6142 * linux-low.c (linux_supports_fork_events): New function.
6143 (linux_supports_vfork_events): New function.
6144 (linux_target_ops): Initialize new structure members.
6145 (initialize_low): Call linux_check_ptrace_features.
6146 * lynx-low.c (lynx_target_ops): Initialize new structure
6148 * server.c (report_fork_events, report_vfork_events):
6150 (handle_query): Add new features to qSupported packet and
6152 (captured_main): Initialize new global variables.
6153 * target.h (struct target_ops) <supports_fork_events>:
6155 <supports_vfork_events>: New member.
6156 (target_supports_fork_events): New macro.
6157 (target_supports_vfork_events): New macro.
6158 * win32-low.c (win32_target_ops): Initialize new structure
6161 2015-05-12 Gary Benson <gbenson@redhat.com>
6163 * server.c (handle_qxfer_exec_file): Use current process
6166 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
6168 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
6169 Remove HAVE_PTRACE_GETREGS conditionals.
6170 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
6171 instead of PTRACE_GETREGS and PTRACE_SETREGS.
6173 2015-05-08 Yao Qi <yao.qi@linaro.org>
6175 * linux-low.c (linux_supports_conditional_breakpoints): New
6177 (linux_target_ops): Install new target method.
6178 * lynx-low.c (lynx_target_ops): Install NULL hook for
6179 supports_conditional_breakpoints.
6180 * nto-low.c (nto_target_ops): Likewise.
6181 * spu-low.c (spu_target_ops): Likewise.
6182 * win32-low.c (win32_target_ops): Likewise.
6183 * server.c (handle_query): Check
6184 target_supports_conditional_breakpoints.
6185 * target.h (struct target_ops) <supports_conditional_breakpoints>:
6187 (target_supports_conditional_breakpoints): New macro.
6189 2015-05-06 Pedro Alves <palves@redhat.com>
6192 * server.c (start_inferior): If the process exits, mourn it.
6194 2015-04-21 Gary Benson <gbenson@redhat.com>
6196 * hostio.c (fileio_open_flags_to_host): Factored out to
6197 fileio_to_host_openflags in common/fileio.c. Single use
6200 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
6202 * linux-xtensa-low.c (xtensa_fill_gregset)
6203 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
6206 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
6208 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
6209 (regs_info): Replace usrregs pointer with NULL.
6211 2015-04-17 Gary Benson <gbenson@redhat.com>
6213 * target.h (struct target_ops) <pid_to_exec_file>: New field.
6214 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
6215 * server.c (handle_qxfer_exec_file): New function.
6216 (qxfer_packets): Add exec-file entry.
6217 (handle_query): Report qXfer:exec-file:read as supported packet.
6219 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
6221 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
6223 2015-04-09 Gary Benson <gbenson@redhat.com>
6225 * hostio-errno.c (errno_to_fileio_error): Remove function.
6226 Update caller to use remote_fileio_to_fio_error.
6228 2015-04-09 Yao Qi <yao.qi@linaro.org>
6230 * linux-low.c (linux_insert_point): Call
6231 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
6232 (linux_remove_point): Call remove_memory_breakpoint if type is
6234 * linux-x86-low.c (x86_insert_point): Don't call
6235 insert_memory_breakpoint.
6236 (x86_remove_point): Don't call remove_memory_breakpoint.
6238 2015-04-01 Pedro Alves <palves@redhat.com>
6239 Cleber Rosa <crosa@redhat.com>
6241 * server.c (gdbserver_usage): Reorganize and extend the usage
6244 2015-03-24 Pedro Alves <palves@redhat.com>
6246 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
6247 output. Also dump TRAP_TRACE.
6248 (linux_low_filter_event): In debug output, distinguish a
6249 resume_stop SIGSTOP from a delayed SIGSTOP.
6251 2015-03-24 Gary Benson <gbenson@redhat.com>
6253 * linux-x86-low.c (x86_linux_new_thread): Moved to
6255 (x86_linux_prepare_to_resume): Likewise.
6257 2015-03-24 Gary Benson <gbenson@redhat.com>
6259 * Makefile.in (x86-linux-dregs.o): New rule.
6260 * configure.srv: Add x86-linux-dregs.o to relevant targets.
6261 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
6262 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
6263 (x86_linux_dr_get): Likewise.
6264 (x86_linux_dr_set): Likewise.
6265 (update_debug_registers_callback): Likewise.
6266 (x86_linux_dr_set_addr): Likewise.
6267 (x86_linux_dr_get_addr): Likewise.
6268 (x86_linux_dr_set_control): Likewise.
6269 (x86_linux_dr_get_control): Likewise.
6270 (x86_linux_dr_get_status): Likewise.
6271 (x86_linux_update_debug_registers): Likewise.
6273 2015-03-24 Gary Benson <gbenson@redhat.com>
6275 * linux-x86-low.c (x86_linux_update_debug_registers):
6276 New function, factored out from...
6277 (x86_linux_prepare_to_resume): ...this.
6279 2015-03-24 Gary Benson <gbenson@redhat.com>
6281 * linux-x86-low.c (x86_linux_dr_get): Update comments.
6282 (x86_linux_dr_set): Likewise.
6283 (update_debug_registers_callback): Likewise.
6284 (x86_linux_dr_set_addr): Likewise.
6285 (x86_linux_dr_get_addr): Likewise.
6286 (x86_linux_dr_set_control): Likewise.
6287 (x86_linux_dr_get_control): Likewise.
6288 (x86_linux_dr_get_status): Likewise.
6289 (x86_linux_prepare_to_resume): Likewise.
6291 2015-03-24 Gary Benson <gbenson@redhat.com>
6293 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
6294 Use perror_with_name. Pass string through gettext.
6295 (x86_linux_dr_set): Likewise.
6297 2015-03-24 Gary Benson <gbenson@redhat.com>
6299 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
6300 (x86_linux_dr_set_addr): ...this.
6301 (x86_dr_low_get_addr): Rename to...
6302 (x86_linux_dr_get_addr): ...this.
6303 (x86_dr_low_set_control): Rename to...
6304 (x86_linux_dr_set_control): ...this.
6305 (x86_dr_low_get_control): Rename to...
6306 (x86_linux_dr_get_control): ...this.
6307 (x86_dr_low_get_status): Rename to...
6308 (x86_linux_dr_get_status): ...this.
6309 (x86_dr_low): Update with new function names.
6311 2015-03-24 Gary Benson <gbenson@redhat.com>
6313 * Makefile.in (x86-linux.o): New rule.
6314 * configure.srv: Add x86-linux.o to relevant targets.
6315 * linux-low.c (lwp_set_arch_private_info): New function.
6316 (lwp_arch_private_info): Likewise.
6317 * linux-x86-low.c: Include nat/x86-linux.h.
6318 (arch_lwp_info): Removed structure.
6319 (update_debug_registers_callback):
6320 Use lwp_set_debug_registers_changed.
6321 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
6322 and lwp_set_debug_registers_changed.
6323 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
6325 2015-03-24 Gary Benson <gbenson@redhat.com>
6327 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
6328 * linux-arm-low.c (arm_new_thread): Likewise.
6329 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
6330 * linux-mips-low.c (mips_linux_new_thread): Likewise.
6331 * linux-x86-low.c (x86_linux_new_thread): Likewise.
6332 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
6334 2015-03-24 Gary Benson <gbenson@redhat.com>
6336 * linux-low.c (ptid_of_lwp): New function.
6337 (lwp_is_stopped): Likewise.
6338 (lwp_stop_reason): Likewise.
6339 * linux-x86-low.c (update_debug_registers_callback):
6341 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
6344 2015-03-24 Gary Benson <gbenson@redhat.com>
6346 * linux-low.h (linux_stop_lwp): Remove declaration.
6348 2015-03-24 Gary Benson <gbenson@redhat.com>
6350 * linux-low.h: Include nat/linux-nat.h.
6351 * linux-low.c (iterate_over_lwps_args): New structure.
6352 (iterate_over_lwps_filter): New function.
6353 (iterate_over_lwps): Likewise.
6354 * linux-x86-low.c (update_debug_registers_callback):
6355 Update signature to what iterate_over_lwps expects.
6356 Remove PID check that iterate_over_lwps now performs.
6357 (x86_dr_low_set_addr): Use iterate_over_lwps.
6358 (x86_dr_low_set_control): Likewise.
6360 2015-03-24 Gary Benson <gbenson@redhat.com>
6362 * linux-x86-low.c (x86_debug_reg_state): New function.
6363 (x86_linux_prepare_to_resume): Use the above.
6365 2015-03-24 Gary Benson <gbenson@redhat.com>
6367 * linux-low.c (current_lwp_ptid): New function.
6368 * linux-x86-low.c: Include nat/linux-nat.h.
6369 (x86_dr_low_get_addr): Use current_lwp_ptid.
6370 (x86_dr_low_get_control): Likewise.
6371 (x86_dr_low_get_status): Likewise.
6373 2015-03-20 Pedro Alves <palves@redhat.com>
6375 * tracepoint.c (cmd_qtstatus): Make "str" const.
6377 2015-03-20 Pedro Alves <palves@redhat.com>
6379 * server.c (handle_general_set): Make "req_str" const.
6381 2015-03-19 Pedro Alves <palves@redhat.com>
6383 * linux-low.c (linux_resume_one_lwp): Rename to ...
6384 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
6385 instead call perror_with_name.
6386 (check_ptrace_stopped_lwp_gone): New function.
6387 (linux_resume_one_lwp): Reimplement as wrapper around
6388 linux_resume_one_lwp_throw that swallows errors if the LWP is
6391 2015-03-19 Pedro Alves <palves@redhat.com>
6393 * linux-low.c (count_events_callback, select_event_lwp_callback):
6394 No longer check whether the thread has resume_stop as last resume
6397 2015-03-19 Pedro Alves <palves@redhat.com>
6399 * linux-low.c (count_events_callback, select_event_lwp_callback):
6400 Use the lwp's status_pending_p field, not the thread's.
6402 2015-03-19 Pedro Alves <palves@redhat.com>
6404 * linux-low.c (select_event_lwp_callback): Update comments to
6405 no longer mention SIGTRAP.
6407 2015-03-18 Gary Benson <gbenson@redhat.com>
6409 * server.c (handle_query): Do not report vFile:fstat as supported.
6411 2015-03-11 Gary Benson <gbenson@redhat.com>
6413 * hostio.c (sys/types.h): New include.
6414 (sys/stat.h): Likewise.
6415 (common-remote-fileio.h): Likewise.
6416 (handle_fstat): New function.
6417 (handle_vFile): Handle vFile:fstat packets.
6419 2015-03-11 Gary Benson <gbenson@redhat.com>
6421 * configure.ac (AC_CHECK_MEMBERS): Add checks for
6422 struct stat.st_blocks and struct stat.st_blksize.
6423 * configure: Regenerate.
6424 * config.in: Likewise.
6425 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
6426 (OBS): Add common-remote-fileio.o.
6427 (common-remote-fileio.o): New rule.
6429 2015-03-09 Pedro Alves <palves@redhat.com>
6431 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
6432 'struct sockaddr' pointer in 'accept' call.
6434 2015-03-09 Pedro Alves <palves@redhat.com>
6437 2015-03-07 Pedro Alves <palves@redhat.com>
6438 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
6439 or <winsock2.h> here. Instead include "gdb_socket.h".
6440 (remote_open): Use union gdb_sockaddr_u.
6441 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
6442 or <winsock2.h> here. Instead include "gdb_socket.h".
6443 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
6444 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
6446 (init_named_socket, gdb_agent_helper_thread): Use union
6449 2015-03-07 Pedro Alves <palves@redhat.com>
6451 * configure.ac (build_warnings): Move
6452 -Wdeclaration-after-statement to the C-specific set.
6453 * configure: Regenerate.
6455 2015-03-07 Pedro Alves <palves@redhat.com>
6457 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
6458 or <winsock2.h> here. Instead include "gdb_socket.h".
6459 (remote_open): Use union gdb_sockaddr_u.
6460 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
6461 or <winsock2.h> here. Instead include "gdb_socket.h".
6462 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
6463 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
6465 (init_named_socket, gdb_agent_helper_thread): Use union
6468 2015-03-07 Pedro Alves <palves@redhat.com>
6470 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
6473 2015-03-06 Yao Qi <yao.qi@linaro.org>
6475 * linux-aarch64-low.c (aarch64_insert_point): Use
6476 show_debug_regs as a boolean.
6477 (aarch64_remove_point): Likewise.
6479 2015-03-05 Pedro Alves <palves@redhat.com>
6481 * lynx-low.c (lynx_target_ops): Install NULL hooks for
6482 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
6483 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
6484 * nto-low.c (nto_target_ops): Likewise.
6485 * spu-low.c (spu_target_ops): Likewise.
6486 * win32-low.c (win32_target_ops): Likewise.
6488 2015-03-04 Pedro Alves <palves@redhat.com>
6490 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
6491 Decide whether a breakpoint triggered based on the SIGTRAP's
6493 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
6494 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
6495 (linux_low_filter_event): Check for breakpoints before checking
6497 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
6499 (linux_stopped_by_sw_breakpoint)
6500 (linux_supports_stopped_by_sw_breakpoint)
6501 (linux_stopped_by_hw_breakpoint)
6502 (linux_supports_stopped_by_hw_breakpoint): New functions.
6503 (linux_target_ops): Install new target methods.
6505 2015-03-04 Pedro Alves <palves@redhat.com>
6507 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
6508 * server.c (swbreak_feature, hwbreak_feature): New globals.
6509 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
6510 (captured_main): Clear swbreak_feature and hwbreak_feature.
6511 * server.h (swbreak_feature, hwbreak_feature): Declare.
6512 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
6513 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
6514 supports_stopped_by_hw_breakpoint>: New fields.
6515 (target_supports_stopped_by_sw_breakpoint)
6516 (target_stopped_by_sw_breakpoint)
6517 (target_supports_stopped_by_hw_breakpoint)
6518 (target_stopped_by_hw_breakpoint): Declare.
6520 2015-03-04 Pedro Alves <palves@redhat.com>
6522 enum lwp_stop_reason -> enum target_stop_reason
6523 * linux-low.c (check_stopped_by_breakpoint): Adjust.
6524 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
6525 (linux_wait_1, stuck_in_jump_pad_callback)
6526 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
6527 (linux_stopped_by_watchpoint):
6528 * linux-low.h (enum lwp_stop_reason): Delete.
6529 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
6530 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
6532 2015-03-04 Yao Qi <yao.qi@linaro.org>
6534 * Makefile.in (SFILES): Add linux-aarch64-low.c.
6536 2015-03-03 Gary Benson <gbenson@redhat.com>
6538 * hostio.c (handle_vFile): Fix prefix lengths.
6540 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
6542 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
6545 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
6547 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
6548 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
6549 (clean): Add "rm -f" for above C files.
6550 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
6551 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
6552 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
6553 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
6554 * linux-s390-low.c (HWCAP_S390_VX): New macro.
6555 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
6556 (init_registers_s390x_vx_linux64)
6557 (init_registers_s390x_tevx_linux64)
6558 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
6559 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
6561 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
6562 (s390_store_vxrs_high): New functions.
6563 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
6565 (s390_arch_setup): Add logic for selecting one of the new target
6566 descriptions. Activate the new vector regsets if applicable.
6567 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
6568 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
6569 and init_registers_s390x_tevx_linux64.
6571 2015-03-01 Pedro Alves <palves@redhat.com>
6573 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
6576 2015-02-27 Pedro Alves <palves@redhat.com>
6578 * linux-x86-low.c (u_debugreg_offset): New function.
6579 (x86_linux_dr_get, x86_linux_dr_set): Use it.
6581 2015-02-27 Pedro Alves <palves@redhat.com>
6583 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
6584 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
6585 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
6586 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6587 (ps_lsetfpregs, ps_getpid)
6588 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
6589 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
6590 (ps_lsetxregs, ps_plog): Declare.
6592 2015-02-27 Pedro Alves <palves@redhat.com>
6594 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
6595 IP_AGENT_EXPORT_FUNC.
6596 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
6597 IP_AGENT_EXPORT_FUNC.
6598 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
6599 (IP_AGENT_EXPORT): Delete.
6600 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
6601 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
6602 (gdb_trampoline_buffer_error, collecting, gdb_collect)
6603 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
6604 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
6605 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
6606 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
6607 (traceframe_read_count, traceframe_write_count)
6608 (traceframes_created, trace_state_variables, get_raw_reg)
6609 (get_trace_state_variable_value, set_trace_state_variable_value)
6610 (ust_loaded, helper_thread_id, cmd_buf): Use
6611 IPA_SYM_EXPORTED_NAME.
6612 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
6613 (tracepoints) Use IP_AGENT_EXPORT_VAR.
6614 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
6615 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
6616 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
6617 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
6618 EXTERN_C_PUSH/EXTERN_C_POP.
6619 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
6620 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
6621 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
6622 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
6623 (traceframe_write_count, traceframe_read_count)
6624 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
6625 (about_to_request_buffer_space, get_trace_state_variable_value)
6626 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
6627 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
6628 EXTERN_C_PUSH/EXTERN_C_POP.
6629 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
6630 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
6631 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
6632 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
6633 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
6634 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
6635 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
6636 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
6638 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
6639 (IP_AGENT_EXPORT_VAR_DECL): Define.
6641 (gdb_agent_get_raw_reg): Declare.
6643 2015-02-27 Tom Tromey <tromey@redhat.com>
6644 Pedro Alves <palves@redhat.com>
6646 Rename symbols whose names are reserved C++ keywords throughout.
6648 2015-02-27 Pedro Alves <palves@redhat.com>
6650 * Makefile.in (COMPILER): New, get it from autoconf.
6651 (CXX): Get from autoconf instead.
6652 (COMPILE.pre): Use COMPILER.
6653 (CC-LD): Rename to ...
6654 (CC_LD): ... this. Use COMPILER.
6655 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
6656 (CXX_FOR_TARGET): Default to g++ instead of gcc.
6657 * acinclude.m4: Include build-with-cxx.m4.
6658 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
6659 Disable -Werror by default if building in C++ mode.
6660 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
6661 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
6662 the C++ compiler. Save/restore CXXFLAGS too.
6663 * configure: Regenerate.
6665 2015-02-27 Pedro Alves <palves@redhat.com>
6667 * acinclude.m4: Include libiberty.m4.
6668 * configure.ac: Call libiberty_INIT.
6669 * config.in, configure: Regenerate.
6671 2015-02-26 Pedro Alves <palves@redhat.com>
6673 * linux-low.c (linux_wait_1): When incrementing the PC past a
6674 program breakpoint always use the_low_target.breakpoint_len as
6675 increment, rather than the maximum between that and
6676 the_low_target.decr_pc_after_break.
6678 2015-02-23 Pedro Alves <palves@redhat.com>
6680 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
6681 thread was doing a step-over; always adjust the PC if
6682 we stepped over a permanent breakpoint.
6683 (linux_wait_1): If we stepped over breakpoint that was on top of a
6684 permanent breakpoint, manually advance the PC past it.
6686 2015-02-23 Pedro Alves <palves@redhat.com>
6688 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
6690 (x86_fill_gregset, x86_store_gregset): Use it when handling
6693 2015-02-20 Pedro Alves <palves@redhat.com>
6695 * thread-db.c: Include "nat/linux-procfs.h".
6696 (thread_db_init): Skip listing new threads if the kernel supports
6697 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
6699 2015-02-20 Pedro Alves <palves@redhat.com>
6701 * linux-low.c (status_pending_p_callback): Use ptid_match.
6703 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
6705 PR breakpoints/16812
6706 * linux-low.c (wstatus_maybe_breakpoint): Remove.
6707 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
6708 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
6710 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
6712 PR breakpoints/15956
6713 * tracepoint.c (cmd_qtinit): Add check for current_thread.
6715 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6717 * linux-low.c (linux_low_btrace_conf): Print size.
6718 * server.c (handle_btrace_conf_general_set): New.
6719 (hanle_general_set): Call handle_btrace_conf_general_set.
6720 (handle_query): Report Qbtrace-conf:bts:size as supported.
6722 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6724 * linux-low.c (linux_low_enable_btrace): Update parameters.
6725 (linux_low_btrace_conf): New.
6726 (linux_target_ops)<to_btrace_conf>: Initialize.
6727 * server.c (current_btrace_conf): New.
6728 (handle_btrace_enable): Rename to ...
6729 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
6730 to target_enable_btrace. Update comment. Update users.
6731 (handle_qxfer_btrace_conf): New.
6732 (qxfer_packets): Add btrace-conf entry.
6733 (handle_query): Report qXfer:btrace-conf:read as supported packet.
6734 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
6735 (target_ops)<read_btrace_conf>: New.
6736 (target_enable_btrace): Update parameters.
6737 (target_read_btrace_conf): New.
6739 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6741 * server.c (handle_btrace_general_set): Remove call to
6742 target_supports_btrace.
6743 (supported_btrace_packets): New.
6744 (handle_query): Call supported_btrace_packets.
6745 * target.h: include btrace-common.h.
6746 (btrace_target_info): Removed.
6747 (supports_btrace, target_supports_btrace): Update parameters.
6749 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6751 * Makefile.in (SFILES): Add common/btrace-common.c.
6752 (OBS): Add common/btrace-common.o.
6753 (btrace-common.o): Add build rules.
6754 * linux-low: Include btrace-common.h.
6755 (linux_low_read_btrace): Use struct btrace_data. Call
6756 btrace_data_init and btrace_data_fini.
6758 2015-02-06 Pedro Alves <palves@redhat.com>
6760 * thread-db.c (find_new_threads_callback): Add debug output.
6762 2015-02-04 Pedro Alves <palves@redhat.com>
6764 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
6765 (resume_stopped_resumed_lwps): New function.
6766 (linux_wait_for_event_filtered): Use it.
6768 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
6770 * Makefile.in (SFILES): Add linux-personality.c.
6771 (linux-personality.o): New rule.
6772 * configure.srv (srv_linux_obj): Add linux-personality.o to the
6773 list of objects to be built.
6774 * linux-low.c: Include nat/linux-personality.h.
6775 (linux_create_inferior): Remove code to disable address space
6776 randomization (moved to ../nat/linux-personality.c). Create
6777 cleanup to disable address space randomization.
6779 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
6781 * Makefile.in (posix-strerror.o): New rule.
6782 (mingw-strerror.o): Likewise.
6783 * configure: Regenerated.
6784 * configure.ac: Source file ../common/common.host. Initialize new
6785 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
6787 2015-01-14 Yao Qi <yao@codesourcery.com>
6789 * Makefile.in (SFILES): Add nat/ppc-linux.c.
6790 (ppc-linux.o): New rule.
6791 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
6792 * configure.ac: AC_CHECK_FUNCS(getauxval).
6793 * config.in: Re-generated.
6794 * configure: Re-generated.
6795 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
6796 ppc64_64bit_inferior_p
6798 2015-01-14 Yao Qi <yao@codesourcery.com>
6800 * linux-ppc-low.c: Include "nat/ppc-linux.h".
6801 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
6802 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
6803 (PT_ORIG_R3, PT_TRAP): Likewise.
6804 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
6805 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
6806 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
6808 2015-01-10 Joel Brobecker <brobecker@adacore.com>
6810 * i387-fp.c (i387_cache_to_xsave): In look over
6811 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
6812 zmmh_low_space field by use of zmmh_high_space.
6814 2015-01-09 Pedro Alves <palves@redhat.com>
6816 * linux-low.c (step_over_bkpt): Move higher up in the file.
6817 (handle_extended_wait): Don't store the stop_pc here.
6818 (get_stop_pc): Adjust comments and rename to ...
6819 (check_stopped_by_breakpoint): ... this. Record whether the LWP
6820 stopped for a software breakpoint or hardware breakpoint.
6821 (thread_still_has_status_pending_p): New function.
6822 (status_pending_p_callback): Use
6823 thread_still_has_status_pending_p. If the event is no longer
6824 interesting, resume the LWP.
6825 (handle_tracepoints): Add assert.
6826 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
6827 (wstatus_maybe_breakpoint): New function.
6828 (cancel_breakpoint): Delete function.
6829 (check_stopped_by_watchpoint): New function, factored out from
6830 linux_low_filter_event.
6831 (lp_status_maybe_breakpoint): Delete function.
6832 (linux_low_filter_event): Remove filter_ptid argument.
6833 Leave thread group exits pending here. Store the LWP's stop PC.
6834 Always leave events pending.
6835 (linux_wait_for_event_filtered): Pull all events out of the
6836 kernel, and leave them all pending.
6837 (count_events_callback, select_event_lwp_callback): Consider all
6839 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
6840 (select_event_lwp): Only give preference to the stepping LWP in
6841 all-stop mode. Adjust comments.
6842 (ignore_event): New function.
6843 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
6844 references to cancel_breakpoints. Adjust to renames. Also give
6845 equal priority to all LWPs that have had events in non-stop mode.
6846 If reporting a software breakpoint event, unadjust the LWP's PC.
6847 (linux_wait): If linux_wait_1 returned an ignored event, retry.
6848 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
6850 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
6851 (resume_status_pending_p): Use thread_still_has_status_pending_p.
6852 (linux_stopped_by_watchpoint): Adjust.
6853 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
6854 * linux-low.h (enum lwp_stop_reason): New.
6855 (struct lwp_info) <stop_pc>: Adjust comment.
6856 <stopped_by_watchpoint>: Delete field.
6857 <stop_reason>: New field.
6858 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
6859 * mem-break.c (software_breakpoint_inserted_here)
6860 (hardware_breakpoint_inserted_here): New function.
6861 * mem-break.h (software_breakpoint_inserted_here)
6862 (hardware_breakpoint_inserted_here): Declare.
6863 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
6864 (cancel_breakpoints): Delete.
6865 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
6866 (upload_fast_traceframes): Remove references to
6869 2015-01-09 Pedro Alves <palves@redhat.com>
6871 * thread-db.c (find_new_threads_callback): Ignore thread if the
6872 kernel thread ID is -1.
6874 2015-01-09 Pedro Alves <palves@redhat.com>
6876 * linux-low.c (linux_attach_fail_reason_string): Move to
6877 nat/linux-ptrace.c, and rename.
6878 (linux_attach_lwp): Update comment.
6879 (attach_proc_task_lwp_callback): New function.
6880 (linux_attach): Adjust to rename and use
6881 linux_proc_attach_tgid_threads.
6882 (linux_attach_fail_reason_string): Delete declaration.
6884 2015-01-01 Joel Brobecker <brobecker@adacore.com>
6886 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
6887 * server.c (gdbserver_version): Likewise.
6889 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
6891 * remote-utils.c: Include ctype.h.
6892 (input_interrupt): Explicitly handle the case when the char
6893 received is the NUL byte. Improve the printing of non-ASCII
6896 2014-12-16 Joel Brobecker <brobecker@adacore.com>
6898 * linux-low.c (linux_low_filter_event): Update call to
6899 linux_enable_event_reporting following the addition of
6900 a new parameter to that function.
6902 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
6905 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
6906 (AARCH64_FPCR_REGNO): Likewise.
6907 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
6908 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
6909 (aarch64_store_fpregset): Likewise.
6911 2014-12-15 Joel Brobecker <brobecker@adacore.com>
6913 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
6914 Remove FIXME comment about assumption about N.
6916 2014-12-13 Joel Brobecker <brobecker@adacore.com>
6918 * configure.ac: If large-file support is disabled in GDBserver,
6919 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
6920 * configure: Regenerate.
6922 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
6924 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
6925 warning upon ENODATA from ptrace.
6926 * linux-s390-low.c (s390_store_tdb): New.
6927 (s390_regsets): Add regset for NT_S390_TDB.
6929 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
6931 * linux-low.c (regsets_store_inferior_registers): Skip regsets
6932 without a fill_function.
6933 * linux-s390-low.c (s390_fill_last_break): Remove.
6934 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
6935 (s390_arch_setup): Use regset's size instead of fill_function for
6938 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
6940 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
6941 the regset's store function when ptrace returned an error.
6942 * regcache.c (get_thread_regcache): Invalidate register cache
6943 before fetching inferior's registers.
6945 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
6947 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
6948 while-loop as for-loop.
6949 (regsets_store_inferior_registers): Likewise.
6951 2014-11-28 Yao Qi <yao@codesourcery.com>
6953 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
6954 * config.in, configure: Re-generate.
6955 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
6958 2014-11-21 Yao Qi <yao@codesourcery.com>
6960 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
6961 (AC_CHECK_HEADERS): Remove malloc.h.
6962 * configure: Re-generated.
6963 * config.in: Re-generated.
6964 * server.h: Don't include alloca.h and malloc.h.
6965 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
6966 Don't include malloc.h.
6968 2014-11-17 Joel Brobecker <brobecker@adacore.com>
6970 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
6971 corresponding ERRNO check in same block.
6973 2014-11-12 Pedro Alves <palves@redhat.com>
6975 * server.c (cont_thread): Update comment.
6976 (start_inferior, attach_inferior): No longer clear cont_thread.
6977 (handle_v_cont): No longer set cont_thread.
6978 (captured_main): Clear cont_thread each time a GDB connects.
6980 2014-11-12 Pedro Alves <palves@redhat.com>
6982 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
6983 thread, and don't resume all threads if the Hc thread has exited.
6985 2014-11-12 Pedro Alves <palves@redhat.com>
6987 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
6988 the process group instead of to a specific LWP.
6990 2014-10-15 Pedro Alves <palves@redhat.com>
6993 * win32-arm-low.c (arm_set_thread_context): Remove current_event
6995 (arm_set_thread_context): Delete.
6996 (the_low_target): Adjust.
6997 * win32-i386-low.c (debug_registers_changed)
6998 (debug_registers_used): Delete.
6999 (update_debug_registers_callback): New function.
7000 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
7001 needing to update their debug registers.
7002 (win32_get_current_dr): New function.
7003 (x86_dr_low_get_addr, x86_dr_low_get_control)
7004 (x86_dr_low_get_status): Fetch the debug register from the thread
7006 (i386_initial_stuff): Adjust.
7007 (i386_get_thread_context): Remove current_event parameter. Don't
7008 clear debug_registers_changed nor copy DR values to
7010 (i386_set_thread_context): Delete.
7011 (i386_prepare_to_resume): New function.
7012 (i386_thread_added): Mark the thread as needing to update irs
7014 (the_low_target): Remove i386_set_thread_context and install
7015 i386_prepare_to_resume.
7016 * win32-low.c (win32_get_thread_context): Adjust.
7017 (win32_set_thread_context): Use SetThreadContext
7019 (win32_prepare_to_resume): New function.
7020 (win32_require_context): New function, factored out from ...
7021 (thread_rec): ... this.
7022 (continue_one_thread): Call win32_prepare_to_resume on each thread
7023 we're about to continue.
7024 (win32_resume): Call win32_prepare_to_resume on the event thread.
7025 * win32-low.h (struct win32_thread_info)
7026 <debug_registers_changed>: New field.
7027 (struct win32_target_ops): Change prototype of set_thread_context,
7028 delete set_thread_context and add prepare_to_resume.
7029 (win32_require_context): New declaration.
7031 2014-10-08 Gary Benson <gbenson@redhat.com>
7033 * server.h: Do not include common-exceptions.h.
7035 2014-10-08 Gary Benson <gbenson@redhat.com>
7037 * server.h: Do not include cleanups.h.
7039 2014-09-30 James Hogan <james.hogan@imgtec.com>
7041 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
7044 2014-09-23 Yao Qi <yao@codesourcery.com>
7046 * linux-low.c (lp_status_maybe_breakpoint): New function.
7047 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
7048 (count_events_callback): Likewise.
7049 (select_event_lwp_callback): Likewise.
7050 (cancel_breakpoints_callback): Likewise.
7052 2014-09-19 Don Breazeal <donb@codesourcery.com>
7054 * linux-low.c (handle_extended_wait): Call
7055 linux_ptrace_get_extended_event.
7056 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
7057 linux_is_extended_waitstatus.
7059 2014-09-16 Joel Brobecker <brobecker@adacore.com>
7061 * Makefile.in (CPPFLAGS): Define.
7062 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
7063 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
7065 2014-09-16 Gary Benson <gbenson@redhat.com>
7067 * inferiors.h (current_inferior): Renamed as...
7068 (current_thread): New variable. All uses updated.
7069 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
7070 (maybe_move_out_of_jump_pad): Likewise.
7071 (cancel_breakpoint): Likewise.
7072 (linux_low_filter_event): Likewise.
7073 (wait_for_sigstop): Likewise.
7074 (linux_resume_one_lwp): Likewise.
7075 (need_step_over_p): Likewise.
7076 (start_step_over): Likewise.
7077 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
7078 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
7079 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
7080 and save_inferior as saved_thread.
7081 * regcache.c (get_thread_regcache): Renamed saved_inferior as
7083 (regcache_invalidate_thread): Likewise.
7084 * remote-utils.c (prepare_resume_reply): Likewise.
7085 * thread-db.c (thread_db_get_tls_address): Likewise.
7086 (disable_thread_event_reporting): Likewise.
7087 (remove_thread_event_breakpoints): Likewise.
7088 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
7090 * target.h (set_desired_inferior): Renamed as...
7091 (set_desired_thread): New declaration. All uses updated.
7092 * server.c (myresume): Updated comment to reference thread instead
7094 (handle_serial_event): Likewise.
7095 (handle_target_event): Likewise.
7097 2014-09-12 Tom Tromey <tromey@redhat.com>
7098 Gary Benson <gbenson@redhat.com>
7100 * regcache.h: Include common-regcache.h.
7101 (regcache_read_pc): Don't declare.
7102 * regcache.c (get_thread_regcache_for_ptid): New function.
7104 2014-09-11 Tom Tromey <tromey@redhat.com>
7105 Gary Benson <gbenson@redhat.com>
7107 * symbol.c: New file.
7108 * Makefile.in (SFILES): Add symbol.c.
7109 (OBS): Add symbol.o.
7111 2014-09-11 Gary Benson <gbenson@redhat.com>
7113 * target.c (target_stop_ptid, target_continue_ptid): New
7116 2014-09-11 Tom Tromey <tromey@redhat.com>
7117 Gary Benson <gbenson@redhat.com>
7119 * target.h: Include target/target.h.
7120 * target.c (target_read_memory, target_read_uint32)
7121 (target_write_memory): New functions.
7123 2014-09-11 Gary Benson <gbenson@redhat.com>
7125 * server.h (debug_hw_points): Don't declare.
7126 * server.c (debug_hw_points): Don't define. Replace all uses
7127 with show_debug_regs.
7128 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
7129 all uses with show_debug_regs.
7131 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7133 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
7134 endianness into account.
7135 (ppc_supply_ptrace_register): Likewise.
7137 2014-09-03 James Hogan <james.hogan@imgtec.com>
7139 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
7140 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
7142 2014-09-03 Gary Benson <gbenson@redhat.com>
7144 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
7145 ALL_DEBUG_ADDRESS_REGISTERS.
7147 2014-09-02 Gary Benson <gbenson@redhat.com>
7149 * i386-low.h: Renamed as...
7150 * x86-low.h: New file. All type, function and variable name
7151 prefixes changed from "i386_" to "x86_". All references updated.
7152 * i386-low.c: Renamed as...
7153 * x86-low.c: New file. All type, function and variable name
7154 prefixes changed from "i386_" to "x86_". All references updated.
7156 2014-09-02 Gary Benson <gbenson@redhat.com>
7158 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
7159 (x86_linux_new_thread): Likewise.
7161 2014-08-29 Gary Benson <gbenson@redhat.com>
7163 * server.h (setjmp.h): Do not include.
7164 (toplevel): Do not declare.
7165 (common-exceptions.h): Include.
7166 (cleanups.h): Likewise.
7167 * server.c (toplevel): Do not define.
7168 (exit_code): New static global.
7169 (detach_or_kill_for_exit_cleanup): New function.
7170 (main): New function. Original main renamed to...
7171 (captured_main): New function.
7172 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
7174 2014-08-29 Gary Benson <gbenson@redhat.com>
7176 * Makefile.in (SFILES): Add common/common-exceptions.c.
7177 (OBS): Add common-exceptions.o.
7178 (common-exceptions.o): New rule.
7179 * utils.c (prepare_to_throw_exception): New function.
7181 2014-08-29 Gary Benson <gbenson@redhat.com>
7183 * config.in: Regenerate.
7184 * configure: Likewise.
7186 2014-08-29 Gary Benson <gbenson@redhat.com>
7188 * Makefile.in (SFILES): Add common/cleanups.c.
7190 (cleanups.o): New rule.
7192 2014-08-29 Gary Benson <gbenson@redhat.com>
7194 * utils.c (internal_vwarning): New function.
7196 2014-08-28 Gary Benson <gbenson@redhat.com>
7198 * utils.h (fatal): Remove declaration.
7199 * utils.c (fatal): Remove function.
7201 2014-08-28 Gary Benson <gbenson@redhat.com>
7203 * tracepoint.c (gdb_agent_init): Replace fatal with
7205 (initialize_tracepoint): Likewise.
7207 2014-08-28 Gary Benson <gbenson@redhat.com>
7209 * remote-utils.c (remote_prepare): Replace fatal with error.
7211 2014-08-28 Gary Benson <gbenson@redhat.com>
7213 * linux-low.c (linux_async): Replace fatal with warning.
7215 (linux_start_non_stop): Return -1 if linux_async failed.
7217 2014-08-28 Gary Benson <gbenson@redhat.com>
7219 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
7221 (i386_dr_low_get_addr): Remove vague comment.
7222 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
7225 2014-08-28 Gary Benson <gbenson@redhat.com>
7227 * inferiors.c (get_thread_process): Replace check with gdb_assert.
7228 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
7230 (linux_resume_one_lwp): Likewise.
7231 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
7233 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
7234 with internal_error.
7235 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
7236 (init_register_cache): Replace fatal with gdb_assert_not_reached.
7237 (find_register_by_name): Replace fatal with internal_error.
7238 (find_regno): Likewise.
7239 * tdesc.c (init_target_desc): Replace check with gdb_assert.
7240 * thread-db.c (thread_db_create_event): Likewise.
7241 (thread_db_load_search): Likewise.
7242 (try_thread_db_load_1): Likewise.
7243 * tracepoint.c (get_jump_space_head): Replace fatal with
7245 (claim_trampoline_space): Likewise.
7246 (have_fast_tracepoint_trampoline_buffer): Likewise.
7247 (cmd_qtstart): Likewise.
7248 (stop_tracing): Likewise.
7249 (fast_tracepoint_collecting): Likewise.
7250 (target_malloc): Likewise.
7251 (download_tracepoint): Likewise.
7252 (download_trace_state_variables): Replace check with gdb_assert.
7253 (upload_fast_traceframes): Replace fatal with internal_error.
7255 2014-08-19 Tom Tromey <tromey@redhat.com>
7256 Gary Benson <gbenson@redhat.com>
7258 * Makefile.in (SFILES): Add common/common-debug.c.
7259 (OBS): Add common-debug.o.
7260 (common-debug.o): New rule.
7261 * debug.h (debug_printf): Don't declare.
7262 * debug.c (debug_printf): Renamed and rewritten as...
7263 (debug_vprintf): New function.
7265 2014-08-19 Gary Benson <gbenson@redhat.com>
7267 * utils.h: Do not include print-utils.h.
7269 2014-08-19 Tom Tromey <tromey@redhat.com>
7270 Gary Benson <gbenson@redhat.com>
7272 * server.h: Add static assertion.
7273 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
7275 2014-08-19 Tom Tromey <tromey@redhat.com>
7276 Gary Benson <gbenson@redhat.com>
7278 * Makefile.in (SFILES): Add common/errors.c.
7279 (OBS): Add errors.o.
7280 (IPA_OBS): Add errors-ipa.o.
7281 (errors.o): New rule.
7282 (errors-ipa.o): Likewise.
7283 * utils.h (perror_with_name, error, warning): Don't declare.
7284 * utils.c (warning): Renamed and rewritten as...
7285 (vwarning): New function.
7286 (error): Renamed and rewritten as...
7287 (verror): New function.
7288 (internal_error): Renamed and rewritten as...
7289 (internal_verror): New function.
7291 2014-08-07 Gary Benson <gbenson@redhat.com>
7293 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
7294 * configure: Regenerate.
7295 * config.in: Likewise.
7296 * server.h: Do not include errno.h.
7297 * event-loop.c: Likewise.
7298 * hostio-errno.c: Likewise.
7299 * linux-low.c: Likewise.
7300 * remote-utils.c: Likewise.
7301 * spu-low.c: Likewise.
7302 * utils.c: Likewise.
7303 * gdbreplay.c: Unconditionally include errno.h.
7305 2014-08-07 Gary Benson <gbenson@redhat.com>
7307 * server.h: Do not include string.h.
7308 * event-loop.c: Likewise.
7309 * linux-low.c: Likewise.
7310 * regcache.c: Likewise.
7311 * remote-utils.c: Likewise.
7312 * spu-low.c: Likewise.
7313 * utils.c: Likewise.
7315 2014-08-07 Gary Benson <gbenson@redhat.com>
7317 * server.h: Do not include gdb_assert.h.
7319 2014-08-07 Gary Benson <gbenson@redhat.com>
7321 * server.h: Do not include common-utils.h.
7323 2014-08-07 Gary Benson <gbenson@redhat.com>
7325 * server.h: Do not include ptid.h.
7326 * notif.h: Likewise.
7328 2014-08-07 Gary Benson <gbenson@redhat.com>
7330 * server.h: Do not include gdb_locale.h.
7332 2014-08-07 Gary Benson <gbenson@redhat.com>
7334 * server.h: Do not include gdb/signals.h.
7335 * win32-low.c: Likewise.
7337 2014-08-07 Gary Benson <gbenson@redhat.com>
7339 * server.h: Do not include pathmax.h.
7341 2014-08-07 Gary Benson <gbenson@redhat.com>
7343 * server.h: Do not include libiberty.h.
7344 * linux-bfin-low.c: Likewise.
7346 2014-08-07 Gary Benson <gbenson@redhat.com>
7348 * server.h: Do not include ansidecl.h.
7350 2014-08-07 Gary Benson <gbenson@redhat.com>
7352 * linux-x86-low.c: Do not include stddef.h.
7353 * lynx-ppc-low.c: Likewise.
7354 * tracepoint.c: Likewise.
7356 2014-08-07 Gary Benson <gbenson@redhat.com>
7358 * server.h: Do not include stdarg.h.
7359 * nto-low.c: Likewise.
7361 2014-08-07 Gary Benson <gbenson@redhat.com>
7363 * server.h: Do not include stdlib.h.
7364 * inferiors.c: Likewise.
7365 * linux-low.c: Likewise.
7366 * regcache.c: Likewise.
7367 * spu-low.c: Likewise.
7368 * tracepoint.c: Likewise.
7369 * utils.c: Likewise.
7371 2014-08-07 Gary Benson <gbenson@redhat.com>
7373 * server.h: Do not include stdio.h.
7374 * linux-low.c: Likewise.
7375 * remote-utils.c: Likewise.
7376 * spu-low.c: Likewise.
7377 * utils.c: Likewise.
7378 * wincecompat.c: Likewise.
7380 2014-08-06 Gary Benson <gbenson@redhat.com>
7382 * regcache.c (init_register_cache): Move conditionals inside if.
7384 2014-08-06 Gary Benson <gbenson@redhat.com>
7386 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
7388 2014-07-31 Gary Benson <gbenson@redhat.com>
7390 * ax.h: Do not include server.h.
7391 * gdbthread.h: Likewise.
7392 * lynx-low.h: Likewise.
7393 * notif.h: Likewise.
7395 2014-07-30 Gary Benson <gbenson@redhat.com>
7397 * server.h: Include common-defs.h.
7398 Do not include config.h or build-gnulib-gdbserver/config.h.
7400 2014-07-30 Gary Benson <gbenson@redhat.com>
7402 * hostio-errno.c: Move server.h to top of includes list.
7403 * inferiors.c: Likewise.
7404 * linux-x86-low.c: Likewise.
7405 * notif.c: Include server.h.
7407 2014-07-24 Tom Tromey <tromey@redhat.com>
7408 Gary Benson <gbenson@redhat.com>
7410 * server.h (CORE_ADDR): Now unsigned.
7412 2014-07-16 Pedro Alves <palves@redhat.com>
7414 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
7416 2014-07-15 Pedro Alves <palves@redhat.com>
7418 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
7421 2014-07-11 Pedro Alves <palves@redhat.com>
7423 * linux-low.c (kill_wait_lwp): New function, based on
7424 kill_one_lwp_callback, but use my_waitpid directly.
7425 (kill_one_lwp_callback, linux_kill): Use it.
7427 2014-06-23 Pedro Alves <palves@redhat.com>
7429 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
7430 before setting DR0..DR3.
7432 2014-06-20 Gary Benson <gbenson@redhat.com>
7434 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
7435 * configure: Regenerated.
7436 * config.in: Likewise.
7438 2014-06-20 Gary Benson <gbenson@redhat.com>
7440 * Makefile.in (SFILES): Update locations for files moved
7442 (object file files): Reordered.
7444 2014-06-20 Gary Benson <gbenson@redhat.com>
7446 * i386-low.h (i386_dr_low_can_set_addr): Removed.
7447 (i386_dr_low_set_addr): Likewise.
7448 (i386_dr_low_get_addr): Likewise.
7449 (i386_dr_low_can_set_control): Likewise.
7450 (i386_dr_low_set_control): Likewise.
7451 (i386_dr_low_get_control): Likewise.
7452 (i386_dr_low_get_status): Likewise.
7453 (i386_get_debug_register_length): Likewise.
7454 * linux-x86-low.c (i386_dr_low_set_addr):
7455 Changed signature. Made static.
7456 (i386_dr_low_get_addr): Likewise.
7457 (i386_dr_low_set_control): Likewise.
7458 (i386_dr_low_get_control): Likewise.
7459 (i386_dr_low_get_status): Likewise.
7460 (i386_dr_low): New global variable.
7461 * win32-i386-low.c (i386_dr_low_set_addr):
7462 Changed signature. Made static.
7463 (i386_dr_low_get_addr): Likewise.
7464 (i386_dr_low_set_control): Likewise.
7465 (i386_dr_low_get_control): Likewise.
7466 (i386_dr_low_get_status): Likewise.
7467 (i386_dr_low): New global variable.
7469 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
7471 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
7472 * Makefile.in (AR, AR_FLAGS): Define.
7473 * configure: Regenerate.
7475 2014-06-19 Gary Benson <gbenson@redhat.com>
7477 * Makefile.in (i386-dregs.o): New rule.
7478 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
7479 * i386-low.c (target.h): Remove include.
7480 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
7481 (DR_CONTROL_SHIFT): Likewise.
7482 (DR_CONTROL_SIZE): Likewise.
7483 (DR_RW_EXECUTE): Likewise.
7484 (DR_RW_WRITE): Likewise.
7485 (DR_RW_READ): Likewise.
7486 (DR_RW_IORW): Likewise.
7487 (DR_LEN_1): Likewise.
7488 (DR_LEN_2): Likewise.
7489 (DR_LEN_4): Likewise.
7490 (DR_LEN_8): Likewise.
7491 (DR_LOCAL_ENABLE_SHIFT): Likewise.
7492 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
7493 (DR_ENABLE_SIZE): Likewise.
7494 (DR_LOCAL_SLOWDOWN): Likewise.
7495 (DR_GLOBAL_SLOWDOWN): Likewise.
7496 (DR_CONTROL_RESERVED): Likewise.
7497 (I386_DR_CONTROL_MASK): Likewise.
7498 (I386_DR_VACANT): Likewise.
7499 (I386_DR_LOCAL_ENABLE): Likewise.
7500 (I386_DR_GLOBAL_ENABLE): Likewise.
7501 (I386_DR_DISABLE): Likewise.
7502 (I386_DR_SET_RW_LEN): Likewise.
7503 (I386_DR_GET_RW_LEN): Likewise.
7504 (I386_DR_WATCH_HIT): Likewise.
7505 (i386_wp_op_t): Likewise.
7506 (i386_show_dr): Likewise.
7507 (i386_length_and_rw_bits): Likewise.
7508 (i386_insert_aligned_watchpoint): Likewise.
7509 (i386_remove_aligned_watchpoint): Likewise.
7510 (i386_handle_nonaligned_watchpoint): Likewise.
7511 i386_update_inferior_debug_regs(): Likewise.
7512 (i386_dr_insert_watchpoint): Likewise.
7513 (i386_dr_remove_watchpoint): Likewise.
7514 (i386_dr_region_ok_for_watchpoint): Likewise.
7515 (i386_dr_stopped_data_address): Likewise.
7516 (i386_dr_stopped_by_watchpoint): Likewise.
7518 2014-06-19 Gary Benson <gbenson@redhat.com>
7520 * i386-low.c (i386_dr_show): Renamed to
7521 i386_show_dr and made static. All uses updated.
7522 (i386_dr_length_and_rw_bits): Renamed to
7523 i386_length_and_rw_bits and made static.
7525 (i386_dr_insert_aligned_watchpoint): Renamed to
7526 i386_insert_aligned_watchpoint and made static.
7528 (i386_dr_remove_aligned_watchpoint): Renamed to
7529 i386_remove_aligned_watchpoint and made static.
7531 (i386_dr_update_inferior_debug_regs): Renamed to
7532 i386_update_inferior_debug_regs and made static.
7535 2014-06-18 Gary Benson <gbenson@redhat.com>
7537 * i386-low.h (i386_dr_low_can_set_addr): New macro.
7538 (i386_dr_low_can_set_control): Likewise.
7539 (i386_get_debug_register_length): Likewise.
7540 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
7541 (i386_dr_low_can_set_control): Likewise.
7542 (i386_get_debug_register_length): Likewise.
7544 2014-06-17 Gary Benson <gbenson@redhat.com>
7546 * i386-low.h (i386-dregs.h): New include.
7547 (DR_FIRSTADDR): Now in i386-dregs.h.
7548 (DR_LASTADDR): Likewise.
7549 (DR_NADDR): Likewise.
7550 (DR_STATUS): Likewise.
7551 (DR_CONTROL): Likewise.
7552 (i386_debug_reg_state): Likewise.
7553 (i386_dr_insert_watchpoint): Likewise.
7554 (i386_dr_remove_watchpoint): Likewise.
7555 (i386_dr_region_ok_for_watchpoint): Likewise.
7556 (i386_dr_stopped_data_address): Likewise.
7557 (i386_dr_stopped_by_watchpoint): Likewise.
7558 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
7560 2014-06-18 Gary Benson <gbenson@redhat.com>
7562 * i386-low.h (i386_low_insert_watchpoint): Renamed to
7563 i386_dr_insert_watchpoint.
7564 (i386_low_remove_watchpoint): Renamed to
7565 i386_dr_remove_watchpoint.
7566 (i386_low_region_ok_for_watchpoint): Renamed to
7567 i386_dr_region_ok_for_watchpoint.
7568 (i386_low_stopped_data_address): Renamed to
7569 i386_dr_stopped_data_address.
7570 (i386_low_stopped_by_watchpoint): Renamed to
7571 i386_dr_stopped_by_watchpoint.
7572 * i386-low.c (i386_show_dr): Renamed to
7573 i386_dr_show and made nonstatic. All uses updated.
7574 (i386_length_and_rw_bits): Renamed to
7575 i386_dr_length_and_rw_bits and made nonstatic.
7577 (i386_insert_aligned_watchpoint): Renamed to
7578 i386_dr_insert_aligned_watchpoint and made nonstatic.
7580 (i386_remove_aligned_watchpoint): Renamed to
7581 i386_dr_remove_aligned_watchpoint and made nonstatic.
7583 (i386_update_inferior_debug_regs): Renamed to
7584 i386_dr_update_inferior_debug_regs and made nonstatic.
7586 (i386_low_insert_watchpoint): Renamed to
7587 i386_dr_insert_watchpoint. All uses updated.
7588 (i386_low_remove_watchpoint): Renamed to
7589 i386_dr_remove_watchpoint. All uses updated.
7590 (i386_low_region_ok_for_watchpoint): Renamed to
7591 i386_dr_region_ok_for_watchpoint. All uses updated.
7592 (i386_low_stopped_data_address): Renamed to
7593 i386_dr_stopped_data_address. All uses updated.
7594 (i386_low_stopped_by_watchpoint): Renamed to
7595 i386_dr_stopped_by_watchpoint. All uses updated.
7597 2014-06-18 Gary Benson <gbenson@redhat.com>
7599 * i386-low.c (i386_dr_low_can_set_addr): New macro.
7600 (i386_dr_low_can_set_control): Likewise.
7601 (i386_insert_aligned_watchpoint): New check.
7603 2014-06-18 Gary Benson <gbenson@redhat.com>
7605 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
7608 2014-06-18 Gary Benson <gbenson@redhat.com>
7610 * i386-low.c (i386_length_and_rw_bits): Use internal_error
7611 instead of fatal and error.
7612 (i386_handle_nonaligned_watchpoint): Likewise.
7614 2014-06-18 Gary Benson <gbenson@redhat.com>
7616 * i386-low.c (i386_get_debug_register_length): New macro.
7617 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
7618 (i386_show_dr): Use debug_printf instead of fprintf. Use
7619 phex to format values.
7621 2014-06-18 Gary Benson <gbenson@redhat.com>
7623 * i386-low.h: Comment changes.
7624 * i386-low.c: Likewise.
7626 2014-06-18 Gary Benson <gbenson@redhat.com>
7628 * i386-low.c: Whitespace changes.
7630 2014-06-12 Tom Tromey <tromey@redhat.com>
7632 * utils.c (freeargv): Remove.
7634 2014-06-12 Tom Tromey <tromey@redhat.com>
7636 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
7637 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
7638 (parse_debug_format_options): Likewise.
7639 (gdbserver_usage): Likewise.
7640 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
7641 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
7642 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
7644 ($(LIBGNU)): Depend on libiberty.
7645 (all-lib): Recurse into all subdirs.
7646 (install-only): Invoke "install" target in subdirs.
7647 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
7649 * configure: Rebuild.
7650 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
7651 for vasprintf, vsnprintf, or gettimeofday.
7652 * configure.srv: Don't add safe-ctype.o or lbasename.o to
7655 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7657 * development.sh: Delete.
7658 * Makefile.in (config.status): Adjust dependency on development.sh.
7659 * configure.ac: Adjust development.sh source call.
7660 * configure: Regenerate.
7662 2014-06-02 Pedro Alves <palves@redhat.com>
7664 * ax.c (gdb_free_agent_expr): New function.
7665 * ax.h (gdb_free_agent_expr): New declaration.
7666 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
7668 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
7670 (clear_breakpoint_conditions_and_commands): New function.
7671 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
7672 (clear_breakpoint_conditions_and_commands): New declaration.
7674 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7676 * linux-aarch64-low.c (asm/ptrace.h): Include.
7678 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7680 Fix TLS access for -static -pthread.
7681 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
7682 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
7683 (thread_db_load_search, try_thread_db_load_1): Initialize it.
7685 2014-05-20 Pedro Alves <palves@redhat.com>
7687 * linux-aarch64-low.c (aarch64_insert_point)
7688 (aarch64_remove_point): No longer check whether the type is
7689 supported here. Adjust to new interface.
7690 (the_low_target): Install aarch64_supports_z_point_type as
7691 supports_z_point_type method.
7692 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
7693 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
7694 instead of a Z packet char. Adjust.
7695 (arm_supports_z_point_type): New function.
7696 (arm_insert_point, arm_remove_point): Adjust to new interface.
7697 (the_low_target): Install arm_supports_z_point_type.
7698 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
7699 (cris_insert_point, cris_remove_point): Adjust to new interface.
7700 Don't check whether the type is supported here.
7701 (the_low_target): Install cris_supports_z_point_type.
7702 * linux-low.c (linux_supports_z_point_type): New function.
7703 (linux_insert_point, linux_remove_point): Adjust to new interface.
7704 * linux-low.h (struct linux_target_ops) <insert_point,
7705 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
7706 raw_breakpoint pointer parameter.
7707 <supports_z_point_type>: New method.
7708 * linux-mips-low.c (mips_supports_z_point_type): New function.
7709 (mips_insert_point, mips_remove_point): Adjust to new interface.
7710 Use mips_supports_z_point_type.
7711 (the_low_target): Install mips_supports_z_point_type.
7712 * linux-ppc-low.c (the_low_target): Install NULL as
7713 supports_z_point_type method.
7714 * linux-s390-low.c (the_low_target): Install NULL as
7715 supports_z_point_type method.
7716 * linux-sparc-low.c (the_low_target): Install NULL as
7717 supports_z_point_type method.
7718 * linux-x86-low.c (x86_supports_z_point_type): New function.
7719 (x86_insert_point): Adjust to new insert_point interface. Use
7720 insert_memory_breakpoint. Adjust to new
7721 i386_low_insert_watchpoint interface.
7722 (x86_remove_point): Adjust to remove_point interface. Use
7723 remove_memory_breakpoint. Adjust to new
7724 i386_low_remove_watchpoint interface.
7725 (the_low_target): Install x86_supports_z_point_type.
7726 * lynx-low.c (lynx_target_ops): Install NULL as
7727 supports_z_point_type callback.
7728 * nto-low.c (nto_supports_z_point_type): New.
7729 (nto_insert_point, nto_remove_point): Adjust to new interface.
7730 (nto_target_ops): Install nto_supports_z_point_type.
7731 * mem-break.c: Adjust intro comment.
7732 (struct raw_breakpoint) <raw_type, size>: New fields.
7733 <inserted>: Update comment.
7734 <shlib_disabled>: Delete field.
7735 (enum bkpt_type) <gdb_breakpoint>: Delete value.
7736 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
7737 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
7738 (raw_bkpt_type_to_target_hw_bp_type): New function.
7739 (find_enabled_raw_code_breakpoint_at): New function.
7740 (find_raw_breakpoint_at): New type and size parameters. Use them.
7741 (insert_memory_breakpoint): New function, based off
7742 set_raw_breakpoint_at.
7743 (remove_memory_breakpoint): New function.
7744 (set_raw_breakpoint_at): Reimplement.
7745 (set_breakpoint): New, based on set_breakpoint_at.
7746 (set_breakpoint_at): Reimplement.
7747 (delete_raw_breakpoint): Go through the_target->remove_point
7748 instead of assuming memory breakpoints.
7749 (find_gdb_breakpoint_at): Delete.
7750 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
7751 (find_gdb_breakpoint): New function.
7752 (set_gdb_breakpoint_at): Delete.
7753 (z_type_supported): New function.
7754 (set_gdb_breakpoint_1): New function, loosely based off
7755 set_gdb_breakpoint_at.
7756 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
7757 (delete_gdb_breakpoint_at): Delete.
7758 (delete_gdb_breakpoint_1): New function, loosely based off
7759 delete_gdb_breakpoint_at.
7760 (delete_gdb_breakpoint): New function.
7761 (clear_gdb_breakpoint_conditions): Rename to ...
7762 (clear_breakpoint_conditions): ... this. Don't handle a NULL
7764 (add_condition_to_breakpoint): Make static.
7765 (add_breakpoint_condition): Take a struct breakpoint pointer
7766 instead of an address. Adjust.
7767 (gdb_condition_true_at_breakpoint): Rename to ...
7768 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
7770 (gdb_condition_true_at_breakpoint): Reimplement.
7771 (add_breakpoint_commands): Take a struct breakpoint pointer
7772 instead of an address. Adjust.
7773 (gdb_no_commands_at_breakpoint): Rename to ...
7774 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
7775 parameter. Return true if no breakpoint was found. Change debug
7777 (gdb_no_commands_at_breakpoint): Reimplement.
7778 (run_breakpoint_commands): Rename to ...
7779 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
7780 and change return type to boolean.
7781 (run_breakpoint_commands): New function.
7782 (gdb_breakpoint_here): Also check for Z1 breakpoints.
7783 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
7784 breakpoint. Go through the_target->remove_point instead of
7785 assuming memory breakpoint.
7786 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
7787 software and hardware breakpoints.
7788 (reinsert_raw_breakpoint): Go through the_target->insert_point
7789 instead of assuming memory breakpoint.
7790 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
7791 software and hardware breakpoints.
7792 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
7793 Check both software and hardware breakpoints.
7794 (validate_inserted_breakpoint): Assert the breakpoint is a
7795 software breakpoint. Set the inserted flag to -1 instead of
7796 setting shlib_disabled.
7797 (delete_disabled_breakpoints): Adjust.
7798 (validate_breakpoints): Only validate software breakpoints.
7799 Adjust to inserted flag change.
7800 (check_mem_read, check_mem_write): Skip breakpoint types other
7801 than software breakpoints. Adjust to inserted flag change.
7802 * mem-break.h (enum raw_bkpt_type): New enum.
7803 (raw_breakpoint, struct process_info): Forward declare.
7804 (Z_packet_to_target_hw_bp_type): Delete declaration.
7805 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
7806 (set_gdb_breakpoint, delete_gdb_breakpoint)
7807 (clear_breakpoint_conditions): New declarations.
7808 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
7809 (breakpoint_inserted_here): Update comment.
7810 (add_breakpoint_condition, add_breakpoint_commands): Replace
7811 address parameter with a breakpoint pointer parameter.
7812 (gdb_breakpoint_here): Update comment.
7813 (delete_gdb_breakpoint_at): Delete.
7814 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
7815 * server.c (process_point_options): Take a struct breakpoint
7816 pointer instead of an address. Adjust.
7817 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
7818 delete_gdb_breakpoint.
7819 * spu-low.c (spu_target_ops): Install NULL as
7820 supports_z_point_type method.
7821 * target.h: Include mem-break.h.
7822 (struct target_ops) <prepare_to_access_memory>: Update comment.
7823 <supports_z_point_type>: New field.
7824 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
7825 instead of a char. Also take a raw breakpoint pointer.
7826 * win32-arm-low.c (the_low_target): Install NULL as
7827 supports_z_point_type.
7828 * win32-i386-low.c (i386_supports_z_point_type): New function.
7829 (i386_insert_point, i386_remove_point): Adjust to new interface.
7830 (the_low_target): Install i386_supports_z_point_type.
7831 * win32-low.c (win32_supports_z_point_type): New function.
7832 (win32_insert_point, win32_remove_point): Adjust to new interface.
7833 (win32_target_ops): Install win32_supports_z_point_type.
7834 * win32-low.h (struct win32_target_ops):
7835 <supports_z_point_type>: New method.
7836 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
7837 instead of a char. Also take a raw breakpoint pointer.
7839 2014-05-20 Pedro Alves <palves@redhat.com>
7841 * mem-break.h: Include break-common.h.
7842 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
7843 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
7844 (Z_packet_to_target_hw_bp_type): New declaration.
7845 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
7846 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
7847 (Z_PACKET_ACCESS_WP): Delete macros.
7848 (Z_packet_to_hw_type): Delete function.
7849 * i386-low.h: Don't include break-common.h here.
7850 (Z_packet_to_hw_type): Delete declaration.
7851 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
7852 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
7853 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
7854 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
7855 * linux-aarch64-low.c: Don't include break-common.h here.
7856 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
7857 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
7858 (Z_packet_to_target_hw_bp_type): Delete function.
7859 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
7861 (mips_insert_point, mips_remove_point): Use
7862 Z_packet_to_target_hw_bp_type.
7864 2014-05-20 Pedro Alves <palves@redhat.com>
7866 * linux-aarch64-low.c: Include break-common.h.
7867 (enum target_point_type): Delete.
7868 (Z_packet_to_point_type): Rename to ...
7869 (Z_packet_to_target_hw_bp_type): ... this, and return a
7870 target_hw_bp_type instead.
7871 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
7872 instead of an enum target_point_type.
7873 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
7875 (aarch64_dr_state_insert_one_point)
7876 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
7877 (aarch64_handle_aligned_watchpoint)
7878 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
7879 Take an enum target_hw_bp_type instead of an enum
7881 (aarch64_supports_z_point_type): New function.
7882 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
7883 use Z_packet_to_target_hw_bp_type.
7885 2014-05-20 Joel Brobecker <brobecker@adacore.com>
7887 * configure.ac: Only use -Werror by default when DEVELOPMENT
7889 * configure: Regenerate.
7891 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7893 Fix gdbserver qGetTLSAddr for x86_64 -m32.
7894 * linux-x86-low.c (X86_64_USER_REGS): New.
7895 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
7897 2014-04-28 Yao Qi <yao@codesourcery.com>
7899 * Makefile.in (i386-avx512.c): Fix the typo of generated file
7902 2014-04-25 Pedro Alves <palves@redhat.com>
7905 * linux-low.c (linux_attach_fail_reason_string): New function.
7906 (linux_attach_lwp): Delete.
7907 (linux_attach_lwp_1): Rename to ...
7908 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
7909 argument. Remove "initial" parameter. Return int instead of
7910 void. Don't error or warn here.
7911 (linux_attach): Adjust to call linux_attach_lwp. Call error on
7912 failure to attach to the tgid. Call warning when failing to
7914 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
7915 argument. Remove "initial" parameter. Return int instead of
7916 void. Don't error or warn here.
7917 (linux_attach_fail_reason_string): New declaration.
7918 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
7919 interface change. Use linux_attach_fail_reason_string.
7921 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7922 Walfred Tedeschi <walfred.tedeschi@intel.com>
7924 * Makefile.in: Added rules to handle new files
7925 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
7926 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
7927 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
7928 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
7929 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
7930 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
7932 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
7933 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
7934 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
7935 i386/x32-avx512.xml.
7936 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
7937 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
7938 i386/x32-avx512-linux.xml.
7939 * i387-fp.c (num_avx512_k_registers): New constant for number
7941 (num_avx512_zmmh_low_registers): New constant for number of
7942 lower ZMM registers (0-15).
7943 (num_avx512_zmmh_high_registers): New constant for number of
7944 higher ZMM registers (16-31).
7945 (num_avx512_ymmh_registers): New contant for number of higher
7946 YMM registers (ymm16-31 added by avx521 on x86_64).
7947 (num_avx512_xmm_registers): New constant for number of higher
7948 XMM registers (xmm16-31 added by AVX512 on x86_64).
7949 (struct i387_xsave): Add space for AVX512 registers.
7950 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
7951 Add code to handle AVX512 registers.
7952 (i387_xsave_to_cache): Add code to handle AVX512 registers.
7953 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
7954 prototypei from generated file.
7955 (tdesc_amd64_avx512_linux): Likewise.
7956 (init_registers_x32_avx512_linux): Likewise.
7957 (tdesc_x32_avx512_linux): Likewise.
7958 (init_registers_i386_avx512_linux): Likewise.
7959 (tdesc_i386_avx512_linux): Likewise.
7960 (x86_64_regmap): Add AVX512 registers.
7961 (x86_linux_read_description): Add code to handle AVX512 XSTATE
7963 (initialize_low_arch): Add code to initialize AVX512 registers.
7965 2014-04-23 Pedro Alves <palves@redhat.com>
7967 * mem-break.c (find_gdb_breakpoint_at): Make static.
7968 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
7970 2014-04-23 Pedro Alves <palves@redhat.com>
7972 * i386-low.c: Don't include break-common.h here.
7973 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
7974 prototype to take target_hw_bp_type as argument instead of a Z
7976 * i386-low.h: Include break-common.h here.
7977 (Z_packet_to_hw_type): Declare.
7978 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
7980 * linux-x86-low.c (x86_insert_point): Convert the packet number to
7981 a target_hw_bp_type before calling i386_low_insert_watchpoint.
7982 (x86_remove_point): Convert the packet number to a
7983 target_hw_bp_type before calling i386_low_remove_watchpoint.
7984 * win32-i386-low.c (i386_insert_point): Convert the packet number
7985 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
7986 (i386_remove_point): Convert the packet number to a
7987 target_hw_bp_type before calling i386_low_remove_watchpoint.
7989 2014-04-23 Pedro Alves <palves@redhat.com>
7991 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
7993 2014-04-10 Pedro Alves <palves@redhat.com>
7995 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7996 Check if the condition or command is NULL before checking if the
7997 breakpoint is known. On success, return true.
7998 * mem-break.h (add_breakpoint_condition): Document return.
7999 (add_breakpoint_commands): Add describing comment.
8000 * server.c (skip_to_semicolon): New function.
8001 (process_point_options): Use it.
8003 2014-04-09 Pedro Alves <palves@redhat.com>
8005 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
8008 2014-02-27 Pedro Alves <palves@redhat.com>
8011 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
8013 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
8015 (last_thread_of_process_p): Take a PID argument instead of a
8017 (linux_wait_for_lwp): Delete.
8018 (num_lwps, check_zombie_leaders, not_stopped_callback): New
8020 (linux_low_filter_event): New function, party factored out from
8021 linux_wait_for_event.
8022 (linux_wait_for_event): Rename to ...
8023 (linux_wait_for_event_filtered): ... this. Add new filter ptid
8024 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
8025 sigsuspend. Check for zombie leaders.
8026 (linux_wait_for_event): Reimplement as wrapper around
8027 linux_wait_for_event_filtered.
8028 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
8029 a normal or signal exit is seen, it's the whole process exiting.
8030 (wait_for_sigstop): No longer a for_each_inferior callback.
8031 Rewrite on top of linux_wait_for_event_filtered.
8032 (stop_all_lwps): Call wait_for_sigstop directly.
8033 * server.c (resume, handle_target_event): Handle
8034 TARGET_WAITKIND_NO_RESUMED.
8036 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8038 * win32-low.c (psapi_get_dll_name,
8039 * win32_CreateToolhelp32Snapshot): Delete.
8040 (win32_CreateToolhelp32Snapshot, win32_Module32First)
8041 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
8043 (handle_load_dll): Add function description.
8044 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
8046 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8048 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
8050 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
8051 base address when calling win32_add_one_solib.
8052 (handle_load_dll): Delete local variable load_addr.
8053 Remove 0x1000 offset applied to DLL base address when calling
8054 win32_add_one_solib.
8055 (handle_unload_dll): Add comment.
8057 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8059 * win32-low.c (win32_add_all_dlls): Renames
8060 win32_ensure_ntdll_loaded. Rewrite function documentation.
8061 Adjust implementation to always load all DLLs.
8062 Add 0x1000 offset to DLL base address when calling
8063 win32_add_one_solib.
8064 (child_initialization_done): New static global.
8065 (do_initial_child_stuff): Set child_initialization_done to
8066 zero during child initialization, and 1 after. Replace call
8067 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
8069 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
8070 (handle_unload_dll): Add function documentation.
8071 (get_child_debug_event): Ignore load and unload DLL events
8072 during child initialization.
8074 2014-02-20 Doug Evans <dje@google.com>
8076 Remove global all_lwps.
8077 * inferiors.h (ptid_of): Move here from linux-low.h.
8078 (pid_of, lwpid_of): Ditto.
8079 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
8080 parameter is a struct thread_info * now.
8081 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
8082 directly. Pass &all_threads to find_inferior instead of &all_lwps.
8083 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
8085 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
8086 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
8087 * linux-arm-low.c (update_registers_callback): Update, "entry"
8088 parameter is a struct thread_info * now.
8089 Fetch lwpid from current_inferior directly.
8090 (arm_insert_point): Pass &all_threads to find_inferior instead of
8092 (arm_remove_point): Ditto.
8093 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
8094 (arm_prepare_to_resume): Fetch pid from thread.
8095 (arm_read_description): Fetch lwpid from current_inferior directly.
8096 * linux-low.c (all_lwps): Delete.
8097 (delete_lwp): Delete call to remove_inferior.
8098 (handle_extended_wait): Fetch lwpid from thread.
8099 (add_lwp): Don't set lwp->entry.id. Remove call to
8100 add_inferior_to_list.
8101 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
8102 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
8103 (kill_one_lwp_callback): Ditto.
8104 (linux_kill): Don't dereference NULL pointer.
8105 Fetch ptid,lwpid from thread.
8106 (get_detach_signal): Fetch ptid from thread.
8107 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
8108 Simplify call to regcache_invalidate_thread.
8109 (delete_lwp_callback): Update, "entry" parameter is a
8110 struct thread_info * now. Fetch pid from thread.
8111 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
8112 (status_pending_p_callback): Update, "entry" parameter is a
8113 struct thread_info * now. Fetch ptid from thread.
8114 (find_lwp_pid): Update, "entry" parameter is a
8115 struct thread_info * now.
8116 (linux_wait_for_lwp): Fetch pid from thread.
8117 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
8118 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
8119 (enqueue_one_deferred_signal): Fetch lwpid from thread.
8120 (dequeue_one_deferred_signal): Ditto.
8121 (cancel_breakpoint): Fetch ptid from current_inferior.
8122 (linux_wait_for_event): Pass &all_threads to find_inferior,
8123 not &all_lwps. Fetch ptid, lwpid from thread.
8124 (count_events_callback): Update, "entry" parameter is a
8125 struct thread_info * now.
8126 (select_singlestep_lwp_callback): Ditto.
8127 (select_event_lwp_callback): Ditto.
8128 (cancel_breakpoints_callback): Ditto.
8129 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
8131 (select_event_lwp): Ditto. Fetch ptid from event_thread.
8132 (unsuspend_one_lwp): Update, "entry" parameter is a
8133 struct thread_info * now.
8134 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
8136 (linux_stabilize_threads): Ditto. And for for_each_inferior.
8137 Fetch lwpid from thread, not lwp.
8138 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
8139 Pass &all_threads to find_inferior, not &all_lwps.
8140 (send_sigstop): Fetch lwpid from thread, not lwp.
8141 (send_sigstop_callback): Update, "entry" parameter is a
8142 struct thread_info * now.
8143 (suspend_and_send_sigstop_callback): Ditto.
8144 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
8145 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
8146 struct thread_info * now.
8147 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
8149 (lwp_running): Update, "entry" parameter is a
8150 struct thread_info * now.
8151 (stop_all_lwps): Fetch ptid from thread.
8152 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
8153 (linux_resume_one_lwp): Fetch lwpid from thread.
8154 (linux_set_resume_request): Update, "entry" parameter is a
8155 struct thread_info * now. Fetch pid, lwpid from thread.
8156 (resume_status_pending_p): Update, "entry" parameter is a
8157 struct thread_info * now.
8158 (need_step_over_p): Ditto. Fetch lwpid from thread.
8159 (start_step_over): Fetch lwpid from thread.
8160 (linux_resume_one_thread): Update, "entry" parameter is a
8161 struct thread_info * now. Fetch lwpid from thread.
8162 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
8163 (proceed_one_lwp): Update, "entry" parameter is a
8164 struct thread_info * now. Fetch lwpid from thread.
8165 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
8166 struct thread_info * now.
8167 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
8168 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
8169 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
8171 (regsets_store_inferior_registers): Ditto.
8172 (fetch_register, store_register): Ditto.
8173 (linux_read_memory, linux_write_memory): Ditto.
8174 (linux_request_interrupt): Ditto.
8175 (linux_read_auxv): Ditto.
8176 (linux_xfer_siginfo): Ditto.
8177 (linux_qxfer_spu): Ditto.
8178 (linux_qxfer_libraries_svr4): Ditto.
8179 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
8180 moved to inferiors.h.
8182 (get_thread_lwp): Update.
8183 (struct lwp_info): Delete member "entry". Simplify comment for
8186 * linux-mips-low.c (mips_read_description): Fetch lwpid from
8187 current_inferior directly.
8188 (update_watch_registers_callback): Update, "entry" parameter is a
8189 struct thread_info * now. Fetch pid from thread.
8190 (mips_linux_prepare_to_resume): Fetch ptid from thread.
8191 (mips_insert_point): Fetch lwpid from current_inferior.
8192 Pass &all_threads to find_inferior, not &all_lwps.
8193 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
8194 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
8196 (mips_stopped_data_address): Ditto.
8197 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
8199 * linux-tile-low.c (tile_arch_setup): Ditto.
8200 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
8201 (update_debug_registers_callback): Update, "entry" parameter is a
8202 struct thread_info * now. Fetch pid from thread.
8203 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
8204 Pass &all_threads to find_inferior, not &all_lwps.
8205 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
8206 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
8207 Pass &all_threads to find_inferior, not &all_lwps.
8208 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
8209 (i386_dr_low_get_status): Ditto.
8210 (x86_linux_prepare_to_resume): Fetch ptid from thread.
8211 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
8212 (x86_linux_read_description): Ditto.
8213 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
8215 2014-02-20 Doug Evans <dje@google.com>
8217 * inferiors.c (get_first_inferior): Fix buglet.
8219 2014-02-19 Doug Evans <dje@google.com>
8221 * gdbthread.h (add_thread): Change result type to struct thread_info *.
8222 * inferiors.c (add_thread): Change result type to struct thread_info *.
8223 All callers updated.
8224 (add_lwp): Call add_thread here instead of in callers.
8225 All callers updated.
8226 * linux-low.h (get_lwp_thread): Rewrite.
8227 (struct lwp_info): New member "thread".
8229 2014-02-19 Doug Evans <dje@google.com>
8231 * linux-low.c (add_lwp): Change result to struct lwp_info *.
8232 All callers updated.
8234 2014-02-19 Doug Evans <dje@google.com>
8236 * inferiors.c (add_thread): Fix whitespace.
8238 2014-02-19 Doug Evans <dje@google.com>
8240 * dll.c (clear_dlls): Replace accessing list implemention details
8242 * gdbthread.h (get_first_thread): Declare.
8243 * inferiors.c (for_each_inferior_with_data): New function.
8244 (get_first_thread): New function.
8245 (find_thread_ptid): Simplify.
8246 (get_first_inferior): New function.
8247 (clear_list): Delete.
8248 (one_inferior_p): New function.
8249 (clear_inferior_list): New function.
8250 (clear_inferiors): Update.
8251 * inferiors.h (for_each_inferior_with_data): Declare.
8252 (clear_inferior_list): Declare.
8253 (one_inferior_p): Declare.
8254 (get_first_inferior): Declare.
8255 * linux-low.c (linux_wait_for_event): Replace accessing list
8256 implemention details with API function.
8257 * server.c (target_running): Ditto.
8258 (accumulate_file_name_length): New function.
8259 (emit_dll_description): New function.
8260 (handle_qxfer_libraries): Replace accessing list implemention
8261 details with API function.
8262 (handle_qxfer_threads_worker): New function.
8263 (handle_qxfer_threads_proper): Replace accessing list implemention
8264 details with API function.
8265 (handle_query): Ditto.
8266 (visit_actioned_threads_callback_ftype): New typedef.
8267 (visit_actioned_threads_data): New struct.
8268 (visit_actioned_threads): Rewrite to be find_inferior callback.
8269 (resume): Call find_inferior.
8270 (handle_status): Replace accessing list implemention
8271 details with API function.
8272 (process_serial_event): Replace accessing list implemention details
8274 * target.c (set_desired_inferior): Replace accessing list implemention
8275 details with API function.
8276 * tracepoint.c (same_process_p): New function.
8277 (gdb_agent_about_to_close): Replace accessing list implemention
8278 details with API function.
8279 * win32-low.c (child_delete_thread): Replace accessing list
8280 implemention details with API function.
8281 (match_dll_by_basename): New function.
8282 (dll_is_loaded_by_basename): New function.
8283 (win32_ensure_ntdll_loaded): Replace accessing list implemention
8284 details call to dll_is_loaded_by_basename.
8286 2014-02-19 Doug Evans <dje@google.com>
8288 * dll.h (struct dll_info): Add comment.
8289 * gdbthread.h (struct thread_info): Add comment.
8290 (current_ptid): Simplify.
8291 * inferiors.c (add_process): Update.
8292 (remove_process): Update.
8293 * inferiors.h (struct process_info): Rename member "head" to "entry".
8294 * linux-low.c (delete_lwp): Update.
8296 (last_thread_of_process_p): Update.
8297 (kill_one_lwp_callback, linux_kill): Update.
8298 (status_pending_p_callback): Update.
8299 (wait_for_sigstop): Update. Simplify read of ptid.
8300 (start_step_over): Update.
8301 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
8302 (get_lwp_thread): Update.
8303 (struct lwp_info): Rename member "head" to "entry".
8304 * regcache.h (inferior_list_entry): Delete.
8305 * server.c (kill_inferior_callback): Update.
8306 (detach_or_kill_inferior_callback): Update.
8307 (print_started_pid): Update.
8308 (print_attached_pid): Update.
8309 (process_serial_event): Simplify read of ptid.
8310 * thread-db.c (thread_db_create_event): Update.
8311 (thread_db_get_tls_address): Update.
8312 * win32-low.c (current_inferior_ptid): Simplify.
8314 2014-02-19 Tom Tromey <tromey@redhat.com>
8316 * target.h (struct target_ops) <supports_btrace>: Add target_ops
8318 (target_supports_btrace): Update.
8320 2014-02-14 Yao Qi <yao@codesourcery.com>
8322 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
8323 (rsp-low-ipa.o): New target.
8325 2014-02-12 Tom Tromey <tromey@redhat.com>
8327 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
8328 convert_ascii_to_int.
8329 * regcache.c (registers_to_string): Likewise.
8330 * remote-utils.c (decode_M_packet): Likewise.
8331 * server.c (process_serial_event): Likewise.
8333 2014-02-12 Tom Tromey <tromey@redhat.com>
8335 * server.c (handle_query, handle_v_run): Use hex2bin, not
8337 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
8339 2014-02-12 Tom Tromey <tromey@redhat.com>
8341 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
8342 convert_int_to_ascii.
8343 * regcache.c (registers_to_string, collect_register_as_string):
8345 * remote-utils.c (look_up_one_symbol, relocate_instruction):
8347 * server.c (process_serial_event): Likewise.
8348 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
8349 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
8351 2014-02-12 Tom Tromey <tromey@redhat.com>
8353 * remote-utils.c (look_up_one_symbol, monitor_output): Use
8354 bin2hex, not hexify.
8355 * tracepoint.c (cmd_qtstatus): Likewise.
8357 2014-02-12 Tom Tromey <tromey@redhat.com>
8359 * remote-utils.c (monitor_output): Pass explicit length to
8362 2014-02-12 Tom Tromey <tromey@redhat.com>
8364 * tracepoint.c: Include rsp-low.h.
8365 * server.c: Include rsp-low.h.
8366 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
8367 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
8369 * remote-utils.c: Include rsp-low.h.
8370 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
8371 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
8372 (convert_int_to_ascii, convert_ascii_to_int): Move to
8374 * regcache.c: Include rsp-low.h.
8375 * ax.c: Include rsp-low.h.
8376 * Makefile.in (SFILES): Add common/rsp-low.c.
8377 (OBS): Add rsp-low.o.
8378 (rsp-low.o): New target.
8380 2014-02-12 Tom Tromey <tromey@redhat.com>
8382 * utils.h (pulongest, plongest, phex_nz): Don't declare.
8383 Include print-utils.h.
8384 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8385 (plongest, thirty_two, phex_nz): Remove.
8386 * Makefile.in (SFILES): Add common/print-utils.c.
8387 (OBS): Add print-utils.o.
8388 (print-utils-ipa.o): New target.
8389 (print-utils.o): New target.
8390 (IPA_OBJS): Add print-utils-ipa.o.
8392 2014-02-06 Tom Tromey <tromey@redhat.com>
8394 * Makefile.in (SFILES): Fix indentation.
8396 2014-02-05 Doug Evans <dje@google.com>
8398 * linux-low.c (linux_wait_for_event): Improve comment.
8399 (linux_wait_1): Keep current_inferior in sync with event_child.
8401 2014-01-22 Doug Evans <dje@google.com>
8403 * gdbthread.h (gdb_id_to_thread): Delete, unused.
8405 2014-01-22 Doug Evans <dje@google.com>
8407 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
8408 * configure: Regenerate.
8409 * config.in: Regenerate.
8410 * Makefile.in (SFILES): Add debug.c.
8412 * debug.c: New file.
8413 * debug.h: New file.
8414 * linux-aarch64-low.c (*): Update all debugging printfs to use
8415 debug_printf instead of fprintf.
8416 * linux-arm-low.c (*): Ditto.
8417 * linux-cris-low.c (*): Ditto.
8418 * linux-crisv32-low.c (*): Ditto.
8419 * linux-m32r-low.c (*): Ditto.
8420 * linux-sparc-low.c (*): Ditto.
8421 * linux-x86.c (*): Ditto.
8422 * linux-low.c (*): Ditto.
8423 (linux_wait_1): Add calls to debug_enter, debug_exit.
8424 (linux_wait): Remove redundant debugging printf.
8425 (stop_all_lwps): Add calls to debug_enter, debug_exit.
8426 (linux_resume, unstop_all_lwps): Ditto.
8427 * mem-break.c (*): Update all debugging printfs to use
8428 debug_printf instead of fprintf.
8429 * remote-utils.c (*): Ditto.
8430 * thread-db.c (*): Ditto.
8431 * server.c #include <ctype.h>, "gdb_vecs.h".
8432 (debug_threads): Moved to debug.c.
8433 (*): Update all debugging printfs to use debug_printf instead of
8435 (start_inferior): Replace call to fflush with call to debug_flush.
8436 (monitor_show_help): Mention set debug-format.
8437 (parse_debug_format_options): New function.
8438 (handle_monitor_command): Handle "monitor set debug-format".
8439 (gdbserver_usage): Mention --debug-format.
8440 (main): Parse --debug-format.
8441 * server.h (debug_threads): Declaration moved to debug.h.
8443 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
8444 trace_debug_1 that uses debug_printf.
8445 (tracepoint_look_up_symbols): Update all debugging printfs to use
8446 debug_printf instead of fprintf.
8448 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8450 * linux-xtensa-low.c: Include asm/ptrace.h instead of
8453 2014-01-17 Pedro Alves <palves@redhat.com>
8456 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
8457 defined after including gdb_proc_service.h.
8459 2014-01-16 Doug Evans <dje@google.com>
8461 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
8462 (match_dll): Use it.
8464 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8466 * target.h (target_ops) <read_btrace>: Change parameters and
8467 return type to allow error reporting.
8468 * server.c (handle_qxfer_btrace): Support delta reads. Pass
8469 trace reading errors on.
8470 * linux-low.c (linux_low_read_btrace): Pass trace reading
8472 (linux_low_disable_btrace): New.
8474 2014-01-15 Doug Evans <dje@google.com>
8476 * inferiors.c (thread_id_to_gdb_id): Delete.
8477 * inferiors.h (thread_id_to_gdb_id): Delete.
8479 2014-01-13 Eli Zaretskii <eliz@gnu.org>
8481 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
8482 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
8485 2014-01-08 Pedro Alves <palves@redhat.com>
8487 * server.c (handle_status): Don't discard previous queued stop
8488 replies or thread's pending status here.
8489 (main) <disconnection>: Do it here instead.
8491 2014-01-08 Pedro Alves <palves@redhat.com>
8493 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
8494 * server.c (visit_actioned_threads, handle_pending_status): New
8496 (handle_v_cont): Factor out parts to ...
8497 (resume): ... this new function. If in all-stop, and a thread
8498 being resumed has a pending status, report it without actually
8500 (myresume): Adjust to use the new 'resume' function.
8501 (clear_pending_status_callback, set_pending_status_callback)
8502 (find_status_pending_thread_callback): New functions.
8503 (handle_status): Handle the case of multiple threads having
8504 interesting statuses to report. Report threads' real last signal
8505 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
8506 with an interesting thread to report the status for, instead of
8507 always reporting the status of the first thread.
8509 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8511 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
8512 * gdbreplay.c (gdbreplay_version): Likewise.
8514 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
8516 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
8517 iov.iov_len with the real length in use.
8519 2013-12-13 Joel Brobecker <brobecker@adacore.com>
8521 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
8522 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
8523 for all targets that use win32-low.c.
8524 * win32-low.c (win32_ensure_ntdll_loaded): New function.
8525 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
8527 2013-12-13 Pedro Alves <palves@redhat.com>
8529 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
8530 if equal to TARGET_WAITKIND_LOADED.
8531 * win32-low.c (cached_status): New static global.
8532 (win32_wait): Add declaration.
8533 (do_initial_child_stuff): Flush all initial pending debug events
8534 up to the initial breakpoint.
8535 (win32_wait): If CACHED_STATUS was set, return that instead
8536 of doing a real wait. Remove the code resuming the execution
8537 of the inferior after receiving a TARGET_WAITKIND_LOADED event
8538 during the initial phase. Also remove the code changing
8539 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
8540 TARGET_WAITKIND_STOPPED.
8542 2013-12-11 Yao Qi <yao@codesourcery.com>
8544 * notif.c (handle_notif_ack): Return 0 if no notification
8547 2013-11-20 Doug Evans <dje@google.com>
8549 * linux-low.c (linux_set_resume_request): Fix comment.
8551 2013-11-20 Doug Evans <dje@google.com>
8553 * linux-low.c (resume_status_pending_p): Tweak comment.
8555 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
8557 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
8558 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
8559 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
8560 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
8561 (srv_amd64_regobj): Add amd64-mpx.o.
8562 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
8563 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
8564 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
8565 * i387-fp.c (num_pl_bnd_register) Added constant.
8566 (num_pl_bnd_cfg_registers) Added constant.
8567 (struct i387_xsave) Added reserved area and MPX fields.
8568 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
8569 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
8571 (tdesc_i386_mpx_linux): Add MPX amd64 target.
8572 (init_registers_amd64_mpx_linux): Declare new function.
8573 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
8574 (x86_64_regmap): Add MPX registers.
8575 (x86_linux_read_description): Add MPX case.
8576 (initialize_low_arch): Initialize MPX targets.
8578 2013-11-18 Tom Tromey <tromey@redhat.com>
8580 * configure: Rebuild.
8581 * configure.ac: Don't check for stdlib.h.
8582 * gdbreplay.c: Unconditionally include stdlib.h.
8584 2013-11-18 Tom Tromey <tromey@redhat.com>
8586 * config.in: Rebuild.
8587 * configure: Rebuild.
8588 * configure.ac: Don't use AC_HEADER_DIRENT.
8590 2013-11-18 Tom Tromey <tromey@redhat.com>
8592 * server.h: Don't check HAVE_STRING_H.
8593 * gdbreplay.c: Don't check HAVE_STRING_H.
8594 * configure: Rebuild.
8596 2013-11-18 Tom Tromey <tromey@redhat.com>
8598 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
8601 2013-11-08 Tom Tromey <tromey@redhat.com>
8603 * configure, config.in: Rebuild.
8604 * configure.ac: Remove unused configury.
8606 2013-11-08 Tom Tromey <tromey@redhat.com>
8608 * acinclude.m4: Include common.m4, codeset.m4.
8609 * configure, config.in: Rebuild.
8610 * configure.ac: Use GDB_AC_COMMON.
8612 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
8614 * linux-s390-low.c (HWCAP_S390_TE): New define.
8615 (s390_arch_setup): Consider the TE field in the HWCAP for
8616 determining 'have_regset_tdb'.
8618 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
8621 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
8624 2013-10-02 Pedro Alves <palves@redhat.com>
8626 * server.c (process_serial_event): Don't output "GDBserver
8627 exiting" if GDB is connected through stdio.
8628 * target.c (mywait): Likewise, be silent if GDB is connected
8631 2013-10-01 Joel Brobecker <brobecker@adacore.com>
8633 * lynx-low.c (lynx_add_threads_after_attach): New function.
8634 (lynx_attach): Remove call to add_thread. Add call to
8635 lynx_add_threads_after_attach instead.
8637 2013-09-28 Mike Frysinger <vapier@gentoo.org>
8639 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
8640 * config.in, configure: Regenerated.
8642 2013-09-18 Yao Qi <yao@codesourcery.com>
8645 * server.c (start_inferior): Clear 'resume_info'.
8647 2013-09-16 Jiong Wang <jiwang@tilera.com>
8649 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
8652 2013-09-16 Jiong Wang <jiwang@tilera.com>
8654 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
8655 linux-tile-low.o to srv_tgtobj.
8657 2013-09-16 Will Newton <will.newton@linaro.org>
8659 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
8662 2013-09-06 Pedro Alves <palves@redhat.com>
8664 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
8665 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
8666 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
8667 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
8668 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
8669 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
8671 2013-09-06 Pedro Alves <palves@redhat.com>
8673 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
8674 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
8676 2013-09-06 Pedro Alves <palves@redhat.com>
8678 * linux-amd64-ipa.c: Include tracepoint.h.
8679 * linux-i386-ipa.c: Include tracepoint.h.
8681 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
8683 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
8684 (ps_get_thread_area): New function.
8686 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
8688 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
8689 (initialize_low_arch): Call init_registers_crisv32 rather than
8690 init_register_crisv32.
8692 2013-09-05 Pedro Alves <palves@redhat.com>
8694 * server.h (handle_vFile, hostio_last_error_from_errno): Move
8696 * hostio.h: ... this new file.
8697 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
8698 win32-low.c: Include hostio.h.
8700 2013-09-05 Pedro Alves <palves@redhat.com>
8702 * server.h (gdb_client_data, handler_func, callback_handler_func)
8703 (delete_file_handler, add_file_handler, append_callback_event)
8704 (delete_callback_event, start_event_loop, initialize_event_loop):
8705 Move to event-loop.h and include it.
8706 * event-loop.h: New file.
8708 2013-09-05 Pedro Alves <palves@redhat.com>
8710 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
8711 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
8712 (loaded_dll, unloaded_dll): Move to ...
8713 * dll.h: ... this new file.
8714 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
8716 2013-09-05 Pedro Alves <palves@redhat.com>
8718 * server.h (current_process, get_thread_process, all_processes)
8719 (add_inferior_to_list, for_each_inferior, current_inferior)
8720 (remove_inferior, add_process, remove_process, find_process_pid)
8721 (have_started_inferiors_p, have_attached_inferiors_p)
8722 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
8723 (clear_inferiors, find_inferior, find_inferior_id)
8724 (inferior_target_data, set_inferior_target_data)
8725 (inferior_regcache_data, set_inferior_regcache_data): Move to
8726 inferiors.h, and include it.
8727 * inferiors.h: New file.
8729 2013-09-05 Pedro Alves <palves@redhat.com>
8731 * server.h (struct emit_ops, current_insn_ptr, emit_error):
8735 2013-09-05 Pedro Alves <palves@redhat.com>
8737 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
8739 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
8740 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
8741 (handle_tracepoint_general_set, handle_tracepoint_query)
8742 (tracepoint_finished_step, tracepoint_was_hit)
8743 (release_while_stepping_state_list, current_traceframe)
8744 (in_readonly_region, traceframe_read_mem)
8745 (fetch_traceframe_registers, traceframe_read_sdata)
8746 (traceframe_read_info, struct fast_tpoint_collect_status)
8747 (fast_tracepoint_collecting, force_unlock_trace_buffer)
8748 (handle_tracepoit_bkpts, initialize_low_tracepoint)
8749 (supply_fast_tracepoint_registers)
8750 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
8751 (ipa_tdesc, claim_trampoline_space)
8752 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
8753 (agent_mem_read, agent_get_trace_state_variable_value)
8754 (agent_set_trace_state_variable_value, agent_tsv_read)
8755 (agent_mem_read_string, get_raw_reg_func_addr)
8756 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
8757 * tracepoint.h: ... this new file.
8759 2013-09-05 Pedro Alves <palves@redhat.com>
8761 * server.h (perror_with_name, error, fatal, warning, paddress)
8762 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
8764 * utils.h: New file.
8766 2013-09-05 Pedro Alves <palves@redhat.com>
8768 * server.h (remote_debug, noack_mode, transport_is_reliable)
8769 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
8770 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
8771 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
8772 (write_enn, initialize_async_io, enable_async_io)
8773 (disable_async_io, check_remote_input_interrupt_request)
8774 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
8775 (dead_thread_notify, prepare_resume_reply)
8776 (decode_address_to_semicolon, decode_address, decode_m_packet)
8777 (decode_M_packet, decode_X_packet, decode_xfer_write)
8778 (decode_search_memory_packet, unhexify, hexify)
8779 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
8780 (look_up_one_symbol, relocate_instruction)
8781 (monitor_output): Move to remote-utils.h, and include it.
8782 * remote-utils.h: New file.
8784 2013-09-05 Pedro Alves <palves@redhat.com>
8786 * server.h (_): Delete.
8788 2013-09-02 Pedro Alves <palves@redhat.com>
8790 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
8791 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
8793 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
8795 2013-09-02 Pierre Muller <muller@sourceware.org>
8797 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
8798 or WriteProcessMemory complete successfully and handle
8799 ERROR_PARTIAL_COPY error.
8801 2013-09-02 Pedro Alves <palves@redhat.com>
8803 * server.c (gdb_read_memory): Return -1 on traceframe memory read
8804 error instead of EIO.
8806 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8809 * linux-low.c: Include filestuff.h.
8810 (linux_create_inferior) <pid == 0>: Call close_most_fds.
8811 * lynx-low.c: Include filestuff.h.
8812 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
8813 * server.c: Include filestuff.h.
8814 (main): Call notice_open_fds.
8815 * spu-low.c: Include filestuff.h.
8816 (spu_create_inferior) <pid == 0>: Call close_most_fds.
8818 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
8820 * Makefile.in: Explain why ../target and ../nat are not
8821 listed as include file search paths.
8822 (linux-waitpid.o): New object file rule.
8823 * configure.srv (srv_native_linux_obj): New variable.
8824 Replace all occurrences of linux native object files with
8825 $srv_native_linux_obj.
8826 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
8827 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
8828 (linux_enable_event_reporting): Remove declaration.
8829 (my_waitpid): Moved to common/linux-waitpid.c.
8830 (linux_wait_for_event): Pass ptid when calling
8831 linux_enable_event_reporting.
8832 (linux_supports_tracefork_flag): Remove.
8833 (linux_enable_event_reporting): Likewise.
8834 (linux_tracefork_grandchild): Remove.
8835 (STACK_SIZE): Moved to common/linux-ptrace.c.
8836 (linux_tracefork_child): Remove.
8837 (linux_test_for_tracefork): Remove.
8838 (linux_look_up_symbols): Call linux_supports_traceclone.
8839 (initialize_low): Remove call to linux_test_for_tracefork.
8840 * linux-low.h (PTRACE_TYPE_ARG3): Move to
8841 common/linux-ptrace.h.
8842 (PTRACE_TYPE_ARG4): Likewise.
8843 Include linux-ptrace.h.
8845 2013-08-21 Pedro Alves <palves@redhat.com>
8847 * config.in: Renegerate.
8849 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
8851 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
8852 (SFILES): Remove $(srcdir)/common/target-common.c and
8853 add $(srcdir)/target/waitstatus.c.
8854 (OBS): Remove target-common.o and add waitstatus.o.
8855 (server_h): Remove $(srcdir)/../common/target-common.h and
8856 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
8857 and $(srcdir)/../target/waitstatus.h.
8858 (target-common.o): Remove.
8859 (waitstatus.o): New target object file.
8860 * target.h: Do not include target-common.h and
8861 include target/resume.h, target/wait.h and
8862 target/waitstatus.h.
8864 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
8866 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
8867 to PTRACE_TYPE_ARG3.
8868 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
8869 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
8871 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
8872 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
8874 2013-07-27 Jie Zhang <jie@codesourcery.com>
8875 Daniel Jacobowitz <dan@codesourcery.com>
8876 Yao Qi <yao@codesourcery.com>
8878 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
8879 (mips-linux-watch.o): New rule.
8880 (mips_linux_watch_h): New variable.
8881 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
8883 * linux-mips-low.c: Include mips-linux-watch.h.
8884 (struct arch_process_info, struct arch_lwp_info): New.
8885 (update_watch_registers_callback): New function.
8886 (mips_linux_new_process, mips_linux_new_thread) New functions.
8887 (mips_linux_prepare_to_resume, mips_insert_point): New
8889 (mips_remove_point, mips_stopped_by_watchpoint): New
8891 (rsp_bp_type_to_target_hw_bp_type): New function.
8892 (mips_stopped_data_address): New function.
8893 (the_low_target): Add watchpoint support functions.
8895 2013-07-27 Yao Qi <yao@codesourcery.com>
8897 * i386-low.c: Include break-common.h.
8898 (enum target_hw_bp_type): Remove.
8900 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
8902 * Makefile.in (SFILES): /common/target-common.c.
8903 (OBS): Add target-common.o.
8904 (server_h): Add $(srcdir)/../common/target-common.h.
8905 (target-common.o): New target.
8906 * server.c (queue_stop_reply_callback): Free
8907 status string after use.
8908 * target.c (target_waitstatus_to_string): Remove.
8909 * target.h: Include target-common.h.
8910 (resume_kind): Likewise.
8911 (target_waitkind): Likewise.
8912 (target_waitstatus): Likewise.
8913 (TARGET_WNOHANG): Likewise.
8915 2013-07-04 Yao Qi <yao@codesourcery.com>
8917 * Makefile.in (host_alias): Use @host_noncanonical@.
8918 (target_alias): Use @target_noncanonical@.
8919 * configure.ac: Use ACX_NONCANONICAL_TARGET and
8920 ACX_NONCANONICAL_HOST.
8921 * configure: Regenerated.
8924 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
8926 * configure.ac (version_host, version_target): Set and AC_SUBST them.
8927 * configure: Rebuild.
8928 * Makefile.in (version_host, version_target): Get from configure.
8929 (version.c): Use $(version_host) and $(version_target).
8931 2013-07-03 Pedro Alves <palves@redhat.com>
8933 * Makefile.in (config.status): Depend on development.sh.
8934 * acinclude.m4: Include libmcheck.m4.
8935 * configure: Regenerate.
8937 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
8939 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
8940 attribute inside the parentheses.
8941 (winapi_DebugSetProcessKillOnExit): Ditto.
8942 (winapi_DebugBreakProcess): Ditto.
8943 (winapi_GenerateConsoleCtrlEvent): Ditto.
8945 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
8947 * notif.h (notif_event): Add a dummy member to avoid compiler
8950 2013-07-01 Pedro Alves <palves@redhat.com>
8952 * hostio.c (HOSTIO_PATH_MAX): Define.
8953 (require_filename, handle_open, handle_unlink, handle_readlink):
8956 2013-07-01 Pedro Alves <palves@redhat.com>
8958 * server.h: Include "pathmax.h".
8959 * linux-low.c: Don't include sys/param.h.
8960 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
8962 * win32-low.c: Don't include sys/param.h.
8963 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
8965 2013-07-01 Pedro Alves <palves@redhat.com>
8967 * event-loop.c: Don't check HAVE_UNISTD_H before including
8969 * gdbreplay.c: Likewise.
8970 * remote-utils.c: Likewise.
8971 * server.c: Likewise.
8972 * configure.ac: Don't check for unistd.h.
8973 * configure: Regenerate.
8975 2013-06-28 Tom Tromey <tromey@redhat.com>
8977 * Makefile.in (version.c): Use version.in, not
8980 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
8982 * configure.ac (version_host, version_target): Set and AC_SUBST them.
8983 * configure: Rebuild.
8984 * Makefile.in (version_host, version_target): Get from configure.
8985 (version.c): Use $(version_host) and $(version_target).
8987 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
8989 Fix trace-status to output user name without trailing colon.
8990 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
8992 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
8994 Fix trace-status to output proper start-time and stop-time.
8995 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
8996 output start time and stop time in hex as gdb expects.
8998 2013-06-26 Pedro Alves <pedro@codesourcery.com>
9000 * tracepoint.c (build_traceframe_info_xml): Output trace state
9001 variables present in the trace buffer.
9003 2013-06-24 Tom Tromey <tromey@redhat.com>
9005 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
9007 (version.o): Remove.
9008 * gdbreplay.c: Include version.h.
9009 (version, host_name): Don't declare.
9010 * server.h: Include version.h.
9011 (version, host_name): Don't declare.
9013 2013-06-12 Pedro Alves <palves@redhat.com>
9015 * linux-x86-low.c (linux_is_elf64): Delete global.
9016 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
9017 with local linux_pid_exe_is_elf_64_file use.
9019 2013-06-11 Pedro Alves <palves@redhat.com>
9021 * linux-low.c (regset_disabled, disable_regset): New functions.
9022 (regsets_fetch_inferior_registers)
9023 (regsets_store_inferior_registers): Use them.
9024 (initialize_regsets_info); Don't allocate the disabled_regsets
9026 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
9029 2013-06-11 Pedro Alves <palves@redhat.com>
9031 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
9034 2013-06-11 Pedro Alves <palves@redhat.com>
9036 * linux-x86-low.c (initialize_low_arch): Call
9037 init_registers_x32_avx_linux.
9039 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9041 Fix compatibility with Android Bionic.
9042 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
9045 2013-06-07 Pedro Alves <palves@redhat.com>
9048 * Makefile.in (OBS): Add tdesc.o.
9049 (IPA_OBJS): Add tdesc-ipa.o.
9050 (tdesc-ipa.o): New rule.
9051 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
9053 * linux-low.c (new_inferior): Delete.
9054 (disabled_regsets, num_regsets): Delete.
9055 (linux_add_process): Adjust to set the new per-process
9057 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
9058 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
9059 was a stop. When calling arch_setup, switch the current inferior
9060 to the thread that got an event.
9061 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
9062 (regsets_fetch_inferior_registers)
9063 (regsets_store_inferior_registers): New regsets_info parameter.
9065 (linux_register_in_regsets): New regs_info parameter. Adjust to
9067 (register_addr, fetch_register, store_register): New usrregs_info
9068 parameter. Adjust to use it.
9069 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
9070 parameter regs_info. Adjust to use it.
9071 (linux_fetch_registers): Get the current inferior's regs_info, and
9073 (linux_store_registers): Ditto.
9074 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
9075 (initialize_low): Don't initialize the target_regsets here. Call
9076 initialize_low_arch.
9077 * linux-low.h (target_regsets): Delete declaration.
9078 (struct regsets_info): New.
9079 (struct usrregs_info): New.
9080 (struct regs_info): New.
9081 (struct process_info_private) <new_inferior>: New field.
9082 (struct linux_target_ops): Delete the num_regs, regmap, and
9083 regset_bitmap fields. New field regs_info.
9084 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
9085 * i387-fp.c (num_xmm_registers): Delete.
9086 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
9087 calls to new interface.
9088 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
9089 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
9090 Infer the number of xmm registers from the regcache's target
9092 * i387-fp.h (num_xmm_registers): Delete.
9093 * inferiors.c (add_thread): Don't install the thread's regcache
9095 * proc-service.c (gregset_info): Fetch the current inferior's
9096 regs_info. Adjust to use it.
9097 * regcache.c: Include tdesc.h.
9098 (register_bytes, reg_defs, num_registers)
9099 (gdbserver_expedite_regs): Delete.
9100 (get_thread_regcache): If the thread doesn't have a regcache yet,
9101 create one, instead of aborting gdbserver.
9102 (regcache_invalidate_one): Rename to ...
9103 (regcache_invalidate_thread): ... this.
9104 (regcache_invalidate_one): New.
9105 (regcache_invalidate): Only invalidate registers of the current
9107 (init_register_cache): Add target_desc parameter, and use it.
9108 (new_register_cache): Ditto. Assert the target description has a
9109 non zero registers_size.
9110 (regcache_cpy): Add assertions. Adjust.
9111 (realloc_register_cache, set_register_cache): Delete.
9112 (registers_to_string, registers_from_string): Adjust.
9113 (find_register_by_name, find_regno, find_register_by_number)
9114 (register_cache_size): Add target_desc parameter, and use it.
9115 (free_register_cache_thread, free_register_cache_thread_one)
9116 (regcache_release, register_cache_size): New.
9117 (register_size): Add target_desc parameter, and use it.
9118 (register_data, supply_register, supply_register_zeroed)
9119 (supply_regblock, supply_register_by_name, collect_register)
9120 (collect_register_as_string, collect_register_by_name): Adjust.
9121 * regcache.h (struct target_desc): Forward declare.
9122 (struct regcache) <tdesc>: New field.
9123 (init_register_cache, new_register_cache): Add target_desc
9125 (regcache_invalidate_thread): Declare.
9126 (regcache_invalidate_one): Delete declaration.
9127 (regcache_release): Declare.
9128 (find_register_by_number, register_cache_size, register_size)
9129 (find_regno): Add target_desc parameter.
9130 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
9132 * remote-utils.c: Include tdesc.h.
9133 (outreg, prepare_resume_reply): Adjust.
9134 * server.c: Include tdesc.h.
9135 (gdbserver_xmltarget): Delete declaration.
9136 (get_features_xml, process_serial_event): Adjust.
9137 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
9139 (struct process_info) <tdesc>: New field.
9140 (ipa_tdesc): Declare.
9141 * tdesc.c: New file.
9142 * tdesc.h: New file.
9143 * tracepoint.c: Include tdesc.h.
9144 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
9145 (get_context_regcache): Adjust to pass ipa_tdesc down.
9146 (do_action_at_tracepoint): Adjust to get the register cache size
9147 from the context regcache's description.
9148 (traceframe_walk_blocks): Adjust to get the register cache size
9149 from the current trace frame's description.
9150 (traceframe_get_pc): Adjust to get current trace frame's
9151 description and pass it down.
9152 (gdb_collect): Adjust to get the register cache size from the
9154 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
9155 (gdbserver_xmltarget): Delete.
9156 (initialize_low_tracepoint): Set the ipa's target description.
9157 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
9158 (initialize_low_tracepoint): Set the ipa's target description.
9159 * linux-x86-low.c: Include tdesc.h.
9160 [__x86_64__] (is_64bit_tdesc): New.
9161 (ps_get_thread_area, x86_get_thread_area): Use it.
9162 (i386_cannot_store_register): Rename to ...
9163 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
9164 (i386_cannot_fetch_register): Rename to ...
9165 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
9166 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
9168 (target_regsets): Rename to ...
9169 (x86_regsets): ... this.
9170 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
9172 (x86_siginfo_fixup): Use is_64bit_tdesc.
9173 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
9174 (tdesc_x32_avx_linux, tdesc_x32_linux)
9175 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
9177 (x86_linux_update_xmltarget): Delete.
9178 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
9179 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
9180 (AMD64_LINUX_USER64_CS): New.
9181 (x86_linux_read_description): New, based on
9182 x86_linux_update_xmltarget.
9183 (same_process_callback): New.
9184 (x86_arch_setup_process_callback): New.
9185 (x86_linux_update_xmltarget): New.
9186 (x86_regsets_info): New.
9187 (amd64_linux_regs_info): New.
9188 (i386_linux_usrregs_info): New.
9189 (i386_linux_regs_info): New.
9190 (x86_linux_regs_info): New.
9191 (x86_arch_setup): Reimplement.
9192 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
9193 (x86_emit_ops): Ditto.
9194 (the_low_target): Adjust. Install x86_linux_regs_info,
9195 x86_cannot_fetch_register, and x86_cannot_store_register.
9196 (initialize_low_arch): New.
9197 * linux-ia64-low.c (tdesc_ia64): Declare.
9198 (ia64_fetch_register): Adjust.
9199 (ia64_usrregs_info, regs_info): New globals.
9200 (ia64_regs_info): New function.
9201 (the_low_target): Adjust.
9202 (initialize_low_arch): New function.
9203 * linux-sparc-low.c (tdesc_sparc64): Declare.
9204 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
9206 (sparc_arch_setup): New function.
9207 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
9208 (the_low_target): Adjust.
9209 (initialize_low_arch): New function.
9210 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
9211 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
9212 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
9213 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
9214 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
9215 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
9216 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
9217 (tdesc_powerpc_isa205_vsx64l): Declare.
9218 (ppc_cannot_store_register, ppc_collect_ptrace_register)
9219 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
9220 (ppc_set_pc, ppc_get_hwcap): Adjust.
9221 (ppc_usrregs_info): Forward declare.
9222 (!__powerpc64__) ppc_regmap_adjusted: New global.
9223 (ppc_arch_setup): Adjust to the current process'es target
9225 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
9226 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
9227 (ppc_store_evrregset): Adjust.
9228 (target_regsets): Rename to ...
9229 (ppc_regsets): ... this, and make static.
9230 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
9231 (ppc_regs_info): New function.
9232 (the_low_target): Adjust.
9233 (initialize_low_arch): New function.
9234 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
9235 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
9236 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
9237 (tdesc_s390x_linux64v2): Declare.
9238 (s390_collect_ptrace_register, s390_supply_ptrace_register)
9239 (s390_fill_gregset, s390_store_last_break): Adjust.
9240 (target_regsets): Rename to ...
9241 (s390_regsets): ... this, and make static.
9242 (s390_get_pc, s390_set_pc): Adjust.
9243 (s390_get_hwcap): New target_desc parameter, and use it.
9244 [__s390x__] (have_hwcap_s390_high_gprs): New global.
9245 (s390_arch_setup): Adjust to set the current process'es target
9246 description. Don't adjust the regmap.
9247 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
9248 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
9249 (regs_info_3264): New globals.
9250 (s390_regs_info): New function.
9251 (the_low_target): Adjust.
9252 (initialize_low_arch): New function.
9253 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
9254 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
9255 [__mips64] (init_registers_mips_linux)
9256 (init_registers_mips_dsp_linux): Delete defines.
9257 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
9258 (have_dsp): New global.
9259 (mips_read_description): New, based on mips_arch_setup.
9260 (mips_arch_setup): Reimplement.
9261 (get_usrregs_info): New function.
9262 (mips_cannot_fetch_register, mips_cannot_store_register)
9263 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
9264 (mips_fill_fpregset, mips_store_fpregset): Adjust.
9265 (target_regsets): Rename to ...
9266 (mips_regsets): ... this, and make static.
9267 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
9268 (dsp_regs_info, regs_info): New globals.
9269 (mips_regs_info): New function.
9270 (the_low_target): Adjust.
9271 (initialize_low_arch): New function.
9272 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
9273 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
9275 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
9276 (arm_read_description): New, with bits factored from
9278 (arm_arch_setup): Reimplement.
9279 (target_regsets): Rename to ...
9280 (arm_regsets): ... this, and make static.
9281 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
9282 (arm_regs_info): New function.
9283 (the_low_target): Adjust.
9284 (initialize_low_arch): New function.
9285 * linux-m68k-low.c (tdesc_m68k): Declare.
9286 (target_regsets): Rename to ...
9287 (m68k_regsets): ... this, and make static.
9288 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
9289 (m68k_regs_info): New function.
9290 (m68k_arch_setup): New function.
9291 (the_low_target): Adjust.
9292 (initialize_low_arch): New function.
9293 * linux-sh-low.c (tdesc_sharch): Declare.
9294 (target_regsets): Rename to ...
9295 (sh_regsets): ... this, and make static.
9296 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
9297 (sh_regs_info, sh_arch_setup): New functions.
9298 (the_low_target): Adjust.
9299 (initialize_low_arch): New function.
9300 * linux-bfin-low.c (tdesc_bfin): Declare.
9301 (bfin_arch_setup): New function.
9302 (bfin_usrregs_info, regs_info): New globals.
9303 (bfin_regs_info): New function.
9304 (the_low_target): Adjust.
9305 (initialize_low_arch): New function.
9306 * linux-cris-low.c (tdesc_cris): Declare.
9307 (cris_arch_setup): New function.
9308 (cris_usrregs_info, regs_info): New globals.
9309 (cris_regs_info): New function.
9310 (the_low_target): Adjust.
9311 (initialize_low_arch): New function.
9312 * linux-cris-low.c (tdesc_crisv32): Declare.
9313 (cris_arch_setup): New function.
9314 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
9315 (cris_regs_info): New function.
9316 (the_low_target): Adjust.
9317 (initialize_low_arch): New function.
9318 * linux-m32r-low.c (tdesc_m32r): Declare.
9319 (m32r_arch_setup): New function.
9320 (m32r_usrregs_info, regs_info): New globals.
9321 (m32r_regs_info): Adjust.
9322 (initialize_low_arch): New function.
9323 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
9324 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
9325 (tic6x_usrregs_info): Forward declare.
9326 (tic6x_read_description): New function, based on ...
9327 (tic6x_arch_setup): ... this. Reimplement.
9328 (target_regsets): Rename to ...
9329 (tic6x_regsets): ... this, and make static.
9330 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
9331 (tic6x_regs_info): New function.
9332 (the_low_target): Adjust.
9333 (initialize_low_arch): New function.
9334 * linux-xtensa-low.c (tdesc_xtensa): Declare.
9335 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
9336 (target_regsets): Rename to ...
9337 (xtensa_regsets): ... this, and make static.
9338 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
9340 (xtensa_arch_setup, xtensa_regs_info): New functions.
9341 (the_low_target): Adjust.
9342 (initialize_low_arch): New function.
9343 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
9344 (nios2_arch_setup): Set the current process'es tdesc.
9345 (target_regsets): Rename to ...
9346 (nios2_regsets): ... this.
9347 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
9348 (nios2_regs_info): New function.
9349 (the_low_target): Adjust.
9350 (initialize_low_arch): New function.
9351 * linux-aarch64-low.c (tdesc_aarch64): Declare.
9352 (aarch64_arch_setup): Set the current process'es tdesc.
9353 (target_regsets): Rename to ...
9354 (aarch64_regsets): ... this.
9355 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
9356 (aarch64_regs_info): New function.
9357 (the_low_target): Adjust.
9358 (initialize_low_arch): New function.
9359 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
9361 (target_regsets): Rename to ...
9362 (tile_regsets): ... this.
9363 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
9364 (tile_regs_info): New function.
9365 (tile_arch_setup): Set the current process'es tdesc.
9366 (the_low_target): Adjust.
9367 (initialize_low_arch): New function.
9368 * spu-low.c (tdesc_spu): Declare.
9369 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
9370 * win32-arm-low.c (tdesc_arm): Declare.
9371 (arm_arch_setup): New function.
9372 (the_low_target): Install arm_arch_setup instead of
9374 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
9375 (init_windows_x86): Rename to ...
9376 (i386_arch_setup): ... this. Set `win32_tdesc'.
9377 (the_low_target): Adjust.
9378 * win32-low.c (win32_tdesc): New global.
9379 (child_add_thread): Don't create the thread cache here.
9380 (do_initial_child_stuff): Set the new process'es tdesc.
9381 * win32-low.h (struct target_desc): Forward declare.
9382 (win32_tdesc): Declare.
9383 * lynx-i386-low.c (tdesc_i386): Declare global.
9384 (lynx_i386_arch_setup): Set `lynx_tdesc'.
9385 * lynx-low.c (lynx_tdesc): New global.
9386 (lynx_add_process): Set the new process'es tdesc.
9387 * lynx-low.h (struct target_desc): Forward declare.
9388 (lynx_tdesc): Declare global.
9389 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
9390 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
9391 * nto-low.c (nto_tdesc): New global.
9392 (do_attach): Set the new process'es tdesc.
9393 * nto-low.h (struct target_desc): Forward declare.
9394 (nto_tdesc): Declare.
9395 * nto-x86-low.c (tdesc_i386): Declare.
9396 (nto_x86_arch_setup): Set `nto_tdesc'.
9398 2013-06-04 Gary Benson <gbenson@redhat.com>
9400 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
9401 to qSupported response when appropriate.
9402 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
9403 with nonzero-length annex.
9404 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
9405 arguments supplied in annex.
9407 2013-05-31 Doug Evans <dje@google.com>
9410 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
9411 64 bits in 64-cross-32 environment.
9413 2013-05-28 Pedro Alves <palves@redhat.com>
9415 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
9416 (aarch64-without-fpu.c): Delete rule.
9417 * configure.srv (aarch64*-*-linux*): Remove references to
9418 aarch64-without-fpu.o and aarch64-without-fpu.xml.
9419 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
9422 2013-05-24 Pedro Alves <palves@redhat.com>
9424 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
9425 instead of strchr/decode_address. Error if the range isn't split
9426 with a ','. Don't assume there's be a ':' in the action.
9428 2013-05-23 Yao Qi <yao@codesourcery.com>
9429 Pedro Alves <palves@redhat.com>
9431 * linux-low.c (lwp_in_step_range): New function.
9432 (linux_wait_1): If the thread was range stepping and stopped
9433 outside the stepping range, report the stop to GDB. Otherwise,
9434 continue stepping. Add range stepping debug output.
9435 (linux_set_resume_request): Copy the step range from the resume
9437 (linux_supports_range_stepping): New.
9438 (linux_target_ops) <supports_range_stepping>: Set to
9439 linux_supports_range_stepping.
9440 * linux-low.h (struct linux_target_ops)
9441 <supports_range_stepping>: New field.
9442 (struct lwp_info) <step_range_start, step_range_end>: New fields.
9443 * linux-x86-low.c (x86_supports_range_stepping): New.
9444 (the_low_target) <supports_range_stepping>: Set to
9445 x86_supports_range_stepping.
9446 * server.c (handle_v_cont): Handle 'r' action.
9447 (handle_v_requests): Append ";r" if the target supports range
9449 * target.h (struct thread_resume) <step_range_start,
9450 step_range_end>: New fields.
9451 (struct target_ops) <supports_range_stepping>:
9453 (target_supports_range_stepping): New macro.
9455 2013-05-17 Joel Brobecker <brobecker@adacore.com>
9457 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
9458 confusion in comment.
9460 2013-05-17 Joel Brobecker <brobecker@adacore.com>
9462 * lynx-low.c (struct process_info_private): New type.
9463 (lynx_add_process): New function.
9464 (lynx_create_inferior, lynx_attach): Replace calls to
9465 add_process by calls to lynx_add_process.
9466 (lynx_resume): If PTID is null, then try using
9467 current_process()->private->last_wait_event_ptid.
9469 (lynx_clear_inferiors): Delete. The contents of that function
9470 has been inlined in lynx_mourn;
9471 (lynx_wait_1): Save the ptid in the process's private data.
9472 (lynx_mourn): Free the process' private data. Replace call
9473 to lynx_clear_inferiors by call to clear_inferiors.
9475 2013-05-17 Yao Qi <yao@codesourcery.com>
9477 * i386-low.c (i386_length_and_rw_bits): Move the comment to
9480 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
9482 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
9483 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
9484 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
9485 PT_TEXT_END_ADDR guards. Update comments.
9486 (linux_target_op) <read_offsets>: Conditionally define to
9487 linux_read_offsets if the target is UCLIBC and if it defines
9488 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
9490 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
9491 Andrew Jenner <andrew@codesourcery.com>
9493 * Makefile.in (SFILES): Add linux-nios2-low.c.
9494 (clean): Add action to delete nios2-linux.c.
9495 (nios2-linux.c): New rule.
9496 * configure.srv: Add nios2*-*-linux*.
9497 * linux-nios2-low.c: New.
9499 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
9501 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
9503 2013-04-25 Hui Zhu <hui@codesourcery.com>
9506 * ax.c (ax_printf): Add fflush.
9508 2013-04-22 Tom Tromey <tromey@redhat.com>
9510 * Makefile.in (SFILES): Add filestuff.c.
9511 (OBS): Add filestuff.o.
9512 (filestuff.o): New target.
9513 * config.in, configure: Rebuild.
9514 * configure.ac: Check for fdwalk, pipe2.
9516 2013-04-17 Pedro Alves <palves@redhat.com>
9518 * configure.ac (USE_THREAD_DB): Delete variable.
9519 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
9520 Don't AC_SUBST USE_THREAD_DB.
9521 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
9522 * config.in, configure: Regenerate.
9524 2013-04-16 Pedro Alves <palves@redhat.com>
9526 * linux-low.h (struct lwp_info) <thread_known>: Move under
9527 the USE_THREAD_DB #ifdef.
9529 2013-04-16 Pedro Alves <palves@redhat.com>
9531 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
9532 (linux-low.o): Delete rule.
9533 * linux-low.h: Always include "gdb_thread_db.h" instead of
9534 conditionally including thread_db.h.
9535 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
9538 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
9540 * Makefile.in (install-only): Fix make install regression.
9542 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9544 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9545 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
9547 * gdbserver.1: Remove.
9549 2013-03-22 Pedro Alves <palves@redhat.com>
9551 * linux-low.c (handle_extended_wait): Don't call
9552 linux_enable_event_reporting.
9554 2013-03-15 Tony Theodore <tonyt@logyst.com>
9557 * Makefile.in (SHELL): Use @SHELL@.
9559 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
9561 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
9564 2013-03-13 Joel Brobecker <brobecker@adacore.com>
9566 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
9567 Remove extraneous NULL element.
9569 2013-03-13 Yao Qi <yao@codesourcery.com>
9571 * tracepoint.c (traceframe_read_tsv): Look for the last matched
9572 'V' block in trace frame.
9574 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9576 * target.h (struct target_ops): Add btrace ops.
9577 (target_supports_btrace): New macro.
9578 (target_enable_btrace): New macro.
9579 (target_disable_btrace): New macro.
9580 (target_read_btrace): New macro.
9581 * gdbthread.h (struct thread_info): Add btrace field.
9582 * server.c: Include btrace-common.h.
9583 (handle_btrace_general_set): New function.
9584 (handle_btrace_enable): New function.
9585 (handle_btrace_disable): New function.
9586 (handle_general_set): Call handle_btrace_general_set.
9587 (handle_qxfer_btrace): New function.
9588 (struct qxfer qxfer_packets[]): Add btrace entry.
9589 * inferiors.c (remove_thread): Disable btrace.
9590 * linux-low: Include linux-btrace.h.
9591 (linux_low_enable_btrace): New function.
9592 (linux_low_read_btrace): New function.
9593 (linux_target_ops): Add btrace ops.
9594 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
9595 Add srv_linux_btrace=yes.
9596 (x86_64-*-linux*): Add linux-btrace.o.
9597 Add srv_linux_btrace=yes.
9598 * configure.ac: Define HAVE_LINUX_BTRACE.
9599 * config.in: Regenerated.
9600 * configure: Regenerated.
9602 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9604 * server.c (handle_qxfer): Preserve error message if -3 is
9606 (qxfer): Document the -3 return value.
9608 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9610 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
9611 (linux_btrace_h): New variable.
9612 (linux-btrace.o): New rule.
9614 2013-03-08 Stan Shebs <stan@codesourcery.com>
9615 Hafiz Abid Qadeer <abidh@codesourcery.com>
9617 * tracepoint.c (trace_buffer_size): New global.
9618 (DEFAULT_TRACE_BUFFER_SIZE): New define.
9619 (init_trace_buffer): Change to one-argument function. Allocate
9620 trace buffer memory.
9621 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
9622 handle QTBuffer:size packet.
9623 (cmd_bigqtbuffer_size): New function.
9624 (initialize_tracepoint): Call init_trace_buffer with
9625 DEFAULT_TRACE_BUFFER_SIZE.
9626 * server.c (handle_query): Add QTBuffer:size in the
9629 2013-03-07 Yao Qi <yao@codesourcery.com>
9631 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
9632 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
9634 (cmd_qtsp): Adjust condition. Do post increment.
9635 Set cur_action and cur_step_action back to 0.
9637 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
9640 * linux-low.c (linux_write_memory): Return early success if LEN is
9643 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9645 * configure.srv: Add x86_64-*-cygwin* as target.
9647 2013-02-28 Tom Tromey <tromey@redhat.com>
9649 * configure.ac: Invoke AC_SYS_LARGEFILE.
9650 * configure, config.in: Rebuild.
9652 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
9654 * win32-low.c: Throughout, fix format strings and casts of
9655 printf-like functions to avoid type related warnings on all
9657 (get_child_debug_event): Print dwDebugEventCode as hex since
9658 that's how it's usually documented.
9660 2013-02-28 Yao Qi <yao@codesourcery.com>
9662 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
9665 2013-02-27 Jiong Wang <jiwang@tilera.com>
9667 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
9668 (reg-tilegx32.c): New rule.
9669 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
9670 * linux-tile-low.c (tile_arch_setup): New function. Invoke
9671 different register info initializer according to elf class.
9672 (init_registers_tilgx32): New function. The tilegx32 register info
9674 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
9675 (tile_store_gregset): Likewise.
9677 2013-02-27 Yao Qi <yao@codesourcery.com>
9679 * server.c (process_point_options): Print debug message when
9680 debug_threads is true.
9682 2013-02-26 Yao Qi <yao@codesourcery.com>
9684 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
9686 2013-02-19 Pedro Alves <palves@redhat.com>
9687 Kai Tietz <ktietz@redhat.com>
9691 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
9692 instead of strtoul to extract address from packet.
9693 (process_serial_event) <'z'>: Likewise.
9695 2013-02-18 Yao Qi <yao@codesourcery.com>
9697 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
9699 2013-02-14 Pedro Alves <palves@redhat.com>
9703 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
9704 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
9706 2013-02-14 Pedro Alves <palves@redhat.com>
9708 * tracepoint.c (cmd_qtdpsrc): Use savestring.
9710 2013-02-14 Pedro Alves <palves@redhat.com>
9712 * tracepoint.c (save_string): Delete.
9713 (add_tracepoint_action): Use savestring instead of save_string.
9715 2013-02-12 Pedro Alves <palves@redhat.com>
9717 * linux-xtensa-low.c: Ditto.
9718 * xtensa-xtregs.c: Ditto.
9720 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9722 * thread-db.c (thread_db_get_tls_address): NULL pointer check
9725 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9727 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
9728 aarch64_num_wp_regs and aarch64_num_bp_regs to
9729 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
9731 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9733 * linux-aarch64-low.c (ps_get_thread_area): Replace
9734 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
9736 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9737 Marcus Shawcroft <marcus.shawcroft@arm.com>
9738 Nigel Stephens <nigel.stephens@arm.com>
9739 Yufeng Zhang <yufeng.zhang@arm.com>
9741 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
9742 (aarch64.c, aarch64-without-fpu.c): New targets.
9743 * configure.srv (aarch64*-*-linux*): New.
9744 * linux-aarch64-low.c: New file.
9746 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
9748 * linux-low.c (handle_extended_wait, linux_create_inferior)
9749 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
9750 (dequeue_one_deferred_signal, linux_resume_one_thread)
9751 (fetch_register, linux_write_memory, linux_enable_event_reporting)
9752 (linux_tracefork_grandchild, linux_test_for_tracefork)
9753 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
9754 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
9755 where the argument is 0.
9757 2013-01-25 Yao Qi <yao@codesourcery.com>
9759 * event-loop.c: Include "queue.h".
9760 (gdb_event_p): New typedef.
9761 (struct gdb_event) <next_event>: Remove.
9762 (event_queue): Change to QUEUE(gdb_event_p).
9763 (async_queue_event): Remove.
9764 (gdb_event_xfree): New.
9765 (initialize_event_loop): New.
9766 (process_event): Use API from QUEUE.
9767 (wait_for_event): Likewise.
9768 * server.c (main): Call initialize_event_loop.
9769 * server.h (initialize_event_loop): Declare.
9771 2013-01-18 Yao Qi <yao@codesourcery.com>
9773 * ax.h (struct eval_agent_expr_context): New.
9774 (gdb_eval_agent_expr): Update declaration.
9775 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
9776 TFRAME. Add new argument CTX.
9777 * server.h (struct eval_agent_expr_context): Declare.
9778 (agent_mem_read, agent_tsv_read): Update declaration.
9779 (agent_mem_read_string): Likewise.
9780 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
9781 (add_traceframe_block): Add new argument TPOINT.
9782 Increase TPOINT->traceframe_usage.
9783 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
9784 eval_tracepoint_agent_expr.
9785 (condition_true_at_tracepoint): Likewise.
9786 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
9787 (agent_mem_read_string, agent_tsv_read): Likewise.
9789 2013-01-16 Yao Qi <yao@codesourcery.com>
9791 * linux-low.c (linux_resume_one_lwp): Don't check
9792 'lwp->bp_reinsert != 0'.
9794 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9795 Pedro Alves <palves@redhat.com>
9797 * lynx-low.c (ptrace_request_to_str): Define a temporary
9798 macro and use it to simplify this function's implementation.
9800 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9802 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
9805 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9807 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
9809 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9811 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
9813 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9815 * lynx-low.c (lynx_resume): Use the resume_info parameter
9816 to determine the ptid for the lynx_ptrace call, unless
9817 it is equal to minus_one_ptid, in which case we use the
9818 ptid of the current_inferior.
9819 (lynx_wait_1): After having received a thread create/exit
9820 event, resume the inferior's execution using the signaling
9821 thread's ptid, rather than the old ptid.
9823 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9825 * lynx-low.c (lynx_resume): Delete variable ret.
9827 2013-01-01 Joel Brobecker <brobecker@adacore.com>
9829 * gdbreplay.c (gdbreplay_version): Update copyright year.
9830 * server.c (gdbserver_version): Likewise.
9832 2012-12-17 Joel Brobecker <brobecker@adacore.com>
9834 * lynx-low.c (lynx_wait_1): Add debug trace before adding
9837 2012-12-17 Joel Brobecker <brobecker@adacore.com>
9839 * lynx-low.c (ptrace_request_to_str): Add handling for
9842 2012-12-17 Joel Brobecker <brobecker@adacore.com>
9844 * lynx-low.c (lynx_attach): Delete variable new_process.
9846 2012-12-17 Joel Brobecker <brobecker@adacore.com>
9848 * lynx-low.c (lynx_create_inferior): Delete variable
9851 2012-12-17 Joel Brobecker <brobecker@adacore.com>
9853 * lynx-low.c (ptrace_request_to_str): Do not handle
9854 PTRACE_GETTHREADLIST if this macro does not exist.
9856 2012-12-15 Yao Qi <yao@codesourcery.com>
9858 * Makefile.in (OBS): Add notif.o.
9859 * notif.c, notif.h: New.
9860 * server.c: Include "notif.h".
9861 (struct vstop_notif) <next>: Remove.
9863 (queue_stop_reply): Update.
9864 (push_event, send_next_stop_reply): Remove.
9865 (discard_queued_stop_replies): Update.
9866 (notif_stop): New variable.
9867 (handle_v_stopped): Remove.
9868 (handle_v_requests): Don't call handle_v_stopped. Call
9869 handle_ack_notif instead.
9870 (queue_stop_reply_callback): Call notif_event_enque instead
9871 of queue_stop_reply.
9872 (handle_status): Don't call send_next_stop_reply, call
9873 notif_write_event instead.
9874 (kill_inferior_callback): Likewise.
9875 (detach_or_kill_inferior_callback): Likewise.
9876 (main): Call initialize_notif.
9877 (process_serial_event): Call QUEUE_is_empty.
9878 (handle_target_event): Call notif_push instead of push event.
9879 * server.h (push_event): Remove declaration.
9881 2012-12-10 Tom Tromey <tromey@redhat.com>
9883 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
9884 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
9887 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
9888 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
9889 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
9890 (amd64-linux-ipa.o, ax.o): Rewrite.
9891 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
9892 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
9893 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
9894 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
9895 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
9896 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
9897 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
9898 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
9899 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
9900 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
9901 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
9902 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
9903 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
9904 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
9905 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
9906 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
9907 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
9908 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
9909 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
9910 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
9911 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
9912 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
9913 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
9914 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
9915 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
9916 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
9917 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
9918 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
9919 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
9920 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
9921 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
9922 (reg-tilegx.o): Remove.
9923 (all_object_files): New macro.
9924 Include .deps files.
9925 * aclocal.m4, configure: Rebuild.
9926 * acinclude.m4: Include depstand.m4, lead-dot.m4.
9927 * configure.ac: Invoke ZW_CREATE_DEPDIR,
9928 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
9930 2012-12-05 Tom Tromey <tromey@redhat.com>
9933 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
9935 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
9937 * configure.ac: Check for linux/perf_event.h.
9938 * config.in: Regenerated.
9939 * configure: Regenerated.
9941 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
9943 * hostio.c (handle_readlink): Decrease buffer size
9944 parameter passed to readlink by one byte.
9946 2012-11-26 Yao Qi <yao@codesourcery.com>
9948 * configure.ac (build_warnings): Append '-Wempty-body'.
9949 * configure: Regenerated.
9950 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
9953 2012-11-15 Pierre Muller <muller@sourceware.org>
9955 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
9956 * config.in: Regenerate.
9957 * configure: Regenerate.
9958 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
9959 Use "gdb_wait.h" header instead of <sys/wait.h> header.
9960 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
9961 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
9963 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
9964 instead of <sys/wait.h> header.
9965 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
9967 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
9969 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
9970 (various make rules): Remove -DGDBSERVER
9972 2012-11-09 Yao Qi <yao@codesourcery.com>
9974 * spu-low.c (current_ptid): Move it to ..
9975 * gdbthread.h: ... here. New.
9976 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
9977 * server.c (myresume, process_serial_event): Likewise.
9978 * thread-db.c (thread_db_find_new_threads): Likewise.
9979 * tracepoint.c (run_inferior_command): Likewise.
9981 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
9983 * server.c (handle_search_memory_1): Include access length in
9986 2012-09-05 Michael Brandt <michael.brandt@axis.com>
9988 * linux-crisv32-low.c: Fix compile errors.
9990 2012-09-04 Yao Qi <yao@codesourcery.com>
9992 * tracepoint.c (cmd_qtsv): Adjust debug message.
9993 Don't check CUR_TPOINT.
9995 2012-08-28 Yao Qi <yao@codesourcery.com>
9997 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
9998 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
9999 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
10000 Remove declarations of xmalloc, xreallloc, xstrdup and
10002 * Makefile.in (libiberty_h): New.
10003 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
10004 (linux-bfin-low.o): Append dependency 'libiberty.h'.
10006 2012-08-23 Yao Qi <yao@codesourcery.com>
10008 * server.h: Remove declaration of 'xsnprintf'.
10010 2012-08-22 Keith Seitz <keiths@redhat.com>
10012 * server.h: Include build-gnulib-gbserver/config.h.
10013 * gdbreplay.c: Likewise.
10015 2012-08-08 Doug Evans <dje@google.com>
10017 * Makefile.in (SFILES): Add gdb_vecs.c.
10018 (OBS): Add gdb_vecs.o.
10019 (gdb_vecs_h, host_defs_h): New variables.
10020 (thread-db.o): Add $(gdb_vecs_h) dependency.
10021 (gdb_vecs.o): New rule.
10022 * thread-db.c: #include "gdb_vecs.h".
10023 (thread_db_load_search): Use a vector to iterate over path elements.
10024 Handle text appearing after "$pdir".
10026 * configure.ac: Add check for strstr.
10027 * config.in: Regenerate.
10028 * configure: Regenerate.
10030 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10032 * hostio.c (handle_pread): If pread fails, fall back to attempting
10034 (handle_pwrite): Likewise for pwrite.
10036 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
10038 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
10039 between unsupported TYPE and unimplementable ADDR/LEN combination.
10040 (arm_insert_point): Act on new return value.
10042 2012-07-31 Pedro Alves <palves@redhat.com>
10044 * server.c (process_point_options): Only skip tokens if we find
10045 one that is unrecognized. Don't treat 'X' specially while
10046 skipping unrecognized tokens.
10048 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
10050 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
10051 to 4-byte-align HW breakpoint addresses for Thumb.
10053 2012-07-27 Yao Qi <yao@codesourcery.com>
10057 * server.h: Declare gdb_agent_about_to_close.
10058 * target.c (kill_inferior): Include "agent.h".
10059 New. Send command 'kill'.
10060 * target.h (kill_inferior): Removed macro.
10061 * tracepoint.c (gdb_agent_about_to_close): New.
10062 (gdb_agent_helper_thread): Handle command 'close'.
10063 Wait endlessly until the inferior stops.
10064 Install gdb_agent_remove_socket to atexit hook.
10065 (agent_socket_name): New static variable.
10066 (gdb_agent_socket_init): Replace local variable 'name' with
10067 'agent_socket_name'.
10068 (gdb_agent_remove_socket): New.
10070 2012-07-27 Yao Qi <yao@codesourcery.com>
10072 * server.c (process_point_options): Stop at 'X' when parsing.
10074 2012-07-19 Michael Eager <eager@eagercon.com>
10076 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
10078 * linux-x86-low.c (x86_insert_point, x86_remove_point):
10079 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
10080 hardware breakpoint.
10082 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
10084 * gdbserver/linux-low.c (initialize_low): Call
10085 linux_ptrace_init_warnings.
10087 2012-07-02 Doug Evans <dje@google.com>
10089 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
10092 2012-07-02 Stan Shebs <stan@codesourcery.com>
10094 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
10095 (ax.o): Add it to build rule.
10097 (OBS): Add format.o.
10098 (IPA_OBS): Add format.o.
10099 * server.c (handle_query): Claim support for breakpoint commands.
10100 (process_point_options): Add command case.
10101 (process_serial_event): Leave running if there are printfs in
10103 * mem-break.h (any_persistent_commands): Declare.
10104 (add_breakpoint_commands): Declare.
10105 (gdb_no_commands_at_breakpoint): Declare.
10106 (run_breakpoint_commands): Declare.
10107 * mem-break.c (struct point_command_list): New struct.
10108 (struct breakpoint): New field command_list.
10109 (any_persistent_commands): New function.
10110 (add_commands_to_breakpoint): New function.
10111 (add_breakpoint_commands): New function.
10112 (gdb_no_commands_at_breakpoint): New function.
10113 (run_breakpoint_commands): New function.
10114 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
10116 * ax.c: Include format.h.
10117 (ax_printf): New function.
10118 (gdb_eval_agent_expr): Add printf opcode.
10120 2012-06-13 Yao Qi <yao@codesourcery.com>
10122 * server.c (start_inferior): Remove duplicated writes to fields
10123 'last_resume_kind' and 'last_status' of 'current_inferior'.
10125 2012-06-12 Yao Qi <yao@codesourcery.com>
10126 Pedro Alves <palves@redhat.com>
10128 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
10130 * server.c (handle_v_cont): Extend comment.
10132 2012-06-11 Yao Qi <yao@codesourcery.com>
10134 * linux-low.c (linux_attach): Add 'static'.
10136 2012-06-06 Yao Qi <yao@codesourcery.com>
10138 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
10140 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10142 Fix gcc -flto compilation warning.
10143 * server.c (main): Make variable multi_mode and attach volatile.
10145 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10147 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
10148 if the platform doesn't know about it.
10150 2012-05-30 Jeff Kenton <jkenton@tilera.com>
10152 * Makefile.in (SFILES): Add linux-tile-low.c.
10153 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
10154 * configure.srv: Handle tilegx-*-linux*.
10155 * linux-tile-low.c: New file.
10157 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10159 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
10161 2012-05-24 Pedro Alves <palves@redhat.com>
10165 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
10167 2012-05-24 Pedro Alves <palves@redhat.com>
10171 Replace target_signal with gdb_signal throughout.
10173 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
10175 * linux-low.c (linux_store_registers): Avoid the copying sequence
10176 when no data has been retrieved by ptrace.
10178 2012-05-22 Will Deacon <will.deacon@arm.com>
10180 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
10181 Include asm/ptrace.h.
10182 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
10185 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
10187 * linux-low.c (linux_store_registers): Don't re-retrieve data
10188 with ptrace that has already been obtained from /proc. Always
10189 copy any data retrieved with ptrace to the buffer supplied.
10191 2012-05-11 Yao Qi <yao@codesourcery.com>
10192 Pedro Alves <palves@redhat.com>
10194 * linux-low.c (enum stopping_threads_kind): New.
10195 (stopping_threads): Change type to `enum stopping_threads_kind'.
10196 (handle_extended_wait): If stopping and suspending threads, leave
10197 the new_lwp suspended too.
10198 (linux_wait_for_event): Adjust.
10199 (stop_all_lwps): Set `stopping_threads' to
10200 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
10201 whether we're suspending threads or just stopping them. Assert no
10204 2012-04-29 Yao Qi <yao@codesourcery.com>
10206 * server.h: Move some code to ...
10207 * gdbthread.h: ... here. New.
10208 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
10209 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
10210 (nto-low.o, win32-low.o): Likewise.
10211 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
10212 * regcache.c, remote-utils.c, server.c: Likewise.
10213 * target.c, tracepoint.c, win32-low.c: Likewise.
10215 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10217 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
10218 (PTRACE_ARG4_TYPE): Likewise.
10219 (PTRACE_XFER_TYPE): Likewise.
10220 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
10221 ptrace to PTRACE_ARG3_TYPE.
10222 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
10223 (PTRACE_ARG4_TYPE): Likewise.
10224 (PTRACE_XFER_TYPE): Likewise.
10225 (linux_detach_one_lwp): Cast fourth argument of
10226 ptrace to long then PTRACE_ARG4_TYPE.
10227 (regsets_fetch_inferior_registers): Cast third argument of
10228 ptrace to long then PTRACE_ARG3_TYPE.
10229 (regsets_store_inferior_registers): Likewise.
10231 2012-04-20 Pedro Alves <palves@redhat.com>
10233 * configure: Regenerate.
10235 2012-04-19 Pedro Alves <palves@redhat.com>
10237 * Makefile.in (GNULIB_BUILDDIR): New.
10238 (LIBGNU, INCGNU, GNULIB_H): Adjust.
10239 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
10240 (all, install-only, uninstall, clean-info, all-lib, clean): No
10241 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
10242 (maintainer-clean realclean distclean): Use subdir_do.
10244 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
10245 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
10246 * acinclude.m4: Include acx_configure_dir.m4.
10247 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
10248 calls. Call AC_PROG_RANLIB. Configure gnulib using
10251 (GNULIB_STDINT_H): Adjust.
10252 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
10253 * gdbreplay.c: Include build-gnulib/config.h.
10254 * server.h: Likewise.
10255 * aclocal.m4: Regenerate.
10256 * config.in: Regenerate.
10257 * configure: Regenerate.
10259 2012-04-19 Pedro Alves <palves@redhat.com>
10261 * Makefile.in (LIBGNU, INCGNU): Adjust.
10262 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
10263 (all, install-only, uninstall, clean-info, all-lib, clean)
10264 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
10265 * configure.ac: Adjust AC_OUTPUT output.
10266 * aclocal.m4: Regenerate.
10267 * configure: Regenerate.
10269 2012-04-19 Pedro Alves <palves@redhat.com>
10271 * Makefile.in (generated_files): New.
10272 (server_h): Remove the explicit dependency on config.h, and depend
10273 on $generated_files.
10275 2012-04-19 Pedro Alves <palves@redhat.com>
10277 * Makefile.in (INCGNU): Add -Ignulib.
10279 2012-04-19 Pedro Alves <palves@redhat.com>
10281 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
10282 (INCGNU): ... this, and spell out -I here.
10283 (GNULIB_LIB): Rename to ...
10284 (LIBGNU): ... this.
10285 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
10287 2012-04-19 Pedro Alves <palves@redhat.com>
10289 * config.in: Regenerate.
10291 2012-04-19 Pedro Alves <palves@redhat.com>
10293 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
10294 * server.h (memmem): Remove declaration.
10295 * config.in: Regenerate.
10296 * configure: Regenerate.
10298 2012-04-19 Yao Qi <yao@codesourcery.com>
10300 * Makefile.in (SFILES): Add common/vec.c.
10304 2012-04-19 Yao Qi <yao@codesourcery.com>
10306 * remote-utils.c (prepare_resume_reply): Replace with macro
10307 target_core_of_thread.
10308 * server.c (handle_qxfer_threads_proper): Likewise.
10309 * target.h (traget_core_of_thread): New macro.
10311 2012-04-18 Pedro Alves <palves@redhat.com>
10313 * aclocal.m4: Regenerate.
10314 * configure: Regenerate.
10316 2012-04-16 Yao Qi <yao@codesourcery.com>
10318 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
10319 duplicated on address.
10321 2012-04-16 Yao Qi <yao@codesourcery.com>
10323 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
10324 (struct tracepoint_action_ops) <send>: New field.
10325 (m_tracepoint_action_send, r_tracepoint_action_send): New.
10326 (agent_expr_send, x_tracepoint_action_send): New.
10327 (l_tracepoint_action_send): New.
10328 (cmd_qtdp): Download and install tracepoint
10329 according to `use_agent'.
10330 (run_inferior_command): Add one more parameter `len'.
10332 (tracepoint_send_agent): New.
10333 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
10335 2012-04-16 Yao Qi <yao@codesourcery.com>
10337 * tracepoint.c (download_tracepoints): Moved to ...
10338 (cmd_qtstart): ... here.
10340 2012-04-14 Yao Qi <yao@codesourcery.com>
10342 * tracepoint.c: Include inttypes.h.
10343 (struct collect_memory_action): Use sized types.
10344 (struct tracepoint): Likewise.
10345 (cmd_qtdp, stop_tracing): Update print specifiers.
10346 (cmd_qtp, response_tracepoint): Likewise.
10347 (collect_data_at_tracepoint): Likewise.
10348 (collect_data_at_step): Likewise.
10350 2012-04-14 Yao Qi <yao@codesourcery.com>
10352 Import gnulib module inttypes.
10353 * aclocal.m4, config.in, configure: Regenerated.
10355 2012-04-14 Yao Qi <yao@codesourcery.com>
10357 * Makefile.in (maintainer-clean, realclean, distclean): Remove
10358 Makefile and config.status at last.
10360 2012-04-13 Yao Qi <yao@codesourcery.com>
10362 * tracepoint.c: Include stdint.h unconditionally.
10364 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10366 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
10367 on BFD_HAVE_SYS_PROCFS_TYPE.
10368 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
10369 * configure: Regenerate.
10370 * config.in: Likewise.
10372 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
10374 * Makefile.in (clean): Also remove x32.c x32-linux.c
10375 x32-avx.c x32-avx-linux.c.
10376 (x32.o): New target.
10378 (x32-linux.o): Likewise.
10379 (x32-linux.c): Likewise.
10380 (x32-avx.o): Likewise.
10381 (x32-avx.c): Likewise.
10382 (x32-avx-linux.o): Likewise.
10383 (x32-avx-linux.c): Likewise.
10385 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
10386 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
10387 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
10388 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
10389 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
10390 i386/x32-avx-linux.xml.
10392 * linux-x86-low.c (init_registers_x32_linux): New prototype.
10393 (init_registers_x32_avx_linux): Likwise.
10394 (x86_linux_update_xmltarget): Call init_registers_x32_linux
10395 or init_registers_x32_avx_linux if linux_is_elf64 is false.
10397 2012-04-13 Pedro Alves <palves@redhat.com>
10399 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
10400 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
10401 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
10402 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
10405 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
10407 * linux-x86-low.c (compat_x32_clock_t): New.
10408 (compat_x32_siginfo_t): Likewise.
10409 (compat_x32_siginfo_from_siginfo): Likewise.
10410 (siginfo_from_compat_x32_siginfo): Likewise.
10411 (linux_is_elf64): Likewise.
10412 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
10413 and siginfo_from_compat_x32_siginfo for x32.
10414 (x86_arch_setup): Set linux_is_elf64.
10416 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
10419 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
10421 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
10422 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
10423 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
10424 compatible with process.
10426 2012-04-12 Yao Qi <yao@codesourcery.com>
10428 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
10429 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
10430 (install-only, install-info, clean): Handle sub dir gnulib.
10431 (all-lib, am--refresh): New targets.
10432 (memmem.o): Remove target.
10433 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
10434 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
10435 (AC_REPLACE_FUNCS): Remove memmem.
10436 Invoke gl_INIT and AM_INIT_AUTOMAKE.
10437 (AC_OUTPUT): Generate Makefile in gnulib/.
10438 * aclocal.m4, config.in, configure: Regenerated.
10440 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
10442 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
10444 2012-04-05 Pedro Alves <palves@redhat.com>
10446 -Werror=strict-aliasing
10448 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
10451 2012-04-04 Pedro Alves <palves@redhat.com>
10453 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
10454 (sparc_store_gregset_from_stack, sparc_store_gregset)
10455 (sparc_breakpoint_at): Fix formatting.
10457 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10459 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
10461 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
10462 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
10463 * config.in: Regenerate.
10464 * configure: Likewise.
10466 2012-03-29 Pedro Alves <palves@redhat.com>
10468 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
10469 Correct ptrace arguments.
10471 2012-03-28 Pedro Alves <palves@redhat.com>
10473 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
10474 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
10475 (IA64_FR1_REGNUM): New defines.
10476 (ia64_fetch_register): New.
10477 (the_low_target): Install it.
10478 * linux-low.h (struct linux_target_ops) <fetch_register>: New
10480 * linux-low.c (linux_fetch_registers): Try the
10481 the_low_target.fetch_register hook first.
10483 * linux-arm-low.c (the_low_target): Adjust.
10484 * linux-bfin-low.c (the_low_target): Adjust.
10485 * linux-cris-low.c (the_low_target): Adjust.
10486 * linux-crisv32-low.c (the_low_target): Adjust.
10487 * linux-m32r-low.c (the_low_target): Adjust.
10488 * linux-m68k-low.c (the_low_target): Adjust.
10489 * linux-mips-low.c (the_low_target): Adjust.
10490 * linux-ppc-low.c (the_low_target): Adjust.
10491 * linux-s390-low.c (the_low_target): Adjust.
10492 * linux-sh-low.c (the_low_target): Adjust.
10493 * linux-sparc-low.c (the_low_target): Adjust.
10494 * linux-tic6x-low.c (the_low_target): Adjust.
10495 * linux-x86-low.c (the_low_target): Adjust.
10496 * linux-xtensa-low.c (the_low_target): Adjust.
10498 2012-03-26 Pedro Alves <palves@redhat.com>
10500 * server.c (handle_qxfer_libraries): Don't bail early if
10501 the_target->qxfer_libraries_svr4 is not NULL.
10503 2012-03-26 Pedro Alves <palves@redhat.com>
10505 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
10507 2012-03-23 Pedro Alves <palves@redhat.com>
10509 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
10510 "library-list-svr4" element's start tag when the the DSO list is
10513 2012-03-23 Pedro Alves <palves@redhat.com>
10515 * linux-low.c (read_one_ptr): Read the inferior's pointer through
10516 a variable whose type size is the same as the inferior's pointer
10519 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
10521 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
10523 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
10524 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
10525 * linux-low.h: Include <signal.h>.
10526 (struct siginfo): Remove forward declaration.
10527 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
10530 2012-03-21 Mike Frysinger <vapier@gentoo.org>
10532 * .gitignore: Ignore more files.
10534 2012-03-19 Pedro Alves <palves@redhat.com>
10535 Jan Kratochvil <jan.kratochvil@redhat.com>
10537 * server.c (cont_thread, general_thread): Add describing comments.
10538 (start_inferior): Clear `cont_thread'.
10539 (handle_v_cont): Don't set `cont_thread' if resuming all threads
10542 2012-03-15 Yao Qi <yao@codesourcery.com>
10544 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
10546 (cmd_qtdp): ... here.
10548 2012-03-15 Yao Qi <yao@codesourcery.com>
10550 * tracepoint.c (struct tracepoint_action_ops): New.
10551 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
10552 (m_tracepoint_action_download): New.
10553 (r_tracepoint_action_download): New.
10554 (x_tracepoint_action_download): New.
10555 (l_tracepoint_action_download): New.
10556 (add_tracepoint_action): Install `action->ops' according type.
10557 (download_tracepoint_1): Move code `download' function pointer
10558 of various tracepoint_action_ops.
10560 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10562 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
10563 linux_ptrace_attach_warnings.
10565 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10567 * Makefile.in (linux-ptrace.o): New.
10568 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
10569 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
10570 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
10571 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
10572 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
10574 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
10576 2012-03-08 Yao Qi <yao@codesourcery.com>
10577 Pedro Alves <palves@redhat.com>
10579 Fix PR server/13392.
10580 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
10581 offset of JMP insn.
10582 * tracepoint.c (remove_tracepoint): New.
10583 (cmd_qtdp): Call remove_tracepoint when failed to install.
10585 2012-03-07 Pedro Alves <palves@redhat.com>
10587 * linux-low.c (get_detach_signal): New.
10588 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
10589 Pass on pending signals to PTRACE_DETACH. Check the result of the
10591 * server.c (program_signals, program_signals_p): New.
10592 (handle_general_set): Handle QProgramSignals.
10593 * server.h (program_signals, program_signals_p): Declare.
10595 2012-03-05 Pedro Alves <palves@redhat.com>
10596 Jan Kratochvil <jan.kratochvil@redhat.com>
10598 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
10601 2012-03-03 Yao Qi <yao@codesourcery.com>
10603 * tracepoint.c (tracepoint_look_up_symbols): Update call to
10604 agent_look_up_symbols.
10606 2012-03-03 Yao Qi <yao@codesourcery.com>
10608 * Makefile.in (linux-low.o): Keep dependence on agent.h.
10609 (linux-x86-low.o): Likewise.
10610 * server.h: Remove in_process_agent_loaded.
10611 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
10615 2012-03-03 Yao Qi <yao@codesourcery.com>
10617 * tracepoint.c (gdb_agent_capability): New global.
10618 (in_process_agent_loaded_ust): Renamed to
10619 `in_process_agent_supports_ust'.
10621 (in_process_agent_supports_ust): Call agent_capability_check.
10622 (clear_installed_tracepoints): Assert that agent supports
10625 2012-03-03 Yao Qi <yao@codesourcery.com>
10627 * linux-low.c (linux_supports_agent): New.
10628 (linux_target_ops): Initialize field `supports_agent' with
10629 linux_supports_agent.
10630 * target.h (struct target_ops) <supports_agent>: New.
10631 (target_supports_agent): New macro.
10632 * server.c (handle_general_set): Handle packet 'QAgent'.
10633 (handle_query): Send `QAgent+'.
10634 * Makefile.in (server.o): Depends on agent.h.
10636 2012-03-03 Yao Qi <yao@codesourcery.com>
10638 * Makefile.in (OBS): Add agent.o.
10639 Add new rule for agent.o.
10640 Track dependence of tracepoint.c on agent.h.
10641 * tracepoint.c (run_inferior_command_1):
10642 (run_inferior_command): Call agent_run_command.
10643 (gdb_ust_connect_sync_socket): Deleted. Move it to
10645 (resume_thread, stop_thread): Likewise.
10646 (gdb_ust_socket_init): Renamed to ...
10647 (gdb_agent_socket_init): ... New.
10648 (gdb_ust_thread): Renamed to ...
10649 (gdb_agent_helper_thread): ... New.
10650 (gdb_ust_init): Move some code to ...
10651 (gdb_agent_init): ... here. New.
10652 [HAVE_UST]: Call gdb_ust_init.
10653 (initialize_tracepoint_ftlib): Call gdb_agent_init.
10654 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
10655 * config.in, configure: Regenerated.
10657 2012-03-02 Pedro Alves <palves@redhat.com>
10659 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
10660 * linux-low.c (struct simple_pid_list): New.
10661 (stopped_pids): New a struct simple_pid_list pointer.
10662 (add_to_pid_list, pull_pid_from_list): New.
10663 (handle_extended_wait): Don't assume the first signal new children
10664 report is SIGSTOP. Adjust call to pull_pid_from_list.
10665 (linux_wait_for_lwp): Adjust.
10667 2012-03-02 Yao Qi <yao@codesourcery.com>
10669 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
10672 2012-03-02 Yao Qi <yao@codesourcery.com>
10674 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
10675 `stop_pc' and `tpoint'. Update caller.
10677 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10679 * linux-low.h (linux_target_ops): Add regset_bitmap member.
10680 * linux-low.c (use_linux_regsets): New macro.
10681 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
10682 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
10683 (linux_register_in_regsets): New function.
10684 (usr_fetch_inferior_registers): Skip registers covered by
10686 (usr_store_inferior_registers): Likewise.
10687 (usr_fetch_inferior_registers): New macro.
10688 (usr_store_inferior_registers): Likewise.
10689 (linux_fetch_registers): Handle mixed regset/non-regset targets.
10690 (linux_store_registers): Likewise.
10691 * linux-mips-low.c (init_registers_mips_dsp_linux): New
10693 (init_registers_mips64_dsp_linux): Likewise.
10694 (init_registers_mips_linux): New macro.
10695 (init_registers_mips_dsp_linux): Likewise.
10696 (mips_dsp_num_regs): Likewise.
10697 (DSP_BASE, DSP_CONTROL): New fallback macros.
10698 (mips_base_regs): New macro.
10699 (mips_regmap): Use it. Fix the size.
10700 (mips_dsp_regmap): New variable.
10701 (mips_dsp_regset_bitmap): Likewise.
10702 (mips_arch_setup): New function.
10703 (mips_cannot_fetch_register): Use the_low_target.regmap rather
10705 (mips_cannot_store_register): Likewise.
10706 (the_low_target): Update .arch_setup, .num_regs and .regmap
10707 initializers. Add .regset_bitmap initializer.
10708 * linux-arm-low.c (the_low_target): Add .regset_bitmap
10710 * linux-bfin-low.c (the_low_target): Likewise.
10711 * linux-cris-low.c (the_low_target): Likewise.
10712 * linux-crisv32-low.c (the_low_target): Likewise.
10713 * linux-ia64-low.c (the_low_target): Likewise.
10714 * linux-m32r-low.c (the_low_target): Likewise.
10715 * linux-m68k-low.c (the_low_target): Likewise.
10716 * linux-ppc-low.c (the_low_target): Likewise.
10717 * linux-s390-low.c (the_low_target): Likewise.
10718 * linux-sh-low.c (the_low_target): Likewise.
10719 * linux-sparc-low.c (the_low_target): Likewise.
10720 * linux-tic6x-low.c (the_low_target): Likewise.
10721 * linux-x86-low.c (the_low_target): Likewise.
10722 * linux-xtensa-low.c (the_low_target): Likewise.
10723 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
10724 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
10725 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
10727 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
10728 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
10730 2012-02-29 Yao Qi <yao@codesourcery.com>
10731 Pedro Alves <palves@redhat.com>
10733 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
10734 `step_over_finished' is true.
10736 2012-02-27 Pedro Alves <palves@redhat.com>
10738 * linux-low.c (pid_is_stopped): Delete, moved to common/.
10739 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
10741 2012-02-27 Pedro Alves <palves@redhat.com>
10744 * linux-low.c (pid_is_stopped): New.
10745 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
10747 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
10749 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
10752 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10754 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
10756 2012-02-24 Luis Machado <lgustavo@codesourcery>
10758 * server.c (handle_query): Advertise support for target-side
10759 breakpoint condition evaluation.
10760 (process_point_options): New function.
10761 (process_serial_event): When inserting a breakpoint, check for
10762 a target-side condition that should be evaluated.
10764 * mem-break.c: Include regcache.h and ax.h.
10765 (point_cond_list_t): New data structure.
10766 (breakpoint) <cond_list>: New field.
10767 (find_gdb_breakpoint_at): Make non-static.
10768 (delete_gdb_breakpoint_at): Clear any target-side
10770 (clear_gdb_breakpoint_conditions): New function.
10771 (add_condition_to_breakpoint): Likewise.
10772 (add_breakpoint_condition): Likewise.
10773 (gdb_condition_true_at_breakpoint): Likewise.
10774 (gdb_breakpoint_here): Return result directly instead
10775 of going through a local variable.
10777 * mem-break.h (find_gdb_breakpoint_at): New prototype.
10778 (clear_gdb_breakpoint_conditions): Likewise.
10779 (add_breakpoint_condition): Likewise.
10780 (gdb_condition_true_at_breakpoint): Likewise.
10782 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
10783 (need_step_over_p): Take target-side breakpoint condition into
10786 2012-02-24 Luis Machado <lgustavo@codesourcery>
10788 * server.h: Include tracepoint.h.
10789 (agent_mem_read, agent_get_trace_state_variable_value,
10790 agent_set_trace_state_variable_value,
10791 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
10792 get_set_tsv_func_addr): New prototypes.
10794 * ax.h: New include file.
10795 * ax.c: New source file.
10797 * tracepoint.c: Include ax.h.
10798 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
10799 agent_expr, eval_result_type): Move to ax.h.
10800 (parse_agent_expr): Rename to ...
10801 (gdb_parse_agent_expr): ... this, make it non-static and move
10803 (unparse_agent_expr) Rename to ...
10804 (gdb_unparse_agent_expr): ... this, make it non-static and move
10806 (eval_agent_expr): Rename to ...
10807 (eval_tracepoint_agent_expr): ... this.
10808 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
10809 forward declarations.
10810 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
10811 (agent_get_trace_state_variable_value): New function.
10812 (agent_set_trace_state_variable_value): New function.
10813 (cmd_qtdp): Call gdb_parse_agent_expr (...).
10814 (response_tracepoint): Call gdb_unparse_agent_expr (...).
10815 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
10816 (condition_true_at_tracepoint): Likewise.
10817 (parse_agent_expr): Rename to ...
10818 (gdb_parse_agent_expr): ... this and move to ax.c.
10819 (unparse_agent_expr): Rename to ...
10820 (gdb_unparse_agent_expr): ... this and move to ax.c.
10821 (gdb_agent_op_name): Move to ax.c.
10822 (eval_agent_expr): Rename to ...
10823 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
10825 (eval_tracepoint_agent_expr): New function.
10826 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
10828 (current_insn_ptr, emit_error, struct bytecode_address): Move to
10830 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
10831 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
10832 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
10833 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
10834 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
10835 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
10836 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
10837 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
10838 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
10839 (compile_bytecodes): Remove forward declaration.
10840 (is_goto_target): Move to ax.c.
10841 (compile_bytecodes): Move to ax.c and call
10842 agent_get_trace_state_variable_value (...) and
10843 agent_set_trace_state_variable_value (...).
10845 * Makefile.in: Update ax.c and IPA dependencies.
10847 2012-02-24 Pedro Alves <palves@redhat.com>
10849 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
10850 (cmd_bigqtbuffer_circular): ... this. Only handle
10851 'QTBuffer:circular:'.
10852 (handle_tracepoint_general_set): Adjust.
10854 2012-02-16 Yao Qi <yao@codesourcery.com>
10856 * inferiors.c: Move code to ...
10857 * dll.c: .... here. New.
10858 * server.h: Declare clear_dlls.
10859 * Makefile.in (SFILES): Add dll.c.
10863 2012-02-11 Yao Qi <yao@codesourcery.com>
10865 * server.c: (handle_monitor_command): Add a new parameter
10867 (handle_query): Update caller.
10869 2012-02-09 Joel Brobecker <brobecker@adacore.com>
10871 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
10872 * configure, config.in: Regenerate.
10873 * hostio.c: Provide an alternate implementation if HAVE_READLINK
10876 2012-02-02 Pedro Alves <palves@redhat.com>
10878 Try SIGKILL first, then PTRACE_KILL.
10879 * linux-low.c (linux_kill_one_lwp): New.
10880 (linux_kill_one_lwp): Rename to ...
10881 (kill_one_lwp_callback): ... this. Use the new
10882 linux_kill_one_lwp.
10884 2012-02-02 Pedro Alves <palves@redhat.com>
10886 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
10889 2012-01-27 Pedro Alves <palves@redhat.com>
10891 * linux-low.c (linux_child_pid_to_exec_file): Delete.
10892 (elf_64_file_p): Make static.
10893 (linux_pid_exe_is_elf_64_file): New.
10894 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
10895 Delete declarations.
10896 (linux_pid_exe_is_elf_64_file): Declare.
10897 * linux-x86-low.c (x86_arch_setup): Use
10898 linux_pid_exe_is_elf_64_file.
10900 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10902 * linux-low.c (linux_wait_for_event_1): Rename to ...
10903 (linux_wait_for_event): ... here and merge it with former
10904 linux_wait_for_event - new variable wait_ptid, use it.
10905 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
10907 2012-01-23 Pedro Alves <palves@redhat.com>
10909 * server.c (main): Avoid yet another case of infinite loop while
10910 detaching/killing after a longjmp.
10912 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10915 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
10917 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10919 * hostio.c (handle_readlink): New function.
10920 (handle_vFile): Call it to handle "vFile:readlink" packets.
10922 2012-01-20 Pedro Alves <palves@redhat.com>
10923 Ulrich Weigand <ulrich.weigand@linaro.org>
10925 * server.c (handle_v_requests): Only support vAttach and vRun to
10926 start multiple processes when in extended protocol mode.
10928 2012-01-17 Pedro Alves <palves@redhat.com>
10930 * tracepoint.c (initialize_tracepoint): Use mmap instead of
10931 memalign plus mprotect to allocate the scratch buffer.
10933 2012-01-13 Pedro Alves <palves@redhat.com>
10935 * server.c (attach_inferior): Clear `cont_thread'.
10937 2012-01-13 Pedro Alves <palves@redhat.com>
10939 * server.c (main): Avoid infinite loop while detaching/killing
10942 2012-01-09 Doug Evans <dje@google.com>
10944 * server.c (start_inferior): Set last_ptid in --wrapper case.
10946 2012-01-06 Yao Qi <yao@codesourcery.com>
10948 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
10950 [IN_PROCESS_AGENT] (debug_agent): New global variable.
10952 2012-01-04 Yao Qi <yao@codesourcery.com>
10954 * tracepoint.c (cmd_qtdp): Print debug message
10955 for static tracepoint.
10957 2012-01-04 Yao Qi <yao@codesourcery.com>
10959 * tracepoint.c (trace_vdebug): Differentiate debug message
10960 between gdbserver and IPA.
10962 2012-01-03 Yao Qi <yao@codesourcery.com>
10964 * tracepoint.c (tracepoint_was_hit): Don't collect for
10967 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10969 * terminal.h: Reformat copyright header.
10971 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10973 * server.c (gdbserver_version): Update copyright year.
10974 * gdbreplay.c (gdbreplay_version): Likewise.
10976 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10978 * linux-low.c (linux_create_inferior): Put empty if clause for write.
10981 2011-12-18 Hui Zhu <teawater@gmail.com>
10982 * linux-low.c (linux_create_inferior): Save return value to ret.
10984 2011-12-18 Hui Zhu <teawater@gmail.com>
10986 * linux-low.c (linux_create_inferior): Save return value to ret.
10988 2011-12-16 Doug Evans <dje@google.com>
10990 * linux-low.c (linux_create_inferior): If stdio connection,
10991 redirect stdin from /dev/null, stdout to stderr.
10992 * remote-utils.c (remote_is_stdio): New static global.
10993 (remote_connection_is_stdio): New function.
10994 (remote_prepare): Handle stdio connection.
10995 (remote_open): Ditto.
10996 (remote_close): Don't close stdin for stdio connections.
10997 (read_prim,write_prim): New functions. Replace all calls to
10998 read/write to these.
10999 * server.c (main): Watch for "-" argument. Move call to
11000 remote_prepare before start_inferior.
11001 * server.h (STDIO_CONNECTION_NAME): New macro.
11002 (remote_connection_is_stdio): Declare.
11004 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
11005 in debugging output.
11007 2011-12-15 Yao Qi <yao@codesourcery.com>
11009 * tracepoint.c: Include sys/syscall.h.
11010 (gdb_ust_thread): Remove preprocessor conditional.
11012 2011-12-14 Pedro Alves <pedro@codesourcery.com>
11014 * linux-low.c (linux_detach_one_lwp): Call
11015 the_low_target.prepare_to_resume before detaching.
11017 2011-12-14 Yao Qi <yao@codesourcery.com>
11019 * tracepoint.c (gdb_ust_thread): Don't ignore return value
11022 2011-12-14 Yao Qi <yao@codesourcery.com>
11024 * i386-low.c (i386_low_stopped_data_address): Initialize local
11025 variable `control'.
11027 2011-12-13 Pedro Alves <pedro@codesourcery.com>
11031 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
11032 DR_CONTROL unless necessary. Extend comments.
11033 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
11034 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
11036 2011-12-13 Yao Qi <yao@codesourcery.com>
11038 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
11040 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
11042 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11044 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
11045 Print new debug message for such case.
11047 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
11049 Fix overlapping memcpy.
11050 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
11051 the read_inferior_memory transfer.
11052 (delete_fast_tracepoint_jump): New variable buf. Use it for the
11053 write_inferior_memory transfer.
11054 (set_fast_tracepoint_jump): New variable buf. Use it for the
11055 read_inferior_memory and write_inferior_memory transfers.
11056 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
11057 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
11058 Use it for the write_inferior_memory transfer.
11059 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
11062 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
11064 * linux-low.c (fetch_register, store_register): Make code
11065 consistent, fix formatting.
11067 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
11069 * linux-low.c (usr_store_inferior_registers): Factor out code
11070 to handle individual registers into...
11071 (store_register): ... this new function.
11073 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
11075 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
11076 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
11077 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
11078 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
11079 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
11080 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
11081 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
11082 (srv_xmlfiles): Add new XML files.
11084 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
11086 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
11087 (init_registers_s390_linux32v1): Add prototype.
11088 (init_registers_s390_linux32v2): Likewise.
11089 (init_registers_s390_linux64v1): Likewise.
11090 (init_registers_s390_linux64v2): Likewise.
11091 (init_registers_s390x_linux64v1): Likewise.
11092 (init_registers_s390x_linux64v2): Likewise.
11093 (s390_num_regs): Increment to 52.
11094 (s390_regmap): Add orig_r2 register.
11095 (s390_num_regs_3264): Increment to 68.
11096 (s390_regmap_3264): Add orig_r2 register.
11097 (s390_collect_ptrace_register): Handle orig_r2 register.
11098 (s390_supply_ptrace_register): Likewise.
11099 (s390_fill_last_break): New function.
11100 (s390_store_last_break): Likewise.
11101 (s390_fill_system_call): New function.
11102 (s390_store_system_call): Likewise.
11103 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
11105 (s390_check_regset): New function.
11106 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
11107 NT_S390_SYSTEM_CALL regsets and use appropriate description.
11108 Update target_regsets for available register sets.
11110 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
11111 Jan Kratochvil <jan.kratochvil@redhat.com>
11113 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
11114 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
11116 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
11117 * linux-low.h (struct process_info_private): New member r_debug.
11118 * server.c (handle_qxfer_libraries): Call
11119 the_target->qxfer_libraries_svr4.
11120 (handle_qxfer_libraries_svr4): New function.
11121 (qxfer_packets): New entry "libraries-svr4".
11122 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
11123 * target.h (struct target_ops): New member qxfer_libraries_svr4.
11124 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
11125 PACKET_qXfer_libraries_svr4.
11127 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
11129 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
11130 PSW address/mask between 8-byte and 16-byte formats.
11131 (s390_supply_ptrace_register): Likewise.
11132 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
11133 basic addressing mode bit.
11135 2011-11-24 Stan Shebs <stan@codesourcery.com>
11137 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
11139 2011-11-17 Stan Shebs <stan@codesourcery.com>
11141 * tracepoint.c (struct tracepoint): New field traceframe_usage.
11142 (tracing_start_time): New global.
11143 (tracing_stop_time): New global.
11144 (tracing_user_name): New global.
11145 (tracing_notes): New global.
11146 (tracing_stop_note): New global.
11147 (cmd_qtstart): Set traceframe_usage, start_time.
11148 (stop_tracing): Set stop_time.
11149 (cmd_qtstatus): Report additional status.
11150 (cmd_qtp): New function.
11151 (handle_tracepoint_query): Call it.
11152 (cmd_qtnotes): New function.
11153 (handle_tracepoint_general_set): Call it.
11154 (get_timestamp): Rename from tsv_get_timestamp.
11156 2011-11-14 Stan Shebs <stan@codesourcery.com>
11157 Kwok Cheung Yeung <kcy@codesourcery.com>
11159 * linux-x86-low.c (small_jump_insn): New.
11160 (i386_install_fast_tracepoint_jump_pad): Add arguments for
11161 trampoline and error message, build a trampoline and issue a small
11162 jump instruction to it.
11163 (x86_install_fast_tracepoint_jump_pad): Add arguments for
11164 trampoline and error message.
11165 (x86_get_min_fast_tracepoint_insn_len): New.
11166 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
11167 * linux-low.h (struct linux_target_ops): Add arguments to
11168 install_fast_tracepoint_jump_pad operation, add new operation.
11169 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
11171 (linux_get_min_fast_tracepoint_insn_len): New function.
11172 (linux_target_op): Add new operation.
11173 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
11174 (gdb_trampoline_buffer_end): Ditto.
11175 (gdb_trampoline_buffer_error): Ditto.
11176 (struct ipa_sym_addresses): Add fields for new IPA variables.
11177 (symbol_list): Add entries for new IPA variables.
11178 (struct tracepoint): Add fields to hold the address range of the
11179 trampoline used by the tracepoint.
11180 (trampoline_buffer_head): New static variable.
11181 (trampoline_buffer_tail): Ditto.
11182 (claim_trampoline_space): New function.
11183 (have_fast_tracepoint_trampoline_buffer): New function.
11184 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
11186 (install_fast_tracepoint): Ditto, also add error buffer argument.
11187 (cmd_qtminftpilen): New function.
11188 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
11189 (fast_tracepoint_from_trampoline_address): New function.
11190 (fast_tracepoint_collecting): Handle trampoline as part of jump
11192 (set_trampoline_buffer_space): New function.
11193 (initialize_tracepoint): Initialize new IPA variables.
11194 * target.h (struct target_ops): Add arguments to
11195 install_fast_tracepoint_jump_pad operation, add new
11196 get_min_fast_tracepoint_insn_len operation.
11197 (target_get_min_fast_tracepoint_insn_len): New.
11198 (install_fast_tracepoint_jump_pad): Add arguments.
11199 * server.h (IPA_BUFSIZ): Define.
11200 * linux-i386-ipa.c: Include extra header files.
11201 (initialize_fast_tracepoint_trampoline_buffer): New function.
11202 (initialize_low_tracepoint): Call it.
11203 * server.h (set_trampoline_buffer_space): Declare.
11204 (claim_trampoline_space): Ditto.
11205 (have_fast_tracepoint_trampoline_buffer): Ditto.
11207 2011-11-14 Yao Qi <yao@codesourcery.com>
11209 * server.c (handle_query): Handle InstallInTrace for qSupported.
11210 * tracepoint.c (add_tracepoint): Sort list.
11211 (install_tracepoint, download_tracepoint): New.
11212 (cmd_qtdp): Call them to install and download tracepoints.
11213 (sort_tracepoints): Removed.
11214 (cmd_qtstart): Update.
11216 2011-11-14 Yao Qi <yao@codesourcery.com>
11218 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
11219 * mem-break.h: Declare.
11220 * tracepoint.c (cmd_qtstart): Move some code to ...
11221 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
11223 (download_tracepoints): Move some code to ...
11224 (download_tracepoint_1): ... here. New.
11226 2011-11-08 Yao Qi <yao@codesourcery.com>
11228 * remote-utils.c (relocate_instruction): A comment fix.
11230 2011-11-07 Joel Brobecker <brobecker@adacore.com>
11232 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
11233 (i386_dr_low_get_control, i386_dr_low_get_status): Use
11234 dr_status_mirror and dr_control_mirror from debug_reg_state.
11235 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
11236 (i386_initial_stuff): Remove use of deleted globals.
11237 (i386_get_thread_context, i386_set_thread_context,
11238 i386_thread_added): Use dr_status_mirror and dr_control_mirror
11239 from debug_reg_state.
11241 2011-11-05 Yao Qi <yao@codesourcery.com>
11243 * tracepoint.c (gdb_collect): Loop over tracepoints of same
11244 address as TPOINT's.
11246 2011-11-02 Stan Shebs <stan@codesourcery.com>
11248 * tracepoint.c (agent_mem_read_string): New function.
11249 (eval_agent_expr): Call it for tracenz.
11250 * server.c (handle_query): Report support for tracenz.
11252 2011-11-02 Yao Qi <yao@codesourcery.com>
11254 * tracepoint.c (cmd_qtstart): Remove unused local variables.
11256 2011-11-02 Yao Qi <yao@codesourcery.com>
11258 * target.h: Fix a typo in comment.
11260 2011-10-31 Pedro Alves <pedro@codesourcery.com>
11262 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
11263 clobber the breakpoints' shadows with fast tracepoint jumps.
11264 * mem-break.h (check_mem_write): Add `myaddr' parameter.
11265 * target.c (write_inferior_memory): Also pass MYADDR down to
11268 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
11270 * configure.ac: Check support for personality routine.
11271 * configure: Regenerate.
11272 * config.in: Likewise.
11273 * linux-low.c: Include <sys/personality.h>.
11274 Define ADDR_NO_RANDOMIZE if necessary.
11275 (linux_create_inferior): Disable address space randomization when
11276 forking inferior, if requested.
11277 (linux_supports_disable_randomization): New function.
11278 (linux_target_ops): Install it.
11279 * server.h (disable_randomization): Declare.
11280 * server.c (disable_randomization): New global variable.
11281 (handle_general_set): Handle QDisableRandomization.
11282 (handle_query): Likewise for qSupported.
11283 (main): Support --disable-randomization and --no-disable-randomization
11284 command line arguments.
11285 * target.h (struct target_ops): Add supports_disable_randomization.
11286 (target_supports_disable_randomization): New macro.
11288 2011-09-29 Mike Frysinger <vapier@gentoo.org>
11290 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
11292 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
11293 [!PT_GETDSBT] (target_loadmap): New definition.
11294 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
11295 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
11296 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
11297 and PT_GETDSBT to LINUX_LOADMAP.
11298 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
11299 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
11301 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
11303 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
11304 (arm_linux_hwbp_cap): New static variable.
11305 (arm_linux_get_hwbp_cap): Replace by ...
11306 (arm_linux_init_hwbp_cap): ... this new function.
11307 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
11308 (arm_linux_get_hw_watchpoint_count): Likewise.
11309 (arm_linux_get_hw_watchpoint_max_length): Likewise.
11310 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
11311 (arm_prepare_to_resume): Use perror_with_name instead of error.
11313 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
11315 * linux-arm-low.c: Include <signal.h>.
11316 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
11317 (struct arm_linux_hwbp_cap): New data type.
11318 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
11319 (struct arm_linux_hw_breakpoint): New data type.
11320 (MAX_BPTS, MAX_WPTS): Define.
11321 (struct arch_process_info, struct arch_lwp_info): New data types.
11322 (arm_linux_get_hwbp_cap): New function.
11323 (arm_linux_get_hw_breakpoint_count): Likewise.
11324 (arm_linux_get_hw_watchpoint_count): Likewise.
11325 (arm_linux_get_hw_watchpoint_max_length): Likewise.
11326 (arm_hwbp_control_initialize): Likewise.
11327 (arm_hwbp_control_is_enabled): Likewise.
11328 (arm_hwbp_control_is_initialized): Likewise.
11329 (arm_hwbp_control_disable): Likewise.
11330 (arm_linux_hw_breakpoint_equal): Likewise.
11331 (arm_linux_hw_point_initialize): Likewise.
11332 (struct update_registers_data): New data structure.
11333 (update_registers_callback: New function.
11334 (arm_insert_point): Likewise.
11335 (arm_remove_point): Likewise.
11336 (arm_stopped_by_watchpoint): Likewise.
11337 (arm_stopped_data_address): Likewise.
11338 (arm_new_process): Likewise.
11339 (arm_new_thread): Likewise.
11340 (arm_prepare_to_resume): Likewise.
11341 (the_low_target): Register arm_insert_point, arm_remove_point,
11342 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
11343 arm_new_thread, and arm_prepare_to_resume.
11345 2011-09-15 Stan Shebs <stan@codesourcery.com>
11347 * server.h (struct emit_ops): Add compare-goto fields.
11348 * tracepoint.c (gdb_agent_op_sizes): New table.
11349 (emit_eq_goto): New function.
11350 (emit_ne_goto): New function.
11351 (emit_lt_goto): New function.
11352 (emit_le_goto): New function.
11353 (emit_gt_goto): New function.
11354 (emit_ge_goto): New function.
11355 (is_goto_target): New function.
11356 (compile_bytecodes): Recognize special cases of compare-goto
11357 combinations and call specialized emitters for them.
11358 * linux-x86-low.c (amd64_emit_eq_goto): New function.
11359 (amd64_emit_ne_goto): New function.
11360 (amd64_emit_lt_goto): New function.
11361 (amd64_emit_le_goto): New function.
11362 (amd64_emit_gt_goto): New function.
11363 (amd64_emit_ge_goto): New function.
11364 (amd64_emit_ops): Add the new functions.
11365 (i386_emit_eq_goto): New function.
11366 (i386_emit_ne_goto): New function.
11367 (i386_emit_lt_goto): New function.
11368 (i386_emit_le_goto): New function.
11369 (i386_emit_gt_goto): New function.
11370 (i386_emit_ge_goto): New function.
11371 (i386_emit_ops): Add the new functions.
11373 2011-09-08 Stan Shebs <stan@codesourcery.com>
11375 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
11376 (i386_emit_epilogue): Restore %ebx.
11378 2011-08-31 Jie Zhang <jzhang918@gmail.com>
11380 * server.c (step_thread): Remove definition.
11381 (process_serial_event): Don't handle Hs.
11382 * server.h (step_thread): Remove declaration.
11383 * target.c (set_desired_inferior): Remove use of step_thread.
11385 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
11387 * linux-low.c: Include linux-procfs.h.
11388 (linux_attach_lwp_1): Update comments.
11389 (linux_attach): Scan for existing threads when attaching to a
11390 process that is the tgid.
11391 * Makefile.in: Update dependencies.
11393 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
11395 * configure.srv: Add linux-procfs.o dependencies.
11397 2011-08-14 Yao Qi <yao@codesourcery.com>
11399 * target.h (struct target_ops): Fix indent.
11400 * win32-low.c (win32_target_ops): Fix comment.
11402 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
11403 Yao Qi <yao@codesourcery.com>
11405 * Makefile.in (clean): Remove tic6x-*.c files.
11406 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
11407 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
11408 (tic6x-c64xp-linux.c): Likewise.
11409 * configure.srv: Add support for tic6x-*-uclinux.
11410 * linux-tic6x-low.c: New.
11411 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
11413 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
11414 Yao Qi <yao@codesourcery.com>
11416 * target.h (struct target_ops): Add read_loadmap.
11417 * linux-low.c (struct target_loadseg): New type.
11418 (struct target_loadmap): New type.
11419 (linux_read_loadmap): New function.
11420 (linux_target_ops): Add linux_read_loadmap.
11421 * server.c (handle_query): Support qXfer:fdpic:read packet.
11422 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
11425 2011-08-05 Eli Zaretskii <eliz@gnu.org>
11427 * win32-low.c: Include <stdint.h>.
11429 2011-07-22 Pedro Alves <pedro@codesourcery.com>
11431 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
11432 to the inferior here.
11433 (i386_remove_aligned_watchpoint): Ditto.
11434 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
11435 fit part of the watchpoint in the debug registers.
11436 (i386_update_inferior_debug_regs): New.
11437 (i386_low_insert_watchpoint): Work on a local mirror of the debug
11438 registers, and only update the inferior on success.
11439 (i386_low_remove_watchpoint): Ditto.
11441 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
11443 * linux-low.c (compare_ints, unique, list_threads, show_process,
11444 linux_core_of_thread): Delete.
11445 (linux_target_ops): Change linux_core_of_thread to
11446 linux_common_core_of_thread.
11447 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
11448 * utils.c (malloc_failure): Change type of argument.
11449 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
11450 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
11451 common/linux-osdata.c, common/ptid.c and common/buffer.c.
11452 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
11453 (IPA_OBJS): Add common-utils-ipa.o.
11454 (ptid_h, linux_osdata_h): New macros.
11455 (server_h): Add common/common-utils.h, common/xml-utils.h,
11456 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
11458 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
11459 ptid.o, buffer.o): New rules.
11460 (linux-low.o): Add common/linux-osdata.h as a dependency.
11461 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
11462 * configure.ac: Add AC_HEADER_DIRENT check.
11463 * config.in: Regenerate.
11464 * configure: Regenerate.
11465 * remote-utils.c (xml_escape_text): Delete.
11466 (buffer_grow, buffer_free, buffer_init, buffer_finish,
11467 buffer_xml_printf): Move to common/buffer.c.
11468 * server.c (main): Remove call to initialize_inferiors.
11469 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
11470 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
11471 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
11472 internal_error, gdb_assert, gdb_assert_fail): Delete.
11473 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
11474 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
11476 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
11477 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
11478 initialize_inferiors): Delete.
11480 2011-07-20 Pedro Alves <pedro@codesourcery.com>
11482 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
11485 2011-05-31 Pedro Alves <pedro@codesourcery.com>
11487 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
11489 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
11491 2011-05-26 Yao Qi <yao@codesourcery.com>
11493 * Makefile.in (thread-db.o): Track dependence to
11494 common/gdb_thread_db.h.
11495 * thread-db.c: include gdb_thread_db.h from right place.
11497 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
11499 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
11500 __FILE__ and __LINE__ to internal_error.
11502 2011-05-13 Doug Evans <dje@google.com>
11504 * thread-db.c (try_thread_db_load_from_sdir): New function.
11505 (try_thread_db_load_from_dir): New function.
11506 (thread_db_load_search): Handle $sdir, ignore $pdir.
11507 Remove trying of system directories if search of
11508 libthread-db-search-path fails, that is now done via $sdir.
11510 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
11512 * server.c (handle_query): Add EnableDisableTracepoints to the list
11513 of supported features.
11514 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
11516 (cmd_qtenable_disable): New.
11517 (cmd_qtstart): Install tracepoints even if disabled.
11518 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
11519 receiving a QTEnable or QTDisable packet.
11520 (gdb_collect): Skip data collection if fast tracepoint is disabled.
11521 (ust_marker_to_static_tracepoint): Do not ignore disabled static
11523 (gdb_probe): Skip data collection if static tracepoint is disabled.
11525 2011-05-10 Doug Evans <dje@google.com>
11527 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
11529 2011-05-04 Doug Evans <dje@google.com>
11531 * linux-low.c (linux_join): Skip process lookup.
11532 * spu-low.c (spu_join): Ditto.
11533 * server.c (join_inferiors_callback): Delete.
11534 (process_serial_event): For 'D' packet (detach) call join_inferior
11537 2011-05-04 Joseph Myers <joseph@codesourcery.com>
11539 * README: Don't mention xscale*-*-linux*.
11540 * configure.srv (xscale*-*-linux*): Don't handle target.
11542 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
11544 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
11546 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
11547 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
11548 (i386_emit_void_call_2): Likewise.
11550 2011-04-26 Yao Qi <yao@codesourcery.com>
11552 * linux-low.c: Move common macros to linux-ptrace.h.
11553 Include linux-ptrace.h.
11554 * Makefile.in (linux_ptrace_h): New.
11555 (linux-low.o): Depends on linux-ptrace.h.
11557 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11559 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
11560 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
11561 (remote_prepare): New function with most of the TCP code from ...
11562 (remote_open): ... here. Detect PORT here unconditionally. Move also
11563 setting transport_is_reliable.
11564 * server.c (run_once): New variable.
11565 (gdbserver_usage): Document it.
11566 (main): Set run_once for `--once'. Call remote_prepare. Exit after
11567 the first run if RUN_ONCE.
11568 * server.h (run_once, remote_prepare): New declarations.
11570 2011-04-19 Tom Tromey <tromey@redhat.com>
11572 * win32-low.c (handle_load_dll): Remove duplicate "the".
11574 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
11576 Remove support for old Cygwin 1.5 versions.
11577 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
11578 function to avoid warning.
11579 (win32_add_one_solib): Use cygwin_conv_path function to avoid
11582 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
11584 * gdbserver/server.h (Macro _): Define it if not available.
11586 2011-03-14 Michael Snyder <msnyder@vmware.com>
11588 * hostio.c (handle_close): Remove unnecessary null test.
11590 2011-03-10 Joel Brobecker <brobecker@adacore.com>
11592 * Makefile.in (maintainer-clean realclean distclean): Remove
11593 "make ... subdir_do" command.
11595 2011-03-10 Michael Snyder <msnyder@vmware.com>
11597 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
11599 * server.c (handle_v_run): Free alloced buffer on early return.
11601 2011-03-09 Yao Qi <yao@codesourcery.com>
11604 2011-03-04 Yao Qi <yao@codesourcery.com>
11606 * Makefile.in: Remove GNU make feature --directory.
11608 2011-03-05 Yao Qi <yao@codesourcery.com>
11610 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
11611 (subdir_do): New make target. Copied from gdb/Makefile.
11612 (maintainer-clean, realclean, distclean, clean): Call corresponding
11613 make targets in common/Makefile.
11615 2011-02-11 Yao Qi <yao@codesourcery.com>
11617 * configure.ac: Call AC_PROG_RANLIB.
11618 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
11619 * configure: Regenerate.
11621 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
11623 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
11625 2011-03-06 Yao Qi <yao@codesourcery.com>
11627 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
11629 2011-03-05 Yao Qi <yao@codesourcery.com>
11631 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
11632 (subdir_do): New make target. Copied from gdb/Makefile.
11633 (maintainer-clean, realclean, distclean, clean): Call corresponding
11634 make targets in common/Makefile.
11636 2011-03-04 Yao Qi <yao@codesourcery.com>
11638 * Makefile.in: Remove GNU make feature --directory.
11640 2011-03-04 Michael Snyder <msnyder@vmware.com>
11642 * server.c (queue_stop_reply): Call xmalloc not malloc.
11644 2011-03-02 Michael Snyder <msnyder@vmware.com>
11646 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
11648 2011-02-28 Michael Snyder <msnyder@vmware.com>
11650 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
11651 (cmd_qtframe): Ditto.
11652 (cmd_qtbuffer): Ditto.
11653 (cmd_bigqtbuffer): Ditto.
11655 * utils.c (decimal2str): Initialize 'width' to nine, then
11656 don't mess with it.
11658 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
11660 * hostio.c (require_data): Free *data, not data.
11662 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11664 * hostio.c (require_data): Use free, not xfree.
11666 2011-02-27 Michael Snyder <msnyder@vmware.com>
11668 * server.c (handle_query): Discard unused value.
11670 * hostio.c (require_data): Free malloc memory before returning
11673 2011-02-26 Michael Snyder <msnyder@vmware.com>
11675 * linux-low.c (list_threads): Call closedir for dirent.
11677 2011-02-27 Michael Snyder <msnyder@vmware.com>
11679 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
11680 a case statement falls through.
11682 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
11684 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
11687 2011-02-26 Michael Snyder <msnyder@vmware.com>
11689 * utils.c (decimal2str): Eliminate dead code and dead param.
11690 (pulongest): Drop dead param from call to decimal2str.
11693 2011-02-24 Joel Brobecker <brobecker@adacore.com>
11695 Revert the following patch (not approved yet):
11696 2011-02-21 Hui Zhu <teawater@gmail.com>
11697 * tracepoint.c (tp_printf): New function.
11698 (eval_agent_expr): Handle gdb_agent_op_printf.
11700 2011-02-21 Hui Zhu <teawater@gmail.com>
11702 * tracepoint.c (tp_printf): New function.
11703 (eval_agent_expr): Handle gdb_agent_op_printf.
11705 2011-02-18 Tom Tromey <tromey@redhat.com>
11707 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
11708 (tracepoint.o): Likewise.
11709 * tracepoint.c (enum gdb_agent_op): Use ax.def.
11710 (gdb_agent_op_names): Likewise.
11712 2011-02-18 Tom Tromey <tromey@redhat.com>
11714 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
11715 gdb_agent_op_rot>: New constants.
11716 (gdb_agent_op_names): Add pick and roll.
11717 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
11720 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11722 * aclocal.m4: Regenerated with aclocal-1.11.1.
11724 2011-02-14 Pedro Alves <pedro@codesourcery.com>
11726 * server.c (handle_qxfer_traceframe_info): New.
11727 (qxfer_packets): Register "traceframe-info".
11728 (handle_query): Report support for qXfer:traceframe-info:read+.
11729 * tracepoint.c (match_blocktype): New.
11730 (traceframe_find_block_type): Rename to ...
11731 (traceframe_walk_blocks): ... this. Add callback filter argument,
11733 (traceframe_find_block_type): New, reimplemented on top of
11734 traceframe_walk_blocks.
11735 (build_traceframe_info_xml): New.
11736 (traceframe_read_info): New.
11737 * server.h (traceframe_read_info): Declare.
11739 2011-02-11 Yao Qi <yao@codesourcery.com>
11741 * configure.ac: Call AC_PROG_RANLIB.
11742 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
11743 * configure: Regenerate.
11745 2011-02-07 Pedro Alves <pedro@codesourcery.com>
11747 * server.c (gdb_read_memory): Change return semantics to allow
11749 (handle_search_memory_1): Adjust.
11750 (process_serial_event) <'m' packet>: Handle partial transfers.
11751 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
11753 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11755 * regcache.c (init_register_cache): Initialize
11756 regcache->register_status.
11757 (free_register_cache): Release regcache->register_status.
11758 (regcache_cpy): Copy register_status.
11759 (registers_to_string): Print 'x's for unavailable registers.
11760 (supply_register): Mark the register's status valid or
11761 unavailable, depending on whether a buffer was passed in or not.
11762 (supply_register_zeroed): New.
11763 (supply_regblock): Mark the registers' status valid or
11764 unavailable, depending on whether a buffer was passed in or not.
11765 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
11766 (struct regcache): New `register_status' field.
11767 (supply_register_zeroed): Declare.
11768 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
11769 supply_register_zeroed, rather than passing a NULL buffer to
11771 * tracepoint.c (fetch_traceframe_registers): Update comment.
11773 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11775 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
11778 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11780 * server.h (decode_xfer_write): Change prototype.
11781 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
11782 and don't extract the annex here.
11783 * server.c (decode_xfer_read): Remove `annex' parameter,
11784 and don't extract the annex here.
11785 (decode_xfer): New.
11786 (struct qxfer): New.
11787 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
11788 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
11789 (handle_qxfer_statictrace): New functions, abstracted out from
11790 handle_query, and made to use the struct qxfer interface.
11791 (handle_threads_qxfer_proper): Rename to ...
11792 (handle_qxfer_threads_proper): ... this.
11793 (handle_threads_qxfer): Rename to ...
11794 (handle_qxfer_threads): ... this. Adjust.
11795 (qxfer_packets): New array.
11796 (handle_qxfer): New function.
11797 (handle_query): Use handle_qxfer.
11799 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
11801 * gdbreplay.c: Shorten lines of >= 80 columns.
11802 * linux-low.c: Ditto.
11803 * linux-ppc-low.c: Ditto.
11804 * linux-s390-low.c: Ditto.
11805 * linux-sparc-low.c: Ditto.
11806 * linux-x86-low.c: Ditto.
11807 * linux-xtensa-low.c: Ditto.
11808 * mem-break.c: Ditto.
11809 * nto-low.c: Ditto.
11810 * regcache.h: Ditto.
11811 * remote-utils.c: Ditto.
11814 * thread-db.c: Ditto.
11815 * tracepoint.c: Ditto.
11817 * win32-low.h: Ditto.
11819 2011-01-05 Joel Brobecker <brobecker@adacore.com>
11821 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
11824 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11826 * server.c (gdbserver_version): Update copyright year in version
11828 * gdbreplay.c (gdbreplay_version): Ditto.
11830 2010-12-29 Jie Zhang <jie.zhang@analog.com>
11832 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
11833 * linux-bfin-low.c: New file.
11834 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
11835 PT_DATA_ADDR for BFIN targets.
11836 * Makefile.in (SFILES): Add linux-bfin-low.c.
11837 (clean): Remove reg-bfin.c.
11838 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
11839 * README: Mention supported Blackfin targets.
11841 2010-12-23 Mike Frysinger <vapier@gentoo.org>
11843 * .gitignore: New file.
11845 2010-11-16 Mike Frysinger <vapier@gentoo.org>
11847 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
11849 2010-10-22 Jie Zhang <jie@codesourcery.com>
11851 * Makefile.in: Add FLAGS_TO_PASS variable.
11852 (install): Remove dependency of install-only and recursively
11853 invoke make for install-only.
11855 2010-10-04 Doug Evans <dje@google.com>
11857 * Makefile.in (uninstall): Use $(DESTDIR).
11859 2010-09-24 Pedro Alves <pedro@codesourcery.com>
11863 * linux-x86-low.c (compat_siginfo_from_siginfo)
11864 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
11865 si_code is < 0. Check for si_code == SI_TIMER before checking for
11868 2010-09-13 Joel Brobecker <brobecker@adacore.com>
11870 * lynx-i386-low.c: New file.
11871 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
11873 2010-09-13 Joel Brobecker <brobecker@adacore.com>
11875 * lynx-low.c (ptrace_request_to_str): Remove handling for
11876 request values that have been removed in LynxOS 5.x.
11878 2010-09-13 Joel Brobecker <brobecker@adacore.com>
11880 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
11883 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
11885 * configure.ac: Add --enable-inprocess-agent option.
11886 * configure: Rebuilt.
11888 2010-09-06 Yao Qi <yao@codesourcery.com>
11890 * linux-low.c (linux_kill): Remove unused variable.
11891 (linux_stabilize_threads): Likewise.
11892 * server.c (start_inferior): Likewise.
11893 (queue_stop_reply_callback): Likewise.
11894 * tracepoint.c (do_action_at_tracepoint): Likewise.
11896 2010-09-06 Yao Qi <yao@codesourcery.com>
11898 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
11901 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
11903 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
11905 2010-09-06 Pedro Alves <pedro@codesourcery.com>
11907 * Makefile.in (install-only): Replace $IPA_DEPFILES with
11910 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11912 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
11913 gdbserver/lynx-ppc-low.c: New files.
11914 * Makefile.in (lynx_low_h): New variable.
11915 (lynx-low.o, lynx-ppc-low.o): New rules.
11916 * configure.ac: On LynxOS, link with -lnetinet.
11917 * configure.srv: Add handling of powerpc-*-lynxos* targets.
11918 * configure: regenerate.
11920 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11922 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
11923 * configure.ac: Add check for vasprintf and vsnprintf.
11924 * configure, config.in: Regenerate.
11925 * server.h (vasprintf, vsnprintf): Add conditional declarations.
11927 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11929 * gdbreplay.c: Move include of alloca.h up, next to include of
11931 * server.h: Add include of malloc.h.
11932 * mem-break.c: Remove include of malloc.h.
11933 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
11935 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11937 * Makefile.in (memmem.o): Build with -Wno-error.
11939 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11941 * utils.c (xsnprintf): Make non-static.
11942 * server.h: Add xsnprintf declaration.
11943 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
11944 replace calls to snprintf by calls to xsnprintf throughout.
11946 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11948 * configure.ac: Add configure check for alloca.
11949 * configure, config.in: Regenerate.
11950 * server.h: Include alloca.h if it exists.
11951 * gdbreplay.c: Include alloca.h if it exists.
11953 2010-08-28 Pedro Alves <pedro@codesourcery.com>
11955 * linux-low.c (__SIGRTMIN): Define if not already defined.
11956 (linux_create_inferior): Check for __ANDROID__ rather than
11958 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
11959 are already deferred.
11960 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
11961 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
11962 stopped and already has a pending signal to report.
11963 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
11964 a pending signal to report or is moving out of a jump pad.
11965 (linux_init_signals): Check for __ANDROID__ rather than
11968 2010-08-28 Pedro Alves <pedro@codesourcery.com>
11970 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
11971 debug_threads check. Avoid a linear search when not doing debug
11974 2010-08-27 Pedro Alves <pedro@codesourcery.com>
11976 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
11977 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
11978 (struct file_handler) <fd>: Change type to gdb_fildes_t.
11979 (process_event): Change local fd's type to gdb_fildes_t.
11980 (create_file_handler): Adjust prototype.
11981 (delete_file_handler): Adjust prototype.
11982 (handle_file_event): Adjust prototype. Use pfildes.
11983 (create_file_event): Adjsut prototype.
11984 * remote-utils.c (remote_desc, listen_desc): Change type to
11986 * server.h: New gdb_fildes_t typedef.
11987 [USE_WIN32API]: Include winsock2.h.
11988 (delete_file_handler, add_file_handler): Adjust prototypes.
11989 (pfildes): Declare.
11990 * utils.c (pfildes): New.
11992 2010-08-27 Pedro Alves <pedro@codesourcery.com>
11994 * configure.ac (build_warnings): Add -Wno-char-subscripts.
11995 * configure: Regenerate.
11997 2010-08-27 Pedro Alves <pedro@codesourcery.com>
11999 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
12000 (linux_done_accessing_memory): ... this.
12001 (linux_target_ops): Adjust.
12002 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
12003 * nto-low.c (nto_target_ops): Adjust comment.
12004 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
12005 * spu-low.c (spu_target_ops): Adjust comment.
12006 * target.h (target_ops): Rename unprepare_to_access_memory field
12007 to done_accessing_memory.
12008 (unprepare_to_access_memory): Rename to ...
12009 (done_accessing_memory): ... this.
12011 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12013 * linux-low.c (linux_prepare_to_access_memory): New.
12014 (linux_unprepare_to_access_memory): New.
12015 (linux_target_ops): Install them.
12016 * server.c (read_memory): Rename to ...
12017 (gdb_read_memory): ... this. Use
12018 prepare_to_access_memory/prepare_to_access_memory.
12019 (write_memory): Rename to ...
12020 (gdb_write_memory): ... this. Use
12021 prepare_to_access_memory/prepare_to_access_memory.
12022 (handle_search_memory_1): Adjust.
12023 (process_serial_event): Adjust.
12024 * target.h (struct target_ops): New fields
12025 prepare_to_access_memory and unprepare_to_access_memory.
12026 (prepare_to_access_memory, unprepare_to_access_memory): New.
12027 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
12028 prepare_to_access_memory/prepare_to_access_memory.
12029 * nto-low.c (nto_target_ops): Adjust.
12030 * spu-low.c (spu_target_ops): Adjust.
12031 * win32-low.c (win32_target_ops): Adjust.
12033 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12035 * Makefile.in (WARN_CFLAGS): Get it from configure.
12036 (WERROR_CFLAGS): New.
12037 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
12038 * configure.ac: Introduce --enable-werror, which adds -Werror to
12039 the compiler command line. Enabled by default. Disable with
12040 --disable-werror. Add -Wdeclaration-after-statement
12041 Wpointer-arith and -Wformat-nonliteral to warning flags.
12042 * configure: Regenerate.
12044 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12046 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
12048 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12050 * gdbreplay.c (remote_error): New.
12052 (expect): Use gdbchar. Check for error reading from GDB.
12053 Clarify sync error output.
12054 (play): Check for errors writing to GDB.
12055 * linux-low.c (sigchld_handler): Really ignore `write' errors.
12056 * remote-utils.c (getpkt): Check for errors writing to the remote
12059 2010-08-25 Pedro Alves <pedro@codesourcery.com>
12061 * linux-low.c (linux_wait_1): Move non-debugging code out of
12062 `debug_threads' control.
12064 2010-08-25 Pedro Alves <pedro@codesourcery.com>
12066 * linux-low.c (linux_wait_1): Don't set last_status here.
12067 * server.c (push_event, queue_stop_reply_callback): Assert we're
12068 not pushing a TARGET_WAITKIND_IGNORE event.
12069 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
12070 (myresume, handle_target_event): Set the thread's last_resume_kind
12071 and last_status from the target returned status.
12073 2010-08-25 Pedro Alves <pedro@codesourcery.com>
12077 * linux-x86-low.c (update_debug_registers_callback): New.
12078 (i386_dr_low_set_addr): Use it.
12079 (i386_dr_low_get_addr): New.
12080 (i386_dr_low_set_control): Use update_debug_registers_callback.
12081 (i386_dr_low_get_control): New.
12082 (i386_dr_low_get_status): Adjust.
12083 * linux-low.c (linux_stop_lwp): New.
12084 * linux-low.h (linux_stop_lwp): Declare.
12086 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
12087 argument instead of a i386_debug_reg_state.
12088 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
12089 a i386_debug_reg_state.
12090 (i386_insert_aligned_watchpoint): Adjust.
12091 (i386_remove_aligned_watchpoint): Adjust.
12092 (i386_low_stopped_data_address): Read the debug registers from the
12093 inferior instead of from the mirrors.
12094 * i386-low.h (struct i386_debug_reg_state): Extend comment.
12095 (i386_dr_low_get_addr): Declare.
12096 (i386_dr_low_get_control): Declare.
12097 (i386_dr_low_get_status): Change prototype.
12099 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
12100 (i386_dr_low_get_addr): New.
12101 (i386_dr_low_get_control): New.
12102 (i386_dr_low_get_status): Adjust prototype. Return
12104 (i386_initial_stuff): Clear dr_status_mirror and
12106 (i386_get_thread_context): Adjust.
12107 (i386_set_thread_context): Adjust.
12108 (i386_thread_added): Adjust.
12110 2010-08-24 Pedro Alves <pedro@codesourcery.com>
12112 * linux-low.h (linux_thread_area): Delete declaration.
12114 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
12116 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
12117 after its termination.
12119 2010-08-09 Pedro Alves <pedro@codesourcery.com>
12121 * linux-low.c (gdb_wants_lwp_stopped): Delete.
12122 (gdb_wants_all_stopped): Delete.
12123 (linux_wait_1): Don't call them.
12124 * server.c (handle_v_cont): Tag all threads as want-stopped.
12125 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
12126 stopped as "client-wants-stopped".
12128 2010-07-31 Pedro Alves <pedro@codesourcery.com>
12130 * Makefile.in (signals_h): New.
12131 (server_h): Depend on it.
12132 (server.o): Don't depend on $(signals_def).
12133 (signals.o): Depend on $(signals_def).
12135 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
12137 * Makefile.in (signals_def): New.
12138 (server_h): Append include/gdb/signals.h and signals_def.
12139 (server.o): Append signals_def.
12141 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
12143 * server.c (handle_target_event): Use target_signal_to_host for
12144 resume_info.sig initialization.
12145 * target.h (struct thread_resume) <sig>: New comment.
12147 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
12149 * server.c (handle_query): strcpy() the returned string from paddress()
12150 instead of sprintf().
12151 * utils.c (paddress): Return phex_nz().
12153 2010-07-07 Joel Brobecker <brobecker@adacore.com>
12155 * server.c (handle_v_cont): Call mourn_inferior if process
12157 (myresume): Likewise.
12159 2010-07-01 Pedro Alves <pedro@codesourcery.com>
12161 Static tracepoints, and integration with UST.
12163 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
12164 * mem-break.c (uninsert_all_breakpoints)
12165 (reinsert_all_breakpoints): New.
12166 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
12167 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
12168 (gdb_agent_ust_loaded, helper_thread_id)
12169 (gdb_agent_helper_thread_id): New macros.
12170 (struct ipa_sym_addresses): Add addr_ust_loaded,
12171 addr_helper_thread_id, addr_cmd_buf.
12172 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
12173 (in_process_agent_loaded_ust): New.
12174 (write_e_ust_not_loaded): New.
12175 (maybe_write_ipa_ust_not_loaded): New.
12176 (struct collect_static_trace_data_action): New.
12177 (enum tracepoint_type) <static_tracepoint>: New.
12178 (struct tracepoint) <handle>: Mention static tracepoints.
12179 (struct static_tracepoint_ctx): New.
12180 (CMD_BUF_SIZE): New.
12181 (add_tracepoint_action): Handle static tracepoint actions.
12182 (unprobe_marker_at): New.
12183 (clear_installed_tracepoints): Handle static tracepoints.
12184 (cmd_qtdp): Handle static tracepoints.
12185 (probe_marker_at): New.
12186 (cmd_qtstart): Handle static tracepoints.
12187 (response_tracepoint): Handle static tracepoints.
12188 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
12189 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
12190 (get_context_regcache): Handle static tracepoints.
12191 (do_action_at_tracepoint): Handle static tracepoint actions.
12192 (traceframe_find_block_type): Handle static trace data blocks.
12193 (traceframe_read_sdata): New.
12194 (download_tracepoints): Download static tracepoint actions.
12195 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
12196 (GDB_PROBE_NAME): New.
12198 (GET_UST_SYM): New.
12201 (ust_marker_to_static_tracepoint): New.
12203 (collect_ust_data_at_tracepoint): New.
12204 (gdb_ust_probe): New.
12205 (UNIX_PATH_MAX, SOCK_DIR): New.
12206 (gdb_ust_connect_sync_socket): New.
12207 (resume_thread, stop_thread): New.
12208 (run_inferior_command): New.
12209 (init_named_socket): New.
12210 (gdb_ust_socket_init): New.
12211 (cstr_to_hexstr): New.
12213 (first_marker, next_marker): New.
12214 (response_ust_marker): New.
12215 (cmd_qtfstm, cmd_qtsstm): New.
12216 (unprobe_marker_at, probe_marker_at): New.
12217 (cmd_qtstmat, gdb_ust_thread): New.
12218 (gdb_ust_init): New.
12219 (initialize_tracepoint_ftlib): Call gdb_ust_init.
12220 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
12221 (ST_REGENTRY): New.
12222 (x86_64_st_collect_regmap): New.
12223 (X86_64_NUM_ST_COLLECT_GREGS): New.
12224 (AMD64_RIP_REGNUM): New.
12225 (supply_static_tracepoint_registers): New.
12226 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
12227 (ST_REGENTRY): New.
12228 (i386_st_collect_regmap): New.
12229 (i386_NUM_ST_COLLECT_GREGS): New.
12230 (supply_static_tracepoint_registers): New.
12231 * server.c (handle_query): Handle qXfer:statictrace:read.
12232 <qSupported>: Report support for StaticTracepoints, and
12233 qXfer:statictrace:read features.
12234 * server.h (traceframe_read_sdata)
12235 (supply_static_tracepoint_registers): Declare.
12236 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
12237 (unpack_varlen_hex): Include in IPA build.
12238 * Makefile.in (ustlibs, ustinc): New.
12239 (IPA_OBJS): Add remote-utils-ipa.o.
12240 ($(IPA_LIB)): Link -ldl and -lpthread.
12242 (IPAGENT_CFLAGS): Add UST_CFLAGS.
12243 * config.in, configure: Regenerate.
12245 2010-06-20 Ian Lance Taylor <iant@google.com>
12246 Pedro Alves <pedro@codesourcery.com>
12248 * linux-x86-low.c (always_true): Delete.
12249 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
12250 trying to fool the compiler with always_true.
12252 2010-06-20 Pedro Alves <pedro@codesourcery.com>
12254 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
12255 conditions in gdbserver.
12257 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
12259 * spu-low.c (spu_read_memory): Wrap around local store limit.
12260 (spu_write_memory): Likewise.
12262 2010-06-15 Pedro Alves <pedro@codesourcery.com>
12264 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
12265 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
12267 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
12269 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
12270 uses with LONGEST uses.
12272 2010-06-14 Stan Shebs <stan@codesourcery.com>
12273 Pedro Alves <pedro@codesourcery.com>
12277 * linux-x86-low.c: Include limits.h.
12279 (always_true): New.
12282 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
12283 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
12284 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
12285 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
12286 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
12287 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
12288 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
12289 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
12290 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
12291 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
12292 (amd64_emit_void_call_2): New.
12293 (amd64_emit_ops): New.
12294 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
12295 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
12296 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
12297 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
12298 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
12299 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
12300 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
12301 (i386_emit_call, i386_emit_reg, i386_emit_pop)
12302 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
12303 (i386_emit_stack_adjust, i386_emit_int_call_1)
12304 (i386_emit_void_call_2): New.
12305 (i386_emit_ops): New.
12306 (x86_emit_ops): New.
12307 (the_low_target): Install x86_emit_ops.
12308 * server.h (struct emit_ops): New.
12309 (get_raw_reg_func_addr): Declare.
12310 (current_insn_ptr, emit_error): Declare.
12311 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
12312 (set_trace_state_variable_value): New defines.
12313 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
12314 addr_get_trace_state_variable_value and
12315 addr_set_trace_state_variable_value.
12316 (symbol_list): New fields for get_raw_reg,
12317 get_trace_state_variable_value and set_trace_state_variable_value.
12318 (condfn): New typedef.
12319 (struct tracepoint): New field `compiled_cond'.
12320 (do_action_at_tracepoint): Clear compiled_cond.
12321 (get_trace_state_variable_value, set_trace_state_variable_value):
12323 (condition_true_at_tracepoint): If there's a compiled condition,
12325 (current_insn_ptr, emit_error): New globals.
12326 (struct bytecode_address): New.
12327 (get_raw_reg_func_addr): New.
12328 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
12329 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
12330 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
12331 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
12332 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
12333 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
12334 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
12335 (compile_tracepoint_condition, compile_bytecodes): New.
12336 * target.h (emit_ops): Forward declare.
12337 (struct target_ops): New field emit_ops.
12338 (target_emit_ops): New.
12339 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
12340 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
12341 * linux-low.c (linux_emit_ops): New.
12342 (linux_target_ops): Install it.
12343 * linux-low.h (struct linux_target_ops): New field emit_ops.
12345 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
12347 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
12348 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
12350 2010-06-01 Pedro Alves <pedro@codesourcery.com>
12351 Stan Shebs <stan@codesourcery.com>
12353 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
12354 (all): Depend on $(extra_libraries).
12355 (install-only): Install the IPA.
12356 (IPA_OBJS, IPA_LIB): New.
12357 (clean): Remove the IPA lib.
12358 (IPAGENT_CFLAGS): New.
12359 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
12360 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
12361 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
12362 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
12363 * configure.ac: Check for atomic builtins support in the compiler.
12364 (IPA_DEPFILES, extra_libraries): Define.
12365 * configure.srv (ipa_obj): Add description.
12366 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
12367 (i[34567]86-*-linux*): Set ipa_obj.
12368 (x86_64-*-linux*): Set ipa_obj.
12369 * linux-low.c (stabilizing_threads): New.
12370 (supports_fast_tracepoints): New.
12371 (linux_detach): Stabilize threads before detaching.
12372 (handle_tracepoints): Handle internal tracing breakpoints. Assert
12373 the lwp is either not stabilizing, or is moving out of a jump pad.
12374 (linux_fast_tracepoint_collecting): New.
12375 (maybe_move_out_of_jump_pad): New.
12376 (enqueue_one_deferred_signal): New.
12377 (dequeue_one_deferred_signal): New.
12378 (linux_wait_for_event_1): If moving out of a jump pad, defer
12379 pending signals to later.
12380 (linux_stabilize_threads): New.
12381 (linux_wait_1): Check if threads need moving out of jump pads, and
12383 (stuck_in_jump_pad_callback): New.
12384 (move_out_of_jump_pad_callback): New.
12385 (lwp_running): New.
12386 (linux_resume_one_lwp): Handle moving out of jump pads.
12387 (linux_set_resume_request): Dequeue deferred signals.
12388 (need_step_over_p): Also step over fast tracepoint jumps.
12389 (start_step_over): Also uninsert fast tracepoint jumps.
12390 (finish_step_over): Also reinsert fast tracepoint jumps.
12391 (linux_install_fast_tracepoint_jump): New.
12392 (linux_target_ops): Install linux_stabilize_threads and
12393 linux_install_fast_tracepoint_jump_pad.
12394 * linux-low.h (linux_target_ops) <get_thread_area,
12395 install_fast_tracepoint_jump_pad>: New fields.
12396 (struct lwp_info) <collecting_fast_tracepoint,
12397 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
12398 (linux_get_thread_area): Declare.
12399 * linux-x86-low.c (jump_insn): New.
12400 (x86_get_thread_area): New.
12401 (append_insns): New.
12402 (push_opcode): New.
12403 (amd64_install_fast_tracepoint_jump_pad): New.
12404 (i386_install_fast_tracepoint_jump_pad): New.
12405 (x86_install_fast_tracepoint_jump_pad): New.
12406 (the_low_target): Install x86_get_thread_area and
12407 x86_install_fast_tracepoint_jump_pad.
12408 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
12409 (struct fast_tracepoint_jump): New.
12410 (fast_tracepoint_jump_insn): New.
12411 (fast_tracepoint_jump_shadow): New.
12412 (find_fast_tracepoint_jump_at): New.
12413 (fast_tracepoint_jump_here): New.
12414 (delete_fast_tracepoint_jump): New.
12415 (set_fast_tracepoint_jump): New.
12416 (uninsert_fast_tracepoint_jumps_at): New.
12417 (reinsert_fast_tracepoint_jumps_at): New.
12418 (set_breakpoint_at): Use write_inferior_memory.
12419 (uninsert_raw_breakpoint): Use write_inferior_memory.
12420 (check_mem_read): Mask out fast tracepoint jumps.
12421 (check_mem_write): Mask out fast tracepoint jumps.
12422 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
12423 (set_fast_tracepoint_jump): Declare.
12424 (delete_fast_tracepoint_jump)
12425 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
12426 (reinsert_fast_tracepoint_jumps_at): Declare.
12427 * regcache.c: Don't compile many functions when building the
12428 in-process agent library.
12429 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
12430 the register buffer in the heap.
12431 (free_register_cache): If the register buffer isn't owned by the
12432 regcache, don't free it.
12433 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
12434 pre-existing register caches.
12435 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
12437 (convert_ascii_to_int): : Constify `from' parameter type.
12438 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
12439 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
12440 the needed buffer in-place.
12441 (relocate_instruction): New.
12442 * server.c (handle_query) <qSymbols>: If the target supports
12443 tracepoints, give it a chance of looking up symbols. Report
12444 support for fast tracepoints.
12445 (handle_status): Stabilize threads.
12446 (process_serial_event): Adjust.
12447 * server.h (struct fast_tracepoint_jump): Forward declare.
12448 (struct process_info) <fast_tracepoint_jumps>: New field.
12449 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
12450 (decode_X_packet, decode_M_packet): Adjust.
12451 (relocate_instruction): Declare.
12452 (in_process_agent_loaded): Declare.
12453 (tracepoint_look_up_symbols): Declare.
12454 (struct fast_tpoint_collect_status): Declare.
12455 (fast_tracepoint_collecting): Declare.
12456 (force_unlock_trace_buffer): Declare.
12457 (handle_tracepoint_bkpts): Declare.
12458 (initialize_low_tracepoint)
12459 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
12460 * target.h (struct target_ops) <stabilize_threads,
12461 install_fast_tracepoint_jump_pad>: New fields.
12462 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
12463 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
12464 [HAVE_STDINT_H]: Include stdint.h.
12465 (trace_debug_1): Rename to ...
12466 (trace_vdebug): ... this.
12467 (trace_debug): Rename to ...
12468 (trace_debug_1): ... this. Add `level' parameter.
12469 (trace_debug): New.
12470 (ATTR_USED, ATTR_NOINLINE): New.
12471 (IP_AGENT_EXPORT): New.
12472 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12473 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
12474 (about_to_request_buffer_space, trace_buffer_is_full)
12475 (stopping_tracepoint, expr_eval_result, error_tracepoint)
12476 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
12477 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
12478 (traceframe_write_count, traceframes_created)
12479 (trace_state_variables)
12480 New renaming defines.
12481 (struct ipa_sym_addresses): New.
12482 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
12483 (symbol_list): New.
12484 (ipa_sym_addrs): New.
12485 (all_tracepoint_symbols_looked_up): New.
12486 (in_process_agent_loaded): New.
12487 (write_e_ipa_not_loaded): New.
12488 (maybe_write_ipa_not_loaded): New.
12489 (tracepoint_look_up_symbols): New.
12490 (debug_threads) [IN_PROCESS_AGENT]: New.
12491 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
12492 (UNKNOWN_SIDE_EFFECTS): New.
12493 (stop_tracing): New.
12494 (flush_trace_buffer): New.
12495 (stop_tracing_bkpt): New.
12496 (flush_trace_buffer_bkpt): New.
12497 (read_inferior_integer): New.
12498 (read_inferior_uinteger): New.
12499 (read_inferior_data_pointer): New.
12500 (write_inferior_data_pointer): New.
12501 (write_inferior_integer): New.
12502 (write_inferior_uinteger): New.
12503 (struct collect_static_trace_data_action): Delete.
12504 (enum tracepoint_type): New.
12505 (struct tracepoint) <type>: New field `type'.
12506 <actions_str, step_actions, step_actions_str>: Only include in
12508 <orig_size, obj_addr_on_target, adjusted_insn_addr>
12509 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
12510 (tracepoints): Use IP_AGENT_EXPORT.
12511 (last_tracepoint): Don't include in the IPA.
12512 (stopping_tracepoint): Use IP_AGENT_EXPORT.
12513 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
12514 (alloced_trace_state_variables): New.
12515 (trace_state_variables): Use IP_AGENT_EXPORT.
12516 (traceframe_t): Delete unused variable.
12517 (circular_trace_buffer): Don't include in the IPA.
12518 (trace_buffer_start): Delete.
12519 (struct trace_buffer_control): New.
12520 (trace_buffer_free): Delete.
12521 (struct ipa_trace_buffer_control): New.
12522 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
12523 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
12525 (trace_buffer_ctrl): New.
12526 (TRACE_BUFFER_CTRL_CURR): New.
12527 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
12528 Reimplement as macros.
12529 (trace_buffer_wrap): Delete.
12530 (traceframe_write_count, traceframe_read_count)
12531 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
12532 (struct tracepoint_hit_ctx) <type>: New field.
12533 (struct fast_tracepoint_ctx): New.
12534 (memory_barrier): New.
12536 (record_tracepoint_error): Update atomically in the IPA.
12537 (clear_inferior_trace_buffer): New.
12538 (about_to_request_buffer_space): New.
12539 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
12540 updating the same buffer.
12541 (add_tracepoint): Default the tracepoint's type to trap
12542 tracepoint, and orig_size to -1.
12543 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
12544 internal variables.
12545 (create_trace_state_variable): New parameter `gdb'. Handle it.
12546 (clear_installed_tracepoints): Clear fast tracepoint jumps.
12547 (cmd_qtdp): Handle fast tracepoints.
12548 (cmd_qtdv): Adjust.
12549 (max_jump_pad_size): New.
12550 (gdb_jump_pad_head): New.
12551 (get_jump_space_head): New.
12552 (claim_jump_space): New.
12553 (sort_tracepoints): New.
12554 (MAX_JUMP_SIZE): New.
12555 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
12557 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
12558 support. Upload fast traceframes, and delete internal IPA
12560 (stop_tracing_handler): New.
12561 (flush_trace_buffer_handler): New.
12562 (cmd_qtstop): Upload fast tracepoints.
12563 (response_tracepoint): Handle fast tracepoints.
12564 (tracepoint_finished_step): Upload fast traceframes. Set the
12565 tracepoint hit context's tracepoint type.
12566 (handle_tracepoint_bkpts): New.
12567 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
12568 type. Add comment about fast tracepoints.
12569 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
12570 non-existing action_str field.
12571 (get_context_regcache): Handle fast tracepoints.
12572 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
12574 (fast_tracepoint_from_jump_pad_address): New.
12575 (fast_tracepoint_from_ipa_tpoint_address): New.
12576 (collecting_t): New.
12577 (force_unlock_trace_buffer): New.
12578 (fast_tracepoint_collecting): New.
12580 (gdb_collect): New.
12581 (write_inferior_data_ptr): New.
12582 (target_tp_heap): New.
12583 (target_malloc): New.
12584 (download_agent_expr): New.
12586 (download_tracepoints): New.
12587 (download_trace_state_variables): New.
12588 (upload_fast_traceframes): New.
12589 (IPA_FIRST_TRACEFRAME): New.
12590 (IPA_NEXT_TRACEFRAME_1): New.
12591 (IPA_NEXT_TRACEFRAME): New.
12592 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
12593 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
12594 (gdb_jump_pad_buffer_end): New.
12595 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
12596 (initialize_tracepoint): Adjust.
12597 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
12598 buffer. Initialize the low module.
12599 * utils.c (PREFIX, TOOLNAME): New.
12600 (malloc_failure): Use PREFIX.
12601 (error): In the IPA, an error causes an exit.
12602 (fatal, warning): Use PREFIX.
12603 (internal_error): Use TOOLNAME.
12604 (NUMCELLS): Increase to 10.
12605 * configure, config.in: Regenerate.
12607 2010-06-01 Pedro Alves <pedro@codesourcery.com>
12609 * server.c (handle_query) <qSupported>: Do two passes over the
12610 qSupported string to avoid nesting strtok.
12612 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12614 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
12616 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
12617 -Wl,--dynamic-list.
12618 * configure: Regenerate.
12619 * proc-service.list: New.
12621 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12623 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
12626 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
12628 * gdbreplay.c (remote_open): Check error return from socket() call by
12629 its equality to -1 not by it being negative.
12630 * remote-utils.c (remote_open): Likewise.
12632 2010-05-23 Pedro Alves <pedro@codesourcery.com>
12634 * config.h: Regenerate.
12636 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
12638 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
12639 doesn't provide PTRACE_GET_THREAD_AREA.
12641 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
12643 * linux-m68k-low.c: Include <asm/ptrace.h>
12644 (ps_get_thread_area): Implement.
12646 2010-05-03 Doug Evans <dje@google.com>
12648 * event-loop.c (struct callback_event): New struct.
12649 (callback_list): New global.
12650 (append_callback_event, delete_callback_event): New functions.
12651 (process_callback): New function.
12652 (start_event_loop): Call it.
12653 * remote-utils.c (NOT_SCHEDULED): Define.
12654 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
12655 moved out of readchar.
12656 (readchar): Rewrite. Call reschedule before returning.
12657 (reset_readchar): New function.
12658 (remote_close): Call it.
12659 (process_remaining, reschedule): New functions.
12660 * server.h (callback_handler_func): New typedef.
12661 (append_callback_event, delete_callback_event): Declare.
12663 2010-05-03 Pedro Alves <pedro@codesourcery.com>
12665 * proc-service.c (ps_pglobal_lookup): Use
12666 thread_db_look_up_one_symbol.
12667 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
12668 parameter. Use it instead of all_symbols_looked_up.
12669 * server.h (struct process_info) <all_symbols_looked_up>: Delete
12671 (all_symbols_looked_up): Don't declare.
12672 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
12673 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
12675 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
12676 Set all_symbols_looked_up here.
12677 (thread_db_look_up_one_symbol): New.
12678 (thread_db_get_tls_address): Adjust.
12679 (thread_db_load_search, try_thread_db_load_1): Always allocate the
12680 thread_db object on the heap, and tentatively set it in the
12682 (thread_db_init): Don't set all_symbols_looked_up here.
12683 * linux-low.h (thread_db_look_up_one_symbol): Declare.
12685 2010-05-03 Pedro Alves <pedro@codesourcery.com>
12687 * linux-low.c (linux_kill, linux_detach): Adjust.
12688 (status_pending_p_callback): Remove redundant statement. Check
12689 for !TARGET_WAITIKIND_IGNORE, instead of
12690 TARGET_WAITKIND_STOPPED.
12691 (handle_tracepoints): Make sure LWP is locked. Adjust.
12692 (linux_wait_for_event_1): Adjust.
12693 (linux_cancel_breakpoints): New.
12694 (unsuspend_one_lwp): New.
12695 (unsuspend_all_lwps): New.
12696 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
12697 (send_sigstop_callback): Change return type to int, add new
12698 `except' parameter and handle it.
12699 (suspend_and_send_sigstop_callback): New.
12700 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
12701 pass them down. If SUSPEND, also increment the lwp's suspend
12703 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
12704 (need_step_over_p): Don't consider suspended LWPs.
12705 (start_step_over): Adjust.
12706 (proceed_one_lwp): Change return type to int, add new `except'
12707 parameter and handle it.
12708 (unsuspend_and_proceed_one_lwp): New.
12709 (proceed_all_lwps): Use find_inferior instead of
12711 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
12712 also decrement the suspend count of LWPs. Pass `except' down,
12713 instead of hacking its suspend count.
12714 (linux_pause_all): Add `freeze' parameter. Adjust.
12715 (linux_unpause_all): New.
12716 (linux_target_ops): Install linux_unpause_all.
12717 * server.c (handle_status): Adjust.
12718 * target.h (struct target_ops): New fields `unpause_all' and
12719 `cancel_breakpoints'. Add new parameter to `pause_all'.
12720 (pause_all): Add new `freeze' parameter.
12721 (unpause_all): New.
12722 (cancel_breakpoints): New.
12723 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
12724 cancel breakpoints.
12725 (cmd_qtstart): Pause threads.
12726 (stop_tracing): Pause threads, and cancel breakpoints.
12727 * win32-low.c (win32_target_ops): Adjust.
12729 2010-05-03 Pedro Alves <pedro@codesourcery.com>
12731 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
12732 the inferior right away from here...
12733 (linux_wait_1): ... to here, and adjust to check the thread's
12734 last_resume_kind instead of the lwp's step or stop_expected flags.
12736 2010-05-02 Pedro Alves <pedro@codesourcery.com>
12738 * README: Use consistent `GDB' and `GDBserver' spellings.
12740 2010-05-02 Pedro Alves <pedro@codesourcery.com>
12742 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
12743 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
12744 (linux_detach_one_lwp): Assume the lwp is stopped.
12745 (any_thread_of): Delete.
12746 (linux_detach): Stop all lwps here. Don't blindly delete all
12748 (delete_lwp_callback): New.
12749 (linux_mourn): Delete all lwps of the process that is gone.
12750 (linux_wait_1): Don't delete the last lwp of the process here.
12751 * mem-break.h (mark_breakpoints_out): Declare.
12752 * mem-break.c (mark_breakpoints_out): New.
12753 (free_all_breakpoints): Use it.
12754 * server.c (handle_target_event): If the process is gone, mark
12756 * thread-db.c (struct thread_db) <create_bp>: New field.
12757 (thread_db_enable_reporting): Fix prototype. Store a thread event
12758 breakpoint reference in the thread_db struct.
12759 (thread_db_load_search): Clear the thread_db object.
12760 (try_thread_db_load_1): Ditto.
12761 (switch_to_process): New.
12762 (disable_thread_event_reporting): Use it.
12763 (remove_thread_event_breakpoints): New.
12764 (thread_db_detach, thread_db_mourn): Use it.
12766 2010-05-01 Pedro Alves <pedro@codesourcery.com>
12768 * linux-low.c (linux_enable_event_reporting): New.
12769 (linux_wait_for_event_1, handle_extended_wait): Use it.
12771 2010-04-30 Pedro Alves <pedro@codesourcery.com>
12773 * linux-low.c (linux_kill_one_lwp, linux_kill)
12774 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
12775 (send_sigstop): Take an lwp_info as parameter instead. Queue a
12776 SIGSTOP even if the LWP is stopped.
12777 (send_sigstop_callback): New.
12778 (stop_all_lwps): Use send_sigstop_callback instead.
12779 (linux_resume_one_thread): Adjust.
12780 (proceed_one_lwp): Still proceed an LWP that the client has
12781 requested to stop, if we haven't reported it as stopped yet. Make
12782 sure that LWPs the client want stopped, have a pending SIGSTOP.
12784 2010-04-26 Doug Evans <dje@google.com>
12786 * server.c (handle_general_set): Make static.
12788 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
12789 Print received char after testing for error/eof instead of before.
12790 (input_interrupt): Tweak comment.
12792 2010-04-23 Doug Evans <dje@google.com>
12794 * server.c (start_inferior): Print inferior argv if --debug.
12796 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
12798 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
12799 * nto-x86-low.c: Include server.h
12801 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
12803 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
12804 be consistent with other sources of this directory.
12805 (init_registers_amd64): Correct name of source file of this function
12808 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
12810 * configure.srv (x86_64-*-mingw*): New configuration for Windows
12811 64-bit executables.
12813 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
12815 * win32-i386-low.c: Add 64-bit support.
12816 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
12817 (init_registers_amd64): Declare.
12818 (mappings): Add 64-bit version of array.
12819 (init_windows_x86): New function.
12820 (the_low_target): Change init_arch field to init_windows_x86.
12822 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
12824 * win32-low.c: Adapt to support also 64-bit architecture.
12825 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
12826 (get_image_name): Use SIZE_T type for local variable `done'.
12827 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
12828 (toolhelp_get_dll_name): Idem.
12829 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
12830 Use uintptr_t typecast to avoid warning.
12831 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
12832 (handle_exception): Use phex_nz to avoid warning.
12833 (win32_wait): Remove unused local variable `process'.
12835 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
12837 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
12840 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
12842 * configure.ac: Use `ws2_32' library for srv_mingw.
12843 * configure: Regenerate.
12844 * gdbreplay.c: Include winsock2.h instead of winsock.h.
12845 * remote-utils.c: Likewise.
12847 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
12849 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
12850 if __x86_64__ is defined.
12852 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
12854 * configure: Regenerate.
12856 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
12858 * server.c (handle_query): Handle 'qGetTIBAddr' query.
12859 * target.h (target_ops): New get_tib_address field.
12860 * win32-low.h (win32_thread_info): Add thread_local_base field.
12861 * win32-low.c (child_add_thread): Add tlb argument.
12862 Set thread_local_base field to TLB.
12863 (get_child_debug_event): Adapt to child_add_thread change.
12864 (win32_get_tib_address): New function.
12865 (win32_target_ops): Set get_tib_address field to
12866 win32_get_tib_address.
12867 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
12869 2010-04-12 Pedro Alves <pedro@codesourcery.com>
12871 * linux-low.c (linux_mourn): Also remove the process.
12872 * server.c (handle_target_event): Don't remove the process here.
12873 * nto-low.c (nto_mourn): New.
12874 (nto_target_ops): Install it.
12875 * spu-low.c (spu_mourn): New.
12876 (spu_target_ops): Install it.
12877 * win32-low.c (win32_mourn): New.
12878 (win32_target_ops): Install it.
12880 2010-04-12 Pedro Alves <pedro@codesourcery.com>
12882 * server.h (buffer_xml_printf): Remove redundant `;'.
12884 2010-04-12 Pedro Alves <pedro@codesourcery.com>
12886 * regcache.c (set_register_cache): Invalidate regcaches before
12887 changing the register cache layout.
12888 (regcache_invalidate_one): Allow a NULL regcache.
12889 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
12890 regcaches before changing the register cache layout or the target
12893 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
12895 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
12896 variable warning on Linux/x86-64.
12898 2010-04-11 Pedro Alves <pedro@codesourcery.com>
12900 GDBserver disconnected tracing support.
12902 * linux-low.c (linux_remove_process): Delete.
12903 (add_lwp): Don't set last_resume_kind here.
12904 (linux_kill): Use `mourn'.
12905 (linux_detach): Use `thread_db_detach', and `mourn'.
12906 (linux_mourn): New.
12907 (linux_attach_lwp_1): Adjust comment.
12908 (linux_attach): last_resume_kind moved the thread_info; adjust.
12909 (status_pending_p_callback): Adjust.
12910 (linux_wait_for_event_1): Adjust.
12911 (count_events_callback, select_singlestep_lwp_callback)
12912 (select_event_lwp_callback, cancel_breakpoints_callback)
12913 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
12914 (proceed_one_lwp): Adjust.
12915 (linux_async): Add debug output.
12916 (linux_thread_stopped): New.
12917 (linux_pause_all): New.
12918 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
12920 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
12921 (thread_db_free): Delete declaration.
12922 (thread_db_detach, thread_db_mourn): Declare.
12923 * thread-db.c (thread_db_init): Use thread_db_mourn.
12924 (thread_db_free): Delete, split in two.
12925 (disable_thread_event_reporting): New.
12926 (thread_db_detach): New.
12927 (thread_db_mourn): New.
12929 * server.h (struct thread_info) <last_resume_kind>: New field.
12930 <attached>: Add comment.
12931 <gdb_detached>: New field.
12932 (handler_func): Change return type to int.
12933 (handle_serial_event, handle_target_event): Ditto.
12934 (gdb_connected): Declare.
12936 (disconnected_tracing): Declare.
12937 (stop_tracing): Declare.
12939 * server.c (handle_query) <qSupported>: Report support for
12940 disconnected tracing.
12941 (queue_stop_reply_callback): Account for running threads.
12942 (gdb_wants_thread_stopped): New.
12943 (gdb_wants_all_threads_stopped): New.
12944 (gdb_reattached_process): New.
12945 (handle_status): Clear the `gdb_detached' flag of all processes.
12946 In all-stop, stop all threads.
12947 (main): Be sure to leave tfind mode. Handle disconnected tracing.
12948 (process_serial_event): If the remote connection breaks, or if an
12949 exit was forced with "monitor exit", force an event loop exit.
12950 Handle disconnected tracing on detach.
12951 (handle_serial_event): Adjust.
12952 (handle_target_event): If GDB isn't connected, forward events back
12953 to the inferior, unless the last process exited, in which case,
12954 exit gdbserver. Adjust interface.
12956 * remote-utils.c (remote_open): Don't block in accept. Instead
12957 register an event loop source on the listen socket file
12958 descriptor. Refactor bits into ...
12959 (listen_desc): ... this new global.
12960 (gdb_connected): ... this new function.
12961 (enable_async_notification): ... this new function.
12962 (handle_accept_event): ... this new function.
12963 (remote_close): Clear remote_desc.
12965 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
12967 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
12969 (mourn_inferior): Define.
12970 (target_process_qsupported): Avoid the dangling else problem.
12971 (thread_stopped): Define.
12972 (pause_all): Define.
12973 (target_waitstatus_to_string): Declare.
12974 * target.c (target_waitstatus_to_string): New.
12976 * tracepoint.c (tracing): Make extern.
12977 (disconnected_tracing): New.
12978 (stop_tracing): Make extern. Handle tracing stops due to GDB
12980 (cmd_qtdisconnected): New.
12981 (cmd_qtstatus): Report disconnected tracing status in trace reply.
12982 (handle_tracepoint_general_set): Handle QTDisconnected.
12984 * event-loop.c (event_handler_func): Change return type to int.
12985 (process_event): Bail out if the event handler wants the event
12987 (handle_file_event): Ditto.
12988 (start_event_loop): Bail out if the event handler wants the event
12991 * nto-low.c (nto_target_ops): Adjust.
12992 * spu-low.c (spu_wait): Don't remove the process here.
12993 (spu_target_ops): Adjust.
12994 * win32-low.c (win32_wait): Don't remove the process here.
12995 (win32_target_ops): Adjust.
12997 2010-04-11 Pedro Alves <pedro@codesourcery.com>
12999 * regcache.c (realloc_register_cache): Invalidate inferior's
13000 regcache before recreating it.
13002 2010-04-09 Pedro Alves <pedro@codesourcery.com>
13004 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
13006 2010-04-09 Stan Shebs <stan@codesourcery.com>
13007 Pedro Alves <pedro@codesourcery.com>
13009 * server.h (LONGEST): New.
13010 (struct thread_info) <while_stepping>: New field.
13011 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
13013 (initialize_tracepoint, handle_tracepoint_general_set)
13014 (handle_tracepoint_query, tracepoint_finished_step)
13015 (tracepoint_was_hit, release_while_stepping_state_list):
13016 (current_traceframe): Declare.
13017 * server.c (handle_general_set): Handle tracepoint packets.
13018 (read_memory): New.
13019 (write_memory): New.
13020 (handle_search_memory_1): Use read_memory.
13021 (handle_query): Report support for conditional tracepoints, trace
13022 state variables, and tracepoint sources. Handle tracepoint
13024 (main): Initialize the tracepoints module.
13025 (process_serial_event): Handle traceframe reads/writes.
13027 * linux-low.c (handle_tracepoints): New.
13028 (linux_wait_1): Call it.
13029 (linux_resume_one_lwp): Handle while-stepping.
13030 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
13031 (linux_target_ops): Install them.
13032 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
13034 * linux-x86-low.c (x86_supports_tracepoints): New.
13035 (the_low_target). Install it.
13037 * mem-break.h (delete_breakpoint): Declare.
13038 * mem-break.c (delete_breakpoint): Make external.
13040 * target.h (struct target_ops): Add `supports_tracepoints',
13041 `read_pc', and `write_pc' fields.
13042 (target_supports_tracepoints): Define.
13043 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
13046 * regcache.h (struct regcache) <registers_owned>: New field.
13047 (init_register_cache, regcache_cpy): Declare.
13048 (regcache_read_pc, regcache_write_pc): Declare.
13049 (register_cache_size): Declare.
13050 (supply_regblock): Declare.
13051 * regcache.c (init_register_cache): New.
13052 (new_register_cache): Use it.
13053 (regcache_cpy): New.
13054 (register_cache_size): New.
13055 (supply_regblock): New.
13056 (regcache_read_pc, regcache_write_pc): New.
13058 * tracepoint.c: New.
13060 * Makefile.in (OBS): Add tracepoint.o.
13061 (tracepoint.o): New rule.
13063 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
13065 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
13067 (i386-mmx.c): Likewise.
13068 (i386-mmx-linux.o): Likewise.
13069 (i386-mmx-linux.c): Likewise.
13071 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
13072 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
13073 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
13074 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
13076 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
13077 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
13078 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
13080 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
13082 * Makefile.in (clean): Updated.
13084 (i386-avx.c): Likewise.
13085 (i386-avx-linux.o): Likewise.
13086 (i386-avx-linux.c): Likewise.
13087 (amd64-avx.o): Likewise.
13088 (amd64-avx.c): Likewise.
13089 (amd64-avx-linux.o): Likewise.
13090 (amd64-avx-linux.c): Likewise.
13092 * configure.srv (srv_i386_regobj): Add i386-avx.o.
13093 (srv_i386_linux_regobj): Add i386-avx-linux.o.
13094 (srv_amd64_regobj): Add amd64-avx.o.
13095 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
13096 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
13097 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
13098 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
13099 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
13100 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
13101 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
13103 * i387-fp.c: Include "i386-xstate.h".
13105 (i387_cache_to_xsave): Likewise.
13106 (i387_xsave_to_cache): Likewise.
13107 (x86_xcr0): Likewise.
13109 * i387-fp.h (i387_cache_to_xsave): Likewise.
13110 (i387_xsave_to_cache): Likewise.
13111 (x86_xcr0): Likewise.
13113 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
13114 * linux-crisv32-low.c (target_regsets): Likewise.
13115 * linux-m68k-low.c (target_regsets): Likewise.
13116 * linux-mips-low.c (target_regsets): Likewise.
13117 * linux-ppc-low.c (target_regsets): Likewise.
13118 * linux-s390-low.c (target_regsets): Likewise.
13119 * linux-sh-low.c (target_regsets): Likewise.
13120 * linux-sparc-low.c (target_regsets): Likewise.
13121 * linux-xtensa-low.c (target_regsets): Likewise.
13123 * linux-low.c: Include <sys/uio.h>.
13124 (regsets_fetch_inferior_registers): Support nt_type.
13125 (regsets_store_inferior_registers): Likewise.
13126 (linux_process_qsupported): New.
13127 (linux_target_ops): Add linux_process_qsupported.
13129 * linux-low.h (regset_info): Add nt_type.
13130 (linux_target_ops): Add process_qsupported.
13132 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
13134 (init_registers_i386_avx_linux): New.
13135 (init_registers_amd64_avx_linux): Likewise.
13136 (xmltarget_i386_linux_no_xml): Likewise.
13137 (xmltarget_amd64_linux_no_xml): Likewise.
13138 (PTRACE_GETREGSET): Likewise.
13139 (PTRACE_SETREGSET): Likewise.
13140 (x86_fill_xstateregset): Likewise.
13141 (x86_store_xstateregset): Likewise.
13142 (use_xml): Likewise.
13143 (x86_linux_update_xmltarget): Likewise.
13144 (x86_linux_process_qsupported): Likewise.
13145 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
13146 (x86_arch_setup): Don't call init_registers_amd64_linux nor
13147 init_registers_i386_linux here. Call
13148 x86_linux_update_xmltarget.
13149 (the_low_target): Add x86_linux_process_qsupported.
13151 * server.c (handle_query): Call target_process_qsupported.
13153 * target.h (target_ops): Add process_qsupported.
13154 (target_process_qsupported): New.
13156 2010-04-03 Pedro Alves <pedro@codesourcery.com>
13158 * inferiors.c (add_thread): Set last_status kind to
13159 TARGET_WAITKIND_IGNORE.
13160 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
13161 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
13162 (linux_wait_1): Move `thread' local definition to block that uses
13163 it. Don't NULL initialize `event_child'.
13164 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
13165 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
13166 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
13168 2010-04-01 Pedro Alves <pedro@codesourcery.com>
13170 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
13171 an extended waitstatus, or by a watchpoint.
13172 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
13173 thread was stepping or has been stopped by a watchpoint.
13175 2010-04-01 Pedro Alves <pedro@codesourcery.com>
13177 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
13178 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
13179 of another, then delete the previous, and validate all
13181 (validate_inserted_breakpoint): New.
13182 (delete_disabled_breakpoints): New.
13183 (validate_breakpoints): New.
13184 (check_mem_read): Validate breakpoints before trusting their
13185 shadow. Delete disabled breakpoints.
13186 (check_mem_write): Validate breakpoints before trusting they
13187 should be inserted. Delete disabled breakpoints.
13188 * mem-break.h (validate_breakpoints):
13189 * server.c (handle_query): Validate breakpoints when we see a
13192 2010-04-01 Pedro Alves <pedro@codesourcery.com>
13194 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
13195 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
13196 if we could tell there's a GDB breakpoint at stop_pc.
13197 (need_step_over_p): Don't do a step over if we find a GDB
13198 breakpoint at the resume PC.
13200 * mem-break.c (struct raw_breakpoint): New.
13201 (enum bkpt_type): New type `gdb_breakpoint'.
13202 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
13203 fields. New field `raw'.
13204 (find_raw_breakpoint_at): New.
13205 (set_raw_breakpoint_at): Handle refcounting. Create a raw
13206 breakpoint instead.
13207 (set_breakpoint_at): Adjust.
13208 (delete_raw_breakpoint): New.
13209 (release_breakpoint): New.
13210 (delete_breakpoint): Rename to...
13211 (delete_breakpoint_1): ... this. Add proc parameter. Use
13212 release_breakpoint. Return ENOENT.
13213 (delete_breakpoint): Reimplement.
13214 (find_breakpoint_at): Delete.
13215 (find_gdb_breakpoint_at): New.
13216 (delete_breakpoint_at): Delete.
13217 (set_gdb_breakpoint_at): New.
13218 (delete_gdb_breakpoint_at): New.
13219 (gdb_breakpoint_here): New.
13220 (set_reinsert_breakpoint): Use release_breakpoint.
13221 (uninsert_breakpoint): Rename to ...
13222 (uninsert_raw_breakpoint): ... this.
13223 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
13224 (reinsert_raw_breakpoint): Change parameter type to
13226 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
13228 (check_breakpoints): Adjust. Use release_breakpoint.
13229 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
13230 (breakpoint_inserted_here): Ditto.
13231 (check_mem_read): Adjust to iterate over raw breakpoints instead.
13232 Don't trust the breakpoint's shadow if it is not inserted.
13233 (check_mem_write): Adjust to iterate over raw breakpoints instead.
13234 (delete_all_breakpoints): Adjust.
13235 (free_all_breakpoints): Mark all breakpoints as uninserted, and
13236 use delete_breakpoint_1.
13238 * mem-break.h (breakpoints_supported): Delete declaration.
13239 (set_gdb_breakpoint_at): Declare.
13240 (gdb_breakpoint_here): Declare.
13241 (delete_breakpoint_at): Delete.
13242 (delete_gdb_breakpoint_at): Declare.
13244 * server.h (struct raw_breakpoint): Forward declare.
13245 (struct process_info): New field `raw_breakpoints'.
13247 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
13250 2010-03-24 Pedro Alves <pedro@codesourcery.com>
13252 * linux-low.c (status_pending_p_callback): Fix comment.
13253 (linux_wait_for_event_1): Move most of the internal breakpoint
13254 handling from here...
13255 (linux_wait_1): ... to here.
13256 (count_events_callback): New.
13257 (select_singlestep_lwp_callback): New.
13258 (select_event_lwp_callback): New.
13259 (cancel_breakpoints_callback): New.
13260 (select_event_lwp): New.
13261 (linux_wait_1): Simplify internal breakpoint handling. Give equal
13262 priority to all LWPs that have had events that should be reported
13263 to the client. Cancel breakpoints when about to reporting the
13264 event to the client, not while stopping lwps. No longer cancel
13265 finished single-steps here.
13266 (cancel_finished_single_step): Delete.
13267 (cancel_finished_single_steps): Delete.
13269 2010-03-24 Pedro Alves <pedro@codesourcery.com>
13271 * mem-break.c (enum bkpt_type): New.
13272 (struct breakpoint): New field `type'.
13273 (set_breakpoint_at): Change return type to struct breakpoint
13274 pointer. Set type to `other_breakpoint' by default.
13275 (delete_breakpoint): Rewrite, supporting more than one breakpoint
13276 in the breakpoint list.
13277 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
13278 (reinsert_breakpoint): Rename to ...
13279 (reinsert_raw_breakpoint): ... this.
13280 (reinsert_breakpoints_at): Adjust.
13281 * mem-break.h (struct breakpoint): Declare.
13282 (set_breakpoint_at): Change return type to struct breakpoint
13285 2010-03-24 Pedro Alves <pedro@codesourcery.com>
13287 * server.c (handle_query): Assign, not compare.
13289 2010-03-24 Pedro Alves <pedro@codesourcery.com>
13291 Teach linux gdbserver to step-over-breakpoints.
13293 * linux-low.c (can_hardware_single_step): New.
13294 (supports_breakpoints): New.
13295 (handle_extended_wait): If stopping threads, read the stop pc of
13296 the new cloned LWP.
13298 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
13299 low target doesn't support retrieving the PC.
13300 (add_lwp): Set last_resume_kind to resume_continue.
13301 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
13302 (linux_attach): Don't clear stop_expected. Set the lwp's
13303 last_resume_kind to resume_stop.
13304 (linux_detach_one_lwp): Don't check for removed breakpoints.
13305 (check_removed_breakpoint): Delete.
13306 (status_pending_p): Rename to ...
13307 (status_pending_p_callback): ... this. Don't check for removed
13308 breakpoints. Don't consider threads that are stopped from GDB's
13310 (linux_wait_for_lwp): Always read the stop_pc here.
13311 (cancel_breakpoint): New.
13312 (step_over_bkpt): New global.
13313 (linux_wait_for_event_1): Implement stepping over breakpoints.
13314 (gdb_wants_lwp_stopped): New.
13315 (gdb_wants_all_stopped): New.
13316 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
13317 single-step traps here. Store the thread's last reported target
13319 (send_sigstop): Don't clear stop_expected. Always set it,
13321 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
13322 (cancel_finished_single_step): New.
13323 (cancel_finished_single_steps): New.
13324 (wait_for_sigstop): Don't cancel finished single-step traps here.
13325 (linux_resume_one_lwp): Don't check for removed breakpoints.
13326 Don't set `step' on non-hardware step archs.
13327 (linux_set_resume_request): Ignore resume_stop requests if already
13328 stopping or stopped. Set the lwp's last_resume_kind.
13329 (resume_status_pending_p): Don't check for removed breakpoints.
13330 (need_step_over_p): New.
13331 (start_step_over): New.
13332 (finish_step_over): New.
13333 (linux_resume_one_thread): Always queue a sigstop for resume_stop
13334 requests. Clear the thread's last reported target waitstatus.
13335 Don't use the `suspended' flag. Don't consider pending breakpoints.
13336 (linux_resume): Start a step-over if necessary.
13337 (proceed_one_lwp): New.
13338 (proceed_all_lwps): New.
13339 (unstop_all_lwps): New.
13340 * linux-low.h (struct lwp_info): Rewrite comment for the
13341 `suspended' flag. Add the `stop_pc' field. Delete the
13342 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
13343 Add `'last_resume_kind' and `need_step_over' fields.
13344 * inferiors.c (struct thread_info): Delete, moved elsewhere.
13345 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
13346 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
13347 (set_raw_breakpoint_at): New.
13348 (set_breakpoint_at): Rewrite to use it.
13349 (reinsert_breakpoint_handler): Delete.
13350 (set_reinsert_breakpoint): New.
13351 (reinsert_breakpoint_by_bp): Delete.
13352 (delete_reinsert_breakpoints): New.
13353 (uninsert_breakpoint): Rewrite.
13354 (uninsert_breakpoints_at): New.
13355 (reinsert_breakpoint): Rewrite.
13356 (reinsert_breakpoints_at): New.
13357 (check_breakpoints): Rewrite.
13358 (breakpoint_here): New.
13359 (breakpoint_inserted_here): New.
13360 (check_mem_read): Adjust.
13361 * mem-break.h (breakpoints_supported, breakpoint_here)
13362 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
13363 (reinsert_breakpoint_by_bp): Delete declaration.
13364 (delete_reinsert_breakpoints): Declare.
13365 (reinsert_breakpoint): Delete declaration.
13366 (reinsert_breakpoints_at): Declare.
13367 (uninsert_breakpoint): Delete declaration.
13368 (uninsert_breakpoints_at): Declare.
13369 (check_breakpoints): Adjust prototype.
13370 * server.h: Adjust include order.
13371 (struct thread_info): Declare here. Add a `last_status' field.
13373 2010-03-23 Michael Snyder <msnyder@vmware.com>
13375 * server.c (crc32): New function.
13376 (handle_query): Add handling for 'qCRC:' request.
13378 2010-03-23 Pedro Alves <pedro@codesourcery.com>
13380 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
13381 lwp had been stopped by a watchpoint.
13383 2010-03-16 Pedro Alves <pedro@codesourcery.com>
13385 * server.h (internal_error): Declare.
13386 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
13387 * utils.c (internal_error): New function.
13389 2010-03-15 Andreas Schwab <schwab@redhat.com>
13391 * configure.srv: Fix typo setting srv_regobj.
13393 2010-03-15 Pedro Alves <pedro@codesourcery.com>
13395 * linux-low.c (fetch_register): Avoid passing a non string literal
13397 (usr_store_inferior_registers): Ditto.
13399 2010-03-14 Pedro Alves <pedro@codesourcery.com>
13401 * linux-low.c (linux_write_memory): Bail out early if peeking
13404 2010-03-14 Pedro Alves <pedro@codesourcery.com>
13406 * linux-low.h (struct lwp_info): New fields
13407 `stopped_by_watchpoint' and `stopped_data_address'.
13408 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
13409 here, and cache them in the lwp object.
13410 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
13412 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
13414 (linux_stopped_by_watchpoint): Rewrite.
13415 (linux_stopped_data_address): Rewrite.
13417 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
13419 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
13420 switching the current inferior, not before.
13422 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
13424 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
13425 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
13426 i386-linux.c and amd64-linux.c.
13427 (reg-i386.o): Removed.
13428 (reg-i386.c): Likewise.
13429 (reg-i386-linux.o): Likewise.
13430 (reg-i386-linux.c): Likewise.
13431 (reg-x86-64.o): Likewise.
13432 (reg-x86-64.c): Likewise.
13433 (reg-x86-64-linux.o): Likewise.
13434 (reg-x86-64-linux.c): Likewise.
13436 (i386.c): Likewise.
13437 (i386-linux.o): Likewise.
13438 (i386-linux.c): Likewise.
13439 (amd64.o): Likewise.
13440 (amd64.c): Likewise.
13441 (amd64-linux.o): Likewise.
13442 (amd64-linux.c): Likewise.
13444 * configure.srv (srv_i386_regobj): New.
13445 (srv_i386_linux_regobj): Likewise.
13446 (srv_amd64_regobj): Likewise.
13447 (srv_amd64_linux_regobj): Likewise.
13448 (srv_i386_32bit_xmlfiles): Likewise.
13449 (srv_i386_64bit_xmlfiles): Likewise.
13450 (srv_i386_xmlfiles): Likewise.
13451 (srv_amd64_xmlfiles): Likewise.
13452 (srv_i386_linux_xmlfiles): Likewise.
13453 (srv_amd64_linux_xmlfiles): Likewise.
13454 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
13455 srv_xmlfiles to $srv_i386_xmlfiles.
13456 (i[34567]86-*-mingw32ce*): Likewise.
13457 (i[34567]86-*-mingw*): Likewise.
13458 (i[34567]86-*-nto*): Likewise.
13459 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
13460 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
13461 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
13462 (x86_64-*-linux*): Likewise.
13464 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
13465 (init_registers_amd64_linux): New.
13466 (x86_arch_setup): Replace init_registers_x86_64_linux with
13467 init_registers_amd64_linux.
13469 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
13471 * configure.ac: Check for libdl. If it is not available link against
13472 static libthread_db.
13473 * configure: Regenerate.
13475 2010-02-22 Pedro Alves <pedro@codesourcery.com>
13479 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
13480 handing a read watchpoint.
13481 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
13483 2010-02-12 Doug Evans <dje@google.com>
13485 * linux-low.c (linux_supports_tracefork_flag): Document.
13486 (linux_look_up_symbols): Add comment.
13488 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
13490 * regcache.c (supply_register): Clear regcache if buf is NULL.
13492 2010-02-02 Nicolas Roche <roche@sourceware.org>
13493 Joel Brobecker <brobecker@adacore.com>
13495 * inferiors.c (find_inferior): Add function documentation.
13496 (unloaded_dll): Handle the case where the unloaded dll has not
13497 been previously registered in the dll list.
13499 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
13501 * linux-arm-low.c (thumb_breakpoint_len): Delete.
13502 (thumb2_breakpoint): New.
13503 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
13505 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
13507 * linux-low.c (get_stop_pc): Check for SIGTRAP.
13508 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
13511 2010-01-21 Pedro Alves <pedro@codesourcery.com>
13513 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
13515 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13517 * linux-s390-low.c (s390_collect_ptrace_register)
13518 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
13520 2010-01-21 Doug Evans <dje@google.com>
13522 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
13523 (PTRACE_ARG4_TYPE): New macro.
13524 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
13525 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
13526 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
13527 (usr_store_inferior_registers): Ditto.
13528 (linux_read_memory, linux_write_memory): Ditto.
13529 (linux_test_for_tracefork): Ditto.
13531 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
13532 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
13534 2010-01-21 Pedro Alves <pedro@codesourcery.com>
13536 * proc-service.c (ps_lgetregs): Don't refetch registers from the
13539 2010-01-21 Pedro Alves <pedro@codesourcery.com>
13541 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
13542 prototype to take a regcache. Adjust.
13544 2010-01-20 Pedro Alves <pedro@codesourcery.com>
13546 * regcache.h (struct thread_info): Forward declare.
13547 (struct regcache): New.
13548 (new_register_cache): Adjust prototype.
13549 (get_thread_regcache): Declare.
13550 (free_register_cache): Adjust prototype.
13551 (registers_to_string, registers_from_string): Ditto.
13552 (supply_register, supply_register_by_name, collect_register)
13553 (collect_register_as_string, collect_register_by_name): Ditto.
13554 * regcache.c (struct inferior_regcache_data): Delete.
13555 (get_regcache): Rename to ...
13556 (get_thread_regcache): ... this. Adjust. Switch inferior before
13557 fetching registers.
13558 (regcache_invalidate_one): Adjust.
13559 (regcache_invalidate): Fix prototype.
13560 (new_register_cache): Return the new register cache.
13561 (free_register_cache): Change prototype.
13562 (realloc_register_cache): Adjust.
13563 (registers_to_string): Change prototype to take a regcache. Adjust.
13564 (registers_from_string): Ditto.
13565 (register_data): Ditto.
13566 (supply_register): Ditto.
13567 (supply_register_by_name): Ditto.
13568 (collect_register): Ditto.
13569 (collect_register_as_string): Ditto.
13570 (collect_register_by_name): Ditto.
13571 * server.c (process_serial_event): Adjust.
13572 * linux-low.h (regset_fill_func, regset_store_func): Change
13574 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
13576 * linux-low.c (get_stop_pc): Adjust.
13577 (check_removed_breakpoint): Adjust.
13578 (linux_wait_for_event): Adjust.
13579 (linux_resume_one_lwp): Adjust.
13580 (fetch_register): Add regcache parameter. Adjust.
13581 (usr_store_inferior_registers): Ditto.
13582 (regsets_fetch_inferior_registers): Ditto.
13583 (regsets_store_inferior_registers): Ditto.
13584 (linux_fetch_registers, linux_store_registers): Ditto.
13585 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
13587 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
13589 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
13590 prototype to take a regcache.
13591 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
13592 * remote-utils.c (convert_ascii_to_int, outreg)
13593 (prepare_resume_reply): Change prototype to take a regcache.
13595 * target.h (struct target_ops) <fetch_registers, store_registers>:
13596 Change prototype to take a regcache.
13597 (fetch_inferior_registers, store_inferior_registers): Change
13598 prototype to take a regcache. Adjust.
13599 * proc-service.c (ps_lgetregs): Adjust.
13600 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
13601 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
13602 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
13603 take a regcache. Adjust.
13604 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
13605 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
13606 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
13607 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
13608 * linux-cris-low.c (cris_get_pc, cris_set_pc)
13609 (cris_cannot_fetch_register):
13610 (cris_breakpoint_at): Change prototype to take a regcache.
13612 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
13613 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
13614 to take a regcache. Adjust.
13615 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
13617 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
13618 take a regcache. Adjust.
13619 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
13620 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
13621 (m68k_set_pc): Change prototype to take a regcache. Adjust.
13622 * linux-mips-low.c (mips_get_pc):
13623 (mips_set_pc): Change prototype to take a regcache. Adjust.
13624 (mips_reinsert_addr): Adjust.
13625 (mips_collect_register): Change prototype to take a regcache.
13627 (mips_supply_register):
13628 (mips_collect_register_32bit, mips_supply_register_32bit)
13629 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
13630 (mips_store_fpregset): Ditto.
13631 * linux-ppc-low.c (ppc_supply_ptrace_register)
13632 (ppc_supply_ptrace_register): Ditto.
13633 (parse_spufs_run): Adjust.
13634 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
13635 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
13636 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
13637 take a regcache. Adjust.
13638 * linux-s390-low.c (s390_collect_ptrace_register)
13639 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
13640 (s390_set_pc): Change prototype to take a regcache. Adjust.
13641 (s390_arch_setup): Adjust.
13642 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
13643 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
13644 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
13645 (sparc_fill_gregset, sparc_store_gregset_from_stack)
13646 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
13648 (sparc_breakpoint_at): Adjust.
13649 * linux-xtensa-low.c (xtensa_fill_gregset):
13650 (xtensa_store_gregset):
13651 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
13652 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
13653 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
13654 prototype to take a regcache. Adjust.
13655 * win32-arm-low.c (arm_fetch_inferior_register)
13656 (arm_store_inferior_register): Change prototype to take a
13658 * win32-i386-low.c (i386_fetch_inferior_register)
13659 (i386_store_inferior_register): Change prototype to take a
13661 * win32-low.c (child_fetch_inferior_registers)
13662 (child_store_inferior_registers): Change prototype to take a
13664 (win32_wait): Adjust.
13665 (win32_fetch_inferior_registers): Change prototype to take a
13667 (win32_store_inferior_registers): Adjust.
13668 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
13669 store_inferior_register>: Change prototype to take a regcache.
13671 2010-01-20 Doug Evans <dje@google.com>
13673 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
13675 (linux_wait_for_event1, linux_init_signals): Ditto.
13676 (W_STOPCODE): Provide definition if missing.
13678 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
13680 * linux-low.c (linux_core_of_thread): New.
13681 (compare_ints, show_process, list_threads): New.
13682 (linux_qxfer_osdata): Report threads and cores.
13683 (linux_target_op): Register linux_core_of_thread.
13684 * remote-utils.c (prepare_resume_reply): Report the core.
13685 (buffer_xml_printf): Support %d specifier.
13686 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
13688 (handle_query): Handle qXfer:threads. Announce availability
13690 * target.h (struct target_ops): New field core_of_thread.
13692 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
13694 * Makefile.in (clean): Remove new generated files.
13695 (reg-s390.o, reg-s390.c): Remove rules.
13696 (reg-s390x.o, reg-s390x.c): Likewise.
13697 (s390-linux32.o, s390-linux32.c): Add rules.
13698 (s390-linux64.o, s390-linux64.c): Likewise.
13699 (s390x-linux64.o, s390x-linux64.c): Likewise.
13700 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
13701 * linux-s390-low.c: Include <elf.h>.
13702 (HWCAP_S390_HIGH_GPRS): Define if undefined.
13703 (init_registers_s390): Remove prototype.
13704 (init_registers_s390x): Likewise.
13705 (init_registers_s390_linux32): Add prototype.
13706 (init_registers_s390_linux64): Likewise.
13707 (init_registers_s390x_linux64): Likewise.
13708 (s390_num_regs_3264): New define.
13709 (s390_regmap_3264): New global variable.
13710 (s390_cannot_fetch_register): Remove obsolete check.
13711 (s390_cannot_store_register): Likewise.
13712 (s390_collect_ptrace_register): Handle upper/lower register halves.
13713 (s390_supply_ptrace_register): Likewise.
13714 (s390_fill_gregset): Update to register number changes.
13715 (s390_get_hwcap): New routine.
13716 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
13717 Install appropriate regmap and register set.
13719 2010-01-01 Joel Brobecker <brobecker@adacore.com>
13721 * server.c (gdbserver_version): Update copyright year to 2010.
13722 * gdbreplay.c (gdbreplay_version): Likewise.
13724 2009-12-28 Doug Evans <dje@google.com>
13726 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
13727 elf/external.h. Include <elf.h> instead but only if necessary.
13729 2009-12-28 Pedro Alves <pedro@codesourcery.com>
13731 * linux-low.c (linux_remove_process): Remove `detaching'
13732 parameter. Don't release/detach from thread_db here.
13733 (linux_kill): Release/detach from thread_db here, ...
13734 (linux_detach): ... and here, before actually detaching.
13735 (linux_wait_1): ... and here, when a process exits.
13736 * thread-db.c (any_thread_of): New.
13737 (thread_db_free): Switch the current inferior to a thread of the
13740 2009-12-21 Doug Evans <dje@google.com>
13742 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
13744 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
13745 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
13746 warning ifndef __NR_tkill. Move setting of errno there too.
13747 Delete unnecessary resetting of errno after syscall.
13748 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
13750 * configure.ac: Check for dladdr.
13751 * config.in: Regenerate.
13752 * configure: Regenerate.
13753 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
13754 (try_thread_db_load): Update.
13756 * linux-low.c (my_waitpid): Delete unnecessary prototype.
13758 2009-12-18 Doug Evans <dje@google.com>
13760 * event-loop.c: Include unistd.h if it exists.
13762 * linux-low.c (my_waitpid): Move definition away from being in
13763 between linux_tracefork_child/linux_test_for_tracefork.
13765 * gdb_proc_service.h (psaddr_t): Fix type.
13766 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
13767 signature to match glibc.
13769 2009-12-16 Doug Evans <dje@google.com>
13771 * linux-low.c (linux_read_memory): Fix argument to read.
13773 2009-11-26 Pedro Alves <pedro@codesourcery.com>
13775 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
13776 events, don't leave current_inferior pointing at null.
13778 2009-11-26 Pedro Alves <pedro@codesourcery.com>
13780 * win32-low.c (LOG): Delete.
13781 (OUTMSG): Output to stderr.
13782 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
13783 on compile time LOG macro.
13784 (win32_wait): Fix debug output.
13786 2009-11-26 Pedro Alves <pedro@codesourcery.com>
13788 * win32-low.c (win32_add_one_solib): If the dll name is
13789 "ntdll.dll", prepend the system directory to the dll path.
13791 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
13793 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
13795 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
13796 Vladimir Prus <vladimir@codesourcery.com>
13798 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
13799 * configure.ac: Check for __mcoldfire__ and set
13800 gdb_cv_m68k_is_coldfire.
13801 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
13802 reg-cf.o and reg-m68k.o.
13803 * configure: Regenerated.
13805 2009-11-16 Pedro Alves <pedro@codesourcery.com>
13807 * linux-low.c (linux_remove_process): Add `detaching' parameter.
13808 Pass it to thread_db_free.
13809 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
13810 proper `detaching' argument to linux_remove_process.
13811 * linux-low.h (thread_db_free): Add `detaching' parameter.
13812 * thread-db.c (thread_db_init): Pass false as `detaching' argument
13814 (thread_db_free): Add `detaching' parameter. Only
13815 call td_ta_clear_event if detaching from process.
13817 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
13819 * thread-db.c (thread_db_free): Fix typo.
13821 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
13824 * thread-db.c (thread_db_free): Call td_ta_clear_event.
13826 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
13828 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
13829 with an i686 compiler.
13830 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
13832 * configure: Rebuilt.
13834 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
13838 * server.c (handle_search_memory_1): Correct read_addr initialization
13839 in loop for searching subsequent chunks.
13841 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
13843 * configure.ac: New --with-libthread-db option.
13844 * thread-db.c: Allow direct dependence on libthread_db.
13845 (thread_db_free): Adjust.
13846 * config.in: Regenerate.
13847 * configure: Likewise.
13849 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
13852 * thread-db.c (attach_thread): New function.
13853 (maybe_attach_thread): Return success/failure.
13854 (find_new_threads_callback): Adjust.
13855 (thread_db_find_new_threads): Loop until no new threads.
13857 2009-10-13 Pedro Alves <pedro@codesourcery.com>
13859 * proc-service.c (ps_lgetregs): Formatting.
13861 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
13863 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
13864 * configure.ac: Adjust.
13865 * linux-low.h (struct process_info_private): Move members to struct
13867 (thread_db_free, thread_db_handle_monitor_command): New prototype.
13868 * linux-low.c (linux_remove_process): Adjust.
13869 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
13870 * server.c (handle_query): Move code ...
13871 (handle_monitor_command): ... here. New function.
13872 * target.h (struct target_ops): New member.
13873 * thread-db.c (struct thread_db): New.
13874 (libthread_db_search_path): New variable.
13875 (thread_db_create_event, thread_db_enable_reporting)
13876 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
13877 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
13878 (try_thread_db_load_1, dladdr_to_soname): New functions.
13879 (try_thread_db_load, thread_db_load_search): New functions.
13880 (thread_db_init): Search for libthread_db.
13881 (thread_db_free): New function.
13882 (thread_db_handle_monitor_command): Likewise.
13883 * config.in: Regenerate.
13884 * configure: Regenerate.
13886 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
13888 * spu-low.c (spu_kill): Wait for inferior to terminate.
13889 Call clear_inferiors.
13890 (spu_detach): Call clear_inferiors.
13892 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13894 * aclocal.m4: Regenerate.
13895 * config.in: Likewise.
13896 * configure: Likewise.
13898 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
13900 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
13901 (parse_spufs_run): New function.
13902 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
13903 (ppc_breakpoint_at): Handle SPU breakpoints.
13905 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
13907 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
13908 (SPUFS_MAGIC): Define.
13909 (spu_enumerate_spu_ids): New function.
13910 (linux_qxfer_spu): New function.
13911 (linux_target_ops): Install linux_qxfer_spu.
13913 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
13915 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
13916 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
13917 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
13918 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
13919 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
13920 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
13921 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
13922 (init_registers_powerpc_cell32l): Add prototype.
13923 (init_registers_powerpc_cell64l): Likewise.
13924 (ppc_arch_setup): Detect Cell/B.E. architecture.
13926 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13928 * Makefile.in (datarootdir): New variable.
13930 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
13932 * linux-low.c (linux_write_memory): Update debugging output.
13933 * Makefile.in (clean): Add new descriptions.
13934 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
13935 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
13936 * configure.srv: Add new files for arm*-*-linux*.
13937 * linux-arm-low.c: Add new declarations.
13938 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
13939 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
13940 (HWCAP_VFPv3D16): New.
13941 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
13942 instead of __IWMMXT__.
13943 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
13944 (arm_arch_setup): New.
13945 (target_regsets): Remove #ifdef. Add VFP regset.
13946 (the_low_target): Use arm_arch_setup.
13948 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
13950 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
13951 the main thread again.
13953 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
13955 Adding Neutrino gdbserver.
13956 * configure: Regenerated.
13957 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
13958 * configure.srv (i[34567]86-*-nto*): New target.
13959 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
13960 * remote-utils.c [__QNX__]: Include sys/iomgr.h
13961 (nto_comctrl) [__QNX__]: New function.
13962 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
13964 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
13966 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
13969 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
13970 Pedro Alves <pedro@codesourcery.com>
13972 * win32-i386-low.c (i386_get_thread_context): Handle systems that
13973 don't support CONTEXT_EXTENDED_REGISTERS.
13974 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
13975 (the_low_target): Install them.
13976 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
13977 failing with ERROR_PIPE_NOT_CONNECTED.
13979 2009-06-30 Doug Evans <dje@google.com>
13980 Pierre Muller <muller@ics.u-strasbg.fr>
13982 Add h/w watchpoint support to x86-linux, win32-i386.
13983 * Makefile.in (SFILES): Add i386-low.c
13984 (i386_low_h): Define.
13985 (i386-low.o): Add dependencies.
13986 (linux-x86-low.o): Add i386-low.h dependency.
13987 (win32-i386-low.o): Ditto.
13988 * i386-low.c: New file.
13989 * i386-low.h: New file.
13990 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
13991 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
13992 * linux-low.c (linux_add_process): Initialize arch_private.
13993 (linux_remove_process): Free arch_private.
13994 (add_lwp): Initialize arch_private.
13995 (delete_lwp): Free arch_private.
13996 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
13998 * linux-low.h (process_info_private): New member arch_private.
13999 (lwp_info): New member arch_private.
14000 (linux_target_ops): New members new_process, new_thread,
14002 (ptid_of): New macro.
14003 * linux-x86-low.c: Include stddef.h, i386-low.h.
14004 (arch_process_info): New struct.
14005 (arch_lwp_info): New struct.
14006 (x86_linux_dr_get, x86_linux_dr_set): New functions.
14007 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
14008 (i386_dr_low_get_status): New function.
14009 (x86_insert_point, x86_remove_point): New functions.
14010 (x86_stopped_by_watchpoint): New function.
14011 (x86_stopped_data_address): New function.
14012 (x86_linux_new_process, x86_linux_new_thread): New functions.
14013 (x86_linux_prepare_to_resume): New function.
14014 (the_low_target): Add entries for insert_point, remove_point,
14015 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
14017 * server.c (debug_hw_points): New global.
14018 (monitor_show_help): Document set debug-hw-points.
14019 (handle_query): Process "set debug-hw-points".
14020 * server.h (debug_hw_points): Declare.
14021 (paddress): Declare.
14022 * utils.c (NUMCELLS, CELLSIZE): New macros.
14023 (get_sell, xsnprintf, paddress): New functions.
14024 * win32-arm-low.c (the_low_target): Add entries for insert_point,
14025 remove_point, stopped_by_watchpoint, stopped_data_address.
14026 * win32-i386-low.c: Include i386-low.h.
14027 (debug_reg_state): Replaces dr.
14028 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
14029 (i386_dr_low_get_status): New function.
14030 (i386_insert_point, i386_remove_point): New functions.
14031 (i386_stopped_by_watchpoint): New function.
14032 (i386_stopped_data_address): New function.
14033 (i386_initial_stuff): Update.
14034 (get_thread_context,set_thread_context,i386_thread_added): Update.
14035 (the_low_target): Add entries for insert_point,
14036 remove_point, stopped_by_watchpoint, stopped_data_address.
14037 * win32-low.c (win32_insert_watchpoint): New function.
14038 (win32_remove_watchpoint): New function.
14039 (win32_stopped_by_watchpoint): New function.
14040 (win32_stopped_data_address): New function.
14041 (win32_target_ops): Add entries for insert_watchpoint,
14042 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
14043 * win32-low.h (win32_target_ops): New members insert_point,
14044 remove_point, stopped_by_watchpoint, stopped_data_address.
14046 2009-06-25 Pedro Alves <pedro@codesourcery.com>
14048 * server.c (process_serial_event): Re-return unsupported, not
14049 error, if the type isn't recognized. Re-allow supporting only
14050 insert or remove packets. Also call require_running for
14051 breakpoints. Add missing break statement to default case. Tidy.
14052 * target.h (struct target_ops): Rename insert_watchpoint to
14053 insert_point, and remove_watchpoint to remove_point.
14055 * linux-low.h (struct linux_target_ops): Likewise.
14056 * linux-low.c (linux_insert_watchpoint): Rename to ...
14057 (linux_insert_point): ... this. Adjust.
14058 (linux_remove_watchpoint): Rename to ...
14059 (linux_remove_point): ... this. Adjust.
14060 (linux_target_ops): Adjust.
14061 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
14062 (cris_insert_point): ... this.
14063 (cris_remove_watchpoint): Rename to ...
14064 (cris_remove_point): ... this.
14065 (the_low_target): Adjust.
14067 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
14069 * server.c (handle_v_kill): Pass signal_pid to
14070 kill_inferior if multi_process is zero.
14072 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
14074 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
14075 * target.h (target_ops): Comment for *_watchpoint to make it clear
14076 the functions can get types '0' and '1'.
14078 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
14080 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
14081 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
14082 * regcache.c (get_regcache): Likewise.
14083 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
14084 * win32-low.c (child_fetch_inferior_registers): Remove check for
14087 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
14088 Pedro Alves <pedro@codesourcery.com>
14090 * target.h (struct target_ops) <supports_multi_process>: New
14092 (target_supports_multi_process): New.
14093 * server.c (handle_query): Even if GDB reports support, only
14094 enable multi-process if the target also supports it. Report
14095 multi-process support only if the target backend supports it.
14096 * linux-low.c (linux_supports_multi_process): New function.
14097 (linux_target_ops): Install it as target_supports_multi_process
14100 2009-05-24 Doug Evans <dje@google.com>
14102 Global renaming of find_thread_pid to find_thread_ptid.
14103 * server.h (find_thread_ptid): Renamed from find_thread_pid.
14104 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
14105 All callers updated.
14107 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
14108 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
14111 * linux-low.c (get_stop_pc): Print pc if debug_threads.
14112 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
14113 (linux_resume_one_lwp): Ditto.
14115 2009-05-23 Doug Evans <dje@google.com>
14117 * linux-low.c (linux_resume_one_lwp): Change type of first arg
14118 from struct inferior_list_entry * to struct lwp_info *.
14119 All callers updated.
14121 2009-05-13 Doug Evans <dje@google.com>
14123 * linux-x86-low.c: Don't include assert.h.
14124 (x86_siginfo_fixup): Use fatal, not assert.
14125 (x86_arch_setup): Fix comment.
14127 2009-05-12 Doug Evans <dje@google.com>
14129 Biarch support for i386/amd64 gdbserver.
14130 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
14131 Add linux-x86-low.c.
14132 (linux-i386-low.o, linux-x86-64-low.o): Delete.
14133 (linux-x86-low.o): Add.
14134 * linux-x86-64-low.c: Delete.
14135 * linux-i386-low.c: Delete.
14136 * linux-x86-low.c: New file.
14137 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
14139 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
14141 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
14142 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
14143 (linux_child_pid_to_exec_file): New function.
14144 (elf_64_header_p, elf_64_file_p): New functions.
14145 (siginfo_fixup): New function.
14146 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
14147 give target a chance to convert layout.
14148 * linux-low.h (linux_target_ops): New member siginfo_fixup.
14149 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
14151 2009-05-07 Doug Evans <dje@google.com>
14153 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
14154 (regsets_store_inferior_registers): Ditto.
14156 2009-05-06 Pedro Alves <pedro@codesourcery.com>
14160 * linux-low.c (must_set_ptrace_flags): Delete.
14161 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
14163 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
14164 `lwp->must_set_ptrace_flags' instead.
14165 (linux_wait_for_event_1): Set ptrace options here.
14166 (linux_wait_1): ... not here.
14168 2009-04-30 Doug Evans <dje@google.com>
14170 * inferiors.c (started_inferior_callback): New function.
14171 (attached_inferior_callback): New function.
14172 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
14173 * server.c (print_started_pid, print_attached_pid): New functions.
14174 (detach_or_kill_for_exit): New function.
14175 (main): Call it instead of for_each_inferior (kill_inferior_callback).
14176 * server.h (have_started_inferiors_p): Declare.
14177 (have_attached_inferiors_p): Declare.
14179 * inferiors.c (remove_process): Fix memory leak, free process.
14180 * linux-low.c (linux_remove_process): New function.
14181 (linux_kill): Call it instead of remove_process.
14182 (linux_detach, linux_wait_1): Ditto.
14184 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
14186 * configure.srv: Add x86 Windows CE target.
14188 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
14190 * inferiors.c (get_thread_process): Make global.
14191 * server.h (get_thread_process): Add prototype.
14192 * thread-db.c (find_one_thread): Use get_thread_process
14193 instead of current_process.
14194 (thread_db_get_tls_address): Do not crash if called when
14195 thread layer is not yet initialized.
14197 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
14199 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
14200 * spu-low.c (current_tid): Rename to ...
14201 (current_ptid): ... this.
14202 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
14203 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
14204 ptid_get_lwp (current_ptid) instead of current_tid.
14205 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
14206 instead of current_tid. Use find_process_pid to verify pid
14207 argument is valid. Pass proper argument to remove_process.
14208 (spu_thread_alive): Compare current_ptid instead of current_tid.
14209 (spu_resume): Likewise.
14211 2009-04-02 Pedro Alves <pedro@codesourcery.com>
14213 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
14216 2009-04-01 Pedro Alves <pedro@codesourcery.com>
14218 Implement the multiprocess extensions, and add linux multiprocess
14221 * server.h (ULONGEST): Declare.
14222 (struct ptid, ptid_t): New.
14223 (minus_one_ptid, null_ptid): Declare.
14224 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
14225 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
14226 (struct inferior_list_entry): Change `id' type from unsigned from
14228 (struct sym_cache, struct breakpoint, struct
14229 process_info_private): Forward declare.
14230 (struct process_info): Declare.
14231 (current_process): Declare.
14232 (all_processes): Declare.
14233 (initialize_inferiors): Declare.
14234 (add_thread): Adjust to use ptid_t.
14235 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
14236 (add_process, remove_process, find_thread_pid): Declare.
14237 (find_inferior_id): Adjust to use ptid_t.
14238 (cont_thread, general_thread, step_thread): Change type to ptid_t.
14239 (multi_process): Declare.
14240 (push_event): Adjust to use ptid_t.
14241 (read_ptid, write_ptid): Declare.
14242 (prepare_resume_reply): Adjust to use ptid_t.
14243 (clear_symbol_cache): Declare.
14244 * inferiors.c (all_processes): New.
14245 (null_ptid, minus_one_ptid): New.
14246 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
14247 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
14248 (add_thread): Change unsigned long to ptid. Remove gdb_id
14250 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
14251 (gdb_id_to_thread): Rename to ...
14252 (find_thread_pid): ... this. Change unsigned long to ptid.
14253 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
14254 (loaded_dll, pull_pid_from_list): Adjust.
14255 (add_process, remove_process, find_process_pid)
14256 (get_thread_process, current_process, initialize_inferiors): New.
14257 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
14258 (struct target_waitstatus) <related_pid>: Ditto.
14259 (struct target_ops) <kill, detach>: Add `pid' argument. Change
14260 return type to int.
14261 (struct target_ops) <join>: Add `pid' argument.
14262 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
14263 (struct target_ops) <wait>: Add `ptid' field. Change return type
14265 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
14266 (mywait): Add `ptid' argument. Change return type to ptid_t.
14267 (target_pid_to_str): Declare.
14268 * target.c (set_desired_inferior): Adjust to use ptids.
14269 (mywait): Add new `ptid' argument. Adjust.
14270 (target_pid_to_str): New.
14271 * mem-break.h (free_all_breakpoints): Declare.
14272 * mem-break.c (breakpoints): Delelete.
14273 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
14274 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
14275 to use per-process breakpoint list.
14276 (free_all_breakpoints): New.
14277 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
14278 (symbol_cache, all_symbols_looked_up): Delete.
14280 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
14282 (prepare_resume_reply): Change ptid argument's type from unsigned
14283 long to ptid_t. Adjust. Implement W;process and X;process.
14284 (free_sym_cache, clear_symbol_cache): New.
14285 (look_up_one_symbol): Adjust to per-process symbol cache. *
14286 * server.c (cont_thread, general_thread, step_thread): Change type
14288 (attached): Delete.
14289 (multi_process): New.
14290 (last_ptid): Change type to ptid_t.
14291 (struct vstop_notif) <ptid>: Change type to ptid_t.
14292 (queue_stop_reply, push_event): Change `ptid' argument's type to
14294 (discard_queued_stop_replies): Add `pid' argument.
14295 (start_inferior): Adjust to use ptids. Adjust to mywait interface
14296 changes. Don't reference the `attached' global.
14297 (attach_inferior): Adjust to mywait interface changes.
14298 (handle_query): Adjust to use ptids. Parse GDB's qSupported
14299 features. Handle and report "multiprocess+". Handle
14301 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
14303 (handle_v_kill): New.
14304 (handle_v_stopped): Adjust to use target_pid_to_str.
14305 (handle_v_requests): Allow multiple attaches and runs when
14306 multiprocess extensions are in effect. Handle "vKill".
14307 (myresume): Adjust to use ptids.
14308 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
14309 (handle_status): Adjust to discard_queued_stop_replies interface
14311 (first_thread_of, kill_inferior_callback)
14312 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
14313 (main): Call initialize_inferiors. Adjust to use ptids, killing
14314 and detaching from all inferiors. Handle multiprocess packet
14316 * linux-low.h: Include gdb_proc_service.h.
14317 (struct process_info_private): New.
14318 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
14319 <lwpid_of>: Use ptid_get_lwp.
14320 (get_lwp_thread): Adjust.
14321 (struct lwp_info): Add `dead' member.
14322 (find_lwp_pid): Declare.
14323 * linux-low.c (thread_db_active): Delete.
14324 (new_inferior): Adjust comment.
14325 (inferior_pid): Delete.
14326 (linux_add_process): New.
14327 (handle_extended_wait): Adjust.
14328 (add_lwp): Change unsigned long to ptid.
14329 (linux_create_inferior): Add process to processes table. Adjust
14330 to use ptids. Don't set new_inferior here.
14331 (linux_attach_lwp): Rename to ...
14332 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
14333 it. Adjust to use ptids.
14334 (linux_attach_lwp): New.
14335 (linux_attach): Add process to processes table. Don't set
14337 (struct counter): New.
14338 (second_thread_of_pid_p, last_thread_of_process_p): New.
14339 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
14340 multiple processes.
14341 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
14342 processes. Remove process from process table.
14343 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
14344 to multiple processes.
14345 (any_thread_of): New.
14346 (linux_detach): Add `pid' argument, and handle it. Remove process
14347 from processes table.
14348 (linux_join): Add `pid' argument. Handle it.
14349 (linux_thread_alive): Change unsighed long argument to ptid_t.
14350 Consider dead lwps as not being alive.
14351 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
14352 threads we're not interested in.
14353 (same_lwp, find_lwp_pid): New.
14354 (linux_wait_for_lwp): Change `pid' argument's type from int to
14356 (linux_wait_for_event): Rename to ...
14357 (linux_wait_for_event_1): ... this. Change `pid' argument's type
14358 from int to ptid_t. Adjust.
14359 (linux_wait_for_event): New.
14360 (linux_wait_1): Add `ptid' argument. Change return type to
14361 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
14362 that exit from the process table.
14363 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
14365 (mark_lwp_dead): New.
14366 (wait_for_sigstop): Adjust to use ptids. If a process exits while
14367 stopping all threads, mark its main lwp as dead.
14368 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
14370 (fetch_register, usr_store_inferior_registers)
14371 (regsets_fetch_inferior_registers)
14372 (regsets_store_inferior_registers, linux_read_memory)
14373 (linux_write_memory): Inline `inferior_pid'.
14374 (linux_look_up_symbols): Adjust to use per-process
14375 `thread_db_active'.
14376 (linux_request_interrupt): Adjust to use ptids.
14377 (linux_read_auxv): Inline `inferior_pid'.
14378 (initialize_low): Don't reference thread_db_active.
14379 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
14380 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
14381 (ps_getpid): Return the pid of the current inferior.
14382 * thread-db.c (proc_handle, thread_agent): Delete.
14383 (thread_db_create_event, thread_db_enable_reporting): Adjust to
14385 (find_one_thread): Change argument type to ptid_t. Adjust to
14387 (maybe_attach_thread): Adjust to per-process data and ptids.
14388 (thread_db_find_new_threads): Ditto.
14389 (thread_db_init): Ditto.
14390 * spu-low.c (spu_create_inferior, spu_attach): Add process to
14391 processes table. Adjust to use ptids.
14392 (spu_kill, spu_detach): Adjust interface. Remove process from
14394 (spu_join, spu_thread_alive): Adjust interface.
14395 (spu_wait): Adjust interface. Remove process from processes
14396 table. Adjust to use ptids.
14397 * win32-low.c (current_inferior_tid): Delete.
14398 (current_inferior_ptid): New.
14399 (debug_event_ptid): New.
14400 (thread_rec): Take a ptid. Adjust.
14401 (child_add_thread): Add `pid' argument. Adjust to use ptids.
14402 (child_delete_thread): Ditto.
14403 (do_initial_child_stuff): Add `attached' argument. Add process to
14405 (child_fetch_inferior_registers, child_store_inferior_registers):
14407 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
14408 (win32_attach): Pass 1 to do_initial_child_stuff.
14409 (win32_kill): Adjust interface. Remove process from processes
14411 (win32_detach): Ditto.
14412 (win32_join): Adjust interface.
14413 (win32_thread_alive): Take a ptid.
14414 (win32_resume): Adjust to use ptids.
14415 (get_child_debug_event): Ditto.
14416 (win32_wait): Adjust interface. Remove exiting process from
14419 2009-04-01 Pedro Alves <pedro@codesourcery.com>
14421 Non-stop mode support.
14423 * server.h (non_stop): Declare.
14424 (gdb_client_data, handler_func): Declare.
14425 (delete_file_handler, add_file_handler, start_event_loop):
14427 (handle_serial_event, handle_target_event, push_event)
14428 (putpkt_notif): Declare.
14429 * target.h (enum resume_kind): New.
14430 (struct thread_resume): Replace `step' field by `kind' field.
14431 (TARGET_WNOHANG): Define.
14432 (struct target_ops) <wait>: Add `options' argument.
14433 <supports_non_stop, async, start_non_stop>: New fields.
14434 (target_supports_non_stop, target_async): New.
14435 (start_non_stop): Declare.
14436 (mywait): Add `options' argument.
14437 * target.c (mywait): Add `options' argument. Print child exit
14438 notifications here.
14439 (start_non_stop): New.
14440 * server.c (non_stop, own_buf, mem_buf): New globals.
14441 (struct vstop_notif): New.
14442 (notif_queue): New global.
14443 (queue_stop_reply, push_event, discard_queued_stop_replies)
14444 (send_next_stop_reply): New.
14445 (start_inferior): Adjust to use resume_kind. Adjust to mywait
14447 (attach_inferior): In non-stop mode, don't wait for the target
14449 (handle_general_set): Handle QNonStop.
14450 (handle_query): When handling qC, return the current general
14451 thread, instead of the first thread of the list.
14452 (handle_query): If the backend supports non-stop mode, include
14453 QNonStop+ in the qSupported query response.
14454 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
14456 (handle_v_attach, handle_v_run): Handle non-stop mode.
14457 (handle_v_stopped): New.
14458 (handle_v_requests): Report support for vCont;t. Handle vStopped.
14459 (myresume): Adjust to use resume_kind. Handle non-stop.
14460 (queue_stop_reply_callback): New.
14461 (handle_status): Handle non-stop mode.
14462 (main): Clear non_stop flag on reconnection. Use the event-loop.
14463 Refactor serial protocol handling from here ...
14464 (process_serial_event): ... to this new function. When GDB
14465 selects any thread, select one here. In non-stop mode, wait until
14466 GDB acks all pending events before exiting.
14467 (handle_serial_event, handle_target_event): New.
14468 * remote-utils.c (remote_open): Install remote_desc in the event
14470 (remote_close): Remove remote_desc from the event loop.
14471 (putpkt_binary): Rename to...
14472 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
14473 (putpkt_binary): New as wrapper around putpkt_binary_1.
14474 (putpkt_notif): New.
14475 (prepare_resume_reply): In non-stop mode, don't change the
14477 * event-loop.c: New.
14478 * Makefile.in (OBJ): Add event-loop.o.
14479 (event-loop.o): New rule.
14481 * linux-low.h (pid_of): Moved here.
14483 (get_lwp_thread): Use lwpid_of.
14484 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
14485 * linux-low.c (pid_of): Delete.
14486 (inferior_pid): Use lwpid_of.
14487 (linux_event_pipe): New.
14488 (target_is_async_p): New.
14490 (handle_extended_wait): Use lwpid_of.
14491 (add_lwp): Don't set lwpid field.
14492 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
14493 (linux_kill_one_lwp): If killing a running lwp, stop it first.
14494 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
14495 (linux_detach_one_lwp): If detaching from a running lwp, stop it
14496 first. Adjust to linux_wait_for_event interface changes. Use
14498 (linux_detach): Don't delete the main lwp here.
14499 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
14500 (status_pending_p): Don't consider explicitly suspended lwps.
14501 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
14502 pointer. Add OPTIONS argument. Change return type to int. Use
14503 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
14504 (linux_wait_for_event): Take an integer pid instead of a lwp_info
14505 pointer. Add status pointer argument. Return a pid instead of a
14506 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
14507 changes. In non-stop mode, don't switch to a random thread.
14508 (linux_wait): Rename to...
14509 (linux_wait_1): ... this. Add target_options argument, and handle
14510 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
14511 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
14512 clean exit and signal exit code. Don't stop all threads in
14513 non-stop mode. In all-stop mode, only stop all threads when
14514 reporting a stop to GDB. Handle explicit thread stop requests.
14515 (async_file_flush, async_file_mark): New.
14517 (send_sigstop): Use lwpid_of.
14518 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
14519 interface changes. In non-stop mode, don't switch to a random
14521 (linux_resume_one_lwp): Use lwpid_of.
14522 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
14523 (linux_resume_one_thread): ... this. Handle resume_stop. In
14524 non-stop mode, don't look for pending flag in all threads.
14525 (resume_status_pending_p): Don't consider explicitly suspended
14527 (my_waitpid): Reimplement. Emulate __WALL.
14528 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
14530 (sigchld_handler, linux_supports_non_stop, linux_async)
14531 (linux_start_non_stop): New.
14532 (linux_target_ops): Register linux_supports_non_stop, linux_async
14533 and linux_start_non_stop.
14534 (initialize_low): Install SIGCHLD handler.
14535 * thread-db.c (thread_db_create_event, find_one_thread)
14536 (thread_db_get_tls_address): Use lwpid_of.
14537 * win32-low.c (win32_detach): Adjust to use resume_kind.
14538 (win32_wait): Add `options' argument.
14539 * spu-low.c (spu_resume): Adjust to use resume_kind.
14540 (spu_wait): Add `options' argument.
14542 2009-04-01 Pedro Alves <pedro@codesourcery.com>
14544 Decouple target code from remote protocol.
14546 * target.h (enum target_waitkind): New.
14547 (struct target_waitstatus): New.
14548 (struct target_ops) <wait>: Return an unsigned long. Take a
14549 target_waitstatus pointer instead of a char pointer.
14550 (mywait): Likewise.
14551 * target.c (mywait): Change prototype to return an unsigned long.
14552 Take a target_waitstatus pointer instead of a char pointer. Adjust.
14553 * server.h (thread_from_wait, old_thread_from_wait): Delete
14555 (prepare_resume_reply): Change prototype to take a
14557 * server.c (thread_from_wait, old_thread_from_wait): Delete.
14558 (last_status, last_ptid): New.
14559 (start_inferior): Remove "statusptr" argument. Adjust. Return a
14560 pid instead of a signal.
14561 (attach_inferior): Remove "status" and "signal" parameters.
14563 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
14565 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
14566 (handle_v_requests, myresume): Remove "status" and "signal"
14567 parameters. Adjust.
14568 (handle_status): New.
14569 (main): Delete local `status'. Adjust.
14570 * remote-utils.c: Include target.h.
14571 (prepare_resume_reply): Change prototype to take a
14572 target_waitstatus. Adjust.
14574 * linux-low.c (linux_wait): Adjust to new target_ops->wait
14576 * spu-low.c (spu_wait): Adjust.
14577 * win32-low.c (enum target_waitkind, struct target_waitstatus):
14579 (win32_wait): Adjust.
14581 2009-04-01 Pedro Alves <pedro@codesourcery.com>
14583 * target.h (struct thread_resume): Delete leave_stopped member.
14584 (struct target_ops): Add a `n' argument to the `resume' callback.
14585 * server.c (start_inferior): Adjust.
14586 (handle_v_cont, myresume): Adjust.
14587 * linux-low.c (check_removed_breakpoint): Adjust to resume
14588 interface change, and to removed leave_stopped field.
14589 (resume_ptr): Delete.
14590 (struct thread_resume_array): New.
14591 (linux_set_resume_request): Add new `arg' parameter. Adjust to
14592 resume interface change.
14593 (linux_continue_one_thread, linux_queue_one_thread)
14594 (resume_status_pending_p): Check if the resume field is NULL
14595 instead of checking the leave_stopped member.
14596 (linux_resume): Adjust to the target resume interface change.
14597 * spu-low.c (spu_resume): Adjust to the target resume interface
14599 * win32-low.c (win32_detach, win32_resume): Ditto.
14601 2009-04-01 Pedro Alves <pedro@codesourcery.com>
14603 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
14605 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
14607 (linux_continue_one_thread): Only preserve the stepping flag if
14608 there's a pending breakpoint.
14610 2009-03-31 Pedro Alves <pedro@codesourcery.com>
14612 * server.c (main): After the inferior having exited, call
14613 remote_close before exiting gdbserver.
14615 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
14617 Fix size of FPSCR in Power 7 processors.
14618 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
14619 (PPC_FEATURE_HAS_DFP): New #define.
14620 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
14623 2009-03-23 Pedro Alves <pedro@codesourcery.com>
14625 * server.c (handle_query) Whitespace and formatting.
14627 2009-03-22 Pedro Alves <pedro@codesourcery.com>
14629 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
14630 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
14631 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
14632 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
14633 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
14634 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
14635 Makefile.in, configure.ac: Fix whitespace throughout.
14636 * configure: Regenerate.
14638 2009-03-22 Pedro Alves <pedro@codesourcery.com>
14640 * inferiors.c (find_inferior): Make it safe for the callback
14641 function to delete the currently iterated inferior.
14643 2009-03-22 Pedro Alves <pedro@codesourcery.com>
14645 * Makefile.in (linuw_low_h): Move higher.
14646 (thread-db.o): Depend on $(linux_low_h).
14648 2009-03-17 Pedro Alves <pedro@codesourcery.com>
14650 Rename "process" to "lwp" throughout.
14652 * linux-low.c (all_processes): Rename to...
14653 (all_lwps): ... this.
14654 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
14655 (add_process): Rename to ...
14656 (add_lwp): ... this. Adjust.
14657 (linux_create_inferior): Adjust.
14658 (linux_attach_lwp): Adjust.
14659 (linux_attach): Adjust.
14660 (linux_kill_one_process): Rename to ...
14661 (linux_kill_one_lwp): ... this. Adjust.
14662 (linux_kill): Adjust.
14663 (linux_detach_one_process): Rename to ...
14664 (linux_detach_one_lwp): ... this. Adjust.
14665 (linux_detach): Adjust.
14666 (check_removed_breakpoint): Adjust.
14667 (status_pending_p): Adjust.
14668 (linux_wait_for_process): Rename to ...
14669 (linux_wait_for_lwp): ... this. Adjust.
14670 (linux_wait_for_event): Adjust.
14671 (send_sigstop): Adjust.
14672 (wait_for_sigstop): Adjust.
14673 (stop_all_processes): Rename to ...
14674 (stop_all_lwps): ... this.
14675 (linux_resume_one_process): Rename to ...
14676 (linux_resume_one_lwp): ... this. Adjust.
14677 (linux_set_resume_request, linux_continue_one_thread)
14678 (linux_queue_one_thread, resume_status_pending_p)
14679 (usr_store_inferior_registers, regsets_store_inferior_registers)
14680 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
14682 * linux-low.h (get_process): Rename to ...
14683 (get_lwp): ... this. Adjust.
14684 (get_thread_process): Rename to ...
14685 (get_thread_lwp): ... this. Adjust.
14686 (get_process_thread): Rename to ...
14687 (get_lwp_thread): ... this. Adjust.
14688 (struct process_info): Rename to ...
14689 (struct lwp_info): ... this.
14690 (all_processes): Rename to ...
14691 (all_lwps): ... this.
14692 * proc-service.c (ps_lgetregs): Adjust.
14693 * thread-db.c (thread_db_create_event, find_one_thread)
14694 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
14696 2009-03-14 Pedro Alves <pedro@codesourcery.com>
14698 * server.c (handle_query): Handle "qAttached".
14700 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
14702 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
14703 GPLv3, update license URL.
14705 2009-03-01 Doug Evans <dje@google.com>
14707 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
14708 (server_h): Add gdb_signals.h.
14709 (signals.o): Update.
14710 * server.h (target_signal_from_host,target_signal_to_host_p)
14711 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
14713 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
14715 * remote-utils.c (getpkt): Also generate remote-debug
14716 information if noack_mode is set.
14718 2009-02-06 Pedro Alves <pedro@codesourcery.com>
14720 * server.c (handle_query): Report qXfer:siginfo:read and
14721 qXfer:siginfo:write as supported and handle them.
14722 * target.h (struct target_ops) <qxfer_siginfo>: New field.
14723 * linux-low.c (linux_xfer_siginfo): New.
14724 (linux_target_ops): Set it.
14726 2009-01-26 Pedro Alves <pedro@codesourcery.com>
14728 * server.c (gdbserver_usage): Mention --remote-debug.
14729 (main): Accept '--remote-debug' switch.
14731 2009-01-18 Doug Evans <dje@google.com>
14733 * regcache.c (new_register_cache): No need to check result of xcalloc.
14734 * server.c (handle_search_memory): Back out calls to xmalloc,
14735 result is checked and error is returned to user upon failure.
14736 (handle_query): Ditto. Add more checks for result of malloc.
14737 (handle_v_cont): Check result of malloc, report error back to
14739 (handle_v_run): Ditto. Call freeargv.
14740 * server.h (freeargv): Declare.
14741 * utils.c (freeargv): New fn.
14743 2009-01-15 Doug Evans <dje@google.com>
14745 * gdbreplay.c (perror_with_name): Make arg const char *.
14746 * server.h (target_signal_to_name): Make return type const char *.
14747 * thread-db.c (thread_db_err_str): Make return type const char *.
14748 * utils.c (perror_with_name): Make arg const char *.
14750 2009-01-14 Pedro Alves <pedro@codesourcery.com>
14752 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
14753 when handling a EXIT_PROCESS_DEBUG_EVENT.
14755 2009-01-06 Joel Brobecker <brobecker@adacore.com>
14757 * gdbreplay.c (gdbreplay_version): Update copyright year.
14758 * server.c (gdbserver_version): Likewise.
14760 2009-01-05 Doug Evans <dje@google.com>
14762 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
14763 (handle_extended_wait): Improve comment.
14765 2008-12-13 Doug Evans <dje@google.com>
14767 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
14768 * server.h (ATTR_MALLOC): New macro.
14769 (xmalloc,xcalloc,xstrdup): Declare.
14770 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
14771 * inferiors.c: Ditto.
14772 * linux-low.c: Ditto.
14773 * mem-break.c: Ditto.
14774 * regcache.c: Ditto.
14775 * remote-utils.c: Ditto.
14778 * win32-low.c: Ditto.
14780 2008-12-12 Doug Evans <dje@google.com>
14782 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
14783 in debugging printf.
14785 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
14787 2008-12-09 Doug Evans <dje@google.com>
14789 * linux-low.h (struct process_info): Delete member tid, unused.
14790 * thread-db.c (find_one_thread): Update.
14791 (maybe_attach_thread): Update.
14793 2008-12-02 Pedro Alves <pedro@codesourcery.com>
14795 * target.h (struct target_ops): Add qxfer_osdata member.
14796 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
14798 (linux_qxfer_osdata): New functions.
14799 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
14801 * server.c (handle_query): Handle "qXfer:osdata:read:".
14802 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
14803 (buffer_xml_printf): New functions.
14804 * server.h (struct buffer): New.
14805 (buffer_grow_str, buffer_grow_str0): New macros.
14806 (buffer_grow, buffer_free, buffer_init, buffer_finish)
14807 (buffer_xml_printf): Declare.
14809 2008-11-24 Doug Evans <dje@google.com>
14811 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
14813 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
14815 * server.c (handle_v_run): Always use the supplied argument list.
14817 2008-11-19 Bob Wilson <bob.wilson@acm.org>
14819 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
14820 (xtensa_regmap_table): Add entry for scompare1.
14822 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
14824 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
14825 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
14826 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
14827 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
14828 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
14829 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
14830 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
14831 XML target descriptions.
14832 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
14833 when inferior is running on an ISA 2.05 or later processor. Add
14834 special case to return offset for full 64-bit slot of FPSCR when
14837 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
14839 * Makefile.in (SFILES, clean): Added sparc64 files.
14840 (reg-sparc64.o, reg-sparc64.c): New.
14841 * configure.srv (sparc*-*-linux*): New configuration.
14842 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
14843 syscall arguments for SPARC.
14844 (regsets_store_inferior_registers): Likewise.
14845 * linux-sparc-low.c: New file.
14847 2008-10-21 Doug Evans <dje@google.com>
14849 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
14850 (READLINE_DIR,READLINE_DEP): Delete.
14851 (INTERNAL_CFLAGS): Update.
14852 (LINTFLAGS): Update.
14854 2008-10-10 Pedro Alves <pedro@codesourcery.com>
14856 * server.c (handle_v_run): If GDB didn't specify an argv, use the
14857 whole argv from the last run, not just argv[0].
14859 2008-09-08 Pedro Alves <pedro@codesourcery.com>
14861 * regcache.c (new_register_cache): Return NULL if the register
14862 cache size isn't known yet.
14863 (free_register_cache): Avoid dereferencing a NULL regcache.
14865 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
14867 * configure.srv: Merge MIPS and MIPS64.
14869 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
14871 * Makefile.in (uninstall): Apply $(EXEEXT) too.
14873 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
14875 * Makefile.in: Add required vsx dependencies.
14877 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
14878 Declare init_registers_powerpc_vsx32l.
14879 Declare init_registers_powerpc_vsx64l.
14880 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
14881 (ppc_arch_setup): Check for VSX in hwcap.
14882 (ppc_fill_vsxregset): New function.
14883 (ppc_store_vsxregset): New function.
14884 Add new VSX entry in regset_info target_regsets.
14886 * configure.srv: Add new VSX dependencies.
14888 2008-08-12 Pedro Alves <pedro@codesourcery.com>
14890 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
14891 (remote_open): Set or clear transport_is_reliable.
14892 (putpkt_binary): Don't expect acks in noack mode.
14893 (getpkt): Don't send ack/nac in noack mode.
14894 * server.c (handle_general_set): Handle QStartNoAckMode.
14895 (handle_query): If connected by tcp pass QStartNoAckMode+ in
14897 (main): Reset noack_mode on every connection.
14898 * server.h (noack_mode): Declare.
14900 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14902 * Makefile.in (GDBREPLAY_OBS): New variable.
14903 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
14905 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
14906 Daniel Jacobowitz <dan@codesourcery.com>
14908 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
14909 (usr_store_inferior_registers): Likewise.
14910 (regsets_store_inferior_registers): Likewise.
14912 2008-07-31 Rolf Jansen <rj@surtec.com>
14913 Pedro Alves <pedro@codesourcery.com>
14915 * configure.ac: Check for memmem declaration.
14916 * server.c [HAVE_MALLOC_H]: Include malloc.h.
14917 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
14918 (disable_packet_qfThreadInfo): Unconditionally compile.
14919 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
14920 * configure, config.in: Regenerate.
14922 2008-07-28 Doug Kwan <dougkwan@google.com>
14924 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
14925 (linux_write_memory): Remove declaration of errno.
14927 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
14929 * linux-low.c (handle_extended_wait): Do not use "status"
14930 variable uninitialized.
14932 2008-07-07 Pedro Alves <pedro@codesourcery.com>
14934 * server.c (handle_v_attach): Inhibit reporting dll changes.
14936 2008-06-27 Pedro Alves <pedro@codesourcery.com>
14938 * remote-utils.c (prepare_resume_reply): If requested, don't
14939 output "thread:TID" in the T stop reply.
14941 * server.c (disable_packet_vCont, disable_packet_Tthread)
14942 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
14943 (handle_query): If requested, disable support for qC, qfThreadInfo
14945 (handle_v_requests): If requested, disable support for vCont.
14946 (gdbserver_show_disableable): New.
14947 (main): Handle --disable-packet and --disable-packet=LIST.
14949 * server.h (disable_packet_vCont, disable_packet_Tthread)
14950 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
14952 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
14954 * server.c (gdbserver_usage): Mention --version.
14956 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
14958 * Makefile.in (gdbreplay.o): New rule.
14960 2008-06-06 Joseph Myers <joseph@codesourcery.com>
14962 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
14963 message, not gdbserver.
14965 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
14966 Nathan Sidwell <nathan@codesourcery.com>
14967 Joseph Myers <joseph@codesourcery.com>
14969 * acinclude.m4: Include ../../config/acx.m4.
14970 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
14971 * configure, config.in: Regenerate.
14972 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
14973 * server.c (gdbserver_version): Print PKGVERSION.
14974 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
14975 (main): Adjust gdbserver_usage calls.
14976 * gdbreplay.c (version, host_name): Add declarations.
14977 (gdbreplay_version, gdbreplay_usage): New.
14978 (main): Accept --version and --help options.
14980 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
14982 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
14983 (arm_breakpoint_at): Handle Thumb.
14984 (the_low_target): Add comment.
14986 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
14988 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
14990 2008-05-09 Doug Evans <dje@google.com>
14992 * server.h (decode_search_memory_packet): Declare.
14993 * remote-utils.c (decode_search_memory_packet): New fn.
14994 * server.c (handle_search_memory_1): New fn.
14995 (handle_search_memory): New fn.
14996 (handle_query): Process qSearch:memory packets.
14998 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
15000 * regcache.c (registers_length): Remove.
15001 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
15002 full register packet.
15003 * regcache.h (registers_length): Remove prototype.
15004 * server.h (PBUFSIZ): Define to 16384.
15006 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
15008 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
15009 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
15010 powerpc-64l.o, and powerpc-altivec64l.o.
15011 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
15012 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
15013 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
15014 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
15015 rs6000/power-linux.xml, and rs6000/power64-linux.xml
15018 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
15019 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
15020 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
15021 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
15022 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
15023 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
15024 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
15025 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
15026 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
15027 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
15030 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
15031 (init_registers_powerpc_32l): ... this new prototype.
15032 (init_registers_powerpc_32): Remove, replace by ...
15033 (init_registers_powerpc_altivec32l): ... this new prototype.
15034 (init_registers_powerpc_e500): Remove, replace by ...
15035 (init_registers_powerpc_e500l): ... this new prototype.
15036 (init_registers_ppc64): Remove, replace by ...
15037 (init_registers_powerpc_64l): ... this new prototype.
15038 (init_registers_powerpc_64): Remove, replace by ...
15039 (init_registers_powerpc_altivec64l): ... this new prototype.
15040 (ppc_num_regs): Set to 73.
15041 (PT_ORIG_R3, PT_TRAP): Define if necessary.
15042 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
15043 (ppc_cannot_store_register): Handle orig_r3 and trap.
15044 (ppc_arch_setup): Update init_registers_... calls.
15045 (ppc_fill_gregset): Handle orig_r3 and trap.
15047 * inferiors.c (clear_inferiors): Reset current_inferior.
15049 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
15051 * acinclude.m4: Add override.m4.
15052 * configure: Regenerate.
15054 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
15056 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
15057 initial call to init_register_ppc64.
15059 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
15061 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
15062 single powerpc*-*-linux* case.
15063 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
15065 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
15067 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
15068 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
15070 * linux-ppc-low.c: Include <elf.h>.
15071 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
15072 (ppc_hwcap): New global variable.
15073 (ppc_regmap): Remove __SPE__ #ifdef sections.
15074 (ppc_regmap_e500): New global variable.
15075 (ppc_cannot_store_register): Update __SPE__ special case.
15076 (ppc_get_hwcap): New function.
15077 (ppc_arch_setup): Use it to determine whether inferior supports
15078 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
15079 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
15080 Do not access registers if target does not support AltiVec.
15081 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
15082 Do not access registers if target does not support SPE.
15083 (target_regsets): Unconditionally include AltiVec and SPE regsets.
15085 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
15087 * linux-low.c (disabled_regsets, num_regsets): New.
15088 (use_regsets_p): Delete.
15089 (linux_wait_for_process): Clear disabled_regsets.
15090 (regsets_fetch_inferior_registers): Check and set it.
15091 (regsets_store_inferior_registers): Likewise.
15092 (linux_fetch_registers, linux_store_registers): Do not use
15094 (initialize_low): Allocate disabled_regsets.
15096 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
15098 * Makefile.in (LIBOBJS): New.
15099 (OBS): Use LIBOBJS.
15100 (memmem.o): New rule.
15101 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
15102 * configure: Regenerated.
15104 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
15106 * server.c (handle_query): Never return "unsupported" for
15107 qXfer:features:read queries.
15109 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
15111 * server.c (get_features_xml): Fix inverted condition.
15112 (handle_query): Always support qXfer:feature:read.
15114 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
15116 * server.c (wrapper_argv): New.
15117 (start_inferior): Handle wrapper_argv. If set, expect an extra
15119 (gdbserver_usage): Document --wrapper.
15120 (main): Parse --wrapper.
15122 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15124 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
15125 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
15126 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
15127 (ppc_set_pc): Likewise.
15128 (ppc_arch_setup): New function.
15129 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
15130 of collect_register.
15131 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
15133 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15135 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
15136 instead of linux-ppc64-low.o.
15137 * linux-ppc64-low.c: Remove file.
15138 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
15139 (linux-ppc64-low.o): Remove rule.
15141 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
15142 (init_registers_powerpc_64): Likewise.
15143 (ppc_regmap): Conditionally define depending on __powerpc64__.
15144 (ppc_cannot_store_register): Do not special-case "fpscr" when
15145 compiled on __powerpc64__.
15146 (ppc_collect_ptrace_register): New function.
15147 (ppc_supply_ptrace_register): New function.
15148 (ppc_breakpoint): Change type to "unsigned int".
15149 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
15150 (the_low_target): Conditionally provide initializers for the
15151 arch_setup member depending on __powerpc64__. Install
15152 collect_ptrace_register and supply_ptrace_register members.
15154 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15156 * regcache.h (gdbserver_xmltarget): Add extern declaration.
15157 * server.c (gdbserver_xmltarget): Define.
15158 (get_features_xml): Use it to replace "target.xml" and arch_string.
15160 * configure.srv: Remove srv_xmltarget. Add XML files that were
15161 mentioned there to srv_xmlfiles instead. Remove conditional tests
15162 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
15163 srv_xmlfiles and srv_regobj to include all possible choices.
15164 * configure.ac (srv_xmltarget): Remove.
15165 (srv_xmlfiles): Do not add "target.xml".
15166 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
15167 checks for supplementary target information.
15168 * configure: Regenerate.
15169 * Makefile.in (XML_TARGET): Remove.
15170 (target.xml): Remove rule.
15171 (clean): Do not clean up target.xml.
15172 (.PRECIOUS): Do not mention target.xml.
15174 * target.h (struct target_ops): Remove arch_string member.
15175 * linux-low.c (linux_arch_string): Remove.
15176 (linux_target_ops): Remove arch_string initializer.
15177 * linux-low.h (struct linux_target_ops): Remove arch_string member.
15178 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
15179 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
15180 * spu-low.c (spu_arch_string): Remove.
15181 (spu_target_ops): Remove arch_string initializer.
15182 * win32-low.c (win32_arch_string): Remove.
15183 (win32_target_ops): Remove arch_string initializer.
15184 * win32-low.h (struct win32_target_ops): Remove arch_string member.
15185 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
15186 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
15188 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15190 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
15191 by collect_ptrace_register and supply_ptrace_register hooks.
15192 * linux-low.c (fetch_register): Use supply_ptrace_register callback
15193 instead of checking for the_low_target.left_pad_xfer.
15194 (usr_store_inferior_registers): Use collect_ptrace_register callback
15195 instead of checking for the_low_target.left_pad_xfer.
15197 * linux-s390-low.c (s390_collect_ptrace_register): New function.
15198 (s390_supply_ptrace_register): Likewise.
15199 (s390_fill_gregset): Call s390_collect_ptrace_register.
15200 (the_low_target): Update.
15202 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
15203 (ppc_supply_ptrace_register): Likewise.
15204 (the_low_target): Update.
15206 * linux-i386-low.c (the_low_target): Update.
15207 * linux-x86-64-low.c (the_low_target): Update.
15209 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15211 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
15212 reg-s390.o and reg-s390x.o.
15214 * linux-low.c (new_inferior): New global variable.
15215 (linux_create_inferior, linux_attach): Set it.
15216 (linux_wait_for_process): Call the_low_target.arch_setup after the
15217 target has stopped for the first time.
15218 (initialize_low): Do not call the_low_target.arch_setup.
15220 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
15221 (s390_set_pc): Likewise.
15222 (s390_arch_setup): New function.
15223 (the_low_target): Use s390_arch_setup as arch_setup routine.
15225 * regcache.c (realloc_register_cache): New function.
15226 (set_register_cache): Call it for each existing regcache.
15228 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15230 * server.h (init_registers): Remove prototype.
15232 * linux-low.h (struct linux_target_ops): Add arch_setup field.
15233 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
15234 instead of init_registers ().
15235 * linux-arm-low.c (init_registers_arm): Add prototype.
15236 (init_registers_arm_with_iwmmxt): Likewise.
15237 (the_low_target): Add initializer for arch_setup field.
15238 * linux-cris-low.c (init_registers_cris): Add prototype.
15239 (the_low_target): Add initializer for arch_setup field.
15240 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
15241 (the_low_target): Add initializer for arch_setup field.
15242 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
15243 (the_low_target): Add initializer for arch_setup field.
15244 * linux-ia64-low.c (init_registers_ia64): Add prototype.
15245 (the_low_target): Add initializer for arch_setup field.
15246 * linux-m32r-low.c (init_registers_m32r): Add prototype.
15247 (the_low_target): Add initializer for arch_setup field.
15248 * linux-m68k-low.c (init_registers_m68k): Add prototype.
15249 (the_low_target): Add initializer for arch_setup field.
15250 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
15251 (init_registers_mips64_linux): Likewise.
15252 (the_low_target): Add initializer for arch_setup field.
15253 * linux-ppc-low.c (init_registers_ppc): Add prototype.
15254 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
15255 (the_low_target): Add initializer for arch_setup field.
15256 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
15257 (init_registers_powerpc_64): Likewise.
15258 (the_low_target): Add initializer for arch_setup field.
15259 * linux-s390-low.c (init_registers_s390): Add prototype.
15260 (init_registers_s390x): Likewise.
15261 (the_low_target): Add initializer for arch_setup field.
15262 * linux-sh-low.c (init_registers_sh): Add prototype.
15263 (the_low_target): Add initializer for arch_setup field.
15264 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
15265 (the_low_target): Add initializer for arch_setup field.
15266 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
15267 (the_low_target): Add initializer for arch_setup field.
15269 * win32-low.h (struct win32_target_ops): Add arch_setup field.
15270 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
15271 instead of init_registers ().
15272 * win32-arm-low.c (init_registers_arm): Add prototype.
15273 (the_low_target): Add initializer for arch_setup field.
15274 * win32-i386-low.c (init_registers_i386): Add prototype.
15275 (the_low_target): Add initializer for arch_setup field.
15277 * spu-low.c (init_registers_spu): Add prototype.
15278 (initialize_low): Call initialie_registers_spu () instead of
15279 initialize_registers ().
15281 2008-02-19 Pedro Alves <pedro@codesourcery.com>
15283 * server.c (handle_v_requests): When handling the vRun and vAttach
15284 packets, if already debugging a process, don't kill it. Return an
15287 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
15289 * server.c (handle_query): Correct length check.
15291 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
15293 * win32-low.c (do_initial_child_stuff): Add process handle
15294 parameter. Set current_process_handle and current_process_id from the
15295 parameters. Clear globals.
15296 (win32_create_inferior): Don't set current_process_handle and
15297 current_process_id here. Instead pass them on the call to
15298 do_initial_child_stuff.
15299 (win32_attach): Likewise.
15300 (win32_clear_inferiors): New.
15301 (win32_kill): Don't close the current process handle or the
15302 current thread handle here. Instead call win32_clear_inferiors.
15303 (win32_detach): Don't open a new handle to the process. Call
15304 win32_clear_inferiors.
15305 (win32_join): Don't rely on current_process_handle; open a new
15306 handle using the process id.
15307 (win32_wait): Call win32_clear_inferiors when the inferior process
15310 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
15312 * server.c (monitor_show_help): Add "exit".
15314 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
15316 * Makefile.in (SFILES): Add linux-xtensa-low.c.
15317 (clean): Add reg-xtensa.c.
15318 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
15319 * configure.srv (xtensa*-*-linux*) New target.
15320 * linux-xtensa-low.c: New.
15321 * xtensa-xtregs.c: New.
15323 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
15325 * hostio.c: Don't include errno.h.
15326 (errno_to_fileio_errno): Move to hostio-errno.
15327 * hostio.c: (hostio_error): Remove the error parameter. Defer the
15328 error number outputting to the target->hostio_last_error callback.
15329 (hostio_packet_error): Use FILEIO_EINVAL directly.
15330 (handle_open, handle_pread, hostio_error, handle_unlink): Update
15331 calls to hostio_error.
15332 * hostio-errno.c: New.
15333 * server.h (hostio_last_error_from_errno): Declare.
15334 * target.h (target_ops): Add hostio_last_error member.
15335 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
15336 as hostio_last_error handler.
15337 * spu-low.c (spu_target_ops): Likewise.
15338 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
15339 (wince_hostio_last_error): New functions.
15340 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
15341 as hostio_last_error handler.
15342 (win32_target_ops) [!_WIN32_WCE]: Register
15343 hostio_last_error_from_errno as hostio_last_error handler.
15344 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
15345 (hostio-errno.o): New rule.
15346 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
15347 * configure.srv (srv_hostio_err_objs): New variable. Default to
15349 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
15350 * configure: Regenerate.
15352 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
15354 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
15355 (linux_kill, linux_detach): Clean up the process list.
15356 * remote-utils.c (remote_open): Improve port number parsing.
15357 (putpkt_binary, input_interrupt): Only send interrupts if the target
15359 * server.c (extended_protocol): Make static.
15360 (attached): Define earlier.
15361 (exit_requested, response_needed, program_argv): New variables.
15362 (target_running): New.
15363 (start_inferior): Clear attached here.
15364 (attach_inferior): Set attached here.
15365 (require_running): Define.
15366 (handle_query): Use require_running and target_running. Implement
15368 (handle_v_attach, handle_v_run): New.
15369 (handle_v_requests): Use require_running. Handle vAttach and vRun.
15370 (gdbserver_usage): Update.
15371 (main): Redo argument parsing. Handle --debug and --multi. Handle
15372 --attach along with other options or after the port. Save
15373 program_argv. Support no initial program. Resynchronize
15374 communication with GDB after an error. Handle "monitor exit".
15375 Use require_running and target_running. Always allow the extended
15376 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
15377 restart in extended mode.
15378 * README: Refer to the GDB manual. Update --attach usage.
15380 2007-12-20 Andreas Schwab <schwab@suse.de>
15382 * linux-low.c (STACK_SIZE): Define.
15383 (linux_tracefork_child): Use it. Use __clone2 on ia64.
15384 (linux_test_for_tracefork): Likewise.
15386 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
15388 * linux-low.c (linux_wait_for_event): Update messages. Do not
15389 reinsert auto-delete breakpoints.
15390 * mem-break.c (struct breakpoint): Change return type of handler to
15392 (set_breakpoint_at): Update handler type.
15393 (reinsert_breakpoint_handler): Return 1 instead of calling
15395 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
15397 (check_breakpoints): Delete auto-delete breakpoints and return 2.
15398 * mem-break.h (set_breakpoint_at): Update handler type.
15399 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
15400 * win32-low.c (auto_delete_breakpoint): New.
15401 (get_child_debug_event): Use it.
15403 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
15405 * configure.ac: Check for pread and pwrite.
15406 * hostio.c (handle_pread): Fall back to lseek and read.
15407 (handle_pwrite): Fall back to lseek and write.
15408 * config.in, configure: Regenerated.
15410 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
15412 * server.c (myresume): Add own_buf argument.
15413 (main): Update calls.
15415 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
15417 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
15418 * remote-utils.c (remote_open): Do not call disable_async_io.
15419 (block_async_io): Delete.
15420 (unblock_async_io): Make static.
15421 (initialize_async_io): New.
15422 * server.c (handle_v_cont): Handle async I/O here.
15423 (myresume): Likewise. Move other common resume tasks here...
15424 (main): ... from here. Call initialize_async_io. Disable async
15425 I/O before the main loop.
15426 * server.h (initialize_async_io): Declare.
15427 (block_async_io, unblock_async_io): Delete prototypes.
15428 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
15430 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
15432 * remote-utils.c (readchar): Allow binary data in received messages.
15434 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15436 * win32-low.c (attaching): New global.
15437 (win32_create_inferior): Clear the `attaching' global.
15438 (win32_attach): Set the `attaching' global.
15439 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
15440 attaching. Only set a breakpoint at the entry point if not
15443 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15445 * server.c (main): Don't report dll events on the initial
15446 connection on attaches.
15448 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15450 * server.c (main): Relax numerical bases supported for the pid of
15451 the --attach command line argument.
15453 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15455 * win32-low.c (win32_attach): Call OpenProcess before
15456 DebugActiveProcess, not after. Add last error output to error
15459 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15461 * win32-low.c (win32_get_thread_context)
15462 (win32_set_thread_context): New functions.
15463 (thread_rec): Use win32_get_thread_context.
15464 (continue_one_thread, win32_resume): Use win32_set_thread_context.
15465 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
15468 2007-12-03 Leo Zayas
15469 Pedro Alves <pedro_alves@portugalmail.pt>
15471 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
15473 (child_add_thread): Minor cleanup.
15474 (child_continue): Resume artificially suspended threads before
15475 calling ContinueDebugEvent.
15476 (suspend_one_thread): New.
15477 (fake_breakpoint_event): New.
15478 (get_child_debug_event): Change return type to int. Check here if
15479 gdb sent an interrupt request. If a soft interrupt was requested,
15480 fake a breakpoint event. Return 0 if there is no event to handle,
15482 (win32_wait): Don't check here if gdb sent an interrupt request.
15483 Ensure there is a valid event to handle.
15484 (win32_request_interrupt): Add soft interruption method as last
15487 2007-12-03 Leo Zayas
15488 Pedro Alves <pedro_alves@portugalmail.pt>
15490 * win32-low.h (win32_thread_info): Add descriptions to the
15491 structure members. Replace `suspend_count' counter by a
15493 * win32-low.c (thread_rec): Update condition of when to get the
15494 context from the inferior. Rely on ContextFlags being set if it
15495 has already been retrieved. Only suspend the inferior thread if
15496 we haven't already. Warn if that fails.
15497 (continue_one_thread): s/suspend_count/suspended/. Only call
15498 ResumeThread once. Warn if that fails.
15500 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
15502 * win32-low.c (win32_wait): Don't read from the inferior when it
15503 has already exited.
15505 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
15507 * Makefile.in (win32_low_h): New variable.
15508 (win32-low.o): Add dependency on $(win32_low_h).
15509 (win32-arm-low.o, win32-i386-low.o): New rules.
15511 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
15513 * hostio.c: Correct copyright year.
15515 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
15517 * Makefile.in (OBS): Add hostio.o.
15518 (hostio.o): New rule.
15519 * server.h (handle_vFile): Declare.
15520 * hostio.c: New file.
15521 * server.c (handle_v_requests): Take packet_len and new_packet_len
15522 for binary packets. Call handle_vFile.
15523 (main): Update call to handle_v_requests.
15525 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
15527 * linux-low.c: Include <sched.h>.
15529 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
15531 * linux-low.c (linux_tracefork_grandchild): New.
15532 (linux_tracefork_child): Use clone.
15533 (linux_test_for_tracefork): Use clone; allocate and free a stack.
15535 2007-10-31 Joel Brobecker <brobecker@adacore.com>
15537 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
15539 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
15541 * linux-low.c (handle_extended_wait): Handle unexpected signals.
15543 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
15545 * inferiors.c (change_inferior_id): Delete.
15546 (add_pid_to_list, pull_pid_from_list): New.
15547 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
15548 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
15549 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
15550 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
15551 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
15552 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
15553 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
15554 (using_threads): Always set to 1.
15555 (handle_extended_wait): New.
15556 (add_process): Do not set TID.
15557 (linux_create_inferior): Set must_set_ptrace_flags.
15558 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
15559 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
15560 (linux_thread_alive): Rename TID argument to LWPID.
15561 (linux_wait_for_process): Handle unknown processes. Do not use TID.
15562 (linux_wait_for_event): Do not use TID or check using_threads. Update
15563 call to dead_thread_notify. Call handle_extended_wait.
15564 (linux_create_inferior): Use PTRACE_SETOPTIONS.
15565 (send_sigstop): Delete sigstop_sent.
15566 (wait_for_sigstop): Avoid TID.
15567 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
15568 (linux_test_for_tracefork): New.
15569 (linux_lookup_signals): Use thread_db_active and
15570 linux_supports_tracefork_flag.
15571 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
15572 * linux-low.h (get_process_thread): Avoid TID.
15573 (struct process_ifo): Move thread_known and tid to the end. Remove
15575 (linux_attach_lwp, thread_db_init): Update prototypes.
15576 * server.h (change_inferior_id): Delete prototype.
15577 (add_pid_to_list, pull_pid_from_list): New prototypes.
15578 * thread-db.c (thread_db_use_events): New.
15579 (find_first_thread): Rename to...
15580 (find_one_thread): ...this. Update callers and messages. Do not
15581 call fatal. Check thread_db_use_events. Do not call
15582 change_inferior_id or new_thread_notify.
15583 (maybe_attach_thread): Update. Do not call new_thread_notify.
15584 (thread_db_init): Set thread_db_use_events. Check use_events.
15585 * utils.c (fatal, warning): Correct message prefix.
15587 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
15589 * Makefile.in (clean): Remove new files.
15590 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
15591 (powerpc-64.o, powerpc-64.c): New rules.
15592 * configure.srv: Use alternate register sets for powerpc64-*-linux*
15593 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
15595 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
15597 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
15598 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
15599 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
15600 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
15601 (target_regsets): Add AltiVec and SPE register sets.
15602 * configure.ac: Check for AltiVec and SPE.
15603 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
15604 (ppc_fill_vrregset, ppc_store_vrregset): New.
15605 (target_regsets): Add AltiVec register set.
15606 * configure: Regenerated.
15608 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
15610 * linux-low.c (O_LARGEFILE): Define.
15611 (linux_read_memory): Use /proc/PID/mem.
15612 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
15613 * configure, config.in: Regenerated.
15615 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
15617 * linux-low.c (linux_wait_for_event): Do not pass signals while
15620 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
15622 * win32-low.c (create_process): New.
15623 (win32_create_inferior): Use create_process instead of
15624 CreateProcess. If create_process failed retry appending an ".exe"
15625 suffix. Store the GetLastError result immediatelly after
15626 create_process calls and use it on the call to error.
15628 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
15630 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
15632 2007-08-23 Joel Brobecker <brobecker@adacore.com>
15634 * configure.ac: Switch license to GPLv3.
15636 2007-08-01 Michael Snyder <msnyder@access-company.com>
15638 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
15640 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
15642 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
15644 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
15645 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
15646 CloseToolhelp32Snapshot.
15647 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
15648 CloseToolhelp32Snapshot.
15650 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
15652 * server.c (main): Check for inferior exit before main loop.
15654 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
15656 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
15657 instead of on tmp_desc.
15659 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
15660 Daniel Jacobowitz <dan@codesourcery.com>
15662 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
15663 (add_thread): Minor cleanups.
15664 (clear_inferiors): Move lower in the file. Clear the DLL
15666 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
15667 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
15668 (xml_escape_text): New.
15669 * server.c (handle_query): Handle qXfer:libraries:read. Report it
15671 (handle_v_cont): Report errors.
15672 (gdbserver_version): Update.
15673 (main): Correct size of own_buf. Do not report initial DLL events.
15674 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
15675 (unloaded_dll, xml_escape_text): New.
15676 * win32-low.c (enum target_waitkind): Update comments.
15677 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
15678 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
15679 (win32_EnumProcessModules, win32_GetModuleInformation)
15680 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
15681 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
15682 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
15683 (win32_Module32First, win32_Module32Next, load_toolhelp)
15684 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
15685 (get_child_debug_event): Handle DLL events.
15686 (win32_wait): Likewise.
15688 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
15690 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
15691 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
15693 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
15695 * win32-low.c (handle_output_debug_string): Ignore event if not
15698 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
15700 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
15702 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
15704 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
15706 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
15708 * inferiors.c (change_inferior_id): Add comment.
15709 * linux-low.c (check_removed_breakpoint): Add an early
15710 prototype. Improve debug output.
15711 (linux_attach): Doc update.
15712 (linux_detach_one_process, linux_detach): Clean up before releasing
15714 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
15715 * linux-low.h (struct process_info): Doc improvement.
15716 * mem-break.c (delete_all_breakpoints): New.
15717 * mem-break.h (delete_all_breakpoints): New prototype.
15718 * thread-db.c (find_first_thread): New.
15719 (thread_db_create_event): Call it instead of
15720 thread_db_find_new_threads. Clean up unused variables.
15721 (maybe_attach_thread): Remove first thread handling.
15722 (thread_db_find_new_threads): Use find_first_thread.
15723 (thread_db_get_tls_address): Likewise.
15725 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
15727 * thread-db.c (thread_db_find_new_threads): Add prototype.
15728 (thread_db_create_event): Check for the main thread before adding
15730 (maybe_attach_thread): Only enable event reporting if TID == 0.
15731 (thread_db_get_tls_address): Check for new threads.
15733 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
15735 * linux-low.c (linux_create_inferior): Try execv before execvp.
15736 * spu-low.c (spu_create_inferior): Likewise.
15738 2007-06-13 Mike Frysinger <vapier@gentoo.org>
15740 * linux-low.c (linux_create_inferior): Change execv to execvp.
15741 * spu-low.c (spu_create_inferior): Likewies.
15743 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
15745 * Makefile.in (clean): Clean new files instead of deleted ones.
15746 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
15747 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
15749 * configure.srv: Specify XML files and new regformats for MIPS and
15751 * linux-mips-low.c (mips_num_regs): Set to only used registers.
15752 (mips_regmap): Do not fetch $0. Remove unused registers. Add
15753 an entry for the restart register.
15754 (mips_cannot_fetch_register, mips_cannot_store_register)
15755 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
15756 register names to match the XML descriptions.
15757 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
15758 restart register instead of $0.
15760 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
15761 Markus Deuling <deuling@de.ibm.com>
15763 * remote-utils.c (decode_xfer_write): New function.
15764 * server.h (decode_xfer_write): Add prototype.
15765 * server.c (handle_query): Add PACKET_LEN argument. Support
15766 qXfer:spu:read and qXfer:spu:write packets.
15767 (main): Pass packet_len to handle_query.
15768 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
15769 * target.h (target_ops): Add qxfer_spu.
15771 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
15773 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
15774 accessing non-seekable spufs files.
15776 2007-05-16 Markus Deuling <deuling@de.ibm.com>
15778 * server.c (handle_query): Add reply for qC packet.
15780 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15781 Leo Zayas <lerele@champenstudios@com>
15783 * server.h (check_remote_input_interrupt_request): New function.
15784 * remote_utils.c (INVALID_DESCRIPTOR): New define.
15785 (remote_desc): Initialize with INVALID_DESCRIPTOR.
15786 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
15787 (check_remote_input_interrupt_request): New function.
15788 * server.h (check_remote_input_interrupt_request): Declare.
15789 * win32-low.c (winapi_DebugBreakProcess,
15790 winapi_GenerateConsoleCtrlEvent): New typedefs.
15791 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
15793 (win32_wait): Check for remote interrupt request
15794 with check_remote_input_interrupt_request.
15795 (win32_request_interrupt): New function.
15796 (win32_target_op): Set request_interrupt to win32_request_interrupt.
15798 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15800 * win32-low.c (debug_registers_changed,
15801 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
15802 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
15803 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
15804 (thread_rec): Get context using the low target.
15805 (child_add_thread): Call thread_added on the low target,
15806 which does the same thing.
15808 (do_initial_child_stuff): Remove debug registers references.
15809 Set context using the low target. Resume threads after
15810 setting the contexts.
15811 (child_continue): Remove dead variable. Remove debug
15812 registers references.
15813 (child_fetch_inferior_registers): Go through the low target.
15814 (do_child_store_inferior_registers): Remove.
15815 (child_store_inferior_registers): Go through the low target.
15816 (win32_resume): Remove debug registers references.
15817 Set context using the low target.
15818 (handle_exception): Change return type to void. Don't record
15819 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
15820 first chance exception.
15821 (get_child_debug_event): Change return type to void. Remove
15822 goto loop. Always return after waiting for debug event.
15823 (win32_wait): Convert to switch statement. Handle spurious
15826 * win32-i386-low.c (debug_registers_changed,
15827 debug_registers_used): New.
15828 (initial_stuff): Rename to ...
15829 (i386_initial_stuff): ... this. Clear debug registers
15831 (store_debug_registers): Delete.
15832 (i386_get_thread_context): New.
15833 (load_debug_registers): Delete.
15834 (i386_set_thread_context): New.
15835 (i386_thread_added): New.
15836 (single_step): Rename to ...
15837 (i386_single_step): ... this.
15838 (do_fetch_inferior_registers): Rename to ...
15839 (i386_fetch_inferior_register): ... this.
15840 (i386_store_inferior_register): New.
15841 (the_low_target): Adapt to new interface.
15843 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
15844 (arm_get_thread_context): New.
15845 (arm_set_thread_context): New.
15847 (do_fetch_inferior_registers): Rename to ...
15848 (arm_fetch_inferior_register): ... this.
15849 (arm_store_inferior_register): New.
15850 (arm_wince_breakpoint): Reimplement as unsigned long.
15851 (arm_wince_breakpoint_len): Define.
15852 (the_low_target): Adapt to new interface.
15854 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
15855 load_debug_registers. Add get_thread_context, set_thread_context,
15856 thread_added and store_inferior_register. Rename
15857 fetch_inferior_registers to fetch_inferior_register.
15858 (regptr): Remove declaration.
15860 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15862 * linux-low.c (linux_detach): Change return type to int. Return 0.
15863 * spu-low.c (spu_detach): Likewise.
15865 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15867 * target.h (target_ops): Change return type of detach to int.
15869 (join_inferior): New.
15870 * server.c (main): Don't skip detach support on mingw32.
15871 If the inferior doesn't support detaching return error.
15872 Call join_inferior instead of using waitpid.
15873 * linux-low.c (linux_join): New.
15874 (linux_target_op): Add linux_join.
15875 * spu-low.c (spu_join): New.
15876 (spu_target_ops): Add spu_join.
15877 * win32-low.c (win32_detach): Adapt to new interface.
15878 Reopen current_process_handle before detaching. Issue a child
15879 resume before detaching.
15881 (win32_target_op): Add win32_join.
15883 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15885 * win32-low.c (win32-attach): Fix return value.
15886 * target.h (target_ops): Describe ATTACH return values.
15888 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15890 * win32-low.c (GETPROCADDRESS): Define.
15891 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
15892 (winapi_DebugSetProcessKillOnExit): Likewise.
15893 (win32_create_inferior): Force usage of ansi CreateProcessA.
15894 (win32_attach): Use GETPROCADDRESS.
15895 (win32_detach): Likewise.
15897 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15899 * win32-low.c (win32_wait): Don't use WSTOPSIG.
15901 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
15903 * win32-low.c: Commit leftover changes from 2007-03-29.
15905 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
15907 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
15908 fields short instead of int. Add explicit padding.
15909 (i387_cache_to_fsave): Remove unnecessary casts.
15910 (i387_fsave_to_cache): Doc fix.
15911 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
15913 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
15915 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
15916 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
15918 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
15920 * configure.srv (arm*-*-mingw32ce*): Move near the other
15923 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
15925 * configure.ac: Add errno checking.
15926 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
15927 sys/file.h and malloc.h.
15928 (AC_CHECK_DECLS): Add perror.
15929 (srv_mingwce): Handle.
15930 * configure.srv (i[34567]86-*-cygwin*): Add
15931 win32-i386-low.o to srv_tgtobj.
15932 (i[34567]86-*-mingw*): Likewise.
15933 (arm*-*-mingw32ce*): Add case.
15934 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
15935 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
15936 [__MINGW32CE__] (strerror): New function.
15937 [__MINGW32CE__] (errno): Define to GetLastError.
15938 [__MINGW32CE__] (COUNTOF): New macro.
15939 (remote_open): Remove extra close call.
15940 * mem-break.c (delete_breakpoint_at): New function.
15941 * mem-break.h (delete_breakpoint_at): Declare.
15942 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
15943 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
15944 [USE_WIN32API] (read, write): Add char* casts.
15945 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
15946 * server.h: Include wincecompat.h on Windows CE.
15947 [HAVE_ERRNO_H]: Check.
15948 (perror): Declare if not declared.
15949 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
15950 (perror_with_name): Remove errno declaration.
15951 * wincecompat.h: New.
15952 * wincecompat.c: New.
15953 * win32-low.h: New.
15954 * win32-arm-low.c: New.
15955 * win32-i386-low.c: New.
15956 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
15957 (OUTMSG2): Make it safe.
15959 (COUNTOF): New macro.
15960 (NUM_REGS): Get it from the low target.
15961 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
15962 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
15963 (thread_rec): Let low target handle debug registers.
15964 (child_add_thread): Likewise.
15965 (child_init_thread_list): Likewise.
15966 (continue_one_thread): Likewise.
15968 (do_child_fetch_inferior_registers): Move to ...
15969 * win32-i386-low.c: ... here, and rename to ...
15970 (do_fetch_inferior_registers): ... this.
15971 * win32-low.c (child_fetch_inferior_registers):
15972 Go through the low target.
15973 (do_child_store_inferior_registers): Use regptr.
15974 (strwinerror): New function.
15975 (win32_create_inferior): Handle Windows CE.
15976 Use strwinerror instead of strerror on Windows error
15977 codes. Add program to the error output.
15978 Don't close the main thread handle on Windows CE.
15979 (win32_attach): Use coredll.dll on Windows CE.
15980 (win32_kill): Close current process and current
15982 (win32_detach): Use coredll.dll on Windows CE.
15983 (win32_resume): Let low target handle debug registers, and
15985 (handle_exception): Add/Remove initial breakpoint. Avoid
15986 non-existant WSTOPSIG on Windows CE.
15987 (win32_read_inferior_memory): Cast to remove warning.
15988 (win32_arch_string): Go through the low target.
15989 (initialize_low): Call set_breakpoint_data with the low
15990 target's breakpoint.
15991 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
15992 FOP_REGNUM, mappings): Move to ...
15993 * win32-i386-low.c: ... here.
15994 * win32-low.c (win32_thread_info): Move to ...
15995 * win32-low.h: ... here.
15996 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
15997 win32-arm-low.c and wincecompat.c.
15998 (all:): Add $EXEEXT.
15999 (install-only:): Likewise.
16000 (gdbserver:): Likewise.
16001 (gdbreplay:): Likewise.
16002 * config.in: Regenerate.
16003 * configure: Regenerate.
16005 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
16007 * win32-low.c: Rename typedef thread_info to
16008 win32_thread_info throughout.
16010 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
16012 * win32-i386-low.c: Rename to ...
16013 * win32-low.c: ... this.
16014 * configure.srv: Replace win32-i386-low.o with win32-low.o.
16015 * Makefile.in: Likewise.
16017 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
16019 * remote-utils.c (monitor_output): Constify msg parameter.
16020 * server.h (monitor_output): Likewise.
16021 * win32-i386-low.c (handle_output_debug_string): New.
16022 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
16023 handle_output_debug_string.
16024 (get_child_debug_event): Likewise.
16026 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
16028 * server.c (main): Correct strtoul check.
16030 2007-03-27 Jon Ringle <jon@ringle.org>
16032 * linux-low.c: Check __ARCH_HAS_MMU__ also.
16034 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
16036 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
16038 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
16040 * terminal.h: Check HAVE_SGTTY_H.
16042 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
16044 * remote-utils.c (remote_open): Print out the assigned port number.
16046 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
16048 * remote-utils.c (monitor_output): New function.
16049 * server.c (debug_threads): Define here.
16050 (monitor_show_help): New function.
16051 (handle_query): Handle qRcmd.
16052 (main): Do not handle 'd' packet.
16053 * server.h (debug_threads, remote_debug, monitor_output): Declare.
16054 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
16057 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
16059 * Makefile.in (EXEEXT): New.
16060 (clean): Use $(EXEEXT).
16062 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
16064 * target.h (target_ops): Rename send_signal to request_interrupt,
16065 and remove enum target_signal parameter.
16066 * linux-low.c (linux_request_interrupt): Rename from
16067 linux_send_signal, and always send SIGINT.
16068 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
16069 and always send SIGINT.
16070 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
16072 (input_interrupt): Likewise.
16074 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
16076 * server.c (get_features_xml): Check if target implemented
16078 * win32-i386-low.c (win32_arch_string): New.
16079 (win32_target_ops): Add win32_arch_string as arch_string member.
16081 2007-02-22 Markus Deuling <deuling@de.ibm.com>
16083 * spu-low.c (spu_arch_string): New.
16084 (spu_target_ops): Add spu_arch_string.
16086 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
16088 * remote-utils.c: Remove HAVE_TERMINAL_H check.
16089 * configure.ac: Do not check for terminal.h.
16090 * configure, config.in: Regenerated.
16092 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
16094 * Makefile.in (OBS): Add $(XML_BUILTIN).
16095 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
16097 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
16098 (arm-with-iwmmxt.c): New.
16099 * config.in, configure: Regenerate.
16100 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
16101 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
16102 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
16103 (arm*-*-linux*): Add iWMMXt and regset support.
16104 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
16105 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
16106 (arm_store_wmmxregset, target_regsets): New.
16107 * server.c (get_features_xml): Take annex argument. Check builtin
16109 (handle_query): Handle multiple annexes.
16111 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16113 * remote-utils.c [USE_WIN32API] (read, write): Define.
16114 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
16117 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
16119 * linux-i386-low.c (the_low_target): Set arch_string.
16120 * linux-x86-64-low.c (the_low_target): Likewise.
16121 * linux-low.c (linux_arch_string): New.
16122 (linux_target_ops): Add it.
16123 * linux-low.h (struct linux_target_ops): Add arch_string.
16124 * server.c (write_qxfer_response): Use const void * for DATA.
16125 (get_features_xml): New.
16126 (handle_query): Handle qXfer:features:read. Report it for qSupported.
16127 * target.h (struct target_ops): Add arch_string method.
16129 2007-01-03 Denis Pilat <denis.pilat@st.com>
16130 Daniel Jacobowitz <dan@codesourcery.com>
16132 * linux-low.c (linux_kill): Handle being called with no threads.
16133 * win32-i386-low.c (win32_kill): Likewise.
16134 (get_child_debug_event): Clear current_process_handle.
16136 2006-12-30 Denis PILAT <denis.pilat@st.com>
16137 Daniel Jacobowitz <dan@codesourcery.com>
16139 * remote-utils.c (remote_open): Check the type of specified
16140 serial port devices before opening them.
16141 * server.c (main): Kill the inferior if an error occurs during
16142 the first remote_open.
16144 2006-12-05 Markus Deuling <deuling@de.ibm.com>
16146 * README: Update supported targets.
16148 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
16150 * Makefile.in (clean): Remove reg-mips64.c.
16151 (reg-mips64.c, reg-mips64.o): New rules.
16152 * configure.srv: Handle mips64. Include regset support for mips.
16153 * linux-mips-low.c (union mips_register): New.
16154 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
16155 (mips_breakpoint, mips_breakpoint_at): Use int.
16156 (mips_collect_register, mips_supply_register)
16157 (mips_collect_register_32bit, mips_supply_register_32bit)
16158 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
16159 (mips_store_fpregset, target_regsets): New.
16160 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
16162 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
16164 * configure.srv: Add target "spu*-*-*".
16165 * Makefile.in (clean): Remove reg-spu.c.
16166 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
16167 * spu-low.c: New file.
16169 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
16171 * configure.ac: Correct td_thr_tls_get_addr test.
16172 * configure: Regenerated.
16174 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
16176 * linux-low.c (linux_wait_for_event): Reformat. Use the
16177 pass_signals array.
16178 * remote-utils.c (decode_address_to_semicolon): New.
16179 * server.c (pass_signals, handle_general_set): New.
16180 (handle_query): Mention QPassSignals for qSupported.
16181 (main): Call handle_general_set.
16182 * server.h (pass_signals, decode_address_to_semicolon): New.
16184 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
16186 * server.c (handle_query): Correct error handling for read_auxv.
16188 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
16190 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
16191 and srv_linux_thread_db to yes.
16192 * linux-s390-low.c (s390_fill_gregset): New function.
16193 (target_regsets): Define data structure.
16195 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
16197 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
16198 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
16199 * config.in, configure: Regenerated.
16200 * inferiors.c (gdb_id_to_thread): New function.
16201 (gdb_id_to_thread_id): Use it.
16202 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
16203 * linux-low.h (struct process_info): Add th member.
16204 (thread_db_get_tls_address): New prototype.
16205 * remote-utils.c (decode_address): Make non-static.
16206 * server.c (handle_query): Handle qGetTLSAddr.
16207 * server.h (gdb_id_to_thread, decode_address): New prototypes.
16208 * target.h (struct target_ops): Add get_tls_address.
16209 * thread-db.c (maybe_attach_thread): Save the thread handle.
16210 (thread_db_get_tls_address): New.
16212 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
16214 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
16215 (linux_resume_one_process): Take a siginfo_t *. Update all
16216 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
16217 (struct pending_signals): Add a siginfo_t.
16218 (linux_wait_for_process): Always set last_status.
16219 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
16220 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
16221 * linux-low.h (struct process_info): Add last_status.
16223 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
16225 * remote-utils.c (try_rle): New function.
16226 (putpkt_binary): Use it.
16228 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
16230 * Makefile.in (clean): Clean reg-x86-64-linux.c.
16231 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
16232 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
16233 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
16234 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
16237 2006-08-08 Richard Sandiford <richard@codesourcery.com>
16239 * server.c (terminal_fd): New variable.
16240 (old_foreground_pgrp): Likewise.
16241 (restore_old_foreground_pgrp): New function.
16242 (start_inferior): Record the terminal file descriptor in terminal_fd
16243 and its original foreground group in old_foreground_pgrp. Register
16244 restore_old_foreground_pgrp with atexit().
16246 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
16248 * server.c (handle_query): Correct qPart to qXfer.
16250 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
16252 * configure.ac: Check for more headers which are missing on
16253 Windows. Automatically supply -lwsock32 and USE_WIN32API.
16254 * configure.srv: Add Cygwin and mingw32.
16255 * remote-utils.c: Don't include headers unconditionally which
16256 are missing on mingw32. Include <winsock.h> for mingw32.
16257 (remote_open): Adjust for mingw32 support. Flush
16258 standard error after writing to it.
16259 (remote_close, putpkt_binary, input_interrupt, block_async_io)
16260 (unblock_async_io, enable_async_io, disable_async_io)
16261 (readchar, getpkt): Update for Winsock support.
16262 (prepare_resume_reply): Expect a protocol signal number.
16263 * server.c: Disable <sys/wait.h> on mingw32.
16264 (start_inferior): Adjust for mingw32 support. Flush
16265 standard error after writing to it.
16266 (attach_inferior): Likewise. Use protocol signal
16268 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
16270 * win32-i386-low.c: New file.
16271 * Makefile.in (XM_CLIBS): Set.
16272 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
16273 (win32-i386-low.o): New dependency rule.
16274 * linux-low.c (linux_wait): Use target signal numbers.
16275 * target.h (struct target_ops): Doc fix.
16276 * server.h (target_signal_to_name): New prototype.
16277 * gdbreplay.c: Don't include headers unconditionally which
16278 are missing on mingw32. Include <winsock.h> for mingw32.
16279 (remote_close, remote_open): Adjust for Winsock support.
16280 * configure, config.in: Regenerated.
16282 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
16284 * server.c (decode_xfer_read, write_qxfer_response): New.
16285 (handle_query): Take a packet length argument. Handle
16286 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
16287 the qSupported response.
16288 (main): Update call to handle_query.
16290 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
16292 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
16293 (putpkt_binary): Renamed from putpkt and adjusted for binary
16295 (putpkt): New wrapper for putpkt_binary.
16296 (readchar): Don't mask off the high bit.
16297 (decode_X_packet): New function.
16298 * server.c (main): Call putpkt_binary if a handler sets the packet
16299 length. Save the length of the incoming packet. Handle 'X'.
16300 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
16302 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
16304 * server.c (handle_query): Handle qSupported.
16306 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
16308 * remote-utils.c (all_symbols_looked_up): New variable.
16309 (look_up_one_symbol): Check it.
16310 * server.h (look_up_one_symbol): New declaration.
16311 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
16313 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
16315 * Makefile.in (linux-arm-low.o): Update dependencies.
16316 * linux-arm-low.c: Include "gdb_proc_service.h".
16317 (PTRACE_GET_THREAD_AREA): Define.
16318 (ps_get_thread_area): New function.
16320 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
16322 * configure.srv (m68k*-*-uclinux*): New target.
16323 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
16324 (linux_resume_one_process): Remove extraneous cast.
16325 (linux_read_offsets): New.
16326 (linux_target_op): Add linux_read_offsets on mmuless systems.
16327 * server.c (handle_query): Add qOffsets logic.
16328 * target.h (struct target_ops): Add read_offsets.
16330 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
16332 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
16333 (PTRACE_GET_THREAD_AREA): Define.
16334 (ps_get_thread_area): New function.
16335 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
16336 (linux-x86-64-low.o): Update.
16338 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
16340 * configure.ac: Remove checks for prfpregset_t.
16341 * gdb_proc_service.h: New file.
16342 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
16343 new "gdb_proc_service.h".
16344 * proc-service.c: Likewise.
16345 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
16346 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
16347 * Makefile.in (gdb_proc_service_h): Updated.
16348 * configure, config.in: Regenerated.
16350 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
16352 * remote-utils.c (prepare_resume_reply): Move declaration
16353 of gdb_id_from_wait to the top of the block.
16355 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
16357 * linux-low.c (regsets_store_inferior_registers): Read the regset
16358 from the target before filling it.
16360 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
16362 * server.c (attach_inferior): Return SIGTRAP for a successful
16365 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
16367 * Makefile.in (OBS): Add version.o.
16368 (STAGESTUFF): Delete.
16369 (version.o): Add dependencies.
16370 (version.c): Replace rule.
16371 (clean): Remove version.c.
16372 * server.c (gdbserver_version): New.
16373 (gdbserver_usage): Use printf.
16374 (main): Handle --version and --help.
16375 * server.h (version, host_name): Add declarations.
16377 2005-12-23 Eli Zaretskii <eliz@gnu.org>
16389 * linux-x86-64-low.c:
16391 * linux-s390-low.c:
16392 * linux-ppc64-low.c:
16394 * linux-mips-low.c:
16395 * linux-m68k-low.c:
16396 * linux-m32r-low.c:
16399 * linux-ia64-low.c:
16400 * linux-i386-low.c:
16401 * linux-crisv32-low.c:
16413 * gdbserver.1: Add (C) after Copyright. Update the FSF
16416 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
16418 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
16419 (arm_breakpoint_at): Recognize both breakpoints.
16420 (the_low_target): Use the correct breakpoint instruction.
16422 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
16424 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
16425 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
16426 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
16427 (the_low_target): Update.
16429 2005-10-25 Andreas Schwab <schwab@suse.de>
16431 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
16433 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
16434 (ia64_num_regs): Reduce to 462.
16436 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
16438 * acinclude.m4: Correct quoting.
16439 * aclocal.m4: Regenerated.
16441 Suggested by SZOKOVACS Robert <szo@ies.hu>:
16442 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
16443 (thread_db_init): Call thread_db_err_str.
16444 * configure.ac: Check for TD_VERSION.
16445 * config.in, configure: Regenerated.
16447 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16449 * server.h (error, fatal, warning): Add ATTR_FORMAT.
16451 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
16453 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
16454 is not available. Define HAVE_PTRACE_GETREGS if it is.
16455 * config.in, configure: Regenerated.
16456 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
16457 * linux-i386-low.c, linux-m68k-low.c: Update to use
16458 HAVE_PTRACE_GETREGS.
16459 * linux-low.c (regsets_fetch_inferior_registers)
16460 (regsets_store_inferior_registers): Only return 0 if we processed
16462 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
16463 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
16465 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
16467 * inferiors.c (struct thread_info): Add gdb_id.
16468 (add_thread): Add gdb_id argument.
16469 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
16470 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
16471 calls to add_thread.
16472 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
16473 * server.c (handle_query): Use thread_to_gdb_id.
16474 (handle_v_cont, main): Use gdb_id_to_thread_id.
16475 * server.h (add_thread): Update prototype.
16476 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
16479 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
16481 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
16482 left-padded registers.
16483 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
16484 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
16486 2005-07-01 Steve Ellcey <sje@cup.hp.com>
16488 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
16489 * configure: Regenerate.
16490 * config.in: Regenerate.
16491 * server.h (NEED_DECLARATION_STRERROR):
16492 Replace with !HAVE_DECL_STRERROR.
16494 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
16496 * linux-low.c (linux_wait, linux_send_signal): Don't test
16497 an unsigned long variable for > 0 if it could be MAX_ULONG.
16498 * server.c (myresume): Likewise.
16499 * target.c (set_desired_inferior): Likewise.
16501 2005-06-13 Mark Kettenis <kettenis@gnu.org>
16503 * configure.ac: Simplify and improve check for socklen_t.
16504 * configure, config.in: Regenerate.
16506 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
16508 * acconfig.h: Remove.
16509 * configure.ac: Add a test for socklen_t. Use three-argument
16510 AC_DEFINE throughout.
16511 * config.in: Regenerated using autoheader 2.59.
16512 * configure: Regenerated.
16514 * gdbreplay.c (socklen_t): Provide a default.
16515 (remote_open): Use socklen_t.
16516 * remote-utils.c (socklen_t): Provide a default.
16517 (remote_open): Use socklen_t.
16518 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
16521 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
16523 * linux-low.c (linux_read_memory, linux_write_memory)
16524 (linux_read_auxv): Likewise.
16525 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
16526 (check_mem_write): Likewise.
16527 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
16529 * regcache.c (struct inferior_rgcache_data, registers_to_string)
16530 (registers_from_string, register_data): Likewise.
16531 * server.c (handle_query, main): Likewise.
16532 * server.h (convert_ascii_to_int, convert_int_to_ascii)
16533 (decode_M_packet): Likewise.
16534 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
16535 * target.h (struct target_ops): Update read_memory, write_memory,
16537 (read_inferior_memory, write_inferior_memory): Update.
16538 * linux-low.h (struct linux_target_ops): Change type of breakpoint
16539 to unsigned char *.
16540 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
16541 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
16542 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
16543 linux-s390-low.c, linux-sh-low.c: Update for changes in
16544 read_inferior_memory and the_low_target->breakpoint.
16546 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
16548 * Makefile.in (SFILES): Add linux-ppc64-low.c.
16549 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
16550 * configure.srv: Add powerpc64-*-linux*.
16551 * linux-ppc64-low.c: New file.
16553 2005-05-23 Orjan Friberg <orjanf@axis.com>
16555 * linux-cris-low.c: New file with support for CRIS.
16556 * linux-crisv32-low.c: Ditto for CRISv32.
16557 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
16558 (clean): Add reg-cris.c and reg-crisv32.c.
16559 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
16560 reg-crisv32.o, and reg-crisv32.c to make rules.
16561 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
16562 recognized targets.
16564 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
16566 * linux-low.c (fetch_register): Ensure buffer size is a multiple
16567 of sizeof (PTRACE_XFER_TYPE).
16568 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
16570 2005-05-12 Orjan Friberg <orjanf@axis.com>
16572 * target.h (struct target_ops): Add insert_watchpoint,
16573 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
16574 pointers for hardware watchpoint support.
16575 * linux-low.h (struct linux_target_ops): Ditto.
16576 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
16577 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
16578 to linux_target_ops.
16579 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
16581 * server.c (main): Recognize 'Z' and 'z' packets.
16583 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
16585 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
16586 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
16587 (the_low_target): Add new members.
16589 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
16591 * proc-service.c (ps_lgetregs): Search all_processes instead of
16594 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
16596 * server.c (start_inferior): Change return type to int.
16597 (attach_inferior): Change sigptr to int *.
16598 (handle_v_cont, handle_v_requests): Change signal to int *.
16599 (main): Change signal to int.
16601 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
16603 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
16604 * configure.srv: Add m32r*-*-linux*.
16605 * linux-m32r-low.c: New file.
16607 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
16609 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
16611 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
16613 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
16614 Take unsigned long arguments for PIDs.
16615 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
16616 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
16617 (wait_for_sigstop, linux_resume_one_process)
16618 (regsets_fetch_inferior_registers, linux_send_signal)
16619 (linux_read_auxv): Likewise. Update the types of variables holding
16620 PIDs. Update format string specifiers.
16621 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
16622 * remote-utils.c (prepare_resume_reply): Likewise.
16623 * server.c (cont_thread, general_thread, step_thread)
16624 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
16626 (handle_query): Update format specifiers.
16627 (handle_v_cont, main): Use strtoul for thread IDs.
16628 * server.h (struct inferior_list_entry): Use unsigned long for ID.
16629 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
16630 (general_thread, step_thread, thread_from_wait)
16631 (old_thread_from_wait): Update.
16632 * target.h (struct thread_resume): Use unsigned long for THREAD.
16633 (struct target_ops): Use unsigned long for arguments to attach and
16636 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
16638 * acinclude.m4: Include bfd/bfd.m4 directly.
16639 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
16640 <agriffis@toolchain.org>.
16641 * aclocal.m4, configure: Regenerated.
16643 2005-01-07 Andrew Cagney <cagney@gnu.org>
16645 * configure.ac: Rename configure.in, require autoconf 2.59.
16646 * configure: Re-generate.
16648 2004-12-08 Daniel Jacobowitz <dan@debian.org>
16650 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
16651 LIBS when finished.
16652 * aclocal.m4: Regenerated.
16653 * configure: Regenerated.
16655 2004-11-21 Andreas Schwab <schwab@suse.de>
16657 * linux-m68k-low.c (m68k_num_gregs): Define.
16658 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
16659 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
16660 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
16661 (m68k_breakpoint_at): New. Add to the_low_target.
16663 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
16664 srv_linux_thread_db to yes.
16666 2004-10-20 Joel Brobecker <brobecker@gnat.com>
16668 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
16669 (ARCH_SET_FS): Likewise.
16670 (ARCH_GET_FS): Likewise.
16671 (ARCH_GET_GS): Likewise.
16673 2004-10-16 Daniel Jacobowitz <dan@debian.org>
16675 * linux-i386-low.c (ps_get_thread_area): New.
16676 * linux-x86-64-low.c (ps_get_thread_area): New.
16677 * linux-low.c: Include <sys/syscall.h>.
16678 (linux_kill_one_process): Don't kill the first thread here.
16679 (linux_kill): Kill the first thread here.
16680 (kill_lwp): New function.
16681 (send_sigstop, linux_send_signal): Use it.
16682 * proc-service.c: Clean up #ifdefs.
16683 (fpregset_info): Delete.
16684 (ps_lgetregs): Update and enable implementation.
16685 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
16687 * remote-utils.c (struct sym_cache, symbol_cache): New.
16688 (input_interrupt): Print a clearer message.
16689 (async_io_enabled): New variable.
16690 (enable_async_io, disable_async_io): Use it. Update comments.
16691 (look_up_one_symbol): Use the symbol cache.
16692 * thread-db.c (thread_db_look_up_symbols): New function.
16693 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
16695 2004-10-16 Daniel Jacobowitz <dan@debian.org>
16697 * configure.in: Test for -rdynamic.
16698 * configure: Regenerated.
16699 * Makefile (INTERNAL_LDFLAGS): New.
16700 (gdbserver, gdbreplay): Use it.
16702 2004-09-02 Andrew Cagney <cagney@gnu.org>
16704 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
16706 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
16708 * linux-low.c (linux_wait): Clear all_processes list also.
16710 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
16712 * linux-low.c: Include <errno.h>. Remove extern declaration of
16715 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
16717 * gdbreplay.c, server.h, utils.c: Update copyright years.
16719 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
16721 * server.c (main): Print child status or termination signal from
16722 variable 'signal', not 'sig'.
16724 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
16726 * linux-low.c (linux_read_memory): Change return type to
16727 int. Check for and return error from ptrace().
16728 * target.c (read_inferior_memory): Change return type to int. Pass
16729 back return status from the_target->read_memory().
16730 * target.h (struct target_ops): Adapt *read_memory() prototype.
16732 (read_inferior_memory): Adapt prototype.
16733 * server.c (main): Return an error packet if
16734 read_inferior_memory() returns an error.
16736 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
16738 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
16739 Unify with other clean targets.
16741 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
16743 * server.c (handle_v_cont): Call set_desired_inferior.
16745 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
16747 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
16749 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
16751 * linux-low.c (linux_wait): Unblock async I/O.
16752 (linux_resume): Block and enable async I/O.
16753 * remote-utils.c (block_async_io, unblock_async_io): New functions.
16754 * server.h (block_async_io, unblock_async_io): Add prototypes.
16756 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
16758 * remote-utils.c (remote_open): Print a status notice after
16759 opening a TCP port.
16760 * server.c (attach_inferior): Print a status notice after
16763 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
16765 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
16767 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
16769 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
16771 * server.c, target.h: Update copyright years.
16773 2004-02-25 Roland McGrath <roland@redhat.com>
16775 * target.h (struct target_ops): New member `read_auxv'.
16776 * server.c (handle_query): Handle qPart:auxv:read: query using that.
16777 * linux-low.c (linux_read_auxv): New function.
16778 (linux_target_ops): Initialize `read_auxv' member to that.
16780 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16782 Committed by Jim Blandy <jimb@redhat.com>.
16784 * linux-s390-low.c (s390_num_regs): Update.
16785 (s390_regmap): Remove control registers. Use __s390x__ predefine
16786 instead of GPR_SIZE to distiguish s390 and s390x targets.
16788 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
16790 * linux-low.c: Update copyright year.
16791 (check_removed_breakpoint): Clear pending_is_breakpoint.
16792 (linux_set_resume_request, linux_queue_one_thread)
16793 (resume_status_pending_p): New functions.
16794 (linux_continue_one_thread): Use process->resume.
16795 (linux_resume): Only resume threads if there are no pending events.
16796 * linux-low.h (struct process_info): Add resume request
16799 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
16801 * regcache.c (new_register_cache): Clear the allocated register
16802 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
16804 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
16806 * linux-low.c (linux_resume): Take a struct thread_resume *
16808 (linux_wait): Update call.
16809 (resume_ptr): New static variable.
16810 (linux_continue_one_thread): Renamed from
16811 linux_continue_one_process. Use resume_ptr.
16812 (linux_resume): Use linux_continue_one_thread.
16813 * server.c (handle_v_cont, handle_v_requests): New functions.
16814 (myresume): New function.
16815 (main): Handle 'v' case.
16816 * target.h (struct thread_resume): New type.
16817 (struct target_ops): Change argument of "resume" to struct
16819 (myresume): Delete macro.
16821 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
16823 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
16824 (uninstall): Support DESTDIR.
16826 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
16828 * configure.srv: Add xscale*linux copy of arm*linux entry.
16830 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
16832 * linux-arm-low.c (arm_reinsert_addr): New function.
16833 (the_low_target): Add arm_reinsert_addr.
16835 2003-07-08 Mark Kettenis <kettenis@gnu.org>
16837 * mem-break.c: Remove whitespace at end of file.
16839 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
16841 * configure.in: Check whether we need to prototype strerror.
16842 * server.h: Optionally prototype strerror.
16843 * gdbreplay.c (perror_with_name): Use strerror.
16844 * linux-low.c (linux_attach_lwp): Use strerror.
16845 * utils.c (perror_with_name): Use strerror.
16846 * config.in, configure: Regenerated.
16848 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
16850 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
16851 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
16853 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
16855 * Makefile.in (SFILES): Update.
16856 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
16857 low-sun3.c: Remove files.
16859 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
16861 * linux-low.c: Move comment to linux_thread_alive where it belonged.
16862 (linux_detach_one_process, linux_detach): New functions.
16863 (linux_target_ops): Add linux_detach.
16864 * server.c (main): Handle 'D' packet.
16865 * target.h (struct target_ops): Add "detach" member.
16866 (detach_inferior): Define.
16868 2003-06-13 Mark Kettenis <kettenis@gnu.org>
16870 From Kelley Cook <kelleycook@wideopenwest.com>:
16871 * configure.srv: Accept i[34567]86 variants.
16873 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
16875 * linux-low.c (linux_wait_for_event): Correct comment typos.
16876 (linux_resume_one_process): Call check_removed_breakpoint.
16877 (linux_send_signal): New function.
16878 (linux_target_ops): Add linux_send_signal.
16879 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
16881 * target.h (struct target_ops): Add send_signal.
16883 2003-05-29 Jim Blandy <jimb@redhat.com>
16885 * linux-low.c (usr_store_inferior_registers): Transfer buf in
16886 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
16887 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
16888 away part of the register's value.
16890 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
16892 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
16893 (linux_wait_for_event, linux_init_signals): Likewise.
16895 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
16897 * configure.in: Check for stdlib.h.
16898 * configure: Regenerated.
16899 * config.in: Regenerated.
16901 2003-01-04 Andreas Schwab <schwab@suse.de>
16903 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
16905 2003-01-02 Andrew Cagney <ac131313@redhat.com>
16907 * Makefile.in: Remove obsolete code.
16909 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
16911 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
16912 defined(PT_FPR0_HI).
16914 2002-11-17 Stuart Hughes <seh@zee2.com>
16916 * linux-arm-low.c (arm_num_regs): Increase.
16917 (arm_regmap): Include status register.
16919 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
16921 * linux-low.c (register_addr): Remove incorrect -1 check.
16923 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
16925 * linux-low.c (linux_create_inferior): Call setpgid. Return
16927 (unstopped_p, linux_signal_pid): Remove.
16928 (linux_target_ops): Remove linux_signal_pid.
16929 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
16930 global instead of target method.
16931 * target.h (struct target_ops): Remove signal_pid. Update comment
16932 for create_inferior.
16933 * server.c (signal_pid): New variable.
16934 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
16935 gdbserver. Set the child to be the foreground process group.
16936 (attach_inferior): Set signal_pid.
16938 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
16940 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
16942 2002-08-20 Jim Blandy <jimb@redhat.com>
16944 * Makefile.in (LDFLAGS): Allow the configure script to establish a
16947 2002-08-01 Andrew Cagney <cagney@redhat.com>
16949 * Makefile.in: Make chill references obsolete.
16951 2002-07-24 Kevin Buettner <kevinb@redhat.com>
16953 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
16954 * configure: Regenerate.
16955 * config.in: Regenerate.
16957 2002-07-09 David O'Brien <obrien@FreeBSD.org>
16959 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
16960 (perror_with_name, remote_close, remote_open, expect, play): Static.
16962 2002-07-04 Michal Ludvig <mludvig@suse.cz>
16964 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
16965 byte offsets instead of an array of indexes.
16966 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
16968 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
16970 * regcache.c: Add comment.
16972 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
16974 * thread-db.c: New file.
16975 * proc-service.c: New file.
16976 * acinclude.m4: New file.
16977 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
16978 proc-service.o, and thread-db.o.
16979 (linux-low.o): Add USE_THREAD_DB.
16980 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
16981 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
16982 * aclocal.m4: Regenerated.
16983 * config.in: Regenerated.
16984 * configure: Regenerated.
16985 * configure.in: Check for proc_service.h, sys/procfs.h,
16986 thread_db.h, and linux/elf.h headrs.
16987 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
16988 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
16989 Check for -lthread_db and thread support.
16990 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
16991 PowerPC, and SuperH.
16992 * i387-fp.c: Constify arguments.
16993 * i387-fp.h: Likewise.
16994 * inferiors.c: (struct thread_info): Renamed from
16995 `struct inferior_info'. Remove PID member. Use generic inferior
16996 list header. All uses updated.
16997 (inferiors, signal_pid): Removed.
16998 (all_threads): New variable.
16999 (get_thread): Define.
17000 (add_inferior_to_list): New function.
17001 (for_each_inferior): New function.
17002 (change_inferior_id): New function.
17003 (add_inferior): Removed.
17004 (remove_inferior): New function.
17005 (add_thread): New function.
17006 (free_one_thread): New function.
17007 (remove_thread): New function.
17008 (clear_inferiors): Use for_each_inferior and free_one_thread.
17009 (find_inferior): New function.
17010 (find_inferior_id): New function.
17011 (inferior_target_data): Update argument type.
17012 (set_inferior_target_data): Likewise.
17013 (inferior_regcache_data): Likewise.
17014 (set_inferior_regcache_data): Likewise.
17015 * linux-low.c (linux_bp_reinsert): Remove.
17016 (all_processes, stopping_threads, using_thrads)
17017 (struct pending_signals, debug_threads, pid_of): New.
17018 (inferior_pid): Replace with macro.
17019 (struct inferior_linux_data): Remove.
17020 (get_stop_pc, add_process): New functions.
17021 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
17022 Use add_process and add_thread.
17023 (linux_attach_lwp): New function, based on old linux_attach. Use
17024 add_process and add_thread. Set stop_expected for new threads.
17025 (linux_attach): New function.
17026 (linux_kill_one_process): New function.
17027 (linux_kill): Kill all LWPs.
17028 (linux_thread_alive): Use find_inferior_id.
17029 (check_removed_breakpoints, status_pending_p): New functions.
17030 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
17031 Update. Use WNOHANG. Wait for cloned processes also. Update process
17032 struct for the found process.
17033 (linux_wait_for_event): New function.
17034 (linux_wait): Use it. Support LWPs.
17035 (send_sigstop, wait_for_sigstop, stop_all_processes)
17036 (linux_resume_one_process, linux_continue_one_process): New functions.
17037 (linux_resume): Support LWPs.
17038 (REGISTER_RAW_SIZE): Remove.
17039 (fetch_register): Use register_size instead. Call supply_register.
17040 (usr_store_inferior_registers): Likewise. Call collect_register.
17041 Fix recursive case.
17042 (regsets_fetch_inferior_registers): Improve error message.
17043 (regsets_store_inferior_registers): Add debugging.
17044 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
17045 (unstopped_p, linux_signal_pid): New functions.
17046 (linux_target_ops): Add linux_signal_pid.
17047 (linux_init_signals): New function.
17048 (initialize_low): Call it. Initialize using_threads.
17049 * regcache.c (inferior_regcache_data): Add valid
17051 (get_regcache): Fetch registers lazily. Add fetch argument
17052 and update all callers.
17053 (regcache_invalidate_one, regcache_invalidate): New
17055 (new_register_cache): Renamed from create_register_cache.
17056 Return the new regcache.
17057 (free_register_cache): Change argument to a void *.
17058 (registers_to_string, registers_from_string): Call get_regcache
17059 with fetch flag set.
17060 (register_data): Make static. Pass fetch flag to get_regcache.
17061 (supply_register): Call get_regcache with fetch flag clear.
17062 (collect_register): Call get_regcache with fetch flag set.
17063 (collect_register_as_string): New function.
17064 * regcache.h: Update.
17065 * remote-utils.c (putpkt): Flush after debug output and use
17067 Handle input interrupts while waiting for an ACK.
17068 (input_interrupt): Use signal_pid method.
17069 (getpkt): Flush after debug output and use stderr.
17070 (outreg): Use collect_register_as_string.
17071 (new_thread_notify, dead_thread_notify): New functions.
17072 (prepare_resume_reply): Check using_threads. Set thread_from_wait
17073 and general_thread.
17074 (look_up_one_symbol): Flush after debug output.
17075 * server.c (step_thread, server_waiting): New variables.
17076 (start_inferior): Don't use signal_pid. Update call to mywait.
17077 (attach_inferior): Update call to mywait.
17078 (handle_query): Handle qfThreadInfo and qsThreadInfo.
17079 (main): Don't fetch/store registers explicitly. Use
17080 set_desired_inferior. Support proposed ``Hs'' packet. Update
17082 * server.h: Update.
17083 (struct inferior_list, struct_inferior_list_entry): New.
17084 * target.c (set_desired_inferior): New.
17085 (write_inferior_memory): Constify.
17086 (mywait): New function.
17087 * target.h: Update.
17088 (struct target_ops): New signal_pid method.
17089 (mywait): Removed macro, added prototype.
17091 * linux-low.h (regset_func): Removed.
17092 (regset_fill_func, regset_store_func): New.
17093 (enum regset_type): New.
17094 (struct regset_info): Add type field. Use new operation types.
17095 (struct linux_target_ops): stop_pc renamed to get_pc.
17096 Add decr_pc_after_break and breakpoint_at.
17097 (get_process, get_thread_proess, get_process_thread)
17098 (strut process_info, all_processes, linux_attach_lwp)
17099 (thread_db_init): New.
17101 * linux-arm-low.c (arm_get_pc, arm_set_pc,
17102 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
17103 (the_low_target): Add new members.
17104 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
17105 (i386_store_fpxregset): Constify.
17106 (target_regsets): Add new kind identifier.
17107 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
17108 (i386_set_pc): Add debugging.
17109 (i386_breakpoint_at): New function.
17110 (the_low_target): Add new members.
17111 * linux-mips-low.c (mips_get_pc, mips_set_pc)
17112 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
17113 (mips_breakpoint_at): New.
17114 (the_low_target): Add new members.
17115 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
17116 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
17117 (the_low_target): Add new members.
17118 * linux-sh-low.c (sh_get_pc, sh_set_pc)
17119 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
17120 (the_low_target): Add new members.
17121 * linux-x86-64-low.c (target_regsets): Add new kind
17124 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
17126 From Martin Pool <mbp@samba.org>:
17127 * server.c (gdbserver_usage): New function.
17130 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
17132 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
17133 stop_at -> stop_pc.
17135 2002-05-04 Andrew Cagney <ac131313@redhat.com>
17137 * Makefile.in: Remove obsolete code.
17139 2002-04-24 Michal Ludvig <mludvig@suse.cz>
17141 * linux-low.c (regsets_fetch_inferior_registers),
17142 (regsets_store_inferior_registers): Removed cast to int from
17144 * regcache.h: Added declaration of struct inferior_info.
17146 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
17148 * inferiors.c (struct inferior_info): Add regcache_data.
17149 (add_inferior): Call create_register_cache.
17150 (clear_inferiors): Call free_register_cache.
17151 (inferior_regcache_data, set_inferior_regcache_data): New functions.
17152 * regcache.c (struct inferior_regcache_data): New.
17153 (registers): Remove.
17154 (get_regcache): New function.
17155 (create_register_cache, free_register_cache): New functions.
17156 (set_register_cache): Don't initialize the register cache here.
17157 (registers_to_string, registers_from_string, register_data): Call
17159 * regcache.h: Add prototypes.
17160 * server.h: Likewise.
17162 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
17164 * mem-break.c: New file.
17165 * mem-break.h: New file.
17166 * Makefile.in: Add mem-break.o rule; update server.h
17168 * inferiors.c (struct inferior_info): Add target_data
17170 (clear_inferiors): Free target_data member if set.
17171 (inferior_target_data, set_inferior_target_data): New functions.
17172 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
17173 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
17174 * linux-low.c (linux_bp_reinsert): New variable.
17175 (struct inferior_linux_data): New.
17176 (linux_create_inferior): Use set_inferior_target_data.
17177 (linux_attach): Likewise. Call add_inferior.
17178 (linux_wait_for_one_inferior): New function.
17179 (linux_wait): Call it.
17180 (linux_write_memory): Add const.
17181 (initialize_low): Call set_breakpoint_data.
17182 * linux-low.h (struct linux_target_ops): Add breakpoint
17184 * server.c (attach_inferior): Remove extra add_inferior
17186 * server.h: Include mem-break.h. Update inferior.c
17188 * target.c (read_inferior_memory)
17189 (write_inferior_memory): New functions.
17190 * target.h (read_inferior_memory)
17191 (write_inferior_memory): Change macros to prototypes.
17192 (struct target_ops): Update comments. Add const to write_memory
17195 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
17197 * linux-low.c (usr_store_inferior_registers): Support
17198 registers which are allowed to fail to store.
17199 * linux-low.h (linux_target_ops): Likewise.
17200 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
17201 (ppc_cannot_store_register): FPSCR may not be storable.
17203 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17205 * server.h: Include <string.h> if HAVE_STRING_H.
17206 * ChangeLog: Correct paths in last ChangeLog entry.
17208 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17210 * linux-low.h: Remove obsolete prototypes.
17211 (struct linux_target_ops): New.
17212 (extern the_low_target): New.
17213 * linux-low.c (num_regs, regmap): Remove declarations.
17214 (register_addr): Use the_low_target explicitly.
17215 (fetch_register): Likewise.
17216 (usr_fetch_inferior_registers): Likewise.
17217 (usr_store_inferior_registers): Likewise.
17218 * linux-arm-low.c (num_regs): Remove.
17219 (arm_num_regs): Define.
17220 (arm_regmap): Renamed from regmap, made static.
17221 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
17223 (arm_cannot_store_register): Renamed from cannot_store_register,
17225 (the_low_target): New.
17226 * linux-i386-low.c (num_regs): Remove.
17227 (i386_num_regs): Define.
17228 (i386_regmap): Renamed from regmap, made static.
17229 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
17231 (i386_cannot_store_register): Renamed from cannot_store_register,
17233 (the_low_target): New.
17234 * linux-ia64-low.c (num_regs): Remove.
17235 (ia64_num_regs): Define.
17236 (ia64_regmap): Renamed from regmap, made static.
17237 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
17239 (ia64_cannot_store_register): Renamed from cannot_store_register,
17241 (the_low_target): New.
17242 * linux-m68k-low.c (num_regs): Remove.
17243 (m68k_num_regs): Define.
17244 (m68k_regmap): Renamed from regmap, made static.
17245 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
17247 (m68k_cannot_store_register): Renamed from cannot_store_register,
17249 (the_low_target): New.
17250 * linux-mips-low.c (num_regs): Remove.
17251 (mips_num_regs): Define.
17252 (mips_regmap): Renamed from regmap, made static.
17253 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
17255 (mips_cannot_store_register): Renamed from cannot_store_register,
17257 (the_low_target): New.
17258 * linux-ppc-low.c (num_regs): Remove.
17259 (ppc_num_regs): Define.
17260 (ppc_regmap): Renamed from regmap, made static.
17261 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
17263 (ppc_cannot_store_register): Renamed from cannot_store_register,
17265 (the_low_target): New.
17266 * linux-s390-low.c (num_regs): Remove.
17267 (s390_num_regs): Define.
17268 (s390_regmap): Renamed from regmap, made static.
17269 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
17271 (s390_cannot_store_register): Renamed from cannot_store_register,
17273 (the_low_target): New.
17274 * linux-sh-low.c (num_regs): Remove.
17275 (sh_num_regs): Define.
17276 (sh_regmap): Renamed from regmap, made static.
17277 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
17279 (sh_cannot_store_register): Renamed from cannot_store_register,
17281 (the_low_target): New.
17282 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
17283 (the_low_target): New.
17285 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17287 * Makefile.in: Add stamp-h target.
17288 * configure.in: Create stamp-h.
17289 * configure: Regenerated.
17291 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17293 * inferiors.c: New file.
17294 * target.c: New file.
17295 * target.h: New file.
17296 * Makefile.in: Add target.o and inferiors.o. Update
17298 * linux-low.c (inferior_pid): New static variable,
17299 moved from server.c.
17300 (linux_create_inferior): Renamed from create_inferior.
17301 Call add_inferior. Return 0 on success instead of a PID.
17302 (linux_attach): Renamed from myattach.
17303 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
17304 (linux_thread_alive): Renamed from mythread_alive.
17305 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
17307 (linux_resume): Renamed from myresume. Add missing ``return 0''.
17308 (regsets_store_inferior_registers): Correct error message.
17309 Add missing ``return 0''.
17310 (linux_fetch_registers): Renamed from fetch_inferior_registers.
17311 (linux_store_registers): Renamed from store_inferior_registers.
17312 (linux_read_memory): Renamed from read_inferior_memory.
17313 (linux_write_memory): Renamed from write_inferior_memory.
17314 (linux_target_ops): New structure.
17315 (initialize_low): Call set_target_ops ().
17316 * remote-utils.c (unhexify): New function.
17317 (hexify): New function.
17318 (input_interrupt): Send signals to ``signal_pid''.
17319 * server.c (inferior_pid): Remove.
17320 (start_inferior): Update create_inferior call.
17321 (attach_inferior): Call add_inferior.
17322 (handle_query): New function.
17323 (main): Call handle_query for `q' packets.
17324 * server.h: Include "target.h". Remove obsolete prototypes.
17325 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
17327 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17329 * Makefile.in: Add WARN_CFLAGS. Update configury
17331 * configure.in: Check for <string.h>
17332 * configure: Regenerate.
17333 * config.in: Regenerate.
17334 * gdbreplay.c: Include needed system headers.
17335 (remote_open): Remove strchr prototype.
17336 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
17337 * regcache.c (supply_register): Change buf argument to const void *.
17338 (supply_register_by_name): Likewise.
17339 (collect_register): Change buf argument to void *.
17340 (collect_register_by_name): Likewise.
17341 * regcache.h: Add missing prototypes.
17342 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
17343 * server.c (handle_query): New function.
17344 (attached): New static variable, moved out of main.
17345 (main): Quiet longjmp clobber warnings.
17346 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
17347 * utils.c (error): Remove NORETURN.