gdbserver: Add linux_get_hwcap
[deliverable/binutils-gdb.git] / gdb / gdbserver / ChangeLog
1 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2
3 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4 (aarch64_arch_setup): Call linux_get_hwcap.
5 * linux-arm-low.c (arm_get_hwcap): Remove function.
6 (arm_read_description): Call linux_get_hwcap.
7 * linux-low.c (linux_get_auxv): New function.
8 (linux_get_hwcap): Likewise.
9 (linux_get_hwcap2): Likewise.
10 * linux-low.h (linux_get_hwcap): New declaration.
11 (linux_get_hwcap2): Likewise.
12 * linux-ppc-low.c (ppc_get_auxv): Remove function.
13 (ppc_arch_setup): Call linux_get_hwcap.
14 * linux-s390-low.c (s390_get_hwcap): Remove function.
15 (s390_arch_setup): Call linux_get_hwcap.
16
17 2019-03-22 Alan Hayward <alan.hayward@arm.com>
18 Jiong Wang <jiong.wang@arm.com>
19
20 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
21 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
22 to fail.
23 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
24
25 2019-03-22 Alan Hayward <alan.hayward@arm.com>
26 Jiong Wang <jiong.wang@arm.com>
27
28 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
29 (aarch64_get_hwcap): New function.
30 (aarch64_arch_setup): Read APIA hwcap.
31
32 2019-03-22 Alan Hayward <alan.hayward@arm.com>
33 Jiong Wang <jiong.wang@arm.com>
34
35 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
36 (initialize_low_tracepoint): Likewise.
37 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
38 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
39 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
40 (aarch64_linux_read_description): Likewise.
41 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
42
43 2019-03-12 John Baldwin <jhb@FreeBSD.org>
44
45 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
46 i386_create_target_description for 'segments' parameter.
47 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
48 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
49 * win32-i386-low.c (i386_arch_setup): Likewise.
50
51 2019-03-12 Tom Tromey <tromey@adacore.com>
52
53 * linux-low.c (iterate_over_lwps): Update.
54
55 2019-03-06 Tom Tromey <tom@tromey.com>
56
57 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
58 (captured_main): Use SCOPE_EXIT.
59
60 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
61
62 * configure.srv: Use '$enable_unittest' instead of '$development'
63 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
64 case.
65
66 2019-02-27 Tom Tromey <tromey@adacore.com>
67
68 * gdbreplay.c (logchar): Handle \r\n.
69
70 2019-02-07 Alan Hayward <alan.hayward@arm.com>
71
72 * linux-low.c (linux_attach): Add process before lwp.
73 * server.c (attach_inferior): Check if already attached.
74
75 2019-02-07 Tom Tromey <tom@tromey.com>
76
77 * x86-tdesc.h: Rename include guard.
78 * x86-low.h: Add include guard.
79 * wincecompat.h: Rename include guard.
80 * win32-low.h: Add include guard.
81 * utils.h: Rename include guard.
82 * tracepoint.h: Rename include guard.
83 * tdesc.h: Rename include guard.
84 * target.h: Rename include guard.
85 * server.h: Rename include guard.
86 * remote-utils.h: Rename include guard.
87 * regcache.h: Rename include guard.
88 * nto-low.h: Rename include guard.
89 * notif.h: Add include guard.
90 * mem-break.h: Rename include guard.
91 * lynx-low.h: Add include guard.
92 * linux-x86-tdesc.h: Add include guard.
93 * linux-s390-tdesc.h: Add include guard.
94 * linux-ppc-tdesc-init.h: Add include guard.
95 * linux-low.h: Add include guard.
96 * linux-aarch64-tdesc.h: Add include guard.
97 * linux-aarch32-low.h: Add include guard.
98 * inferiors.h: Rename include guard.
99 * i387-fp.h: Rename include guard.
100 * hostio.h: Rename include guard.
101 * gdbthread.h: Rename include guard.
102 * gdb_proc_service.h: Rename include guard.
103 * event-loop.h: Rename include guard.
104 * dll.h: Rename include guard.
105 * debug.h: Rename include guard.
106 * ax.h: Rename include guard.
107
108 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
109
110 PR gdb/23985
111 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
112 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
113
114 2019-01-25 Tom Tromey <tom@tromey.com>
115
116 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
117
118 2019-01-25 Tom Tromey <tom@tromey.com>
119
120 * win32-low.c: Fix common/ includes.
121 * win32-i386-low.c: Fix common/ includes.
122 * tracepoint.c: Fix common/ includes.
123 * thread-db.c: Fix common/ includes.
124 * target.h: Fix common/ includes.
125 * symbol.c: Fix common/ includes.
126 * spu-low.c: Fix common/ includes.
127 * server.h: Fix common/ includes.
128 * server.c: Fix common/ includes.
129 * remote-utils.c: Fix common/ includes.
130 * regcache.h: Fix common/ includes.
131 * regcache.c: Fix common/ includes.
132 * nto-x86-low.c: Fix common/ includes.
133 * notif.h: Fix common/ includes.
134 * mem-break.h: Fix common/ includes.
135 * lynx-low.c: Fix common/ includes.
136 * lynx-i386-low.c: Fix common/ includes.
137 * linux-x86-tdesc-selftest.c: Fix common/ includes.
138 * linux-x86-low.c: Fix common/ includes.
139 * linux-low.c: Fix common/ includes.
140 * inferiors.h: Fix common/ includes.
141 * i387-fp.c: Fix common/ includes.
142 * hostio.c: Fix common/ includes.
143 * hostio-errno.c: Fix common/ includes.
144 * gdbthread.h: Fix common/ includes.
145 * gdbreplay.c: Fix common/ includes.
146 * fork-child.c: Fix common/ includes.
147 * event-loop.c: Fix common/ includes.
148 * ax.c:
149 (enum gdb_agent_op): Fix common/ includes.
150
151 2019-01-21 Tom Tromey <tom@tromey.com>
152
153 * tracepoint.c: Fix includes.
154 * remote-utils.c: Fix includes.
155 * linux-x86-low.c: Fix includes.
156
157 2019-01-01 Joel Brobecker <brobecker@adacore.com>
158
159 * gdbreplay.c (gdbreplay_version): Update copyright year in
160 version message.
161 * server.c (gdbserver_version): Likewise.
162
163 2018-12-05 Alan Hayward <alan.hayward@arm.com>
164
165 * linux-low.c (add_lwp): Switch ordering.
166
167 2018-11-29 Tom Tromey <tom@tromey.com>
168
169 * win32-low.c (win32_join): Take pid, not process.
170 * target.h (struct target_ops) <join>: Change argument type.
171 (join_inferior): Change argument name.
172 * spu-low.c (spu_join): Take pid, not process.
173 * server.c (handle_detach): Preserve pid before destroying
174 process.
175 * lynx-low.c (lynx_join): Take pid, not process.
176 * linux-low.c (linux_join): Take pid, not process.
177
178 2018-11-23 Alan Hayward <alan.hayward@arm.com>
179
180 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
181 (aarch64_cannot_fetch_register): Likewise.
182 (struct linux_target_ops): Update references.
183
184 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
185
186 * linux-ppc-low.c: Include nat/linux-ptrace.h.
187
188 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
189
190 * configure.srv (ipa_ppc_linux_regobj): Add
191 powerpc-isa207-htm-vsx32l-ipa.o and
192 powerpc-isa207-htm-vsx64l-ipa.o.
193 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
194 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
195 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
196 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
197 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
198 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
199 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
200 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
201 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
202 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
203 (init_registers_powerpc_isa207_htm_vsx32l)
204 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
205 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
206 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
207 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
208 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
209 (ppc_store_tm_ctarregset): New functions.
210 (ppc_regsets): Add entries for HTM regsets.
211 (ppc_arch_setup): Set htm in features struct when needed. Set
212 sizes for the HTM regsets.
213 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
214 (initialize_low_arch): Call
215 init_registers_powerpc_isa207_htm_vsx32l and
216 init_registers_powerpc_isa207_htm_vsx64l.
217 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
218 PPC_TDESC_ISA207_HTM_VSX.
219 (initialize_low_tracepoint): Call
220 init_registers_powerpc_isa207_htm_vsx32l and
221 init_registers_powerpc_isa207_htm_vsx64l.
222
223 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
224
225 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
226 rs6000/power-linux-pmu.xml to srv_xmlfiles.
227 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
228 (ppc_store_pmuregset): New functions.
229 (ppc_regsets): Add entries for ebb and pmu regsets.
230 (ppc_arch_setup): Set isa207 in features struct if the ebb and
231 pmu regsets are available. Set sizes for these regsets.
232
233 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
234
235 * configure.srv (ipa_ppc_linux_regobj): Add
236 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
237 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
238 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
239 rs6000/powerpc-isa207-vsx32l.xml, and
240 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
241 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
242 <PPC_TDESC_ISA207_VSX>: New enum value.
243 (init_registers_powerpc_isa207_vsx32l): Declare.
244 (init_registers_powerpc_isa207_vsx64l): Declare.
245 * linux-ppc-low.c (ppc_fill_tarregset): New function.
246 (ppc_store_tarregset): New function.
247 (ppc_regsets): Add entry for the TAR regset.
248 (ppc_arch_setup): Set isa207 in features struct when needed. Set
249 size for the TAR regsets.
250 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
251 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
252 and init_registers_powerpc_isa207_vsx64l.
253 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
254 (initialize_low_tracepoint): Call
255 init_registers_powerpc_isa207_vsx32l and
256 init_registers_powerpc_isa207_vsx64l.
257
258 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
259 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
260
261 * configure.srv (ipa_ppc_linux_regobj): Add
262 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
263 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
264 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
265 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
266 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
267 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
268 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
269 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
270 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
271 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
272 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
273 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
274 (ppc_hwcap): Add comment.
275 (ppc_hwcap2): New global.
276 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
277 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
278 (ppc_regsets): Add entries for the DSCR and PPR regsets.
279 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
280 when needed. Set sizes for the the DSCR and PPR regsets.
281 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
282 (initialize_low_arch): Call
283 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
284 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
285 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
286 PPC_TDESC_ISA205_PPR_DSCR_VSX.
287 (initialize_low_tracepoint): Call
288 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
289 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
290
291 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
292
293 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
294
295 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
296 Simon Marchi <simark@simark.ca>
297
298 * acinclude.m4: Include "../selftest.m4".
299 * configure: Regenerate.
300 * configure.ac: Use "GDB_AC_SELFTEST".
301 * configure.srv: Use "$enable_unittests" instead of
302 "$development" when checking whether unit tests have been
303 enabled.
304 * server.c (captured_main): Update message informing that
305 selftests have been disabled.
306
307 2018-10-04 Tom Tromey <tom@tromey.com>
308
309 * configure: Rebuild.
310
311 2018-10-04 Tom Tromey <tom@tromey.com>
312
313 * server.c (handle_status): Rename inner "thread".
314 (process_serial_event): Declare "res" in 'm' case.
315 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
316 (iterate_over_lwps): Rename inner "thread".
317 (linux_qxfer_libraries_svr4): Rename inner "len".
318 * gdbthread.h (find_thread_in_random): Rename inner "thread".
319
320 2018-10-01 Gary Benson <gbenson@redhat.com>
321
322 * gdb_proc_service.h: Moved common code to
323 common/gdb_proc_service.h.
324
325 2018-10-01 Gary Benson <gbenson@redhat.com>
326
327 * gdb_proc_service.h: Synchronize comments and whitespace with
328 GDB's version of this file.
329
330 2018-09-25 Tom Tromey <tom@tromey.com>
331
332 * configure: Rebuild.
333 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
334
335 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
336
337 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
338 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
339 ($(IPA_LIB)): Sort IPA_OBJS.
340
341 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
342
343 * Makefile.in: Remove references to $(ADD_DEPS).
344
345 2018-09-16 Tom Tromey <tom@tromey.com>
346
347 * remote-utils.c (remote_open): Use GNU style for metasyntactic
348 variables.
349 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
350 variables.
351
352 2018-09-05 Tom Tromey <tom@tromey.com>
353
354 * configure: Rebuild.
355
356 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
357
358 PR build/23399
359 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
360
361 2018-08-27 Tom Tromey <tom@tromey.com>
362
363 PR build/23087:
364 * configure: Rebuild.
365
366 2018-08-27 Tom Tromey <tom@tromey.com>
367
368 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
369 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
370 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
371 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
372 (s390x_emit_stack_adjust): Add casts to unsigned char.
373
374 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
375
376 PR gdb/23374
377 PR gdb/23375
378 * server.h (struct client_state) <disable_randomization>:
379 Initialize to 1.
380
381 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
382
383 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
384 variable.
385 (mips_supply_ptrace_register): Likewise.
386
387 2018-07-22 Tom Tromey <tom@tromey.com>
388
389 * configure: Rebuild.
390
391 2018-07-22 Tom Tromey <tom@tromey.com>
392
393 * win32-low.c (win32_create_inferior): Remove unused variables.
394 * gdbreplay.c (remote_open): Remove unused variable.
395 * remote-utils.c (remote_prepare): Remove unused variable.
396 * x86-tdesc.h (X86_TDESC_H): Define.
397 (amd64_expedite_regs): Define conditionally.
398 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
399 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
400 * remote-utils.c (readchar): Remove unused variable.
401
402 2018-07-13 Pedro Alves <palves@redhat.com>
403
404 * linux-low.c (linux_kill): Change parameter to process_info
405 pointer instead of pid. Adjust.
406 * lynx-low.c (lynx_kill): Likewise.
407 * nto-low.c (nto_kill): Likewise.
408 * spu-low.c (spu_kill): Likewise.
409 * win32-low.c (win32_kill): Likewise.
410 * server.c (handle_v_kill, kill_inferior_callback)
411 (detach_or_kill_for_exit): Adjust.
412 * target.c (kill_inferior): Change parameter to process_info
413 pointer instead of pid. Adjust.
414 * target.h (struct target_ops) <kill>: Change parameter to
415 process_info pointer instead of pid. Adjust all implementations
416 and callers.
417 (kill_inferior): Likewise.
418
419 2018-07-13 Pedro Alves <palves@redhat.com>
420
421 * linux-low.c (linux_detach, linux_join): Change parameter to
422 process_info pointer instead of pid. Adjust.
423 * lynx-low.c (lynx_detach, lynx_join): Likewise.
424 * nto-low.c (nto_detach): Likewise.
425 * spu-low.c (spu_detach, spu_join): Likewise.
426 * win32-low.c (win32_detach, win32_join): Likewise.
427 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
428 * target.h (struct target_ops) <detach, join>: Change parameter to
429 process_info pointer instead of pid. Adjust all implementations
430 and callers.
431 (detach_inferior, join_inferior): Rename 'pid' parameter to
432 'proc'.
433
434 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
435 Jan Kratochvil <jan.kratochvil@redhat.com>
436 Paul Fertser <fercerpav@gmail.com>
437 Tsutomu Seki <sekiriki@gmail.com>
438
439 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
440 (OBS): Add 'common/netstuff.o'.
441 (GDBREPLAY_OBS): Likewise.
442 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
443 (remote_open): Implement support for IPv6
444 connections.
445 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
446 and 'wspiapi.h'.
447 (handle_accept_event): Accept connections from IPv6 sources.
448 (remote_prepare): Handle IPv6-style hostnames; implement
449 support for IPv6 connections.
450 (remote_open): Implement support for printing connections from
451 IPv6 sources.
452
453 2018-07-11 Pedro Alves <palves@redhat.com>
454
455 PR gdb/23377
456 * mem-break.c (any_persistent_commands): Add process_info
457 parameter and use it instead of relying on the current process.
458 Change return type to bool.
459 * mem-break.h (any_persistent_commands): Add process_info
460 parameter and change return type to bool.
461 * server.c (handle_detach): Remove require_running_or_return call.
462 Look up the process_info for the process we're about to detach.
463 If not found, return back error to GDB. Adjust
464 any_persistent_commands call to pass down a process pointer.
465
466 2018-07-11 Pedro Alves <palves@redhat.com>
467
468 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
469 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
470 instead of collect_register_by_name.
471 * regcache.c (regcache_raw_get_unsigned_by_name): New.
472 * regcache.h (regcache_raw_get_unsigned_by_name): New.
473
474 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
475 Pedro Alves <palves@redhat.com>
476
477 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
478
479 2018-07-03 Tom Tromey <tom@tromey.com>
480
481 * linux-low.c: Update.
482 * lynx-low.c: Update.
483 * mem-break.c: Update.
484 * nto-low.c: Update.
485 * remote-utils.c: Update.
486 * server.c: Update.
487 * spu-low.c: Update.
488 * target.c: Update.
489 * win32-low.c: Update.
490
491 2018-07-03 Tom Tromey <tom@tromey.com>
492
493 * server.c: Update.
494
495 2018-07-03 Tom Tromey <tom@tromey.com>
496
497 * linux-low.c: Update.
498
499 2018-07-03 Tom Tromey <tom@tromey.com>
500
501 * target.c: Update.
502
503 2018-07-03 Tom Tromey <tom@tromey.com>
504
505 * linux-low.c: Update.
506 * linux-mips-low.c: Update.
507 * lynx-low.c: Update.
508 * nto-low.c: Update.
509 * remote-utils.c: Update.
510 * server.c: Update.
511 * spu-low.c: Update.
512 * target.c: Update.
513 * thread-db.c: Update.
514
515 2018-07-03 Tom Tromey <tom@tromey.com>
516
517 * linux-low.c: Update.
518 * linux-mips-low.c: Update.
519 * lynx-low.c: Update.
520 * mem-break.c: Update.
521 * nto-low.c: Update.
522 * remote-utils.c: Update.
523 * server.c: Update.
524 * spu-low.c: Update.
525 * target.c: Update.
526 * tracepoint.c: Update.
527
528 2018-07-03 Tom Tromey <tom@tromey.com>
529
530 * linux-low.c: Update.
531 * linux-ppc-low.c: Update.
532 * linux-x86-low.c: Update.
533 * proc-service.c: Update.
534 * server.c: Update.
535 * spu-low.c: Update.
536 * thread-db.c: Update.
537 * win32-low.c: Update.
538
539 2018-07-03 Tom Tromey <tom@tromey.com>
540
541 * linux-low.c: Update.
542 * lynx-low.c: Update.
543 * nto-low.c: Update.
544 * remote-utils.c: Update.
545 * spu-low.c: Update.
546 * thread-db.c: Update.
547 * win32-low.c: Update.
548
549 2018-06-29 Joel Brobecker <brobecker@adacore.com>
550
551 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
552 parameter in call to 'amd64_create_target_description'.
553
554 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
555
556 * x86-tdesc.h: Remove executable permission flag.
557
558 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
559
560 * configure.ac: Remove AC_PREREQ, add missing quoting.
561 * configure: Re-generate.
562 * config.in: Re-generate.
563 * aclocal.m4: Re-generate.
564
565 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
566
567 * tracepoint.h (current_traceframe): Remove declaration.
568
569 2018-06-18 Alan Hayward <alan.hayward@arm.com>
570
571 * linux-aarch64-low.c (is_sve_tdesc): New function.
572 (aarch64_sve_regs_copy_to_regcache): Likewise.
573 (aarch64_sve_regs_copy_from_regcache): Likewise.
574 (aarch64_regs_info): Add SVE checks.
575 (initialize_low_arch): Initialize SVE.
576
577 2018-06-18 Alan Hayward <alan.hayward@arm.com>
578
579 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
580
581 2018-06-11 Alan Hayward <alan.hayward@arm.com>
582
583 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
584 (initialize_low_tracepoint): Likewise
585 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
586 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
587 param.
588 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
589 checks.
590 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
591
592 2018-06-11 Alan Hayward <alan.hayward@arm.com>
593
594 * server.h (PBUFSIZ): Increase size
595
596 2018-06-11 Alan Hayward <alan.hayward@arm.com>
597
598 * regcache.c (regcache::raw_compare): New function.
599 * regcache.h (regcache::raw_compare): New declaration.
600
601 2018-06-11 Alan Hayward <alan.hayward@arm.com>
602
603 * regcache.c (new_register_cache): Use new.
604 (free_register_cache): Use delete.
605 (register_data): Use const.
606 (supply_register): Move body inside regcache.
607 (regcache::raw_supply): New override function.
608 (collect_register): Move body inside regcache.
609 (regcache::raw_collect): New override function.
610 (regcache::get_register_status): New override function.
611 * regcache.h (struct regcache): Inherit from reg_buffer_common.
612
613 2018-06-09 Tom Tromey <tom@tromey.com>
614
615 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
616 declare queue.
617 (event_queue): Use std::queue.
618 (gdb_event_xfree): Remove.
619 (initialize_event_loop, process_event, wait_for_event): Update.
620
621 2018-06-08 Stan Cox <scox@redhat.com>
622
623 * win32-low.c (win32_create_inferior): last_ptid and last_status
624 moved to client_state.
625
626 2018-06-08 Pedro Alves <palves@redhat.com>
627
628 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
629 common/common-exceptions.o, common/common-utils.o,
630 common/errors.o, common/print-utils.o and utils.o.
631 * gdbreplay.c: Include "common-defs.h" instead of the two
632 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
633 string.h or alloca.h.
634 (perror_with_name): Delete.
635 (remote_open): Use xstrdup instead of strdup.
636 (main): Rename to ...
637 (captured_main): ... this.
638 (main): New.
639
640 2018-06-08 Tom Tromey <tom@tromey.com>
641
642 * linux-low.c (linux_low_read_btrace): Update.
643
644 2018-06-04 Stan Cox <scox@redhat.com>
645
646 * server.h (struct client_state): New.
647 * server.c (cont_thread, general_thread, multi_process)
648 (report_fork_events, report_vfork_events, report_exec_events)
649 (report_thread_events, swbreak_feature, hwbreak_feature)
650 (vCont_supported, disable_randomization, pass_signals)
651 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
652 Moved to client_state.
653 * remote-utils.c (remote_debug, noack_mode)
654 (transport_is_reliable): Moved to client_state.
655 * tracepoint.c (current_traceframe): Moved to client_state.
656
657 Update all callers.
658 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
659 linux-low.c, remote-utils.h, target.c: Use client_state.
660
661 2018-05-31 Alan Hayward <alan.hayward@arm.com>
662
663 * configure.srv: Add new c/h file.
664
665 2018-05-31 Alan Hayward <alan.hayward@arm.com>
666
667 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
668 null VQ.
669
670 2018-05-25 Maciej W. Rozycki <macro@mips.com>
671
672 * gdb.arch/mips-fpregset-core.exp: New test.
673 * gdb.arch/mips-fpregset-core.c: New test source.
674
675 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
676
677 PR server/23198
678 * hostio.c (require_int): Do not report overflow for integers
679 between 0xfffffff and 0x7fffffff.
680
681 2018-05-22 Maciej W. Rozycki <macro@mips.com>
682
683 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
684 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
685 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
686 functions.
687 (the_low_target): Wire them.
688
689 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
690
691 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
692 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
693 mode. Call collect_register_by_name with vscr using
694 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
695 (ppc_store_vrregset): Add and set vscr_offset variable as in
696 ppc_fill_vrregset. Call supply_register_by_name with vscr using
697 vscr_offset.
698
699 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
700
701 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
702 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
703 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
704
705 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
706
707 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
708 (ppc_store_vsxregset): Likewise.
709 (ppc_fill_vrregset): Likewise.
710 (ppc_store_vrregset): Likewise.
711 (ppc_fill_evrregset): Likewise.
712 (ppc_store_evrregset): Likewise.
713 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
714 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
715 needed.
716
717 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
718
719 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
720 wordsize of the inferior. Call ppc_linux_target_wordsize.
721
722 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
723
724 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
725 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
726 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
727 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
728 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
729 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
730 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
731 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
732 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
733 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
734 (tdesc_powerpc_e500l): Remove.
735 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
736 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
737 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
738 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
739 linux-ppc-tdesc.h.
740 (ppc_arch_setup): Remove target description matching code. Fill a
741 ppc_linux_features struct and call ppc_linux_match_description
742 with it.
743
744 2018-05-22 Maciej W. Rozycki <macro@mips.com>
745
746 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
747 width of the requested register exceeds the width of the
748 `ptrace' data type.
749 (mips_cannot_store_register): Likewise.
750
751 2018-05-21 Maciej W. Rozycki <macro@mips.com>
752
753 * linux-mips-low.c (mips_fetch_register): New function. Update
754 preceding comment.
755 (mips_store_gregset): Supply 0 rather than $restart for $zero.
756 (the_low_target): Wire `mips_fetch_register'.
757
758 2018-05-10 Joel Brobecker <brobecker@adacore.com>
759
760 * lynx-i386-low.c (LYNXOS_178): New macro.
761 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
762 the layout on LynxOS-178.
763 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
764 handle floating point registers that are not supported by
765 LynxOS-178.
766
767 2018-05-10 Tom Tromey <tom@tromey.com>
768
769 * configure: Rebuild.
770
771 2018-05-10 Joel Brobecker <brobecker@adacore.com>
772
773 PR server/23158:
774 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
775 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
776 Use it to set the expedite_regs field in the given tdesc.
777 * x86-tdesc.h: New file.
778 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
779 Adjust following the addition of the new expedite_regs parameter
780 to init_target_desc.
781 * linux-tic6x-low.c (tic6x_read_description): Likewise.
782 * linux-x86-tdesc.c: #include "x86-tdesc.h".
783 (i386_linux_read_description, amd64_linux_read_description):
784 Adjust following the addition of the new expedite_regs parameter
785 to init_target_desc.
786 * lynx-i386-low.c: #include "x86-tdesc.h".
787 (lynx_i386_arch_setup): Adjust following the addition of the new
788 expedite_regs parameter to init_target_desc.
789 * nto-x86-low.c: #include "x86-tdesc.h".
790 (nto_x86_arch_setup): Adjust following the addition of the new
791 expedite_regs parameter to init_target_desc.
792 * win32-i386-low.c: #include "x86-tdesc.h".
793 (i386_arch_setup): Adjust following the addition of the new
794 expedite_regs parameter to init_target_desc.
795
796 2018-05-10 Joel Brobecker <brobecker@adacore.com>
797
798 PR server/23158:
799 * win32-low.c (win32_create_inferior): Add call to my_wait
800 setting last_status global.
801
802 2018-05-10 Joel Brobecker <brobecker@adacore.com>
803
804 PR server/23158:
805 * win32-low.c (create_process): Only call gdb_tilde_expand if
806 inferior_cwd is not NULL.
807
808 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
809
810 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
811 registers to the cache if their values have changed.
812 (i387_xsave_to_cache): Provide default values for x87 control
813 registers when these features are available, but disabled.
814 * regcache.c (supply_register_by_name_zeroed): New function.
815 * regcache.h (supply_register_by_name_zeroed): Declare new
816 function.
817
818 2018-05-07 Tom Tromey <tom@tromey.com>
819
820 * configure: Rebuild.
821
822 2018-05-04 Tom Tromey <tom@tromey.com>
823
824 * configure: Rebuild.
825
826 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
827 Pedro Alves <palves@redhat.com>
828
829 * linux-aarch64-low.c (aarch64_stopped_data_address):
830 Likewise.
831
832 2018-04-27 Tom Tromey <tom@tromey.com>
833
834 * configure: Rebuild.
835
836 2018-04-23 Tom Tromey <tom@tromey.com>
837
838 * configure: Rebuild.
839
840 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
841
842 * Makefile.in (depcomp): Add "..".
843 (all_deps_files): New and use it.
844
845 2018-04-18 Alan Hayward <alan.hayward@arm.com>
846
847 * configure.srv (aarch64*-*-linux*): Don't include xml.
848 (i[34567]86-*-cygwin*): Likewise.
849 (i[34567]86-*-linux*): Likewise.
850 (i[34567]86-*-lynxos*): Likewise.
851 (i[34567]86-*-mingw32ce*): Likewise.
852 (i[34567]86-*-mingw*): Likewise.
853 (i[34567]86-*-nto*): Likewise.
854 (tic6x-*-uclinux): Likewise.
855 (x86_64-*-linux*): Likewise.
856 (x86_64-*-mingw*): Likewise.
857 (x86_64-*-cygwin*): Likewise.
858
859 2018-04-18 Alan Hayward <alan.hayward@arm.com>
860
861 * tdesc.c: Remove xml parameter.
862
863 2018-04-18 Alan Hayward <alan.hayward@arm.com>
864
865 * server.c (get_features_xml): Remove cast.
866 * tdesc.c (void target_desc::accept): Fill in function.
867 (tdesc_get_features_xml): Remove old xml creation.
868 (print_xml_feature::visit_pre): Add xml vistor.
869 * tdesc.h (struct target_desc): Make xmltarget mutable.
870 (tdesc_get_features_xml): Remove declaration.
871
872 2018-04-18 Alan Hayward <alan.hayward@arm.com>
873
874 * tdesc.c (tdesc_architecture_name): Add new function.
875 (tdesc_osabi_name): Likewise.
876 (tdesc_get_features_xml): Use new functions.
877
878 2018-04-18 Alan Hayward <alan.hayward@arm.com>
879
880 * tdesc.c (tdesc_create_flags): Remove.
881 (tdesc_add_flag): Likewise.
882 (tdesc_named_type): Likewise.
883 (tdesc_create_union): Likewise.
884 (tdesc_create_struct): Likewise.
885 (tdesc_create_vector): Likewise.
886 (tdesc_add_bitfield): Likewise.
887 (tdesc_add_field): Likewise.
888 (tdesc_set_struct_size): Likewise.
889
890 2018-04-18 Alan Hayward <alan.hayward@arm.com>
891
892 * tdesc.c (~target_desc): Remove implictly deleted items.
893 (init_target_desc): Iterate all features.
894 (tdesc_get_features_xml): Use vector.
895 (tdesc_create_feature): Create feature.
896 * tdesc.h (tdesc_feature) Remove
897 (target_desc): Add features.
898
899 2018-04-18 Alan Hayward <alan.hayward@arm.com>
900
901 * Makefile.in: Add common/tdesc.c
902 * tdesc.c (init_target_desc): init all reg_defs from register
903 vector.
904 (tdesc_create_reg): Create tdesc_reg.
905 * tdesc.h (tdesc_feature): Add register vector.
906
907 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
908
909 * tdesc.h (struct target_desc) <features>: Change type to
910 std::vector<std::string>.
911 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
912 changes.
913 (tdesc_get_features_xml): Likewise.
914 (tdesc_create_feature): Likewise.
915
916 2018-03-26 Alan Hayward <alan.hayward@arm.com>
917
918 * regcache.c (find_register_by_number): Return a ref.
919 (find_regno): Use references.
920 (register_size): Likewise.
921 (register_data): Likewise.
922 * tdesc.c (target_desc::~target_desc): Remove free calls.
923 (target_desc::operator==): Use std::vector compare.
924 (init_target_desc): Use reference.
925 (tdesc_create_reg): Use reg constructors.
926 * tdesc.h (struct target_desc): Replace pointer with object.
927
928 2018-03-23 Alan Hayward <alan.hayward@arm.com>
929
930 * regcache.c (find_register_by_number): Make static.
931 (find_regno): Use find_register_by_number
932 * regcache.h (struct reg): Remove declaration.
933
934 2018-03-23 Alan Hayward <alan.hayward@arm.com>
935
936 * tdesc.c (target_desc::~target_desc): Move to here.
937 (target_desc::operator==): Likewise.
938 * tdesc.h (target_desc::~target_desc): Move from here.
939 (target_desc::operator==): Likewise.
940
941 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
942
943 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
944
945 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
946
947 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
948 S390_TDESC_GS.
949 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
950 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
951 and init_registers_s390_gs_linux64.
952
953 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
954
955 * linux-s390-low.c (s390_fill_gs): Remove function.
956 (s390_fill_gsbc): Remove function.
957 (s390_regsets): Set fill functions for the guarded storage regsets
958 to NULL.
959
960 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
961
962 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
963 the word size. Add comment.
964 (s390_get_wordsize): New function.
965 (s390_arch_setup): No longer select a temporary tdesc to fetch the
966 pswm with it. Instead, use s390_get_wordsize to determine the
967 word size first and derive the correct tdesc from that directly.
968
969 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
970
971 * Makefile.in: Include silent-rules.mk.
972 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
973 (COMPILE): Add ECHO_CXX.
974 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
975 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
976 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
977 (version-generated.c): Add ECHO_GEN.
978 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
979 (IPAGENT_COMPILE): Add ECHO_CXX.
980 (%-generated.c): Add ECHO_REGDAT.
981
982 2018-03-14 Tom Tromey <tom@tromey.com>
983
984 PR cli/14977:
985 * ax.c (ax_printf): Special case for NULL.
986
987 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
988
989 * linux-low.c (linux_qxfer_libraries_svr4): Use
990 xml_escape_text_append.
991
992 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
993
994 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
995
996 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
997
998 * server.c (handle_general_set): Remove unnecessary xstrdup.
999
1000 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1001
1002 * server.c (parse_debug_format_options): Adjust to
1003 delim_string_to_char_ptr_vec changes.
1004 * thread-db.c (thread_db_load_search): Adjust to
1005 dirnames_to_char_ptr_vec changes.
1006
1007 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
1008
1009 * target.h (target_enable_btrace, target_disable_btrace)
1010 (target_read_btrace, target_read_btrace_conf): Turn macro into
1011 inline function. Throw error if target method is not defined.
1012 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
1013 check for btrace target method. Be prepared to handle exceptions
1014 from btrace target methods.
1015
1016 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1017
1018 * server.c (captured_main): Change order of error message printed
1019 when the current working directory cannot be found.
1020
1021 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1022
1023 * server.c: Include "filenames.h" and "pathstuff.h".
1024 (program_name): Delete variable.
1025 (program_path): New anonymous class.
1026 (get_exec_wrapper): Use "program_path" instead of
1027 "program_name".
1028 (handle_v_run): Likewise.
1029 (captured_main): Likewise.
1030 (process_serial_event): Likewise.
1031
1032 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1033
1034 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
1035 (OBJS): Add "pathstuff.o".
1036 * server.c (current_directory): New global variable.
1037 (captured_main): Initialize "current_directory".
1038
1039 2018-02-26 Alan Hayward <alan.hayward@arm.com>
1040
1041 * tdesc.c: Use common/tdesc.h.
1042 * tdesc.h: Likewise.
1043
1044 2018-02-20 Alan Hayward <alan.hayward@arm.com>
1045 Simon Marchi <simon.marchi@ericsson.com>
1046
1047 * Makefile.in: Switch order of make rules.
1048
1049 2018-02-19 Alan Hayward <alan.hayward@arm.com>
1050
1051 * Makefile.in: Add common directory in build.
1052 * configure.ac: Add common reference.
1053 * configure: Regenerate.
1054
1055 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1056
1057 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
1058 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
1059 * spu-low.c (spu_target_ops): Likewise.
1060 * win32-low.c (win32_target_ops): Likewise.
1061 * server.c (supported_btrace_packets): Report packets unconditionally.
1062 * target.h (target_ops) <supports_btrace>: Remove.
1063 (target_supports_btrace): Remove.
1064
1065 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1066
1067 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
1068 (handle_btrace_disable): Change return type to void. Use exceptions
1069 to report errors.
1070 (handle_btrace_general_set): Catch exception and copy message to
1071 return message.
1072
1073 2018-02-08 Tom Tromey <tom@tromey.com>
1074
1075 * linux-low.c (install_software_single_step_breakpoints): Use
1076 make_scoped_restore.
1077 * inferiors.c (make_cleanup_restore_current_thread): Remove.
1078 (do_restore_current_thread_cleanup): Remove.
1079 * gdbthread.h (make_cleanup_restore_current_thread): Don't
1080 declare.
1081
1082 2018-02-08 Tom Tromey <tom@tromey.com>
1083
1084 * mem-break.c (set_raw_breakpoint_at): Use
1085 gdb::unique_xmalloc_ptr.
1086
1087 2018-01-30 Pedro Alves <palves@redhat.com>
1088
1089 PR gdb/13211
1090 * target.c (target_terminal::terminal_state): Rename to ...
1091 (target_terminal::m_terminal_state): ... this.
1092
1093 2018-01-19 James Clarke <jrtc27@jrtc27.com>
1094
1095 * linux-low.c (handle_extended_wait): Surround call to
1096 thread_db_notice_clone with #ifdef USE_THREAD_DB.
1097
1098 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
1099
1100 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
1101 linux_ptrace_attach_fail_reason_string now returning an
1102 std::string.
1103 (linux_attach): Likewise.
1104 * thread-db.c (attach_thread): Likewise.
1105
1106 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
1107
1108 PR gdb/21559
1109 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
1110 checking for fs_base/gs_base fields in struct user_regs_struct.
1111 * configure: Regenerate.
1112
1113 2018-01-16 Yao Qi <yao.qi@linaro.org>
1114
1115 PR gdb/18749
1116 * linux-low.c (fetch_register): Call supply_register instead of
1117 error.
1118
1119 2018-01-08 Yao Qi <yao.qi@linaro.org>
1120 Simon Marchi <simon.marchi@ericsson.com>
1121
1122 * Makefile.in (OBS): Remove selftest.o.
1123 * configure.ac: Set srv_selftest_objs if $development is true.
1124 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
1125 * configure: Re-generated.
1126 * server.c (captured_main): Wrap variable selftest_filter with
1127 GDB_SELF_TEST.
1128
1129 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1130
1131 * server.c (parse_debug_format_options): Return std::string.
1132 (handle_monitor_command, captured_main): Adjust.
1133
1134 2018-01-05 Pedro Alves <palves@redhat.com>
1135
1136 PR gdb/18653
1137 * server.c (captured_main): Pass quiet=false to
1138 save_original_signals_state.
1139
1140 2018-01-01 Joel Brobecker <brobecker@adacore.com>
1141
1142 * gdbreplay.c (gdbreplay_version): Update copyright year in
1143 version message.
1144 * server.c (gdbserver_version): Likewise.
1145
1146 2017-12-08 Tom Tromey <tom@tromey.com>
1147
1148 * ax.c (ax_printf): Update.
1149
1150 2017-12-07 Yao Qi <yao.qi@linaro.org>
1151
1152 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
1153 aarch64_linux_read_description.
1154 * linux-amd64-ipa.c (idx2mask): New array.
1155 (get_ipa_tdesc): Move idx2mask out.
1156 (initialize_low_tracepoint): Initialize target descriptions.
1157 * linux-i386-ipa.c (idx2mask): New array.
1158 (get_ipa_tdesc): Move idx2mask out.
1159 (initialize_low_tracepoint): Initialize target descriptions.
1160
1161 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
1162
1163 * tdesc.c (struct tdesc_type): Change return type.
1164 (tdesc_add_flag): Change parameter type.
1165 (tdesc_add_bitfield): Likewise.
1166 (tdesc_add_field): Likewise.
1167 (tdesc_set_struct_size): Likewise.
1168
1169 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
1170
1171 * regcache.c (registers_to_string): Remove unused variable.
1172
1173 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1174
1175 * inferiors.c (for_each_inferior_with_data): Remove.
1176 * inferiors.h (for_each_inferior_with_data): Remove.
1177 * server.c (handle_qxfer_threads_worker): Change parameter type.
1178 (handle_qxfer_threads_proper): Use for_each_thread.
1179
1180 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1181
1182 * inferiors.c (for_each_inferior): Remove.
1183 (clear_inferiors): Use for_each_thread.
1184 * inferiors.h (for_each_inferior): Remove.
1185 * linux-low.c (linux_wait_for_event_filtered): Use
1186 for_each_thread.
1187 (linux_stabilize_threads): Likewise.
1188 * regcache.c (regcache_release): Likewise.
1189 * server.c (gdb_wants_all_threads_stopped): Likewise.
1190 (clear_pending_status_callback): Remove.
1191 (handle_status): Use for_each_thread.
1192 (captured_main): Likewise.
1193 * win32-low.c (child_init_thread_list): Likewise.
1194 (win32_clear_inferiors): Likewise.
1195 (fake_breakpoint_event): Likewise.
1196
1197 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1198
1199 * inferiors.h (find_inferior): Remove.
1200 * inferiors.c (find_inferior): Remove.
1201
1202 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1203
1204 * linux-low.c (resume_status_pending_p): Update comment.
1205 (need_step_over_p): Update comment.
1206
1207 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1208
1209 * linux-low.c (proceed_one_lwp): Return void, change parameter
1210 type.
1211 (unsuspend_and_proceed_one_lwp): Likewise.
1212 (proceed_all_lwps): Use for_each_thread.
1213 (unstop_all_lwps): Likewise.
1214
1215 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1216
1217 * linux-low.c (linux_resume_one_thread): Return void, take
1218 parameter directly.
1219 (linux_resume): Use for_each_thread.
1220
1221 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1222
1223 * linux-low.c (send_sigstop_callback): Return void, change
1224 parameter type. Rename to...
1225 (send_sigstop): ... this.
1226 (suspend_and_send_sigstop_callback): Return void, change parameter
1227 type. Rename to...
1228 (suspend_and_send_sigstop): ... this.
1229 (stop_all_lwps): Use for_each_thread.
1230
1231 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1232
1233 * linux-low.c (lwp_running): Return bool, remove unused
1234 argument.
1235 (linux_stabilize_threads): Use find_thread.
1236
1237 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1238
1239 * linux-low.c (select_singlestep_lwp_callback): Remove.
1240 (count_events_callback): Remove.
1241 (select_event_lwp_callback): Remove.
1242 (select_event_lwp): Use find_thread/for_each_thread.
1243
1244 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1245
1246 * linux-low.c (not_stopped_callback): Return bool, take filter
1247 argument directly.
1248 (linux_wait_for_event_filtered): Use find_thread.
1249 (linux_wait_1): Likewise.
1250
1251 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1252
1253 * linux-low.c (same_lwp): Remove.
1254 (find_lwp_pid): Use find_thread.
1255
1256 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1257
1258 * linux-low.c (delete_lwp_callback): Remove.
1259 (linux_mourn): Use for_each_thread.
1260
1261 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1262
1263 * linux-low.c (linux_detach_lwp_callback): Return void, remove
1264 args parameter, don't check for pid.
1265 (linux_detach): Use for_each_thread.
1266
1267 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1268
1269 * linux-low.c (struct counter): Remove.
1270 (second_thread_of_pid_p): Remove.
1271 (last_thread_of_process_p): Use find_thread.
1272
1273 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1274
1275 * inferiors.c (find_inferior_in_random): Remove.
1276 * inferiors.h (find_inferior_in_random): Remove.
1277 * linux-low.c (status_pending_p_callback): Return bool, accept
1278 parameter ptid directly.
1279 (linux_wait_for_event_filtered): Use find_thread_in_random.
1280 (linux_wait_1): Likewise.
1281
1282 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1283
1284 * inferiors.c (find_inferior_id): Remove.
1285 (find_thread_ptid): Move implemention from find_inferior_id to
1286 here.
1287 * inferiors.h (find_inferior_id): Remove.
1288 * server.c (handle_status): Use find_thread_ptid.
1289 (process_serial_event): Likewise.
1290 * thread-db.c (find_one_thread): Likewise.
1291 (thread_db_thread_handle): Likewise.
1292 * win32-low.c (thread_rec): Likewise.
1293 (child_delete_thread): Likewise.
1294 (win32_thread_alive): Likewise.
1295 (get_child_debug_event): Likewise.
1296
1297 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1298
1299 * linux-mips-low.c (update_watch_registers_callback): Return
1300 void, remove pid_p parameter, don't check for pid.
1301 (mips_insert_point, mips_remove_point): Use for_each_thread.
1302
1303 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1304
1305 * lynx.low (lynx_delete_thread_callback): Remove.
1306 (lynx_mourn): Use for_each_thread.
1307
1308 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1309
1310 * regcache.c (regcache_invalidate_one): Remove.
1311 (regcache_invalidate_pid): use for_each_thread.
1312
1313 2017-11-26 Tom Tromey <tom@tromey.com>
1314
1315 * linux-low.c (linux_create_inferior): Update.
1316
1317 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
1318
1319 * spu-low.c (spu_create_inferior): Fix typo in argument name.
1320
1321 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1322
1323 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
1324 * linux-aarch64-low.c (initialize_low_arch): Call init func.
1325 * linux-aarch64-tdesc-selftest.c: New file.
1326 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
1327
1328 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1329
1330 * configure.srv: Add new file.
1331 * linux-aarch64-low.c (initialize_low_arch): Call init func.
1332 * linux-aarch64-tdesc-selftest.c: New file.
1333 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
1334
1335 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1336
1337 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
1338 * linux-aarch64-low.c (initialize_low_arch): Remove init.
1339 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
1340
1341 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1342
1343 * configure.srv: Add new files.
1344 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
1345 aarch64_linux_read_description.
1346 * linux-aarch64-low.c (aarch64_linux_read_description):
1347 Merge with aarch64_arch_setup.
1348 (aarch64_arch_setup): Call aarch64_linux_read_description.
1349 * linux-aarch64-tdesc.c: New file.
1350 * linux-aarch64-tdesc.h: New file.
1351
1352 2017-11-24 Yao Qi <yao.qi@linaro.org>
1353
1354 * configure.srv: Set $srv_regobj for tic6x-linux.
1355 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
1356 (tic6x_read_description): Move some code to tic6x_arch_setup.
1357 (tic6x_tdesc_test): New function.
1358 (initialize_low_arch): Call selftests::register_test.
1359
1360 2017-11-22 Yao Qi <yao.qi@linaro.org>
1361
1362 * remote-utils.c (prepare_resume_reply): Use memcpy.
1363
1364 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1365
1366 * linux-low.c (kill_one_lwp_callback): Return void, take
1367 argument directly, don't filter on pid.
1368 (linux_kill): Use for_each_thread.
1369
1370 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1371
1372 * linux-low.c (need_step_over_p): Return bool, remove dummy
1373 argument.
1374 (linux_resume, proceed_all_lwps): Use find_thread.
1375
1376 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1377
1378 * linux-low.c (resume_status_pending_p): Return bool, remove
1379 flag_p argument.
1380 (linux_resume): Use find_thread.
1381
1382 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1383
1384 * linux-low.c (struct thread_resume_array): Remove.
1385 (linux_set_resume_request): Return void, take arguments
1386 directly.
1387 (linux_resume): Use for_each_thread.
1388
1389 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1390
1391 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
1392 return bool, remove data argument.
1393 (linux_stabilize_threads): Use find_thread.
1394
1395 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1396
1397 * linux-low.c (unsuspend_one_lwp): Remove.
1398 (unsuspend_all_lwps): Use for_each_thread, inline code from
1399 unsuspend_one_lwp.
1400
1401 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1402
1403 * gdbthread.h (find_thread): Add overload with ptid_t filter.
1404 * linux-low.c (struct iterate_over_lwps_args): Remove.
1405 (iterate_over_lwps_filter): Remove.
1406 (iterate_over_lwps): Use find_thread.
1407
1408 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1409
1410 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
1411 (linux_handle_new_gdb_connection): Use for_each_thread, inline
1412 code from reset_lwp_ptrace_options_callback.
1413
1414 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1415
1416 * linux-arm-low.c (struct update_registers_data): Remove.
1417 (update_registers_callback): Return void, take arguments
1418 directly, don't check thread's pid.
1419 (arm_insert_point, arm_remove_point): Use for_each_thread.
1420
1421 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1422
1423 * win32-low.c (continue_one_thread): Return void, take argument
1424 directly.
1425 (child_continue): Use for_each_thread.
1426
1427 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1428
1429 * win32-i386-low.c (update_debug_registers_callback): Rename
1430 to ...
1431 (update_debug_registers): ... this, return void, remove pid_p arg.
1432 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
1433
1434 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1435
1436 * inferiors.h (struct process_info): Add constructor, initialize
1437 fields..
1438 <syscalls_to_catch>: Change type to std::vector<int>.
1439 * inferiors.c (add_process): Allocate process_info with new.
1440 (remove_process): Free process_info with delete.
1441 * linux-low.c (handle_extended_wait): Adjust.
1442 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
1443 * server.c (handle_general_set): Adjust.
1444
1445 2017-11-16 Pedro Alves <palves@redhat.com>
1446
1447 * remote-utils.c (remote_close): Block SIGIO signals instead of
1448 uninstalling the SIGIO handler.
1449
1450 2017-11-16 Alan Hayward <alan.hayward@arm.com>
1451
1452 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
1453
1454 2017-11-16 Yao Qi <yao.qi@linaro.org>
1455
1456 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
1457 (tic6x_store_gregset): Likewise.
1458 (tic6x_usrregs_info): Move it up.
1459
1460 2017-11-15 Alan Hayward <alan.hayward@arm.com>
1461
1462 * Makefile.in: Update arch rules.
1463 * configure.srv: Explicitly mark arch/ files.
1464
1465 2017-11-13 Andreas Schwab <schwab@suse.de>
1466
1467 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
1468 function.
1469 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
1470
1471 2017-11-06 Pedro Alves <palves@redhat.com>
1472
1473 * config.in, configure: Regenerate.
1474
1475 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1476
1477 * target.c (struct thread_search): Remove.
1478 (thread_search_callback): Remove.
1479 (prepare_to_access_memory): Use for_each_thread instead of
1480 find_inferior. Inline code from thread_search_callback.
1481
1482 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1483
1484 * server.c (struct visit_actioned_threads_data): Remove.
1485 (visit_actioned_threads): Change prototype to take arguments
1486 directly.
1487 (resume): Use find_thread instead of find_inferior.
1488
1489 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1490
1491 * server.c (queue_stop_reply_callback): Change prototype, return
1492 void.
1493 (find_status_pending_thread_callback): Remove.
1494 (handle_status): Replace find_inferior with find_thread and
1495 for_each_thread.
1496
1497 2017-10-25 Alan Hayward <alan.hayward@arm.com>
1498
1499 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
1500 with REGNO.
1501 (aarch64_store_gregset): Likewise.
1502 (aarch64_fill_fpregset): Likewise.
1503 (aarch64_store_fpregset): Likewise.
1504
1505 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
1506
1507 * gdbthread.h (find_thread, for_each_thread): New functions.
1508 * inferiors.c (thread_of_pid): Remove.
1509 (find_any_thread_of_pid): Use find_thread.
1510 * linux-low.c (num_lwps): Use for_each_thread.
1511
1512 2017-10-17 Yao Qi <yao.qi@linaro.org>
1513
1514 * Makefile.in: Remove one rule.
1515 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
1516
1517 2017-10-17 Yao Qi <yao.qi@linaro.org>
1518
1519 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
1520 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
1521
1522 2017-10-17 Yao Qi <yao.qi@linaro.org>
1523
1524 * configure.srv: Rename arm.o with arch/arm.o.
1525
1526 2017-10-17 Yao Qi <yao.qi@linaro.org>
1527
1528 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
1529 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
1530 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
1531 (arch-i386.o, arch-amd64.o): Remove rules.
1532 (arch/%.o): New rule.
1533 Update POSTCOMPILE and COMPILE.pre.
1534 * configure.ac: Invoke AC_CONFIG_COMMANDS.
1535 * configure: Re-generated.
1536 * configure.srv: Replace arch-i386.o with arch/i386.o.
1537 Replace arch-amd64.o with arch/amd64.o.
1538
1539 2017-10-16 Yao Qi <yao.qi@linaro.org>
1540
1541 * configure: Regenerated.
1542
1543 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1544
1545 * inferiors.h: (struct inferior_list): Remove.
1546 (struct inferior_list_entry); Remove.
1547 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
1548 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
1549 get_first_inferior): Remove.
1550 (for_each_inferior, for_each_inferior_with_data, find_inferior,
1551 find_inferior_id, find_inferior_in_random): Change signature.
1552 * inferiors.c (all_threads): Change type to
1553 std::list<thread_info *>.
1554 (get_thread): Remove macro.
1555 (find_inferior, find_inferior_id): Change signature, implement
1556 using find_thread.
1557 (find_inferior_in_random): Change signature, implement using
1558 find_thread_in_random.
1559 (for_each_inferior, for_each_inferior_with_data): Change
1560 signature, implement using for_each_thread.
1561 (add_inferior_to_list, remove_inferior): Remove.
1562 (add_thread, get_first_thread, thread_of_pid,
1563 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
1564 (get_first_inferior, one_inferior_p, clear_inferior_list):
1565 Remove.
1566 (clear_inferiors, get_thread_process): Update.
1567 * gdbthread.h: Include <list>.
1568 (struct thread_info) <entry>: Remove field.
1569 <id>: New field.
1570 (all_threads): Change type to std::list<thread_info *>.
1571 (get_first_inferior): Add doc.
1572 (find_thread, for_each_thread, find_thread_in_random): New
1573 functions.
1574 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
1575 * linux-arm-low.c (update_registers_callback): Update.
1576 * linux-low.c (second_thread_of_pid_p): Update.
1577 (kill_one_lwp_callback, linux_detach_lwp_callback,
1578 delete_lwp_callback, status_pending_p_callback, same_lwp,
1579 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
1580 iterate_over_lwps, not_stopped_callback,
1581 resume_stopped_resumed_lwps, count_events_callback,
1582 select_singlestep_lwp_callback, select_event_lwp_callback,
1583 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
1584 suspend_and_send_sigstop_callback, wait_for_sigstop,
1585 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
1586 lwp_running, linux_set_resume_request, resume_status_pending_p,
1587 need_step_over_p, start_step_over, linux_resume_one_thread,
1588 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
1589 reset_lwp_ptrace_options_callback): Update.
1590 * linux-mips-low.c (update_watch_registers_callback): Update.
1591 * regcache.c (regcache_invalidate_one, regcache_invalidate):
1592 Update.
1593 (free_register_cache_thread_one): Remove.
1594 (regcache_release): Update.
1595 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
1596 handle_qxfer_threads_worker): Update.
1597 (handle_query): Update, use list iterator.
1598 (visit_actioned_threads, handle_pending_status,
1599 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
1600 clear_pending_status_callback, set_pending_status_callback,
1601 find_status_pending_thread_callback, handle_status,
1602 process_serial_event): Update.
1603 * target.c (thread_search_callback): Update.
1604 * thread-db.c (thread_db_get_tls_address): Update.
1605 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
1606 Update.
1607 * win32-i386-low.c (update_debug_registers_callback): Update.
1608 * win32-low.c (delete_thread_info, child_delete_thread,
1609 continue_one_thread, suspend_one_thread,
1610 get_child_debug_event): Adjust.
1611
1612 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1613
1614 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
1615 * inferiors.h: Include <list>.
1616 (struct process_info) <entry>: Remove field.
1617 <pid>: New field.
1618 (pid_of): Change macro to function.
1619 (ptid_of, lwpid_of): Remove macro.
1620 (all_processes): Change type to std::list<process_info *>.
1621 (ALL_PROCESSES): Remove macro.
1622 (for_each_process, find_process): New function.
1623 * inferiors.c (all_processes): Change type to
1624 std::list<process_info *>.
1625 (find_thread_process): Adjust.
1626 (add_process): Likewise.
1627 (remove_process): Likewise.
1628 (find_process_pid): Likewise.
1629 (get_first_process): Likewise.
1630 (started_inferior_callback): Remove.
1631 (have_started_inferiors_p): Adjust.
1632 (attached_inferior_callback): Remove.
1633 (have_attached_inferiors_p): Adjust.
1634 * linux-low.c (check_zombie_leaders): Likewise.
1635 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
1636 (x86_linux_update_xmltarget): Adjust.
1637 * server.c (handle_query): Likewise.
1638 (gdb_reattached_process): Remove.
1639 (handle_status): Adjust.
1640 (kill_inferior_callback): Likewise.
1641 (detach_or_kill_inferior): Remove.
1642 (print_started_pid): Likewise.
1643 (print_attached_pid): Likewise.
1644 (detach_or_kill_for_exit): Update.
1645 (process_serial_event): Likewise.
1646 * linux-arm-low.c (arm_new_fork): Likewise.
1647
1648 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1649
1650 * dll.h: Include <list>.
1651 (struct dll_info): Add constructor.
1652 <entry>: Remove field.
1653 (all_dlls): Change type to std::list<dll_info>.
1654 * dll.c: Include <algorithm>.
1655 (get_dll): Remove macro.
1656 (all_dlls): Change type to std::list<dll_info *>.
1657 (free_one_dll): Remove.
1658 (match_dll): Likewise.
1659 (loaded_dll): Adjust.
1660 (unloaded_dll): Adjust to all_dlls type change, use
1661 std::find_if. Inline code from match_dll.
1662 (clear_dlls): Adjust to all_dlls type change.
1663 * server.c (emit_dll_description): Remove.
1664 (handle_qxfer_libraries): Adjust to all_dlls type change,
1665 integrate emit_dll_description's functionality.
1666
1667 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1668
1669 * linux-low.h (struct linux_target_ops) <delete_process>: New
1670 field.
1671 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
1672 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
1673 (struct linux_target_ops): Add delete_process callback.
1674 * linux-arm-low.c (arm_delete_process): New.
1675 (struct linux_target_ops): Add delete_process callback.
1676 * linux-bfin-low.c (struct linux_target_ops): Likewise.
1677 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
1678 * linux-m32r-low.c (struct linux_target_ops): Likewise.
1679 * linux-mips-low.c (mips_linux_delete_process): New.
1680 (struct linux_target_ops): Add delete_process callback.
1681 * linux-ppc-low.c (struct linux_target_ops): Likewise.
1682 * linux-s390-low.c (struct linux_target_ops): Likewise.
1683 * linux-sh-low.c (struct linux_target_ops): Likewise.
1684 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
1685 * linux-tile-low.c (struct linux_target_ops): Likewise.
1686 * linux-x86-low.c (x86_linux_delete_process): New.
1687 (struct linux_target_ops): Add delete_process callback.
1688 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
1689
1690 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1691
1692 * linux-aarch64-low.c (the_low_target): Add thread delete
1693 callback.
1694 * linux-arm-low.c (arm_delete_thread): New function.
1695 (the_low_target): Add thread delete callback.
1696 * linux-bfin-low.c (the_low_target): Likewise.
1697 * linux-crisv32-low.c (the_low_target): Likewise.
1698 * linux-low.c (delete_lwp): Invoke delete_thread callback if
1699 set.
1700 * linux-low.h (struct linux_target_ops) <delete_thread>: New
1701 field.
1702 * linux-m32r-low.c (the_low_target): Add thread delete callback.
1703 * linux-mips-low.c (mips_linux_delete_thread): New function.
1704 (the_low_target): Add thread delete callback.
1705 * linux-ppc-low.c (the_low_target): Likewise.
1706 * linux-s390-low.c (the_low_target): Likewise.
1707 * linux-sh-low.c (the_low_target): Likewise.
1708 * linux-tic6x-low.c (the_low_target): Likewise.
1709 * linux-tile-low.c (the_low_target): Likewise.
1710 * linux-x86-low.c (the_low_target): Likewise.
1711 * linux-xtensa-low.c (the_low_target): Likewise.
1712
1713 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
1714
1715 * win32-low.c: Include "common-inferior.h".
1716
1717 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1718
1719 * inferiors.c (set_inferior_cwd): New function.
1720 * server.c (handle_general_set): Handle QSetWorkingDir packet.
1721 (handle_query): Inform that QSetWorkingDir is supported.
1722 * win32-low.c (create_process): Pass the inferior's cwd to
1723 CreateProcess.
1724
1725 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1726
1727 * inferiors.c (current_inferior_cwd): New global variable.
1728 (get_inferior_cwd): New function.
1729 * inferiors.h (struct process_info) <cwd>: New field.
1730
1731 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1732
1733 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
1734 (OBS): Add gdb_tilde_expand.o.
1735
1736 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
1737
1738 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
1739 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
1740
1741 2017-09-29 Pedro Alves <palves@redhat.com>
1742
1743 * ax.c (gdb_parse_agent_expr): Constify.
1744 * ax.h (gdb_parse_agent_expr): Constify.
1745 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
1746 Constify.
1747 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
1748 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
1749 * remote-utils.h (read_ptid): Constify.
1750 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
1751 (process_point_options, process_serial_event): Constify.
1752 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
1753 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
1754 (cmd_qtbuffer): Constify.
1755
1756 2017-09-29 Pedro Alves <palves@redhat.com>
1757
1758 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
1759 fails.
1760
1761 2017-09-29 Pedro Alves <palves@redhat.com>
1762
1763 * linux-low.c (handle_extended_wait): Pass parent thread instead
1764 of process to thread_db_notice_clone.
1765 * linux-low.h (thread_db_notice_clone): Replace parent process
1766 parameter with parent thread parameter.
1767 * thread-db.c (find_one_thread): Add comment.
1768 (thread_db_notice_clone): Replace parent process parameter with
1769 parent thread parameter. Temporarily switch to the parent thread.
1770
1771 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
1772
1773 * gdbthread.h: Include "common-gdbthread.h".
1774 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
1775 "if" when validating the ptid.
1776 * remote-utils.c: Include "gdbthread.h".
1777 (prepare_resume_reply): Use "switch_to_thread".
1778 * target.c (done_accessing_memory): Likewise.
1779
1780 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1781
1782 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
1783 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
1784 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
1785 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
1786 s390x-gs-linux64-ipa.o to ipa_obj.
1787 * linux-s390-low.c (HWCAP_S390_GS): New define.
1788 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
1789 New functions.
1790 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
1791 (s390_arch_setup): Check for guarded-storage support and choose
1792 appropriate tdesc.
1793 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
1794 init_registers_s390x_gs_linux64.
1795 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
1796 enum value.
1797 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
1798 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
1799
1800 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
1801
1802 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
1803
1804 2017-09-21 Kevin Buettner <kevinb@redhat.com>
1805
1806 * linux-low.h (struct lwp_info): Add new field, thread_handle.
1807 (thread_db_thread_handle): Declare.
1808 * linux-low.c (linux_target_ops): Initialize thread_handle.
1809 * server.c (handle_qxfer_threads_worker): Add support for
1810 "handle" attribute.
1811 * target.h (struct target_ops): Add new function pointer,
1812 thread_handle.
1813 (target_thread_handle): Define.
1814 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
1815 field in lwp.
1816 (thread_db_thread_handle): New function.
1817
1818 2017-09-21 Kevin Buettner <kevinb@redhat.com>
1819
1820 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
1821 * linux-low.h (thread_db_notice_clone): Declare.
1822 * thread-db.c (thread_db_notice_clone): New function.
1823
1824 2017-09-21 Pedro Alves <palves@redhat.com>
1825
1826 * server.c (gdb_read_memory, handle_status, process_serial_event)
1827 (handle_serial_event, handle_target_event): Adjust to
1828 set_desired_thread prototype change.
1829 * target.c (set_desired_thread): Remove 'use_general' parameter
1830 and adjust.
1831 * target.h (set_desired_thread): Remove 'use_general' parameter.
1832
1833 2017-09-20 Tom Tromey <tom@tromey.com>
1834
1835 * target.c (target_terminal::terminal_state): Define.
1836 (target_terminal::init): Rename from target_terminal_init.
1837 (target_terminal::inferior): Rename from
1838 target_terminal_inferior.
1839 (target_terminal::ours): Rename from target_terminal_ours.
1840 (target_terminal::ours_for_output, target_terminal::info): New.
1841
1842 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1843
1844 * server.c (accumulate_file_name_length): Remove.
1845 (emit_dll_description): Adjust to std::string change.
1846 (handle_qxfer_libraries): Use std::string to hold document.
1847
1848 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1849
1850 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
1851 return type of xml_escape_text.
1852 * server.c (emit_dll_description): Likewise.
1853
1854 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1855
1856 * server.c (captured_main): Accept argument for --selftest.
1857 Update run_tests call.
1858 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
1859 when registering selftests.
1860
1861 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1862
1863 * regcache.c (get_thread_regcache): Update code to use "std::vector"
1864 instead of "VEC" for "target_desc.reg_defs".
1865 (regcache_cpy): Likewise.
1866 (registers_to_string): Likewise.
1867 (registers_from_string): Likewise.
1868 (find_regno): Likewise.
1869 (supply_regblock): Likewise.
1870 (regcache_raw_read_unsigned): Likewise.
1871 * tdesc.c (init_target_desc): Likewise.
1872 (tdesc_create_reg): Likewise.
1873 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
1874 (struct target_desc) <reg_defs>: Convert to "std::vector".
1875 (target_desc): Do not initialize "reg_defs".
1876 (~target_desc): Update code to use "std::vector" instead of "VEC"
1877 for "target_desc.reg_defs".
1878 (operator==): Likewise.
1879
1880 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1881
1882 * inferiors.h (thread_to_gdb_id): Remove.
1883 * inferiors.c (thread_to_gdb_id): Remove.
1884 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
1885 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
1886 lynx_store_registers, lynx_read_memory, lynx_write_memory):
1887 Likewise.
1888 * nto-low.c (nto_fetch_registers, nto_store_registers,
1889 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
1890
1891 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1892
1893 * inferiors.h (gdb_id_to_thread_id): Remove.
1894 * inferiors.c (gdb_id_to_thread_id): Remove.
1895 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
1896 removal. Move pid declaration closer to where it's used.
1897
1898 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1899
1900 * server.c (handle_detach): New function.
1901 (process_serial_event): Move code out, call handle_detach.
1902
1903 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1904
1905 * server.c (require_running): Rename to ...
1906 (require_running_or_return): ... this ...
1907 (require_running_or_break): ... and this.
1908 (handle_query, process_serial_event): Adjust.
1909
1910 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1911
1912 * linux-low.c (linux_set_resume_request): Remove unused
1913 variables.
1914
1915 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1916
1917 * server.c (first_thread_of): Remove.
1918 (process_serial_event): Replace usage of first_thread_of with
1919 find_any_thread_of_pid.
1920 * tracepoint.c (same_process_p): Remove.
1921 (gdb_agent_about_to_close): Replace usage of same_process_p with
1922 find_any_thread_of_pid.
1923 * linux-x86-low.c (same_process_callback): Remove.
1924 (x86_arch_setup_process_callback): Replace usage of
1925 same_process_callback with find_any_thread_of_pid.
1926 * thread-db.c (any_thread_of): Remove.
1927 (switch_to_process): Replace usage of any_thread_of with
1928 find_any_thread_of_pid.
1929 * inferiors.c (thread_pid_matches_callback): Remove.
1930 (find_thread_process): Adjust to use find_any_thread_of_pid.
1931
1932 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1933
1934 * regcache.c (get_thread_regcache): Guard calls to "memset"
1935 with "!VEC_empty".
1936
1937 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1938
1939 * linux-low.c (handle_extended_wait): Use
1940 "allocate_target_description" instead of "XNEW".
1941 * linux-x86-low.c (initialize_low_arch): Likewise.
1942
1943 2017-09-05 Yao Qi <yao.qi@linaro.org>
1944
1945 * configure.srv (srv_i386_regobj): Remove.
1946 (srv_amd64_regobj): Remove.
1947 (srv_regobj): Set it to "" for x86 non-linux targets.
1948 * linux-x86-tdesc.c (i386_linux_read_description):
1949 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
1950 (init_registers_i386): Remove the declaration.
1951 (tdesc_i386): Remove the declaration.
1952 (lynx_i386_arch_setup): Call i386_create_target_description.
1953 * nto-x86-low.c: Likewise.
1954 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
1955 [!__x86_64__]: include arch/i386.h.
1956 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
1957
1958 2017-09-05 Yao Qi <yao.qi@linaro.org>
1959
1960 * configure.srv (srv_amd64_linux_xmlfiles): Remove
1961 i386/amd64-XXX-linux from it.
1962
1963 2017-09-05 Yao Qi <yao.qi@linaro.org>
1964
1965 * configure.srv: Empty srv_amd64_linux_regobj if $development is
1966 false.
1967 (ipa_amd64_linux_regobj): Remove.
1968 (ipa_x32_linux_regobj): Remove.
1969
1970 2017-09-05 Yao Qi <yao.qi@linaro.org>
1971
1972 * Makefile.in (arch-amd64.o): New rule.
1973 * configure.srv: Append arch-amd64.o.
1974 * linux-amd64-ipa.c: Include common/x86-xstate.h.
1975 (get_ipa_tdesc): Call amd64_linux_read_description.
1976 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
1977 and init_registers_amd64_XXX.
1978 * linux-x86-low.c (x86_linux_read_description): Call
1979 amd64_linux_read_description.
1980 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
1981 (initialize_low_arch): Don't call init_registers_x32_XXX and
1982 init_registers_amd64_XXX.
1983 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
1984 and tdesc_amd64_XXX.
1985 [__x86_64__] (amd64_tdesc_test): New function.
1986 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
1987 and init_registers_amd64_XXX.
1988 * linux-x86-tdesc.c: Include arch/amd64.h.
1989 (xcr0_to_tdesc_idx): New function.
1990 (i386_linux_read_description): New function.
1991 (amd64_get_ipa_tdesc_idx): New function.
1992 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
1993 (amd64_get_ipa_tdesc): Declare.
1994
1995 2017-09-05 Yao Qi <yao.qi@linaro.org>
1996
1997 * configure.srv (srv_i386_linux_xmlfiles): Remove
1998 i386/i386-XXX-linux.xml from it.
1999
2000 2017-09-05 Yao Qi <yao.qi@linaro.org>
2001
2002 * configure.srv: Set srv_i386_linux_regobj empty if $development
2003 is false.
2004 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
2005 initialize_low_tdesc.
2006 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
2007 with #if initialize_low_tdesc.
2008 * linux-x86-tdesc-selftest.c: New file.
2009 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
2010
2011 2017-09-05 Yao Qi <yao.qi@linaro.org>
2012
2013 * Makefile.in (arch-i386.o): New rule.
2014 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
2015 (x86_64-*-linux*): Likewise.
2016 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
2017 include arch/i386.h.
2018 (i386_linux_read_description): Remove code and call
2019 i386_create_target_description.
2020 * tdesc.c (allocate_target_description): New function.
2021 * tdesc.h (set_tdesc_architecture): Remove declaration.
2022 (set_tdesc_osabi): Likewise.
2023
2024 2017-09-05 Yao Qi <yao.qi@linaro.org>
2025
2026 * linux-x86-tdesc.c: Don't include <inttypes.h>.
2027 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
2028 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
2029 .xmltarget.
2030 * server.c (get_features_xml): Call tdesc_get_features_xml.
2031 * tdesc.c (set_tdesc_architecture): New function.
2032 (set_tdesc_osabi): New function.
2033 (tdesc_get_features_xml): New function.
2034 (tdesc_create_feature): Add an argument.
2035 * tdesc.h (struct target_desc) <features>: New field.
2036 <arch, osabi>: New field.
2037 (~target_desc): xfree features, arch, and osabi.
2038 (target_desc::oerator==): Don't compare .xmltarget.
2039 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
2040 (set_tdesc_osabi): Likewise.
2041 (tdesc_get_features_xml): Likewise.
2042
2043 2017-09-05 Yao Qi <yao.qi@linaro.org>
2044
2045 * linux-x86-tdesc.c: Include selftest.h.
2046 (i386_tdesc_test): New function.
2047 (initialize_low_tdesc): Call selftests::register_test.
2048 * tdesc.h: Include regdef.h.
2049 (target_desc): Override operator == and !=.
2050
2051 2017-09-05 Yao Qi <yao.qi@linaro.org>
2052
2053 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
2054 (ipa_obj): Likewise.
2055 * linux-i386-ipa.c: Include common/x86-xstate.h
2056 (get_ipa_tdesc): Call i386_linux_read_description.
2057 (initialize_low_tracepoint): Don't call init_registers_XXX
2058 functions, call initialize_low_tdesc instead.
2059 * linux-x86-low.c (x86_linux_read_description): Call
2060 i386_linux_read_description.
2061 (initialize_low_arch): Don't call init_registers_i386_XXX
2062 functions, call initialize_low_tdesc.
2063 * linux-x86-tdesc.c: New file.
2064 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
2065 (i386_get_ipa_tdesc_idx): Declare.
2066 (i386_get_ipa_tdesc): Declare.
2067 (initialize_low_tdesc): Declare.
2068
2069 2017-09-05 Yao Qi <yao.qi@linaro.org>
2070
2071 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
2072 instead of 0.
2073
2074 2017-09-05 Yao Qi <yao.qi@linaro.org>
2075
2076 * Makefile.in (IPA_OBJS): Add vec-ipa.o
2077 * regcache.c (get_thread_regcache): Use VEC_length.
2078 (init_register_cache): Likewise.
2079 (regcache_cpy): Likewise.
2080 (registers_to_string): Iterate reg_defs via VEC_iterate.
2081 (find_regno): Likewise.
2082 (find_register_by_number): Use VEC_index.
2083 (register_size): Call find_register_by_number.
2084 (register_data): Call find_register_by_number.
2085 (supply_regblock): Use VEC_length.
2086 (regcache_raw_read_unsigned): Likewise.
2087 * tdesc.c (init_target_desc): Iterate reg_defs via
2088 VEC_iterate.
2089 (default_description): Update initializer.
2090 (copy_target_description): Don't update field num_registers.
2091 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
2092 <num_registers>: Remove.
2093
2094 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2095
2096 * Makefile.in (.SECONDARY): Define target.
2097
2098 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2099
2100 * linux-low.c (linux_wait_1): Adjust.
2101 * server.c (queue_stop_reply_callback): Adjust.
2102
2103 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2104
2105 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
2106 QEnvironmentUnset and QEnvironmentReset packets.
2107 (handle_query): Inform remote that QEnvironmentHexEncoded,
2108 QEnvironmentUnset and QEnvironmentReset are supported.
2109
2110 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
2111
2112 * inferiors.h (inferior_target_data): Rename to ...
2113 (thread_target_data): ... this.
2114 (inferior_regcache_data): Rename to ...
2115 (thread_regcache_data): ... this.
2116 (set_inferior_regcache_data): Rename to ...
2117 (set_thread_regcache_data): ... this.
2118 * inferiors.c (inferior_target_data): Rename to ...
2119 (thread_target_data): ... this.
2120 (inferior_regcache_data): Rename to ...
2121 (thread_regcache_data): ... this.
2122 (set_inferior_regcache_data): Rename to ...
2123 (set_thread_regcache_data): ... this.
2124 (free_one_thread): Update.
2125 * linux-low.h (get_thread_lwp): Update.
2126 * regcache.c (get_thread_regcache): Update.
2127 (regcache_invalidate_thread): Update.
2128 (free_register_cache_thread): Update.
2129 * win32-i386-low.c (update_debug_registers_callback): Update.
2130 (win32_get_current_dr): Update.
2131 * win32-low.c (thread_rec): Update.
2132 (delete_thread_info): Update.
2133 (continue_one_thread): Update.
2134 (suspend_one_thread): Update.
2135
2136 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
2137
2138 * inferiors.c (set_inferior_target_data): Remove.
2139 * inferiors.h (set_inferior_target_data): Remove.
2140
2141 2017-08-18 Yao Qi <yao.qi@linaro.org>
2142
2143 * Makefile.in (OBS): Add selftest.o.
2144 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
2145 * configure, config.in: Re-generated.
2146 * server.c: Include common/sefltest.h.
2147 (captured_main): Handle option --selftest.
2148
2149 2017-08-09 Yao Qi <yao.qi@linaro.org>
2150
2151 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
2152 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
2153 i386-avx-mpx.o and i386-mmx.o.
2154 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
2155 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
2156 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
2157 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
2158 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
2159 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
2160 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
2161 i386/amd64-avx-mpx.xml.
2162
2163 2017-08-09 Yao Qi <yao.qi@linaro.org>
2164
2165 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
2166 and x32-avx-avx512.o.
2167 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
2168 i386/x32-avx-avx512.xml.
2169
2170 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
2171
2172 * tracepoint.h (enum class fast_tpoint_collect_result): New
2173 enumeration.
2174 (fast_tracepoint_collecting): Change return type to
2175 fast_tpoint_collect_result.
2176 * tracepoint.c (fast_tracepoint_collecting): Likewise.
2177 * linux-low.h: Include tracepoint.h.
2178 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
2179 fast_tpoint_collect_result.
2180 * linux-low.c (handle_tracepoints): Adjust.
2181 (linux_fast_tracepoint_collecting): Change return type to
2182 fast_tpoint_collect_result.
2183 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
2184 linux_wait_1, stuck_in_jump_pad_callback,
2185 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
2186 proceed_one_lwp): Adjust to type change.
2187
2188 2017-07-10 Yao Qi <yao.qi@linaro.org>
2189
2190 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
2191
2192 2017-06-29 Yao Qi <yao.qi@linaro.org>
2193
2194 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
2195 Remove.
2196 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
2197
2198 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
2199
2200 * Makefile.in (IPA_OBJS): Sort and format one item per line.
2201
2202 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
2203
2204 * linux-low.c (linux_create_inferior): Adjust code to access the
2205 environment information via 'gdb_environ' class.
2206 * lynx-low.c (lynx_create_inferior): Likewise.
2207 * server.c (our_environ): Make it an instance of 'gdb_environ'.
2208 (get_environ): Return a pointer to 'our_environ'.
2209 (captured_main): Initialize 'our_environ'.
2210 * server.h (get_environ): Adjust prototype.
2211 * spu-low.c (spu_create_inferior): Adjust code to access the
2212 environment information via 'gdb_environ' class.
2213
2214 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2215
2216 * linux-low.c (linux_read_memory, linux_write_memory): Remove
2217 usage of "register" keyword.
2218
2219 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2220
2221 * configure: Re-generate.
2222
2223 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2224
2225 * configure: Re-generate.
2226
2227 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2228
2229 * Makefile.in (COMPILE.pre): Add "-x c++".
2230
2231 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
2232
2233 * fork-child.c: Conditionally include <signal.h>.
2234
2235 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
2236
2237 * server.c (handle_general_set): Handle new packet
2238 "QStartupWithShell".
2239 (handle_query): Add "QStartupWithShell" to the list of supported
2240 packets.
2241 (gdbserver_usage): Add help text explaining the
2242 new "--startup-with-shell" and "--no-startup-with-shell" CLI
2243 options.
2244 (captured_main): Recognize and act upon the presence of the new
2245 CLI options.
2246
2247 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
2248 Pedro Alves <palves@redhat.com>
2249
2250 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
2251 * configure: Regenerate.
2252 * configure.srv (srv_linux_obj): Add "fork-child.o" and
2253 "fork-inferior.o".
2254 (i[34567]86-*-lynxos*): Likewise.
2255 (spu*-*-*): Likewise.
2256 * fork-child.c: New file.
2257 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
2258 and "environ.h".
2259 (linux_ptrace_fun): New function.
2260 (linux_create_inferior): Adjust function prototype to reflect
2261 change on "target.h". Adjust function code to use
2262 "fork_inferior".
2263 (linux_request_interrupt): Delete "signal_pid".
2264 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
2265 (lynx_ptrace_fun): New function.
2266 (lynx_create_inferior): Adjust function prototype to reflect
2267 change on "target.h". Adjust function code to use
2268 "fork_inferior".
2269 * nto-low.c (nto_create_inferior): Adjust function prototype and
2270 code to reflect change on "target.h". Update comments.
2271 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
2272 "common-terminal.h" and "environ.h".
2273 (terminal_fd): Moved to fork-child.c.
2274 (old_foreground_pgrp): Likewise.
2275 (restore_old_foreground_pgrp): Likewise.
2276 (last_status): Make it global.
2277 (last_ptid): Likewise.
2278 (our_environ): New variable.
2279 (startup_with_shell): Likewise.
2280 (program_name): Likewise.
2281 (program_argv): Rename to...
2282 (program_args): ...this.
2283 (wrapper_argv): New variable.
2284 (start_inferior): Delete function.
2285 (get_exec_wrapper): New function.
2286 (get_exec_file): Likewise.
2287 (get_environ): Likewise.
2288 (prefork_hook): Likewise.
2289 (post_fork_inferior): Likewise.
2290 (postfork_hook): Likewise.
2291 (postfork_child_hook): Likewise.
2292 (handle_v_run): Update code to deal with arguments coming from the
2293 remote host. Update calls from "start_inferior" to
2294 "create_inferior".
2295 (captured_main): Likewise. Initialize environment variable. Call
2296 "have_job_control".
2297 * server.h (post_fork_inferior): New prototype.
2298 (get_environ): Likewise.
2299 (last_status): Declare.
2300 (last_ptid): Likewise.
2301 (signal_pid): Likewise.
2302 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
2303 (spu_ptrace_fun): New function.
2304 (spu_create_inferior): Adjust function prototype to reflect change
2305 on "target.h". Adjust function code to use "fork_inferior".
2306 * target.c (target_terminal_init): New function.
2307 (target_terminal_inferior): Likewise.
2308 (target_terminal_ours): Likewise.
2309 * target.h: Include <vector>.
2310 (struct target_ops) <create_inferior>: Update prototype.
2311 (create_inferior): Update macro.
2312 * utils.c (gdb_flush_out_err): New function.
2313 * win32-low.c (win32_create_inferior): Adjust function prototype
2314 and code to reflect change on "target.h".
2315
2316 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
2317
2318 * inferiors.c (switch_to_thread): New function.
2319
2320 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
2321
2322 * Makefile.in (SFILE): Add "common/job-control.c".
2323 (OBS): Add "job-control.o".
2324
2325 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
2326
2327 * Makefile: Remove "@host_makefile_frag@".
2328
2329 2017-05-05 Pedro Alves <palves@redhat.com>
2330
2331 * configure: Regenerate.
2332
2333 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
2334
2335 * configure: Regenerate.
2336
2337 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
2338
2339 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
2340 software_single_step change of return type to
2341 std::vector<CORE_ADDR>.
2342 * linux-low.c (install_software_single_step_breakpoints):
2343 Likewise.
2344 * linux-low.h (install_software_single_step_breakpoints):
2345 Likewise.
2346
2347 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
2348
2349 * remote-utils.c: Include "gdb_termios.h" instead of
2350 "terminal.h".
2351 * terminal.h: Delete file.
2352
2353 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
2354
2355 * server.c: Include <vector>.
2356 <program_argv, wrapper_argv>: Convert to std::vector.
2357 (start_inferior): Rewrite function to use C++.
2358 (handle_v_run): Likewise. Update code that calculates the argv
2359 based on the vRun packet; use C++.
2360 (captured_main): Likewise.
2361
2362 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
2363
2364 * server.c (handle_v_cont): Initialize thread_resume::thread
2365 with null_ptid.
2366
2367 2017-04-05 Pedro Alves <palves@redhat.com>
2368
2369 * configure: Regenerate.
2370
2371 2017-04-05 Pedro Alves <palves@redhat.com>
2372
2373 * gdbreplay.c (sync_error): Constify.
2374 * linux-x86-low.c (push_opcode): Constify.
2375
2376 2017-04-05 Pedro Alves <palves@redhat.com>
2377
2378 * win32-low.c (get_child_debug_event)
2379 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
2380 Report TARGET_WAITKIND_SPURIOUS instead.
2381
2382 2017-04-05 Pedro Alves <palves@redhat.com>
2383
2384 * remote-utils.c (remote_prepare, remote_open): Constify.
2385 * remote-utils.h (remote_prepare, remote_open): Constify.
2386 * server.c (captured_main): Constify 'port' handling.
2387
2388 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
2389
2390 * Makefile.in (clean): Clear .deps.
2391
2392 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
2393
2394 * .gitignore: Remove generated files, replace with wildcard.
2395 * (clean): Replace removal of generated files with wildcard.
2396 (version.c): Replace with...
2397 (version-generated.c): ...this.
2398 (xml-builtin.c): Replace with...
2399 (xml-builtin-generated.c): ...this.
2400 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
2401 (%.c: *regformats*): Replace with...
2402 (%-generated.c: *regformats*): ...this.
2403
2404 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
2405
2406 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
2407 (xtensa_fill_gregset): Call collect_register_by_name for
2408 threadptr register.
2409 (xtensa_store_gregset): Call supply_register_by_name for
2410 threadptr register.
2411
2412 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
2413
2414 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
2415 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
2416 (xtensa_store_gregset): Call supply_register for all registers in
2417 a0_regnum..a0_regnum + C0_NREGS range.
2418
2419 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2420
2421 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
2422 (ax-ipa.o: ax.c): Remove.
2423 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
2424 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
2425 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
2426 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
2427 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
2428
2429 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2430
2431 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
2432 (print-utils-ipa.o: ../common/print-utils.c): Remove.
2433 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
2434 (errors-ipa.o: ../common/errors.c): Remove.
2435 (format-ipa.o: ../common/format.c): Remove.
2436 (common-utils-ipa.o: ../common/common-utils.c): Remove.
2437
2438 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2439
2440 * Makefile.in (%-ipa.o: %.c): New rule.
2441 (tracepoint-ipa.o: tracepoint.c): Remove.
2442 (utils-ipa.o: utils.c): Remove.
2443 (remote-utils-ipa.o: remote-utils.c): Remove.
2444 (regcache-ipa.o: regcache.c): Remove.
2445 (i386-linux-ipa.o: i386-linux.c): Remove.
2446 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
2447 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
2448 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
2449 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
2450 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
2451 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
2452 (amd64-linux-ipa.o: amd64-linux.c): Remove.
2453 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
2454 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
2455 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
2456 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
2457 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
2458 (aarch64-ipa.o: aarch64.c): Remove.
2459 (s390-linux32-ipa.o: s390-linux32.c): Remove.
2460 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
2461 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
2462 (s390-linux64-ipa.o: s390-linux64.c): Remove.
2463 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
2464 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
2465 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
2466 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
2467 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
2468 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
2469 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
2470 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
2471 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
2472 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
2473 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
2474 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
2475 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
2476 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
2477 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
2478 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
2479 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
2480 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
2481 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
2482 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
2483 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
2484 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
2485 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
2486 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
2487 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
2488 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
2489 (tdesc-ipa.o: tdesc.c): Remove.
2490 (x32-linux-ipa.o: x32-linux.c): Remove.
2491 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
2492 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
2493
2494 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2495
2496 * Makefile.in (%.o: ../arch/%.c): New rule.
2497 (arm.o: ../arch/arm.c): Remove.
2498 (arm-linux.o: ../arch/arm-linux.c): Remove.
2499 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
2500 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
2501
2502 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2503
2504 * Makefile.in (%.o: ../nat/%.c): New rule.
2505 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
2506 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
2507 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
2508 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
2509 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
2510 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
2511 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
2512 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
2513 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
2514 (linux-personality.o: ../nat/linux-personality.c): Remove.
2515 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
2516 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
2517 (x86-linux.o: ../nat/x86-linux.c): Remove.
2518 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
2519 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
2520
2521 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2522
2523 * Makefile.in (%.o: ../common/%.c): New rule.
2524 (signals.o: ../common/signals.c): Remove.
2525 (print-utils.o: ../common/print-utils.c): Remove.
2526 (rsp-low.o: ../common/rsp-low.c): Remove.
2527 (common-utils.o: ../common/common-utils.c): Remove.
2528 (posix-strerror.o: ../common/posix-strerror.c): Remove.
2529 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
2530 (vec.o: ../common/vec.c): Remove.
2531 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
2532 (xml-utils.o: ../common/xml-utils.c): Remove.
2533 (ptid.o: ../common/ptid.c): Remove.
2534 (buffer.o: ../common/buffer.c): Remove.
2535 (format.o: ../common/format.c): Remove.
2536 (filestuff.o: ../common/filestuff.c): Remove.
2537 (agent.o: ../common/agent.c): Remove.
2538 (errors.o: ../common/errors.c): Remove.
2539 (environ.o: ../common/environ.c): Remove.
2540 (common-debug.o: ../common/common-debug.c): Remove.
2541 (cleanups.o: ../common/cleanups.c): Remove.
2542 (common-exceptions.o: ../common/common-exceptions.c): Remove.
2543 (fileio.o: ../common/fileio.c): Remove.
2544 (common-regcache.o: ../common/common-regcache.c): Remove.
2545 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
2546 (new-op.o: ../common/new-op.c): Remove.
2547 (btrace-common.o: ../common/btrace-common.c): Remove.
2548
2549 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2550
2551 * Makefile.in (%.o: ../target/%.c): New rule.
2552 (waitstatus.o: ../target/waitstatus.c): Remove.
2553
2554 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2555
2556 * Makefile.in
2557 (%.c: ../regformats/%.dat,
2558 (%.c: ../regformats/arm/%.dat,
2559 (%.c: ../regformats/i386/%.dat,
2560 (%.c: ../regformats/rs6000/%.dat): New rules.
2561 (aarch64.c): Remove.
2562 (reg-arm.c): Remove.
2563 (arm-with-iwmmxt.c): Remove.
2564 (arm-with-vfpv2.c): Remove.
2565 (arm-with-vfpv3.c): Remove.
2566 (arm-with-neon.c): Remove.
2567 (reg-bfin.c): Remove.
2568 (reg-cris.c): Remove.
2569 (reg-crisv32.c): Remove.
2570 (i386.c): Remove.
2571 (i386-linux.c): Remove.
2572 (i386-avx.c): Remove.
2573 (i386-avx-linux.c): Remove.
2574 (i386-avx-avx512.c): Remove.
2575 (i386-avx-avx512-linux.c): Remove.
2576 (i386-mpx.c): Remove.
2577 (i386-mpx-linux.c): Remove.
2578 (i386-avx-mpx-avx512-pku.c): Remove.
2579 (i386-avx-mpx-avx512-pku-linux.c): Remove.
2580 (i386-avx-mpx.c): Remove.
2581 (i386-avx-mpx-linux.c): Remove.
2582 (i386-mmx.c): Remove.
2583 (i386-mmx-linux.c): Remove.
2584 (reg-ia64.c): Remove.
2585 (reg-m32r.c): Remove.
2586 (reg-m68k.c): Remove.
2587 (reg-cf.c): Remove.
2588 (mips-linux.c): Remove.
2589 (mips-dsp-linux.c): Remove.
2590 (mips64-linux.c): Remove.
2591 (mips64-dsp-linux.c): Remove.
2592 (nios2-linux.c): Remove.
2593 (powerpc-32.c): Remove.
2594 (powerpc-32l.c): Remove.
2595 (powerpc-altivec32l.c): Remove.
2596 (powerpc-cell32l.c): Remove.
2597 (powerpc-vsx32l.c): Remove.
2598 (powerpc-isa205-32l.c): Remove.
2599 (powerpc-isa205-altivec32l.c): Remove.
2600 (powerpc-isa205-vsx32l.c): Remove.
2601 (powerpc-e500l.c): Remove.
2602 (powerpc-64l.c): Remove.
2603 (powerpc-altivec64l.c): Remove.
2604 (powerpc-cell64l.c): Remove.
2605 (powerpc-vsx64l.c): Remove.
2606 (powerpc-isa205-64l.c): Remove.
2607 (powerpc-isa205-altivec64l.c): Remove.
2608 (powerpc-isa205-vsx64l.c): Remove.
2609 (s390-linux32.c): Remove.
2610 (s390-linux32v1.c): Remove.
2611 (s390-linux32v2.c): Remove.
2612 (s390-linux64.c): Remove.
2613 (s390-linux64v1.c): Remove.
2614 (s390-linux64v2.c): Remove.
2615 (s390-te-linux64.c): Remove.
2616 (s390-vx-linux64.c): Remove.
2617 (s390-tevx-linux64.c): Remove.
2618 (s390x-linux64.c): Remove.
2619 (s390x-linux64v1.c): Remove.
2620 (s390x-linux64v2.c): Remove.
2621 (s390x-te-linux64.c): Remove.
2622 (s390x-vx-linux64.c): Remove.
2623 (s390x-tevx-linux64.c): Remove.
2624 (tic6x-c64xp-linux.c): Remove.
2625 (tic6x-c64x-linux.c): Remove.
2626 (tic6x-c62x-linux.c): Remove.
2627 (reg-sh.c): Remove.
2628 (reg-sparc64.c): Remove.
2629 (reg-spu.c): Remove.
2630 (amd64.c): Remove.
2631 (amd64-linux.c): Remove.
2632 (amd64-avx.c): Remove.
2633 (amd64-avx-linux.c): Remove.
2634 (amd64-avx-avx512.c): Remove.
2635 (amd64-avx-avx512-linux.c): Remove.
2636 (amd64-mpx.c): Remove.
2637 (amd64-mpx-linux.c): Remove.
2638 (amd64-avx-mpx-avx512-pku.c): Remove.
2639 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
2640 (amd64-avx-mpx.c): Remove.
2641 (amd64-avx-mpx-linux.c): Remove.
2642 (x32.c): Remove.
2643 (x32-linux.c): Remove.
2644 (x32-avx.c): Remove.
2645 (x32-avx-linux.c): Remove.
2646 (x32-avx-avx512.c): Remove.
2647 (x32-avx-avx512-linux.c): Remove.
2648 (reg-xtensa.c): Remove.
2649 (reg-tilegx.c): Remove.
2650 (reg-tilegx32.c): Remove.
2651
2652 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
2653
2654 * Makefile.in (SFILES): Add "common/environ.c".
2655 (OBJS): Add "common/environ.h".
2656
2657 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
2658
2659 * configure.ac: Check if the fs_base and gs_base members of
2660 `struct user_regs_struct' exist.
2661 * config.in: Regenerated.
2662 * configure: Likewise.
2663
2664 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
2665
2666 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
2667 target_read_memory.
2668 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
2669 (get_next_pcs_syscall_next_pc): Likewise.
2670
2671 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
2672
2673 * win32-i386-low.c: Fix incorrect reference to a couple source files.
2674 * nto-x86-low.c: Likewise.
2675
2676 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
2677
2678 * Makefile.in: Include disable-implicit-rules.mk.
2679
2680 2016-11-23 Pedro Alves <palves@redhat.com>
2681
2682 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
2683 (debug_vprintf): Use std::chrono::steady_clock instead of
2684 gettimeofday. Use '.' instead of ':'.
2685 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
2686 (get_timestamp): Use std::chrono::steady_clock instead of
2687 gettimeofday.
2688
2689 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2690
2691 * Makefile.in: Fix whitespace formatting.
2692
2693 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2694
2695 * Makefile.in (SFILES, OBS): Flatten list and order
2696 alphabetically.
2697
2698 2016-11-23 Pedro Alves <palves@redhat.com>
2699
2700 * event-loop.c (handle_file_event): Use warning.
2701 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
2702 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
2703 Use warning.
2704
2705 2016-11-23 Pedro Alves <palves@redhat.com>
2706
2707 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
2708 output.
2709 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
2710 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
2711 debug_printf and debug_flush for debug output.
2712 * server.c (handle_general_set): Likewise.
2713 * thread-db.c (try_thread_db_load): Use debug_printf for debug
2714 output.
2715
2716 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2717
2718 * Makefile.in (.c.o): Replace rule with ...
2719 (%.o: %.c): ... this one.
2720
2721 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2722
2723 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
2724 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
2725 make.
2726 * configure.ac: Remove checks for the make program.
2727 * configure: Re-generate.
2728
2729 2016-10-28 Pedro Alves <palves@redhat.com>
2730
2731 * Makefile.in (CXX_DIALECT): Get from configure.
2732 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
2733 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
2734 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
2735 * config.in: Regenerate.
2736 * configure: Regenerate.
2737
2738 2016-10-27 Yao Qi <yao.qi@linaro.org>
2739
2740 * linux-low.c (linux_supports_range_stepping): Return true if
2741 can_software_single_step return true.
2742
2743 2016-10-27 Yao Qi <yao.qi@linaro.org>
2744
2745 * inferiors.c (find_inferior_in_random): New function.
2746 * inferiors.h (find_inferior_in_random): Declare.
2747 * linux-low.c (linux_wait_for_event_filtered): Call
2748 find_inferior_in_random instead of find_inferior.
2749
2750 2016-10-27 Yao Qi <yao.qi@linaro.org>
2751
2752 * linux-low.c (linux_wait_1): If single-step breakpoints are
2753 inserted, remove them.
2754
2755 2016-10-26 Pedro Alves <palves@redhat.com>
2756
2757 * linux-low.c (handle_extended_wait): Link parent/child fork
2758 threads.
2759 (linux_wait_1): Unlink them.
2760 (linux_set_resume_request): Ignore resume requests for
2761 already-resumed and unhandled fork child threads.
2762 * linux-low.h (struct lwp_info) <fork_relative>: New field.
2763 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
2764 New functions.
2765 (handle_v_requests) <vCont>: Don't call require_running.
2766 * server.h (in_queued_stop_replies): New declaration.
2767
2768 2016-10-24 Yao Qi <yao.qi@linaro.org>
2769
2770 PR server/20733
2771 * linux-aarch64-low.c (append_insns): Cast the return value to
2772 'uint32_t *'.
2773
2774 2016-10-10 Yao Qi <yao.qi@linaro.org>
2775
2776 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
2777
2778 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2779
2780 * target.c (target_supports_multi_process): New function, moved
2781 from...
2782 * target.h (target_supports_multi_process): ... here. Remove
2783 macro.
2784
2785 2016-10-05 Tom Tromey <tom@tromey.com>
2786
2787 PR remote/20655:
2788 * tracepoint.c (handle_tracepoint_bkpts): Check
2789 ipa_error_tracepoint, not ipa_stopping_tracepoint.
2790
2791 2016-10-05 Yao Qi <yao.qi@linaro.org>
2792
2793 * configure.srv: Update the path of arm-*.xml files.
2794
2795 2016-10-05 Terry Guo <terry.guo@arm.com>
2796 Yao Qi <yao.qi@linaro.org>
2797
2798 * Makefile.in: Adjust the path of rules.
2799 * configure.srv: Update the path of xml files.
2800 * regformats/arm-with-iwmmxt.dat: Regenerated.
2801 * regformats/arm-with-neon.dat: Likewise.
2802 * regformats/arm-with-vfpv2.dat: Likewise.
2803 * regformats/arm-with-vfpv3.dat Likewise.
2804
2805 2016-09-30 Yao Qi <yao.qi@linaro.org>
2806
2807 PR gdbserver/20627
2808 * target.c (target_stop_and_wait): Don't call
2809 target_continue_no_signal, use resume_stop instead.
2810
2811 2016-09-26 Yao Qi <yao.qi@linaro.org>
2812
2813 * linux-low.c (linux_wait_1): Call debug_exit.
2814
2815 2016-09-23 Pedro Alves <palves@redhat.com>
2816
2817 * Makefile.in (SFILES): Add common/new-op.c.
2818 (OBS): Add common/new-op.o.
2819 (new-op.o): New rule.
2820
2821 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
2822
2823 * .gitinore: Ignore more files.
2824
2825 2016-09-21 Yao Qi <yao.qi@linaro.org>
2826
2827 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
2828 23.
2829
2830 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
2831
2832 * server.c (start_inferior): Call target_mourn_inferior instead of
2833 mourn_inferior; pass ptid_t argument to it.
2834 (resume): Likewise.
2835 (handle_target_event): Likewise.
2836 * target.c (target_mourn_inferior): New function.
2837 * target.h (mourn_inferior): Delete macro.
2838
2839 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2840
2841 * linux-low.c (lwp_is_stepping): New function.
2842
2843 2016-09-06 Carl Love <cel@us.ibm.com>
2844
2845 * server.c (start_inferior): Fixed comment, requested comment change
2846 didn't get updated correctly. Removed reference to ptrace () call as
2847 it is only true on Linux systems.
2848
2849 2016-09-06 Carl Love <cel@us.ibm.com>
2850
2851 * server.c (start_inferior): Do not call
2852 function target_post_create_inferior () if the
2853 inferior process has already exited.
2854
2855 2016-09-05 Pedro Alves <palves@redhat.com>
2856
2857 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
2858 (COMPILE.pre, CC_LD): Use CXX directly.
2859 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
2860 * acinclude.m4: Don't include build-with-cxx.m4.
2861 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
2862 * configure: Regenerate.
2863
2864 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
2865
2866 PR gdb/19495
2867 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
2868 call writing data to own_buf.
2869
2870 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2871
2872 * target.c (mywait): Call target_wait instead of
2873 the_target->wait.
2874 (target_wait): New function.
2875
2876 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2877
2878 * server.c (start_inferior): New variable 'ptid'. Replace calls
2879 to the_target->resume by target_continue{,_no_signal}, depending
2880 on the case.
2881 * target.c (target_stop_and_wait): Call target_continue_no_signal
2882 instead of the_target->resume.
2883 (target_continue): New function.
2884
2885 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
2886
2887 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
2888
2889 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2890
2891 PR server/20491
2892 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
2893 ps_prochandle.
2894 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
2895 * linux-arm-low.c (ps_get_thread_area): Likewise.
2896 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
2897 * linux-m68k-low.c (ps_get_thread_area): Likewise.
2898 * linux-mips-low.c (ps_get_thread_area): Likewise.
2899 * linux-nios2-low.c (ps_get_thread_area): Likewise.
2900 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
2901 * linux-x86-low.c (ps_get_thread_area): Likewise.
2902 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
2903
2904 2016-08-19 Pedro Alves <palves@redhat.com>
2905
2906 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
2907
2908 2016-08-19 Pedro Alves <palves@redhat.com>
2909
2910 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
2911 comment. Use memcpy instead of casting through unsigned long.
2912
2913 2016-08-19 Pedro Alves <palves@redhat.com>
2914
2915 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
2916 allocating around 0x80000000.
2917
2918 2016-08-19 Pedro Alves <palves@redhat.com>
2919
2920 PR gdb/20415
2921 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
2922 (x32-avx512-linux-ipa.o): New rules.
2923 * configure.ac (x86_64-*-linux*): New x32 check.
2924 * configure.srv (ipa_x32_linux_regobj): New.
2925 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
2926 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
2927 descriptions.
2928 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
2929 descriptions.
2930 * configure: Regenerate.
2931
2932 2016-08-09 Pedro Alves <palves@redhat.com>
2933
2934 PR gdb/18653
2935 * Makefile.in (OBS): Add signals-state-save-restore.o.
2936 (signals-state-save-restore.o): New rule.
2937 * config.in: Regenerate.
2938 * configure: Regenerate.
2939 * linux-low.c: Include "signals-state-save-restore.h".
2940 (linux_create_inferior): Call
2941 restore_original_signals_state.
2942 * server.c: Include "dispositions-save-restore.h".
2943 (captured_main): Call save_original_signals_state.
2944
2945 2016-08-05 Pedro Alves <palves@redhat.com>
2946
2947 * configure: Regenerate.
2948
2949 2016-08-04 Yao Qi <yao.qi@linaro.org>
2950
2951 * linux-low.c (regsets_fetch_inferior_registers): Check
2952 errno is ESRCH or not.
2953
2954 2016-08-02 Yao Qi <yao.qi@linaro.org>
2955
2956 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
2957 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
2958 (thread_db_load_search): Update.
2959 (try_thread_db_load_1): Don't look for td_ta_event_addr,
2960 td_ta_set_event and td_ta_event_getmsg.
2961
2962 2016-07-26 Pedro Alves <palves@redhat.com>
2963
2964 PR server/20414
2965 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
2966 of unsigned long for 64-bit registers and use uint32_t instead of
2967 unsigned int for 32-bit registers.
2968
2969 2016-07-26 Pedro Alves <palves@redhat.com>
2970
2971 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
2972 to 'ptrace'.
2973
2974 2016-07-21 Tom Tromey <tom@tromey.com>
2975
2976 * configure: Rebuild.
2977
2978 2016-07-21 Yao Qi <yao.qi@linaro.org>
2979
2980 * mem-break.c (find_gdb_breakpoint): Cast bp to
2981 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
2982
2983 2016-07-21 Yao Qi <yao.qi@linaro.org>
2984
2985 * server.c (handle_v_requests): Support s and S actions
2986 if target_supports_software_single_step return true.
2987
2988 2016-07-21 Yao Qi <yao.qi@linaro.org>
2989
2990 * linux-low.c (resume_stopped_resumed_lwps): If resume request
2991 is resume_step, call maybe_hw_step.
2992 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
2993 and unstop them.
2994 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
2995 breakpoints or not.
2996 (proceed_one_lwp): If resume request is resume_step, install
2997 reinsert breakpoints and call maybe_hw_step.
2998
2999 2016-07-21 Yao Qi <yao.qi@linaro.org>
3000
3001 * linux-low.c (proceed_one_lwp): Declare.
3002 (linux_resume_one_thread): Remove local variable 'step'.
3003 Lift code enqueue signal. Call proceed_one_lwp instead of
3004 linux_resume_one_lwp.
3005
3006 2016-07-21 Yao Qi <yao.qi@linaro.org>
3007
3008 * linux-low.c (linux_resume_one_thread): Call
3009 enqueue_pending_signal.
3010
3011 2016-07-21 Yao Qi <yao.qi@linaro.org>
3012
3013 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
3014 * inferiors.c (do_restore_current_thread_cleanup): New function.
3015 (make_cleanup_restore_current_thread): Likewise.
3016 * linux-low.c (install_software_single_step_breakpoints): Call
3017 make_cleanup_restore_current_thread. Switch current_thread to
3018 thread.
3019
3020 2016-07-21 Yao Qi <yao.qi@linaro.org>
3021
3022 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
3023 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
3024 (clone_one_breakpoint): Likewise.
3025 (delete_reinsert_breakpoints): Change parameter to thread.
3026 Callers updated.
3027 (has_reinsert_breakpoints): Likewise.
3028 (uninsert_reinsert_breakpoints): Likewise.
3029 (reinsert_reinsert_breakpoints): Likewise.
3030 * mem-break.h (set_reinsert_breakpoint): Update declaration.
3031 (delete_reinsert_breakpoints): Likewise.
3032 (reinsert_reinsert_breakpoints): Likewise.
3033 (uninsert_reinsert_breakpoints): Likewise.
3034 (has_reinsert_breakpoints): Likewise.
3035
3036 2016-07-21 Yao Qi <yao.qi@linaro.org>
3037
3038 * inferiors.c (get_thread_process): Make parameter const.
3039 * inferiors.h (get_thread_process): Update declaration.
3040 * mem-break.c (clone_all_breakpoints): Remove all parameters.
3041 Add new parameters child_thread and parent_thread. Callers
3042 updated.
3043 * mem-break.h (clone_all_breakpoints): Update declaration.
3044
3045 2016-07-21 Yao Qi <yao.qi@linaro.org>
3046
3047 * mem-break.c (struct breakpoint) <cond_list>: Remove.
3048 <command_list, handler>: Remove.
3049 (struct gdb_breakpoint): New.
3050 (struct other_breakpoint): New.
3051 (struct reinsert_breakpoint): New.
3052 (is_gdb_breakpoint): New function.
3053 (any_persistent_commands): Update command_list if
3054 is_gdb_breakpoint returns true.
3055 (set_breakpoint): Create breakpoints according to their types.
3056 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
3057 (set_gdb_breakpoint_1): Likewise.
3058 (set_gdb_breakpoint): Likewise.
3059 (clear_breakpoint_conditions): Change parameter type to
3060 'struct gdb_breakpoint *'.
3061 (clear_breakpoint_commands): Likewise.
3062 (clear_breakpoint_conditions_and_commands): Likewise.
3063 (add_condition_to_breakpoint): Likewise.
3064 (add_breakpoint_condition): Likewise.
3065 (add_commands_to_breakpoint): Likewise.
3066 (check_breakpoints): Check other_breakpoint.
3067 (clone_one_breakpoint): Clone breakpopint according to its type.
3068 * mem-break.h (struct gdb_breakpoint): Declare.
3069 (set_gdb_breakpoint): Update declaration.
3070 (clear_breakpoint_conditions_and_commands): Likewise.
3071 (add_breakpoint_condition): Likewise.
3072 (add_breakpoint_commands): Likewise.
3073 * server.c (process_point_options): Change parameter type to
3074 'struct gdb_breakpoint *'.
3075
3076 2016-07-21 Yao Qi <yao.qi@linaro.org>
3077
3078 * mem-break.c (set_breakpoint_at): Rename it to ...
3079 (set_breakpoint_type_at): ... it.
3080 (set_breakpoint_at): Call set_breakpoint_type_at.
3081 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
3082 * mem-break.h (set_breakpoint_at): Update comments.
3083
3084 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
3085
3086 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
3087 to buf parameter.
3088 (nios2_store_gregset): Likewise.
3089
3090 2016-07-01 Pedro Alves <palves@redhat.com>
3091 Antoine Tremblay <antoine.tremblay@ericsson.com>
3092
3093 * linux-low.c: Change interface to take the target lwp_info
3094 pointer directly and return void. Handle detaching from a zombie
3095 thread.
3096 (linux_detach_lwp_callback): New function.
3097 (linux_detach): Detach from the leader thread after detaching from
3098 the clone threads.
3099
3100 2016-06-28 Yao Qi <yao.qi@linaro.org>
3101
3102 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
3103 for variable new_offset.
3104 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
3105 (aarch64_ftrace_insn_reloc_cb): Likewise.
3106 (aarch64_ftrace_insn_reloc_tb): Likewise.
3107 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
3108 PRIx64 instead of PRIx32.
3109
3110 2016-06-28 Yao Qi <yao.qi@linaro.org>
3111
3112 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
3113 (the_low_target): Install arm_get_syscall_trapinfo.
3114
3115 2016-06-28 Yao Qi <yao.qi@linaro.org>
3116
3117 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
3118 function.
3119 (the_low_target): Install aarch64_get_syscall_trapinfo.
3120
3121 2016-06-28 Yao Qi <yao.qi@linaro.org>
3122
3123 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
3124 Callers updated.
3125 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
3126 Remove parameter sysno.
3127 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
3128 sysret.
3129
3130 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3131
3132 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
3133 (s390_emit_ne_goto): Likewise.
3134 (s390_emit_lt_goto): Likewise.
3135 (s390_emit_le_goto): Likewise.
3136 (s390_emit_gt_goto): Likewise.
3137 (s390_emit_ge_goto): Likewise.
3138 (s390x_emit_eq_goto): Likewise.
3139 (s390x_emit_ne_goto): Likewise.
3140 (s390x_emit_lt_goto): Likewise.
3141 (s390x_emit_le_goto): Likewise.
3142 (s390x_emit_gt_goto): Likewise.
3143 (s390x_emit_ge_goto): Likewise.
3144 (s390_emit_ops_impl): Mark variable static.
3145 (s390x_emit_ops): Likewise.
3146
3147 2016-06-17 Yao Qi <yao.qi@linaro.org>
3148
3149 * linux-low.c (handle_extended_wait): Call
3150 uninsert_reinsert_breakpoints for the parent process. Remove
3151 reinsert breakpoints from the child process. Reinsert them to
3152 the parent process when vfork is done.
3153 * mem-break.c (uninsert_reinsert_breakpoints): New function.
3154 (reinsert_reinsert_breakpoints): New function.
3155 * mem-break.h (uninsert_reinsert_breakpoints): Declare
3156 (reinsert_reinsert_breakpoints): Declare.
3157
3158 2016-06-17 Yao Qi <yao.qi@linaro.org>
3159
3160 * linux-low.c (handle_extended_wait): If the parent is doing
3161 step-over, remove the reinsert breakpoints from the forked child.
3162
3163 2016-06-17 Yao Qi <yao.qi@linaro.org>
3164
3165 * linux-low.c (unsuspend_all_lwps): Declare.
3166 (linux_low_filter_event): If thread exited, call finish_step_over.
3167 If step-over is finished, unsuspend other threads.
3168
3169 2016-06-17 Yao Qi <yao.qi@linaro.org>
3170
3171 * linux-low.c (linux_resume_one_lwp_throw): Assert
3172 has_reinsert_breakpoints returns false.
3173 * mem-break.c (delete_disabled_breakpoints): Assert
3174 bp type isn't reinsert_breakpoint.
3175
3176 2016-06-17 Yao Qi <yao.qi@linaro.org>
3177
3178 * linux-low.c (maybe_hw_step): New function.
3179 (linux_resume_one_lwp_throw): Call maybe_hw_step.
3180 (finish_step_over): Switch current_thread to lwp temporarily,
3181 and assert has_reinsert_breakpoints returns true.
3182 (proceed_one_lwp): Call maybe_hw_step.
3183 * mem-break.c (has_reinsert_breakpoints): New function.
3184 * mem-break.h (has_reinsert_breakpoints): Declare.
3185
3186 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
3187
3188 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
3189
3190 2016-05-17 Yao Qi <yao.qi@linaro.org>
3191
3192 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
3193 instead of find_inferior.
3194
3195 2016-05-05 Yao Qi <yao.qi@linaro.org>
3196
3197 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
3198 Initialize res to zero.
3199
3200 2016-05-05 Yao Qi <yao.qi@linaro.org>
3201
3202 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
3203 to uint32_t.
3204
3205 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3206
3207 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
3208 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
3209 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
3210
3211 2016-04-28 Par Olsson <par.olsson@windriver.com>
3212 Simon Marchi <simon.marchi@ericsson.com>
3213
3214 * tracepoint.c (write_inferior_int8): New function.
3215 (cmd_qtenable_disable): Write enable flag using
3216 write_inferior_int8.
3217
3218 2016-04-25 Yao Qi <yao.qi@linaro.org>
3219
3220 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
3221 (need_step_over_p): Return zero if the LWP has pending signals
3222 can be delivered on software single step target.
3223
3224 2016-04-25 Yao Qi <yao.qi@linaro.org>
3225
3226 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
3227 return instead of error.
3228
3229 2016-04-22 Yao Qi <yao.qi@linaro.org>
3230
3231 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
3232 to 23.
3233
3234 2016-04-22 Yao Qi <yao.qi@linaro.org>
3235
3236 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
3237 signal when stepping over breakpoint with software single
3238 step.
3239
3240 2016-04-21 Pedro Alves <palves@redhat.com>
3241
3242 * linux-s390-low.c (s390_collect_ptrace_register)
3243 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
3244 add casts.
3245 (s390_check_regset): Use void * instead of gdb_byte *.
3246
3247 2016-04-20 Pedro Alves <palves@redhat.com>
3248
3249 * configure: Renegerate.
3250
3251 2016-04-20 Yao Qi <yao.qi@linaro.org>
3252
3253 * linux-aarch32-low.c: Include "arch/arm-linux.h".
3254 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
3255 number 16.
3256 (arm_store_gregset): Likewise.
3257
3258 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
3259
3260 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
3261 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
3262 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
3263 (amd64-avx-mpx-linux.c): New rules.
3264 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
3265 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
3266 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
3267 (srv_amd64_regobj): Add amd64-avx-mpx.o.
3268 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
3269 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
3270 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
3271 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
3272 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
3273 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
3274 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
3275 * linux-x86-low.c (x86_linux_read_description): Add case for
3276 X86_XSTATE_AVX_MPX_MASK.
3277 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
3278 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
3279 init_registers_i386_avx_mpx_linux.
3280 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
3281 (initialize_low_tracepoint): Call
3282 init_registers_i386_avx_mpx_linux.
3283 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
3284 (initialize_low_tracepoint): Call
3285 init_registers_amd64_avx_mpx_linux.
3286 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
3287 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
3288 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
3289 declarations.
3290
3291 2016-04-18 Pedro Alves <palves@redhat.com>
3292
3293 * configure: Regenerate.
3294
3295 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
3296
3297 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
3298 (aarch64_emit_sub): Likewise.
3299
3300 2016-04-12 Pedro Alves <palves@redhat.com>
3301
3302 * utils.c (prepare_to_throw_exception): Delete.
3303
3304 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
3305
3306 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
3307
3308 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
3309
3310 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
3311
3312 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
3313
3314 * linux-aarch64-ipa.c: Add <elf.h> include.
3315 * linux-ppc-ipa.c: Add <elf.h> include.
3316 * linux-s390-ipa.c: Add <elf.h> include.
3317
3318 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
3319
3320 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
3321 (get_raw_reg_ptr): Likewise.
3322 (get_trace_state_variable_value_ptr): Likewise.
3323 (set_trace_state_variable_value_ptr): Likewise.
3324 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
3325 char *.
3326
3327 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
3328 Marcin Kościelnicki <koriakin@0x04.net>
3329
3330 PR/17221
3331 * linux-ppc-low.c (emit_insns): New function.
3332 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
3333 (ppc_emit_prologue): New function.
3334 (ppc_emit_epilogue): New function.
3335 (ppc_emit_add): New function.
3336 (ppc_emit_sub): New function.
3337 (ppc_emit_mul): New function.
3338 (ppc_emit_lsh): New function.
3339 (ppc_emit_rsh_signed): New function.
3340 (ppc_emit_rsh_unsigned): New function.
3341 (ppc_emit_ext): New function.
3342 (ppc_emit_zero_ext): New function.
3343 (ppc_emit_log_not): New function.
3344 (ppc_emit_bit_and): New function.
3345 (ppc_emit_bit_or): New function.
3346 (ppc_emit_bit_xor): New function.
3347 (ppc_emit_bit_not): New function.
3348 (ppc_emit_equal): New function.
3349 (ppc_emit_less_signed): New function.
3350 (ppc_emit_less_unsigned): New function.
3351 (ppc_emit_ref): New function.
3352 (ppc_emit_const): New function.
3353 (ppc_emit_reg): New function.
3354 (ppc_emit_pop): New function.
3355 (ppc_emit_stack_flush): New function.
3356 (ppc_emit_swap): New function.
3357 (ppc_emit_stack_adjust): New function.
3358 (ppc_emit_call): New function.
3359 (ppc_emit_int_call_1): New function.
3360 (ppc_emit_void_call_2): New function.
3361 (ppc_emit_if_goto): New function.
3362 (ppc_emit_goto): New function.
3363 (ppc_emit_eq_goto): New function.
3364 (ppc_emit_ne_goto): New function.
3365 (ppc_emit_lt_goto): New function.
3366 (ppc_emit_le_goto): New function.
3367 (ppc_emit_gt_goto): New function.
3368 (ppc_emit_ge_goto): New function.
3369 (ppc_write_goto_address): New function.
3370 (ppc_emit_ops_impl): New static variable.
3371 (ppc64v1_emit_prologue): New function.
3372 (ppc64v2_emit_prologue): New function.
3373 (ppc64_emit_epilogue): New function.
3374 (ppc64_emit_add): New function.
3375 (ppc64_emit_sub): New function.
3376 (ppc64_emit_mul): New function.
3377 (ppc64_emit_lsh): New function.
3378 (ppc64_emit_rsh_signed): New function.
3379 (ppc64_emit_rsh_unsigned): New function.
3380 (ppc64_emit_ext): New function.
3381 (ppc64_emit_zero_ext): New function.
3382 (ppc64_emit_log_not): New function.
3383 (ppc64_emit_bit_and): New function.
3384 (ppc64_emit_bit_or): New function.
3385 (ppc64_emit_bit_xor): New function.
3386 (ppc64_emit_bit_not): New function.
3387 (ppc64_emit_equal): New function.
3388 (ppc64_emit_less_signed): New function.
3389 (ppc64_emit_less_unsigned): New function.
3390 (ppc64_emit_ref): New function.
3391 (ppc64_emit_const): New function.
3392 (ppc64v1_emit_reg): New function.
3393 (ppc64v2_emit_reg): New function.
3394 (ppc64_emit_pop): New function.
3395 (ppc64_emit_stack_flush): New function.
3396 (ppc64_emit_swap): New function.
3397 (ppc64v1_emit_call): New function.
3398 (ppc64v2_emit_call): New function.
3399 (ppc64v1_emit_int_call_1): New function.
3400 (ppc64v2_emit_int_call_1): New function.
3401 (ppc64v1_emit_void_call_2): New function.
3402 (ppc64v2_emit_void_call_2): New function.
3403 (ppc64_emit_if_goto): New function.
3404 (ppc64_emit_eq_goto): New function.
3405 (ppc64_emit_ne_goto): New function.
3406 (ppc64_emit_lt_goto): New function.
3407 (ppc64_emit_le_goto): New function.
3408 (ppc64_emit_gt_goto): New function.
3409 (ppc64_emit_ge_goto): New function.
3410 (ppc64v1_emit_ops_impl): New static variable.
3411 (ppc64v2_emit_ops_impl): New static variable.
3412 (ppc_emit_ops): New function.
3413 (linux_low_target): Wire in ppc_emit_ops.
3414
3415 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
3416 Marcin Kościelnicki <koriakin@0x04.net>
3417
3418 PR/17221
3419 * Makefile.in: Add powerpc-*-ipa.o
3420 * configure.srv: Add ipa_obj for powerpc*-linux.
3421 * linux-ppc-ipa.c: New file.
3422 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
3423 includes.
3424 (PPC_FIELD): New macro.
3425 (PPC_SEXT): New macro.
3426 (PPC_OP6): New macro.
3427 (PPC_BO): New macro.
3428 (PPC_LI): New macro.
3429 (PPC_BD): New macro.
3430 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
3431 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
3432 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
3433 (ppc_get_thread_area): New function.
3434 (is_elfv2_inferior): New function.
3435 (gen_ds_form): New function.
3436 (GEN_STD): New macro.
3437 (GEN_STDU): New macro.
3438 (GEN_LD): New macro.
3439 (GEN_LDU): New macro.
3440 (gen_d_form): New function.
3441 (GEN_ADDI): New macro.
3442 (GEN_ADDIS): New macro.
3443 (GEN_LI): New macro.
3444 (GEN_LIS): New macro.
3445 (GEN_ORI): New macro.
3446 (GEN_ORIS): New macro.
3447 (GEN_LWZ): New macro.
3448 (GEN_STW): New macro.
3449 (GEN_STWU): New macro.
3450 (gen_xfx_form): New function.
3451 (GEN_MFSPR): New macro.
3452 (GEN_MTSPR): New macro.
3453 (GEN_MFCR): New macro.
3454 (GEN_MTCR): New macro.
3455 (GEN_SYNC): New macro.
3456 (GEN_LWSYNC): New macro.
3457 (gen_x_form): New function.
3458 (GEN_OR): New macro.
3459 (GEN_MR): New macro.
3460 (GEN_LWARX): New macro.
3461 (GEN_STWCX): New macro.
3462 (GEN_CMPW): New macro.
3463 (gen_md_form): New function.
3464 (GEN_RLDICL): New macro.
3465 (GEN_RLDICR): New macro.
3466 (gen_i_form): New function.
3467 (GEN_B): New macro.
3468 (GEN_BL): New macro.
3469 (gen_b_form): New function.
3470 (GEN_BNE): New macro.
3471 (GEN_LOAD): New macro.
3472 (GEN_STORE): New macro.
3473 (gen_limm): New function.
3474 (gen_atomic_xchg): New function.
3475 (gen_call): New function.
3476 (ppc_relocate_instruction): New function.
3477 (ppc_install_fast_tracepoint_jump_pad): New function.
3478 (ppc_get_min_fast_tracepoint_insn_len): New function.
3479 (ppc_get_ipa_tdesc_idx): New function.
3480 (the_low_target): Wire in the new functions.
3481 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
3482 tdescs.
3483 * linux-ppc-tdesc.h: New file.
3484
3485 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
3486
3487 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
3488 (alloc_jump_pad_buffer): New function.
3489 * linux-amd64-ipa.c: Add <sys/mman.h> include.
3490 (alloc_jump_pad_buffer): New function.
3491 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
3492 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
3493 (alloc_jump_pad_buffer): New function.
3494 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
3495 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
3496 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
3497 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
3498
3499 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
3500
3501 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
3502 * linux-amd64-ipa.c: Likewise.
3503 * linux-i386-ipa.c: Likewise.
3504 * linux-s390-ipa.c: Likewise.
3505 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
3506 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
3507 set_trace_state_variable_value_ptr.
3508 (struct ipa_sym_addresses): Likewise.
3509 (symbol_list): Likewise.
3510 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
3511 accessing gdb_collect directly.
3512 (gdb_collect_ptr_type): New typedef.
3513 (get_raw_reg_ptr_type): New typedef.
3514 (get_trace_state_variable_value_ptr_type): New typedef.
3515 (set_trace_state_variable_value_ptr_type): New typedef.
3516 (gdb_collect_ptr): New global.
3517 (get_raw_reg_ptr): New global.
3518 (get_trace_state_variable_value_ptr): New global.
3519 (set_trace_state_variable_value_ptr): New global.
3520 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
3521 accessing get_raw_reg directly.
3522 (get_get_tsv_func_addr): Likewise for
3523 get_trace_state_variable_value_ptr.
3524 (get_set_tsv_func_addr): Likewise for
3525 set_trace_state_variable_value_ptr.
3526 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
3527
3528 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
3529
3530 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
3531
3532 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
3533
3534 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
3535 packets.
3536 (relocate_instruction): Remove own_buf.
3537 * server.c (own_buf): Make global.
3538 (handle_v_requests): Make global.
3539 * server.h (own_buf): New declaration.
3540 (handle_v_requests): New prototype.
3541
3542 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
3543
3544 PR 18377
3545 * linux-s390-low.c (add_insns): New function.
3546 (s390_emit_prologue): New function.
3547 (s390_emit_epilogue): New function.
3548 (s390_emit_add): New function.
3549 (s390_emit_sub): New function.
3550 (s390_emit_mul): New function.
3551 (s390_emit_lsh): New function.
3552 (s390_emit_rsh_signed): New function.
3553 (s390_emit_rsh_unsigned): New function.
3554 (s390_emit_ext): New function.
3555 (s390_emit_log_not): New function.
3556 (s390_emit_bit_and): New function.
3557 (s390_emit_bit_or): New function.
3558 (s390_emit_bit_xor): New function.
3559 (s390_emit_bit_not): New function.
3560 (s390_emit_equal): New function.
3561 (s390_emit_less_signed): New function.
3562 (s390_emit_less_unsigned): New function.
3563 (s390_emit_ref): New function.
3564 (s390_emit_if_goto): New function.
3565 (s390_emit_goto): New function.
3566 (s390_write_goto_address): New function.
3567 (s390_emit_litpool): New function.
3568 (s390_emit_const): New function.
3569 (s390_emit_call): New function.
3570 (s390_emit_reg): New function.
3571 (s390_emit_pop): New function.
3572 (s390_emit_stack_flush): New function.
3573 (s390_emit_zero_ext): New function.
3574 (s390_emit_swap): New function.
3575 (s390_emit_stack_adjust): New function.
3576 (s390_emit_set_r2): New function.
3577 (s390_emit_int_call_1): New function.
3578 (s390_emit_void_call_2): New function.
3579 (s390_emit_eq_goto): New function.
3580 (s390_emit_ne_goto): New function.
3581 (s390_emit_lt_goto): New function.
3582 (s390_emit_le_goto): New function.
3583 (s390_emit_gt_goto): New function.
3584 (s390_emit_ge_goto): New function.
3585 (s390x_emit_prologue): New function.
3586 (s390x_emit_epilogue): New function.
3587 (s390x_emit_add): New function.
3588 (s390x_emit_sub): New function.
3589 (s390x_emit_mul): New function.
3590 (s390x_emit_lsh): New function.
3591 (s390x_emit_rsh_signed): New function.
3592 (s390x_emit_rsh_unsigned): New function.
3593 (s390x_emit_ext): New function.
3594 (s390x_emit_log_not): New function.
3595 (s390x_emit_bit_and): New function.
3596 (s390x_emit_bit_or): New function.
3597 (s390x_emit_bit_xor): New function.
3598 (s390x_emit_bit_not): New function.
3599 (s390x_emit_equal): New function.
3600 (s390x_emit_less_signed): New function.
3601 (s390x_emit_less_unsigned): New function.
3602 (s390x_emit_ref): New function.
3603 (s390x_emit_if_goto): New function.
3604 (s390x_emit_const): New function.
3605 (s390x_emit_call): New function.
3606 (s390x_emit_reg): New function.
3607 (s390x_emit_pop): New function.
3608 (s390x_emit_stack_flush): New function.
3609 (s390x_emit_zero_ext): New function.
3610 (s390x_emit_swap): New function.
3611 (s390x_emit_stack_adjust): New function.
3612 (s390x_emit_int_call_1): New function.
3613 (s390x_emit_void_call_2): New function.
3614 (s390x_emit_eq_goto): New function.
3615 (s390x_emit_ne_goto): New function.
3616 (s390x_emit_lt_goto): New function.
3617 (s390x_emit_le_goto): New function.
3618 (s390x_emit_gt_goto): New function.
3619 (s390x_emit_ge_goto): New function.
3620 (s390_emit_ops): New function.
3621 (struct linux_target_ops): Fill in emit_ops hook.
3622
3623 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
3624
3625 PR 18377
3626 * Makefile.in: Add s390 IPA files.
3627 * configure.srv: Build IPA for s390.
3628 * linux-s390-ipa.c: New file.
3629 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
3630 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
3631 (tdesc_s390_linux32): Likewise.
3632 (init_registers_s390_linux32v1): Likewise.
3633 (tdesc_s390_linux32v1): Likewise.
3634 (init_registers_s390_linux32v2): Likewise.
3635 (tdesc_s390_linux32v2): Likewise.
3636 (init_registers_s390_linux64): Likewise.
3637 (tdesc_s390_linux64): Likewise.
3638 (init_registers_s390_linux64v1): Likewise.
3639 (tdesc_s390_linux64v1): Likewise.
3640 (init_registers_s390_linux64v2): Likewise.
3641 (tdesc_s390_linux64v2): Likewise.
3642 (init_registers_s390_te_linux64): Likewise.
3643 (tdesc_s390_te_linux64): Likewise.
3644 (init_registers_s390_vx_linux64): Likewise.
3645 (tdesc_s390_vx_linux64): Likewise.
3646 (init_registers_s390_tevx_linux64): Likewise.
3647 (tdesc_s390_tevx_linux64): Likewise.
3648 (init_registers_s390x_linux64): Likewise.
3649 (tdesc_s390x_linux64): Likewise.
3650 (init_registers_s390x_linux64v1): Likewise.
3651 (tdesc_s390x_linux64v1): Likewise.
3652 (init_registers_s390x_linux64v2): Likewise.
3653 (tdesc_s390x_linux64v2): Likewise.
3654 (init_registers_s390x_te_linux64): Likewise.
3655 (tdesc_s390x_te_linux64): Likewise.
3656 (init_registers_s390x_vx_linux64): Likewise.
3657 (tdesc_s390x_vx_linux64): Likewise.
3658 (init_registers_s390x_tevx_linux64): Likewise.
3659 (tdesc_s390x_tevx_linux64): Likewise.
3660 (have_hwcap_s390_vx): New static variable.
3661 (s390_arch_setup): Fill have_hwcap_s390_vx.
3662 (s390_get_thread_area): New function.
3663 (s390_ft_entry_gpr_esa): New const.
3664 (s390_ft_entry_gpr_zarch): New const.
3665 (s390_ft_entry_misc): New const.
3666 (s390_ft_entry_fr): New const.
3667 (s390_ft_entry_vr): New const.
3668 (s390_ft_main_31): New const.
3669 (s390_ft_main_64): New const.
3670 (s390_ft_exit_fr): New const.
3671 (s390_ft_exit_vr): New const.
3672 (s390_ft_exit_misc): New const.
3673 (s390_ft_exit_gpr_esa): New const.
3674 (s390_ft_exit_gpr_zarch): New const.
3675 (append_insns): New function.
3676 (s390_relocate_instruction): New function.
3677 (s390_install_fast_tracepoint_jump_pad): New function.
3678 (s390_get_min_fast_tracepoint_insn_len): New function.
3679 (s390_get_ipa_tdesc_idx): New function.
3680 (struct linux_target_ops): Wire in the above functions.
3681 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
3682 * linux-s390-tdesc.h: New file.
3683
3684 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
3685
3686 * linux-s390-low.c (s390_supports_tracepoints): New function.
3687 (struct linux_target_ops): Fill supports_tracepoints hook.
3688
3689 2016-03-18 Yao Qi <yao.qi@linaro.org>
3690
3691 * linux-low.c (lwp_signal_can_be_delivered): New function.
3692 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
3693
3694 2016-03-18 Yao Qi <yao.qi@linaro.org>
3695
3696 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
3697 0 if signal is enqueued. Remove 'signal' from one debugging
3698 message. Move one debugging message to some lines below.
3699 Remove code setting 'signal' to 0.
3700
3701 2016-03-18 Yao Qi <yao.qi@linaro.org>
3702
3703 * linux-low.c (linux_low_filter_event): Remove redundant
3704 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
3705
3706 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
3707
3708 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
3709 (struct linux_target_ops): Wire in the above.
3710
3711 2016-03-03 Yao Qi <yao.qi@linaro.org>
3712
3713 * linux-low.c: Update comments to start_step_over.
3714
3715 2016-03-03 Yao Qi <yao.qi@linaro.org>
3716
3717 PR server/19736
3718 * linux-low.c (handle_extended_wait): Set child suspended
3719 if event_lwp->bp_reinsert isn't zero.
3720
3721 2016-03-02 Yao Qi <yao.qi@linaro.org>
3722
3723 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
3724 enqueue_pending_signal.
3725
3726 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
3727
3728 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
3729 is actually loaded.
3730
3731 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
3732
3733 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
3734 (s390_regmap_3264) [!__s390x__]: New global.
3735 (s390_collect_ptrace_register): Skip map entries containing -1.
3736 (s390_supply_ptrace_register): Ditto.
3737 (s390_fill_gprs_high): New function.
3738 (s390_store_gprs_high): New function.
3739 (s390_regsets): Add NT_S390_HIGH_GPRS.
3740 (s390_get_hwcap): Enable on 31-bit.
3741 (have_hwcap_s390_high_gprs): Enable on 31-bit.
3742 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
3743 Detect NT_S390_HIGH_GPRS.
3744 (s390_usrregs_info_3264): Enable on 31-bit.
3745 (s390_regs_info): Enable regs_info_3264 on 31-bit.
3746 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
3747
3748 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
3749
3750 PR gdb/13808
3751 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
3752 * configure.srv: Ditto.
3753 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
3754 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
3755 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
3756 (init_registers_amd64_linux): Remove prototype.
3757 (tdesc_amd64_linux): Remove declaration.
3758 (get_ipa_tdesc): New function.
3759 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
3760 initialize remaining tdescs.
3761 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
3762 (init_registers_i386_linux): Remove prototype.
3763 (tdesc_i386_linux): Remove declaration.
3764 (get_ipa_tdesc): New function.
3765 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
3766 initialize remaining tdescs.
3767 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
3768 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
3769 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
3770 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
3771 (x86_get_ipa_tdesc_idx): New function.
3772 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
3773 * linux-x86-tdesc.h: New file.
3774 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
3775 (target_get_ipa_tdesc_idx): New macro.
3776 * tracepoint.c (ipa_tdesc_idx): New macro.
3777 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
3778 (symbol_list): Add ipa_tdesc_idx.
3779 (cmd_qtstart): Write ipa_tdesc_idx in the target.
3780 (ipa_tdesc): Remove.
3781 (ipa_tdesc_idx): New variable.
3782 (get_context_regcache): Use get_ipa_tdesc.
3783 (gdb_collect): Ditto.
3784 (gdb_probe): Ditto.
3785 * tracepoint.h (get_ipa_tdesc): New prototype.
3786 (ipa_tdesc): Remove.
3787
3788 2016-02-24 Pedro Alves <palves@redhat.com>
3789
3790 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
3791 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
3792 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
3793 Factor out common code between the USE_SIGTRAP_SIGINFO and
3794 !USE_SIGTRAP_SIGINFO blocks.
3795 (linux_low_filter_event): Call save_stop_reason instead of
3796 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
3797 Update comments.
3798 (linux_wait_1): Update comments.
3799
3800 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
3801
3802 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
3803 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
3804 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
3805 ppc_insert_point, ppc_remove_point.
3806
3807 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
3808
3809 * linux-s390-low.c (s390_supports_z_point_type): New function.
3810 (struct linux_target_ops): Wire s390_supports_z_point_type in.
3811
3812 2016-02-16 Yao Qi <yao.qi@linaro.org>
3813
3814 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
3815 PC. Get pc from regcache_read_pc.
3816
3817 2016-02-12 Yao Qi <yao.qi@linaro.org>
3818
3819 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
3820 or linux_get_pc_32bit.
3821 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
3822
3823 2016-02-12 Yao Qi <yao.qi@linaro.org>
3824
3825 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
3826 arm_linux_get_next_pcs_fixup.
3827
3828 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
3829
3830 * tracepoint.c (x_tracepoint_action_download): Change
3831 write_inferior_data_ptr to write_inferior_data_pointer.
3832 (cmd_qtstart): Likewise.
3833 (write_inferior_data_ptr): Remove.
3834 (download_agent_expr): Change write_inferior_data_ptr to
3835 write_inferior_data_pointer.
3836 (download_tracepoint_1): Likewise.
3837 (download_tracepoint): Likewise.
3838 (download_trace_state_variables): Likewise.
3839
3840 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
3841 Marcin Kościelnicki <koriakin@0x04.net>
3842
3843 * tracepoint.c (struct tracepoint_action_ops): Remove.
3844 (struct tracepoint_action): Remove ops.
3845 (m_tracepoint_action_download, r_tracepoint_action_download)
3846 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
3847 size and offset accordingly.
3848 (m_tracepoint_action_ops, r_tracepoint_action_ops)
3849 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
3850 (tracepoint_action_send, tracepoint_action_download): New functions.
3851 Helpers for trace action handlers.
3852 (add_tracepoint_action): Remove setup actions ops.
3853 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
3854
3855 2016-02-10 Yao Qi <yao.qi@linaro.org>
3856
3857 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
3858
3859 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
3860
3861 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
3862 to AC_OUTPUT.
3863 * configure: Regenerate.
3864
3865 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
3866
3867 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
3868 void * to gdb_byte *.
3869 * linux-low.c (siginfo_fixup): Likewise.
3870 (linux_xfer_siginfo): Likewise.
3871 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
3872 Likewise.
3873 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
3874
3875 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
3876
3877 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
3878 to srv_tgtobj.
3879 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
3880 to srv_tgtobj.
3881 * linux-x86-low.c [__x86_64__]: Include
3882 "nat/amd64-linux-siginfo.h".
3883 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
3884 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
3885 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
3886 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
3887 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
3888 (cpt_si_fd, si_timerid, si_overrun): Move from
3889 nat/amd64-linux-siginfo.c.
3890 * Makefile.in (amd64-linux-siginfo.o:): New rule.
3891
3892 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
3893
3894 * server.c (skip_to_semicolon): Remove.
3895 (process_point_options): Use strchrnul instead of
3896 skip_to_semicolon.
3897
3898 2016-01-26 Yao Qi <yao.qi@linaro.org>
3899
3900 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
3901 * linux-low.c (install_software_single_step_breakpoints): Don't
3902 call regcache_read_pc.
3903 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
3904 argument pc.
3905
3906 2016-01-26 Yao Qi <yao.qi@linaro.org>
3907
3908 * linux-low.c (install_software_single_step_breakpoints): Call
3909 regcache_read_pc instead of get_pc.
3910
3911 2016-01-26 Yao Qi <yao.qi@linaro.org>
3912
3913 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
3914 (unblock_async_io): Rename to ...
3915 (block_unblock_async_io): ... it. New function.
3916 (enable_async_io): Don't install SIGIO handler. Unblock it
3917 instead.
3918 (disable_async_io): Don't ignore SIGIO. Block it instead.
3919 (initialize_async_io): Install SIGIO handler. Don't call
3920 unblock_async_io.
3921
3922 2016-01-26 Yao Qi <yao.qi@linaro.org>
3923
3924 * remote-utils.c (getpkt): If the buffer isn't empty, and the
3925 first character is '\003', call *the_target->request_interrupt.
3926
3927 2016-01-25 Yao Qi <yao.qi@linaro.org>
3928
3929 * remote-utils.c (new_thread_notify): Remove.
3930 (dead_thread_notify): Likewise.
3931 * remote-utils.h (new_thread_notify): Remove declaration.
3932 (dead_thread_notify): Likewise.
3933
3934 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
3935
3936 * gdb.trace/pending.exp: Fix expected message on continue.
3937
3938 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
3939
3940 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
3941 it works properly on big-endian machines where sizeof (CORE_ADDR)
3942 != sizeof (void *).
3943
3944 2016-01-21 Pedro Alves <palves@redhat.com>
3945
3946 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
3947 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
3948 * configure: Regenerate.
3949
3950 2016-01-21 Yao Qi <yao.qi@linaro.org>
3951
3952 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
3953 is_thumb and set it according to CPSR saved on the stack.
3954 (get_next_pcs_syscall_next_pc): Pass is_thumb to
3955 arm_sigreturn_next_pc.
3956
3957 2016-01-18 Yao Qi <yao.qi@linaro.org>
3958
3959 * linux-low.c (linux_set_pc_64bit): New function.
3960 (linux_get_pc_64bit): New function.
3961 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
3962 Declare.
3963 * linux-sparc-low.c (debug_threads): Remove declaration.
3964 (sparc_get_pc): Remove.
3965 (the_low_target): Use linux_get_pc_64bit instead of
3966 sparc_get_pc.
3967 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
3968 (the_low_target): Use linux_get_pc_64bit and
3969 linux_set_pc_64bit.
3970
3971 2016-01-18 Yao Qi <yao.qi@linaro.org>
3972
3973 * linux-arm-low.c (debug_threads): Remove declaration.
3974 (arm_get_pc, arm_set_pc): Remove.
3975 (the_low_target): Use linux_get_pc_32bit and
3976 linux_set_pc_32bit.
3977 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
3978 (the_low_target): Use linux_get_pc_32bit and
3979 linux_set_pc_32bit.
3980 * linux-cris-low.c (debug_threads): Remove declaration.
3981 (cris_get_pc, cris_set_pc,): Remove.
3982 (the_low_target): Use linux_get_pc_32bit and
3983 linux_set_pc_32bit.
3984 * linux-crisv32-low.c (debug_threads): Remove declaration.
3985 (cris_get_pc, cris_set_pc): Remove.
3986 (the_low_target): Use linux_get_pc_32bit and
3987 linux_set_pc_32bit.
3988 * linux-low.c: Include inttypes.h.
3989 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
3990 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
3991 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
3992 (the_low_target): Use linux_get_pc_32bit and
3993 linux_set_pc_32bit.
3994 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
3995 (the_low_target): Use linux_get_pc_32bit and
3996 linux_set_pc_32bit.
3997 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
3998 (the_low_target): Use linux_get_pc_32bit and
3999 linux_set_pc_32bit.
4000 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
4001 (the_low_target): Use linux_get_pc_32bit and
4002 linux_set_pc_32bit.
4003 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
4004 (the_low_target): Use linux_get_pc_32bit and
4005 linux_set_pc_32bit.
4006
4007 2016-01-18 Gary Benson <gbenson@redhat.com>
4008
4009 * configure.ac (AC_FUNC_FORK): New check.
4010 * config.in: Regenerate.
4011 * configure: Likewise.
4012
4013 2016-01-14 Yao Qi <yao.qi@linaro.org>
4014
4015 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
4016 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
4017 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
4018 arm_get_next_pcs_ctor.
4019
4020 2016-01-12 Josh Stone <jistone@redhat.com>
4021 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4022
4023 * inferiors.h: Include "gdb_vecs.h".
4024 (struct process_info): Add syscalls_to_catch.
4025 * inferiors.c (remove_process): Free syscalls_to_catch.
4026 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
4027 syscall_return stops.
4028 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
4029 * server.c (handle_general_set): Handle QCatchSyscalls.
4030 (handle_query): Report support for QCatchSyscalls.
4031 * target.h (struct target_ops): Add supports_catch_syscall.
4032 (target_supports_catch_syscall): New macro.
4033 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
4034 (struct lwp_info): Add syscall_state.
4035 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
4036 Maintain syscall_state and syscalls_to_catch across exec.
4037 (get_syscall_trapinfo): New function, proxy to the_low_target.
4038 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
4039 (linux_low_filter_event): Toggle syscall_state entry/return for
4040 syscall traps, and set it ignored for all others.
4041 (gdb_catching_syscalls_p): New function.
4042 (gdb_catch_this_syscall_p): New function.
4043 (linux_wait_1): Handle SYSCALL_SIGTRAP.
4044 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
4045 (linux_supports_catch_syscall): New function.
4046 (linux_target_ops): Install it.
4047 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
4048 (the_low_target): Install it.
4049
4050 2016-01-12 Mike Frysinger <vapier@gentoo.org>
4051
4052 * acinclude.m4: Include new ../warning.m4 file.
4053 * configure: Regenerated.
4054 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
4055
4056 2016-01-12 Mike Frysinger <vapier@gentoo.org>
4057
4058 * ax.c (is_goto_target): Mark static.
4059 * linux-low.c (register_addr): Likewise.
4060 (linux_fetch_registers, linux_store_registers): Likewise.
4061 * mem-break.c (any_persistent_commands): Fix old prototype.
4062 (add_commands_to_breakpoint): Mark static.
4063 * regcache.c (find_register_by_name): Delete unused func.
4064 * remote-utils.c (hex_or_minus_one): Mark static.
4065 * server.c (monitor_show_help): Mark static.
4066 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
4067 handle_v_requests): Likewise.
4068
4069 2016-01-12 Pedro Alves <palves@redhat.com>
4070
4071 Remove use of the registered trademark symbol throughout.
4072
4073 2016-01-08 Yao Qi <yao.qi@linaro.org>
4074
4075 * remote-utils.c (getpkt): If c is '\003', call target hook
4076 request_interrupt.
4077
4078 2016-01-06 Yao Qi <yao.qi@linaro.org>
4079
4080 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
4081 linux-aarch32-low.c.
4082 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4083 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
4084 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
4085 (thumb2_breakpoint): Declare.
4086 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
4087 linux-aarch32-low.h.
4088 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4089 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
4090 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
4091
4092 2016-01-01 Joel Brobecker <brobecker@adacore.com>
4093
4094 * gdbreplay.c (gdbreplay_version): Change copyright year in
4095 version message.
4096 * server.c (gdbserver_version): Likewise.
4097
4098 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
4099
4100 * server.c (crc32_table): Delete.
4101 (crc32): Use libiberty's xcrc32 function.
4102
4103 2015-12-22 Joel Brobecker <brobecker@adacore.com>
4104
4105 * lynx-low.c (lynx_delete_thread_callback): New function.
4106 (lynx_mourn): Properly delete our process and all of its
4107 threads. Remove call to clear_inferiors.
4108
4109 2015-12-22 Joel Brobecker <brobecker@adacore.com>
4110
4111 * target.c (thread_search_callback): Add check that
4112 the thread_stopped target callback is not NULL before
4113 calling it.
4114
4115 2015-12-21 Yao Qi <yao.qi@linaro.org>
4116
4117 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
4118 arm breakpoint.
4119
4120 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4121
4122 * server.c (handle_query): Call target_supports_software_single_step.
4123
4124 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4125
4126 * linux-low.c (single_step): New function.
4127 (linux_resume_one_lwp_throw): Call single_step.
4128 (start_step_over): Likewise.
4129
4130 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4131
4132 * Makefile.in (SFILES): Append arch/arm-linux.c,
4133 arch/arm-get-next-pcs.c.
4134 (arm-linux.o): New rule.
4135 (arm-get-next-pcs.o): New rule.
4136 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
4137 arm-linux.o.
4138 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
4139 to linux-aarch32-low.c.
4140 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4141 (arm_breakpoint_len, thumb_breakpoint): Likewise.
4142 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
4143 (thumb2_breakpoint_len): Likewise.
4144 (arm_is_thumb_mode): Make non-static.
4145 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
4146 from linux-aarch32-low.c.
4147 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4148 (arm_breakpoint_len, thumb_breakpoint): Likewise.
4149 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
4150 (thumb2_breakpoint_len): Likewise.
4151 (arm_is_thumb_mode): New declaration.
4152 * linux-arm-low.c: Include arch/arm-linux.h
4153 aarch/arm-get-next-pcs.h, sys/syscall.h.
4154 (get_next_pcs_ops): New struct.
4155 (get_next_pcs_addr_bits_remove): New function.
4156 (get_next_pcs_is_thumb): New function.
4157 (get_next_pcs_read_memory_unsigned_integer): Likewise.
4158 (arm_sigreturn_next_pc): Likewise.
4159 (get_next_pcs_syscall_next_pc): Likewise.
4160 (arm_gdbserver_get_next_pcs): Likewise.
4161 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
4162 Initialize.
4163 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
4164 * server.h: Include gdb_vecs.h.
4165
4166 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4167
4168 * Makefile.in (SFILES): Append common/common-regcache.c.
4169 (OBS): Append common-regcache.o.
4170 (common-regcache.o): New rule.
4171 * regcache.c (init_register_cache): Initialize cache to
4172 REG_UNAVAILABLE.
4173 (regcache_raw_read_unsigned): New function.
4174 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
4175 register_status enum.
4176
4177 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4178
4179 * linux-aarch64-low.c (the_low_targets): Rename
4180 breakpoint_reinsert_addr to get_next_pcs.
4181 * linux-arm-low.c (the_low_targets): Likewise.
4182 * linux-bfin-low.c (the_low_targets): Likewise.
4183 * linux-cris-low.c (the_low_targets): Likewise.
4184 * linux-crisv32-low.c (the_low_targets): Likewise.
4185 * linux-low.c (can_software_single_step): Likewise.
4186 (install_software_single_step_breakpoints): New function.
4187 (start_step_over): Use install_software_single_step_breakpoints.
4188 * linux-low.h: New CORE_ADDR vector.
4189 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
4190 get_next_pcs.
4191 * linux-mips-low.c (the_low_targets): Likewise.
4192 * linux-nios2-low.c (the_low_targets): Likewise.
4193 * linux-sparc-low.c (the_low_targets): Likewise.
4194
4195 2015-12-17 Pedro Alves <palves@redhat.com>
4196
4197 * linux-low.c (linux_kill_one_lwp): Remove references to
4198 LinuxThreads.
4199 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
4200 to 'kill'.
4201 (linux_init_signals): Delete.
4202 (initialize_low): Adjust.
4203 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
4204
4205 2015-12-16 Pedro Alves <palves@redhat.com>
4206
4207 * configure.ac (compiler warning flags): When testing a
4208 -Wno-foo option, check whether -Wfoo works instead.
4209 * configure: Regenerate.
4210
4211 2015-12-11 Don Breazeal <donb@codesourcery.com>
4212
4213 * server.c (process_serial_event): Don't exit from gdbserver
4214 in remote mode if there are still active inferiors.
4215
4216 2015-12-11 Yao Qi <yao.qi@linaro.org>
4217
4218 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
4219 arm_breakpoint_at if the process is 32-bit.
4220
4221 2015-12-11 Yao Qi <yao.qi@linaro.org>
4222
4223 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
4224 arm breakpoint.
4225
4226 2015-12-07 Yao Qi <yao.qi@linaro.org>
4227
4228 * configure.srv: Append arm.o to srv_tgtobj for
4229 aarch64*-*-linux* target.
4230 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
4231 from linux-arm-low.c.
4232 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4233 (arm_breakpoint_len, thumb_breakpoint): Likewise.
4234 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
4235 (thumb2_breakpoint_len): Likewise.
4236 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
4237 (arm_breakpoint_kinds): Likewise.
4238 (arm_breakpoint_kind_from_pc): Likewise.
4239 (arm_sw_breakpoint_from_kind): Likewise.
4240 (arm_breakpoint_kind_from_current_state): Likewise.
4241 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
4242 (arm_sw_breakpoint_from_kind): Declare.
4243 (arm_breakpoint_kind_from_current_state): Declare.
4244 (arm_breakpoint_at): Declare.
4245 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
4246 arm_sw_breakpoint_from_kind if process is 32-bit.
4247 (aarch64_breakpoint_kind_from_pc): New function.
4248 (aarch64_breakpoint_kind_from_current_state): New function.
4249 (the_low_target): Initialize fields breakpoint_kind_from_pc
4250 and breakpoint_kind_from_current_state.
4251 * linux-arm-low.c (arm_breakpoint_kinds): Move to
4252 linux-aarch32-low.c.
4253 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
4254 (arm_breakpoint, arm_breakpoint_len): Likewise.
4255 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
4256 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
4257 (arm_is_thumb_mode): Likewise.
4258 (arm_breakpoint_at): Likewise.
4259 (arm_breakpoint_kind_from_pc): Likewise.
4260 (arm_sw_breakpoint_from_kind): Likewise.
4261 (arm_breakpoint_kind_from_current_state): Likewise.
4262
4263 Revert:
4264 2015-08-04 Yao Qi <yao.qi@linaro.org>
4265
4266 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
4267 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
4268 * server.c (extended_protocol): Remove "static".
4269 * server.h (extended_protocol): Declare it.
4270
4271 2015-12-04 Josh Stone <jistone@redhat.com>
4272
4273 * target.h (struct target_ops) <arch_setup>: Rename to ...
4274 (struct target_ops) <post_create_inferior>: ... this.
4275 (target_arch_setup): Rename to ...
4276 (target_post_create_inferior): ... this, calling post_create_inferior.
4277 * server.c (start_inferior): Update target_arch_setup calls to
4278 target_post_create_inferior.
4279 * linux-low.c (linux_low_ptrace_options): Forward declare.
4280 (linux_arch_setup): Update its comment for general use.
4281 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
4282 (struct linux_target_ops): Use linux_post_create_inferior.
4283 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
4284 to post_create_inferior.
4285 * nto-low.c (struct nto_target_ops): Likewise.
4286 * spu-low.c (struct spu_target_ops): Likewise.
4287 * win32-low.c (struct win32_target_ops): Likewise.
4288
4289 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
4290
4291 * linux-arm-low.c: Remove duplicate arch/arm.h include.
4292
4293 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4294
4295 * linux-arm-low.c (arm_reinsert_addr): Remove function.
4296 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
4297 * linux-cris-low.c (cris_reinsert_addr> Remove function.
4298 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4299 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
4300 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4301 * linux-mips-low.c (mips_reinsert_addr): Remove function.
4302 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4303 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
4304 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4305 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
4306 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4307
4308 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4309
4310 * linux-low.c (linux_look_up_symbols): Don't call
4311 linux_supports_traceclone.
4312 * linux-low.h (thread_db_init): Remove use_events argument.
4313 * thread-db.c (thread_db_use_event): Remove global variable.
4314 (struct thread_db) <td_thr_event_enable_p>: Remove field.
4315 (struct thread_db) <td_create_bp>: Remove field.
4316 (thread_db_create_event): Remove function.
4317 (thread_db_enable_reporting): Likewise.
4318 (find_one_thread): Don't check for thread_db_use_events.
4319 (attach_thread): Likewise.
4320 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
4321 (try_thread_db_load_1): Don't check for thread_db_use_events.
4322 (thread_db_init): Remove use_events argument and thread events
4323 handling.
4324 (remove_thread_event_breakpoints): Remove function.
4325 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
4326
4327 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4328
4329 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
4330 New function.
4331 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4332 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
4333 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4334 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
4335 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
4336 Initialize.
4337 * linux-crisv32-low.c (cris_supports_hardware_single_step):
4338 New function.
4339 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4340 * linux-low.c (can_hardware_single_step): Use
4341 supports_hardware_single_step.
4342 (can_software_single_step): New function.
4343 (start_step_over): Call can_software_single_step.
4344 (linux_supports_hardware_single_step): New function.
4345 (struct target_ops) <supports_software_single_step>: Initialize.
4346 * linux-low.h (struct linux_target_ops)
4347 <supports_hardware_single_step>: Initialize.
4348 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
4349 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4350 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
4351 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
4352 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
4353 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4354 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
4355 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4356 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
4357 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
4358 Initialize.
4359 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
4360 (struct linux_target_ops) <tile_supports_hardware_single_step>:
4361 Initialize.
4362 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
4363 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4364 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
4365 New function.
4366 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4367 * target.h (struct target_ops): <supports_software_single_step>:
4368 New field.
4369 (target_supports_software_single_step): New macro.
4370
4371 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4372
4373 * linux-low.c (linux_wait_1): Fix pc advance condition.
4374 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
4375 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
4376
4377 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4378
4379 * linux-arm-low.c (arm_is_thumb_mode): New function.
4380 (arm_breakpoint_at): Use arm_is_thumb_mode.
4381 (arm_breakpoint_kind_from_current_state): New function.
4382 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
4383 Initialize.
4384 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
4385 (linux_breakpoint_kind_from_current_state): New function.
4386 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
4387 * linux-low.h (struct linux_target_ops)
4388 <breakpoint_kind_from_current_state>: New field.
4389 * target.h (struct target_ops): Likewise.
4390 (target_breakpoint_kind_from_current_state): New macro.
4391
4392 2015-11-30 Pedro Alves <palves@redhat.com>
4393
4394 * linux-low.c (linux_resume): Wake up the event loop before
4395 returning.
4396
4397 2015-11-30 Pedro Alves <palves@redhat.com>
4398
4399 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
4400 check.
4401 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
4402 to -1.
4403 * target.c (struct thread_search): New structure.
4404 (thread_search_callback): New function.
4405 (prev_general_thread): New global.
4406 (prepare_to_access_memory, done_accessing_memory): New functions.
4407 * target.h (prepare_to_access_memory, done_accessing_memory):
4408 Replace macros with function declarations.
4409
4410 2015-11-30 Pedro Alves <palves@redhat.com>
4411
4412 PR 14618
4413 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
4414 report TARGET_WAITKIND_NO_RESUMED.
4415 * remote-utils.c (prepare_resume_reply): Handle
4416 TARGET_WAITKIND_NO_RESUMED.
4417 * server.c (report_no_resumed): New global.
4418 (handle_query) <qSupported>: Handle "no-resumed+". Report
4419 "no-resumed+" support.
4420 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
4421 return error if the client doesn't support no-resumed events.
4422 (push_stop_notification): New function.
4423 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
4424 events if the client supports them.
4425
4426 2015-11-30 Pedro Alves <palves@redhat.com>
4427
4428 * linux-low.c (thread_still_has_status_pending_p): Don't check
4429 vCont;t here.
4430 (lwp_resumed): New function.
4431 (status_pending_p_callback): Return early if the LWP is not
4432 supposed to be resumed.
4433
4434 2015-11-30 Pedro Alves <palves@redhat.com>
4435
4436 * linux-low.c (handle_extended_wait): Assert that the LWP's
4437 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
4438 thread create events, leave the new child's status pending.
4439 (linux_low_filter_event): If GDB wants to hear about thread exit
4440 events, leave the LWP marked dead and don't delete it.
4441 (linux_wait_for_event_filtered): Don't check for thread exit.
4442 (filter_exit_event): New function.
4443 (linux_wait_1): Use it, when returning an exit event.
4444 (linux_resume_one_lwp_throw): Assert that the LWP's
4445 waitstatus is TARGET_WAITKIND_IGNORE.
4446 * remote-utils.c (prepare_resume_reply): Handle
4447 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
4448 * server.c (report_thread_events): New global.
4449 (handle_general_set): Handle QThreadEvents.
4450 (handle_query) <qSupported>: Handle and report QThreadEvents+;
4451 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
4452 TARGET_WAITKIND_THREAD_EXITED.
4453 * server.h (report_thread_events): Declare.
4454
4455 2015-11-30 Pedro Alves <palves@redhat.com>
4456
4457 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
4458 the thread's last_resume_kind was resume_stop.
4459
4460 2015-11-30 Pedro Alves <palves@redhat.com>
4461
4462 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
4463 before returning.
4464
4465 2015-11-30 Pedro Alves <palves@redhat.com>
4466
4467 * server.c (handle_v_requests): Handle vCtrlC.
4468
4469 2015-11-30 Pedro Alves <palves@redhat.com>
4470
4471 * gdbthread.h (find_any_thread_of_pid): Declare.
4472 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
4473 functions.
4474 * server.c (handle_query): If current_thread is NULL, look for
4475 another thread of the selected process.
4476
4477 2015-11-26 Daniel Colascione <dancol@dancol.org>
4478 Simon Marchi <simon.marchi@ericsson.com>
4479
4480 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
4481 * server.c (handle_qxfer_threads_worker): Refactor to include thread
4482 name in reply.
4483 * target.h (struct target_ops) <thread_name>: New field.
4484 (target_thread_name): New macro.
4485
4486 2015-11-23 Joel Brobecker <brobecker@adacore.com>
4487
4488 * regcache.h (regcache_invalidate_pid): Add declaration.
4489 * regcache.c (regcache_invalidate_pid): New function, extracted
4490 from regcache_invalidate.
4491 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
4492 Add trivial documentation comment.
4493 * lynx-low.c: Use regcache_invalidate_pid instead of
4494 regcache_invalidate.
4495
4496 2015-11-23 Joel Brobecker <brobecker@adacore.com>
4497
4498 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
4499 and Elf64_auxv_t if the target is Android.
4500
4501 2015-11-22 Doug Evans <xdje42@gmail.com>
4502
4503 * target.h: #include <sys/types.h>.
4504
4505 2015-11-19 Pedro Alves <palves@redhat.com>
4506
4507 * linux-low.c (linux_process_qsupported): Change prototype.
4508 Adjust.
4509 * linux-low.h (struct linux_target_ops) <process_qsupported>:
4510 Change prototype.
4511 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
4512 and adjust to loop over all features.
4513 * server.c (handle_query) <qSupported>: Adjust to call
4514 target_process_qsupported once, passing it a vector of unprocessed
4515 features.
4516 * target.h (struct target_ops) <process_qsupported>: Change
4517 prototype.
4518 (target_process_qsupported): Adjust.
4519
4520 2015-11-19 Pedro Alves <palves@redhat.com>
4521
4522 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
4523 mode.
4524 * configure: Regenerate.
4525
4526 2015-11-19 Pedro Alves <palves@redhat.com>
4527
4528 * configure: Regenerate.
4529
4530 2015-11-19 Yao Qi <yao.qi@linaro.org>
4531
4532 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
4533 type to uint32_t.
4534
4535 2015-11-19 Yao Qi <yao.qi@linaro.org>
4536
4537 * linux-aarch64-low.c (enum aarch64_operand_type): New.
4538 (struct aarch64_operand): Move enum out.
4539
4540 2015-11-19 Yao Qi <yao.qi@linaro.org>
4541
4542 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
4543 struct user_fpsimd_state *.
4544 (aarch64_store_fpregset): Likewise.
4545
4546 2015-11-19 Yao Qi <yao.qi@linaro.org>
4547
4548 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
4549 struct user_pt_regs *.
4550 (aarch64_store_gregset): Likewise.
4551
4552 2015-11-18 Pedro Alves <palves@redhat.com>
4553
4554 * Makefile.in (all_object_files): Add $IPA_OBJS.
4555
4556 2015-11-17 Pedro Alves <palves@redhat.com>
4557
4558 * win32-low.c (win32_resume): Use gdb_signal_from_host,
4559 GDB_SIGNAL_0 and gdb_signal_to_string.
4560
4561 2015-11-17 Pedro Alves <palves@redhat.com>
4562
4563 * win32-low.c (handle_output_debug_string): Remove parameter.
4564 (win32_kill): Remove our_status local and adjust call to
4565 handle_output_debug_string.
4566 (get_child_debug_event): Adjust call to
4567 handle_output_debug_string.
4568
4569 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4570
4571 * linux-mips-low.c (mips_fill_gregset): Add cast.
4572 (mips_store_gregset): Likewise.
4573 (mips_fill_fpregset): Likewise.
4574 (mips_store_fpregset): Likewise.
4575
4576 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4577
4578 * linux-mips-low.c (mips_add_watchpoint): Rename private to
4579 priv.
4580
4581 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4582
4583 * linux-mips-low.c (mips_linux_new_thread): Change type of
4584 watch_type to enum target_hw_bp_type.
4585
4586 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4587
4588 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
4589 Change return type to arm_hwbp_type.
4590
4591 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4592
4593 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
4594 (arm_store_gregset): Likewise.
4595 * linux-arm-low.c (arm_get_hwcap): Likewise.
4596 (arm_read_description): Likewise.
4597
4598 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4599
4600 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
4601
4602 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4603
4604 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
4605 (ppc_fill_vsxregset): Likewise.
4606 (ppc_store_vsxregset): Likewise.
4607 (ppc_fill_vrregset): Likewise.
4608 (ppc_store_vrregset): Likewise.
4609 (ppc_fill_evrregset): Likewise.
4610 (ppc_store_evrregset): Likewise.
4611
4612 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4613
4614 * linux-ppc-low.c (ppc_usrregs_info): Remove
4615 forward-declaration.
4616 (ppc_arch_setup): Move lower in file.
4617
4618 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
4619
4620 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
4621 (ps_pdwrite): Likewise.
4622
4623 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
4624
4625 * linux-arm-low.c (arm_new_thread): Move pointer dereference
4626 to after assert checks.
4627
4628 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
4629
4630 * proc-service.c (ps_pdread): Add/adjust casts.
4631 (ps_pdwrite): Add/adjust casts.
4632
4633 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
4634
4635 * server.c (handle_search_memory_1): Cast return value of
4636 memmem.
4637
4638 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
4639
4640 * server.c (write_qxfer_response): Change type of data to
4641 gdb_byte *.
4642
4643 2015-10-29 Pedro Alves <palves@redhat.com>
4644
4645 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
4646
4647 2015-10-29 Pedro Alves <palves@redhat.com>
4648
4649 * tracepoint.c (clear_installed_tracepoints): Add casts.
4650
4651 2015-10-29 Pedro Alves <palves@redhat.com>
4652
4653 * server.c (handle_v_cont, process_serial_event): Add enum
4654 gdb_signal casts to signal parsing code.
4655
4656 2015-10-29 Pedro Alves <palves@redhat.com>
4657
4658 * linux-low.h (NULL_REGSET): Define.
4659 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
4660 * linux-arm-low.c (arm_regsets): Likewise.
4661 * linux-crisv32-low.c (cris_regsets): Likewise.
4662 * linux-m68k-low.c (m68k_regsets): Likewise.
4663 * linux-mips-low.c (mips_regsets): Likewise.
4664 * linux-nios2-low.c (nios2_regsets): Likewise.
4665 * linux-ppc-low.c (ppc_regsets): Likewise.
4666 * linux-s390-low.c (s390_regsets): Likewise.
4667 * linux-sh-low.c (sh_regsets): Likewise.
4668 * linux-sparc-low.c (sparc_regsets): Likewise.
4669 * linux-tic6x-low.c (tic6x_regsets): Likewise.
4670 * linux-tile-low.c (tile_regsets): Likewise.
4671 * linux-x86-low.c (x86_regsets): Likewise.
4672 * linux-xtensa-low.c (xtensa_regsets): Likewise.
4673
4674 2015-10-29 Pedro Alves <palves@redhat.com>
4675
4676 * linux-low.h (NULL_REGSET): Define.
4677 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
4678 * linux-arm-low.c (arm_regsets): Likewise.
4679 * linux-crisv32-low.c (cris_regsets): Likewise.
4680 * linux-m68k-low.c (m68k_regsets): Likewise.
4681 * linux-mips-low.c (mips_regsets): Likewise.
4682 * linux-nios2-low.c (nios2_regsets): Likewise.
4683 * linux-ppc-low.c (ppc_regsets): Likewise.
4684 * linux-s390-low.c (s390_regsets): Likewise.
4685 * linux-sh-low.c (sh_regsets): Likewise.
4686 * linux-sparc-low.c (sparc_regsets): Likewise.
4687 * linux-tic6x-low.c (tic6x_regsets): Likewise.
4688 * linux-tile-low.c (tile_regsets): Likewise.
4689 * linux-x86-low.c (x86_regsets): Likewise.
4690 * linux-xtensa-low.c (xtensa_regsets): Likewise.
4691
4692 2015-10-26 Doug Evans <dje@google.com>
4693
4694 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
4695
4696 2015-10-26 Doug Evans <dje@google.com>
4697
4698 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
4699
4700 2015-10-26 Doug Evans <dje@google.com>
4701
4702 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
4703 for debug_printf.
4704 (attach_thread, find_new_threads_callback): Ditto.
4705
4706 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
4707
4708 * mem-break.h (set_breakpoint_data): Remove.
4709
4710 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
4711
4712 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
4713 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
4714 (initialize_low): Remove set_breakpoint_data call.
4715 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
4716 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
4717 (initialize_low): Remove set_breakpoint_data call.
4718 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
4719 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
4720 (initialize_low): Remove set_breakpoint_data call.
4721
4722 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
4723
4724 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
4725 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
4726 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
4727 * target.h (target_breakpoint_kind_from_pc): New macro.
4728
4729 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
4730
4731 * linux-low.c (default_breakpoint_kind_from_pc): New function.
4732 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
4733 the default breakpoint kind.
4734
4735 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4736
4737 * linux-arm-low.c (arm_supports_z_point_type): Add software
4738 breakpoint support.
4739
4740 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4741
4742 * linux-arm-low.c: Refactor breakpoint definitions.
4743 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
4744 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
4745
4746 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4747
4748 * Makefile.in: Add arm.c/o.
4749 * configure.srv: Likewise.
4750 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
4751 (arm_breakpoint_kind_from_pc): New function.
4752 (arm_sw_breakpoint_from_kind): Return proper kind.
4753 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
4754
4755 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4756
4757 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
4758 removal.
4759 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
4760 (struct raw_breakpoint) <size>: Remove.
4761 (struct raw_breakpoint) <kind>: Add.
4762 (bp_size): New function.
4763 (bp_opcode): Likewise.
4764 (find_raw_breakpoint_at): Adjust for kind.
4765 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
4766 (remove_memory_breakpoint): Adjust for kind call bp_size.
4767 (set_raw_breakpoint_at): Adjust for kind.
4768 (set_breakpoint): Likewise.
4769 (set_breakpoint_at): Call breakpoint_kind_from_pc.
4770 (delete_raw_breakpoint): Adjust for kind.
4771 (delete_breakpoint): Likewise.
4772 (find_gdb_breakpoint): Likewise.
4773 (set_gdb_breakpoint_1): Likewise.
4774 (set_gdb_breakpoint): Likewise.
4775 (delete_gdb_breakpoint_1): Likewise.
4776 (delete_gdb_breakpoint): Likewise.
4777 (uninsert_raw_breakpoint): Likewise.
4778 (reinsert_raw_breakpoint): Likewise.
4779 (set_breakpoint_data): Remove.
4780 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
4781 (check_mem_read): Adjust for kind call bp_size.
4782 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
4783 (clone_one_breakpoint): Adjust for kind.
4784 * mem-break.h (set_gdb_breakpoint): Likewise.
4785 (delete_gdb_breakpoint): Likewise.
4786 * server.c (process_serial_event): Likewise.
4787
4788 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4789
4790 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
4791 (struct linux_target_ops) <breakpoint>: Remove.
4792 (struct linux_target_ops) <breakpoint_len>: Remove.
4793 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4794 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4795 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
4796 (arm_sw_breakpoint_from_kind): New function.
4797 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
4798 (struct linux_target_ops) <breakpoint>: Remove.
4799 (struct linux_target_ops) <breakpoint_len>: Remove.
4800 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4801 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4802 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
4803 (struct linux_target_ops) <breakpoint>: Remove.
4804 (struct linux_target_ops) <breakpoint_len>: Remove.
4805 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4806 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4807 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
4808 (struct linux_target_ops) <breakpoint>: Remove.
4809 (struct linux_target_ops) <breakpoint_len>: Remove.
4810 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4811 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4812 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
4813 and sw_breakpoint_from_kind to increment the pc.
4814 (linux_breakpoint_kind_from_pc): New function.
4815 (linux_sw_breakpoint_from_kind): New function.
4816 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
4817 (initialize_low): Call breakpoint_kind_from_pc and
4818 sw_breakpoint_from_kind to replace breakpoint_data/len.
4819 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
4820 New field.
4821 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
4822 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
4823 (struct linux_target_ops) <breakpoint>: Remove.
4824 (struct linux_target_ops) <breakpoint_len>: Remove.
4825 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4826 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4827 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
4828 (struct linux_target_ops) <breakpoint>: Remove.
4829 (struct linux_target_ops) <breakpoint_len>: Remove.
4830 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4831 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4832 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
4833 (struct linux_target_ops) <breakpoint>: Remove.
4834 (struct linux_target_ops) <breakpoint_len>: Remove.
4835 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4836 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4837 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
4838 (struct linux_target_ops) <breakpoint>: Remove.
4839 (struct linux_target_ops) <breakpoint_len>: Remove.
4840 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4841 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4842 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
4843 (struct linux_target_ops) <breakpoint>: Remove.
4844 (struct linux_target_ops) <breakpoint_len>: Remove.
4845 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4846 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4847 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
4848 (struct linux_target_ops) <breakpoint>: Remove.
4849 (struct linux_target_ops) <breakpoint_len>: Remove.
4850 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4851 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4852 * linux-sh-low.c (sh_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-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
4858 (struct linux_target_ops) <breakpoint>: Remove.
4859 (struct linux_target_ops) <breakpoint_len>: Remove.
4860 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4861 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4862 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
4863 (struct linux_target_ops) <breakpoint>: Remove.
4864 (struct linux_target_ops) <breakpoint_len>: Remove.
4865 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4866 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4867 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
4868 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
4869 (struct linux_target_ops) <breakpoint>: Remove.
4870 (struct linux_target_ops) <breakpoint_len>: Remove.
4871 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4872 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4873 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
4874 (struct linux_target_ops) <breakpoint>: Remove.
4875 (struct linux_target_ops) <breakpoint_len>: Remove.
4876 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4877 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4878
4879 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4880
4881 * linux-cris-low.c (cris_get_pc): Remove void arg.
4882
4883 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
4884
4885 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
4886 variable name.
4887
4888 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
4889
4890 * inferiors.c (thread_pid_matches_callback): New function.
4891 (find_thread_process): New function.
4892 (remove_thread): Reset current_thread.
4893 (remove_process): Assert threads have been removed first.
4894
4895 2015-10-15 Yao Qi <yao.qi@linaro.org>
4896
4897 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
4898 if it is 3.
4899 (aarch64_remove_point): Likewise.
4900 * regcache.c (regcache_register_size): New function.
4901
4902 2015-10-12 Yao Qi <yao.qi@linaro.org>
4903
4904 * linux-aarch64-low.c: Update all callers as emit_load_store
4905 is renamed to aarch64_emit_load_store.
4906
4907 2015-10-12 Yao Qi <yao.qi@linaro.org>
4908
4909 * linux-aarch64-low.c: Update all callers of function renaming
4910 from emit_insn to aarch64_emit_insn.
4911
4912 2015-10-12 Yao Qi <yao.qi@linaro.org>
4913
4914 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
4915 arch/aarch64-insn.h.
4916 (struct aarch64_memory_operand): Likewise.
4917 (ENCODE): Likewise.
4918 (emit_insn): Move to arch/aarch64-insn.c.
4919 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
4920 (emit_load_store): Move to arch/aarch64-insn.c.
4921 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
4922 (can_encode_int32): Remove.
4923
4924 2015-10-12 Yao Qi <yao.qi@linaro.org>
4925
4926 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
4927 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
4928 (aarch64_relocate_instruction): Likewise.
4929 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
4930 (struct aarch64_insn_visitor): Likewise.
4931
4932 2015-10-12 Yao Qi <yao.qi@linaro.org>
4933
4934 * linux-aarch64-low.c (struct aarch64_insn_data): New.
4935 (struct aarch64_insn_visitor): New.
4936 (struct aarch64_insn_relocation_data): New.
4937 (aarch64_ftrace_insn_reloc_b): New function.
4938 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
4939 (aarch64_ftrace_insn_reloc_cb): Likewise.
4940 (aarch64_ftrace_insn_reloc_tb): Likewise.
4941 (aarch64_ftrace_insn_reloc_adr): Likewise.
4942 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
4943 (aarch64_ftrace_insn_reloc_others): Likewise.
4944 (visitor): New.
4945 (aarch64_relocate_instruction): Use visitor.
4946
4947 2015-10-12 Yao Qi <yao.qi@linaro.org>
4948
4949 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
4950 int. Add argument buf.
4951 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
4952 aarch64_relocate_instruction.
4953
4954 2015-10-12 Yao Qi <yao.qi@linaro.org>
4955
4956 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
4957 argument insn. Remove local variable insn. Don't call
4958 target_read_uint32.
4959 (aarch64_install_fast_tracepoint_jump_pad): Call
4960 target_read_uint32.
4961
4962 2015-09-30 Yao Qi <yao.qi@linaro.org>
4963
4964 * linux-aarch64-low.c (emit_movk): Shorten a long line.
4965 (emit_load_store_pair): Likewise.
4966
4967 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
4968
4969 * dll.c (match_dll): Add cast(s).
4970 (unloaded_dll): Likewise.
4971 * linux-low.c (second_thread_of_pid_p): Likewise.
4972 (delete_lwp_callback): Likewise.
4973 (count_events_callback): Likewise.
4974 (select_event_lwp_callback): Likewise.
4975 (linux_set_resume_request): Likewise.
4976 * server.c (accumulate_file_name_length): Likewise.
4977 (emit_dll_description): Likewise.
4978 (handle_qxfer_threads_worker): Likewise.
4979 (visit_actioned_threads): Likewise.
4980 * thread-db.c (any_thread_of): Likewise.
4981 * tracepoint.c (same_process_p): Likewise.
4982 (match_blocktype): Likewise.
4983 (build_traceframe_info_xml): Likewise.
4984
4985 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
4986
4987 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
4988 assignment.
4989 (gdb_unparse_agent_expr): Likewise.
4990 * hostio.c (require_data): Likewise.
4991 (handle_pread): Likewise.
4992 * linux-low.c (disable_regset): Likewise.
4993 (fetch_register): Likewise.
4994 (store_register): Likewise.
4995 (get_dynamic): Likewise.
4996 (linux_qxfer_libraries_svr4): Likewise.
4997 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
4998 (set_fast_tracepoint_jump): Likewise.
4999 (uninsert_fast_tracepoint_jumps_at): Likewise.
5000 (reinsert_fast_tracepoint_jumps_at): Likewise.
5001 (validate_inserted_breakpoint): Likewise.
5002 (clone_agent_expr): Likewise.
5003 * regcache.c (init_register_cache): Likewise.
5004 * remote-utils.c (putpkt_binary_1): Likewise.
5005 (decode_M_packet): Likewise.
5006 (decode_X_packet): Likewise.
5007 (look_up_one_symbol): Likewise.
5008 (relocate_instruction): Likewise.
5009 (monitor_output): Likewise.
5010 * server.c (handle_search_memory): Likewise.
5011 (handle_qxfer_exec_file): Likewise.
5012 (handle_qxfer_libraries): Likewise.
5013 (handle_qxfer): Likewise.
5014 (handle_query): Likewise.
5015 (handle_v_cont): Likewise.
5016 (handle_v_run): Likewise.
5017 (captured_main): Likewise.
5018 * target.c (write_inferior_memory): Likewise.
5019 * thread-db.c (try_thread_db_load_from_dir): Likewise.
5020 * tracepoint.c (init_trace_buffer): Likewise.
5021 (add_tracepoint_action): Likewise.
5022 (add_traceframe): Likewise.
5023 (add_traceframe_block): Likewise.
5024 (cmd_qtdpsrc): Likewise.
5025 (cmd_qtdv): Likewise.
5026 (cmd_qtstatus): Likewise.
5027 (response_source): Likewise.
5028 (response_tsv): Likewise.
5029 (cmd_qtnotes): Likewise.
5030 (gdb_collect): Likewise.
5031 (initialize_tracepoint): Likewise.
5032
5033 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
5034
5035 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
5036 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
5037 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
5038 <NOP>: New.
5039 (enum aarch64_condition_codes): New enum.
5040 (w0): New static global.
5041 (fp): Likewise.
5042 (lr): Likewise.
5043 (struct aarch64_memory_operand) <type>: New
5044 MEMORY_OPERAND_POSTINDEX type.
5045 (postindex_memory_operand): New helper function.
5046 (emit_ret): New function.
5047 (emit_load_store_pair): New function, factored out of emit_stp
5048 with support for MEMORY_OPERAND_POSTINDEX.
5049 (emit_stp): Rewrite using emit_load_store_pair.
5050 (emit_ldp): New function.
5051 (emit_load_store): Likewise.
5052 (emit_ldr): Mention post-index instruction in comment.
5053 (emit_ldrh): New function.
5054 (emit_ldrb): New function.
5055 (emit_ldrsw): Mention post-index instruction in comment.
5056 (emit_str): Likewise.
5057 (emit_subs): New function.
5058 (emit_cmp): Likewise.
5059 (emit_and): Likewise.
5060 (emit_orr): Likewise.
5061 (emit_orn): Likewise.
5062 (emit_eor): Likewise.
5063 (emit_mvn): Likewise.
5064 (emit_lslv): Likewise.
5065 (emit_lsrv): Likewise.
5066 (emit_asrv): Likewise.
5067 (emit_mul): Likewise.
5068 (emit_sbfm): Likewise.
5069 (emit_sbfx): Likewise.
5070 (emit_ubfm): Likewise.
5071 (emit_ubfx): Likewise.
5072 (emit_csinc): Likewise.
5073 (emit_cset): Likewise.
5074 (emit_nop): Likewise.
5075 (emit_ops_insns): New helper function.
5076 (emit_pop): Likewise.
5077 (emit_push): Likewise.
5078 (aarch64_emit_prologue): New function.
5079 (aarch64_emit_epilogue): Likewise.
5080 (aarch64_emit_add): Likewise.
5081 (aarch64_emit_sub): Likewise.
5082 (aarch64_emit_mul): Likewise.
5083 (aarch64_emit_lsh): Likewise.
5084 (aarch64_emit_rsh_signed): Likewise.
5085 (aarch64_emit_rsh_unsigned): Likewise.
5086 (aarch64_emit_ext): Likewise.
5087 (aarch64_emit_log_not): Likewise.
5088 (aarch64_emit_bit_and): Likewise.
5089 (aarch64_emit_bit_or): Likewise.
5090 (aarch64_emit_bit_xor): Likewise.
5091 (aarch64_emit_bit_not): Likewise.
5092 (aarch64_emit_equal): Likewise.
5093 (aarch64_emit_less_signed): Likewise.
5094 (aarch64_emit_less_unsigned): Likewise.
5095 (aarch64_emit_ref): Likewise.
5096 (aarch64_emit_if_goto): Likewise.
5097 (aarch64_emit_goto): Likewise.
5098 (aarch64_write_goto_address): Likewise.
5099 (aarch64_emit_const): Likewise.
5100 (aarch64_emit_call): Likewise.
5101 (aarch64_emit_reg): Likewise.
5102 (aarch64_emit_pop): Likewise.
5103 (aarch64_emit_stack_flush): Likewise.
5104 (aarch64_emit_zero_ext): Likewise.
5105 (aarch64_emit_swap): Likewise.
5106 (aarch64_emit_stack_adjust): Likewise.
5107 (aarch64_emit_int_call_1): Likewise.
5108 (aarch64_emit_void_call_2): Likewise.
5109 (aarch64_emit_eq_goto): Likewise.
5110 (aarch64_emit_ne_goto): Likewise.
5111 (aarch64_emit_lt_goto): Likewise.
5112 (aarch64_emit_le_goto): Likewise.
5113 (aarch64_emit_gt_goto): Likewise.
5114 (aarch64_emit_ge_got): Likewise.
5115 (aarch64_emit_ops_impl): New static global variable.
5116 (aarch64_emit_ops): New target function, return
5117 &aarch64_emit_ops_impl.
5118 (struct linux_target_ops): Install it.
5119
5120 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
5121
5122 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
5123 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
5124 aarch64-ipa.o.
5125 * linux-aarch64-ipa.c: New file.
5126 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
5127 and endian.h.
5128 (aarch64_get_thread_area): New target method.
5129 (extract_signed_bitfield): New helper function.
5130 (aarch64_decode_ldr_literal): New function.
5131 (enum aarch64_opcodes): New enum.
5132 (struct aarch64_register): New struct.
5133 (struct aarch64_operand): New struct.
5134 (x0): New static global.
5135 (x1): Likewise.
5136 (x2): Likewise.
5137 (x3): Likewise.
5138 (x4): Likewise.
5139 (w2): Likewise.
5140 (ip0): Likewise.
5141 (sp): Likewise.
5142 (xzr): Likewise.
5143 (aarch64_register): New helper function.
5144 (register_operand): Likewise.
5145 (immediate_operand): Likewise.
5146 (struct aarch64_memory_operand): New struct.
5147 (offset_memory_operand): New helper function.
5148 (preindex_memory_operand): Likewise.
5149 (enum aarch64_system_control_registers): New enum.
5150 (ENCODE): New macro.
5151 (emit_insn): New helper function.
5152 (emit_b): New function.
5153 (emit_bcond): Likewise.
5154 (emit_cb): Likewise.
5155 (emit_tb): Likewise.
5156 (emit_blr): Likewise.
5157 (emit_stp): Likewise.
5158 (emit_ldp_q_offset): Likewise.
5159 (emit_stp_q_offset): Likewise.
5160 (emit_load_store): Likewise.
5161 (emit_ldr): Likewise.
5162 (emit_ldrsw): Likewise.
5163 (emit_str): Likewise.
5164 (emit_ldaxr): Likewise.
5165 (emit_stxr): Likewise.
5166 (emit_stlr): Likewise.
5167 (emit_data_processing_reg): Likewise.
5168 (emit_data_processing): Likewise.
5169 (emit_add): Likewise.
5170 (emit_sub): Likewise.
5171 (emit_mov): Likewise.
5172 (emit_movk): Likewise.
5173 (emit_mov_addr): Likewise.
5174 (emit_mrs): Likewise.
5175 (emit_msr): Likewise.
5176 (emit_sevl): Likewise.
5177 (emit_wfe): Likewise.
5178 (append_insns): Likewise.
5179 (can_encode_int32_in): New helper function.
5180 (aarch64_relocate_instruction): New function.
5181 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
5182 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
5183 (struct linux_target_ops): Install aarch64_get_thread_area,
5184 aarch64_install_fast_tracepoint_jump_pad and
5185 aarch64_get_min_fast_tracepoint_insn_len.
5186
5187 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
5188
5189 * Makefile.in (aarch64-insn.o): New rule.
5190 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
5191
5192 2015-09-21 Yao Qi <yao.qi@linaro.org>
5193
5194 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
5195
5196 2015-09-21 Yao Qi <yao.qi@linaro.org>
5197
5198 * tracepoint.c (max_jump_pad_size): Remove.
5199
5200 2015-09-18 Yao Qi <yao.qi@linaro.org>
5201
5202 * linux-aarch64-low.c: Don't include sys/uio.h.
5203 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
5204
5205 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
5206
5207 * tracepoint.c (eval_result_type): Change prototype.
5208 (condition_true_at_tracepoint): Fix argument to compiled_cond.
5209
5210 2015-09-15 Pedro Alves <palves@redhat.com>
5211
5212 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
5213 Check whether to report exec events instead of checking whether
5214 multiprocess is enabled.
5215
5216 2015-09-15 Pedro Alves <palves@redhat.com>
5217
5218 PR remote/18965
5219 * remote-utils.c (prepare_resume_reply): Merge
5220 TARGET_WAITKIND_VFORK_DONE switch case with the
5221 TARGET_WAITKIND_FORKED case.
5222
5223 2015-09-15 Yao Qi <yao.qi@linaro.org>
5224
5225 * server.c (handle_query): Check string comparison using
5226 "else if" instead of "if".
5227
5228 2015-09-15 Yao Qi <yao.qi@linaro.org>
5229
5230 * server.c (vCont_supported): New global variable.
5231 (handle_query): Set vCont_supported to 1 if "vContSupported+"
5232 matches. Append ";vContSupported+" to own_buf.
5233 (handle_v_requests): Append ";s;S" to own_buf if target supports
5234 hardware single step or vCont_supported is false.
5235 (capture_main): Set vCont_supported to zero.
5236
5237 2015-09-15 Yao Qi <yao.qi@linaro.org>
5238
5239 * linux-low.c (linux_supports_conditional_breakpoints): Rename
5240 it to ...
5241 (linux_supports_hardware_single_step): ... New function.
5242 (linux_target_ops): Update.
5243 * lynx-low.c (lynx_target_ops): Set field
5244 supports_hardware_single_step to target_can_do_hardware_single_step.
5245 * nto-low.c (nto_target_ops): Likewise.
5246 * spu-low.c (spu_target_ops): Likewise.
5247 * win32-low.c (win32_target_ops): Likewise.
5248 * target.c (target_can_do_hardware_single_step): New function.
5249 * target.h (struct target_ops) <supports_conditional_breakpoints>:
5250 Remove. <supports_hardware_single_step>: New field.
5251 (target_supports_conditional_breakpoints): Remove.
5252 (target_supports_hardware_single_step): New macro.
5253 (target_can_do_hardware_single_step): Declare.
5254 * server.c (handle_query): Use target_supports_hardware_single_step
5255 instead of target_supports_conditional_breakpoints.
5256
5257 2015-09-15 Yao Qi <yao.qi@linaro.org>
5258
5259 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
5260 function.
5261 (struct linux_target_ops the_low_target): Install
5262 aarch64_linux_siginfo_fixup.
5263
5264 2015-09-11 Don Breazeal <donb@codesourcery.com>
5265 Luis Machado <lgustavo@codesourcery.com>
5266
5267 * linux-low.c (linux_mourn): Static declaration.
5268 (linux_arch_setup): Move in front of
5269 handle_extended_wait.
5270 (linux_arch_setup_thread): New function.
5271 (handle_extended_wait): Handle exec events. Call
5272 linux_arch_setup_thread. Make event_lwp argument a
5273 pointer-to-a-pointer.
5274 (check_zombie_leaders): Do not check stopped threads.
5275 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
5276 (linux_low_filter_event): Add lwp and thread for exec'ing
5277 non-leader thread if leader thread has been deleted.
5278 Refactor code into linux_arch_setup_thread and call it.
5279 Pass child lwp pointer by reference to handle_extended_wait.
5280 (linux_wait_for_event_filtered): Update comment.
5281 (linux_wait_1): Prevent clobbering exec event status.
5282 (linux_supports_exec_events): New function.
5283 (linux_target_ops) <supports_exec_events>: Initialize new member.
5284 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
5285 new member.
5286 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
5287 * server.c (report_exec_events): New global variable.
5288 (handle_query): Handle qSupported query for exec-events feature.
5289 (captured_main): Initialize report_exec_events.
5290 * server.h (report_exec_events): Declare new global variable.
5291 * target.h (struct target_ops) <supports_exec_events>: New
5292 member.
5293 (target_supports_exec_events): New macro.
5294 * win32-low.c (win32_target_ops) <supports_exec_events>:
5295 Initialize new member.
5296
5297 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
5298
5299 * linux-low.c (linux_low_enable_btrace): Remove.
5300 (linux_target_ops): Replace linux_low_enable_btrace with
5301 linux_enable_btrace.
5302
5303 2015-09-03 Yao Qi <yao.qi@linaro.org>
5304
5305 * linux-aarch64-low.c (aarch64_insert_point): Call
5306 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
5307 returns true.
5308
5309 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5310
5311 * linux-low.c (check_stopped_by_breakpoint): Use
5312 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
5313
5314 2015-08-27 Pedro Alves <palves@redhat.com>
5315
5316 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
5317
5318 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
5319
5320 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
5321 the XNEW-family equivalent.
5322 (compile_bytecodes): Likewise.
5323 * dll.c (loaded_dll): Likewise.
5324 * event-loop.c (append_callback_event): Likewise.
5325 (create_file_handler): Likewise.
5326 (create_file_event): Likewise.
5327 * hostio.c (handle_open): Likewise.
5328 * inferiors.c (add_thread): Likewise.
5329 (add_process): Likewise.
5330 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
5331 * linux-arm-low.c (arm_new_process): Likewise.
5332 (arm_new_thread): Likewise.
5333 * linux-low.c (add_to_pid_list): Likewise.
5334 (linux_add_process): Likewise.
5335 (handle_extended_wait): Likewise.
5336 (add_lwp): Likewise.
5337 (enqueue_one_deferred_signal): Likewise.
5338 (enqueue_pending_signal): Likewise.
5339 (linux_resume_one_lwp_throw): Likewise.
5340 (linux_resume_one_thread): Likewise.
5341 (linux_read_memory): Likewise.
5342 (linux_write_memory): Likewise.
5343 * linux-mips-low.c (mips_linux_new_process): Likewise.
5344 (mips_linux_new_thread): Likewise.
5345 (mips_add_watchpoint): Likewise.
5346 * linux-x86-low.c (initialize_low_arch): Likewise.
5347 * lynx-low.c (lynx_add_process): Likewise.
5348 * mem-break.c (set_raw_breakpoint_at): Likewise.
5349 (set_breakpoint): Likewise.
5350 (add_condition_to_breakpoint): Likewise.
5351 (add_commands_to_breakpoint): Likewise.
5352 (clone_agent_expr): Likewise.
5353 (clone_one_breakpoint): Likewise.
5354 * regcache.c (new_register_cache): Likewise.
5355 * remote-utils.c (look_up_one_symbol): Likewise.
5356 * server.c (queue_stop_reply): Likewise.
5357 (start_inferior): Likewise.
5358 (queue_stop_reply_callback): Likewise.
5359 (handle_target_event): Likewise.
5360 * spu-low.c (fetch_ppc_memory): Likewise.
5361 (store_ppc_memory): Likewise.
5362 * target.c (set_target_ops): Likewise.
5363 * thread-db.c (thread_db_load_search): Likewise.
5364 (try_thread_db_load_1): Likewise.
5365 * tracepoint.c (add_tracepoint): Likewise.
5366 (add_tracepoint_action): Likewise.
5367 (create_trace_state_variable): Likewise.
5368 (cmd_qtdpsrc): Likewise.
5369 (cmd_qtro): Likewise.
5370 (add_while_stepping_state): Likewise.
5371 * win32-low.c (child_add_thread): Likewise.
5372 (get_image_name): Likewise.
5373
5374 2015-08-25 Yao Qi <yao.qi@linaro.org>
5375
5376 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
5377
5378 2015-08-25 Yao Qi <yao.qi@linaro.org>
5379
5380 * Makefile.in (aarch64-linux.o): New rule.
5381 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
5382 srv_tgtobj.
5383 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
5384 (aarch64_init_debug_reg_state): Make it extern.
5385 (aarch64_linux_prepare_to_resume): Remove.
5386
5387 2015-08-25 Yao Qi <yao.qi@linaro.org>
5388
5389 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
5390 lwp_arch_private_info and ptid_of_lwp.
5391
5392 2015-08-25 Yao Qi <yao.qi@linaro.org>
5393
5394 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
5395 Find proc_info by find_process_pid. All callers updated.
5396
5397 2015-08-25 Yao Qi <yao.qi@linaro.org>
5398
5399 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
5400 Remove.
5401 (debug_reg_change_callback): Remove.
5402 (aarch64_notify_debug_reg_change): Remove.
5403
5404 2015-08-25 Yao Qi <yao.qi@linaro.org>
5405
5406 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
5407 Call current_lwp_ptid.
5408
5409 2015-08-25 Yao Qi <yao.qi@linaro.org>
5410
5411 * linux-aarch64-low.c (debug_reg_change_callback): Use
5412 debug_printf.
5413
5414 2015-08-25 Yao Qi <yao.qi@linaro.org>
5415
5416 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
5417
5418 2015-08-25 Yao Qi <yao.qi@linaro.org>
5419
5420 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
5421
5422 2015-08-25 Yao Qi <yao.qi@linaro.org>
5423
5424 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
5425 the code.
5426
5427 2015-08-25 Yao Qi <yao.qi@linaro.org>
5428
5429 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
5430 Remove.
5431 (debug_reg_change_callback): Remove argument entry and add argument
5432 lwp. Remove local variable thread. Don't print thread id in the
5433 debugging output. Don't check whether pid of thread equals to pid.
5434 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
5435 iterate_over_lwps instead find_inferior.
5436
5437 2015-08-24 Pedro Alves <palves@redhat.com>
5438
5439 * inferiors.c (get_first_process): New function.
5440 * inferiors.h (get_first_process): New declaration.
5441 * remote-utils.c (read_ptid): Default to the first process in the
5442 list, instead of to the current thread's process.
5443
5444 2015-08-24 Pedro Alves <palves@redhat.com>
5445
5446 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
5447 * event-loop.c: Likewise.
5448 * remote-utils.c: Likewise.
5449 * tracepoint.c: Likewise.
5450
5451 2015-08-24 Pedro Alves <palves@redhat.com>
5452
5453 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
5454 ptid_get_lwp.
5455
5456 2015-08-21 Pedro Alves <palves@redhat.com>
5457
5458 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
5459 instead of literal 1.
5460
5461 2015-08-21 Pedro Alves <palves@redhat.com>
5462
5463 * tdesc.c (default_description): Explicitly zero-initialize.
5464
5465 2015-08-21 Pedro Alves <palves@redhat.com>
5466
5467 PR gdb/18749
5468 * inferiors.c (remove_thread): Discard any pending stop reply for
5469 this thread.
5470 * server.c (remove_all_on_match_pid): Rename to ...
5471 (remove_all_on_match_ptid): ... this. Work with a filter ptid
5472 instead of a pid.
5473 (discard_queued_stop_replies): Change parameter to a ptid. Now
5474 extern.
5475 (handle_v_kill, kill_inferior_callback, captured_main)
5476 (process_serial_event): Adjust.
5477 * server.h (discard_queued_stop_replies): Declare.
5478
5479 2015-08-21 Pedro Alves <palves@redhat.com>
5480
5481 * linux-low.c (wait_for_sigstop): Always switch to no thread
5482 selected if the previously current thread dies.
5483 * lynx-low.c (lynx_request_interrupt): Use the first thread's
5484 process instead of the current thread's.
5485 * remote-utils.c (input_interrupt): Don't check if there's no
5486 current thread.
5487 * server.c (gdb_read_memory, gdb_write_memory): If setting the
5488 current thread to the general thread fails, error out.
5489 (handle_qxfer_auxv, handle_qxfer_libraries)
5490 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
5491 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
5492 (handle_query): Check if there's a thread selected instead of
5493 checking whether there's any thread in the thread list.
5494 (handle_qxfer_threads, handle_qxfer_btrace)
5495 (handle_qxfer_btrace_conf): Don't error out early if there's no
5496 thread in the thread list.
5497 (handle_v_cont, myresume): Don't set the current thread to the
5498 continue thread.
5499 (process_serial_event) <Hg handling>: Also set thread_id if the
5500 previous general thread is still alive.
5501 (process_serial_event) <g/G handling>: If setting the current
5502 thread to the general thread fails, error out.
5503 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
5504 thread's lwp instead of the current thread's.
5505 * target.c (set_desired_thread): If the desired thread was not
5506 found, leave the current thread pointing to NULL. Return an int
5507 (boolean) indicating success.
5508 * target.h (set_desired_thread): Change return type to int.
5509
5510 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
5511
5512 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
5513 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
5514 #includes.
5515 (ps_get_thread_area): New function.
5516
5517 2015-08-19 Gary Benson <gbenson@redhat.com>
5518
5519 * hostio.c (handle_pread): Do not attempt to read more data
5520 than hostio_reply_with_data can fit in a packet.
5521
5522 2015-08-18 Joel Brobecker <brobecker@adacore.com>
5523
5524 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
5525
5526 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
5527
5528 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
5529
5530 2015-08-06 Pedro Alves <palves@redhat.com>
5531
5532 * tracepoint.c (expr_eval_result): Now an int.
5533
5534 2015-08-06 Pedro Alves <palves@redhat.com>
5535
5536 * gdbthread.h (struct regcache): Forward declare.
5537 (struct thread_info) <regcache_data>: Now a struct regcache
5538 pointer.
5539 * inferiors.c (inferior_regcache_data)
5540 (set_inferior_regcache_data): Now work with struct regcache
5541 pointers.
5542 * inferiors.h (struct regcache): Forward declare.
5543 (inferior_regcache_data, set_inferior_regcache_data): Now work
5544 with struct regcache pointers.
5545 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
5546 (free_register_cache_thread): Remove struct regcache pointer
5547 casts.
5548
5549 2015-08-06 Pedro Alves <palves@redhat.com>
5550
5551 * server.c (captured_main): On error, print the exception message
5552 to stderr, and if run_once is set, throw a quit.
5553
5554 2015-08-06 Pedro Alves <palves@redhat.com>
5555
5556 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
5557 the current thread.
5558
5559 2015-08-06 Pedro Alves <palves@redhat.com>
5560
5561 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
5562 reading beyond the passed in buffer length.
5563
5564 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5565
5566 * tracepoint.c (symbol_list) <required>: Remove.
5567
5568 2015-08-06 Pedro Alves <palves@redhat.com>
5569
5570 * linux-low.c (handle_extended_wait): Set the fork child's suspend
5571 count if stopping and suspending threads.
5572 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
5573 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
5574 (linux_detach): Complete an ongoing step-over.
5575 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
5576 throughout.
5577 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
5578 (linux_wait_1): If passing a signal to the inferior after
5579 finishing a step-over, unsuspend and re-resume all lwps. If we
5580 see a single-step event but the thread should be continuing, don't
5581 pass the trap to gdb.
5582 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
5583 internal_error instead of gdb_assert.
5584 (enqueue_pending_signal): New function.
5585 (check_ptrace_stopped_lwp_gone): Add debug output.
5586 (start_step_over): Use internal_error instead of gdb_assert.
5587 (complete_ongoing_step_over): New function.
5588 (linux_resume_one_thread): Don't resume a suspended thread.
5589 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
5590 it stepping.
5591
5592 2015-08-06 Pedro Alves <palves@redhat.com>
5593
5594 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
5595 (linux_thread_alive): Use lwp_is_marked_dead.
5596 (extended_event_reported): Delete.
5597 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
5598 instead of extended_event_reported.
5599 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
5600 as well.
5601 (lwp_is_marked_dead): New function.
5602 (lwp_running): Use lwp_is_marked_dead.
5603 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
5604 comment.
5605
5606 2015-08-06 Pedro Alves <palves@redhat.com>
5607
5608 * linux-low.c (linux_wait_1): Move fork event output out of the
5609 !report_to_gdb check. Pass event_child->waitstatus to
5610 target_waitstatus_to_string instead of ourstatus.
5611
5612 2015-08-04 Yao Qi <yao.qi@linaro.org>
5613
5614 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
5615 if current_thread is 32 bit.
5616
5617 2015-08-04 Yao Qi <yao.qi@linaro.org>
5618
5619 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
5620 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
5621 * server.c (extended_protocol): Remove "static".
5622 * server.h (extended_protocol): Declare it.
5623
5624 2015-08-04 Yao Qi <yao.qi@linaro.org>
5625
5626 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
5627 both aarch64 and aarch32.
5628 (aarch64_set_pc): Likewise.
5629
5630 2015-08-04 Yao Qi <yao.qi@linaro.org>
5631
5632 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
5633 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
5634 arm-with-neon.xml to srv_xmlfiles.
5635 * linux-aarch64-low.c: Include linux-aarch32-low.h.
5636 (is_64bit_tdesc): New function.
5637 (aarch64_linux_read_description): New function.
5638 (aarch64_arch_setup): Call aarch64_linux_read_description.
5639 (regs_info): Rename to regs_info_aarch64.
5640 (aarch64_regs_info): Return right regs_info.
5641 (initialize_low_arch): Call initialize_low_arch_aarch32.
5642
5643 2015-08-04 Yao Qi <yao.qi@linaro.org>
5644
5645 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
5646 * linux-aarch32-low.c: New file.
5647 * linux-aarch32-low.h: New file.
5648 * linux-arm-low.c (arm_fill_gregset): Move it to
5649 linux-aarch32-low.c.
5650 (arm_store_gregset): Likewise.
5651 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
5652 (arm_store_vfpregset): Call arm_store_vfpregset_num.
5653 (arm_arch_setup): Check if PTRACE_GETREGSET works.
5654 (regs_info): Rename to regs_info_arm.
5655 (arm_regs_info): Return regs_info_aarch32 if
5656 have_ptrace_getregset is 1 and target description is
5657 arm_with_neon or arm_with_vfpv3.
5658 (initialize_low_arch): Don't call init_registers_arm_with_neon.
5659 Call initialize_low_arch_aarch32 instead.
5660
5661 2015-08-04 Yao Qi <yao.qi@linaro.org>
5662
5663 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
5664 * linux-low.c: ... here.
5665 * linux-low.h (have_ptrace_getregset): Declare it.
5666
5667 2015-08-04 Pedro Alves <palves@redhat.com>
5668
5669 * thread-db.c (struct thread_db): Use new typedefs.
5670 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
5671 CHK calls.
5672 (disable_thread_event_reporting): Cast result of dlsym to
5673 destination function pointer type.
5674 (thread_db_mourn): Use td_ta_delete_ftype.
5675
5676 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5677
5678 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
5679 arch variant.
5680 (CDX_BREAKPOINT): Define for R2.
5681 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
5682 (the_low_target): Add comments.
5683
5684 2015-07-30 Yao Qi <yao.qi@linaro.org>
5685
5686 * linux-arm-low.c (arm_hwcap): Remove it.
5687 (arm_read_description): New local variable arm_hwcap. Don't
5688 set arm_hwcap to zero.
5689
5690 2015-07-30 Yao Qi <yao.qi@linaro.org>
5691
5692 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
5693 Use regcache->tdesc instead.
5694 (arm_store_wmmxregset): Likewise.
5695 (arm_fill_vfpregset): Likewise.
5696 (arm_store_vfpregset): Likewise.
5697
5698 2015-07-30 Yao Qi <yao.qi@linaro.org>
5699
5700 * linux-arm-low.c: Include arch/arm.h.
5701 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
5702 (arm_store_gregset): Likewise.
5703
5704 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5705
5706 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
5707 ptrace's 4th parameter.
5708
5709 2015-07-27 Yao Qi <yao.qi@linaro.org>
5710
5711 * configure.srv (case aarch64*-*-linux*): Don't set
5712 srv_linux_usrregs.
5713
5714 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
5715
5716 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
5717 sys/ptrace.h.
5718 * linux-arm-low.c: Likewise.
5719 * linux-cris-low.c: Likewise.
5720 * linux-crisv32-low.c: Likewise.
5721 * linux-low.c: Likewise.
5722 * linux-m68k-low.c: Likewise.
5723 * linux-mips-low.c: Likewise.
5724 * linux-nios2-low.c: Likewise.
5725 * linux-s390-low.c: Likewise.
5726 * linux-sparc-low.c: Likewise.
5727 * linux-tic6x-low.c: Likewise.
5728 * linux-tile-low.c: Likewise.
5729 * linux-x86-low.c: Likewise.
5730
5731 2015-07-24 Pedro Alves <palves@redhat.com>
5732
5733 * config.in: Regenerate.
5734 * configure: Regenerate.
5735
5736 2015-07-24 Pedro Alves <palves@redhat.com>
5737
5738 * acinclude.m4: Include ../ptrace.m4.
5739 * configure.ac: Call GDB_AC_PTRACE.
5740 * config.in, configure: Regenerate.
5741
5742 2015-07-24 Yao Qi <yao.qi@linaro.org>
5743
5744 * linux-low.c (linux_create_inferior): Remove setting to
5745 proc->priv->new_inferior.
5746 (linux_attach): Likewise.
5747 (linux_low_filter_event): Likewise.
5748 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
5749
5750 2015-07-24 Yao Qi <yao.qi@linaro.org>
5751
5752 * linux-low.c (linux_arch_setup): New function.
5753 (linux_low_filter_event): If proc->tdesc is NULL and
5754 proc->attached is true, call the_low_target.arch_setup.
5755 Otherwise, keep status pending, and return.
5756 (linux_resume_one_lwp_throw): Don't call get_pc if
5757 thread->while_stepping isn't NULL. Don't call
5758 get_thread_regcache if proc->tdesc is NULL.
5759 (need_step_over_p): Return 0 if proc->tdesc is NULL.
5760 (linux_target_ops): Install arch_setup.
5761 * server.c (start_inferior): Call the_target->arch_setup.
5762 * target.h (struct target_ops) <arch_setup>: New field.
5763 (target_arch_setup): New marco.
5764 * lynx-low.c (lynx_target_ops): Update.
5765 * nto-low.c (nto_target_ops): Update.
5766 * spu-low.c (spu_target_ops): Update.
5767 * win32-low.c (win32_target_ops): Update.
5768
5769 2015-07-24 Yao Qi <yao.qi@linaro.org>
5770
5771 * linux-low.c (linux_add_process): Don't set
5772 proc->priv->new_inferior.
5773 (linux_create_inferior): Set proc->priv->new_inferior to 1.
5774 (linux_attach): Likewise.
5775
5776 2015-07-24 Yao Qi <yao.qi@linaro.org>
5777
5778 * server.c (start_inferior): Code refactor.
5779
5780 2015-07-24 Yao Qi <yao.qi@linaro.org>
5781
5782 * server.c (process_serial_event): Set general_thread.
5783
5784 2015-07-21 Yao Qi <yao.qi@linaro.org>
5785
5786 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
5787 aarch64_linux_get_debug_reg_capacity.
5788
5789 2015-07-17 Yao Qi <yao.qi@linaro.org>
5790
5791 * Makefile.in (aarch64-linux-hw-point.o): New rule.
5792 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
5793 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
5794 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5795 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5796 (AARCH64_HWP_ALIGNMENT): Likewise.
5797 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5798 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5799 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5800 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5801 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5802 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5803 (struct aarch64_debug_reg_state): Likewise.
5804 (struct arch_lwp_info): Likewise.
5805 (aarch64_align_watchpoint): Likewise.
5806 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5807 (aarch64_watchpoint_length): Likewise.
5808 (aarch64_point_encode_ctrl_reg): Likewise
5809 (aarch64_point_is_aligned): Likewise.
5810 (aarch64_align_watchpoint): Likewise.
5811 (aarch64_linux_set_debug_regs):
5812 (aarch64_dr_state_insert_one_point): Likewise.
5813 (aarch64_dr_state_remove_one_point): Likewise.
5814 (aarch64_handle_breakpoint): Likewise.
5815 (aarch64_handle_aligned_watchpoint): Likewise.
5816 (aarch64_handle_unaligned_watchpoint): Likewise.
5817 (aarch64_handle_watchpoint): Likewise.
5818
5819 2015-07-17 Yao Qi <yao.qi@linaro.org>
5820
5821 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
5822 and don't aarch64_get_debug_reg_state. All callers update.
5823 (aarch64_handle_aligned_watchpoint): Likewise.
5824 (aarch64_handle_unaligned_watchpoint): Likewise.
5825 (aarch64_handle_watchpoint): Likewise.
5826 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
5827 (aarch64_remove_point): Likewise.
5828
5829 2015-07-17 Yao Qi <yao.qi@linaro.org>
5830
5831 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
5832 debug_printf.
5833 (aarch64_handle_unaligned_watchpoint): Likewise.
5834
5835 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5836
5837 Revert the previous 3 commits:
5838 Move gdb_regex* to common/
5839 Move linux_find_memory_regions_full & co.
5840 gdbserver build-id attribute generator
5841
5842 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5843 Jan Kratochvil <jan.kratochvil@redhat.com>
5844
5845 gdbserver build-id attribute generator.
5846 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
5847 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
5848 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
5849 (find_phdr): New.
5850 (get_dynamic): Use find_pdhr to traverse program headers.
5851 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
5852 (compare_mapping_entry_range, struct find_memory_region_callback_data)
5853 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
5854 (get_hex_build_id): New.
5855 (linux_qxfer_libraries_svr4): Add optional build-id attribute
5856 to reply XML document.
5857
5858 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5859 Jan Kratochvil <jan.kratochvil@redhat.com>
5860
5861 * target.c: Include target/target-utils.h and fcntl.h.
5862 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
5863 (target_fileio_read_stralloc): New functions.
5864
5865 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5866
5867 * Makefile.in (OBS): Add gdb_regex.o.
5868 (gdb_regex.o): New.
5869 * config.in: Rebuilt.
5870 * configure: Rebuilt.
5871
5872 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5873 Jan Kratochvil <jan.kratochvil@redhat.com>
5874
5875 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5876 * Makefile.in (OBS): Add target-utils.o.
5877 (linux-maps.o, target-utils.o): New.
5878 * configure.srv (srv_linux_obj): Add linux-maps.o.
5879
5880 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
5881
5882 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
5883 function, return 1.
5884 (the_low_target): Install it.
5885
5886 2015-07-14 Pedro Alves <palves@redhat.com>
5887
5888 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
5889 Instead, ignore ECHILD, and throw an error for other errnos.
5890
5891 2015-07-10 Pedro Alves <palves@redhat.com>
5892
5893 * event-loop.c (struct callback_event) <data>: Change type to
5894 gdb_client_data instance instead of gdb_client_data pointer.
5895 (append_callback_event): Adjust.
5896
5897 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
5898
5899 * linux-aarch64-low.c: Add comments for each linux_target_ops
5900 method. Remove comments already covered in target_ops and
5901 linux_target_ops definitions.
5902 (the_low_target): Add comments for each unimplemented method.
5903
5904 2015-07-09 Yao Qi <yao.qi@linaro.org>
5905
5906 * linux-aarch64-low.c (aarch64_regmap): Remove.
5907 (aarch64_usrregs_info): Remove.
5908 (regs_info): Set field usrregs to NULL.
5909
5910 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
5911
5912 * linux-low.c: Include "rsp-low.h"
5913 (linux_low_encode_pt_config, linux_low_encode_raw): New.
5914 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
5915 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
5916 (handle_btrace_enable_pt): New.
5917 (handle_btrace_general_set): Support "pt".
5918 (handle_btrace_conf_general_set): Support "pt:size".
5919
5920 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
5921
5922 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
5923 Z_PACKET_SW_BP.
5924
5925 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
5926
5927 * linux-aarch64-low.c: Remove comment about endianness.
5928 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
5929 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
5930 memcmp.
5931
5932 2015-06-24 Gary Benson <gbenson@redhat.com>
5933
5934 * linux-i386-ipa.c (stdint.h): Do not include.
5935 * lynx-i386-low.c (stdint.h): Likewise.
5936 * lynx-ppc-low.c (stdint.h): Likewise.
5937 * mem-break.c (stdint.h): Likewise.
5938 * thread-db.c (stdint.h): Likewise.
5939 * tracepoint.c (stdint.h): Likewise.
5940 * win32-low.c (stdint.h): Likewise.
5941
5942 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
5943
5944 * server.c (write_qxfer_response): Update call to
5945 remote_escape_output.
5946
5947 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
5948 Jan Kratochvil <jan.kratochvil@redhat.com>
5949
5950 Merge multiple hex conversions.
5951 * gdbreplay.c (tohex): Rename to 'fromhex'.
5952 (logchar): Use fromhex.
5953
5954 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5955
5956 * server.c (handle_qxfer_libraries): Set `version' attribute for
5957 <library-list>.
5958
5959 2015-06-10 Gary Benson <gbenson@redhat.com>
5960
5961 * target.h (struct target_ops) <multifs_open>: New field.
5962 <multifs_unlink>: Likewise.
5963 <multifs_readlink>: Likewise.
5964 * linux-low.c (nat/linux-namespaces.h): New include.
5965 (linux_target_ops): Initialize the_target->multifs_open,
5966 the_target->multifs_unlink and the_target->multifs_readlink.
5967 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
5968 * hostio.c (hostio_fs_pid): New static variable.
5969 (hostio_handle_new_gdb_connection): New function.
5970 (handle_setfs): Likewise.
5971 (handle_open): Use the_target->multifs_open as appropriate.
5972 (handle_unlink): Use the_target->multifs_unlink as appropriate.
5973 (handle_readlink): Use the_target->multifs_readlink as
5974 appropriate.
5975 (handle_vFile): Handle vFile:setfs packets.
5976 * server.c (handle_query): Call hostio_handle_new_gdb_connection
5977 after target_handle_new_gdb_connection.
5978
5979 2015-06-10 Gary Benson <gbenson@redhat.com>
5980
5981 * configure.ac (AC_CHECK_FUNCS): Add setns.
5982 * config.in: Regenerate.
5983 * configure: Likewise.
5984 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
5985 (linux-namespaces.o): New rule.
5986 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
5987
5988 2015-06-09 Gary Benson <gbenson@redhat.com>
5989
5990 * hostio.c (handle_open): Process mode argument with
5991 fileio_to_host_mode.
5992
5993 2015-06-01 Yao Qi <yao.qi@linaro.org>
5994
5995 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
5996 * linux-x86-low.c: Likewise.
5997
5998 2015-05-28 Don Breazeal <donb@codesourcery.com>
5999
6000 * linux-low.c (handle_extended_wait): Initialize
6001 thread_info.last_resume_kind for new fork children.
6002
6003 2015-05-15 Pedro Alves <palves@redhat.com>
6004
6005 * target.h (target_handle_new_gdb_connection): Rewrite using if
6006 wrapped in do/while.
6007
6008 2015-05-14 Joel Brobecker <brobecker@adacore.com>
6009
6010 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
6011 * configure, config.in: Regenerate.
6012 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
6013 Declare typedef.
6014
6015 2015-05-12 Don Breazeal <donb@codesourcery.com>
6016
6017 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
6018 PTRACE_EVENT_VFORK_DONE.
6019 (linux_low_ptrace_options, extended_event_reported): Add vfork
6020 events.
6021 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
6022 and "vforkdone" for RSP 'T' Stop Reply Packet.
6023 * server.h (report_vfork_events): Declare
6024 global variable.
6025
6026 2015-05-12 Don Breazeal <donb@codesourcery.com>
6027
6028 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
6029 (the_low_target) <new_fork>: Initialize new member.
6030 * linux-arm-low.c (arm_new_fork): New function.
6031 (the_low_target) <new_fork>: Initialize new member.
6032 * linux-low.c (handle_extended_wait): Call new target function
6033 new_fork.
6034 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
6035 * linux-mips-low.c (mips_add_watchpoint): New function
6036 extracted from mips_insert_point.
6037 (the_low_target) <new_fork>: Initialize new member.
6038 (mips_linux_new_fork): New function.
6039 (mips_insert_point): Call mips_add_watchpoint.
6040 * linux-x86-low.c (x86_linux_new_fork): New function.
6041 (the_low_target) <new_fork>: Initialize new member.
6042
6043 2015-05-12 Don Breazeal <donb@codesourcery.com>
6044
6045 * linux-low.c (handle_extended_wait): Implement return value,
6046 rename argument 'event_child' to 'event_lwp', handle
6047 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
6048 (linux_low_ptrace_options): New function.
6049 (linux_low_filter_event): Call linux_low_ptrace_options,
6050 use different argument fo linux_enable_event_reporting,
6051 use return value from handle_extended_wait.
6052 (extended_event_reported): New function.
6053 (linux_wait_1): Call extended_event_reported and set
6054 status to report fork events.
6055 (linux_write_memory): Add pid to debug message.
6056 (reset_lwp_ptrace_options_callback): New function.
6057 (linux_handle_new_gdb_connection): New function.
6058 (linux_target_ops): Initialize new structure member.
6059 * linux-low.h (struct lwp_info) <waitstatus>: New member.
6060 * lynx-low.c: Initialize new structure member.
6061 * remote-utils.c (prepare_resume_reply): Implement stop reason
6062 "fork" for "T" stop message.
6063 * server.c (handle_query): Call handle_new_gdb_connection.
6064 * server.h (report_fork_events): Declare global flag.
6065 * target.h (struct target_ops) <handle_new_gdb_connection>:
6066 New member.
6067 (target_handle_new_gdb_connection): New macro.
6068 * win32-low.c: Initialize new structure member.
6069
6070 2015-05-12 Don Breazeal <donb@codesourcery.com>
6071
6072 * mem-break.c (APPEND_TO_LIST): Define macro.
6073 (clone_agent_expr): New function.
6074 (clone_one_breakpoint): New function.
6075 (clone_all_breakpoints): New function.
6076 * mem-break.h: Declare new functions.
6077
6078 2015-05-12 Don Breazeal <donb@codesourcery.com>
6079
6080 * linux-low.c (linux_supports_fork_events): New function.
6081 (linux_supports_vfork_events): New function.
6082 (linux_target_ops): Initialize new structure members.
6083 (initialize_low): Call linux_check_ptrace_features.
6084 * lynx-low.c (lynx_target_ops): Initialize new structure
6085 members.
6086 * server.c (report_fork_events, report_vfork_events):
6087 New global flags.
6088 (handle_query): Add new features to qSupported packet and
6089 response.
6090 (captured_main): Initialize new global variables.
6091 * target.h (struct target_ops) <supports_fork_events>:
6092 New member.
6093 <supports_vfork_events>: New member.
6094 (target_supports_fork_events): New macro.
6095 (target_supports_vfork_events): New macro.
6096 * win32-low.c (win32_target_ops): Initialize new structure
6097 members.
6098
6099 2015-05-12 Gary Benson <gbenson@redhat.com>
6100
6101 * server.c (handle_qxfer_exec_file): Use current process
6102 if annex is empty.
6103
6104 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
6105
6106 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
6107 Remove HAVE_PTRACE_GETREGS conditionals.
6108 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
6109 instead of PTRACE_GETREGS and PTRACE_SETREGS.
6110
6111 2015-05-08 Yao Qi <yao.qi@linaro.org>
6112
6113 * linux-low.c (linux_supports_conditional_breakpoints): New
6114 function.
6115 (linux_target_ops): Install new target method.
6116 * lynx-low.c (lynx_target_ops): Install NULL hook for
6117 supports_conditional_breakpoints.
6118 * nto-low.c (nto_target_ops): Likewise.
6119 * spu-low.c (spu_target_ops): Likewise.
6120 * win32-low.c (win32_target_ops): Likewise.
6121 * server.c (handle_query): Check
6122 target_supports_conditional_breakpoints.
6123 * target.h (struct target_ops) <supports_conditional_breakpoints>:
6124 New field.
6125 (target_supports_conditional_breakpoints): New macro.
6126
6127 2015-05-06 Pedro Alves <palves@redhat.com>
6128
6129 PR server/18081
6130 * server.c (start_inferior): If the process exits, mourn it.
6131
6132 2015-04-21 Gary Benson <gbenson@redhat.com>
6133
6134 * hostio.c (fileio_open_flags_to_host): Factored out to
6135 fileio_to_host_openflags in common/fileio.c. Single use
6136 updated.
6137
6138 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
6139
6140 * linux-xtensa-low.c (xtensa_fill_gregset)
6141 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
6142 XCHAL_HAVE_LOOP.
6143
6144 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
6145
6146 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
6147 (regs_info): Replace usrregs pointer with NULL.
6148
6149 2015-04-17 Gary Benson <gbenson@redhat.com>
6150
6151 * target.h (struct target_ops) <pid_to_exec_file>: New field.
6152 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
6153 * server.c (handle_qxfer_exec_file): New function.
6154 (qxfer_packets): Add exec-file entry.
6155 (handle_query): Report qXfer:exec-file:read as supported packet.
6156
6157 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
6158
6159 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
6160
6161 2015-04-09 Gary Benson <gbenson@redhat.com>
6162
6163 * hostio-errno.c (errno_to_fileio_error): Remove function.
6164 Update caller to use remote_fileio_to_fio_error.
6165
6166 2015-04-09 Yao Qi <yao.qi@linaro.org>
6167
6168 * linux-low.c (linux_insert_point): Call
6169 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
6170 (linux_remove_point): Call remove_memory_breakpoint if type is
6171 raw_bkpt_type_sw.
6172 * linux-x86-low.c (x86_insert_point): Don't call
6173 insert_memory_breakpoint.
6174 (x86_remove_point): Don't call remove_memory_breakpoint.
6175
6176 2015-04-01 Pedro Alves <palves@redhat.com>
6177 Cleber Rosa <crosa@redhat.com>
6178
6179 * server.c (gdbserver_usage): Reorganize and extend the usage
6180 message.
6181
6182 2015-03-24 Pedro Alves <palves@redhat.com>
6183
6184 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
6185 output. Also dump TRAP_TRACE.
6186 (linux_low_filter_event): In debug output, distinguish a
6187 resume_stop SIGSTOP from a delayed SIGSTOP.
6188
6189 2015-03-24 Gary Benson <gbenson@redhat.com>
6190
6191 * linux-x86-low.c (x86_linux_new_thread): Moved to
6192 nat/x86-linux.c.
6193 (x86_linux_prepare_to_resume): Likewise.
6194
6195 2015-03-24 Gary Benson <gbenson@redhat.com>
6196
6197 * Makefile.in (x86-linux-dregs.o): New rule.
6198 * configure.srv: Add x86-linux-dregs.o to relevant targets.
6199 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
6200 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
6201 (x86_linux_dr_get): Likewise.
6202 (x86_linux_dr_set): Likewise.
6203 (update_debug_registers_callback): Likewise.
6204 (x86_linux_dr_set_addr): Likewise.
6205 (x86_linux_dr_get_addr): Likewise.
6206 (x86_linux_dr_set_control): Likewise.
6207 (x86_linux_dr_get_control): Likewise.
6208 (x86_linux_dr_get_status): Likewise.
6209 (x86_linux_update_debug_registers): Likewise.
6210
6211 2015-03-24 Gary Benson <gbenson@redhat.com>
6212
6213 * linux-x86-low.c (x86_linux_update_debug_registers):
6214 New function, factored out from...
6215 (x86_linux_prepare_to_resume): ...this.
6216
6217 2015-03-24 Gary Benson <gbenson@redhat.com>
6218
6219 * linux-x86-low.c (x86_linux_dr_get): Update comments.
6220 (x86_linux_dr_set): Likewise.
6221 (update_debug_registers_callback): Likewise.
6222 (x86_linux_dr_set_addr): Likewise.
6223 (x86_linux_dr_get_addr): Likewise.
6224 (x86_linux_dr_set_control): Likewise.
6225 (x86_linux_dr_get_control): Likewise.
6226 (x86_linux_dr_get_status): Likewise.
6227 (x86_linux_prepare_to_resume): Likewise.
6228
6229 2015-03-24 Gary Benson <gbenson@redhat.com>
6230
6231 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
6232 Use perror_with_name. Pass string through gettext.
6233 (x86_linux_dr_set): Likewise.
6234
6235 2015-03-24 Gary Benson <gbenson@redhat.com>
6236
6237 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
6238 (x86_linux_dr_set_addr): ...this.
6239 (x86_dr_low_get_addr): Rename to...
6240 (x86_linux_dr_get_addr): ...this.
6241 (x86_dr_low_set_control): Rename to...
6242 (x86_linux_dr_set_control): ...this.
6243 (x86_dr_low_get_control): Rename to...
6244 (x86_linux_dr_get_control): ...this.
6245 (x86_dr_low_get_status): Rename to...
6246 (x86_linux_dr_get_status): ...this.
6247 (x86_dr_low): Update with new function names.
6248
6249 2015-03-24 Gary Benson <gbenson@redhat.com>
6250
6251 * Makefile.in (x86-linux.o): New rule.
6252 * configure.srv: Add x86-linux.o to relevant targets.
6253 * linux-low.c (lwp_set_arch_private_info): New function.
6254 (lwp_arch_private_info): Likewise.
6255 * linux-x86-low.c: Include nat/x86-linux.h.
6256 (arch_lwp_info): Removed structure.
6257 (update_debug_registers_callback):
6258 Use lwp_set_debug_registers_changed.
6259 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
6260 and lwp_set_debug_registers_changed.
6261 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
6262
6263 2015-03-24 Gary Benson <gbenson@redhat.com>
6264
6265 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
6266 * linux-arm-low.c (arm_new_thread): Likewise.
6267 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
6268 * linux-mips-low.c (mips_linux_new_thread): Likewise.
6269 * linux-x86-low.c (x86_linux_new_thread): Likewise.
6270 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
6271
6272 2015-03-24 Gary Benson <gbenson@redhat.com>
6273
6274 * linux-low.c (ptid_of_lwp): New function.
6275 (lwp_is_stopped): Likewise.
6276 (lwp_stop_reason): Likewise.
6277 * linux-x86-low.c (update_debug_registers_callback):
6278 Use lwp_is_stopped.
6279 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
6280 lwp_stop_reason.
6281
6282 2015-03-24 Gary Benson <gbenson@redhat.com>
6283
6284 * linux-low.h (linux_stop_lwp): Remove declaration.
6285
6286 2015-03-24 Gary Benson <gbenson@redhat.com>
6287
6288 * linux-low.h: Include nat/linux-nat.h.
6289 * linux-low.c (iterate_over_lwps_args): New structure.
6290 (iterate_over_lwps_filter): New function.
6291 (iterate_over_lwps): Likewise.
6292 * linux-x86-low.c (update_debug_registers_callback):
6293 Update signature to what iterate_over_lwps expects.
6294 Remove PID check that iterate_over_lwps now performs.
6295 (x86_dr_low_set_addr): Use iterate_over_lwps.
6296 (x86_dr_low_set_control): Likewise.
6297
6298 2015-03-24 Gary Benson <gbenson@redhat.com>
6299
6300 * linux-x86-low.c (x86_debug_reg_state): New function.
6301 (x86_linux_prepare_to_resume): Use the above.
6302
6303 2015-03-24 Gary Benson <gbenson@redhat.com>
6304
6305 * linux-low.c (current_lwp_ptid): New function.
6306 * linux-x86-low.c: Include nat/linux-nat.h.
6307 (x86_dr_low_get_addr): Use current_lwp_ptid.
6308 (x86_dr_low_get_control): Likewise.
6309 (x86_dr_low_get_status): Likewise.
6310
6311 2015-03-20 Pedro Alves <palves@redhat.com>
6312
6313 * tracepoint.c (cmd_qtstatus): Make "str" const.
6314
6315 2015-03-20 Pedro Alves <palves@redhat.com>
6316
6317 * server.c (handle_general_set): Make "req_str" const.
6318
6319 2015-03-19 Pedro Alves <palves@redhat.com>
6320
6321 * linux-low.c (linux_resume_one_lwp): Rename to ...
6322 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
6323 instead call perror_with_name.
6324 (check_ptrace_stopped_lwp_gone): New function.
6325 (linux_resume_one_lwp): Reimplement as wrapper around
6326 linux_resume_one_lwp_throw that swallows errors if the LWP is
6327 gone.
6328
6329 2015-03-19 Pedro Alves <palves@redhat.com>
6330
6331 * linux-low.c (count_events_callback, select_event_lwp_callback):
6332 No longer check whether the thread has resume_stop as last resume
6333 kind.
6334
6335 2015-03-19 Pedro Alves <palves@redhat.com>
6336
6337 * linux-low.c (count_events_callback, select_event_lwp_callback):
6338 Use the lwp's status_pending_p field, not the thread's.
6339
6340 2015-03-19 Pedro Alves <palves@redhat.com>
6341
6342 * linux-low.c (select_event_lwp_callback): Update comments to
6343 no longer mention SIGTRAP.
6344
6345 2015-03-18 Gary Benson <gbenson@redhat.com>
6346
6347 * server.c (handle_query): Do not report vFile:fstat as supported.
6348
6349 2015-03-11 Gary Benson <gbenson@redhat.com>
6350
6351 * hostio.c (sys/types.h): New include.
6352 (sys/stat.h): Likewise.
6353 (common-remote-fileio.h): Likewise.
6354 (handle_fstat): New function.
6355 (handle_vFile): Handle vFile:fstat packets.
6356
6357 2015-03-11 Gary Benson <gbenson@redhat.com>
6358
6359 * configure.ac (AC_CHECK_MEMBERS): Add checks for
6360 struct stat.st_blocks and struct stat.st_blksize.
6361 * configure: Regenerate.
6362 * config.in: Likewise.
6363 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
6364 (OBS): Add common-remote-fileio.o.
6365 (common-remote-fileio.o): New rule.
6366
6367 2015-03-09 Pedro Alves <palves@redhat.com>
6368
6369 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
6370 'struct sockaddr' pointer in 'accept' call.
6371
6372 2015-03-09 Pedro Alves <palves@redhat.com>
6373
6374 Revert:
6375 2015-03-07 Pedro Alves <palves@redhat.com>
6376 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
6377 or <winsock2.h> here. Instead include "gdb_socket.h".
6378 (remote_open): Use union gdb_sockaddr_u.
6379 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
6380 or <winsock2.h> here. Instead include "gdb_socket.h".
6381 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
6382 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
6383 or <sys/un.h>.
6384 (init_named_socket, gdb_agent_helper_thread): Use union
6385 gdb_sockaddr_u.
6386
6387 2015-03-07 Pedro Alves <palves@redhat.com>
6388
6389 * configure.ac (build_warnings): Move
6390 -Wdeclaration-after-statement to the C-specific set.
6391 * configure: Regenerate.
6392
6393 2015-03-07 Pedro Alves <palves@redhat.com>
6394
6395 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
6396 or <winsock2.h> here. Instead include "gdb_socket.h".
6397 (remote_open): Use union gdb_sockaddr_u.
6398 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
6399 or <winsock2.h> here. Instead include "gdb_socket.h".
6400 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
6401 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
6402 or <sys/un.h>.
6403 (init_named_socket, gdb_agent_helper_thread): Use union
6404 gdb_sockaddr_u.
6405
6406 2015-03-07 Pedro Alves <palves@redhat.com>
6407
6408 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
6409 instead.
6410
6411 2015-03-06 Yao Qi <yao.qi@linaro.org>
6412
6413 * linux-aarch64-low.c (aarch64_insert_point): Use
6414 show_debug_regs as a boolean.
6415 (aarch64_remove_point): Likewise.
6416
6417 2015-03-05 Pedro Alves <palves@redhat.com>
6418
6419 * lynx-low.c (lynx_target_ops): Install NULL hooks for
6420 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
6421 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
6422 * nto-low.c (nto_target_ops): Likewise.
6423 * spu-low.c (spu_target_ops): Likewise.
6424 * win32-low.c (win32_target_ops): Likewise.
6425
6426 2015-03-04 Pedro Alves <palves@redhat.com>
6427
6428 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
6429 Decide whether a breakpoint triggered based on the SIGTRAP's
6430 siginfo.si_code.
6431 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
6432 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
6433 (linux_low_filter_event): Check for breakpoints before checking
6434 watchpoints.
6435 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
6436 siginfo.si_code.
6437 (linux_stopped_by_sw_breakpoint)
6438 (linux_supports_stopped_by_sw_breakpoint)
6439 (linux_stopped_by_hw_breakpoint)
6440 (linux_supports_stopped_by_hw_breakpoint): New functions.
6441 (linux_target_ops): Install new target methods.
6442
6443 2015-03-04 Pedro Alves <palves@redhat.com>
6444
6445 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
6446 * server.c (swbreak_feature, hwbreak_feature): New globals.
6447 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
6448 (captured_main): Clear swbreak_feature and hwbreak_feature.
6449 * server.h (swbreak_feature, hwbreak_feature): Declare.
6450 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
6451 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
6452 supports_stopped_by_hw_breakpoint>: New fields.
6453 (target_supports_stopped_by_sw_breakpoint)
6454 (target_stopped_by_sw_breakpoint)
6455 (target_supports_stopped_by_hw_breakpoint)
6456 (target_stopped_by_hw_breakpoint): Declare.
6457
6458 2015-03-04 Pedro Alves <palves@redhat.com>
6459
6460 enum lwp_stop_reason -> enum target_stop_reason
6461 * linux-low.c (check_stopped_by_breakpoint): Adjust.
6462 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
6463 (linux_wait_1, stuck_in_jump_pad_callback)
6464 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
6465 (linux_stopped_by_watchpoint):
6466 * linux-low.h (enum lwp_stop_reason): Delete.
6467 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
6468 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
6469
6470 2015-03-04 Yao Qi <yao.qi@linaro.org>
6471
6472 * Makefile.in (SFILES): Add linux-aarch64-low.c.
6473
6474 2015-03-03 Gary Benson <gbenson@redhat.com>
6475
6476 * hostio.c (handle_vFile): Fix prefix lengths.
6477
6478 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
6479
6480 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
6481 ptr_bits.
6482
6483 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
6484
6485 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
6486 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
6487 (clean): Add "rm -f" for above C files.
6488 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
6489 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
6490 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
6491 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
6492 * linux-s390-low.c (HWCAP_S390_VX): New macro.
6493 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
6494 (init_registers_s390x_vx_linux64)
6495 (init_registers_s390x_tevx_linux64)
6496 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
6497 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
6498 declarations.
6499 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
6500 (s390_store_vxrs_high): New functions.
6501 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
6502 NT_S390_VXRS_HIGH.
6503 (s390_arch_setup): Add logic for selecting one of the new target
6504 descriptions. Activate the new vector regsets if applicable.
6505 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
6506 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
6507 and init_registers_s390x_tevx_linux64.
6508
6509 2015-03-01 Pedro Alves <palves@redhat.com>
6510
6511 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
6512 parameter.
6513
6514 2015-02-27 Pedro Alves <palves@redhat.com>
6515
6516 * linux-x86-low.c (u_debugreg_offset): New function.
6517 (x86_linux_dr_get, x86_linux_dr_set): Use it.
6518
6519 2015-02-27 Pedro Alves <palves@redhat.com>
6520
6521 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
6522 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
6523 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
6524 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6525 (ps_lsetfpregs, ps_getpid)
6526 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
6527 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
6528 (ps_lsetxregs, ps_plog): Declare.
6529
6530 2015-02-27 Pedro Alves <palves@redhat.com>
6531
6532 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
6533 IP_AGENT_EXPORT_FUNC.
6534 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
6535 IP_AGENT_EXPORT_FUNC.
6536 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
6537 (IP_AGENT_EXPORT): Delete.
6538 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
6539 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
6540 (gdb_trampoline_buffer_error, collecting, gdb_collect)
6541 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
6542 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
6543 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
6544 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
6545 (traceframe_read_count, traceframe_write_count)
6546 (traceframes_created, trace_state_variables, get_raw_reg)
6547 (get_trace_state_variable_value, set_trace_state_variable_value)
6548 (ust_loaded, helper_thread_id, cmd_buf): Use
6549 IPA_SYM_EXPORTED_NAME.
6550 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
6551 (tracepoints) Use IP_AGENT_EXPORT_VAR.
6552 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
6553 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
6554 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
6555 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
6556 EXTERN_C_PUSH/EXTERN_C_POP.
6557 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
6558 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
6559 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
6560 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
6561 (traceframe_write_count, traceframe_read_count)
6562 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
6563 (about_to_request_buffer_space, get_trace_state_variable_value)
6564 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
6565 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
6566 EXTERN_C_PUSH/EXTERN_C_POP.
6567 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
6568 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
6569 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
6570 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
6571 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
6572 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
6573 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
6574 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
6575 Define.
6576 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
6577 (IP_AGENT_EXPORT_VAR_DECL): Define.
6578 (tracing): Declare.
6579 (gdb_agent_get_raw_reg): Declare.
6580
6581 2015-02-27 Tom Tromey <tromey@redhat.com>
6582 Pedro Alves <palves@redhat.com>
6583
6584 Rename symbols whose names are reserved C++ keywords throughout.
6585
6586 2015-02-27 Pedro Alves <palves@redhat.com>
6587
6588 * Makefile.in (COMPILER): New, get it from autoconf.
6589 (CXX): Get from autoconf instead.
6590 (COMPILE.pre): Use COMPILER.
6591 (CC-LD): Rename to ...
6592 (CC_LD): ... this. Use COMPILER.
6593 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
6594 (CXX_FOR_TARGET): Default to g++ instead of gcc.
6595 * acinclude.m4: Include build-with-cxx.m4.
6596 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
6597 Disable -Werror by default if building in C++ mode.
6598 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
6599 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
6600 the C++ compiler. Save/restore CXXFLAGS too.
6601 * configure: Regenerate.
6602
6603 2015-02-27 Pedro Alves <palves@redhat.com>
6604
6605 * acinclude.m4: Include libiberty.m4.
6606 * configure.ac: Call libiberty_INIT.
6607 * config.in, configure: Regenerate.
6608
6609 2015-02-26 Pedro Alves <palves@redhat.com>
6610
6611 * linux-low.c (linux_wait_1): When incrementing the PC past a
6612 program breakpoint always use the_low_target.breakpoint_len as
6613 increment, rather than the maximum between that and
6614 the_low_target.decr_pc_after_break.
6615
6616 2015-02-23 Pedro Alves <palves@redhat.com>
6617
6618 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
6619 thread was doing a step-over; always adjust the PC if
6620 we stepped over a permanent breakpoint.
6621 (linux_wait_1): If we stepped over breakpoint that was on top of a
6622 permanent breakpoint, manually advance the PC past it.
6623
6624 2015-02-23 Pedro Alves <palves@redhat.com>
6625
6626 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
6627 modes.
6628 (x86_fill_gregset, x86_store_gregset): Use it when handling
6629 $orig_eax.
6630
6631 2015-02-20 Pedro Alves <palves@redhat.com>
6632
6633 * thread-db.c: Include "nat/linux-procfs.h".
6634 (thread_db_init): Skip listing new threads if the kernel supports
6635 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
6636
6637 2015-02-20 Pedro Alves <palves@redhat.com>
6638
6639 * linux-low.c (status_pending_p_callback): Use ptid_match.
6640
6641 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
6642
6643 PR breakpoints/16812
6644 * linux-low.c (wstatus_maybe_breakpoint): Remove.
6645 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
6646 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
6647
6648 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
6649
6650 PR breakpoints/15956
6651 * tracepoint.c (cmd_qtinit): Add check for current_thread.
6652
6653 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6654
6655 * linux-low.c (linux_low_btrace_conf): Print size.
6656 * server.c (handle_btrace_conf_general_set): New.
6657 (hanle_general_set): Call handle_btrace_conf_general_set.
6658 (handle_query): Report Qbtrace-conf:bts:size as supported.
6659
6660 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6661
6662 * linux-low.c (linux_low_enable_btrace): Update parameters.
6663 (linux_low_btrace_conf): New.
6664 (linux_target_ops)<to_btrace_conf>: Initialize.
6665 * server.c (current_btrace_conf): New.
6666 (handle_btrace_enable): Rename to ...
6667 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
6668 to target_enable_btrace. Update comment. Update users.
6669 (handle_qxfer_btrace_conf): New.
6670 (qxfer_packets): Add btrace-conf entry.
6671 (handle_query): Report qXfer:btrace-conf:read as supported packet.
6672 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
6673 (target_ops)<read_btrace_conf>: New.
6674 (target_enable_btrace): Update parameters.
6675 (target_read_btrace_conf): New.
6676
6677 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6678
6679 * server.c (handle_btrace_general_set): Remove call to
6680 target_supports_btrace.
6681 (supported_btrace_packets): New.
6682 (handle_query): Call supported_btrace_packets.
6683 * target.h: include btrace-common.h.
6684 (btrace_target_info): Removed.
6685 (supports_btrace, target_supports_btrace): Update parameters.
6686
6687 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6688
6689 * Makefile.in (SFILES): Add common/btrace-common.c.
6690 (OBS): Add common/btrace-common.o.
6691 (btrace-common.o): Add build rules.
6692 * linux-low: Include btrace-common.h.
6693 (linux_low_read_btrace): Use struct btrace_data. Call
6694 btrace_data_init and btrace_data_fini.
6695
6696 2015-02-06 Pedro Alves <palves@redhat.com>
6697
6698 * thread-db.c (find_new_threads_callback): Add debug output.
6699
6700 2015-02-04 Pedro Alves <palves@redhat.com>
6701
6702 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
6703 (resume_stopped_resumed_lwps): New function.
6704 (linux_wait_for_event_filtered): Use it.
6705
6706 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
6707
6708 * Makefile.in (SFILES): Add linux-personality.c.
6709 (linux-personality.o): New rule.
6710 * configure.srv (srv_linux_obj): Add linux-personality.o to the
6711 list of objects to be built.
6712 * linux-low.c: Include nat/linux-personality.h.
6713 (linux_create_inferior): Remove code to disable address space
6714 randomization (moved to ../nat/linux-personality.c). Create
6715 cleanup to disable address space randomization.
6716
6717 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
6718
6719 * Makefile.in (posix-strerror.o): New rule.
6720 (mingw-strerror.o): Likewise.
6721 * configure: Regenerated.
6722 * configure.ac: Source file ../common/common.host. Initialize new
6723 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
6724
6725 2015-01-14 Yao Qi <yao@codesourcery.com>
6726
6727 * Makefile.in (SFILES): Add nat/ppc-linux.c.
6728 (ppc-linux.o): New rule.
6729 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
6730 * configure.ac: AC_CHECK_FUNCS(getauxval).
6731 * config.in: Re-generated.
6732 * configure: Re-generated.
6733 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
6734 ppc64_64bit_inferior_p
6735
6736 2015-01-14 Yao Qi <yao@codesourcery.com>
6737
6738 * linux-ppc-low.c: Include "nat/ppc-linux.h".
6739 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
6740 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
6741 (PT_ORIG_R3, PT_TRAP): Likewise.
6742 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
6743 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
6744 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
6745
6746 2015-01-10 Joel Brobecker <brobecker@adacore.com>
6747
6748 * i387-fp.c (i387_cache_to_xsave): In look over
6749 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
6750 zmmh_low_space field by use of zmmh_high_space.
6751
6752 2015-01-09 Pedro Alves <palves@redhat.com>
6753
6754 * linux-low.c (step_over_bkpt): Move higher up in the file.
6755 (handle_extended_wait): Don't store the stop_pc here.
6756 (get_stop_pc): Adjust comments and rename to ...
6757 (check_stopped_by_breakpoint): ... this. Record whether the LWP
6758 stopped for a software breakpoint or hardware breakpoint.
6759 (thread_still_has_status_pending_p): New function.
6760 (status_pending_p_callback): Use
6761 thread_still_has_status_pending_p. If the event is no longer
6762 interesting, resume the LWP.
6763 (handle_tracepoints): Add assert.
6764 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
6765 (wstatus_maybe_breakpoint): New function.
6766 (cancel_breakpoint): Delete function.
6767 (check_stopped_by_watchpoint): New function, factored out from
6768 linux_low_filter_event.
6769 (lp_status_maybe_breakpoint): Delete function.
6770 (linux_low_filter_event): Remove filter_ptid argument.
6771 Leave thread group exits pending here. Store the LWP's stop PC.
6772 Always leave events pending.
6773 (linux_wait_for_event_filtered): Pull all events out of the
6774 kernel, and leave them all pending.
6775 (count_events_callback, select_event_lwp_callback): Consider all
6776 events.
6777 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
6778 (select_event_lwp): Only give preference to the stepping LWP in
6779 all-stop mode. Adjust comments.
6780 (ignore_event): New function.
6781 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
6782 references to cancel_breakpoints. Adjust to renames. Also give
6783 equal priority to all LWPs that have had events in non-stop mode.
6784 If reporting a software breakpoint event, unadjust the LWP's PC.
6785 (linux_wait): If linux_wait_1 returned an ignored event, retry.
6786 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
6787 Adjust.
6788 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
6789 (resume_status_pending_p): Use thread_still_has_status_pending_p.
6790 (linux_stopped_by_watchpoint): Adjust.
6791 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
6792 * linux-low.h (enum lwp_stop_reason): New.
6793 (struct lwp_info) <stop_pc>: Adjust comment.
6794 <stopped_by_watchpoint>: Delete field.
6795 <stop_reason>: New field.
6796 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
6797 * mem-break.c (software_breakpoint_inserted_here)
6798 (hardware_breakpoint_inserted_here): New function.
6799 * mem-break.h (software_breakpoint_inserted_here)
6800 (hardware_breakpoint_inserted_here): Declare.
6801 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
6802 (cancel_breakpoints): Delete.
6803 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
6804 (upload_fast_traceframes): Remove references to
6805 cancel_breakpoints.
6806
6807 2015-01-09 Pedro Alves <palves@redhat.com>
6808
6809 * thread-db.c (find_new_threads_callback): Ignore thread if the
6810 kernel thread ID is -1.
6811
6812 2015-01-09 Pedro Alves <palves@redhat.com>
6813
6814 * linux-low.c (linux_attach_fail_reason_string): Move to
6815 nat/linux-ptrace.c, and rename.
6816 (linux_attach_lwp): Update comment.
6817 (attach_proc_task_lwp_callback): New function.
6818 (linux_attach): Adjust to rename and use
6819 linux_proc_attach_tgid_threads.
6820 (linux_attach_fail_reason_string): Delete declaration.
6821
6822 2015-01-01 Joel Brobecker <brobecker@adacore.com>
6823
6824 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
6825 * server.c (gdbserver_version): Likewise.
6826
6827 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
6828
6829 * remote-utils.c: Include ctype.h.
6830 (input_interrupt): Explicitly handle the case when the char
6831 received is the NUL byte. Improve the printing of non-ASCII
6832 characters.
6833
6834 2014-12-16 Joel Brobecker <brobecker@adacore.com>
6835
6836 * linux-low.c (linux_low_filter_event): Update call to
6837 linux_enable_event_reporting following the addition of
6838 a new parameter to that function.
6839
6840 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
6841
6842 PR server/17457
6843 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
6844 (AARCH64_FPCR_REGNO): Likewise.
6845 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
6846 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
6847 (aarch64_store_fpregset): Likewise.
6848
6849 2014-12-15 Joel Brobecker <brobecker@adacore.com>
6850
6851 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
6852 Remove FIXME comment about assumption about N.
6853
6854 2014-12-13 Joel Brobecker <brobecker@adacore.com>
6855
6856 * configure.ac: If large-file support is disabled in GDBserver,
6857 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
6858 * configure: Regenerate.
6859
6860 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
6861
6862 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
6863 warning upon ENODATA from ptrace.
6864 * linux-s390-low.c (s390_store_tdb): New.
6865 (s390_regsets): Add regset for NT_S390_TDB.
6866
6867 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
6868
6869 * linux-low.c (regsets_store_inferior_registers): Skip regsets
6870 without a fill_function.
6871 * linux-s390-low.c (s390_fill_last_break): Remove.
6872 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
6873 (s390_arch_setup): Use regset's size instead of fill_function for
6874 loop end condition.
6875
6876 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
6877
6878 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
6879 the regset's store function when ptrace returned an error.
6880 * regcache.c (get_thread_regcache): Invalidate register cache
6881 before fetching inferior's registers.
6882
6883 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
6884
6885 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
6886 while-loop as for-loop.
6887 (regsets_store_inferior_registers): Likewise.
6888
6889 2014-11-28 Yao Qi <yao@codesourcery.com>
6890
6891 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
6892 * config.in, configure: Re-generate.
6893 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
6894 is defined.
6895
6896 2014-11-21 Yao Qi <yao@codesourcery.com>
6897
6898 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
6899 (AC_CHECK_HEADERS): Remove malloc.h.
6900 * configure: Re-generated.
6901 * config.in: Re-generated.
6902 * server.h: Don't include alloca.h and malloc.h.
6903 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
6904 Don't include malloc.h.
6905
6906 2014-11-17 Joel Brobecker <brobecker@adacore.com>
6907
6908 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
6909 corresponding ERRNO check in same block.
6910
6911 2014-11-12 Pedro Alves <palves@redhat.com>
6912
6913 * server.c (cont_thread): Update comment.
6914 (start_inferior, attach_inferior): No longer clear cont_thread.
6915 (handle_v_cont): No longer set cont_thread.
6916 (captured_main): Clear cont_thread each time a GDB connects.
6917
6918 2014-11-12 Pedro Alves <palves@redhat.com>
6919
6920 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
6921 thread, and don't resume all threads if the Hc thread has exited.
6922
6923 2014-11-12 Pedro Alves <palves@redhat.com>
6924
6925 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
6926 the process group instead of to a specific LWP.
6927
6928 2014-10-15 Pedro Alves <palves@redhat.com>
6929
6930 PR server/17487
6931 * win32-arm-low.c (arm_set_thread_context): Remove current_event
6932 parameter.
6933 (arm_set_thread_context): Delete.
6934 (the_low_target): Adjust.
6935 * win32-i386-low.c (debug_registers_changed)
6936 (debug_registers_used): Delete.
6937 (update_debug_registers_callback): New function.
6938 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
6939 needing to update their debug registers.
6940 (win32_get_current_dr): New function.
6941 (x86_dr_low_get_addr, x86_dr_low_get_control)
6942 (x86_dr_low_get_status): Fetch the debug register from the thread
6943 record's context.
6944 (i386_initial_stuff): Adjust.
6945 (i386_get_thread_context): Remove current_event parameter. Don't
6946 clear debug_registers_changed nor copy DR values to
6947 debug_reg_state.
6948 (i386_set_thread_context): Delete.
6949 (i386_prepare_to_resume): New function.
6950 (i386_thread_added): Mark the thread as needing to update irs
6951 debug registers.
6952 (the_low_target): Remove i386_set_thread_context and install
6953 i386_prepare_to_resume.
6954 * win32-low.c (win32_get_thread_context): Adjust.
6955 (win32_set_thread_context): Use SetThreadContext
6956 directly.
6957 (win32_prepare_to_resume): New function.
6958 (win32_require_context): New function, factored out from ...
6959 (thread_rec): ... this.
6960 (continue_one_thread): Call win32_prepare_to_resume on each thread
6961 we're about to continue.
6962 (win32_resume): Call win32_prepare_to_resume on the event thread.
6963 * win32-low.h (struct win32_thread_info)
6964 <debug_registers_changed>: New field.
6965 (struct win32_target_ops): Change prototype of set_thread_context,
6966 delete set_thread_context and add prepare_to_resume.
6967 (win32_require_context): New declaration.
6968
6969 2014-10-08 Gary Benson <gbenson@redhat.com>
6970
6971 * server.h: Do not include common-exceptions.h.
6972
6973 2014-10-08 Gary Benson <gbenson@redhat.com>
6974
6975 * server.h: Do not include cleanups.h.
6976
6977 2014-09-30 James Hogan <james.hogan@imgtec.com>
6978
6979 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
6980 mips64-dsp-linux.c.
6981
6982 2014-09-23 Yao Qi <yao@codesourcery.com>
6983
6984 * linux-low.c (lp_status_maybe_breakpoint): New function.
6985 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
6986 (count_events_callback): Likewise.
6987 (select_event_lwp_callback): Likewise.
6988 (cancel_breakpoints_callback): Likewise.
6989
6990 2014-09-19 Don Breazeal <donb@codesourcery.com>
6991
6992 * linux-low.c (handle_extended_wait): Call
6993 linux_ptrace_get_extended_event.
6994 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
6995 linux_is_extended_waitstatus.
6996
6997 2014-09-16 Joel Brobecker <brobecker@adacore.com>
6998
6999 * Makefile.in (CPPFLAGS): Define.
7000 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
7001 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
7002
7003 2014-09-16 Gary Benson <gbenson@redhat.com>
7004
7005 * inferiors.h (current_inferior): Renamed as...
7006 (current_thread): New variable. All uses updated.
7007 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
7008 (maybe_move_out_of_jump_pad): Likewise.
7009 (cancel_breakpoint): Likewise.
7010 (linux_low_filter_event): Likewise.
7011 (wait_for_sigstop): Likewise.
7012 (linux_resume_one_lwp): Likewise.
7013 (need_step_over_p): Likewise.
7014 (start_step_over): Likewise.
7015 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
7016 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
7017 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
7018 and save_inferior as saved_thread.
7019 * regcache.c (get_thread_regcache): Renamed saved_inferior as
7020 saved_thread.
7021 (regcache_invalidate_thread): Likewise.
7022 * remote-utils.c (prepare_resume_reply): Likewise.
7023 * thread-db.c (thread_db_get_tls_address): Likewise.
7024 (disable_thread_event_reporting): Likewise.
7025 (remove_thread_event_breakpoints): Likewise.
7026 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
7027 as saved_thread.
7028 * target.h (set_desired_inferior): Renamed as...
7029 (set_desired_thread): New declaration. All uses updated.
7030 * server.c (myresume): Updated comment to reference thread instead
7031 of inferior.
7032 (handle_serial_event): Likewise.
7033 (handle_target_event): Likewise.
7034
7035 2014-09-12 Tom Tromey <tromey@redhat.com>
7036 Gary Benson <gbenson@redhat.com>
7037
7038 * regcache.h: Include common-regcache.h.
7039 (regcache_read_pc): Don't declare.
7040 * regcache.c (get_thread_regcache_for_ptid): New function.
7041
7042 2014-09-11 Tom Tromey <tromey@redhat.com>
7043 Gary Benson <gbenson@redhat.com>
7044
7045 * symbol.c: New file.
7046 * Makefile.in (SFILES): Add symbol.c.
7047 (OBS): Add symbol.o.
7048
7049 2014-09-11 Gary Benson <gbenson@redhat.com>
7050
7051 * target.c (target_stop_ptid, target_continue_ptid): New
7052 functions.
7053
7054 2014-09-11 Tom Tromey <tromey@redhat.com>
7055 Gary Benson <gbenson@redhat.com>
7056
7057 * target.h: Include target/target.h.
7058 * target.c (target_read_memory, target_read_uint32)
7059 (target_write_memory): New functions.
7060
7061 2014-09-11 Gary Benson <gbenson@redhat.com>
7062
7063 * server.h (debug_hw_points): Don't declare.
7064 * server.c (debug_hw_points): Don't define. Replace all uses
7065 with show_debug_regs.
7066 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
7067 all uses with show_debug_regs.
7068
7069 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7070
7071 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
7072 endianness into account.
7073 (ppc_supply_ptrace_register): Likewise.
7074
7075 2014-09-03 James Hogan <james.hogan@imgtec.com>
7076
7077 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
7078 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
7079
7080 2014-09-03 Gary Benson <gbenson@redhat.com>
7081
7082 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
7083 ALL_DEBUG_ADDRESS_REGISTERS.
7084
7085 2014-09-02 Gary Benson <gbenson@redhat.com>
7086
7087 * i386-low.h: Renamed as...
7088 * x86-low.h: New file. All type, function and variable name
7089 prefixes changed from "i386_" to "x86_". All references updated.
7090 * i386-low.c: Renamed as...
7091 * x86-low.c: New file. All type, function and variable name
7092 prefixes changed from "i386_" to "x86_". All references updated.
7093
7094 2014-09-02 Gary Benson <gbenson@redhat.com>
7095
7096 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
7097 (x86_linux_new_thread): Likewise.
7098
7099 2014-08-29 Gary Benson <gbenson@redhat.com>
7100
7101 * server.h (setjmp.h): Do not include.
7102 (toplevel): Do not declare.
7103 (common-exceptions.h): Include.
7104 (cleanups.h): Likewise.
7105 * server.c (toplevel): Do not define.
7106 (exit_code): New static global.
7107 (detach_or_kill_for_exit_cleanup): New function.
7108 (main): New function. Original main renamed to...
7109 (captured_main): New function.
7110 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
7111
7112 2014-08-29 Gary Benson <gbenson@redhat.com>
7113
7114 * Makefile.in (SFILES): Add common/common-exceptions.c.
7115 (OBS): Add common-exceptions.o.
7116 (common-exceptions.o): New rule.
7117 * utils.c (prepare_to_throw_exception): New function.
7118
7119 2014-08-29 Gary Benson <gbenson@redhat.com>
7120
7121 * config.in: Regenerate.
7122 * configure: Likewise.
7123
7124 2014-08-29 Gary Benson <gbenson@redhat.com>
7125
7126 * Makefile.in (SFILES): Add common/cleanups.c.
7127 (OBS): cleanups.o.
7128 (cleanups.o): New rule.
7129
7130 2014-08-29 Gary Benson <gbenson@redhat.com>
7131
7132 * utils.c (internal_vwarning): New function.
7133
7134 2014-08-28 Gary Benson <gbenson@redhat.com>
7135
7136 * utils.h (fatal): Remove declaration.
7137 * utils.c (fatal): Remove function.
7138
7139 2014-08-28 Gary Benson <gbenson@redhat.com>
7140
7141 * tracepoint.c (gdb_agent_init): Replace fatal with
7142 perror_with_name.
7143 (initialize_tracepoint): Likewise.
7144
7145 2014-08-28 Gary Benson <gbenson@redhat.com>
7146
7147 * remote-utils.c (remote_prepare): Replace fatal with error.
7148
7149 2014-08-28 Gary Benson <gbenson@redhat.com>
7150
7151 * linux-low.c (linux_async): Replace fatal with warning.
7152 Tidy up and return.
7153 (linux_start_non_stop): Return -1 if linux_async failed.
7154
7155 2014-08-28 Gary Benson <gbenson@redhat.com>
7156
7157 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
7158 gdb_assert.
7159 (i386_dr_low_get_addr): Remove vague comment.
7160 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
7161 gdb_assert.
7162
7163 2014-08-28 Gary Benson <gbenson@redhat.com>
7164
7165 * inferiors.c (get_thread_process): Replace check with gdb_assert.
7166 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
7167 internal_error.
7168 (linux_resume_one_lwp): Likewise.
7169 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
7170 gdb_assert.
7171 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
7172 with internal_error.
7173 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
7174 (init_register_cache): Replace fatal with gdb_assert_not_reached.
7175 (find_register_by_name): Replace fatal with internal_error.
7176 (find_regno): Likewise.
7177 * tdesc.c (init_target_desc): Replace check with gdb_assert.
7178 * thread-db.c (thread_db_create_event): Likewise.
7179 (thread_db_load_search): Likewise.
7180 (try_thread_db_load_1): Likewise.
7181 * tracepoint.c (get_jump_space_head): Replace fatal with
7182 internal_error.
7183 (claim_trampoline_space): Likewise.
7184 (have_fast_tracepoint_trampoline_buffer): Likewise.
7185 (cmd_qtstart): Likewise.
7186 (stop_tracing): Likewise.
7187 (fast_tracepoint_collecting): Likewise.
7188 (target_malloc): Likewise.
7189 (download_tracepoint): Likewise.
7190 (download_trace_state_variables): Replace check with gdb_assert.
7191 (upload_fast_traceframes): Replace fatal with internal_error.
7192
7193 2014-08-19 Tom Tromey <tromey@redhat.com>
7194 Gary Benson <gbenson@redhat.com>
7195
7196 * Makefile.in (SFILES): Add common/common-debug.c.
7197 (OBS): Add common-debug.o.
7198 (common-debug.o): New rule.
7199 * debug.h (debug_printf): Don't declare.
7200 * debug.c (debug_printf): Renamed and rewritten as...
7201 (debug_vprintf): New function.
7202
7203 2014-08-19 Gary Benson <gbenson@redhat.com>
7204
7205 * utils.h: Do not include print-utils.h.
7206
7207 2014-08-19 Tom Tromey <tromey@redhat.com>
7208 Gary Benson <gbenson@redhat.com>
7209
7210 * server.h: Add static assertion.
7211 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
7212
7213 2014-08-19 Tom Tromey <tromey@redhat.com>
7214 Gary Benson <gbenson@redhat.com>
7215
7216 * Makefile.in (SFILES): Add common/errors.c.
7217 (OBS): Add errors.o.
7218 (IPA_OBS): Add errors-ipa.o.
7219 (errors.o): New rule.
7220 (errors-ipa.o): Likewise.
7221 * utils.h (perror_with_name, error, warning): Don't declare.
7222 * utils.c (warning): Renamed and rewritten as...
7223 (vwarning): New function.
7224 (error): Renamed and rewritten as...
7225 (verror): New function.
7226 (internal_error): Renamed and rewritten as...
7227 (internal_verror): New function.
7228
7229 2014-08-07 Gary Benson <gbenson@redhat.com>
7230
7231 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
7232 * configure: Regenerate.
7233 * config.in: Likewise.
7234 * server.h: Do not include errno.h.
7235 * event-loop.c: Likewise.
7236 * hostio-errno.c: Likewise.
7237 * linux-low.c: Likewise.
7238 * remote-utils.c: Likewise.
7239 * spu-low.c: Likewise.
7240 * utils.c: Likewise.
7241 * gdbreplay.c: Unconditionally include errno.h.
7242
7243 2014-08-07 Gary Benson <gbenson@redhat.com>
7244
7245 * server.h: Do not include string.h.
7246 * event-loop.c: Likewise.
7247 * linux-low.c: Likewise.
7248 * regcache.c: Likewise.
7249 * remote-utils.c: Likewise.
7250 * spu-low.c: Likewise.
7251 * utils.c: Likewise.
7252
7253 2014-08-07 Gary Benson <gbenson@redhat.com>
7254
7255 * server.h: Do not include gdb_assert.h.
7256
7257 2014-08-07 Gary Benson <gbenson@redhat.com>
7258
7259 * server.h: Do not include common-utils.h.
7260
7261 2014-08-07 Gary Benson <gbenson@redhat.com>
7262
7263 * server.h: Do not include ptid.h.
7264 * notif.h: Likewise.
7265
7266 2014-08-07 Gary Benson <gbenson@redhat.com>
7267
7268 * server.h: Do not include gdb_locale.h.
7269
7270 2014-08-07 Gary Benson <gbenson@redhat.com>
7271
7272 * server.h: Do not include gdb/signals.h.
7273 * win32-low.c: Likewise.
7274
7275 2014-08-07 Gary Benson <gbenson@redhat.com>
7276
7277 * server.h: Do not include pathmax.h.
7278
7279 2014-08-07 Gary Benson <gbenson@redhat.com>
7280
7281 * server.h: Do not include libiberty.h.
7282 * linux-bfin-low.c: Likewise.
7283
7284 2014-08-07 Gary Benson <gbenson@redhat.com>
7285
7286 * server.h: Do not include ansidecl.h.
7287
7288 2014-08-07 Gary Benson <gbenson@redhat.com>
7289
7290 * linux-x86-low.c: Do not include stddef.h.
7291 * lynx-ppc-low.c: Likewise.
7292 * tracepoint.c: Likewise.
7293
7294 2014-08-07 Gary Benson <gbenson@redhat.com>
7295
7296 * server.h: Do not include stdarg.h.
7297 * nto-low.c: Likewise.
7298
7299 2014-08-07 Gary Benson <gbenson@redhat.com>
7300
7301 * server.h: Do not include stdlib.h.
7302 * inferiors.c: Likewise.
7303 * linux-low.c: Likewise.
7304 * regcache.c: Likewise.
7305 * spu-low.c: Likewise.
7306 * tracepoint.c: Likewise.
7307 * utils.c: Likewise.
7308
7309 2014-08-07 Gary Benson <gbenson@redhat.com>
7310
7311 * server.h: Do not include stdio.h.
7312 * linux-low.c: Likewise.
7313 * remote-utils.c: Likewise.
7314 * spu-low.c: Likewise.
7315 * utils.c: Likewise.
7316 * wincecompat.c: Likewise.
7317
7318 2014-08-06 Gary Benson <gbenson@redhat.com>
7319
7320 * regcache.c (init_register_cache): Move conditionals inside if.
7321
7322 2014-08-06 Gary Benson <gbenson@redhat.com>
7323
7324 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
7325
7326 2014-07-31 Gary Benson <gbenson@redhat.com>
7327
7328 * ax.h: Do not include server.h.
7329 * gdbthread.h: Likewise.
7330 * lynx-low.h: Likewise.
7331 * notif.h: Likewise.
7332
7333 2014-07-30 Gary Benson <gbenson@redhat.com>
7334
7335 * server.h: Include common-defs.h.
7336 Do not include config.h or build-gnulib-gdbserver/config.h.
7337
7338 2014-07-30 Gary Benson <gbenson@redhat.com>
7339
7340 * hostio-errno.c: Move server.h to top of includes list.
7341 * inferiors.c: Likewise.
7342 * linux-x86-low.c: Likewise.
7343 * notif.c: Include server.h.
7344
7345 2014-07-24 Tom Tromey <tromey@redhat.com>
7346 Gary Benson <gbenson@redhat.com>
7347
7348 * server.h (CORE_ADDR): Now unsigned.
7349
7350 2014-07-16 Pedro Alves <palves@redhat.com>
7351
7352 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
7353
7354 2014-07-15 Pedro Alves <palves@redhat.com>
7355
7356 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
7357 copy.
7358
7359 2014-07-11 Pedro Alves <palves@redhat.com>
7360
7361 * linux-low.c (kill_wait_lwp): New function, based on
7362 kill_one_lwp_callback, but use my_waitpid directly.
7363 (kill_one_lwp_callback, linux_kill): Use it.
7364
7365 2014-06-23 Pedro Alves <palves@redhat.com>
7366
7367 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
7368 before setting DR0..DR3.
7369
7370 2014-06-20 Gary Benson <gbenson@redhat.com>
7371
7372 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
7373 * configure: Regenerated.
7374 * config.in: Likewise.
7375
7376 2014-06-20 Gary Benson <gbenson@redhat.com>
7377
7378 * Makefile.in (SFILES): Update locations for files moved
7379 from common to nat.
7380 (object file files): Reordered.
7381
7382 2014-06-20 Gary Benson <gbenson@redhat.com>
7383
7384 * i386-low.h (i386_dr_low_can_set_addr): Removed.
7385 (i386_dr_low_set_addr): Likewise.
7386 (i386_dr_low_get_addr): Likewise.
7387 (i386_dr_low_can_set_control): Likewise.
7388 (i386_dr_low_set_control): Likewise.
7389 (i386_dr_low_get_control): Likewise.
7390 (i386_dr_low_get_status): Likewise.
7391 (i386_get_debug_register_length): Likewise.
7392 * linux-x86-low.c (i386_dr_low_set_addr):
7393 Changed signature. Made static.
7394 (i386_dr_low_get_addr): Likewise.
7395 (i386_dr_low_set_control): Likewise.
7396 (i386_dr_low_get_control): Likewise.
7397 (i386_dr_low_get_status): Likewise.
7398 (i386_dr_low): New global variable.
7399 * win32-i386-low.c (i386_dr_low_set_addr):
7400 Changed signature. Made static.
7401 (i386_dr_low_get_addr): Likewise.
7402 (i386_dr_low_set_control): Likewise.
7403 (i386_dr_low_get_control): Likewise.
7404 (i386_dr_low_get_status): Likewise.
7405 (i386_dr_low): New global variable.
7406
7407 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
7408
7409 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
7410 * Makefile.in (AR, AR_FLAGS): Define.
7411 * configure: Regenerate.
7412
7413 2014-06-19 Gary Benson <gbenson@redhat.com>
7414
7415 * Makefile.in (i386-dregs.o): New rule.
7416 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
7417 * i386-low.c (target.h): Remove include.
7418 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
7419 (DR_CONTROL_SHIFT): Likewise.
7420 (DR_CONTROL_SIZE): Likewise.
7421 (DR_RW_EXECUTE): Likewise.
7422 (DR_RW_WRITE): Likewise.
7423 (DR_RW_READ): Likewise.
7424 (DR_RW_IORW): Likewise.
7425 (DR_LEN_1): Likewise.
7426 (DR_LEN_2): Likewise.
7427 (DR_LEN_4): Likewise.
7428 (DR_LEN_8): Likewise.
7429 (DR_LOCAL_ENABLE_SHIFT): Likewise.
7430 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
7431 (DR_ENABLE_SIZE): Likewise.
7432 (DR_LOCAL_SLOWDOWN): Likewise.
7433 (DR_GLOBAL_SLOWDOWN): Likewise.
7434 (DR_CONTROL_RESERVED): Likewise.
7435 (I386_DR_CONTROL_MASK): Likewise.
7436 (I386_DR_VACANT): Likewise.
7437 (I386_DR_LOCAL_ENABLE): Likewise.
7438 (I386_DR_GLOBAL_ENABLE): Likewise.
7439 (I386_DR_DISABLE): Likewise.
7440 (I386_DR_SET_RW_LEN): Likewise.
7441 (I386_DR_GET_RW_LEN): Likewise.
7442 (I386_DR_WATCH_HIT): Likewise.
7443 (i386_wp_op_t): Likewise.
7444 (i386_show_dr): Likewise.
7445 (i386_length_and_rw_bits): Likewise.
7446 (i386_insert_aligned_watchpoint): Likewise.
7447 (i386_remove_aligned_watchpoint): Likewise.
7448 (i386_handle_nonaligned_watchpoint): Likewise.
7449 i386_update_inferior_debug_regs(): Likewise.
7450 (i386_dr_insert_watchpoint): Likewise.
7451 (i386_dr_remove_watchpoint): Likewise.
7452 (i386_dr_region_ok_for_watchpoint): Likewise.
7453 (i386_dr_stopped_data_address): Likewise.
7454 (i386_dr_stopped_by_watchpoint): Likewise.
7455
7456 2014-06-19 Gary Benson <gbenson@redhat.com>
7457
7458 * i386-low.c (i386_dr_show): Renamed to
7459 i386_show_dr and made static. All uses updated.
7460 (i386_dr_length_and_rw_bits): Renamed to
7461 i386_length_and_rw_bits and made static.
7462 All uses updated.
7463 (i386_dr_insert_aligned_watchpoint): Renamed to
7464 i386_insert_aligned_watchpoint and made static.
7465 All uses updated.
7466 (i386_dr_remove_aligned_watchpoint): Renamed to
7467 i386_remove_aligned_watchpoint and made static.
7468 All uses updated.
7469 (i386_dr_update_inferior_debug_regs): Renamed to
7470 i386_update_inferior_debug_regs and made static.
7471 All uses updated.
7472
7473 2014-06-18 Gary Benson <gbenson@redhat.com>
7474
7475 * i386-low.h (i386_dr_low_can_set_addr): New macro.
7476 (i386_dr_low_can_set_control): Likewise.
7477 (i386_get_debug_register_length): Likewise.
7478 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
7479 (i386_dr_low_can_set_control): Likewise.
7480 (i386_get_debug_register_length): Likewise.
7481
7482 2014-06-17 Gary Benson <gbenson@redhat.com>
7483
7484 * i386-low.h (i386-dregs.h): New include.
7485 (DR_FIRSTADDR): Now in i386-dregs.h.
7486 (DR_LASTADDR): Likewise.
7487 (DR_NADDR): Likewise.
7488 (DR_STATUS): Likewise.
7489 (DR_CONTROL): Likewise.
7490 (i386_debug_reg_state): Likewise.
7491 (i386_dr_insert_watchpoint): Likewise.
7492 (i386_dr_remove_watchpoint): Likewise.
7493 (i386_dr_region_ok_for_watchpoint): Likewise.
7494 (i386_dr_stopped_data_address): Likewise.
7495 (i386_dr_stopped_by_watchpoint): Likewise.
7496 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
7497
7498 2014-06-18 Gary Benson <gbenson@redhat.com>
7499
7500 * i386-low.h (i386_low_insert_watchpoint): Renamed to
7501 i386_dr_insert_watchpoint.
7502 (i386_low_remove_watchpoint): Renamed to
7503 i386_dr_remove_watchpoint.
7504 (i386_low_region_ok_for_watchpoint): Renamed to
7505 i386_dr_region_ok_for_watchpoint.
7506 (i386_low_stopped_data_address): Renamed to
7507 i386_dr_stopped_data_address.
7508 (i386_low_stopped_by_watchpoint): Renamed to
7509 i386_dr_stopped_by_watchpoint.
7510 * i386-low.c (i386_show_dr): Renamed to
7511 i386_dr_show and made nonstatic. All uses updated.
7512 (i386_length_and_rw_bits): Renamed to
7513 i386_dr_length_and_rw_bits and made nonstatic.
7514 All uses updated.
7515 (i386_insert_aligned_watchpoint): Renamed to
7516 i386_dr_insert_aligned_watchpoint and made nonstatic.
7517 All uses updated.
7518 (i386_remove_aligned_watchpoint): Renamed to
7519 i386_dr_remove_aligned_watchpoint and made nonstatic.
7520 All uses updated.
7521 (i386_update_inferior_debug_regs): Renamed to
7522 i386_dr_update_inferior_debug_regs and made nonstatic.
7523 All uses updated.
7524 (i386_low_insert_watchpoint): Renamed to
7525 i386_dr_insert_watchpoint. All uses updated.
7526 (i386_low_remove_watchpoint): Renamed to
7527 i386_dr_remove_watchpoint. All uses updated.
7528 (i386_low_region_ok_for_watchpoint): Renamed to
7529 i386_dr_region_ok_for_watchpoint. All uses updated.
7530 (i386_low_stopped_data_address): Renamed to
7531 i386_dr_stopped_data_address. All uses updated.
7532 (i386_low_stopped_by_watchpoint): Renamed to
7533 i386_dr_stopped_by_watchpoint. All uses updated.
7534
7535 2014-06-18 Gary Benson <gbenson@redhat.com>
7536
7537 * i386-low.c (i386_dr_low_can_set_addr): New macro.
7538 (i386_dr_low_can_set_control): Likewise.
7539 (i386_insert_aligned_watchpoint): New check.
7540
7541 2014-06-18 Gary Benson <gbenson@redhat.com>
7542
7543 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
7544 Renamed to state.
7545
7546 2014-06-18 Gary Benson <gbenson@redhat.com>
7547
7548 * i386-low.c (i386_length_and_rw_bits): Use internal_error
7549 instead of fatal and error.
7550 (i386_handle_nonaligned_watchpoint): Likewise.
7551
7552 2014-06-18 Gary Benson <gbenson@redhat.com>
7553
7554 * i386-low.c (i386_get_debug_register_length): New macro.
7555 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
7556 (i386_show_dr): Use debug_printf instead of fprintf. Use
7557 phex to format values.
7558
7559 2014-06-18 Gary Benson <gbenson@redhat.com>
7560
7561 * i386-low.h: Comment changes.
7562 * i386-low.c: Likewise.
7563
7564 2014-06-18 Gary Benson <gbenson@redhat.com>
7565
7566 * i386-low.c: Whitespace changes.
7567
7568 2014-06-12 Tom Tromey <tromey@redhat.com>
7569
7570 * utils.c (freeargv): Remove.
7571
7572 2014-06-12 Tom Tromey <tromey@redhat.com>
7573
7574 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
7575 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
7576 (parse_debug_format_options): Likewise.
7577 (gdbserver_usage): Likewise.
7578 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
7579 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
7580 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
7581 against libiberty.
7582 ($(LIBGNU)): Depend on libiberty.
7583 (all-lib): Recurse into all subdirs.
7584 (install-only): Invoke "install" target in subdirs.
7585 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
7586 targets.
7587 * configure: Rebuild.
7588 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
7589 for vasprintf, vsnprintf, or gettimeofday.
7590 * configure.srv: Don't add safe-ctype.o or lbasename.o to
7591 srv_tgtobj.
7592
7593 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7594
7595 * development.sh: Delete.
7596 * Makefile.in (config.status): Adjust dependency on development.sh.
7597 * configure.ac: Adjust development.sh source call.
7598 * configure: Regenerate.
7599
7600 2014-06-02 Pedro Alves <palves@redhat.com>
7601
7602 * ax.c (gdb_free_agent_expr): New function.
7603 * ax.h (gdb_free_agent_expr): New declaration.
7604 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
7605 list.
7606 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
7607 static.
7608 (clear_breakpoint_conditions_and_commands): New function.
7609 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
7610 (clear_breakpoint_conditions_and_commands): New declaration.
7611
7612 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7613
7614 * linux-aarch64-low.c (asm/ptrace.h): Include.
7615
7616 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7617
7618 Fix TLS access for -static -pthread.
7619 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
7620 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
7621 (thread_db_load_search, try_thread_db_load_1): Initialize it.
7622
7623 2014-05-20 Pedro Alves <palves@redhat.com>
7624
7625 * linux-aarch64-low.c (aarch64_insert_point)
7626 (aarch64_remove_point): No longer check whether the type is
7627 supported here. Adjust to new interface.
7628 (the_low_target): Install aarch64_supports_z_point_type as
7629 supports_z_point_type method.
7630 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
7631 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
7632 instead of a Z packet char. Adjust.
7633 (arm_supports_z_point_type): New function.
7634 (arm_insert_point, arm_remove_point): Adjust to new interface.
7635 (the_low_target): Install arm_supports_z_point_type.
7636 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
7637 (cris_insert_point, cris_remove_point): Adjust to new interface.
7638 Don't check whether the type is supported here.
7639 (the_low_target): Install cris_supports_z_point_type.
7640 * linux-low.c (linux_supports_z_point_type): New function.
7641 (linux_insert_point, linux_remove_point): Adjust to new interface.
7642 * linux-low.h (struct linux_target_ops) <insert_point,
7643 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
7644 raw_breakpoint pointer parameter.
7645 <supports_z_point_type>: New method.
7646 * linux-mips-low.c (mips_supports_z_point_type): New function.
7647 (mips_insert_point, mips_remove_point): Adjust to new interface.
7648 Use mips_supports_z_point_type.
7649 (the_low_target): Install mips_supports_z_point_type.
7650 * linux-ppc-low.c (the_low_target): Install NULL as
7651 supports_z_point_type method.
7652 * linux-s390-low.c (the_low_target): Install NULL as
7653 supports_z_point_type method.
7654 * linux-sparc-low.c (the_low_target): Install NULL as
7655 supports_z_point_type method.
7656 * linux-x86-low.c (x86_supports_z_point_type): New function.
7657 (x86_insert_point): Adjust to new insert_point interface. Use
7658 insert_memory_breakpoint. Adjust to new
7659 i386_low_insert_watchpoint interface.
7660 (x86_remove_point): Adjust to remove_point interface. Use
7661 remove_memory_breakpoint. Adjust to new
7662 i386_low_remove_watchpoint interface.
7663 (the_low_target): Install x86_supports_z_point_type.
7664 * lynx-low.c (lynx_target_ops): Install NULL as
7665 supports_z_point_type callback.
7666 * nto-low.c (nto_supports_z_point_type): New.
7667 (nto_insert_point, nto_remove_point): Adjust to new interface.
7668 (nto_target_ops): Install nto_supports_z_point_type.
7669 * mem-break.c: Adjust intro comment.
7670 (struct raw_breakpoint) <raw_type, size>: New fields.
7671 <inserted>: Update comment.
7672 <shlib_disabled>: Delete field.
7673 (enum bkpt_type) <gdb_breakpoint>: Delete value.
7674 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
7675 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
7676 (raw_bkpt_type_to_target_hw_bp_type): New function.
7677 (find_enabled_raw_code_breakpoint_at): New function.
7678 (find_raw_breakpoint_at): New type and size parameters. Use them.
7679 (insert_memory_breakpoint): New function, based off
7680 set_raw_breakpoint_at.
7681 (remove_memory_breakpoint): New function.
7682 (set_raw_breakpoint_at): Reimplement.
7683 (set_breakpoint): New, based on set_breakpoint_at.
7684 (set_breakpoint_at): Reimplement.
7685 (delete_raw_breakpoint): Go through the_target->remove_point
7686 instead of assuming memory breakpoints.
7687 (find_gdb_breakpoint_at): Delete.
7688 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
7689 (find_gdb_breakpoint): New function.
7690 (set_gdb_breakpoint_at): Delete.
7691 (z_type_supported): New function.
7692 (set_gdb_breakpoint_1): New function, loosely based off
7693 set_gdb_breakpoint_at.
7694 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
7695 (delete_gdb_breakpoint_at): Delete.
7696 (delete_gdb_breakpoint_1): New function, loosely based off
7697 delete_gdb_breakpoint_at.
7698 (delete_gdb_breakpoint): New function.
7699 (clear_gdb_breakpoint_conditions): Rename to ...
7700 (clear_breakpoint_conditions): ... this. Don't handle a NULL
7701 breakpoint.
7702 (add_condition_to_breakpoint): Make static.
7703 (add_breakpoint_condition): Take a struct breakpoint pointer
7704 instead of an address. Adjust.
7705 (gdb_condition_true_at_breakpoint): Rename to ...
7706 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
7707 z_type parameter.
7708 (gdb_condition_true_at_breakpoint): Reimplement.
7709 (add_breakpoint_commands): Take a struct breakpoint pointer
7710 instead of an address. Adjust.
7711 (gdb_no_commands_at_breakpoint): Rename to ...
7712 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
7713 parameter. Return true if no breakpoint was found. Change debug
7714 output.
7715 (gdb_no_commands_at_breakpoint): Reimplement.
7716 (run_breakpoint_commands): Rename to ...
7717 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
7718 and change return type to boolean.
7719 (run_breakpoint_commands): New function.
7720 (gdb_breakpoint_here): Also check for Z1 breakpoints.
7721 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
7722 breakpoint. Go through the_target->remove_point instead of
7723 assuming memory breakpoint.
7724 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
7725 software and hardware breakpoints.
7726 (reinsert_raw_breakpoint): Go through the_target->insert_point
7727 instead of assuming memory breakpoint.
7728 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
7729 software and hardware breakpoints.
7730 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
7731 Check both software and hardware breakpoints.
7732 (validate_inserted_breakpoint): Assert the breakpoint is a
7733 software breakpoint. Set the inserted flag to -1 instead of
7734 setting shlib_disabled.
7735 (delete_disabled_breakpoints): Adjust.
7736 (validate_breakpoints): Only validate software breakpoints.
7737 Adjust to inserted flag change.
7738 (check_mem_read, check_mem_write): Skip breakpoint types other
7739 than software breakpoints. Adjust to inserted flag change.
7740 * mem-break.h (enum raw_bkpt_type): New enum.
7741 (raw_breakpoint, struct process_info): Forward declare.
7742 (Z_packet_to_target_hw_bp_type): Delete declaration.
7743 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
7744 (set_gdb_breakpoint, delete_gdb_breakpoint)
7745 (clear_breakpoint_conditions): New declarations.
7746 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
7747 (breakpoint_inserted_here): Update comment.
7748 (add_breakpoint_condition, add_breakpoint_commands): Replace
7749 address parameter with a breakpoint pointer parameter.
7750 (gdb_breakpoint_here): Update comment.
7751 (delete_gdb_breakpoint_at): Delete.
7752 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
7753 * server.c (process_point_options): Take a struct breakpoint
7754 pointer instead of an address. Adjust.
7755 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
7756 delete_gdb_breakpoint.
7757 * spu-low.c (spu_target_ops): Install NULL as
7758 supports_z_point_type method.
7759 * target.h: Include mem-break.h.
7760 (struct target_ops) <prepare_to_access_memory>: Update comment.
7761 <supports_z_point_type>: New field.
7762 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
7763 instead of a char. Also take a raw breakpoint pointer.
7764 * win32-arm-low.c (the_low_target): Install NULL as
7765 supports_z_point_type.
7766 * win32-i386-low.c (i386_supports_z_point_type): New function.
7767 (i386_insert_point, i386_remove_point): Adjust to new interface.
7768 (the_low_target): Install i386_supports_z_point_type.
7769 * win32-low.c (win32_supports_z_point_type): New function.
7770 (win32_insert_point, win32_remove_point): Adjust to new interface.
7771 (win32_target_ops): Install win32_supports_z_point_type.
7772 * win32-low.h (struct win32_target_ops):
7773 <supports_z_point_type>: New method.
7774 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
7775 instead of a char. Also take a raw breakpoint pointer.
7776
7777 2014-05-20 Pedro Alves <palves@redhat.com>
7778
7779 * mem-break.h: Include break-common.h.
7780 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
7781 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
7782 (Z_packet_to_target_hw_bp_type): New declaration.
7783 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
7784 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
7785 (Z_PACKET_ACCESS_WP): Delete macros.
7786 (Z_packet_to_hw_type): Delete function.
7787 * i386-low.h: Don't include break-common.h here.
7788 (Z_packet_to_hw_type): Delete declaration.
7789 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
7790 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
7791 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
7792 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
7793 * linux-aarch64-low.c: Don't include break-common.h here.
7794 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
7795 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
7796 (Z_packet_to_target_hw_bp_type): Delete function.
7797 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
7798 function.
7799 (mips_insert_point, mips_remove_point): Use
7800 Z_packet_to_target_hw_bp_type.
7801
7802 2014-05-20 Pedro Alves <palves@redhat.com>
7803
7804 * linux-aarch64-low.c: Include break-common.h.
7805 (enum target_point_type): Delete.
7806 (Z_packet_to_point_type): Rename to ...
7807 (Z_packet_to_target_hw_bp_type): ... this, and return a
7808 target_hw_bp_type instead.
7809 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
7810 instead of an enum target_point_type.
7811 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
7812 breakpoint type.
7813 (aarch64_dr_state_insert_one_point)
7814 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
7815 (aarch64_handle_aligned_watchpoint)
7816 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
7817 Take an enum target_hw_bp_type instead of an enum
7818 target_point_type.
7819 (aarch64_supports_z_point_type): New function.
7820 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
7821 use Z_packet_to_target_hw_bp_type.
7822
7823 2014-05-20 Joel Brobecker <brobecker@adacore.com>
7824
7825 * configure.ac: Only use -Werror by default when DEVELOPMENT
7826 is true.
7827 * configure: Regenerate.
7828
7829 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7830
7831 Fix gdbserver qGetTLSAddr for x86_64 -m32.
7832 * linux-x86-low.c (X86_64_USER_REGS): New.
7833 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
7834
7835 2014-04-28 Yao Qi <yao@codesourcery.com>
7836
7837 * Makefile.in (i386-avx512.c): Fix the typo of generated file
7838 name.
7839
7840 2014-04-25 Pedro Alves <palves@redhat.com>
7841
7842 PR server/16255
7843 * linux-low.c (linux_attach_fail_reason_string): New function.
7844 (linux_attach_lwp): Delete.
7845 (linux_attach_lwp_1): Rename to ...
7846 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
7847 argument. Remove "initial" parameter. Return int instead of
7848 void. Don't error or warn here.
7849 (linux_attach): Adjust to call linux_attach_lwp. Call error on
7850 failure to attach to the tgid. Call warning when failing to
7851 attach to an lwp.
7852 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
7853 argument. Remove "initial" parameter. Return int instead of
7854 void. Don't error or warn here.
7855 (linux_attach_fail_reason_string): New declaration.
7856 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
7857 interface change. Use linux_attach_fail_reason_string.
7858
7859 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7860 Walfred Tedeschi <walfred.tedeschi@intel.com>
7861
7862 * Makefile.in: Added rules to handle new files
7863 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
7864 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
7865 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
7866 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
7867 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
7868 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
7869 x32-avx512-linux.o.
7870 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
7871 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
7872 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
7873 i386/x32-avx512.xml.
7874 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
7875 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
7876 i386/x32-avx512-linux.xml.
7877 * i387-fp.c (num_avx512_k_registers): New constant for number
7878 of K registers.
7879 (num_avx512_zmmh_low_registers): New constant for number of
7880 lower ZMM registers (0-15).
7881 (num_avx512_zmmh_high_registers): New constant for number of
7882 higher ZMM registers (16-31).
7883 (num_avx512_ymmh_registers): New contant for number of higher
7884 YMM registers (ymm16-31 added by avx521 on x86_64).
7885 (num_avx512_xmm_registers): New constant for number of higher
7886 XMM registers (xmm16-31 added by AVX512 on x86_64).
7887 (struct i387_xsave): Add space for AVX512 registers.
7888 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
7889 Add code to handle AVX512 registers.
7890 (i387_xsave_to_cache): Add code to handle AVX512 registers.
7891 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
7892 prototypei from generated file.
7893 (tdesc_amd64_avx512_linux): Likewise.
7894 (init_registers_x32_avx512_linux): Likewise.
7895 (tdesc_x32_avx512_linux): Likewise.
7896 (init_registers_i386_avx512_linux): Likewise.
7897 (tdesc_i386_avx512_linux): Likewise.
7898 (x86_64_regmap): Add AVX512 registers.
7899 (x86_linux_read_description): Add code to handle AVX512 XSTATE
7900 mask.
7901 (initialize_low_arch): Add code to initialize AVX512 registers.
7902
7903 2014-04-23 Pedro Alves <palves@redhat.com>
7904
7905 * mem-break.c (find_gdb_breakpoint_at): Make static.
7906 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
7907
7908 2014-04-23 Pedro Alves <palves@redhat.com>
7909
7910 * i386-low.c: Don't include break-common.h here.
7911 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
7912 prototype to take target_hw_bp_type as argument instead of a Z
7913 packet char.
7914 * i386-low.h: Include break-common.h here.
7915 (Z_packet_to_hw_type): Declare.
7916 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
7917 prototypes.
7918 * linux-x86-low.c (x86_insert_point): Convert the packet number to
7919 a target_hw_bp_type before calling i386_low_insert_watchpoint.
7920 (x86_remove_point): Convert the packet number to a
7921 target_hw_bp_type before calling i386_low_remove_watchpoint.
7922 * win32-i386-low.c (i386_insert_point): Convert the packet number
7923 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
7924 (i386_remove_point): Convert the packet number to a
7925 target_hw_bp_type before calling i386_low_remove_watchpoint.
7926
7927 2014-04-23 Pedro Alves <palves@redhat.com>
7928
7929 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
7930
7931 2014-04-10 Pedro Alves <palves@redhat.com>
7932
7933 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7934 Check if the condition or command is NULL before checking if the
7935 breakpoint is known. On success, return true.
7936 * mem-break.h (add_breakpoint_condition): Document return.
7937 (add_breakpoint_commands): Add describing comment.
7938 * server.c (skip_to_semicolon): New function.
7939 (process_point_options): Use it.
7940
7941 2014-04-09 Pedro Alves <palves@redhat.com>
7942
7943 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
7944 to lwpid_of.
7945
7946 2014-02-27 Pedro Alves <palves@redhat.com>
7947
7948 PR 12702
7949 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
7950 macros.
7951 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
7952 output.
7953 (last_thread_of_process_p): Take a PID argument instead of a
7954 thread pointer.
7955 (linux_wait_for_lwp): Delete.
7956 (num_lwps, check_zombie_leaders, not_stopped_callback): New
7957 functions.
7958 (linux_low_filter_event): New function, party factored out from
7959 linux_wait_for_event.
7960 (linux_wait_for_event): Rename to ...
7961 (linux_wait_for_event_filtered): ... this. Add new filter ptid
7962 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
7963 sigsuspend. Check for zombie leaders.
7964 (linux_wait_for_event): Reimplement as wrapper around
7965 linux_wait_for_event_filtered.
7966 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
7967 a normal or signal exit is seen, it's the whole process exiting.
7968 (wait_for_sigstop): No longer a for_each_inferior callback.
7969 Rewrite on top of linux_wait_for_event_filtered.
7970 (stop_all_lwps): Call wait_for_sigstop directly.
7971 * server.c (resume, handle_target_event): Handle
7972 TARGET_WAITKIND_NO_RESUMED.
7973
7974 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7975
7976 * win32-low.c (psapi_get_dll_name,
7977 * win32_CreateToolhelp32Snapshot): Delete.
7978 (win32_CreateToolhelp32Snapshot, win32_Module32First)
7979 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
7980 Delete.
7981 (handle_load_dll): Add function description.
7982 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
7983
7984 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7985
7986 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
7987 Add comment.
7988 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
7989 base address when calling win32_add_one_solib.
7990 (handle_load_dll): Delete local variable load_addr.
7991 Remove 0x1000 offset applied to DLL base address when calling
7992 win32_add_one_solib.
7993 (handle_unload_dll): Add comment.
7994
7995 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7996
7997 * win32-low.c (win32_add_all_dlls): Renames
7998 win32_ensure_ntdll_loaded. Rewrite function documentation.
7999 Adjust implementation to always load all DLLs.
8000 Add 0x1000 offset to DLL base address when calling
8001 win32_add_one_solib.
8002 (child_initialization_done): New static global.
8003 (do_initial_child_stuff): Set child_initialization_done to
8004 zero during child initialization, and 1 after. Replace call
8005 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
8006 Add comment.
8007 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
8008 (handle_unload_dll): Add function documentation.
8009 (get_child_debug_event): Ignore load and unload DLL events
8010 during child initialization.
8011
8012 2014-02-20 Doug Evans <dje@google.com>
8013
8014 Remove global all_lwps.
8015 * inferiors.h (ptid_of): Move here from linux-low.h.
8016 (pid_of, lwpid_of): Ditto.
8017 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
8018 parameter is a struct thread_info * now.
8019 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
8020 directly. Pass &all_threads to find_inferior instead of &all_lwps.
8021 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
8022 directly.
8023 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
8024 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
8025 * linux-arm-low.c (update_registers_callback): Update, "entry"
8026 parameter is a struct thread_info * now.
8027 Fetch lwpid from current_inferior directly.
8028 (arm_insert_point): Pass &all_threads to find_inferior instead of
8029 &all_lwps.
8030 (arm_remove_point): Ditto.
8031 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
8032 (arm_prepare_to_resume): Fetch pid from thread.
8033 (arm_read_description): Fetch lwpid from current_inferior directly.
8034 * linux-low.c (all_lwps): Delete.
8035 (delete_lwp): Delete call to remove_inferior.
8036 (handle_extended_wait): Fetch lwpid from thread.
8037 (add_lwp): Don't set lwp->entry.id. Remove call to
8038 add_inferior_to_list.
8039 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
8040 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
8041 (kill_one_lwp_callback): Ditto.
8042 (linux_kill): Don't dereference NULL pointer.
8043 Fetch ptid,lwpid from thread.
8044 (get_detach_signal): Fetch ptid from thread.
8045 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
8046 Simplify call to regcache_invalidate_thread.
8047 (delete_lwp_callback): Update, "entry" parameter is a
8048 struct thread_info * now. Fetch pid from thread.
8049 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
8050 (status_pending_p_callback): Update, "entry" parameter is a
8051 struct thread_info * now. Fetch ptid from thread.
8052 (find_lwp_pid): Update, "entry" parameter is a
8053 struct thread_info * now.
8054 (linux_wait_for_lwp): Fetch pid from thread.
8055 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
8056 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
8057 (enqueue_one_deferred_signal): Fetch lwpid from thread.
8058 (dequeue_one_deferred_signal): Ditto.
8059 (cancel_breakpoint): Fetch ptid from current_inferior.
8060 (linux_wait_for_event): Pass &all_threads to find_inferior,
8061 not &all_lwps. Fetch ptid, lwpid from thread.
8062 (count_events_callback): Update, "entry" parameter is a
8063 struct thread_info * now.
8064 (select_singlestep_lwp_callback): Ditto.
8065 (select_event_lwp_callback): Ditto.
8066 (cancel_breakpoints_callback): Ditto.
8067 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
8068 not &all_lwps.
8069 (select_event_lwp): Ditto. Fetch ptid from event_thread.
8070 (unsuspend_one_lwp): Update, "entry" parameter is a
8071 struct thread_info * now.
8072 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
8073 not &all_lwps.
8074 (linux_stabilize_threads): Ditto. And for for_each_inferior.
8075 Fetch lwpid from thread, not lwp.
8076 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
8077 Pass &all_threads to find_inferior, not &all_lwps.
8078 (send_sigstop): Fetch lwpid from thread, not lwp.
8079 (send_sigstop_callback): Update, "entry" parameter is a
8080 struct thread_info * now.
8081 (suspend_and_send_sigstop_callback): Ditto.
8082 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
8083 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
8084 struct thread_info * now.
8085 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
8086 from thread, lwp.
8087 (lwp_running): Update, "entry" parameter is a
8088 struct thread_info * now.
8089 (stop_all_lwps): Fetch ptid from thread.
8090 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
8091 (linux_resume_one_lwp): Fetch lwpid from thread.
8092 (linux_set_resume_request): Update, "entry" parameter is a
8093 struct thread_info * now. Fetch pid, lwpid from thread.
8094 (resume_status_pending_p): Update, "entry" parameter is a
8095 struct thread_info * now.
8096 (need_step_over_p): Ditto. Fetch lwpid from thread.
8097 (start_step_over): Fetch lwpid from thread.
8098 (linux_resume_one_thread): Update, "entry" parameter is a
8099 struct thread_info * now. Fetch lwpid from thread.
8100 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
8101 (proceed_one_lwp): Update, "entry" parameter is a
8102 struct thread_info * now. Fetch lwpid from thread.
8103 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
8104 struct thread_info * now.
8105 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
8106 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
8107 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
8108 directly.
8109 (regsets_store_inferior_registers): Ditto.
8110 (fetch_register, store_register): Ditto.
8111 (linux_read_memory, linux_write_memory): Ditto.
8112 (linux_request_interrupt): Ditto.
8113 (linux_read_auxv): Ditto.
8114 (linux_xfer_siginfo): Ditto.
8115 (linux_qxfer_spu): Ditto.
8116 (linux_qxfer_libraries_svr4): Ditto.
8117 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
8118 moved to inferiors.h.
8119 (get_lwp): Delete.
8120 (get_thread_lwp): Update.
8121 (struct lwp_info): Delete member "entry". Simplify comment for
8122 member "thread".
8123 (all_lwps): Delete.
8124 * linux-mips-low.c (mips_read_description): Fetch lwpid from
8125 current_inferior directly.
8126 (update_watch_registers_callback): Update, "entry" parameter is a
8127 struct thread_info * now. Fetch pid from thread.
8128 (mips_linux_prepare_to_resume): Fetch ptid from thread.
8129 (mips_insert_point): Fetch lwpid from current_inferior.
8130 Pass &all_threads to find_inferior, not &all_lwps.
8131 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
8132 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
8133 directly.
8134 (mips_stopped_data_address): Ditto.
8135 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
8136 directly.
8137 * linux-tile-low.c (tile_arch_setup): Ditto.
8138 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
8139 (update_debug_registers_callback): Update, "entry" parameter is a
8140 struct thread_info * now. Fetch pid from thread.
8141 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
8142 Pass &all_threads to find_inferior, not &all_lwps.
8143 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
8144 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
8145 Pass &all_threads to find_inferior, not &all_lwps.
8146 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
8147 (i386_dr_low_get_status): Ditto.
8148 (x86_linux_prepare_to_resume): Fetch ptid from thread.
8149 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
8150 (x86_linux_read_description): Ditto.
8151 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
8152
8153 2014-02-20 Doug Evans <dje@google.com>
8154
8155 * inferiors.c (get_first_inferior): Fix buglet.
8156
8157 2014-02-19 Doug Evans <dje@google.com>
8158
8159 * gdbthread.h (add_thread): Change result type to struct thread_info *.
8160 * inferiors.c (add_thread): Change result type to struct thread_info *.
8161 All callers updated.
8162 (add_lwp): Call add_thread here instead of in callers.
8163 All callers updated.
8164 * linux-low.h (get_lwp_thread): Rewrite.
8165 (struct lwp_info): New member "thread".
8166
8167 2014-02-19 Doug Evans <dje@google.com>
8168
8169 * linux-low.c (add_lwp): Change result to struct lwp_info *.
8170 All callers updated.
8171
8172 2014-02-19 Doug Evans <dje@google.com>
8173
8174 * inferiors.c (add_thread): Fix whitespace.
8175
8176 2014-02-19 Doug Evans <dje@google.com>
8177
8178 * dll.c (clear_dlls): Replace accessing list implemention details
8179 with API function.
8180 * gdbthread.h (get_first_thread): Declare.
8181 * inferiors.c (for_each_inferior_with_data): New function.
8182 (get_first_thread): New function.
8183 (find_thread_ptid): Simplify.
8184 (get_first_inferior): New function.
8185 (clear_list): Delete.
8186 (one_inferior_p): New function.
8187 (clear_inferior_list): New function.
8188 (clear_inferiors): Update.
8189 * inferiors.h (for_each_inferior_with_data): Declare.
8190 (clear_inferior_list): Declare.
8191 (one_inferior_p): Declare.
8192 (get_first_inferior): Declare.
8193 * linux-low.c (linux_wait_for_event): Replace accessing list
8194 implemention details with API function.
8195 * server.c (target_running): Ditto.
8196 (accumulate_file_name_length): New function.
8197 (emit_dll_description): New function.
8198 (handle_qxfer_libraries): Replace accessing list implemention
8199 details with API function.
8200 (handle_qxfer_threads_worker): New function.
8201 (handle_qxfer_threads_proper): Replace accessing list implemention
8202 details with API function.
8203 (handle_query): Ditto.
8204 (visit_actioned_threads_callback_ftype): New typedef.
8205 (visit_actioned_threads_data): New struct.
8206 (visit_actioned_threads): Rewrite to be find_inferior callback.
8207 (resume): Call find_inferior.
8208 (handle_status): Replace accessing list implemention
8209 details with API function.
8210 (process_serial_event): Replace accessing list implemention details
8211 with API function.
8212 * target.c (set_desired_inferior): Replace accessing list implemention
8213 details with API function.
8214 * tracepoint.c (same_process_p): New function.
8215 (gdb_agent_about_to_close): Replace accessing list implemention
8216 details with API function.
8217 * win32-low.c (child_delete_thread): Replace accessing list
8218 implemention details with API function.
8219 (match_dll_by_basename): New function.
8220 (dll_is_loaded_by_basename): New function.
8221 (win32_ensure_ntdll_loaded): Replace accessing list implemention
8222 details call to dll_is_loaded_by_basename.
8223
8224 2014-02-19 Doug Evans <dje@google.com>
8225
8226 * dll.h (struct dll_info): Add comment.
8227 * gdbthread.h (struct thread_info): Add comment.
8228 (current_ptid): Simplify.
8229 * inferiors.c (add_process): Update.
8230 (remove_process): Update.
8231 * inferiors.h (struct process_info): Rename member "head" to "entry".
8232 * linux-low.c (delete_lwp): Update.
8233 (add_lwp): Update.
8234 (last_thread_of_process_p): Update.
8235 (kill_one_lwp_callback, linux_kill): Update.
8236 (status_pending_p_callback): Update.
8237 (wait_for_sigstop): Update. Simplify read of ptid.
8238 (start_step_over): Update.
8239 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
8240 (get_lwp_thread): Update.
8241 (struct lwp_info): Rename member "head" to "entry".
8242 * regcache.h (inferior_list_entry): Delete.
8243 * server.c (kill_inferior_callback): Update.
8244 (detach_or_kill_inferior_callback): Update.
8245 (print_started_pid): Update.
8246 (print_attached_pid): Update.
8247 (process_serial_event): Simplify read of ptid.
8248 * thread-db.c (thread_db_create_event): Update.
8249 (thread_db_get_tls_address): Update.
8250 * win32-low.c (current_inferior_ptid): Simplify.
8251
8252 2014-02-19 Tom Tromey <tromey@redhat.com>
8253
8254 * target.h (struct target_ops) <supports_btrace>: Add target_ops
8255 argument.
8256 (target_supports_btrace): Update.
8257
8258 2014-02-14 Yao Qi <yao@codesourcery.com>
8259
8260 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
8261 (rsp-low-ipa.o): New target.
8262
8263 2014-02-12 Tom Tromey <tromey@redhat.com>
8264
8265 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
8266 convert_ascii_to_int.
8267 * regcache.c (registers_to_string): Likewise.
8268 * remote-utils.c (decode_M_packet): Likewise.
8269 * server.c (process_serial_event): Likewise.
8270
8271 2014-02-12 Tom Tromey <tromey@redhat.com>
8272
8273 * server.c (handle_query, handle_v_run): Use hex2bin, not
8274 unhexify.
8275 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
8276
8277 2014-02-12 Tom Tromey <tromey@redhat.com>
8278
8279 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
8280 convert_int_to_ascii.
8281 * regcache.c (registers_to_string, collect_register_as_string):
8282 Likewise.
8283 * remote-utils.c (look_up_one_symbol, relocate_instruction):
8284 Likewise.
8285 * server.c (process_serial_event): Likewise.
8286 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
8287 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
8288
8289 2014-02-12 Tom Tromey <tromey@redhat.com>
8290
8291 * remote-utils.c (look_up_one_symbol, monitor_output): Use
8292 bin2hex, not hexify.
8293 * tracepoint.c (cmd_qtstatus): Likewise.
8294
8295 2014-02-12 Tom Tromey <tromey@redhat.com>
8296
8297 * remote-utils.c (monitor_output): Pass explicit length to
8298 hexify.
8299
8300 2014-02-12 Tom Tromey <tromey@redhat.com>
8301
8302 * tracepoint.c: Include rsp-low.h.
8303 * server.c: Include rsp-low.h.
8304 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
8305 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
8306 declare.
8307 * remote-utils.c: Include rsp-low.h.
8308 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
8309 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
8310 (convert_int_to_ascii, convert_ascii_to_int): Move to
8311 common/rsp-low.c.
8312 * regcache.c: Include rsp-low.h.
8313 * ax.c: Include rsp-low.h.
8314 * Makefile.in (SFILES): Add common/rsp-low.c.
8315 (OBS): Add rsp-low.o.
8316 (rsp-low.o): New target.
8317
8318 2014-02-12 Tom Tromey <tromey@redhat.com>
8319
8320 * utils.h (pulongest, plongest, phex_nz): Don't declare.
8321 Include print-utils.h.
8322 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8323 (plongest, thirty_two, phex_nz): Remove.
8324 * Makefile.in (SFILES): Add common/print-utils.c.
8325 (OBS): Add print-utils.o.
8326 (print-utils-ipa.o): New target.
8327 (print-utils.o): New target.
8328 (IPA_OBJS): Add print-utils-ipa.o.
8329
8330 2014-02-06 Tom Tromey <tromey@redhat.com>
8331
8332 * Makefile.in (SFILES): Fix indentation.
8333
8334 2014-02-05 Doug Evans <dje@google.com>
8335
8336 * linux-low.c (linux_wait_for_event): Improve comment.
8337 (linux_wait_1): Keep current_inferior in sync with event_child.
8338
8339 2014-01-22 Doug Evans <dje@google.com>
8340
8341 * gdbthread.h (gdb_id_to_thread): Delete, unused.
8342
8343 2014-01-22 Doug Evans <dje@google.com>
8344
8345 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
8346 * configure: Regenerate.
8347 * config.in: Regenerate.
8348 * Makefile.in (SFILES): Add debug.c.
8349 (OBS): Add debug.o.
8350 * debug.c: New file.
8351 * debug.h: New file.
8352 * linux-aarch64-low.c (*): Update all debugging printfs to use
8353 debug_printf instead of fprintf.
8354 * linux-arm-low.c (*): Ditto.
8355 * linux-cris-low.c (*): Ditto.
8356 * linux-crisv32-low.c (*): Ditto.
8357 * linux-m32r-low.c (*): Ditto.
8358 * linux-sparc-low.c (*): Ditto.
8359 * linux-x86.c (*): Ditto.
8360 * linux-low.c (*): Ditto.
8361 (linux_wait_1): Add calls to debug_enter, debug_exit.
8362 (linux_wait): Remove redundant debugging printf.
8363 (stop_all_lwps): Add calls to debug_enter, debug_exit.
8364 (linux_resume, unstop_all_lwps): Ditto.
8365 * mem-break.c (*): Update all debugging printfs to use
8366 debug_printf instead of fprintf.
8367 * remote-utils.c (*): Ditto.
8368 * thread-db.c (*): Ditto.
8369 * server.c #include <ctype.h>, "gdb_vecs.h".
8370 (debug_threads): Moved to debug.c.
8371 (*): Update all debugging printfs to use debug_printf instead of
8372 fprintf.
8373 (start_inferior): Replace call to fflush with call to debug_flush.
8374 (monitor_show_help): Mention set debug-format.
8375 (parse_debug_format_options): New function.
8376 (handle_monitor_command): Handle "monitor set debug-format".
8377 (gdbserver_usage): Mention --debug-format.
8378 (main): Parse --debug-format.
8379 * server.h (debug_threads): Declaration moved to debug.h.
8380 #include "debug.h".
8381 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
8382 trace_debug_1 that uses debug_printf.
8383 (tracepoint_look_up_symbols): Update all debugging printfs to use
8384 debug_printf instead of fprintf.
8385
8386 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8387
8388 * linux-xtensa-low.c: Include asm/ptrace.h instead of
8389 sys/ptrace.h.
8390
8391 2014-01-17 Pedro Alves <palves@redhat.com>
8392
8393 PR build/16445
8394 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
8395 defined after including gdb_proc_service.h.
8396
8397 2014-01-16 Doug Evans <dje@google.com>
8398
8399 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
8400 (match_dll): Use it.
8401
8402 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8403
8404 * target.h (target_ops) <read_btrace>: Change parameters and
8405 return type to allow error reporting.
8406 * server.c (handle_qxfer_btrace): Support delta reads. Pass
8407 trace reading errors on.
8408 * linux-low.c (linux_low_read_btrace): Pass trace reading
8409 errors on.
8410 (linux_low_disable_btrace): New.
8411
8412 2014-01-15 Doug Evans <dje@google.com>
8413
8414 * inferiors.c (thread_id_to_gdb_id): Delete.
8415 * inferiors.h (thread_id_to_gdb_id): Delete.
8416
8417 2014-01-13 Eli Zaretskii <eliz@gnu.org>
8418
8419 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
8420 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
8421 versions.
8422
8423 2014-01-08 Pedro Alves <palves@redhat.com>
8424
8425 * server.c (handle_status): Don't discard previous queued stop
8426 replies or thread's pending status here.
8427 (main) <disconnection>: Do it here instead.
8428
8429 2014-01-08 Pedro Alves <palves@redhat.com>
8430
8431 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
8432 * server.c (visit_actioned_threads, handle_pending_status): New
8433 function.
8434 (handle_v_cont): Factor out parts to ...
8435 (resume): ... this new function. If in all-stop, and a thread
8436 being resumed has a pending status, report it without actually
8437 resuming.
8438 (myresume): Adjust to use the new 'resume' function.
8439 (clear_pending_status_callback, set_pending_status_callback)
8440 (find_status_pending_thread_callback): New functions.
8441 (handle_status): Handle the case of multiple threads having
8442 interesting statuses to report. Report threads' real last signal
8443 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
8444 with an interesting thread to report the status for, instead of
8445 always reporting the status of the first thread.
8446
8447 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8448
8449 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
8450 * gdbreplay.c (gdbreplay_version): Likewise.
8451
8452 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
8453
8454 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
8455 iov.iov_len with the real length in use.
8456
8457 2013-12-13 Joel Brobecker <brobecker@adacore.com>
8458
8459 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
8460 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
8461 for all targets that use win32-low.c.
8462 * win32-low.c (win32_ensure_ntdll_loaded): New function.
8463 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
8464
8465 2013-12-13 Pedro Alves <palves@redhat.com>
8466
8467 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
8468 if equal to TARGET_WAITKIND_LOADED.
8469 * win32-low.c (cached_status): New static global.
8470 (win32_wait): Add declaration.
8471 (do_initial_child_stuff): Flush all initial pending debug events
8472 up to the initial breakpoint.
8473 (win32_wait): If CACHED_STATUS was set, return that instead
8474 of doing a real wait. Remove the code resuming the execution
8475 of the inferior after receiving a TARGET_WAITKIND_LOADED event
8476 during the initial phase. Also remove the code changing
8477 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
8478 TARGET_WAITKIND_STOPPED.
8479
8480 2013-12-11 Yao Qi <yao@codesourcery.com>
8481
8482 * notif.c (handle_notif_ack): Return 0 if no notification
8483 matches.
8484
8485 2013-11-20 Doug Evans <dje@google.com>
8486
8487 * linux-low.c (linux_set_resume_request): Fix comment.
8488
8489 2013-11-20 Doug Evans <dje@google.com>
8490
8491 * linux-low.c (resume_status_pending_p): Tweak comment.
8492
8493 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
8494
8495 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
8496 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
8497 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
8498 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
8499 (srv_amd64_regobj): Add amd64-mpx.o.
8500 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
8501 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
8502 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
8503 * i387-fp.c (num_pl_bnd_register) Added constant.
8504 (num_pl_bnd_cfg_registers) Added constant.
8505 (struct i387_xsave) Added reserved area and MPX fields.
8506 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
8507 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
8508 function.
8509 (tdesc_i386_mpx_linux): Add MPX amd64 target.
8510 (init_registers_amd64_mpx_linux): Declare new function.
8511 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
8512 (x86_64_regmap): Add MPX registers.
8513 (x86_linux_read_description): Add MPX case.
8514 (initialize_low_arch): Initialize MPX targets.
8515
8516 2013-11-18 Tom Tromey <tromey@redhat.com>
8517
8518 * configure: Rebuild.
8519 * configure.ac: Don't check for stdlib.h.
8520 * gdbreplay.c: Unconditionally include stdlib.h.
8521
8522 2013-11-18 Tom Tromey <tromey@redhat.com>
8523
8524 * config.in: Rebuild.
8525 * configure: Rebuild.
8526 * configure.ac: Don't use AC_HEADER_DIRENT.
8527
8528 2013-11-18 Tom Tromey <tromey@redhat.com>
8529
8530 * server.h: Don't check HAVE_STRING_H.
8531 * gdbreplay.c: Don't check HAVE_STRING_H.
8532 * configure: Rebuild.
8533
8534 2013-11-18 Tom Tromey <tromey@redhat.com>
8535
8536 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
8537 LIBGNU.
8538
8539 2013-11-08 Tom Tromey <tromey@redhat.com>
8540
8541 * configure, config.in: Rebuild.
8542 * configure.ac: Remove unused configury.
8543
8544 2013-11-08 Tom Tromey <tromey@redhat.com>
8545
8546 * acinclude.m4: Include common.m4, codeset.m4.
8547 * configure, config.in: Rebuild.
8548 * configure.ac: Use GDB_AC_COMMON.
8549
8550 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
8551
8552 * linux-s390-low.c (HWCAP_S390_TE): New define.
8553 (s390_arch_setup): Consider the TE field in the HWCAP for
8554 determining 'have_regset_tdb'.
8555
8556 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
8557
8558 PR gdb/16014
8559 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
8560 call to sizeof.
8561
8562 2013-10-02 Pedro Alves <palves@redhat.com>
8563
8564 * server.c (process_serial_event): Don't output "GDBserver
8565 exiting" if GDB is connected through stdio.
8566 * target.c (mywait): Likewise, be silent if GDB is connected
8567 through stdio.
8568
8569 2013-10-01 Joel Brobecker <brobecker@adacore.com>
8570
8571 * lynx-low.c (lynx_add_threads_after_attach): New function.
8572 (lynx_attach): Remove call to add_thread. Add call to
8573 lynx_add_threads_after_attach instead.
8574
8575 2013-09-28 Mike Frysinger <vapier@gentoo.org>
8576
8577 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
8578 * config.in, configure: Regenerated.
8579
8580 2013-09-18 Yao Qi <yao@codesourcery.com>
8581
8582 PR server/15959
8583 * server.c (start_inferior): Clear 'resume_info'.
8584
8585 2013-09-16 Jiong Wang <jiwang@tilera.com>
8586
8587 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
8588 for each register.
8589
8590 2013-09-16 Jiong Wang <jiwang@tilera.com>
8591
8592 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
8593 linux-tile-low.o to srv_tgtobj.
8594
8595 2013-09-16 Will Newton <will.newton@linaro.org>
8596
8597 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
8598 out regs.
8599
8600 2013-09-06 Pedro Alves <palves@redhat.com>
8601
8602 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
8603 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
8604 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
8605 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
8606 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
8607 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
8608
8609 2013-09-06 Pedro Alves <palves@redhat.com>
8610
8611 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
8612 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
8613
8614 2013-09-06 Pedro Alves <palves@redhat.com>
8615
8616 * linux-amd64-ipa.c: Include tracepoint.h.
8617 * linux-i386-ipa.c: Include tracepoint.h.
8618
8619 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
8620
8621 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
8622 (ps_get_thread_area): New function.
8623
8624 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
8625
8626 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
8627 (initialize_low_arch): Call init_registers_crisv32 rather than
8628 init_register_crisv32.
8629
8630 2013-09-05 Pedro Alves <palves@redhat.com>
8631
8632 * server.h (handle_vFile, hostio_last_error_from_errno): Move
8633 to ...
8634 * hostio.h: ... this new file.
8635 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
8636 win32-low.c: Include hostio.h.
8637
8638 2013-09-05 Pedro Alves <palves@redhat.com>
8639
8640 * server.h (gdb_client_data, handler_func, callback_handler_func)
8641 (delete_file_handler, add_file_handler, append_callback_event)
8642 (delete_callback_event, start_event_loop, initialize_event_loop):
8643 Move to event-loop.h and include it.
8644 * event-loop.h: New file.
8645
8646 2013-09-05 Pedro Alves <palves@redhat.com>
8647
8648 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
8649 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
8650 (loaded_dll, unloaded_dll): Move to ...
8651 * dll.h: ... this new file.
8652 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
8653
8654 2013-09-05 Pedro Alves <palves@redhat.com>
8655
8656 * server.h (current_process, get_thread_process, all_processes)
8657 (add_inferior_to_list, for_each_inferior, current_inferior)
8658 (remove_inferior, add_process, remove_process, find_process_pid)
8659 (have_started_inferiors_p, have_attached_inferiors_p)
8660 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
8661 (clear_inferiors, find_inferior, find_inferior_id)
8662 (inferior_target_data, set_inferior_target_data)
8663 (inferior_regcache_data, set_inferior_regcache_data): Move to
8664 inferiors.h, and include it.
8665 * inferiors.h: New file.
8666
8667 2013-09-05 Pedro Alves <palves@redhat.com>
8668
8669 * server.h (struct emit_ops, current_insn_ptr, emit_error):
8670 Move ...
8671 * ax.h: ... here.
8672
8673 2013-09-05 Pedro Alves <palves@redhat.com>
8674
8675 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
8676 tracepoint.h.
8677 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
8678 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
8679 (handle_tracepoint_general_set, handle_tracepoint_query)
8680 (tracepoint_finished_step, tracepoint_was_hit)
8681 (release_while_stepping_state_list, current_traceframe)
8682 (in_readonly_region, traceframe_read_mem)
8683 (fetch_traceframe_registers, traceframe_read_sdata)
8684 (traceframe_read_info, struct fast_tpoint_collect_status)
8685 (fast_tracepoint_collecting, force_unlock_trace_buffer)
8686 (handle_tracepoit_bkpts, initialize_low_tracepoint)
8687 (supply_fast_tracepoint_registers)
8688 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
8689 (ipa_tdesc, claim_trampoline_space)
8690 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
8691 (agent_mem_read, agent_get_trace_state_variable_value)
8692 (agent_set_trace_state_variable_value, agent_tsv_read)
8693 (agent_mem_read_string, get_raw_reg_func_addr)
8694 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
8695 * tracepoint.h: ... this new file.
8696
8697 2013-09-05 Pedro Alves <palves@redhat.com>
8698
8699 * server.h (perror_with_name, error, fatal, warning, paddress)
8700 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
8701 include it.
8702 * utils.h: New file.
8703
8704 2013-09-05 Pedro Alves <palves@redhat.com>
8705
8706 * server.h (remote_debug, noack_mode, transport_is_reliable)
8707 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
8708 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
8709 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
8710 (write_enn, initialize_async_io, enable_async_io)
8711 (disable_async_io, check_remote_input_interrupt_request)
8712 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
8713 (dead_thread_notify, prepare_resume_reply)
8714 (decode_address_to_semicolon, decode_address, decode_m_packet)
8715 (decode_M_packet, decode_X_packet, decode_xfer_write)
8716 (decode_search_memory_packet, unhexify, hexify)
8717 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
8718 (look_up_one_symbol, relocate_instruction)
8719 (monitor_output): Move to remote-utils.h, and include it.
8720 * remote-utils.h: New file.
8721
8722 2013-09-05 Pedro Alves <palves@redhat.com>
8723
8724 * server.h (_): Delete.
8725
8726 2013-09-02 Pedro Alves <palves@redhat.com>
8727
8728 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
8729 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
8730 allocated.
8731 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
8732
8733 2013-09-02 Pierre Muller <muller@sourceware.org>
8734
8735 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
8736 or WriteProcessMemory complete successfully and handle
8737 ERROR_PARTIAL_COPY error.
8738
8739 2013-09-02 Pedro Alves <palves@redhat.com>
8740
8741 * server.c (gdb_read_memory): Return -1 on traceframe memory read
8742 error instead of EIO.
8743
8744 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8745
8746 PR server/15604
8747 * linux-low.c: Include filestuff.h.
8748 (linux_create_inferior) <pid == 0>: Call close_most_fds.
8749 * lynx-low.c: Include filestuff.h.
8750 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
8751 * server.c: Include filestuff.h.
8752 (main): Call notice_open_fds.
8753 * spu-low.c: Include filestuff.h.
8754 (spu_create_inferior) <pid == 0>: Call close_most_fds.
8755
8756 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
8757
8758 * Makefile.in: Explain why ../target and ../nat are not
8759 listed as include file search paths.
8760 (linux-waitpid.o): New object file rule.
8761 * configure.srv (srv_native_linux_obj): New variable.
8762 Replace all occurrences of linux native object files with
8763 $srv_native_linux_obj.
8764 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
8765 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
8766 (linux_enable_event_reporting): Remove declaration.
8767 (my_waitpid): Moved to common/linux-waitpid.c.
8768 (linux_wait_for_event): Pass ptid when calling
8769 linux_enable_event_reporting.
8770 (linux_supports_tracefork_flag): Remove.
8771 (linux_enable_event_reporting): Likewise.
8772 (linux_tracefork_grandchild): Remove.
8773 (STACK_SIZE): Moved to common/linux-ptrace.c.
8774 (linux_tracefork_child): Remove.
8775 (linux_test_for_tracefork): Remove.
8776 (linux_look_up_symbols): Call linux_supports_traceclone.
8777 (initialize_low): Remove call to linux_test_for_tracefork.
8778 * linux-low.h (PTRACE_TYPE_ARG3): Move to
8779 common/linux-ptrace.h.
8780 (PTRACE_TYPE_ARG4): Likewise.
8781 Include linux-ptrace.h.
8782
8783 2013-08-21 Pedro Alves <palves@redhat.com>
8784
8785 * config.in: Renegerate.
8786
8787 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
8788
8789 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
8790 (SFILES): Remove $(srcdir)/common/target-common.c and
8791 add $(srcdir)/target/waitstatus.c.
8792 (OBS): Remove target-common.o and add waitstatus.o.
8793 (server_h): Remove $(srcdir)/../common/target-common.h and
8794 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
8795 and $(srcdir)/../target/waitstatus.h.
8796 (target-common.o): Remove.
8797 (waitstatus.o): New target object file.
8798 * target.h: Do not include target-common.h and
8799 include target/resume.h, target/wait.h and
8800 target/waitstatus.h.
8801
8802 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
8803
8804 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
8805 to PTRACE_TYPE_ARG3.
8806 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
8807 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
8808 PTRACE_TYPE_ARG4.
8809 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
8810 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
8811
8812 2013-07-27 Jie Zhang <jie@codesourcery.com>
8813 Daniel Jacobowitz <dan@codesourcery.com>
8814 Yao Qi <yao@codesourcery.com>
8815
8816 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
8817 (mips-linux-watch.o): New rule.
8818 (mips_linux_watch_h): New variable.
8819 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
8820 srv_tgtobj.
8821 * linux-mips-low.c: Include mips-linux-watch.h.
8822 (struct arch_process_info, struct arch_lwp_info): New.
8823 (update_watch_registers_callback): New function.
8824 (mips_linux_new_process, mips_linux_new_thread) New functions.
8825 (mips_linux_prepare_to_resume, mips_insert_point): New
8826 functions.
8827 (mips_remove_point, mips_stopped_by_watchpoint): New
8828 functions.
8829 (rsp_bp_type_to_target_hw_bp_type): New function.
8830 (mips_stopped_data_address): New function.
8831 (the_low_target): Add watchpoint support functions.
8832
8833 2013-07-27 Yao Qi <yao@codesourcery.com>
8834
8835 * i386-low.c: Include break-common.h.
8836 (enum target_hw_bp_type): Remove.
8837
8838 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
8839
8840 * Makefile.in (SFILES): /common/target-common.c.
8841 (OBS): Add target-common.o.
8842 (server_h): Add $(srcdir)/../common/target-common.h.
8843 (target-common.o): New target.
8844 * server.c (queue_stop_reply_callback): Free
8845 status string after use.
8846 * target.c (target_waitstatus_to_string): Remove.
8847 * target.h: Include target-common.h.
8848 (resume_kind): Likewise.
8849 (target_waitkind): Likewise.
8850 (target_waitstatus): Likewise.
8851 (TARGET_WNOHANG): Likewise.
8852
8853 2013-07-04 Yao Qi <yao@codesourcery.com>
8854
8855 * Makefile.in (host_alias): Use @host_noncanonical@.
8856 (target_alias): Use @target_noncanonical@.
8857 * configure.ac: Use ACX_NONCANONICAL_TARGET and
8858 ACX_NONCANONICAL_HOST.
8859 * configure: Regenerated.
8860
8861 Revert:
8862 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
8863
8864 * configure.ac (version_host, version_target): Set and AC_SUBST them.
8865 * configure: Rebuild.
8866 * Makefile.in (version_host, version_target): Get from configure.
8867 (version.c): Use $(version_host) and $(version_target).
8868
8869 2013-07-03 Pedro Alves <palves@redhat.com>
8870
8871 * Makefile.in (config.status): Depend on development.sh.
8872 * acinclude.m4: Include libmcheck.m4.
8873 * configure: Regenerate.
8874
8875 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
8876
8877 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
8878 attribute inside the parentheses.
8879 (winapi_DebugSetProcessKillOnExit): Ditto.
8880 (winapi_DebugBreakProcess): Ditto.
8881 (winapi_GenerateConsoleCtrlEvent): Ditto.
8882
8883 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
8884
8885 * notif.h (notif_event): Add a dummy member to avoid compiler
8886 errors.
8887
8888 2013-07-01 Pedro Alves <palves@redhat.com>
8889
8890 * hostio.c (HOSTIO_PATH_MAX): Define.
8891 (require_filename, handle_open, handle_unlink, handle_readlink):
8892 Use it.
8893
8894 2013-07-01 Pedro Alves <palves@redhat.com>
8895
8896 * server.h: Include "pathmax.h".
8897 * linux-low.c: Don't include sys/param.h.
8898 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
8899 MAXPATHLEN.
8900 * win32-low.c: Don't include sys/param.h.
8901 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
8902
8903 2013-07-01 Pedro Alves <palves@redhat.com>
8904
8905 * event-loop.c: Don't check HAVE_UNISTD_H before including
8906 <unistd.h>.
8907 * gdbreplay.c: Likewise.
8908 * remote-utils.c: Likewise.
8909 * server.c: Likewise.
8910 * configure.ac: Don't check for unistd.h.
8911 * configure: Regenerate.
8912
8913 2013-06-28 Tom Tromey <tromey@redhat.com>
8914
8915 * Makefile.in (version.c): Use version.in, not
8916 common/version.in.
8917
8918 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
8919
8920 * configure.ac (version_host, version_target): Set and AC_SUBST them.
8921 * configure: Rebuild.
8922 * Makefile.in (version_host, version_target): Get from configure.
8923 (version.c): Use $(version_host) and $(version_target).
8924
8925 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
8926
8927 Fix trace-status to output user name without trailing colon.
8928 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
8929
8930 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
8931
8932 Fix trace-status to output proper start-time and stop-time.
8933 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
8934 output start time and stop time in hex as gdb expects.
8935
8936 2013-06-26 Pedro Alves <pedro@codesourcery.com>
8937
8938 * tracepoint.c (build_traceframe_info_xml): Output trace state
8939 variables present in the trace buffer.
8940
8941 2013-06-24 Tom Tromey <tromey@redhat.com>
8942
8943 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
8944 create-version.sh.
8945 (version.o): Remove.
8946 * gdbreplay.c: Include version.h.
8947 (version, host_name): Don't declare.
8948 * server.h: Include version.h.
8949 (version, host_name): Don't declare.
8950
8951 2013-06-12 Pedro Alves <palves@redhat.com>
8952
8953 * linux-x86-low.c (linux_is_elf64): Delete global.
8954 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
8955 with local linux_pid_exe_is_elf_64_file use.
8956
8957 2013-06-11 Pedro Alves <palves@redhat.com>
8958
8959 * linux-low.c (regset_disabled, disable_regset): New functions.
8960 (regsets_fetch_inferior_registers)
8961 (regsets_store_inferior_registers): Use them.
8962 (initialize_regsets_info); Don't allocate the disabled_regsets
8963 array here.
8964 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
8965 comment.
8966
8967 2013-06-11 Pedro Alves <palves@redhat.com>
8968
8969 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
8970 xmalloc.
8971
8972 2013-06-11 Pedro Alves <palves@redhat.com>
8973
8974 * linux-x86-low.c (initialize_low_arch): Call
8975 init_registers_x32_avx_linux.
8976
8977 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8978
8979 Fix compatibility with Android Bionic.
8980 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
8981 it is not empty.
8982
8983 2013-06-07 Pedro Alves <palves@redhat.com>
8984
8985 PR server/14823
8986 * Makefile.in (OBS): Add tdesc.o.
8987 (IPA_OBJS): Add tdesc-ipa.o.
8988 (tdesc-ipa.o): New rule.
8989 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
8990 interface.
8991 * linux-low.c (new_inferior): Delete.
8992 (disabled_regsets, num_regsets): Delete.
8993 (linux_add_process): Adjust to set the new per-process
8994 new_inferior flag.
8995 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
8996 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
8997 was a stop. When calling arch_setup, switch the current inferior
8998 to the thread that got an event.
8999 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
9000 (regsets_fetch_inferior_registers)
9001 (regsets_store_inferior_registers): New regsets_info parameter.
9002 Adjust to use it.
9003 (linux_register_in_regsets): New regs_info parameter. Adjust to
9004 use it.
9005 (register_addr, fetch_register, store_register): New usrregs_info
9006 parameter. Adjust to use it.
9007 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
9008 parameter regs_info. Adjust to use it.
9009 (linux_fetch_registers): Get the current inferior's regs_info, and
9010 adjust to use it.
9011 (linux_store_registers): Ditto.
9012 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
9013 (initialize_low): Don't initialize the target_regsets here. Call
9014 initialize_low_arch.
9015 * linux-low.h (target_regsets): Delete declaration.
9016 (struct regsets_info): New.
9017 (struct usrregs_info): New.
9018 (struct regs_info): New.
9019 (struct process_info_private) <new_inferior>: New field.
9020 (struct linux_target_ops): Delete the num_regs, regmap, and
9021 regset_bitmap fields. New field regs_info.
9022 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
9023 * i387-fp.c (num_xmm_registers): Delete.
9024 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
9025 calls to new interface.
9026 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
9027 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
9028 Infer the number of xmm registers from the regcache's target
9029 description.
9030 * i387-fp.h (num_xmm_registers): Delete.
9031 * inferiors.c (add_thread): Don't install the thread's regcache
9032 here.
9033 * proc-service.c (gregset_info): Fetch the current inferior's
9034 regs_info. Adjust to use it.
9035 * regcache.c: Include tdesc.h.
9036 (register_bytes, reg_defs, num_registers)
9037 (gdbserver_expedite_regs): Delete.
9038 (get_thread_regcache): If the thread doesn't have a regcache yet,
9039 create one, instead of aborting gdbserver.
9040 (regcache_invalidate_one): Rename to ...
9041 (regcache_invalidate_thread): ... this.
9042 (regcache_invalidate_one): New.
9043 (regcache_invalidate): Only invalidate registers of the current
9044 process.
9045 (init_register_cache): Add target_desc parameter, and use it.
9046 (new_register_cache): Ditto. Assert the target description has a
9047 non zero registers_size.
9048 (regcache_cpy): Add assertions. Adjust.
9049 (realloc_register_cache, set_register_cache): Delete.
9050 (registers_to_string, registers_from_string): Adjust.
9051 (find_register_by_name, find_regno, find_register_by_number)
9052 (register_cache_size): Add target_desc parameter, and use it.
9053 (free_register_cache_thread, free_register_cache_thread_one)
9054 (regcache_release, register_cache_size): New.
9055 (register_size): Add target_desc parameter, and use it.
9056 (register_data, supply_register, supply_register_zeroed)
9057 (supply_regblock, supply_register_by_name, collect_register)
9058 (collect_register_as_string, collect_register_by_name): Adjust.
9059 * regcache.h (struct target_desc): Forward declare.
9060 (struct regcache) <tdesc>: New field.
9061 (init_register_cache, new_register_cache): Add target_desc
9062 parameter.
9063 (regcache_invalidate_thread): Declare.
9064 (regcache_invalidate_one): Delete declaration.
9065 (regcache_release): Declare.
9066 (find_register_by_number, register_cache_size, register_size)
9067 (find_regno): Add target_desc parameter.
9068 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
9069 declarations.
9070 * remote-utils.c: Include tdesc.h.
9071 (outreg, prepare_resume_reply): Adjust.
9072 * server.c: Include tdesc.h.
9073 (gdbserver_xmltarget): Delete declaration.
9074 (get_features_xml, process_serial_event): Adjust.
9075 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
9076 declare.
9077 (struct process_info) <tdesc>: New field.
9078 (ipa_tdesc): Declare.
9079 * tdesc.c: New file.
9080 * tdesc.h: New file.
9081 * tracepoint.c: Include tdesc.h.
9082 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
9083 (get_context_regcache): Adjust to pass ipa_tdesc down.
9084 (do_action_at_tracepoint): Adjust to get the register cache size
9085 from the context regcache's description.
9086 (traceframe_walk_blocks): Adjust to get the register cache size
9087 from the current trace frame's description.
9088 (traceframe_get_pc): Adjust to get current trace frame's
9089 description and pass it down.
9090 (gdb_collect): Adjust to get the register cache size from the
9091 IPA's description.
9092 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
9093 (gdbserver_xmltarget): Delete.
9094 (initialize_low_tracepoint): Set the ipa's target description.
9095 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
9096 (initialize_low_tracepoint): Set the ipa's target description.
9097 * linux-x86-low.c: Include tdesc.h.
9098 [__x86_64__] (is_64bit_tdesc): New.
9099 (ps_get_thread_area, x86_get_thread_area): Use it.
9100 (i386_cannot_store_register): Rename to ...
9101 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
9102 (i386_cannot_fetch_register): Rename to ...
9103 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
9104 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
9105 to new interface.
9106 (target_regsets): Rename to ...
9107 (x86_regsets): ... this.
9108 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
9109 interface.
9110 (x86_siginfo_fixup): Use is_64bit_tdesc.
9111 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
9112 (tdesc_x32_avx_linux, tdesc_x32_linux)
9113 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
9114 Declare.
9115 (x86_linux_update_xmltarget): Delete.
9116 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
9117 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
9118 (AMD64_LINUX_USER64_CS): New.
9119 (x86_linux_read_description): New, based on
9120 x86_linux_update_xmltarget.
9121 (same_process_callback): New.
9122 (x86_arch_setup_process_callback): New.
9123 (x86_linux_update_xmltarget): New.
9124 (x86_regsets_info): New.
9125 (amd64_linux_regs_info): New.
9126 (i386_linux_usrregs_info): New.
9127 (i386_linux_regs_info): New.
9128 (x86_linux_regs_info): New.
9129 (x86_arch_setup): Reimplement.
9130 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
9131 (x86_emit_ops): Ditto.
9132 (the_low_target): Adjust. Install x86_linux_regs_info,
9133 x86_cannot_fetch_register, and x86_cannot_store_register.
9134 (initialize_low_arch): New.
9135 * linux-ia64-low.c (tdesc_ia64): Declare.
9136 (ia64_fetch_register): Adjust.
9137 (ia64_usrregs_info, regs_info): New globals.
9138 (ia64_regs_info): New function.
9139 (the_low_target): Adjust.
9140 (initialize_low_arch): New function.
9141 * linux-sparc-low.c (tdesc_sparc64): Declare.
9142 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
9143 Adjust.
9144 (sparc_arch_setup): New function.
9145 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
9146 (the_low_target): Adjust.
9147 (initialize_low_arch): New function.
9148 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
9149 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
9150 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
9151 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
9152 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
9153 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
9154 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
9155 (tdesc_powerpc_isa205_vsx64l): Declare.
9156 (ppc_cannot_store_register, ppc_collect_ptrace_register)
9157 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
9158 (ppc_set_pc, ppc_get_hwcap): Adjust.
9159 (ppc_usrregs_info): Forward declare.
9160 (!__powerpc64__) ppc_regmap_adjusted: New global.
9161 (ppc_arch_setup): Adjust to the current process'es target
9162 description.
9163 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
9164 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
9165 (ppc_store_evrregset): Adjust.
9166 (target_regsets): Rename to ...
9167 (ppc_regsets): ... this, and make static.
9168 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
9169 (ppc_regs_info): New function.
9170 (the_low_target): Adjust.
9171 (initialize_low_arch): New function.
9172 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
9173 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
9174 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
9175 (tdesc_s390x_linux64v2): Declare.
9176 (s390_collect_ptrace_register, s390_supply_ptrace_register)
9177 (s390_fill_gregset, s390_store_last_break): Adjust.
9178 (target_regsets): Rename to ...
9179 (s390_regsets): ... this, and make static.
9180 (s390_get_pc, s390_set_pc): Adjust.
9181 (s390_get_hwcap): New target_desc parameter, and use it.
9182 [__s390x__] (have_hwcap_s390_high_gprs): New global.
9183 (s390_arch_setup): Adjust to set the current process'es target
9184 description. Don't adjust the regmap.
9185 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
9186 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
9187 (regs_info_3264): New globals.
9188 (s390_regs_info): New function.
9189 (the_low_target): Adjust.
9190 (initialize_low_arch): New function.
9191 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
9192 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
9193 [__mips64] (init_registers_mips_linux)
9194 (init_registers_mips_dsp_linux): Delete defines.
9195 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
9196 (have_dsp): New global.
9197 (mips_read_description): New, based on mips_arch_setup.
9198 (mips_arch_setup): Reimplement.
9199 (get_usrregs_info): New function.
9200 (mips_cannot_fetch_register, mips_cannot_store_register)
9201 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
9202 (mips_fill_fpregset, mips_store_fpregset): Adjust.
9203 (target_regsets): Rename to ...
9204 (mips_regsets): ... this, and make static.
9205 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
9206 (dsp_regs_info, regs_info): New globals.
9207 (mips_regs_info): New function.
9208 (the_low_target): Adjust.
9209 (initialize_low_arch): New function.
9210 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
9211 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
9212 Declare.
9213 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
9214 (arm_read_description): New, with bits factored from
9215 arm_arch_setup.
9216 (arm_arch_setup): Reimplement.
9217 (target_regsets): Rename to ...
9218 (arm_regsets): ... this, and make static.
9219 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
9220 (arm_regs_info): New function.
9221 (the_low_target): Adjust.
9222 (initialize_low_arch): New function.
9223 * linux-m68k-low.c (tdesc_m68k): Declare.
9224 (target_regsets): Rename to ...
9225 (m68k_regsets): ... this, and make static.
9226 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
9227 (m68k_regs_info): New function.
9228 (m68k_arch_setup): New function.
9229 (the_low_target): Adjust.
9230 (initialize_low_arch): New function.
9231 * linux-sh-low.c (tdesc_sharch): Declare.
9232 (target_regsets): Rename to ...
9233 (sh_regsets): ... this, and make static.
9234 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
9235 (sh_regs_info, sh_arch_setup): New functions.
9236 (the_low_target): Adjust.
9237 (initialize_low_arch): New function.
9238 * linux-bfin-low.c (tdesc_bfin): Declare.
9239 (bfin_arch_setup): New function.
9240 (bfin_usrregs_info, regs_info): New globals.
9241 (bfin_regs_info): New function.
9242 (the_low_target): Adjust.
9243 (initialize_low_arch): New function.
9244 * linux-cris-low.c (tdesc_cris): Declare.
9245 (cris_arch_setup): New function.
9246 (cris_usrregs_info, regs_info): New globals.
9247 (cris_regs_info): New function.
9248 (the_low_target): Adjust.
9249 (initialize_low_arch): New function.
9250 * linux-cris-low.c (tdesc_crisv32): Declare.
9251 (cris_arch_setup): New function.
9252 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
9253 (cris_regs_info): New function.
9254 (the_low_target): Adjust.
9255 (initialize_low_arch): New function.
9256 * linux-m32r-low.c (tdesc_m32r): Declare.
9257 (m32r_arch_setup): New function.
9258 (m32r_usrregs_info, regs_info): New globals.
9259 (m32r_regs_info): Adjust.
9260 (initialize_low_arch): New function.
9261 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
9262 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
9263 (tic6x_usrregs_info): Forward declare.
9264 (tic6x_read_description): New function, based on ...
9265 (tic6x_arch_setup): ... this. Reimplement.
9266 (target_regsets): Rename to ...
9267 (tic6x_regsets): ... this, and make static.
9268 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
9269 (tic6x_regs_info): New function.
9270 (the_low_target): Adjust.
9271 (initialize_low_arch): New function.
9272 * linux-xtensa-low.c (tdesc_xtensa): Declare.
9273 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
9274 (target_regsets): Rename to ...
9275 (xtensa_regsets): ... this, and make static.
9276 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
9277 globals.
9278 (xtensa_arch_setup, xtensa_regs_info): New functions.
9279 (the_low_target): Adjust.
9280 (initialize_low_arch): New function.
9281 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
9282 (nios2_arch_setup): Set the current process'es tdesc.
9283 (target_regsets): Rename to ...
9284 (nios2_regsets): ... this.
9285 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
9286 (nios2_regs_info): New function.
9287 (the_low_target): Adjust.
9288 (initialize_low_arch): New function.
9289 * linux-aarch64-low.c (tdesc_aarch64): Declare.
9290 (aarch64_arch_setup): Set the current process'es tdesc.
9291 (target_regsets): Rename to ...
9292 (aarch64_regsets): ... this.
9293 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
9294 (aarch64_regs_info): New function.
9295 (the_low_target): Adjust.
9296 (initialize_low_arch): New function.
9297 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
9298 globals.
9299 (target_regsets): Rename to ...
9300 (tile_regsets): ... this.
9301 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
9302 (tile_regs_info): New function.
9303 (tile_arch_setup): Set the current process'es tdesc.
9304 (the_low_target): Adjust.
9305 (initialize_low_arch): New function.
9306 * spu-low.c (tdesc_spu): Declare.
9307 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
9308 * win32-arm-low.c (tdesc_arm): Declare.
9309 (arm_arch_setup): New function.
9310 (the_low_target): Install arm_arch_setup instead of
9311 init_registers_arm.
9312 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
9313 (init_windows_x86): Rename to ...
9314 (i386_arch_setup): ... this. Set `win32_tdesc'.
9315 (the_low_target): Adjust.
9316 * win32-low.c (win32_tdesc): New global.
9317 (child_add_thread): Don't create the thread cache here.
9318 (do_initial_child_stuff): Set the new process'es tdesc.
9319 * win32-low.h (struct target_desc): Forward declare.
9320 (win32_tdesc): Declare.
9321 * lynx-i386-low.c (tdesc_i386): Declare global.
9322 (lynx_i386_arch_setup): Set `lynx_tdesc'.
9323 * lynx-low.c (lynx_tdesc): New global.
9324 (lynx_add_process): Set the new process'es tdesc.
9325 * lynx-low.h (struct target_desc): Forward declare.
9326 (lynx_tdesc): Declare global.
9327 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
9328 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
9329 * nto-low.c (nto_tdesc): New global.
9330 (do_attach): Set the new process'es tdesc.
9331 * nto-low.h (struct target_desc): Forward declare.
9332 (nto_tdesc): Declare.
9333 * nto-x86-low.c (tdesc_i386): Declare.
9334 (nto_x86_arch_setup): Set `nto_tdesc'.
9335
9336 2013-06-04 Gary Benson <gbenson@redhat.com>
9337
9338 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
9339 to qSupported response when appropriate.
9340 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
9341 with nonzero-length annex.
9342 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
9343 arguments supplied in annex.
9344
9345 2013-05-31 Doug Evans <dje@google.com>
9346
9347 PR server/15594
9348 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
9349 64 bits in 64-cross-32 environment.
9350
9351 2013-05-28 Pedro Alves <palves@redhat.com>
9352
9353 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
9354 (aarch64-without-fpu.c): Delete rule.
9355 * configure.srv (aarch64*-*-linux*): Remove references to
9356 aarch64-without-fpu.o and aarch64-without-fpu.xml.
9357 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
9358 declaration.
9359
9360 2013-05-24 Pedro Alves <palves@redhat.com>
9361
9362 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
9363 instead of strchr/decode_address. Error if the range isn't split
9364 with a ','. Don't assume there's be a ':' in the action.
9365
9366 2013-05-23 Yao Qi <yao@codesourcery.com>
9367 Pedro Alves <palves@redhat.com>
9368
9369 * linux-low.c (lwp_in_step_range): New function.
9370 (linux_wait_1): If the thread was range stepping and stopped
9371 outside the stepping range, report the stop to GDB. Otherwise,
9372 continue stepping. Add range stepping debug output.
9373 (linux_set_resume_request): Copy the step range from the resume
9374 request to the lwp.
9375 (linux_supports_range_stepping): New.
9376 (linux_target_ops) <supports_range_stepping>: Set to
9377 linux_supports_range_stepping.
9378 * linux-low.h (struct linux_target_ops)
9379 <supports_range_stepping>: New field.
9380 (struct lwp_info) <step_range_start, step_range_end>: New fields.
9381 * linux-x86-low.c (x86_supports_range_stepping): New.
9382 (the_low_target) <supports_range_stepping>: Set to
9383 x86_supports_range_stepping.
9384 * server.c (handle_v_cont): Handle 'r' action.
9385 (handle_v_requests): Append ";r" if the target supports range
9386 stepping.
9387 * target.h (struct thread_resume) <step_range_start,
9388 step_range_end>: New fields.
9389 (struct target_ops) <supports_range_stepping>:
9390 New field.
9391 (target_supports_range_stepping): New macro.
9392
9393 2013-05-17 Joel Brobecker <brobecker@adacore.com>
9394
9395 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
9396 confusion in comment.
9397
9398 2013-05-17 Joel Brobecker <brobecker@adacore.com>
9399
9400 * lynx-low.c (struct process_info_private): New type.
9401 (lynx_add_process): New function.
9402 (lynx_create_inferior, lynx_attach): Replace calls to
9403 add_process by calls to lynx_add_process.
9404 (lynx_resume): If PTID is null, then try using
9405 current_process()->private->last_wait_event_ptid.
9406 Add comments.
9407 (lynx_clear_inferiors): Delete. The contents of that function
9408 has been inlined in lynx_mourn;
9409 (lynx_wait_1): Save the ptid in the process's private data.
9410 (lynx_mourn): Free the process' private data. Replace call
9411 to lynx_clear_inferiors by call to clear_inferiors.
9412
9413 2013-05-17 Yao Qi <yao@codesourcery.com>
9414
9415 * i386-low.c (i386_length_and_rw_bits): Move the comment to
9416 the right place.
9417
9418 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
9419
9420 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
9421 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
9422 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
9423 PT_TEXT_END_ADDR guards. Update comments.
9424 (linux_target_op) <read_offsets>: Conditionally define to
9425 linux_read_offsets if the target is UCLIBC and if it defines
9426 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
9427
9428 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
9429 Andrew Jenner <andrew@codesourcery.com>
9430
9431 * Makefile.in (SFILES): Add linux-nios2-low.c.
9432 (clean): Add action to delete nios2-linux.c.
9433 (nios2-linux.c): New rule.
9434 * configure.srv: Add nios2*-*-linux*.
9435 * linux-nios2-low.c: New.
9436
9437 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
9438
9439 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
9440
9441 2013-04-25 Hui Zhu <hui@codesourcery.com>
9442
9443 PR gdb/15186
9444 * ax.c (ax_printf): Add fflush.
9445
9446 2013-04-22 Tom Tromey <tromey@redhat.com>
9447
9448 * Makefile.in (SFILES): Add filestuff.c.
9449 (OBS): Add filestuff.o.
9450 (filestuff.o): New target.
9451 * config.in, configure: Rebuild.
9452 * configure.ac: Check for fdwalk, pipe2.
9453
9454 2013-04-17 Pedro Alves <palves@redhat.com>
9455
9456 * configure.ac (USE_THREAD_DB): Delete variable.
9457 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
9458 Don't AC_SUBST USE_THREAD_DB.
9459 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
9460 * config.in, configure: Regenerate.
9461
9462 2013-04-16 Pedro Alves <palves@redhat.com>
9463
9464 * linux-low.h (struct lwp_info) <thread_known>: Move under
9465 the USE_THREAD_DB #ifdef.
9466
9467 2013-04-16 Pedro Alves <palves@redhat.com>
9468
9469 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
9470 (linux-low.o): Delete rule.
9471 * linux-low.h: Always include "gdb_thread_db.h" instead of
9472 conditionally including thread_db.h.
9473 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
9474 HAVE_THREAD_DB_H.
9475
9476 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
9477
9478 * Makefile.in (install-only): Fix make install regression.
9479
9480 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9481
9482 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9483 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
9484 installation.
9485 * gdbserver.1: Remove.
9486
9487 2013-03-22 Pedro Alves <palves@redhat.com>
9488
9489 * linux-low.c (handle_extended_wait): Don't call
9490 linux_enable_event_reporting.
9491
9492 2013-03-15 Tony Theodore <tonyt@logyst.com>
9493
9494 PR build/9098:
9495 * Makefile.in (SHELL): Use @SHELL@.
9496
9497 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
9498
9499 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
9500 compiler warning.
9501
9502 2013-03-13 Joel Brobecker <brobecker@adacore.com>
9503
9504 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
9505 Remove extraneous NULL element.
9506
9507 2013-03-13 Yao Qi <yao@codesourcery.com>
9508
9509 * tracepoint.c (traceframe_read_tsv): Look for the last matched
9510 'V' block in trace frame.
9511
9512 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9513
9514 * target.h (struct target_ops): Add btrace ops.
9515 (target_supports_btrace): New macro.
9516 (target_enable_btrace): New macro.
9517 (target_disable_btrace): New macro.
9518 (target_read_btrace): New macro.
9519 * gdbthread.h (struct thread_info): Add btrace field.
9520 * server.c: Include btrace-common.h.
9521 (handle_btrace_general_set): New function.
9522 (handle_btrace_enable): New function.
9523 (handle_btrace_disable): New function.
9524 (handle_general_set): Call handle_btrace_general_set.
9525 (handle_qxfer_btrace): New function.
9526 (struct qxfer qxfer_packets[]): Add btrace entry.
9527 * inferiors.c (remove_thread): Disable btrace.
9528 * linux-low: Include linux-btrace.h.
9529 (linux_low_enable_btrace): New function.
9530 (linux_low_read_btrace): New function.
9531 (linux_target_ops): Add btrace ops.
9532 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
9533 Add srv_linux_btrace=yes.
9534 (x86_64-*-linux*): Add linux-btrace.o.
9535 Add srv_linux_btrace=yes.
9536 * configure.ac: Define HAVE_LINUX_BTRACE.
9537 * config.in: Regenerated.
9538 * configure: Regenerated.
9539
9540 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9541
9542 * server.c (handle_qxfer): Preserve error message if -3 is
9543 returned.
9544 (qxfer): Document the -3 return value.
9545
9546 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9547
9548 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
9549 (linux_btrace_h): New variable.
9550 (linux-btrace.o): New rule.
9551
9552 2013-03-08 Stan Shebs <stan@codesourcery.com>
9553 Hafiz Abid Qadeer <abidh@codesourcery.com>
9554
9555 * tracepoint.c (trace_buffer_size): New global.
9556 (DEFAULT_TRACE_BUFFER_SIZE): New define.
9557 (init_trace_buffer): Change to one-argument function. Allocate
9558 trace buffer memory.
9559 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
9560 handle QTBuffer:size packet.
9561 (cmd_bigqtbuffer_size): New function.
9562 (initialize_tracepoint): Call init_trace_buffer with
9563 DEFAULT_TRACE_BUFFER_SIZE.
9564 * server.c (handle_query): Add QTBuffer:size in the
9565 supported packets.
9566
9567 2013-03-07 Yao Qi <yao@codesourcery.com>
9568
9569 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
9570 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
9571 of -1.
9572 (cmd_qtsp): Adjust condition. Do post increment.
9573 Set cur_action and cur_step_action back to 0.
9574
9575 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
9576
9577 PR server/15236
9578 * linux-low.c (linux_write_memory): Return early success if LEN is
9579 zero.
9580
9581 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9582
9583 * configure.srv: Add x86_64-*-cygwin* as target.
9584
9585 2013-02-28 Tom Tromey <tromey@redhat.com>
9586
9587 * configure.ac: Invoke AC_SYS_LARGEFILE.
9588 * configure, config.in: Rebuild.
9589
9590 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
9591
9592 * win32-low.c: Throughout, fix format strings and casts of
9593 printf-like functions to avoid type related warnings on all
9594 platforms.
9595 (get_child_debug_event): Print dwDebugEventCode as hex since
9596 that's how it's usually documented.
9597
9598 2013-02-28 Yao Qi <yao@codesourcery.com>
9599
9600 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
9601 pulongest.
9602
9603 2013-02-27 Jiong Wang <jiwang@tilera.com>
9604
9605 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
9606 (reg-tilegx32.c): New rule.
9607 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
9608 * linux-tile-low.c (tile_arch_setup): New function. Invoke
9609 different register info initializer according to elf class.
9610 (init_registers_tilgx32): New function. The tilegx32 register info
9611 initializer.
9612 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
9613 (tile_store_gregset): Likewise.
9614
9615 2013-02-27 Yao Qi <yao@codesourcery.com>
9616
9617 * server.c (process_point_options): Print debug message when
9618 debug_threads is true.
9619
9620 2013-02-26 Yao Qi <yao@codesourcery.com>
9621
9622 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
9623
9624 2013-02-19 Pedro Alves <palves@redhat.com>
9625 Kai Tietz <ktietz@redhat.com>
9626
9627 PR gdb/15161
9628
9629 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
9630 instead of strtoul to extract address from packet.
9631 (process_serial_event) <'z'>: Likewise.
9632
9633 2013-02-18 Yao Qi <yao@codesourcery.com>
9634
9635 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
9636
9637 2013-02-14 Pedro Alves <palves@redhat.com>
9638
9639 Plug memory leak.
9640
9641 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
9642 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
9643
9644 2013-02-14 Pedro Alves <palves@redhat.com>
9645
9646 * tracepoint.c (cmd_qtdpsrc): Use savestring.
9647
9648 2013-02-14 Pedro Alves <palves@redhat.com>
9649
9650 * tracepoint.c (save_string): Delete.
9651 (add_tracepoint_action): Use savestring instead of save_string.
9652
9653 2013-02-12 Pedro Alves <palves@redhat.com>
9654
9655 * linux-xtensa-low.c: Ditto.
9656 * xtensa-xtregs.c: Ditto.
9657
9658 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9659
9660 * thread-db.c (thread_db_get_tls_address): NULL pointer check
9661 thread_db.
9662
9663 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9664
9665 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
9666 aarch64_num_wp_regs and aarch64_num_bp_regs to
9667 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
9668
9669 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9670
9671 * linux-aarch64-low.c (ps_get_thread_area): Replace
9672 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
9673
9674 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9675 Marcus Shawcroft <marcus.shawcroft@arm.com>
9676 Nigel Stephens <nigel.stephens@arm.com>
9677 Yufeng Zhang <yufeng.zhang@arm.com>
9678
9679 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
9680 (aarch64.c, aarch64-without-fpu.c): New targets.
9681 * configure.srv (aarch64*-*-linux*): New.
9682 * linux-aarch64-low.c: New file.
9683
9684 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
9685
9686 * linux-low.c (handle_extended_wait, linux_create_inferior)
9687 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
9688 (dequeue_one_deferred_signal, linux_resume_one_thread)
9689 (fetch_register, linux_write_memory, linux_enable_event_reporting)
9690 (linux_tracefork_grandchild, linux_test_for_tracefork)
9691 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
9692 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
9693 where the argument is 0.
9694
9695 2013-01-25 Yao Qi <yao@codesourcery.com>
9696
9697 * event-loop.c: Include "queue.h".
9698 (gdb_event_p): New typedef.
9699 (struct gdb_event) <next_event>: Remove.
9700 (event_queue): Change to QUEUE(gdb_event_p).
9701 (async_queue_event): Remove.
9702 (gdb_event_xfree): New.
9703 (initialize_event_loop): New.
9704 (process_event): Use API from QUEUE.
9705 (wait_for_event): Likewise.
9706 * server.c (main): Call initialize_event_loop.
9707 * server.h (initialize_event_loop): Declare.
9708
9709 2013-01-18 Yao Qi <yao@codesourcery.com>
9710
9711 * ax.h (struct eval_agent_expr_context): New.
9712 (gdb_eval_agent_expr): Update declaration.
9713 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
9714 TFRAME. Add new argument CTX.
9715 * server.h (struct eval_agent_expr_context): Declare.
9716 (agent_mem_read, agent_tsv_read): Update declaration.
9717 (agent_mem_read_string): Likewise.
9718 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
9719 (add_traceframe_block): Add new argument TPOINT.
9720 Increase TPOINT->traceframe_usage.
9721 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
9722 eval_tracepoint_agent_expr.
9723 (condition_true_at_tracepoint): Likewise.
9724 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
9725 (agent_mem_read_string, agent_tsv_read): Likewise.
9726
9727 2013-01-16 Yao Qi <yao@codesourcery.com>
9728
9729 * linux-low.c (linux_resume_one_lwp): Don't check
9730 'lwp->bp_reinsert != 0'.
9731
9732 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9733 Pedro Alves <palves@redhat.com>
9734
9735 * lynx-low.c (ptrace_request_to_str): Define a temporary
9736 macro and use it to simplify this function's implementation.
9737
9738 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9739
9740 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
9741 sets errno.
9742
9743 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9744
9745 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
9746
9747 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9748
9749 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
9750
9751 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9752
9753 * lynx-low.c (lynx_resume): Use the resume_info parameter
9754 to determine the ptid for the lynx_ptrace call, unless
9755 it is equal to minus_one_ptid, in which case we use the
9756 ptid of the current_inferior.
9757 (lynx_wait_1): After having received a thread create/exit
9758 event, resume the inferior's execution using the signaling
9759 thread's ptid, rather than the old ptid.
9760
9761 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9762
9763 * lynx-low.c (lynx_resume): Delete variable ret.
9764
9765 2013-01-01 Joel Brobecker <brobecker@adacore.com>
9766
9767 * gdbreplay.c (gdbreplay_version): Update copyright year.
9768 * server.c (gdbserver_version): Likewise.
9769
9770 2012-12-17 Joel Brobecker <brobecker@adacore.com>
9771
9772 * lynx-low.c (lynx_wait_1): Add debug trace before adding
9773 new thread.
9774
9775 2012-12-17 Joel Brobecker <brobecker@adacore.com>
9776
9777 * lynx-low.c (ptrace_request_to_str): Add handling for
9778 PTRACE_GETTRACESIG.
9779
9780 2012-12-17 Joel Brobecker <brobecker@adacore.com>
9781
9782 * lynx-low.c (lynx_attach): Delete variable new_process.
9783
9784 2012-12-17 Joel Brobecker <brobecker@adacore.com>
9785
9786 * lynx-low.c (lynx_create_inferior): Delete variable
9787 new_process.
9788
9789 2012-12-17 Joel Brobecker <brobecker@adacore.com>
9790
9791 * lynx-low.c (ptrace_request_to_str): Do not handle
9792 PTRACE_GETTHREADLIST if this macro does not exist.
9793
9794 2012-12-15 Yao Qi <yao@codesourcery.com>
9795
9796 * Makefile.in (OBS): Add notif.o.
9797 * notif.c, notif.h: New.
9798 * server.c: Include "notif.h".
9799 (struct vstop_notif) <next>: Remove.
9800 <base>: New field.
9801 (queue_stop_reply): Update.
9802 (push_event, send_next_stop_reply): Remove.
9803 (discard_queued_stop_replies): Update.
9804 (notif_stop): New variable.
9805 (handle_v_stopped): Remove.
9806 (handle_v_requests): Don't call handle_v_stopped. Call
9807 handle_ack_notif instead.
9808 (queue_stop_reply_callback): Call notif_event_enque instead
9809 of queue_stop_reply.
9810 (handle_status): Don't call send_next_stop_reply, call
9811 notif_write_event instead.
9812 (kill_inferior_callback): Likewise.
9813 (detach_or_kill_inferior_callback): Likewise.
9814 (main): Call initialize_notif.
9815 (process_serial_event): Call QUEUE_is_empty.
9816 (handle_target_event): Call notif_push instead of push event.
9817 * server.h (push_event): Remove declaration.
9818
9819 2012-12-10 Tom Tromey <tromey@redhat.com>
9820
9821 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
9822 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
9823 macros.
9824 (.c.o): Rewrite.
9825 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
9826 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
9827 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
9828 (amd64-linux-ipa.o, ax.o): Rewrite.
9829 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
9830 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
9831 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
9832 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
9833 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
9834 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
9835 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
9836 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
9837 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
9838 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
9839 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
9840 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
9841 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
9842 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
9843 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
9844 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
9845 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
9846 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
9847 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
9848 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
9849 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
9850 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
9851 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
9852 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
9853 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
9854 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
9855 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
9856 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
9857 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
9858 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
9859 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
9860 (reg-tilegx.o): Remove.
9861 (all_object_files): New macro.
9862 Include .deps files.
9863 * aclocal.m4, configure: Rebuild.
9864 * acinclude.m4: Include depstand.m4, lead-dot.m4.
9865 * configure.ac: Invoke ZW_CREATE_DEPDIR,
9866 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
9867
9868 2012-12-05 Tom Tromey <tromey@redhat.com>
9869
9870 PR gdb/14917:
9871 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
9872
9873 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
9874
9875 * configure.ac: Check for linux/perf_event.h.
9876 * config.in: Regenerated.
9877 * configure: Regenerated.
9878
9879 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
9880
9881 * hostio.c (handle_readlink): Decrease buffer size
9882 parameter passed to readlink by one byte.
9883
9884 2012-11-26 Yao Qi <yao@codesourcery.com>
9885
9886 * configure.ac (build_warnings): Append '-Wempty-body'.
9887 * configure: Regenerated.
9888 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
9889 body.
9890
9891 2012-11-15 Pierre Muller <muller@sourceware.org>
9892
9893 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
9894 * config.in: Regenerate.
9895 * configure: Regenerate.
9896 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
9897 Use "gdb_wait.h" header instead of <sys/wait.h> header.
9898 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
9899 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
9900 header.
9901 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
9902 instead of <sys/wait.h> header.
9903 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
9904
9905 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
9906
9907 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
9908 (various make rules): Remove -DGDBSERVER
9909
9910 2012-11-09 Yao Qi <yao@codesourcery.com>
9911
9912 * spu-low.c (current_ptid): Move it to ..
9913 * gdbthread.h: ... here. New.
9914 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
9915 * server.c (myresume, process_serial_event): Likewise.
9916 * thread-db.c (thread_db_find_new_threads): Likewise.
9917 * tracepoint.c (run_inferior_command): Likewise.
9918
9919 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
9920
9921 * server.c (handle_search_memory_1): Include access length in
9922 warning message.
9923
9924 2012-09-05 Michael Brandt <michael.brandt@axis.com>
9925
9926 * linux-crisv32-low.c: Fix compile errors.
9927
9928 2012-09-04 Yao Qi <yao@codesourcery.com>
9929
9930 * tracepoint.c (cmd_qtsv): Adjust debug message.
9931 Don't check CUR_TPOINT.
9932
9933 2012-08-28 Yao Qi <yao@codesourcery.com>
9934
9935 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
9936 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
9937 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
9938 Remove declarations of xmalloc, xreallloc, xstrdup and
9939 freeargv.
9940 * Makefile.in (libiberty_h): New.
9941 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
9942 (linux-bfin-low.o): Append dependency 'libiberty.h'.
9943
9944 2012-08-23 Yao Qi <yao@codesourcery.com>
9945
9946 * server.h: Remove declaration of 'xsnprintf'.
9947
9948 2012-08-22 Keith Seitz <keiths@redhat.com>
9949
9950 * server.h: Include build-gnulib-gbserver/config.h.
9951 * gdbreplay.c: Likewise.
9952
9953 2012-08-08 Doug Evans <dje@google.com>
9954
9955 * Makefile.in (SFILES): Add gdb_vecs.c.
9956 (OBS): Add gdb_vecs.o.
9957 (gdb_vecs_h, host_defs_h): New variables.
9958 (thread-db.o): Add $(gdb_vecs_h) dependency.
9959 (gdb_vecs.o): New rule.
9960 * thread-db.c: #include "gdb_vecs.h".
9961 (thread_db_load_search): Use a vector to iterate over path elements.
9962 Handle text appearing after "$pdir".
9963
9964 * configure.ac: Add check for strstr.
9965 * config.in: Regenerate.
9966 * configure: Regenerate.
9967
9968 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9969
9970 * hostio.c (handle_pread): If pread fails, fall back to attempting
9971 lseek/read.
9972 (handle_pwrite): Likewise for pwrite.
9973
9974 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9975
9976 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
9977 between unsupported TYPE and unimplementable ADDR/LEN combination.
9978 (arm_insert_point): Act on new return value.
9979
9980 2012-07-31 Pedro Alves <palves@redhat.com>
9981
9982 * server.c (process_point_options): Only skip tokens if we find
9983 one that is unrecognized. Don't treat 'X' specially while
9984 skipping unrecognized tokens.
9985
9986 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
9987
9988 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
9989 to 4-byte-align HW breakpoint addresses for Thumb.
9990
9991 2012-07-27 Yao Qi <yao@codesourcery.com>
9992
9993 PR remote/14161.
9994
9995 * server.h: Declare gdb_agent_about_to_close.
9996 * target.c (kill_inferior): Include "agent.h".
9997 New. Send command 'kill'.
9998 * target.h (kill_inferior): Removed macro.
9999 * tracepoint.c (gdb_agent_about_to_close): New.
10000 (gdb_agent_helper_thread): Handle command 'close'.
10001 Wait endlessly until the inferior stops.
10002 Install gdb_agent_remove_socket to atexit hook.
10003 (agent_socket_name): New static variable.
10004 (gdb_agent_socket_init): Replace local variable 'name' with
10005 'agent_socket_name'.
10006 (gdb_agent_remove_socket): New.
10007
10008 2012-07-27 Yao Qi <yao@codesourcery.com>
10009
10010 * server.c (process_point_options): Stop at 'X' when parsing.
10011
10012 2012-07-19 Michael Eager <eager@eagercon.com>
10013
10014 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
10015 to hw_execute.
10016 * linux-x86-low.c (x86_insert_point, x86_remove_point):
10017 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
10018 hardware breakpoint.
10019
10020 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
10021
10022 * gdbserver/linux-low.c (initialize_low): Call
10023 linux_ptrace_init_warnings.
10024
10025 2012-07-02 Doug Evans <dje@google.com>
10026
10027 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
10028 pointer to int.
10029
10030 2012-07-02 Stan Shebs <stan@codesourcery.com>
10031
10032 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
10033 (ax.o): Add it to build rule.
10034 (ax-ipa.o): Ditto.
10035 (OBS): Add format.o.
10036 (IPA_OBS): Add format.o.
10037 * server.c (handle_query): Claim support for breakpoint commands.
10038 (process_point_options): Add command case.
10039 (process_serial_event): Leave running if there are printfs in
10040 effect.
10041 * mem-break.h (any_persistent_commands): Declare.
10042 (add_breakpoint_commands): Declare.
10043 (gdb_no_commands_at_breakpoint): Declare.
10044 (run_breakpoint_commands): Declare.
10045 * mem-break.c (struct point_command_list): New struct.
10046 (struct breakpoint): New field command_list.
10047 (any_persistent_commands): New function.
10048 (add_commands_to_breakpoint): New function.
10049 (add_breakpoint_commands): New function.
10050 (gdb_no_commands_at_breakpoint): New function.
10051 (run_breakpoint_commands): New function.
10052 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
10053 locally.
10054 * ax.c: Include format.h.
10055 (ax_printf): New function.
10056 (gdb_eval_agent_expr): Add printf opcode.
10057
10058 2012-06-13 Yao Qi <yao@codesourcery.com>
10059
10060 * server.c (start_inferior): Remove duplicated writes to fields
10061 'last_resume_kind' and 'last_status' of 'current_inferior'.
10062
10063 2012-06-12 Yao Qi <yao@codesourcery.com>
10064 Pedro Alves <palves@redhat.com>
10065
10066 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
10067 comment.
10068 * server.c (handle_v_cont): Extend comment.
10069
10070 2012-06-11 Yao Qi <yao@codesourcery.com>
10071
10072 * linux-low.c (linux_attach): Add 'static'.
10073
10074 2012-06-06 Yao Qi <yao@codesourcery.com>
10075
10076 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
10077
10078 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10079
10080 Fix gcc -flto compilation warning.
10081 * server.c (main): Make variable multi_mode and attach volatile.
10082
10083 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10084
10085 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
10086 if the platform doesn't know about it.
10087
10088 2012-05-30 Jeff Kenton <jkenton@tilera.com>
10089
10090 * Makefile.in (SFILES): Add linux-tile-low.c.
10091 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
10092 * configure.srv: Handle tilegx-*-linux*.
10093 * linux-tile-low.c: New file.
10094
10095 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10096
10097 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
10098
10099 2012-05-24 Pedro Alves <palves@redhat.com>
10100
10101 PR gdb/7205
10102
10103 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
10104
10105 2012-05-24 Pedro Alves <palves@redhat.com>
10106
10107 PR gdb/7205
10108
10109 Replace target_signal with gdb_signal throughout.
10110
10111 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
10112
10113 * linux-low.c (linux_store_registers): Avoid the copying sequence
10114 when no data has been retrieved by ptrace.
10115
10116 2012-05-22 Will Deacon <will.deacon@arm.com>
10117
10118 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
10119 Include asm/ptrace.h.
10120 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
10121 already defined.
10122
10123 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
10124
10125 * linux-low.c (linux_store_registers): Don't re-retrieve data
10126 with ptrace that has already been obtained from /proc. Always
10127 copy any data retrieved with ptrace to the buffer supplied.
10128
10129 2012-05-11 Yao Qi <yao@codesourcery.com>
10130 Pedro Alves <palves@redhat.com>
10131
10132 * linux-low.c (enum stopping_threads_kind): New.
10133 (stopping_threads): Change type to `enum stopping_threads_kind'.
10134 (handle_extended_wait): If stopping and suspending threads, leave
10135 the new_lwp suspended too.
10136 (linux_wait_for_event): Adjust.
10137 (stop_all_lwps): Set `stopping_threads' to
10138 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
10139 whether we're suspending threads or just stopping them. Assert no
10140 recursion happens.
10141
10142 2012-04-29 Yao Qi <yao@codesourcery.com>
10143
10144 * server.h: Move some code to ...
10145 * gdbthread.h: ... here. New.
10146 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
10147 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
10148 (nto-low.o, win32-low.o): Likewise.
10149 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
10150 * regcache.c, remote-utils.c, server.c: Likewise.
10151 * target.c, tracepoint.c, win32-low.c: Likewise.
10152
10153 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10154
10155 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
10156 (PTRACE_ARG4_TYPE): Likewise.
10157 (PTRACE_XFER_TYPE): Likewise.
10158 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
10159 ptrace to PTRACE_ARG3_TYPE.
10160 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
10161 (PTRACE_ARG4_TYPE): Likewise.
10162 (PTRACE_XFER_TYPE): Likewise.
10163 (linux_detach_one_lwp): Cast fourth argument of
10164 ptrace to long then PTRACE_ARG4_TYPE.
10165 (regsets_fetch_inferior_registers): Cast third argument of
10166 ptrace to long then PTRACE_ARG3_TYPE.
10167 (regsets_store_inferior_registers): Likewise.
10168
10169 2012-04-20 Pedro Alves <palves@redhat.com>
10170
10171 * configure: Regenerate.
10172
10173 2012-04-19 Pedro Alves <palves@redhat.com>
10174
10175 * Makefile.in (GNULIB_BUILDDIR): New.
10176 (LIBGNU, INCGNU, GNULIB_H): Adjust.
10177 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
10178 (all, install-only, uninstall, clean-info, all-lib, clean): No
10179 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
10180 (maintainer-clean realclean distclean): Use subdir_do.
10181 (subdir_do): New.
10182 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
10183 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
10184 * acinclude.m4: Include acx_configure_dir.m4.
10185 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
10186 calls. Call AC_PROG_RANLIB. Configure gnulib using
10187 ACX_CONFIGURE_DIR.
10188 (GNULIB): New.
10189 (GNULIB_STDINT_H): Adjust.
10190 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
10191 * gdbreplay.c: Include build-gnulib/config.h.
10192 * server.h: Likewise.
10193 * aclocal.m4: Regenerate.
10194 * config.in: Regenerate.
10195 * configure: Regenerate.
10196
10197 2012-04-19 Pedro Alves <palves@redhat.com>
10198
10199 * Makefile.in (LIBGNU, INCGNU): Adjust.
10200 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
10201 (all, install-only, uninstall, clean-info, all-lib, clean)
10202 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
10203 * configure.ac: Adjust AC_OUTPUT output.
10204 * aclocal.m4: Regenerate.
10205 * configure: Regenerate.
10206
10207 2012-04-19 Pedro Alves <palves@redhat.com>
10208
10209 * Makefile.in (generated_files): New.
10210 (server_h): Remove the explicit dependency on config.h, and depend
10211 on $generated_files.
10212
10213 2012-04-19 Pedro Alves <palves@redhat.com>
10214
10215 * Makefile.in (INCGNU): Add -Ignulib.
10216
10217 2012-04-19 Pedro Alves <palves@redhat.com>
10218
10219 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
10220 (INCGNU): ... this, and spell out -I here.
10221 (GNULIB_LIB): Rename to ...
10222 (LIBGNU): ... this.
10223 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
10224
10225 2012-04-19 Pedro Alves <palves@redhat.com>
10226
10227 * config.in: Regenerate.
10228
10229 2012-04-19 Pedro Alves <palves@redhat.com>
10230
10231 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
10232 * server.h (memmem): Remove declaration.
10233 * config.in: Regenerate.
10234 * configure: Regenerate.
10235
10236 2012-04-19 Yao Qi <yao@codesourcery.com>
10237
10238 * Makefile.in (SFILES): Add common/vec.c.
10239 (OBS): Add vec.o.
10240 (vec.o): New rule.
10241
10242 2012-04-19 Yao Qi <yao@codesourcery.com>
10243
10244 * remote-utils.c (prepare_resume_reply): Replace with macro
10245 target_core_of_thread.
10246 * server.c (handle_qxfer_threads_proper): Likewise.
10247 * target.h (traget_core_of_thread): New macro.
10248
10249 2012-04-18 Pedro Alves <palves@redhat.com>
10250
10251 * aclocal.m4: Regenerate.
10252 * configure: Regenerate.
10253
10254 2012-04-16 Yao Qi <yao@codesourcery.com>
10255
10256 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
10257 duplicated on address.
10258
10259 2012-04-16 Yao Qi <yao@codesourcery.com>
10260
10261 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
10262 (struct tracepoint_action_ops) <send>: New field.
10263 (m_tracepoint_action_send, r_tracepoint_action_send): New.
10264 (agent_expr_send, x_tracepoint_action_send): New.
10265 (l_tracepoint_action_send): New.
10266 (cmd_qtdp): Download and install tracepoint
10267 according to `use_agent'.
10268 (run_inferior_command): Add one more parameter `len'.
10269 Update callers.
10270 (tracepoint_send_agent): New.
10271 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
10272
10273 2012-04-16 Yao Qi <yao@codesourcery.com>
10274
10275 * tracepoint.c (download_tracepoints): Moved to ...
10276 (cmd_qtstart): ... here.
10277
10278 2012-04-14 Yao Qi <yao@codesourcery.com>
10279
10280 * tracepoint.c: Include inttypes.h.
10281 (struct collect_memory_action): Use sized types.
10282 (struct tracepoint): Likewise.
10283 (cmd_qtdp, stop_tracing): Update print specifiers.
10284 (cmd_qtp, response_tracepoint): Likewise.
10285 (collect_data_at_tracepoint): Likewise.
10286 (collect_data_at_step): Likewise.
10287
10288 2012-04-14 Yao Qi <yao@codesourcery.com>
10289
10290 Import gnulib module inttypes.
10291 * aclocal.m4, config.in, configure: Regenerated.
10292
10293 2012-04-14 Yao Qi <yao@codesourcery.com>
10294
10295 * Makefile.in (maintainer-clean, realclean, distclean): Remove
10296 Makefile and config.status at last.
10297
10298 2012-04-13 Yao Qi <yao@codesourcery.com>
10299
10300 * tracepoint.c: Include stdint.h unconditionally.
10301
10302 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10303
10304 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
10305 on BFD_HAVE_SYS_PROCFS_TYPE.
10306 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
10307 * configure: Regenerate.
10308 * config.in: Likewise.
10309
10310 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
10311
10312 * Makefile.in (clean): Also remove x32.c x32-linux.c
10313 x32-avx.c x32-avx-linux.c.
10314 (x32.o): New target.
10315 (x32.c): Likewise.
10316 (x32-linux.o): Likewise.
10317 (x32-linux.c): Likewise.
10318 (x32-avx.o): Likewise.
10319 (x32-avx.c): Likewise.
10320 (x32-avx-linux.o): Likewise.
10321 (x32-avx-linux.c): Likewise.
10322
10323 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
10324 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
10325 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
10326 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
10327 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
10328 i386/x32-avx-linux.xml.
10329
10330 * linux-x86-low.c (init_registers_x32_linux): New prototype.
10331 (init_registers_x32_avx_linux): Likwise.
10332 (x86_linux_update_xmltarget): Call init_registers_x32_linux
10333 or init_registers_x32_avx_linux if linux_is_elf64 is false.
10334
10335 2012-04-13 Pedro Alves <palves@redhat.com>
10336
10337 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
10338 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
10339 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
10340 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
10341 the sub-make.
10342
10343 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
10344
10345 * linux-x86-low.c (compat_x32_clock_t): New.
10346 (compat_x32_siginfo_t): Likewise.
10347 (compat_x32_siginfo_from_siginfo): Likewise.
10348 (siginfo_from_compat_x32_siginfo): Likewise.
10349 (linux_is_elf64): Likewise.
10350 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
10351 and siginfo_from_compat_x32_siginfo for x32.
10352 (x86_arch_setup): Set linux_is_elf64.
10353
10354 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
10355
10356 PR gdb/13969
10357 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
10358 e_machine field.
10359 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
10360 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
10361 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
10362 compatible with process.
10363
10364 2012-04-12 Yao Qi <yao@codesourcery.com>
10365
10366 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
10367 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
10368 (install-only, install-info, clean): Handle sub dir gnulib.
10369 (all-lib, am--refresh): New targets.
10370 (memmem.o): Remove target.
10371 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
10372 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
10373 (AC_REPLACE_FUNCS): Remove memmem.
10374 Invoke gl_INIT and AM_INIT_AUTOMAKE.
10375 (AC_OUTPUT): Generate Makefile in gnulib/.
10376 * aclocal.m4, config.in, configure: Regenerated.
10377
10378 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
10379
10380 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
10381
10382 2012-04-05 Pedro Alves <palves@redhat.com>
10383
10384 -Werror=strict-aliasing
10385
10386 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
10387 pointer.
10388
10389 2012-04-04 Pedro Alves <palves@redhat.com>
10390
10391 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
10392 (sparc_store_gregset_from_stack, sparc_store_gregset)
10393 (sparc_breakpoint_at): Fix formatting.
10394
10395 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10396
10397 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
10398 are available.
10399 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
10400 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
10401 * config.in: Regenerate.
10402 * configure: Likewise.
10403
10404 2012-03-29 Pedro Alves <palves@redhat.com>
10405
10406 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
10407 Correct ptrace arguments.
10408
10409 2012-03-28 Pedro Alves <palves@redhat.com>
10410
10411 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
10412 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
10413 (IA64_FR1_REGNUM): New defines.
10414 (ia64_fetch_register): New.
10415 (the_low_target): Install it.
10416 * linux-low.h (struct linux_target_ops) <fetch_register>: New
10417 field.
10418 * linux-low.c (linux_fetch_registers): Try the
10419 the_low_target.fetch_register hook first.
10420
10421 * linux-arm-low.c (the_low_target): Adjust.
10422 * linux-bfin-low.c (the_low_target): Adjust.
10423 * linux-cris-low.c (the_low_target): Adjust.
10424 * linux-crisv32-low.c (the_low_target): Adjust.
10425 * linux-m32r-low.c (the_low_target): Adjust.
10426 * linux-m68k-low.c (the_low_target): Adjust.
10427 * linux-mips-low.c (the_low_target): Adjust.
10428 * linux-ppc-low.c (the_low_target): Adjust.
10429 * linux-s390-low.c (the_low_target): Adjust.
10430 * linux-sh-low.c (the_low_target): Adjust.
10431 * linux-sparc-low.c (the_low_target): Adjust.
10432 * linux-tic6x-low.c (the_low_target): Adjust.
10433 * linux-x86-low.c (the_low_target): Adjust.
10434 * linux-xtensa-low.c (the_low_target): Adjust.
10435
10436 2012-03-26 Pedro Alves <palves@redhat.com>
10437
10438 * server.c (handle_qxfer_libraries): Don't bail early if
10439 the_target->qxfer_libraries_svr4 is not NULL.
10440
10441 2012-03-26 Pedro Alves <palves@redhat.com>
10442
10443 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
10444
10445 2012-03-23 Pedro Alves <palves@redhat.com>
10446
10447 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
10448 "library-list-svr4" element's start tag when the the DSO list is
10449 empty.
10450
10451 2012-03-23 Pedro Alves <palves@redhat.com>
10452
10453 * linux-low.c (read_one_ptr): Read the inferior's pointer through
10454 a variable whose type size is the same as the inferior's pointer
10455 size.
10456
10457 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
10458
10459 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
10460 struct siginfo.
10461 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
10462 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
10463 * linux-low.h: Include <signal.h>.
10464 (struct siginfo): Remove forward declaration.
10465 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
10466 struct siginfo.
10467
10468 2012-03-21 Mike Frysinger <vapier@gentoo.org>
10469
10470 * .gitignore: Ignore more files.
10471
10472 2012-03-19 Pedro Alves <palves@redhat.com>
10473 Jan Kratochvil <jan.kratochvil@redhat.com>
10474
10475 * server.c (cont_thread, general_thread): Add describing comments.
10476 (start_inferior): Clear `cont_thread'.
10477 (handle_v_cont): Don't set `cont_thread' if resuming all threads
10478 of a process.
10479
10480 2012-03-15 Yao Qi <yao@codesourcery.com>
10481
10482 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
10483 handling to ...
10484 (cmd_qtdp): ... here.
10485
10486 2012-03-15 Yao Qi <yao@codesourcery.com>
10487
10488 * tracepoint.c (struct tracepoint_action_ops): New.
10489 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
10490 (m_tracepoint_action_download): New.
10491 (r_tracepoint_action_download): New.
10492 (x_tracepoint_action_download): New.
10493 (l_tracepoint_action_download): New.
10494 (add_tracepoint_action): Install `action->ops' according type.
10495 (download_tracepoint_1): Move code `download' function pointer
10496 of various tracepoint_action_ops.
10497
10498 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10499
10500 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
10501 linux_ptrace_attach_warnings.
10502
10503 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10504
10505 * Makefile.in (linux-ptrace.o): New.
10506 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
10507 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
10508 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
10509 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
10510 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
10511 of these targets.
10512 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
10513
10514 2012-03-08 Yao Qi <yao@codesourcery.com>
10515 Pedro Alves <palves@redhat.com>
10516
10517 Fix PR server/13392.
10518 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
10519 offset of JMP insn.
10520 * tracepoint.c (remove_tracepoint): New.
10521 (cmd_qtdp): Call remove_tracepoint when failed to install.
10522
10523 2012-03-07 Pedro Alves <palves@redhat.com>
10524
10525 * linux-low.c (get_detach_signal): New.
10526 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
10527 Pass on pending signals to PTRACE_DETACH. Check the result of the
10528 ptrace call.
10529 * server.c (program_signals, program_signals_p): New.
10530 (handle_general_set): Handle QProgramSignals.
10531 * server.h (program_signals, program_signals_p): Declare.
10532
10533 2012-03-05 Pedro Alves <palves@redhat.com>
10534 Jan Kratochvil <jan.kratochvil@redhat.com>
10535
10536 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
10537 New comment why.
10538
10539 2012-03-03 Yao Qi <yao@codesourcery.com>
10540
10541 * tracepoint.c (tracepoint_look_up_symbols): Update call to
10542 agent_look_up_symbols.
10543
10544 2012-03-03 Yao Qi <yao@codesourcery.com>
10545
10546 * Makefile.in (linux-low.o): Keep dependence on agent.h.
10547 (linux-x86-low.o): Likewise.
10548 * server.h: Remove in_process_agent_loaded.
10549 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
10550 common/agent.c.
10551 Update callers.
10552
10553 2012-03-03 Yao Qi <yao@codesourcery.com>
10554
10555 * tracepoint.c (gdb_agent_capability): New global.
10556 (in_process_agent_loaded_ust): Renamed to
10557 `in_process_agent_supports_ust'.
10558 Update callers.
10559 (in_process_agent_supports_ust): Call agent_capability_check.
10560 (clear_installed_tracepoints): Assert that agent supports
10561 agent.
10562
10563 2012-03-03 Yao Qi <yao@codesourcery.com>
10564
10565 * linux-low.c (linux_supports_agent): New.
10566 (linux_target_ops): Initialize field `supports_agent' with
10567 linux_supports_agent.
10568 * target.h (struct target_ops) <supports_agent>: New.
10569 (target_supports_agent): New macro.
10570 * server.c (handle_general_set): Handle packet 'QAgent'.
10571 (handle_query): Send `QAgent+'.
10572 * Makefile.in (server.o): Depends on agent.h.
10573
10574 2012-03-03 Yao Qi <yao@codesourcery.com>
10575
10576 * Makefile.in (OBS): Add agent.o.
10577 Add new rule for agent.o.
10578 Track dependence of tracepoint.c on agent.h.
10579 * tracepoint.c (run_inferior_command_1):
10580 (run_inferior_command): Call agent_run_command.
10581 (gdb_ust_connect_sync_socket): Deleted. Move it to
10582 common/agent.c.
10583 (resume_thread, stop_thread): Likewise.
10584 (gdb_ust_socket_init): Renamed to ...
10585 (gdb_agent_socket_init): ... New.
10586 (gdb_ust_thread): Renamed to ...
10587 (gdb_agent_helper_thread): ... New.
10588 (gdb_ust_init): Move some code to ...
10589 (gdb_agent_init): ... here. New.
10590 [HAVE_UST]: Call gdb_ust_init.
10591 (initialize_tracepoint_ftlib): Call gdb_agent_init.
10592 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
10593 * config.in, configure: Regenerated.
10594
10595 2012-03-02 Pedro Alves <palves@redhat.com>
10596
10597 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
10598 * linux-low.c (struct simple_pid_list): New.
10599 (stopped_pids): New a struct simple_pid_list pointer.
10600 (add_to_pid_list, pull_pid_from_list): New.
10601 (handle_extended_wait): Don't assume the first signal new children
10602 report is SIGSTOP. Adjust call to pull_pid_from_list.
10603 (linux_wait_for_lwp): Adjust.
10604
10605 2012-03-02 Yao Qi <yao@codesourcery.com>
10606
10607 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
10608 debug log.
10609
10610 2012-03-02 Yao Qi <yao@codesourcery.com>
10611
10612 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
10613 `stop_pc' and `tpoint'. Update caller.
10614
10615 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10616
10617 * linux-low.h (linux_target_ops): Add regset_bitmap member.
10618 * linux-low.c (use_linux_regsets): New macro.
10619 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
10620 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
10621 (linux_register_in_regsets): New function.
10622 (usr_fetch_inferior_registers): Skip registers covered by
10623 regsets.
10624 (usr_store_inferior_registers): Likewise.
10625 (usr_fetch_inferior_registers): New macro.
10626 (usr_store_inferior_registers): Likewise.
10627 (linux_fetch_registers): Handle mixed regset/non-regset targets.
10628 (linux_store_registers): Likewise.
10629 * linux-mips-low.c (init_registers_mips_dsp_linux): New
10630 prototype.
10631 (init_registers_mips64_dsp_linux): Likewise.
10632 (init_registers_mips_linux): New macro.
10633 (init_registers_mips_dsp_linux): Likewise.
10634 (mips_dsp_num_regs): Likewise.
10635 (DSP_BASE, DSP_CONTROL): New fallback macros.
10636 (mips_base_regs): New macro.
10637 (mips_regmap): Use it. Fix the size.
10638 (mips_dsp_regmap): New variable.
10639 (mips_dsp_regset_bitmap): Likewise.
10640 (mips_arch_setup): New function.
10641 (mips_cannot_fetch_register): Use the_low_target.regmap rather
10642 than mips_regmap.
10643 (mips_cannot_store_register): Likewise.
10644 (the_low_target): Update .arch_setup, .num_regs and .regmap
10645 initializers. Add .regset_bitmap initializer.
10646 * linux-arm-low.c (the_low_target): Add .regset_bitmap
10647 initializer.
10648 * linux-bfin-low.c (the_low_target): Likewise.
10649 * linux-cris-low.c (the_low_target): Likewise.
10650 * linux-crisv32-low.c (the_low_target): Likewise.
10651 * linux-ia64-low.c (the_low_target): Likewise.
10652 * linux-m32r-low.c (the_low_target): Likewise.
10653 * linux-m68k-low.c (the_low_target): Likewise.
10654 * linux-ppc-low.c (the_low_target): Likewise.
10655 * linux-s390-low.c (the_low_target): Likewise.
10656 * linux-sh-low.c (the_low_target): Likewise.
10657 * linux-sparc-low.c (the_low_target): Likewise.
10658 * linux-tic6x-low.c (the_low_target): Likewise.
10659 * linux-x86-low.c (the_low_target): Likewise.
10660 * linux-xtensa-low.c (the_low_target): Likewise.
10661 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
10662 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
10663 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
10664 srv_xmlfiles.
10665 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
10666 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
10667
10668 2012-02-29 Yao Qi <yao@codesourcery.com>
10669 Pedro Alves <palves@redhat.com>
10670
10671 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
10672 `step_over_finished' is true.
10673
10674 2012-02-27 Pedro Alves <palves@redhat.com>
10675
10676 * linux-low.c (pid_is_stopped): Delete, moved to common/.
10677 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
10678
10679 2012-02-27 Pedro Alves <palves@redhat.com>
10680
10681 PR server/9684
10682 * linux-low.c (pid_is_stopped): New.
10683 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
10684
10685 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
10686
10687 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
10688 of conditions.
10689
10690 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10691
10692 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
10693
10694 2012-02-24 Luis Machado <lgustavo@codesourcery>
10695
10696 * server.c (handle_query): Advertise support for target-side
10697 breakpoint condition evaluation.
10698 (process_point_options): New function.
10699 (process_serial_event): When inserting a breakpoint, check for
10700 a target-side condition that should be evaluated.
10701
10702 * mem-break.c: Include regcache.h and ax.h.
10703 (point_cond_list_t): New data structure.
10704 (breakpoint) <cond_list>: New field.
10705 (find_gdb_breakpoint_at): Make non-static.
10706 (delete_gdb_breakpoint_at): Clear any target-side
10707 conditions.
10708 (clear_gdb_breakpoint_conditions): New function.
10709 (add_condition_to_breakpoint): Likewise.
10710 (add_breakpoint_condition): Likewise.
10711 (gdb_condition_true_at_breakpoint): Likewise.
10712 (gdb_breakpoint_here): Return result directly instead
10713 of going through a local variable.
10714
10715 * mem-break.h (find_gdb_breakpoint_at): New prototype.
10716 (clear_gdb_breakpoint_conditions): Likewise.
10717 (add_breakpoint_condition): Likewise.
10718 (gdb_condition_true_at_breakpoint): Likewise.
10719
10720 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
10721 (need_step_over_p): Take target-side breakpoint condition into
10722 consideration.
10723
10724 2012-02-24 Luis Machado <lgustavo@codesourcery>
10725
10726 * server.h: Include tracepoint.h.
10727 (agent_mem_read, agent_get_trace_state_variable_value,
10728 agent_set_trace_state_variable_value,
10729 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
10730 get_set_tsv_func_addr): New prototypes.
10731
10732 * ax.h: New include file.
10733 * ax.c: New source file.
10734
10735 * tracepoint.c: Include ax.h.
10736 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
10737 agent_expr, eval_result_type): Move to ax.h.
10738 (parse_agent_expr): Rename to ...
10739 (gdb_parse_agent_expr): ... this, make it non-static and move
10740 to ax.h.
10741 (unparse_agent_expr) Rename to ...
10742 (gdb_unparse_agent_expr): ... this, make it non-static and move
10743 to ax.h.
10744 (eval_agent_expr): Rename to ...
10745 (eval_tracepoint_agent_expr): ... this.
10746 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
10747 forward declarations.
10748 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
10749 (agent_get_trace_state_variable_value): New function.
10750 (agent_set_trace_state_variable_value): New function.
10751 (cmd_qtdp): Call gdb_parse_agent_expr (...).
10752 (response_tracepoint): Call gdb_unparse_agent_expr (...).
10753 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
10754 (condition_true_at_tracepoint): Likewise.
10755 (parse_agent_expr): Rename to ...
10756 (gdb_parse_agent_expr): ... this and move to ax.c.
10757 (unparse_agent_expr): Rename to ...
10758 (gdb_unparse_agent_expr): ... this and move to ax.c.
10759 (gdb_agent_op_name): Move to ax.c.
10760 (eval_agent_expr): Rename to ...
10761 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
10762 and move to ax.c.
10763 (eval_tracepoint_agent_expr): New function.
10764 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
10765 non-static.
10766 (current_insn_ptr, emit_error, struct bytecode_address): Move to
10767 ax.c.
10768 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
10769 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
10770 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
10771 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
10772 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
10773 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
10774 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
10775 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
10776 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
10777 (compile_bytecodes): Remove forward declaration.
10778 (is_goto_target): Move to ax.c.
10779 (compile_bytecodes): Move to ax.c and call
10780 agent_get_trace_state_variable_value (...) and
10781 agent_set_trace_state_variable_value (...).
10782
10783 * Makefile.in: Update ax.c and IPA dependencies.
10784
10785 2012-02-24 Pedro Alves <palves@redhat.com>
10786
10787 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
10788 (cmd_bigqtbuffer_circular): ... this. Only handle
10789 'QTBuffer:circular:'.
10790 (handle_tracepoint_general_set): Adjust.
10791
10792 2012-02-16 Yao Qi <yao@codesourcery.com>
10793
10794 * inferiors.c: Move code to ...
10795 * dll.c: .... here. New.
10796 * server.h: Declare clear_dlls.
10797 * Makefile.in (SFILES): Add dll.c.
10798 (OBS): Add dll.o
10799 (dll.o): New rule.
10800
10801 2012-02-11 Yao Qi <yao@codesourcery.com>
10802
10803 * server.c: (handle_monitor_command): Add a new parameter
10804 `own_buf'.
10805 (handle_query): Update caller.
10806
10807 2012-02-09 Joel Brobecker <brobecker@adacore.com>
10808
10809 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
10810 * configure, config.in: Regenerate.
10811 * hostio.c: Provide an alternate implementation if HAVE_READLINK
10812 is not defined.
10813
10814 2012-02-02 Pedro Alves <palves@redhat.com>
10815
10816 Try SIGKILL first, then PTRACE_KILL.
10817 * linux-low.c (linux_kill_one_lwp): New.
10818 (linux_kill_one_lwp): Rename to ...
10819 (kill_one_lwp_callback): ... this. Use the new
10820 linux_kill_one_lwp.
10821
10822 2012-02-02 Pedro Alves <palves@redhat.com>
10823
10824 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
10825 inferior.
10826
10827 2012-01-27 Pedro Alves <palves@redhat.com>
10828
10829 * linux-low.c (linux_child_pid_to_exec_file): Delete.
10830 (elf_64_file_p): Make static.
10831 (linux_pid_exe_is_elf_64_file): New.
10832 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
10833 Delete declarations.
10834 (linux_pid_exe_is_elf_64_file): Declare.
10835 * linux-x86-low.c (x86_arch_setup): Use
10836 linux_pid_exe_is_elf_64_file.
10837
10838 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10839
10840 * linux-low.c (linux_wait_for_event_1): Rename to ...
10841 (linux_wait_for_event): ... here and merge it with former
10842 linux_wait_for_event - new variable wait_ptid, use it.
10843 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
10844
10845 2012-01-23 Pedro Alves <palves@redhat.com>
10846
10847 * server.c (main): Avoid yet another case of infinite loop while
10848 detaching/killing after a longjmp.
10849
10850 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10851
10852 Code cleanup.
10853 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
10854
10855 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10856
10857 * hostio.c (handle_readlink): New function.
10858 (handle_vFile): Call it to handle "vFile:readlink" packets.
10859
10860 2012-01-20 Pedro Alves <palves@redhat.com>
10861 Ulrich Weigand <ulrich.weigand@linaro.org>
10862
10863 * server.c (handle_v_requests): Only support vAttach and vRun to
10864 start multiple processes when in extended protocol mode.
10865
10866 2012-01-17 Pedro Alves <palves@redhat.com>
10867
10868 * tracepoint.c (initialize_tracepoint): Use mmap instead of
10869 memalign plus mprotect to allocate the scratch buffer.
10870
10871 2012-01-13 Pedro Alves <palves@redhat.com>
10872
10873 * server.c (attach_inferior): Clear `cont_thread'.
10874
10875 2012-01-13 Pedro Alves <palves@redhat.com>
10876
10877 * server.c (main): Avoid infinite loop while detaching/killing
10878 after a longjmp.
10879
10880 2012-01-09 Doug Evans <dje@google.com>
10881
10882 * server.c (start_inferior): Set last_ptid in --wrapper case.
10883
10884 2012-01-06 Yao Qi <yao@codesourcery.com>
10885
10886 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
10887 defined.
10888 [IN_PROCESS_AGENT] (debug_agent): New global variable.
10889
10890 2012-01-04 Yao Qi <yao@codesourcery.com>
10891
10892 * tracepoint.c (cmd_qtdp): Print debug message
10893 for static tracepoint.
10894
10895 2012-01-04 Yao Qi <yao@codesourcery.com>
10896
10897 * tracepoint.c (trace_vdebug): Differentiate debug message
10898 between gdbserver and IPA.
10899
10900 2012-01-03 Yao Qi <yao@codesourcery.com>
10901
10902 * tracepoint.c (tracepoint_was_hit): Don't collect for
10903 static tracepoint.
10904
10905 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10906
10907 * terminal.h: Reformat copyright header.
10908
10909 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10910
10911 * server.c (gdbserver_version): Update copyright year.
10912 * gdbreplay.c (gdbreplay_version): Likewise.
10913
10914 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10915
10916 * linux-low.c (linux_create_inferior): Put empty if clause for write.
10917
10918 Revert:
10919 2011-12-18 Hui Zhu <teawater@gmail.com>
10920 * linux-low.c (linux_create_inferior): Save return value to ret.
10921
10922 2011-12-18 Hui Zhu <teawater@gmail.com>
10923
10924 * linux-low.c (linux_create_inferior): Save return value to ret.
10925
10926 2011-12-16 Doug Evans <dje@google.com>
10927
10928 * linux-low.c (linux_create_inferior): If stdio connection,
10929 redirect stdin from /dev/null, stdout to stderr.
10930 * remote-utils.c (remote_is_stdio): New static global.
10931 (remote_connection_is_stdio): New function.
10932 (remote_prepare): Handle stdio connection.
10933 (remote_open): Ditto.
10934 (remote_close): Don't close stdin for stdio connections.
10935 (read_prim,write_prim): New functions. Replace all calls to
10936 read/write to these.
10937 * server.c (main): Watch for "-" argument. Move call to
10938 remote_prepare before start_inferior.
10939 * server.h (STDIO_CONNECTION_NAME): New macro.
10940 (remote_connection_is_stdio): Declare.
10941
10942 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
10943 in debugging output.
10944
10945 2011-12-15 Yao Qi <yao@codesourcery.com>
10946
10947 * tracepoint.c: Include sys/syscall.h.
10948 (gdb_ust_thread): Remove preprocessor conditional.
10949
10950 2011-12-14 Pedro Alves <pedro@codesourcery.com>
10951
10952 * linux-low.c (linux_detach_one_lwp): Call
10953 the_low_target.prepare_to_resume before detaching.
10954
10955 2011-12-14 Yao Qi <yao@codesourcery.com>
10956
10957 * tracepoint.c (gdb_ust_thread): Don't ignore return value
10958 of write.
10959
10960 2011-12-14 Yao Qi <yao@codesourcery.com>
10961
10962 * i386-low.c (i386_low_stopped_data_address): Initialize local
10963 variable `control'.
10964
10965 2011-12-13 Pedro Alves <pedro@codesourcery.com>
10966
10967 PR remote/13492
10968
10969 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
10970 DR_CONTROL unless necessary. Extend comments.
10971 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
10972 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
10973
10974 2011-12-13 Yao Qi <yao@codesourcery.com>
10975
10976 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
10977 macros.
10978 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
10979
10980 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10981
10982 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
10983 Print new debug message for such case.
10984
10985 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
10986
10987 Fix overlapping memcpy.
10988 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
10989 the read_inferior_memory transfer.
10990 (delete_fast_tracepoint_jump): New variable buf. Use it for the
10991 write_inferior_memory transfer.
10992 (set_fast_tracepoint_jump): New variable buf. Use it for the
10993 read_inferior_memory and write_inferior_memory transfers.
10994 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
10995 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
10996 Use it for the write_inferior_memory transfer.
10997 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
10998 buffers.
10999
11000 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
11001
11002 * linux-low.c (fetch_register, store_register): Make code
11003 consistent, fix formatting.
11004
11005 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
11006
11007 * linux-low.c (usr_store_inferior_registers): Factor out code
11008 to handle individual registers into...
11009 (store_register): ... this new function.
11010
11011 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
11012
11013 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
11014 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
11015 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
11016 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
11017 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
11018 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
11019 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
11020 (srv_xmlfiles): Add new XML files.
11021
11022 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
11023 and <sys/uio.h>.
11024 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
11025 (init_registers_s390_linux32v1): Add prototype.
11026 (init_registers_s390_linux32v2): Likewise.
11027 (init_registers_s390_linux64v1): Likewise.
11028 (init_registers_s390_linux64v2): Likewise.
11029 (init_registers_s390x_linux64v1): Likewise.
11030 (init_registers_s390x_linux64v2): Likewise.
11031 (s390_num_regs): Increment to 52.
11032 (s390_regmap): Add orig_r2 register.
11033 (s390_num_regs_3264): Increment to 68.
11034 (s390_regmap_3264): Add orig_r2 register.
11035 (s390_collect_ptrace_register): Handle orig_r2 register.
11036 (s390_supply_ptrace_register): Likewise.
11037 (s390_fill_last_break): New function.
11038 (s390_store_last_break): Likewise.
11039 (s390_fill_system_call): New function.
11040 (s390_store_system_call): Likewise.
11041 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
11042 register sets.
11043 (s390_check_regset): New function.
11044 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
11045 NT_S390_SYSTEM_CALL regsets and use appropriate description.
11046 Update target_regsets for available register sets.
11047
11048 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
11049 Jan Kratochvil <jan.kratochvil@redhat.com>
11050
11051 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
11052 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
11053 New.
11054 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
11055 * linux-low.h (struct process_info_private): New member r_debug.
11056 * server.c (handle_qxfer_libraries): Call
11057 the_target->qxfer_libraries_svr4.
11058 (handle_qxfer_libraries_svr4): New function.
11059 (qxfer_packets): New entry "libraries-svr4".
11060 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
11061 * target.h (struct target_ops): New member qxfer_libraries_svr4.
11062 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
11063 PACKET_qXfer_libraries_svr4.
11064
11065 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
11066
11067 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
11068 PSW address/mask between 8-byte and 16-byte formats.
11069 (s390_supply_ptrace_register): Likewise.
11070 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
11071 basic addressing mode bit.
11072
11073 2011-11-24 Stan Shebs <stan@codesourcery.com>
11074
11075 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
11076
11077 2011-11-17 Stan Shebs <stan@codesourcery.com>
11078
11079 * tracepoint.c (struct tracepoint): New field traceframe_usage.
11080 (tracing_start_time): New global.
11081 (tracing_stop_time): New global.
11082 (tracing_user_name): New global.
11083 (tracing_notes): New global.
11084 (tracing_stop_note): New global.
11085 (cmd_qtstart): Set traceframe_usage, start_time.
11086 (stop_tracing): Set stop_time.
11087 (cmd_qtstatus): Report additional status.
11088 (cmd_qtp): New function.
11089 (handle_tracepoint_query): Call it.
11090 (cmd_qtnotes): New function.
11091 (handle_tracepoint_general_set): Call it.
11092 (get_timestamp): Rename from tsv_get_timestamp.
11093
11094 2011-11-14 Stan Shebs <stan@codesourcery.com>
11095 Kwok Cheung Yeung <kcy@codesourcery.com>
11096
11097 * linux-x86-low.c (small_jump_insn): New.
11098 (i386_install_fast_tracepoint_jump_pad): Add arguments for
11099 trampoline and error message, build a trampoline and issue a small
11100 jump instruction to it.
11101 (x86_install_fast_tracepoint_jump_pad): Add arguments for
11102 trampoline and error message.
11103 (x86_get_min_fast_tracepoint_insn_len): New.
11104 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
11105 * linux-low.h (struct linux_target_ops): Add arguments to
11106 install_fast_tracepoint_jump_pad operation, add new operation.
11107 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
11108 arguments.
11109 (linux_get_min_fast_tracepoint_insn_len): New function.
11110 (linux_target_op): Add new operation.
11111 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
11112 (gdb_trampoline_buffer_end): Ditto.
11113 (gdb_trampoline_buffer_error): Ditto.
11114 (struct ipa_sym_addresses): Add fields for new IPA variables.
11115 (symbol_list): Add entries for new IPA variables.
11116 (struct tracepoint): Add fields to hold the address range of the
11117 trampoline used by the tracepoint.
11118 (trampoline_buffer_head): New static variable.
11119 (trampoline_buffer_tail): Ditto.
11120 (claim_trampoline_space): New function.
11121 (have_fast_tracepoint_trampoline_buffer): New function.
11122 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
11123 structure.
11124 (install_fast_tracepoint): Ditto, also add error buffer argument.
11125 (cmd_qtminftpilen): New function.
11126 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
11127 (fast_tracepoint_from_trampoline_address): New function.
11128 (fast_tracepoint_collecting): Handle trampoline as part of jump
11129 pad space.
11130 (set_trampoline_buffer_space): New function.
11131 (initialize_tracepoint): Initialize new IPA variables.
11132 * target.h (struct target_ops): Add arguments to
11133 install_fast_tracepoint_jump_pad operation, add new
11134 get_min_fast_tracepoint_insn_len operation.
11135 (target_get_min_fast_tracepoint_insn_len): New.
11136 (install_fast_tracepoint_jump_pad): Add arguments.
11137 * server.h (IPA_BUFSIZ): Define.
11138 * linux-i386-ipa.c: Include extra header files.
11139 (initialize_fast_tracepoint_trampoline_buffer): New function.
11140 (initialize_low_tracepoint): Call it.
11141 * server.h (set_trampoline_buffer_space): Declare.
11142 (claim_trampoline_space): Ditto.
11143 (have_fast_tracepoint_trampoline_buffer): Ditto.
11144
11145 2011-11-14 Yao Qi <yao@codesourcery.com>
11146
11147 * server.c (handle_query): Handle InstallInTrace for qSupported.
11148 * tracepoint.c (add_tracepoint): Sort list.
11149 (install_tracepoint, download_tracepoint): New.
11150 (cmd_qtdp): Call them to install and download tracepoints.
11151 (sort_tracepoints): Removed.
11152 (cmd_qtstart): Update.
11153
11154 2011-11-14 Yao Qi <yao@codesourcery.com>
11155
11156 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
11157 * mem-break.h: Declare.
11158 * tracepoint.c (cmd_qtstart): Move some code to ...
11159 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
11160 New.
11161 (download_tracepoints): Move some code to ...
11162 (download_tracepoint_1): ... here. New.
11163
11164 2011-11-08 Yao Qi <yao@codesourcery.com>
11165
11166 * remote-utils.c (relocate_instruction): A comment fix.
11167
11168 2011-11-07 Joel Brobecker <brobecker@adacore.com>
11169
11170 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
11171 (i386_dr_low_get_control, i386_dr_low_get_status): Use
11172 dr_status_mirror and dr_control_mirror from debug_reg_state.
11173 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
11174 (i386_initial_stuff): Remove use of deleted globals.
11175 (i386_get_thread_context, i386_set_thread_context,
11176 i386_thread_added): Use dr_status_mirror and dr_control_mirror
11177 from debug_reg_state.
11178
11179 2011-11-05 Yao Qi <yao@codesourcery.com>
11180
11181 * tracepoint.c (gdb_collect): Loop over tracepoints of same
11182 address as TPOINT's.
11183
11184 2011-11-02 Stan Shebs <stan@codesourcery.com>
11185
11186 * tracepoint.c (agent_mem_read_string): New function.
11187 (eval_agent_expr): Call it for tracenz.
11188 * server.c (handle_query): Report support for tracenz.
11189
11190 2011-11-02 Yao Qi <yao@codesourcery.com>
11191
11192 * tracepoint.c (cmd_qtstart): Remove unused local variables.
11193
11194 2011-11-02 Yao Qi <yao@codesourcery.com>
11195
11196 * target.h: Fix a typo in comment.
11197
11198 2011-10-31 Pedro Alves <pedro@codesourcery.com>
11199
11200 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
11201 clobber the breakpoints' shadows with fast tracepoint jumps.
11202 * mem-break.h (check_mem_write): Add `myaddr' parameter.
11203 * target.c (write_inferior_memory): Also pass MYADDR down to
11204 check_mem_write.
11205
11206 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
11207
11208 * configure.ac: Check support for personality routine.
11209 * configure: Regenerate.
11210 * config.in: Likewise.
11211 * linux-low.c: Include <sys/personality.h>.
11212 Define ADDR_NO_RANDOMIZE if necessary.
11213 (linux_create_inferior): Disable address space randomization when
11214 forking inferior, if requested.
11215 (linux_supports_disable_randomization): New function.
11216 (linux_target_ops): Install it.
11217 * server.h (disable_randomization): Declare.
11218 * server.c (disable_randomization): New global variable.
11219 (handle_general_set): Handle QDisableRandomization.
11220 (handle_query): Likewise for qSupported.
11221 (main): Support --disable-randomization and --no-disable-randomization
11222 command line arguments.
11223 * target.h (struct target_ops): Add supports_disable_randomization.
11224 (target_supports_disable_randomization): New macro.
11225
11226 2011-09-29 Mike Frysinger <vapier@gentoo.org>
11227
11228 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
11229 ifdef check.
11230 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
11231 [!PT_GETDSBT] (target_loadmap): New definition.
11232 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
11233 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
11234 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
11235 and PT_GETDSBT to LINUX_LOADMAP.
11236 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
11237 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
11238
11239 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
11240
11241 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
11242 (arm_linux_hwbp_cap): New static variable.
11243 (arm_linux_get_hwbp_cap): Replace by ...
11244 (arm_linux_init_hwbp_cap): ... this new function.
11245 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
11246 (arm_linux_get_hw_watchpoint_count): Likewise.
11247 (arm_linux_get_hw_watchpoint_max_length): Likewise.
11248 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
11249 (arm_prepare_to_resume): Use perror_with_name instead of error.
11250
11251 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
11252
11253 * linux-arm-low.c: Include <signal.h>.
11254 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
11255 (struct arm_linux_hwbp_cap): New data type.
11256 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
11257 (struct arm_linux_hw_breakpoint): New data type.
11258 (MAX_BPTS, MAX_WPTS): Define.
11259 (struct arch_process_info, struct arch_lwp_info): New data types.
11260 (arm_linux_get_hwbp_cap): New function.
11261 (arm_linux_get_hw_breakpoint_count): Likewise.
11262 (arm_linux_get_hw_watchpoint_count): Likewise.
11263 (arm_linux_get_hw_watchpoint_max_length): Likewise.
11264 (arm_hwbp_control_initialize): Likewise.
11265 (arm_hwbp_control_is_enabled): Likewise.
11266 (arm_hwbp_control_is_initialized): Likewise.
11267 (arm_hwbp_control_disable): Likewise.
11268 (arm_linux_hw_breakpoint_equal): Likewise.
11269 (arm_linux_hw_point_initialize): Likewise.
11270 (struct update_registers_data): New data structure.
11271 (update_registers_callback: New function.
11272 (arm_insert_point): Likewise.
11273 (arm_remove_point): Likewise.
11274 (arm_stopped_by_watchpoint): Likewise.
11275 (arm_stopped_data_address): Likewise.
11276 (arm_new_process): Likewise.
11277 (arm_new_thread): Likewise.
11278 (arm_prepare_to_resume): Likewise.
11279 (the_low_target): Register arm_insert_point, arm_remove_point,
11280 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
11281 arm_new_thread, and arm_prepare_to_resume.
11282
11283 2011-09-15 Stan Shebs <stan@codesourcery.com>
11284
11285 * server.h (struct emit_ops): Add compare-goto fields.
11286 * tracepoint.c (gdb_agent_op_sizes): New table.
11287 (emit_eq_goto): New function.
11288 (emit_ne_goto): New function.
11289 (emit_lt_goto): New function.
11290 (emit_le_goto): New function.
11291 (emit_gt_goto): New function.
11292 (emit_ge_goto): New function.
11293 (is_goto_target): New function.
11294 (compile_bytecodes): Recognize special cases of compare-goto
11295 combinations and call specialized emitters for them.
11296 * linux-x86-low.c (amd64_emit_eq_goto): New function.
11297 (amd64_emit_ne_goto): New function.
11298 (amd64_emit_lt_goto): New function.
11299 (amd64_emit_le_goto): New function.
11300 (amd64_emit_gt_goto): New function.
11301 (amd64_emit_ge_goto): New function.
11302 (amd64_emit_ops): Add the new functions.
11303 (i386_emit_eq_goto): New function.
11304 (i386_emit_ne_goto): New function.
11305 (i386_emit_lt_goto): New function.
11306 (i386_emit_le_goto): New function.
11307 (i386_emit_gt_goto): New function.
11308 (i386_emit_ge_goto): New function.
11309 (i386_emit_ops): Add the new functions.
11310
11311 2011-09-08 Stan Shebs <stan@codesourcery.com>
11312
11313 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
11314 (i386_emit_epilogue): Restore %ebx.
11315
11316 2011-08-31 Jie Zhang <jzhang918@gmail.com>
11317
11318 * server.c (step_thread): Remove definition.
11319 (process_serial_event): Don't handle Hs.
11320 * server.h (step_thread): Remove declaration.
11321 * target.c (set_desired_inferior): Remove use of step_thread.
11322
11323 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
11324
11325 * linux-low.c: Include linux-procfs.h.
11326 (linux_attach_lwp_1): Update comments.
11327 (linux_attach): Scan for existing threads when attaching to a
11328 process that is the tgid.
11329 * Makefile.in: Update dependencies.
11330
11331 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
11332
11333 * configure.srv: Add linux-procfs.o dependencies.
11334
11335 2011-08-14 Yao Qi <yao@codesourcery.com>
11336
11337 * target.h (struct target_ops): Fix indent.
11338 * win32-low.c (win32_target_ops): Fix comment.
11339
11340 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
11341 Yao Qi <yao@codesourcery.com>
11342
11343 * Makefile.in (clean): Remove tic6x-*.c files.
11344 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
11345 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
11346 (tic6x-c64xp-linux.c): Likewise.
11347 * configure.srv: Add support for tic6x-*-uclinux.
11348 * linux-tic6x-low.c: New.
11349 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
11350
11351 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
11352 Yao Qi <yao@codesourcery.com>
11353
11354 * target.h (struct target_ops): Add read_loadmap.
11355 * linux-low.c (struct target_loadseg): New type.
11356 (struct target_loadmap): New type.
11357 (linux_read_loadmap): New function.
11358 (linux_target_ops): Add linux_read_loadmap.
11359 * server.c (handle_query): Support qXfer:fdpic:read packet.
11360 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
11361 to NULL.
11362
11363 2011-08-05 Eli Zaretskii <eliz@gnu.org>
11364
11365 * win32-low.c: Include <stdint.h>.
11366
11367 2011-07-22 Pedro Alves <pedro@codesourcery.com>
11368
11369 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
11370 to the inferior here.
11371 (i386_remove_aligned_watchpoint): Ditto.
11372 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
11373 fit part of the watchpoint in the debug registers.
11374 (i386_update_inferior_debug_regs): New.
11375 (i386_low_insert_watchpoint): Work on a local mirror of the debug
11376 registers, and only update the inferior on success.
11377 (i386_low_remove_watchpoint): Ditto.
11378
11379 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
11380
11381 * linux-low.c (compare_ints, unique, list_threads, show_process,
11382 linux_core_of_thread): Delete.
11383 (linux_target_ops): Change linux_core_of_thread to
11384 linux_common_core_of_thread.
11385 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
11386 * utils.c (malloc_failure): Change type of argument.
11387 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
11388 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
11389 common/linux-osdata.c, common/ptid.c and common/buffer.c.
11390 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
11391 (IPA_OBJS): Add common-utils-ipa.o.
11392 (ptid_h, linux_osdata_h): New macros.
11393 (server_h): Add common/common-utils.h, common/xml-utils.h,
11394 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
11395 common/ptid.h.
11396 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
11397 ptid.o, buffer.o): New rules.
11398 (linux-low.o): Add common/linux-osdata.h as a dependency.
11399 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
11400 * configure.ac: Add AC_HEADER_DIRENT check.
11401 * config.in: Regenerate.
11402 * configure: Regenerate.
11403 * remote-utils.c (xml_escape_text): Delete.
11404 (buffer_grow, buffer_free, buffer_init, buffer_finish,
11405 buffer_xml_printf): Move to common/buffer.c.
11406 * server.c (main): Remove call to initialize_inferiors.
11407 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
11408 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
11409 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
11410 internal_error, gdb_assert, gdb_assert_fail): Delete.
11411 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
11412 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
11413 common/buffer.h.
11414 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
11415 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
11416 initialize_inferiors): Delete.
11417
11418 2011-07-20 Pedro Alves <pedro@codesourcery.com>
11419
11420 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
11421 symbol error.
11422
11423 2011-05-31 Pedro Alves <pedro@codesourcery.com>
11424
11425 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
11426 assertion.
11427 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
11428
11429 2011-05-26 Yao Qi <yao@codesourcery.com>
11430
11431 * Makefile.in (thread-db.o): Track dependence to
11432 common/gdb_thread_db.h.
11433 * thread-db.c: include gdb_thread_db.h from right place.
11434
11435 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
11436
11437 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
11438 __FILE__ and __LINE__ to internal_error.
11439
11440 2011-05-13 Doug Evans <dje@google.com>
11441
11442 * thread-db.c (try_thread_db_load_from_sdir): New function.
11443 (try_thread_db_load_from_dir): New function.
11444 (thread_db_load_search): Handle $sdir, ignore $pdir.
11445 Remove trying of system directories if search of
11446 libthread-db-search-path fails, that is now done via $sdir.
11447
11448 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
11449
11450 * server.c (handle_query): Add EnableDisableTracepoints to the list
11451 of supported features.
11452 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
11453 tracepoints.
11454 (cmd_qtenable_disable): New.
11455 (cmd_qtstart): Install tracepoints even if disabled.
11456 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
11457 receiving a QTEnable or QTDisable packet.
11458 (gdb_collect): Skip data collection if fast tracepoint is disabled.
11459 (ust_marker_to_static_tracepoint): Do not ignore disabled static
11460 tracepoints.
11461 (gdb_probe): Skip data collection if static tracepoint is disabled.
11462
11463 2011-05-10 Doug Evans <dje@google.com>
11464
11465 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
11466
11467 2011-05-04 Doug Evans <dje@google.com>
11468
11469 * linux-low.c (linux_join): Skip process lookup.
11470 * spu-low.c (spu_join): Ditto.
11471 * server.c (join_inferiors_callback): Delete.
11472 (process_serial_event): For 'D' packet (detach) call join_inferior
11473 directly.
11474
11475 2011-05-04 Joseph Myers <joseph@codesourcery.com>
11476
11477 * README: Don't mention xscale*-*-linux*.
11478 * configure.srv (xscale*-*-linux*): Don't handle target.
11479
11480 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
11481
11482 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
11483 casting pointers.
11484 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
11485 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
11486 (i386_emit_void_call_2): Likewise.
11487
11488 2011-04-26 Yao Qi <yao@codesourcery.com>
11489
11490 * linux-low.c: Move common macros to linux-ptrace.h.
11491 Include linux-ptrace.h.
11492 * Makefile.in (linux_ptrace_h): New.
11493 (linux-low.o): Depends on linux-ptrace.h.
11494
11495 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11496
11497 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
11498 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
11499 (remote_prepare): New function with most of the TCP code from ...
11500 (remote_open): ... here. Detect PORT here unconditionally. Move also
11501 setting transport_is_reliable.
11502 * server.c (run_once): New variable.
11503 (gdbserver_usage): Document it.
11504 (main): Set run_once for `--once'. Call remote_prepare. Exit after
11505 the first run if RUN_ONCE.
11506 * server.h (run_once, remote_prepare): New declarations.
11507
11508 2011-04-19 Tom Tromey <tromey@redhat.com>
11509
11510 * win32-low.c (handle_load_dll): Remove duplicate "the".
11511
11512 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
11513
11514 Remove support for old Cygwin 1.5 versions.
11515 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
11516 function to avoid warning.
11517 (win32_add_one_solib): Use cygwin_conv_path function to avoid
11518 warning.
11519
11520 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
11521
11522 * gdbserver/server.h (Macro _): Define it if not available.
11523
11524 2011-03-14 Michael Snyder <msnyder@vmware.com>
11525
11526 * hostio.c (handle_close): Remove unnecessary null test.
11527
11528 2011-03-10 Joel Brobecker <brobecker@adacore.com>
11529
11530 * Makefile.in (maintainer-clean realclean distclean): Remove
11531 "make ... subdir_do" command.
11532
11533 2011-03-10 Michael Snyder <msnyder@vmware.com>
11534
11535 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
11536
11537 * server.c (handle_v_run): Free alloced buffer on early return.
11538
11539 2011-03-09 Yao Qi <yao@codesourcery.com>
11540
11541 Revert:
11542 2011-03-04 Yao Qi <yao@codesourcery.com>
11543
11544 * Makefile.in: Remove GNU make feature --directory.
11545
11546 2011-03-05 Yao Qi <yao@codesourcery.com>
11547
11548 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
11549 (subdir_do): New make target. Copied from gdb/Makefile.
11550 (maintainer-clean, realclean, distclean, clean): Call corresponding
11551 make targets in common/Makefile.
11552
11553 2011-02-11 Yao Qi <yao@codesourcery.com>
11554
11555 * configure.ac: Call AC_PROG_RANLIB.
11556 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
11557 * configure: Regenerate.
11558
11559 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
11560
11561 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
11562
11563 2011-03-06 Yao Qi <yao@codesourcery.com>
11564
11565 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
11566
11567 2011-03-05 Yao Qi <yao@codesourcery.com>
11568
11569 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
11570 (subdir_do): New make target. Copied from gdb/Makefile.
11571 (maintainer-clean, realclean, distclean, clean): Call corresponding
11572 make targets in common/Makefile.
11573
11574 2011-03-04 Yao Qi <yao@codesourcery.com>
11575
11576 * Makefile.in: Remove GNU make feature --directory.
11577
11578 2011-03-04 Michael Snyder <msnyder@vmware.com>
11579
11580 * server.c (queue_stop_reply): Call xmalloc not malloc.
11581
11582 2011-03-02 Michael Snyder <msnyder@vmware.com>
11583
11584 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
11585
11586 2011-02-28 Michael Snyder <msnyder@vmware.com>
11587
11588 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
11589 (cmd_qtframe): Ditto.
11590 (cmd_qtbuffer): Ditto.
11591 (cmd_bigqtbuffer): Ditto.
11592
11593 * utils.c (decimal2str): Initialize 'width' to nine, then
11594 don't mess with it.
11595
11596 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
11597
11598 * hostio.c (require_data): Free *data, not data.
11599
11600 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11601
11602 * hostio.c (require_data): Use free, not xfree.
11603
11604 2011-02-27 Michael Snyder <msnyder@vmware.com>
11605
11606 * server.c (handle_query): Discard unused value.
11607
11608 * hostio.c (require_data): Free malloc memory before returning
11609 error.
11610
11611 2011-02-26 Michael Snyder <msnyder@vmware.com>
11612
11613 * linux-low.c (list_threads): Call closedir for dirent.
11614
11615 2011-02-27 Michael Snyder <msnyder@vmware.com>
11616
11617 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
11618 a case statement falls through.
11619
11620 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
11621
11622 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
11623 in comparison.
11624
11625 2011-02-26 Michael Snyder <msnyder@vmware.com>
11626
11627 * utils.c (decimal2str): Eliminate dead code and dead param.
11628 (pulongest): Drop dead param from call to decimal2str.
11629 (plongest): Ditto.
11630
11631 2011-02-24 Joel Brobecker <brobecker@adacore.com>
11632
11633 Revert the following patch (not approved yet):
11634 2011-02-21 Hui Zhu <teawater@gmail.com>
11635 * tracepoint.c (tp_printf): New function.
11636 (eval_agent_expr): Handle gdb_agent_op_printf.
11637
11638 2011-02-21 Hui Zhu <teawater@gmail.com>
11639
11640 * tracepoint.c (tp_printf): New function.
11641 (eval_agent_expr): Handle gdb_agent_op_printf.
11642
11643 2011-02-18 Tom Tromey <tromey@redhat.com>
11644
11645 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
11646 (tracepoint.o): Likewise.
11647 * tracepoint.c (enum gdb_agent_op): Use ax.def.
11648 (gdb_agent_op_names): Likewise.
11649
11650 2011-02-18 Tom Tromey <tromey@redhat.com>
11651
11652 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
11653 gdb_agent_op_rot>: New constants.
11654 (gdb_agent_op_names): Add pick and roll.
11655 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
11656 cases.
11657
11658 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11659
11660 * aclocal.m4: Regenerated with aclocal-1.11.1.
11661
11662 2011-02-14 Pedro Alves <pedro@codesourcery.com>
11663
11664 * server.c (handle_qxfer_traceframe_info): New.
11665 (qxfer_packets): Register "traceframe-info".
11666 (handle_query): Report support for qXfer:traceframe-info:read+.
11667 * tracepoint.c (match_blocktype): New.
11668 (traceframe_find_block_type): Rename to ...
11669 (traceframe_walk_blocks): ... this. Add callback filter argument,
11670 and use it.
11671 (traceframe_find_block_type): New, reimplemented on top of
11672 traceframe_walk_blocks.
11673 (build_traceframe_info_xml): New.
11674 (traceframe_read_info): New.
11675 * server.h (traceframe_read_info): Declare.
11676
11677 2011-02-11 Yao Qi <yao@codesourcery.com>
11678
11679 * configure.ac: Call AC_PROG_RANLIB.
11680 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
11681 * configure: Regenerate.
11682
11683 2011-02-07 Pedro Alves <pedro@codesourcery.com>
11684
11685 * server.c (gdb_read_memory): Change return semantics to allow
11686 partial transfers.
11687 (handle_search_memory_1): Adjust.
11688 (process_serial_event) <'m' packet>: Handle partial transfers.
11689 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
11690
11691 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11692
11693 * regcache.c (init_register_cache): Initialize
11694 regcache->register_status.
11695 (free_register_cache): Release regcache->register_status.
11696 (regcache_cpy): Copy register_status.
11697 (registers_to_string): Print 'x's for unavailable registers.
11698 (supply_register): Mark the register's status valid or
11699 unavailable, depending on whether a buffer was passed in or not.
11700 (supply_register_zeroed): New.
11701 (supply_regblock): Mark the registers' status valid or
11702 unavailable, depending on whether a buffer was passed in or not.
11703 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
11704 (struct regcache): New `register_status' field.
11705 (supply_register_zeroed): Declare.
11706 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
11707 supply_register_zeroed, rather than passing a NULL buffer to
11708 supply_register.
11709 * tracepoint.c (fetch_traceframe_registers): Update comment.
11710
11711 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11712
11713 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
11714 buffer explicit.
11715
11716 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11717
11718 * server.h (decode_xfer_write): Change prototype.
11719 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
11720 and don't extract the annex here.
11721 * server.c (decode_xfer_read): Remove `annex' parameter,
11722 and don't extract the annex here.
11723 (decode_xfer): New.
11724 (struct qxfer): New.
11725 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
11726 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
11727 (handle_qxfer_statictrace): New functions, abstracted out from
11728 handle_query, and made to use the struct qxfer interface.
11729 (handle_threads_qxfer_proper): Rename to ...
11730 (handle_qxfer_threads_proper): ... this.
11731 (handle_threads_qxfer): Rename to ...
11732 (handle_qxfer_threads): ... this. Adjust.
11733 (qxfer_packets): New array.
11734 (handle_qxfer): New function.
11735 (handle_query): Use handle_qxfer.
11736
11737 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
11738
11739 * gdbreplay.c: Shorten lines of >= 80 columns.
11740 * linux-low.c: Ditto.
11741 * linux-ppc-low.c: Ditto.
11742 * linux-s390-low.c: Ditto.
11743 * linux-sparc-low.c: Ditto.
11744 * linux-x86-low.c: Ditto.
11745 * linux-xtensa-low.c: Ditto.
11746 * mem-break.c: Ditto.
11747 * nto-low.c: Ditto.
11748 * regcache.h: Ditto.
11749 * remote-utils.c: Ditto.
11750 * server.c: Ditto.
11751 * server.h: Ditto.
11752 * thread-db.c: Ditto.
11753 * tracepoint.c: Ditto.
11754 * utils.c: Ditto.
11755 * win32-low.h: Ditto.
11756
11757 2011-01-05 Joel Brobecker <brobecker@adacore.com>
11758
11759 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
11760 update.
11761
11762 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11763
11764 * server.c (gdbserver_version): Update copyright year in version
11765 output.
11766 * gdbreplay.c (gdbreplay_version): Ditto.
11767
11768 2010-12-29 Jie Zhang <jie.zhang@analog.com>
11769
11770 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
11771 * linux-bfin-low.c: New file.
11772 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
11773 PT_DATA_ADDR for BFIN targets.
11774 * Makefile.in (SFILES): Add linux-bfin-low.c.
11775 (clean): Remove reg-bfin.c.
11776 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
11777 * README: Mention supported Blackfin targets.
11778
11779 2010-12-23 Mike Frysinger <vapier@gentoo.org>
11780
11781 * .gitignore: New file.
11782
11783 2010-11-16 Mike Frysinger <vapier@gentoo.org>
11784
11785 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
11786
11787 2010-10-22 Jie Zhang <jie@codesourcery.com>
11788
11789 * Makefile.in: Add FLAGS_TO_PASS variable.
11790 (install): Remove dependency of install-only and recursively
11791 invoke make for install-only.
11792
11793 2010-10-04 Doug Evans <dje@google.com>
11794
11795 * Makefile.in (uninstall): Use $(DESTDIR).
11796
11797 2010-09-24 Pedro Alves <pedro@codesourcery.com>
11798
11799 PR gdb/11842
11800
11801 * linux-x86-low.c (compat_siginfo_from_siginfo)
11802 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
11803 si_code is < 0. Check for si_code == SI_TIMER before checking for
11804 si_code < 0.
11805
11806 2010-09-13 Joel Brobecker <brobecker@adacore.com>
11807
11808 * lynx-i386-low.c: New file.
11809 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
11810
11811 2010-09-13 Joel Brobecker <brobecker@adacore.com>
11812
11813 * lynx-low.c (ptrace_request_to_str): Remove handling for
11814 request values that have been removed in LynxOS 5.x.
11815
11816 2010-09-13 Joel Brobecker <brobecker@adacore.com>
11817
11818 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
11819 <ptrace.h>
11820
11821 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
11822
11823 * configure.ac: Add --enable-inprocess-agent option.
11824 * configure: Rebuilt.
11825
11826 2010-09-06 Yao Qi <yao@codesourcery.com>
11827
11828 * linux-low.c (linux_kill): Remove unused variable.
11829 (linux_stabilize_threads): Likewise.
11830 * server.c (start_inferior): Likewise.
11831 (queue_stop_reply_callback): Likewise.
11832 * tracepoint.c (do_action_at_tracepoint): Likewise.
11833
11834 2010-09-06 Yao Qi <yao@codesourcery.com>
11835
11836 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
11837 on return.
11838
11839 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
11840
11841 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
11842
11843 2010-09-06 Pedro Alves <pedro@codesourcery.com>
11844
11845 * Makefile.in (install-only): Replace $IPA_DEPFILES with
11846 "$(IPA_DEPFILES)".
11847
11848 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11849
11850 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
11851 gdbserver/lynx-ppc-low.c: New files.
11852 * Makefile.in (lynx_low_h): New variable.
11853 (lynx-low.o, lynx-ppc-low.o): New rules.
11854 * configure.ac: On LynxOS, link with -lnetinet.
11855 * configure.srv: Add handling of powerpc-*-lynxos* targets.
11856 * configure: regenerate.
11857
11858 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11859
11860 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
11861 * configure.ac: Add check for vasprintf and vsnprintf.
11862 * configure, config.in: Regenerate.
11863 * server.h (vasprintf, vsnprintf): Add conditional declarations.
11864
11865 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11866
11867 * gdbreplay.c: Move include of alloca.h up, next to include of
11868 malloc.h.
11869 * server.h: Add include of malloc.h.
11870 * mem-break.c: Remove include of malloc.h.
11871 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
11872
11873 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11874
11875 * Makefile.in (memmem.o): Build with -Wno-error.
11876
11877 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11878
11879 * utils.c (xsnprintf): Make non-static.
11880 * server.h: Add xsnprintf declaration.
11881 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
11882 replace calls to snprintf by calls to xsnprintf throughout.
11883
11884 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11885
11886 * configure.ac: Add configure check for alloca.
11887 * configure, config.in: Regenerate.
11888 * server.h: Include alloca.h if it exists.
11889 * gdbreplay.c: Include alloca.h if it exists.
11890
11891 2010-08-28 Pedro Alves <pedro@codesourcery.com>
11892
11893 * linux-low.c (__SIGRTMIN): Define if not already defined.
11894 (linux_create_inferior): Check for __ANDROID__ rather than
11895 __SIGRTMIN.
11896 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
11897 are already deferred.
11898 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
11899 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
11900 stopped and already has a pending signal to report.
11901 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
11902 a pending signal to report or is moving out of a jump pad.
11903 (linux_init_signals): Check for __ANDROID__ rather than
11904 __SIGRTMIN.
11905
11906 2010-08-28 Pedro Alves <pedro@codesourcery.com>
11907
11908 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
11909 debug_threads check. Avoid a linear search when not doing debug
11910 output.
11911
11912 2010-08-27 Pedro Alves <pedro@codesourcery.com>
11913
11914 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
11915 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
11916 (struct file_handler) <fd>: Change type to gdb_fildes_t.
11917 (process_event): Change local fd's type to gdb_fildes_t.
11918 (create_file_handler): Adjust prototype.
11919 (delete_file_handler): Adjust prototype.
11920 (handle_file_event): Adjust prototype. Use pfildes.
11921 (create_file_event): Adjsut prototype.
11922 * remote-utils.c (remote_desc, listen_desc): Change type to
11923 gdb_fildes_t.
11924 * server.h: New gdb_fildes_t typedef.
11925 [USE_WIN32API]: Include winsock2.h.
11926 (delete_file_handler, add_file_handler): Adjust prototypes.
11927 (pfildes): Declare.
11928 * utils.c (pfildes): New.
11929
11930 2010-08-27 Pedro Alves <pedro@codesourcery.com>
11931
11932 * configure.ac (build_warnings): Add -Wno-char-subscripts.
11933 * configure: Regenerate.
11934
11935 2010-08-27 Pedro Alves <pedro@codesourcery.com>
11936
11937 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
11938 (linux_done_accessing_memory): ... this.
11939 (linux_target_ops): Adjust.
11940 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
11941 * nto-low.c (nto_target_ops): Adjust comment.
11942 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
11943 * spu-low.c (spu_target_ops): Adjust comment.
11944 * target.h (target_ops): Rename unprepare_to_access_memory field
11945 to done_accessing_memory.
11946 (unprepare_to_access_memory): Rename to ...
11947 (done_accessing_memory): ... this.
11948
11949 2010-08-26 Pedro Alves <pedro@codesourcery.com>
11950
11951 * linux-low.c (linux_prepare_to_access_memory): New.
11952 (linux_unprepare_to_access_memory): New.
11953 (linux_target_ops): Install them.
11954 * server.c (read_memory): Rename to ...
11955 (gdb_read_memory): ... this. Use
11956 prepare_to_access_memory/prepare_to_access_memory.
11957 (write_memory): Rename to ...
11958 (gdb_write_memory): ... this. Use
11959 prepare_to_access_memory/prepare_to_access_memory.
11960 (handle_search_memory_1): Adjust.
11961 (process_serial_event): Adjust.
11962 * target.h (struct target_ops): New fields
11963 prepare_to_access_memory and unprepare_to_access_memory.
11964 (prepare_to_access_memory, unprepare_to_access_memory): New.
11965 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
11966 prepare_to_access_memory/prepare_to_access_memory.
11967 * nto-low.c (nto_target_ops): Adjust.
11968 * spu-low.c (spu_target_ops): Adjust.
11969 * win32-low.c (win32_target_ops): Adjust.
11970
11971 2010-08-26 Pedro Alves <pedro@codesourcery.com>
11972
11973 * Makefile.in (WARN_CFLAGS): Get it from configure.
11974 (WERROR_CFLAGS): New.
11975 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
11976 * configure.ac: Introduce --enable-werror, which adds -Werror to
11977 the compiler command line. Enabled by default. Disable with
11978 --disable-werror. Add -Wdeclaration-after-statement
11979 Wpointer-arith and -Wformat-nonliteral to warning flags.
11980 * configure: Regenerate.
11981
11982 2010-08-26 Pedro Alves <pedro@codesourcery.com>
11983
11984 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
11985
11986 2010-08-26 Pedro Alves <pedro@codesourcery.com>
11987
11988 * gdbreplay.c (remote_error): New.
11989 (gdbchar): New.
11990 (expect): Use gdbchar. Check for error reading from GDB.
11991 Clarify sync error output.
11992 (play): Check for errors writing to GDB.
11993 * linux-low.c (sigchld_handler): Really ignore `write' errors.
11994 * remote-utils.c (getpkt): Check for errors writing to the remote
11995 descriptor.
11996
11997 2010-08-25 Pedro Alves <pedro@codesourcery.com>
11998
11999 * linux-low.c (linux_wait_1): Move non-debugging code out of
12000 `debug_threads' control.
12001
12002 2010-08-25 Pedro Alves <pedro@codesourcery.com>
12003
12004 * linux-low.c (linux_wait_1): Don't set last_status here.
12005 * server.c (push_event, queue_stop_reply_callback): Assert we're
12006 not pushing a TARGET_WAITKIND_IGNORE event.
12007 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
12008 (myresume, handle_target_event): Set the thread's last_resume_kind
12009 and last_status from the target returned status.
12010
12011 2010-08-25 Pedro Alves <pedro@codesourcery.com>
12012
12013 PR threads/10729
12014
12015 * linux-x86-low.c (update_debug_registers_callback): New.
12016 (i386_dr_low_set_addr): Use it.
12017 (i386_dr_low_get_addr): New.
12018 (i386_dr_low_set_control): Use update_debug_registers_callback.
12019 (i386_dr_low_get_control): New.
12020 (i386_dr_low_get_status): Adjust.
12021 * linux-low.c (linux_stop_lwp): New.
12022 * linux-low.h (linux_stop_lwp): Declare.
12023
12024 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
12025 argument instead of a i386_debug_reg_state.
12026 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
12027 a i386_debug_reg_state.
12028 (i386_insert_aligned_watchpoint): Adjust.
12029 (i386_remove_aligned_watchpoint): Adjust.
12030 (i386_low_stopped_data_address): Read the debug registers from the
12031 inferior instead of from the mirrors.
12032 * i386-low.h (struct i386_debug_reg_state): Extend comment.
12033 (i386_dr_low_get_addr): Declare.
12034 (i386_dr_low_get_control): Declare.
12035 (i386_dr_low_get_status): Change prototype.
12036
12037 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
12038 (i386_dr_low_get_addr): New.
12039 (i386_dr_low_get_control): New.
12040 (i386_dr_low_get_status): Adjust prototype. Return
12041 dr_status_mirror.
12042 (i386_initial_stuff): Clear dr_status_mirror and
12043 dr_control_mirror.
12044 (i386_get_thread_context): Adjust.
12045 (i386_set_thread_context): Adjust.
12046 (i386_thread_added): Adjust.
12047
12048 2010-08-24 Pedro Alves <pedro@codesourcery.com>
12049
12050 * linux-low.h (linux_thread_area): Delete declaration.
12051
12052 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
12053
12054 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
12055 after its termination.
12056
12057 2010-08-09 Pedro Alves <pedro@codesourcery.com>
12058
12059 * linux-low.c (gdb_wants_lwp_stopped): Delete.
12060 (gdb_wants_all_stopped): Delete.
12061 (linux_wait_1): Don't call them.
12062 * server.c (handle_v_cont): Tag all threads as want-stopped.
12063 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
12064 stopped as "client-wants-stopped".
12065
12066 2010-07-31 Pedro Alves <pedro@codesourcery.com>
12067
12068 * Makefile.in (signals_h): New.
12069 (server_h): Depend on it.
12070 (server.o): Don't depend on $(signals_def).
12071 (signals.o): Depend on $(signals_def).
12072
12073 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
12074
12075 * Makefile.in (signals_def): New.
12076 (server_h): Append include/gdb/signals.h and signals_def.
12077 (server.o): Append signals_def.
12078
12079 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
12080
12081 * server.c (handle_target_event): Use target_signal_to_host for
12082 resume_info.sig initialization.
12083 * target.h (struct thread_resume) <sig>: New comment.
12084
12085 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
12086
12087 * server.c (handle_query): strcpy() the returned string from paddress()
12088 instead of sprintf().
12089 * utils.c (paddress): Return phex_nz().
12090
12091 2010-07-07 Joel Brobecker <brobecker@adacore.com>
12092
12093 * server.c (handle_v_cont): Call mourn_inferior if process
12094 just exited.
12095 (myresume): Likewise.
12096
12097 2010-07-01 Pedro Alves <pedro@codesourcery.com>
12098
12099 Static tracepoints, and integration with UST.
12100
12101 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
12102 * mem-break.c (uninsert_all_breakpoints)
12103 (reinsert_all_breakpoints): New.
12104 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
12105 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
12106 (gdb_agent_ust_loaded, helper_thread_id)
12107 (gdb_agent_helper_thread_id): New macros.
12108 (struct ipa_sym_addresses): Add addr_ust_loaded,
12109 addr_helper_thread_id, addr_cmd_buf.
12110 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
12111 (in_process_agent_loaded_ust): New.
12112 (write_e_ust_not_loaded): New.
12113 (maybe_write_ipa_ust_not_loaded): New.
12114 (struct collect_static_trace_data_action): New.
12115 (enum tracepoint_type) <static_tracepoint>: New.
12116 (struct tracepoint) <handle>: Mention static tracepoints.
12117 (struct static_tracepoint_ctx): New.
12118 (CMD_BUF_SIZE): New.
12119 (add_tracepoint_action): Handle static tracepoint actions.
12120 (unprobe_marker_at): New.
12121 (clear_installed_tracepoints): Handle static tracepoints.
12122 (cmd_qtdp): Handle static tracepoints.
12123 (probe_marker_at): New.
12124 (cmd_qtstart): Handle static tracepoints.
12125 (response_tracepoint): Handle static tracepoints.
12126 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
12127 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
12128 (get_context_regcache): Handle static tracepoints.
12129 (do_action_at_tracepoint): Handle static tracepoint actions.
12130 (traceframe_find_block_type): Handle static trace data blocks.
12131 (traceframe_read_sdata): New.
12132 (download_tracepoints): Download static tracepoint actions.
12133 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
12134 (GDB_PROBE_NAME): New.
12135 (ust_ops): New.
12136 (GET_UST_SYM): New.
12137 (USTF): New.
12138 (dlsym_ust): New.
12139 (ust_marker_to_static_tracepoint): New.
12140 (gdb_probe): New.
12141 (collect_ust_data_at_tracepoint): New.
12142 (gdb_ust_probe): New.
12143 (UNIX_PATH_MAX, SOCK_DIR): New.
12144 (gdb_ust_connect_sync_socket): New.
12145 (resume_thread, stop_thread): New.
12146 (run_inferior_command): New.
12147 (init_named_socket): New.
12148 (gdb_ust_socket_init): New.
12149 (cstr_to_hexstr): New.
12150 (next_st): New.
12151 (first_marker, next_marker): New.
12152 (response_ust_marker): New.
12153 (cmd_qtfstm, cmd_qtsstm): New.
12154 (unprobe_marker_at, probe_marker_at): New.
12155 (cmd_qtstmat, gdb_ust_thread): New.
12156 (gdb_ust_init): New.
12157 (initialize_tracepoint_ftlib): Call gdb_ust_init.
12158 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
12159 (ST_REGENTRY): New.
12160 (x86_64_st_collect_regmap): New.
12161 (X86_64_NUM_ST_COLLECT_GREGS): New.
12162 (AMD64_RIP_REGNUM): New.
12163 (supply_static_tracepoint_registers): New.
12164 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
12165 (ST_REGENTRY): New.
12166 (i386_st_collect_regmap): New.
12167 (i386_NUM_ST_COLLECT_GREGS): New.
12168 (supply_static_tracepoint_registers): New.
12169 * server.c (handle_query): Handle qXfer:statictrace:read.
12170 <qSupported>: Report support for StaticTracepoints, and
12171 qXfer:statictrace:read features.
12172 * server.h (traceframe_read_sdata)
12173 (supply_static_tracepoint_registers): Declare.
12174 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
12175 (unpack_varlen_hex): Include in IPA build.
12176 * Makefile.in (ustlibs, ustinc): New.
12177 (IPA_OBJS): Add remote-utils-ipa.o.
12178 ($(IPA_LIB)): Link -ldl and -lpthread.
12179 (UST_CFLAGS): New.
12180 (IPAGENT_CFLAGS): Add UST_CFLAGS.
12181 * config.in, configure: Regenerate.
12182
12183 2010-06-20 Ian Lance Taylor <iant@google.com>
12184 Pedro Alves <pedro@codesourcery.com>
12185
12186 * linux-x86-low.c (always_true): Delete.
12187 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
12188 trying to fool the compiler with always_true.
12189
12190 2010-06-20 Pedro Alves <pedro@codesourcery.com>
12191
12192 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
12193 conditions in gdbserver.
12194
12195 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
12196
12197 * spu-low.c (spu_read_memory): Wrap around local store limit.
12198 (spu_write_memory): Likewise.
12199
12200 2010-06-15 Pedro Alves <pedro@codesourcery.com>
12201
12202 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
12203 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
12204 LONGEST uses.
12205 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
12206 uses.
12207 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
12208 uses with LONGEST uses.
12209
12210 2010-06-14 Stan Shebs <stan@codesourcery.com>
12211 Pedro Alves <pedro@codesourcery.com>
12212
12213 Bytecode compiler.
12214
12215 * linux-x86-low.c: Include limits.h.
12216 (add_insns): New.
12217 (always_true): New.
12218 (EMIT_ASM): New.
12219 (EMIT_ASM32): New.
12220 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
12221 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
12222 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
12223 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
12224 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
12225 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
12226 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
12227 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
12228 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
12229 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
12230 (amd64_emit_void_call_2): New.
12231 (amd64_emit_ops): New.
12232 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
12233 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
12234 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
12235 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
12236 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
12237 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
12238 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
12239 (i386_emit_call, i386_emit_reg, i386_emit_pop)
12240 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
12241 (i386_emit_stack_adjust, i386_emit_int_call_1)
12242 (i386_emit_void_call_2): New.
12243 (i386_emit_ops): New.
12244 (x86_emit_ops): New.
12245 (the_low_target): Install x86_emit_ops.
12246 * server.h (struct emit_ops): New.
12247 (get_raw_reg_func_addr): Declare.
12248 (current_insn_ptr, emit_error): Declare.
12249 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
12250 (set_trace_state_variable_value): New defines.
12251 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
12252 addr_get_trace_state_variable_value and
12253 addr_set_trace_state_variable_value.
12254 (symbol_list): New fields for get_raw_reg,
12255 get_trace_state_variable_value and set_trace_state_variable_value.
12256 (condfn): New typedef.
12257 (struct tracepoint): New field `compiled_cond'.
12258 (do_action_at_tracepoint): Clear compiled_cond.
12259 (get_trace_state_variable_value, set_trace_state_variable_value):
12260 Export in the IPA.
12261 (condition_true_at_tracepoint): If there's a compiled condition,
12262 run that.
12263 (current_insn_ptr, emit_error): New globals.
12264 (struct bytecode_address): New.
12265 (get_raw_reg_func_addr): New.
12266 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
12267 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
12268 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
12269 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
12270 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
12271 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
12272 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
12273 (compile_tracepoint_condition, compile_bytecodes): New.
12274 * target.h (emit_ops): Forward declare.
12275 (struct target_ops): New field emit_ops.
12276 (target_emit_ops): New.
12277 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
12278 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
12279 * linux-low.c (linux_emit_ops): New.
12280 (linux_target_ops): Install it.
12281 * linux-low.h (struct linux_target_ops): New field emit_ops.
12282
12283 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
12284
12285 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
12286 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
12287
12288 2010-06-01 Pedro Alves <pedro@codesourcery.com>
12289 Stan Shebs <stan@codesourcery.com>
12290
12291 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
12292 (all): Depend on $(extra_libraries).
12293 (install-only): Install the IPA.
12294 (IPA_OBJS, IPA_LIB): New.
12295 (clean): Remove the IPA lib.
12296 (IPAGENT_CFLAGS): New.
12297 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
12298 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
12299 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
12300 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
12301 * configure.ac: Check for atomic builtins support in the compiler.
12302 (IPA_DEPFILES, extra_libraries): Define.
12303 * configure.srv (ipa_obj): Add description.
12304 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
12305 (i[34567]86-*-linux*): Set ipa_obj.
12306 (x86_64-*-linux*): Set ipa_obj.
12307 * linux-low.c (stabilizing_threads): New.
12308 (supports_fast_tracepoints): New.
12309 (linux_detach): Stabilize threads before detaching.
12310 (handle_tracepoints): Handle internal tracing breakpoints. Assert
12311 the lwp is either not stabilizing, or is moving out of a jump pad.
12312 (linux_fast_tracepoint_collecting): New.
12313 (maybe_move_out_of_jump_pad): New.
12314 (enqueue_one_deferred_signal): New.
12315 (dequeue_one_deferred_signal): New.
12316 (linux_wait_for_event_1): If moving out of a jump pad, defer
12317 pending signals to later.
12318 (linux_stabilize_threads): New.
12319 (linux_wait_1): Check if threads need moving out of jump pads, and
12320 do it if so.
12321 (stuck_in_jump_pad_callback): New.
12322 (move_out_of_jump_pad_callback): New.
12323 (lwp_running): New.
12324 (linux_resume_one_lwp): Handle moving out of jump pads.
12325 (linux_set_resume_request): Dequeue deferred signals.
12326 (need_step_over_p): Also step over fast tracepoint jumps.
12327 (start_step_over): Also uninsert fast tracepoint jumps.
12328 (finish_step_over): Also reinsert fast tracepoint jumps.
12329 (linux_install_fast_tracepoint_jump): New.
12330 (linux_target_ops): Install linux_stabilize_threads and
12331 linux_install_fast_tracepoint_jump_pad.
12332 * linux-low.h (linux_target_ops) <get_thread_area,
12333 install_fast_tracepoint_jump_pad>: New fields.
12334 (struct lwp_info) <collecting_fast_tracepoint,
12335 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
12336 (linux_get_thread_area): Declare.
12337 * linux-x86-low.c (jump_insn): New.
12338 (x86_get_thread_area): New.
12339 (append_insns): New.
12340 (push_opcode): New.
12341 (amd64_install_fast_tracepoint_jump_pad): New.
12342 (i386_install_fast_tracepoint_jump_pad): New.
12343 (x86_install_fast_tracepoint_jump_pad): New.
12344 (the_low_target): Install x86_get_thread_area and
12345 x86_install_fast_tracepoint_jump_pad.
12346 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
12347 (struct fast_tracepoint_jump): New.
12348 (fast_tracepoint_jump_insn): New.
12349 (fast_tracepoint_jump_shadow): New.
12350 (find_fast_tracepoint_jump_at): New.
12351 (fast_tracepoint_jump_here): New.
12352 (delete_fast_tracepoint_jump): New.
12353 (set_fast_tracepoint_jump): New.
12354 (uninsert_fast_tracepoint_jumps_at): New.
12355 (reinsert_fast_tracepoint_jumps_at): New.
12356 (set_breakpoint_at): Use write_inferior_memory.
12357 (uninsert_raw_breakpoint): Use write_inferior_memory.
12358 (check_mem_read): Mask out fast tracepoint jumps.
12359 (check_mem_write): Mask out fast tracepoint jumps.
12360 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
12361 (set_fast_tracepoint_jump): Declare.
12362 (delete_fast_tracepoint_jump)
12363 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
12364 (reinsert_fast_tracepoint_jumps_at): Declare.
12365 * regcache.c: Don't compile many functions when building the
12366 in-process agent library.
12367 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
12368 the register buffer in the heap.
12369 (free_register_cache): If the register buffer isn't owned by the
12370 regcache, don't free it.
12371 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
12372 pre-existing register caches.
12373 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
12374 type.
12375 (convert_ascii_to_int): : Constify `from' parameter type.
12376 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
12377 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
12378 the needed buffer in-place.
12379 (relocate_instruction): New.
12380 * server.c (handle_query) <qSymbols>: If the target supports
12381 tracepoints, give it a chance of looking up symbols. Report
12382 support for fast tracepoints.
12383 (handle_status): Stabilize threads.
12384 (process_serial_event): Adjust.
12385 * server.h (struct fast_tracepoint_jump): Forward declare.
12386 (struct process_info) <fast_tracepoint_jumps>: New field.
12387 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
12388 (decode_X_packet, decode_M_packet): Adjust.
12389 (relocate_instruction): Declare.
12390 (in_process_agent_loaded): Declare.
12391 (tracepoint_look_up_symbols): Declare.
12392 (struct fast_tpoint_collect_status): Declare.
12393 (fast_tracepoint_collecting): Declare.
12394 (force_unlock_trace_buffer): Declare.
12395 (handle_tracepoint_bkpts): Declare.
12396 (initialize_low_tracepoint)
12397 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
12398 * target.h (struct target_ops) <stabilize_threads,
12399 install_fast_tracepoint_jump_pad>: New fields.
12400 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
12401 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
12402 [HAVE_STDINT_H]: Include stdint.h.
12403 (trace_debug_1): Rename to ...
12404 (trace_vdebug): ... this.
12405 (trace_debug): Rename to ...
12406 (trace_debug_1): ... this. Add `level' parameter.
12407 (trace_debug): New.
12408 (ATTR_USED, ATTR_NOINLINE): New.
12409 (IP_AGENT_EXPORT): New.
12410 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12411 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
12412 (about_to_request_buffer_space, trace_buffer_is_full)
12413 (stopping_tracepoint, expr_eval_result, error_tracepoint)
12414 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
12415 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
12416 (traceframe_write_count, traceframes_created)
12417 (trace_state_variables)
12418 New renaming defines.
12419 (struct ipa_sym_addresses): New.
12420 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
12421 (symbol_list): New.
12422 (ipa_sym_addrs): New.
12423 (all_tracepoint_symbols_looked_up): New.
12424 (in_process_agent_loaded): New.
12425 (write_e_ipa_not_loaded): New.
12426 (maybe_write_ipa_not_loaded): New.
12427 (tracepoint_look_up_symbols): New.
12428 (debug_threads) [IN_PROCESS_AGENT]: New.
12429 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
12430 (UNKNOWN_SIDE_EFFECTS): New.
12431 (stop_tracing): New.
12432 (flush_trace_buffer): New.
12433 (stop_tracing_bkpt): New.
12434 (flush_trace_buffer_bkpt): New.
12435 (read_inferior_integer): New.
12436 (read_inferior_uinteger): New.
12437 (read_inferior_data_pointer): New.
12438 (write_inferior_data_pointer): New.
12439 (write_inferior_integer): New.
12440 (write_inferior_uinteger): New.
12441 (struct collect_static_trace_data_action): Delete.
12442 (enum tracepoint_type): New.
12443 (struct tracepoint) <type>: New field `type'.
12444 <actions_str, step_actions, step_actions_str>: Only include in
12445 GDBserver.
12446 <orig_size, obj_addr_on_target, adjusted_insn_addr>
12447 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
12448 (tracepoints): Use IP_AGENT_EXPORT.
12449 (last_tracepoint): Don't include in the IPA.
12450 (stopping_tracepoint): Use IP_AGENT_EXPORT.
12451 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
12452 (alloced_trace_state_variables): New.
12453 (trace_state_variables): Use IP_AGENT_EXPORT.
12454 (traceframe_t): Delete unused variable.
12455 (circular_trace_buffer): Don't include in the IPA.
12456 (trace_buffer_start): Delete.
12457 (struct trace_buffer_control): New.
12458 (trace_buffer_free): Delete.
12459 (struct ipa_trace_buffer_control): New.
12460 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
12461 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
12462 New.
12463 (trace_buffer_ctrl): New.
12464 (TRACE_BUFFER_CTRL_CURR): New.
12465 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
12466 Reimplement as macros.
12467 (trace_buffer_wrap): Delete.
12468 (traceframe_write_count, traceframe_read_count)
12469 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
12470 (struct tracepoint_hit_ctx) <type>: New field.
12471 (struct fast_tracepoint_ctx): New.
12472 (memory_barrier): New.
12473 (cmpxchg): New.
12474 (record_tracepoint_error): Update atomically in the IPA.
12475 (clear_inferior_trace_buffer): New.
12476 (about_to_request_buffer_space): New.
12477 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
12478 updating the same buffer.
12479 (add_tracepoint): Default the tracepoint's type to trap
12480 tracepoint, and orig_size to -1.
12481 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
12482 internal variables.
12483 (create_trace_state_variable): New parameter `gdb'. Handle it.
12484 (clear_installed_tracepoints): Clear fast tracepoint jumps.
12485 (cmd_qtdp): Handle fast tracepoints.
12486 (cmd_qtdv): Adjust.
12487 (max_jump_pad_size): New.
12488 (gdb_jump_pad_head): New.
12489 (get_jump_space_head): New.
12490 (claim_jump_space): New.
12491 (sort_tracepoints): New.
12492 (MAX_JUMP_SIZE): New.
12493 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
12494 IPA.
12495 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
12496 support. Upload fast traceframes, and delete internal IPA
12497 breakpoints.
12498 (stop_tracing_handler): New.
12499 (flush_trace_buffer_handler): New.
12500 (cmd_qtstop): Upload fast tracepoints.
12501 (response_tracepoint): Handle fast tracepoints.
12502 (tracepoint_finished_step): Upload fast traceframes. Set the
12503 tracepoint hit context's tracepoint type.
12504 (handle_tracepoint_bkpts): New.
12505 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
12506 type. Add comment about fast tracepoints.
12507 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
12508 non-existing action_str field.
12509 (get_context_regcache): Handle fast tracepoints.
12510 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
12511 to the regcache.
12512 (fast_tracepoint_from_jump_pad_address): New.
12513 (fast_tracepoint_from_ipa_tpoint_address): New.
12514 (collecting_t): New.
12515 (force_unlock_trace_buffer): New.
12516 (fast_tracepoint_collecting): New.
12517 (collecting): New.
12518 (gdb_collect): New.
12519 (write_inferior_data_ptr): New.
12520 (target_tp_heap): New.
12521 (target_malloc): New.
12522 (download_agent_expr): New.
12523 (UALIGN): New.
12524 (download_tracepoints): New.
12525 (download_trace_state_variables): New.
12526 (upload_fast_traceframes): New.
12527 (IPA_FIRST_TRACEFRAME): New.
12528 (IPA_NEXT_TRACEFRAME_1): New.
12529 (IPA_NEXT_TRACEFRAME): New.
12530 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
12531 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
12532 (gdb_jump_pad_buffer_end): New.
12533 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
12534 (initialize_tracepoint): Adjust.
12535 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
12536 buffer. Initialize the low module.
12537 * utils.c (PREFIX, TOOLNAME): New.
12538 (malloc_failure): Use PREFIX.
12539 (error): In the IPA, an error causes an exit.
12540 (fatal, warning): Use PREFIX.
12541 (internal_error): Use TOOLNAME.
12542 (NUMCELLS): Increase to 10.
12543 * configure, config.in: Regenerate.
12544
12545 2010-06-01 Pedro Alves <pedro@codesourcery.com>
12546
12547 * server.c (handle_query) <qSupported>: Do two passes over the
12548 qSupported string to avoid nesting strtok.
12549
12550 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12551
12552 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
12553 (CDEPS): New.
12554 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
12555 -Wl,--dynamic-list.
12556 * configure: Regenerate.
12557 * proc-service.list: New.
12558
12559 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12560
12561 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
12562 New comment.
12563
12564 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
12565
12566 * gdbreplay.c (remote_open): Check error return from socket() call by
12567 its equality to -1 not by it being negative.
12568 * remote-utils.c (remote_open): Likewise.
12569
12570 2010-05-23 Pedro Alves <pedro@codesourcery.com>
12571
12572 * config.h: Regenerate.
12573
12574 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
12575
12576 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
12577 doesn't provide PTRACE_GET_THREAD_AREA.
12578
12579 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
12580
12581 * linux-m68k-low.c: Include <asm/ptrace.h>
12582 (ps_get_thread_area): Implement.
12583
12584 2010-05-03 Doug Evans <dje@google.com>
12585
12586 * event-loop.c (struct callback_event): New struct.
12587 (callback_list): New global.
12588 (append_callback_event, delete_callback_event): New functions.
12589 (process_callback): New function.
12590 (start_event_loop): Call it.
12591 * remote-utils.c (NOT_SCHEDULED): Define.
12592 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
12593 moved out of readchar.
12594 (readchar): Rewrite. Call reschedule before returning.
12595 (reset_readchar): New function.
12596 (remote_close): Call it.
12597 (process_remaining, reschedule): New functions.
12598 * server.h (callback_handler_func): New typedef.
12599 (append_callback_event, delete_callback_event): Declare.
12600
12601 2010-05-03 Pedro Alves <pedro@codesourcery.com>
12602
12603 * proc-service.c (ps_pglobal_lookup): Use
12604 thread_db_look_up_one_symbol.
12605 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
12606 parameter. Use it instead of all_symbols_looked_up.
12607 * server.h (struct process_info) <all_symbols_looked_up>: Delete
12608 field.
12609 (all_symbols_looked_up): Don't declare.
12610 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
12611 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
12612 field.
12613 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
12614 Set all_symbols_looked_up here.
12615 (thread_db_look_up_one_symbol): New.
12616 (thread_db_get_tls_address): Adjust.
12617 (thread_db_load_search, try_thread_db_load_1): Always allocate the
12618 thread_db object on the heap, and tentatively set it in the
12619 process structure.
12620 (thread_db_init): Don't set all_symbols_looked_up here.
12621 * linux-low.h (thread_db_look_up_one_symbol): Declare.
12622
12623 2010-05-03 Pedro Alves <pedro@codesourcery.com>
12624
12625 * linux-low.c (linux_kill, linux_detach): Adjust.
12626 (status_pending_p_callback): Remove redundant statement. Check
12627 for !TARGET_WAITIKIND_IGNORE, instead of
12628 TARGET_WAITKIND_STOPPED.
12629 (handle_tracepoints): Make sure LWP is locked. Adjust.
12630 (linux_wait_for_event_1): Adjust.
12631 (linux_cancel_breakpoints): New.
12632 (unsuspend_one_lwp): New.
12633 (unsuspend_all_lwps): New.
12634 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
12635 (send_sigstop_callback): Change return type to int, add new
12636 `except' parameter and handle it.
12637 (suspend_and_send_sigstop_callback): New.
12638 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
12639 pass them down. If SUSPEND, also increment the lwp's suspend
12640 count.
12641 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
12642 (need_step_over_p): Don't consider suspended LWPs.
12643 (start_step_over): Adjust.
12644 (proceed_one_lwp): Change return type to int, add new `except'
12645 parameter and handle it.
12646 (unsuspend_and_proceed_one_lwp): New.
12647 (proceed_all_lwps): Use find_inferior instead of
12648 for_each_inferior.
12649 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
12650 also decrement the suspend count of LWPs. Pass `except' down,
12651 instead of hacking its suspend count.
12652 (linux_pause_all): Add `freeze' parameter. Adjust.
12653 (linux_unpause_all): New.
12654 (linux_target_ops): Install linux_unpause_all.
12655 * server.c (handle_status): Adjust.
12656 * target.h (struct target_ops): New fields `unpause_all' and
12657 `cancel_breakpoints'. Add new parameter to `pause_all'.
12658 (pause_all): Add new `freeze' parameter.
12659 (unpause_all): New.
12660 (cancel_breakpoints): New.
12661 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
12662 cancel breakpoints.
12663 (cmd_qtstart): Pause threads.
12664 (stop_tracing): Pause threads, and cancel breakpoints.
12665 * win32-low.c (win32_target_ops): Adjust.
12666
12667 2010-05-03 Pedro Alves <pedro@codesourcery.com>
12668
12669 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
12670 the inferior right away from here...
12671 (linux_wait_1): ... to here, and adjust to check the thread's
12672 last_resume_kind instead of the lwp's step or stop_expected flags.
12673
12674 2010-05-02 Pedro Alves <pedro@codesourcery.com>
12675
12676 * README: Use consistent `GDB' and `GDBserver' spellings.
12677
12678 2010-05-02 Pedro Alves <pedro@codesourcery.com>
12679
12680 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
12681 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
12682 (linux_detach_one_lwp): Assume the lwp is stopped.
12683 (any_thread_of): Delete.
12684 (linux_detach): Stop all lwps here. Don't blindly delete all
12685 breakpoints.
12686 (delete_lwp_callback): New.
12687 (linux_mourn): Delete all lwps of the process that is gone.
12688 (linux_wait_1): Don't delete the last lwp of the process here.
12689 * mem-break.h (mark_breakpoints_out): Declare.
12690 * mem-break.c (mark_breakpoints_out): New.
12691 (free_all_breakpoints): Use it.
12692 * server.c (handle_target_event): If the process is gone, mark
12693 breakpoints out.
12694 * thread-db.c (struct thread_db) <create_bp>: New field.
12695 (thread_db_enable_reporting): Fix prototype. Store a thread event
12696 breakpoint reference in the thread_db struct.
12697 (thread_db_load_search): Clear the thread_db object.
12698 (try_thread_db_load_1): Ditto.
12699 (switch_to_process): New.
12700 (disable_thread_event_reporting): Use it.
12701 (remove_thread_event_breakpoints): New.
12702 (thread_db_detach, thread_db_mourn): Use it.
12703
12704 2010-05-01 Pedro Alves <pedro@codesourcery.com>
12705
12706 * linux-low.c (linux_enable_event_reporting): New.
12707 (linux_wait_for_event_1, handle_extended_wait): Use it.
12708
12709 2010-04-30 Pedro Alves <pedro@codesourcery.com>
12710
12711 * linux-low.c (linux_kill_one_lwp, linux_kill)
12712 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
12713 (send_sigstop): Take an lwp_info as parameter instead. Queue a
12714 SIGSTOP even if the LWP is stopped.
12715 (send_sigstop_callback): New.
12716 (stop_all_lwps): Use send_sigstop_callback instead.
12717 (linux_resume_one_thread): Adjust.
12718 (proceed_one_lwp): Still proceed an LWP that the client has
12719 requested to stop, if we haven't reported it as stopped yet. Make
12720 sure that LWPs the client want stopped, have a pending SIGSTOP.
12721
12722 2010-04-26 Doug Evans <dje@google.com>
12723
12724 * server.c (handle_general_set): Make static.
12725
12726 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
12727 Print received char after testing for error/eof instead of before.
12728 (input_interrupt): Tweak comment.
12729
12730 2010-04-23 Doug Evans <dje@google.com>
12731
12732 * server.c (start_inferior): Print inferior argv if --debug.
12733
12734 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
12735
12736 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
12737 * nto-x86-low.c: Include server.h
12738
12739 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
12740
12741 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
12742 be consistent with other sources of this directory.
12743 (init_registers_amd64): Correct name of source file of this function
12744 in the comment.
12745
12746 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
12747
12748 * configure.srv (x86_64-*-mingw*): New configuration for Windows
12749 64-bit executables.
12750
12751 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
12752
12753 * win32-i386-low.c: Add 64-bit support.
12754 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
12755 (init_registers_amd64): Declare.
12756 (mappings): Add 64-bit version of array.
12757 (init_windows_x86): New function.
12758 (the_low_target): Change init_arch field to init_windows_x86.
12759
12760 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
12761
12762 * win32-low.c: Adapt to support also 64-bit architecture.
12763 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
12764 (get_image_name): Use SIZE_T type for local variable `done'.
12765 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
12766 (toolhelp_get_dll_name): Idem.
12767 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
12768 Use uintptr_t typecast to avoid warning.
12769 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
12770 (handle_exception): Use phex_nz to avoid warning.
12771 (win32_wait): Remove unused local variable `process'.
12772
12773 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
12774
12775 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
12776 `amd64-avx.o'.
12777
12778 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
12779
12780 * configure.ac: Use `ws2_32' library for srv_mingw.
12781 * configure: Regenerate.
12782 * gdbreplay.c: Include winsock2.h instead of winsock.h.
12783 * remote-utils.c: Likewise.
12784
12785 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
12786
12787 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
12788 if __x86_64__ is defined.
12789
12790 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
12791
12792 * configure: Regenerate.
12793
12794 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
12795
12796 * server.c (handle_query): Handle 'qGetTIBAddr' query.
12797 * target.h (target_ops): New get_tib_address field.
12798 * win32-low.h (win32_thread_info): Add thread_local_base field.
12799 * win32-low.c (child_add_thread): Add tlb argument.
12800 Set thread_local_base field to TLB.
12801 (get_child_debug_event): Adapt to child_add_thread change.
12802 (win32_get_tib_address): New function.
12803 (win32_target_ops): Set get_tib_address field to
12804 win32_get_tib_address.
12805 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
12806
12807 2010-04-12 Pedro Alves <pedro@codesourcery.com>
12808
12809 * linux-low.c (linux_mourn): Also remove the process.
12810 * server.c (handle_target_event): Don't remove the process here.
12811 * nto-low.c (nto_mourn): New.
12812 (nto_target_ops): Install it.
12813 * spu-low.c (spu_mourn): New.
12814 (spu_target_ops): Install it.
12815 * win32-low.c (win32_mourn): New.
12816 (win32_target_ops): Install it.
12817
12818 2010-04-12 Pedro Alves <pedro@codesourcery.com>
12819
12820 * server.h (buffer_xml_printf): Remove redundant `;'.
12821
12822 2010-04-12 Pedro Alves <pedro@codesourcery.com>
12823
12824 * regcache.c (set_register_cache): Invalidate regcaches before
12825 changing the register cache layout.
12826 (regcache_invalidate_one): Allow a NULL regcache.
12827 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
12828 regcaches before changing the register cache layout or the target
12829 regsets.
12830
12831 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
12832
12833 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
12834 variable warning on Linux/x86-64.
12835
12836 2010-04-11 Pedro Alves <pedro@codesourcery.com>
12837
12838 GDBserver disconnected tracing support.
12839
12840 * linux-low.c (linux_remove_process): Delete.
12841 (add_lwp): Don't set last_resume_kind here.
12842 (linux_kill): Use `mourn'.
12843 (linux_detach): Use `thread_db_detach', and `mourn'.
12844 (linux_mourn): New.
12845 (linux_attach_lwp_1): Adjust comment.
12846 (linux_attach): last_resume_kind moved the thread_info; adjust.
12847 (status_pending_p_callback): Adjust.
12848 (linux_wait_for_event_1): Adjust.
12849 (count_events_callback, select_singlestep_lwp_callback)
12850 (select_event_lwp_callback, cancel_breakpoints_callback)
12851 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
12852 (proceed_one_lwp): Adjust.
12853 (linux_async): Add debug output.
12854 (linux_thread_stopped): New.
12855 (linux_pause_all): New.
12856 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
12857 linux_pause_all.
12858 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
12859 (thread_db_free): Delete declaration.
12860 (thread_db_detach, thread_db_mourn): Declare.
12861 * thread-db.c (thread_db_init): Use thread_db_mourn.
12862 (thread_db_free): Delete, split in two.
12863 (disable_thread_event_reporting): New.
12864 (thread_db_detach): New.
12865 (thread_db_mourn): New.
12866
12867 * server.h (struct thread_info) <last_resume_kind>: New field.
12868 <attached>: Add comment.
12869 <gdb_detached>: New field.
12870 (handler_func): Change return type to int.
12871 (handle_serial_event, handle_target_event): Ditto.
12872 (gdb_connected): Declare.
12873 (tracing): Delete.
12874 (disconnected_tracing): Declare.
12875 (stop_tracing): Declare.
12876
12877 * server.c (handle_query) <qSupported>: Report support for
12878 disconnected tracing.
12879 (queue_stop_reply_callback): Account for running threads.
12880 (gdb_wants_thread_stopped): New.
12881 (gdb_wants_all_threads_stopped): New.
12882 (gdb_reattached_process): New.
12883 (handle_status): Clear the `gdb_detached' flag of all processes.
12884 In all-stop, stop all threads.
12885 (main): Be sure to leave tfind mode. Handle disconnected tracing.
12886 (process_serial_event): If the remote connection breaks, or if an
12887 exit was forced with "monitor exit", force an event loop exit.
12888 Handle disconnected tracing on detach.
12889 (handle_serial_event): Adjust.
12890 (handle_target_event): If GDB isn't connected, forward events back
12891 to the inferior, unless the last process exited, in which case,
12892 exit gdbserver. Adjust interface.
12893
12894 * remote-utils.c (remote_open): Don't block in accept. Instead
12895 register an event loop source on the listen socket file
12896 descriptor. Refactor bits into ...
12897 (listen_desc): ... this new global.
12898 (gdb_connected): ... this new function.
12899 (enable_async_notification): ... this new function.
12900 (handle_accept_event): ... this new function.
12901 (remote_close): Clear remote_desc.
12902
12903 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
12904
12905 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
12906 New fields.
12907 (mourn_inferior): Define.
12908 (target_process_qsupported): Avoid the dangling else problem.
12909 (thread_stopped): Define.
12910 (pause_all): Define.
12911 (target_waitstatus_to_string): Declare.
12912 * target.c (target_waitstatus_to_string): New.
12913
12914 * tracepoint.c (tracing): Make extern.
12915 (disconnected_tracing): New.
12916 (stop_tracing): Make extern. Handle tracing stops due to GDB
12917 disconnecting.
12918 (cmd_qtdisconnected): New.
12919 (cmd_qtstatus): Report disconnected tracing status in trace reply.
12920 (handle_tracepoint_general_set): Handle QTDisconnected.
12921
12922 * event-loop.c (event_handler_func): Change return type to int.
12923 (process_event): Bail out if the event handler wants the event
12924 loop to stop.
12925 (handle_file_event): Ditto.
12926 (start_event_loop): Bail out if the event handler wants the event
12927 loop to stop.
12928
12929 * nto-low.c (nto_target_ops): Adjust.
12930 * spu-low.c (spu_wait): Don't remove the process here.
12931 (spu_target_ops): Adjust.
12932 * win32-low.c (win32_wait): Don't remove the process here.
12933 (win32_target_ops): Adjust.
12934
12935 2010-04-11 Pedro Alves <pedro@codesourcery.com>
12936
12937 * regcache.c (realloc_register_cache): Invalidate inferior's
12938 regcache before recreating it.
12939
12940 2010-04-09 Pedro Alves <pedro@codesourcery.com>
12941
12942 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
12943
12944 2010-04-09 Stan Shebs <stan@codesourcery.com>
12945 Pedro Alves <pedro@codesourcery.com>
12946
12947 * server.h (LONGEST): New.
12948 (struct thread_info) <while_stepping>: New field.
12949 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
12950 Declare.
12951 (initialize_tracepoint, handle_tracepoint_general_set)
12952 (handle_tracepoint_query, tracepoint_finished_step)
12953 (tracepoint_was_hit, release_while_stepping_state_list):
12954 (current_traceframe): Declare.
12955 * server.c (handle_general_set): Handle tracepoint packets.
12956 (read_memory): New.
12957 (write_memory): New.
12958 (handle_search_memory_1): Use read_memory.
12959 (handle_query): Report support for conditional tracepoints, trace
12960 state variables, and tracepoint sources. Handle tracepoint
12961 queries.
12962 (main): Initialize the tracepoints module.
12963 (process_serial_event): Handle traceframe reads/writes.
12964
12965 * linux-low.c (handle_tracepoints): New.
12966 (linux_wait_1): Call it.
12967 (linux_resume_one_lwp): Handle while-stepping.
12968 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
12969 (linux_target_ops): Install them.
12970 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
12971 New field.
12972 * linux-x86-low.c (x86_supports_tracepoints): New.
12973 (the_low_target). Install it.
12974
12975 * mem-break.h (delete_breakpoint): Declare.
12976 * mem-break.c (delete_breakpoint): Make external.
12977
12978 * target.h (struct target_ops): Add `supports_tracepoints',
12979 `read_pc', and `write_pc' fields.
12980 (target_supports_tracepoints): Define.
12981 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
12982 (phex_nz): New.
12983
12984 * regcache.h (struct regcache) <registers_owned>: New field.
12985 (init_register_cache, regcache_cpy): Declare.
12986 (regcache_read_pc, regcache_write_pc): Declare.
12987 (register_cache_size): Declare.
12988 (supply_regblock): Declare.
12989 * regcache.c (init_register_cache): New.
12990 (new_register_cache): Use it.
12991 (regcache_cpy): New.
12992 (register_cache_size): New.
12993 (supply_regblock): New.
12994 (regcache_read_pc, regcache_write_pc): New.
12995
12996 * tracepoint.c: New.
12997
12998 * Makefile.in (OBS): Add tracepoint.o.
12999 (tracepoint.o): New rule.
13000
13001 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
13002
13003 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
13004 (i386-mmx.o): New.
13005 (i386-mmx.c): Likewise.
13006 (i386-mmx-linux.o): Likewise.
13007 (i386-mmx-linux.c): Likewise.
13008
13009 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
13010 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
13011 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
13012 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
13013
13014 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
13015 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
13016 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
13017
13018 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
13019
13020 * Makefile.in (clean): Updated.
13021 (i386-avx.o): New.
13022 (i386-avx.c): Likewise.
13023 (i386-avx-linux.o): Likewise.
13024 (i386-avx-linux.c): Likewise.
13025 (amd64-avx.o): Likewise.
13026 (amd64-avx.c): Likewise.
13027 (amd64-avx-linux.o): Likewise.
13028 (amd64-avx-linux.c): Likewise.
13029
13030 * configure.srv (srv_i386_regobj): Add i386-avx.o.
13031 (srv_i386_linux_regobj): Add i386-avx-linux.o.
13032 (srv_amd64_regobj): Add amd64-avx.o.
13033 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
13034 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
13035 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
13036 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
13037 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
13038 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
13039 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
13040
13041 * i387-fp.c: Include "i386-xstate.h".
13042 (i387_xsave): New.
13043 (i387_cache_to_xsave): Likewise.
13044 (i387_xsave_to_cache): Likewise.
13045 (x86_xcr0): Likewise.
13046
13047 * i387-fp.h (i387_cache_to_xsave): Likewise.
13048 (i387_xsave_to_cache): Likewise.
13049 (x86_xcr0): Likewise.
13050
13051 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
13052 * linux-crisv32-low.c (target_regsets): Likewise.
13053 * linux-m68k-low.c (target_regsets): Likewise.
13054 * linux-mips-low.c (target_regsets): Likewise.
13055 * linux-ppc-low.c (target_regsets): Likewise.
13056 * linux-s390-low.c (target_regsets): Likewise.
13057 * linux-sh-low.c (target_regsets): Likewise.
13058 * linux-sparc-low.c (target_regsets): Likewise.
13059 * linux-xtensa-low.c (target_regsets): Likewise.
13060
13061 * linux-low.c: Include <sys/uio.h>.
13062 (regsets_fetch_inferior_registers): Support nt_type.
13063 (regsets_store_inferior_registers): Likewise.
13064 (linux_process_qsupported): New.
13065 (linux_target_ops): Add linux_process_qsupported.
13066
13067 * linux-low.h (regset_info): Add nt_type.
13068 (linux_target_ops): Add process_qsupported.
13069
13070 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
13071 and <sys/uio.h>.
13072 (init_registers_i386_avx_linux): New.
13073 (init_registers_amd64_avx_linux): Likewise.
13074 (xmltarget_i386_linux_no_xml): Likewise.
13075 (xmltarget_amd64_linux_no_xml): Likewise.
13076 (PTRACE_GETREGSET): Likewise.
13077 (PTRACE_SETREGSET): Likewise.
13078 (x86_fill_xstateregset): Likewise.
13079 (x86_store_xstateregset): Likewise.
13080 (use_xml): Likewise.
13081 (x86_linux_update_xmltarget): Likewise.
13082 (x86_linux_process_qsupported): Likewise.
13083 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
13084 (x86_arch_setup): Don't call init_registers_amd64_linux nor
13085 init_registers_i386_linux here. Call
13086 x86_linux_update_xmltarget.
13087 (the_low_target): Add x86_linux_process_qsupported.
13088
13089 * server.c (handle_query): Call target_process_qsupported.
13090
13091 * target.h (target_ops): Add process_qsupported.
13092 (target_process_qsupported): New.
13093
13094 2010-04-03 Pedro Alves <pedro@codesourcery.com>
13095
13096 * inferiors.c (add_thread): Set last_status kind to
13097 TARGET_WAITKIND_IGNORE.
13098 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
13099 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
13100 (linux_wait_1): Move `thread' local definition to block that uses
13101 it. Don't NULL initialize `event_child'.
13102 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
13103 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
13104 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
13105
13106 2010-04-01 Pedro Alves <pedro@codesourcery.com>
13107
13108 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
13109 an extended waitstatus, or by a watchpoint.
13110 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
13111 thread was stepping or has been stopped by a watchpoint.
13112
13113 2010-04-01 Pedro Alves <pedro@codesourcery.com>
13114
13115 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
13116 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
13117 of another, then delete the previous, and validate all
13118 breakpoints.
13119 (validate_inserted_breakpoint): New.
13120 (delete_disabled_breakpoints): New.
13121 (validate_breakpoints): New.
13122 (check_mem_read): Validate breakpoints before trusting their
13123 shadow. Delete disabled breakpoints.
13124 (check_mem_write): Validate breakpoints before trusting they
13125 should be inserted. Delete disabled breakpoints.
13126 * mem-break.h (validate_breakpoints):
13127 * server.c (handle_query): Validate breakpoints when we see a
13128 qSymbol query.
13129
13130 2010-04-01 Pedro Alves <pedro@codesourcery.com>
13131
13132 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
13133 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
13134 if we could tell there's a GDB breakpoint at stop_pc.
13135 (need_step_over_p): Don't do a step over if we find a GDB
13136 breakpoint at the resume PC.
13137
13138 * mem-break.c (struct raw_breakpoint): New.
13139 (enum bkpt_type): New type `gdb_breakpoint'.
13140 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
13141 fields. New field `raw'.
13142 (find_raw_breakpoint_at): New.
13143 (set_raw_breakpoint_at): Handle refcounting. Create a raw
13144 breakpoint instead.
13145 (set_breakpoint_at): Adjust.
13146 (delete_raw_breakpoint): New.
13147 (release_breakpoint): New.
13148 (delete_breakpoint): Rename to...
13149 (delete_breakpoint_1): ... this. Add proc parameter. Use
13150 release_breakpoint. Return ENOENT.
13151 (delete_breakpoint): Reimplement.
13152 (find_breakpoint_at): Delete.
13153 (find_gdb_breakpoint_at): New.
13154 (delete_breakpoint_at): Delete.
13155 (set_gdb_breakpoint_at): New.
13156 (delete_gdb_breakpoint_at): New.
13157 (gdb_breakpoint_here): New.
13158 (set_reinsert_breakpoint): Use release_breakpoint.
13159 (uninsert_breakpoint): Rename to ...
13160 (uninsert_raw_breakpoint): ... this.
13161 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
13162 (reinsert_raw_breakpoint): Change parameter type to
13163 raw_breakpoint.
13164 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
13165 instead.
13166 (check_breakpoints): Adjust. Use release_breakpoint.
13167 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
13168 (breakpoint_inserted_here): Ditto.
13169 (check_mem_read): Adjust to iterate over raw breakpoints instead.
13170 Don't trust the breakpoint's shadow if it is not inserted.
13171 (check_mem_write): Adjust to iterate over raw breakpoints instead.
13172 (delete_all_breakpoints): Adjust.
13173 (free_all_breakpoints): Mark all breakpoints as uninserted, and
13174 use delete_breakpoint_1.
13175
13176 * mem-break.h (breakpoints_supported): Delete declaration.
13177 (set_gdb_breakpoint_at): Declare.
13178 (gdb_breakpoint_here): Declare.
13179 (delete_breakpoint_at): Delete.
13180 (delete_gdb_breakpoint_at): Declare.
13181
13182 * server.h (struct raw_breakpoint): Forward declare.
13183 (struct process_info): New field `raw_breakpoints'.
13184
13185 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
13186 breakpoints.
13187
13188 2010-03-24 Pedro Alves <pedro@codesourcery.com>
13189
13190 * linux-low.c (status_pending_p_callback): Fix comment.
13191 (linux_wait_for_event_1): Move most of the internal breakpoint
13192 handling from here...
13193 (linux_wait_1): ... to here.
13194 (count_events_callback): New.
13195 (select_singlestep_lwp_callback): New.
13196 (select_event_lwp_callback): New.
13197 (cancel_breakpoints_callback): New.
13198 (select_event_lwp): New.
13199 (linux_wait_1): Simplify internal breakpoint handling. Give equal
13200 priority to all LWPs that have had events that should be reported
13201 to the client. Cancel breakpoints when about to reporting the
13202 event to the client, not while stopping lwps. No longer cancel
13203 finished single-steps here.
13204 (cancel_finished_single_step): Delete.
13205 (cancel_finished_single_steps): Delete.
13206
13207 2010-03-24 Pedro Alves <pedro@codesourcery.com>
13208
13209 * mem-break.c (enum bkpt_type): New.
13210 (struct breakpoint): New field `type'.
13211 (set_breakpoint_at): Change return type to struct breakpoint
13212 pointer. Set type to `other_breakpoint' by default.
13213 (delete_breakpoint): Rewrite, supporting more than one breakpoint
13214 in the breakpoint list.
13215 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
13216 (reinsert_breakpoint): Rename to ...
13217 (reinsert_raw_breakpoint): ... this.
13218 (reinsert_breakpoints_at): Adjust.
13219 * mem-break.h (struct breakpoint): Declare.
13220 (set_breakpoint_at): Change return type to struct breakpoint
13221 pointer.
13222
13223 2010-03-24 Pedro Alves <pedro@codesourcery.com>
13224
13225 * server.c (handle_query): Assign, not compare.
13226
13227 2010-03-24 Pedro Alves <pedro@codesourcery.com>
13228
13229 Teach linux gdbserver to step-over-breakpoints.
13230
13231 * linux-low.c (can_hardware_single_step): New.
13232 (supports_breakpoints): New.
13233 (handle_extended_wait): If stopping threads, read the stop pc of
13234 the new cloned LWP.
13235 (get_pc): New.
13236 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
13237 low target doesn't support retrieving the PC.
13238 (add_lwp): Set last_resume_kind to resume_continue.
13239 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
13240 (linux_attach): Don't clear stop_expected. Set the lwp's
13241 last_resume_kind to resume_stop.
13242 (linux_detach_one_lwp): Don't check for removed breakpoints.
13243 (check_removed_breakpoint): Delete.
13244 (status_pending_p): Rename to ...
13245 (status_pending_p_callback): ... this. Don't check for removed
13246 breakpoints. Don't consider threads that are stopped from GDB's
13247 perspective.
13248 (linux_wait_for_lwp): Always read the stop_pc here.
13249 (cancel_breakpoint): New.
13250 (step_over_bkpt): New global.
13251 (linux_wait_for_event_1): Implement stepping over breakpoints.
13252 (gdb_wants_lwp_stopped): New.
13253 (gdb_wants_all_stopped): New.
13254 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
13255 single-step traps here. Store the thread's last reported target
13256 wait status.
13257 (send_sigstop): Don't clear stop_expected. Always set it,
13258 instead.
13259 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
13260 (cancel_finished_single_step): New.
13261 (cancel_finished_single_steps): New.
13262 (wait_for_sigstop): Don't cancel finished single-step traps here.
13263 (linux_resume_one_lwp): Don't check for removed breakpoints.
13264 Don't set `step' on non-hardware step archs.
13265 (linux_set_resume_request): Ignore resume_stop requests if already
13266 stopping or stopped. Set the lwp's last_resume_kind.
13267 (resume_status_pending_p): Don't check for removed breakpoints.
13268 (need_step_over_p): New.
13269 (start_step_over): New.
13270 (finish_step_over): New.
13271 (linux_resume_one_thread): Always queue a sigstop for resume_stop
13272 requests. Clear the thread's last reported target waitstatus.
13273 Don't use the `suspended' flag. Don't consider pending breakpoints.
13274 (linux_resume): Start a step-over if necessary.
13275 (proceed_one_lwp): New.
13276 (proceed_all_lwps): New.
13277 (unstop_all_lwps): New.
13278 * linux-low.h (struct lwp_info): Rewrite comment for the
13279 `suspended' flag. Add the `stop_pc' field. Delete the
13280 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
13281 Add `'last_resume_kind' and `need_step_over' fields.
13282 * inferiors.c (struct thread_info): Delete, moved elsewhere.
13283 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
13284 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
13285 (set_raw_breakpoint_at): New.
13286 (set_breakpoint_at): Rewrite to use it.
13287 (reinsert_breakpoint_handler): Delete.
13288 (set_reinsert_breakpoint): New.
13289 (reinsert_breakpoint_by_bp): Delete.
13290 (delete_reinsert_breakpoints): New.
13291 (uninsert_breakpoint): Rewrite.
13292 (uninsert_breakpoints_at): New.
13293 (reinsert_breakpoint): Rewrite.
13294 (reinsert_breakpoints_at): New.
13295 (check_breakpoints): Rewrite.
13296 (breakpoint_here): New.
13297 (breakpoint_inserted_here): New.
13298 (check_mem_read): Adjust.
13299 * mem-break.h (breakpoints_supported, breakpoint_here)
13300 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
13301 (reinsert_breakpoint_by_bp): Delete declaration.
13302 (delete_reinsert_breakpoints): Declare.
13303 (reinsert_breakpoint): Delete declaration.
13304 (reinsert_breakpoints_at): Declare.
13305 (uninsert_breakpoint): Delete declaration.
13306 (uninsert_breakpoints_at): Declare.
13307 (check_breakpoints): Adjust prototype.
13308 * server.h: Adjust include order.
13309 (struct thread_info): Declare here. Add a `last_status' field.
13310
13311 2010-03-23 Michael Snyder <msnyder@vmware.com>
13312
13313 * server.c (crc32): New function.
13314 (handle_query): Add handling for 'qCRC:' request.
13315
13316 2010-03-23 Pedro Alves <pedro@codesourcery.com>
13317
13318 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
13319 lwp had been stopped by a watchpoint.
13320
13321 2010-03-16 Pedro Alves <pedro@codesourcery.com>
13322
13323 * server.h (internal_error): Declare.
13324 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
13325 * utils.c (internal_error): New function.
13326
13327 2010-03-15 Andreas Schwab <schwab@redhat.com>
13328
13329 * configure.srv: Fix typo setting srv_regobj.
13330
13331 2010-03-15 Pedro Alves <pedro@codesourcery.com>
13332
13333 * linux-low.c (fetch_register): Avoid passing a non string literal
13334 format to `error'.
13335 (usr_store_inferior_registers): Ditto.
13336
13337 2010-03-14 Pedro Alves <pedro@codesourcery.com>
13338
13339 * linux-low.c (linux_write_memory): Bail out early if peeking
13340 memory failed.
13341
13342 2010-03-14 Pedro Alves <pedro@codesourcery.com>
13343
13344 * linux-low.h (struct lwp_info): New fields
13345 `stopped_by_watchpoint' and `stopped_data_address'.
13346 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
13347 here, and cache them in the lwp object.
13348 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
13349 directly.
13350 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
13351 field.
13352 (linux_stopped_by_watchpoint): Rewrite.
13353 (linux_stopped_data_address): Rewrite.
13354
13355 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
13356
13357 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
13358 switching the current inferior, not before.
13359
13360 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
13361
13362 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
13363 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
13364 i386-linux.c and amd64-linux.c.
13365 (reg-i386.o): Removed.
13366 (reg-i386.c): Likewise.
13367 (reg-i386-linux.o): Likewise.
13368 (reg-i386-linux.c): Likewise.
13369 (reg-x86-64.o): Likewise.
13370 (reg-x86-64.c): Likewise.
13371 (reg-x86-64-linux.o): Likewise.
13372 (reg-x86-64-linux.c): Likewise.
13373 (i386.o): New.
13374 (i386.c): Likewise.
13375 (i386-linux.o): Likewise.
13376 (i386-linux.c): Likewise.
13377 (amd64.o): Likewise.
13378 (amd64.c): Likewise.
13379 (amd64-linux.o): Likewise.
13380 (amd64-linux.c): Likewise.
13381
13382 * configure.srv (srv_i386_regobj): New.
13383 (srv_i386_linux_regobj): Likewise.
13384 (srv_amd64_regobj): Likewise.
13385 (srv_amd64_linux_regobj): Likewise.
13386 (srv_i386_32bit_xmlfiles): Likewise.
13387 (srv_i386_64bit_xmlfiles): Likewise.
13388 (srv_i386_xmlfiles): Likewise.
13389 (srv_amd64_xmlfiles): Likewise.
13390 (srv_i386_linux_xmlfiles): Likewise.
13391 (srv_amd64_linux_xmlfiles): Likewise.
13392 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
13393 srv_xmlfiles to $srv_i386_xmlfiles.
13394 (i[34567]86-*-mingw32ce*): Likewise.
13395 (i[34567]86-*-mingw*): Likewise.
13396 (i[34567]86-*-nto*): Likewise.
13397 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
13398 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
13399 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
13400 (x86_64-*-linux*): Likewise.
13401
13402 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
13403 (init_registers_amd64_linux): New.
13404 (x86_arch_setup): Replace init_registers_x86_64_linux with
13405 init_registers_amd64_linux.
13406
13407 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
13408
13409 * configure.ac: Check for libdl. If it is not available link against
13410 static libthread_db.
13411 * configure: Regenerate.
13412
13413 2010-02-22 Pedro Alves <pedro@codesourcery.com>
13414
13415 PR9605
13416
13417 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
13418 handing a read watchpoint.
13419 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
13420
13421 2010-02-12 Doug Evans <dje@google.com>
13422
13423 * linux-low.c (linux_supports_tracefork_flag): Document.
13424 (linux_look_up_symbols): Add comment.
13425
13426 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
13427
13428 * regcache.c (supply_register): Clear regcache if buf is NULL.
13429
13430 2010-02-02 Nicolas Roche <roche@sourceware.org>
13431 Joel Brobecker <brobecker@adacore.com>
13432
13433 * inferiors.c (find_inferior): Add function documentation.
13434 (unloaded_dll): Handle the case where the unloaded dll has not
13435 been previously registered in the dll list.
13436
13437 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
13438
13439 * linux-arm-low.c (thumb_breakpoint_len): Delete.
13440 (thumb2_breakpoint): New.
13441 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
13442
13443 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
13444
13445 * linux-low.c (get_stop_pc): Check for SIGTRAP.
13446 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
13447 breakpoints.
13448
13449 2010-01-21 Pedro Alves <pedro@codesourcery.com>
13450
13451 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
13452
13453 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13454
13455 * linux-s390-low.c (s390_collect_ptrace_register)
13456 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
13457
13458 2010-01-21 Doug Evans <dje@google.com>
13459
13460 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
13461 (PTRACE_ARG4_TYPE): New macro.
13462 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
13463 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
13464 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
13465 (usr_store_inferior_registers): Ditto.
13466 (linux_read_memory, linux_write_memory): Ditto.
13467 (linux_test_for_tracefork): Ditto.
13468
13469 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
13470 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
13471
13472 2010-01-21 Pedro Alves <pedro@codesourcery.com>
13473
13474 * proc-service.c (ps_lgetregs): Don't refetch registers from the
13475 target.
13476
13477 2010-01-21 Pedro Alves <pedro@codesourcery.com>
13478
13479 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
13480 prototype to take a regcache. Adjust.
13481
13482 2010-01-20 Pedro Alves <pedro@codesourcery.com>
13483
13484 * regcache.h (struct thread_info): Forward declare.
13485 (struct regcache): New.
13486 (new_register_cache): Adjust prototype.
13487 (get_thread_regcache): Declare.
13488 (free_register_cache): Adjust prototype.
13489 (registers_to_string, registers_from_string): Ditto.
13490 (supply_register, supply_register_by_name, collect_register)
13491 (collect_register_as_string, collect_register_by_name): Ditto.
13492 * regcache.c (struct inferior_regcache_data): Delete.
13493 (get_regcache): Rename to ...
13494 (get_thread_regcache): ... this. Adjust. Switch inferior before
13495 fetching registers.
13496 (regcache_invalidate_one): Adjust.
13497 (regcache_invalidate): Fix prototype.
13498 (new_register_cache): Return the new register cache.
13499 (free_register_cache): Change prototype.
13500 (realloc_register_cache): Adjust.
13501 (registers_to_string): Change prototype to take a regcache. Adjust.
13502 (registers_from_string): Ditto.
13503 (register_data): Ditto.
13504 (supply_register): Ditto.
13505 (supply_register_by_name): Ditto.
13506 (collect_register): Ditto.
13507 (collect_register_as_string): Ditto.
13508 (collect_register_by_name): Ditto.
13509 * server.c (process_serial_event): Adjust.
13510 * linux-low.h (regset_fill_func, regset_store_func): Change
13511 prototype.
13512 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
13513 Change prototype.
13514 * linux-low.c (get_stop_pc): Adjust.
13515 (check_removed_breakpoint): Adjust.
13516 (linux_wait_for_event): Adjust.
13517 (linux_resume_one_lwp): Adjust.
13518 (fetch_register): Add regcache parameter. Adjust.
13519 (usr_store_inferior_registers): Ditto.
13520 (regsets_fetch_inferior_registers): Ditto.
13521 (regsets_store_inferior_registers): Ditto.
13522 (linux_fetch_registers, linux_store_registers): Ditto.
13523 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
13524 regcache. Adjust.
13525 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
13526 Ditto.
13527 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
13528 prototype to take a regcache.
13529 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
13530 * remote-utils.c (convert_ascii_to_int, outreg)
13531 (prepare_resume_reply): Change prototype to take a regcache.
13532 Adjust.
13533 * target.h (struct target_ops) <fetch_registers, store_registers>:
13534 Change prototype to take a regcache.
13535 (fetch_inferior_registers, store_inferior_registers): Change
13536 prototype to take a regcache. Adjust.
13537 * proc-service.c (ps_lgetregs): Adjust.
13538 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
13539 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
13540 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
13541 take a regcache. Adjust.
13542 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
13543 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
13544 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
13545 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
13546 * linux-cris-low.c (cris_get_pc, cris_set_pc)
13547 (cris_cannot_fetch_register):
13548 (cris_breakpoint_at): Change prototype to take a regcache.
13549 Adjust.
13550 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
13551 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
13552 to take a regcache. Adjust.
13553 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
13554 Adjust.
13555 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
13556 take a regcache. Adjust.
13557 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
13558 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
13559 (m68k_set_pc): Change prototype to take a regcache. Adjust.
13560 * linux-mips-low.c (mips_get_pc):
13561 (mips_set_pc): Change prototype to take a regcache. Adjust.
13562 (mips_reinsert_addr): Adjust.
13563 (mips_collect_register): Change prototype to take a regcache.
13564 Adjust.
13565 (mips_supply_register):
13566 (mips_collect_register_32bit, mips_supply_register_32bit)
13567 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
13568 (mips_store_fpregset): Ditto.
13569 * linux-ppc-low.c (ppc_supply_ptrace_register)
13570 (ppc_supply_ptrace_register): Ditto.
13571 (parse_spufs_run): Adjust.
13572 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
13573 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
13574 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
13575 take a regcache. Adjust.
13576 * linux-s390-low.c (s390_collect_ptrace_register)
13577 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
13578 (s390_set_pc): Change prototype to take a regcache. Adjust.
13579 (s390_arch_setup): Adjust.
13580 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
13581 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
13582 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
13583 (sparc_fill_gregset, sparc_store_gregset_from_stack)
13584 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
13585 regcache. Adjust.
13586 (sparc_breakpoint_at): Adjust.
13587 * linux-xtensa-low.c (xtensa_fill_gregset):
13588 (xtensa_store_gregset):
13589 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
13590 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
13591 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
13592 prototype to take a regcache. Adjust.
13593 * win32-arm-low.c (arm_fetch_inferior_register)
13594 (arm_store_inferior_register): Change prototype to take a
13595 regcache. Adjust.
13596 * win32-i386-low.c (i386_fetch_inferior_register)
13597 (i386_store_inferior_register): Change prototype to take a
13598 regcache. Adjust.
13599 * win32-low.c (child_fetch_inferior_registers)
13600 (child_store_inferior_registers): Change prototype to take a
13601 regcache. Adjust.
13602 (win32_wait): Adjust.
13603 (win32_fetch_inferior_registers): Change prototype to take a
13604 regcache. Adjust.
13605 (win32_store_inferior_registers): Adjust.
13606 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
13607 store_inferior_register>: Change prototype to take a regcache.
13608
13609 2010-01-20 Doug Evans <dje@google.com>
13610
13611 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
13612 #ifdef.
13613 (linux_wait_for_event1, linux_init_signals): Ditto.
13614 (W_STOPCODE): Provide definition if missing.
13615
13616 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
13617
13618 * linux-low.c (linux_core_of_thread): New.
13619 (compare_ints, show_process, list_threads): New.
13620 (linux_qxfer_osdata): Report threads and cores.
13621 (linux_target_op): Register linux_core_of_thread.
13622 * remote-utils.c (prepare_resume_reply): Report the core.
13623 (buffer_xml_printf): Support %d specifier.
13624 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
13625 New.
13626 (handle_query): Handle qXfer:threads. Announce availability
13627 thereof.
13628 * target.h (struct target_ops): New field core_of_thread.
13629
13630 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
13631
13632 * Makefile.in (clean): Remove new generated files.
13633 (reg-s390.o, reg-s390.c): Remove rules.
13634 (reg-s390x.o, reg-s390x.c): Likewise.
13635 (s390-linux32.o, s390-linux32.c): Add rules.
13636 (s390-linux64.o, s390-linux64.c): Likewise.
13637 (s390x-linux64.o, s390x-linux64.c): Likewise.
13638 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
13639 * linux-s390-low.c: Include <elf.h>.
13640 (HWCAP_S390_HIGH_GPRS): Define if undefined.
13641 (init_registers_s390): Remove prototype.
13642 (init_registers_s390x): Likewise.
13643 (init_registers_s390_linux32): Add prototype.
13644 (init_registers_s390_linux64): Likewise.
13645 (init_registers_s390x_linux64): Likewise.
13646 (s390_num_regs_3264): New define.
13647 (s390_regmap_3264): New global variable.
13648 (s390_cannot_fetch_register): Remove obsolete check.
13649 (s390_cannot_store_register): Likewise.
13650 (s390_collect_ptrace_register): Handle upper/lower register halves.
13651 (s390_supply_ptrace_register): Likewise.
13652 (s390_fill_gregset): Update to register number changes.
13653 (s390_get_hwcap): New routine.
13654 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
13655 Install appropriate regmap and register set.
13656
13657 2010-01-01 Joel Brobecker <brobecker@adacore.com>
13658
13659 * server.c (gdbserver_version): Update copyright year to 2010.
13660 * gdbreplay.c (gdbreplay_version): Likewise.
13661
13662 2009-12-28 Doug Evans <dje@google.com>
13663
13664 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
13665 elf/external.h. Include <elf.h> instead but only if necessary.
13666
13667 2009-12-28 Pedro Alves <pedro@codesourcery.com>
13668
13669 * linux-low.c (linux_remove_process): Remove `detaching'
13670 parameter. Don't release/detach from thread_db here.
13671 (linux_kill): Release/detach from thread_db here, ...
13672 (linux_detach): ... and here, before actually detaching.
13673 (linux_wait_1): ... and here, when a process exits.
13674 * thread-db.c (any_thread_of): New.
13675 (thread_db_free): Switch the current inferior to a thread of the
13676 passed in process.
13677
13678 2009-12-21 Doug Evans <dje@google.com>
13679
13680 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
13681
13682 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
13683 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
13684 warning ifndef __NR_tkill. Move setting of errno there too.
13685 Delete unnecessary resetting of errno after syscall.
13686 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
13687
13688 * configure.ac: Check for dladdr.
13689 * config.in: Regenerate.
13690 * configure: Regenerate.
13691 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
13692 (try_thread_db_load): Update.
13693
13694 * linux-low.c (my_waitpid): Delete unnecessary prototype.
13695
13696 2009-12-18 Doug Evans <dje@google.com>
13697
13698 * event-loop.c: Include unistd.h if it exists.
13699
13700 * linux-low.c (my_waitpid): Move definition away from being in
13701 between linux_tracefork_child/linux_test_for_tracefork.
13702
13703 * gdb_proc_service.h (psaddr_t): Fix type.
13704 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
13705 signature to match glibc.
13706
13707 2009-12-16 Doug Evans <dje@google.com>
13708
13709 * linux-low.c (linux_read_memory): Fix argument to read.
13710
13711 2009-11-26 Pedro Alves <pedro@codesourcery.com>
13712
13713 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
13714 events, don't leave current_inferior pointing at null.
13715
13716 2009-11-26 Pedro Alves <pedro@codesourcery.com>
13717
13718 * win32-low.c (LOG): Delete.
13719 (OUTMSG): Output to stderr.
13720 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
13721 on compile time LOG macro.
13722 (win32_wait): Fix debug output.
13723
13724 2009-11-26 Pedro Alves <pedro@codesourcery.com>
13725
13726 * win32-low.c (win32_add_one_solib): If the dll name is
13727 "ntdll.dll", prepend the system directory to the dll path.
13728
13729 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
13730
13731 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
13732
13733 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
13734 Vladimir Prus <vladimir@codesourcery.com>
13735
13736 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
13737 * configure.ac: Check for __mcoldfire__ and set
13738 gdb_cv_m68k_is_coldfire.
13739 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
13740 reg-cf.o and reg-m68k.o.
13741 * configure: Regenerated.
13742
13743 2009-11-16 Pedro Alves <pedro@codesourcery.com>
13744
13745 * linux-low.c (linux_remove_process): Add `detaching' parameter.
13746 Pass it to thread_db_free.
13747 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
13748 proper `detaching' argument to linux_remove_process.
13749 * linux-low.h (thread_db_free): Add `detaching' parameter.
13750 * thread-db.c (thread_db_init): Pass false as `detaching' argument
13751 to thread_db_free.
13752 (thread_db_free): Add `detaching' parameter. Only
13753 call td_ta_clear_event if detaching from process.
13754
13755 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
13756
13757 * thread-db.c (thread_db_free): Fix typo.
13758
13759 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
13760
13761 PR gdb/10838
13762 * thread-db.c (thread_db_free): Call td_ta_clear_event.
13763
13764 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
13765
13766 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
13767 with an i686 compiler.
13768 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
13769 needed.
13770 * configure: Rebuilt.
13771
13772 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
13773
13774 PR gdb/10783
13775
13776 * server.c (handle_search_memory_1): Correct read_addr initialization
13777 in loop for searching subsequent chunks.
13778
13779 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
13780
13781 * configure.ac: New --with-libthread-db option.
13782 * thread-db.c: Allow direct dependence on libthread_db.
13783 (thread_db_free): Adjust.
13784 * config.in: Regenerate.
13785 * configure: Likewise.
13786
13787 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
13788
13789 PR gdb/10757
13790 * thread-db.c (attach_thread): New function.
13791 (maybe_attach_thread): Return success/failure.
13792 (find_new_threads_callback): Adjust.
13793 (thread_db_find_new_threads): Loop until no new threads.
13794
13795 2009-10-13 Pedro Alves <pedro@codesourcery.com>
13796
13797 * proc-service.c (ps_lgetregs): Formatting.
13798
13799 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
13800
13801 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
13802 * configure.ac: Adjust.
13803 * linux-low.h (struct process_info_private): Move members to struct
13804 thread_db.
13805 (thread_db_free, thread_db_handle_monitor_command): New prototype.
13806 * linux-low.c (linux_remove_process): Adjust.
13807 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
13808 * server.c (handle_query): Move code ...
13809 (handle_monitor_command): ... here. New function.
13810 * target.h (struct target_ops): New member.
13811 * thread-db.c (struct thread_db): New.
13812 (libthread_db_search_path): New variable.
13813 (thread_db_create_event, thread_db_enable_reporting)
13814 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
13815 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
13816 (try_thread_db_load_1, dladdr_to_soname): New functions.
13817 (try_thread_db_load, thread_db_load_search): New functions.
13818 (thread_db_init): Search for libthread_db.
13819 (thread_db_free): New function.
13820 (thread_db_handle_monitor_command): Likewise.
13821 * config.in: Regenerate.
13822 * configure: Regenerate.
13823
13824 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
13825
13826 * spu-low.c (spu_kill): Wait for inferior to terminate.
13827 Call clear_inferiors.
13828 (spu_detach): Call clear_inferiors.
13829
13830 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13831
13832 * aclocal.m4: Regenerate.
13833 * config.in: Likewise.
13834 * configure: Likewise.
13835
13836 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
13837
13838 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
13839 (parse_spufs_run): New function.
13840 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
13841 (ppc_breakpoint_at): Handle SPU breakpoints.
13842
13843 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
13844
13845 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
13846 (SPUFS_MAGIC): Define.
13847 (spu_enumerate_spu_ids): New function.
13848 (linux_qxfer_spu): New function.
13849 (linux_target_ops): Install linux_qxfer_spu.
13850
13851 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
13852
13853 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
13854 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
13855 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
13856 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
13857 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
13858 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
13859 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
13860 (init_registers_powerpc_cell32l): Add prototype.
13861 (init_registers_powerpc_cell64l): Likewise.
13862 (ppc_arch_setup): Detect Cell/B.E. architecture.
13863
13864 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13865
13866 * Makefile.in (datarootdir): New variable.
13867
13868 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
13869
13870 * linux-low.c (linux_write_memory): Update debugging output.
13871 * Makefile.in (clean): Add new descriptions.
13872 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
13873 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
13874 * configure.srv: Add new files for arm*-*-linux*.
13875 * linux-arm-low.c: Add new declarations.
13876 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
13877 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
13878 (HWCAP_VFPv3D16): New.
13879 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
13880 instead of __IWMMXT__.
13881 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
13882 (arm_arch_setup): New.
13883 (target_regsets): Remove #ifdef. Add VFP regset.
13884 (the_low_target): Use arm_arch_setup.
13885
13886 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
13887
13888 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
13889 the main thread again.
13890
13891 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
13892
13893 Adding Neutrino gdbserver.
13894 * configure: Regenerated.
13895 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
13896 * configure.srv (i[34567]86-*-nto*): New target.
13897 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
13898 * remote-utils.c [__QNX__]: Include sys/iomgr.h
13899 (nto_comctrl) [__QNX__]: New function.
13900 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
13901
13902 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
13903
13904 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
13905 srv_tgtobj.
13906
13907 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
13908 Pedro Alves <pedro@codesourcery.com>
13909
13910 * win32-i386-low.c (i386_get_thread_context): Handle systems that
13911 don't support CONTEXT_EXTENDED_REGISTERS.
13912 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
13913 (the_low_target): Install them.
13914 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
13915 failing with ERROR_PIPE_NOT_CONNECTED.
13916
13917 2009-06-30 Doug Evans <dje@google.com>
13918 Pierre Muller <muller@ics.u-strasbg.fr>
13919
13920 Add h/w watchpoint support to x86-linux, win32-i386.
13921 * Makefile.in (SFILES): Add i386-low.c
13922 (i386_low_h): Define.
13923 (i386-low.o): Add dependencies.
13924 (linux-x86-low.o): Add i386-low.h dependency.
13925 (win32-i386-low.o): Ditto.
13926 * i386-low.c: New file.
13927 * i386-low.h: New file.
13928 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
13929 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
13930 * linux-low.c (linux_add_process): Initialize arch_private.
13931 (linux_remove_process): Free arch_private.
13932 (add_lwp): Initialize arch_private.
13933 (delete_lwp): Free arch_private.
13934 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
13935 provided.
13936 * linux-low.h (process_info_private): New member arch_private.
13937 (lwp_info): New member arch_private.
13938 (linux_target_ops): New members new_process, new_thread,
13939 prepare_to_resume.
13940 (ptid_of): New macro.
13941 * linux-x86-low.c: Include stddef.h, i386-low.h.
13942 (arch_process_info): New struct.
13943 (arch_lwp_info): New struct.
13944 (x86_linux_dr_get, x86_linux_dr_set): New functions.
13945 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
13946 (i386_dr_low_get_status): New function.
13947 (x86_insert_point, x86_remove_point): New functions.
13948 (x86_stopped_by_watchpoint): New function.
13949 (x86_stopped_data_address): New function.
13950 (x86_linux_new_process, x86_linux_new_thread): New functions.
13951 (x86_linux_prepare_to_resume): New function.
13952 (the_low_target): Add entries for insert_point, remove_point,
13953 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
13954 prepare_to_resume.
13955 * server.c (debug_hw_points): New global.
13956 (monitor_show_help): Document set debug-hw-points.
13957 (handle_query): Process "set debug-hw-points".
13958 * server.h (debug_hw_points): Declare.
13959 (paddress): Declare.
13960 * utils.c (NUMCELLS, CELLSIZE): New macros.
13961 (get_sell, xsnprintf, paddress): New functions.
13962 * win32-arm-low.c (the_low_target): Add entries for insert_point,
13963 remove_point, stopped_by_watchpoint, stopped_data_address.
13964 * win32-i386-low.c: Include i386-low.h.
13965 (debug_reg_state): Replaces dr.
13966 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
13967 (i386_dr_low_get_status): New function.
13968 (i386_insert_point, i386_remove_point): New functions.
13969 (i386_stopped_by_watchpoint): New function.
13970 (i386_stopped_data_address): New function.
13971 (i386_initial_stuff): Update.
13972 (get_thread_context,set_thread_context,i386_thread_added): Update.
13973 (the_low_target): Add entries for insert_point,
13974 remove_point, stopped_by_watchpoint, stopped_data_address.
13975 * win32-low.c (win32_insert_watchpoint): New function.
13976 (win32_remove_watchpoint): New function.
13977 (win32_stopped_by_watchpoint): New function.
13978 (win32_stopped_data_address): New function.
13979 (win32_target_ops): Add entries for insert_watchpoint,
13980 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
13981 * win32-low.h (win32_target_ops): New members insert_point,
13982 remove_point, stopped_by_watchpoint, stopped_data_address.
13983
13984 2009-06-25 Pedro Alves <pedro@codesourcery.com>
13985
13986 * server.c (process_serial_event): Re-return unsupported, not
13987 error, if the type isn't recognized. Re-allow supporting only
13988 insert or remove packets. Also call require_running for
13989 breakpoints. Add missing break statement to default case. Tidy.
13990 * target.h (struct target_ops): Rename insert_watchpoint to
13991 insert_point, and remove_watchpoint to remove_point.
13992
13993 * linux-low.h (struct linux_target_ops): Likewise.
13994 * linux-low.c (linux_insert_watchpoint): Rename to ...
13995 (linux_insert_point): ... this. Adjust.
13996 (linux_remove_watchpoint): Rename to ...
13997 (linux_remove_point): ... this. Adjust.
13998 (linux_target_ops): Adjust.
13999 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
14000 (cris_insert_point): ... this.
14001 (cris_remove_watchpoint): Rename to ...
14002 (cris_remove_point): ... this.
14003 (the_low_target): Adjust.
14004
14005 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
14006
14007 * server.c (handle_v_kill): Pass signal_pid to
14008 kill_inferior if multi_process is zero.
14009
14010 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
14011
14012 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
14013 * target.h (target_ops): Comment for *_watchpoint to make it clear
14014 the functions can get types '0' and '1'.
14015
14016 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
14017
14018 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
14019 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
14020 * regcache.c (get_regcache): Likewise.
14021 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
14022 * win32-low.c (child_fetch_inferior_registers): Remove check for
14023 regno 0.
14024
14025 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
14026 Pedro Alves <pedro@codesourcery.com>
14027
14028 * target.h (struct target_ops) <supports_multi_process>: New
14029 callback.
14030 (target_supports_multi_process): New.
14031 * server.c (handle_query): Even if GDB reports support, only
14032 enable multi-process if the target also supports it. Report
14033 multi-process support only if the target backend supports it.
14034 * linux-low.c (linux_supports_multi_process): New function.
14035 (linux_target_ops): Install it as target_supports_multi_process
14036 callback.
14037
14038 2009-05-24 Doug Evans <dje@google.com>
14039
14040 Global renaming of find_thread_pid to find_thread_ptid.
14041 * server.h (find_thread_ptid): Renamed from find_thread_pid.
14042 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
14043 All callers updated.
14044
14045 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
14046 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
14047 directly.
14048
14049 * linux-low.c (get_stop_pc): Print pc if debug_threads.
14050 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
14051 (linux_resume_one_lwp): Ditto.
14052
14053 2009-05-23 Doug Evans <dje@google.com>
14054
14055 * linux-low.c (linux_resume_one_lwp): Change type of first arg
14056 from struct inferior_list_entry * to struct lwp_info *.
14057 All callers updated.
14058
14059 2009-05-13 Doug Evans <dje@google.com>
14060
14061 * linux-x86-low.c: Don't include assert.h.
14062 (x86_siginfo_fixup): Use fatal, not assert.
14063 (x86_arch_setup): Fix comment.
14064
14065 2009-05-12 Doug Evans <dje@google.com>
14066
14067 Biarch support for i386/amd64 gdbserver.
14068 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
14069 Add linux-x86-low.c.
14070 (linux-i386-low.o, linux-x86-64-low.o): Delete.
14071 (linux-x86-low.o): Add.
14072 * linux-x86-64-low.c: Delete.
14073 * linux-i386-low.c: Delete.
14074 * linux-x86-low.c: New file.
14075 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
14076 linux-x86-low.o.
14077 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
14078 linux-x86-low.o.
14079 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
14080 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
14081 (linux_child_pid_to_exec_file): New function.
14082 (elf_64_header_p, elf_64_file_p): New functions.
14083 (siginfo_fixup): New function.
14084 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
14085 give target a chance to convert layout.
14086 * linux-low.h (linux_target_ops): New member siginfo_fixup.
14087 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
14088
14089 2009-05-07 Doug Evans <dje@google.com>
14090
14091 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
14092 (regsets_store_inferior_registers): Ditto.
14093
14094 2009-05-06 Pedro Alves <pedro@codesourcery.com>
14095
14096 PR server/10048
14097
14098 * linux-low.c (must_set_ptrace_flags): Delete.
14099 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
14100 of the global.
14101 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
14102 `lwp->must_set_ptrace_flags' instead.
14103 (linux_wait_for_event_1): Set ptrace options here.
14104 (linux_wait_1): ... not here.
14105
14106 2009-04-30 Doug Evans <dje@google.com>
14107
14108 * inferiors.c (started_inferior_callback): New function.
14109 (attached_inferior_callback): New function.
14110 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
14111 * server.c (print_started_pid, print_attached_pid): New functions.
14112 (detach_or_kill_for_exit): New function.
14113 (main): Call it instead of for_each_inferior (kill_inferior_callback).
14114 * server.h (have_started_inferiors_p): Declare.
14115 (have_attached_inferiors_p): Declare.
14116
14117 * inferiors.c (remove_process): Fix memory leak, free process.
14118 * linux-low.c (linux_remove_process): New function.
14119 (linux_kill): Call it instead of remove_process.
14120 (linux_detach, linux_wait_1): Ditto.
14121
14122 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
14123
14124 * configure.srv: Add x86 Windows CE target.
14125
14126 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
14127
14128 * inferiors.c (get_thread_process): Make global.
14129 * server.h (get_thread_process): Add prototype.
14130 * thread-db.c (find_one_thread): Use get_thread_process
14131 instead of current_process.
14132 (thread_db_get_tls_address): Do not crash if called when
14133 thread layer is not yet initialized.
14134
14135 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
14136
14137 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
14138 * spu-low.c (current_tid): Rename to ...
14139 (current_ptid): ... this.
14140 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
14141 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
14142 ptid_get_lwp (current_ptid) instead of current_tid.
14143 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
14144 instead of current_tid. Use find_process_pid to verify pid
14145 argument is valid. Pass proper argument to remove_process.
14146 (spu_thread_alive): Compare current_ptid instead of current_tid.
14147 (spu_resume): Likewise.
14148
14149 2009-04-02 Pedro Alves <pedro@codesourcery.com>
14150
14151 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
14152 variable.
14153
14154 2009-04-01 Pedro Alves <pedro@codesourcery.com>
14155
14156 Implement the multiprocess extensions, and add linux multiprocess
14157 support.
14158
14159 * server.h (ULONGEST): Declare.
14160 (struct ptid, ptid_t): New.
14161 (minus_one_ptid, null_ptid): Declare.
14162 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
14163 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
14164 (struct inferior_list_entry): Change `id' type from unsigned from
14165 to ptid_t.
14166 (struct sym_cache, struct breakpoint, struct
14167 process_info_private): Forward declare.
14168 (struct process_info): Declare.
14169 (current_process): Declare.
14170 (all_processes): Declare.
14171 (initialize_inferiors): Declare.
14172 (add_thread): Adjust to use ptid_t.
14173 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
14174 (add_process, remove_process, find_thread_pid): Declare.
14175 (find_inferior_id): Adjust to use ptid_t.
14176 (cont_thread, general_thread, step_thread): Change type to ptid_t.
14177 (multi_process): Declare.
14178 (push_event): Adjust to use ptid_t.
14179 (read_ptid, write_ptid): Declare.
14180 (prepare_resume_reply): Adjust to use ptid_t.
14181 (clear_symbol_cache): Declare.
14182 * inferiors.c (all_processes): New.
14183 (null_ptid, minus_one_ptid): New.
14184 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
14185 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
14186 (add_thread): Change unsigned long to ptid. Remove gdb_id
14187 parameter. Adjust.
14188 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
14189 (gdb_id_to_thread): Rename to ...
14190 (find_thread_pid): ... this. Change unsigned long to ptid.
14191 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
14192 (loaded_dll, pull_pid_from_list): Adjust.
14193 (add_process, remove_process, find_process_pid)
14194 (get_thread_process, current_process, initialize_inferiors): New.
14195 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
14196 (struct target_waitstatus) <related_pid>: Ditto.
14197 (struct target_ops) <kill, detach>: Add `pid' argument. Change
14198 return type to int.
14199 (struct target_ops) <join>: Add `pid' argument.
14200 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
14201 (struct target_ops) <wait>: Add `ptid' field. Change return type
14202 to ptid.
14203 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
14204 (mywait): Add `ptid' argument. Change return type to ptid_t.
14205 (target_pid_to_str): Declare.
14206 * target.c (set_desired_inferior): Adjust to use ptids.
14207 (mywait): Add new `ptid' argument. Adjust.
14208 (target_pid_to_str): New.
14209 * mem-break.h (free_all_breakpoints): Declare.
14210 * mem-break.c (breakpoints): Delelete.
14211 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
14212 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
14213 to use per-process breakpoint list.
14214 (free_all_breakpoints): New.
14215 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
14216 (symbol_cache, all_symbols_looked_up): Delete.
14217 (hexchars): New.
14218 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
14219 read_ptid): New.
14220 (prepare_resume_reply): Change ptid argument's type from unsigned
14221 long to ptid_t. Adjust. Implement W;process and X;process.
14222 (free_sym_cache, clear_symbol_cache): New.
14223 (look_up_one_symbol): Adjust to per-process symbol cache. *
14224 * server.c (cont_thread, general_thread, step_thread): Change type
14225 to ptid_t.
14226 (attached): Delete.
14227 (multi_process): New.
14228 (last_ptid): Change type to ptid_t.
14229 (struct vstop_notif) <ptid>: Change type to ptid_t.
14230 (queue_stop_reply, push_event): Change `ptid' argument's type to
14231 ptid_t.
14232 (discard_queued_stop_replies): Add `pid' argument.
14233 (start_inferior): Adjust to use ptids. Adjust to mywait interface
14234 changes. Don't reference the `attached' global.
14235 (attach_inferior): Adjust to mywait interface changes.
14236 (handle_query): Adjust to use ptids. Parse GDB's qSupported
14237 features. Handle and report "multiprocess+". Handle
14238 "qAttached:PID".
14239 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
14240 changes.
14241 (handle_v_kill): New.
14242 (handle_v_stopped): Adjust to use target_pid_to_str.
14243 (handle_v_requests): Allow multiple attaches and runs when
14244 multiprocess extensions are in effect. Handle "vKill".
14245 (myresume): Adjust to use ptids.
14246 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
14247 (handle_status): Adjust to discard_queued_stop_replies interface
14248 change.
14249 (first_thread_of, kill_inferior_callback)
14250 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
14251 (main): Call initialize_inferiors. Adjust to use ptids, killing
14252 and detaching from all inferiors. Handle multiprocess packet
14253 variants.
14254 * linux-low.h: Include gdb_proc_service.h.
14255 (struct process_info_private): New.
14256 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
14257 <lwpid_of>: Use ptid_get_lwp.
14258 (get_lwp_thread): Adjust.
14259 (struct lwp_info): Add `dead' member.
14260 (find_lwp_pid): Declare.
14261 * linux-low.c (thread_db_active): Delete.
14262 (new_inferior): Adjust comment.
14263 (inferior_pid): Delete.
14264 (linux_add_process): New.
14265 (handle_extended_wait): Adjust.
14266 (add_lwp): Change unsigned long to ptid.
14267 (linux_create_inferior): Add process to processes table. Adjust
14268 to use ptids. Don't set new_inferior here.
14269 (linux_attach_lwp): Rename to ...
14270 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
14271 it. Adjust to use ptids.
14272 (linux_attach_lwp): New.
14273 (linux_attach): Add process to processes table. Don't set
14274 new_inferior here.
14275 (struct counter): New.
14276 (second_thread_of_pid_p, last_thread_of_process_p): New.
14277 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
14278 multiple processes.
14279 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
14280 processes. Remove process from process table.
14281 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
14282 to multiple processes.
14283 (any_thread_of): New.
14284 (linux_detach): Add `pid' argument, and handle it. Remove process
14285 from processes table.
14286 (linux_join): Add `pid' argument. Handle it.
14287 (linux_thread_alive): Change unsighed long argument to ptid_t.
14288 Consider dead lwps as not being alive.
14289 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
14290 threads we're not interested in.
14291 (same_lwp, find_lwp_pid): New.
14292 (linux_wait_for_lwp): Change `pid' argument's type from int to
14293 ptid_t. Adjust.
14294 (linux_wait_for_event): Rename to ...
14295 (linux_wait_for_event_1): ... this. Change `pid' argument's type
14296 from int to ptid_t. Adjust.
14297 (linux_wait_for_event): New.
14298 (linux_wait_1): Add `ptid' argument. Change return type to
14299 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
14300 that exit from the process table.
14301 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
14302 Adjust.
14303 (mark_lwp_dead): New.
14304 (wait_for_sigstop): Adjust to use ptids. If a process exits while
14305 stopping all threads, mark its main lwp as dead.
14306 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
14307 ptids.
14308 (fetch_register, usr_store_inferior_registers)
14309 (regsets_fetch_inferior_registers)
14310 (regsets_store_inferior_registers, linux_read_memory)
14311 (linux_write_memory): Inline `inferior_pid'.
14312 (linux_look_up_symbols): Adjust to use per-process
14313 `thread_db_active'.
14314 (linux_request_interrupt): Adjust to use ptids.
14315 (linux_read_auxv): Inline `inferior_pid'.
14316 (initialize_low): Don't reference thread_db_active.
14317 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
14318 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
14319 (ps_getpid): Return the pid of the current inferior.
14320 * thread-db.c (proc_handle, thread_agent): Delete.
14321 (thread_db_create_event, thread_db_enable_reporting): Adjust to
14322 per-process data.
14323 (find_one_thread): Change argument type to ptid_t. Adjust to
14324 per-process data.
14325 (maybe_attach_thread): Adjust to per-process data and ptids.
14326 (thread_db_find_new_threads): Ditto.
14327 (thread_db_init): Ditto.
14328 * spu-low.c (spu_create_inferior, spu_attach): Add process to
14329 processes table. Adjust to use ptids.
14330 (spu_kill, spu_detach): Adjust interface. Remove process from
14331 processes table.
14332 (spu_join, spu_thread_alive): Adjust interface.
14333 (spu_wait): Adjust interface. Remove process from processes
14334 table. Adjust to use ptids.
14335 * win32-low.c (current_inferior_tid): Delete.
14336 (current_inferior_ptid): New.
14337 (debug_event_ptid): New.
14338 (thread_rec): Take a ptid. Adjust.
14339 (child_add_thread): Add `pid' argument. Adjust to use ptids.
14340 (child_delete_thread): Ditto.
14341 (do_initial_child_stuff): Add `attached' argument. Add process to
14342 processes table.
14343 (child_fetch_inferior_registers, child_store_inferior_registers):
14344 Adjust.
14345 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
14346 (win32_attach): Pass 1 to do_initial_child_stuff.
14347 (win32_kill): Adjust interface. Remove process from processes
14348 table.
14349 (win32_detach): Ditto.
14350 (win32_join): Adjust interface.
14351 (win32_thread_alive): Take a ptid.
14352 (win32_resume): Adjust to use ptids.
14353 (get_child_debug_event): Ditto.
14354 (win32_wait): Adjust interface. Remove exiting process from
14355 processes table.
14356
14357 2009-04-01 Pedro Alves <pedro@codesourcery.com>
14358
14359 Non-stop mode support.
14360
14361 * server.h (non_stop): Declare.
14362 (gdb_client_data, handler_func): Declare.
14363 (delete_file_handler, add_file_handler, start_event_loop):
14364 Declare.
14365 (handle_serial_event, handle_target_event, push_event)
14366 (putpkt_notif): Declare.
14367 * target.h (enum resume_kind): New.
14368 (struct thread_resume): Replace `step' field by `kind' field.
14369 (TARGET_WNOHANG): Define.
14370 (struct target_ops) <wait>: Add `options' argument.
14371 <supports_non_stop, async, start_non_stop>: New fields.
14372 (target_supports_non_stop, target_async): New.
14373 (start_non_stop): Declare.
14374 (mywait): Add `options' argument.
14375 * target.c (mywait): Add `options' argument. Print child exit
14376 notifications here.
14377 (start_non_stop): New.
14378 * server.c (non_stop, own_buf, mem_buf): New globals.
14379 (struct vstop_notif): New.
14380 (notif_queue): New global.
14381 (queue_stop_reply, push_event, discard_queued_stop_replies)
14382 (send_next_stop_reply): New.
14383 (start_inferior): Adjust to use resume_kind. Adjust to mywait
14384 interface changes.
14385 (attach_inferior): In non-stop mode, don't wait for the target
14386 here.
14387 (handle_general_set): Handle QNonStop.
14388 (handle_query): When handling qC, return the current general
14389 thread, instead of the first thread of the list.
14390 (handle_query): If the backend supports non-stop mode, include
14391 QNonStop+ in the qSupported query response.
14392 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
14393 and non-stop mode.
14394 (handle_v_attach, handle_v_run): Handle non-stop mode.
14395 (handle_v_stopped): New.
14396 (handle_v_requests): Report support for vCont;t. Handle vStopped.
14397 (myresume): Adjust to use resume_kind. Handle non-stop.
14398 (queue_stop_reply_callback): New.
14399 (handle_status): Handle non-stop mode.
14400 (main): Clear non_stop flag on reconnection. Use the event-loop.
14401 Refactor serial protocol handling from here ...
14402 (process_serial_event): ... to this new function. When GDB
14403 selects any thread, select one here. In non-stop mode, wait until
14404 GDB acks all pending events before exiting.
14405 (handle_serial_event, handle_target_event): New.
14406 * remote-utils.c (remote_open): Install remote_desc in the event
14407 loop.
14408 (remote_close): Remove remote_desc from the event loop.
14409 (putpkt_binary): Rename to...
14410 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
14411 (putpkt_binary): New as wrapper around putpkt_binary_1.
14412 (putpkt_notif): New.
14413 (prepare_resume_reply): In non-stop mode, don't change the
14414 general_thread.
14415 * event-loop.c: New.
14416 * Makefile.in (OBJ): Add event-loop.o.
14417 (event-loop.o): New rule.
14418
14419 * linux-low.h (pid_of): Moved here.
14420 (lwpid_of): New.
14421 (get_lwp_thread): Use lwpid_of.
14422 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
14423 * linux-low.c (pid_of): Delete.
14424 (inferior_pid): Use lwpid_of.
14425 (linux_event_pipe): New.
14426 (target_is_async_p): New.
14427 (delete_lwp): New.
14428 (handle_extended_wait): Use lwpid_of.
14429 (add_lwp): Don't set lwpid field.
14430 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
14431 (linux_kill_one_lwp): If killing a running lwp, stop it first.
14432 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
14433 (linux_detach_one_lwp): If detaching from a running lwp, stop it
14434 first. Adjust to linux_wait_for_event interface changes. Use
14435 lwpid_of.
14436 (linux_detach): Don't delete the main lwp here.
14437 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
14438 (status_pending_p): Don't consider explicitly suspended lwps.
14439 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
14440 pointer. Add OPTIONS argument. Change return type to int. Use
14441 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
14442 (linux_wait_for_event): Take an integer pid instead of a lwp_info
14443 pointer. Add status pointer argument. Return a pid instead of a
14444 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
14445 changes. In non-stop mode, don't switch to a random thread.
14446 (linux_wait): Rename to...
14447 (linux_wait_1): ... this. Add target_options argument, and handle
14448 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
14449 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
14450 clean exit and signal exit code. Don't stop all threads in
14451 non-stop mode. In all-stop mode, only stop all threads when
14452 reporting a stop to GDB. Handle explicit thread stop requests.
14453 (async_file_flush, async_file_mark): New.
14454 (linux_wait): New.
14455 (send_sigstop): Use lwpid_of.
14456 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
14457 interface changes. In non-stop mode, don't switch to a random
14458 thread.
14459 (linux_resume_one_lwp): Use lwpid_of.
14460 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
14461 (linux_resume_one_thread): ... this. Handle resume_stop. In
14462 non-stop mode, don't look for pending flag in all threads.
14463 (resume_status_pending_p): Don't consider explicitly suspended
14464 threads.
14465 (my_waitpid): Reimplement. Emulate __WALL.
14466 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
14467 Use lwpid_of.
14468 (sigchld_handler, linux_supports_non_stop, linux_async)
14469 (linux_start_non_stop): New.
14470 (linux_target_ops): Register linux_supports_non_stop, linux_async
14471 and linux_start_non_stop.
14472 (initialize_low): Install SIGCHLD handler.
14473 * thread-db.c (thread_db_create_event, find_one_thread)
14474 (thread_db_get_tls_address): Use lwpid_of.
14475 * win32-low.c (win32_detach): Adjust to use resume_kind.
14476 (win32_wait): Add `options' argument.
14477 * spu-low.c (spu_resume): Adjust to use resume_kind.
14478 (spu_wait): Add `options' argument.
14479
14480 2009-04-01 Pedro Alves <pedro@codesourcery.com>
14481
14482 Decouple target code from remote protocol.
14483
14484 * target.h (enum target_waitkind): New.
14485 (struct target_waitstatus): New.
14486 (struct target_ops) <wait>: Return an unsigned long. Take a
14487 target_waitstatus pointer instead of a char pointer.
14488 (mywait): Likewise.
14489 * target.c (mywait): Change prototype to return an unsigned long.
14490 Take a target_waitstatus pointer instead of a char pointer. Adjust.
14491 * server.h (thread_from_wait, old_thread_from_wait): Delete
14492 declarations.
14493 (prepare_resume_reply): Change prototype to take a
14494 target_waitstatus.
14495 * server.c (thread_from_wait, old_thread_from_wait): Delete.
14496 (last_status, last_ptid): New.
14497 (start_inferior): Remove "statusptr" argument. Adjust. Return a
14498 pid instead of a signal.
14499 (attach_inferior): Remove "status" and "signal" parameters.
14500 Adjust.
14501 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
14502 not as an address.
14503 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
14504 (handle_v_requests, myresume): Remove "status" and "signal"
14505 parameters. Adjust.
14506 (handle_status): New.
14507 (main): Delete local `status'. Adjust.
14508 * remote-utils.c: Include target.h.
14509 (prepare_resume_reply): Change prototype to take a
14510 target_waitstatus. Adjust.
14511
14512 * linux-low.c (linux_wait): Adjust to new target_ops->wait
14513 interface.
14514 * spu-low.c (spu_wait): Adjust.
14515 * win32-low.c (enum target_waitkind, struct target_waitstatus):
14516 Delete.
14517 (win32_wait): Adjust.
14518
14519 2009-04-01 Pedro Alves <pedro@codesourcery.com>
14520
14521 * target.h (struct thread_resume): Delete leave_stopped member.
14522 (struct target_ops): Add a `n' argument to the `resume' callback.
14523 * server.c (start_inferior): Adjust.
14524 (handle_v_cont, myresume): Adjust.
14525 * linux-low.c (check_removed_breakpoint): Adjust to resume
14526 interface change, and to removed leave_stopped field.
14527 (resume_ptr): Delete.
14528 (struct thread_resume_array): New.
14529 (linux_set_resume_request): Add new `arg' parameter. Adjust to
14530 resume interface change.
14531 (linux_continue_one_thread, linux_queue_one_thread)
14532 (resume_status_pending_p): Check if the resume field is NULL
14533 instead of checking the leave_stopped member.
14534 (linux_resume): Adjust to the target resume interface change.
14535 * spu-low.c (spu_resume): Adjust to the target resume interface
14536 change.
14537 * win32-low.c (win32_detach, win32_resume): Ditto.
14538
14539 2009-04-01 Pedro Alves <pedro@codesourcery.com>
14540
14541 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
14542 flag.
14543 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
14544 pending.
14545 (linux_continue_one_thread): Only preserve the stepping flag if
14546 there's a pending breakpoint.
14547
14548 2009-03-31 Pedro Alves <pedro@codesourcery.com>
14549
14550 * server.c (main): After the inferior having exited, call
14551 remote_close before exiting gdbserver.
14552
14553 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
14554
14555 Fix size of FPSCR in Power 7 processors.
14556 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
14557 (PPC_FEATURE_HAS_DFP): New #define.
14558 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
14559 size of the FPSCR.
14560
14561 2009-03-23 Pedro Alves <pedro@codesourcery.com>
14562
14563 * server.c (handle_query) Whitespace and formatting.
14564
14565 2009-03-22 Pedro Alves <pedro@codesourcery.com>
14566
14567 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
14568 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
14569 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
14570 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
14571 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
14572 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
14573 Makefile.in, configure.ac: Fix whitespace throughout.
14574 * configure: Regenerate.
14575
14576 2009-03-22 Pedro Alves <pedro@codesourcery.com>
14577
14578 * inferiors.c (find_inferior): Make it safe for the callback
14579 function to delete the currently iterated inferior.
14580
14581 2009-03-22 Pedro Alves <pedro@codesourcery.com>
14582
14583 * Makefile.in (linuw_low_h): Move higher.
14584 (thread-db.o): Depend on $(linux_low_h).
14585
14586 2009-03-17 Pedro Alves <pedro@codesourcery.com>
14587
14588 Rename "process" to "lwp" throughout.
14589
14590 * linux-low.c (all_processes): Rename to...
14591 (all_lwps): ... this.
14592 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
14593 (add_process): Rename to ...
14594 (add_lwp): ... this. Adjust.
14595 (linux_create_inferior): Adjust.
14596 (linux_attach_lwp): Adjust.
14597 (linux_attach): Adjust.
14598 (linux_kill_one_process): Rename to ...
14599 (linux_kill_one_lwp): ... this. Adjust.
14600 (linux_kill): Adjust.
14601 (linux_detach_one_process): Rename to ...
14602 (linux_detach_one_lwp): ... this. Adjust.
14603 (linux_detach): Adjust.
14604 (check_removed_breakpoint): Adjust.
14605 (status_pending_p): Adjust.
14606 (linux_wait_for_process): Rename to ...
14607 (linux_wait_for_lwp): ... this. Adjust.
14608 (linux_wait_for_event): Adjust.
14609 (send_sigstop): Adjust.
14610 (wait_for_sigstop): Adjust.
14611 (stop_all_processes): Rename to ...
14612 (stop_all_lwps): ... this.
14613 (linux_resume_one_process): Rename to ...
14614 (linux_resume_one_lwp): ... this. Adjust.
14615 (linux_set_resume_request, linux_continue_one_thread)
14616 (linux_queue_one_thread, resume_status_pending_p)
14617 (usr_store_inferior_registers, regsets_store_inferior_registers)
14618 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
14619 Adjust.
14620 * linux-low.h (get_process): Rename to ...
14621 (get_lwp): ... this. Adjust.
14622 (get_thread_process): Rename to ...
14623 (get_thread_lwp): ... this. Adjust.
14624 (get_process_thread): Rename to ...
14625 (get_lwp_thread): ... this. Adjust.
14626 (struct process_info): Rename to ...
14627 (struct lwp_info): ... this.
14628 (all_processes): Rename to ...
14629 (all_lwps): ... this.
14630 * proc-service.c (ps_lgetregs): Adjust.
14631 * thread-db.c (thread_db_create_event, find_one_thread)
14632 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
14633
14634 2009-03-14 Pedro Alves <pedro@codesourcery.com>
14635
14636 * server.c (handle_query): Handle "qAttached".
14637
14638 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
14639
14640 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
14641 GPLv3, update license URL.
14642
14643 2009-03-01 Doug Evans <dje@google.com>
14644
14645 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
14646 (server_h): Add gdb_signals.h.
14647 (signals.o): Update.
14648 * server.h (target_signal_from_host,target_signal_to_host_p)
14649 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
14650
14651 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
14652
14653 * remote-utils.c (getpkt): Also generate remote-debug
14654 information if noack_mode is set.
14655
14656 2009-02-06 Pedro Alves <pedro@codesourcery.com>
14657
14658 * server.c (handle_query): Report qXfer:siginfo:read and
14659 qXfer:siginfo:write as supported and handle them.
14660 * target.h (struct target_ops) <qxfer_siginfo>: New field.
14661 * linux-low.c (linux_xfer_siginfo): New.
14662 (linux_target_ops): Set it.
14663
14664 2009-01-26 Pedro Alves <pedro@codesourcery.com>
14665
14666 * server.c (gdbserver_usage): Mention --remote-debug.
14667 (main): Accept '--remote-debug' switch.
14668
14669 2009-01-18 Doug Evans <dje@google.com>
14670
14671 * regcache.c (new_register_cache): No need to check result of xcalloc.
14672 * server.c (handle_search_memory): Back out calls to xmalloc,
14673 result is checked and error is returned to user upon failure.
14674 (handle_query): Ditto. Add more checks for result of malloc.
14675 (handle_v_cont): Check result of malloc, report error back to
14676 user upon failure.
14677 (handle_v_run): Ditto. Call freeargv.
14678 * server.h (freeargv): Declare.
14679 * utils.c (freeargv): New fn.
14680
14681 2009-01-15 Doug Evans <dje@google.com>
14682
14683 * gdbreplay.c (perror_with_name): Make arg const char *.
14684 * server.h (target_signal_to_name): Make return type const char *.
14685 * thread-db.c (thread_db_err_str): Make return type const char *.
14686 * utils.c (perror_with_name): Make arg const char *.
14687
14688 2009-01-14 Pedro Alves <pedro@codesourcery.com>
14689
14690 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
14691 when handling a EXIT_PROCESS_DEBUG_EVENT.
14692
14693 2009-01-06 Joel Brobecker <brobecker@adacore.com>
14694
14695 * gdbreplay.c (gdbreplay_version): Update copyright year.
14696 * server.c (gdbserver_version): Likewise.
14697
14698 2009-01-05 Doug Evans <dje@google.com>
14699
14700 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
14701 (handle_extended_wait): Improve comment.
14702
14703 2008-12-13 Doug Evans <dje@google.com>
14704
14705 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
14706 * server.h (ATTR_MALLOC): New macro.
14707 (xmalloc,xcalloc,xstrdup): Declare.
14708 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
14709 * inferiors.c: Ditto.
14710 * linux-low.c: Ditto.
14711 * mem-break.c: Ditto.
14712 * regcache.c: Ditto.
14713 * remote-utils.c: Ditto.
14714 * server.c: Ditto.
14715 * target.c: Ditto.
14716 * win32-low.c: Ditto.
14717
14718 2008-12-12 Doug Evans <dje@google.com>
14719
14720 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
14721 in debugging printf.
14722
14723 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
14724
14725 2008-12-09 Doug Evans <dje@google.com>
14726
14727 * linux-low.h (struct process_info): Delete member tid, unused.
14728 * thread-db.c (find_one_thread): Update.
14729 (maybe_attach_thread): Update.
14730
14731 2008-12-02 Pedro Alves <pedro@codesourcery.com>
14732
14733 * target.h (struct target_ops): Add qxfer_osdata member.
14734 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
14735 and dirent.h.
14736 (linux_qxfer_osdata): New functions.
14737 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
14738 callback.
14739 * server.c (handle_query): Handle "qXfer:osdata:read:".
14740 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
14741 (buffer_xml_printf): New functions.
14742 * server.h (struct buffer): New.
14743 (buffer_grow_str, buffer_grow_str0): New macros.
14744 (buffer_grow, buffer_free, buffer_init, buffer_finish)
14745 (buffer_xml_printf): Declare.
14746
14747 2008-11-24 Doug Evans <dje@google.com>
14748
14749 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
14750
14751 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
14752
14753 * server.c (handle_v_run): Always use the supplied argument list.
14754
14755 2008-11-19 Bob Wilson <bob.wilson@acm.org>
14756
14757 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
14758 (xtensa_regmap_table): Add entry for scompare1.
14759
14760 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
14761
14762 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
14763 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
14764 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
14765 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
14766 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
14767 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
14768 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
14769 XML target descriptions.
14770 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
14771 when inferior is running on an ISA 2.05 or later processor. Add
14772 special case to return offset for full 64-bit slot of FPSCR when
14773 in 32-bits.
14774
14775 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
14776
14777 * Makefile.in (SFILES, clean): Added sparc64 files.
14778 (reg-sparc64.o, reg-sparc64.c): New.
14779 * configure.srv (sparc*-*-linux*): New configuration.
14780 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
14781 syscall arguments for SPARC.
14782 (regsets_store_inferior_registers): Likewise.
14783 * linux-sparc-low.c: New file.
14784
14785 2008-10-21 Doug Evans <dje@google.com>
14786
14787 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
14788 (READLINE_DIR,READLINE_DEP): Delete.
14789 (INTERNAL_CFLAGS): Update.
14790 (LINTFLAGS): Update.
14791
14792 2008-10-10 Pedro Alves <pedro@codesourcery.com>
14793
14794 * server.c (handle_v_run): If GDB didn't specify an argv, use the
14795 whole argv from the last run, not just argv[0].
14796
14797 2008-09-08 Pedro Alves <pedro@codesourcery.com>
14798
14799 * regcache.c (new_register_cache): Return NULL if the register
14800 cache size isn't known yet.
14801 (free_register_cache): Avoid dereferencing a NULL regcache.
14802
14803 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
14804
14805 * configure.srv: Merge MIPS and MIPS64.
14806
14807 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
14808
14809 * Makefile.in (uninstall): Apply $(EXEEXT) too.
14810
14811 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
14812
14813 * Makefile.in: Add required vsx dependencies.
14814
14815 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
14816 Declare init_registers_powerpc_vsx32l.
14817 Declare init_registers_powerpc_vsx64l.
14818 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
14819 (ppc_arch_setup): Check for VSX in hwcap.
14820 (ppc_fill_vsxregset): New function.
14821 (ppc_store_vsxregset): New function.
14822 Add new VSX entry in regset_info target_regsets.
14823
14824 * configure.srv: Add new VSX dependencies.
14825
14826 2008-08-12 Pedro Alves <pedro@codesourcery.com>
14827
14828 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
14829 (remote_open): Set or clear transport_is_reliable.
14830 (putpkt_binary): Don't expect acks in noack mode.
14831 (getpkt): Don't send ack/nac in noack mode.
14832 * server.c (handle_general_set): Handle QStartNoAckMode.
14833 (handle_query): If connected by tcp pass QStartNoAckMode+ in
14834 qSupported.
14835 (main): Reset noack_mode on every connection.
14836 * server.h (noack_mode): Declare.
14837
14838 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14839
14840 * Makefile.in (GDBREPLAY_OBS): New variable.
14841 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
14842
14843 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
14844 Daniel Jacobowitz <dan@codesourcery.com>
14845
14846 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
14847 (usr_store_inferior_registers): Likewise.
14848 (regsets_store_inferior_registers): Likewise.
14849
14850 2008-07-31 Rolf Jansen <rj@surtec.com>
14851 Pedro Alves <pedro@codesourcery.com>
14852
14853 * configure.ac: Check for memmem declaration.
14854 * server.c [HAVE_MALLOC_H]: Include malloc.h.
14855 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
14856 (disable_packet_qfThreadInfo): Unconditionally compile.
14857 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
14858 * configure, config.in: Regenerate.
14859
14860 2008-07-28 Doug Kwan <dougkwan@google.com>
14861
14862 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
14863 (linux_write_memory): Remove declaration of errno.
14864
14865 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
14866
14867 * linux-low.c (handle_extended_wait): Do not use "status"
14868 variable uninitialized.
14869
14870 2008-07-07 Pedro Alves <pedro@codesourcery.com>
14871
14872 * server.c (handle_v_attach): Inhibit reporting dll changes.
14873
14874 2008-06-27 Pedro Alves <pedro@codesourcery.com>
14875
14876 * remote-utils.c (prepare_resume_reply): If requested, don't
14877 output "thread:TID" in the T stop reply.
14878
14879 * server.c (disable_packet_vCont, disable_packet_Tthread)
14880 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
14881 (handle_query): If requested, disable support for qC, qfThreadInfo
14882 and qsThreadInfo.
14883 (handle_v_requests): If requested, disable support for vCont.
14884 (gdbserver_show_disableable): New.
14885 (main): Handle --disable-packet and --disable-packet=LIST.
14886
14887 * server.h (disable_packet_vCont, disable_packet_Tthread)
14888 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
14889
14890 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
14891
14892 * server.c (gdbserver_usage): Mention --version.
14893
14894 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
14895
14896 * Makefile.in (gdbreplay.o): New rule.
14897
14898 2008-06-06 Joseph Myers <joseph@codesourcery.com>
14899
14900 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
14901 message, not gdbserver.
14902
14903 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
14904 Nathan Sidwell <nathan@codesourcery.com>
14905 Joseph Myers <joseph@codesourcery.com>
14906
14907 * acinclude.m4: Include ../../config/acx.m4.
14908 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
14909 * configure, config.in: Regenerate.
14910 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
14911 * server.c (gdbserver_version): Print PKGVERSION.
14912 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
14913 (main): Adjust gdbserver_usage calls.
14914 * gdbreplay.c (version, host_name): Add declarations.
14915 (gdbreplay_version, gdbreplay_usage): New.
14916 (main): Accept --version and --help options.
14917
14918 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
14919
14920 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
14921 (arm_breakpoint_at): Handle Thumb.
14922 (the_low_target): Add comment.
14923
14924 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
14925
14926 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
14927
14928 2008-05-09 Doug Evans <dje@google.com>
14929
14930 * server.h (decode_search_memory_packet): Declare.
14931 * remote-utils.c (decode_search_memory_packet): New fn.
14932 * server.c (handle_search_memory_1): New fn.
14933 (handle_search_memory): New fn.
14934 (handle_query): Process qSearch:memory packets.
14935
14936 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
14937
14938 * regcache.c (registers_length): Remove.
14939 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
14940 full register packet.
14941 * regcache.h (registers_length): Remove prototype.
14942 * server.h (PBUFSIZ): Define to 16384.
14943
14944 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
14945
14946 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
14947 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
14948 powerpc-64l.o, and powerpc-altivec64l.o.
14949 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
14950 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
14951 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
14952 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
14953 rs6000/power-linux.xml, and rs6000/power64-linux.xml
14954 to srv_xmlfiles.
14955
14956 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
14957 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
14958 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
14959 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
14960 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
14961 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
14962 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
14963 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
14964 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
14965 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
14966 (clean): Update.
14967
14968 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
14969 (init_registers_powerpc_32l): ... this new prototype.
14970 (init_registers_powerpc_32): Remove, replace by ...
14971 (init_registers_powerpc_altivec32l): ... this new prototype.
14972 (init_registers_powerpc_e500): Remove, replace by ...
14973 (init_registers_powerpc_e500l): ... this new prototype.
14974 (init_registers_ppc64): Remove, replace by ...
14975 (init_registers_powerpc_64l): ... this new prototype.
14976 (init_registers_powerpc_64): Remove, replace by ...
14977 (init_registers_powerpc_altivec64l): ... this new prototype.
14978 (ppc_num_regs): Set to 73.
14979 (PT_ORIG_R3, PT_TRAP): Define if necessary.
14980 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
14981 (ppc_cannot_store_register): Handle orig_r3 and trap.
14982 (ppc_arch_setup): Update init_registers_... calls.
14983 (ppc_fill_gregset): Handle orig_r3 and trap.
14984
14985 * inferiors.c (clear_inferiors): Reset current_inferior.
14986
14987 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
14988
14989 * acinclude.m4: Add override.m4.
14990 * configure: Regenerate.
14991
14992 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
14993
14994 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
14995 initial call to init_register_ppc64.
14996
14997 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
14998
14999 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
15000 single powerpc*-*-linux* case.
15001 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
15002
15003 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
15004
15005 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
15006 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
15007 from reg_xmlfiles.
15008 * linux-ppc-low.c: Include <elf.h>.
15009 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
15010 (ppc_hwcap): New global variable.
15011 (ppc_regmap): Remove __SPE__ #ifdef sections.
15012 (ppc_regmap_e500): New global variable.
15013 (ppc_cannot_store_register): Update __SPE__ special case.
15014 (ppc_get_hwcap): New function.
15015 (ppc_arch_setup): Use it to determine whether inferior supports
15016 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
15017 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
15018 Do not access registers if target does not support AltiVec.
15019 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
15020 Do not access registers if target does not support SPE.
15021 (target_regsets): Unconditionally include AltiVec and SPE regsets.
15022
15023 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
15024
15025 * linux-low.c (disabled_regsets, num_regsets): New.
15026 (use_regsets_p): Delete.
15027 (linux_wait_for_process): Clear disabled_regsets.
15028 (regsets_fetch_inferior_registers): Check and set it.
15029 (regsets_store_inferior_registers): Likewise.
15030 (linux_fetch_registers, linux_store_registers): Do not use
15031 use_regsets_p.
15032 (initialize_low): Allocate disabled_regsets.
15033
15034 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
15035
15036 * Makefile.in (LIBOBJS): New.
15037 (OBS): Use LIBOBJS.
15038 (memmem.o): New rule.
15039 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
15040 * configure: Regenerated.
15041
15042 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
15043
15044 * server.c (handle_query): Never return "unsupported" for
15045 qXfer:features:read queries.
15046
15047 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
15048
15049 * server.c (get_features_xml): Fix inverted condition.
15050 (handle_query): Always support qXfer:feature:read.
15051
15052 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
15053
15054 * server.c (wrapper_argv): New.
15055 (start_inferior): Handle wrapper_argv. If set, expect an extra
15056 trap.
15057 (gdbserver_usage): Document --wrapper.
15058 (main): Parse --wrapper.
15059
15060 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15061
15062 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
15063 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
15064 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
15065 (ppc_set_pc): Likewise.
15066 (ppc_arch_setup): New function.
15067 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
15068 of collect_register.
15069 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
15070
15071 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15072
15073 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
15074 instead of linux-ppc64-low.o.
15075 * linux-ppc64-low.c: Remove file.
15076 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
15077 (linux-ppc64-low.o): Remove rule.
15078
15079 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
15080 (init_registers_powerpc_64): Likewise.
15081 (ppc_regmap): Conditionally define depending on __powerpc64__.
15082 (ppc_cannot_store_register): Do not special-case "fpscr" when
15083 compiled on __powerpc64__.
15084 (ppc_collect_ptrace_register): New function.
15085 (ppc_supply_ptrace_register): New function.
15086 (ppc_breakpoint): Change type to "unsigned int".
15087 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
15088 (the_low_target): Conditionally provide initializers for the
15089 arch_setup member depending on __powerpc64__. Install
15090 collect_ptrace_register and supply_ptrace_register members.
15091
15092 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15093
15094 * regcache.h (gdbserver_xmltarget): Add extern declaration.
15095 * server.c (gdbserver_xmltarget): Define.
15096 (get_features_xml): Use it to replace "target.xml" and arch_string.
15097
15098 * configure.srv: Remove srv_xmltarget. Add XML files that were
15099 mentioned there to srv_xmlfiles instead. Remove conditional tests
15100 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
15101 srv_xmlfiles and srv_regobj to include all possible choices.
15102 * configure.ac (srv_xmltarget): Remove.
15103 (srv_xmlfiles): Do not add "target.xml".
15104 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
15105 checks for supplementary target information.
15106 * configure: Regenerate.
15107 * Makefile.in (XML_TARGET): Remove.
15108 (target.xml): Remove rule.
15109 (clean): Do not clean up target.xml.
15110 (.PRECIOUS): Do not mention target.xml.
15111
15112 * target.h (struct target_ops): Remove arch_string member.
15113 * linux-low.c (linux_arch_string): Remove.
15114 (linux_target_ops): Remove arch_string initializer.
15115 * linux-low.h (struct linux_target_ops): Remove arch_string member.
15116 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
15117 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
15118 * spu-low.c (spu_arch_string): Remove.
15119 (spu_target_ops): Remove arch_string initializer.
15120 * win32-low.c (win32_arch_string): Remove.
15121 (win32_target_ops): Remove arch_string initializer.
15122 * win32-low.h (struct win32_target_ops): Remove arch_string member.
15123 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
15124 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
15125
15126 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15127
15128 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
15129 by collect_ptrace_register and supply_ptrace_register hooks.
15130 * linux-low.c (fetch_register): Use supply_ptrace_register callback
15131 instead of checking for the_low_target.left_pad_xfer.
15132 (usr_store_inferior_registers): Use collect_ptrace_register callback
15133 instead of checking for the_low_target.left_pad_xfer.
15134
15135 * linux-s390-low.c (s390_collect_ptrace_register): New function.
15136 (s390_supply_ptrace_register): Likewise.
15137 (s390_fill_gregset): Call s390_collect_ptrace_register.
15138 (the_low_target): Update.
15139
15140 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
15141 (ppc_supply_ptrace_register): Likewise.
15142 (the_low_target): Update.
15143
15144 * linux-i386-low.c (the_low_target): Update.
15145 * linux-x86-64-low.c (the_low_target): Update.
15146
15147 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15148
15149 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
15150 reg-s390.o and reg-s390x.o.
15151
15152 * linux-low.c (new_inferior): New global variable.
15153 (linux_create_inferior, linux_attach): Set it.
15154 (linux_wait_for_process): Call the_low_target.arch_setup after the
15155 target has stopped for the first time.
15156 (initialize_low): Do not call the_low_target.arch_setup.
15157
15158 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
15159 (s390_set_pc): Likewise.
15160 (s390_arch_setup): New function.
15161 (the_low_target): Use s390_arch_setup as arch_setup routine.
15162
15163 * regcache.c (realloc_register_cache): New function.
15164 (set_register_cache): Call it for each existing regcache.
15165
15166 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15167
15168 * server.h (init_registers): Remove prototype.
15169
15170 * linux-low.h (struct linux_target_ops): Add arch_setup field.
15171 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
15172 instead of init_registers ().
15173 * linux-arm-low.c (init_registers_arm): Add prototype.
15174 (init_registers_arm_with_iwmmxt): Likewise.
15175 (the_low_target): Add initializer for arch_setup field.
15176 * linux-cris-low.c (init_registers_cris): Add prototype.
15177 (the_low_target): Add initializer for arch_setup field.
15178 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
15179 (the_low_target): Add initializer for arch_setup field.
15180 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
15181 (the_low_target): Add initializer for arch_setup field.
15182 * linux-ia64-low.c (init_registers_ia64): Add prototype.
15183 (the_low_target): Add initializer for arch_setup field.
15184 * linux-m32r-low.c (init_registers_m32r): Add prototype.
15185 (the_low_target): Add initializer for arch_setup field.
15186 * linux-m68k-low.c (init_registers_m68k): Add prototype.
15187 (the_low_target): Add initializer for arch_setup field.
15188 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
15189 (init_registers_mips64_linux): Likewise.
15190 (the_low_target): Add initializer for arch_setup field.
15191 * linux-ppc-low.c (init_registers_ppc): Add prototype.
15192 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
15193 (the_low_target): Add initializer for arch_setup field.
15194 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
15195 (init_registers_powerpc_64): Likewise.
15196 (the_low_target): Add initializer for arch_setup field.
15197 * linux-s390-low.c (init_registers_s390): Add prototype.
15198 (init_registers_s390x): Likewise.
15199 (the_low_target): Add initializer for arch_setup field.
15200 * linux-sh-low.c (init_registers_sh): Add prototype.
15201 (the_low_target): Add initializer for arch_setup field.
15202 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
15203 (the_low_target): Add initializer for arch_setup field.
15204 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
15205 (the_low_target): Add initializer for arch_setup field.
15206
15207 * win32-low.h (struct win32_target_ops): Add arch_setup field.
15208 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
15209 instead of init_registers ().
15210 * win32-arm-low.c (init_registers_arm): Add prototype.
15211 (the_low_target): Add initializer for arch_setup field.
15212 * win32-i386-low.c (init_registers_i386): Add prototype.
15213 (the_low_target): Add initializer for arch_setup field.
15214
15215 * spu-low.c (init_registers_spu): Add prototype.
15216 (initialize_low): Call initialie_registers_spu () instead of
15217 initialize_registers ().
15218
15219 2008-02-19 Pedro Alves <pedro@codesourcery.com>
15220
15221 * server.c (handle_v_requests): When handling the vRun and vAttach
15222 packets, if already debugging a process, don't kill it. Return an
15223 error instead.
15224
15225 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
15226
15227 * server.c (handle_query): Correct length check.
15228
15229 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
15230
15231 * win32-low.c (do_initial_child_stuff): Add process handle
15232 parameter. Set current_process_handle and current_process_id from the
15233 parameters. Clear globals.
15234 (win32_create_inferior): Don't set current_process_handle and
15235 current_process_id here. Instead pass them on the call to
15236 do_initial_child_stuff.
15237 (win32_attach): Likewise.
15238 (win32_clear_inferiors): New.
15239 (win32_kill): Don't close the current process handle or the
15240 current thread handle here. Instead call win32_clear_inferiors.
15241 (win32_detach): Don't open a new handle to the process. Call
15242 win32_clear_inferiors.
15243 (win32_join): Don't rely on current_process_handle; open a new
15244 handle using the process id.
15245 (win32_wait): Call win32_clear_inferiors when the inferior process
15246 has exited.
15247
15248 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
15249
15250 * server.c (monitor_show_help): Add "exit".
15251
15252 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
15253
15254 * Makefile.in (SFILES): Add linux-xtensa-low.c.
15255 (clean): Add reg-xtensa.c.
15256 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
15257 * configure.srv (xtensa*-*-linux*) New target.
15258 * linux-xtensa-low.c: New.
15259 * xtensa-xtregs.c: New.
15260
15261 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
15262
15263 * hostio.c: Don't include errno.h.
15264 (errno_to_fileio_errno): Move to hostio-errno.
15265 * hostio.c: (hostio_error): Remove the error parameter. Defer the
15266 error number outputting to the target->hostio_last_error callback.
15267 (hostio_packet_error): Use FILEIO_EINVAL directly.
15268 (handle_open, handle_pread, hostio_error, handle_unlink): Update
15269 calls to hostio_error.
15270 * hostio-errno.c: New.
15271 * server.h (hostio_last_error_from_errno): Declare.
15272 * target.h (target_ops): Add hostio_last_error member.
15273 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
15274 as hostio_last_error handler.
15275 * spu-low.c (spu_target_ops): Likewise.
15276 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
15277 (wince_hostio_last_error): New functions.
15278 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
15279 as hostio_last_error handler.
15280 (win32_target_ops) [!_WIN32_WCE]: Register
15281 hostio_last_error_from_errno as hostio_last_error handler.
15282 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
15283 (hostio-errno.o): New rule.
15284 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
15285 * configure.srv (srv_hostio_err_objs): New variable. Default to
15286 hostio-errno.o.
15287 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
15288 * configure: Regenerate.
15289
15290 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
15291
15292 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
15293 (linux_kill, linux_detach): Clean up the process list.
15294 * remote-utils.c (remote_open): Improve port number parsing.
15295 (putpkt_binary, input_interrupt): Only send interrupts if the target
15296 is running.
15297 * server.c (extended_protocol): Make static.
15298 (attached): Define earlier.
15299 (exit_requested, response_needed, program_argv): New variables.
15300 (target_running): New.
15301 (start_inferior): Clear attached here.
15302 (attach_inferior): Set attached here.
15303 (require_running): Define.
15304 (handle_query): Use require_running and target_running. Implement
15305 "monitor exit".
15306 (handle_v_attach, handle_v_run): New.
15307 (handle_v_requests): Use require_running. Handle vAttach and vRun.
15308 (gdbserver_usage): Update.
15309 (main): Redo argument parsing. Handle --debug and --multi. Handle
15310 --attach along with other options or after the port. Save
15311 program_argv. Support no initial program. Resynchronize
15312 communication with GDB after an error. Handle "monitor exit".
15313 Use require_running and target_running. Always allow the extended
15314 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
15315 restart in extended mode.
15316 * README: Refer to the GDB manual. Update --attach usage.
15317
15318 2007-12-20 Andreas Schwab <schwab@suse.de>
15319
15320 * linux-low.c (STACK_SIZE): Define.
15321 (linux_tracefork_child): Use it. Use __clone2 on ia64.
15322 (linux_test_for_tracefork): Likewise.
15323
15324 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
15325
15326 * linux-low.c (linux_wait_for_event): Update messages. Do not
15327 reinsert auto-delete breakpoints.
15328 * mem-break.c (struct breakpoint): Change return type of handler to
15329 int.
15330 (set_breakpoint_at): Update handler type.
15331 (reinsert_breakpoint_handler): Return 1 instead of calling
15332 delete_breakpoint.
15333 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
15334 setting a new one.
15335 (check_breakpoints): Delete auto-delete breakpoints and return 2.
15336 * mem-break.h (set_breakpoint_at): Update handler type.
15337 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
15338 * win32-low.c (auto_delete_breakpoint): New.
15339 (get_child_debug_event): Use it.
15340
15341 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
15342
15343 * configure.ac: Check for pread and pwrite.
15344 * hostio.c (handle_pread): Fall back to lseek and read.
15345 (handle_pwrite): Fall back to lseek and write.
15346 * config.in, configure: Regenerated.
15347
15348 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
15349
15350 * server.c (myresume): Add own_buf argument.
15351 (main): Update calls.
15352
15353 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
15354
15355 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
15356 * remote-utils.c (remote_open): Do not call disable_async_io.
15357 (block_async_io): Delete.
15358 (unblock_async_io): Make static.
15359 (initialize_async_io): New.
15360 * server.c (handle_v_cont): Handle async I/O here.
15361 (myresume): Likewise. Move other common resume tasks here...
15362 (main): ... from here. Call initialize_async_io. Disable async
15363 I/O before the main loop.
15364 * server.h (initialize_async_io): Declare.
15365 (block_async_io, unblock_async_io): Delete prototypes.
15366 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
15367
15368 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
15369
15370 * remote-utils.c (readchar): Allow binary data in received messages.
15371
15372 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15373
15374 * win32-low.c (attaching): New global.
15375 (win32_create_inferior): Clear the `attaching' global.
15376 (win32_attach): Set the `attaching' global.
15377 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
15378 attaching. Only set a breakpoint at the entry point if not
15379 attaching.
15380
15381 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15382
15383 * server.c (main): Don't report dll events on the initial
15384 connection on attaches.
15385
15386 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15387
15388 * server.c (main): Relax numerical bases supported for the pid of
15389 the --attach command line argument.
15390
15391 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15392
15393 * win32-low.c (win32_attach): Call OpenProcess before
15394 DebugActiveProcess, not after. Add last error output to error
15395 call.
15396
15397 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15398
15399 * win32-low.c (win32_get_thread_context)
15400 (win32_set_thread_context): New functions.
15401 (thread_rec): Use win32_get_thread_context.
15402 (continue_one_thread, win32_resume): Use win32_set_thread_context.
15403 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
15404 field.
15405
15406 2007-12-03 Leo Zayas
15407 Pedro Alves <pedro_alves@portugalmail.pt>
15408
15409 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
15410 global variables.
15411 (child_add_thread): Minor cleanup.
15412 (child_continue): Resume artificially suspended threads before
15413 calling ContinueDebugEvent.
15414 (suspend_one_thread): New.
15415 (fake_breakpoint_event): New.
15416 (get_child_debug_event): Change return type to int. Check here if
15417 gdb sent an interrupt request. If a soft interrupt was requested,
15418 fake a breakpoint event. Return 0 if there is no event to handle,
15419 and 1 otherwise.
15420 (win32_wait): Don't check here if gdb sent an interrupt request.
15421 Ensure there is a valid event to handle.
15422 (win32_request_interrupt): Add soft interruption method as last
15423 resort.
15424
15425 2007-12-03 Leo Zayas
15426 Pedro Alves <pedro_alves@portugalmail.pt>
15427
15428 * win32-low.h (win32_thread_info): Add descriptions to the
15429 structure members. Replace `suspend_count' counter by a
15430 `suspended' flag.
15431 * win32-low.c (thread_rec): Update condition of when to get the
15432 context from the inferior. Rely on ContextFlags being set if it
15433 has already been retrieved. Only suspend the inferior thread if
15434 we haven't already. Warn if that fails.
15435 (continue_one_thread): s/suspend_count/suspended/. Only call
15436 ResumeThread once. Warn if that fails.
15437
15438 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
15439
15440 * win32-low.c (win32_wait): Don't read from the inferior when it
15441 has already exited.
15442
15443 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
15444
15445 * Makefile.in (win32_low_h): New variable.
15446 (win32-low.o): Add dependency on $(win32_low_h).
15447 (win32-arm-low.o, win32-i386-low.o): New rules.
15448
15449 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
15450
15451 * hostio.c: Correct copyright year.
15452
15453 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
15454
15455 * Makefile.in (OBS): Add hostio.o.
15456 (hostio.o): New rule.
15457 * server.h (handle_vFile): Declare.
15458 * hostio.c: New file.
15459 * server.c (handle_v_requests): Take packet_len and new_packet_len
15460 for binary packets. Call handle_vFile.
15461 (main): Update call to handle_v_requests.
15462
15463 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
15464
15465 * linux-low.c: Include <sched.h>.
15466
15467 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
15468
15469 * linux-low.c (linux_tracefork_grandchild): New.
15470 (linux_tracefork_child): Use clone.
15471 (linux_test_for_tracefork): Use clone; allocate and free a stack.
15472
15473 2007-10-31 Joel Brobecker <brobecker@adacore.com>
15474
15475 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
15476
15477 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
15478
15479 * linux-low.c (handle_extended_wait): Handle unexpected signals.
15480
15481 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
15482
15483 * inferiors.c (change_inferior_id): Delete.
15484 (add_pid_to_list, pull_pid_from_list): New.
15485 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
15486 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
15487 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
15488 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
15489 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
15490 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
15491 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
15492 (using_threads): Always set to 1.
15493 (handle_extended_wait): New.
15494 (add_process): Do not set TID.
15495 (linux_create_inferior): Set must_set_ptrace_flags.
15496 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
15497 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
15498 (linux_thread_alive): Rename TID argument to LWPID.
15499 (linux_wait_for_process): Handle unknown processes. Do not use TID.
15500 (linux_wait_for_event): Do not use TID or check using_threads. Update
15501 call to dead_thread_notify. Call handle_extended_wait.
15502 (linux_create_inferior): Use PTRACE_SETOPTIONS.
15503 (send_sigstop): Delete sigstop_sent.
15504 (wait_for_sigstop): Avoid TID.
15505 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
15506 (linux_test_for_tracefork): New.
15507 (linux_lookup_signals): Use thread_db_active and
15508 linux_supports_tracefork_flag.
15509 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
15510 * linux-low.h (get_process_thread): Avoid TID.
15511 (struct process_ifo): Move thread_known and tid to the end. Remove
15512 sigstop_sent.
15513 (linux_attach_lwp, thread_db_init): Update prototypes.
15514 * server.h (change_inferior_id): Delete prototype.
15515 (add_pid_to_list, pull_pid_from_list): New prototypes.
15516 * thread-db.c (thread_db_use_events): New.
15517 (find_first_thread): Rename to...
15518 (find_one_thread): ...this. Update callers and messages. Do not
15519 call fatal. Check thread_db_use_events. Do not call
15520 change_inferior_id or new_thread_notify.
15521 (maybe_attach_thread): Update. Do not call new_thread_notify.
15522 (thread_db_init): Set thread_db_use_events. Check use_events.
15523 * utils.c (fatal, warning): Correct message prefix.
15524
15525 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
15526
15527 * Makefile.in (clean): Remove new files.
15528 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
15529 (powerpc-64.o, powerpc-64.c): New rules.
15530 * configure.srv: Use alternate register sets for powerpc64-*-linux*
15531 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
15532 with SPE.
15533 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
15534 SPE targets.
15535 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
15536 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
15537 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
15538 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
15539 (target_regsets): Add AltiVec and SPE register sets.
15540 * configure.ac: Check for AltiVec and SPE.
15541 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
15542 (ppc_fill_vrregset, ppc_store_vrregset): New.
15543 (target_regsets): Add AltiVec register set.
15544 * configure: Regenerated.
15545
15546 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
15547
15548 * linux-low.c (O_LARGEFILE): Define.
15549 (linux_read_memory): Use /proc/PID/mem.
15550 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
15551 * configure, config.in: Regenerated.
15552
15553 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
15554
15555 * linux-low.c (linux_wait_for_event): Do not pass signals while
15556 single-stepping.
15557
15558 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
15559
15560 * win32-low.c (create_process): New.
15561 (win32_create_inferior): Use create_process instead of
15562 CreateProcess. If create_process failed retry appending an ".exe"
15563 suffix. Store the GetLastError result immediatelly after
15564 create_process calls and use it on the call to error.
15565
15566 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
15567
15568 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
15569
15570 2007-08-23 Joel Brobecker <brobecker@adacore.com>
15571
15572 * configure.ac: Switch license to GPLv3.
15573
15574 2007-08-01 Michael Snyder <msnyder@access-company.com>
15575
15576 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
15577
15578 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
15579
15580 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
15581 typedef.
15582 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
15583 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
15584 CloseToolhelp32Snapshot.
15585 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
15586 CloseToolhelp32Snapshot.
15587
15588 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
15589
15590 * server.c (main): Check for inferior exit before main loop.
15591
15592 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
15593
15594 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
15595 instead of on tmp_desc.
15596
15597 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
15598 Daniel Jacobowitz <dan@codesourcery.com>
15599
15600 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
15601 (add_thread): Minor cleanups.
15602 (clear_inferiors): Move lower in the file. Clear the DLL
15603 list.
15604 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
15605 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
15606 (xml_escape_text): New.
15607 * server.c (handle_query): Handle qXfer:libraries:read. Report it
15608 for qSupported.
15609 (handle_v_cont): Report errors.
15610 (gdbserver_version): Update.
15611 (main): Correct size of own_buf. Do not report initial DLL events.
15612 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
15613 (unloaded_dll, xml_escape_text): New.
15614 * win32-low.c (enum target_waitkind): Update comments.
15615 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
15616 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
15617 (win32_EnumProcessModules, win32_GetModuleInformation)
15618 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
15619 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
15620 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
15621 (win32_Module32First, win32_Module32Next, load_toolhelp)
15622 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
15623 (get_child_debug_event): Handle DLL events.
15624 (win32_wait): Likewise.
15625
15626 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
15627
15628 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
15629 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
15630
15631 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
15632
15633 * win32-low.c (handle_output_debug_string): Ignore event if not
15634 waiting.
15635
15636 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
15637
15638 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
15639
15640 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
15641
15642 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
15643
15644 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
15645
15646 * inferiors.c (change_inferior_id): Add comment.
15647 * linux-low.c (check_removed_breakpoint): Add an early
15648 prototype. Improve debug output.
15649 (linux_attach): Doc update.
15650 (linux_detach_one_process, linux_detach): Clean up before releasing
15651 each process.
15652 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
15653 * linux-low.h (struct process_info): Doc improvement.
15654 * mem-break.c (delete_all_breakpoints): New.
15655 * mem-break.h (delete_all_breakpoints): New prototype.
15656 * thread-db.c (find_first_thread): New.
15657 (thread_db_create_event): Call it instead of
15658 thread_db_find_new_threads. Clean up unused variables.
15659 (maybe_attach_thread): Remove first thread handling.
15660 (thread_db_find_new_threads): Use find_first_thread.
15661 (thread_db_get_tls_address): Likewise.
15662
15663 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
15664
15665 * thread-db.c (thread_db_find_new_threads): Add prototype.
15666 (thread_db_create_event): Check for the main thread before adding
15667 a new thread.
15668 (maybe_attach_thread): Only enable event reporting if TID == 0.
15669 (thread_db_get_tls_address): Check for new threads.
15670
15671 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
15672
15673 * linux-low.c (linux_create_inferior): Try execv before execvp.
15674 * spu-low.c (spu_create_inferior): Likewise.
15675
15676 2007-06-13 Mike Frysinger <vapier@gentoo.org>
15677
15678 * linux-low.c (linux_create_inferior): Change execv to execvp.
15679 * spu-low.c (spu_create_inferior): Likewies.
15680
15681 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
15682
15683 * Makefile.in (clean): Clean new files instead of deleted ones.
15684 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
15685 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
15686 rules.
15687 * configure.srv: Specify XML files and new regformats for MIPS and
15688 MIPS64 GNU/Linux.
15689 * linux-mips-low.c (mips_num_regs): Set to only used registers.
15690 (mips_regmap): Do not fetch $0. Remove unused registers. Add
15691 an entry for the restart register.
15692 (mips_cannot_fetch_register, mips_cannot_store_register)
15693 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
15694 register names to match the XML descriptions.
15695 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
15696 restart register instead of $0.
15697
15698 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
15699 Markus Deuling <deuling@de.ibm.com>
15700
15701 * remote-utils.c (decode_xfer_write): New function.
15702 * server.h (decode_xfer_write): Add prototype.
15703 * server.c (handle_query): Add PACKET_LEN argument. Support
15704 qXfer:spu:read and qXfer:spu:write packets.
15705 (main): Pass packet_len to handle_query.
15706 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
15707 * target.h (target_ops): Add qxfer_spu.
15708
15709 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
15710
15711 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
15712 accessing non-seekable spufs files.
15713
15714 2007-05-16 Markus Deuling <deuling@de.ibm.com>
15715
15716 * server.c (handle_query): Add reply for qC packet.
15717
15718 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15719 Leo Zayas <lerele@champenstudios@com>
15720
15721 * server.h (check_remote_input_interrupt_request): New function.
15722 * remote_utils.c (INVALID_DESCRIPTOR): New define.
15723 (remote_desc): Initialize with INVALID_DESCRIPTOR.
15724 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
15725 (check_remote_input_interrupt_request): New function.
15726 * server.h (check_remote_input_interrupt_request): Declare.
15727 * win32-low.c (winapi_DebugBreakProcess,
15728 winapi_GenerateConsoleCtrlEvent): New typedefs.
15729 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
15730 to 250 ms.
15731 (win32_wait): Check for remote interrupt request
15732 with check_remote_input_interrupt_request.
15733 (win32_request_interrupt): New function.
15734 (win32_target_op): Set request_interrupt to win32_request_interrupt.
15735
15736 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15737
15738 * win32-low.c (debug_registers_changed,
15739 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
15740 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
15741 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
15742 (thread_rec): Get context using the low target.
15743 (child_add_thread): Call thread_added on the low target,
15744 which does the same thing.
15745 (regptr): Delete.
15746 (do_initial_child_stuff): Remove debug registers references.
15747 Set context using the low target. Resume threads after
15748 setting the contexts.
15749 (child_continue): Remove dead variable. Remove debug
15750 registers references.
15751 (child_fetch_inferior_registers): Go through the low target.
15752 (do_child_store_inferior_registers): Remove.
15753 (child_store_inferior_registers): Go through the low target.
15754 (win32_resume): Remove debug registers references.
15755 Set context using the low target.
15756 (handle_exception): Change return type to void. Don't record
15757 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
15758 first chance exception.
15759 (get_child_debug_event): Change return type to void. Remove
15760 goto loop. Always return after waiting for debug event.
15761 (win32_wait): Convert to switch statement. Handle spurious
15762 events.
15763
15764 * win32-i386-low.c (debug_registers_changed,
15765 debug_registers_used): New.
15766 (initial_stuff): Rename to ...
15767 (i386_initial_stuff): ... this. Clear debug registers
15768 state variables.
15769 (store_debug_registers): Delete.
15770 (i386_get_thread_context): New.
15771 (load_debug_registers): Delete.
15772 (i386_set_thread_context): New.
15773 (i386_thread_added): New.
15774 (single_step): Rename to ...
15775 (i386_single_step): ... this.
15776 (do_fetch_inferior_registers): Rename to ...
15777 (i386_fetch_inferior_register): ... this.
15778 (i386_store_inferior_register): New.
15779 (the_low_target): Adapt to new interface.
15780
15781 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
15782 (arm_get_thread_context): New.
15783 (arm_set_thread_context): New.
15784 (regptr): New.
15785 (do_fetch_inferior_registers): Rename to ...
15786 (arm_fetch_inferior_register): ... this.
15787 (arm_store_inferior_register): New.
15788 (arm_wince_breakpoint): Reimplement as unsigned long.
15789 (arm_wince_breakpoint_len): Define.
15790 (the_low_target): Adapt to new interface.
15791
15792 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
15793 load_debug_registers. Add get_thread_context, set_thread_context,
15794 thread_added and store_inferior_register. Rename
15795 fetch_inferior_registers to fetch_inferior_register.
15796 (regptr): Remove declaration.
15797
15798 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15799
15800 * linux-low.c (linux_detach): Change return type to int. Return 0.
15801 * spu-low.c (spu_detach): Likewise.
15802
15803 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15804
15805 * target.h (target_ops): Change return type of detach to int.
15806 Add join.
15807 (join_inferior): New.
15808 * server.c (main): Don't skip detach support on mingw32.
15809 If the inferior doesn't support detaching return error.
15810 Call join_inferior instead of using waitpid.
15811 * linux-low.c (linux_join): New.
15812 (linux_target_op): Add linux_join.
15813 * spu-low.c (spu_join): New.
15814 (spu_target_ops): Add spu_join.
15815 * win32-low.c (win32_detach): Adapt to new interface.
15816 Reopen current_process_handle before detaching. Issue a child
15817 resume before detaching.
15818 (win32_join): New.
15819 (win32_target_op): Add win32_join.
15820
15821 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15822
15823 * win32-low.c (win32-attach): Fix return value.
15824 * target.h (target_ops): Describe ATTACH return values.
15825
15826 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15827
15828 * win32-low.c (GETPROCADDRESS): Define.
15829 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
15830 (winapi_DebugSetProcessKillOnExit): Likewise.
15831 (win32_create_inferior): Force usage of ansi CreateProcessA.
15832 (win32_attach): Use GETPROCADDRESS.
15833 (win32_detach): Likewise.
15834
15835 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15836
15837 * win32-low.c (win32_wait): Don't use WSTOPSIG.
15838
15839 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
15840
15841 * win32-low.c: Commit leftover changes from 2007-03-29.
15842
15843 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
15844
15845 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
15846 fields short instead of int. Add explicit padding.
15847 (i387_cache_to_fsave): Remove unnecessary casts.
15848 (i387_fsave_to_cache): Doc fix.
15849 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
15850
15851 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
15852
15853 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
15854 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
15855
15856 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
15857
15858 * configure.srv (arm*-*-mingw32ce*): Move near the other
15859 arm targets.
15860
15861 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
15862
15863 * configure.ac: Add errno checking.
15864 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
15865 sys/file.h and malloc.h.
15866 (AC_CHECK_DECLS): Add perror.
15867 (srv_mingwce): Handle.
15868 * configure.srv (i[34567]86-*-cygwin*): Add
15869 win32-i386-low.o to srv_tgtobj.
15870 (i[34567]86-*-mingw*): Likewise.
15871 (arm*-*-mingw32ce*): Add case.
15872 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
15873 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
15874 [__MINGW32CE__] (strerror): New function.
15875 [__MINGW32CE__] (errno): Define to GetLastError.
15876 [__MINGW32CE__] (COUNTOF): New macro.
15877 (remote_open): Remove extra close call.
15878 * mem-break.c (delete_breakpoint_at): New function.
15879 * mem-break.h (delete_breakpoint_at): Declare.
15880 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
15881 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
15882 [USE_WIN32API] (read, write): Add char* casts.
15883 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
15884 * server.h: Include wincecompat.h on Windows CE.
15885 [HAVE_ERRNO_H]: Check.
15886 (perror): Declare if not declared.
15887 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
15888 (perror_with_name): Remove errno declaration.
15889 * wincecompat.h: New.
15890 * wincecompat.c: New.
15891 * win32-low.h: New.
15892 * win32-arm-low.c: New.
15893 * win32-i386-low.c: New.
15894 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
15895 (OUTMSG2): Make it safe.
15896 (_T): New macro.
15897 (COUNTOF): New macro.
15898 (NUM_REGS): Get it from the low target.
15899 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
15900 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
15901 (thread_rec): Let low target handle debug registers.
15902 (child_add_thread): Likewise.
15903 (child_init_thread_list): Likewise.
15904 (continue_one_thread): Likewise.
15905 (regptr): New.
15906 (do_child_fetch_inferior_registers): Move to ...
15907 * win32-i386-low.c: ... here, and rename to ...
15908 (do_fetch_inferior_registers): ... this.
15909 * win32-low.c (child_fetch_inferior_registers):
15910 Go through the low target.
15911 (do_child_store_inferior_registers): Use regptr.
15912 (strwinerror): New function.
15913 (win32_create_inferior): Handle Windows CE.
15914 Use strwinerror instead of strerror on Windows error
15915 codes. Add program to the error output.
15916 Don't close the main thread handle on Windows CE.
15917 (win32_attach): Use coredll.dll on Windows CE.
15918 (win32_kill): Close current process and current
15919 thread handles.
15920 (win32_detach): Use coredll.dll on Windows CE.
15921 (win32_resume): Let low target handle debug registers, and
15922 step request.
15923 (handle_exception): Add/Remove initial breakpoint. Avoid
15924 non-existant WSTOPSIG on Windows CE.
15925 (win32_read_inferior_memory): Cast to remove warning.
15926 (win32_arch_string): Go through the low target.
15927 (initialize_low): Call set_breakpoint_data with the low
15928 target's breakpoint.
15929 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
15930 FOP_REGNUM, mappings): Move to ...
15931 * win32-i386-low.c: ... here.
15932 * win32-low.c (win32_thread_info): Move to ...
15933 * win32-low.h: ... here.
15934 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
15935 win32-arm-low.c and wincecompat.c.
15936 (all:): Add $EXEEXT.
15937 (install-only:): Likewise.
15938 (gdbserver:): Likewise.
15939 (gdbreplay:): Likewise.
15940 * config.in: Regenerate.
15941 * configure: Regenerate.
15942
15943 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
15944
15945 * win32-low.c: Rename typedef thread_info to
15946 win32_thread_info throughout.
15947
15948 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
15949
15950 * win32-i386-low.c: Rename to ...
15951 * win32-low.c: ... this.
15952 * configure.srv: Replace win32-i386-low.o with win32-low.o.
15953 * Makefile.in: Likewise.
15954
15955 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
15956
15957 * remote-utils.c (monitor_output): Constify msg parameter.
15958 * server.h (monitor_output): Likewise.
15959 * win32-i386-low.c (handle_output_debug_string): New.
15960 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
15961 handle_output_debug_string.
15962 (get_child_debug_event): Likewise.
15963
15964 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
15965
15966 * server.c (main): Correct strtoul check.
15967
15968 2007-03-27 Jon Ringle <jon@ringle.org>
15969
15970 * linux-low.c: Check __ARCH_HAS_MMU__ also.
15971
15972 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
15973
15974 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
15975
15976 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
15977
15978 * terminal.h: Check HAVE_SGTTY_H.
15979
15980 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
15981
15982 * remote-utils.c (remote_open): Print out the assigned port number.
15983
15984 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
15985
15986 * remote-utils.c (monitor_output): New function.
15987 * server.c (debug_threads): Define here.
15988 (monitor_show_help): New function.
15989 (handle_query): Handle qRcmd.
15990 (main): Do not handle 'd' packet.
15991 * server.h (debug_threads, remote_debug, monitor_output): Declare.
15992 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
15993 of debug_threads.
15994
15995 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
15996
15997 * Makefile.in (EXEEXT): New.
15998 (clean): Use $(EXEEXT).
15999
16000 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
16001
16002 * target.h (target_ops): Rename send_signal to request_interrupt,
16003 and remove enum target_signal parameter.
16004 * linux-low.c (linux_request_interrupt): Rename from
16005 linux_send_signal, and always send SIGINT.
16006 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
16007 and always send SIGINT.
16008 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
16009 of send_signal.
16010 (input_interrupt): Likewise.
16011
16012 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
16013
16014 * server.c (get_features_xml): Check if target implemented
16015 arch_string.
16016 * win32-i386-low.c (win32_arch_string): New.
16017 (win32_target_ops): Add win32_arch_string as arch_string member.
16018
16019 2007-02-22 Markus Deuling <deuling@de.ibm.com>
16020
16021 * spu-low.c (spu_arch_string): New.
16022 (spu_target_ops): Add spu_arch_string.
16023
16024 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
16025
16026 * remote-utils.c: Remove HAVE_TERMINAL_H check.
16027 * configure.ac: Do not check for terminal.h.
16028 * configure, config.in: Regenerated.
16029
16030 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
16031
16032 * Makefile.in (OBS): Add $(XML_BUILTIN).
16033 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
16034 (clean): Update.
16035 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
16036 (arm-with-iwmmxt.c): New.
16037 * config.in, configure: Regenerate.
16038 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
16039 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
16040 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
16041 (arm*-*-linux*): Add iWMMXt and regset support.
16042 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
16043 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
16044 (arm_store_wmmxregset, target_regsets): New.
16045 * server.c (get_features_xml): Take annex argument. Check builtin
16046 XML documents.
16047 (handle_query): Handle multiple annexes.
16048
16049 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16050
16051 * remote-utils.c [USE_WIN32API] (read, write): Define.
16052 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
16053 write.
16054
16055 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
16056
16057 * linux-i386-low.c (the_low_target): Set arch_string.
16058 * linux-x86-64-low.c (the_low_target): Likewise.
16059 * linux-low.c (linux_arch_string): New.
16060 (linux_target_ops): Add it.
16061 * linux-low.h (struct linux_target_ops): Add arch_string.
16062 * server.c (write_qxfer_response): Use const void * for DATA.
16063 (get_features_xml): New.
16064 (handle_query): Handle qXfer:features:read. Report it for qSupported.
16065 * target.h (struct target_ops): Add arch_string method.
16066
16067 2007-01-03 Denis Pilat <denis.pilat@st.com>
16068 Daniel Jacobowitz <dan@codesourcery.com>
16069
16070 * linux-low.c (linux_kill): Handle being called with no threads.
16071 * win32-i386-low.c (win32_kill): Likewise.
16072 (get_child_debug_event): Clear current_process_handle.
16073
16074 2006-12-30 Denis PILAT <denis.pilat@st.com>
16075 Daniel Jacobowitz <dan@codesourcery.com>
16076
16077 * remote-utils.c (remote_open): Check the type of specified
16078 serial port devices before opening them.
16079 * server.c (main): Kill the inferior if an error occurs during
16080 the first remote_open.
16081
16082 2006-12-05 Markus Deuling <deuling@de.ibm.com>
16083
16084 * README: Update supported targets.
16085
16086 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
16087
16088 * Makefile.in (clean): Remove reg-mips64.c.
16089 (reg-mips64.c, reg-mips64.o): New rules.
16090 * configure.srv: Handle mips64. Include regset support for mips.
16091 * linux-mips-low.c (union mips_register): New.
16092 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
16093 (mips_breakpoint, mips_breakpoint_at): Use int.
16094 (mips_collect_register, mips_supply_register)
16095 (mips_collect_register_32bit, mips_supply_register_32bit)
16096 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
16097 (mips_store_fpregset, target_regsets): New.
16098 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
16099
16100 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
16101
16102 * configure.srv: Add target "spu*-*-*".
16103 * Makefile.in (clean): Remove reg-spu.c.
16104 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
16105 * spu-low.c: New file.
16106
16107 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
16108
16109 * configure.ac: Correct td_thr_tls_get_addr test.
16110 * configure: Regenerated.
16111
16112 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
16113
16114 * linux-low.c (linux_wait_for_event): Reformat. Use the
16115 pass_signals array.
16116 * remote-utils.c (decode_address_to_semicolon): New.
16117 * server.c (pass_signals, handle_general_set): New.
16118 (handle_query): Mention QPassSignals for qSupported.
16119 (main): Call handle_general_set.
16120 * server.h (pass_signals, decode_address_to_semicolon): New.
16121
16122 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
16123
16124 * server.c (handle_query): Correct error handling for read_auxv.
16125
16126 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
16127
16128 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
16129 and srv_linux_thread_db to yes.
16130 * linux-s390-low.c (s390_fill_gregset): New function.
16131 (target_regsets): Define data structure.
16132
16133 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
16134
16135 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
16136 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
16137 * config.in, configure: Regenerated.
16138 * inferiors.c (gdb_id_to_thread): New function.
16139 (gdb_id_to_thread_id): Use it.
16140 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
16141 * linux-low.h (struct process_info): Add th member.
16142 (thread_db_get_tls_address): New prototype.
16143 * remote-utils.c (decode_address): Make non-static.
16144 * server.c (handle_query): Handle qGetTLSAddr.
16145 * server.h (gdb_id_to_thread, decode_address): New prototypes.
16146 * target.h (struct target_ops): Add get_tls_address.
16147 * thread-db.c (maybe_attach_thread): Save the thread handle.
16148 (thread_db_get_tls_address): New.
16149
16150 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
16151
16152 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
16153 (linux_resume_one_process): Take a siginfo_t *. Update all
16154 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
16155 (struct pending_signals): Add a siginfo_t.
16156 (linux_wait_for_process): Always set last_status.
16157 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
16158 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
16159 * linux-low.h (struct process_info): Add last_status.
16160
16161 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
16162
16163 * remote-utils.c (try_rle): New function.
16164 (putpkt_binary): Use it.
16165
16166 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
16167
16168 * Makefile.in (clean): Clean reg-x86-64-linux.c.
16169 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
16170 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
16171 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
16172 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
16173 point registers.
16174
16175 2006-08-08 Richard Sandiford <richard@codesourcery.com>
16176
16177 * server.c (terminal_fd): New variable.
16178 (old_foreground_pgrp): Likewise.
16179 (restore_old_foreground_pgrp): New function.
16180 (start_inferior): Record the terminal file descriptor in terminal_fd
16181 and its original foreground group in old_foreground_pgrp. Register
16182 restore_old_foreground_pgrp with atexit().
16183
16184 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
16185
16186 * server.c (handle_query): Correct qPart to qXfer.
16187
16188 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
16189
16190 * configure.ac: Check for more headers which are missing on
16191 Windows. Automatically supply -lwsock32 and USE_WIN32API.
16192 * configure.srv: Add Cygwin and mingw32.
16193 * remote-utils.c: Don't include headers unconditionally which
16194 are missing on mingw32. Include <winsock.h> for mingw32.
16195 (remote_open): Adjust for mingw32 support. Flush
16196 standard error after writing to it.
16197 (remote_close, putpkt_binary, input_interrupt, block_async_io)
16198 (unblock_async_io, enable_async_io, disable_async_io)
16199 (readchar, getpkt): Update for Winsock support.
16200 (prepare_resume_reply): Expect a protocol signal number.
16201 * server.c: Disable <sys/wait.h> on mingw32.
16202 (start_inferior): Adjust for mingw32 support. Flush
16203 standard error after writing to it.
16204 (attach_inferior): Likewise. Use protocol signal
16205 numbers.
16206 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
16207 and names.
16208 * win32-i386-low.c: New file.
16209 * Makefile.in (XM_CLIBS): Set.
16210 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
16211 (win32-i386-low.o): New dependency rule.
16212 * linux-low.c (linux_wait): Use target signal numbers.
16213 * target.h (struct target_ops): Doc fix.
16214 * server.h (target_signal_to_name): New prototype.
16215 * gdbreplay.c: Don't include headers unconditionally which
16216 are missing on mingw32. Include <winsock.h> for mingw32.
16217 (remote_close, remote_open): Adjust for Winsock support.
16218 * configure, config.in: Regenerated.
16219
16220 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
16221
16222 * server.c (decode_xfer_read, write_qxfer_response): New.
16223 (handle_query): Take a packet length argument. Handle
16224 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
16225 the qSupported response.
16226 (main): Update call to handle_query.
16227
16228 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
16229
16230 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
16231 (putpkt_binary): Renamed from putpkt and adjusted for binary
16232 data.
16233 (putpkt): New wrapper for putpkt_binary.
16234 (readchar): Don't mask off the high bit.
16235 (decode_X_packet): New function.
16236 * server.c (main): Call putpkt_binary if a handler sets the packet
16237 length. Save the length of the incoming packet. Handle 'X'.
16238 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
16239
16240 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
16241
16242 * server.c (handle_query): Handle qSupported.
16243
16244 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
16245
16246 * remote-utils.c (all_symbols_looked_up): New variable.
16247 (look_up_one_symbol): Check it.
16248 * server.h (look_up_one_symbol): New declaration.
16249 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
16250
16251 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
16252
16253 * Makefile.in (linux-arm-low.o): Update dependencies.
16254 * linux-arm-low.c: Include "gdb_proc_service.h".
16255 (PTRACE_GET_THREAD_AREA): Define.
16256 (ps_get_thread_area): New function.
16257
16258 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
16259
16260 * configure.srv (m68k*-*-uclinux*): New target.
16261 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
16262 (linux_resume_one_process): Remove extraneous cast.
16263 (linux_read_offsets): New.
16264 (linux_target_op): Add linux_read_offsets on mmuless systems.
16265 * server.c (handle_query): Add qOffsets logic.
16266 * target.h (struct target_ops): Add read_offsets.
16267
16268 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
16269
16270 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
16271 (PTRACE_GET_THREAD_AREA): Define.
16272 (ps_get_thread_area): New function.
16273 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
16274 (linux-x86-64-low.o): Update.
16275
16276 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
16277
16278 * configure.ac: Remove checks for prfpregset_t.
16279 * gdb_proc_service.h: New file.
16280 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
16281 new "gdb_proc_service.h".
16282 * proc-service.c: Likewise.
16283 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
16284 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
16285 * Makefile.in (gdb_proc_service_h): Updated.
16286 * configure, config.in: Regenerated.
16287
16288 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
16289
16290 * remote-utils.c (prepare_resume_reply): Move declaration
16291 of gdb_id_from_wait to the top of the block.
16292
16293 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
16294
16295 * linux-low.c (regsets_store_inferior_registers): Read the regset
16296 from the target before filling it.
16297
16298 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
16299
16300 * server.c (attach_inferior): Return SIGTRAP for a successful
16301 attach.
16302
16303 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
16304
16305 * Makefile.in (OBS): Add version.o.
16306 (STAGESTUFF): Delete.
16307 (version.o): Add dependencies.
16308 (version.c): Replace rule.
16309 (clean): Remove version.c.
16310 * server.c (gdbserver_version): New.
16311 (gdbserver_usage): Use printf.
16312 (main): Handle --version and --help.
16313 * server.h (version, host_name): Add declarations.
16314
16315 2005-12-23 Eli Zaretskii <eliz@gnu.org>
16316
16317 * linux-arm-low.c:
16318 * linux-arm-low.c:
16319 * inferiors.c:
16320 * i387-fp.h:
16321 * i387-fp.c:
16322 * gdbreplay.c:
16323 * regcache.c:
16324 * proc-service.c:
16325 * mem-break.h:
16326 * mem-break.c:
16327 * linux-x86-64-low.c:
16328 * linux-sh-low.c:
16329 * linux-s390-low.c:
16330 * linux-ppc64-low.c:
16331 * linux-ppc-low.c:
16332 * linux-mips-low.c:
16333 * linux-m68k-low.c:
16334 * linux-m32r-low.c:
16335 * linux-low.h:
16336 * linux-low.c:
16337 * linux-ia64-low.c:
16338 * linux-i386-low.c:
16339 * linux-crisv32-low.c:
16340 * thread-db.c:
16341 * terminal.h:
16342 * target.h:
16343 * target.c:
16344 * server.h:
16345 * server.c:
16346 * remote-utils.c:
16347 * regcache.h:
16348 * utils.c:
16349 * Makefile.in:
16350 * configure.ac:
16351 * gdbserver.1: Add (C) after Copyright. Update the FSF
16352 address.
16353
16354 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
16355
16356 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
16357 (arm_breakpoint_at): Recognize both breakpoints.
16358 (the_low_target): Use the correct breakpoint instruction.
16359
16360 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
16361
16362 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
16363 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
16364 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
16365 (the_low_target): Update.
16366
16367 2005-10-25 Andreas Schwab <schwab@suse.de>
16368
16369 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
16370
16371 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
16372 (ia64_num_regs): Reduce to 462.
16373
16374 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
16375
16376 * acinclude.m4: Correct quoting.
16377 * aclocal.m4: Regenerated.
16378
16379 Suggested by SZOKOVACS Robert <szo@ies.hu>:
16380 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
16381 (thread_db_init): Call thread_db_err_str.
16382 * configure.ac: Check for TD_VERSION.
16383 * config.in, configure: Regenerated.
16384
16385 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16386
16387 * server.h (error, fatal, warning): Add ATTR_FORMAT.
16388
16389 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
16390
16391 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
16392 is not available. Define HAVE_PTRACE_GETREGS if it is.
16393 * config.in, configure: Regenerated.
16394 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
16395 * linux-i386-low.c, linux-m68k-low.c: Update to use
16396 HAVE_PTRACE_GETREGS.
16397 * linux-low.c (regsets_fetch_inferior_registers)
16398 (regsets_store_inferior_registers): Only return 0 if we processed
16399 GENERAL_REGS.
16400 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
16401 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
16402
16403 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
16404
16405 * inferiors.c (struct thread_info): Add gdb_id.
16406 (add_thread): Add gdb_id argument.
16407 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
16408 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
16409 calls to add_thread.
16410 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
16411 * server.c (handle_query): Use thread_to_gdb_id.
16412 (handle_v_cont, main): Use gdb_id_to_thread_id.
16413 * server.h (add_thread): Update prototype.
16414 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
16415 prototypes.
16416
16417 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
16418
16419 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
16420 left-padded registers.
16421 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
16422 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
16423
16424 2005-07-01 Steve Ellcey <sje@cup.hp.com>
16425
16426 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
16427 * configure: Regenerate.
16428 * config.in: Regenerate.
16429 * server.h (NEED_DECLARATION_STRERROR):
16430 Replace with !HAVE_DECL_STRERROR.
16431
16432 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
16433
16434 * linux-low.c (linux_wait, linux_send_signal): Don't test
16435 an unsigned long variable for > 0 if it could be MAX_ULONG.
16436 * server.c (myresume): Likewise.
16437 * target.c (set_desired_inferior): Likewise.
16438
16439 2005-06-13 Mark Kettenis <kettenis@gnu.org>
16440
16441 * configure.ac: Simplify and improve check for socklen_t.
16442 * configure, config.in: Regenerate.
16443
16444 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
16445
16446 * acconfig.h: Remove.
16447 * configure.ac: Add a test for socklen_t. Use three-argument
16448 AC_DEFINE throughout.
16449 * config.in: Regenerated using autoheader 2.59.
16450 * configure: Regenerated.
16451
16452 * gdbreplay.c (socklen_t): Provide a default.
16453 (remote_open): Use socklen_t.
16454 * remote-utils.c (socklen_t): Provide a default.
16455 (remote_open): Use socklen_t.
16456 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
16457 unsigned char.
16458
16459 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
16460 char for buffers.
16461 * linux-low.c (linux_read_memory, linux_write_memory)
16462 (linux_read_auxv): Likewise.
16463 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
16464 (check_mem_write): Likewise.
16465 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
16466 Likewise.
16467 * regcache.c (struct inferior_rgcache_data, registers_to_string)
16468 (registers_from_string, register_data): Likewise.
16469 * server.c (handle_query, main): Likewise.
16470 * server.h (convert_ascii_to_int, convert_int_to_ascii)
16471 (decode_M_packet): Likewise.
16472 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
16473 * target.h (struct target_ops): Update read_memory, write_memory,
16474 and read_auxv.
16475 (read_inferior_memory, write_inferior_memory): Update.
16476 * linux-low.h (struct linux_target_ops): Change type of breakpoint
16477 to unsigned char *.
16478 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
16479 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
16480 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
16481 linux-s390-low.c, linux-sh-low.c: Update for changes in
16482 read_inferior_memory and the_low_target->breakpoint.
16483
16484 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
16485
16486 * Makefile.in (SFILES): Add linux-ppc64-low.c.
16487 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
16488 * configure.srv: Add powerpc64-*-linux*.
16489 * linux-ppc64-low.c: New file.
16490
16491 2005-05-23 Orjan Friberg <orjanf@axis.com>
16492
16493 * linux-cris-low.c: New file with support for CRIS.
16494 * linux-crisv32-low.c: Ditto for CRISv32.
16495 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
16496 (clean): Add reg-cris.c and reg-crisv32.c.
16497 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
16498 reg-crisv32.o, and reg-crisv32.c to make rules.
16499 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
16500 recognized targets.
16501
16502 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
16503
16504 * linux-low.c (fetch_register): Ensure buffer size is a multiple
16505 of sizeof (PTRACE_XFER_TYPE).
16506 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
16507
16508 2005-05-12 Orjan Friberg <orjanf@axis.com>
16509
16510 * target.h (struct target_ops): Add insert_watchpoint,
16511 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
16512 pointers for hardware watchpoint support.
16513 * linux-low.h (struct linux_target_ops): Ditto.
16514 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
16515 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
16516 to linux_target_ops.
16517 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
16518 reply packet.
16519 * server.c (main): Recognize 'Z' and 'z' packets.
16520
16521 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
16522
16523 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
16524 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
16525 (the_low_target): Add new members.
16526
16527 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
16528
16529 * proc-service.c (ps_lgetregs): Search all_processes instead of
16530 all_threads.
16531
16532 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
16533
16534 * server.c (start_inferior): Change return type to int.
16535 (attach_inferior): Change sigptr to int *.
16536 (handle_v_cont, handle_v_requests): Change signal to int *.
16537 (main): Change signal to int.
16538
16539 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
16540
16541 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
16542 * configure.srv: Add m32r*-*-linux*.
16543 * linux-m32r-low.c: New file.
16544
16545 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
16546
16547 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
16548
16549 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
16550
16551 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
16552 Take unsigned long arguments for PIDs.
16553 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
16554 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
16555 (wait_for_sigstop, linux_resume_one_process)
16556 (regsets_fetch_inferior_registers, linux_send_signal)
16557 (linux_read_auxv): Likewise. Update the types of variables holding
16558 PIDs. Update format string specifiers.
16559 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
16560 * remote-utils.c (prepare_resume_reply): Likewise.
16561 * server.c (cont_thread, general_thread, step_thread)
16562 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
16563 unsigned long.
16564 (handle_query): Update format specifiers.
16565 (handle_v_cont, main): Use strtoul for thread IDs.
16566 * server.h (struct inferior_list_entry): Use unsigned long for ID.
16567 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
16568 (general_thread, step_thread, thread_from_wait)
16569 (old_thread_from_wait): Update.
16570 * target.h (struct thread_resume): Use unsigned long for THREAD.
16571 (struct target_ops): Use unsigned long for arguments to attach and
16572 thread_alive.
16573
16574 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
16575
16576 * acinclude.m4: Include bfd/bfd.m4 directly.
16577 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
16578 <agriffis@toolchain.org>.
16579 * aclocal.m4, configure: Regenerated.
16580
16581 2005-01-07 Andrew Cagney <cagney@gnu.org>
16582
16583 * configure.ac: Rename configure.in, require autoconf 2.59.
16584 * configure: Re-generate.
16585
16586 2004-12-08 Daniel Jacobowitz <dan@debian.org>
16587
16588 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
16589 LIBS when finished.
16590 * aclocal.m4: Regenerated.
16591 * configure: Regenerated.
16592
16593 2004-11-21 Andreas Schwab <schwab@suse.de>
16594
16595 * linux-m68k-low.c (m68k_num_gregs): Define.
16596 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
16597 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
16598 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
16599 (m68k_breakpoint_at): New. Add to the_low_target.
16600
16601 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
16602 srv_linux_thread_db to yes.
16603
16604 2004-10-20 Joel Brobecker <brobecker@gnat.com>
16605
16606 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
16607 (ARCH_SET_FS): Likewise.
16608 (ARCH_GET_FS): Likewise.
16609 (ARCH_GET_GS): Likewise.
16610
16611 2004-10-16 Daniel Jacobowitz <dan@debian.org>
16612
16613 * linux-i386-low.c (ps_get_thread_area): New.
16614 * linux-x86-64-low.c (ps_get_thread_area): New.
16615 * linux-low.c: Include <sys/syscall.h>.
16616 (linux_kill_one_process): Don't kill the first thread here.
16617 (linux_kill): Kill the first thread here.
16618 (kill_lwp): New function.
16619 (send_sigstop, linux_send_signal): Use it.
16620 * proc-service.c: Clean up #ifdefs.
16621 (fpregset_info): Delete.
16622 (ps_lgetregs): Update and enable implementation.
16623 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
16624 implementations.
16625 * remote-utils.c (struct sym_cache, symbol_cache): New.
16626 (input_interrupt): Print a clearer message.
16627 (async_io_enabled): New variable.
16628 (enable_async_io, disable_async_io): Use it. Update comments.
16629 (look_up_one_symbol): Use the symbol cache.
16630 * thread-db.c (thread_db_look_up_symbols): New function.
16631 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
16632
16633 2004-10-16 Daniel Jacobowitz <dan@debian.org>
16634
16635 * configure.in: Test for -rdynamic.
16636 * configure: Regenerated.
16637 * Makefile (INTERNAL_LDFLAGS): New.
16638 (gdbserver, gdbreplay): Use it.
16639
16640 2004-09-02 Andrew Cagney <cagney@gnu.org>
16641
16642 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
16643
16644 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
16645
16646 * linux-low.c (linux_wait): Clear all_processes list also.
16647
16648 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
16649
16650 * linux-low.c: Include <errno.h>. Remove extern declaration of
16651 errno.
16652
16653 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
16654
16655 * gdbreplay.c, server.h, utils.c: Update copyright years.
16656
16657 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
16658
16659 * server.c (main): Print child status or termination signal from
16660 variable 'signal', not 'sig'.
16661
16662 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
16663
16664 * linux-low.c (linux_read_memory): Change return type to
16665 int. Check for and return error from ptrace().
16666 * target.c (read_inferior_memory): Change return type to int. Pass
16667 back return status from the_target->read_memory().
16668 * target.h (struct target_ops): Adapt *read_memory() prototype.
16669 Update comment.
16670 (read_inferior_memory): Adapt prototype.
16671 * server.c (main): Return an error packet if
16672 read_inferior_memory() returns an error.
16673
16674 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
16675
16676 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
16677 Unify with other clean targets.
16678
16679 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
16680
16681 * server.c (handle_v_cont): Call set_desired_inferior.
16682
16683 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
16684
16685 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
16686
16687 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
16688
16689 * linux-low.c (linux_wait): Unblock async I/O.
16690 (linux_resume): Block and enable async I/O.
16691 * remote-utils.c (block_async_io, unblock_async_io): New functions.
16692 * server.h (block_async_io, unblock_async_io): Add prototypes.
16693
16694 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
16695
16696 * remote-utils.c (remote_open): Print a status notice after
16697 opening a TCP port.
16698 * server.c (attach_inferior): Print a status notice after
16699 attaching.
16700
16701 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
16702
16703 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
16704
16705 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
16706
16707 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
16708 error packet.
16709 * server.c, target.h: Update copyright years.
16710
16711 2004-02-25 Roland McGrath <roland@redhat.com>
16712
16713 * target.h (struct target_ops): New member `read_auxv'.
16714 * server.c (handle_query): Handle qPart:auxv:read: query using that.
16715 * linux-low.c (linux_read_auxv): New function.
16716 (linux_target_ops): Initialize `read_auxv' member to that.
16717
16718 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16719
16720 Committed by Jim Blandy <jimb@redhat.com>.
16721
16722 * linux-s390-low.c (s390_num_regs): Update.
16723 (s390_regmap): Remove control registers. Use __s390x__ predefine
16724 instead of GPR_SIZE to distiguish s390 and s390x targets.
16725
16726 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
16727
16728 * linux-low.c: Update copyright year.
16729 (check_removed_breakpoint): Clear pending_is_breakpoint.
16730 (linux_set_resume_request, linux_queue_one_thread)
16731 (resume_status_pending_p): New functions.
16732 (linux_continue_one_thread): Use process->resume.
16733 (linux_resume): Only resume threads if there are no pending events.
16734 * linux-low.h (struct process_info): Add resume request
16735 pointer.
16736
16737 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
16738
16739 * regcache.c (new_register_cache): Clear the allocated register
16740 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
16741
16742 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
16743
16744 * linux-low.c (linux_resume): Take a struct thread_resume *
16745 argument.
16746 (linux_wait): Update call.
16747 (resume_ptr): New static variable.
16748 (linux_continue_one_thread): Renamed from
16749 linux_continue_one_process. Use resume_ptr.
16750 (linux_resume): Use linux_continue_one_thread.
16751 * server.c (handle_v_cont, handle_v_requests): New functions.
16752 (myresume): New function.
16753 (main): Handle 'v' case.
16754 * target.h (struct thread_resume): New type.
16755 (struct target_ops): Change argument of "resume" to struct
16756 thread_resume *.
16757 (myresume): Delete macro.
16758
16759 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
16760
16761 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
16762 (uninstall): Support DESTDIR.
16763
16764 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
16765
16766 * configure.srv: Add xscale*linux copy of arm*linux entry.
16767
16768 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
16769
16770 * linux-arm-low.c (arm_reinsert_addr): New function.
16771 (the_low_target): Add arm_reinsert_addr.
16772
16773 2003-07-08 Mark Kettenis <kettenis@gnu.org>
16774
16775 * mem-break.c: Remove whitespace at end of file.
16776
16777 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
16778
16779 * configure.in: Check whether we need to prototype strerror.
16780 * server.h: Optionally prototype strerror.
16781 * gdbreplay.c (perror_with_name): Use strerror.
16782 * linux-low.c (linux_attach_lwp): Use strerror.
16783 * utils.c (perror_with_name): Use strerror.
16784 * config.in, configure: Regenerated.
16785
16786 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
16787
16788 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
16789 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
16790
16791 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
16792
16793 * Makefile.in (SFILES): Update.
16794 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
16795 low-sun3.c: Remove files.
16796
16797 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
16798
16799 * linux-low.c: Move comment to linux_thread_alive where it belonged.
16800 (linux_detach_one_process, linux_detach): New functions.
16801 (linux_target_ops): Add linux_detach.
16802 * server.c (main): Handle 'D' packet.
16803 * target.h (struct target_ops): Add "detach" member.
16804 (detach_inferior): Define.
16805
16806 2003-06-13 Mark Kettenis <kettenis@gnu.org>
16807
16808 From Kelley Cook <kelleycook@wideopenwest.com>:
16809 * configure.srv: Accept i[34567]86 variants.
16810
16811 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
16812
16813 * linux-low.c (linux_wait_for_event): Correct comment typos.
16814 (linux_resume_one_process): Call check_removed_breakpoint.
16815 (linux_send_signal): New function.
16816 (linux_target_ops): Add linux_send_signal.
16817 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
16818 of kill.
16819 * target.h (struct target_ops): Add send_signal.
16820
16821 2003-05-29 Jim Blandy <jimb@redhat.com>
16822
16823 * linux-low.c (usr_store_inferior_registers): Transfer buf in
16824 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
16825 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
16826 away part of the register's value.
16827
16828 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
16829
16830 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
16831 (linux_wait_for_event, linux_init_signals): Likewise.
16832
16833 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
16834
16835 * configure.in: Check for stdlib.h.
16836 * configure: Regenerated.
16837 * config.in: Regenerated.
16838
16839 2003-01-04 Andreas Schwab <schwab@suse.de>
16840
16841 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
16842
16843 2003-01-02 Andrew Cagney <ac131313@redhat.com>
16844
16845 * Makefile.in: Remove obsolete code.
16846
16847 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
16848
16849 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
16850 defined(PT_FPR0_HI).
16851
16852 2002-11-17 Stuart Hughes <seh@zee2.com>
16853
16854 * linux-arm-low.c (arm_num_regs): Increase.
16855 (arm_regmap): Include status register.
16856
16857 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
16858
16859 * linux-low.c (register_addr): Remove incorrect -1 check.
16860
16861 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
16862
16863 * linux-low.c (linux_create_inferior): Call setpgid. Return
16864 the new PID.
16865 (unstopped_p, linux_signal_pid): Remove.
16866 (linux_target_ops): Remove linux_signal_pid.
16867 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
16868 global instead of target method.
16869 * target.h (struct target_ops): Remove signal_pid. Update comment
16870 for create_inferior.
16871 * server.c (signal_pid): New variable.
16872 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
16873 gdbserver. Set the child to be the foreground process group.
16874 (attach_inferior): Set signal_pid.
16875
16876 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
16877
16878 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
16879
16880 2002-08-20 Jim Blandy <jimb@redhat.com>
16881
16882 * Makefile.in (LDFLAGS): Allow the configure script to establish a
16883 default for this.
16884
16885 2002-08-01 Andrew Cagney <cagney@redhat.com>
16886
16887 * Makefile.in: Make chill references obsolete.
16888
16889 2002-07-24 Kevin Buettner <kevinb@redhat.com>
16890
16891 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
16892 * configure: Regenerate.
16893 * config.in: Regenerate.
16894
16895 2002-07-09 David O'Brien <obrien@FreeBSD.org>
16896
16897 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
16898 (perror_with_name, remote_close, remote_open, expect, play): Static.
16899
16900 2002-07-04 Michal Ludvig <mludvig@suse.cz>
16901
16902 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
16903 byte offsets instead of an array of indexes.
16904 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
16905
16906 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
16907
16908 * regcache.c: Add comment.
16909
16910 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
16911
16912 * thread-db.c: New file.
16913 * proc-service.c: New file.
16914 * acinclude.m4: New file.
16915 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
16916 proc-service.o, and thread-db.o.
16917 (linux-low.o): Add USE_THREAD_DB.
16918 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
16919 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
16920 * aclocal.m4: Regenerated.
16921 * config.in: Regenerated.
16922 * configure: Regenerated.
16923 * configure.in: Check for proc_service.h, sys/procfs.h,
16924 thread_db.h, and linux/elf.h headrs.
16925 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
16926 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
16927 Check for -lthread_db and thread support.
16928 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
16929 PowerPC, and SuperH.
16930 * i387-fp.c: Constify arguments.
16931 * i387-fp.h: Likewise.
16932 * inferiors.c: (struct thread_info): Renamed from
16933 `struct inferior_info'. Remove PID member. Use generic inferior
16934 list header. All uses updated.
16935 (inferiors, signal_pid): Removed.
16936 (all_threads): New variable.
16937 (get_thread): Define.
16938 (add_inferior_to_list): New function.
16939 (for_each_inferior): New function.
16940 (change_inferior_id): New function.
16941 (add_inferior): Removed.
16942 (remove_inferior): New function.
16943 (add_thread): New function.
16944 (free_one_thread): New function.
16945 (remove_thread): New function.
16946 (clear_inferiors): Use for_each_inferior and free_one_thread.
16947 (find_inferior): New function.
16948 (find_inferior_id): New function.
16949 (inferior_target_data): Update argument type.
16950 (set_inferior_target_data): Likewise.
16951 (inferior_regcache_data): Likewise.
16952 (set_inferior_regcache_data): Likewise.
16953 * linux-low.c (linux_bp_reinsert): Remove.
16954 (all_processes, stopping_threads, using_thrads)
16955 (struct pending_signals, debug_threads, pid_of): New.
16956 (inferior_pid): Replace with macro.
16957 (struct inferior_linux_data): Remove.
16958 (get_stop_pc, add_process): New functions.
16959 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
16960 Use add_process and add_thread.
16961 (linux_attach_lwp): New function, based on old linux_attach. Use
16962 add_process and add_thread. Set stop_expected for new threads.
16963 (linux_attach): New function.
16964 (linux_kill_one_process): New function.
16965 (linux_kill): Kill all LWPs.
16966 (linux_thread_alive): Use find_inferior_id.
16967 (check_removed_breakpoints, status_pending_p): New functions.
16968 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
16969 Update. Use WNOHANG. Wait for cloned processes also. Update process
16970 struct for the found process.
16971 (linux_wait_for_event): New function.
16972 (linux_wait): Use it. Support LWPs.
16973 (send_sigstop, wait_for_sigstop, stop_all_processes)
16974 (linux_resume_one_process, linux_continue_one_process): New functions.
16975 (linux_resume): Support LWPs.
16976 (REGISTER_RAW_SIZE): Remove.
16977 (fetch_register): Use register_size instead. Call supply_register.
16978 (usr_store_inferior_registers): Likewise. Call collect_register.
16979 Fix recursive case.
16980 (regsets_fetch_inferior_registers): Improve error message.
16981 (regsets_store_inferior_registers): Add debugging.
16982 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
16983 (unstopped_p, linux_signal_pid): New functions.
16984 (linux_target_ops): Add linux_signal_pid.
16985 (linux_init_signals): New function.
16986 (initialize_low): Call it. Initialize using_threads.
16987 * regcache.c (inferior_regcache_data): Add valid
16988 flag.
16989 (get_regcache): Fetch registers lazily. Add fetch argument
16990 and update all callers.
16991 (regcache_invalidate_one, regcache_invalidate): New
16992 functions.
16993 (new_register_cache): Renamed from create_register_cache.
16994 Return the new regcache.
16995 (free_register_cache): Change argument to a void *.
16996 (registers_to_string, registers_from_string): Call get_regcache
16997 with fetch flag set.
16998 (register_data): Make static. Pass fetch flag to get_regcache.
16999 (supply_register): Call get_regcache with fetch flag clear.
17000 (collect_register): Call get_regcache with fetch flag set.
17001 (collect_register_as_string): New function.
17002 * regcache.h: Update.
17003 * remote-utils.c (putpkt): Flush after debug output and use
17004 stderr.
17005 Handle input interrupts while waiting for an ACK.
17006 (input_interrupt): Use signal_pid method.
17007 (getpkt): Flush after debug output and use stderr.
17008 (outreg): Use collect_register_as_string.
17009 (new_thread_notify, dead_thread_notify): New functions.
17010 (prepare_resume_reply): Check using_threads. Set thread_from_wait
17011 and general_thread.
17012 (look_up_one_symbol): Flush after debug output.
17013 * server.c (step_thread, server_waiting): New variables.
17014 (start_inferior): Don't use signal_pid. Update call to mywait.
17015 (attach_inferior): Update call to mywait.
17016 (handle_query): Handle qfThreadInfo and qsThreadInfo.
17017 (main): Don't fetch/store registers explicitly. Use
17018 set_desired_inferior. Support proposed ``Hs'' packet. Update
17019 calls to mywait.
17020 * server.h: Update.
17021 (struct inferior_list, struct_inferior_list_entry): New.
17022 * target.c (set_desired_inferior): New.
17023 (write_inferior_memory): Constify.
17024 (mywait): New function.
17025 * target.h: Update.
17026 (struct target_ops): New signal_pid method.
17027 (mywait): Removed macro, added prototype.
17028
17029 * linux-low.h (regset_func): Removed.
17030 (regset_fill_func, regset_store_func): New.
17031 (enum regset_type): New.
17032 (struct regset_info): Add type field. Use new operation types.
17033 (struct linux_target_ops): stop_pc renamed to get_pc.
17034 Add decr_pc_after_break and breakpoint_at.
17035 (get_process, get_thread_proess, get_process_thread)
17036 (strut process_info, all_processes, linux_attach_lwp)
17037 (thread_db_init): New.
17038
17039 * linux-arm-low.c (arm_get_pc, arm_set_pc,
17040 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
17041 (the_low_target): Add new members.
17042 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
17043 (i386_store_fpxregset): Constify.
17044 (target_regsets): Add new kind identifier.
17045 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
17046 (i386_set_pc): Add debugging.
17047 (i386_breakpoint_at): New function.
17048 (the_low_target): Add new members.
17049 * linux-mips-low.c (mips_get_pc, mips_set_pc)
17050 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
17051 (mips_breakpoint_at): New.
17052 (the_low_target): Add new members.
17053 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
17054 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
17055 (the_low_target): Add new members.
17056 * linux-sh-low.c (sh_get_pc, sh_set_pc)
17057 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
17058 (the_low_target): Add new members.
17059 * linux-x86-64-low.c (target_regsets): Add new kind
17060 identifier.
17061
17062 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
17063
17064 From Martin Pool <mbp@samba.org>:
17065 * server.c (gdbserver_usage): New function.
17066 (main): Call it.
17067
17068 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
17069
17070 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
17071 stop_at -> stop_pc.
17072
17073 2002-05-04 Andrew Cagney <ac131313@redhat.com>
17074
17075 * Makefile.in: Remove obsolete code.
17076
17077 2002-04-24 Michal Ludvig <mludvig@suse.cz>
17078
17079 * linux-low.c (regsets_fetch_inferior_registers),
17080 (regsets_store_inferior_registers): Removed cast to int from
17081 ptrace() calls.
17082 * regcache.h: Added declaration of struct inferior_info.
17083
17084 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
17085
17086 * inferiors.c (struct inferior_info): Add regcache_data.
17087 (add_inferior): Call create_register_cache.
17088 (clear_inferiors): Call free_register_cache.
17089 (inferior_regcache_data, set_inferior_regcache_data): New functions.
17090 * regcache.c (struct inferior_regcache_data): New.
17091 (registers): Remove.
17092 (get_regcache): New function.
17093 (create_register_cache, free_register_cache): New functions.
17094 (set_register_cache): Don't initialize the register cache here.
17095 (registers_to_string, registers_from_string, register_data): Call
17096 get_regcache.
17097 * regcache.h: Add prototypes.
17098 * server.h: Likewise.
17099
17100 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
17101
17102 * mem-break.c: New file.
17103 * mem-break.h: New file.
17104 * Makefile.in: Add mem-break.o rule; update server.h
17105 dependencies.
17106 * inferiors.c (struct inferior_info): Add target_data
17107 member.
17108 (clear_inferiors): Free target_data member if set.
17109 (inferior_target_data, set_inferior_target_data): New functions.
17110 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
17111 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
17112 * linux-low.c (linux_bp_reinsert): New variable.
17113 (struct inferior_linux_data): New.
17114 (linux_create_inferior): Use set_inferior_target_data.
17115 (linux_attach): Likewise. Call add_inferior.
17116 (linux_wait_for_one_inferior): New function.
17117 (linux_wait): Call it.
17118 (linux_write_memory): Add const.
17119 (initialize_low): Call set_breakpoint_data.
17120 * linux-low.h (struct linux_target_ops): Add breakpoint
17121 handling members.
17122 * server.c (attach_inferior): Remove extra add_inferior
17123 call.
17124 * server.h: Include mem-break.h. Update inferior.c
17125 prototypes.
17126 * target.c (read_inferior_memory)
17127 (write_inferior_memory): New functions.
17128 * target.h (read_inferior_memory)
17129 (write_inferior_memory): Change macros to prototypes.
17130 (struct target_ops): Update comments. Add const to write_memory
17131 definition.
17132
17133 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
17134
17135 * linux-low.c (usr_store_inferior_registers): Support
17136 registers which are allowed to fail to store.
17137 * linux-low.h (linux_target_ops): Likewise.
17138 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
17139 (ppc_cannot_store_register): FPSCR may not be storable.
17140
17141 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17142
17143 * server.h: Include <string.h> if HAVE_STRING_H.
17144 * ChangeLog: Correct paths in last ChangeLog entry.
17145
17146 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17147
17148 * linux-low.h: Remove obsolete prototypes.
17149 (struct linux_target_ops): New.
17150 (extern the_low_target): New.
17151 * linux-low.c (num_regs, regmap): Remove declarations.
17152 (register_addr): Use the_low_target explicitly.
17153 (fetch_register): Likewise.
17154 (usr_fetch_inferior_registers): Likewise.
17155 (usr_store_inferior_registers): Likewise.
17156 * linux-arm-low.c (num_regs): Remove.
17157 (arm_num_regs): Define.
17158 (arm_regmap): Renamed from regmap, made static.
17159 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
17160 made static.
17161 (arm_cannot_store_register): Renamed from cannot_store_register,
17162 made static.
17163 (the_low_target): New.
17164 * linux-i386-low.c (num_regs): Remove.
17165 (i386_num_regs): Define.
17166 (i386_regmap): Renamed from regmap, made static.
17167 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
17168 made static.
17169 (i386_cannot_store_register): Renamed from cannot_store_register,
17170 made static.
17171 (the_low_target): New.
17172 * linux-ia64-low.c (num_regs): Remove.
17173 (ia64_num_regs): Define.
17174 (ia64_regmap): Renamed from regmap, made static.
17175 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
17176 made static.
17177 (ia64_cannot_store_register): Renamed from cannot_store_register,
17178 made static.
17179 (the_low_target): New.
17180 * linux-m68k-low.c (num_regs): Remove.
17181 (m68k_num_regs): Define.
17182 (m68k_regmap): Renamed from regmap, made static.
17183 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
17184 made static.
17185 (m68k_cannot_store_register): Renamed from cannot_store_register,
17186 made static.
17187 (the_low_target): New.
17188 * linux-mips-low.c (num_regs): Remove.
17189 (mips_num_regs): Define.
17190 (mips_regmap): Renamed from regmap, made static.
17191 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
17192 made static.
17193 (mips_cannot_store_register): Renamed from cannot_store_register,
17194 made static.
17195 (the_low_target): New.
17196 * linux-ppc-low.c (num_regs): Remove.
17197 (ppc_num_regs): Define.
17198 (ppc_regmap): Renamed from regmap, made static.
17199 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
17200 made static.
17201 (ppc_cannot_store_register): Renamed from cannot_store_register,
17202 made static.
17203 (the_low_target): New.
17204 * linux-s390-low.c (num_regs): Remove.
17205 (s390_num_regs): Define.
17206 (s390_regmap): Renamed from regmap, made static.
17207 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
17208 made static.
17209 (s390_cannot_store_register): Renamed from cannot_store_register,
17210 made static.
17211 (the_low_target): New.
17212 * linux-sh-low.c (num_regs): Remove.
17213 (sh_num_regs): Define.
17214 (sh_regmap): Renamed from regmap, made static.
17215 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
17216 made static.
17217 (sh_cannot_store_register): Renamed from cannot_store_register,
17218 made static.
17219 (the_low_target): New.
17220 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
17221 (the_low_target): New.
17222
17223 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17224
17225 * Makefile.in: Add stamp-h target.
17226 * configure.in: Create stamp-h.
17227 * configure: Regenerated.
17228
17229 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17230
17231 * inferiors.c: New file.
17232 * target.c: New file.
17233 * target.h: New file.
17234 * Makefile.in: Add target.o and inferiors.o. Update
17235 dependencies.
17236 * linux-low.c (inferior_pid): New static variable,
17237 moved from server.c.
17238 (linux_create_inferior): Renamed from create_inferior.
17239 Call add_inferior. Return 0 on success instead of a PID.
17240 (linux_attach): Renamed from myattach.
17241 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
17242 (linux_thread_alive): Renamed from mythread_alive.
17243 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
17244 child dies.
17245 (linux_resume): Renamed from myresume. Add missing ``return 0''.
17246 (regsets_store_inferior_registers): Correct error message.
17247 Add missing ``return 0''.
17248 (linux_fetch_registers): Renamed from fetch_inferior_registers.
17249 (linux_store_registers): Renamed from store_inferior_registers.
17250 (linux_read_memory): Renamed from read_inferior_memory.
17251 (linux_write_memory): Renamed from write_inferior_memory.
17252 (linux_target_ops): New structure.
17253 (initialize_low): Call set_target_ops ().
17254 * remote-utils.c (unhexify): New function.
17255 (hexify): New function.
17256 (input_interrupt): Send signals to ``signal_pid''.
17257 * server.c (inferior_pid): Remove.
17258 (start_inferior): Update create_inferior call.
17259 (attach_inferior): Call add_inferior.
17260 (handle_query): New function.
17261 (main): Call handle_query for `q' packets.
17262 * server.h: Include "target.h". Remove obsolete prototypes.
17263 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
17264
17265 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17266
17267 * Makefile.in: Add WARN_CFLAGS. Update configury
17268 dependencies.
17269 * configure.in: Check for <string.h>
17270 * configure: Regenerate.
17271 * config.in: Regenerate.
17272 * gdbreplay.c: Include needed system headers.
17273 (remote_open): Remove strchr prototype.
17274 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
17275 * regcache.c (supply_register): Change buf argument to const void *.
17276 (supply_register_by_name): Likewise.
17277 (collect_register): Change buf argument to void *.
17278 (collect_register_by_name): Likewise.
17279 * regcache.h: Add missing prototypes.
17280 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
17281 * server.c (handle_query): New function.
17282 (attached): New static variable, moved out of main.
17283 (main): Quiet longjmp clobber warnings.
17284 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
17285 * utils.c (error): Remove NORETURN.
17286 (fatal): Likewise.
This page took 0.404158 seconds and 5 git commands to generate.