gdbserver: Ensure all debug output uses debug functions
[deliverable/binutils-gdb.git] / gdb / gdbserver / ChangeLog
1 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2
3 * ax.c (ax_vdebug): Call debug_printf.
4 * debug.c (debug_write): New function.
5 * debug.h (debug_write): New declaration.
6 * linux-low.c (sigchld_handler): Call debug_write.
7
8 2019-04-17 Alan Hayward <alan.hayward@arm.com>
9
10 * debug.c (debug_set_output): New function.
11 (debug_vprintf): Send output to debug_file.
12 (debug_flush): Likewise.
13 * debug.h (debug_set_output): New declaration.
14 * server.c (handle_monitor_command): Add debug-file option.
15 (captured_main): Likewise.
16
17 2019-04-17 Alan Hayward <alan.hayward@arm.com>
18
19 * debug.c (remote_debug): Add definition.
20 * debug.h (remote_debug): Add declaration.
21 * hostio.c (remote_debug): Remove declaration.
22 * remote-utils.c (struct ui_file): Likewise.
23 (remote_debug): Likewise.
24 * remote-utils.h (remote_debug): Likewise,
25 * server.c (remote_debug): Remove definition.
26
27 2019-04-10 Kevin Buettner <kevinb@redhat.com>
28
29 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
30 when using a 64-bit gdbserver.
31
32 2019-04-09 Tom Tromey <tromey@adacore.com>
33
34 * linux-low.c (select_event_lwp): Use find_thread_in_random.
35
36 2019-04-08 Tom Tromey <tom@tromey.com>
37
38 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
39 throw.
40 (linux_resume_one_lwp): Likewise.
41
42 2019-04-08 Tom Tromey <tom@tromey.com>
43
44 * gdbreplay.c: Update.
45 * linux-low.c: Update.
46 * server.c: Update.
47
48 2019-04-08 Tom Tromey <tom@tromey.com>
49
50 * server.c: Use C++ exception handling.
51 * linux-low.c: Use C++ exception handling.
52 * gdbreplay.c: Use C++ exception handling.
53
54 2019-04-08 Tom Tromey <tom@tromey.com>
55
56 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
57 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
58 (captured_main, main): Update.
59 * gdbreplay.c (main): Update.
60
61 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
62
63 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
64 value in argument pointer, return 1 if the entry is found and 0
65 otherwise. Move comment.
66 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
67 * linux-low.h (linux_get_auxv): Declare.
68 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
69
70 2019-04-05 Tom Tromey <tromey@adacore.com>
71
72 * server.c (gdbserver_usage): Use upper-case for metasyntactic
73 variables.
74
75 2019-03-28 Alan Hayward <alan.hayward@arm.com>
76
77 * linux-low.c (AT_HWCAP2): Add define if not already included.
78
79 2019-03-26 Alan Hayward <alan.hayward@arm.com>
80
81 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
82 (aarch64_arch_setup): Call linux_get_hwcap.
83 * linux-arm-low.c (arm_get_hwcap): Remove function.
84 (arm_read_description): Call linux_get_hwcap.
85 * linux-low.c (linux_get_auxv): New function.
86 (linux_get_hwcap): Likewise.
87 (linux_get_hwcap2): Likewise.
88 * linux-low.h (linux_get_hwcap): New declaration.
89 (linux_get_hwcap2): Likewise.
90 * linux-ppc-low.c (ppc_get_auxv): Remove function.
91 (ppc_arch_setup): Call linux_get_hwcap.
92 * linux-s390-low.c (s390_get_hwcap): Remove function.
93 (s390_arch_setup): Call linux_get_hwcap.
94
95 2019-03-22 Alan Hayward <alan.hayward@arm.com>
96 Jiong Wang <jiong.wang@arm.com>
97
98 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
99 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
100 to fail.
101 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
102
103 2019-03-22 Alan Hayward <alan.hayward@arm.com>
104 Jiong Wang <jiong.wang@arm.com>
105
106 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
107 (aarch64_get_hwcap): New function.
108 (aarch64_arch_setup): Read APIA hwcap.
109
110 2019-03-22 Alan Hayward <alan.hayward@arm.com>
111 Jiong Wang <jiong.wang@arm.com>
112
113 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
114 (initialize_low_tracepoint): Likewise.
115 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
116 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
117 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
118 (aarch64_linux_read_description): Likewise.
119 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
120
121 2019-03-12 John Baldwin <jhb@FreeBSD.org>
122
123 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
124 i386_create_target_description for 'segments' parameter.
125 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
126 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
127 * win32-i386-low.c (i386_arch_setup): Likewise.
128
129 2019-03-12 Tom Tromey <tromey@adacore.com>
130
131 * linux-low.c (iterate_over_lwps): Update.
132
133 2019-03-06 Tom Tromey <tom@tromey.com>
134
135 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
136 (captured_main): Use SCOPE_EXIT.
137
138 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
139
140 * configure.srv: Use '$enable_unittest' instead of '$development'
141 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
142 case.
143
144 2019-02-27 Tom Tromey <tromey@adacore.com>
145
146 * gdbreplay.c (logchar): Handle \r\n.
147
148 2019-02-07 Alan Hayward <alan.hayward@arm.com>
149
150 * linux-low.c (linux_attach): Add process before lwp.
151 * server.c (attach_inferior): Check if already attached.
152
153 2019-02-07 Tom Tromey <tom@tromey.com>
154
155 * x86-tdesc.h: Rename include guard.
156 * x86-low.h: Add include guard.
157 * wincecompat.h: Rename include guard.
158 * win32-low.h: Add include guard.
159 * utils.h: Rename include guard.
160 * tracepoint.h: Rename include guard.
161 * tdesc.h: Rename include guard.
162 * target.h: Rename include guard.
163 * server.h: Rename include guard.
164 * remote-utils.h: Rename include guard.
165 * regcache.h: Rename include guard.
166 * nto-low.h: Rename include guard.
167 * notif.h: Add include guard.
168 * mem-break.h: Rename include guard.
169 * lynx-low.h: Add include guard.
170 * linux-x86-tdesc.h: Add include guard.
171 * linux-s390-tdesc.h: Add include guard.
172 * linux-ppc-tdesc-init.h: Add include guard.
173 * linux-low.h: Add include guard.
174 * linux-aarch64-tdesc.h: Add include guard.
175 * linux-aarch32-low.h: Add include guard.
176 * inferiors.h: Rename include guard.
177 * i387-fp.h: Rename include guard.
178 * hostio.h: Rename include guard.
179 * gdbthread.h: Rename include guard.
180 * gdb_proc_service.h: Rename include guard.
181 * event-loop.h: Rename include guard.
182 * dll.h: Rename include guard.
183 * debug.h: Rename include guard.
184 * ax.h: Rename include guard.
185
186 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
187
188 PR gdb/23985
189 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
190 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
191
192 2019-01-25 Tom Tromey <tom@tromey.com>
193
194 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
195
196 2019-01-25 Tom Tromey <tom@tromey.com>
197
198 * win32-low.c: Fix common/ includes.
199 * win32-i386-low.c: Fix common/ includes.
200 * tracepoint.c: Fix common/ includes.
201 * thread-db.c: Fix common/ includes.
202 * target.h: Fix common/ includes.
203 * symbol.c: Fix common/ includes.
204 * spu-low.c: Fix common/ includes.
205 * server.h: Fix common/ includes.
206 * server.c: Fix common/ includes.
207 * remote-utils.c: Fix common/ includes.
208 * regcache.h: Fix common/ includes.
209 * regcache.c: Fix common/ includes.
210 * nto-x86-low.c: Fix common/ includes.
211 * notif.h: Fix common/ includes.
212 * mem-break.h: Fix common/ includes.
213 * lynx-low.c: Fix common/ includes.
214 * lynx-i386-low.c: Fix common/ includes.
215 * linux-x86-tdesc-selftest.c: Fix common/ includes.
216 * linux-x86-low.c: Fix common/ includes.
217 * linux-low.c: Fix common/ includes.
218 * inferiors.h: Fix common/ includes.
219 * i387-fp.c: Fix common/ includes.
220 * hostio.c: Fix common/ includes.
221 * hostio-errno.c: Fix common/ includes.
222 * gdbthread.h: Fix common/ includes.
223 * gdbreplay.c: Fix common/ includes.
224 * fork-child.c: Fix common/ includes.
225 * event-loop.c: Fix common/ includes.
226 * ax.c:
227 (enum gdb_agent_op): Fix common/ includes.
228
229 2019-01-21 Tom Tromey <tom@tromey.com>
230
231 * tracepoint.c: Fix includes.
232 * remote-utils.c: Fix includes.
233 * linux-x86-low.c: Fix includes.
234
235 2019-01-01 Joel Brobecker <brobecker@adacore.com>
236
237 * gdbreplay.c (gdbreplay_version): Update copyright year in
238 version message.
239 * server.c (gdbserver_version): Likewise.
240
241 2018-12-05 Alan Hayward <alan.hayward@arm.com>
242
243 * linux-low.c (add_lwp): Switch ordering.
244
245 2018-11-29 Tom Tromey <tom@tromey.com>
246
247 * win32-low.c (win32_join): Take pid, not process.
248 * target.h (struct target_ops) <join>: Change argument type.
249 (join_inferior): Change argument name.
250 * spu-low.c (spu_join): Take pid, not process.
251 * server.c (handle_detach): Preserve pid before destroying
252 process.
253 * lynx-low.c (lynx_join): Take pid, not process.
254 * linux-low.c (linux_join): Take pid, not process.
255
256 2018-11-23 Alan Hayward <alan.hayward@arm.com>
257
258 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
259 (aarch64_cannot_fetch_register): Likewise.
260 (struct linux_target_ops): Update references.
261
262 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
263
264 * linux-ppc-low.c: Include nat/linux-ptrace.h.
265
266 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
267
268 * configure.srv (ipa_ppc_linux_regobj): Add
269 powerpc-isa207-htm-vsx32l-ipa.o and
270 powerpc-isa207-htm-vsx64l-ipa.o.
271 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
272 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
273 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
274 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
275 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
276 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
277 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
278 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
279 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
280 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
281 (init_registers_powerpc_isa207_htm_vsx32l)
282 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
283 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
284 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
285 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
286 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
287 (ppc_store_tm_ctarregset): New functions.
288 (ppc_regsets): Add entries for HTM regsets.
289 (ppc_arch_setup): Set htm in features struct when needed. Set
290 sizes for the HTM regsets.
291 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
292 (initialize_low_arch): Call
293 init_registers_powerpc_isa207_htm_vsx32l and
294 init_registers_powerpc_isa207_htm_vsx64l.
295 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
296 PPC_TDESC_ISA207_HTM_VSX.
297 (initialize_low_tracepoint): Call
298 init_registers_powerpc_isa207_htm_vsx32l and
299 init_registers_powerpc_isa207_htm_vsx64l.
300
301 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
302
303 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
304 rs6000/power-linux-pmu.xml to srv_xmlfiles.
305 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
306 (ppc_store_pmuregset): New functions.
307 (ppc_regsets): Add entries for ebb and pmu regsets.
308 (ppc_arch_setup): Set isa207 in features struct if the ebb and
309 pmu regsets are available. Set sizes for these regsets.
310
311 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
312
313 * configure.srv (ipa_ppc_linux_regobj): Add
314 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
315 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
316 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
317 rs6000/powerpc-isa207-vsx32l.xml, and
318 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
319 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
320 <PPC_TDESC_ISA207_VSX>: New enum value.
321 (init_registers_powerpc_isa207_vsx32l): Declare.
322 (init_registers_powerpc_isa207_vsx64l): Declare.
323 * linux-ppc-low.c (ppc_fill_tarregset): New function.
324 (ppc_store_tarregset): New function.
325 (ppc_regsets): Add entry for the TAR regset.
326 (ppc_arch_setup): Set isa207 in features struct when needed. Set
327 size for the TAR regsets.
328 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
329 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
330 and init_registers_powerpc_isa207_vsx64l.
331 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
332 (initialize_low_tracepoint): Call
333 init_registers_powerpc_isa207_vsx32l and
334 init_registers_powerpc_isa207_vsx64l.
335
336 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
337 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
338
339 * configure.srv (ipa_ppc_linux_regobj): Add
340 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
341 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
342 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
343 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
344 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
345 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
346 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
347 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
348 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
349 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
350 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
351 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
352 (ppc_hwcap): Add comment.
353 (ppc_hwcap2): New global.
354 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
355 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
356 (ppc_regsets): Add entries for the DSCR and PPR regsets.
357 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
358 when needed. Set sizes for the the DSCR and PPR regsets.
359 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
360 (initialize_low_arch): Call
361 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
362 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
363 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
364 PPC_TDESC_ISA205_PPR_DSCR_VSX.
365 (initialize_low_tracepoint): Call
366 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
367 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
368
369 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
370
371 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
372
373 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
374 Simon Marchi <simark@simark.ca>
375
376 * acinclude.m4: Include "../selftest.m4".
377 * configure: Regenerate.
378 * configure.ac: Use "GDB_AC_SELFTEST".
379 * configure.srv: Use "$enable_unittests" instead of
380 "$development" when checking whether unit tests have been
381 enabled.
382 * server.c (captured_main): Update message informing that
383 selftests have been disabled.
384
385 2018-10-04 Tom Tromey <tom@tromey.com>
386
387 * configure: Rebuild.
388
389 2018-10-04 Tom Tromey <tom@tromey.com>
390
391 * server.c (handle_status): Rename inner "thread".
392 (process_serial_event): Declare "res" in 'm' case.
393 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
394 (iterate_over_lwps): Rename inner "thread".
395 (linux_qxfer_libraries_svr4): Rename inner "len".
396 * gdbthread.h (find_thread_in_random): Rename inner "thread".
397
398 2018-10-01 Gary Benson <gbenson@redhat.com>
399
400 * gdb_proc_service.h: Moved common code to
401 common/gdb_proc_service.h.
402
403 2018-10-01 Gary Benson <gbenson@redhat.com>
404
405 * gdb_proc_service.h: Synchronize comments and whitespace with
406 GDB's version of this file.
407
408 2018-09-25 Tom Tromey <tom@tromey.com>
409
410 * configure: Rebuild.
411 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
412
413 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
414
415 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
416 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
417 ($(IPA_LIB)): Sort IPA_OBJS.
418
419 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
420
421 * Makefile.in: Remove references to $(ADD_DEPS).
422
423 2018-09-16 Tom Tromey <tom@tromey.com>
424
425 * remote-utils.c (remote_open): Use GNU style for metasyntactic
426 variables.
427 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
428 variables.
429
430 2018-09-05 Tom Tromey <tom@tromey.com>
431
432 * configure: Rebuild.
433
434 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
435
436 PR build/23399
437 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
438
439 2018-08-27 Tom Tromey <tom@tromey.com>
440
441 PR build/23087:
442 * configure: Rebuild.
443
444 2018-08-27 Tom Tromey <tom@tromey.com>
445
446 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
447 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
448 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
449 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
450 (s390x_emit_stack_adjust): Add casts to unsigned char.
451
452 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
453
454 PR gdb/23374
455 PR gdb/23375
456 * server.h (struct client_state) <disable_randomization>:
457 Initialize to 1.
458
459 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
460
461 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
462 variable.
463 (mips_supply_ptrace_register): Likewise.
464
465 2018-07-22 Tom Tromey <tom@tromey.com>
466
467 * configure: Rebuild.
468
469 2018-07-22 Tom Tromey <tom@tromey.com>
470
471 * win32-low.c (win32_create_inferior): Remove unused variables.
472 * gdbreplay.c (remote_open): Remove unused variable.
473 * remote-utils.c (remote_prepare): Remove unused variable.
474 * x86-tdesc.h (X86_TDESC_H): Define.
475 (amd64_expedite_regs): Define conditionally.
476 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
477 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
478 * remote-utils.c (readchar): Remove unused variable.
479
480 2018-07-13 Pedro Alves <palves@redhat.com>
481
482 * linux-low.c (linux_kill): Change parameter to process_info
483 pointer instead of pid. Adjust.
484 * lynx-low.c (lynx_kill): Likewise.
485 * nto-low.c (nto_kill): Likewise.
486 * spu-low.c (spu_kill): Likewise.
487 * win32-low.c (win32_kill): Likewise.
488 * server.c (handle_v_kill, kill_inferior_callback)
489 (detach_or_kill_for_exit): Adjust.
490 * target.c (kill_inferior): Change parameter to process_info
491 pointer instead of pid. Adjust.
492 * target.h (struct target_ops) <kill>: Change parameter to
493 process_info pointer instead of pid. Adjust all implementations
494 and callers.
495 (kill_inferior): Likewise.
496
497 2018-07-13 Pedro Alves <palves@redhat.com>
498
499 * linux-low.c (linux_detach, linux_join): Change parameter to
500 process_info pointer instead of pid. Adjust.
501 * lynx-low.c (lynx_detach, lynx_join): Likewise.
502 * nto-low.c (nto_detach): Likewise.
503 * spu-low.c (spu_detach, spu_join): Likewise.
504 * win32-low.c (win32_detach, win32_join): Likewise.
505 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
506 * target.h (struct target_ops) <detach, join>: Change parameter to
507 process_info pointer instead of pid. Adjust all implementations
508 and callers.
509 (detach_inferior, join_inferior): Rename 'pid' parameter to
510 'proc'.
511
512 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
513 Jan Kratochvil <jan.kratochvil@redhat.com>
514 Paul Fertser <fercerpav@gmail.com>
515 Tsutomu Seki <sekiriki@gmail.com>
516
517 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
518 (OBS): Add 'common/netstuff.o'.
519 (GDBREPLAY_OBS): Likewise.
520 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
521 (remote_open): Implement support for IPv6
522 connections.
523 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
524 and 'wspiapi.h'.
525 (handle_accept_event): Accept connections from IPv6 sources.
526 (remote_prepare): Handle IPv6-style hostnames; implement
527 support for IPv6 connections.
528 (remote_open): Implement support for printing connections from
529 IPv6 sources.
530
531 2018-07-11 Pedro Alves <palves@redhat.com>
532
533 PR gdb/23377
534 * mem-break.c (any_persistent_commands): Add process_info
535 parameter and use it instead of relying on the current process.
536 Change return type to bool.
537 * mem-break.h (any_persistent_commands): Add process_info
538 parameter and change return type to bool.
539 * server.c (handle_detach): Remove require_running_or_return call.
540 Look up the process_info for the process we're about to detach.
541 If not found, return back error to GDB. Adjust
542 any_persistent_commands call to pass down a process pointer.
543
544 2018-07-11 Pedro Alves <palves@redhat.com>
545
546 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
547 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
548 instead of collect_register_by_name.
549 * regcache.c (regcache_raw_get_unsigned_by_name): New.
550 * regcache.h (regcache_raw_get_unsigned_by_name): New.
551
552 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
553 Pedro Alves <palves@redhat.com>
554
555 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
556
557 2018-07-03 Tom Tromey <tom@tromey.com>
558
559 * linux-low.c: Update.
560 * lynx-low.c: Update.
561 * mem-break.c: Update.
562 * nto-low.c: Update.
563 * remote-utils.c: Update.
564 * server.c: Update.
565 * spu-low.c: Update.
566 * target.c: Update.
567 * win32-low.c: Update.
568
569 2018-07-03 Tom Tromey <tom@tromey.com>
570
571 * server.c: Update.
572
573 2018-07-03 Tom Tromey <tom@tromey.com>
574
575 * linux-low.c: Update.
576
577 2018-07-03 Tom Tromey <tom@tromey.com>
578
579 * target.c: Update.
580
581 2018-07-03 Tom Tromey <tom@tromey.com>
582
583 * linux-low.c: Update.
584 * linux-mips-low.c: Update.
585 * lynx-low.c: Update.
586 * nto-low.c: Update.
587 * remote-utils.c: Update.
588 * server.c: Update.
589 * spu-low.c: Update.
590 * target.c: Update.
591 * thread-db.c: Update.
592
593 2018-07-03 Tom Tromey <tom@tromey.com>
594
595 * linux-low.c: Update.
596 * linux-mips-low.c: Update.
597 * lynx-low.c: Update.
598 * mem-break.c: Update.
599 * nto-low.c: Update.
600 * remote-utils.c: Update.
601 * server.c: Update.
602 * spu-low.c: Update.
603 * target.c: Update.
604 * tracepoint.c: Update.
605
606 2018-07-03 Tom Tromey <tom@tromey.com>
607
608 * linux-low.c: Update.
609 * linux-ppc-low.c: Update.
610 * linux-x86-low.c: Update.
611 * proc-service.c: Update.
612 * server.c: Update.
613 * spu-low.c: Update.
614 * thread-db.c: Update.
615 * win32-low.c: Update.
616
617 2018-07-03 Tom Tromey <tom@tromey.com>
618
619 * linux-low.c: Update.
620 * lynx-low.c: Update.
621 * nto-low.c: Update.
622 * remote-utils.c: Update.
623 * spu-low.c: Update.
624 * thread-db.c: Update.
625 * win32-low.c: Update.
626
627 2018-06-29 Joel Brobecker <brobecker@adacore.com>
628
629 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
630 parameter in call to 'amd64_create_target_description'.
631
632 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
633
634 * x86-tdesc.h: Remove executable permission flag.
635
636 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
637
638 * configure.ac: Remove AC_PREREQ, add missing quoting.
639 * configure: Re-generate.
640 * config.in: Re-generate.
641 * aclocal.m4: Re-generate.
642
643 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
644
645 * tracepoint.h (current_traceframe): Remove declaration.
646
647 2018-06-18 Alan Hayward <alan.hayward@arm.com>
648
649 * linux-aarch64-low.c (is_sve_tdesc): New function.
650 (aarch64_sve_regs_copy_to_regcache): Likewise.
651 (aarch64_sve_regs_copy_from_regcache): Likewise.
652 (aarch64_regs_info): Add SVE checks.
653 (initialize_low_arch): Initialize SVE.
654
655 2018-06-18 Alan Hayward <alan.hayward@arm.com>
656
657 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
658
659 2018-06-11 Alan Hayward <alan.hayward@arm.com>
660
661 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
662 (initialize_low_tracepoint): Likewise
663 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
664 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
665 param.
666 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
667 checks.
668 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
669
670 2018-06-11 Alan Hayward <alan.hayward@arm.com>
671
672 * server.h (PBUFSIZ): Increase size
673
674 2018-06-11 Alan Hayward <alan.hayward@arm.com>
675
676 * regcache.c (regcache::raw_compare): New function.
677 * regcache.h (regcache::raw_compare): New declaration.
678
679 2018-06-11 Alan Hayward <alan.hayward@arm.com>
680
681 * regcache.c (new_register_cache): Use new.
682 (free_register_cache): Use delete.
683 (register_data): Use const.
684 (supply_register): Move body inside regcache.
685 (regcache::raw_supply): New override function.
686 (collect_register): Move body inside regcache.
687 (regcache::raw_collect): New override function.
688 (regcache::get_register_status): New override function.
689 * regcache.h (struct regcache): Inherit from reg_buffer_common.
690
691 2018-06-09 Tom Tromey <tom@tromey.com>
692
693 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
694 declare queue.
695 (event_queue): Use std::queue.
696 (gdb_event_xfree): Remove.
697 (initialize_event_loop, process_event, wait_for_event): Update.
698
699 2018-06-08 Stan Cox <scox@redhat.com>
700
701 * win32-low.c (win32_create_inferior): last_ptid and last_status
702 moved to client_state.
703
704 2018-06-08 Pedro Alves <palves@redhat.com>
705
706 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
707 common/common-exceptions.o, common/common-utils.o,
708 common/errors.o, common/print-utils.o and utils.o.
709 * gdbreplay.c: Include "common-defs.h" instead of the two
710 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
711 string.h or alloca.h.
712 (perror_with_name): Delete.
713 (remote_open): Use xstrdup instead of strdup.
714 (main): Rename to ...
715 (captured_main): ... this.
716 (main): New.
717
718 2018-06-08 Tom Tromey <tom@tromey.com>
719
720 * linux-low.c (linux_low_read_btrace): Update.
721
722 2018-06-04 Stan Cox <scox@redhat.com>
723
724 * server.h (struct client_state): New.
725 * server.c (cont_thread, general_thread, multi_process)
726 (report_fork_events, report_vfork_events, report_exec_events)
727 (report_thread_events, swbreak_feature, hwbreak_feature)
728 (vCont_supported, disable_randomization, pass_signals)
729 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
730 Moved to client_state.
731 * remote-utils.c (remote_debug, noack_mode)
732 (transport_is_reliable): Moved to client_state.
733 * tracepoint.c (current_traceframe): Moved to client_state.
734
735 Update all callers.
736 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
737 linux-low.c, remote-utils.h, target.c: Use client_state.
738
739 2018-05-31 Alan Hayward <alan.hayward@arm.com>
740
741 * configure.srv: Add new c/h file.
742
743 2018-05-31 Alan Hayward <alan.hayward@arm.com>
744
745 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
746 null VQ.
747
748 2018-05-25 Maciej W. Rozycki <macro@mips.com>
749
750 * gdb.arch/mips-fpregset-core.exp: New test.
751 * gdb.arch/mips-fpregset-core.c: New test source.
752
753 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
754
755 PR server/23198
756 * hostio.c (require_int): Do not report overflow for integers
757 between 0xfffffff and 0x7fffffff.
758
759 2018-05-22 Maciej W. Rozycki <macro@mips.com>
760
761 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
762 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
763 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
764 functions.
765 (the_low_target): Wire them.
766
767 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
768
769 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
770 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
771 mode. Call collect_register_by_name with vscr using
772 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
773 (ppc_store_vrregset): Add and set vscr_offset variable as in
774 ppc_fill_vrregset. Call supply_register_by_name with vscr using
775 vscr_offset.
776
777 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
778
779 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
780 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
781 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
782
783 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
784
785 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
786 (ppc_store_vsxregset): Likewise.
787 (ppc_fill_vrregset): Likewise.
788 (ppc_store_vrregset): Likewise.
789 (ppc_fill_evrregset): Likewise.
790 (ppc_store_evrregset): Likewise.
791 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
792 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
793 needed.
794
795 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
796
797 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
798 wordsize of the inferior. Call ppc_linux_target_wordsize.
799
800 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
801
802 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
803 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
804 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
805 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
806 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
807 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
808 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
809 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
810 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
811 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
812 (tdesc_powerpc_e500l): Remove.
813 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
814 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
815 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
816 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
817 linux-ppc-tdesc.h.
818 (ppc_arch_setup): Remove target description matching code. Fill a
819 ppc_linux_features struct and call ppc_linux_match_description
820 with it.
821
822 2018-05-22 Maciej W. Rozycki <macro@mips.com>
823
824 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
825 width of the requested register exceeds the width of the
826 `ptrace' data type.
827 (mips_cannot_store_register): Likewise.
828
829 2018-05-21 Maciej W. Rozycki <macro@mips.com>
830
831 * linux-mips-low.c (mips_fetch_register): New function. Update
832 preceding comment.
833 (mips_store_gregset): Supply 0 rather than $restart for $zero.
834 (the_low_target): Wire `mips_fetch_register'.
835
836 2018-05-10 Joel Brobecker <brobecker@adacore.com>
837
838 * lynx-i386-low.c (LYNXOS_178): New macro.
839 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
840 the layout on LynxOS-178.
841 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
842 handle floating point registers that are not supported by
843 LynxOS-178.
844
845 2018-05-10 Tom Tromey <tom@tromey.com>
846
847 * configure: Rebuild.
848
849 2018-05-10 Joel Brobecker <brobecker@adacore.com>
850
851 PR server/23158:
852 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
853 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
854 Use it to set the expedite_regs field in the given tdesc.
855 * x86-tdesc.h: New file.
856 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
857 Adjust following the addition of the new expedite_regs parameter
858 to init_target_desc.
859 * linux-tic6x-low.c (tic6x_read_description): Likewise.
860 * linux-x86-tdesc.c: #include "x86-tdesc.h".
861 (i386_linux_read_description, amd64_linux_read_description):
862 Adjust following the addition of the new expedite_regs parameter
863 to init_target_desc.
864 * lynx-i386-low.c: #include "x86-tdesc.h".
865 (lynx_i386_arch_setup): Adjust following the addition of the new
866 expedite_regs parameter to init_target_desc.
867 * nto-x86-low.c: #include "x86-tdesc.h".
868 (nto_x86_arch_setup): Adjust following the addition of the new
869 expedite_regs parameter to init_target_desc.
870 * win32-i386-low.c: #include "x86-tdesc.h".
871 (i386_arch_setup): Adjust following the addition of the new
872 expedite_regs parameter to init_target_desc.
873
874 2018-05-10 Joel Brobecker <brobecker@adacore.com>
875
876 PR server/23158:
877 * win32-low.c (win32_create_inferior): Add call to my_wait
878 setting last_status global.
879
880 2018-05-10 Joel Brobecker <brobecker@adacore.com>
881
882 PR server/23158:
883 * win32-low.c (create_process): Only call gdb_tilde_expand if
884 inferior_cwd is not NULL.
885
886 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
887
888 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
889 registers to the cache if their values have changed.
890 (i387_xsave_to_cache): Provide default values for x87 control
891 registers when these features are available, but disabled.
892 * regcache.c (supply_register_by_name_zeroed): New function.
893 * regcache.h (supply_register_by_name_zeroed): Declare new
894 function.
895
896 2018-05-07 Tom Tromey <tom@tromey.com>
897
898 * configure: Rebuild.
899
900 2018-05-04 Tom Tromey <tom@tromey.com>
901
902 * configure: Rebuild.
903
904 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
905 Pedro Alves <palves@redhat.com>
906
907 * linux-aarch64-low.c (aarch64_stopped_data_address):
908 Likewise.
909
910 2018-04-27 Tom Tromey <tom@tromey.com>
911
912 * configure: Rebuild.
913
914 2018-04-23 Tom Tromey <tom@tromey.com>
915
916 * configure: Rebuild.
917
918 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
919
920 * Makefile.in (depcomp): Add "..".
921 (all_deps_files): New and use it.
922
923 2018-04-18 Alan Hayward <alan.hayward@arm.com>
924
925 * configure.srv (aarch64*-*-linux*): Don't include xml.
926 (i[34567]86-*-cygwin*): Likewise.
927 (i[34567]86-*-linux*): Likewise.
928 (i[34567]86-*-lynxos*): Likewise.
929 (i[34567]86-*-mingw32ce*): Likewise.
930 (i[34567]86-*-mingw*): Likewise.
931 (i[34567]86-*-nto*): Likewise.
932 (tic6x-*-uclinux): Likewise.
933 (x86_64-*-linux*): Likewise.
934 (x86_64-*-mingw*): Likewise.
935 (x86_64-*-cygwin*): Likewise.
936
937 2018-04-18 Alan Hayward <alan.hayward@arm.com>
938
939 * tdesc.c: Remove xml parameter.
940
941 2018-04-18 Alan Hayward <alan.hayward@arm.com>
942
943 * server.c (get_features_xml): Remove cast.
944 * tdesc.c (void target_desc::accept): Fill in function.
945 (tdesc_get_features_xml): Remove old xml creation.
946 (print_xml_feature::visit_pre): Add xml vistor.
947 * tdesc.h (struct target_desc): Make xmltarget mutable.
948 (tdesc_get_features_xml): Remove declaration.
949
950 2018-04-18 Alan Hayward <alan.hayward@arm.com>
951
952 * tdesc.c (tdesc_architecture_name): Add new function.
953 (tdesc_osabi_name): Likewise.
954 (tdesc_get_features_xml): Use new functions.
955
956 2018-04-18 Alan Hayward <alan.hayward@arm.com>
957
958 * tdesc.c (tdesc_create_flags): Remove.
959 (tdesc_add_flag): Likewise.
960 (tdesc_named_type): Likewise.
961 (tdesc_create_union): Likewise.
962 (tdesc_create_struct): Likewise.
963 (tdesc_create_vector): Likewise.
964 (tdesc_add_bitfield): Likewise.
965 (tdesc_add_field): Likewise.
966 (tdesc_set_struct_size): Likewise.
967
968 2018-04-18 Alan Hayward <alan.hayward@arm.com>
969
970 * tdesc.c (~target_desc): Remove implictly deleted items.
971 (init_target_desc): Iterate all features.
972 (tdesc_get_features_xml): Use vector.
973 (tdesc_create_feature): Create feature.
974 * tdesc.h (tdesc_feature) Remove
975 (target_desc): Add features.
976
977 2018-04-18 Alan Hayward <alan.hayward@arm.com>
978
979 * Makefile.in: Add common/tdesc.c
980 * tdesc.c (init_target_desc): init all reg_defs from register
981 vector.
982 (tdesc_create_reg): Create tdesc_reg.
983 * tdesc.h (tdesc_feature): Add register vector.
984
985 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
986
987 * tdesc.h (struct target_desc) <features>: Change type to
988 std::vector<std::string>.
989 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
990 changes.
991 (tdesc_get_features_xml): Likewise.
992 (tdesc_create_feature): Likewise.
993
994 2018-03-26 Alan Hayward <alan.hayward@arm.com>
995
996 * regcache.c (find_register_by_number): Return a ref.
997 (find_regno): Use references.
998 (register_size): Likewise.
999 (register_data): Likewise.
1000 * tdesc.c (target_desc::~target_desc): Remove free calls.
1001 (target_desc::operator==): Use std::vector compare.
1002 (init_target_desc): Use reference.
1003 (tdesc_create_reg): Use reg constructors.
1004 * tdesc.h (struct target_desc): Replace pointer with object.
1005
1006 2018-03-23 Alan Hayward <alan.hayward@arm.com>
1007
1008 * regcache.c (find_register_by_number): Make static.
1009 (find_regno): Use find_register_by_number
1010 * regcache.h (struct reg): Remove declaration.
1011
1012 2018-03-23 Alan Hayward <alan.hayward@arm.com>
1013
1014 * tdesc.c (target_desc::~target_desc): Move to here.
1015 (target_desc::operator==): Likewise.
1016 * tdesc.h (target_desc::~target_desc): Move from here.
1017 (target_desc::operator==): Likewise.
1018
1019 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
1020
1021 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
1022
1023 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1024
1025 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
1026 S390_TDESC_GS.
1027 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
1028 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
1029 and init_registers_s390_gs_linux64.
1030
1031 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1032
1033 * linux-s390-low.c (s390_fill_gs): Remove function.
1034 (s390_fill_gsbc): Remove function.
1035 (s390_regsets): Set fill functions for the guarded storage regsets
1036 to NULL.
1037
1038 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1039
1040 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
1041 the word size. Add comment.
1042 (s390_get_wordsize): New function.
1043 (s390_arch_setup): No longer select a temporary tdesc to fetch the
1044 pswm with it. Instead, use s390_get_wordsize to determine the
1045 word size first and derive the correct tdesc from that directly.
1046
1047 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
1048
1049 * Makefile.in: Include silent-rules.mk.
1050 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
1051 (COMPILE): Add ECHO_CXX.
1052 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
1053 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
1054 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
1055 (version-generated.c): Add ECHO_GEN.
1056 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
1057 (IPAGENT_COMPILE): Add ECHO_CXX.
1058 (%-generated.c): Add ECHO_REGDAT.
1059
1060 2018-03-14 Tom Tromey <tom@tromey.com>
1061
1062 PR cli/14977:
1063 * ax.c (ax_printf): Special case for NULL.
1064
1065 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1066
1067 * linux-low.c (linux_qxfer_libraries_svr4): Use
1068 xml_escape_text_append.
1069
1070 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1071
1072 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
1073
1074 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1075
1076 * server.c (handle_general_set): Remove unnecessary xstrdup.
1077
1078 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1079
1080 * server.c (parse_debug_format_options): Adjust to
1081 delim_string_to_char_ptr_vec changes.
1082 * thread-db.c (thread_db_load_search): Adjust to
1083 dirnames_to_char_ptr_vec changes.
1084
1085 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
1086
1087 * target.h (target_enable_btrace, target_disable_btrace)
1088 (target_read_btrace, target_read_btrace_conf): Turn macro into
1089 inline function. Throw error if target method is not defined.
1090 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
1091 check for btrace target method. Be prepared to handle exceptions
1092 from btrace target methods.
1093
1094 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1095
1096 * server.c (captured_main): Change order of error message printed
1097 when the current working directory cannot be found.
1098
1099 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1100
1101 * server.c: Include "filenames.h" and "pathstuff.h".
1102 (program_name): Delete variable.
1103 (program_path): New anonymous class.
1104 (get_exec_wrapper): Use "program_path" instead of
1105 "program_name".
1106 (handle_v_run): Likewise.
1107 (captured_main): Likewise.
1108 (process_serial_event): Likewise.
1109
1110 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1111
1112 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
1113 (OBJS): Add "pathstuff.o".
1114 * server.c (current_directory): New global variable.
1115 (captured_main): Initialize "current_directory".
1116
1117 2018-02-26 Alan Hayward <alan.hayward@arm.com>
1118
1119 * tdesc.c: Use common/tdesc.h.
1120 * tdesc.h: Likewise.
1121
1122 2018-02-20 Alan Hayward <alan.hayward@arm.com>
1123 Simon Marchi <simon.marchi@ericsson.com>
1124
1125 * Makefile.in: Switch order of make rules.
1126
1127 2018-02-19 Alan Hayward <alan.hayward@arm.com>
1128
1129 * Makefile.in: Add common directory in build.
1130 * configure.ac: Add common reference.
1131 * configure: Regenerate.
1132
1133 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1134
1135 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
1136 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
1137 * spu-low.c (spu_target_ops): Likewise.
1138 * win32-low.c (win32_target_ops): Likewise.
1139 * server.c (supported_btrace_packets): Report packets unconditionally.
1140 * target.h (target_ops) <supports_btrace>: Remove.
1141 (target_supports_btrace): Remove.
1142
1143 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1144
1145 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
1146 (handle_btrace_disable): Change return type to void. Use exceptions
1147 to report errors.
1148 (handle_btrace_general_set): Catch exception and copy message to
1149 return message.
1150
1151 2018-02-08 Tom Tromey <tom@tromey.com>
1152
1153 * linux-low.c (install_software_single_step_breakpoints): Use
1154 make_scoped_restore.
1155 * inferiors.c (make_cleanup_restore_current_thread): Remove.
1156 (do_restore_current_thread_cleanup): Remove.
1157 * gdbthread.h (make_cleanup_restore_current_thread): Don't
1158 declare.
1159
1160 2018-02-08 Tom Tromey <tom@tromey.com>
1161
1162 * mem-break.c (set_raw_breakpoint_at): Use
1163 gdb::unique_xmalloc_ptr.
1164
1165 2018-01-30 Pedro Alves <palves@redhat.com>
1166
1167 PR gdb/13211
1168 * target.c (target_terminal::terminal_state): Rename to ...
1169 (target_terminal::m_terminal_state): ... this.
1170
1171 2018-01-19 James Clarke <jrtc27@jrtc27.com>
1172
1173 * linux-low.c (handle_extended_wait): Surround call to
1174 thread_db_notice_clone with #ifdef USE_THREAD_DB.
1175
1176 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
1177
1178 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
1179 linux_ptrace_attach_fail_reason_string now returning an
1180 std::string.
1181 (linux_attach): Likewise.
1182 * thread-db.c (attach_thread): Likewise.
1183
1184 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
1185
1186 PR gdb/21559
1187 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
1188 checking for fs_base/gs_base fields in struct user_regs_struct.
1189 * configure: Regenerate.
1190
1191 2018-01-16 Yao Qi <yao.qi@linaro.org>
1192
1193 PR gdb/18749
1194 * linux-low.c (fetch_register): Call supply_register instead of
1195 error.
1196
1197 2018-01-08 Yao Qi <yao.qi@linaro.org>
1198 Simon Marchi <simon.marchi@ericsson.com>
1199
1200 * Makefile.in (OBS): Remove selftest.o.
1201 * configure.ac: Set srv_selftest_objs if $development is true.
1202 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
1203 * configure: Re-generated.
1204 * server.c (captured_main): Wrap variable selftest_filter with
1205 GDB_SELF_TEST.
1206
1207 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1208
1209 * server.c (parse_debug_format_options): Return std::string.
1210 (handle_monitor_command, captured_main): Adjust.
1211
1212 2018-01-05 Pedro Alves <palves@redhat.com>
1213
1214 PR gdb/18653
1215 * server.c (captured_main): Pass quiet=false to
1216 save_original_signals_state.
1217
1218 2018-01-01 Joel Brobecker <brobecker@adacore.com>
1219
1220 * gdbreplay.c (gdbreplay_version): Update copyright year in
1221 version message.
1222 * server.c (gdbserver_version): Likewise.
1223
1224 2017-12-08 Tom Tromey <tom@tromey.com>
1225
1226 * ax.c (ax_printf): Update.
1227
1228 2017-12-07 Yao Qi <yao.qi@linaro.org>
1229
1230 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
1231 aarch64_linux_read_description.
1232 * linux-amd64-ipa.c (idx2mask): New array.
1233 (get_ipa_tdesc): Move idx2mask out.
1234 (initialize_low_tracepoint): Initialize target descriptions.
1235 * linux-i386-ipa.c (idx2mask): New array.
1236 (get_ipa_tdesc): Move idx2mask out.
1237 (initialize_low_tracepoint): Initialize target descriptions.
1238
1239 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
1240
1241 * tdesc.c (struct tdesc_type): Change return type.
1242 (tdesc_add_flag): Change parameter type.
1243 (tdesc_add_bitfield): Likewise.
1244 (tdesc_add_field): Likewise.
1245 (tdesc_set_struct_size): Likewise.
1246
1247 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
1248
1249 * regcache.c (registers_to_string): Remove unused variable.
1250
1251 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1252
1253 * inferiors.c (for_each_inferior_with_data): Remove.
1254 * inferiors.h (for_each_inferior_with_data): Remove.
1255 * server.c (handle_qxfer_threads_worker): Change parameter type.
1256 (handle_qxfer_threads_proper): Use for_each_thread.
1257
1258 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1259
1260 * inferiors.c (for_each_inferior): Remove.
1261 (clear_inferiors): Use for_each_thread.
1262 * inferiors.h (for_each_inferior): Remove.
1263 * linux-low.c (linux_wait_for_event_filtered): Use
1264 for_each_thread.
1265 (linux_stabilize_threads): Likewise.
1266 * regcache.c (regcache_release): Likewise.
1267 * server.c (gdb_wants_all_threads_stopped): Likewise.
1268 (clear_pending_status_callback): Remove.
1269 (handle_status): Use for_each_thread.
1270 (captured_main): Likewise.
1271 * win32-low.c (child_init_thread_list): Likewise.
1272 (win32_clear_inferiors): Likewise.
1273 (fake_breakpoint_event): Likewise.
1274
1275 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1276
1277 * inferiors.h (find_inferior): Remove.
1278 * inferiors.c (find_inferior): Remove.
1279
1280 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1281
1282 * linux-low.c (resume_status_pending_p): Update comment.
1283 (need_step_over_p): Update comment.
1284
1285 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1286
1287 * linux-low.c (proceed_one_lwp): Return void, change parameter
1288 type.
1289 (unsuspend_and_proceed_one_lwp): Likewise.
1290 (proceed_all_lwps): Use for_each_thread.
1291 (unstop_all_lwps): Likewise.
1292
1293 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1294
1295 * linux-low.c (linux_resume_one_thread): Return void, take
1296 parameter directly.
1297 (linux_resume): Use for_each_thread.
1298
1299 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1300
1301 * linux-low.c (send_sigstop_callback): Return void, change
1302 parameter type. Rename to...
1303 (send_sigstop): ... this.
1304 (suspend_and_send_sigstop_callback): Return void, change parameter
1305 type. Rename to...
1306 (suspend_and_send_sigstop): ... this.
1307 (stop_all_lwps): Use for_each_thread.
1308
1309 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1310
1311 * linux-low.c (lwp_running): Return bool, remove unused
1312 argument.
1313 (linux_stabilize_threads): Use find_thread.
1314
1315 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1316
1317 * linux-low.c (select_singlestep_lwp_callback): Remove.
1318 (count_events_callback): Remove.
1319 (select_event_lwp_callback): Remove.
1320 (select_event_lwp): Use find_thread/for_each_thread.
1321
1322 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1323
1324 * linux-low.c (not_stopped_callback): Return bool, take filter
1325 argument directly.
1326 (linux_wait_for_event_filtered): Use find_thread.
1327 (linux_wait_1): Likewise.
1328
1329 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1330
1331 * linux-low.c (same_lwp): Remove.
1332 (find_lwp_pid): Use find_thread.
1333
1334 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1335
1336 * linux-low.c (delete_lwp_callback): Remove.
1337 (linux_mourn): Use for_each_thread.
1338
1339 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1340
1341 * linux-low.c (linux_detach_lwp_callback): Return void, remove
1342 args parameter, don't check for pid.
1343 (linux_detach): Use for_each_thread.
1344
1345 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1346
1347 * linux-low.c (struct counter): Remove.
1348 (second_thread_of_pid_p): Remove.
1349 (last_thread_of_process_p): Use find_thread.
1350
1351 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1352
1353 * inferiors.c (find_inferior_in_random): Remove.
1354 * inferiors.h (find_inferior_in_random): Remove.
1355 * linux-low.c (status_pending_p_callback): Return bool, accept
1356 parameter ptid directly.
1357 (linux_wait_for_event_filtered): Use find_thread_in_random.
1358 (linux_wait_1): Likewise.
1359
1360 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1361
1362 * inferiors.c (find_inferior_id): Remove.
1363 (find_thread_ptid): Move implemention from find_inferior_id to
1364 here.
1365 * inferiors.h (find_inferior_id): Remove.
1366 * server.c (handle_status): Use find_thread_ptid.
1367 (process_serial_event): Likewise.
1368 * thread-db.c (find_one_thread): Likewise.
1369 (thread_db_thread_handle): Likewise.
1370 * win32-low.c (thread_rec): Likewise.
1371 (child_delete_thread): Likewise.
1372 (win32_thread_alive): Likewise.
1373 (get_child_debug_event): Likewise.
1374
1375 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1376
1377 * linux-mips-low.c (update_watch_registers_callback): Return
1378 void, remove pid_p parameter, don't check for pid.
1379 (mips_insert_point, mips_remove_point): Use for_each_thread.
1380
1381 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1382
1383 * lynx.low (lynx_delete_thread_callback): Remove.
1384 (lynx_mourn): Use for_each_thread.
1385
1386 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1387
1388 * regcache.c (regcache_invalidate_one): Remove.
1389 (regcache_invalidate_pid): use for_each_thread.
1390
1391 2017-11-26 Tom Tromey <tom@tromey.com>
1392
1393 * linux-low.c (linux_create_inferior): Update.
1394
1395 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
1396
1397 * spu-low.c (spu_create_inferior): Fix typo in argument name.
1398
1399 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1400
1401 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
1402 * linux-aarch64-low.c (initialize_low_arch): Call init func.
1403 * linux-aarch64-tdesc-selftest.c: New file.
1404 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
1405
1406 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1407
1408 * configure.srv: Add new file.
1409 * linux-aarch64-low.c (initialize_low_arch): Call init func.
1410 * linux-aarch64-tdesc-selftest.c: New file.
1411 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
1412
1413 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1414
1415 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
1416 * linux-aarch64-low.c (initialize_low_arch): Remove init.
1417 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
1418
1419 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1420
1421 * configure.srv: Add new files.
1422 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
1423 aarch64_linux_read_description.
1424 * linux-aarch64-low.c (aarch64_linux_read_description):
1425 Merge with aarch64_arch_setup.
1426 (aarch64_arch_setup): Call aarch64_linux_read_description.
1427 * linux-aarch64-tdesc.c: New file.
1428 * linux-aarch64-tdesc.h: New file.
1429
1430 2017-11-24 Yao Qi <yao.qi@linaro.org>
1431
1432 * configure.srv: Set $srv_regobj for tic6x-linux.
1433 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
1434 (tic6x_read_description): Move some code to tic6x_arch_setup.
1435 (tic6x_tdesc_test): New function.
1436 (initialize_low_arch): Call selftests::register_test.
1437
1438 2017-11-22 Yao Qi <yao.qi@linaro.org>
1439
1440 * remote-utils.c (prepare_resume_reply): Use memcpy.
1441
1442 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1443
1444 * linux-low.c (kill_one_lwp_callback): Return void, take
1445 argument directly, don't filter on pid.
1446 (linux_kill): Use for_each_thread.
1447
1448 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1449
1450 * linux-low.c (need_step_over_p): Return bool, remove dummy
1451 argument.
1452 (linux_resume, proceed_all_lwps): Use find_thread.
1453
1454 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1455
1456 * linux-low.c (resume_status_pending_p): Return bool, remove
1457 flag_p argument.
1458 (linux_resume): Use find_thread.
1459
1460 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1461
1462 * linux-low.c (struct thread_resume_array): Remove.
1463 (linux_set_resume_request): Return void, take arguments
1464 directly.
1465 (linux_resume): Use for_each_thread.
1466
1467 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1468
1469 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
1470 return bool, remove data argument.
1471 (linux_stabilize_threads): Use find_thread.
1472
1473 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1474
1475 * linux-low.c (unsuspend_one_lwp): Remove.
1476 (unsuspend_all_lwps): Use for_each_thread, inline code from
1477 unsuspend_one_lwp.
1478
1479 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1480
1481 * gdbthread.h (find_thread): Add overload with ptid_t filter.
1482 * linux-low.c (struct iterate_over_lwps_args): Remove.
1483 (iterate_over_lwps_filter): Remove.
1484 (iterate_over_lwps): Use find_thread.
1485
1486 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1487
1488 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
1489 (linux_handle_new_gdb_connection): Use for_each_thread, inline
1490 code from reset_lwp_ptrace_options_callback.
1491
1492 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1493
1494 * linux-arm-low.c (struct update_registers_data): Remove.
1495 (update_registers_callback): Return void, take arguments
1496 directly, don't check thread's pid.
1497 (arm_insert_point, arm_remove_point): Use for_each_thread.
1498
1499 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1500
1501 * win32-low.c (continue_one_thread): Return void, take argument
1502 directly.
1503 (child_continue): Use for_each_thread.
1504
1505 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1506
1507 * win32-i386-low.c (update_debug_registers_callback): Rename
1508 to ...
1509 (update_debug_registers): ... this, return void, remove pid_p arg.
1510 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
1511
1512 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1513
1514 * inferiors.h (struct process_info): Add constructor, initialize
1515 fields..
1516 <syscalls_to_catch>: Change type to std::vector<int>.
1517 * inferiors.c (add_process): Allocate process_info with new.
1518 (remove_process): Free process_info with delete.
1519 * linux-low.c (handle_extended_wait): Adjust.
1520 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
1521 * server.c (handle_general_set): Adjust.
1522
1523 2017-11-16 Pedro Alves <palves@redhat.com>
1524
1525 * remote-utils.c (remote_close): Block SIGIO signals instead of
1526 uninstalling the SIGIO handler.
1527
1528 2017-11-16 Alan Hayward <alan.hayward@arm.com>
1529
1530 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
1531
1532 2017-11-16 Yao Qi <yao.qi@linaro.org>
1533
1534 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
1535 (tic6x_store_gregset): Likewise.
1536 (tic6x_usrregs_info): Move it up.
1537
1538 2017-11-15 Alan Hayward <alan.hayward@arm.com>
1539
1540 * Makefile.in: Update arch rules.
1541 * configure.srv: Explicitly mark arch/ files.
1542
1543 2017-11-13 Andreas Schwab <schwab@suse.de>
1544
1545 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
1546 function.
1547 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
1548
1549 2017-11-06 Pedro Alves <palves@redhat.com>
1550
1551 * config.in, configure: Regenerate.
1552
1553 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1554
1555 * target.c (struct thread_search): Remove.
1556 (thread_search_callback): Remove.
1557 (prepare_to_access_memory): Use for_each_thread instead of
1558 find_inferior. Inline code from thread_search_callback.
1559
1560 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1561
1562 * server.c (struct visit_actioned_threads_data): Remove.
1563 (visit_actioned_threads): Change prototype to take arguments
1564 directly.
1565 (resume): Use find_thread instead of find_inferior.
1566
1567 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1568
1569 * server.c (queue_stop_reply_callback): Change prototype, return
1570 void.
1571 (find_status_pending_thread_callback): Remove.
1572 (handle_status): Replace find_inferior with find_thread and
1573 for_each_thread.
1574
1575 2017-10-25 Alan Hayward <alan.hayward@arm.com>
1576
1577 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
1578 with REGNO.
1579 (aarch64_store_gregset): Likewise.
1580 (aarch64_fill_fpregset): Likewise.
1581 (aarch64_store_fpregset): Likewise.
1582
1583 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
1584
1585 * gdbthread.h (find_thread, for_each_thread): New functions.
1586 * inferiors.c (thread_of_pid): Remove.
1587 (find_any_thread_of_pid): Use find_thread.
1588 * linux-low.c (num_lwps): Use for_each_thread.
1589
1590 2017-10-17 Yao Qi <yao.qi@linaro.org>
1591
1592 * Makefile.in: Remove one rule.
1593 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
1594
1595 2017-10-17 Yao Qi <yao.qi@linaro.org>
1596
1597 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
1598 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
1599
1600 2017-10-17 Yao Qi <yao.qi@linaro.org>
1601
1602 * configure.srv: Rename arm.o with arch/arm.o.
1603
1604 2017-10-17 Yao Qi <yao.qi@linaro.org>
1605
1606 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
1607 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
1608 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
1609 (arch-i386.o, arch-amd64.o): Remove rules.
1610 (arch/%.o): New rule.
1611 Update POSTCOMPILE and COMPILE.pre.
1612 * configure.ac: Invoke AC_CONFIG_COMMANDS.
1613 * configure: Re-generated.
1614 * configure.srv: Replace arch-i386.o with arch/i386.o.
1615 Replace arch-amd64.o with arch/amd64.o.
1616
1617 2017-10-16 Yao Qi <yao.qi@linaro.org>
1618
1619 * configure: Regenerated.
1620
1621 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1622
1623 * inferiors.h: (struct inferior_list): Remove.
1624 (struct inferior_list_entry); Remove.
1625 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
1626 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
1627 get_first_inferior): Remove.
1628 (for_each_inferior, for_each_inferior_with_data, find_inferior,
1629 find_inferior_id, find_inferior_in_random): Change signature.
1630 * inferiors.c (all_threads): Change type to
1631 std::list<thread_info *>.
1632 (get_thread): Remove macro.
1633 (find_inferior, find_inferior_id): Change signature, implement
1634 using find_thread.
1635 (find_inferior_in_random): Change signature, implement using
1636 find_thread_in_random.
1637 (for_each_inferior, for_each_inferior_with_data): Change
1638 signature, implement using for_each_thread.
1639 (add_inferior_to_list, remove_inferior): Remove.
1640 (add_thread, get_first_thread, thread_of_pid,
1641 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
1642 (get_first_inferior, one_inferior_p, clear_inferior_list):
1643 Remove.
1644 (clear_inferiors, get_thread_process): Update.
1645 * gdbthread.h: Include <list>.
1646 (struct thread_info) <entry>: Remove field.
1647 <id>: New field.
1648 (all_threads): Change type to std::list<thread_info *>.
1649 (get_first_inferior): Add doc.
1650 (find_thread, for_each_thread, find_thread_in_random): New
1651 functions.
1652 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
1653 * linux-arm-low.c (update_registers_callback): Update.
1654 * linux-low.c (second_thread_of_pid_p): Update.
1655 (kill_one_lwp_callback, linux_detach_lwp_callback,
1656 delete_lwp_callback, status_pending_p_callback, same_lwp,
1657 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
1658 iterate_over_lwps, not_stopped_callback,
1659 resume_stopped_resumed_lwps, count_events_callback,
1660 select_singlestep_lwp_callback, select_event_lwp_callback,
1661 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
1662 suspend_and_send_sigstop_callback, wait_for_sigstop,
1663 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
1664 lwp_running, linux_set_resume_request, resume_status_pending_p,
1665 need_step_over_p, start_step_over, linux_resume_one_thread,
1666 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
1667 reset_lwp_ptrace_options_callback): Update.
1668 * linux-mips-low.c (update_watch_registers_callback): Update.
1669 * regcache.c (regcache_invalidate_one, regcache_invalidate):
1670 Update.
1671 (free_register_cache_thread_one): Remove.
1672 (regcache_release): Update.
1673 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
1674 handle_qxfer_threads_worker): Update.
1675 (handle_query): Update, use list iterator.
1676 (visit_actioned_threads, handle_pending_status,
1677 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
1678 clear_pending_status_callback, set_pending_status_callback,
1679 find_status_pending_thread_callback, handle_status,
1680 process_serial_event): Update.
1681 * target.c (thread_search_callback): Update.
1682 * thread-db.c (thread_db_get_tls_address): Update.
1683 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
1684 Update.
1685 * win32-i386-low.c (update_debug_registers_callback): Update.
1686 * win32-low.c (delete_thread_info, child_delete_thread,
1687 continue_one_thread, suspend_one_thread,
1688 get_child_debug_event): Adjust.
1689
1690 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1691
1692 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
1693 * inferiors.h: Include <list>.
1694 (struct process_info) <entry>: Remove field.
1695 <pid>: New field.
1696 (pid_of): Change macro to function.
1697 (ptid_of, lwpid_of): Remove macro.
1698 (all_processes): Change type to std::list<process_info *>.
1699 (ALL_PROCESSES): Remove macro.
1700 (for_each_process, find_process): New function.
1701 * inferiors.c (all_processes): Change type to
1702 std::list<process_info *>.
1703 (find_thread_process): Adjust.
1704 (add_process): Likewise.
1705 (remove_process): Likewise.
1706 (find_process_pid): Likewise.
1707 (get_first_process): Likewise.
1708 (started_inferior_callback): Remove.
1709 (have_started_inferiors_p): Adjust.
1710 (attached_inferior_callback): Remove.
1711 (have_attached_inferiors_p): Adjust.
1712 * linux-low.c (check_zombie_leaders): Likewise.
1713 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
1714 (x86_linux_update_xmltarget): Adjust.
1715 * server.c (handle_query): Likewise.
1716 (gdb_reattached_process): Remove.
1717 (handle_status): Adjust.
1718 (kill_inferior_callback): Likewise.
1719 (detach_or_kill_inferior): Remove.
1720 (print_started_pid): Likewise.
1721 (print_attached_pid): Likewise.
1722 (detach_or_kill_for_exit): Update.
1723 (process_serial_event): Likewise.
1724 * linux-arm-low.c (arm_new_fork): Likewise.
1725
1726 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1727
1728 * dll.h: Include <list>.
1729 (struct dll_info): Add constructor.
1730 <entry>: Remove field.
1731 (all_dlls): Change type to std::list<dll_info>.
1732 * dll.c: Include <algorithm>.
1733 (get_dll): Remove macro.
1734 (all_dlls): Change type to std::list<dll_info *>.
1735 (free_one_dll): Remove.
1736 (match_dll): Likewise.
1737 (loaded_dll): Adjust.
1738 (unloaded_dll): Adjust to all_dlls type change, use
1739 std::find_if. Inline code from match_dll.
1740 (clear_dlls): Adjust to all_dlls type change.
1741 * server.c (emit_dll_description): Remove.
1742 (handle_qxfer_libraries): Adjust to all_dlls type change,
1743 integrate emit_dll_description's functionality.
1744
1745 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1746
1747 * linux-low.h (struct linux_target_ops) <delete_process>: New
1748 field.
1749 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
1750 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
1751 (struct linux_target_ops): Add delete_process callback.
1752 * linux-arm-low.c (arm_delete_process): New.
1753 (struct linux_target_ops): Add delete_process callback.
1754 * linux-bfin-low.c (struct linux_target_ops): Likewise.
1755 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
1756 * linux-m32r-low.c (struct linux_target_ops): Likewise.
1757 * linux-mips-low.c (mips_linux_delete_process): New.
1758 (struct linux_target_ops): Add delete_process callback.
1759 * linux-ppc-low.c (struct linux_target_ops): Likewise.
1760 * linux-s390-low.c (struct linux_target_ops): Likewise.
1761 * linux-sh-low.c (struct linux_target_ops): Likewise.
1762 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
1763 * linux-tile-low.c (struct linux_target_ops): Likewise.
1764 * linux-x86-low.c (x86_linux_delete_process): New.
1765 (struct linux_target_ops): Add delete_process callback.
1766 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
1767
1768 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1769
1770 * linux-aarch64-low.c (the_low_target): Add thread delete
1771 callback.
1772 * linux-arm-low.c (arm_delete_thread): New function.
1773 (the_low_target): Add thread delete callback.
1774 * linux-bfin-low.c (the_low_target): Likewise.
1775 * linux-crisv32-low.c (the_low_target): Likewise.
1776 * linux-low.c (delete_lwp): Invoke delete_thread callback if
1777 set.
1778 * linux-low.h (struct linux_target_ops) <delete_thread>: New
1779 field.
1780 * linux-m32r-low.c (the_low_target): Add thread delete callback.
1781 * linux-mips-low.c (mips_linux_delete_thread): New function.
1782 (the_low_target): Add thread delete callback.
1783 * linux-ppc-low.c (the_low_target): Likewise.
1784 * linux-s390-low.c (the_low_target): Likewise.
1785 * linux-sh-low.c (the_low_target): Likewise.
1786 * linux-tic6x-low.c (the_low_target): Likewise.
1787 * linux-tile-low.c (the_low_target): Likewise.
1788 * linux-x86-low.c (the_low_target): Likewise.
1789 * linux-xtensa-low.c (the_low_target): Likewise.
1790
1791 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
1792
1793 * win32-low.c: Include "common-inferior.h".
1794
1795 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1796
1797 * inferiors.c (set_inferior_cwd): New function.
1798 * server.c (handle_general_set): Handle QSetWorkingDir packet.
1799 (handle_query): Inform that QSetWorkingDir is supported.
1800 * win32-low.c (create_process): Pass the inferior's cwd to
1801 CreateProcess.
1802
1803 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1804
1805 * inferiors.c (current_inferior_cwd): New global variable.
1806 (get_inferior_cwd): New function.
1807 * inferiors.h (struct process_info) <cwd>: New field.
1808
1809 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1810
1811 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
1812 (OBS): Add gdb_tilde_expand.o.
1813
1814 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
1815
1816 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
1817 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
1818
1819 2017-09-29 Pedro Alves <palves@redhat.com>
1820
1821 * ax.c (gdb_parse_agent_expr): Constify.
1822 * ax.h (gdb_parse_agent_expr): Constify.
1823 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
1824 Constify.
1825 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
1826 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
1827 * remote-utils.h (read_ptid): Constify.
1828 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
1829 (process_point_options, process_serial_event): Constify.
1830 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
1831 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
1832 (cmd_qtbuffer): Constify.
1833
1834 2017-09-29 Pedro Alves <palves@redhat.com>
1835
1836 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
1837 fails.
1838
1839 2017-09-29 Pedro Alves <palves@redhat.com>
1840
1841 * linux-low.c (handle_extended_wait): Pass parent thread instead
1842 of process to thread_db_notice_clone.
1843 * linux-low.h (thread_db_notice_clone): Replace parent process
1844 parameter with parent thread parameter.
1845 * thread-db.c (find_one_thread): Add comment.
1846 (thread_db_notice_clone): Replace parent process parameter with
1847 parent thread parameter. Temporarily switch to the parent thread.
1848
1849 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
1850
1851 * gdbthread.h: Include "common-gdbthread.h".
1852 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
1853 "if" when validating the ptid.
1854 * remote-utils.c: Include "gdbthread.h".
1855 (prepare_resume_reply): Use "switch_to_thread".
1856 * target.c (done_accessing_memory): Likewise.
1857
1858 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1859
1860 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
1861 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
1862 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
1863 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
1864 s390x-gs-linux64-ipa.o to ipa_obj.
1865 * linux-s390-low.c (HWCAP_S390_GS): New define.
1866 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
1867 New functions.
1868 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
1869 (s390_arch_setup): Check for guarded-storage support and choose
1870 appropriate tdesc.
1871 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
1872 init_registers_s390x_gs_linux64.
1873 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
1874 enum value.
1875 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
1876 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
1877
1878 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
1879
1880 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
1881
1882 2017-09-21 Kevin Buettner <kevinb@redhat.com>
1883
1884 * linux-low.h (struct lwp_info): Add new field, thread_handle.
1885 (thread_db_thread_handle): Declare.
1886 * linux-low.c (linux_target_ops): Initialize thread_handle.
1887 * server.c (handle_qxfer_threads_worker): Add support for
1888 "handle" attribute.
1889 * target.h (struct target_ops): Add new function pointer,
1890 thread_handle.
1891 (target_thread_handle): Define.
1892 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
1893 field in lwp.
1894 (thread_db_thread_handle): New function.
1895
1896 2017-09-21 Kevin Buettner <kevinb@redhat.com>
1897
1898 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
1899 * linux-low.h (thread_db_notice_clone): Declare.
1900 * thread-db.c (thread_db_notice_clone): New function.
1901
1902 2017-09-21 Pedro Alves <palves@redhat.com>
1903
1904 * server.c (gdb_read_memory, handle_status, process_serial_event)
1905 (handle_serial_event, handle_target_event): Adjust to
1906 set_desired_thread prototype change.
1907 * target.c (set_desired_thread): Remove 'use_general' parameter
1908 and adjust.
1909 * target.h (set_desired_thread): Remove 'use_general' parameter.
1910
1911 2017-09-20 Tom Tromey <tom@tromey.com>
1912
1913 * target.c (target_terminal::terminal_state): Define.
1914 (target_terminal::init): Rename from target_terminal_init.
1915 (target_terminal::inferior): Rename from
1916 target_terminal_inferior.
1917 (target_terminal::ours): Rename from target_terminal_ours.
1918 (target_terminal::ours_for_output, target_terminal::info): New.
1919
1920 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1921
1922 * server.c (accumulate_file_name_length): Remove.
1923 (emit_dll_description): Adjust to std::string change.
1924 (handle_qxfer_libraries): Use std::string to hold document.
1925
1926 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1927
1928 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
1929 return type of xml_escape_text.
1930 * server.c (emit_dll_description): Likewise.
1931
1932 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1933
1934 * server.c (captured_main): Accept argument for --selftest.
1935 Update run_tests call.
1936 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
1937 when registering selftests.
1938
1939 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1940
1941 * regcache.c (get_thread_regcache): Update code to use "std::vector"
1942 instead of "VEC" for "target_desc.reg_defs".
1943 (regcache_cpy): Likewise.
1944 (registers_to_string): Likewise.
1945 (registers_from_string): Likewise.
1946 (find_regno): Likewise.
1947 (supply_regblock): Likewise.
1948 (regcache_raw_read_unsigned): Likewise.
1949 * tdesc.c (init_target_desc): Likewise.
1950 (tdesc_create_reg): Likewise.
1951 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
1952 (struct target_desc) <reg_defs>: Convert to "std::vector".
1953 (target_desc): Do not initialize "reg_defs".
1954 (~target_desc): Update code to use "std::vector" instead of "VEC"
1955 for "target_desc.reg_defs".
1956 (operator==): Likewise.
1957
1958 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1959
1960 * inferiors.h (thread_to_gdb_id): Remove.
1961 * inferiors.c (thread_to_gdb_id): Remove.
1962 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
1963 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
1964 lynx_store_registers, lynx_read_memory, lynx_write_memory):
1965 Likewise.
1966 * nto-low.c (nto_fetch_registers, nto_store_registers,
1967 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
1968
1969 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1970
1971 * inferiors.h (gdb_id_to_thread_id): Remove.
1972 * inferiors.c (gdb_id_to_thread_id): Remove.
1973 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
1974 removal. Move pid declaration closer to where it's used.
1975
1976 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1977
1978 * server.c (handle_detach): New function.
1979 (process_serial_event): Move code out, call handle_detach.
1980
1981 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1982
1983 * server.c (require_running): Rename to ...
1984 (require_running_or_return): ... this ...
1985 (require_running_or_break): ... and this.
1986 (handle_query, process_serial_event): Adjust.
1987
1988 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1989
1990 * linux-low.c (linux_set_resume_request): Remove unused
1991 variables.
1992
1993 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1994
1995 * server.c (first_thread_of): Remove.
1996 (process_serial_event): Replace usage of first_thread_of with
1997 find_any_thread_of_pid.
1998 * tracepoint.c (same_process_p): Remove.
1999 (gdb_agent_about_to_close): Replace usage of same_process_p with
2000 find_any_thread_of_pid.
2001 * linux-x86-low.c (same_process_callback): Remove.
2002 (x86_arch_setup_process_callback): Replace usage of
2003 same_process_callback with find_any_thread_of_pid.
2004 * thread-db.c (any_thread_of): Remove.
2005 (switch_to_process): Replace usage of any_thread_of with
2006 find_any_thread_of_pid.
2007 * inferiors.c (thread_pid_matches_callback): Remove.
2008 (find_thread_process): Adjust to use find_any_thread_of_pid.
2009
2010 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2011
2012 * regcache.c (get_thread_regcache): Guard calls to "memset"
2013 with "!VEC_empty".
2014
2015 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2016
2017 * linux-low.c (handle_extended_wait): Use
2018 "allocate_target_description" instead of "XNEW".
2019 * linux-x86-low.c (initialize_low_arch): Likewise.
2020
2021 2017-09-05 Yao Qi <yao.qi@linaro.org>
2022
2023 * configure.srv (srv_i386_regobj): Remove.
2024 (srv_amd64_regobj): Remove.
2025 (srv_regobj): Set it to "" for x86 non-linux targets.
2026 * linux-x86-tdesc.c (i386_linux_read_description):
2027 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
2028 (init_registers_i386): Remove the declaration.
2029 (tdesc_i386): Remove the declaration.
2030 (lynx_i386_arch_setup): Call i386_create_target_description.
2031 * nto-x86-low.c: Likewise.
2032 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
2033 [!__x86_64__]: include arch/i386.h.
2034 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
2035
2036 2017-09-05 Yao Qi <yao.qi@linaro.org>
2037
2038 * configure.srv (srv_amd64_linux_xmlfiles): Remove
2039 i386/amd64-XXX-linux from it.
2040
2041 2017-09-05 Yao Qi <yao.qi@linaro.org>
2042
2043 * configure.srv: Empty srv_amd64_linux_regobj if $development is
2044 false.
2045 (ipa_amd64_linux_regobj): Remove.
2046 (ipa_x32_linux_regobj): Remove.
2047
2048 2017-09-05 Yao Qi <yao.qi@linaro.org>
2049
2050 * Makefile.in (arch-amd64.o): New rule.
2051 * configure.srv: Append arch-amd64.o.
2052 * linux-amd64-ipa.c: Include common/x86-xstate.h.
2053 (get_ipa_tdesc): Call amd64_linux_read_description.
2054 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
2055 and init_registers_amd64_XXX.
2056 * linux-x86-low.c (x86_linux_read_description): Call
2057 amd64_linux_read_description.
2058 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
2059 (initialize_low_arch): Don't call init_registers_x32_XXX and
2060 init_registers_amd64_XXX.
2061 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
2062 and tdesc_amd64_XXX.
2063 [__x86_64__] (amd64_tdesc_test): New function.
2064 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
2065 and init_registers_amd64_XXX.
2066 * linux-x86-tdesc.c: Include arch/amd64.h.
2067 (xcr0_to_tdesc_idx): New function.
2068 (i386_linux_read_description): New function.
2069 (amd64_get_ipa_tdesc_idx): New function.
2070 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
2071 (amd64_get_ipa_tdesc): Declare.
2072
2073 2017-09-05 Yao Qi <yao.qi@linaro.org>
2074
2075 * configure.srv (srv_i386_linux_xmlfiles): Remove
2076 i386/i386-XXX-linux.xml from it.
2077
2078 2017-09-05 Yao Qi <yao.qi@linaro.org>
2079
2080 * configure.srv: Set srv_i386_linux_regobj empty if $development
2081 is false.
2082 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
2083 initialize_low_tdesc.
2084 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
2085 with #if initialize_low_tdesc.
2086 * linux-x86-tdesc-selftest.c: New file.
2087 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
2088
2089 2017-09-05 Yao Qi <yao.qi@linaro.org>
2090
2091 * Makefile.in (arch-i386.o): New rule.
2092 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
2093 (x86_64-*-linux*): Likewise.
2094 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
2095 include arch/i386.h.
2096 (i386_linux_read_description): Remove code and call
2097 i386_create_target_description.
2098 * tdesc.c (allocate_target_description): New function.
2099 * tdesc.h (set_tdesc_architecture): Remove declaration.
2100 (set_tdesc_osabi): Likewise.
2101
2102 2017-09-05 Yao Qi <yao.qi@linaro.org>
2103
2104 * linux-x86-tdesc.c: Don't include <inttypes.h>.
2105 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
2106 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
2107 .xmltarget.
2108 * server.c (get_features_xml): Call tdesc_get_features_xml.
2109 * tdesc.c (set_tdesc_architecture): New function.
2110 (set_tdesc_osabi): New function.
2111 (tdesc_get_features_xml): New function.
2112 (tdesc_create_feature): Add an argument.
2113 * tdesc.h (struct target_desc) <features>: New field.
2114 <arch, osabi>: New field.
2115 (~target_desc): xfree features, arch, and osabi.
2116 (target_desc::oerator==): Don't compare .xmltarget.
2117 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
2118 (set_tdesc_osabi): Likewise.
2119 (tdesc_get_features_xml): Likewise.
2120
2121 2017-09-05 Yao Qi <yao.qi@linaro.org>
2122
2123 * linux-x86-tdesc.c: Include selftest.h.
2124 (i386_tdesc_test): New function.
2125 (initialize_low_tdesc): Call selftests::register_test.
2126 * tdesc.h: Include regdef.h.
2127 (target_desc): Override operator == and !=.
2128
2129 2017-09-05 Yao Qi <yao.qi@linaro.org>
2130
2131 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
2132 (ipa_obj): Likewise.
2133 * linux-i386-ipa.c: Include common/x86-xstate.h
2134 (get_ipa_tdesc): Call i386_linux_read_description.
2135 (initialize_low_tracepoint): Don't call init_registers_XXX
2136 functions, call initialize_low_tdesc instead.
2137 * linux-x86-low.c (x86_linux_read_description): Call
2138 i386_linux_read_description.
2139 (initialize_low_arch): Don't call init_registers_i386_XXX
2140 functions, call initialize_low_tdesc.
2141 * linux-x86-tdesc.c: New file.
2142 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
2143 (i386_get_ipa_tdesc_idx): Declare.
2144 (i386_get_ipa_tdesc): Declare.
2145 (initialize_low_tdesc): Declare.
2146
2147 2017-09-05 Yao Qi <yao.qi@linaro.org>
2148
2149 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
2150 instead of 0.
2151
2152 2017-09-05 Yao Qi <yao.qi@linaro.org>
2153
2154 * Makefile.in (IPA_OBJS): Add vec-ipa.o
2155 * regcache.c (get_thread_regcache): Use VEC_length.
2156 (init_register_cache): Likewise.
2157 (regcache_cpy): Likewise.
2158 (registers_to_string): Iterate reg_defs via VEC_iterate.
2159 (find_regno): Likewise.
2160 (find_register_by_number): Use VEC_index.
2161 (register_size): Call find_register_by_number.
2162 (register_data): Call find_register_by_number.
2163 (supply_regblock): Use VEC_length.
2164 (regcache_raw_read_unsigned): Likewise.
2165 * tdesc.c (init_target_desc): Iterate reg_defs via
2166 VEC_iterate.
2167 (default_description): Update initializer.
2168 (copy_target_description): Don't update field num_registers.
2169 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
2170 <num_registers>: Remove.
2171
2172 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2173
2174 * Makefile.in (.SECONDARY): Define target.
2175
2176 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2177
2178 * linux-low.c (linux_wait_1): Adjust.
2179 * server.c (queue_stop_reply_callback): Adjust.
2180
2181 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2182
2183 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
2184 QEnvironmentUnset and QEnvironmentReset packets.
2185 (handle_query): Inform remote that QEnvironmentHexEncoded,
2186 QEnvironmentUnset and QEnvironmentReset are supported.
2187
2188 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
2189
2190 * inferiors.h (inferior_target_data): Rename to ...
2191 (thread_target_data): ... this.
2192 (inferior_regcache_data): Rename to ...
2193 (thread_regcache_data): ... this.
2194 (set_inferior_regcache_data): Rename to ...
2195 (set_thread_regcache_data): ... this.
2196 * inferiors.c (inferior_target_data): Rename to ...
2197 (thread_target_data): ... this.
2198 (inferior_regcache_data): Rename to ...
2199 (thread_regcache_data): ... this.
2200 (set_inferior_regcache_data): Rename to ...
2201 (set_thread_regcache_data): ... this.
2202 (free_one_thread): Update.
2203 * linux-low.h (get_thread_lwp): Update.
2204 * regcache.c (get_thread_regcache): Update.
2205 (regcache_invalidate_thread): Update.
2206 (free_register_cache_thread): Update.
2207 * win32-i386-low.c (update_debug_registers_callback): Update.
2208 (win32_get_current_dr): Update.
2209 * win32-low.c (thread_rec): Update.
2210 (delete_thread_info): Update.
2211 (continue_one_thread): Update.
2212 (suspend_one_thread): Update.
2213
2214 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
2215
2216 * inferiors.c (set_inferior_target_data): Remove.
2217 * inferiors.h (set_inferior_target_data): Remove.
2218
2219 2017-08-18 Yao Qi <yao.qi@linaro.org>
2220
2221 * Makefile.in (OBS): Add selftest.o.
2222 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
2223 * configure, config.in: Re-generated.
2224 * server.c: Include common/sefltest.h.
2225 (captured_main): Handle option --selftest.
2226
2227 2017-08-09 Yao Qi <yao.qi@linaro.org>
2228
2229 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
2230 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
2231 i386-avx-mpx.o and i386-mmx.o.
2232 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
2233 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
2234 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
2235 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
2236 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
2237 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
2238 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
2239 i386/amd64-avx-mpx.xml.
2240
2241 2017-08-09 Yao Qi <yao.qi@linaro.org>
2242
2243 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
2244 and x32-avx-avx512.o.
2245 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
2246 i386/x32-avx-avx512.xml.
2247
2248 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
2249
2250 * tracepoint.h (enum class fast_tpoint_collect_result): New
2251 enumeration.
2252 (fast_tracepoint_collecting): Change return type to
2253 fast_tpoint_collect_result.
2254 * tracepoint.c (fast_tracepoint_collecting): Likewise.
2255 * linux-low.h: Include tracepoint.h.
2256 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
2257 fast_tpoint_collect_result.
2258 * linux-low.c (handle_tracepoints): Adjust.
2259 (linux_fast_tracepoint_collecting): Change return type to
2260 fast_tpoint_collect_result.
2261 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
2262 linux_wait_1, stuck_in_jump_pad_callback,
2263 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
2264 proceed_one_lwp): Adjust to type change.
2265
2266 2017-07-10 Yao Qi <yao.qi@linaro.org>
2267
2268 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
2269
2270 2017-06-29 Yao Qi <yao.qi@linaro.org>
2271
2272 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
2273 Remove.
2274 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
2275
2276 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
2277
2278 * Makefile.in (IPA_OBJS): Sort and format one item per line.
2279
2280 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
2281
2282 * linux-low.c (linux_create_inferior): Adjust code to access the
2283 environment information via 'gdb_environ' class.
2284 * lynx-low.c (lynx_create_inferior): Likewise.
2285 * server.c (our_environ): Make it an instance of 'gdb_environ'.
2286 (get_environ): Return a pointer to 'our_environ'.
2287 (captured_main): Initialize 'our_environ'.
2288 * server.h (get_environ): Adjust prototype.
2289 * spu-low.c (spu_create_inferior): Adjust code to access the
2290 environment information via 'gdb_environ' class.
2291
2292 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2293
2294 * linux-low.c (linux_read_memory, linux_write_memory): Remove
2295 usage of "register" keyword.
2296
2297 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2298
2299 * configure: Re-generate.
2300
2301 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2302
2303 * configure: Re-generate.
2304
2305 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2306
2307 * Makefile.in (COMPILE.pre): Add "-x c++".
2308
2309 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
2310
2311 * fork-child.c: Conditionally include <signal.h>.
2312
2313 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
2314
2315 * server.c (handle_general_set): Handle new packet
2316 "QStartupWithShell".
2317 (handle_query): Add "QStartupWithShell" to the list of supported
2318 packets.
2319 (gdbserver_usage): Add help text explaining the
2320 new "--startup-with-shell" and "--no-startup-with-shell" CLI
2321 options.
2322 (captured_main): Recognize and act upon the presence of the new
2323 CLI options.
2324
2325 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
2326 Pedro Alves <palves@redhat.com>
2327
2328 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
2329 * configure: Regenerate.
2330 * configure.srv (srv_linux_obj): Add "fork-child.o" and
2331 "fork-inferior.o".
2332 (i[34567]86-*-lynxos*): Likewise.
2333 (spu*-*-*): Likewise.
2334 * fork-child.c: New file.
2335 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
2336 and "environ.h".
2337 (linux_ptrace_fun): New function.
2338 (linux_create_inferior): Adjust function prototype to reflect
2339 change on "target.h". Adjust function code to use
2340 "fork_inferior".
2341 (linux_request_interrupt): Delete "signal_pid".
2342 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
2343 (lynx_ptrace_fun): New function.
2344 (lynx_create_inferior): Adjust function prototype to reflect
2345 change on "target.h". Adjust function code to use
2346 "fork_inferior".
2347 * nto-low.c (nto_create_inferior): Adjust function prototype and
2348 code to reflect change on "target.h". Update comments.
2349 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
2350 "common-terminal.h" and "environ.h".
2351 (terminal_fd): Moved to fork-child.c.
2352 (old_foreground_pgrp): Likewise.
2353 (restore_old_foreground_pgrp): Likewise.
2354 (last_status): Make it global.
2355 (last_ptid): Likewise.
2356 (our_environ): New variable.
2357 (startup_with_shell): Likewise.
2358 (program_name): Likewise.
2359 (program_argv): Rename to...
2360 (program_args): ...this.
2361 (wrapper_argv): New variable.
2362 (start_inferior): Delete function.
2363 (get_exec_wrapper): New function.
2364 (get_exec_file): Likewise.
2365 (get_environ): Likewise.
2366 (prefork_hook): Likewise.
2367 (post_fork_inferior): Likewise.
2368 (postfork_hook): Likewise.
2369 (postfork_child_hook): Likewise.
2370 (handle_v_run): Update code to deal with arguments coming from the
2371 remote host. Update calls from "start_inferior" to
2372 "create_inferior".
2373 (captured_main): Likewise. Initialize environment variable. Call
2374 "have_job_control".
2375 * server.h (post_fork_inferior): New prototype.
2376 (get_environ): Likewise.
2377 (last_status): Declare.
2378 (last_ptid): Likewise.
2379 (signal_pid): Likewise.
2380 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
2381 (spu_ptrace_fun): New function.
2382 (spu_create_inferior): Adjust function prototype to reflect change
2383 on "target.h". Adjust function code to use "fork_inferior".
2384 * target.c (target_terminal_init): New function.
2385 (target_terminal_inferior): Likewise.
2386 (target_terminal_ours): Likewise.
2387 * target.h: Include <vector>.
2388 (struct target_ops) <create_inferior>: Update prototype.
2389 (create_inferior): Update macro.
2390 * utils.c (gdb_flush_out_err): New function.
2391 * win32-low.c (win32_create_inferior): Adjust function prototype
2392 and code to reflect change on "target.h".
2393
2394 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
2395
2396 * inferiors.c (switch_to_thread): New function.
2397
2398 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
2399
2400 * Makefile.in (SFILE): Add "common/job-control.c".
2401 (OBS): Add "job-control.o".
2402
2403 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
2404
2405 * Makefile: Remove "@host_makefile_frag@".
2406
2407 2017-05-05 Pedro Alves <palves@redhat.com>
2408
2409 * configure: Regenerate.
2410
2411 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
2412
2413 * configure: Regenerate.
2414
2415 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
2416
2417 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
2418 software_single_step change of return type to
2419 std::vector<CORE_ADDR>.
2420 * linux-low.c (install_software_single_step_breakpoints):
2421 Likewise.
2422 * linux-low.h (install_software_single_step_breakpoints):
2423 Likewise.
2424
2425 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
2426
2427 * remote-utils.c: Include "gdb_termios.h" instead of
2428 "terminal.h".
2429 * terminal.h: Delete file.
2430
2431 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
2432
2433 * server.c: Include <vector>.
2434 <program_argv, wrapper_argv>: Convert to std::vector.
2435 (start_inferior): Rewrite function to use C++.
2436 (handle_v_run): Likewise. Update code that calculates the argv
2437 based on the vRun packet; use C++.
2438 (captured_main): Likewise.
2439
2440 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
2441
2442 * server.c (handle_v_cont): Initialize thread_resume::thread
2443 with null_ptid.
2444
2445 2017-04-05 Pedro Alves <palves@redhat.com>
2446
2447 * configure: Regenerate.
2448
2449 2017-04-05 Pedro Alves <palves@redhat.com>
2450
2451 * gdbreplay.c (sync_error): Constify.
2452 * linux-x86-low.c (push_opcode): Constify.
2453
2454 2017-04-05 Pedro Alves <palves@redhat.com>
2455
2456 * win32-low.c (get_child_debug_event)
2457 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
2458 Report TARGET_WAITKIND_SPURIOUS instead.
2459
2460 2017-04-05 Pedro Alves <palves@redhat.com>
2461
2462 * remote-utils.c (remote_prepare, remote_open): Constify.
2463 * remote-utils.h (remote_prepare, remote_open): Constify.
2464 * server.c (captured_main): Constify 'port' handling.
2465
2466 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
2467
2468 * Makefile.in (clean): Clear .deps.
2469
2470 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
2471
2472 * .gitignore: Remove generated files, replace with wildcard.
2473 * (clean): Replace removal of generated files with wildcard.
2474 (version.c): Replace with...
2475 (version-generated.c): ...this.
2476 (xml-builtin.c): Replace with...
2477 (xml-builtin-generated.c): ...this.
2478 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
2479 (%.c: *regformats*): Replace with...
2480 (%-generated.c: *regformats*): ...this.
2481
2482 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
2483
2484 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
2485 (xtensa_fill_gregset): Call collect_register_by_name for
2486 threadptr register.
2487 (xtensa_store_gregset): Call supply_register_by_name for
2488 threadptr register.
2489
2490 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
2491
2492 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
2493 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
2494 (xtensa_store_gregset): Call supply_register for all registers in
2495 a0_regnum..a0_regnum + C0_NREGS range.
2496
2497 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2498
2499 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
2500 (ax-ipa.o: ax.c): Remove.
2501 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
2502 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
2503 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
2504 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
2505 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
2506
2507 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2508
2509 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
2510 (print-utils-ipa.o: ../common/print-utils.c): Remove.
2511 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
2512 (errors-ipa.o: ../common/errors.c): Remove.
2513 (format-ipa.o: ../common/format.c): Remove.
2514 (common-utils-ipa.o: ../common/common-utils.c): Remove.
2515
2516 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2517
2518 * Makefile.in (%-ipa.o: %.c): New rule.
2519 (tracepoint-ipa.o: tracepoint.c): Remove.
2520 (utils-ipa.o: utils.c): Remove.
2521 (remote-utils-ipa.o: remote-utils.c): Remove.
2522 (regcache-ipa.o: regcache.c): Remove.
2523 (i386-linux-ipa.o: i386-linux.c): Remove.
2524 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
2525 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
2526 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
2527 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
2528 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
2529 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
2530 (amd64-linux-ipa.o: amd64-linux.c): Remove.
2531 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
2532 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
2533 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
2534 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
2535 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
2536 (aarch64-ipa.o: aarch64.c): Remove.
2537 (s390-linux32-ipa.o: s390-linux32.c): Remove.
2538 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
2539 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
2540 (s390-linux64-ipa.o: s390-linux64.c): Remove.
2541 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
2542 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
2543 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
2544 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
2545 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
2546 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
2547 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
2548 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
2549 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
2550 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
2551 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
2552 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
2553 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
2554 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
2555 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
2556 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
2557 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
2558 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
2559 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
2560 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
2561 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
2562 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
2563 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
2564 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
2565 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
2566 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
2567 (tdesc-ipa.o: tdesc.c): Remove.
2568 (x32-linux-ipa.o: x32-linux.c): Remove.
2569 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
2570 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
2571
2572 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2573
2574 * Makefile.in (%.o: ../arch/%.c): New rule.
2575 (arm.o: ../arch/arm.c): Remove.
2576 (arm-linux.o: ../arch/arm-linux.c): Remove.
2577 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
2578 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
2579
2580 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2581
2582 * Makefile.in (%.o: ../nat/%.c): New rule.
2583 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
2584 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
2585 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
2586 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
2587 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
2588 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
2589 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
2590 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
2591 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
2592 (linux-personality.o: ../nat/linux-personality.c): Remove.
2593 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
2594 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
2595 (x86-linux.o: ../nat/x86-linux.c): Remove.
2596 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
2597 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
2598
2599 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2600
2601 * Makefile.in (%.o: ../common/%.c): New rule.
2602 (signals.o: ../common/signals.c): Remove.
2603 (print-utils.o: ../common/print-utils.c): Remove.
2604 (rsp-low.o: ../common/rsp-low.c): Remove.
2605 (common-utils.o: ../common/common-utils.c): Remove.
2606 (posix-strerror.o: ../common/posix-strerror.c): Remove.
2607 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
2608 (vec.o: ../common/vec.c): Remove.
2609 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
2610 (xml-utils.o: ../common/xml-utils.c): Remove.
2611 (ptid.o: ../common/ptid.c): Remove.
2612 (buffer.o: ../common/buffer.c): Remove.
2613 (format.o: ../common/format.c): Remove.
2614 (filestuff.o: ../common/filestuff.c): Remove.
2615 (agent.o: ../common/agent.c): Remove.
2616 (errors.o: ../common/errors.c): Remove.
2617 (environ.o: ../common/environ.c): Remove.
2618 (common-debug.o: ../common/common-debug.c): Remove.
2619 (cleanups.o: ../common/cleanups.c): Remove.
2620 (common-exceptions.o: ../common/common-exceptions.c): Remove.
2621 (fileio.o: ../common/fileio.c): Remove.
2622 (common-regcache.o: ../common/common-regcache.c): Remove.
2623 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
2624 (new-op.o: ../common/new-op.c): Remove.
2625 (btrace-common.o: ../common/btrace-common.c): Remove.
2626
2627 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2628
2629 * Makefile.in (%.o: ../target/%.c): New rule.
2630 (waitstatus.o: ../target/waitstatus.c): Remove.
2631
2632 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2633
2634 * Makefile.in
2635 (%.c: ../regformats/%.dat,
2636 (%.c: ../regformats/arm/%.dat,
2637 (%.c: ../regformats/i386/%.dat,
2638 (%.c: ../regformats/rs6000/%.dat): New rules.
2639 (aarch64.c): Remove.
2640 (reg-arm.c): Remove.
2641 (arm-with-iwmmxt.c): Remove.
2642 (arm-with-vfpv2.c): Remove.
2643 (arm-with-vfpv3.c): Remove.
2644 (arm-with-neon.c): Remove.
2645 (reg-bfin.c): Remove.
2646 (reg-cris.c): Remove.
2647 (reg-crisv32.c): Remove.
2648 (i386.c): Remove.
2649 (i386-linux.c): Remove.
2650 (i386-avx.c): Remove.
2651 (i386-avx-linux.c): Remove.
2652 (i386-avx-avx512.c): Remove.
2653 (i386-avx-avx512-linux.c): Remove.
2654 (i386-mpx.c): Remove.
2655 (i386-mpx-linux.c): Remove.
2656 (i386-avx-mpx-avx512-pku.c): Remove.
2657 (i386-avx-mpx-avx512-pku-linux.c): Remove.
2658 (i386-avx-mpx.c): Remove.
2659 (i386-avx-mpx-linux.c): Remove.
2660 (i386-mmx.c): Remove.
2661 (i386-mmx-linux.c): Remove.
2662 (reg-ia64.c): Remove.
2663 (reg-m32r.c): Remove.
2664 (reg-m68k.c): Remove.
2665 (reg-cf.c): Remove.
2666 (mips-linux.c): Remove.
2667 (mips-dsp-linux.c): Remove.
2668 (mips64-linux.c): Remove.
2669 (mips64-dsp-linux.c): Remove.
2670 (nios2-linux.c): Remove.
2671 (powerpc-32.c): Remove.
2672 (powerpc-32l.c): Remove.
2673 (powerpc-altivec32l.c): Remove.
2674 (powerpc-cell32l.c): Remove.
2675 (powerpc-vsx32l.c): Remove.
2676 (powerpc-isa205-32l.c): Remove.
2677 (powerpc-isa205-altivec32l.c): Remove.
2678 (powerpc-isa205-vsx32l.c): Remove.
2679 (powerpc-e500l.c): Remove.
2680 (powerpc-64l.c): Remove.
2681 (powerpc-altivec64l.c): Remove.
2682 (powerpc-cell64l.c): Remove.
2683 (powerpc-vsx64l.c): Remove.
2684 (powerpc-isa205-64l.c): Remove.
2685 (powerpc-isa205-altivec64l.c): Remove.
2686 (powerpc-isa205-vsx64l.c): Remove.
2687 (s390-linux32.c): Remove.
2688 (s390-linux32v1.c): Remove.
2689 (s390-linux32v2.c): Remove.
2690 (s390-linux64.c): Remove.
2691 (s390-linux64v1.c): Remove.
2692 (s390-linux64v2.c): Remove.
2693 (s390-te-linux64.c): Remove.
2694 (s390-vx-linux64.c): Remove.
2695 (s390-tevx-linux64.c): Remove.
2696 (s390x-linux64.c): Remove.
2697 (s390x-linux64v1.c): Remove.
2698 (s390x-linux64v2.c): Remove.
2699 (s390x-te-linux64.c): Remove.
2700 (s390x-vx-linux64.c): Remove.
2701 (s390x-tevx-linux64.c): Remove.
2702 (tic6x-c64xp-linux.c): Remove.
2703 (tic6x-c64x-linux.c): Remove.
2704 (tic6x-c62x-linux.c): Remove.
2705 (reg-sh.c): Remove.
2706 (reg-sparc64.c): Remove.
2707 (reg-spu.c): Remove.
2708 (amd64.c): Remove.
2709 (amd64-linux.c): Remove.
2710 (amd64-avx.c): Remove.
2711 (amd64-avx-linux.c): Remove.
2712 (amd64-avx-avx512.c): Remove.
2713 (amd64-avx-avx512-linux.c): Remove.
2714 (amd64-mpx.c): Remove.
2715 (amd64-mpx-linux.c): Remove.
2716 (amd64-avx-mpx-avx512-pku.c): Remove.
2717 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
2718 (amd64-avx-mpx.c): Remove.
2719 (amd64-avx-mpx-linux.c): Remove.
2720 (x32.c): Remove.
2721 (x32-linux.c): Remove.
2722 (x32-avx.c): Remove.
2723 (x32-avx-linux.c): Remove.
2724 (x32-avx-avx512.c): Remove.
2725 (x32-avx-avx512-linux.c): Remove.
2726 (reg-xtensa.c): Remove.
2727 (reg-tilegx.c): Remove.
2728 (reg-tilegx32.c): Remove.
2729
2730 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
2731
2732 * Makefile.in (SFILES): Add "common/environ.c".
2733 (OBJS): Add "common/environ.h".
2734
2735 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
2736
2737 * configure.ac: Check if the fs_base and gs_base members of
2738 `struct user_regs_struct' exist.
2739 * config.in: Regenerated.
2740 * configure: Likewise.
2741
2742 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
2743
2744 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
2745 target_read_memory.
2746 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
2747 (get_next_pcs_syscall_next_pc): Likewise.
2748
2749 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
2750
2751 * win32-i386-low.c: Fix incorrect reference to a couple source files.
2752 * nto-x86-low.c: Likewise.
2753
2754 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
2755
2756 * Makefile.in: Include disable-implicit-rules.mk.
2757
2758 2016-11-23 Pedro Alves <palves@redhat.com>
2759
2760 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
2761 (debug_vprintf): Use std::chrono::steady_clock instead of
2762 gettimeofday. Use '.' instead of ':'.
2763 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
2764 (get_timestamp): Use std::chrono::steady_clock instead of
2765 gettimeofday.
2766
2767 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2768
2769 * Makefile.in: Fix whitespace formatting.
2770
2771 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2772
2773 * Makefile.in (SFILES, OBS): Flatten list and order
2774 alphabetically.
2775
2776 2016-11-23 Pedro Alves <palves@redhat.com>
2777
2778 * event-loop.c (handle_file_event): Use warning.
2779 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
2780 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
2781 Use warning.
2782
2783 2016-11-23 Pedro Alves <palves@redhat.com>
2784
2785 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
2786 output.
2787 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
2788 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
2789 debug_printf and debug_flush for debug output.
2790 * server.c (handle_general_set): Likewise.
2791 * thread-db.c (try_thread_db_load): Use debug_printf for debug
2792 output.
2793
2794 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2795
2796 * Makefile.in (.c.o): Replace rule with ...
2797 (%.o: %.c): ... this one.
2798
2799 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2800
2801 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
2802 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
2803 make.
2804 * configure.ac: Remove checks for the make program.
2805 * configure: Re-generate.
2806
2807 2016-10-28 Pedro Alves <palves@redhat.com>
2808
2809 * Makefile.in (CXX_DIALECT): Get from configure.
2810 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
2811 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
2812 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
2813 * config.in: Regenerate.
2814 * configure: Regenerate.
2815
2816 2016-10-27 Yao Qi <yao.qi@linaro.org>
2817
2818 * linux-low.c (linux_supports_range_stepping): Return true if
2819 can_software_single_step return true.
2820
2821 2016-10-27 Yao Qi <yao.qi@linaro.org>
2822
2823 * inferiors.c (find_inferior_in_random): New function.
2824 * inferiors.h (find_inferior_in_random): Declare.
2825 * linux-low.c (linux_wait_for_event_filtered): Call
2826 find_inferior_in_random instead of find_inferior.
2827
2828 2016-10-27 Yao Qi <yao.qi@linaro.org>
2829
2830 * linux-low.c (linux_wait_1): If single-step breakpoints are
2831 inserted, remove them.
2832
2833 2016-10-26 Pedro Alves <palves@redhat.com>
2834
2835 * linux-low.c (handle_extended_wait): Link parent/child fork
2836 threads.
2837 (linux_wait_1): Unlink them.
2838 (linux_set_resume_request): Ignore resume requests for
2839 already-resumed and unhandled fork child threads.
2840 * linux-low.h (struct lwp_info) <fork_relative>: New field.
2841 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
2842 New functions.
2843 (handle_v_requests) <vCont>: Don't call require_running.
2844 * server.h (in_queued_stop_replies): New declaration.
2845
2846 2016-10-24 Yao Qi <yao.qi@linaro.org>
2847
2848 PR server/20733
2849 * linux-aarch64-low.c (append_insns): Cast the return value to
2850 'uint32_t *'.
2851
2852 2016-10-10 Yao Qi <yao.qi@linaro.org>
2853
2854 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
2855
2856 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2857
2858 * target.c (target_supports_multi_process): New function, moved
2859 from...
2860 * target.h (target_supports_multi_process): ... here. Remove
2861 macro.
2862
2863 2016-10-05 Tom Tromey <tom@tromey.com>
2864
2865 PR remote/20655:
2866 * tracepoint.c (handle_tracepoint_bkpts): Check
2867 ipa_error_tracepoint, not ipa_stopping_tracepoint.
2868
2869 2016-10-05 Yao Qi <yao.qi@linaro.org>
2870
2871 * configure.srv: Update the path of arm-*.xml files.
2872
2873 2016-10-05 Terry Guo <terry.guo@arm.com>
2874 Yao Qi <yao.qi@linaro.org>
2875
2876 * Makefile.in: Adjust the path of rules.
2877 * configure.srv: Update the path of xml files.
2878 * regformats/arm-with-iwmmxt.dat: Regenerated.
2879 * regformats/arm-with-neon.dat: Likewise.
2880 * regformats/arm-with-vfpv2.dat: Likewise.
2881 * regformats/arm-with-vfpv3.dat Likewise.
2882
2883 2016-09-30 Yao Qi <yao.qi@linaro.org>
2884
2885 PR gdbserver/20627
2886 * target.c (target_stop_and_wait): Don't call
2887 target_continue_no_signal, use resume_stop instead.
2888
2889 2016-09-26 Yao Qi <yao.qi@linaro.org>
2890
2891 * linux-low.c (linux_wait_1): Call debug_exit.
2892
2893 2016-09-23 Pedro Alves <palves@redhat.com>
2894
2895 * Makefile.in (SFILES): Add common/new-op.c.
2896 (OBS): Add common/new-op.o.
2897 (new-op.o): New rule.
2898
2899 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
2900
2901 * .gitinore: Ignore more files.
2902
2903 2016-09-21 Yao Qi <yao.qi@linaro.org>
2904
2905 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
2906 23.
2907
2908 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
2909
2910 * server.c (start_inferior): Call target_mourn_inferior instead of
2911 mourn_inferior; pass ptid_t argument to it.
2912 (resume): Likewise.
2913 (handle_target_event): Likewise.
2914 * target.c (target_mourn_inferior): New function.
2915 * target.h (mourn_inferior): Delete macro.
2916
2917 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2918
2919 * linux-low.c (lwp_is_stepping): New function.
2920
2921 2016-09-06 Carl Love <cel@us.ibm.com>
2922
2923 * server.c (start_inferior): Fixed comment, requested comment change
2924 didn't get updated correctly. Removed reference to ptrace () call as
2925 it is only true on Linux systems.
2926
2927 2016-09-06 Carl Love <cel@us.ibm.com>
2928
2929 * server.c (start_inferior): Do not call
2930 function target_post_create_inferior () if the
2931 inferior process has already exited.
2932
2933 2016-09-05 Pedro Alves <palves@redhat.com>
2934
2935 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
2936 (COMPILE.pre, CC_LD): Use CXX directly.
2937 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
2938 * acinclude.m4: Don't include build-with-cxx.m4.
2939 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
2940 * configure: Regenerate.
2941
2942 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
2943
2944 PR gdb/19495
2945 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
2946 call writing data to own_buf.
2947
2948 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2949
2950 * target.c (mywait): Call target_wait instead of
2951 the_target->wait.
2952 (target_wait): New function.
2953
2954 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2955
2956 * server.c (start_inferior): New variable 'ptid'. Replace calls
2957 to the_target->resume by target_continue{,_no_signal}, depending
2958 on the case.
2959 * target.c (target_stop_and_wait): Call target_continue_no_signal
2960 instead of the_target->resume.
2961 (target_continue): New function.
2962
2963 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
2964
2965 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
2966
2967 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2968
2969 PR server/20491
2970 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
2971 ps_prochandle.
2972 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
2973 * linux-arm-low.c (ps_get_thread_area): Likewise.
2974 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
2975 * linux-m68k-low.c (ps_get_thread_area): Likewise.
2976 * linux-mips-low.c (ps_get_thread_area): Likewise.
2977 * linux-nios2-low.c (ps_get_thread_area): Likewise.
2978 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
2979 * linux-x86-low.c (ps_get_thread_area): Likewise.
2980 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
2981
2982 2016-08-19 Pedro Alves <palves@redhat.com>
2983
2984 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
2985
2986 2016-08-19 Pedro Alves <palves@redhat.com>
2987
2988 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
2989 comment. Use memcpy instead of casting through unsigned long.
2990
2991 2016-08-19 Pedro Alves <palves@redhat.com>
2992
2993 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
2994 allocating around 0x80000000.
2995
2996 2016-08-19 Pedro Alves <palves@redhat.com>
2997
2998 PR gdb/20415
2999 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
3000 (x32-avx512-linux-ipa.o): New rules.
3001 * configure.ac (x86_64-*-linux*): New x32 check.
3002 * configure.srv (ipa_x32_linux_regobj): New.
3003 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
3004 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
3005 descriptions.
3006 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
3007 descriptions.
3008 * configure: Regenerate.
3009
3010 2016-08-09 Pedro Alves <palves@redhat.com>
3011
3012 PR gdb/18653
3013 * Makefile.in (OBS): Add signals-state-save-restore.o.
3014 (signals-state-save-restore.o): New rule.
3015 * config.in: Regenerate.
3016 * configure: Regenerate.
3017 * linux-low.c: Include "signals-state-save-restore.h".
3018 (linux_create_inferior): Call
3019 restore_original_signals_state.
3020 * server.c: Include "dispositions-save-restore.h".
3021 (captured_main): Call save_original_signals_state.
3022
3023 2016-08-05 Pedro Alves <palves@redhat.com>
3024
3025 * configure: Regenerate.
3026
3027 2016-08-04 Yao Qi <yao.qi@linaro.org>
3028
3029 * linux-low.c (regsets_fetch_inferior_registers): Check
3030 errno is ESRCH or not.
3031
3032 2016-08-02 Yao Qi <yao.qi@linaro.org>
3033
3034 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
3035 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
3036 (thread_db_load_search): Update.
3037 (try_thread_db_load_1): Don't look for td_ta_event_addr,
3038 td_ta_set_event and td_ta_event_getmsg.
3039
3040 2016-07-26 Pedro Alves <palves@redhat.com>
3041
3042 PR server/20414
3043 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
3044 of unsigned long for 64-bit registers and use uint32_t instead of
3045 unsigned int for 32-bit registers.
3046
3047 2016-07-26 Pedro Alves <palves@redhat.com>
3048
3049 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
3050 to 'ptrace'.
3051
3052 2016-07-21 Tom Tromey <tom@tromey.com>
3053
3054 * configure: Rebuild.
3055
3056 2016-07-21 Yao Qi <yao.qi@linaro.org>
3057
3058 * mem-break.c (find_gdb_breakpoint): Cast bp to
3059 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
3060
3061 2016-07-21 Yao Qi <yao.qi@linaro.org>
3062
3063 * server.c (handle_v_requests): Support s and S actions
3064 if target_supports_software_single_step return true.
3065
3066 2016-07-21 Yao Qi <yao.qi@linaro.org>
3067
3068 * linux-low.c (resume_stopped_resumed_lwps): If resume request
3069 is resume_step, call maybe_hw_step.
3070 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
3071 and unstop them.
3072 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
3073 breakpoints or not.
3074 (proceed_one_lwp): If resume request is resume_step, install
3075 reinsert breakpoints and call maybe_hw_step.
3076
3077 2016-07-21 Yao Qi <yao.qi@linaro.org>
3078
3079 * linux-low.c (proceed_one_lwp): Declare.
3080 (linux_resume_one_thread): Remove local variable 'step'.
3081 Lift code enqueue signal. Call proceed_one_lwp instead of
3082 linux_resume_one_lwp.
3083
3084 2016-07-21 Yao Qi <yao.qi@linaro.org>
3085
3086 * linux-low.c (linux_resume_one_thread): Call
3087 enqueue_pending_signal.
3088
3089 2016-07-21 Yao Qi <yao.qi@linaro.org>
3090
3091 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
3092 * inferiors.c (do_restore_current_thread_cleanup): New function.
3093 (make_cleanup_restore_current_thread): Likewise.
3094 * linux-low.c (install_software_single_step_breakpoints): Call
3095 make_cleanup_restore_current_thread. Switch current_thread to
3096 thread.
3097
3098 2016-07-21 Yao Qi <yao.qi@linaro.org>
3099
3100 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
3101 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
3102 (clone_one_breakpoint): Likewise.
3103 (delete_reinsert_breakpoints): Change parameter to thread.
3104 Callers updated.
3105 (has_reinsert_breakpoints): Likewise.
3106 (uninsert_reinsert_breakpoints): Likewise.
3107 (reinsert_reinsert_breakpoints): Likewise.
3108 * mem-break.h (set_reinsert_breakpoint): Update declaration.
3109 (delete_reinsert_breakpoints): Likewise.
3110 (reinsert_reinsert_breakpoints): Likewise.
3111 (uninsert_reinsert_breakpoints): Likewise.
3112 (has_reinsert_breakpoints): Likewise.
3113
3114 2016-07-21 Yao Qi <yao.qi@linaro.org>
3115
3116 * inferiors.c (get_thread_process): Make parameter const.
3117 * inferiors.h (get_thread_process): Update declaration.
3118 * mem-break.c (clone_all_breakpoints): Remove all parameters.
3119 Add new parameters child_thread and parent_thread. Callers
3120 updated.
3121 * mem-break.h (clone_all_breakpoints): Update declaration.
3122
3123 2016-07-21 Yao Qi <yao.qi@linaro.org>
3124
3125 * mem-break.c (struct breakpoint) <cond_list>: Remove.
3126 <command_list, handler>: Remove.
3127 (struct gdb_breakpoint): New.
3128 (struct other_breakpoint): New.
3129 (struct reinsert_breakpoint): New.
3130 (is_gdb_breakpoint): New function.
3131 (any_persistent_commands): Update command_list if
3132 is_gdb_breakpoint returns true.
3133 (set_breakpoint): Create breakpoints according to their types.
3134 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
3135 (set_gdb_breakpoint_1): Likewise.
3136 (set_gdb_breakpoint): Likewise.
3137 (clear_breakpoint_conditions): Change parameter type to
3138 'struct gdb_breakpoint *'.
3139 (clear_breakpoint_commands): Likewise.
3140 (clear_breakpoint_conditions_and_commands): Likewise.
3141 (add_condition_to_breakpoint): Likewise.
3142 (add_breakpoint_condition): Likewise.
3143 (add_commands_to_breakpoint): Likewise.
3144 (check_breakpoints): Check other_breakpoint.
3145 (clone_one_breakpoint): Clone breakpopint according to its type.
3146 * mem-break.h (struct gdb_breakpoint): Declare.
3147 (set_gdb_breakpoint): Update declaration.
3148 (clear_breakpoint_conditions_and_commands): Likewise.
3149 (add_breakpoint_condition): Likewise.
3150 (add_breakpoint_commands): Likewise.
3151 * server.c (process_point_options): Change parameter type to
3152 'struct gdb_breakpoint *'.
3153
3154 2016-07-21 Yao Qi <yao.qi@linaro.org>
3155
3156 * mem-break.c (set_breakpoint_at): Rename it to ...
3157 (set_breakpoint_type_at): ... it.
3158 (set_breakpoint_at): Call set_breakpoint_type_at.
3159 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
3160 * mem-break.h (set_breakpoint_at): Update comments.
3161
3162 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
3163
3164 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
3165 to buf parameter.
3166 (nios2_store_gregset): Likewise.
3167
3168 2016-07-01 Pedro Alves <palves@redhat.com>
3169 Antoine Tremblay <antoine.tremblay@ericsson.com>
3170
3171 * linux-low.c: Change interface to take the target lwp_info
3172 pointer directly and return void. Handle detaching from a zombie
3173 thread.
3174 (linux_detach_lwp_callback): New function.
3175 (linux_detach): Detach from the leader thread after detaching from
3176 the clone threads.
3177
3178 2016-06-28 Yao Qi <yao.qi@linaro.org>
3179
3180 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
3181 for variable new_offset.
3182 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
3183 (aarch64_ftrace_insn_reloc_cb): Likewise.
3184 (aarch64_ftrace_insn_reloc_tb): Likewise.
3185 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
3186 PRIx64 instead of PRIx32.
3187
3188 2016-06-28 Yao Qi <yao.qi@linaro.org>
3189
3190 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
3191 (the_low_target): Install arm_get_syscall_trapinfo.
3192
3193 2016-06-28 Yao Qi <yao.qi@linaro.org>
3194
3195 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
3196 function.
3197 (the_low_target): Install aarch64_get_syscall_trapinfo.
3198
3199 2016-06-28 Yao Qi <yao.qi@linaro.org>
3200
3201 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
3202 Callers updated.
3203 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
3204 Remove parameter sysno.
3205 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
3206 sysret.
3207
3208 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3209
3210 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
3211 (s390_emit_ne_goto): Likewise.
3212 (s390_emit_lt_goto): Likewise.
3213 (s390_emit_le_goto): Likewise.
3214 (s390_emit_gt_goto): Likewise.
3215 (s390_emit_ge_goto): Likewise.
3216 (s390x_emit_eq_goto): Likewise.
3217 (s390x_emit_ne_goto): Likewise.
3218 (s390x_emit_lt_goto): Likewise.
3219 (s390x_emit_le_goto): Likewise.
3220 (s390x_emit_gt_goto): Likewise.
3221 (s390x_emit_ge_goto): Likewise.
3222 (s390_emit_ops_impl): Mark variable static.
3223 (s390x_emit_ops): Likewise.
3224
3225 2016-06-17 Yao Qi <yao.qi@linaro.org>
3226
3227 * linux-low.c (handle_extended_wait): Call
3228 uninsert_reinsert_breakpoints for the parent process. Remove
3229 reinsert breakpoints from the child process. Reinsert them to
3230 the parent process when vfork is done.
3231 * mem-break.c (uninsert_reinsert_breakpoints): New function.
3232 (reinsert_reinsert_breakpoints): New function.
3233 * mem-break.h (uninsert_reinsert_breakpoints): Declare
3234 (reinsert_reinsert_breakpoints): Declare.
3235
3236 2016-06-17 Yao Qi <yao.qi@linaro.org>
3237
3238 * linux-low.c (handle_extended_wait): If the parent is doing
3239 step-over, remove the reinsert breakpoints from the forked child.
3240
3241 2016-06-17 Yao Qi <yao.qi@linaro.org>
3242
3243 * linux-low.c (unsuspend_all_lwps): Declare.
3244 (linux_low_filter_event): If thread exited, call finish_step_over.
3245 If step-over is finished, unsuspend other threads.
3246
3247 2016-06-17 Yao Qi <yao.qi@linaro.org>
3248
3249 * linux-low.c (linux_resume_one_lwp_throw): Assert
3250 has_reinsert_breakpoints returns false.
3251 * mem-break.c (delete_disabled_breakpoints): Assert
3252 bp type isn't reinsert_breakpoint.
3253
3254 2016-06-17 Yao Qi <yao.qi@linaro.org>
3255
3256 * linux-low.c (maybe_hw_step): New function.
3257 (linux_resume_one_lwp_throw): Call maybe_hw_step.
3258 (finish_step_over): Switch current_thread to lwp temporarily,
3259 and assert has_reinsert_breakpoints returns true.
3260 (proceed_one_lwp): Call maybe_hw_step.
3261 * mem-break.c (has_reinsert_breakpoints): New function.
3262 * mem-break.h (has_reinsert_breakpoints): Declare.
3263
3264 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
3265
3266 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
3267
3268 2016-05-17 Yao Qi <yao.qi@linaro.org>
3269
3270 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
3271 instead of find_inferior.
3272
3273 2016-05-05 Yao Qi <yao.qi@linaro.org>
3274
3275 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
3276 Initialize res to zero.
3277
3278 2016-05-05 Yao Qi <yao.qi@linaro.org>
3279
3280 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
3281 to uint32_t.
3282
3283 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3284
3285 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
3286 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
3287 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
3288
3289 2016-04-28 Par Olsson <par.olsson@windriver.com>
3290 Simon Marchi <simon.marchi@ericsson.com>
3291
3292 * tracepoint.c (write_inferior_int8): New function.
3293 (cmd_qtenable_disable): Write enable flag using
3294 write_inferior_int8.
3295
3296 2016-04-25 Yao Qi <yao.qi@linaro.org>
3297
3298 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
3299 (need_step_over_p): Return zero if the LWP has pending signals
3300 can be delivered on software single step target.
3301
3302 2016-04-25 Yao Qi <yao.qi@linaro.org>
3303
3304 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
3305 return instead of error.
3306
3307 2016-04-22 Yao Qi <yao.qi@linaro.org>
3308
3309 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
3310 to 23.
3311
3312 2016-04-22 Yao Qi <yao.qi@linaro.org>
3313
3314 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
3315 signal when stepping over breakpoint with software single
3316 step.
3317
3318 2016-04-21 Pedro Alves <palves@redhat.com>
3319
3320 * linux-s390-low.c (s390_collect_ptrace_register)
3321 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
3322 add casts.
3323 (s390_check_regset): Use void * instead of gdb_byte *.
3324
3325 2016-04-20 Pedro Alves <palves@redhat.com>
3326
3327 * configure: Renegerate.
3328
3329 2016-04-20 Yao Qi <yao.qi@linaro.org>
3330
3331 * linux-aarch32-low.c: Include "arch/arm-linux.h".
3332 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
3333 number 16.
3334 (arm_store_gregset): Likewise.
3335
3336 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
3337
3338 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
3339 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
3340 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
3341 (amd64-avx-mpx-linux.c): New rules.
3342 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
3343 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
3344 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
3345 (srv_amd64_regobj): Add amd64-avx-mpx.o.
3346 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
3347 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
3348 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
3349 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
3350 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
3351 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
3352 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
3353 * linux-x86-low.c (x86_linux_read_description): Add case for
3354 X86_XSTATE_AVX_MPX_MASK.
3355 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
3356 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
3357 init_registers_i386_avx_mpx_linux.
3358 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
3359 (initialize_low_tracepoint): Call
3360 init_registers_i386_avx_mpx_linux.
3361 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
3362 (initialize_low_tracepoint): Call
3363 init_registers_amd64_avx_mpx_linux.
3364 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
3365 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
3366 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
3367 declarations.
3368
3369 2016-04-18 Pedro Alves <palves@redhat.com>
3370
3371 * configure: Regenerate.
3372
3373 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
3374
3375 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
3376 (aarch64_emit_sub): Likewise.
3377
3378 2016-04-12 Pedro Alves <palves@redhat.com>
3379
3380 * utils.c (prepare_to_throw_exception): Delete.
3381
3382 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
3383
3384 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
3385
3386 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
3387
3388 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
3389
3390 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
3391
3392 * linux-aarch64-ipa.c: Add <elf.h> include.
3393 * linux-ppc-ipa.c: Add <elf.h> include.
3394 * linux-s390-ipa.c: Add <elf.h> include.
3395
3396 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
3397
3398 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
3399 (get_raw_reg_ptr): Likewise.
3400 (get_trace_state_variable_value_ptr): Likewise.
3401 (set_trace_state_variable_value_ptr): Likewise.
3402 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
3403 char *.
3404
3405 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
3406 Marcin Kościelnicki <koriakin@0x04.net>
3407
3408 PR/17221
3409 * linux-ppc-low.c (emit_insns): New function.
3410 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
3411 (ppc_emit_prologue): New function.
3412 (ppc_emit_epilogue): New function.
3413 (ppc_emit_add): New function.
3414 (ppc_emit_sub): New function.
3415 (ppc_emit_mul): New function.
3416 (ppc_emit_lsh): New function.
3417 (ppc_emit_rsh_signed): New function.
3418 (ppc_emit_rsh_unsigned): New function.
3419 (ppc_emit_ext): New function.
3420 (ppc_emit_zero_ext): New function.
3421 (ppc_emit_log_not): New function.
3422 (ppc_emit_bit_and): New function.
3423 (ppc_emit_bit_or): New function.
3424 (ppc_emit_bit_xor): New function.
3425 (ppc_emit_bit_not): New function.
3426 (ppc_emit_equal): New function.
3427 (ppc_emit_less_signed): New function.
3428 (ppc_emit_less_unsigned): New function.
3429 (ppc_emit_ref): New function.
3430 (ppc_emit_const): New function.
3431 (ppc_emit_reg): New function.
3432 (ppc_emit_pop): New function.
3433 (ppc_emit_stack_flush): New function.
3434 (ppc_emit_swap): New function.
3435 (ppc_emit_stack_adjust): New function.
3436 (ppc_emit_call): New function.
3437 (ppc_emit_int_call_1): New function.
3438 (ppc_emit_void_call_2): New function.
3439 (ppc_emit_if_goto): New function.
3440 (ppc_emit_goto): New function.
3441 (ppc_emit_eq_goto): New function.
3442 (ppc_emit_ne_goto): New function.
3443 (ppc_emit_lt_goto): New function.
3444 (ppc_emit_le_goto): New function.
3445 (ppc_emit_gt_goto): New function.
3446 (ppc_emit_ge_goto): New function.
3447 (ppc_write_goto_address): New function.
3448 (ppc_emit_ops_impl): New static variable.
3449 (ppc64v1_emit_prologue): New function.
3450 (ppc64v2_emit_prologue): New function.
3451 (ppc64_emit_epilogue): New function.
3452 (ppc64_emit_add): New function.
3453 (ppc64_emit_sub): New function.
3454 (ppc64_emit_mul): New function.
3455 (ppc64_emit_lsh): New function.
3456 (ppc64_emit_rsh_signed): New function.
3457 (ppc64_emit_rsh_unsigned): New function.
3458 (ppc64_emit_ext): New function.
3459 (ppc64_emit_zero_ext): New function.
3460 (ppc64_emit_log_not): New function.
3461 (ppc64_emit_bit_and): New function.
3462 (ppc64_emit_bit_or): New function.
3463 (ppc64_emit_bit_xor): New function.
3464 (ppc64_emit_bit_not): New function.
3465 (ppc64_emit_equal): New function.
3466 (ppc64_emit_less_signed): New function.
3467 (ppc64_emit_less_unsigned): New function.
3468 (ppc64_emit_ref): New function.
3469 (ppc64_emit_const): New function.
3470 (ppc64v1_emit_reg): New function.
3471 (ppc64v2_emit_reg): New function.
3472 (ppc64_emit_pop): New function.
3473 (ppc64_emit_stack_flush): New function.
3474 (ppc64_emit_swap): New function.
3475 (ppc64v1_emit_call): New function.
3476 (ppc64v2_emit_call): New function.
3477 (ppc64v1_emit_int_call_1): New function.
3478 (ppc64v2_emit_int_call_1): New function.
3479 (ppc64v1_emit_void_call_2): New function.
3480 (ppc64v2_emit_void_call_2): New function.
3481 (ppc64_emit_if_goto): New function.
3482 (ppc64_emit_eq_goto): New function.
3483 (ppc64_emit_ne_goto): New function.
3484 (ppc64_emit_lt_goto): New function.
3485 (ppc64_emit_le_goto): New function.
3486 (ppc64_emit_gt_goto): New function.
3487 (ppc64_emit_ge_goto): New function.
3488 (ppc64v1_emit_ops_impl): New static variable.
3489 (ppc64v2_emit_ops_impl): New static variable.
3490 (ppc_emit_ops): New function.
3491 (linux_low_target): Wire in ppc_emit_ops.
3492
3493 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
3494 Marcin Kościelnicki <koriakin@0x04.net>
3495
3496 PR/17221
3497 * Makefile.in: Add powerpc-*-ipa.o
3498 * configure.srv: Add ipa_obj for powerpc*-linux.
3499 * linux-ppc-ipa.c: New file.
3500 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
3501 includes.
3502 (PPC_FIELD): New macro.
3503 (PPC_SEXT): New macro.
3504 (PPC_OP6): New macro.
3505 (PPC_BO): New macro.
3506 (PPC_LI): New macro.
3507 (PPC_BD): New macro.
3508 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
3509 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
3510 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
3511 (ppc_get_thread_area): New function.
3512 (is_elfv2_inferior): New function.
3513 (gen_ds_form): New function.
3514 (GEN_STD): New macro.
3515 (GEN_STDU): New macro.
3516 (GEN_LD): New macro.
3517 (GEN_LDU): New macro.
3518 (gen_d_form): New function.
3519 (GEN_ADDI): New macro.
3520 (GEN_ADDIS): New macro.
3521 (GEN_LI): New macro.
3522 (GEN_LIS): New macro.
3523 (GEN_ORI): New macro.
3524 (GEN_ORIS): New macro.
3525 (GEN_LWZ): New macro.
3526 (GEN_STW): New macro.
3527 (GEN_STWU): New macro.
3528 (gen_xfx_form): New function.
3529 (GEN_MFSPR): New macro.
3530 (GEN_MTSPR): New macro.
3531 (GEN_MFCR): New macro.
3532 (GEN_MTCR): New macro.
3533 (GEN_SYNC): New macro.
3534 (GEN_LWSYNC): New macro.
3535 (gen_x_form): New function.
3536 (GEN_OR): New macro.
3537 (GEN_MR): New macro.
3538 (GEN_LWARX): New macro.
3539 (GEN_STWCX): New macro.
3540 (GEN_CMPW): New macro.
3541 (gen_md_form): New function.
3542 (GEN_RLDICL): New macro.
3543 (GEN_RLDICR): New macro.
3544 (gen_i_form): New function.
3545 (GEN_B): New macro.
3546 (GEN_BL): New macro.
3547 (gen_b_form): New function.
3548 (GEN_BNE): New macro.
3549 (GEN_LOAD): New macro.
3550 (GEN_STORE): New macro.
3551 (gen_limm): New function.
3552 (gen_atomic_xchg): New function.
3553 (gen_call): New function.
3554 (ppc_relocate_instruction): New function.
3555 (ppc_install_fast_tracepoint_jump_pad): New function.
3556 (ppc_get_min_fast_tracepoint_insn_len): New function.
3557 (ppc_get_ipa_tdesc_idx): New function.
3558 (the_low_target): Wire in the new functions.
3559 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
3560 tdescs.
3561 * linux-ppc-tdesc.h: New file.
3562
3563 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
3564
3565 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
3566 (alloc_jump_pad_buffer): New function.
3567 * linux-amd64-ipa.c: Add <sys/mman.h> include.
3568 (alloc_jump_pad_buffer): New function.
3569 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
3570 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
3571 (alloc_jump_pad_buffer): New function.
3572 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
3573 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
3574 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
3575 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
3576
3577 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
3578
3579 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
3580 * linux-amd64-ipa.c: Likewise.
3581 * linux-i386-ipa.c: Likewise.
3582 * linux-s390-ipa.c: Likewise.
3583 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
3584 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
3585 set_trace_state_variable_value_ptr.
3586 (struct ipa_sym_addresses): Likewise.
3587 (symbol_list): Likewise.
3588 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
3589 accessing gdb_collect directly.
3590 (gdb_collect_ptr_type): New typedef.
3591 (get_raw_reg_ptr_type): New typedef.
3592 (get_trace_state_variable_value_ptr_type): New typedef.
3593 (set_trace_state_variable_value_ptr_type): New typedef.
3594 (gdb_collect_ptr): New global.
3595 (get_raw_reg_ptr): New global.
3596 (get_trace_state_variable_value_ptr): New global.
3597 (set_trace_state_variable_value_ptr): New global.
3598 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
3599 accessing get_raw_reg directly.
3600 (get_get_tsv_func_addr): Likewise for
3601 get_trace_state_variable_value_ptr.
3602 (get_set_tsv_func_addr): Likewise for
3603 set_trace_state_variable_value_ptr.
3604 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
3605
3606 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
3607
3608 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
3609
3610 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
3611
3612 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
3613 packets.
3614 (relocate_instruction): Remove own_buf.
3615 * server.c (own_buf): Make global.
3616 (handle_v_requests): Make global.
3617 * server.h (own_buf): New declaration.
3618 (handle_v_requests): New prototype.
3619
3620 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
3621
3622 PR 18377
3623 * linux-s390-low.c (add_insns): New function.
3624 (s390_emit_prologue): New function.
3625 (s390_emit_epilogue): New function.
3626 (s390_emit_add): New function.
3627 (s390_emit_sub): New function.
3628 (s390_emit_mul): New function.
3629 (s390_emit_lsh): New function.
3630 (s390_emit_rsh_signed): New function.
3631 (s390_emit_rsh_unsigned): New function.
3632 (s390_emit_ext): New function.
3633 (s390_emit_log_not): New function.
3634 (s390_emit_bit_and): New function.
3635 (s390_emit_bit_or): New function.
3636 (s390_emit_bit_xor): New function.
3637 (s390_emit_bit_not): New function.
3638 (s390_emit_equal): New function.
3639 (s390_emit_less_signed): New function.
3640 (s390_emit_less_unsigned): New function.
3641 (s390_emit_ref): New function.
3642 (s390_emit_if_goto): New function.
3643 (s390_emit_goto): New function.
3644 (s390_write_goto_address): New function.
3645 (s390_emit_litpool): New function.
3646 (s390_emit_const): New function.
3647 (s390_emit_call): New function.
3648 (s390_emit_reg): New function.
3649 (s390_emit_pop): New function.
3650 (s390_emit_stack_flush): New function.
3651 (s390_emit_zero_ext): New function.
3652 (s390_emit_swap): New function.
3653 (s390_emit_stack_adjust): New function.
3654 (s390_emit_set_r2): New function.
3655 (s390_emit_int_call_1): New function.
3656 (s390_emit_void_call_2): New function.
3657 (s390_emit_eq_goto): New function.
3658 (s390_emit_ne_goto): New function.
3659 (s390_emit_lt_goto): New function.
3660 (s390_emit_le_goto): New function.
3661 (s390_emit_gt_goto): New function.
3662 (s390_emit_ge_goto): New function.
3663 (s390x_emit_prologue): New function.
3664 (s390x_emit_epilogue): New function.
3665 (s390x_emit_add): New function.
3666 (s390x_emit_sub): New function.
3667 (s390x_emit_mul): New function.
3668 (s390x_emit_lsh): New function.
3669 (s390x_emit_rsh_signed): New function.
3670 (s390x_emit_rsh_unsigned): New function.
3671 (s390x_emit_ext): New function.
3672 (s390x_emit_log_not): New function.
3673 (s390x_emit_bit_and): New function.
3674 (s390x_emit_bit_or): New function.
3675 (s390x_emit_bit_xor): New function.
3676 (s390x_emit_bit_not): New function.
3677 (s390x_emit_equal): New function.
3678 (s390x_emit_less_signed): New function.
3679 (s390x_emit_less_unsigned): New function.
3680 (s390x_emit_ref): New function.
3681 (s390x_emit_if_goto): New function.
3682 (s390x_emit_const): New function.
3683 (s390x_emit_call): New function.
3684 (s390x_emit_reg): New function.
3685 (s390x_emit_pop): New function.
3686 (s390x_emit_stack_flush): New function.
3687 (s390x_emit_zero_ext): New function.
3688 (s390x_emit_swap): New function.
3689 (s390x_emit_stack_adjust): New function.
3690 (s390x_emit_int_call_1): New function.
3691 (s390x_emit_void_call_2): New function.
3692 (s390x_emit_eq_goto): New function.
3693 (s390x_emit_ne_goto): New function.
3694 (s390x_emit_lt_goto): New function.
3695 (s390x_emit_le_goto): New function.
3696 (s390x_emit_gt_goto): New function.
3697 (s390x_emit_ge_goto): New function.
3698 (s390_emit_ops): New function.
3699 (struct linux_target_ops): Fill in emit_ops hook.
3700
3701 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
3702
3703 PR 18377
3704 * Makefile.in: Add s390 IPA files.
3705 * configure.srv: Build IPA for s390.
3706 * linux-s390-ipa.c: New file.
3707 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
3708 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
3709 (tdesc_s390_linux32): Likewise.
3710 (init_registers_s390_linux32v1): Likewise.
3711 (tdesc_s390_linux32v1): Likewise.
3712 (init_registers_s390_linux32v2): Likewise.
3713 (tdesc_s390_linux32v2): Likewise.
3714 (init_registers_s390_linux64): Likewise.
3715 (tdesc_s390_linux64): Likewise.
3716 (init_registers_s390_linux64v1): Likewise.
3717 (tdesc_s390_linux64v1): Likewise.
3718 (init_registers_s390_linux64v2): Likewise.
3719 (tdesc_s390_linux64v2): Likewise.
3720 (init_registers_s390_te_linux64): Likewise.
3721 (tdesc_s390_te_linux64): Likewise.
3722 (init_registers_s390_vx_linux64): Likewise.
3723 (tdesc_s390_vx_linux64): Likewise.
3724 (init_registers_s390_tevx_linux64): Likewise.
3725 (tdesc_s390_tevx_linux64): Likewise.
3726 (init_registers_s390x_linux64): Likewise.
3727 (tdesc_s390x_linux64): Likewise.
3728 (init_registers_s390x_linux64v1): Likewise.
3729 (tdesc_s390x_linux64v1): Likewise.
3730 (init_registers_s390x_linux64v2): Likewise.
3731 (tdesc_s390x_linux64v2): Likewise.
3732 (init_registers_s390x_te_linux64): Likewise.
3733 (tdesc_s390x_te_linux64): Likewise.
3734 (init_registers_s390x_vx_linux64): Likewise.
3735 (tdesc_s390x_vx_linux64): Likewise.
3736 (init_registers_s390x_tevx_linux64): Likewise.
3737 (tdesc_s390x_tevx_linux64): Likewise.
3738 (have_hwcap_s390_vx): New static variable.
3739 (s390_arch_setup): Fill have_hwcap_s390_vx.
3740 (s390_get_thread_area): New function.
3741 (s390_ft_entry_gpr_esa): New const.
3742 (s390_ft_entry_gpr_zarch): New const.
3743 (s390_ft_entry_misc): New const.
3744 (s390_ft_entry_fr): New const.
3745 (s390_ft_entry_vr): New const.
3746 (s390_ft_main_31): New const.
3747 (s390_ft_main_64): New const.
3748 (s390_ft_exit_fr): New const.
3749 (s390_ft_exit_vr): New const.
3750 (s390_ft_exit_misc): New const.
3751 (s390_ft_exit_gpr_esa): New const.
3752 (s390_ft_exit_gpr_zarch): New const.
3753 (append_insns): New function.
3754 (s390_relocate_instruction): New function.
3755 (s390_install_fast_tracepoint_jump_pad): New function.
3756 (s390_get_min_fast_tracepoint_insn_len): New function.
3757 (s390_get_ipa_tdesc_idx): New function.
3758 (struct linux_target_ops): Wire in the above functions.
3759 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
3760 * linux-s390-tdesc.h: New file.
3761
3762 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
3763
3764 * linux-s390-low.c (s390_supports_tracepoints): New function.
3765 (struct linux_target_ops): Fill supports_tracepoints hook.
3766
3767 2016-03-18 Yao Qi <yao.qi@linaro.org>
3768
3769 * linux-low.c (lwp_signal_can_be_delivered): New function.
3770 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
3771
3772 2016-03-18 Yao Qi <yao.qi@linaro.org>
3773
3774 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
3775 0 if signal is enqueued. Remove 'signal' from one debugging
3776 message. Move one debugging message to some lines below.
3777 Remove code setting 'signal' to 0.
3778
3779 2016-03-18 Yao Qi <yao.qi@linaro.org>
3780
3781 * linux-low.c (linux_low_filter_event): Remove redundant
3782 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
3783
3784 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
3785
3786 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
3787 (struct linux_target_ops): Wire in the above.
3788
3789 2016-03-03 Yao Qi <yao.qi@linaro.org>
3790
3791 * linux-low.c: Update comments to start_step_over.
3792
3793 2016-03-03 Yao Qi <yao.qi@linaro.org>
3794
3795 PR server/19736
3796 * linux-low.c (handle_extended_wait): Set child suspended
3797 if event_lwp->bp_reinsert isn't zero.
3798
3799 2016-03-02 Yao Qi <yao.qi@linaro.org>
3800
3801 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
3802 enqueue_pending_signal.
3803
3804 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
3805
3806 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
3807 is actually loaded.
3808
3809 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
3810
3811 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
3812 (s390_regmap_3264) [!__s390x__]: New global.
3813 (s390_collect_ptrace_register): Skip map entries containing -1.
3814 (s390_supply_ptrace_register): Ditto.
3815 (s390_fill_gprs_high): New function.
3816 (s390_store_gprs_high): New function.
3817 (s390_regsets): Add NT_S390_HIGH_GPRS.
3818 (s390_get_hwcap): Enable on 31-bit.
3819 (have_hwcap_s390_high_gprs): Enable on 31-bit.
3820 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
3821 Detect NT_S390_HIGH_GPRS.
3822 (s390_usrregs_info_3264): Enable on 31-bit.
3823 (s390_regs_info): Enable regs_info_3264 on 31-bit.
3824 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
3825
3826 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
3827
3828 PR gdb/13808
3829 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
3830 * configure.srv: Ditto.
3831 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
3832 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
3833 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
3834 (init_registers_amd64_linux): Remove prototype.
3835 (tdesc_amd64_linux): Remove declaration.
3836 (get_ipa_tdesc): New function.
3837 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
3838 initialize remaining tdescs.
3839 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
3840 (init_registers_i386_linux): Remove prototype.
3841 (tdesc_i386_linux): Remove declaration.
3842 (get_ipa_tdesc): New function.
3843 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
3844 initialize remaining tdescs.
3845 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
3846 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
3847 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
3848 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
3849 (x86_get_ipa_tdesc_idx): New function.
3850 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
3851 * linux-x86-tdesc.h: New file.
3852 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
3853 (target_get_ipa_tdesc_idx): New macro.
3854 * tracepoint.c (ipa_tdesc_idx): New macro.
3855 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
3856 (symbol_list): Add ipa_tdesc_idx.
3857 (cmd_qtstart): Write ipa_tdesc_idx in the target.
3858 (ipa_tdesc): Remove.
3859 (ipa_tdesc_idx): New variable.
3860 (get_context_regcache): Use get_ipa_tdesc.
3861 (gdb_collect): Ditto.
3862 (gdb_probe): Ditto.
3863 * tracepoint.h (get_ipa_tdesc): New prototype.
3864 (ipa_tdesc): Remove.
3865
3866 2016-02-24 Pedro Alves <palves@redhat.com>
3867
3868 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
3869 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
3870 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
3871 Factor out common code between the USE_SIGTRAP_SIGINFO and
3872 !USE_SIGTRAP_SIGINFO blocks.
3873 (linux_low_filter_event): Call save_stop_reason instead of
3874 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
3875 Update comments.
3876 (linux_wait_1): Update comments.
3877
3878 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
3879
3880 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
3881 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
3882 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
3883 ppc_insert_point, ppc_remove_point.
3884
3885 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
3886
3887 * linux-s390-low.c (s390_supports_z_point_type): New function.
3888 (struct linux_target_ops): Wire s390_supports_z_point_type in.
3889
3890 2016-02-16 Yao Qi <yao.qi@linaro.org>
3891
3892 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
3893 PC. Get pc from regcache_read_pc.
3894
3895 2016-02-12 Yao Qi <yao.qi@linaro.org>
3896
3897 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
3898 or linux_get_pc_32bit.
3899 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
3900
3901 2016-02-12 Yao Qi <yao.qi@linaro.org>
3902
3903 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
3904 arm_linux_get_next_pcs_fixup.
3905
3906 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
3907
3908 * tracepoint.c (x_tracepoint_action_download): Change
3909 write_inferior_data_ptr to write_inferior_data_pointer.
3910 (cmd_qtstart): Likewise.
3911 (write_inferior_data_ptr): Remove.
3912 (download_agent_expr): Change write_inferior_data_ptr to
3913 write_inferior_data_pointer.
3914 (download_tracepoint_1): Likewise.
3915 (download_tracepoint): Likewise.
3916 (download_trace_state_variables): Likewise.
3917
3918 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
3919 Marcin Kościelnicki <koriakin@0x04.net>
3920
3921 * tracepoint.c (struct tracepoint_action_ops): Remove.
3922 (struct tracepoint_action): Remove ops.
3923 (m_tracepoint_action_download, r_tracepoint_action_download)
3924 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
3925 size and offset accordingly.
3926 (m_tracepoint_action_ops, r_tracepoint_action_ops)
3927 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
3928 (tracepoint_action_send, tracepoint_action_download): New functions.
3929 Helpers for trace action handlers.
3930 (add_tracepoint_action): Remove setup actions ops.
3931 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
3932
3933 2016-02-10 Yao Qi <yao.qi@linaro.org>
3934
3935 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
3936
3937 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
3938
3939 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
3940 to AC_OUTPUT.
3941 * configure: Regenerate.
3942
3943 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
3944
3945 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
3946 void * to gdb_byte *.
3947 * linux-low.c (siginfo_fixup): Likewise.
3948 (linux_xfer_siginfo): Likewise.
3949 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
3950 Likewise.
3951 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
3952
3953 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
3954
3955 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
3956 to srv_tgtobj.
3957 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
3958 to srv_tgtobj.
3959 * linux-x86-low.c [__x86_64__]: Include
3960 "nat/amd64-linux-siginfo.h".
3961 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
3962 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
3963 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
3964 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
3965 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
3966 (cpt_si_fd, si_timerid, si_overrun): Move from
3967 nat/amd64-linux-siginfo.c.
3968 * Makefile.in (amd64-linux-siginfo.o:): New rule.
3969
3970 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
3971
3972 * server.c (skip_to_semicolon): Remove.
3973 (process_point_options): Use strchrnul instead of
3974 skip_to_semicolon.
3975
3976 2016-01-26 Yao Qi <yao.qi@linaro.org>
3977
3978 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
3979 * linux-low.c (install_software_single_step_breakpoints): Don't
3980 call regcache_read_pc.
3981 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
3982 argument pc.
3983
3984 2016-01-26 Yao Qi <yao.qi@linaro.org>
3985
3986 * linux-low.c (install_software_single_step_breakpoints): Call
3987 regcache_read_pc instead of get_pc.
3988
3989 2016-01-26 Yao Qi <yao.qi@linaro.org>
3990
3991 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
3992 (unblock_async_io): Rename to ...
3993 (block_unblock_async_io): ... it. New function.
3994 (enable_async_io): Don't install SIGIO handler. Unblock it
3995 instead.
3996 (disable_async_io): Don't ignore SIGIO. Block it instead.
3997 (initialize_async_io): Install SIGIO handler. Don't call
3998 unblock_async_io.
3999
4000 2016-01-26 Yao Qi <yao.qi@linaro.org>
4001
4002 * remote-utils.c (getpkt): If the buffer isn't empty, and the
4003 first character is '\003', call *the_target->request_interrupt.
4004
4005 2016-01-25 Yao Qi <yao.qi@linaro.org>
4006
4007 * remote-utils.c (new_thread_notify): Remove.
4008 (dead_thread_notify): Likewise.
4009 * remote-utils.h (new_thread_notify): Remove declaration.
4010 (dead_thread_notify): Likewise.
4011
4012 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
4013
4014 * gdb.trace/pending.exp: Fix expected message on continue.
4015
4016 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
4017
4018 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
4019 it works properly on big-endian machines where sizeof (CORE_ADDR)
4020 != sizeof (void *).
4021
4022 2016-01-21 Pedro Alves <palves@redhat.com>
4023
4024 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
4025 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
4026 * configure: Regenerate.
4027
4028 2016-01-21 Yao Qi <yao.qi@linaro.org>
4029
4030 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
4031 is_thumb and set it according to CPSR saved on the stack.
4032 (get_next_pcs_syscall_next_pc): Pass is_thumb to
4033 arm_sigreturn_next_pc.
4034
4035 2016-01-18 Yao Qi <yao.qi@linaro.org>
4036
4037 * linux-low.c (linux_set_pc_64bit): New function.
4038 (linux_get_pc_64bit): New function.
4039 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
4040 Declare.
4041 * linux-sparc-low.c (debug_threads): Remove declaration.
4042 (sparc_get_pc): Remove.
4043 (the_low_target): Use linux_get_pc_64bit instead of
4044 sparc_get_pc.
4045 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
4046 (the_low_target): Use linux_get_pc_64bit and
4047 linux_set_pc_64bit.
4048
4049 2016-01-18 Yao Qi <yao.qi@linaro.org>
4050
4051 * linux-arm-low.c (debug_threads): Remove declaration.
4052 (arm_get_pc, arm_set_pc): Remove.
4053 (the_low_target): Use linux_get_pc_32bit and
4054 linux_set_pc_32bit.
4055 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
4056 (the_low_target): Use linux_get_pc_32bit and
4057 linux_set_pc_32bit.
4058 * linux-cris-low.c (debug_threads): Remove declaration.
4059 (cris_get_pc, cris_set_pc,): Remove.
4060 (the_low_target): Use linux_get_pc_32bit and
4061 linux_set_pc_32bit.
4062 * linux-crisv32-low.c (debug_threads): Remove declaration.
4063 (cris_get_pc, cris_set_pc): Remove.
4064 (the_low_target): Use linux_get_pc_32bit and
4065 linux_set_pc_32bit.
4066 * linux-low.c: Include inttypes.h.
4067 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
4068 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
4069 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
4070 (the_low_target): Use linux_get_pc_32bit and
4071 linux_set_pc_32bit.
4072 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
4073 (the_low_target): Use linux_get_pc_32bit and
4074 linux_set_pc_32bit.
4075 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
4076 (the_low_target): Use linux_get_pc_32bit and
4077 linux_set_pc_32bit.
4078 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
4079 (the_low_target): Use linux_get_pc_32bit and
4080 linux_set_pc_32bit.
4081 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
4082 (the_low_target): Use linux_get_pc_32bit and
4083 linux_set_pc_32bit.
4084
4085 2016-01-18 Gary Benson <gbenson@redhat.com>
4086
4087 * configure.ac (AC_FUNC_FORK): New check.
4088 * config.in: Regenerate.
4089 * configure: Likewise.
4090
4091 2016-01-14 Yao Qi <yao.qi@linaro.org>
4092
4093 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
4094 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
4095 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
4096 arm_get_next_pcs_ctor.
4097
4098 2016-01-12 Josh Stone <jistone@redhat.com>
4099 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4100
4101 * inferiors.h: Include "gdb_vecs.h".
4102 (struct process_info): Add syscalls_to_catch.
4103 * inferiors.c (remove_process): Free syscalls_to_catch.
4104 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
4105 syscall_return stops.
4106 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
4107 * server.c (handle_general_set): Handle QCatchSyscalls.
4108 (handle_query): Report support for QCatchSyscalls.
4109 * target.h (struct target_ops): Add supports_catch_syscall.
4110 (target_supports_catch_syscall): New macro.
4111 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
4112 (struct lwp_info): Add syscall_state.
4113 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
4114 Maintain syscall_state and syscalls_to_catch across exec.
4115 (get_syscall_trapinfo): New function, proxy to the_low_target.
4116 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
4117 (linux_low_filter_event): Toggle syscall_state entry/return for
4118 syscall traps, and set it ignored for all others.
4119 (gdb_catching_syscalls_p): New function.
4120 (gdb_catch_this_syscall_p): New function.
4121 (linux_wait_1): Handle SYSCALL_SIGTRAP.
4122 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
4123 (linux_supports_catch_syscall): New function.
4124 (linux_target_ops): Install it.
4125 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
4126 (the_low_target): Install it.
4127
4128 2016-01-12 Mike Frysinger <vapier@gentoo.org>
4129
4130 * acinclude.m4: Include new ../warning.m4 file.
4131 * configure: Regenerated.
4132 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
4133
4134 2016-01-12 Mike Frysinger <vapier@gentoo.org>
4135
4136 * ax.c (is_goto_target): Mark static.
4137 * linux-low.c (register_addr): Likewise.
4138 (linux_fetch_registers, linux_store_registers): Likewise.
4139 * mem-break.c (any_persistent_commands): Fix old prototype.
4140 (add_commands_to_breakpoint): Mark static.
4141 * regcache.c (find_register_by_name): Delete unused func.
4142 * remote-utils.c (hex_or_minus_one): Mark static.
4143 * server.c (monitor_show_help): Mark static.
4144 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
4145 handle_v_requests): Likewise.
4146
4147 2016-01-12 Pedro Alves <palves@redhat.com>
4148
4149 Remove use of the registered trademark symbol throughout.
4150
4151 2016-01-08 Yao Qi <yao.qi@linaro.org>
4152
4153 * remote-utils.c (getpkt): If c is '\003', call target hook
4154 request_interrupt.
4155
4156 2016-01-06 Yao Qi <yao.qi@linaro.org>
4157
4158 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
4159 linux-aarch32-low.c.
4160 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4161 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
4162 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
4163 (thumb2_breakpoint): Declare.
4164 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
4165 linux-aarch32-low.h.
4166 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4167 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
4168 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
4169
4170 2016-01-01 Joel Brobecker <brobecker@adacore.com>
4171
4172 * gdbreplay.c (gdbreplay_version): Change copyright year in
4173 version message.
4174 * server.c (gdbserver_version): Likewise.
4175
4176 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
4177
4178 * server.c (crc32_table): Delete.
4179 (crc32): Use libiberty's xcrc32 function.
4180
4181 2015-12-22 Joel Brobecker <brobecker@adacore.com>
4182
4183 * lynx-low.c (lynx_delete_thread_callback): New function.
4184 (lynx_mourn): Properly delete our process and all of its
4185 threads. Remove call to clear_inferiors.
4186
4187 2015-12-22 Joel Brobecker <brobecker@adacore.com>
4188
4189 * target.c (thread_search_callback): Add check that
4190 the thread_stopped target callback is not NULL before
4191 calling it.
4192
4193 2015-12-21 Yao Qi <yao.qi@linaro.org>
4194
4195 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
4196 arm breakpoint.
4197
4198 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4199
4200 * server.c (handle_query): Call target_supports_software_single_step.
4201
4202 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4203
4204 * linux-low.c (single_step): New function.
4205 (linux_resume_one_lwp_throw): Call single_step.
4206 (start_step_over): Likewise.
4207
4208 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4209
4210 * Makefile.in (SFILES): Append arch/arm-linux.c,
4211 arch/arm-get-next-pcs.c.
4212 (arm-linux.o): New rule.
4213 (arm-get-next-pcs.o): New rule.
4214 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
4215 arm-linux.o.
4216 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
4217 to linux-aarch32-low.c.
4218 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4219 (arm_breakpoint_len, thumb_breakpoint): Likewise.
4220 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
4221 (thumb2_breakpoint_len): Likewise.
4222 (arm_is_thumb_mode): Make non-static.
4223 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
4224 from linux-aarch32-low.c.
4225 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4226 (arm_breakpoint_len, thumb_breakpoint): Likewise.
4227 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
4228 (thumb2_breakpoint_len): Likewise.
4229 (arm_is_thumb_mode): New declaration.
4230 * linux-arm-low.c: Include arch/arm-linux.h
4231 aarch/arm-get-next-pcs.h, sys/syscall.h.
4232 (get_next_pcs_ops): New struct.
4233 (get_next_pcs_addr_bits_remove): New function.
4234 (get_next_pcs_is_thumb): New function.
4235 (get_next_pcs_read_memory_unsigned_integer): Likewise.
4236 (arm_sigreturn_next_pc): Likewise.
4237 (get_next_pcs_syscall_next_pc): Likewise.
4238 (arm_gdbserver_get_next_pcs): Likewise.
4239 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
4240 Initialize.
4241 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
4242 * server.h: Include gdb_vecs.h.
4243
4244 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4245
4246 * Makefile.in (SFILES): Append common/common-regcache.c.
4247 (OBS): Append common-regcache.o.
4248 (common-regcache.o): New rule.
4249 * regcache.c (init_register_cache): Initialize cache to
4250 REG_UNAVAILABLE.
4251 (regcache_raw_read_unsigned): New function.
4252 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
4253 register_status enum.
4254
4255 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4256
4257 * linux-aarch64-low.c (the_low_targets): Rename
4258 breakpoint_reinsert_addr to get_next_pcs.
4259 * linux-arm-low.c (the_low_targets): Likewise.
4260 * linux-bfin-low.c (the_low_targets): Likewise.
4261 * linux-cris-low.c (the_low_targets): Likewise.
4262 * linux-crisv32-low.c (the_low_targets): Likewise.
4263 * linux-low.c (can_software_single_step): Likewise.
4264 (install_software_single_step_breakpoints): New function.
4265 (start_step_over): Use install_software_single_step_breakpoints.
4266 * linux-low.h: New CORE_ADDR vector.
4267 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
4268 get_next_pcs.
4269 * linux-mips-low.c (the_low_targets): Likewise.
4270 * linux-nios2-low.c (the_low_targets): Likewise.
4271 * linux-sparc-low.c (the_low_targets): Likewise.
4272
4273 2015-12-17 Pedro Alves <palves@redhat.com>
4274
4275 * linux-low.c (linux_kill_one_lwp): Remove references to
4276 LinuxThreads.
4277 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
4278 to 'kill'.
4279 (linux_init_signals): Delete.
4280 (initialize_low): Adjust.
4281 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
4282
4283 2015-12-16 Pedro Alves <palves@redhat.com>
4284
4285 * configure.ac (compiler warning flags): When testing a
4286 -Wno-foo option, check whether -Wfoo works instead.
4287 * configure: Regenerate.
4288
4289 2015-12-11 Don Breazeal <donb@codesourcery.com>
4290
4291 * server.c (process_serial_event): Don't exit from gdbserver
4292 in remote mode if there are still active inferiors.
4293
4294 2015-12-11 Yao Qi <yao.qi@linaro.org>
4295
4296 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
4297 arm_breakpoint_at if the process is 32-bit.
4298
4299 2015-12-11 Yao Qi <yao.qi@linaro.org>
4300
4301 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
4302 arm breakpoint.
4303
4304 2015-12-07 Yao Qi <yao.qi@linaro.org>
4305
4306 * configure.srv: Append arm.o to srv_tgtobj for
4307 aarch64*-*-linux* target.
4308 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
4309 from linux-arm-low.c.
4310 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4311 (arm_breakpoint_len, thumb_breakpoint): Likewise.
4312 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
4313 (thumb2_breakpoint_len): Likewise.
4314 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
4315 (arm_breakpoint_kinds): Likewise.
4316 (arm_breakpoint_kind_from_pc): Likewise.
4317 (arm_sw_breakpoint_from_kind): Likewise.
4318 (arm_breakpoint_kind_from_current_state): Likewise.
4319 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
4320 (arm_sw_breakpoint_from_kind): Declare.
4321 (arm_breakpoint_kind_from_current_state): Declare.
4322 (arm_breakpoint_at): Declare.
4323 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
4324 arm_sw_breakpoint_from_kind if process is 32-bit.
4325 (aarch64_breakpoint_kind_from_pc): New function.
4326 (aarch64_breakpoint_kind_from_current_state): New function.
4327 (the_low_target): Initialize fields breakpoint_kind_from_pc
4328 and breakpoint_kind_from_current_state.
4329 * linux-arm-low.c (arm_breakpoint_kinds): Move to
4330 linux-aarch32-low.c.
4331 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
4332 (arm_breakpoint, arm_breakpoint_len): Likewise.
4333 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
4334 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
4335 (arm_is_thumb_mode): Likewise.
4336 (arm_breakpoint_at): Likewise.
4337 (arm_breakpoint_kind_from_pc): Likewise.
4338 (arm_sw_breakpoint_from_kind): Likewise.
4339 (arm_breakpoint_kind_from_current_state): Likewise.
4340
4341 Revert:
4342 2015-08-04 Yao Qi <yao.qi@linaro.org>
4343
4344 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
4345 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
4346 * server.c (extended_protocol): Remove "static".
4347 * server.h (extended_protocol): Declare it.
4348
4349 2015-12-04 Josh Stone <jistone@redhat.com>
4350
4351 * target.h (struct target_ops) <arch_setup>: Rename to ...
4352 (struct target_ops) <post_create_inferior>: ... this.
4353 (target_arch_setup): Rename to ...
4354 (target_post_create_inferior): ... this, calling post_create_inferior.
4355 * server.c (start_inferior): Update target_arch_setup calls to
4356 target_post_create_inferior.
4357 * linux-low.c (linux_low_ptrace_options): Forward declare.
4358 (linux_arch_setup): Update its comment for general use.
4359 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
4360 (struct linux_target_ops): Use linux_post_create_inferior.
4361 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
4362 to post_create_inferior.
4363 * nto-low.c (struct nto_target_ops): Likewise.
4364 * spu-low.c (struct spu_target_ops): Likewise.
4365 * win32-low.c (struct win32_target_ops): Likewise.
4366
4367 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
4368
4369 * linux-arm-low.c: Remove duplicate arch/arm.h include.
4370
4371 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4372
4373 * linux-arm-low.c (arm_reinsert_addr): Remove function.
4374 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
4375 * linux-cris-low.c (cris_reinsert_addr> Remove function.
4376 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4377 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
4378 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4379 * linux-mips-low.c (mips_reinsert_addr): Remove function.
4380 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4381 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
4382 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4383 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
4384 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4385
4386 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4387
4388 * linux-low.c (linux_look_up_symbols): Don't call
4389 linux_supports_traceclone.
4390 * linux-low.h (thread_db_init): Remove use_events argument.
4391 * thread-db.c (thread_db_use_event): Remove global variable.
4392 (struct thread_db) <td_thr_event_enable_p>: Remove field.
4393 (struct thread_db) <td_create_bp>: Remove field.
4394 (thread_db_create_event): Remove function.
4395 (thread_db_enable_reporting): Likewise.
4396 (find_one_thread): Don't check for thread_db_use_events.
4397 (attach_thread): Likewise.
4398 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
4399 (try_thread_db_load_1): Don't check for thread_db_use_events.
4400 (thread_db_init): Remove use_events argument and thread events
4401 handling.
4402 (remove_thread_event_breakpoints): Remove function.
4403 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
4404
4405 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4406
4407 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
4408 New function.
4409 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4410 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
4411 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4412 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
4413 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
4414 Initialize.
4415 * linux-crisv32-low.c (cris_supports_hardware_single_step):
4416 New function.
4417 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4418 * linux-low.c (can_hardware_single_step): Use
4419 supports_hardware_single_step.
4420 (can_software_single_step): New function.
4421 (start_step_over): Call can_software_single_step.
4422 (linux_supports_hardware_single_step): New function.
4423 (struct target_ops) <supports_software_single_step>: Initialize.
4424 * linux-low.h (struct linux_target_ops)
4425 <supports_hardware_single_step>: Initialize.
4426 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
4427 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4428 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
4429 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
4430 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
4431 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4432 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
4433 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4434 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
4435 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
4436 Initialize.
4437 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
4438 (struct linux_target_ops) <tile_supports_hardware_single_step>:
4439 Initialize.
4440 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
4441 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4442 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
4443 New function.
4444 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4445 * target.h (struct target_ops): <supports_software_single_step>:
4446 New field.
4447 (target_supports_software_single_step): New macro.
4448
4449 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4450
4451 * linux-low.c (linux_wait_1): Fix pc advance condition.
4452 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
4453 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
4454
4455 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4456
4457 * linux-arm-low.c (arm_is_thumb_mode): New function.
4458 (arm_breakpoint_at): Use arm_is_thumb_mode.
4459 (arm_breakpoint_kind_from_current_state): New function.
4460 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
4461 Initialize.
4462 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
4463 (linux_breakpoint_kind_from_current_state): New function.
4464 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
4465 * linux-low.h (struct linux_target_ops)
4466 <breakpoint_kind_from_current_state>: New field.
4467 * target.h (struct target_ops): Likewise.
4468 (target_breakpoint_kind_from_current_state): New macro.
4469
4470 2015-11-30 Pedro Alves <palves@redhat.com>
4471
4472 * linux-low.c (linux_resume): Wake up the event loop before
4473 returning.
4474
4475 2015-11-30 Pedro Alves <palves@redhat.com>
4476
4477 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
4478 check.
4479 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
4480 to -1.
4481 * target.c (struct thread_search): New structure.
4482 (thread_search_callback): New function.
4483 (prev_general_thread): New global.
4484 (prepare_to_access_memory, done_accessing_memory): New functions.
4485 * target.h (prepare_to_access_memory, done_accessing_memory):
4486 Replace macros with function declarations.
4487
4488 2015-11-30 Pedro Alves <palves@redhat.com>
4489
4490 PR 14618
4491 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
4492 report TARGET_WAITKIND_NO_RESUMED.
4493 * remote-utils.c (prepare_resume_reply): Handle
4494 TARGET_WAITKIND_NO_RESUMED.
4495 * server.c (report_no_resumed): New global.
4496 (handle_query) <qSupported>: Handle "no-resumed+". Report
4497 "no-resumed+" support.
4498 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
4499 return error if the client doesn't support no-resumed events.
4500 (push_stop_notification): New function.
4501 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
4502 events if the client supports them.
4503
4504 2015-11-30 Pedro Alves <palves@redhat.com>
4505
4506 * linux-low.c (thread_still_has_status_pending_p): Don't check
4507 vCont;t here.
4508 (lwp_resumed): New function.
4509 (status_pending_p_callback): Return early if the LWP is not
4510 supposed to be resumed.
4511
4512 2015-11-30 Pedro Alves <palves@redhat.com>
4513
4514 * linux-low.c (handle_extended_wait): Assert that the LWP's
4515 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
4516 thread create events, leave the new child's status pending.
4517 (linux_low_filter_event): If GDB wants to hear about thread exit
4518 events, leave the LWP marked dead and don't delete it.
4519 (linux_wait_for_event_filtered): Don't check for thread exit.
4520 (filter_exit_event): New function.
4521 (linux_wait_1): Use it, when returning an exit event.
4522 (linux_resume_one_lwp_throw): Assert that the LWP's
4523 waitstatus is TARGET_WAITKIND_IGNORE.
4524 * remote-utils.c (prepare_resume_reply): Handle
4525 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
4526 * server.c (report_thread_events): New global.
4527 (handle_general_set): Handle QThreadEvents.
4528 (handle_query) <qSupported>: Handle and report QThreadEvents+;
4529 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
4530 TARGET_WAITKIND_THREAD_EXITED.
4531 * server.h (report_thread_events): Declare.
4532
4533 2015-11-30 Pedro Alves <palves@redhat.com>
4534
4535 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
4536 the thread's last_resume_kind was resume_stop.
4537
4538 2015-11-30 Pedro Alves <palves@redhat.com>
4539
4540 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
4541 before returning.
4542
4543 2015-11-30 Pedro Alves <palves@redhat.com>
4544
4545 * server.c (handle_v_requests): Handle vCtrlC.
4546
4547 2015-11-30 Pedro Alves <palves@redhat.com>
4548
4549 * gdbthread.h (find_any_thread_of_pid): Declare.
4550 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
4551 functions.
4552 * server.c (handle_query): If current_thread is NULL, look for
4553 another thread of the selected process.
4554
4555 2015-11-26 Daniel Colascione <dancol@dancol.org>
4556 Simon Marchi <simon.marchi@ericsson.com>
4557
4558 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
4559 * server.c (handle_qxfer_threads_worker): Refactor to include thread
4560 name in reply.
4561 * target.h (struct target_ops) <thread_name>: New field.
4562 (target_thread_name): New macro.
4563
4564 2015-11-23 Joel Brobecker <brobecker@adacore.com>
4565
4566 * regcache.h (regcache_invalidate_pid): Add declaration.
4567 * regcache.c (regcache_invalidate_pid): New function, extracted
4568 from regcache_invalidate.
4569 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
4570 Add trivial documentation comment.
4571 * lynx-low.c: Use regcache_invalidate_pid instead of
4572 regcache_invalidate.
4573
4574 2015-11-23 Joel Brobecker <brobecker@adacore.com>
4575
4576 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
4577 and Elf64_auxv_t if the target is Android.
4578
4579 2015-11-22 Doug Evans <xdje42@gmail.com>
4580
4581 * target.h: #include <sys/types.h>.
4582
4583 2015-11-19 Pedro Alves <palves@redhat.com>
4584
4585 * linux-low.c (linux_process_qsupported): Change prototype.
4586 Adjust.
4587 * linux-low.h (struct linux_target_ops) <process_qsupported>:
4588 Change prototype.
4589 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
4590 and adjust to loop over all features.
4591 * server.c (handle_query) <qSupported>: Adjust to call
4592 target_process_qsupported once, passing it a vector of unprocessed
4593 features.
4594 * target.h (struct target_ops) <process_qsupported>: Change
4595 prototype.
4596 (target_process_qsupported): Adjust.
4597
4598 2015-11-19 Pedro Alves <palves@redhat.com>
4599
4600 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
4601 mode.
4602 * configure: Regenerate.
4603
4604 2015-11-19 Pedro Alves <palves@redhat.com>
4605
4606 * configure: Regenerate.
4607
4608 2015-11-19 Yao Qi <yao.qi@linaro.org>
4609
4610 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
4611 type to uint32_t.
4612
4613 2015-11-19 Yao Qi <yao.qi@linaro.org>
4614
4615 * linux-aarch64-low.c (enum aarch64_operand_type): New.
4616 (struct aarch64_operand): Move enum out.
4617
4618 2015-11-19 Yao Qi <yao.qi@linaro.org>
4619
4620 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
4621 struct user_fpsimd_state *.
4622 (aarch64_store_fpregset): Likewise.
4623
4624 2015-11-19 Yao Qi <yao.qi@linaro.org>
4625
4626 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
4627 struct user_pt_regs *.
4628 (aarch64_store_gregset): Likewise.
4629
4630 2015-11-18 Pedro Alves <palves@redhat.com>
4631
4632 * Makefile.in (all_object_files): Add $IPA_OBJS.
4633
4634 2015-11-17 Pedro Alves <palves@redhat.com>
4635
4636 * win32-low.c (win32_resume): Use gdb_signal_from_host,
4637 GDB_SIGNAL_0 and gdb_signal_to_string.
4638
4639 2015-11-17 Pedro Alves <palves@redhat.com>
4640
4641 * win32-low.c (handle_output_debug_string): Remove parameter.
4642 (win32_kill): Remove our_status local and adjust call to
4643 handle_output_debug_string.
4644 (get_child_debug_event): Adjust call to
4645 handle_output_debug_string.
4646
4647 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4648
4649 * linux-mips-low.c (mips_fill_gregset): Add cast.
4650 (mips_store_gregset): Likewise.
4651 (mips_fill_fpregset): Likewise.
4652 (mips_store_fpregset): Likewise.
4653
4654 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4655
4656 * linux-mips-low.c (mips_add_watchpoint): Rename private to
4657 priv.
4658
4659 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4660
4661 * linux-mips-low.c (mips_linux_new_thread): Change type of
4662 watch_type to enum target_hw_bp_type.
4663
4664 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4665
4666 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
4667 Change return type to arm_hwbp_type.
4668
4669 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4670
4671 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
4672 (arm_store_gregset): Likewise.
4673 * linux-arm-low.c (arm_get_hwcap): Likewise.
4674 (arm_read_description): Likewise.
4675
4676 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4677
4678 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
4679
4680 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4681
4682 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
4683 (ppc_fill_vsxregset): Likewise.
4684 (ppc_store_vsxregset): Likewise.
4685 (ppc_fill_vrregset): Likewise.
4686 (ppc_store_vrregset): Likewise.
4687 (ppc_fill_evrregset): Likewise.
4688 (ppc_store_evrregset): Likewise.
4689
4690 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4691
4692 * linux-ppc-low.c (ppc_usrregs_info): Remove
4693 forward-declaration.
4694 (ppc_arch_setup): Move lower in file.
4695
4696 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
4697
4698 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
4699 (ps_pdwrite): Likewise.
4700
4701 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
4702
4703 * linux-arm-low.c (arm_new_thread): Move pointer dereference
4704 to after assert checks.
4705
4706 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
4707
4708 * proc-service.c (ps_pdread): Add/adjust casts.
4709 (ps_pdwrite): Add/adjust casts.
4710
4711 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
4712
4713 * server.c (handle_search_memory_1): Cast return value of
4714 memmem.
4715
4716 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
4717
4718 * server.c (write_qxfer_response): Change type of data to
4719 gdb_byte *.
4720
4721 2015-10-29 Pedro Alves <palves@redhat.com>
4722
4723 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
4724
4725 2015-10-29 Pedro Alves <palves@redhat.com>
4726
4727 * tracepoint.c (clear_installed_tracepoints): Add casts.
4728
4729 2015-10-29 Pedro Alves <palves@redhat.com>
4730
4731 * server.c (handle_v_cont, process_serial_event): Add enum
4732 gdb_signal casts to signal parsing code.
4733
4734 2015-10-29 Pedro Alves <palves@redhat.com>
4735
4736 * linux-low.h (NULL_REGSET): Define.
4737 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
4738 * linux-arm-low.c (arm_regsets): Likewise.
4739 * linux-crisv32-low.c (cris_regsets): Likewise.
4740 * linux-m68k-low.c (m68k_regsets): Likewise.
4741 * linux-mips-low.c (mips_regsets): Likewise.
4742 * linux-nios2-low.c (nios2_regsets): Likewise.
4743 * linux-ppc-low.c (ppc_regsets): Likewise.
4744 * linux-s390-low.c (s390_regsets): Likewise.
4745 * linux-sh-low.c (sh_regsets): Likewise.
4746 * linux-sparc-low.c (sparc_regsets): Likewise.
4747 * linux-tic6x-low.c (tic6x_regsets): Likewise.
4748 * linux-tile-low.c (tile_regsets): Likewise.
4749 * linux-x86-low.c (x86_regsets): Likewise.
4750 * linux-xtensa-low.c (xtensa_regsets): Likewise.
4751
4752 2015-10-29 Pedro Alves <palves@redhat.com>
4753
4754 * linux-low.h (NULL_REGSET): Define.
4755 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
4756 * linux-arm-low.c (arm_regsets): Likewise.
4757 * linux-crisv32-low.c (cris_regsets): Likewise.
4758 * linux-m68k-low.c (m68k_regsets): Likewise.
4759 * linux-mips-low.c (mips_regsets): Likewise.
4760 * linux-nios2-low.c (nios2_regsets): Likewise.
4761 * linux-ppc-low.c (ppc_regsets): Likewise.
4762 * linux-s390-low.c (s390_regsets): Likewise.
4763 * linux-sh-low.c (sh_regsets): Likewise.
4764 * linux-sparc-low.c (sparc_regsets): Likewise.
4765 * linux-tic6x-low.c (tic6x_regsets): Likewise.
4766 * linux-tile-low.c (tile_regsets): Likewise.
4767 * linux-x86-low.c (x86_regsets): Likewise.
4768 * linux-xtensa-low.c (xtensa_regsets): Likewise.
4769
4770 2015-10-26 Doug Evans <dje@google.com>
4771
4772 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
4773
4774 2015-10-26 Doug Evans <dje@google.com>
4775
4776 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
4777
4778 2015-10-26 Doug Evans <dje@google.com>
4779
4780 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
4781 for debug_printf.
4782 (attach_thread, find_new_threads_callback): Ditto.
4783
4784 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
4785
4786 * mem-break.h (set_breakpoint_data): Remove.
4787
4788 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
4789
4790 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
4791 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
4792 (initialize_low): Remove set_breakpoint_data call.
4793 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
4794 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
4795 (initialize_low): Remove set_breakpoint_data call.
4796 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
4797 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
4798 (initialize_low): Remove set_breakpoint_data call.
4799
4800 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
4801
4802 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
4803 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
4804 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
4805 * target.h (target_breakpoint_kind_from_pc): New macro.
4806
4807 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
4808
4809 * linux-low.c (default_breakpoint_kind_from_pc): New function.
4810 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
4811 the default breakpoint kind.
4812
4813 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4814
4815 * linux-arm-low.c (arm_supports_z_point_type): Add software
4816 breakpoint support.
4817
4818 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4819
4820 * linux-arm-low.c: Refactor breakpoint definitions.
4821 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
4822 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
4823
4824 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4825
4826 * Makefile.in: Add arm.c/o.
4827 * configure.srv: Likewise.
4828 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
4829 (arm_breakpoint_kind_from_pc): New function.
4830 (arm_sw_breakpoint_from_kind): Return proper kind.
4831 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
4832
4833 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4834
4835 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
4836 removal.
4837 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
4838 (struct raw_breakpoint) <size>: Remove.
4839 (struct raw_breakpoint) <kind>: Add.
4840 (bp_size): New function.
4841 (bp_opcode): Likewise.
4842 (find_raw_breakpoint_at): Adjust for kind.
4843 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
4844 (remove_memory_breakpoint): Adjust for kind call bp_size.
4845 (set_raw_breakpoint_at): Adjust for kind.
4846 (set_breakpoint): Likewise.
4847 (set_breakpoint_at): Call breakpoint_kind_from_pc.
4848 (delete_raw_breakpoint): Adjust for kind.
4849 (delete_breakpoint): Likewise.
4850 (find_gdb_breakpoint): Likewise.
4851 (set_gdb_breakpoint_1): Likewise.
4852 (set_gdb_breakpoint): Likewise.
4853 (delete_gdb_breakpoint_1): Likewise.
4854 (delete_gdb_breakpoint): Likewise.
4855 (uninsert_raw_breakpoint): Likewise.
4856 (reinsert_raw_breakpoint): Likewise.
4857 (set_breakpoint_data): Remove.
4858 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
4859 (check_mem_read): Adjust for kind call bp_size.
4860 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
4861 (clone_one_breakpoint): Adjust for kind.
4862 * mem-break.h (set_gdb_breakpoint): Likewise.
4863 (delete_gdb_breakpoint): Likewise.
4864 * server.c (process_serial_event): Likewise.
4865
4866 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4867
4868 * linux-aarch64-low.c (aarch64_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-arm-low.c (arm_breakpoint_kind_from_pc): New function.
4874 (arm_sw_breakpoint_from_kind): New function.
4875 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
4876 (struct linux_target_ops) <breakpoint>: Remove.
4877 (struct linux_target_ops) <breakpoint_len>: Remove.
4878 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4879 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4880 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
4881 (struct linux_target_ops) <breakpoint>: Remove.
4882 (struct linux_target_ops) <breakpoint_len>: Remove.
4883 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4884 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4885 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
4886 (struct linux_target_ops) <breakpoint>: Remove.
4887 (struct linux_target_ops) <breakpoint_len>: Remove.
4888 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4889 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4890 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
4891 and sw_breakpoint_from_kind to increment the pc.
4892 (linux_breakpoint_kind_from_pc): New function.
4893 (linux_sw_breakpoint_from_kind): New function.
4894 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
4895 (initialize_low): Call breakpoint_kind_from_pc and
4896 sw_breakpoint_from_kind to replace breakpoint_data/len.
4897 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
4898 New field.
4899 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
4900 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
4901 (struct linux_target_ops) <breakpoint>: Remove.
4902 (struct linux_target_ops) <breakpoint_len>: Remove.
4903 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4904 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4905 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
4906 (struct linux_target_ops) <breakpoint>: Remove.
4907 (struct linux_target_ops) <breakpoint_len>: Remove.
4908 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4909 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4910 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
4911 (struct linux_target_ops) <breakpoint>: Remove.
4912 (struct linux_target_ops) <breakpoint_len>: Remove.
4913 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4914 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4915 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
4916 (struct linux_target_ops) <breakpoint>: Remove.
4917 (struct linux_target_ops) <breakpoint_len>: Remove.
4918 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4919 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4920 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
4921 (struct linux_target_ops) <breakpoint>: Remove.
4922 (struct linux_target_ops) <breakpoint_len>: Remove.
4923 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4924 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4925 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
4926 (struct linux_target_ops) <breakpoint>: Remove.
4927 (struct linux_target_ops) <breakpoint_len>: Remove.
4928 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4929 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4930 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
4931 (struct linux_target_ops) <breakpoint>: Remove.
4932 (struct linux_target_ops) <breakpoint_len>: Remove.
4933 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4934 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4935 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
4936 (struct linux_target_ops) <breakpoint>: Remove.
4937 (struct linux_target_ops) <breakpoint_len>: Remove.
4938 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4939 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4940 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
4941 (struct linux_target_ops) <breakpoint>: Remove.
4942 (struct linux_target_ops) <breakpoint_len>: Remove.
4943 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4944 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4945 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
4946 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
4947 (struct linux_target_ops) <breakpoint>: Remove.
4948 (struct linux_target_ops) <breakpoint_len>: Remove.
4949 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4950 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4951 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
4952 (struct linux_target_ops) <breakpoint>: Remove.
4953 (struct linux_target_ops) <breakpoint_len>: Remove.
4954 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4955 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4956
4957 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4958
4959 * linux-cris-low.c (cris_get_pc): Remove void arg.
4960
4961 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
4962
4963 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
4964 variable name.
4965
4966 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
4967
4968 * inferiors.c (thread_pid_matches_callback): New function.
4969 (find_thread_process): New function.
4970 (remove_thread): Reset current_thread.
4971 (remove_process): Assert threads have been removed first.
4972
4973 2015-10-15 Yao Qi <yao.qi@linaro.org>
4974
4975 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
4976 if it is 3.
4977 (aarch64_remove_point): Likewise.
4978 * regcache.c (regcache_register_size): New function.
4979
4980 2015-10-12 Yao Qi <yao.qi@linaro.org>
4981
4982 * linux-aarch64-low.c: Update all callers as emit_load_store
4983 is renamed to aarch64_emit_load_store.
4984
4985 2015-10-12 Yao Qi <yao.qi@linaro.org>
4986
4987 * linux-aarch64-low.c: Update all callers of function renaming
4988 from emit_insn to aarch64_emit_insn.
4989
4990 2015-10-12 Yao Qi <yao.qi@linaro.org>
4991
4992 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
4993 arch/aarch64-insn.h.
4994 (struct aarch64_memory_operand): Likewise.
4995 (ENCODE): Likewise.
4996 (emit_insn): Move to arch/aarch64-insn.c.
4997 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
4998 (emit_load_store): Move to arch/aarch64-insn.c.
4999 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
5000 (can_encode_int32): Remove.
5001
5002 2015-10-12 Yao Qi <yao.qi@linaro.org>
5003
5004 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
5005 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
5006 (aarch64_relocate_instruction): Likewise.
5007 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
5008 (struct aarch64_insn_visitor): Likewise.
5009
5010 2015-10-12 Yao Qi <yao.qi@linaro.org>
5011
5012 * linux-aarch64-low.c (struct aarch64_insn_data): New.
5013 (struct aarch64_insn_visitor): New.
5014 (struct aarch64_insn_relocation_data): New.
5015 (aarch64_ftrace_insn_reloc_b): New function.
5016 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
5017 (aarch64_ftrace_insn_reloc_cb): Likewise.
5018 (aarch64_ftrace_insn_reloc_tb): Likewise.
5019 (aarch64_ftrace_insn_reloc_adr): Likewise.
5020 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
5021 (aarch64_ftrace_insn_reloc_others): Likewise.
5022 (visitor): New.
5023 (aarch64_relocate_instruction): Use visitor.
5024
5025 2015-10-12 Yao Qi <yao.qi@linaro.org>
5026
5027 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
5028 int. Add argument buf.
5029 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
5030 aarch64_relocate_instruction.
5031
5032 2015-10-12 Yao Qi <yao.qi@linaro.org>
5033
5034 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
5035 argument insn. Remove local variable insn. Don't call
5036 target_read_uint32.
5037 (aarch64_install_fast_tracepoint_jump_pad): Call
5038 target_read_uint32.
5039
5040 2015-09-30 Yao Qi <yao.qi@linaro.org>
5041
5042 * linux-aarch64-low.c (emit_movk): Shorten a long line.
5043 (emit_load_store_pair): Likewise.
5044
5045 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
5046
5047 * dll.c (match_dll): Add cast(s).
5048 (unloaded_dll): Likewise.
5049 * linux-low.c (second_thread_of_pid_p): Likewise.
5050 (delete_lwp_callback): Likewise.
5051 (count_events_callback): Likewise.
5052 (select_event_lwp_callback): Likewise.
5053 (linux_set_resume_request): Likewise.
5054 * server.c (accumulate_file_name_length): Likewise.
5055 (emit_dll_description): Likewise.
5056 (handle_qxfer_threads_worker): Likewise.
5057 (visit_actioned_threads): Likewise.
5058 * thread-db.c (any_thread_of): Likewise.
5059 * tracepoint.c (same_process_p): Likewise.
5060 (match_blocktype): Likewise.
5061 (build_traceframe_info_xml): Likewise.
5062
5063 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
5064
5065 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
5066 assignment.
5067 (gdb_unparse_agent_expr): Likewise.
5068 * hostio.c (require_data): Likewise.
5069 (handle_pread): Likewise.
5070 * linux-low.c (disable_regset): Likewise.
5071 (fetch_register): Likewise.
5072 (store_register): Likewise.
5073 (get_dynamic): Likewise.
5074 (linux_qxfer_libraries_svr4): Likewise.
5075 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
5076 (set_fast_tracepoint_jump): Likewise.
5077 (uninsert_fast_tracepoint_jumps_at): Likewise.
5078 (reinsert_fast_tracepoint_jumps_at): Likewise.
5079 (validate_inserted_breakpoint): Likewise.
5080 (clone_agent_expr): Likewise.
5081 * regcache.c (init_register_cache): Likewise.
5082 * remote-utils.c (putpkt_binary_1): Likewise.
5083 (decode_M_packet): Likewise.
5084 (decode_X_packet): Likewise.
5085 (look_up_one_symbol): Likewise.
5086 (relocate_instruction): Likewise.
5087 (monitor_output): Likewise.
5088 * server.c (handle_search_memory): Likewise.
5089 (handle_qxfer_exec_file): Likewise.
5090 (handle_qxfer_libraries): Likewise.
5091 (handle_qxfer): Likewise.
5092 (handle_query): Likewise.
5093 (handle_v_cont): Likewise.
5094 (handle_v_run): Likewise.
5095 (captured_main): Likewise.
5096 * target.c (write_inferior_memory): Likewise.
5097 * thread-db.c (try_thread_db_load_from_dir): Likewise.
5098 * tracepoint.c (init_trace_buffer): Likewise.
5099 (add_tracepoint_action): Likewise.
5100 (add_traceframe): Likewise.
5101 (add_traceframe_block): Likewise.
5102 (cmd_qtdpsrc): Likewise.
5103 (cmd_qtdv): Likewise.
5104 (cmd_qtstatus): Likewise.
5105 (response_source): Likewise.
5106 (response_tsv): Likewise.
5107 (cmd_qtnotes): Likewise.
5108 (gdb_collect): Likewise.
5109 (initialize_tracepoint): Likewise.
5110
5111 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
5112
5113 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
5114 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
5115 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
5116 <NOP>: New.
5117 (enum aarch64_condition_codes): New enum.
5118 (w0): New static global.
5119 (fp): Likewise.
5120 (lr): Likewise.
5121 (struct aarch64_memory_operand) <type>: New
5122 MEMORY_OPERAND_POSTINDEX type.
5123 (postindex_memory_operand): New helper function.
5124 (emit_ret): New function.
5125 (emit_load_store_pair): New function, factored out of emit_stp
5126 with support for MEMORY_OPERAND_POSTINDEX.
5127 (emit_stp): Rewrite using emit_load_store_pair.
5128 (emit_ldp): New function.
5129 (emit_load_store): Likewise.
5130 (emit_ldr): Mention post-index instruction in comment.
5131 (emit_ldrh): New function.
5132 (emit_ldrb): New function.
5133 (emit_ldrsw): Mention post-index instruction in comment.
5134 (emit_str): Likewise.
5135 (emit_subs): New function.
5136 (emit_cmp): Likewise.
5137 (emit_and): Likewise.
5138 (emit_orr): Likewise.
5139 (emit_orn): Likewise.
5140 (emit_eor): Likewise.
5141 (emit_mvn): Likewise.
5142 (emit_lslv): Likewise.
5143 (emit_lsrv): Likewise.
5144 (emit_asrv): Likewise.
5145 (emit_mul): Likewise.
5146 (emit_sbfm): Likewise.
5147 (emit_sbfx): Likewise.
5148 (emit_ubfm): Likewise.
5149 (emit_ubfx): Likewise.
5150 (emit_csinc): Likewise.
5151 (emit_cset): Likewise.
5152 (emit_nop): Likewise.
5153 (emit_ops_insns): New helper function.
5154 (emit_pop): Likewise.
5155 (emit_push): Likewise.
5156 (aarch64_emit_prologue): New function.
5157 (aarch64_emit_epilogue): Likewise.
5158 (aarch64_emit_add): Likewise.
5159 (aarch64_emit_sub): Likewise.
5160 (aarch64_emit_mul): Likewise.
5161 (aarch64_emit_lsh): Likewise.
5162 (aarch64_emit_rsh_signed): Likewise.
5163 (aarch64_emit_rsh_unsigned): Likewise.
5164 (aarch64_emit_ext): Likewise.
5165 (aarch64_emit_log_not): Likewise.
5166 (aarch64_emit_bit_and): Likewise.
5167 (aarch64_emit_bit_or): Likewise.
5168 (aarch64_emit_bit_xor): Likewise.
5169 (aarch64_emit_bit_not): Likewise.
5170 (aarch64_emit_equal): Likewise.
5171 (aarch64_emit_less_signed): Likewise.
5172 (aarch64_emit_less_unsigned): Likewise.
5173 (aarch64_emit_ref): Likewise.
5174 (aarch64_emit_if_goto): Likewise.
5175 (aarch64_emit_goto): Likewise.
5176 (aarch64_write_goto_address): Likewise.
5177 (aarch64_emit_const): Likewise.
5178 (aarch64_emit_call): Likewise.
5179 (aarch64_emit_reg): Likewise.
5180 (aarch64_emit_pop): Likewise.
5181 (aarch64_emit_stack_flush): Likewise.
5182 (aarch64_emit_zero_ext): Likewise.
5183 (aarch64_emit_swap): Likewise.
5184 (aarch64_emit_stack_adjust): Likewise.
5185 (aarch64_emit_int_call_1): Likewise.
5186 (aarch64_emit_void_call_2): Likewise.
5187 (aarch64_emit_eq_goto): Likewise.
5188 (aarch64_emit_ne_goto): Likewise.
5189 (aarch64_emit_lt_goto): Likewise.
5190 (aarch64_emit_le_goto): Likewise.
5191 (aarch64_emit_gt_goto): Likewise.
5192 (aarch64_emit_ge_got): Likewise.
5193 (aarch64_emit_ops_impl): New static global variable.
5194 (aarch64_emit_ops): New target function, return
5195 &aarch64_emit_ops_impl.
5196 (struct linux_target_ops): Install it.
5197
5198 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
5199
5200 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
5201 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
5202 aarch64-ipa.o.
5203 * linux-aarch64-ipa.c: New file.
5204 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
5205 and endian.h.
5206 (aarch64_get_thread_area): New target method.
5207 (extract_signed_bitfield): New helper function.
5208 (aarch64_decode_ldr_literal): New function.
5209 (enum aarch64_opcodes): New enum.
5210 (struct aarch64_register): New struct.
5211 (struct aarch64_operand): New struct.
5212 (x0): New static global.
5213 (x1): Likewise.
5214 (x2): Likewise.
5215 (x3): Likewise.
5216 (x4): Likewise.
5217 (w2): Likewise.
5218 (ip0): Likewise.
5219 (sp): Likewise.
5220 (xzr): Likewise.
5221 (aarch64_register): New helper function.
5222 (register_operand): Likewise.
5223 (immediate_operand): Likewise.
5224 (struct aarch64_memory_operand): New struct.
5225 (offset_memory_operand): New helper function.
5226 (preindex_memory_operand): Likewise.
5227 (enum aarch64_system_control_registers): New enum.
5228 (ENCODE): New macro.
5229 (emit_insn): New helper function.
5230 (emit_b): New function.
5231 (emit_bcond): Likewise.
5232 (emit_cb): Likewise.
5233 (emit_tb): Likewise.
5234 (emit_blr): Likewise.
5235 (emit_stp): Likewise.
5236 (emit_ldp_q_offset): Likewise.
5237 (emit_stp_q_offset): Likewise.
5238 (emit_load_store): Likewise.
5239 (emit_ldr): Likewise.
5240 (emit_ldrsw): Likewise.
5241 (emit_str): Likewise.
5242 (emit_ldaxr): Likewise.
5243 (emit_stxr): Likewise.
5244 (emit_stlr): Likewise.
5245 (emit_data_processing_reg): Likewise.
5246 (emit_data_processing): Likewise.
5247 (emit_add): Likewise.
5248 (emit_sub): Likewise.
5249 (emit_mov): Likewise.
5250 (emit_movk): Likewise.
5251 (emit_mov_addr): Likewise.
5252 (emit_mrs): Likewise.
5253 (emit_msr): Likewise.
5254 (emit_sevl): Likewise.
5255 (emit_wfe): Likewise.
5256 (append_insns): Likewise.
5257 (can_encode_int32_in): New helper function.
5258 (aarch64_relocate_instruction): New function.
5259 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
5260 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
5261 (struct linux_target_ops): Install aarch64_get_thread_area,
5262 aarch64_install_fast_tracepoint_jump_pad and
5263 aarch64_get_min_fast_tracepoint_insn_len.
5264
5265 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
5266
5267 * Makefile.in (aarch64-insn.o): New rule.
5268 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
5269
5270 2015-09-21 Yao Qi <yao.qi@linaro.org>
5271
5272 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
5273
5274 2015-09-21 Yao Qi <yao.qi@linaro.org>
5275
5276 * tracepoint.c (max_jump_pad_size): Remove.
5277
5278 2015-09-18 Yao Qi <yao.qi@linaro.org>
5279
5280 * linux-aarch64-low.c: Don't include sys/uio.h.
5281 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
5282
5283 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
5284
5285 * tracepoint.c (eval_result_type): Change prototype.
5286 (condition_true_at_tracepoint): Fix argument to compiled_cond.
5287
5288 2015-09-15 Pedro Alves <palves@redhat.com>
5289
5290 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
5291 Check whether to report exec events instead of checking whether
5292 multiprocess is enabled.
5293
5294 2015-09-15 Pedro Alves <palves@redhat.com>
5295
5296 PR remote/18965
5297 * remote-utils.c (prepare_resume_reply): Merge
5298 TARGET_WAITKIND_VFORK_DONE switch case with the
5299 TARGET_WAITKIND_FORKED case.
5300
5301 2015-09-15 Yao Qi <yao.qi@linaro.org>
5302
5303 * server.c (handle_query): Check string comparison using
5304 "else if" instead of "if".
5305
5306 2015-09-15 Yao Qi <yao.qi@linaro.org>
5307
5308 * server.c (vCont_supported): New global variable.
5309 (handle_query): Set vCont_supported to 1 if "vContSupported+"
5310 matches. Append ";vContSupported+" to own_buf.
5311 (handle_v_requests): Append ";s;S" to own_buf if target supports
5312 hardware single step or vCont_supported is false.
5313 (capture_main): Set vCont_supported to zero.
5314
5315 2015-09-15 Yao Qi <yao.qi@linaro.org>
5316
5317 * linux-low.c (linux_supports_conditional_breakpoints): Rename
5318 it to ...
5319 (linux_supports_hardware_single_step): ... New function.
5320 (linux_target_ops): Update.
5321 * lynx-low.c (lynx_target_ops): Set field
5322 supports_hardware_single_step to target_can_do_hardware_single_step.
5323 * nto-low.c (nto_target_ops): Likewise.
5324 * spu-low.c (spu_target_ops): Likewise.
5325 * win32-low.c (win32_target_ops): Likewise.
5326 * target.c (target_can_do_hardware_single_step): New function.
5327 * target.h (struct target_ops) <supports_conditional_breakpoints>:
5328 Remove. <supports_hardware_single_step>: New field.
5329 (target_supports_conditional_breakpoints): Remove.
5330 (target_supports_hardware_single_step): New macro.
5331 (target_can_do_hardware_single_step): Declare.
5332 * server.c (handle_query): Use target_supports_hardware_single_step
5333 instead of target_supports_conditional_breakpoints.
5334
5335 2015-09-15 Yao Qi <yao.qi@linaro.org>
5336
5337 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
5338 function.
5339 (struct linux_target_ops the_low_target): Install
5340 aarch64_linux_siginfo_fixup.
5341
5342 2015-09-11 Don Breazeal <donb@codesourcery.com>
5343 Luis Machado <lgustavo@codesourcery.com>
5344
5345 * linux-low.c (linux_mourn): Static declaration.
5346 (linux_arch_setup): Move in front of
5347 handle_extended_wait.
5348 (linux_arch_setup_thread): New function.
5349 (handle_extended_wait): Handle exec events. Call
5350 linux_arch_setup_thread. Make event_lwp argument a
5351 pointer-to-a-pointer.
5352 (check_zombie_leaders): Do not check stopped threads.
5353 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
5354 (linux_low_filter_event): Add lwp and thread for exec'ing
5355 non-leader thread if leader thread has been deleted.
5356 Refactor code into linux_arch_setup_thread and call it.
5357 Pass child lwp pointer by reference to handle_extended_wait.
5358 (linux_wait_for_event_filtered): Update comment.
5359 (linux_wait_1): Prevent clobbering exec event status.
5360 (linux_supports_exec_events): New function.
5361 (linux_target_ops) <supports_exec_events>: Initialize new member.
5362 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
5363 new member.
5364 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
5365 * server.c (report_exec_events): New global variable.
5366 (handle_query): Handle qSupported query for exec-events feature.
5367 (captured_main): Initialize report_exec_events.
5368 * server.h (report_exec_events): Declare new global variable.
5369 * target.h (struct target_ops) <supports_exec_events>: New
5370 member.
5371 (target_supports_exec_events): New macro.
5372 * win32-low.c (win32_target_ops) <supports_exec_events>:
5373 Initialize new member.
5374
5375 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
5376
5377 * linux-low.c (linux_low_enable_btrace): Remove.
5378 (linux_target_ops): Replace linux_low_enable_btrace with
5379 linux_enable_btrace.
5380
5381 2015-09-03 Yao Qi <yao.qi@linaro.org>
5382
5383 * linux-aarch64-low.c (aarch64_insert_point): Call
5384 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
5385 returns true.
5386
5387 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5388
5389 * linux-low.c (check_stopped_by_breakpoint): Use
5390 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
5391
5392 2015-08-27 Pedro Alves <palves@redhat.com>
5393
5394 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
5395
5396 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
5397
5398 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
5399 the XNEW-family equivalent.
5400 (compile_bytecodes): Likewise.
5401 * dll.c (loaded_dll): Likewise.
5402 * event-loop.c (append_callback_event): Likewise.
5403 (create_file_handler): Likewise.
5404 (create_file_event): Likewise.
5405 * hostio.c (handle_open): Likewise.
5406 * inferiors.c (add_thread): Likewise.
5407 (add_process): Likewise.
5408 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
5409 * linux-arm-low.c (arm_new_process): Likewise.
5410 (arm_new_thread): Likewise.
5411 * linux-low.c (add_to_pid_list): Likewise.
5412 (linux_add_process): Likewise.
5413 (handle_extended_wait): Likewise.
5414 (add_lwp): Likewise.
5415 (enqueue_one_deferred_signal): Likewise.
5416 (enqueue_pending_signal): Likewise.
5417 (linux_resume_one_lwp_throw): Likewise.
5418 (linux_resume_one_thread): Likewise.
5419 (linux_read_memory): Likewise.
5420 (linux_write_memory): Likewise.
5421 * linux-mips-low.c (mips_linux_new_process): Likewise.
5422 (mips_linux_new_thread): Likewise.
5423 (mips_add_watchpoint): Likewise.
5424 * linux-x86-low.c (initialize_low_arch): Likewise.
5425 * lynx-low.c (lynx_add_process): Likewise.
5426 * mem-break.c (set_raw_breakpoint_at): Likewise.
5427 (set_breakpoint): Likewise.
5428 (add_condition_to_breakpoint): Likewise.
5429 (add_commands_to_breakpoint): Likewise.
5430 (clone_agent_expr): Likewise.
5431 (clone_one_breakpoint): Likewise.
5432 * regcache.c (new_register_cache): Likewise.
5433 * remote-utils.c (look_up_one_symbol): Likewise.
5434 * server.c (queue_stop_reply): Likewise.
5435 (start_inferior): Likewise.
5436 (queue_stop_reply_callback): Likewise.
5437 (handle_target_event): Likewise.
5438 * spu-low.c (fetch_ppc_memory): Likewise.
5439 (store_ppc_memory): Likewise.
5440 * target.c (set_target_ops): Likewise.
5441 * thread-db.c (thread_db_load_search): Likewise.
5442 (try_thread_db_load_1): Likewise.
5443 * tracepoint.c (add_tracepoint): Likewise.
5444 (add_tracepoint_action): Likewise.
5445 (create_trace_state_variable): Likewise.
5446 (cmd_qtdpsrc): Likewise.
5447 (cmd_qtro): Likewise.
5448 (add_while_stepping_state): Likewise.
5449 * win32-low.c (child_add_thread): Likewise.
5450 (get_image_name): Likewise.
5451
5452 2015-08-25 Yao Qi <yao.qi@linaro.org>
5453
5454 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
5455
5456 2015-08-25 Yao Qi <yao.qi@linaro.org>
5457
5458 * Makefile.in (aarch64-linux.o): New rule.
5459 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
5460 srv_tgtobj.
5461 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
5462 (aarch64_init_debug_reg_state): Make it extern.
5463 (aarch64_linux_prepare_to_resume): Remove.
5464
5465 2015-08-25 Yao Qi <yao.qi@linaro.org>
5466
5467 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
5468 lwp_arch_private_info and ptid_of_lwp.
5469
5470 2015-08-25 Yao Qi <yao.qi@linaro.org>
5471
5472 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
5473 Find proc_info by find_process_pid. All callers updated.
5474
5475 2015-08-25 Yao Qi <yao.qi@linaro.org>
5476
5477 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
5478 Remove.
5479 (debug_reg_change_callback): Remove.
5480 (aarch64_notify_debug_reg_change): Remove.
5481
5482 2015-08-25 Yao Qi <yao.qi@linaro.org>
5483
5484 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
5485 Call current_lwp_ptid.
5486
5487 2015-08-25 Yao Qi <yao.qi@linaro.org>
5488
5489 * linux-aarch64-low.c (debug_reg_change_callback): Use
5490 debug_printf.
5491
5492 2015-08-25 Yao Qi <yao.qi@linaro.org>
5493
5494 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
5495
5496 2015-08-25 Yao Qi <yao.qi@linaro.org>
5497
5498 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
5499
5500 2015-08-25 Yao Qi <yao.qi@linaro.org>
5501
5502 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
5503 the code.
5504
5505 2015-08-25 Yao Qi <yao.qi@linaro.org>
5506
5507 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
5508 Remove.
5509 (debug_reg_change_callback): Remove argument entry and add argument
5510 lwp. Remove local variable thread. Don't print thread id in the
5511 debugging output. Don't check whether pid of thread equals to pid.
5512 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
5513 iterate_over_lwps instead find_inferior.
5514
5515 2015-08-24 Pedro Alves <palves@redhat.com>
5516
5517 * inferiors.c (get_first_process): New function.
5518 * inferiors.h (get_first_process): New declaration.
5519 * remote-utils.c (read_ptid): Default to the first process in the
5520 list, instead of to the current thread's process.
5521
5522 2015-08-24 Pedro Alves <palves@redhat.com>
5523
5524 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
5525 * event-loop.c: Likewise.
5526 * remote-utils.c: Likewise.
5527 * tracepoint.c: Likewise.
5528
5529 2015-08-24 Pedro Alves <palves@redhat.com>
5530
5531 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
5532 ptid_get_lwp.
5533
5534 2015-08-21 Pedro Alves <palves@redhat.com>
5535
5536 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
5537 instead of literal 1.
5538
5539 2015-08-21 Pedro Alves <palves@redhat.com>
5540
5541 * tdesc.c (default_description): Explicitly zero-initialize.
5542
5543 2015-08-21 Pedro Alves <palves@redhat.com>
5544
5545 PR gdb/18749
5546 * inferiors.c (remove_thread): Discard any pending stop reply for
5547 this thread.
5548 * server.c (remove_all_on_match_pid): Rename to ...
5549 (remove_all_on_match_ptid): ... this. Work with a filter ptid
5550 instead of a pid.
5551 (discard_queued_stop_replies): Change parameter to a ptid. Now
5552 extern.
5553 (handle_v_kill, kill_inferior_callback, captured_main)
5554 (process_serial_event): Adjust.
5555 * server.h (discard_queued_stop_replies): Declare.
5556
5557 2015-08-21 Pedro Alves <palves@redhat.com>
5558
5559 * linux-low.c (wait_for_sigstop): Always switch to no thread
5560 selected if the previously current thread dies.
5561 * lynx-low.c (lynx_request_interrupt): Use the first thread's
5562 process instead of the current thread's.
5563 * remote-utils.c (input_interrupt): Don't check if there's no
5564 current thread.
5565 * server.c (gdb_read_memory, gdb_write_memory): If setting the
5566 current thread to the general thread fails, error out.
5567 (handle_qxfer_auxv, handle_qxfer_libraries)
5568 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
5569 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
5570 (handle_query): Check if there's a thread selected instead of
5571 checking whether there's any thread in the thread list.
5572 (handle_qxfer_threads, handle_qxfer_btrace)
5573 (handle_qxfer_btrace_conf): Don't error out early if there's no
5574 thread in the thread list.
5575 (handle_v_cont, myresume): Don't set the current thread to the
5576 continue thread.
5577 (process_serial_event) <Hg handling>: Also set thread_id if the
5578 previous general thread is still alive.
5579 (process_serial_event) <g/G handling>: If setting the current
5580 thread to the general thread fails, error out.
5581 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
5582 thread's lwp instead of the current thread's.
5583 * target.c (set_desired_thread): If the desired thread was not
5584 found, leave the current thread pointing to NULL. Return an int
5585 (boolean) indicating success.
5586 * target.h (set_desired_thread): Change return type to int.
5587
5588 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
5589
5590 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
5591 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
5592 #includes.
5593 (ps_get_thread_area): New function.
5594
5595 2015-08-19 Gary Benson <gbenson@redhat.com>
5596
5597 * hostio.c (handle_pread): Do not attempt to read more data
5598 than hostio_reply_with_data can fit in a packet.
5599
5600 2015-08-18 Joel Brobecker <brobecker@adacore.com>
5601
5602 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
5603
5604 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
5605
5606 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
5607
5608 2015-08-06 Pedro Alves <palves@redhat.com>
5609
5610 * tracepoint.c (expr_eval_result): Now an int.
5611
5612 2015-08-06 Pedro Alves <palves@redhat.com>
5613
5614 * gdbthread.h (struct regcache): Forward declare.
5615 (struct thread_info) <regcache_data>: Now a struct regcache
5616 pointer.
5617 * inferiors.c (inferior_regcache_data)
5618 (set_inferior_regcache_data): Now work with struct regcache
5619 pointers.
5620 * inferiors.h (struct regcache): Forward declare.
5621 (inferior_regcache_data, set_inferior_regcache_data): Now work
5622 with struct regcache pointers.
5623 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
5624 (free_register_cache_thread): Remove struct regcache pointer
5625 casts.
5626
5627 2015-08-06 Pedro Alves <palves@redhat.com>
5628
5629 * server.c (captured_main): On error, print the exception message
5630 to stderr, and if run_once is set, throw a quit.
5631
5632 2015-08-06 Pedro Alves <palves@redhat.com>
5633
5634 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
5635 the current thread.
5636
5637 2015-08-06 Pedro Alves <palves@redhat.com>
5638
5639 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
5640 reading beyond the passed in buffer length.
5641
5642 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5643
5644 * tracepoint.c (symbol_list) <required>: Remove.
5645
5646 2015-08-06 Pedro Alves <palves@redhat.com>
5647
5648 * linux-low.c (handle_extended_wait): Set the fork child's suspend
5649 count if stopping and suspending threads.
5650 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
5651 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
5652 (linux_detach): Complete an ongoing step-over.
5653 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
5654 throughout.
5655 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
5656 (linux_wait_1): If passing a signal to the inferior after
5657 finishing a step-over, unsuspend and re-resume all lwps. If we
5658 see a single-step event but the thread should be continuing, don't
5659 pass the trap to gdb.
5660 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
5661 internal_error instead of gdb_assert.
5662 (enqueue_pending_signal): New function.
5663 (check_ptrace_stopped_lwp_gone): Add debug output.
5664 (start_step_over): Use internal_error instead of gdb_assert.
5665 (complete_ongoing_step_over): New function.
5666 (linux_resume_one_thread): Don't resume a suspended thread.
5667 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
5668 it stepping.
5669
5670 2015-08-06 Pedro Alves <palves@redhat.com>
5671
5672 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
5673 (linux_thread_alive): Use lwp_is_marked_dead.
5674 (extended_event_reported): Delete.
5675 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
5676 instead of extended_event_reported.
5677 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
5678 as well.
5679 (lwp_is_marked_dead): New function.
5680 (lwp_running): Use lwp_is_marked_dead.
5681 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
5682 comment.
5683
5684 2015-08-06 Pedro Alves <palves@redhat.com>
5685
5686 * linux-low.c (linux_wait_1): Move fork event output out of the
5687 !report_to_gdb check. Pass event_child->waitstatus to
5688 target_waitstatus_to_string instead of ourstatus.
5689
5690 2015-08-04 Yao Qi <yao.qi@linaro.org>
5691
5692 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
5693 if current_thread is 32 bit.
5694
5695 2015-08-04 Yao Qi <yao.qi@linaro.org>
5696
5697 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
5698 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
5699 * server.c (extended_protocol): Remove "static".
5700 * server.h (extended_protocol): Declare it.
5701
5702 2015-08-04 Yao Qi <yao.qi@linaro.org>
5703
5704 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
5705 both aarch64 and aarch32.
5706 (aarch64_set_pc): Likewise.
5707
5708 2015-08-04 Yao Qi <yao.qi@linaro.org>
5709
5710 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
5711 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
5712 arm-with-neon.xml to srv_xmlfiles.
5713 * linux-aarch64-low.c: Include linux-aarch32-low.h.
5714 (is_64bit_tdesc): New function.
5715 (aarch64_linux_read_description): New function.
5716 (aarch64_arch_setup): Call aarch64_linux_read_description.
5717 (regs_info): Rename to regs_info_aarch64.
5718 (aarch64_regs_info): Return right regs_info.
5719 (initialize_low_arch): Call initialize_low_arch_aarch32.
5720
5721 2015-08-04 Yao Qi <yao.qi@linaro.org>
5722
5723 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
5724 * linux-aarch32-low.c: New file.
5725 * linux-aarch32-low.h: New file.
5726 * linux-arm-low.c (arm_fill_gregset): Move it to
5727 linux-aarch32-low.c.
5728 (arm_store_gregset): Likewise.
5729 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
5730 (arm_store_vfpregset): Call arm_store_vfpregset_num.
5731 (arm_arch_setup): Check if PTRACE_GETREGSET works.
5732 (regs_info): Rename to regs_info_arm.
5733 (arm_regs_info): Return regs_info_aarch32 if
5734 have_ptrace_getregset is 1 and target description is
5735 arm_with_neon or arm_with_vfpv3.
5736 (initialize_low_arch): Don't call init_registers_arm_with_neon.
5737 Call initialize_low_arch_aarch32 instead.
5738
5739 2015-08-04 Yao Qi <yao.qi@linaro.org>
5740
5741 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
5742 * linux-low.c: ... here.
5743 * linux-low.h (have_ptrace_getregset): Declare it.
5744
5745 2015-08-04 Pedro Alves <palves@redhat.com>
5746
5747 * thread-db.c (struct thread_db): Use new typedefs.
5748 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
5749 CHK calls.
5750 (disable_thread_event_reporting): Cast result of dlsym to
5751 destination function pointer type.
5752 (thread_db_mourn): Use td_ta_delete_ftype.
5753
5754 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5755
5756 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
5757 arch variant.
5758 (CDX_BREAKPOINT): Define for R2.
5759 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
5760 (the_low_target): Add comments.
5761
5762 2015-07-30 Yao Qi <yao.qi@linaro.org>
5763
5764 * linux-arm-low.c (arm_hwcap): Remove it.
5765 (arm_read_description): New local variable arm_hwcap. Don't
5766 set arm_hwcap to zero.
5767
5768 2015-07-30 Yao Qi <yao.qi@linaro.org>
5769
5770 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
5771 Use regcache->tdesc instead.
5772 (arm_store_wmmxregset): Likewise.
5773 (arm_fill_vfpregset): Likewise.
5774 (arm_store_vfpregset): Likewise.
5775
5776 2015-07-30 Yao Qi <yao.qi@linaro.org>
5777
5778 * linux-arm-low.c: Include arch/arm.h.
5779 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
5780 (arm_store_gregset): Likewise.
5781
5782 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5783
5784 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
5785 ptrace's 4th parameter.
5786
5787 2015-07-27 Yao Qi <yao.qi@linaro.org>
5788
5789 * configure.srv (case aarch64*-*-linux*): Don't set
5790 srv_linux_usrregs.
5791
5792 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
5793
5794 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
5795 sys/ptrace.h.
5796 * linux-arm-low.c: Likewise.
5797 * linux-cris-low.c: Likewise.
5798 * linux-crisv32-low.c: Likewise.
5799 * linux-low.c: Likewise.
5800 * linux-m68k-low.c: Likewise.
5801 * linux-mips-low.c: Likewise.
5802 * linux-nios2-low.c: Likewise.
5803 * linux-s390-low.c: Likewise.
5804 * linux-sparc-low.c: Likewise.
5805 * linux-tic6x-low.c: Likewise.
5806 * linux-tile-low.c: Likewise.
5807 * linux-x86-low.c: Likewise.
5808
5809 2015-07-24 Pedro Alves <palves@redhat.com>
5810
5811 * config.in: Regenerate.
5812 * configure: Regenerate.
5813
5814 2015-07-24 Pedro Alves <palves@redhat.com>
5815
5816 * acinclude.m4: Include ../ptrace.m4.
5817 * configure.ac: Call GDB_AC_PTRACE.
5818 * config.in, configure: Regenerate.
5819
5820 2015-07-24 Yao Qi <yao.qi@linaro.org>
5821
5822 * linux-low.c (linux_create_inferior): Remove setting to
5823 proc->priv->new_inferior.
5824 (linux_attach): Likewise.
5825 (linux_low_filter_event): Likewise.
5826 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
5827
5828 2015-07-24 Yao Qi <yao.qi@linaro.org>
5829
5830 * linux-low.c (linux_arch_setup): New function.
5831 (linux_low_filter_event): If proc->tdesc is NULL and
5832 proc->attached is true, call the_low_target.arch_setup.
5833 Otherwise, keep status pending, and return.
5834 (linux_resume_one_lwp_throw): Don't call get_pc if
5835 thread->while_stepping isn't NULL. Don't call
5836 get_thread_regcache if proc->tdesc is NULL.
5837 (need_step_over_p): Return 0 if proc->tdesc is NULL.
5838 (linux_target_ops): Install arch_setup.
5839 * server.c (start_inferior): Call the_target->arch_setup.
5840 * target.h (struct target_ops) <arch_setup>: New field.
5841 (target_arch_setup): New marco.
5842 * lynx-low.c (lynx_target_ops): Update.
5843 * nto-low.c (nto_target_ops): Update.
5844 * spu-low.c (spu_target_ops): Update.
5845 * win32-low.c (win32_target_ops): Update.
5846
5847 2015-07-24 Yao Qi <yao.qi@linaro.org>
5848
5849 * linux-low.c (linux_add_process): Don't set
5850 proc->priv->new_inferior.
5851 (linux_create_inferior): Set proc->priv->new_inferior to 1.
5852 (linux_attach): Likewise.
5853
5854 2015-07-24 Yao Qi <yao.qi@linaro.org>
5855
5856 * server.c (start_inferior): Code refactor.
5857
5858 2015-07-24 Yao Qi <yao.qi@linaro.org>
5859
5860 * server.c (process_serial_event): Set general_thread.
5861
5862 2015-07-21 Yao Qi <yao.qi@linaro.org>
5863
5864 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
5865 aarch64_linux_get_debug_reg_capacity.
5866
5867 2015-07-17 Yao Qi <yao.qi@linaro.org>
5868
5869 * Makefile.in (aarch64-linux-hw-point.o): New rule.
5870 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
5871 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
5872 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5873 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5874 (AARCH64_HWP_ALIGNMENT): Likewise.
5875 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5876 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5877 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5878 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5879 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5880 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5881 (struct aarch64_debug_reg_state): Likewise.
5882 (struct arch_lwp_info): Likewise.
5883 (aarch64_align_watchpoint): Likewise.
5884 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5885 (aarch64_watchpoint_length): Likewise.
5886 (aarch64_point_encode_ctrl_reg): Likewise
5887 (aarch64_point_is_aligned): Likewise.
5888 (aarch64_align_watchpoint): Likewise.
5889 (aarch64_linux_set_debug_regs):
5890 (aarch64_dr_state_insert_one_point): Likewise.
5891 (aarch64_dr_state_remove_one_point): Likewise.
5892 (aarch64_handle_breakpoint): Likewise.
5893 (aarch64_handle_aligned_watchpoint): Likewise.
5894 (aarch64_handle_unaligned_watchpoint): Likewise.
5895 (aarch64_handle_watchpoint): Likewise.
5896
5897 2015-07-17 Yao Qi <yao.qi@linaro.org>
5898
5899 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
5900 and don't aarch64_get_debug_reg_state. All callers update.
5901 (aarch64_handle_aligned_watchpoint): Likewise.
5902 (aarch64_handle_unaligned_watchpoint): Likewise.
5903 (aarch64_handle_watchpoint): Likewise.
5904 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
5905 (aarch64_remove_point): Likewise.
5906
5907 2015-07-17 Yao Qi <yao.qi@linaro.org>
5908
5909 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
5910 debug_printf.
5911 (aarch64_handle_unaligned_watchpoint): Likewise.
5912
5913 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5914
5915 Revert the previous 3 commits:
5916 Move gdb_regex* to common/
5917 Move linux_find_memory_regions_full & co.
5918 gdbserver build-id attribute generator
5919
5920 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5921 Jan Kratochvil <jan.kratochvil@redhat.com>
5922
5923 gdbserver build-id attribute generator.
5924 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
5925 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
5926 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
5927 (find_phdr): New.
5928 (get_dynamic): Use find_pdhr to traverse program headers.
5929 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
5930 (compare_mapping_entry_range, struct find_memory_region_callback_data)
5931 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
5932 (get_hex_build_id): New.
5933 (linux_qxfer_libraries_svr4): Add optional build-id attribute
5934 to reply XML document.
5935
5936 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5937 Jan Kratochvil <jan.kratochvil@redhat.com>
5938
5939 * target.c: Include target/target-utils.h and fcntl.h.
5940 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
5941 (target_fileio_read_stralloc): New functions.
5942
5943 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5944
5945 * Makefile.in (OBS): Add gdb_regex.o.
5946 (gdb_regex.o): New.
5947 * config.in: Rebuilt.
5948 * configure: Rebuilt.
5949
5950 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5951 Jan Kratochvil <jan.kratochvil@redhat.com>
5952
5953 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5954 * Makefile.in (OBS): Add target-utils.o.
5955 (linux-maps.o, target-utils.o): New.
5956 * configure.srv (srv_linux_obj): Add linux-maps.o.
5957
5958 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
5959
5960 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
5961 function, return 1.
5962 (the_low_target): Install it.
5963
5964 2015-07-14 Pedro Alves <palves@redhat.com>
5965
5966 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
5967 Instead, ignore ECHILD, and throw an error for other errnos.
5968
5969 2015-07-10 Pedro Alves <palves@redhat.com>
5970
5971 * event-loop.c (struct callback_event) <data>: Change type to
5972 gdb_client_data instance instead of gdb_client_data pointer.
5973 (append_callback_event): Adjust.
5974
5975 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
5976
5977 * linux-aarch64-low.c: Add comments for each linux_target_ops
5978 method. Remove comments already covered in target_ops and
5979 linux_target_ops definitions.
5980 (the_low_target): Add comments for each unimplemented method.
5981
5982 2015-07-09 Yao Qi <yao.qi@linaro.org>
5983
5984 * linux-aarch64-low.c (aarch64_regmap): Remove.
5985 (aarch64_usrregs_info): Remove.
5986 (regs_info): Set field usrregs to NULL.
5987
5988 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
5989
5990 * linux-low.c: Include "rsp-low.h"
5991 (linux_low_encode_pt_config, linux_low_encode_raw): New.
5992 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
5993 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
5994 (handle_btrace_enable_pt): New.
5995 (handle_btrace_general_set): Support "pt".
5996 (handle_btrace_conf_general_set): Support "pt:size".
5997
5998 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
5999
6000 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
6001 Z_PACKET_SW_BP.
6002
6003 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6004
6005 * linux-aarch64-low.c: Remove comment about endianness.
6006 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
6007 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
6008 memcmp.
6009
6010 2015-06-24 Gary Benson <gbenson@redhat.com>
6011
6012 * linux-i386-ipa.c (stdint.h): Do not include.
6013 * lynx-i386-low.c (stdint.h): Likewise.
6014 * lynx-ppc-low.c (stdint.h): Likewise.
6015 * mem-break.c (stdint.h): Likewise.
6016 * thread-db.c (stdint.h): Likewise.
6017 * tracepoint.c (stdint.h): Likewise.
6018 * win32-low.c (stdint.h): Likewise.
6019
6020 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6021
6022 * server.c (write_qxfer_response): Update call to
6023 remote_escape_output.
6024
6025 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6026 Jan Kratochvil <jan.kratochvil@redhat.com>
6027
6028 Merge multiple hex conversions.
6029 * gdbreplay.c (tohex): Rename to 'fromhex'.
6030 (logchar): Use fromhex.
6031
6032 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6033
6034 * server.c (handle_qxfer_libraries): Set `version' attribute for
6035 <library-list>.
6036
6037 2015-06-10 Gary Benson <gbenson@redhat.com>
6038
6039 * target.h (struct target_ops) <multifs_open>: New field.
6040 <multifs_unlink>: Likewise.
6041 <multifs_readlink>: Likewise.
6042 * linux-low.c (nat/linux-namespaces.h): New include.
6043 (linux_target_ops): Initialize the_target->multifs_open,
6044 the_target->multifs_unlink and the_target->multifs_readlink.
6045 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
6046 * hostio.c (hostio_fs_pid): New static variable.
6047 (hostio_handle_new_gdb_connection): New function.
6048 (handle_setfs): Likewise.
6049 (handle_open): Use the_target->multifs_open as appropriate.
6050 (handle_unlink): Use the_target->multifs_unlink as appropriate.
6051 (handle_readlink): Use the_target->multifs_readlink as
6052 appropriate.
6053 (handle_vFile): Handle vFile:setfs packets.
6054 * server.c (handle_query): Call hostio_handle_new_gdb_connection
6055 after target_handle_new_gdb_connection.
6056
6057 2015-06-10 Gary Benson <gbenson@redhat.com>
6058
6059 * configure.ac (AC_CHECK_FUNCS): Add setns.
6060 * config.in: Regenerate.
6061 * configure: Likewise.
6062 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
6063 (linux-namespaces.o): New rule.
6064 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
6065
6066 2015-06-09 Gary Benson <gbenson@redhat.com>
6067
6068 * hostio.c (handle_open): Process mode argument with
6069 fileio_to_host_mode.
6070
6071 2015-06-01 Yao Qi <yao.qi@linaro.org>
6072
6073 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
6074 * linux-x86-low.c: Likewise.
6075
6076 2015-05-28 Don Breazeal <donb@codesourcery.com>
6077
6078 * linux-low.c (handle_extended_wait): Initialize
6079 thread_info.last_resume_kind for new fork children.
6080
6081 2015-05-15 Pedro Alves <palves@redhat.com>
6082
6083 * target.h (target_handle_new_gdb_connection): Rewrite using if
6084 wrapped in do/while.
6085
6086 2015-05-14 Joel Brobecker <brobecker@adacore.com>
6087
6088 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
6089 * configure, config.in: Regenerate.
6090 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
6091 Declare typedef.
6092
6093 2015-05-12 Don Breazeal <donb@codesourcery.com>
6094
6095 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
6096 PTRACE_EVENT_VFORK_DONE.
6097 (linux_low_ptrace_options, extended_event_reported): Add vfork
6098 events.
6099 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
6100 and "vforkdone" for RSP 'T' Stop Reply Packet.
6101 * server.h (report_vfork_events): Declare
6102 global variable.
6103
6104 2015-05-12 Don Breazeal <donb@codesourcery.com>
6105
6106 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
6107 (the_low_target) <new_fork>: Initialize new member.
6108 * linux-arm-low.c (arm_new_fork): New function.
6109 (the_low_target) <new_fork>: Initialize new member.
6110 * linux-low.c (handle_extended_wait): Call new target function
6111 new_fork.
6112 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
6113 * linux-mips-low.c (mips_add_watchpoint): New function
6114 extracted from mips_insert_point.
6115 (the_low_target) <new_fork>: Initialize new member.
6116 (mips_linux_new_fork): New function.
6117 (mips_insert_point): Call mips_add_watchpoint.
6118 * linux-x86-low.c (x86_linux_new_fork): New function.
6119 (the_low_target) <new_fork>: Initialize new member.
6120
6121 2015-05-12 Don Breazeal <donb@codesourcery.com>
6122
6123 * linux-low.c (handle_extended_wait): Implement return value,
6124 rename argument 'event_child' to 'event_lwp', handle
6125 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
6126 (linux_low_ptrace_options): New function.
6127 (linux_low_filter_event): Call linux_low_ptrace_options,
6128 use different argument fo linux_enable_event_reporting,
6129 use return value from handle_extended_wait.
6130 (extended_event_reported): New function.
6131 (linux_wait_1): Call extended_event_reported and set
6132 status to report fork events.
6133 (linux_write_memory): Add pid to debug message.
6134 (reset_lwp_ptrace_options_callback): New function.
6135 (linux_handle_new_gdb_connection): New function.
6136 (linux_target_ops): Initialize new structure member.
6137 * linux-low.h (struct lwp_info) <waitstatus>: New member.
6138 * lynx-low.c: Initialize new structure member.
6139 * remote-utils.c (prepare_resume_reply): Implement stop reason
6140 "fork" for "T" stop message.
6141 * server.c (handle_query): Call handle_new_gdb_connection.
6142 * server.h (report_fork_events): Declare global flag.
6143 * target.h (struct target_ops) <handle_new_gdb_connection>:
6144 New member.
6145 (target_handle_new_gdb_connection): New macro.
6146 * win32-low.c: Initialize new structure member.
6147
6148 2015-05-12 Don Breazeal <donb@codesourcery.com>
6149
6150 * mem-break.c (APPEND_TO_LIST): Define macro.
6151 (clone_agent_expr): New function.
6152 (clone_one_breakpoint): New function.
6153 (clone_all_breakpoints): New function.
6154 * mem-break.h: Declare new functions.
6155
6156 2015-05-12 Don Breazeal <donb@codesourcery.com>
6157
6158 * linux-low.c (linux_supports_fork_events): New function.
6159 (linux_supports_vfork_events): New function.
6160 (linux_target_ops): Initialize new structure members.
6161 (initialize_low): Call linux_check_ptrace_features.
6162 * lynx-low.c (lynx_target_ops): Initialize new structure
6163 members.
6164 * server.c (report_fork_events, report_vfork_events):
6165 New global flags.
6166 (handle_query): Add new features to qSupported packet and
6167 response.
6168 (captured_main): Initialize new global variables.
6169 * target.h (struct target_ops) <supports_fork_events>:
6170 New member.
6171 <supports_vfork_events>: New member.
6172 (target_supports_fork_events): New macro.
6173 (target_supports_vfork_events): New macro.
6174 * win32-low.c (win32_target_ops): Initialize new structure
6175 members.
6176
6177 2015-05-12 Gary Benson <gbenson@redhat.com>
6178
6179 * server.c (handle_qxfer_exec_file): Use current process
6180 if annex is empty.
6181
6182 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
6183
6184 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
6185 Remove HAVE_PTRACE_GETREGS conditionals.
6186 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
6187 instead of PTRACE_GETREGS and PTRACE_SETREGS.
6188
6189 2015-05-08 Yao Qi <yao.qi@linaro.org>
6190
6191 * linux-low.c (linux_supports_conditional_breakpoints): New
6192 function.
6193 (linux_target_ops): Install new target method.
6194 * lynx-low.c (lynx_target_ops): Install NULL hook for
6195 supports_conditional_breakpoints.
6196 * nto-low.c (nto_target_ops): Likewise.
6197 * spu-low.c (spu_target_ops): Likewise.
6198 * win32-low.c (win32_target_ops): Likewise.
6199 * server.c (handle_query): Check
6200 target_supports_conditional_breakpoints.
6201 * target.h (struct target_ops) <supports_conditional_breakpoints>:
6202 New field.
6203 (target_supports_conditional_breakpoints): New macro.
6204
6205 2015-05-06 Pedro Alves <palves@redhat.com>
6206
6207 PR server/18081
6208 * server.c (start_inferior): If the process exits, mourn it.
6209
6210 2015-04-21 Gary Benson <gbenson@redhat.com>
6211
6212 * hostio.c (fileio_open_flags_to_host): Factored out to
6213 fileio_to_host_openflags in common/fileio.c. Single use
6214 updated.
6215
6216 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
6217
6218 * linux-xtensa-low.c (xtensa_fill_gregset)
6219 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
6220 XCHAL_HAVE_LOOP.
6221
6222 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
6223
6224 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
6225 (regs_info): Replace usrregs pointer with NULL.
6226
6227 2015-04-17 Gary Benson <gbenson@redhat.com>
6228
6229 * target.h (struct target_ops) <pid_to_exec_file>: New field.
6230 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
6231 * server.c (handle_qxfer_exec_file): New function.
6232 (qxfer_packets): Add exec-file entry.
6233 (handle_query): Report qXfer:exec-file:read as supported packet.
6234
6235 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
6236
6237 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
6238
6239 2015-04-09 Gary Benson <gbenson@redhat.com>
6240
6241 * hostio-errno.c (errno_to_fileio_error): Remove function.
6242 Update caller to use remote_fileio_to_fio_error.
6243
6244 2015-04-09 Yao Qi <yao.qi@linaro.org>
6245
6246 * linux-low.c (linux_insert_point): Call
6247 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
6248 (linux_remove_point): Call remove_memory_breakpoint if type is
6249 raw_bkpt_type_sw.
6250 * linux-x86-low.c (x86_insert_point): Don't call
6251 insert_memory_breakpoint.
6252 (x86_remove_point): Don't call remove_memory_breakpoint.
6253
6254 2015-04-01 Pedro Alves <palves@redhat.com>
6255 Cleber Rosa <crosa@redhat.com>
6256
6257 * server.c (gdbserver_usage): Reorganize and extend the usage
6258 message.
6259
6260 2015-03-24 Pedro Alves <palves@redhat.com>
6261
6262 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
6263 output. Also dump TRAP_TRACE.
6264 (linux_low_filter_event): In debug output, distinguish a
6265 resume_stop SIGSTOP from a delayed SIGSTOP.
6266
6267 2015-03-24 Gary Benson <gbenson@redhat.com>
6268
6269 * linux-x86-low.c (x86_linux_new_thread): Moved to
6270 nat/x86-linux.c.
6271 (x86_linux_prepare_to_resume): Likewise.
6272
6273 2015-03-24 Gary Benson <gbenson@redhat.com>
6274
6275 * Makefile.in (x86-linux-dregs.o): New rule.
6276 * configure.srv: Add x86-linux-dregs.o to relevant targets.
6277 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
6278 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
6279 (x86_linux_dr_get): Likewise.
6280 (x86_linux_dr_set): Likewise.
6281 (update_debug_registers_callback): Likewise.
6282 (x86_linux_dr_set_addr): Likewise.
6283 (x86_linux_dr_get_addr): Likewise.
6284 (x86_linux_dr_set_control): Likewise.
6285 (x86_linux_dr_get_control): Likewise.
6286 (x86_linux_dr_get_status): Likewise.
6287 (x86_linux_update_debug_registers): Likewise.
6288
6289 2015-03-24 Gary Benson <gbenson@redhat.com>
6290
6291 * linux-x86-low.c (x86_linux_update_debug_registers):
6292 New function, factored out from...
6293 (x86_linux_prepare_to_resume): ...this.
6294
6295 2015-03-24 Gary Benson <gbenson@redhat.com>
6296
6297 * linux-x86-low.c (x86_linux_dr_get): Update comments.
6298 (x86_linux_dr_set): Likewise.
6299 (update_debug_registers_callback): Likewise.
6300 (x86_linux_dr_set_addr): Likewise.
6301 (x86_linux_dr_get_addr): Likewise.
6302 (x86_linux_dr_set_control): Likewise.
6303 (x86_linux_dr_get_control): Likewise.
6304 (x86_linux_dr_get_status): Likewise.
6305 (x86_linux_prepare_to_resume): Likewise.
6306
6307 2015-03-24 Gary Benson <gbenson@redhat.com>
6308
6309 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
6310 Use perror_with_name. Pass string through gettext.
6311 (x86_linux_dr_set): Likewise.
6312
6313 2015-03-24 Gary Benson <gbenson@redhat.com>
6314
6315 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
6316 (x86_linux_dr_set_addr): ...this.
6317 (x86_dr_low_get_addr): Rename to...
6318 (x86_linux_dr_get_addr): ...this.
6319 (x86_dr_low_set_control): Rename to...
6320 (x86_linux_dr_set_control): ...this.
6321 (x86_dr_low_get_control): Rename to...
6322 (x86_linux_dr_get_control): ...this.
6323 (x86_dr_low_get_status): Rename to...
6324 (x86_linux_dr_get_status): ...this.
6325 (x86_dr_low): Update with new function names.
6326
6327 2015-03-24 Gary Benson <gbenson@redhat.com>
6328
6329 * Makefile.in (x86-linux.o): New rule.
6330 * configure.srv: Add x86-linux.o to relevant targets.
6331 * linux-low.c (lwp_set_arch_private_info): New function.
6332 (lwp_arch_private_info): Likewise.
6333 * linux-x86-low.c: Include nat/x86-linux.h.
6334 (arch_lwp_info): Removed structure.
6335 (update_debug_registers_callback):
6336 Use lwp_set_debug_registers_changed.
6337 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
6338 and lwp_set_debug_registers_changed.
6339 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
6340
6341 2015-03-24 Gary Benson <gbenson@redhat.com>
6342
6343 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
6344 * linux-arm-low.c (arm_new_thread): Likewise.
6345 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
6346 * linux-mips-low.c (mips_linux_new_thread): Likewise.
6347 * linux-x86-low.c (x86_linux_new_thread): Likewise.
6348 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
6349
6350 2015-03-24 Gary Benson <gbenson@redhat.com>
6351
6352 * linux-low.c (ptid_of_lwp): New function.
6353 (lwp_is_stopped): Likewise.
6354 (lwp_stop_reason): Likewise.
6355 * linux-x86-low.c (update_debug_registers_callback):
6356 Use lwp_is_stopped.
6357 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
6358 lwp_stop_reason.
6359
6360 2015-03-24 Gary Benson <gbenson@redhat.com>
6361
6362 * linux-low.h (linux_stop_lwp): Remove declaration.
6363
6364 2015-03-24 Gary Benson <gbenson@redhat.com>
6365
6366 * linux-low.h: Include nat/linux-nat.h.
6367 * linux-low.c (iterate_over_lwps_args): New structure.
6368 (iterate_over_lwps_filter): New function.
6369 (iterate_over_lwps): Likewise.
6370 * linux-x86-low.c (update_debug_registers_callback):
6371 Update signature to what iterate_over_lwps expects.
6372 Remove PID check that iterate_over_lwps now performs.
6373 (x86_dr_low_set_addr): Use iterate_over_lwps.
6374 (x86_dr_low_set_control): Likewise.
6375
6376 2015-03-24 Gary Benson <gbenson@redhat.com>
6377
6378 * linux-x86-low.c (x86_debug_reg_state): New function.
6379 (x86_linux_prepare_to_resume): Use the above.
6380
6381 2015-03-24 Gary Benson <gbenson@redhat.com>
6382
6383 * linux-low.c (current_lwp_ptid): New function.
6384 * linux-x86-low.c: Include nat/linux-nat.h.
6385 (x86_dr_low_get_addr): Use current_lwp_ptid.
6386 (x86_dr_low_get_control): Likewise.
6387 (x86_dr_low_get_status): Likewise.
6388
6389 2015-03-20 Pedro Alves <palves@redhat.com>
6390
6391 * tracepoint.c (cmd_qtstatus): Make "str" const.
6392
6393 2015-03-20 Pedro Alves <palves@redhat.com>
6394
6395 * server.c (handle_general_set): Make "req_str" const.
6396
6397 2015-03-19 Pedro Alves <palves@redhat.com>
6398
6399 * linux-low.c (linux_resume_one_lwp): Rename to ...
6400 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
6401 instead call perror_with_name.
6402 (check_ptrace_stopped_lwp_gone): New function.
6403 (linux_resume_one_lwp): Reimplement as wrapper around
6404 linux_resume_one_lwp_throw that swallows errors if the LWP is
6405 gone.
6406
6407 2015-03-19 Pedro Alves <palves@redhat.com>
6408
6409 * linux-low.c (count_events_callback, select_event_lwp_callback):
6410 No longer check whether the thread has resume_stop as last resume
6411 kind.
6412
6413 2015-03-19 Pedro Alves <palves@redhat.com>
6414
6415 * linux-low.c (count_events_callback, select_event_lwp_callback):
6416 Use the lwp's status_pending_p field, not the thread's.
6417
6418 2015-03-19 Pedro Alves <palves@redhat.com>
6419
6420 * linux-low.c (select_event_lwp_callback): Update comments to
6421 no longer mention SIGTRAP.
6422
6423 2015-03-18 Gary Benson <gbenson@redhat.com>
6424
6425 * server.c (handle_query): Do not report vFile:fstat as supported.
6426
6427 2015-03-11 Gary Benson <gbenson@redhat.com>
6428
6429 * hostio.c (sys/types.h): New include.
6430 (sys/stat.h): Likewise.
6431 (common-remote-fileio.h): Likewise.
6432 (handle_fstat): New function.
6433 (handle_vFile): Handle vFile:fstat packets.
6434
6435 2015-03-11 Gary Benson <gbenson@redhat.com>
6436
6437 * configure.ac (AC_CHECK_MEMBERS): Add checks for
6438 struct stat.st_blocks and struct stat.st_blksize.
6439 * configure: Regenerate.
6440 * config.in: Likewise.
6441 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
6442 (OBS): Add common-remote-fileio.o.
6443 (common-remote-fileio.o): New rule.
6444
6445 2015-03-09 Pedro Alves <palves@redhat.com>
6446
6447 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
6448 'struct sockaddr' pointer in 'accept' call.
6449
6450 2015-03-09 Pedro Alves <palves@redhat.com>
6451
6452 Revert:
6453 2015-03-07 Pedro Alves <palves@redhat.com>
6454 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
6455 or <winsock2.h> here. Instead include "gdb_socket.h".
6456 (remote_open): Use union gdb_sockaddr_u.
6457 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
6458 or <winsock2.h> here. Instead include "gdb_socket.h".
6459 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
6460 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
6461 or <sys/un.h>.
6462 (init_named_socket, gdb_agent_helper_thread): Use union
6463 gdb_sockaddr_u.
6464
6465 2015-03-07 Pedro Alves <palves@redhat.com>
6466
6467 * configure.ac (build_warnings): Move
6468 -Wdeclaration-after-statement to the C-specific set.
6469 * configure: Regenerate.
6470
6471 2015-03-07 Pedro Alves <palves@redhat.com>
6472
6473 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
6474 or <winsock2.h> here. Instead include "gdb_socket.h".
6475 (remote_open): Use union gdb_sockaddr_u.
6476 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
6477 or <winsock2.h> here. Instead include "gdb_socket.h".
6478 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
6479 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
6480 or <sys/un.h>.
6481 (init_named_socket, gdb_agent_helper_thread): Use union
6482 gdb_sockaddr_u.
6483
6484 2015-03-07 Pedro Alves <palves@redhat.com>
6485
6486 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
6487 instead.
6488
6489 2015-03-06 Yao Qi <yao.qi@linaro.org>
6490
6491 * linux-aarch64-low.c (aarch64_insert_point): Use
6492 show_debug_regs as a boolean.
6493 (aarch64_remove_point): Likewise.
6494
6495 2015-03-05 Pedro Alves <palves@redhat.com>
6496
6497 * lynx-low.c (lynx_target_ops): Install NULL hooks for
6498 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
6499 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
6500 * nto-low.c (nto_target_ops): Likewise.
6501 * spu-low.c (spu_target_ops): Likewise.
6502 * win32-low.c (win32_target_ops): Likewise.
6503
6504 2015-03-04 Pedro Alves <palves@redhat.com>
6505
6506 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
6507 Decide whether a breakpoint triggered based on the SIGTRAP's
6508 siginfo.si_code.
6509 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
6510 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
6511 (linux_low_filter_event): Check for breakpoints before checking
6512 watchpoints.
6513 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
6514 siginfo.si_code.
6515 (linux_stopped_by_sw_breakpoint)
6516 (linux_supports_stopped_by_sw_breakpoint)
6517 (linux_stopped_by_hw_breakpoint)
6518 (linux_supports_stopped_by_hw_breakpoint): New functions.
6519 (linux_target_ops): Install new target methods.
6520
6521 2015-03-04 Pedro Alves <palves@redhat.com>
6522
6523 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
6524 * server.c (swbreak_feature, hwbreak_feature): New globals.
6525 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
6526 (captured_main): Clear swbreak_feature and hwbreak_feature.
6527 * server.h (swbreak_feature, hwbreak_feature): Declare.
6528 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
6529 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
6530 supports_stopped_by_hw_breakpoint>: New fields.
6531 (target_supports_stopped_by_sw_breakpoint)
6532 (target_stopped_by_sw_breakpoint)
6533 (target_supports_stopped_by_hw_breakpoint)
6534 (target_stopped_by_hw_breakpoint): Declare.
6535
6536 2015-03-04 Pedro Alves <palves@redhat.com>
6537
6538 enum lwp_stop_reason -> enum target_stop_reason
6539 * linux-low.c (check_stopped_by_breakpoint): Adjust.
6540 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
6541 (linux_wait_1, stuck_in_jump_pad_callback)
6542 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
6543 (linux_stopped_by_watchpoint):
6544 * linux-low.h (enum lwp_stop_reason): Delete.
6545 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
6546 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
6547
6548 2015-03-04 Yao Qi <yao.qi@linaro.org>
6549
6550 * Makefile.in (SFILES): Add linux-aarch64-low.c.
6551
6552 2015-03-03 Gary Benson <gbenson@redhat.com>
6553
6554 * hostio.c (handle_vFile): Fix prefix lengths.
6555
6556 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
6557
6558 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
6559 ptr_bits.
6560
6561 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
6562
6563 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
6564 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
6565 (clean): Add "rm -f" for above C files.
6566 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
6567 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
6568 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
6569 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
6570 * linux-s390-low.c (HWCAP_S390_VX): New macro.
6571 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
6572 (init_registers_s390x_vx_linux64)
6573 (init_registers_s390x_tevx_linux64)
6574 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
6575 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
6576 declarations.
6577 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
6578 (s390_store_vxrs_high): New functions.
6579 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
6580 NT_S390_VXRS_HIGH.
6581 (s390_arch_setup): Add logic for selecting one of the new target
6582 descriptions. Activate the new vector regsets if applicable.
6583 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
6584 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
6585 and init_registers_s390x_tevx_linux64.
6586
6587 2015-03-01 Pedro Alves <palves@redhat.com>
6588
6589 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
6590 parameter.
6591
6592 2015-02-27 Pedro Alves <palves@redhat.com>
6593
6594 * linux-x86-low.c (u_debugreg_offset): New function.
6595 (x86_linux_dr_get, x86_linux_dr_set): Use it.
6596
6597 2015-02-27 Pedro Alves <palves@redhat.com>
6598
6599 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
6600 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
6601 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
6602 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6603 (ps_lsetfpregs, ps_getpid)
6604 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
6605 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
6606 (ps_lsetxregs, ps_plog): Declare.
6607
6608 2015-02-27 Pedro Alves <palves@redhat.com>
6609
6610 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
6611 IP_AGENT_EXPORT_FUNC.
6612 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
6613 IP_AGENT_EXPORT_FUNC.
6614 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
6615 (IP_AGENT_EXPORT): Delete.
6616 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
6617 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
6618 (gdb_trampoline_buffer_error, collecting, gdb_collect)
6619 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
6620 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
6621 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
6622 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
6623 (traceframe_read_count, traceframe_write_count)
6624 (traceframes_created, trace_state_variables, get_raw_reg)
6625 (get_trace_state_variable_value, set_trace_state_variable_value)
6626 (ust_loaded, helper_thread_id, cmd_buf): Use
6627 IPA_SYM_EXPORTED_NAME.
6628 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
6629 (tracepoints) Use IP_AGENT_EXPORT_VAR.
6630 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
6631 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
6632 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
6633 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
6634 EXTERN_C_PUSH/EXTERN_C_POP.
6635 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
6636 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
6637 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
6638 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
6639 (traceframe_write_count, traceframe_read_count)
6640 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
6641 (about_to_request_buffer_space, get_trace_state_variable_value)
6642 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
6643 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
6644 EXTERN_C_PUSH/EXTERN_C_POP.
6645 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
6646 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
6647 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
6648 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
6649 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
6650 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
6651 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
6652 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
6653 Define.
6654 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
6655 (IP_AGENT_EXPORT_VAR_DECL): Define.
6656 (tracing): Declare.
6657 (gdb_agent_get_raw_reg): Declare.
6658
6659 2015-02-27 Tom Tromey <tromey@redhat.com>
6660 Pedro Alves <palves@redhat.com>
6661
6662 Rename symbols whose names are reserved C++ keywords throughout.
6663
6664 2015-02-27 Pedro Alves <palves@redhat.com>
6665
6666 * Makefile.in (COMPILER): New, get it from autoconf.
6667 (CXX): Get from autoconf instead.
6668 (COMPILE.pre): Use COMPILER.
6669 (CC-LD): Rename to ...
6670 (CC_LD): ... this. Use COMPILER.
6671 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
6672 (CXX_FOR_TARGET): Default to g++ instead of gcc.
6673 * acinclude.m4: Include build-with-cxx.m4.
6674 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
6675 Disable -Werror by default if building in C++ mode.
6676 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
6677 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
6678 the C++ compiler. Save/restore CXXFLAGS too.
6679 * configure: Regenerate.
6680
6681 2015-02-27 Pedro Alves <palves@redhat.com>
6682
6683 * acinclude.m4: Include libiberty.m4.
6684 * configure.ac: Call libiberty_INIT.
6685 * config.in, configure: Regenerate.
6686
6687 2015-02-26 Pedro Alves <palves@redhat.com>
6688
6689 * linux-low.c (linux_wait_1): When incrementing the PC past a
6690 program breakpoint always use the_low_target.breakpoint_len as
6691 increment, rather than the maximum between that and
6692 the_low_target.decr_pc_after_break.
6693
6694 2015-02-23 Pedro Alves <palves@redhat.com>
6695
6696 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
6697 thread was doing a step-over; always adjust the PC if
6698 we stepped over a permanent breakpoint.
6699 (linux_wait_1): If we stepped over breakpoint that was on top of a
6700 permanent breakpoint, manually advance the PC past it.
6701
6702 2015-02-23 Pedro Alves <palves@redhat.com>
6703
6704 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
6705 modes.
6706 (x86_fill_gregset, x86_store_gregset): Use it when handling
6707 $orig_eax.
6708
6709 2015-02-20 Pedro Alves <palves@redhat.com>
6710
6711 * thread-db.c: Include "nat/linux-procfs.h".
6712 (thread_db_init): Skip listing new threads if the kernel supports
6713 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
6714
6715 2015-02-20 Pedro Alves <palves@redhat.com>
6716
6717 * linux-low.c (status_pending_p_callback): Use ptid_match.
6718
6719 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
6720
6721 PR breakpoints/16812
6722 * linux-low.c (wstatus_maybe_breakpoint): Remove.
6723 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
6724 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
6725
6726 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
6727
6728 PR breakpoints/15956
6729 * tracepoint.c (cmd_qtinit): Add check for current_thread.
6730
6731 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6732
6733 * linux-low.c (linux_low_btrace_conf): Print size.
6734 * server.c (handle_btrace_conf_general_set): New.
6735 (hanle_general_set): Call handle_btrace_conf_general_set.
6736 (handle_query): Report Qbtrace-conf:bts:size as supported.
6737
6738 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6739
6740 * linux-low.c (linux_low_enable_btrace): Update parameters.
6741 (linux_low_btrace_conf): New.
6742 (linux_target_ops)<to_btrace_conf>: Initialize.
6743 * server.c (current_btrace_conf): New.
6744 (handle_btrace_enable): Rename to ...
6745 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
6746 to target_enable_btrace. Update comment. Update users.
6747 (handle_qxfer_btrace_conf): New.
6748 (qxfer_packets): Add btrace-conf entry.
6749 (handle_query): Report qXfer:btrace-conf:read as supported packet.
6750 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
6751 (target_ops)<read_btrace_conf>: New.
6752 (target_enable_btrace): Update parameters.
6753 (target_read_btrace_conf): New.
6754
6755 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6756
6757 * server.c (handle_btrace_general_set): Remove call to
6758 target_supports_btrace.
6759 (supported_btrace_packets): New.
6760 (handle_query): Call supported_btrace_packets.
6761 * target.h: include btrace-common.h.
6762 (btrace_target_info): Removed.
6763 (supports_btrace, target_supports_btrace): Update parameters.
6764
6765 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6766
6767 * Makefile.in (SFILES): Add common/btrace-common.c.
6768 (OBS): Add common/btrace-common.o.
6769 (btrace-common.o): Add build rules.
6770 * linux-low: Include btrace-common.h.
6771 (linux_low_read_btrace): Use struct btrace_data. Call
6772 btrace_data_init and btrace_data_fini.
6773
6774 2015-02-06 Pedro Alves <palves@redhat.com>
6775
6776 * thread-db.c (find_new_threads_callback): Add debug output.
6777
6778 2015-02-04 Pedro Alves <palves@redhat.com>
6779
6780 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
6781 (resume_stopped_resumed_lwps): New function.
6782 (linux_wait_for_event_filtered): Use it.
6783
6784 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
6785
6786 * Makefile.in (SFILES): Add linux-personality.c.
6787 (linux-personality.o): New rule.
6788 * configure.srv (srv_linux_obj): Add linux-personality.o to the
6789 list of objects to be built.
6790 * linux-low.c: Include nat/linux-personality.h.
6791 (linux_create_inferior): Remove code to disable address space
6792 randomization (moved to ../nat/linux-personality.c). Create
6793 cleanup to disable address space randomization.
6794
6795 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
6796
6797 * Makefile.in (posix-strerror.o): New rule.
6798 (mingw-strerror.o): Likewise.
6799 * configure: Regenerated.
6800 * configure.ac: Source file ../common/common.host. Initialize new
6801 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
6802
6803 2015-01-14 Yao Qi <yao@codesourcery.com>
6804
6805 * Makefile.in (SFILES): Add nat/ppc-linux.c.
6806 (ppc-linux.o): New rule.
6807 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
6808 * configure.ac: AC_CHECK_FUNCS(getauxval).
6809 * config.in: Re-generated.
6810 * configure: Re-generated.
6811 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
6812 ppc64_64bit_inferior_p
6813
6814 2015-01-14 Yao Qi <yao@codesourcery.com>
6815
6816 * linux-ppc-low.c: Include "nat/ppc-linux.h".
6817 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
6818 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
6819 (PT_ORIG_R3, PT_TRAP): Likewise.
6820 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
6821 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
6822 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
6823
6824 2015-01-10 Joel Brobecker <brobecker@adacore.com>
6825
6826 * i387-fp.c (i387_cache_to_xsave): In look over
6827 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
6828 zmmh_low_space field by use of zmmh_high_space.
6829
6830 2015-01-09 Pedro Alves <palves@redhat.com>
6831
6832 * linux-low.c (step_over_bkpt): Move higher up in the file.
6833 (handle_extended_wait): Don't store the stop_pc here.
6834 (get_stop_pc): Adjust comments and rename to ...
6835 (check_stopped_by_breakpoint): ... this. Record whether the LWP
6836 stopped for a software breakpoint or hardware breakpoint.
6837 (thread_still_has_status_pending_p): New function.
6838 (status_pending_p_callback): Use
6839 thread_still_has_status_pending_p. If the event is no longer
6840 interesting, resume the LWP.
6841 (handle_tracepoints): Add assert.
6842 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
6843 (wstatus_maybe_breakpoint): New function.
6844 (cancel_breakpoint): Delete function.
6845 (check_stopped_by_watchpoint): New function, factored out from
6846 linux_low_filter_event.
6847 (lp_status_maybe_breakpoint): Delete function.
6848 (linux_low_filter_event): Remove filter_ptid argument.
6849 Leave thread group exits pending here. Store the LWP's stop PC.
6850 Always leave events pending.
6851 (linux_wait_for_event_filtered): Pull all events out of the
6852 kernel, and leave them all pending.
6853 (count_events_callback, select_event_lwp_callback): Consider all
6854 events.
6855 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
6856 (select_event_lwp): Only give preference to the stepping LWP in
6857 all-stop mode. Adjust comments.
6858 (ignore_event): New function.
6859 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
6860 references to cancel_breakpoints. Adjust to renames. Also give
6861 equal priority to all LWPs that have had events in non-stop mode.
6862 If reporting a software breakpoint event, unadjust the LWP's PC.
6863 (linux_wait): If linux_wait_1 returned an ignored event, retry.
6864 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
6865 Adjust.
6866 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
6867 (resume_status_pending_p): Use thread_still_has_status_pending_p.
6868 (linux_stopped_by_watchpoint): Adjust.
6869 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
6870 * linux-low.h (enum lwp_stop_reason): New.
6871 (struct lwp_info) <stop_pc>: Adjust comment.
6872 <stopped_by_watchpoint>: Delete field.
6873 <stop_reason>: New field.
6874 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
6875 * mem-break.c (software_breakpoint_inserted_here)
6876 (hardware_breakpoint_inserted_here): New function.
6877 * mem-break.h (software_breakpoint_inserted_here)
6878 (hardware_breakpoint_inserted_here): Declare.
6879 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
6880 (cancel_breakpoints): Delete.
6881 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
6882 (upload_fast_traceframes): Remove references to
6883 cancel_breakpoints.
6884
6885 2015-01-09 Pedro Alves <palves@redhat.com>
6886
6887 * thread-db.c (find_new_threads_callback): Ignore thread if the
6888 kernel thread ID is -1.
6889
6890 2015-01-09 Pedro Alves <palves@redhat.com>
6891
6892 * linux-low.c (linux_attach_fail_reason_string): Move to
6893 nat/linux-ptrace.c, and rename.
6894 (linux_attach_lwp): Update comment.
6895 (attach_proc_task_lwp_callback): New function.
6896 (linux_attach): Adjust to rename and use
6897 linux_proc_attach_tgid_threads.
6898 (linux_attach_fail_reason_string): Delete declaration.
6899
6900 2015-01-01 Joel Brobecker <brobecker@adacore.com>
6901
6902 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
6903 * server.c (gdbserver_version): Likewise.
6904
6905 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
6906
6907 * remote-utils.c: Include ctype.h.
6908 (input_interrupt): Explicitly handle the case when the char
6909 received is the NUL byte. Improve the printing of non-ASCII
6910 characters.
6911
6912 2014-12-16 Joel Brobecker <brobecker@adacore.com>
6913
6914 * linux-low.c (linux_low_filter_event): Update call to
6915 linux_enable_event_reporting following the addition of
6916 a new parameter to that function.
6917
6918 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
6919
6920 PR server/17457
6921 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
6922 (AARCH64_FPCR_REGNO): Likewise.
6923 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
6924 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
6925 (aarch64_store_fpregset): Likewise.
6926
6927 2014-12-15 Joel Brobecker <brobecker@adacore.com>
6928
6929 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
6930 Remove FIXME comment about assumption about N.
6931
6932 2014-12-13 Joel Brobecker <brobecker@adacore.com>
6933
6934 * configure.ac: If large-file support is disabled in GDBserver,
6935 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
6936 * configure: Regenerate.
6937
6938 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
6939
6940 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
6941 warning upon ENODATA from ptrace.
6942 * linux-s390-low.c (s390_store_tdb): New.
6943 (s390_regsets): Add regset for NT_S390_TDB.
6944
6945 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
6946
6947 * linux-low.c (regsets_store_inferior_registers): Skip regsets
6948 without a fill_function.
6949 * linux-s390-low.c (s390_fill_last_break): Remove.
6950 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
6951 (s390_arch_setup): Use regset's size instead of fill_function for
6952 loop end condition.
6953
6954 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
6955
6956 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
6957 the regset's store function when ptrace returned an error.
6958 * regcache.c (get_thread_regcache): Invalidate register cache
6959 before fetching inferior's registers.
6960
6961 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
6962
6963 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
6964 while-loop as for-loop.
6965 (regsets_store_inferior_registers): Likewise.
6966
6967 2014-11-28 Yao Qi <yao@codesourcery.com>
6968
6969 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
6970 * config.in, configure: Re-generate.
6971 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
6972 is defined.
6973
6974 2014-11-21 Yao Qi <yao@codesourcery.com>
6975
6976 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
6977 (AC_CHECK_HEADERS): Remove malloc.h.
6978 * configure: Re-generated.
6979 * config.in: Re-generated.
6980 * server.h: Don't include alloca.h and malloc.h.
6981 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
6982 Don't include malloc.h.
6983
6984 2014-11-17 Joel Brobecker <brobecker@adacore.com>
6985
6986 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
6987 corresponding ERRNO check in same block.
6988
6989 2014-11-12 Pedro Alves <palves@redhat.com>
6990
6991 * server.c (cont_thread): Update comment.
6992 (start_inferior, attach_inferior): No longer clear cont_thread.
6993 (handle_v_cont): No longer set cont_thread.
6994 (captured_main): Clear cont_thread each time a GDB connects.
6995
6996 2014-11-12 Pedro Alves <palves@redhat.com>
6997
6998 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
6999 thread, and don't resume all threads if the Hc thread has exited.
7000
7001 2014-11-12 Pedro Alves <palves@redhat.com>
7002
7003 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
7004 the process group instead of to a specific LWP.
7005
7006 2014-10-15 Pedro Alves <palves@redhat.com>
7007
7008 PR server/17487
7009 * win32-arm-low.c (arm_set_thread_context): Remove current_event
7010 parameter.
7011 (arm_set_thread_context): Delete.
7012 (the_low_target): Adjust.
7013 * win32-i386-low.c (debug_registers_changed)
7014 (debug_registers_used): Delete.
7015 (update_debug_registers_callback): New function.
7016 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
7017 needing to update their debug registers.
7018 (win32_get_current_dr): New function.
7019 (x86_dr_low_get_addr, x86_dr_low_get_control)
7020 (x86_dr_low_get_status): Fetch the debug register from the thread
7021 record's context.
7022 (i386_initial_stuff): Adjust.
7023 (i386_get_thread_context): Remove current_event parameter. Don't
7024 clear debug_registers_changed nor copy DR values to
7025 debug_reg_state.
7026 (i386_set_thread_context): Delete.
7027 (i386_prepare_to_resume): New function.
7028 (i386_thread_added): Mark the thread as needing to update irs
7029 debug registers.
7030 (the_low_target): Remove i386_set_thread_context and install
7031 i386_prepare_to_resume.
7032 * win32-low.c (win32_get_thread_context): Adjust.
7033 (win32_set_thread_context): Use SetThreadContext
7034 directly.
7035 (win32_prepare_to_resume): New function.
7036 (win32_require_context): New function, factored out from ...
7037 (thread_rec): ... this.
7038 (continue_one_thread): Call win32_prepare_to_resume on each thread
7039 we're about to continue.
7040 (win32_resume): Call win32_prepare_to_resume on the event thread.
7041 * win32-low.h (struct win32_thread_info)
7042 <debug_registers_changed>: New field.
7043 (struct win32_target_ops): Change prototype of set_thread_context,
7044 delete set_thread_context and add prepare_to_resume.
7045 (win32_require_context): New declaration.
7046
7047 2014-10-08 Gary Benson <gbenson@redhat.com>
7048
7049 * server.h: Do not include common-exceptions.h.
7050
7051 2014-10-08 Gary Benson <gbenson@redhat.com>
7052
7053 * server.h: Do not include cleanups.h.
7054
7055 2014-09-30 James Hogan <james.hogan@imgtec.com>
7056
7057 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
7058 mips64-dsp-linux.c.
7059
7060 2014-09-23 Yao Qi <yao@codesourcery.com>
7061
7062 * linux-low.c (lp_status_maybe_breakpoint): New function.
7063 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
7064 (count_events_callback): Likewise.
7065 (select_event_lwp_callback): Likewise.
7066 (cancel_breakpoints_callback): Likewise.
7067
7068 2014-09-19 Don Breazeal <donb@codesourcery.com>
7069
7070 * linux-low.c (handle_extended_wait): Call
7071 linux_ptrace_get_extended_event.
7072 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
7073 linux_is_extended_waitstatus.
7074
7075 2014-09-16 Joel Brobecker <brobecker@adacore.com>
7076
7077 * Makefile.in (CPPFLAGS): Define.
7078 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
7079 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
7080
7081 2014-09-16 Gary Benson <gbenson@redhat.com>
7082
7083 * inferiors.h (current_inferior): Renamed as...
7084 (current_thread): New variable. All uses updated.
7085 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
7086 (maybe_move_out_of_jump_pad): Likewise.
7087 (cancel_breakpoint): Likewise.
7088 (linux_low_filter_event): Likewise.
7089 (wait_for_sigstop): Likewise.
7090 (linux_resume_one_lwp): Likewise.
7091 (need_step_over_p): Likewise.
7092 (start_step_over): Likewise.
7093 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
7094 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
7095 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
7096 and save_inferior as saved_thread.
7097 * regcache.c (get_thread_regcache): Renamed saved_inferior as
7098 saved_thread.
7099 (regcache_invalidate_thread): Likewise.
7100 * remote-utils.c (prepare_resume_reply): Likewise.
7101 * thread-db.c (thread_db_get_tls_address): Likewise.
7102 (disable_thread_event_reporting): Likewise.
7103 (remove_thread_event_breakpoints): Likewise.
7104 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
7105 as saved_thread.
7106 * target.h (set_desired_inferior): Renamed as...
7107 (set_desired_thread): New declaration. All uses updated.
7108 * server.c (myresume): Updated comment to reference thread instead
7109 of inferior.
7110 (handle_serial_event): Likewise.
7111 (handle_target_event): Likewise.
7112
7113 2014-09-12 Tom Tromey <tromey@redhat.com>
7114 Gary Benson <gbenson@redhat.com>
7115
7116 * regcache.h: Include common-regcache.h.
7117 (regcache_read_pc): Don't declare.
7118 * regcache.c (get_thread_regcache_for_ptid): New function.
7119
7120 2014-09-11 Tom Tromey <tromey@redhat.com>
7121 Gary Benson <gbenson@redhat.com>
7122
7123 * symbol.c: New file.
7124 * Makefile.in (SFILES): Add symbol.c.
7125 (OBS): Add symbol.o.
7126
7127 2014-09-11 Gary Benson <gbenson@redhat.com>
7128
7129 * target.c (target_stop_ptid, target_continue_ptid): New
7130 functions.
7131
7132 2014-09-11 Tom Tromey <tromey@redhat.com>
7133 Gary Benson <gbenson@redhat.com>
7134
7135 * target.h: Include target/target.h.
7136 * target.c (target_read_memory, target_read_uint32)
7137 (target_write_memory): New functions.
7138
7139 2014-09-11 Gary Benson <gbenson@redhat.com>
7140
7141 * server.h (debug_hw_points): Don't declare.
7142 * server.c (debug_hw_points): Don't define. Replace all uses
7143 with show_debug_regs.
7144 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
7145 all uses with show_debug_regs.
7146
7147 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7148
7149 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
7150 endianness into account.
7151 (ppc_supply_ptrace_register): Likewise.
7152
7153 2014-09-03 James Hogan <james.hogan@imgtec.com>
7154
7155 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
7156 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
7157
7158 2014-09-03 Gary Benson <gbenson@redhat.com>
7159
7160 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
7161 ALL_DEBUG_ADDRESS_REGISTERS.
7162
7163 2014-09-02 Gary Benson <gbenson@redhat.com>
7164
7165 * i386-low.h: Renamed as...
7166 * x86-low.h: New file. All type, function and variable name
7167 prefixes changed from "i386_" to "x86_". All references updated.
7168 * i386-low.c: Renamed as...
7169 * x86-low.c: New file. All type, function and variable name
7170 prefixes changed from "i386_" to "x86_". All references updated.
7171
7172 2014-09-02 Gary Benson <gbenson@redhat.com>
7173
7174 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
7175 (x86_linux_new_thread): Likewise.
7176
7177 2014-08-29 Gary Benson <gbenson@redhat.com>
7178
7179 * server.h (setjmp.h): Do not include.
7180 (toplevel): Do not declare.
7181 (common-exceptions.h): Include.
7182 (cleanups.h): Likewise.
7183 * server.c (toplevel): Do not define.
7184 (exit_code): New static global.
7185 (detach_or_kill_for_exit_cleanup): New function.
7186 (main): New function. Original main renamed to...
7187 (captured_main): New function.
7188 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
7189
7190 2014-08-29 Gary Benson <gbenson@redhat.com>
7191
7192 * Makefile.in (SFILES): Add common/common-exceptions.c.
7193 (OBS): Add common-exceptions.o.
7194 (common-exceptions.o): New rule.
7195 * utils.c (prepare_to_throw_exception): New function.
7196
7197 2014-08-29 Gary Benson <gbenson@redhat.com>
7198
7199 * config.in: Regenerate.
7200 * configure: Likewise.
7201
7202 2014-08-29 Gary Benson <gbenson@redhat.com>
7203
7204 * Makefile.in (SFILES): Add common/cleanups.c.
7205 (OBS): cleanups.o.
7206 (cleanups.o): New rule.
7207
7208 2014-08-29 Gary Benson <gbenson@redhat.com>
7209
7210 * utils.c (internal_vwarning): New function.
7211
7212 2014-08-28 Gary Benson <gbenson@redhat.com>
7213
7214 * utils.h (fatal): Remove declaration.
7215 * utils.c (fatal): Remove function.
7216
7217 2014-08-28 Gary Benson <gbenson@redhat.com>
7218
7219 * tracepoint.c (gdb_agent_init): Replace fatal with
7220 perror_with_name.
7221 (initialize_tracepoint): Likewise.
7222
7223 2014-08-28 Gary Benson <gbenson@redhat.com>
7224
7225 * remote-utils.c (remote_prepare): Replace fatal with error.
7226
7227 2014-08-28 Gary Benson <gbenson@redhat.com>
7228
7229 * linux-low.c (linux_async): Replace fatal with warning.
7230 Tidy up and return.
7231 (linux_start_non_stop): Return -1 if linux_async failed.
7232
7233 2014-08-28 Gary Benson <gbenson@redhat.com>
7234
7235 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
7236 gdb_assert.
7237 (i386_dr_low_get_addr): Remove vague comment.
7238 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
7239 gdb_assert.
7240
7241 2014-08-28 Gary Benson <gbenson@redhat.com>
7242
7243 * inferiors.c (get_thread_process): Replace check with gdb_assert.
7244 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
7245 internal_error.
7246 (linux_resume_one_lwp): Likewise.
7247 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
7248 gdb_assert.
7249 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
7250 with internal_error.
7251 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
7252 (init_register_cache): Replace fatal with gdb_assert_not_reached.
7253 (find_register_by_name): Replace fatal with internal_error.
7254 (find_regno): Likewise.
7255 * tdesc.c (init_target_desc): Replace check with gdb_assert.
7256 * thread-db.c (thread_db_create_event): Likewise.
7257 (thread_db_load_search): Likewise.
7258 (try_thread_db_load_1): Likewise.
7259 * tracepoint.c (get_jump_space_head): Replace fatal with
7260 internal_error.
7261 (claim_trampoline_space): Likewise.
7262 (have_fast_tracepoint_trampoline_buffer): Likewise.
7263 (cmd_qtstart): Likewise.
7264 (stop_tracing): Likewise.
7265 (fast_tracepoint_collecting): Likewise.
7266 (target_malloc): Likewise.
7267 (download_tracepoint): Likewise.
7268 (download_trace_state_variables): Replace check with gdb_assert.
7269 (upload_fast_traceframes): Replace fatal with internal_error.
7270
7271 2014-08-19 Tom Tromey <tromey@redhat.com>
7272 Gary Benson <gbenson@redhat.com>
7273
7274 * Makefile.in (SFILES): Add common/common-debug.c.
7275 (OBS): Add common-debug.o.
7276 (common-debug.o): New rule.
7277 * debug.h (debug_printf): Don't declare.
7278 * debug.c (debug_printf): Renamed and rewritten as...
7279 (debug_vprintf): New function.
7280
7281 2014-08-19 Gary Benson <gbenson@redhat.com>
7282
7283 * utils.h: Do not include print-utils.h.
7284
7285 2014-08-19 Tom Tromey <tromey@redhat.com>
7286 Gary Benson <gbenson@redhat.com>
7287
7288 * server.h: Add static assertion.
7289 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
7290
7291 2014-08-19 Tom Tromey <tromey@redhat.com>
7292 Gary Benson <gbenson@redhat.com>
7293
7294 * Makefile.in (SFILES): Add common/errors.c.
7295 (OBS): Add errors.o.
7296 (IPA_OBS): Add errors-ipa.o.
7297 (errors.o): New rule.
7298 (errors-ipa.o): Likewise.
7299 * utils.h (perror_with_name, error, warning): Don't declare.
7300 * utils.c (warning): Renamed and rewritten as...
7301 (vwarning): New function.
7302 (error): Renamed and rewritten as...
7303 (verror): New function.
7304 (internal_error): Renamed and rewritten as...
7305 (internal_verror): New function.
7306
7307 2014-08-07 Gary Benson <gbenson@redhat.com>
7308
7309 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
7310 * configure: Regenerate.
7311 * config.in: Likewise.
7312 * server.h: Do not include errno.h.
7313 * event-loop.c: Likewise.
7314 * hostio-errno.c: Likewise.
7315 * linux-low.c: Likewise.
7316 * remote-utils.c: Likewise.
7317 * spu-low.c: Likewise.
7318 * utils.c: Likewise.
7319 * gdbreplay.c: Unconditionally include errno.h.
7320
7321 2014-08-07 Gary Benson <gbenson@redhat.com>
7322
7323 * server.h: Do not include string.h.
7324 * event-loop.c: Likewise.
7325 * linux-low.c: Likewise.
7326 * regcache.c: Likewise.
7327 * remote-utils.c: Likewise.
7328 * spu-low.c: Likewise.
7329 * utils.c: Likewise.
7330
7331 2014-08-07 Gary Benson <gbenson@redhat.com>
7332
7333 * server.h: Do not include gdb_assert.h.
7334
7335 2014-08-07 Gary Benson <gbenson@redhat.com>
7336
7337 * server.h: Do not include common-utils.h.
7338
7339 2014-08-07 Gary Benson <gbenson@redhat.com>
7340
7341 * server.h: Do not include ptid.h.
7342 * notif.h: Likewise.
7343
7344 2014-08-07 Gary Benson <gbenson@redhat.com>
7345
7346 * server.h: Do not include gdb_locale.h.
7347
7348 2014-08-07 Gary Benson <gbenson@redhat.com>
7349
7350 * server.h: Do not include gdb/signals.h.
7351 * win32-low.c: Likewise.
7352
7353 2014-08-07 Gary Benson <gbenson@redhat.com>
7354
7355 * server.h: Do not include pathmax.h.
7356
7357 2014-08-07 Gary Benson <gbenson@redhat.com>
7358
7359 * server.h: Do not include libiberty.h.
7360 * linux-bfin-low.c: Likewise.
7361
7362 2014-08-07 Gary Benson <gbenson@redhat.com>
7363
7364 * server.h: Do not include ansidecl.h.
7365
7366 2014-08-07 Gary Benson <gbenson@redhat.com>
7367
7368 * linux-x86-low.c: Do not include stddef.h.
7369 * lynx-ppc-low.c: Likewise.
7370 * tracepoint.c: Likewise.
7371
7372 2014-08-07 Gary Benson <gbenson@redhat.com>
7373
7374 * server.h: Do not include stdarg.h.
7375 * nto-low.c: Likewise.
7376
7377 2014-08-07 Gary Benson <gbenson@redhat.com>
7378
7379 * server.h: Do not include stdlib.h.
7380 * inferiors.c: Likewise.
7381 * linux-low.c: Likewise.
7382 * regcache.c: Likewise.
7383 * spu-low.c: Likewise.
7384 * tracepoint.c: Likewise.
7385 * utils.c: Likewise.
7386
7387 2014-08-07 Gary Benson <gbenson@redhat.com>
7388
7389 * server.h: Do not include stdio.h.
7390 * linux-low.c: Likewise.
7391 * remote-utils.c: Likewise.
7392 * spu-low.c: Likewise.
7393 * utils.c: Likewise.
7394 * wincecompat.c: Likewise.
7395
7396 2014-08-06 Gary Benson <gbenson@redhat.com>
7397
7398 * regcache.c (init_register_cache): Move conditionals inside if.
7399
7400 2014-08-06 Gary Benson <gbenson@redhat.com>
7401
7402 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
7403
7404 2014-07-31 Gary Benson <gbenson@redhat.com>
7405
7406 * ax.h: Do not include server.h.
7407 * gdbthread.h: Likewise.
7408 * lynx-low.h: Likewise.
7409 * notif.h: Likewise.
7410
7411 2014-07-30 Gary Benson <gbenson@redhat.com>
7412
7413 * server.h: Include common-defs.h.
7414 Do not include config.h or build-gnulib-gdbserver/config.h.
7415
7416 2014-07-30 Gary Benson <gbenson@redhat.com>
7417
7418 * hostio-errno.c: Move server.h to top of includes list.
7419 * inferiors.c: Likewise.
7420 * linux-x86-low.c: Likewise.
7421 * notif.c: Include server.h.
7422
7423 2014-07-24 Tom Tromey <tromey@redhat.com>
7424 Gary Benson <gbenson@redhat.com>
7425
7426 * server.h (CORE_ADDR): Now unsigned.
7427
7428 2014-07-16 Pedro Alves <palves@redhat.com>
7429
7430 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
7431
7432 2014-07-15 Pedro Alves <palves@redhat.com>
7433
7434 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
7435 copy.
7436
7437 2014-07-11 Pedro Alves <palves@redhat.com>
7438
7439 * linux-low.c (kill_wait_lwp): New function, based on
7440 kill_one_lwp_callback, but use my_waitpid directly.
7441 (kill_one_lwp_callback, linux_kill): Use it.
7442
7443 2014-06-23 Pedro Alves <palves@redhat.com>
7444
7445 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
7446 before setting DR0..DR3.
7447
7448 2014-06-20 Gary Benson <gbenson@redhat.com>
7449
7450 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
7451 * configure: Regenerated.
7452 * config.in: Likewise.
7453
7454 2014-06-20 Gary Benson <gbenson@redhat.com>
7455
7456 * Makefile.in (SFILES): Update locations for files moved
7457 from common to nat.
7458 (object file files): Reordered.
7459
7460 2014-06-20 Gary Benson <gbenson@redhat.com>
7461
7462 * i386-low.h (i386_dr_low_can_set_addr): Removed.
7463 (i386_dr_low_set_addr): Likewise.
7464 (i386_dr_low_get_addr): Likewise.
7465 (i386_dr_low_can_set_control): Likewise.
7466 (i386_dr_low_set_control): Likewise.
7467 (i386_dr_low_get_control): Likewise.
7468 (i386_dr_low_get_status): Likewise.
7469 (i386_get_debug_register_length): Likewise.
7470 * linux-x86-low.c (i386_dr_low_set_addr):
7471 Changed signature. Made static.
7472 (i386_dr_low_get_addr): Likewise.
7473 (i386_dr_low_set_control): Likewise.
7474 (i386_dr_low_get_control): Likewise.
7475 (i386_dr_low_get_status): Likewise.
7476 (i386_dr_low): New global variable.
7477 * win32-i386-low.c (i386_dr_low_set_addr):
7478 Changed signature. Made static.
7479 (i386_dr_low_get_addr): Likewise.
7480 (i386_dr_low_set_control): Likewise.
7481 (i386_dr_low_get_control): Likewise.
7482 (i386_dr_low_get_status): Likewise.
7483 (i386_dr_low): New global variable.
7484
7485 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
7486
7487 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
7488 * Makefile.in (AR, AR_FLAGS): Define.
7489 * configure: Regenerate.
7490
7491 2014-06-19 Gary Benson <gbenson@redhat.com>
7492
7493 * Makefile.in (i386-dregs.o): New rule.
7494 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
7495 * i386-low.c (target.h): Remove include.
7496 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
7497 (DR_CONTROL_SHIFT): Likewise.
7498 (DR_CONTROL_SIZE): Likewise.
7499 (DR_RW_EXECUTE): Likewise.
7500 (DR_RW_WRITE): Likewise.
7501 (DR_RW_READ): Likewise.
7502 (DR_RW_IORW): Likewise.
7503 (DR_LEN_1): Likewise.
7504 (DR_LEN_2): Likewise.
7505 (DR_LEN_4): Likewise.
7506 (DR_LEN_8): Likewise.
7507 (DR_LOCAL_ENABLE_SHIFT): Likewise.
7508 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
7509 (DR_ENABLE_SIZE): Likewise.
7510 (DR_LOCAL_SLOWDOWN): Likewise.
7511 (DR_GLOBAL_SLOWDOWN): Likewise.
7512 (DR_CONTROL_RESERVED): Likewise.
7513 (I386_DR_CONTROL_MASK): Likewise.
7514 (I386_DR_VACANT): Likewise.
7515 (I386_DR_LOCAL_ENABLE): Likewise.
7516 (I386_DR_GLOBAL_ENABLE): Likewise.
7517 (I386_DR_DISABLE): Likewise.
7518 (I386_DR_SET_RW_LEN): Likewise.
7519 (I386_DR_GET_RW_LEN): Likewise.
7520 (I386_DR_WATCH_HIT): Likewise.
7521 (i386_wp_op_t): Likewise.
7522 (i386_show_dr): Likewise.
7523 (i386_length_and_rw_bits): Likewise.
7524 (i386_insert_aligned_watchpoint): Likewise.
7525 (i386_remove_aligned_watchpoint): Likewise.
7526 (i386_handle_nonaligned_watchpoint): Likewise.
7527 i386_update_inferior_debug_regs(): Likewise.
7528 (i386_dr_insert_watchpoint): Likewise.
7529 (i386_dr_remove_watchpoint): Likewise.
7530 (i386_dr_region_ok_for_watchpoint): Likewise.
7531 (i386_dr_stopped_data_address): Likewise.
7532 (i386_dr_stopped_by_watchpoint): Likewise.
7533
7534 2014-06-19 Gary Benson <gbenson@redhat.com>
7535
7536 * i386-low.c (i386_dr_show): Renamed to
7537 i386_show_dr and made static. All uses updated.
7538 (i386_dr_length_and_rw_bits): Renamed to
7539 i386_length_and_rw_bits and made static.
7540 All uses updated.
7541 (i386_dr_insert_aligned_watchpoint): Renamed to
7542 i386_insert_aligned_watchpoint and made static.
7543 All uses updated.
7544 (i386_dr_remove_aligned_watchpoint): Renamed to
7545 i386_remove_aligned_watchpoint and made static.
7546 All uses updated.
7547 (i386_dr_update_inferior_debug_regs): Renamed to
7548 i386_update_inferior_debug_regs and made static.
7549 All uses updated.
7550
7551 2014-06-18 Gary Benson <gbenson@redhat.com>
7552
7553 * i386-low.h (i386_dr_low_can_set_addr): New macro.
7554 (i386_dr_low_can_set_control): Likewise.
7555 (i386_get_debug_register_length): Likewise.
7556 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
7557 (i386_dr_low_can_set_control): Likewise.
7558 (i386_get_debug_register_length): Likewise.
7559
7560 2014-06-17 Gary Benson <gbenson@redhat.com>
7561
7562 * i386-low.h (i386-dregs.h): New include.
7563 (DR_FIRSTADDR): Now in i386-dregs.h.
7564 (DR_LASTADDR): Likewise.
7565 (DR_NADDR): Likewise.
7566 (DR_STATUS): Likewise.
7567 (DR_CONTROL): Likewise.
7568 (i386_debug_reg_state): Likewise.
7569 (i386_dr_insert_watchpoint): Likewise.
7570 (i386_dr_remove_watchpoint): Likewise.
7571 (i386_dr_region_ok_for_watchpoint): Likewise.
7572 (i386_dr_stopped_data_address): Likewise.
7573 (i386_dr_stopped_by_watchpoint): Likewise.
7574 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
7575
7576 2014-06-18 Gary Benson <gbenson@redhat.com>
7577
7578 * i386-low.h (i386_low_insert_watchpoint): Renamed to
7579 i386_dr_insert_watchpoint.
7580 (i386_low_remove_watchpoint): Renamed to
7581 i386_dr_remove_watchpoint.
7582 (i386_low_region_ok_for_watchpoint): Renamed to
7583 i386_dr_region_ok_for_watchpoint.
7584 (i386_low_stopped_data_address): Renamed to
7585 i386_dr_stopped_data_address.
7586 (i386_low_stopped_by_watchpoint): Renamed to
7587 i386_dr_stopped_by_watchpoint.
7588 * i386-low.c (i386_show_dr): Renamed to
7589 i386_dr_show and made nonstatic. All uses updated.
7590 (i386_length_and_rw_bits): Renamed to
7591 i386_dr_length_and_rw_bits and made nonstatic.
7592 All uses updated.
7593 (i386_insert_aligned_watchpoint): Renamed to
7594 i386_dr_insert_aligned_watchpoint and made nonstatic.
7595 All uses updated.
7596 (i386_remove_aligned_watchpoint): Renamed to
7597 i386_dr_remove_aligned_watchpoint and made nonstatic.
7598 All uses updated.
7599 (i386_update_inferior_debug_regs): Renamed to
7600 i386_dr_update_inferior_debug_regs and made nonstatic.
7601 All uses updated.
7602 (i386_low_insert_watchpoint): Renamed to
7603 i386_dr_insert_watchpoint. All uses updated.
7604 (i386_low_remove_watchpoint): Renamed to
7605 i386_dr_remove_watchpoint. All uses updated.
7606 (i386_low_region_ok_for_watchpoint): Renamed to
7607 i386_dr_region_ok_for_watchpoint. All uses updated.
7608 (i386_low_stopped_data_address): Renamed to
7609 i386_dr_stopped_data_address. All uses updated.
7610 (i386_low_stopped_by_watchpoint): Renamed to
7611 i386_dr_stopped_by_watchpoint. All uses updated.
7612
7613 2014-06-18 Gary Benson <gbenson@redhat.com>
7614
7615 * i386-low.c (i386_dr_low_can_set_addr): New macro.
7616 (i386_dr_low_can_set_control): Likewise.
7617 (i386_insert_aligned_watchpoint): New check.
7618
7619 2014-06-18 Gary Benson <gbenson@redhat.com>
7620
7621 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
7622 Renamed to state.
7623
7624 2014-06-18 Gary Benson <gbenson@redhat.com>
7625
7626 * i386-low.c (i386_length_and_rw_bits): Use internal_error
7627 instead of fatal and error.
7628 (i386_handle_nonaligned_watchpoint): Likewise.
7629
7630 2014-06-18 Gary Benson <gbenson@redhat.com>
7631
7632 * i386-low.c (i386_get_debug_register_length): New macro.
7633 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
7634 (i386_show_dr): Use debug_printf instead of fprintf. Use
7635 phex to format values.
7636
7637 2014-06-18 Gary Benson <gbenson@redhat.com>
7638
7639 * i386-low.h: Comment changes.
7640 * i386-low.c: Likewise.
7641
7642 2014-06-18 Gary Benson <gbenson@redhat.com>
7643
7644 * i386-low.c: Whitespace changes.
7645
7646 2014-06-12 Tom Tromey <tromey@redhat.com>
7647
7648 * utils.c (freeargv): Remove.
7649
7650 2014-06-12 Tom Tromey <tromey@redhat.com>
7651
7652 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
7653 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
7654 (parse_debug_format_options): Likewise.
7655 (gdbserver_usage): Likewise.
7656 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
7657 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
7658 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
7659 against libiberty.
7660 ($(LIBGNU)): Depend on libiberty.
7661 (all-lib): Recurse into all subdirs.
7662 (install-only): Invoke "install" target in subdirs.
7663 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
7664 targets.
7665 * configure: Rebuild.
7666 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
7667 for vasprintf, vsnprintf, or gettimeofday.
7668 * configure.srv: Don't add safe-ctype.o or lbasename.o to
7669 srv_tgtobj.
7670
7671 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7672
7673 * development.sh: Delete.
7674 * Makefile.in (config.status): Adjust dependency on development.sh.
7675 * configure.ac: Adjust development.sh source call.
7676 * configure: Regenerate.
7677
7678 2014-06-02 Pedro Alves <palves@redhat.com>
7679
7680 * ax.c (gdb_free_agent_expr): New function.
7681 * ax.h (gdb_free_agent_expr): New declaration.
7682 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
7683 list.
7684 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
7685 static.
7686 (clear_breakpoint_conditions_and_commands): New function.
7687 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
7688 (clear_breakpoint_conditions_and_commands): New declaration.
7689
7690 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7691
7692 * linux-aarch64-low.c (asm/ptrace.h): Include.
7693
7694 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7695
7696 Fix TLS access for -static -pthread.
7697 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
7698 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
7699 (thread_db_load_search, try_thread_db_load_1): Initialize it.
7700
7701 2014-05-20 Pedro Alves <palves@redhat.com>
7702
7703 * linux-aarch64-low.c (aarch64_insert_point)
7704 (aarch64_remove_point): No longer check whether the type is
7705 supported here. Adjust to new interface.
7706 (the_low_target): Install aarch64_supports_z_point_type as
7707 supports_z_point_type method.
7708 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
7709 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
7710 instead of a Z packet char. Adjust.
7711 (arm_supports_z_point_type): New function.
7712 (arm_insert_point, arm_remove_point): Adjust to new interface.
7713 (the_low_target): Install arm_supports_z_point_type.
7714 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
7715 (cris_insert_point, cris_remove_point): Adjust to new interface.
7716 Don't check whether the type is supported here.
7717 (the_low_target): Install cris_supports_z_point_type.
7718 * linux-low.c (linux_supports_z_point_type): New function.
7719 (linux_insert_point, linux_remove_point): Adjust to new interface.
7720 * linux-low.h (struct linux_target_ops) <insert_point,
7721 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
7722 raw_breakpoint pointer parameter.
7723 <supports_z_point_type>: New method.
7724 * linux-mips-low.c (mips_supports_z_point_type): New function.
7725 (mips_insert_point, mips_remove_point): Adjust to new interface.
7726 Use mips_supports_z_point_type.
7727 (the_low_target): Install mips_supports_z_point_type.
7728 * linux-ppc-low.c (the_low_target): Install NULL as
7729 supports_z_point_type method.
7730 * linux-s390-low.c (the_low_target): Install NULL as
7731 supports_z_point_type method.
7732 * linux-sparc-low.c (the_low_target): Install NULL as
7733 supports_z_point_type method.
7734 * linux-x86-low.c (x86_supports_z_point_type): New function.
7735 (x86_insert_point): Adjust to new insert_point interface. Use
7736 insert_memory_breakpoint. Adjust to new
7737 i386_low_insert_watchpoint interface.
7738 (x86_remove_point): Adjust to remove_point interface. Use
7739 remove_memory_breakpoint. Adjust to new
7740 i386_low_remove_watchpoint interface.
7741 (the_low_target): Install x86_supports_z_point_type.
7742 * lynx-low.c (lynx_target_ops): Install NULL as
7743 supports_z_point_type callback.
7744 * nto-low.c (nto_supports_z_point_type): New.
7745 (nto_insert_point, nto_remove_point): Adjust to new interface.
7746 (nto_target_ops): Install nto_supports_z_point_type.
7747 * mem-break.c: Adjust intro comment.
7748 (struct raw_breakpoint) <raw_type, size>: New fields.
7749 <inserted>: Update comment.
7750 <shlib_disabled>: Delete field.
7751 (enum bkpt_type) <gdb_breakpoint>: Delete value.
7752 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
7753 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
7754 (raw_bkpt_type_to_target_hw_bp_type): New function.
7755 (find_enabled_raw_code_breakpoint_at): New function.
7756 (find_raw_breakpoint_at): New type and size parameters. Use them.
7757 (insert_memory_breakpoint): New function, based off
7758 set_raw_breakpoint_at.
7759 (remove_memory_breakpoint): New function.
7760 (set_raw_breakpoint_at): Reimplement.
7761 (set_breakpoint): New, based on set_breakpoint_at.
7762 (set_breakpoint_at): Reimplement.
7763 (delete_raw_breakpoint): Go through the_target->remove_point
7764 instead of assuming memory breakpoints.
7765 (find_gdb_breakpoint_at): Delete.
7766 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
7767 (find_gdb_breakpoint): New function.
7768 (set_gdb_breakpoint_at): Delete.
7769 (z_type_supported): New function.
7770 (set_gdb_breakpoint_1): New function, loosely based off
7771 set_gdb_breakpoint_at.
7772 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
7773 (delete_gdb_breakpoint_at): Delete.
7774 (delete_gdb_breakpoint_1): New function, loosely based off
7775 delete_gdb_breakpoint_at.
7776 (delete_gdb_breakpoint): New function.
7777 (clear_gdb_breakpoint_conditions): Rename to ...
7778 (clear_breakpoint_conditions): ... this. Don't handle a NULL
7779 breakpoint.
7780 (add_condition_to_breakpoint): Make static.
7781 (add_breakpoint_condition): Take a struct breakpoint pointer
7782 instead of an address. Adjust.
7783 (gdb_condition_true_at_breakpoint): Rename to ...
7784 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
7785 z_type parameter.
7786 (gdb_condition_true_at_breakpoint): Reimplement.
7787 (add_breakpoint_commands): Take a struct breakpoint pointer
7788 instead of an address. Adjust.
7789 (gdb_no_commands_at_breakpoint): Rename to ...
7790 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
7791 parameter. Return true if no breakpoint was found. Change debug
7792 output.
7793 (gdb_no_commands_at_breakpoint): Reimplement.
7794 (run_breakpoint_commands): Rename to ...
7795 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
7796 and change return type to boolean.
7797 (run_breakpoint_commands): New function.
7798 (gdb_breakpoint_here): Also check for Z1 breakpoints.
7799 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
7800 breakpoint. Go through the_target->remove_point instead of
7801 assuming memory breakpoint.
7802 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
7803 software and hardware breakpoints.
7804 (reinsert_raw_breakpoint): Go through the_target->insert_point
7805 instead of assuming memory breakpoint.
7806 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
7807 software and hardware breakpoints.
7808 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
7809 Check both software and hardware breakpoints.
7810 (validate_inserted_breakpoint): Assert the breakpoint is a
7811 software breakpoint. Set the inserted flag to -1 instead of
7812 setting shlib_disabled.
7813 (delete_disabled_breakpoints): Adjust.
7814 (validate_breakpoints): Only validate software breakpoints.
7815 Adjust to inserted flag change.
7816 (check_mem_read, check_mem_write): Skip breakpoint types other
7817 than software breakpoints. Adjust to inserted flag change.
7818 * mem-break.h (enum raw_bkpt_type): New enum.
7819 (raw_breakpoint, struct process_info): Forward declare.
7820 (Z_packet_to_target_hw_bp_type): Delete declaration.
7821 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
7822 (set_gdb_breakpoint, delete_gdb_breakpoint)
7823 (clear_breakpoint_conditions): New declarations.
7824 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
7825 (breakpoint_inserted_here): Update comment.
7826 (add_breakpoint_condition, add_breakpoint_commands): Replace
7827 address parameter with a breakpoint pointer parameter.
7828 (gdb_breakpoint_here): Update comment.
7829 (delete_gdb_breakpoint_at): Delete.
7830 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
7831 * server.c (process_point_options): Take a struct breakpoint
7832 pointer instead of an address. Adjust.
7833 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
7834 delete_gdb_breakpoint.
7835 * spu-low.c (spu_target_ops): Install NULL as
7836 supports_z_point_type method.
7837 * target.h: Include mem-break.h.
7838 (struct target_ops) <prepare_to_access_memory>: Update comment.
7839 <supports_z_point_type>: New field.
7840 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
7841 instead of a char. Also take a raw breakpoint pointer.
7842 * win32-arm-low.c (the_low_target): Install NULL as
7843 supports_z_point_type.
7844 * win32-i386-low.c (i386_supports_z_point_type): New function.
7845 (i386_insert_point, i386_remove_point): Adjust to new interface.
7846 (the_low_target): Install i386_supports_z_point_type.
7847 * win32-low.c (win32_supports_z_point_type): New function.
7848 (win32_insert_point, win32_remove_point): Adjust to new interface.
7849 (win32_target_ops): Install win32_supports_z_point_type.
7850 * win32-low.h (struct win32_target_ops):
7851 <supports_z_point_type>: New method.
7852 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
7853 instead of a char. Also take a raw breakpoint pointer.
7854
7855 2014-05-20 Pedro Alves <palves@redhat.com>
7856
7857 * mem-break.h: Include break-common.h.
7858 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
7859 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
7860 (Z_packet_to_target_hw_bp_type): New declaration.
7861 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
7862 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
7863 (Z_PACKET_ACCESS_WP): Delete macros.
7864 (Z_packet_to_hw_type): Delete function.
7865 * i386-low.h: Don't include break-common.h here.
7866 (Z_packet_to_hw_type): Delete declaration.
7867 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
7868 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
7869 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
7870 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
7871 * linux-aarch64-low.c: Don't include break-common.h here.
7872 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
7873 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
7874 (Z_packet_to_target_hw_bp_type): Delete function.
7875 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
7876 function.
7877 (mips_insert_point, mips_remove_point): Use
7878 Z_packet_to_target_hw_bp_type.
7879
7880 2014-05-20 Pedro Alves <palves@redhat.com>
7881
7882 * linux-aarch64-low.c: Include break-common.h.
7883 (enum target_point_type): Delete.
7884 (Z_packet_to_point_type): Rename to ...
7885 (Z_packet_to_target_hw_bp_type): ... this, and return a
7886 target_hw_bp_type instead.
7887 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
7888 instead of an enum target_point_type.
7889 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
7890 breakpoint type.
7891 (aarch64_dr_state_insert_one_point)
7892 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
7893 (aarch64_handle_aligned_watchpoint)
7894 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
7895 Take an enum target_hw_bp_type instead of an enum
7896 target_point_type.
7897 (aarch64_supports_z_point_type): New function.
7898 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
7899 use Z_packet_to_target_hw_bp_type.
7900
7901 2014-05-20 Joel Brobecker <brobecker@adacore.com>
7902
7903 * configure.ac: Only use -Werror by default when DEVELOPMENT
7904 is true.
7905 * configure: Regenerate.
7906
7907 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7908
7909 Fix gdbserver qGetTLSAddr for x86_64 -m32.
7910 * linux-x86-low.c (X86_64_USER_REGS): New.
7911 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
7912
7913 2014-04-28 Yao Qi <yao@codesourcery.com>
7914
7915 * Makefile.in (i386-avx512.c): Fix the typo of generated file
7916 name.
7917
7918 2014-04-25 Pedro Alves <palves@redhat.com>
7919
7920 PR server/16255
7921 * linux-low.c (linux_attach_fail_reason_string): New function.
7922 (linux_attach_lwp): Delete.
7923 (linux_attach_lwp_1): Rename to ...
7924 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
7925 argument. Remove "initial" parameter. Return int instead of
7926 void. Don't error or warn here.
7927 (linux_attach): Adjust to call linux_attach_lwp. Call error on
7928 failure to attach to the tgid. Call warning when failing to
7929 attach to an lwp.
7930 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
7931 argument. Remove "initial" parameter. Return int instead of
7932 void. Don't error or warn here.
7933 (linux_attach_fail_reason_string): New declaration.
7934 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
7935 interface change. Use linux_attach_fail_reason_string.
7936
7937 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7938 Walfred Tedeschi <walfred.tedeschi@intel.com>
7939
7940 * Makefile.in: Added rules to handle new files
7941 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
7942 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
7943 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
7944 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
7945 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
7946 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
7947 x32-avx512-linux.o.
7948 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
7949 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
7950 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
7951 i386/x32-avx512.xml.
7952 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
7953 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
7954 i386/x32-avx512-linux.xml.
7955 * i387-fp.c (num_avx512_k_registers): New constant for number
7956 of K registers.
7957 (num_avx512_zmmh_low_registers): New constant for number of
7958 lower ZMM registers (0-15).
7959 (num_avx512_zmmh_high_registers): New constant for number of
7960 higher ZMM registers (16-31).
7961 (num_avx512_ymmh_registers): New contant for number of higher
7962 YMM registers (ymm16-31 added by avx521 on x86_64).
7963 (num_avx512_xmm_registers): New constant for number of higher
7964 XMM registers (xmm16-31 added by AVX512 on x86_64).
7965 (struct i387_xsave): Add space for AVX512 registers.
7966 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
7967 Add code to handle AVX512 registers.
7968 (i387_xsave_to_cache): Add code to handle AVX512 registers.
7969 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
7970 prototypei from generated file.
7971 (tdesc_amd64_avx512_linux): Likewise.
7972 (init_registers_x32_avx512_linux): Likewise.
7973 (tdesc_x32_avx512_linux): Likewise.
7974 (init_registers_i386_avx512_linux): Likewise.
7975 (tdesc_i386_avx512_linux): Likewise.
7976 (x86_64_regmap): Add AVX512 registers.
7977 (x86_linux_read_description): Add code to handle AVX512 XSTATE
7978 mask.
7979 (initialize_low_arch): Add code to initialize AVX512 registers.
7980
7981 2014-04-23 Pedro Alves <palves@redhat.com>
7982
7983 * mem-break.c (find_gdb_breakpoint_at): Make static.
7984 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
7985
7986 2014-04-23 Pedro Alves <palves@redhat.com>
7987
7988 * i386-low.c: Don't include break-common.h here.
7989 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
7990 prototype to take target_hw_bp_type as argument instead of a Z
7991 packet char.
7992 * i386-low.h: Include break-common.h here.
7993 (Z_packet_to_hw_type): Declare.
7994 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
7995 prototypes.
7996 * linux-x86-low.c (x86_insert_point): Convert the packet number to
7997 a target_hw_bp_type before calling i386_low_insert_watchpoint.
7998 (x86_remove_point): Convert the packet number to a
7999 target_hw_bp_type before calling i386_low_remove_watchpoint.
8000 * win32-i386-low.c (i386_insert_point): Convert the packet number
8001 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
8002 (i386_remove_point): Convert the packet number to a
8003 target_hw_bp_type before calling i386_low_remove_watchpoint.
8004
8005 2014-04-23 Pedro Alves <palves@redhat.com>
8006
8007 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
8008
8009 2014-04-10 Pedro Alves <palves@redhat.com>
8010
8011 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8012 Check if the condition or command is NULL before checking if the
8013 breakpoint is known. On success, return true.
8014 * mem-break.h (add_breakpoint_condition): Document return.
8015 (add_breakpoint_commands): Add describing comment.
8016 * server.c (skip_to_semicolon): New function.
8017 (process_point_options): Use it.
8018
8019 2014-04-09 Pedro Alves <palves@redhat.com>
8020
8021 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
8022 to lwpid_of.
8023
8024 2014-02-27 Pedro Alves <palves@redhat.com>
8025
8026 PR 12702
8027 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
8028 macros.
8029 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
8030 output.
8031 (last_thread_of_process_p): Take a PID argument instead of a
8032 thread pointer.
8033 (linux_wait_for_lwp): Delete.
8034 (num_lwps, check_zombie_leaders, not_stopped_callback): New
8035 functions.
8036 (linux_low_filter_event): New function, party factored out from
8037 linux_wait_for_event.
8038 (linux_wait_for_event): Rename to ...
8039 (linux_wait_for_event_filtered): ... this. Add new filter ptid
8040 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
8041 sigsuspend. Check for zombie leaders.
8042 (linux_wait_for_event): Reimplement as wrapper around
8043 linux_wait_for_event_filtered.
8044 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
8045 a normal or signal exit is seen, it's the whole process exiting.
8046 (wait_for_sigstop): No longer a for_each_inferior callback.
8047 Rewrite on top of linux_wait_for_event_filtered.
8048 (stop_all_lwps): Call wait_for_sigstop directly.
8049 * server.c (resume, handle_target_event): Handle
8050 TARGET_WAITKIND_NO_RESUMED.
8051
8052 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8053
8054 * win32-low.c (psapi_get_dll_name,
8055 * win32_CreateToolhelp32Snapshot): Delete.
8056 (win32_CreateToolhelp32Snapshot, win32_Module32First)
8057 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
8058 Delete.
8059 (handle_load_dll): Add function description.
8060 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
8061
8062 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8063
8064 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
8065 Add comment.
8066 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
8067 base address when calling win32_add_one_solib.
8068 (handle_load_dll): Delete local variable load_addr.
8069 Remove 0x1000 offset applied to DLL base address when calling
8070 win32_add_one_solib.
8071 (handle_unload_dll): Add comment.
8072
8073 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8074
8075 * win32-low.c (win32_add_all_dlls): Renames
8076 win32_ensure_ntdll_loaded. Rewrite function documentation.
8077 Adjust implementation to always load all DLLs.
8078 Add 0x1000 offset to DLL base address when calling
8079 win32_add_one_solib.
8080 (child_initialization_done): New static global.
8081 (do_initial_child_stuff): Set child_initialization_done to
8082 zero during child initialization, and 1 after. Replace call
8083 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
8084 Add comment.
8085 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
8086 (handle_unload_dll): Add function documentation.
8087 (get_child_debug_event): Ignore load and unload DLL events
8088 during child initialization.
8089
8090 2014-02-20 Doug Evans <dje@google.com>
8091
8092 Remove global all_lwps.
8093 * inferiors.h (ptid_of): Move here from linux-low.h.
8094 (pid_of, lwpid_of): Ditto.
8095 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
8096 parameter is a struct thread_info * now.
8097 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
8098 directly. Pass &all_threads to find_inferior instead of &all_lwps.
8099 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
8100 directly.
8101 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
8102 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
8103 * linux-arm-low.c (update_registers_callback): Update, "entry"
8104 parameter is a struct thread_info * now.
8105 Fetch lwpid from current_inferior directly.
8106 (arm_insert_point): Pass &all_threads to find_inferior instead of
8107 &all_lwps.
8108 (arm_remove_point): Ditto.
8109 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
8110 (arm_prepare_to_resume): Fetch pid from thread.
8111 (arm_read_description): Fetch lwpid from current_inferior directly.
8112 * linux-low.c (all_lwps): Delete.
8113 (delete_lwp): Delete call to remove_inferior.
8114 (handle_extended_wait): Fetch lwpid from thread.
8115 (add_lwp): Don't set lwp->entry.id. Remove call to
8116 add_inferior_to_list.
8117 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
8118 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
8119 (kill_one_lwp_callback): Ditto.
8120 (linux_kill): Don't dereference NULL pointer.
8121 Fetch ptid,lwpid from thread.
8122 (get_detach_signal): Fetch ptid from thread.
8123 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
8124 Simplify call to regcache_invalidate_thread.
8125 (delete_lwp_callback): Update, "entry" parameter is a
8126 struct thread_info * now. Fetch pid from thread.
8127 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
8128 (status_pending_p_callback): Update, "entry" parameter is a
8129 struct thread_info * now. Fetch ptid from thread.
8130 (find_lwp_pid): Update, "entry" parameter is a
8131 struct thread_info * now.
8132 (linux_wait_for_lwp): Fetch pid from thread.
8133 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
8134 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
8135 (enqueue_one_deferred_signal): Fetch lwpid from thread.
8136 (dequeue_one_deferred_signal): Ditto.
8137 (cancel_breakpoint): Fetch ptid from current_inferior.
8138 (linux_wait_for_event): Pass &all_threads to find_inferior,
8139 not &all_lwps. Fetch ptid, lwpid from thread.
8140 (count_events_callback): Update, "entry" parameter is a
8141 struct thread_info * now.
8142 (select_singlestep_lwp_callback): Ditto.
8143 (select_event_lwp_callback): Ditto.
8144 (cancel_breakpoints_callback): Ditto.
8145 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
8146 not &all_lwps.
8147 (select_event_lwp): Ditto. Fetch ptid from event_thread.
8148 (unsuspend_one_lwp): Update, "entry" parameter is a
8149 struct thread_info * now.
8150 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
8151 not &all_lwps.
8152 (linux_stabilize_threads): Ditto. And for for_each_inferior.
8153 Fetch lwpid from thread, not lwp.
8154 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
8155 Pass &all_threads to find_inferior, not &all_lwps.
8156 (send_sigstop): Fetch lwpid from thread, not lwp.
8157 (send_sigstop_callback): Update, "entry" parameter is a
8158 struct thread_info * now.
8159 (suspend_and_send_sigstop_callback): Ditto.
8160 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
8161 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
8162 struct thread_info * now.
8163 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
8164 from thread, lwp.
8165 (lwp_running): Update, "entry" parameter is a
8166 struct thread_info * now.
8167 (stop_all_lwps): Fetch ptid from thread.
8168 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
8169 (linux_resume_one_lwp): Fetch lwpid from thread.
8170 (linux_set_resume_request): Update, "entry" parameter is a
8171 struct thread_info * now. Fetch pid, lwpid from thread.
8172 (resume_status_pending_p): Update, "entry" parameter is a
8173 struct thread_info * now.
8174 (need_step_over_p): Ditto. Fetch lwpid from thread.
8175 (start_step_over): Fetch lwpid from thread.
8176 (linux_resume_one_thread): Update, "entry" parameter is a
8177 struct thread_info * now. Fetch lwpid from thread.
8178 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
8179 (proceed_one_lwp): Update, "entry" parameter is a
8180 struct thread_info * now. Fetch lwpid from thread.
8181 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
8182 struct thread_info * now.
8183 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
8184 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
8185 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
8186 directly.
8187 (regsets_store_inferior_registers): Ditto.
8188 (fetch_register, store_register): Ditto.
8189 (linux_read_memory, linux_write_memory): Ditto.
8190 (linux_request_interrupt): Ditto.
8191 (linux_read_auxv): Ditto.
8192 (linux_xfer_siginfo): Ditto.
8193 (linux_qxfer_spu): Ditto.
8194 (linux_qxfer_libraries_svr4): Ditto.
8195 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
8196 moved to inferiors.h.
8197 (get_lwp): Delete.
8198 (get_thread_lwp): Update.
8199 (struct lwp_info): Delete member "entry". Simplify comment for
8200 member "thread".
8201 (all_lwps): Delete.
8202 * linux-mips-low.c (mips_read_description): Fetch lwpid from
8203 current_inferior directly.
8204 (update_watch_registers_callback): Update, "entry" parameter is a
8205 struct thread_info * now. Fetch pid from thread.
8206 (mips_linux_prepare_to_resume): Fetch ptid from thread.
8207 (mips_insert_point): Fetch lwpid from current_inferior.
8208 Pass &all_threads to find_inferior, not &all_lwps.
8209 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
8210 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
8211 directly.
8212 (mips_stopped_data_address): Ditto.
8213 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
8214 directly.
8215 * linux-tile-low.c (tile_arch_setup): Ditto.
8216 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
8217 (update_debug_registers_callback): Update, "entry" parameter is a
8218 struct thread_info * now. Fetch pid from thread.
8219 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
8220 Pass &all_threads to find_inferior, not &all_lwps.
8221 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
8222 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
8223 Pass &all_threads to find_inferior, not &all_lwps.
8224 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
8225 (i386_dr_low_get_status): Ditto.
8226 (x86_linux_prepare_to_resume): Fetch ptid from thread.
8227 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
8228 (x86_linux_read_description): Ditto.
8229 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
8230
8231 2014-02-20 Doug Evans <dje@google.com>
8232
8233 * inferiors.c (get_first_inferior): Fix buglet.
8234
8235 2014-02-19 Doug Evans <dje@google.com>
8236
8237 * gdbthread.h (add_thread): Change result type to struct thread_info *.
8238 * inferiors.c (add_thread): Change result type to struct thread_info *.
8239 All callers updated.
8240 (add_lwp): Call add_thread here instead of in callers.
8241 All callers updated.
8242 * linux-low.h (get_lwp_thread): Rewrite.
8243 (struct lwp_info): New member "thread".
8244
8245 2014-02-19 Doug Evans <dje@google.com>
8246
8247 * linux-low.c (add_lwp): Change result to struct lwp_info *.
8248 All callers updated.
8249
8250 2014-02-19 Doug Evans <dje@google.com>
8251
8252 * inferiors.c (add_thread): Fix whitespace.
8253
8254 2014-02-19 Doug Evans <dje@google.com>
8255
8256 * dll.c (clear_dlls): Replace accessing list implemention details
8257 with API function.
8258 * gdbthread.h (get_first_thread): Declare.
8259 * inferiors.c (for_each_inferior_with_data): New function.
8260 (get_first_thread): New function.
8261 (find_thread_ptid): Simplify.
8262 (get_first_inferior): New function.
8263 (clear_list): Delete.
8264 (one_inferior_p): New function.
8265 (clear_inferior_list): New function.
8266 (clear_inferiors): Update.
8267 * inferiors.h (for_each_inferior_with_data): Declare.
8268 (clear_inferior_list): Declare.
8269 (one_inferior_p): Declare.
8270 (get_first_inferior): Declare.
8271 * linux-low.c (linux_wait_for_event): Replace accessing list
8272 implemention details with API function.
8273 * server.c (target_running): Ditto.
8274 (accumulate_file_name_length): New function.
8275 (emit_dll_description): New function.
8276 (handle_qxfer_libraries): Replace accessing list implemention
8277 details with API function.
8278 (handle_qxfer_threads_worker): New function.
8279 (handle_qxfer_threads_proper): Replace accessing list implemention
8280 details with API function.
8281 (handle_query): Ditto.
8282 (visit_actioned_threads_callback_ftype): New typedef.
8283 (visit_actioned_threads_data): New struct.
8284 (visit_actioned_threads): Rewrite to be find_inferior callback.
8285 (resume): Call find_inferior.
8286 (handle_status): Replace accessing list implemention
8287 details with API function.
8288 (process_serial_event): Replace accessing list implemention details
8289 with API function.
8290 * target.c (set_desired_inferior): Replace accessing list implemention
8291 details with API function.
8292 * tracepoint.c (same_process_p): New function.
8293 (gdb_agent_about_to_close): Replace accessing list implemention
8294 details with API function.
8295 * win32-low.c (child_delete_thread): Replace accessing list
8296 implemention details with API function.
8297 (match_dll_by_basename): New function.
8298 (dll_is_loaded_by_basename): New function.
8299 (win32_ensure_ntdll_loaded): Replace accessing list implemention
8300 details call to dll_is_loaded_by_basename.
8301
8302 2014-02-19 Doug Evans <dje@google.com>
8303
8304 * dll.h (struct dll_info): Add comment.
8305 * gdbthread.h (struct thread_info): Add comment.
8306 (current_ptid): Simplify.
8307 * inferiors.c (add_process): Update.
8308 (remove_process): Update.
8309 * inferiors.h (struct process_info): Rename member "head" to "entry".
8310 * linux-low.c (delete_lwp): Update.
8311 (add_lwp): Update.
8312 (last_thread_of_process_p): Update.
8313 (kill_one_lwp_callback, linux_kill): Update.
8314 (status_pending_p_callback): Update.
8315 (wait_for_sigstop): Update. Simplify read of ptid.
8316 (start_step_over): Update.
8317 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
8318 (get_lwp_thread): Update.
8319 (struct lwp_info): Rename member "head" to "entry".
8320 * regcache.h (inferior_list_entry): Delete.
8321 * server.c (kill_inferior_callback): Update.
8322 (detach_or_kill_inferior_callback): Update.
8323 (print_started_pid): Update.
8324 (print_attached_pid): Update.
8325 (process_serial_event): Simplify read of ptid.
8326 * thread-db.c (thread_db_create_event): Update.
8327 (thread_db_get_tls_address): Update.
8328 * win32-low.c (current_inferior_ptid): Simplify.
8329
8330 2014-02-19 Tom Tromey <tromey@redhat.com>
8331
8332 * target.h (struct target_ops) <supports_btrace>: Add target_ops
8333 argument.
8334 (target_supports_btrace): Update.
8335
8336 2014-02-14 Yao Qi <yao@codesourcery.com>
8337
8338 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
8339 (rsp-low-ipa.o): New target.
8340
8341 2014-02-12 Tom Tromey <tromey@redhat.com>
8342
8343 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
8344 convert_ascii_to_int.
8345 * regcache.c (registers_to_string): Likewise.
8346 * remote-utils.c (decode_M_packet): Likewise.
8347 * server.c (process_serial_event): Likewise.
8348
8349 2014-02-12 Tom Tromey <tromey@redhat.com>
8350
8351 * server.c (handle_query, handle_v_run): Use hex2bin, not
8352 unhexify.
8353 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
8354
8355 2014-02-12 Tom Tromey <tromey@redhat.com>
8356
8357 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
8358 convert_int_to_ascii.
8359 * regcache.c (registers_to_string, collect_register_as_string):
8360 Likewise.
8361 * remote-utils.c (look_up_one_symbol, relocate_instruction):
8362 Likewise.
8363 * server.c (process_serial_event): Likewise.
8364 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
8365 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
8366
8367 2014-02-12 Tom Tromey <tromey@redhat.com>
8368
8369 * remote-utils.c (look_up_one_symbol, monitor_output): Use
8370 bin2hex, not hexify.
8371 * tracepoint.c (cmd_qtstatus): Likewise.
8372
8373 2014-02-12 Tom Tromey <tromey@redhat.com>
8374
8375 * remote-utils.c (monitor_output): Pass explicit length to
8376 hexify.
8377
8378 2014-02-12 Tom Tromey <tromey@redhat.com>
8379
8380 * tracepoint.c: Include rsp-low.h.
8381 * server.c: Include rsp-low.h.
8382 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
8383 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
8384 declare.
8385 * remote-utils.c: Include rsp-low.h.
8386 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
8387 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
8388 (convert_int_to_ascii, convert_ascii_to_int): Move to
8389 common/rsp-low.c.
8390 * regcache.c: Include rsp-low.h.
8391 * ax.c: Include rsp-low.h.
8392 * Makefile.in (SFILES): Add common/rsp-low.c.
8393 (OBS): Add rsp-low.o.
8394 (rsp-low.o): New target.
8395
8396 2014-02-12 Tom Tromey <tromey@redhat.com>
8397
8398 * utils.h (pulongest, plongest, phex_nz): Don't declare.
8399 Include print-utils.h.
8400 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8401 (plongest, thirty_two, phex_nz): Remove.
8402 * Makefile.in (SFILES): Add common/print-utils.c.
8403 (OBS): Add print-utils.o.
8404 (print-utils-ipa.o): New target.
8405 (print-utils.o): New target.
8406 (IPA_OBJS): Add print-utils-ipa.o.
8407
8408 2014-02-06 Tom Tromey <tromey@redhat.com>
8409
8410 * Makefile.in (SFILES): Fix indentation.
8411
8412 2014-02-05 Doug Evans <dje@google.com>
8413
8414 * linux-low.c (linux_wait_for_event): Improve comment.
8415 (linux_wait_1): Keep current_inferior in sync with event_child.
8416
8417 2014-01-22 Doug Evans <dje@google.com>
8418
8419 * gdbthread.h (gdb_id_to_thread): Delete, unused.
8420
8421 2014-01-22 Doug Evans <dje@google.com>
8422
8423 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
8424 * configure: Regenerate.
8425 * config.in: Regenerate.
8426 * Makefile.in (SFILES): Add debug.c.
8427 (OBS): Add debug.o.
8428 * debug.c: New file.
8429 * debug.h: New file.
8430 * linux-aarch64-low.c (*): Update all debugging printfs to use
8431 debug_printf instead of fprintf.
8432 * linux-arm-low.c (*): Ditto.
8433 * linux-cris-low.c (*): Ditto.
8434 * linux-crisv32-low.c (*): Ditto.
8435 * linux-m32r-low.c (*): Ditto.
8436 * linux-sparc-low.c (*): Ditto.
8437 * linux-x86.c (*): Ditto.
8438 * linux-low.c (*): Ditto.
8439 (linux_wait_1): Add calls to debug_enter, debug_exit.
8440 (linux_wait): Remove redundant debugging printf.
8441 (stop_all_lwps): Add calls to debug_enter, debug_exit.
8442 (linux_resume, unstop_all_lwps): Ditto.
8443 * mem-break.c (*): Update all debugging printfs to use
8444 debug_printf instead of fprintf.
8445 * remote-utils.c (*): Ditto.
8446 * thread-db.c (*): Ditto.
8447 * server.c #include <ctype.h>, "gdb_vecs.h".
8448 (debug_threads): Moved to debug.c.
8449 (*): Update all debugging printfs to use debug_printf instead of
8450 fprintf.
8451 (start_inferior): Replace call to fflush with call to debug_flush.
8452 (monitor_show_help): Mention set debug-format.
8453 (parse_debug_format_options): New function.
8454 (handle_monitor_command): Handle "monitor set debug-format".
8455 (gdbserver_usage): Mention --debug-format.
8456 (main): Parse --debug-format.
8457 * server.h (debug_threads): Declaration moved to debug.h.
8458 #include "debug.h".
8459 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
8460 trace_debug_1 that uses debug_printf.
8461 (tracepoint_look_up_symbols): Update all debugging printfs to use
8462 debug_printf instead of fprintf.
8463
8464 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8465
8466 * linux-xtensa-low.c: Include asm/ptrace.h instead of
8467 sys/ptrace.h.
8468
8469 2014-01-17 Pedro Alves <palves@redhat.com>
8470
8471 PR build/16445
8472 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
8473 defined after including gdb_proc_service.h.
8474
8475 2014-01-16 Doug Evans <dje@google.com>
8476
8477 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
8478 (match_dll): Use it.
8479
8480 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8481
8482 * target.h (target_ops) <read_btrace>: Change parameters and
8483 return type to allow error reporting.
8484 * server.c (handle_qxfer_btrace): Support delta reads. Pass
8485 trace reading errors on.
8486 * linux-low.c (linux_low_read_btrace): Pass trace reading
8487 errors on.
8488 (linux_low_disable_btrace): New.
8489
8490 2014-01-15 Doug Evans <dje@google.com>
8491
8492 * inferiors.c (thread_id_to_gdb_id): Delete.
8493 * inferiors.h (thread_id_to_gdb_id): Delete.
8494
8495 2014-01-13 Eli Zaretskii <eliz@gnu.org>
8496
8497 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
8498 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
8499 versions.
8500
8501 2014-01-08 Pedro Alves <palves@redhat.com>
8502
8503 * server.c (handle_status): Don't discard previous queued stop
8504 replies or thread's pending status here.
8505 (main) <disconnection>: Do it here instead.
8506
8507 2014-01-08 Pedro Alves <palves@redhat.com>
8508
8509 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
8510 * server.c (visit_actioned_threads, handle_pending_status): New
8511 function.
8512 (handle_v_cont): Factor out parts to ...
8513 (resume): ... this new function. If in all-stop, and a thread
8514 being resumed has a pending status, report it without actually
8515 resuming.
8516 (myresume): Adjust to use the new 'resume' function.
8517 (clear_pending_status_callback, set_pending_status_callback)
8518 (find_status_pending_thread_callback): New functions.
8519 (handle_status): Handle the case of multiple threads having
8520 interesting statuses to report. Report threads' real last signal
8521 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
8522 with an interesting thread to report the status for, instead of
8523 always reporting the status of the first thread.
8524
8525 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8526
8527 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
8528 * gdbreplay.c (gdbreplay_version): Likewise.
8529
8530 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
8531
8532 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
8533 iov.iov_len with the real length in use.
8534
8535 2013-12-13 Joel Brobecker <brobecker@adacore.com>
8536
8537 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
8538 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
8539 for all targets that use win32-low.c.
8540 * win32-low.c (win32_ensure_ntdll_loaded): New function.
8541 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
8542
8543 2013-12-13 Pedro Alves <palves@redhat.com>
8544
8545 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
8546 if equal to TARGET_WAITKIND_LOADED.
8547 * win32-low.c (cached_status): New static global.
8548 (win32_wait): Add declaration.
8549 (do_initial_child_stuff): Flush all initial pending debug events
8550 up to the initial breakpoint.
8551 (win32_wait): If CACHED_STATUS was set, return that instead
8552 of doing a real wait. Remove the code resuming the execution
8553 of the inferior after receiving a TARGET_WAITKIND_LOADED event
8554 during the initial phase. Also remove the code changing
8555 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
8556 TARGET_WAITKIND_STOPPED.
8557
8558 2013-12-11 Yao Qi <yao@codesourcery.com>
8559
8560 * notif.c (handle_notif_ack): Return 0 if no notification
8561 matches.
8562
8563 2013-11-20 Doug Evans <dje@google.com>
8564
8565 * linux-low.c (linux_set_resume_request): Fix comment.
8566
8567 2013-11-20 Doug Evans <dje@google.com>
8568
8569 * linux-low.c (resume_status_pending_p): Tweak comment.
8570
8571 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
8572
8573 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
8574 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
8575 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
8576 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
8577 (srv_amd64_regobj): Add amd64-mpx.o.
8578 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
8579 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
8580 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
8581 * i387-fp.c (num_pl_bnd_register) Added constant.
8582 (num_pl_bnd_cfg_registers) Added constant.
8583 (struct i387_xsave) Added reserved area and MPX fields.
8584 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
8585 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
8586 function.
8587 (tdesc_i386_mpx_linux): Add MPX amd64 target.
8588 (init_registers_amd64_mpx_linux): Declare new function.
8589 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
8590 (x86_64_regmap): Add MPX registers.
8591 (x86_linux_read_description): Add MPX case.
8592 (initialize_low_arch): Initialize MPX targets.
8593
8594 2013-11-18 Tom Tromey <tromey@redhat.com>
8595
8596 * configure: Rebuild.
8597 * configure.ac: Don't check for stdlib.h.
8598 * gdbreplay.c: Unconditionally include stdlib.h.
8599
8600 2013-11-18 Tom Tromey <tromey@redhat.com>
8601
8602 * config.in: Rebuild.
8603 * configure: Rebuild.
8604 * configure.ac: Don't use AC_HEADER_DIRENT.
8605
8606 2013-11-18 Tom Tromey <tromey@redhat.com>
8607
8608 * server.h: Don't check HAVE_STRING_H.
8609 * gdbreplay.c: Don't check HAVE_STRING_H.
8610 * configure: Rebuild.
8611
8612 2013-11-18 Tom Tromey <tromey@redhat.com>
8613
8614 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
8615 LIBGNU.
8616
8617 2013-11-08 Tom Tromey <tromey@redhat.com>
8618
8619 * configure, config.in: Rebuild.
8620 * configure.ac: Remove unused configury.
8621
8622 2013-11-08 Tom Tromey <tromey@redhat.com>
8623
8624 * acinclude.m4: Include common.m4, codeset.m4.
8625 * configure, config.in: Rebuild.
8626 * configure.ac: Use GDB_AC_COMMON.
8627
8628 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
8629
8630 * linux-s390-low.c (HWCAP_S390_TE): New define.
8631 (s390_arch_setup): Consider the TE field in the HWCAP for
8632 determining 'have_regset_tdb'.
8633
8634 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
8635
8636 PR gdb/16014
8637 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
8638 call to sizeof.
8639
8640 2013-10-02 Pedro Alves <palves@redhat.com>
8641
8642 * server.c (process_serial_event): Don't output "GDBserver
8643 exiting" if GDB is connected through stdio.
8644 * target.c (mywait): Likewise, be silent if GDB is connected
8645 through stdio.
8646
8647 2013-10-01 Joel Brobecker <brobecker@adacore.com>
8648
8649 * lynx-low.c (lynx_add_threads_after_attach): New function.
8650 (lynx_attach): Remove call to add_thread. Add call to
8651 lynx_add_threads_after_attach instead.
8652
8653 2013-09-28 Mike Frysinger <vapier@gentoo.org>
8654
8655 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
8656 * config.in, configure: Regenerated.
8657
8658 2013-09-18 Yao Qi <yao@codesourcery.com>
8659
8660 PR server/15959
8661 * server.c (start_inferior): Clear 'resume_info'.
8662
8663 2013-09-16 Jiong Wang <jiwang@tilera.com>
8664
8665 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
8666 for each register.
8667
8668 2013-09-16 Jiong Wang <jiwang@tilera.com>
8669
8670 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
8671 linux-tile-low.o to srv_tgtobj.
8672
8673 2013-09-16 Will Newton <will.newton@linaro.org>
8674
8675 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
8676 out regs.
8677
8678 2013-09-06 Pedro Alves <palves@redhat.com>
8679
8680 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
8681 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
8682 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
8683 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
8684 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
8685 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
8686
8687 2013-09-06 Pedro Alves <palves@redhat.com>
8688
8689 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
8690 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
8691
8692 2013-09-06 Pedro Alves <palves@redhat.com>
8693
8694 * linux-amd64-ipa.c: Include tracepoint.h.
8695 * linux-i386-ipa.c: Include tracepoint.h.
8696
8697 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
8698
8699 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
8700 (ps_get_thread_area): New function.
8701
8702 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
8703
8704 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
8705 (initialize_low_arch): Call init_registers_crisv32 rather than
8706 init_register_crisv32.
8707
8708 2013-09-05 Pedro Alves <palves@redhat.com>
8709
8710 * server.h (handle_vFile, hostio_last_error_from_errno): Move
8711 to ...
8712 * hostio.h: ... this new file.
8713 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
8714 win32-low.c: Include hostio.h.
8715
8716 2013-09-05 Pedro Alves <palves@redhat.com>
8717
8718 * server.h (gdb_client_data, handler_func, callback_handler_func)
8719 (delete_file_handler, add_file_handler, append_callback_event)
8720 (delete_callback_event, start_event_loop, initialize_event_loop):
8721 Move to event-loop.h and include it.
8722 * event-loop.h: New file.
8723
8724 2013-09-05 Pedro Alves <palves@redhat.com>
8725
8726 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
8727 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
8728 (loaded_dll, unloaded_dll): Move to ...
8729 * dll.h: ... this new file.
8730 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
8731
8732 2013-09-05 Pedro Alves <palves@redhat.com>
8733
8734 * server.h (current_process, get_thread_process, all_processes)
8735 (add_inferior_to_list, for_each_inferior, current_inferior)
8736 (remove_inferior, add_process, remove_process, find_process_pid)
8737 (have_started_inferiors_p, have_attached_inferiors_p)
8738 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
8739 (clear_inferiors, find_inferior, find_inferior_id)
8740 (inferior_target_data, set_inferior_target_data)
8741 (inferior_regcache_data, set_inferior_regcache_data): Move to
8742 inferiors.h, and include it.
8743 * inferiors.h: New file.
8744
8745 2013-09-05 Pedro Alves <palves@redhat.com>
8746
8747 * server.h (struct emit_ops, current_insn_ptr, emit_error):
8748 Move ...
8749 * ax.h: ... here.
8750
8751 2013-09-05 Pedro Alves <palves@redhat.com>
8752
8753 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
8754 tracepoint.h.
8755 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
8756 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
8757 (handle_tracepoint_general_set, handle_tracepoint_query)
8758 (tracepoint_finished_step, tracepoint_was_hit)
8759 (release_while_stepping_state_list, current_traceframe)
8760 (in_readonly_region, traceframe_read_mem)
8761 (fetch_traceframe_registers, traceframe_read_sdata)
8762 (traceframe_read_info, struct fast_tpoint_collect_status)
8763 (fast_tracepoint_collecting, force_unlock_trace_buffer)
8764 (handle_tracepoit_bkpts, initialize_low_tracepoint)
8765 (supply_fast_tracepoint_registers)
8766 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
8767 (ipa_tdesc, claim_trampoline_space)
8768 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
8769 (agent_mem_read, agent_get_trace_state_variable_value)
8770 (agent_set_trace_state_variable_value, agent_tsv_read)
8771 (agent_mem_read_string, get_raw_reg_func_addr)
8772 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
8773 * tracepoint.h: ... this new file.
8774
8775 2013-09-05 Pedro Alves <palves@redhat.com>
8776
8777 * server.h (perror_with_name, error, fatal, warning, paddress)
8778 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
8779 include it.
8780 * utils.h: New file.
8781
8782 2013-09-05 Pedro Alves <palves@redhat.com>
8783
8784 * server.h (remote_debug, noack_mode, transport_is_reliable)
8785 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
8786 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
8787 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
8788 (write_enn, initialize_async_io, enable_async_io)
8789 (disable_async_io, check_remote_input_interrupt_request)
8790 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
8791 (dead_thread_notify, prepare_resume_reply)
8792 (decode_address_to_semicolon, decode_address, decode_m_packet)
8793 (decode_M_packet, decode_X_packet, decode_xfer_write)
8794 (decode_search_memory_packet, unhexify, hexify)
8795 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
8796 (look_up_one_symbol, relocate_instruction)
8797 (monitor_output): Move to remote-utils.h, and include it.
8798 * remote-utils.h: New file.
8799
8800 2013-09-05 Pedro Alves <palves@redhat.com>
8801
8802 * server.h (_): Delete.
8803
8804 2013-09-02 Pedro Alves <palves@redhat.com>
8805
8806 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
8807 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
8808 allocated.
8809 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
8810
8811 2013-09-02 Pierre Muller <muller@sourceware.org>
8812
8813 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
8814 or WriteProcessMemory complete successfully and handle
8815 ERROR_PARTIAL_COPY error.
8816
8817 2013-09-02 Pedro Alves <palves@redhat.com>
8818
8819 * server.c (gdb_read_memory): Return -1 on traceframe memory read
8820 error instead of EIO.
8821
8822 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8823
8824 PR server/15604
8825 * linux-low.c: Include filestuff.h.
8826 (linux_create_inferior) <pid == 0>: Call close_most_fds.
8827 * lynx-low.c: Include filestuff.h.
8828 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
8829 * server.c: Include filestuff.h.
8830 (main): Call notice_open_fds.
8831 * spu-low.c: Include filestuff.h.
8832 (spu_create_inferior) <pid == 0>: Call close_most_fds.
8833
8834 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
8835
8836 * Makefile.in: Explain why ../target and ../nat are not
8837 listed as include file search paths.
8838 (linux-waitpid.o): New object file rule.
8839 * configure.srv (srv_native_linux_obj): New variable.
8840 Replace all occurrences of linux native object files with
8841 $srv_native_linux_obj.
8842 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
8843 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
8844 (linux_enable_event_reporting): Remove declaration.
8845 (my_waitpid): Moved to common/linux-waitpid.c.
8846 (linux_wait_for_event): Pass ptid when calling
8847 linux_enable_event_reporting.
8848 (linux_supports_tracefork_flag): Remove.
8849 (linux_enable_event_reporting): Likewise.
8850 (linux_tracefork_grandchild): Remove.
8851 (STACK_SIZE): Moved to common/linux-ptrace.c.
8852 (linux_tracefork_child): Remove.
8853 (linux_test_for_tracefork): Remove.
8854 (linux_look_up_symbols): Call linux_supports_traceclone.
8855 (initialize_low): Remove call to linux_test_for_tracefork.
8856 * linux-low.h (PTRACE_TYPE_ARG3): Move to
8857 common/linux-ptrace.h.
8858 (PTRACE_TYPE_ARG4): Likewise.
8859 Include linux-ptrace.h.
8860
8861 2013-08-21 Pedro Alves <palves@redhat.com>
8862
8863 * config.in: Renegerate.
8864
8865 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
8866
8867 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
8868 (SFILES): Remove $(srcdir)/common/target-common.c and
8869 add $(srcdir)/target/waitstatus.c.
8870 (OBS): Remove target-common.o and add waitstatus.o.
8871 (server_h): Remove $(srcdir)/../common/target-common.h and
8872 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
8873 and $(srcdir)/../target/waitstatus.h.
8874 (target-common.o): Remove.
8875 (waitstatus.o): New target object file.
8876 * target.h: Do not include target-common.h and
8877 include target/resume.h, target/wait.h and
8878 target/waitstatus.h.
8879
8880 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
8881
8882 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
8883 to PTRACE_TYPE_ARG3.
8884 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
8885 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
8886 PTRACE_TYPE_ARG4.
8887 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
8888 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
8889
8890 2013-07-27 Jie Zhang <jie@codesourcery.com>
8891 Daniel Jacobowitz <dan@codesourcery.com>
8892 Yao Qi <yao@codesourcery.com>
8893
8894 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
8895 (mips-linux-watch.o): New rule.
8896 (mips_linux_watch_h): New variable.
8897 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
8898 srv_tgtobj.
8899 * linux-mips-low.c: Include mips-linux-watch.h.
8900 (struct arch_process_info, struct arch_lwp_info): New.
8901 (update_watch_registers_callback): New function.
8902 (mips_linux_new_process, mips_linux_new_thread) New functions.
8903 (mips_linux_prepare_to_resume, mips_insert_point): New
8904 functions.
8905 (mips_remove_point, mips_stopped_by_watchpoint): New
8906 functions.
8907 (rsp_bp_type_to_target_hw_bp_type): New function.
8908 (mips_stopped_data_address): New function.
8909 (the_low_target): Add watchpoint support functions.
8910
8911 2013-07-27 Yao Qi <yao@codesourcery.com>
8912
8913 * i386-low.c: Include break-common.h.
8914 (enum target_hw_bp_type): Remove.
8915
8916 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
8917
8918 * Makefile.in (SFILES): /common/target-common.c.
8919 (OBS): Add target-common.o.
8920 (server_h): Add $(srcdir)/../common/target-common.h.
8921 (target-common.o): New target.
8922 * server.c (queue_stop_reply_callback): Free
8923 status string after use.
8924 * target.c (target_waitstatus_to_string): Remove.
8925 * target.h: Include target-common.h.
8926 (resume_kind): Likewise.
8927 (target_waitkind): Likewise.
8928 (target_waitstatus): Likewise.
8929 (TARGET_WNOHANG): Likewise.
8930
8931 2013-07-04 Yao Qi <yao@codesourcery.com>
8932
8933 * Makefile.in (host_alias): Use @host_noncanonical@.
8934 (target_alias): Use @target_noncanonical@.
8935 * configure.ac: Use ACX_NONCANONICAL_TARGET and
8936 ACX_NONCANONICAL_HOST.
8937 * configure: Regenerated.
8938
8939 Revert:
8940 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
8941
8942 * configure.ac (version_host, version_target): Set and AC_SUBST them.
8943 * configure: Rebuild.
8944 * Makefile.in (version_host, version_target): Get from configure.
8945 (version.c): Use $(version_host) and $(version_target).
8946
8947 2013-07-03 Pedro Alves <palves@redhat.com>
8948
8949 * Makefile.in (config.status): Depend on development.sh.
8950 * acinclude.m4: Include libmcheck.m4.
8951 * configure: Regenerate.
8952
8953 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
8954
8955 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
8956 attribute inside the parentheses.
8957 (winapi_DebugSetProcessKillOnExit): Ditto.
8958 (winapi_DebugBreakProcess): Ditto.
8959 (winapi_GenerateConsoleCtrlEvent): Ditto.
8960
8961 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
8962
8963 * notif.h (notif_event): Add a dummy member to avoid compiler
8964 errors.
8965
8966 2013-07-01 Pedro Alves <palves@redhat.com>
8967
8968 * hostio.c (HOSTIO_PATH_MAX): Define.
8969 (require_filename, handle_open, handle_unlink, handle_readlink):
8970 Use it.
8971
8972 2013-07-01 Pedro Alves <palves@redhat.com>
8973
8974 * server.h: Include "pathmax.h".
8975 * linux-low.c: Don't include sys/param.h.
8976 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
8977 MAXPATHLEN.
8978 * win32-low.c: Don't include sys/param.h.
8979 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
8980
8981 2013-07-01 Pedro Alves <palves@redhat.com>
8982
8983 * event-loop.c: Don't check HAVE_UNISTD_H before including
8984 <unistd.h>.
8985 * gdbreplay.c: Likewise.
8986 * remote-utils.c: Likewise.
8987 * server.c: Likewise.
8988 * configure.ac: Don't check for unistd.h.
8989 * configure: Regenerate.
8990
8991 2013-06-28 Tom Tromey <tromey@redhat.com>
8992
8993 * Makefile.in (version.c): Use version.in, not
8994 common/version.in.
8995
8996 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
8997
8998 * configure.ac (version_host, version_target): Set and AC_SUBST them.
8999 * configure: Rebuild.
9000 * Makefile.in (version_host, version_target): Get from configure.
9001 (version.c): Use $(version_host) and $(version_target).
9002
9003 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
9004
9005 Fix trace-status to output user name without trailing colon.
9006 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
9007
9008 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
9009
9010 Fix trace-status to output proper start-time and stop-time.
9011 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
9012 output start time and stop time in hex as gdb expects.
9013
9014 2013-06-26 Pedro Alves <pedro@codesourcery.com>
9015
9016 * tracepoint.c (build_traceframe_info_xml): Output trace state
9017 variables present in the trace buffer.
9018
9019 2013-06-24 Tom Tromey <tromey@redhat.com>
9020
9021 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
9022 create-version.sh.
9023 (version.o): Remove.
9024 * gdbreplay.c: Include version.h.
9025 (version, host_name): Don't declare.
9026 * server.h: Include version.h.
9027 (version, host_name): Don't declare.
9028
9029 2013-06-12 Pedro Alves <palves@redhat.com>
9030
9031 * linux-x86-low.c (linux_is_elf64): Delete global.
9032 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
9033 with local linux_pid_exe_is_elf_64_file use.
9034
9035 2013-06-11 Pedro Alves <palves@redhat.com>
9036
9037 * linux-low.c (regset_disabled, disable_regset): New functions.
9038 (regsets_fetch_inferior_registers)
9039 (regsets_store_inferior_registers): Use them.
9040 (initialize_regsets_info); Don't allocate the disabled_regsets
9041 array here.
9042 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
9043 comment.
9044
9045 2013-06-11 Pedro Alves <palves@redhat.com>
9046
9047 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
9048 xmalloc.
9049
9050 2013-06-11 Pedro Alves <palves@redhat.com>
9051
9052 * linux-x86-low.c (initialize_low_arch): Call
9053 init_registers_x32_avx_linux.
9054
9055 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9056
9057 Fix compatibility with Android Bionic.
9058 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
9059 it is not empty.
9060
9061 2013-06-07 Pedro Alves <palves@redhat.com>
9062
9063 PR server/14823
9064 * Makefile.in (OBS): Add tdesc.o.
9065 (IPA_OBJS): Add tdesc-ipa.o.
9066 (tdesc-ipa.o): New rule.
9067 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
9068 interface.
9069 * linux-low.c (new_inferior): Delete.
9070 (disabled_regsets, num_regsets): Delete.
9071 (linux_add_process): Adjust to set the new per-process
9072 new_inferior flag.
9073 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
9074 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
9075 was a stop. When calling arch_setup, switch the current inferior
9076 to the thread that got an event.
9077 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
9078 (regsets_fetch_inferior_registers)
9079 (regsets_store_inferior_registers): New regsets_info parameter.
9080 Adjust to use it.
9081 (linux_register_in_regsets): New regs_info parameter. Adjust to
9082 use it.
9083 (register_addr, fetch_register, store_register): New usrregs_info
9084 parameter. Adjust to use it.
9085 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
9086 parameter regs_info. Adjust to use it.
9087 (linux_fetch_registers): Get the current inferior's regs_info, and
9088 adjust to use it.
9089 (linux_store_registers): Ditto.
9090 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
9091 (initialize_low): Don't initialize the target_regsets here. Call
9092 initialize_low_arch.
9093 * linux-low.h (target_regsets): Delete declaration.
9094 (struct regsets_info): New.
9095 (struct usrregs_info): New.
9096 (struct regs_info): New.
9097 (struct process_info_private) <new_inferior>: New field.
9098 (struct linux_target_ops): Delete the num_regs, regmap, and
9099 regset_bitmap fields. New field regs_info.
9100 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
9101 * i387-fp.c (num_xmm_registers): Delete.
9102 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
9103 calls to new interface.
9104 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
9105 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
9106 Infer the number of xmm registers from the regcache's target
9107 description.
9108 * i387-fp.h (num_xmm_registers): Delete.
9109 * inferiors.c (add_thread): Don't install the thread's regcache
9110 here.
9111 * proc-service.c (gregset_info): Fetch the current inferior's
9112 regs_info. Adjust to use it.
9113 * regcache.c: Include tdesc.h.
9114 (register_bytes, reg_defs, num_registers)
9115 (gdbserver_expedite_regs): Delete.
9116 (get_thread_regcache): If the thread doesn't have a regcache yet,
9117 create one, instead of aborting gdbserver.
9118 (regcache_invalidate_one): Rename to ...
9119 (regcache_invalidate_thread): ... this.
9120 (regcache_invalidate_one): New.
9121 (regcache_invalidate): Only invalidate registers of the current
9122 process.
9123 (init_register_cache): Add target_desc parameter, and use it.
9124 (new_register_cache): Ditto. Assert the target description has a
9125 non zero registers_size.
9126 (regcache_cpy): Add assertions. Adjust.
9127 (realloc_register_cache, set_register_cache): Delete.
9128 (registers_to_string, registers_from_string): Adjust.
9129 (find_register_by_name, find_regno, find_register_by_number)
9130 (register_cache_size): Add target_desc parameter, and use it.
9131 (free_register_cache_thread, free_register_cache_thread_one)
9132 (regcache_release, register_cache_size): New.
9133 (register_size): Add target_desc parameter, and use it.
9134 (register_data, supply_register, supply_register_zeroed)
9135 (supply_regblock, supply_register_by_name, collect_register)
9136 (collect_register_as_string, collect_register_by_name): Adjust.
9137 * regcache.h (struct target_desc): Forward declare.
9138 (struct regcache) <tdesc>: New field.
9139 (init_register_cache, new_register_cache): Add target_desc
9140 parameter.
9141 (regcache_invalidate_thread): Declare.
9142 (regcache_invalidate_one): Delete declaration.
9143 (regcache_release): Declare.
9144 (find_register_by_number, register_cache_size, register_size)
9145 (find_regno): Add target_desc parameter.
9146 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
9147 declarations.
9148 * remote-utils.c: Include tdesc.h.
9149 (outreg, prepare_resume_reply): Adjust.
9150 * server.c: Include tdesc.h.
9151 (gdbserver_xmltarget): Delete declaration.
9152 (get_features_xml, process_serial_event): Adjust.
9153 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
9154 declare.
9155 (struct process_info) <tdesc>: New field.
9156 (ipa_tdesc): Declare.
9157 * tdesc.c: New file.
9158 * tdesc.h: New file.
9159 * tracepoint.c: Include tdesc.h.
9160 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
9161 (get_context_regcache): Adjust to pass ipa_tdesc down.
9162 (do_action_at_tracepoint): Adjust to get the register cache size
9163 from the context regcache's description.
9164 (traceframe_walk_blocks): Adjust to get the register cache size
9165 from the current trace frame's description.
9166 (traceframe_get_pc): Adjust to get current trace frame's
9167 description and pass it down.
9168 (gdb_collect): Adjust to get the register cache size from the
9169 IPA's description.
9170 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
9171 (gdbserver_xmltarget): Delete.
9172 (initialize_low_tracepoint): Set the ipa's target description.
9173 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
9174 (initialize_low_tracepoint): Set the ipa's target description.
9175 * linux-x86-low.c: Include tdesc.h.
9176 [__x86_64__] (is_64bit_tdesc): New.
9177 (ps_get_thread_area, x86_get_thread_area): Use it.
9178 (i386_cannot_store_register): Rename to ...
9179 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
9180 (i386_cannot_fetch_register): Rename to ...
9181 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
9182 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
9183 to new interface.
9184 (target_regsets): Rename to ...
9185 (x86_regsets): ... this.
9186 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
9187 interface.
9188 (x86_siginfo_fixup): Use is_64bit_tdesc.
9189 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
9190 (tdesc_x32_avx_linux, tdesc_x32_linux)
9191 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
9192 Declare.
9193 (x86_linux_update_xmltarget): Delete.
9194 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
9195 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
9196 (AMD64_LINUX_USER64_CS): New.
9197 (x86_linux_read_description): New, based on
9198 x86_linux_update_xmltarget.
9199 (same_process_callback): New.
9200 (x86_arch_setup_process_callback): New.
9201 (x86_linux_update_xmltarget): New.
9202 (x86_regsets_info): New.
9203 (amd64_linux_regs_info): New.
9204 (i386_linux_usrregs_info): New.
9205 (i386_linux_regs_info): New.
9206 (x86_linux_regs_info): New.
9207 (x86_arch_setup): Reimplement.
9208 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
9209 (x86_emit_ops): Ditto.
9210 (the_low_target): Adjust. Install x86_linux_regs_info,
9211 x86_cannot_fetch_register, and x86_cannot_store_register.
9212 (initialize_low_arch): New.
9213 * linux-ia64-low.c (tdesc_ia64): Declare.
9214 (ia64_fetch_register): Adjust.
9215 (ia64_usrregs_info, regs_info): New globals.
9216 (ia64_regs_info): New function.
9217 (the_low_target): Adjust.
9218 (initialize_low_arch): New function.
9219 * linux-sparc-low.c (tdesc_sparc64): Declare.
9220 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
9221 Adjust.
9222 (sparc_arch_setup): New function.
9223 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
9224 (the_low_target): Adjust.
9225 (initialize_low_arch): New function.
9226 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
9227 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
9228 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
9229 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
9230 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
9231 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
9232 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
9233 (tdesc_powerpc_isa205_vsx64l): Declare.
9234 (ppc_cannot_store_register, ppc_collect_ptrace_register)
9235 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
9236 (ppc_set_pc, ppc_get_hwcap): Adjust.
9237 (ppc_usrregs_info): Forward declare.
9238 (!__powerpc64__) ppc_regmap_adjusted: New global.
9239 (ppc_arch_setup): Adjust to the current process'es target
9240 description.
9241 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
9242 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
9243 (ppc_store_evrregset): Adjust.
9244 (target_regsets): Rename to ...
9245 (ppc_regsets): ... this, and make static.
9246 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
9247 (ppc_regs_info): New function.
9248 (the_low_target): Adjust.
9249 (initialize_low_arch): New function.
9250 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
9251 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
9252 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
9253 (tdesc_s390x_linux64v2): Declare.
9254 (s390_collect_ptrace_register, s390_supply_ptrace_register)
9255 (s390_fill_gregset, s390_store_last_break): Adjust.
9256 (target_regsets): Rename to ...
9257 (s390_regsets): ... this, and make static.
9258 (s390_get_pc, s390_set_pc): Adjust.
9259 (s390_get_hwcap): New target_desc parameter, and use it.
9260 [__s390x__] (have_hwcap_s390_high_gprs): New global.
9261 (s390_arch_setup): Adjust to set the current process'es target
9262 description. Don't adjust the regmap.
9263 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
9264 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
9265 (regs_info_3264): New globals.
9266 (s390_regs_info): New function.
9267 (the_low_target): Adjust.
9268 (initialize_low_arch): New function.
9269 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
9270 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
9271 [__mips64] (init_registers_mips_linux)
9272 (init_registers_mips_dsp_linux): Delete defines.
9273 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
9274 (have_dsp): New global.
9275 (mips_read_description): New, based on mips_arch_setup.
9276 (mips_arch_setup): Reimplement.
9277 (get_usrregs_info): New function.
9278 (mips_cannot_fetch_register, mips_cannot_store_register)
9279 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
9280 (mips_fill_fpregset, mips_store_fpregset): Adjust.
9281 (target_regsets): Rename to ...
9282 (mips_regsets): ... this, and make static.
9283 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
9284 (dsp_regs_info, regs_info): New globals.
9285 (mips_regs_info): New function.
9286 (the_low_target): Adjust.
9287 (initialize_low_arch): New function.
9288 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
9289 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
9290 Declare.
9291 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
9292 (arm_read_description): New, with bits factored from
9293 arm_arch_setup.
9294 (arm_arch_setup): Reimplement.
9295 (target_regsets): Rename to ...
9296 (arm_regsets): ... this, and make static.
9297 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
9298 (arm_regs_info): New function.
9299 (the_low_target): Adjust.
9300 (initialize_low_arch): New function.
9301 * linux-m68k-low.c (tdesc_m68k): Declare.
9302 (target_regsets): Rename to ...
9303 (m68k_regsets): ... this, and make static.
9304 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
9305 (m68k_regs_info): New function.
9306 (m68k_arch_setup): New function.
9307 (the_low_target): Adjust.
9308 (initialize_low_arch): New function.
9309 * linux-sh-low.c (tdesc_sharch): Declare.
9310 (target_regsets): Rename to ...
9311 (sh_regsets): ... this, and make static.
9312 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
9313 (sh_regs_info, sh_arch_setup): New functions.
9314 (the_low_target): Adjust.
9315 (initialize_low_arch): New function.
9316 * linux-bfin-low.c (tdesc_bfin): Declare.
9317 (bfin_arch_setup): New function.
9318 (bfin_usrregs_info, regs_info): New globals.
9319 (bfin_regs_info): New function.
9320 (the_low_target): Adjust.
9321 (initialize_low_arch): New function.
9322 * linux-cris-low.c (tdesc_cris): Declare.
9323 (cris_arch_setup): New function.
9324 (cris_usrregs_info, regs_info): New globals.
9325 (cris_regs_info): New function.
9326 (the_low_target): Adjust.
9327 (initialize_low_arch): New function.
9328 * linux-cris-low.c (tdesc_crisv32): Declare.
9329 (cris_arch_setup): New function.
9330 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
9331 (cris_regs_info): New function.
9332 (the_low_target): Adjust.
9333 (initialize_low_arch): New function.
9334 * linux-m32r-low.c (tdesc_m32r): Declare.
9335 (m32r_arch_setup): New function.
9336 (m32r_usrregs_info, regs_info): New globals.
9337 (m32r_regs_info): Adjust.
9338 (initialize_low_arch): New function.
9339 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
9340 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
9341 (tic6x_usrregs_info): Forward declare.
9342 (tic6x_read_description): New function, based on ...
9343 (tic6x_arch_setup): ... this. Reimplement.
9344 (target_regsets): Rename to ...
9345 (tic6x_regsets): ... this, and make static.
9346 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
9347 (tic6x_regs_info): New function.
9348 (the_low_target): Adjust.
9349 (initialize_low_arch): New function.
9350 * linux-xtensa-low.c (tdesc_xtensa): Declare.
9351 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
9352 (target_regsets): Rename to ...
9353 (xtensa_regsets): ... this, and make static.
9354 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
9355 globals.
9356 (xtensa_arch_setup, xtensa_regs_info): New functions.
9357 (the_low_target): Adjust.
9358 (initialize_low_arch): New function.
9359 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
9360 (nios2_arch_setup): Set the current process'es tdesc.
9361 (target_regsets): Rename to ...
9362 (nios2_regsets): ... this.
9363 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
9364 (nios2_regs_info): New function.
9365 (the_low_target): Adjust.
9366 (initialize_low_arch): New function.
9367 * linux-aarch64-low.c (tdesc_aarch64): Declare.
9368 (aarch64_arch_setup): Set the current process'es tdesc.
9369 (target_regsets): Rename to ...
9370 (aarch64_regsets): ... this.
9371 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
9372 (aarch64_regs_info): New function.
9373 (the_low_target): Adjust.
9374 (initialize_low_arch): New function.
9375 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
9376 globals.
9377 (target_regsets): Rename to ...
9378 (tile_regsets): ... this.
9379 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
9380 (tile_regs_info): New function.
9381 (tile_arch_setup): Set the current process'es tdesc.
9382 (the_low_target): Adjust.
9383 (initialize_low_arch): New function.
9384 * spu-low.c (tdesc_spu): Declare.
9385 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
9386 * win32-arm-low.c (tdesc_arm): Declare.
9387 (arm_arch_setup): New function.
9388 (the_low_target): Install arm_arch_setup instead of
9389 init_registers_arm.
9390 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
9391 (init_windows_x86): Rename to ...
9392 (i386_arch_setup): ... this. Set `win32_tdesc'.
9393 (the_low_target): Adjust.
9394 * win32-low.c (win32_tdesc): New global.
9395 (child_add_thread): Don't create the thread cache here.
9396 (do_initial_child_stuff): Set the new process'es tdesc.
9397 * win32-low.h (struct target_desc): Forward declare.
9398 (win32_tdesc): Declare.
9399 * lynx-i386-low.c (tdesc_i386): Declare global.
9400 (lynx_i386_arch_setup): Set `lynx_tdesc'.
9401 * lynx-low.c (lynx_tdesc): New global.
9402 (lynx_add_process): Set the new process'es tdesc.
9403 * lynx-low.h (struct target_desc): Forward declare.
9404 (lynx_tdesc): Declare global.
9405 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
9406 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
9407 * nto-low.c (nto_tdesc): New global.
9408 (do_attach): Set the new process'es tdesc.
9409 * nto-low.h (struct target_desc): Forward declare.
9410 (nto_tdesc): Declare.
9411 * nto-x86-low.c (tdesc_i386): Declare.
9412 (nto_x86_arch_setup): Set `nto_tdesc'.
9413
9414 2013-06-04 Gary Benson <gbenson@redhat.com>
9415
9416 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
9417 to qSupported response when appropriate.
9418 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
9419 with nonzero-length annex.
9420 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
9421 arguments supplied in annex.
9422
9423 2013-05-31 Doug Evans <dje@google.com>
9424
9425 PR server/15594
9426 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
9427 64 bits in 64-cross-32 environment.
9428
9429 2013-05-28 Pedro Alves <palves@redhat.com>
9430
9431 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
9432 (aarch64-without-fpu.c): Delete rule.
9433 * configure.srv (aarch64*-*-linux*): Remove references to
9434 aarch64-without-fpu.o and aarch64-without-fpu.xml.
9435 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
9436 declaration.
9437
9438 2013-05-24 Pedro Alves <palves@redhat.com>
9439
9440 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
9441 instead of strchr/decode_address. Error if the range isn't split
9442 with a ','. Don't assume there's be a ':' in the action.
9443
9444 2013-05-23 Yao Qi <yao@codesourcery.com>
9445 Pedro Alves <palves@redhat.com>
9446
9447 * linux-low.c (lwp_in_step_range): New function.
9448 (linux_wait_1): If the thread was range stepping and stopped
9449 outside the stepping range, report the stop to GDB. Otherwise,
9450 continue stepping. Add range stepping debug output.
9451 (linux_set_resume_request): Copy the step range from the resume
9452 request to the lwp.
9453 (linux_supports_range_stepping): New.
9454 (linux_target_ops) <supports_range_stepping>: Set to
9455 linux_supports_range_stepping.
9456 * linux-low.h (struct linux_target_ops)
9457 <supports_range_stepping>: New field.
9458 (struct lwp_info) <step_range_start, step_range_end>: New fields.
9459 * linux-x86-low.c (x86_supports_range_stepping): New.
9460 (the_low_target) <supports_range_stepping>: Set to
9461 x86_supports_range_stepping.
9462 * server.c (handle_v_cont): Handle 'r' action.
9463 (handle_v_requests): Append ";r" if the target supports range
9464 stepping.
9465 * target.h (struct thread_resume) <step_range_start,
9466 step_range_end>: New fields.
9467 (struct target_ops) <supports_range_stepping>:
9468 New field.
9469 (target_supports_range_stepping): New macro.
9470
9471 2013-05-17 Joel Brobecker <brobecker@adacore.com>
9472
9473 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
9474 confusion in comment.
9475
9476 2013-05-17 Joel Brobecker <brobecker@adacore.com>
9477
9478 * lynx-low.c (struct process_info_private): New type.
9479 (lynx_add_process): New function.
9480 (lynx_create_inferior, lynx_attach): Replace calls to
9481 add_process by calls to lynx_add_process.
9482 (lynx_resume): If PTID is null, then try using
9483 current_process()->private->last_wait_event_ptid.
9484 Add comments.
9485 (lynx_clear_inferiors): Delete. The contents of that function
9486 has been inlined in lynx_mourn;
9487 (lynx_wait_1): Save the ptid in the process's private data.
9488 (lynx_mourn): Free the process' private data. Replace call
9489 to lynx_clear_inferiors by call to clear_inferiors.
9490
9491 2013-05-17 Yao Qi <yao@codesourcery.com>
9492
9493 * i386-low.c (i386_length_and_rw_bits): Move the comment to
9494 the right place.
9495
9496 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
9497
9498 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
9499 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
9500 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
9501 PT_TEXT_END_ADDR guards. Update comments.
9502 (linux_target_op) <read_offsets>: Conditionally define to
9503 linux_read_offsets if the target is UCLIBC and if it defines
9504 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
9505
9506 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
9507 Andrew Jenner <andrew@codesourcery.com>
9508
9509 * Makefile.in (SFILES): Add linux-nios2-low.c.
9510 (clean): Add action to delete nios2-linux.c.
9511 (nios2-linux.c): New rule.
9512 * configure.srv: Add nios2*-*-linux*.
9513 * linux-nios2-low.c: New.
9514
9515 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
9516
9517 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
9518
9519 2013-04-25 Hui Zhu <hui@codesourcery.com>
9520
9521 PR gdb/15186
9522 * ax.c (ax_printf): Add fflush.
9523
9524 2013-04-22 Tom Tromey <tromey@redhat.com>
9525
9526 * Makefile.in (SFILES): Add filestuff.c.
9527 (OBS): Add filestuff.o.
9528 (filestuff.o): New target.
9529 * config.in, configure: Rebuild.
9530 * configure.ac: Check for fdwalk, pipe2.
9531
9532 2013-04-17 Pedro Alves <palves@redhat.com>
9533
9534 * configure.ac (USE_THREAD_DB): Delete variable.
9535 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
9536 Don't AC_SUBST USE_THREAD_DB.
9537 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
9538 * config.in, configure: Regenerate.
9539
9540 2013-04-16 Pedro Alves <palves@redhat.com>
9541
9542 * linux-low.h (struct lwp_info) <thread_known>: Move under
9543 the USE_THREAD_DB #ifdef.
9544
9545 2013-04-16 Pedro Alves <palves@redhat.com>
9546
9547 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
9548 (linux-low.o): Delete rule.
9549 * linux-low.h: Always include "gdb_thread_db.h" instead of
9550 conditionally including thread_db.h.
9551 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
9552 HAVE_THREAD_DB_H.
9553
9554 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
9555
9556 * Makefile.in (install-only): Fix make install regression.
9557
9558 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9559
9560 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9561 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
9562 installation.
9563 * gdbserver.1: Remove.
9564
9565 2013-03-22 Pedro Alves <palves@redhat.com>
9566
9567 * linux-low.c (handle_extended_wait): Don't call
9568 linux_enable_event_reporting.
9569
9570 2013-03-15 Tony Theodore <tonyt@logyst.com>
9571
9572 PR build/9098:
9573 * Makefile.in (SHELL): Use @SHELL@.
9574
9575 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
9576
9577 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
9578 compiler warning.
9579
9580 2013-03-13 Joel Brobecker <brobecker@adacore.com>
9581
9582 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
9583 Remove extraneous NULL element.
9584
9585 2013-03-13 Yao Qi <yao@codesourcery.com>
9586
9587 * tracepoint.c (traceframe_read_tsv): Look for the last matched
9588 'V' block in trace frame.
9589
9590 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9591
9592 * target.h (struct target_ops): Add btrace ops.
9593 (target_supports_btrace): New macro.
9594 (target_enable_btrace): New macro.
9595 (target_disable_btrace): New macro.
9596 (target_read_btrace): New macro.
9597 * gdbthread.h (struct thread_info): Add btrace field.
9598 * server.c: Include btrace-common.h.
9599 (handle_btrace_general_set): New function.
9600 (handle_btrace_enable): New function.
9601 (handle_btrace_disable): New function.
9602 (handle_general_set): Call handle_btrace_general_set.
9603 (handle_qxfer_btrace): New function.
9604 (struct qxfer qxfer_packets[]): Add btrace entry.
9605 * inferiors.c (remove_thread): Disable btrace.
9606 * linux-low: Include linux-btrace.h.
9607 (linux_low_enable_btrace): New function.
9608 (linux_low_read_btrace): New function.
9609 (linux_target_ops): Add btrace ops.
9610 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
9611 Add srv_linux_btrace=yes.
9612 (x86_64-*-linux*): Add linux-btrace.o.
9613 Add srv_linux_btrace=yes.
9614 * configure.ac: Define HAVE_LINUX_BTRACE.
9615 * config.in: Regenerated.
9616 * configure: Regenerated.
9617
9618 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9619
9620 * server.c (handle_qxfer): Preserve error message if -3 is
9621 returned.
9622 (qxfer): Document the -3 return value.
9623
9624 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9625
9626 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
9627 (linux_btrace_h): New variable.
9628 (linux-btrace.o): New rule.
9629
9630 2013-03-08 Stan Shebs <stan@codesourcery.com>
9631 Hafiz Abid Qadeer <abidh@codesourcery.com>
9632
9633 * tracepoint.c (trace_buffer_size): New global.
9634 (DEFAULT_TRACE_BUFFER_SIZE): New define.
9635 (init_trace_buffer): Change to one-argument function. Allocate
9636 trace buffer memory.
9637 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
9638 handle QTBuffer:size packet.
9639 (cmd_bigqtbuffer_size): New function.
9640 (initialize_tracepoint): Call init_trace_buffer with
9641 DEFAULT_TRACE_BUFFER_SIZE.
9642 * server.c (handle_query): Add QTBuffer:size in the
9643 supported packets.
9644
9645 2013-03-07 Yao Qi <yao@codesourcery.com>
9646
9647 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
9648 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
9649 of -1.
9650 (cmd_qtsp): Adjust condition. Do post increment.
9651 Set cur_action and cur_step_action back to 0.
9652
9653 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
9654
9655 PR server/15236
9656 * linux-low.c (linux_write_memory): Return early success if LEN is
9657 zero.
9658
9659 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9660
9661 * configure.srv: Add x86_64-*-cygwin* as target.
9662
9663 2013-02-28 Tom Tromey <tromey@redhat.com>
9664
9665 * configure.ac: Invoke AC_SYS_LARGEFILE.
9666 * configure, config.in: Rebuild.
9667
9668 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
9669
9670 * win32-low.c: Throughout, fix format strings and casts of
9671 printf-like functions to avoid type related warnings on all
9672 platforms.
9673 (get_child_debug_event): Print dwDebugEventCode as hex since
9674 that's how it's usually documented.
9675
9676 2013-02-28 Yao Qi <yao@codesourcery.com>
9677
9678 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
9679 pulongest.
9680
9681 2013-02-27 Jiong Wang <jiwang@tilera.com>
9682
9683 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
9684 (reg-tilegx32.c): New rule.
9685 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
9686 * linux-tile-low.c (tile_arch_setup): New function. Invoke
9687 different register info initializer according to elf class.
9688 (init_registers_tilgx32): New function. The tilegx32 register info
9689 initializer.
9690 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
9691 (tile_store_gregset): Likewise.
9692
9693 2013-02-27 Yao Qi <yao@codesourcery.com>
9694
9695 * server.c (process_point_options): Print debug message when
9696 debug_threads is true.
9697
9698 2013-02-26 Yao Qi <yao@codesourcery.com>
9699
9700 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
9701
9702 2013-02-19 Pedro Alves <palves@redhat.com>
9703 Kai Tietz <ktietz@redhat.com>
9704
9705 PR gdb/15161
9706
9707 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
9708 instead of strtoul to extract address from packet.
9709 (process_serial_event) <'z'>: Likewise.
9710
9711 2013-02-18 Yao Qi <yao@codesourcery.com>
9712
9713 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
9714
9715 2013-02-14 Pedro Alves <palves@redhat.com>
9716
9717 Plug memory leak.
9718
9719 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
9720 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
9721
9722 2013-02-14 Pedro Alves <palves@redhat.com>
9723
9724 * tracepoint.c (cmd_qtdpsrc): Use savestring.
9725
9726 2013-02-14 Pedro Alves <palves@redhat.com>
9727
9728 * tracepoint.c (save_string): Delete.
9729 (add_tracepoint_action): Use savestring instead of save_string.
9730
9731 2013-02-12 Pedro Alves <palves@redhat.com>
9732
9733 * linux-xtensa-low.c: Ditto.
9734 * xtensa-xtregs.c: Ditto.
9735
9736 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9737
9738 * thread-db.c (thread_db_get_tls_address): NULL pointer check
9739 thread_db.
9740
9741 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9742
9743 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
9744 aarch64_num_wp_regs and aarch64_num_bp_regs to
9745 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
9746
9747 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9748
9749 * linux-aarch64-low.c (ps_get_thread_area): Replace
9750 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
9751
9752 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9753 Marcus Shawcroft <marcus.shawcroft@arm.com>
9754 Nigel Stephens <nigel.stephens@arm.com>
9755 Yufeng Zhang <yufeng.zhang@arm.com>
9756
9757 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
9758 (aarch64.c, aarch64-without-fpu.c): New targets.
9759 * configure.srv (aarch64*-*-linux*): New.
9760 * linux-aarch64-low.c: New file.
9761
9762 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
9763
9764 * linux-low.c (handle_extended_wait, linux_create_inferior)
9765 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
9766 (dequeue_one_deferred_signal, linux_resume_one_thread)
9767 (fetch_register, linux_write_memory, linux_enable_event_reporting)
9768 (linux_tracefork_grandchild, linux_test_for_tracefork)
9769 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
9770 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
9771 where the argument is 0.
9772
9773 2013-01-25 Yao Qi <yao@codesourcery.com>
9774
9775 * event-loop.c: Include "queue.h".
9776 (gdb_event_p): New typedef.
9777 (struct gdb_event) <next_event>: Remove.
9778 (event_queue): Change to QUEUE(gdb_event_p).
9779 (async_queue_event): Remove.
9780 (gdb_event_xfree): New.
9781 (initialize_event_loop): New.
9782 (process_event): Use API from QUEUE.
9783 (wait_for_event): Likewise.
9784 * server.c (main): Call initialize_event_loop.
9785 * server.h (initialize_event_loop): Declare.
9786
9787 2013-01-18 Yao Qi <yao@codesourcery.com>
9788
9789 * ax.h (struct eval_agent_expr_context): New.
9790 (gdb_eval_agent_expr): Update declaration.
9791 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
9792 TFRAME. Add new argument CTX.
9793 * server.h (struct eval_agent_expr_context): Declare.
9794 (agent_mem_read, agent_tsv_read): Update declaration.
9795 (agent_mem_read_string): Likewise.
9796 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
9797 (add_traceframe_block): Add new argument TPOINT.
9798 Increase TPOINT->traceframe_usage.
9799 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
9800 eval_tracepoint_agent_expr.
9801 (condition_true_at_tracepoint): Likewise.
9802 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
9803 (agent_mem_read_string, agent_tsv_read): Likewise.
9804
9805 2013-01-16 Yao Qi <yao@codesourcery.com>
9806
9807 * linux-low.c (linux_resume_one_lwp): Don't check
9808 'lwp->bp_reinsert != 0'.
9809
9810 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9811 Pedro Alves <palves@redhat.com>
9812
9813 * lynx-low.c (ptrace_request_to_str): Define a temporary
9814 macro and use it to simplify this function's implementation.
9815
9816 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9817
9818 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
9819 sets errno.
9820
9821 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9822
9823 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
9824
9825 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9826
9827 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
9828
9829 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9830
9831 * lynx-low.c (lynx_resume): Use the resume_info parameter
9832 to determine the ptid for the lynx_ptrace call, unless
9833 it is equal to minus_one_ptid, in which case we use the
9834 ptid of the current_inferior.
9835 (lynx_wait_1): After having received a thread create/exit
9836 event, resume the inferior's execution using the signaling
9837 thread's ptid, rather than the old ptid.
9838
9839 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9840
9841 * lynx-low.c (lynx_resume): Delete variable ret.
9842
9843 2013-01-01 Joel Brobecker <brobecker@adacore.com>
9844
9845 * gdbreplay.c (gdbreplay_version): Update copyright year.
9846 * server.c (gdbserver_version): Likewise.
9847
9848 2012-12-17 Joel Brobecker <brobecker@adacore.com>
9849
9850 * lynx-low.c (lynx_wait_1): Add debug trace before adding
9851 new thread.
9852
9853 2012-12-17 Joel Brobecker <brobecker@adacore.com>
9854
9855 * lynx-low.c (ptrace_request_to_str): Add handling for
9856 PTRACE_GETTRACESIG.
9857
9858 2012-12-17 Joel Brobecker <brobecker@adacore.com>
9859
9860 * lynx-low.c (lynx_attach): Delete variable new_process.
9861
9862 2012-12-17 Joel Brobecker <brobecker@adacore.com>
9863
9864 * lynx-low.c (lynx_create_inferior): Delete variable
9865 new_process.
9866
9867 2012-12-17 Joel Brobecker <brobecker@adacore.com>
9868
9869 * lynx-low.c (ptrace_request_to_str): Do not handle
9870 PTRACE_GETTHREADLIST if this macro does not exist.
9871
9872 2012-12-15 Yao Qi <yao@codesourcery.com>
9873
9874 * Makefile.in (OBS): Add notif.o.
9875 * notif.c, notif.h: New.
9876 * server.c: Include "notif.h".
9877 (struct vstop_notif) <next>: Remove.
9878 <base>: New field.
9879 (queue_stop_reply): Update.
9880 (push_event, send_next_stop_reply): Remove.
9881 (discard_queued_stop_replies): Update.
9882 (notif_stop): New variable.
9883 (handle_v_stopped): Remove.
9884 (handle_v_requests): Don't call handle_v_stopped. Call
9885 handle_ack_notif instead.
9886 (queue_stop_reply_callback): Call notif_event_enque instead
9887 of queue_stop_reply.
9888 (handle_status): Don't call send_next_stop_reply, call
9889 notif_write_event instead.
9890 (kill_inferior_callback): Likewise.
9891 (detach_or_kill_inferior_callback): Likewise.
9892 (main): Call initialize_notif.
9893 (process_serial_event): Call QUEUE_is_empty.
9894 (handle_target_event): Call notif_push instead of push event.
9895 * server.h (push_event): Remove declaration.
9896
9897 2012-12-10 Tom Tromey <tromey@redhat.com>
9898
9899 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
9900 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
9901 macros.
9902 (.c.o): Rewrite.
9903 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
9904 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
9905 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
9906 (amd64-linux-ipa.o, ax.o): Rewrite.
9907 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
9908 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
9909 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
9910 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
9911 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
9912 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
9913 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
9914 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
9915 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
9916 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
9917 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
9918 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
9919 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
9920 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
9921 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
9922 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
9923 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
9924 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
9925 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
9926 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
9927 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
9928 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
9929 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
9930 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
9931 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
9932 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
9933 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
9934 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
9935 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
9936 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
9937 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
9938 (reg-tilegx.o): Remove.
9939 (all_object_files): New macro.
9940 Include .deps files.
9941 * aclocal.m4, configure: Rebuild.
9942 * acinclude.m4: Include depstand.m4, lead-dot.m4.
9943 * configure.ac: Invoke ZW_CREATE_DEPDIR,
9944 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
9945
9946 2012-12-05 Tom Tromey <tromey@redhat.com>
9947
9948 PR gdb/14917:
9949 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
9950
9951 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
9952
9953 * configure.ac: Check for linux/perf_event.h.
9954 * config.in: Regenerated.
9955 * configure: Regenerated.
9956
9957 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
9958
9959 * hostio.c (handle_readlink): Decrease buffer size
9960 parameter passed to readlink by one byte.
9961
9962 2012-11-26 Yao Qi <yao@codesourcery.com>
9963
9964 * configure.ac (build_warnings): Append '-Wempty-body'.
9965 * configure: Regenerated.
9966 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
9967 body.
9968
9969 2012-11-15 Pierre Muller <muller@sourceware.org>
9970
9971 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
9972 * config.in: Regenerate.
9973 * configure: Regenerate.
9974 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
9975 Use "gdb_wait.h" header instead of <sys/wait.h> header.
9976 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
9977 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
9978 header.
9979 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
9980 instead of <sys/wait.h> header.
9981 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
9982
9983 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
9984
9985 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
9986 (various make rules): Remove -DGDBSERVER
9987
9988 2012-11-09 Yao Qi <yao@codesourcery.com>
9989
9990 * spu-low.c (current_ptid): Move it to ..
9991 * gdbthread.h: ... here. New.
9992 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
9993 * server.c (myresume, process_serial_event): Likewise.
9994 * thread-db.c (thread_db_find_new_threads): Likewise.
9995 * tracepoint.c (run_inferior_command): Likewise.
9996
9997 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
9998
9999 * server.c (handle_search_memory_1): Include access length in
10000 warning message.
10001
10002 2012-09-05 Michael Brandt <michael.brandt@axis.com>
10003
10004 * linux-crisv32-low.c: Fix compile errors.
10005
10006 2012-09-04 Yao Qi <yao@codesourcery.com>
10007
10008 * tracepoint.c (cmd_qtsv): Adjust debug message.
10009 Don't check CUR_TPOINT.
10010
10011 2012-08-28 Yao Qi <yao@codesourcery.com>
10012
10013 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
10014 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
10015 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
10016 Remove declarations of xmalloc, xreallloc, xstrdup and
10017 freeargv.
10018 * Makefile.in (libiberty_h): New.
10019 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
10020 (linux-bfin-low.o): Append dependency 'libiberty.h'.
10021
10022 2012-08-23 Yao Qi <yao@codesourcery.com>
10023
10024 * server.h: Remove declaration of 'xsnprintf'.
10025
10026 2012-08-22 Keith Seitz <keiths@redhat.com>
10027
10028 * server.h: Include build-gnulib-gbserver/config.h.
10029 * gdbreplay.c: Likewise.
10030
10031 2012-08-08 Doug Evans <dje@google.com>
10032
10033 * Makefile.in (SFILES): Add gdb_vecs.c.
10034 (OBS): Add gdb_vecs.o.
10035 (gdb_vecs_h, host_defs_h): New variables.
10036 (thread-db.o): Add $(gdb_vecs_h) dependency.
10037 (gdb_vecs.o): New rule.
10038 * thread-db.c: #include "gdb_vecs.h".
10039 (thread_db_load_search): Use a vector to iterate over path elements.
10040 Handle text appearing after "$pdir".
10041
10042 * configure.ac: Add check for strstr.
10043 * config.in: Regenerate.
10044 * configure: Regenerate.
10045
10046 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10047
10048 * hostio.c (handle_pread): If pread fails, fall back to attempting
10049 lseek/read.
10050 (handle_pwrite): Likewise for pwrite.
10051
10052 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
10053
10054 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
10055 between unsupported TYPE and unimplementable ADDR/LEN combination.
10056 (arm_insert_point): Act on new return value.
10057
10058 2012-07-31 Pedro Alves <palves@redhat.com>
10059
10060 * server.c (process_point_options): Only skip tokens if we find
10061 one that is unrecognized. Don't treat 'X' specially while
10062 skipping unrecognized tokens.
10063
10064 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
10065
10066 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
10067 to 4-byte-align HW breakpoint addresses for Thumb.
10068
10069 2012-07-27 Yao Qi <yao@codesourcery.com>
10070
10071 PR remote/14161.
10072
10073 * server.h: Declare gdb_agent_about_to_close.
10074 * target.c (kill_inferior): Include "agent.h".
10075 New. Send command 'kill'.
10076 * target.h (kill_inferior): Removed macro.
10077 * tracepoint.c (gdb_agent_about_to_close): New.
10078 (gdb_agent_helper_thread): Handle command 'close'.
10079 Wait endlessly until the inferior stops.
10080 Install gdb_agent_remove_socket to atexit hook.
10081 (agent_socket_name): New static variable.
10082 (gdb_agent_socket_init): Replace local variable 'name' with
10083 'agent_socket_name'.
10084 (gdb_agent_remove_socket): New.
10085
10086 2012-07-27 Yao Qi <yao@codesourcery.com>
10087
10088 * server.c (process_point_options): Stop at 'X' when parsing.
10089
10090 2012-07-19 Michael Eager <eager@eagercon.com>
10091
10092 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
10093 to hw_execute.
10094 * linux-x86-low.c (x86_insert_point, x86_remove_point):
10095 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
10096 hardware breakpoint.
10097
10098 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
10099
10100 * gdbserver/linux-low.c (initialize_low): Call
10101 linux_ptrace_init_warnings.
10102
10103 2012-07-02 Doug Evans <dje@google.com>
10104
10105 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
10106 pointer to int.
10107
10108 2012-07-02 Stan Shebs <stan@codesourcery.com>
10109
10110 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
10111 (ax.o): Add it to build rule.
10112 (ax-ipa.o): Ditto.
10113 (OBS): Add format.o.
10114 (IPA_OBS): Add format.o.
10115 * server.c (handle_query): Claim support for breakpoint commands.
10116 (process_point_options): Add command case.
10117 (process_serial_event): Leave running if there are printfs in
10118 effect.
10119 * mem-break.h (any_persistent_commands): Declare.
10120 (add_breakpoint_commands): Declare.
10121 (gdb_no_commands_at_breakpoint): Declare.
10122 (run_breakpoint_commands): Declare.
10123 * mem-break.c (struct point_command_list): New struct.
10124 (struct breakpoint): New field command_list.
10125 (any_persistent_commands): New function.
10126 (add_commands_to_breakpoint): New function.
10127 (add_breakpoint_commands): New function.
10128 (gdb_no_commands_at_breakpoint): New function.
10129 (run_breakpoint_commands): New function.
10130 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
10131 locally.
10132 * ax.c: Include format.h.
10133 (ax_printf): New function.
10134 (gdb_eval_agent_expr): Add printf opcode.
10135
10136 2012-06-13 Yao Qi <yao@codesourcery.com>
10137
10138 * server.c (start_inferior): Remove duplicated writes to fields
10139 'last_resume_kind' and 'last_status' of 'current_inferior'.
10140
10141 2012-06-12 Yao Qi <yao@codesourcery.com>
10142 Pedro Alves <palves@redhat.com>
10143
10144 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
10145 comment.
10146 * server.c (handle_v_cont): Extend comment.
10147
10148 2012-06-11 Yao Qi <yao@codesourcery.com>
10149
10150 * linux-low.c (linux_attach): Add 'static'.
10151
10152 2012-06-06 Yao Qi <yao@codesourcery.com>
10153
10154 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
10155
10156 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10157
10158 Fix gcc -flto compilation warning.
10159 * server.c (main): Make variable multi_mode and attach volatile.
10160
10161 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10162
10163 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
10164 if the platform doesn't know about it.
10165
10166 2012-05-30 Jeff Kenton <jkenton@tilera.com>
10167
10168 * Makefile.in (SFILES): Add linux-tile-low.c.
10169 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
10170 * configure.srv: Handle tilegx-*-linux*.
10171 * linux-tile-low.c: New file.
10172
10173 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10174
10175 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
10176
10177 2012-05-24 Pedro Alves <palves@redhat.com>
10178
10179 PR gdb/7205
10180
10181 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
10182
10183 2012-05-24 Pedro Alves <palves@redhat.com>
10184
10185 PR gdb/7205
10186
10187 Replace target_signal with gdb_signal throughout.
10188
10189 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
10190
10191 * linux-low.c (linux_store_registers): Avoid the copying sequence
10192 when no data has been retrieved by ptrace.
10193
10194 2012-05-22 Will Deacon <will.deacon@arm.com>
10195
10196 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
10197 Include asm/ptrace.h.
10198 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
10199 already defined.
10200
10201 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
10202
10203 * linux-low.c (linux_store_registers): Don't re-retrieve data
10204 with ptrace that has already been obtained from /proc. Always
10205 copy any data retrieved with ptrace to the buffer supplied.
10206
10207 2012-05-11 Yao Qi <yao@codesourcery.com>
10208 Pedro Alves <palves@redhat.com>
10209
10210 * linux-low.c (enum stopping_threads_kind): New.
10211 (stopping_threads): Change type to `enum stopping_threads_kind'.
10212 (handle_extended_wait): If stopping and suspending threads, leave
10213 the new_lwp suspended too.
10214 (linux_wait_for_event): Adjust.
10215 (stop_all_lwps): Set `stopping_threads' to
10216 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
10217 whether we're suspending threads or just stopping them. Assert no
10218 recursion happens.
10219
10220 2012-04-29 Yao Qi <yao@codesourcery.com>
10221
10222 * server.h: Move some code to ...
10223 * gdbthread.h: ... here. New.
10224 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
10225 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
10226 (nto-low.o, win32-low.o): Likewise.
10227 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
10228 * regcache.c, remote-utils.c, server.c: Likewise.
10229 * target.c, tracepoint.c, win32-low.c: Likewise.
10230
10231 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10232
10233 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
10234 (PTRACE_ARG4_TYPE): Likewise.
10235 (PTRACE_XFER_TYPE): Likewise.
10236 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
10237 ptrace to PTRACE_ARG3_TYPE.
10238 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
10239 (PTRACE_ARG4_TYPE): Likewise.
10240 (PTRACE_XFER_TYPE): Likewise.
10241 (linux_detach_one_lwp): Cast fourth argument of
10242 ptrace to long then PTRACE_ARG4_TYPE.
10243 (regsets_fetch_inferior_registers): Cast third argument of
10244 ptrace to long then PTRACE_ARG3_TYPE.
10245 (regsets_store_inferior_registers): Likewise.
10246
10247 2012-04-20 Pedro Alves <palves@redhat.com>
10248
10249 * configure: Regenerate.
10250
10251 2012-04-19 Pedro Alves <palves@redhat.com>
10252
10253 * Makefile.in (GNULIB_BUILDDIR): New.
10254 (LIBGNU, INCGNU, GNULIB_H): Adjust.
10255 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
10256 (all, install-only, uninstall, clean-info, all-lib, clean): No
10257 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
10258 (maintainer-clean realclean distclean): Use subdir_do.
10259 (subdir_do): New.
10260 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
10261 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
10262 * acinclude.m4: Include acx_configure_dir.m4.
10263 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
10264 calls. Call AC_PROG_RANLIB. Configure gnulib using
10265 ACX_CONFIGURE_DIR.
10266 (GNULIB): New.
10267 (GNULIB_STDINT_H): Adjust.
10268 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
10269 * gdbreplay.c: Include build-gnulib/config.h.
10270 * server.h: Likewise.
10271 * aclocal.m4: Regenerate.
10272 * config.in: Regenerate.
10273 * configure: Regenerate.
10274
10275 2012-04-19 Pedro Alves <palves@redhat.com>
10276
10277 * Makefile.in (LIBGNU, INCGNU): Adjust.
10278 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
10279 (all, install-only, uninstall, clean-info, all-lib, clean)
10280 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
10281 * configure.ac: Adjust AC_OUTPUT output.
10282 * aclocal.m4: Regenerate.
10283 * configure: Regenerate.
10284
10285 2012-04-19 Pedro Alves <palves@redhat.com>
10286
10287 * Makefile.in (generated_files): New.
10288 (server_h): Remove the explicit dependency on config.h, and depend
10289 on $generated_files.
10290
10291 2012-04-19 Pedro Alves <palves@redhat.com>
10292
10293 * Makefile.in (INCGNU): Add -Ignulib.
10294
10295 2012-04-19 Pedro Alves <palves@redhat.com>
10296
10297 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
10298 (INCGNU): ... this, and spell out -I here.
10299 (GNULIB_LIB): Rename to ...
10300 (LIBGNU): ... this.
10301 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
10302
10303 2012-04-19 Pedro Alves <palves@redhat.com>
10304
10305 * config.in: Regenerate.
10306
10307 2012-04-19 Pedro Alves <palves@redhat.com>
10308
10309 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
10310 * server.h (memmem): Remove declaration.
10311 * config.in: Regenerate.
10312 * configure: Regenerate.
10313
10314 2012-04-19 Yao Qi <yao@codesourcery.com>
10315
10316 * Makefile.in (SFILES): Add common/vec.c.
10317 (OBS): Add vec.o.
10318 (vec.o): New rule.
10319
10320 2012-04-19 Yao Qi <yao@codesourcery.com>
10321
10322 * remote-utils.c (prepare_resume_reply): Replace with macro
10323 target_core_of_thread.
10324 * server.c (handle_qxfer_threads_proper): Likewise.
10325 * target.h (traget_core_of_thread): New macro.
10326
10327 2012-04-18 Pedro Alves <palves@redhat.com>
10328
10329 * aclocal.m4: Regenerate.
10330 * configure: Regenerate.
10331
10332 2012-04-16 Yao Qi <yao@codesourcery.com>
10333
10334 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
10335 duplicated on address.
10336
10337 2012-04-16 Yao Qi <yao@codesourcery.com>
10338
10339 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
10340 (struct tracepoint_action_ops) <send>: New field.
10341 (m_tracepoint_action_send, r_tracepoint_action_send): New.
10342 (agent_expr_send, x_tracepoint_action_send): New.
10343 (l_tracepoint_action_send): New.
10344 (cmd_qtdp): Download and install tracepoint
10345 according to `use_agent'.
10346 (run_inferior_command): Add one more parameter `len'.
10347 Update callers.
10348 (tracepoint_send_agent): New.
10349 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
10350
10351 2012-04-16 Yao Qi <yao@codesourcery.com>
10352
10353 * tracepoint.c (download_tracepoints): Moved to ...
10354 (cmd_qtstart): ... here.
10355
10356 2012-04-14 Yao Qi <yao@codesourcery.com>
10357
10358 * tracepoint.c: Include inttypes.h.
10359 (struct collect_memory_action): Use sized types.
10360 (struct tracepoint): Likewise.
10361 (cmd_qtdp, stop_tracing): Update print specifiers.
10362 (cmd_qtp, response_tracepoint): Likewise.
10363 (collect_data_at_tracepoint): Likewise.
10364 (collect_data_at_step): Likewise.
10365
10366 2012-04-14 Yao Qi <yao@codesourcery.com>
10367
10368 Import gnulib module inttypes.
10369 * aclocal.m4, config.in, configure: Regenerated.
10370
10371 2012-04-14 Yao Qi <yao@codesourcery.com>
10372
10373 * Makefile.in (maintainer-clean, realclean, distclean): Remove
10374 Makefile and config.status at last.
10375
10376 2012-04-13 Yao Qi <yao@codesourcery.com>
10377
10378 * tracepoint.c: Include stdint.h unconditionally.
10379
10380 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10381
10382 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
10383 on BFD_HAVE_SYS_PROCFS_TYPE.
10384 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
10385 * configure: Regenerate.
10386 * config.in: Likewise.
10387
10388 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
10389
10390 * Makefile.in (clean): Also remove x32.c x32-linux.c
10391 x32-avx.c x32-avx-linux.c.
10392 (x32.o): New target.
10393 (x32.c): Likewise.
10394 (x32-linux.o): Likewise.
10395 (x32-linux.c): Likewise.
10396 (x32-avx.o): Likewise.
10397 (x32-avx.c): Likewise.
10398 (x32-avx-linux.o): Likewise.
10399 (x32-avx-linux.c): Likewise.
10400
10401 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
10402 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
10403 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
10404 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
10405 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
10406 i386/x32-avx-linux.xml.
10407
10408 * linux-x86-low.c (init_registers_x32_linux): New prototype.
10409 (init_registers_x32_avx_linux): Likwise.
10410 (x86_linux_update_xmltarget): Call init_registers_x32_linux
10411 or init_registers_x32_avx_linux if linux_is_elf64 is false.
10412
10413 2012-04-13 Pedro Alves <palves@redhat.com>
10414
10415 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
10416 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
10417 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
10418 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
10419 the sub-make.
10420
10421 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
10422
10423 * linux-x86-low.c (compat_x32_clock_t): New.
10424 (compat_x32_siginfo_t): Likewise.
10425 (compat_x32_siginfo_from_siginfo): Likewise.
10426 (siginfo_from_compat_x32_siginfo): Likewise.
10427 (linux_is_elf64): Likewise.
10428 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
10429 and siginfo_from_compat_x32_siginfo for x32.
10430 (x86_arch_setup): Set linux_is_elf64.
10431
10432 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
10433
10434 PR gdb/13969
10435 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
10436 e_machine field.
10437 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
10438 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
10439 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
10440 compatible with process.
10441
10442 2012-04-12 Yao Qi <yao@codesourcery.com>
10443
10444 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
10445 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
10446 (install-only, install-info, clean): Handle sub dir gnulib.
10447 (all-lib, am--refresh): New targets.
10448 (memmem.o): Remove target.
10449 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
10450 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
10451 (AC_REPLACE_FUNCS): Remove memmem.
10452 Invoke gl_INIT and AM_INIT_AUTOMAKE.
10453 (AC_OUTPUT): Generate Makefile in gnulib/.
10454 * aclocal.m4, config.in, configure: Regenerated.
10455
10456 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
10457
10458 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
10459
10460 2012-04-05 Pedro Alves <palves@redhat.com>
10461
10462 -Werror=strict-aliasing
10463
10464 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
10465 pointer.
10466
10467 2012-04-04 Pedro Alves <palves@redhat.com>
10468
10469 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
10470 (sparc_store_gregset_from_stack, sparc_store_gregset)
10471 (sparc_breakpoint_at): Fix formatting.
10472
10473 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10474
10475 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
10476 are available.
10477 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
10478 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
10479 * config.in: Regenerate.
10480 * configure: Likewise.
10481
10482 2012-03-29 Pedro Alves <palves@redhat.com>
10483
10484 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
10485 Correct ptrace arguments.
10486
10487 2012-03-28 Pedro Alves <palves@redhat.com>
10488
10489 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
10490 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
10491 (IA64_FR1_REGNUM): New defines.
10492 (ia64_fetch_register): New.
10493 (the_low_target): Install it.
10494 * linux-low.h (struct linux_target_ops) <fetch_register>: New
10495 field.
10496 * linux-low.c (linux_fetch_registers): Try the
10497 the_low_target.fetch_register hook first.
10498
10499 * linux-arm-low.c (the_low_target): Adjust.
10500 * linux-bfin-low.c (the_low_target): Adjust.
10501 * linux-cris-low.c (the_low_target): Adjust.
10502 * linux-crisv32-low.c (the_low_target): Adjust.
10503 * linux-m32r-low.c (the_low_target): Adjust.
10504 * linux-m68k-low.c (the_low_target): Adjust.
10505 * linux-mips-low.c (the_low_target): Adjust.
10506 * linux-ppc-low.c (the_low_target): Adjust.
10507 * linux-s390-low.c (the_low_target): Adjust.
10508 * linux-sh-low.c (the_low_target): Adjust.
10509 * linux-sparc-low.c (the_low_target): Adjust.
10510 * linux-tic6x-low.c (the_low_target): Adjust.
10511 * linux-x86-low.c (the_low_target): Adjust.
10512 * linux-xtensa-low.c (the_low_target): Adjust.
10513
10514 2012-03-26 Pedro Alves <palves@redhat.com>
10515
10516 * server.c (handle_qxfer_libraries): Don't bail early if
10517 the_target->qxfer_libraries_svr4 is not NULL.
10518
10519 2012-03-26 Pedro Alves <palves@redhat.com>
10520
10521 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
10522
10523 2012-03-23 Pedro Alves <palves@redhat.com>
10524
10525 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
10526 "library-list-svr4" element's start tag when the the DSO list is
10527 empty.
10528
10529 2012-03-23 Pedro Alves <palves@redhat.com>
10530
10531 * linux-low.c (read_one_ptr): Read the inferior's pointer through
10532 a variable whose type size is the same as the inferior's pointer
10533 size.
10534
10535 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
10536
10537 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
10538 struct siginfo.
10539 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
10540 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
10541 * linux-low.h: Include <signal.h>.
10542 (struct siginfo): Remove forward declaration.
10543 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
10544 struct siginfo.
10545
10546 2012-03-21 Mike Frysinger <vapier@gentoo.org>
10547
10548 * .gitignore: Ignore more files.
10549
10550 2012-03-19 Pedro Alves <palves@redhat.com>
10551 Jan Kratochvil <jan.kratochvil@redhat.com>
10552
10553 * server.c (cont_thread, general_thread): Add describing comments.
10554 (start_inferior): Clear `cont_thread'.
10555 (handle_v_cont): Don't set `cont_thread' if resuming all threads
10556 of a process.
10557
10558 2012-03-15 Yao Qi <yao@codesourcery.com>
10559
10560 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
10561 handling to ...
10562 (cmd_qtdp): ... here.
10563
10564 2012-03-15 Yao Qi <yao@codesourcery.com>
10565
10566 * tracepoint.c (struct tracepoint_action_ops): New.
10567 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
10568 (m_tracepoint_action_download): New.
10569 (r_tracepoint_action_download): New.
10570 (x_tracepoint_action_download): New.
10571 (l_tracepoint_action_download): New.
10572 (add_tracepoint_action): Install `action->ops' according type.
10573 (download_tracepoint_1): Move code `download' function pointer
10574 of various tracepoint_action_ops.
10575
10576 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10577
10578 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
10579 linux_ptrace_attach_warnings.
10580
10581 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10582
10583 * Makefile.in (linux-ptrace.o): New.
10584 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
10585 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
10586 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
10587 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
10588 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
10589 of these targets.
10590 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
10591
10592 2012-03-08 Yao Qi <yao@codesourcery.com>
10593 Pedro Alves <palves@redhat.com>
10594
10595 Fix PR server/13392.
10596 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
10597 offset of JMP insn.
10598 * tracepoint.c (remove_tracepoint): New.
10599 (cmd_qtdp): Call remove_tracepoint when failed to install.
10600
10601 2012-03-07 Pedro Alves <palves@redhat.com>
10602
10603 * linux-low.c (get_detach_signal): New.
10604 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
10605 Pass on pending signals to PTRACE_DETACH. Check the result of the
10606 ptrace call.
10607 * server.c (program_signals, program_signals_p): New.
10608 (handle_general_set): Handle QProgramSignals.
10609 * server.h (program_signals, program_signals_p): Declare.
10610
10611 2012-03-05 Pedro Alves <palves@redhat.com>
10612 Jan Kratochvil <jan.kratochvil@redhat.com>
10613
10614 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
10615 New comment why.
10616
10617 2012-03-03 Yao Qi <yao@codesourcery.com>
10618
10619 * tracepoint.c (tracepoint_look_up_symbols): Update call to
10620 agent_look_up_symbols.
10621
10622 2012-03-03 Yao Qi <yao@codesourcery.com>
10623
10624 * Makefile.in (linux-low.o): Keep dependence on agent.h.
10625 (linux-x86-low.o): Likewise.
10626 * server.h: Remove in_process_agent_loaded.
10627 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
10628 common/agent.c.
10629 Update callers.
10630
10631 2012-03-03 Yao Qi <yao@codesourcery.com>
10632
10633 * tracepoint.c (gdb_agent_capability): New global.
10634 (in_process_agent_loaded_ust): Renamed to
10635 `in_process_agent_supports_ust'.
10636 Update callers.
10637 (in_process_agent_supports_ust): Call agent_capability_check.
10638 (clear_installed_tracepoints): Assert that agent supports
10639 agent.
10640
10641 2012-03-03 Yao Qi <yao@codesourcery.com>
10642
10643 * linux-low.c (linux_supports_agent): New.
10644 (linux_target_ops): Initialize field `supports_agent' with
10645 linux_supports_agent.
10646 * target.h (struct target_ops) <supports_agent>: New.
10647 (target_supports_agent): New macro.
10648 * server.c (handle_general_set): Handle packet 'QAgent'.
10649 (handle_query): Send `QAgent+'.
10650 * Makefile.in (server.o): Depends on agent.h.
10651
10652 2012-03-03 Yao Qi <yao@codesourcery.com>
10653
10654 * Makefile.in (OBS): Add agent.o.
10655 Add new rule for agent.o.
10656 Track dependence of tracepoint.c on agent.h.
10657 * tracepoint.c (run_inferior_command_1):
10658 (run_inferior_command): Call agent_run_command.
10659 (gdb_ust_connect_sync_socket): Deleted. Move it to
10660 common/agent.c.
10661 (resume_thread, stop_thread): Likewise.
10662 (gdb_ust_socket_init): Renamed to ...
10663 (gdb_agent_socket_init): ... New.
10664 (gdb_ust_thread): Renamed to ...
10665 (gdb_agent_helper_thread): ... New.
10666 (gdb_ust_init): Move some code to ...
10667 (gdb_agent_init): ... here. New.
10668 [HAVE_UST]: Call gdb_ust_init.
10669 (initialize_tracepoint_ftlib): Call gdb_agent_init.
10670 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
10671 * config.in, configure: Regenerated.
10672
10673 2012-03-02 Pedro Alves <palves@redhat.com>
10674
10675 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
10676 * linux-low.c (struct simple_pid_list): New.
10677 (stopped_pids): New a struct simple_pid_list pointer.
10678 (add_to_pid_list, pull_pid_from_list): New.
10679 (handle_extended_wait): Don't assume the first signal new children
10680 report is SIGSTOP. Adjust call to pull_pid_from_list.
10681 (linux_wait_for_lwp): Adjust.
10682
10683 2012-03-02 Yao Qi <yao@codesourcery.com>
10684
10685 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
10686 debug log.
10687
10688 2012-03-02 Yao Qi <yao@codesourcery.com>
10689
10690 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
10691 `stop_pc' and `tpoint'. Update caller.
10692
10693 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10694
10695 * linux-low.h (linux_target_ops): Add regset_bitmap member.
10696 * linux-low.c (use_linux_regsets): New macro.
10697 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
10698 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
10699 (linux_register_in_regsets): New function.
10700 (usr_fetch_inferior_registers): Skip registers covered by
10701 regsets.
10702 (usr_store_inferior_registers): Likewise.
10703 (usr_fetch_inferior_registers): New macro.
10704 (usr_store_inferior_registers): Likewise.
10705 (linux_fetch_registers): Handle mixed regset/non-regset targets.
10706 (linux_store_registers): Likewise.
10707 * linux-mips-low.c (init_registers_mips_dsp_linux): New
10708 prototype.
10709 (init_registers_mips64_dsp_linux): Likewise.
10710 (init_registers_mips_linux): New macro.
10711 (init_registers_mips_dsp_linux): Likewise.
10712 (mips_dsp_num_regs): Likewise.
10713 (DSP_BASE, DSP_CONTROL): New fallback macros.
10714 (mips_base_regs): New macro.
10715 (mips_regmap): Use it. Fix the size.
10716 (mips_dsp_regmap): New variable.
10717 (mips_dsp_regset_bitmap): Likewise.
10718 (mips_arch_setup): New function.
10719 (mips_cannot_fetch_register): Use the_low_target.regmap rather
10720 than mips_regmap.
10721 (mips_cannot_store_register): Likewise.
10722 (the_low_target): Update .arch_setup, .num_regs and .regmap
10723 initializers. Add .regset_bitmap initializer.
10724 * linux-arm-low.c (the_low_target): Add .regset_bitmap
10725 initializer.
10726 * linux-bfin-low.c (the_low_target): Likewise.
10727 * linux-cris-low.c (the_low_target): Likewise.
10728 * linux-crisv32-low.c (the_low_target): Likewise.
10729 * linux-ia64-low.c (the_low_target): Likewise.
10730 * linux-m32r-low.c (the_low_target): Likewise.
10731 * linux-m68k-low.c (the_low_target): Likewise.
10732 * linux-ppc-low.c (the_low_target): Likewise.
10733 * linux-s390-low.c (the_low_target): Likewise.
10734 * linux-sh-low.c (the_low_target): Likewise.
10735 * linux-sparc-low.c (the_low_target): Likewise.
10736 * linux-tic6x-low.c (the_low_target): Likewise.
10737 * linux-x86-low.c (the_low_target): Likewise.
10738 * linux-xtensa-low.c (the_low_target): Likewise.
10739 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
10740 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
10741 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
10742 srv_xmlfiles.
10743 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
10744 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
10745
10746 2012-02-29 Yao Qi <yao@codesourcery.com>
10747 Pedro Alves <palves@redhat.com>
10748
10749 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
10750 `step_over_finished' is true.
10751
10752 2012-02-27 Pedro Alves <palves@redhat.com>
10753
10754 * linux-low.c (pid_is_stopped): Delete, moved to common/.
10755 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
10756
10757 2012-02-27 Pedro Alves <palves@redhat.com>
10758
10759 PR server/9684
10760 * linux-low.c (pid_is_stopped): New.
10761 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
10762
10763 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
10764
10765 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
10766 of conditions.
10767
10768 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10769
10770 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
10771
10772 2012-02-24 Luis Machado <lgustavo@codesourcery>
10773
10774 * server.c (handle_query): Advertise support for target-side
10775 breakpoint condition evaluation.
10776 (process_point_options): New function.
10777 (process_serial_event): When inserting a breakpoint, check for
10778 a target-side condition that should be evaluated.
10779
10780 * mem-break.c: Include regcache.h and ax.h.
10781 (point_cond_list_t): New data structure.
10782 (breakpoint) <cond_list>: New field.
10783 (find_gdb_breakpoint_at): Make non-static.
10784 (delete_gdb_breakpoint_at): Clear any target-side
10785 conditions.
10786 (clear_gdb_breakpoint_conditions): New function.
10787 (add_condition_to_breakpoint): Likewise.
10788 (add_breakpoint_condition): Likewise.
10789 (gdb_condition_true_at_breakpoint): Likewise.
10790 (gdb_breakpoint_here): Return result directly instead
10791 of going through a local variable.
10792
10793 * mem-break.h (find_gdb_breakpoint_at): New prototype.
10794 (clear_gdb_breakpoint_conditions): Likewise.
10795 (add_breakpoint_condition): Likewise.
10796 (gdb_condition_true_at_breakpoint): Likewise.
10797
10798 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
10799 (need_step_over_p): Take target-side breakpoint condition into
10800 consideration.
10801
10802 2012-02-24 Luis Machado <lgustavo@codesourcery>
10803
10804 * server.h: Include tracepoint.h.
10805 (agent_mem_read, agent_get_trace_state_variable_value,
10806 agent_set_trace_state_variable_value,
10807 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
10808 get_set_tsv_func_addr): New prototypes.
10809
10810 * ax.h: New include file.
10811 * ax.c: New source file.
10812
10813 * tracepoint.c: Include ax.h.
10814 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
10815 agent_expr, eval_result_type): Move to ax.h.
10816 (parse_agent_expr): Rename to ...
10817 (gdb_parse_agent_expr): ... this, make it non-static and move
10818 to ax.h.
10819 (unparse_agent_expr) Rename to ...
10820 (gdb_unparse_agent_expr): ... this, make it non-static and move
10821 to ax.h.
10822 (eval_agent_expr): Rename to ...
10823 (eval_tracepoint_agent_expr): ... this.
10824 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
10825 forward declarations.
10826 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
10827 (agent_get_trace_state_variable_value): New function.
10828 (agent_set_trace_state_variable_value): New function.
10829 (cmd_qtdp): Call gdb_parse_agent_expr (...).
10830 (response_tracepoint): Call gdb_unparse_agent_expr (...).
10831 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
10832 (condition_true_at_tracepoint): Likewise.
10833 (parse_agent_expr): Rename to ...
10834 (gdb_parse_agent_expr): ... this and move to ax.c.
10835 (unparse_agent_expr): Rename to ...
10836 (gdb_unparse_agent_expr): ... this and move to ax.c.
10837 (gdb_agent_op_name): Move to ax.c.
10838 (eval_agent_expr): Rename to ...
10839 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
10840 and move to ax.c.
10841 (eval_tracepoint_agent_expr): New function.
10842 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
10843 non-static.
10844 (current_insn_ptr, emit_error, struct bytecode_address): Move to
10845 ax.c.
10846 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
10847 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
10848 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
10849 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
10850 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
10851 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
10852 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
10853 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
10854 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
10855 (compile_bytecodes): Remove forward declaration.
10856 (is_goto_target): Move to ax.c.
10857 (compile_bytecodes): Move to ax.c and call
10858 agent_get_trace_state_variable_value (...) and
10859 agent_set_trace_state_variable_value (...).
10860
10861 * Makefile.in: Update ax.c and IPA dependencies.
10862
10863 2012-02-24 Pedro Alves <palves@redhat.com>
10864
10865 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
10866 (cmd_bigqtbuffer_circular): ... this. Only handle
10867 'QTBuffer:circular:'.
10868 (handle_tracepoint_general_set): Adjust.
10869
10870 2012-02-16 Yao Qi <yao@codesourcery.com>
10871
10872 * inferiors.c: Move code to ...
10873 * dll.c: .... here. New.
10874 * server.h: Declare clear_dlls.
10875 * Makefile.in (SFILES): Add dll.c.
10876 (OBS): Add dll.o
10877 (dll.o): New rule.
10878
10879 2012-02-11 Yao Qi <yao@codesourcery.com>
10880
10881 * server.c: (handle_monitor_command): Add a new parameter
10882 `own_buf'.
10883 (handle_query): Update caller.
10884
10885 2012-02-09 Joel Brobecker <brobecker@adacore.com>
10886
10887 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
10888 * configure, config.in: Regenerate.
10889 * hostio.c: Provide an alternate implementation if HAVE_READLINK
10890 is not defined.
10891
10892 2012-02-02 Pedro Alves <palves@redhat.com>
10893
10894 Try SIGKILL first, then PTRACE_KILL.
10895 * linux-low.c (linux_kill_one_lwp): New.
10896 (linux_kill_one_lwp): Rename to ...
10897 (kill_one_lwp_callback): ... this. Use the new
10898 linux_kill_one_lwp.
10899
10900 2012-02-02 Pedro Alves <palves@redhat.com>
10901
10902 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
10903 inferior.
10904
10905 2012-01-27 Pedro Alves <palves@redhat.com>
10906
10907 * linux-low.c (linux_child_pid_to_exec_file): Delete.
10908 (elf_64_file_p): Make static.
10909 (linux_pid_exe_is_elf_64_file): New.
10910 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
10911 Delete declarations.
10912 (linux_pid_exe_is_elf_64_file): Declare.
10913 * linux-x86-low.c (x86_arch_setup): Use
10914 linux_pid_exe_is_elf_64_file.
10915
10916 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10917
10918 * linux-low.c (linux_wait_for_event_1): Rename to ...
10919 (linux_wait_for_event): ... here and merge it with former
10920 linux_wait_for_event - new variable wait_ptid, use it.
10921 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
10922
10923 2012-01-23 Pedro Alves <palves@redhat.com>
10924
10925 * server.c (main): Avoid yet another case of infinite loop while
10926 detaching/killing after a longjmp.
10927
10928 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10929
10930 Code cleanup.
10931 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
10932
10933 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10934
10935 * hostio.c (handle_readlink): New function.
10936 (handle_vFile): Call it to handle "vFile:readlink" packets.
10937
10938 2012-01-20 Pedro Alves <palves@redhat.com>
10939 Ulrich Weigand <ulrich.weigand@linaro.org>
10940
10941 * server.c (handle_v_requests): Only support vAttach and vRun to
10942 start multiple processes when in extended protocol mode.
10943
10944 2012-01-17 Pedro Alves <palves@redhat.com>
10945
10946 * tracepoint.c (initialize_tracepoint): Use mmap instead of
10947 memalign plus mprotect to allocate the scratch buffer.
10948
10949 2012-01-13 Pedro Alves <palves@redhat.com>
10950
10951 * server.c (attach_inferior): Clear `cont_thread'.
10952
10953 2012-01-13 Pedro Alves <palves@redhat.com>
10954
10955 * server.c (main): Avoid infinite loop while detaching/killing
10956 after a longjmp.
10957
10958 2012-01-09 Doug Evans <dje@google.com>
10959
10960 * server.c (start_inferior): Set last_ptid in --wrapper case.
10961
10962 2012-01-06 Yao Qi <yao@codesourcery.com>
10963
10964 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
10965 defined.
10966 [IN_PROCESS_AGENT] (debug_agent): New global variable.
10967
10968 2012-01-04 Yao Qi <yao@codesourcery.com>
10969
10970 * tracepoint.c (cmd_qtdp): Print debug message
10971 for static tracepoint.
10972
10973 2012-01-04 Yao Qi <yao@codesourcery.com>
10974
10975 * tracepoint.c (trace_vdebug): Differentiate debug message
10976 between gdbserver and IPA.
10977
10978 2012-01-03 Yao Qi <yao@codesourcery.com>
10979
10980 * tracepoint.c (tracepoint_was_hit): Don't collect for
10981 static tracepoint.
10982
10983 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10984
10985 * terminal.h: Reformat copyright header.
10986
10987 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10988
10989 * server.c (gdbserver_version): Update copyright year.
10990 * gdbreplay.c (gdbreplay_version): Likewise.
10991
10992 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10993
10994 * linux-low.c (linux_create_inferior): Put empty if clause for write.
10995
10996 Revert:
10997 2011-12-18 Hui Zhu <teawater@gmail.com>
10998 * linux-low.c (linux_create_inferior): Save return value to ret.
10999
11000 2011-12-18 Hui Zhu <teawater@gmail.com>
11001
11002 * linux-low.c (linux_create_inferior): Save return value to ret.
11003
11004 2011-12-16 Doug Evans <dje@google.com>
11005
11006 * linux-low.c (linux_create_inferior): If stdio connection,
11007 redirect stdin from /dev/null, stdout to stderr.
11008 * remote-utils.c (remote_is_stdio): New static global.
11009 (remote_connection_is_stdio): New function.
11010 (remote_prepare): Handle stdio connection.
11011 (remote_open): Ditto.
11012 (remote_close): Don't close stdin for stdio connections.
11013 (read_prim,write_prim): New functions. Replace all calls to
11014 read/write to these.
11015 * server.c (main): Watch for "-" argument. Move call to
11016 remote_prepare before start_inferior.
11017 * server.h (STDIO_CONNECTION_NAME): New macro.
11018 (remote_connection_is_stdio): Declare.
11019
11020 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
11021 in debugging output.
11022
11023 2011-12-15 Yao Qi <yao@codesourcery.com>
11024
11025 * tracepoint.c: Include sys/syscall.h.
11026 (gdb_ust_thread): Remove preprocessor conditional.
11027
11028 2011-12-14 Pedro Alves <pedro@codesourcery.com>
11029
11030 * linux-low.c (linux_detach_one_lwp): Call
11031 the_low_target.prepare_to_resume before detaching.
11032
11033 2011-12-14 Yao Qi <yao@codesourcery.com>
11034
11035 * tracepoint.c (gdb_ust_thread): Don't ignore return value
11036 of write.
11037
11038 2011-12-14 Yao Qi <yao@codesourcery.com>
11039
11040 * i386-low.c (i386_low_stopped_data_address): Initialize local
11041 variable `control'.
11042
11043 2011-12-13 Pedro Alves <pedro@codesourcery.com>
11044
11045 PR remote/13492
11046
11047 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
11048 DR_CONTROL unless necessary. Extend comments.
11049 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
11050 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
11051
11052 2011-12-13 Yao Qi <yao@codesourcery.com>
11053
11054 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
11055 macros.
11056 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
11057
11058 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11059
11060 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
11061 Print new debug message for such case.
11062
11063 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
11064
11065 Fix overlapping memcpy.
11066 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
11067 the read_inferior_memory transfer.
11068 (delete_fast_tracepoint_jump): New variable buf. Use it for the
11069 write_inferior_memory transfer.
11070 (set_fast_tracepoint_jump): New variable buf. Use it for the
11071 read_inferior_memory and write_inferior_memory transfers.
11072 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
11073 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
11074 Use it for the write_inferior_memory transfer.
11075 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
11076 buffers.
11077
11078 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
11079
11080 * linux-low.c (fetch_register, store_register): Make code
11081 consistent, fix formatting.
11082
11083 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
11084
11085 * linux-low.c (usr_store_inferior_registers): Factor out code
11086 to handle individual registers into...
11087 (store_register): ... this new function.
11088
11089 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
11090
11091 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
11092 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
11093 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
11094 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
11095 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
11096 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
11097 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
11098 (srv_xmlfiles): Add new XML files.
11099
11100 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
11101 and <sys/uio.h>.
11102 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
11103 (init_registers_s390_linux32v1): Add prototype.
11104 (init_registers_s390_linux32v2): Likewise.
11105 (init_registers_s390_linux64v1): Likewise.
11106 (init_registers_s390_linux64v2): Likewise.
11107 (init_registers_s390x_linux64v1): Likewise.
11108 (init_registers_s390x_linux64v2): Likewise.
11109 (s390_num_regs): Increment to 52.
11110 (s390_regmap): Add orig_r2 register.
11111 (s390_num_regs_3264): Increment to 68.
11112 (s390_regmap_3264): Add orig_r2 register.
11113 (s390_collect_ptrace_register): Handle orig_r2 register.
11114 (s390_supply_ptrace_register): Likewise.
11115 (s390_fill_last_break): New function.
11116 (s390_store_last_break): Likewise.
11117 (s390_fill_system_call): New function.
11118 (s390_store_system_call): Likewise.
11119 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
11120 register sets.
11121 (s390_check_regset): New function.
11122 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
11123 NT_S390_SYSTEM_CALL regsets and use appropriate description.
11124 Update target_regsets for available register sets.
11125
11126 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
11127 Jan Kratochvil <jan.kratochvil@redhat.com>
11128
11129 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
11130 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
11131 New.
11132 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
11133 * linux-low.h (struct process_info_private): New member r_debug.
11134 * server.c (handle_qxfer_libraries): Call
11135 the_target->qxfer_libraries_svr4.
11136 (handle_qxfer_libraries_svr4): New function.
11137 (qxfer_packets): New entry "libraries-svr4".
11138 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
11139 * target.h (struct target_ops): New member qxfer_libraries_svr4.
11140 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
11141 PACKET_qXfer_libraries_svr4.
11142
11143 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
11144
11145 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
11146 PSW address/mask between 8-byte and 16-byte formats.
11147 (s390_supply_ptrace_register): Likewise.
11148 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
11149 basic addressing mode bit.
11150
11151 2011-11-24 Stan Shebs <stan@codesourcery.com>
11152
11153 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
11154
11155 2011-11-17 Stan Shebs <stan@codesourcery.com>
11156
11157 * tracepoint.c (struct tracepoint): New field traceframe_usage.
11158 (tracing_start_time): New global.
11159 (tracing_stop_time): New global.
11160 (tracing_user_name): New global.
11161 (tracing_notes): New global.
11162 (tracing_stop_note): New global.
11163 (cmd_qtstart): Set traceframe_usage, start_time.
11164 (stop_tracing): Set stop_time.
11165 (cmd_qtstatus): Report additional status.
11166 (cmd_qtp): New function.
11167 (handle_tracepoint_query): Call it.
11168 (cmd_qtnotes): New function.
11169 (handle_tracepoint_general_set): Call it.
11170 (get_timestamp): Rename from tsv_get_timestamp.
11171
11172 2011-11-14 Stan Shebs <stan@codesourcery.com>
11173 Kwok Cheung Yeung <kcy@codesourcery.com>
11174
11175 * linux-x86-low.c (small_jump_insn): New.
11176 (i386_install_fast_tracepoint_jump_pad): Add arguments for
11177 trampoline and error message, build a trampoline and issue a small
11178 jump instruction to it.
11179 (x86_install_fast_tracepoint_jump_pad): Add arguments for
11180 trampoline and error message.
11181 (x86_get_min_fast_tracepoint_insn_len): New.
11182 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
11183 * linux-low.h (struct linux_target_ops): Add arguments to
11184 install_fast_tracepoint_jump_pad operation, add new operation.
11185 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
11186 arguments.
11187 (linux_get_min_fast_tracepoint_insn_len): New function.
11188 (linux_target_op): Add new operation.
11189 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
11190 (gdb_trampoline_buffer_end): Ditto.
11191 (gdb_trampoline_buffer_error): Ditto.
11192 (struct ipa_sym_addresses): Add fields for new IPA variables.
11193 (symbol_list): Add entries for new IPA variables.
11194 (struct tracepoint): Add fields to hold the address range of the
11195 trampoline used by the tracepoint.
11196 (trampoline_buffer_head): New static variable.
11197 (trampoline_buffer_tail): Ditto.
11198 (claim_trampoline_space): New function.
11199 (have_fast_tracepoint_trampoline_buffer): New function.
11200 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
11201 structure.
11202 (install_fast_tracepoint): Ditto, also add error buffer argument.
11203 (cmd_qtminftpilen): New function.
11204 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
11205 (fast_tracepoint_from_trampoline_address): New function.
11206 (fast_tracepoint_collecting): Handle trampoline as part of jump
11207 pad space.
11208 (set_trampoline_buffer_space): New function.
11209 (initialize_tracepoint): Initialize new IPA variables.
11210 * target.h (struct target_ops): Add arguments to
11211 install_fast_tracepoint_jump_pad operation, add new
11212 get_min_fast_tracepoint_insn_len operation.
11213 (target_get_min_fast_tracepoint_insn_len): New.
11214 (install_fast_tracepoint_jump_pad): Add arguments.
11215 * server.h (IPA_BUFSIZ): Define.
11216 * linux-i386-ipa.c: Include extra header files.
11217 (initialize_fast_tracepoint_trampoline_buffer): New function.
11218 (initialize_low_tracepoint): Call it.
11219 * server.h (set_trampoline_buffer_space): Declare.
11220 (claim_trampoline_space): Ditto.
11221 (have_fast_tracepoint_trampoline_buffer): Ditto.
11222
11223 2011-11-14 Yao Qi <yao@codesourcery.com>
11224
11225 * server.c (handle_query): Handle InstallInTrace for qSupported.
11226 * tracepoint.c (add_tracepoint): Sort list.
11227 (install_tracepoint, download_tracepoint): New.
11228 (cmd_qtdp): Call them to install and download tracepoints.
11229 (sort_tracepoints): Removed.
11230 (cmd_qtstart): Update.
11231
11232 2011-11-14 Yao Qi <yao@codesourcery.com>
11233
11234 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
11235 * mem-break.h: Declare.
11236 * tracepoint.c (cmd_qtstart): Move some code to ...
11237 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
11238 New.
11239 (download_tracepoints): Move some code to ...
11240 (download_tracepoint_1): ... here. New.
11241
11242 2011-11-08 Yao Qi <yao@codesourcery.com>
11243
11244 * remote-utils.c (relocate_instruction): A comment fix.
11245
11246 2011-11-07 Joel Brobecker <brobecker@adacore.com>
11247
11248 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
11249 (i386_dr_low_get_control, i386_dr_low_get_status): Use
11250 dr_status_mirror and dr_control_mirror from debug_reg_state.
11251 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
11252 (i386_initial_stuff): Remove use of deleted globals.
11253 (i386_get_thread_context, i386_set_thread_context,
11254 i386_thread_added): Use dr_status_mirror and dr_control_mirror
11255 from debug_reg_state.
11256
11257 2011-11-05 Yao Qi <yao@codesourcery.com>
11258
11259 * tracepoint.c (gdb_collect): Loop over tracepoints of same
11260 address as TPOINT's.
11261
11262 2011-11-02 Stan Shebs <stan@codesourcery.com>
11263
11264 * tracepoint.c (agent_mem_read_string): New function.
11265 (eval_agent_expr): Call it for tracenz.
11266 * server.c (handle_query): Report support for tracenz.
11267
11268 2011-11-02 Yao Qi <yao@codesourcery.com>
11269
11270 * tracepoint.c (cmd_qtstart): Remove unused local variables.
11271
11272 2011-11-02 Yao Qi <yao@codesourcery.com>
11273
11274 * target.h: Fix a typo in comment.
11275
11276 2011-10-31 Pedro Alves <pedro@codesourcery.com>
11277
11278 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
11279 clobber the breakpoints' shadows with fast tracepoint jumps.
11280 * mem-break.h (check_mem_write): Add `myaddr' parameter.
11281 * target.c (write_inferior_memory): Also pass MYADDR down to
11282 check_mem_write.
11283
11284 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
11285
11286 * configure.ac: Check support for personality routine.
11287 * configure: Regenerate.
11288 * config.in: Likewise.
11289 * linux-low.c: Include <sys/personality.h>.
11290 Define ADDR_NO_RANDOMIZE if necessary.
11291 (linux_create_inferior): Disable address space randomization when
11292 forking inferior, if requested.
11293 (linux_supports_disable_randomization): New function.
11294 (linux_target_ops): Install it.
11295 * server.h (disable_randomization): Declare.
11296 * server.c (disable_randomization): New global variable.
11297 (handle_general_set): Handle QDisableRandomization.
11298 (handle_query): Likewise for qSupported.
11299 (main): Support --disable-randomization and --no-disable-randomization
11300 command line arguments.
11301 * target.h (struct target_ops): Add supports_disable_randomization.
11302 (target_supports_disable_randomization): New macro.
11303
11304 2011-09-29 Mike Frysinger <vapier@gentoo.org>
11305
11306 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
11307 ifdef check.
11308 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
11309 [!PT_GETDSBT] (target_loadmap): New definition.
11310 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
11311 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
11312 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
11313 and PT_GETDSBT to LINUX_LOADMAP.
11314 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
11315 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
11316
11317 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
11318
11319 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
11320 (arm_linux_hwbp_cap): New static variable.
11321 (arm_linux_get_hwbp_cap): Replace by ...
11322 (arm_linux_init_hwbp_cap): ... this new function.
11323 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
11324 (arm_linux_get_hw_watchpoint_count): Likewise.
11325 (arm_linux_get_hw_watchpoint_max_length): Likewise.
11326 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
11327 (arm_prepare_to_resume): Use perror_with_name instead of error.
11328
11329 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
11330
11331 * linux-arm-low.c: Include <signal.h>.
11332 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
11333 (struct arm_linux_hwbp_cap): New data type.
11334 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
11335 (struct arm_linux_hw_breakpoint): New data type.
11336 (MAX_BPTS, MAX_WPTS): Define.
11337 (struct arch_process_info, struct arch_lwp_info): New data types.
11338 (arm_linux_get_hwbp_cap): New function.
11339 (arm_linux_get_hw_breakpoint_count): Likewise.
11340 (arm_linux_get_hw_watchpoint_count): Likewise.
11341 (arm_linux_get_hw_watchpoint_max_length): Likewise.
11342 (arm_hwbp_control_initialize): Likewise.
11343 (arm_hwbp_control_is_enabled): Likewise.
11344 (arm_hwbp_control_is_initialized): Likewise.
11345 (arm_hwbp_control_disable): Likewise.
11346 (arm_linux_hw_breakpoint_equal): Likewise.
11347 (arm_linux_hw_point_initialize): Likewise.
11348 (struct update_registers_data): New data structure.
11349 (update_registers_callback: New function.
11350 (arm_insert_point): Likewise.
11351 (arm_remove_point): Likewise.
11352 (arm_stopped_by_watchpoint): Likewise.
11353 (arm_stopped_data_address): Likewise.
11354 (arm_new_process): Likewise.
11355 (arm_new_thread): Likewise.
11356 (arm_prepare_to_resume): Likewise.
11357 (the_low_target): Register arm_insert_point, arm_remove_point,
11358 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
11359 arm_new_thread, and arm_prepare_to_resume.
11360
11361 2011-09-15 Stan Shebs <stan@codesourcery.com>
11362
11363 * server.h (struct emit_ops): Add compare-goto fields.
11364 * tracepoint.c (gdb_agent_op_sizes): New table.
11365 (emit_eq_goto): New function.
11366 (emit_ne_goto): New function.
11367 (emit_lt_goto): New function.
11368 (emit_le_goto): New function.
11369 (emit_gt_goto): New function.
11370 (emit_ge_goto): New function.
11371 (is_goto_target): New function.
11372 (compile_bytecodes): Recognize special cases of compare-goto
11373 combinations and call specialized emitters for them.
11374 * linux-x86-low.c (amd64_emit_eq_goto): New function.
11375 (amd64_emit_ne_goto): New function.
11376 (amd64_emit_lt_goto): New function.
11377 (amd64_emit_le_goto): New function.
11378 (amd64_emit_gt_goto): New function.
11379 (amd64_emit_ge_goto): New function.
11380 (amd64_emit_ops): Add the new functions.
11381 (i386_emit_eq_goto): New function.
11382 (i386_emit_ne_goto): New function.
11383 (i386_emit_lt_goto): New function.
11384 (i386_emit_le_goto): New function.
11385 (i386_emit_gt_goto): New function.
11386 (i386_emit_ge_goto): New function.
11387 (i386_emit_ops): Add the new functions.
11388
11389 2011-09-08 Stan Shebs <stan@codesourcery.com>
11390
11391 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
11392 (i386_emit_epilogue): Restore %ebx.
11393
11394 2011-08-31 Jie Zhang <jzhang918@gmail.com>
11395
11396 * server.c (step_thread): Remove definition.
11397 (process_serial_event): Don't handle Hs.
11398 * server.h (step_thread): Remove declaration.
11399 * target.c (set_desired_inferior): Remove use of step_thread.
11400
11401 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
11402
11403 * linux-low.c: Include linux-procfs.h.
11404 (linux_attach_lwp_1): Update comments.
11405 (linux_attach): Scan for existing threads when attaching to a
11406 process that is the tgid.
11407 * Makefile.in: Update dependencies.
11408
11409 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
11410
11411 * configure.srv: Add linux-procfs.o dependencies.
11412
11413 2011-08-14 Yao Qi <yao@codesourcery.com>
11414
11415 * target.h (struct target_ops): Fix indent.
11416 * win32-low.c (win32_target_ops): Fix comment.
11417
11418 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
11419 Yao Qi <yao@codesourcery.com>
11420
11421 * Makefile.in (clean): Remove tic6x-*.c files.
11422 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
11423 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
11424 (tic6x-c64xp-linux.c): Likewise.
11425 * configure.srv: Add support for tic6x-*-uclinux.
11426 * linux-tic6x-low.c: New.
11427 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
11428
11429 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
11430 Yao Qi <yao@codesourcery.com>
11431
11432 * target.h (struct target_ops): Add read_loadmap.
11433 * linux-low.c (struct target_loadseg): New type.
11434 (struct target_loadmap): New type.
11435 (linux_read_loadmap): New function.
11436 (linux_target_ops): Add linux_read_loadmap.
11437 * server.c (handle_query): Support qXfer:fdpic:read packet.
11438 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
11439 to NULL.
11440
11441 2011-08-05 Eli Zaretskii <eliz@gnu.org>
11442
11443 * win32-low.c: Include <stdint.h>.
11444
11445 2011-07-22 Pedro Alves <pedro@codesourcery.com>
11446
11447 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
11448 to the inferior here.
11449 (i386_remove_aligned_watchpoint): Ditto.
11450 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
11451 fit part of the watchpoint in the debug registers.
11452 (i386_update_inferior_debug_regs): New.
11453 (i386_low_insert_watchpoint): Work on a local mirror of the debug
11454 registers, and only update the inferior on success.
11455 (i386_low_remove_watchpoint): Ditto.
11456
11457 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
11458
11459 * linux-low.c (compare_ints, unique, list_threads, show_process,
11460 linux_core_of_thread): Delete.
11461 (linux_target_ops): Change linux_core_of_thread to
11462 linux_common_core_of_thread.
11463 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
11464 * utils.c (malloc_failure): Change type of argument.
11465 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
11466 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
11467 common/linux-osdata.c, common/ptid.c and common/buffer.c.
11468 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
11469 (IPA_OBJS): Add common-utils-ipa.o.
11470 (ptid_h, linux_osdata_h): New macros.
11471 (server_h): Add common/common-utils.h, common/xml-utils.h,
11472 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
11473 common/ptid.h.
11474 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
11475 ptid.o, buffer.o): New rules.
11476 (linux-low.o): Add common/linux-osdata.h as a dependency.
11477 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
11478 * configure.ac: Add AC_HEADER_DIRENT check.
11479 * config.in: Regenerate.
11480 * configure: Regenerate.
11481 * remote-utils.c (xml_escape_text): Delete.
11482 (buffer_grow, buffer_free, buffer_init, buffer_finish,
11483 buffer_xml_printf): Move to common/buffer.c.
11484 * server.c (main): Remove call to initialize_inferiors.
11485 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
11486 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
11487 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
11488 internal_error, gdb_assert, gdb_assert_fail): Delete.
11489 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
11490 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
11491 common/buffer.h.
11492 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
11493 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
11494 initialize_inferiors): Delete.
11495
11496 2011-07-20 Pedro Alves <pedro@codesourcery.com>
11497
11498 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
11499 symbol error.
11500
11501 2011-05-31 Pedro Alves <pedro@codesourcery.com>
11502
11503 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
11504 assertion.
11505 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
11506
11507 2011-05-26 Yao Qi <yao@codesourcery.com>
11508
11509 * Makefile.in (thread-db.o): Track dependence to
11510 common/gdb_thread_db.h.
11511 * thread-db.c: include gdb_thread_db.h from right place.
11512
11513 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
11514
11515 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
11516 __FILE__ and __LINE__ to internal_error.
11517
11518 2011-05-13 Doug Evans <dje@google.com>
11519
11520 * thread-db.c (try_thread_db_load_from_sdir): New function.
11521 (try_thread_db_load_from_dir): New function.
11522 (thread_db_load_search): Handle $sdir, ignore $pdir.
11523 Remove trying of system directories if search of
11524 libthread-db-search-path fails, that is now done via $sdir.
11525
11526 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
11527
11528 * server.c (handle_query): Add EnableDisableTracepoints to the list
11529 of supported features.
11530 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
11531 tracepoints.
11532 (cmd_qtenable_disable): New.
11533 (cmd_qtstart): Install tracepoints even if disabled.
11534 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
11535 receiving a QTEnable or QTDisable packet.
11536 (gdb_collect): Skip data collection if fast tracepoint is disabled.
11537 (ust_marker_to_static_tracepoint): Do not ignore disabled static
11538 tracepoints.
11539 (gdb_probe): Skip data collection if static tracepoint is disabled.
11540
11541 2011-05-10 Doug Evans <dje@google.com>
11542
11543 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
11544
11545 2011-05-04 Doug Evans <dje@google.com>
11546
11547 * linux-low.c (linux_join): Skip process lookup.
11548 * spu-low.c (spu_join): Ditto.
11549 * server.c (join_inferiors_callback): Delete.
11550 (process_serial_event): For 'D' packet (detach) call join_inferior
11551 directly.
11552
11553 2011-05-04 Joseph Myers <joseph@codesourcery.com>
11554
11555 * README: Don't mention xscale*-*-linux*.
11556 * configure.srv (xscale*-*-linux*): Don't handle target.
11557
11558 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
11559
11560 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
11561 casting pointers.
11562 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
11563 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
11564 (i386_emit_void_call_2): Likewise.
11565
11566 2011-04-26 Yao Qi <yao@codesourcery.com>
11567
11568 * linux-low.c: Move common macros to linux-ptrace.h.
11569 Include linux-ptrace.h.
11570 * Makefile.in (linux_ptrace_h): New.
11571 (linux-low.o): Depends on linux-ptrace.h.
11572
11573 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11574
11575 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
11576 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
11577 (remote_prepare): New function with most of the TCP code from ...
11578 (remote_open): ... here. Detect PORT here unconditionally. Move also
11579 setting transport_is_reliable.
11580 * server.c (run_once): New variable.
11581 (gdbserver_usage): Document it.
11582 (main): Set run_once for `--once'. Call remote_prepare. Exit after
11583 the first run if RUN_ONCE.
11584 * server.h (run_once, remote_prepare): New declarations.
11585
11586 2011-04-19 Tom Tromey <tromey@redhat.com>
11587
11588 * win32-low.c (handle_load_dll): Remove duplicate "the".
11589
11590 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
11591
11592 Remove support for old Cygwin 1.5 versions.
11593 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
11594 function to avoid warning.
11595 (win32_add_one_solib): Use cygwin_conv_path function to avoid
11596 warning.
11597
11598 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
11599
11600 * gdbserver/server.h (Macro _): Define it if not available.
11601
11602 2011-03-14 Michael Snyder <msnyder@vmware.com>
11603
11604 * hostio.c (handle_close): Remove unnecessary null test.
11605
11606 2011-03-10 Joel Brobecker <brobecker@adacore.com>
11607
11608 * Makefile.in (maintainer-clean realclean distclean): Remove
11609 "make ... subdir_do" command.
11610
11611 2011-03-10 Michael Snyder <msnyder@vmware.com>
11612
11613 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
11614
11615 * server.c (handle_v_run): Free alloced buffer on early return.
11616
11617 2011-03-09 Yao Qi <yao@codesourcery.com>
11618
11619 Revert:
11620 2011-03-04 Yao Qi <yao@codesourcery.com>
11621
11622 * Makefile.in: Remove GNU make feature --directory.
11623
11624 2011-03-05 Yao Qi <yao@codesourcery.com>
11625
11626 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
11627 (subdir_do): New make target. Copied from gdb/Makefile.
11628 (maintainer-clean, realclean, distclean, clean): Call corresponding
11629 make targets in common/Makefile.
11630
11631 2011-02-11 Yao Qi <yao@codesourcery.com>
11632
11633 * configure.ac: Call AC_PROG_RANLIB.
11634 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
11635 * configure: Regenerate.
11636
11637 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
11638
11639 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
11640
11641 2011-03-06 Yao Qi <yao@codesourcery.com>
11642
11643 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
11644
11645 2011-03-05 Yao Qi <yao@codesourcery.com>
11646
11647 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
11648 (subdir_do): New make target. Copied from gdb/Makefile.
11649 (maintainer-clean, realclean, distclean, clean): Call corresponding
11650 make targets in common/Makefile.
11651
11652 2011-03-04 Yao Qi <yao@codesourcery.com>
11653
11654 * Makefile.in: Remove GNU make feature --directory.
11655
11656 2011-03-04 Michael Snyder <msnyder@vmware.com>
11657
11658 * server.c (queue_stop_reply): Call xmalloc not malloc.
11659
11660 2011-03-02 Michael Snyder <msnyder@vmware.com>
11661
11662 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
11663
11664 2011-02-28 Michael Snyder <msnyder@vmware.com>
11665
11666 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
11667 (cmd_qtframe): Ditto.
11668 (cmd_qtbuffer): Ditto.
11669 (cmd_bigqtbuffer): Ditto.
11670
11671 * utils.c (decimal2str): Initialize 'width' to nine, then
11672 don't mess with it.
11673
11674 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
11675
11676 * hostio.c (require_data): Free *data, not data.
11677
11678 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11679
11680 * hostio.c (require_data): Use free, not xfree.
11681
11682 2011-02-27 Michael Snyder <msnyder@vmware.com>
11683
11684 * server.c (handle_query): Discard unused value.
11685
11686 * hostio.c (require_data): Free malloc memory before returning
11687 error.
11688
11689 2011-02-26 Michael Snyder <msnyder@vmware.com>
11690
11691 * linux-low.c (list_threads): Call closedir for dirent.
11692
11693 2011-02-27 Michael Snyder <msnyder@vmware.com>
11694
11695 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
11696 a case statement falls through.
11697
11698 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
11699
11700 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
11701 in comparison.
11702
11703 2011-02-26 Michael Snyder <msnyder@vmware.com>
11704
11705 * utils.c (decimal2str): Eliminate dead code and dead param.
11706 (pulongest): Drop dead param from call to decimal2str.
11707 (plongest): Ditto.
11708
11709 2011-02-24 Joel Brobecker <brobecker@adacore.com>
11710
11711 Revert the following patch (not approved yet):
11712 2011-02-21 Hui Zhu <teawater@gmail.com>
11713 * tracepoint.c (tp_printf): New function.
11714 (eval_agent_expr): Handle gdb_agent_op_printf.
11715
11716 2011-02-21 Hui Zhu <teawater@gmail.com>
11717
11718 * tracepoint.c (tp_printf): New function.
11719 (eval_agent_expr): Handle gdb_agent_op_printf.
11720
11721 2011-02-18 Tom Tromey <tromey@redhat.com>
11722
11723 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
11724 (tracepoint.o): Likewise.
11725 * tracepoint.c (enum gdb_agent_op): Use ax.def.
11726 (gdb_agent_op_names): Likewise.
11727
11728 2011-02-18 Tom Tromey <tromey@redhat.com>
11729
11730 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
11731 gdb_agent_op_rot>: New constants.
11732 (gdb_agent_op_names): Add pick and roll.
11733 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
11734 cases.
11735
11736 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11737
11738 * aclocal.m4: Regenerated with aclocal-1.11.1.
11739
11740 2011-02-14 Pedro Alves <pedro@codesourcery.com>
11741
11742 * server.c (handle_qxfer_traceframe_info): New.
11743 (qxfer_packets): Register "traceframe-info".
11744 (handle_query): Report support for qXfer:traceframe-info:read+.
11745 * tracepoint.c (match_blocktype): New.
11746 (traceframe_find_block_type): Rename to ...
11747 (traceframe_walk_blocks): ... this. Add callback filter argument,
11748 and use it.
11749 (traceframe_find_block_type): New, reimplemented on top of
11750 traceframe_walk_blocks.
11751 (build_traceframe_info_xml): New.
11752 (traceframe_read_info): New.
11753 * server.h (traceframe_read_info): Declare.
11754
11755 2011-02-11 Yao Qi <yao@codesourcery.com>
11756
11757 * configure.ac: Call AC_PROG_RANLIB.
11758 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
11759 * configure: Regenerate.
11760
11761 2011-02-07 Pedro Alves <pedro@codesourcery.com>
11762
11763 * server.c (gdb_read_memory): Change return semantics to allow
11764 partial transfers.
11765 (handle_search_memory_1): Adjust.
11766 (process_serial_event) <'m' packet>: Handle partial transfers.
11767 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
11768
11769 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11770
11771 * regcache.c (init_register_cache): Initialize
11772 regcache->register_status.
11773 (free_register_cache): Release regcache->register_status.
11774 (regcache_cpy): Copy register_status.
11775 (registers_to_string): Print 'x's for unavailable registers.
11776 (supply_register): Mark the register's status valid or
11777 unavailable, depending on whether a buffer was passed in or not.
11778 (supply_register_zeroed): New.
11779 (supply_regblock): Mark the registers' status valid or
11780 unavailable, depending on whether a buffer was passed in or not.
11781 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
11782 (struct regcache): New `register_status' field.
11783 (supply_register_zeroed): Declare.
11784 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
11785 supply_register_zeroed, rather than passing a NULL buffer to
11786 supply_register.
11787 * tracepoint.c (fetch_traceframe_registers): Update comment.
11788
11789 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11790
11791 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
11792 buffer explicit.
11793
11794 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11795
11796 * server.h (decode_xfer_write): Change prototype.
11797 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
11798 and don't extract the annex here.
11799 * server.c (decode_xfer_read): Remove `annex' parameter,
11800 and don't extract the annex here.
11801 (decode_xfer): New.
11802 (struct qxfer): New.
11803 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
11804 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
11805 (handle_qxfer_statictrace): New functions, abstracted out from
11806 handle_query, and made to use the struct qxfer interface.
11807 (handle_threads_qxfer_proper): Rename to ...
11808 (handle_qxfer_threads_proper): ... this.
11809 (handle_threads_qxfer): Rename to ...
11810 (handle_qxfer_threads): ... this. Adjust.
11811 (qxfer_packets): New array.
11812 (handle_qxfer): New function.
11813 (handle_query): Use handle_qxfer.
11814
11815 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
11816
11817 * gdbreplay.c: Shorten lines of >= 80 columns.
11818 * linux-low.c: Ditto.
11819 * linux-ppc-low.c: Ditto.
11820 * linux-s390-low.c: Ditto.
11821 * linux-sparc-low.c: Ditto.
11822 * linux-x86-low.c: Ditto.
11823 * linux-xtensa-low.c: Ditto.
11824 * mem-break.c: Ditto.
11825 * nto-low.c: Ditto.
11826 * regcache.h: Ditto.
11827 * remote-utils.c: Ditto.
11828 * server.c: Ditto.
11829 * server.h: Ditto.
11830 * thread-db.c: Ditto.
11831 * tracepoint.c: Ditto.
11832 * utils.c: Ditto.
11833 * win32-low.h: Ditto.
11834
11835 2011-01-05 Joel Brobecker <brobecker@adacore.com>
11836
11837 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
11838 update.
11839
11840 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11841
11842 * server.c (gdbserver_version): Update copyright year in version
11843 output.
11844 * gdbreplay.c (gdbreplay_version): Ditto.
11845
11846 2010-12-29 Jie Zhang <jie.zhang@analog.com>
11847
11848 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
11849 * linux-bfin-low.c: New file.
11850 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
11851 PT_DATA_ADDR for BFIN targets.
11852 * Makefile.in (SFILES): Add linux-bfin-low.c.
11853 (clean): Remove reg-bfin.c.
11854 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
11855 * README: Mention supported Blackfin targets.
11856
11857 2010-12-23 Mike Frysinger <vapier@gentoo.org>
11858
11859 * .gitignore: New file.
11860
11861 2010-11-16 Mike Frysinger <vapier@gentoo.org>
11862
11863 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
11864
11865 2010-10-22 Jie Zhang <jie@codesourcery.com>
11866
11867 * Makefile.in: Add FLAGS_TO_PASS variable.
11868 (install): Remove dependency of install-only and recursively
11869 invoke make for install-only.
11870
11871 2010-10-04 Doug Evans <dje@google.com>
11872
11873 * Makefile.in (uninstall): Use $(DESTDIR).
11874
11875 2010-09-24 Pedro Alves <pedro@codesourcery.com>
11876
11877 PR gdb/11842
11878
11879 * linux-x86-low.c (compat_siginfo_from_siginfo)
11880 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
11881 si_code is < 0. Check for si_code == SI_TIMER before checking for
11882 si_code < 0.
11883
11884 2010-09-13 Joel Brobecker <brobecker@adacore.com>
11885
11886 * lynx-i386-low.c: New file.
11887 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
11888
11889 2010-09-13 Joel Brobecker <brobecker@adacore.com>
11890
11891 * lynx-low.c (ptrace_request_to_str): Remove handling for
11892 request values that have been removed in LynxOS 5.x.
11893
11894 2010-09-13 Joel Brobecker <brobecker@adacore.com>
11895
11896 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
11897 <ptrace.h>
11898
11899 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
11900
11901 * configure.ac: Add --enable-inprocess-agent option.
11902 * configure: Rebuilt.
11903
11904 2010-09-06 Yao Qi <yao@codesourcery.com>
11905
11906 * linux-low.c (linux_kill): Remove unused variable.
11907 (linux_stabilize_threads): Likewise.
11908 * server.c (start_inferior): Likewise.
11909 (queue_stop_reply_callback): Likewise.
11910 * tracepoint.c (do_action_at_tracepoint): Likewise.
11911
11912 2010-09-06 Yao Qi <yao@codesourcery.com>
11913
11914 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
11915 on return.
11916
11917 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
11918
11919 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
11920
11921 2010-09-06 Pedro Alves <pedro@codesourcery.com>
11922
11923 * Makefile.in (install-only): Replace $IPA_DEPFILES with
11924 "$(IPA_DEPFILES)".
11925
11926 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11927
11928 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
11929 gdbserver/lynx-ppc-low.c: New files.
11930 * Makefile.in (lynx_low_h): New variable.
11931 (lynx-low.o, lynx-ppc-low.o): New rules.
11932 * configure.ac: On LynxOS, link with -lnetinet.
11933 * configure.srv: Add handling of powerpc-*-lynxos* targets.
11934 * configure: regenerate.
11935
11936 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11937
11938 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
11939 * configure.ac: Add check for vasprintf and vsnprintf.
11940 * configure, config.in: Regenerate.
11941 * server.h (vasprintf, vsnprintf): Add conditional declarations.
11942
11943 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11944
11945 * gdbreplay.c: Move include of alloca.h up, next to include of
11946 malloc.h.
11947 * server.h: Add include of malloc.h.
11948 * mem-break.c: Remove include of malloc.h.
11949 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
11950
11951 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11952
11953 * Makefile.in (memmem.o): Build with -Wno-error.
11954
11955 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11956
11957 * utils.c (xsnprintf): Make non-static.
11958 * server.h: Add xsnprintf declaration.
11959 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
11960 replace calls to snprintf by calls to xsnprintf throughout.
11961
11962 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11963
11964 * configure.ac: Add configure check for alloca.
11965 * configure, config.in: Regenerate.
11966 * server.h: Include alloca.h if it exists.
11967 * gdbreplay.c: Include alloca.h if it exists.
11968
11969 2010-08-28 Pedro Alves <pedro@codesourcery.com>
11970
11971 * linux-low.c (__SIGRTMIN): Define if not already defined.
11972 (linux_create_inferior): Check for __ANDROID__ rather than
11973 __SIGRTMIN.
11974 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
11975 are already deferred.
11976 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
11977 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
11978 stopped and already has a pending signal to report.
11979 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
11980 a pending signal to report or is moving out of a jump pad.
11981 (linux_init_signals): Check for __ANDROID__ rather than
11982 __SIGRTMIN.
11983
11984 2010-08-28 Pedro Alves <pedro@codesourcery.com>
11985
11986 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
11987 debug_threads check. Avoid a linear search when not doing debug
11988 output.
11989
11990 2010-08-27 Pedro Alves <pedro@codesourcery.com>
11991
11992 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
11993 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
11994 (struct file_handler) <fd>: Change type to gdb_fildes_t.
11995 (process_event): Change local fd's type to gdb_fildes_t.
11996 (create_file_handler): Adjust prototype.
11997 (delete_file_handler): Adjust prototype.
11998 (handle_file_event): Adjust prototype. Use pfildes.
11999 (create_file_event): Adjsut prototype.
12000 * remote-utils.c (remote_desc, listen_desc): Change type to
12001 gdb_fildes_t.
12002 * server.h: New gdb_fildes_t typedef.
12003 [USE_WIN32API]: Include winsock2.h.
12004 (delete_file_handler, add_file_handler): Adjust prototypes.
12005 (pfildes): Declare.
12006 * utils.c (pfildes): New.
12007
12008 2010-08-27 Pedro Alves <pedro@codesourcery.com>
12009
12010 * configure.ac (build_warnings): Add -Wno-char-subscripts.
12011 * configure: Regenerate.
12012
12013 2010-08-27 Pedro Alves <pedro@codesourcery.com>
12014
12015 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
12016 (linux_done_accessing_memory): ... this.
12017 (linux_target_ops): Adjust.
12018 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
12019 * nto-low.c (nto_target_ops): Adjust comment.
12020 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
12021 * spu-low.c (spu_target_ops): Adjust comment.
12022 * target.h (target_ops): Rename unprepare_to_access_memory field
12023 to done_accessing_memory.
12024 (unprepare_to_access_memory): Rename to ...
12025 (done_accessing_memory): ... this.
12026
12027 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12028
12029 * linux-low.c (linux_prepare_to_access_memory): New.
12030 (linux_unprepare_to_access_memory): New.
12031 (linux_target_ops): Install them.
12032 * server.c (read_memory): Rename to ...
12033 (gdb_read_memory): ... this. Use
12034 prepare_to_access_memory/prepare_to_access_memory.
12035 (write_memory): Rename to ...
12036 (gdb_write_memory): ... this. Use
12037 prepare_to_access_memory/prepare_to_access_memory.
12038 (handle_search_memory_1): Adjust.
12039 (process_serial_event): Adjust.
12040 * target.h (struct target_ops): New fields
12041 prepare_to_access_memory and unprepare_to_access_memory.
12042 (prepare_to_access_memory, unprepare_to_access_memory): New.
12043 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
12044 prepare_to_access_memory/prepare_to_access_memory.
12045 * nto-low.c (nto_target_ops): Adjust.
12046 * spu-low.c (spu_target_ops): Adjust.
12047 * win32-low.c (win32_target_ops): Adjust.
12048
12049 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12050
12051 * Makefile.in (WARN_CFLAGS): Get it from configure.
12052 (WERROR_CFLAGS): New.
12053 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
12054 * configure.ac: Introduce --enable-werror, which adds -Werror to
12055 the compiler command line. Enabled by default. Disable with
12056 --disable-werror. Add -Wdeclaration-after-statement
12057 Wpointer-arith and -Wformat-nonliteral to warning flags.
12058 * configure: Regenerate.
12059
12060 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12061
12062 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
12063
12064 2010-08-26 Pedro Alves <pedro@codesourcery.com>
12065
12066 * gdbreplay.c (remote_error): New.
12067 (gdbchar): New.
12068 (expect): Use gdbchar. Check for error reading from GDB.
12069 Clarify sync error output.
12070 (play): Check for errors writing to GDB.
12071 * linux-low.c (sigchld_handler): Really ignore `write' errors.
12072 * remote-utils.c (getpkt): Check for errors writing to the remote
12073 descriptor.
12074
12075 2010-08-25 Pedro Alves <pedro@codesourcery.com>
12076
12077 * linux-low.c (linux_wait_1): Move non-debugging code out of
12078 `debug_threads' control.
12079
12080 2010-08-25 Pedro Alves <pedro@codesourcery.com>
12081
12082 * linux-low.c (linux_wait_1): Don't set last_status here.
12083 * server.c (push_event, queue_stop_reply_callback): Assert we're
12084 not pushing a TARGET_WAITKIND_IGNORE event.
12085 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
12086 (myresume, handle_target_event): Set the thread's last_resume_kind
12087 and last_status from the target returned status.
12088
12089 2010-08-25 Pedro Alves <pedro@codesourcery.com>
12090
12091 PR threads/10729
12092
12093 * linux-x86-low.c (update_debug_registers_callback): New.
12094 (i386_dr_low_set_addr): Use it.
12095 (i386_dr_low_get_addr): New.
12096 (i386_dr_low_set_control): Use update_debug_registers_callback.
12097 (i386_dr_low_get_control): New.
12098 (i386_dr_low_get_status): Adjust.
12099 * linux-low.c (linux_stop_lwp): New.
12100 * linux-low.h (linux_stop_lwp): Declare.
12101
12102 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
12103 argument instead of a i386_debug_reg_state.
12104 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
12105 a i386_debug_reg_state.
12106 (i386_insert_aligned_watchpoint): Adjust.
12107 (i386_remove_aligned_watchpoint): Adjust.
12108 (i386_low_stopped_data_address): Read the debug registers from the
12109 inferior instead of from the mirrors.
12110 * i386-low.h (struct i386_debug_reg_state): Extend comment.
12111 (i386_dr_low_get_addr): Declare.
12112 (i386_dr_low_get_control): Declare.
12113 (i386_dr_low_get_status): Change prototype.
12114
12115 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
12116 (i386_dr_low_get_addr): New.
12117 (i386_dr_low_get_control): New.
12118 (i386_dr_low_get_status): Adjust prototype. Return
12119 dr_status_mirror.
12120 (i386_initial_stuff): Clear dr_status_mirror and
12121 dr_control_mirror.
12122 (i386_get_thread_context): Adjust.
12123 (i386_set_thread_context): Adjust.
12124 (i386_thread_added): Adjust.
12125
12126 2010-08-24 Pedro Alves <pedro@codesourcery.com>
12127
12128 * linux-low.h (linux_thread_area): Delete declaration.
12129
12130 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
12131
12132 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
12133 after its termination.
12134
12135 2010-08-09 Pedro Alves <pedro@codesourcery.com>
12136
12137 * linux-low.c (gdb_wants_lwp_stopped): Delete.
12138 (gdb_wants_all_stopped): Delete.
12139 (linux_wait_1): Don't call them.
12140 * server.c (handle_v_cont): Tag all threads as want-stopped.
12141 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
12142 stopped as "client-wants-stopped".
12143
12144 2010-07-31 Pedro Alves <pedro@codesourcery.com>
12145
12146 * Makefile.in (signals_h): New.
12147 (server_h): Depend on it.
12148 (server.o): Don't depend on $(signals_def).
12149 (signals.o): Depend on $(signals_def).
12150
12151 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
12152
12153 * Makefile.in (signals_def): New.
12154 (server_h): Append include/gdb/signals.h and signals_def.
12155 (server.o): Append signals_def.
12156
12157 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
12158
12159 * server.c (handle_target_event): Use target_signal_to_host for
12160 resume_info.sig initialization.
12161 * target.h (struct thread_resume) <sig>: New comment.
12162
12163 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
12164
12165 * server.c (handle_query): strcpy() the returned string from paddress()
12166 instead of sprintf().
12167 * utils.c (paddress): Return phex_nz().
12168
12169 2010-07-07 Joel Brobecker <brobecker@adacore.com>
12170
12171 * server.c (handle_v_cont): Call mourn_inferior if process
12172 just exited.
12173 (myresume): Likewise.
12174
12175 2010-07-01 Pedro Alves <pedro@codesourcery.com>
12176
12177 Static tracepoints, and integration with UST.
12178
12179 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
12180 * mem-break.c (uninsert_all_breakpoints)
12181 (reinsert_all_breakpoints): New.
12182 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
12183 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
12184 (gdb_agent_ust_loaded, helper_thread_id)
12185 (gdb_agent_helper_thread_id): New macros.
12186 (struct ipa_sym_addresses): Add addr_ust_loaded,
12187 addr_helper_thread_id, addr_cmd_buf.
12188 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
12189 (in_process_agent_loaded_ust): New.
12190 (write_e_ust_not_loaded): New.
12191 (maybe_write_ipa_ust_not_loaded): New.
12192 (struct collect_static_trace_data_action): New.
12193 (enum tracepoint_type) <static_tracepoint>: New.
12194 (struct tracepoint) <handle>: Mention static tracepoints.
12195 (struct static_tracepoint_ctx): New.
12196 (CMD_BUF_SIZE): New.
12197 (add_tracepoint_action): Handle static tracepoint actions.
12198 (unprobe_marker_at): New.
12199 (clear_installed_tracepoints): Handle static tracepoints.
12200 (cmd_qtdp): Handle static tracepoints.
12201 (probe_marker_at): New.
12202 (cmd_qtstart): Handle static tracepoints.
12203 (response_tracepoint): Handle static tracepoints.
12204 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
12205 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
12206 (get_context_regcache): Handle static tracepoints.
12207 (do_action_at_tracepoint): Handle static tracepoint actions.
12208 (traceframe_find_block_type): Handle static trace data blocks.
12209 (traceframe_read_sdata): New.
12210 (download_tracepoints): Download static tracepoint actions.
12211 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
12212 (GDB_PROBE_NAME): New.
12213 (ust_ops): New.
12214 (GET_UST_SYM): New.
12215 (USTF): New.
12216 (dlsym_ust): New.
12217 (ust_marker_to_static_tracepoint): New.
12218 (gdb_probe): New.
12219 (collect_ust_data_at_tracepoint): New.
12220 (gdb_ust_probe): New.
12221 (UNIX_PATH_MAX, SOCK_DIR): New.
12222 (gdb_ust_connect_sync_socket): New.
12223 (resume_thread, stop_thread): New.
12224 (run_inferior_command): New.
12225 (init_named_socket): New.
12226 (gdb_ust_socket_init): New.
12227 (cstr_to_hexstr): New.
12228 (next_st): New.
12229 (first_marker, next_marker): New.
12230 (response_ust_marker): New.
12231 (cmd_qtfstm, cmd_qtsstm): New.
12232 (unprobe_marker_at, probe_marker_at): New.
12233 (cmd_qtstmat, gdb_ust_thread): New.
12234 (gdb_ust_init): New.
12235 (initialize_tracepoint_ftlib): Call gdb_ust_init.
12236 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
12237 (ST_REGENTRY): New.
12238 (x86_64_st_collect_regmap): New.
12239 (X86_64_NUM_ST_COLLECT_GREGS): New.
12240 (AMD64_RIP_REGNUM): New.
12241 (supply_static_tracepoint_registers): New.
12242 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
12243 (ST_REGENTRY): New.
12244 (i386_st_collect_regmap): New.
12245 (i386_NUM_ST_COLLECT_GREGS): New.
12246 (supply_static_tracepoint_registers): New.
12247 * server.c (handle_query): Handle qXfer:statictrace:read.
12248 <qSupported>: Report support for StaticTracepoints, and
12249 qXfer:statictrace:read features.
12250 * server.h (traceframe_read_sdata)
12251 (supply_static_tracepoint_registers): Declare.
12252 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
12253 (unpack_varlen_hex): Include in IPA build.
12254 * Makefile.in (ustlibs, ustinc): New.
12255 (IPA_OBJS): Add remote-utils-ipa.o.
12256 ($(IPA_LIB)): Link -ldl and -lpthread.
12257 (UST_CFLAGS): New.
12258 (IPAGENT_CFLAGS): Add UST_CFLAGS.
12259 * config.in, configure: Regenerate.
12260
12261 2010-06-20 Ian Lance Taylor <iant@google.com>
12262 Pedro Alves <pedro@codesourcery.com>
12263
12264 * linux-x86-low.c (always_true): Delete.
12265 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
12266 trying to fool the compiler with always_true.
12267
12268 2010-06-20 Pedro Alves <pedro@codesourcery.com>
12269
12270 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
12271 conditions in gdbserver.
12272
12273 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
12274
12275 * spu-low.c (spu_read_memory): Wrap around local store limit.
12276 (spu_write_memory): Likewise.
12277
12278 2010-06-15 Pedro Alves <pedro@codesourcery.com>
12279
12280 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
12281 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
12282 LONGEST uses.
12283 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
12284 uses.
12285 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
12286 uses with LONGEST uses.
12287
12288 2010-06-14 Stan Shebs <stan@codesourcery.com>
12289 Pedro Alves <pedro@codesourcery.com>
12290
12291 Bytecode compiler.
12292
12293 * linux-x86-low.c: Include limits.h.
12294 (add_insns): New.
12295 (always_true): New.
12296 (EMIT_ASM): New.
12297 (EMIT_ASM32): New.
12298 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
12299 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
12300 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
12301 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
12302 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
12303 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
12304 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
12305 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
12306 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
12307 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
12308 (amd64_emit_void_call_2): New.
12309 (amd64_emit_ops): New.
12310 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
12311 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
12312 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
12313 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
12314 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
12315 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
12316 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
12317 (i386_emit_call, i386_emit_reg, i386_emit_pop)
12318 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
12319 (i386_emit_stack_adjust, i386_emit_int_call_1)
12320 (i386_emit_void_call_2): New.
12321 (i386_emit_ops): New.
12322 (x86_emit_ops): New.
12323 (the_low_target): Install x86_emit_ops.
12324 * server.h (struct emit_ops): New.
12325 (get_raw_reg_func_addr): Declare.
12326 (current_insn_ptr, emit_error): Declare.
12327 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
12328 (set_trace_state_variable_value): New defines.
12329 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
12330 addr_get_trace_state_variable_value and
12331 addr_set_trace_state_variable_value.
12332 (symbol_list): New fields for get_raw_reg,
12333 get_trace_state_variable_value and set_trace_state_variable_value.
12334 (condfn): New typedef.
12335 (struct tracepoint): New field `compiled_cond'.
12336 (do_action_at_tracepoint): Clear compiled_cond.
12337 (get_trace_state_variable_value, set_trace_state_variable_value):
12338 Export in the IPA.
12339 (condition_true_at_tracepoint): If there's a compiled condition,
12340 run that.
12341 (current_insn_ptr, emit_error): New globals.
12342 (struct bytecode_address): New.
12343 (get_raw_reg_func_addr): New.
12344 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
12345 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
12346 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
12347 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
12348 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
12349 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
12350 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
12351 (compile_tracepoint_condition, compile_bytecodes): New.
12352 * target.h (emit_ops): Forward declare.
12353 (struct target_ops): New field emit_ops.
12354 (target_emit_ops): New.
12355 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
12356 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
12357 * linux-low.c (linux_emit_ops): New.
12358 (linux_target_ops): Install it.
12359 * linux-low.h (struct linux_target_ops): New field emit_ops.
12360
12361 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
12362
12363 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
12364 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
12365
12366 2010-06-01 Pedro Alves <pedro@codesourcery.com>
12367 Stan Shebs <stan@codesourcery.com>
12368
12369 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
12370 (all): Depend on $(extra_libraries).
12371 (install-only): Install the IPA.
12372 (IPA_OBJS, IPA_LIB): New.
12373 (clean): Remove the IPA lib.
12374 (IPAGENT_CFLAGS): New.
12375 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
12376 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
12377 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
12378 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
12379 * configure.ac: Check for atomic builtins support in the compiler.
12380 (IPA_DEPFILES, extra_libraries): Define.
12381 * configure.srv (ipa_obj): Add description.
12382 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
12383 (i[34567]86-*-linux*): Set ipa_obj.
12384 (x86_64-*-linux*): Set ipa_obj.
12385 * linux-low.c (stabilizing_threads): New.
12386 (supports_fast_tracepoints): New.
12387 (linux_detach): Stabilize threads before detaching.
12388 (handle_tracepoints): Handle internal tracing breakpoints. Assert
12389 the lwp is either not stabilizing, or is moving out of a jump pad.
12390 (linux_fast_tracepoint_collecting): New.
12391 (maybe_move_out_of_jump_pad): New.
12392 (enqueue_one_deferred_signal): New.
12393 (dequeue_one_deferred_signal): New.
12394 (linux_wait_for_event_1): If moving out of a jump pad, defer
12395 pending signals to later.
12396 (linux_stabilize_threads): New.
12397 (linux_wait_1): Check if threads need moving out of jump pads, and
12398 do it if so.
12399 (stuck_in_jump_pad_callback): New.
12400 (move_out_of_jump_pad_callback): New.
12401 (lwp_running): New.
12402 (linux_resume_one_lwp): Handle moving out of jump pads.
12403 (linux_set_resume_request): Dequeue deferred signals.
12404 (need_step_over_p): Also step over fast tracepoint jumps.
12405 (start_step_over): Also uninsert fast tracepoint jumps.
12406 (finish_step_over): Also reinsert fast tracepoint jumps.
12407 (linux_install_fast_tracepoint_jump): New.
12408 (linux_target_ops): Install linux_stabilize_threads and
12409 linux_install_fast_tracepoint_jump_pad.
12410 * linux-low.h (linux_target_ops) <get_thread_area,
12411 install_fast_tracepoint_jump_pad>: New fields.
12412 (struct lwp_info) <collecting_fast_tracepoint,
12413 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
12414 (linux_get_thread_area): Declare.
12415 * linux-x86-low.c (jump_insn): New.
12416 (x86_get_thread_area): New.
12417 (append_insns): New.
12418 (push_opcode): New.
12419 (amd64_install_fast_tracepoint_jump_pad): New.
12420 (i386_install_fast_tracepoint_jump_pad): New.
12421 (x86_install_fast_tracepoint_jump_pad): New.
12422 (the_low_target): Install x86_get_thread_area and
12423 x86_install_fast_tracepoint_jump_pad.
12424 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
12425 (struct fast_tracepoint_jump): New.
12426 (fast_tracepoint_jump_insn): New.
12427 (fast_tracepoint_jump_shadow): New.
12428 (find_fast_tracepoint_jump_at): New.
12429 (fast_tracepoint_jump_here): New.
12430 (delete_fast_tracepoint_jump): New.
12431 (set_fast_tracepoint_jump): New.
12432 (uninsert_fast_tracepoint_jumps_at): New.
12433 (reinsert_fast_tracepoint_jumps_at): New.
12434 (set_breakpoint_at): Use write_inferior_memory.
12435 (uninsert_raw_breakpoint): Use write_inferior_memory.
12436 (check_mem_read): Mask out fast tracepoint jumps.
12437 (check_mem_write): Mask out fast tracepoint jumps.
12438 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
12439 (set_fast_tracepoint_jump): Declare.
12440 (delete_fast_tracepoint_jump)
12441 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
12442 (reinsert_fast_tracepoint_jumps_at): Declare.
12443 * regcache.c: Don't compile many functions when building the
12444 in-process agent library.
12445 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
12446 the register buffer in the heap.
12447 (free_register_cache): If the register buffer isn't owned by the
12448 regcache, don't free it.
12449 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
12450 pre-existing register caches.
12451 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
12452 type.
12453 (convert_ascii_to_int): : Constify `from' parameter type.
12454 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
12455 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
12456 the needed buffer in-place.
12457 (relocate_instruction): New.
12458 * server.c (handle_query) <qSymbols>: If the target supports
12459 tracepoints, give it a chance of looking up symbols. Report
12460 support for fast tracepoints.
12461 (handle_status): Stabilize threads.
12462 (process_serial_event): Adjust.
12463 * server.h (struct fast_tracepoint_jump): Forward declare.
12464 (struct process_info) <fast_tracepoint_jumps>: New field.
12465 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
12466 (decode_X_packet, decode_M_packet): Adjust.
12467 (relocate_instruction): Declare.
12468 (in_process_agent_loaded): Declare.
12469 (tracepoint_look_up_symbols): Declare.
12470 (struct fast_tpoint_collect_status): Declare.
12471 (fast_tracepoint_collecting): Declare.
12472 (force_unlock_trace_buffer): Declare.
12473 (handle_tracepoint_bkpts): Declare.
12474 (initialize_low_tracepoint)
12475 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
12476 * target.h (struct target_ops) <stabilize_threads,
12477 install_fast_tracepoint_jump_pad>: New fields.
12478 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
12479 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
12480 [HAVE_STDINT_H]: Include stdint.h.
12481 (trace_debug_1): Rename to ...
12482 (trace_vdebug): ... this.
12483 (trace_debug): Rename to ...
12484 (trace_debug_1): ... this. Add `level' parameter.
12485 (trace_debug): New.
12486 (ATTR_USED, ATTR_NOINLINE): New.
12487 (IP_AGENT_EXPORT): New.
12488 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12489 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
12490 (about_to_request_buffer_space, trace_buffer_is_full)
12491 (stopping_tracepoint, expr_eval_result, error_tracepoint)
12492 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
12493 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
12494 (traceframe_write_count, traceframes_created)
12495 (trace_state_variables)
12496 New renaming defines.
12497 (struct ipa_sym_addresses): New.
12498 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
12499 (symbol_list): New.
12500 (ipa_sym_addrs): New.
12501 (all_tracepoint_symbols_looked_up): New.
12502 (in_process_agent_loaded): New.
12503 (write_e_ipa_not_loaded): New.
12504 (maybe_write_ipa_not_loaded): New.
12505 (tracepoint_look_up_symbols): New.
12506 (debug_threads) [IN_PROCESS_AGENT]: New.
12507 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
12508 (UNKNOWN_SIDE_EFFECTS): New.
12509 (stop_tracing): New.
12510 (flush_trace_buffer): New.
12511 (stop_tracing_bkpt): New.
12512 (flush_trace_buffer_bkpt): New.
12513 (read_inferior_integer): New.
12514 (read_inferior_uinteger): New.
12515 (read_inferior_data_pointer): New.
12516 (write_inferior_data_pointer): New.
12517 (write_inferior_integer): New.
12518 (write_inferior_uinteger): New.
12519 (struct collect_static_trace_data_action): Delete.
12520 (enum tracepoint_type): New.
12521 (struct tracepoint) <type>: New field `type'.
12522 <actions_str, step_actions, step_actions_str>: Only include in
12523 GDBserver.
12524 <orig_size, obj_addr_on_target, adjusted_insn_addr>
12525 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
12526 (tracepoints): Use IP_AGENT_EXPORT.
12527 (last_tracepoint): Don't include in the IPA.
12528 (stopping_tracepoint): Use IP_AGENT_EXPORT.
12529 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
12530 (alloced_trace_state_variables): New.
12531 (trace_state_variables): Use IP_AGENT_EXPORT.
12532 (traceframe_t): Delete unused variable.
12533 (circular_trace_buffer): Don't include in the IPA.
12534 (trace_buffer_start): Delete.
12535 (struct trace_buffer_control): New.
12536 (trace_buffer_free): Delete.
12537 (struct ipa_trace_buffer_control): New.
12538 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
12539 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
12540 New.
12541 (trace_buffer_ctrl): New.
12542 (TRACE_BUFFER_CTRL_CURR): New.
12543 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
12544 Reimplement as macros.
12545 (trace_buffer_wrap): Delete.
12546 (traceframe_write_count, traceframe_read_count)
12547 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
12548 (struct tracepoint_hit_ctx) <type>: New field.
12549 (struct fast_tracepoint_ctx): New.
12550 (memory_barrier): New.
12551 (cmpxchg): New.
12552 (record_tracepoint_error): Update atomically in the IPA.
12553 (clear_inferior_trace_buffer): New.
12554 (about_to_request_buffer_space): New.
12555 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
12556 updating the same buffer.
12557 (add_tracepoint): Default the tracepoint's type to trap
12558 tracepoint, and orig_size to -1.
12559 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
12560 internal variables.
12561 (create_trace_state_variable): New parameter `gdb'. Handle it.
12562 (clear_installed_tracepoints): Clear fast tracepoint jumps.
12563 (cmd_qtdp): Handle fast tracepoints.
12564 (cmd_qtdv): Adjust.
12565 (max_jump_pad_size): New.
12566 (gdb_jump_pad_head): New.
12567 (get_jump_space_head): New.
12568 (claim_jump_space): New.
12569 (sort_tracepoints): New.
12570 (MAX_JUMP_SIZE): New.
12571 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
12572 IPA.
12573 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
12574 support. Upload fast traceframes, and delete internal IPA
12575 breakpoints.
12576 (stop_tracing_handler): New.
12577 (flush_trace_buffer_handler): New.
12578 (cmd_qtstop): Upload fast tracepoints.
12579 (response_tracepoint): Handle fast tracepoints.
12580 (tracepoint_finished_step): Upload fast traceframes. Set the
12581 tracepoint hit context's tracepoint type.
12582 (handle_tracepoint_bkpts): New.
12583 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
12584 type. Add comment about fast tracepoints.
12585 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
12586 non-existing action_str field.
12587 (get_context_regcache): Handle fast tracepoints.
12588 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
12589 to the regcache.
12590 (fast_tracepoint_from_jump_pad_address): New.
12591 (fast_tracepoint_from_ipa_tpoint_address): New.
12592 (collecting_t): New.
12593 (force_unlock_trace_buffer): New.
12594 (fast_tracepoint_collecting): New.
12595 (collecting): New.
12596 (gdb_collect): New.
12597 (write_inferior_data_ptr): New.
12598 (target_tp_heap): New.
12599 (target_malloc): New.
12600 (download_agent_expr): New.
12601 (UALIGN): New.
12602 (download_tracepoints): New.
12603 (download_trace_state_variables): New.
12604 (upload_fast_traceframes): New.
12605 (IPA_FIRST_TRACEFRAME): New.
12606 (IPA_NEXT_TRACEFRAME_1): New.
12607 (IPA_NEXT_TRACEFRAME): New.
12608 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
12609 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
12610 (gdb_jump_pad_buffer_end): New.
12611 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
12612 (initialize_tracepoint): Adjust.
12613 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
12614 buffer. Initialize the low module.
12615 * utils.c (PREFIX, TOOLNAME): New.
12616 (malloc_failure): Use PREFIX.
12617 (error): In the IPA, an error causes an exit.
12618 (fatal, warning): Use PREFIX.
12619 (internal_error): Use TOOLNAME.
12620 (NUMCELLS): Increase to 10.
12621 * configure, config.in: Regenerate.
12622
12623 2010-06-01 Pedro Alves <pedro@codesourcery.com>
12624
12625 * server.c (handle_query) <qSupported>: Do two passes over the
12626 qSupported string to avoid nesting strtok.
12627
12628 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12629
12630 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
12631 (CDEPS): New.
12632 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
12633 -Wl,--dynamic-list.
12634 * configure: Regenerate.
12635 * proc-service.list: New.
12636
12637 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12638
12639 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
12640 New comment.
12641
12642 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
12643
12644 * gdbreplay.c (remote_open): Check error return from socket() call by
12645 its equality to -1 not by it being negative.
12646 * remote-utils.c (remote_open): Likewise.
12647
12648 2010-05-23 Pedro Alves <pedro@codesourcery.com>
12649
12650 * config.h: Regenerate.
12651
12652 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
12653
12654 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
12655 doesn't provide PTRACE_GET_THREAD_AREA.
12656
12657 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
12658
12659 * linux-m68k-low.c: Include <asm/ptrace.h>
12660 (ps_get_thread_area): Implement.
12661
12662 2010-05-03 Doug Evans <dje@google.com>
12663
12664 * event-loop.c (struct callback_event): New struct.
12665 (callback_list): New global.
12666 (append_callback_event, delete_callback_event): New functions.
12667 (process_callback): New function.
12668 (start_event_loop): Call it.
12669 * remote-utils.c (NOT_SCHEDULED): Define.
12670 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
12671 moved out of readchar.
12672 (readchar): Rewrite. Call reschedule before returning.
12673 (reset_readchar): New function.
12674 (remote_close): Call it.
12675 (process_remaining, reschedule): New functions.
12676 * server.h (callback_handler_func): New typedef.
12677 (append_callback_event, delete_callback_event): Declare.
12678
12679 2010-05-03 Pedro Alves <pedro@codesourcery.com>
12680
12681 * proc-service.c (ps_pglobal_lookup): Use
12682 thread_db_look_up_one_symbol.
12683 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
12684 parameter. Use it instead of all_symbols_looked_up.
12685 * server.h (struct process_info) <all_symbols_looked_up>: Delete
12686 field.
12687 (all_symbols_looked_up): Don't declare.
12688 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
12689 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
12690 field.
12691 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
12692 Set all_symbols_looked_up here.
12693 (thread_db_look_up_one_symbol): New.
12694 (thread_db_get_tls_address): Adjust.
12695 (thread_db_load_search, try_thread_db_load_1): Always allocate the
12696 thread_db object on the heap, and tentatively set it in the
12697 process structure.
12698 (thread_db_init): Don't set all_symbols_looked_up here.
12699 * linux-low.h (thread_db_look_up_one_symbol): Declare.
12700
12701 2010-05-03 Pedro Alves <pedro@codesourcery.com>
12702
12703 * linux-low.c (linux_kill, linux_detach): Adjust.
12704 (status_pending_p_callback): Remove redundant statement. Check
12705 for !TARGET_WAITIKIND_IGNORE, instead of
12706 TARGET_WAITKIND_STOPPED.
12707 (handle_tracepoints): Make sure LWP is locked. Adjust.
12708 (linux_wait_for_event_1): Adjust.
12709 (linux_cancel_breakpoints): New.
12710 (unsuspend_one_lwp): New.
12711 (unsuspend_all_lwps): New.
12712 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
12713 (send_sigstop_callback): Change return type to int, add new
12714 `except' parameter and handle it.
12715 (suspend_and_send_sigstop_callback): New.
12716 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
12717 pass them down. If SUSPEND, also increment the lwp's suspend
12718 count.
12719 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
12720 (need_step_over_p): Don't consider suspended LWPs.
12721 (start_step_over): Adjust.
12722 (proceed_one_lwp): Change return type to int, add new `except'
12723 parameter and handle it.
12724 (unsuspend_and_proceed_one_lwp): New.
12725 (proceed_all_lwps): Use find_inferior instead of
12726 for_each_inferior.
12727 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
12728 also decrement the suspend count of LWPs. Pass `except' down,
12729 instead of hacking its suspend count.
12730 (linux_pause_all): Add `freeze' parameter. Adjust.
12731 (linux_unpause_all): New.
12732 (linux_target_ops): Install linux_unpause_all.
12733 * server.c (handle_status): Adjust.
12734 * target.h (struct target_ops): New fields `unpause_all' and
12735 `cancel_breakpoints'. Add new parameter to `pause_all'.
12736 (pause_all): Add new `freeze' parameter.
12737 (unpause_all): New.
12738 (cancel_breakpoints): New.
12739 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
12740 cancel breakpoints.
12741 (cmd_qtstart): Pause threads.
12742 (stop_tracing): Pause threads, and cancel breakpoints.
12743 * win32-low.c (win32_target_ops): Adjust.
12744
12745 2010-05-03 Pedro Alves <pedro@codesourcery.com>
12746
12747 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
12748 the inferior right away from here...
12749 (linux_wait_1): ... to here, and adjust to check the thread's
12750 last_resume_kind instead of the lwp's step or stop_expected flags.
12751
12752 2010-05-02 Pedro Alves <pedro@codesourcery.com>
12753
12754 * README: Use consistent `GDB' and `GDBserver' spellings.
12755
12756 2010-05-02 Pedro Alves <pedro@codesourcery.com>
12757
12758 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
12759 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
12760 (linux_detach_one_lwp): Assume the lwp is stopped.
12761 (any_thread_of): Delete.
12762 (linux_detach): Stop all lwps here. Don't blindly delete all
12763 breakpoints.
12764 (delete_lwp_callback): New.
12765 (linux_mourn): Delete all lwps of the process that is gone.
12766 (linux_wait_1): Don't delete the last lwp of the process here.
12767 * mem-break.h (mark_breakpoints_out): Declare.
12768 * mem-break.c (mark_breakpoints_out): New.
12769 (free_all_breakpoints): Use it.
12770 * server.c (handle_target_event): If the process is gone, mark
12771 breakpoints out.
12772 * thread-db.c (struct thread_db) <create_bp>: New field.
12773 (thread_db_enable_reporting): Fix prototype. Store a thread event
12774 breakpoint reference in the thread_db struct.
12775 (thread_db_load_search): Clear the thread_db object.
12776 (try_thread_db_load_1): Ditto.
12777 (switch_to_process): New.
12778 (disable_thread_event_reporting): Use it.
12779 (remove_thread_event_breakpoints): New.
12780 (thread_db_detach, thread_db_mourn): Use it.
12781
12782 2010-05-01 Pedro Alves <pedro@codesourcery.com>
12783
12784 * linux-low.c (linux_enable_event_reporting): New.
12785 (linux_wait_for_event_1, handle_extended_wait): Use it.
12786
12787 2010-04-30 Pedro Alves <pedro@codesourcery.com>
12788
12789 * linux-low.c (linux_kill_one_lwp, linux_kill)
12790 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
12791 (send_sigstop): Take an lwp_info as parameter instead. Queue a
12792 SIGSTOP even if the LWP is stopped.
12793 (send_sigstop_callback): New.
12794 (stop_all_lwps): Use send_sigstop_callback instead.
12795 (linux_resume_one_thread): Adjust.
12796 (proceed_one_lwp): Still proceed an LWP that the client has
12797 requested to stop, if we haven't reported it as stopped yet. Make
12798 sure that LWPs the client want stopped, have a pending SIGSTOP.
12799
12800 2010-04-26 Doug Evans <dje@google.com>
12801
12802 * server.c (handle_general_set): Make static.
12803
12804 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
12805 Print received char after testing for error/eof instead of before.
12806 (input_interrupt): Tweak comment.
12807
12808 2010-04-23 Doug Evans <dje@google.com>
12809
12810 * server.c (start_inferior): Print inferior argv if --debug.
12811
12812 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
12813
12814 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
12815 * nto-x86-low.c: Include server.h
12816
12817 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
12818
12819 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
12820 be consistent with other sources of this directory.
12821 (init_registers_amd64): Correct name of source file of this function
12822 in the comment.
12823
12824 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
12825
12826 * configure.srv (x86_64-*-mingw*): New configuration for Windows
12827 64-bit executables.
12828
12829 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
12830
12831 * win32-i386-low.c: Add 64-bit support.
12832 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
12833 (init_registers_amd64): Declare.
12834 (mappings): Add 64-bit version of array.
12835 (init_windows_x86): New function.
12836 (the_low_target): Change init_arch field to init_windows_x86.
12837
12838 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
12839
12840 * win32-low.c: Adapt to support also 64-bit architecture.
12841 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
12842 (get_image_name): Use SIZE_T type for local variable `done'.
12843 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
12844 (toolhelp_get_dll_name): Idem.
12845 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
12846 Use uintptr_t typecast to avoid warning.
12847 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
12848 (handle_exception): Use phex_nz to avoid warning.
12849 (win32_wait): Remove unused local variable `process'.
12850
12851 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
12852
12853 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
12854 `amd64-avx.o'.
12855
12856 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
12857
12858 * configure.ac: Use `ws2_32' library for srv_mingw.
12859 * configure: Regenerate.
12860 * gdbreplay.c: Include winsock2.h instead of winsock.h.
12861 * remote-utils.c: Likewise.
12862
12863 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
12864
12865 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
12866 if __x86_64__ is defined.
12867
12868 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
12869
12870 * configure: Regenerate.
12871
12872 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
12873
12874 * server.c (handle_query): Handle 'qGetTIBAddr' query.
12875 * target.h (target_ops): New get_tib_address field.
12876 * win32-low.h (win32_thread_info): Add thread_local_base field.
12877 * win32-low.c (child_add_thread): Add tlb argument.
12878 Set thread_local_base field to TLB.
12879 (get_child_debug_event): Adapt to child_add_thread change.
12880 (win32_get_tib_address): New function.
12881 (win32_target_ops): Set get_tib_address field to
12882 win32_get_tib_address.
12883 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
12884
12885 2010-04-12 Pedro Alves <pedro@codesourcery.com>
12886
12887 * linux-low.c (linux_mourn): Also remove the process.
12888 * server.c (handle_target_event): Don't remove the process here.
12889 * nto-low.c (nto_mourn): New.
12890 (nto_target_ops): Install it.
12891 * spu-low.c (spu_mourn): New.
12892 (spu_target_ops): Install it.
12893 * win32-low.c (win32_mourn): New.
12894 (win32_target_ops): Install it.
12895
12896 2010-04-12 Pedro Alves <pedro@codesourcery.com>
12897
12898 * server.h (buffer_xml_printf): Remove redundant `;'.
12899
12900 2010-04-12 Pedro Alves <pedro@codesourcery.com>
12901
12902 * regcache.c (set_register_cache): Invalidate regcaches before
12903 changing the register cache layout.
12904 (regcache_invalidate_one): Allow a NULL regcache.
12905 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
12906 regcaches before changing the register cache layout or the target
12907 regsets.
12908
12909 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
12910
12911 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
12912 variable warning on Linux/x86-64.
12913
12914 2010-04-11 Pedro Alves <pedro@codesourcery.com>
12915
12916 GDBserver disconnected tracing support.
12917
12918 * linux-low.c (linux_remove_process): Delete.
12919 (add_lwp): Don't set last_resume_kind here.
12920 (linux_kill): Use `mourn'.
12921 (linux_detach): Use `thread_db_detach', and `mourn'.
12922 (linux_mourn): New.
12923 (linux_attach_lwp_1): Adjust comment.
12924 (linux_attach): last_resume_kind moved the thread_info; adjust.
12925 (status_pending_p_callback): Adjust.
12926 (linux_wait_for_event_1): Adjust.
12927 (count_events_callback, select_singlestep_lwp_callback)
12928 (select_event_lwp_callback, cancel_breakpoints_callback)
12929 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
12930 (proceed_one_lwp): Adjust.
12931 (linux_async): Add debug output.
12932 (linux_thread_stopped): New.
12933 (linux_pause_all): New.
12934 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
12935 linux_pause_all.
12936 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
12937 (thread_db_free): Delete declaration.
12938 (thread_db_detach, thread_db_mourn): Declare.
12939 * thread-db.c (thread_db_init): Use thread_db_mourn.
12940 (thread_db_free): Delete, split in two.
12941 (disable_thread_event_reporting): New.
12942 (thread_db_detach): New.
12943 (thread_db_mourn): New.
12944
12945 * server.h (struct thread_info) <last_resume_kind>: New field.
12946 <attached>: Add comment.
12947 <gdb_detached>: New field.
12948 (handler_func): Change return type to int.
12949 (handle_serial_event, handle_target_event): Ditto.
12950 (gdb_connected): Declare.
12951 (tracing): Delete.
12952 (disconnected_tracing): Declare.
12953 (stop_tracing): Declare.
12954
12955 * server.c (handle_query) <qSupported>: Report support for
12956 disconnected tracing.
12957 (queue_stop_reply_callback): Account for running threads.
12958 (gdb_wants_thread_stopped): New.
12959 (gdb_wants_all_threads_stopped): New.
12960 (gdb_reattached_process): New.
12961 (handle_status): Clear the `gdb_detached' flag of all processes.
12962 In all-stop, stop all threads.
12963 (main): Be sure to leave tfind mode. Handle disconnected tracing.
12964 (process_serial_event): If the remote connection breaks, or if an
12965 exit was forced with "monitor exit", force an event loop exit.
12966 Handle disconnected tracing on detach.
12967 (handle_serial_event): Adjust.
12968 (handle_target_event): If GDB isn't connected, forward events back
12969 to the inferior, unless the last process exited, in which case,
12970 exit gdbserver. Adjust interface.
12971
12972 * remote-utils.c (remote_open): Don't block in accept. Instead
12973 register an event loop source on the listen socket file
12974 descriptor. Refactor bits into ...
12975 (listen_desc): ... this new global.
12976 (gdb_connected): ... this new function.
12977 (enable_async_notification): ... this new function.
12978 (handle_accept_event): ... this new function.
12979 (remote_close): Clear remote_desc.
12980
12981 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
12982
12983 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
12984 New fields.
12985 (mourn_inferior): Define.
12986 (target_process_qsupported): Avoid the dangling else problem.
12987 (thread_stopped): Define.
12988 (pause_all): Define.
12989 (target_waitstatus_to_string): Declare.
12990 * target.c (target_waitstatus_to_string): New.
12991
12992 * tracepoint.c (tracing): Make extern.
12993 (disconnected_tracing): New.
12994 (stop_tracing): Make extern. Handle tracing stops due to GDB
12995 disconnecting.
12996 (cmd_qtdisconnected): New.
12997 (cmd_qtstatus): Report disconnected tracing status in trace reply.
12998 (handle_tracepoint_general_set): Handle QTDisconnected.
12999
13000 * event-loop.c (event_handler_func): Change return type to int.
13001 (process_event): Bail out if the event handler wants the event
13002 loop to stop.
13003 (handle_file_event): Ditto.
13004 (start_event_loop): Bail out if the event handler wants the event
13005 loop to stop.
13006
13007 * nto-low.c (nto_target_ops): Adjust.
13008 * spu-low.c (spu_wait): Don't remove the process here.
13009 (spu_target_ops): Adjust.
13010 * win32-low.c (win32_wait): Don't remove the process here.
13011 (win32_target_ops): Adjust.
13012
13013 2010-04-11 Pedro Alves <pedro@codesourcery.com>
13014
13015 * regcache.c (realloc_register_cache): Invalidate inferior's
13016 regcache before recreating it.
13017
13018 2010-04-09 Pedro Alves <pedro@codesourcery.com>
13019
13020 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
13021
13022 2010-04-09 Stan Shebs <stan@codesourcery.com>
13023 Pedro Alves <pedro@codesourcery.com>
13024
13025 * server.h (LONGEST): New.
13026 (struct thread_info) <while_stepping>: New field.
13027 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
13028 Declare.
13029 (initialize_tracepoint, handle_tracepoint_general_set)
13030 (handle_tracepoint_query, tracepoint_finished_step)
13031 (tracepoint_was_hit, release_while_stepping_state_list):
13032 (current_traceframe): Declare.
13033 * server.c (handle_general_set): Handle tracepoint packets.
13034 (read_memory): New.
13035 (write_memory): New.
13036 (handle_search_memory_1): Use read_memory.
13037 (handle_query): Report support for conditional tracepoints, trace
13038 state variables, and tracepoint sources. Handle tracepoint
13039 queries.
13040 (main): Initialize the tracepoints module.
13041 (process_serial_event): Handle traceframe reads/writes.
13042
13043 * linux-low.c (handle_tracepoints): New.
13044 (linux_wait_1): Call it.
13045 (linux_resume_one_lwp): Handle while-stepping.
13046 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
13047 (linux_target_ops): Install them.
13048 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
13049 New field.
13050 * linux-x86-low.c (x86_supports_tracepoints): New.
13051 (the_low_target). Install it.
13052
13053 * mem-break.h (delete_breakpoint): Declare.
13054 * mem-break.c (delete_breakpoint): Make external.
13055
13056 * target.h (struct target_ops): Add `supports_tracepoints',
13057 `read_pc', and `write_pc' fields.
13058 (target_supports_tracepoints): Define.
13059 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
13060 (phex_nz): New.
13061
13062 * regcache.h (struct regcache) <registers_owned>: New field.
13063 (init_register_cache, regcache_cpy): Declare.
13064 (regcache_read_pc, regcache_write_pc): Declare.
13065 (register_cache_size): Declare.
13066 (supply_regblock): Declare.
13067 * regcache.c (init_register_cache): New.
13068 (new_register_cache): Use it.
13069 (regcache_cpy): New.
13070 (register_cache_size): New.
13071 (supply_regblock): New.
13072 (regcache_read_pc, regcache_write_pc): New.
13073
13074 * tracepoint.c: New.
13075
13076 * Makefile.in (OBS): Add tracepoint.o.
13077 (tracepoint.o): New rule.
13078
13079 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
13080
13081 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
13082 (i386-mmx.o): New.
13083 (i386-mmx.c): Likewise.
13084 (i386-mmx-linux.o): Likewise.
13085 (i386-mmx-linux.c): Likewise.
13086
13087 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
13088 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
13089 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
13090 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
13091
13092 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
13093 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
13094 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
13095
13096 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
13097
13098 * Makefile.in (clean): Updated.
13099 (i386-avx.o): New.
13100 (i386-avx.c): Likewise.
13101 (i386-avx-linux.o): Likewise.
13102 (i386-avx-linux.c): Likewise.
13103 (amd64-avx.o): Likewise.
13104 (amd64-avx.c): Likewise.
13105 (amd64-avx-linux.o): Likewise.
13106 (amd64-avx-linux.c): Likewise.
13107
13108 * configure.srv (srv_i386_regobj): Add i386-avx.o.
13109 (srv_i386_linux_regobj): Add i386-avx-linux.o.
13110 (srv_amd64_regobj): Add amd64-avx.o.
13111 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
13112 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
13113 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
13114 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
13115 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
13116 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
13117 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
13118
13119 * i387-fp.c: Include "i386-xstate.h".
13120 (i387_xsave): New.
13121 (i387_cache_to_xsave): Likewise.
13122 (i387_xsave_to_cache): Likewise.
13123 (x86_xcr0): Likewise.
13124
13125 * i387-fp.h (i387_cache_to_xsave): Likewise.
13126 (i387_xsave_to_cache): Likewise.
13127 (x86_xcr0): Likewise.
13128
13129 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
13130 * linux-crisv32-low.c (target_regsets): Likewise.
13131 * linux-m68k-low.c (target_regsets): Likewise.
13132 * linux-mips-low.c (target_regsets): Likewise.
13133 * linux-ppc-low.c (target_regsets): Likewise.
13134 * linux-s390-low.c (target_regsets): Likewise.
13135 * linux-sh-low.c (target_regsets): Likewise.
13136 * linux-sparc-low.c (target_regsets): Likewise.
13137 * linux-xtensa-low.c (target_regsets): Likewise.
13138
13139 * linux-low.c: Include <sys/uio.h>.
13140 (regsets_fetch_inferior_registers): Support nt_type.
13141 (regsets_store_inferior_registers): Likewise.
13142 (linux_process_qsupported): New.
13143 (linux_target_ops): Add linux_process_qsupported.
13144
13145 * linux-low.h (regset_info): Add nt_type.
13146 (linux_target_ops): Add process_qsupported.
13147
13148 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
13149 and <sys/uio.h>.
13150 (init_registers_i386_avx_linux): New.
13151 (init_registers_amd64_avx_linux): Likewise.
13152 (xmltarget_i386_linux_no_xml): Likewise.
13153 (xmltarget_amd64_linux_no_xml): Likewise.
13154 (PTRACE_GETREGSET): Likewise.
13155 (PTRACE_SETREGSET): Likewise.
13156 (x86_fill_xstateregset): Likewise.
13157 (x86_store_xstateregset): Likewise.
13158 (use_xml): Likewise.
13159 (x86_linux_update_xmltarget): Likewise.
13160 (x86_linux_process_qsupported): Likewise.
13161 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
13162 (x86_arch_setup): Don't call init_registers_amd64_linux nor
13163 init_registers_i386_linux here. Call
13164 x86_linux_update_xmltarget.
13165 (the_low_target): Add x86_linux_process_qsupported.
13166
13167 * server.c (handle_query): Call target_process_qsupported.
13168
13169 * target.h (target_ops): Add process_qsupported.
13170 (target_process_qsupported): New.
13171
13172 2010-04-03 Pedro Alves <pedro@codesourcery.com>
13173
13174 * inferiors.c (add_thread): Set last_status kind to
13175 TARGET_WAITKIND_IGNORE.
13176 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
13177 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
13178 (linux_wait_1): Move `thread' local definition to block that uses
13179 it. Don't NULL initialize `event_child'.
13180 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
13181 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
13182 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
13183
13184 2010-04-01 Pedro Alves <pedro@codesourcery.com>
13185
13186 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
13187 an extended waitstatus, or by a watchpoint.
13188 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
13189 thread was stepping or has been stopped by a watchpoint.
13190
13191 2010-04-01 Pedro Alves <pedro@codesourcery.com>
13192
13193 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
13194 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
13195 of another, then delete the previous, and validate all
13196 breakpoints.
13197 (validate_inserted_breakpoint): New.
13198 (delete_disabled_breakpoints): New.
13199 (validate_breakpoints): New.
13200 (check_mem_read): Validate breakpoints before trusting their
13201 shadow. Delete disabled breakpoints.
13202 (check_mem_write): Validate breakpoints before trusting they
13203 should be inserted. Delete disabled breakpoints.
13204 * mem-break.h (validate_breakpoints):
13205 * server.c (handle_query): Validate breakpoints when we see a
13206 qSymbol query.
13207
13208 2010-04-01 Pedro Alves <pedro@codesourcery.com>
13209
13210 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
13211 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
13212 if we could tell there's a GDB breakpoint at stop_pc.
13213 (need_step_over_p): Don't do a step over if we find a GDB
13214 breakpoint at the resume PC.
13215
13216 * mem-break.c (struct raw_breakpoint): New.
13217 (enum bkpt_type): New type `gdb_breakpoint'.
13218 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
13219 fields. New field `raw'.
13220 (find_raw_breakpoint_at): New.
13221 (set_raw_breakpoint_at): Handle refcounting. Create a raw
13222 breakpoint instead.
13223 (set_breakpoint_at): Adjust.
13224 (delete_raw_breakpoint): New.
13225 (release_breakpoint): New.
13226 (delete_breakpoint): Rename to...
13227 (delete_breakpoint_1): ... this. Add proc parameter. Use
13228 release_breakpoint. Return ENOENT.
13229 (delete_breakpoint): Reimplement.
13230 (find_breakpoint_at): Delete.
13231 (find_gdb_breakpoint_at): New.
13232 (delete_breakpoint_at): Delete.
13233 (set_gdb_breakpoint_at): New.
13234 (delete_gdb_breakpoint_at): New.
13235 (gdb_breakpoint_here): New.
13236 (set_reinsert_breakpoint): Use release_breakpoint.
13237 (uninsert_breakpoint): Rename to ...
13238 (uninsert_raw_breakpoint): ... this.
13239 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
13240 (reinsert_raw_breakpoint): Change parameter type to
13241 raw_breakpoint.
13242 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
13243 instead.
13244 (check_breakpoints): Adjust. Use release_breakpoint.
13245 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
13246 (breakpoint_inserted_here): Ditto.
13247 (check_mem_read): Adjust to iterate over raw breakpoints instead.
13248 Don't trust the breakpoint's shadow if it is not inserted.
13249 (check_mem_write): Adjust to iterate over raw breakpoints instead.
13250 (delete_all_breakpoints): Adjust.
13251 (free_all_breakpoints): Mark all breakpoints as uninserted, and
13252 use delete_breakpoint_1.
13253
13254 * mem-break.h (breakpoints_supported): Delete declaration.
13255 (set_gdb_breakpoint_at): Declare.
13256 (gdb_breakpoint_here): Declare.
13257 (delete_breakpoint_at): Delete.
13258 (delete_gdb_breakpoint_at): Declare.
13259
13260 * server.h (struct raw_breakpoint): Forward declare.
13261 (struct process_info): New field `raw_breakpoints'.
13262
13263 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
13264 breakpoints.
13265
13266 2010-03-24 Pedro Alves <pedro@codesourcery.com>
13267
13268 * linux-low.c (status_pending_p_callback): Fix comment.
13269 (linux_wait_for_event_1): Move most of the internal breakpoint
13270 handling from here...
13271 (linux_wait_1): ... to here.
13272 (count_events_callback): New.
13273 (select_singlestep_lwp_callback): New.
13274 (select_event_lwp_callback): New.
13275 (cancel_breakpoints_callback): New.
13276 (select_event_lwp): New.
13277 (linux_wait_1): Simplify internal breakpoint handling. Give equal
13278 priority to all LWPs that have had events that should be reported
13279 to the client. Cancel breakpoints when about to reporting the
13280 event to the client, not while stopping lwps. No longer cancel
13281 finished single-steps here.
13282 (cancel_finished_single_step): Delete.
13283 (cancel_finished_single_steps): Delete.
13284
13285 2010-03-24 Pedro Alves <pedro@codesourcery.com>
13286
13287 * mem-break.c (enum bkpt_type): New.
13288 (struct breakpoint): New field `type'.
13289 (set_breakpoint_at): Change return type to struct breakpoint
13290 pointer. Set type to `other_breakpoint' by default.
13291 (delete_breakpoint): Rewrite, supporting more than one breakpoint
13292 in the breakpoint list.
13293 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
13294 (reinsert_breakpoint): Rename to ...
13295 (reinsert_raw_breakpoint): ... this.
13296 (reinsert_breakpoints_at): Adjust.
13297 * mem-break.h (struct breakpoint): Declare.
13298 (set_breakpoint_at): Change return type to struct breakpoint
13299 pointer.
13300
13301 2010-03-24 Pedro Alves <pedro@codesourcery.com>
13302
13303 * server.c (handle_query): Assign, not compare.
13304
13305 2010-03-24 Pedro Alves <pedro@codesourcery.com>
13306
13307 Teach linux gdbserver to step-over-breakpoints.
13308
13309 * linux-low.c (can_hardware_single_step): New.
13310 (supports_breakpoints): New.
13311 (handle_extended_wait): If stopping threads, read the stop pc of
13312 the new cloned LWP.
13313 (get_pc): New.
13314 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
13315 low target doesn't support retrieving the PC.
13316 (add_lwp): Set last_resume_kind to resume_continue.
13317 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
13318 (linux_attach): Don't clear stop_expected. Set the lwp's
13319 last_resume_kind to resume_stop.
13320 (linux_detach_one_lwp): Don't check for removed breakpoints.
13321 (check_removed_breakpoint): Delete.
13322 (status_pending_p): Rename to ...
13323 (status_pending_p_callback): ... this. Don't check for removed
13324 breakpoints. Don't consider threads that are stopped from GDB's
13325 perspective.
13326 (linux_wait_for_lwp): Always read the stop_pc here.
13327 (cancel_breakpoint): New.
13328 (step_over_bkpt): New global.
13329 (linux_wait_for_event_1): Implement stepping over breakpoints.
13330 (gdb_wants_lwp_stopped): New.
13331 (gdb_wants_all_stopped): New.
13332 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
13333 single-step traps here. Store the thread's last reported target
13334 wait status.
13335 (send_sigstop): Don't clear stop_expected. Always set it,
13336 instead.
13337 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
13338 (cancel_finished_single_step): New.
13339 (cancel_finished_single_steps): New.
13340 (wait_for_sigstop): Don't cancel finished single-step traps here.
13341 (linux_resume_one_lwp): Don't check for removed breakpoints.
13342 Don't set `step' on non-hardware step archs.
13343 (linux_set_resume_request): Ignore resume_stop requests if already
13344 stopping or stopped. Set the lwp's last_resume_kind.
13345 (resume_status_pending_p): Don't check for removed breakpoints.
13346 (need_step_over_p): New.
13347 (start_step_over): New.
13348 (finish_step_over): New.
13349 (linux_resume_one_thread): Always queue a sigstop for resume_stop
13350 requests. Clear the thread's last reported target waitstatus.
13351 Don't use the `suspended' flag. Don't consider pending breakpoints.
13352 (linux_resume): Start a step-over if necessary.
13353 (proceed_one_lwp): New.
13354 (proceed_all_lwps): New.
13355 (unstop_all_lwps): New.
13356 * linux-low.h (struct lwp_info): Rewrite comment for the
13357 `suspended' flag. Add the `stop_pc' field. Delete the
13358 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
13359 Add `'last_resume_kind' and `need_step_over' fields.
13360 * inferiors.c (struct thread_info): Delete, moved elsewhere.
13361 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
13362 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
13363 (set_raw_breakpoint_at): New.
13364 (set_breakpoint_at): Rewrite to use it.
13365 (reinsert_breakpoint_handler): Delete.
13366 (set_reinsert_breakpoint): New.
13367 (reinsert_breakpoint_by_bp): Delete.
13368 (delete_reinsert_breakpoints): New.
13369 (uninsert_breakpoint): Rewrite.
13370 (uninsert_breakpoints_at): New.
13371 (reinsert_breakpoint): Rewrite.
13372 (reinsert_breakpoints_at): New.
13373 (check_breakpoints): Rewrite.
13374 (breakpoint_here): New.
13375 (breakpoint_inserted_here): New.
13376 (check_mem_read): Adjust.
13377 * mem-break.h (breakpoints_supported, breakpoint_here)
13378 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
13379 (reinsert_breakpoint_by_bp): Delete declaration.
13380 (delete_reinsert_breakpoints): Declare.
13381 (reinsert_breakpoint): Delete declaration.
13382 (reinsert_breakpoints_at): Declare.
13383 (uninsert_breakpoint): Delete declaration.
13384 (uninsert_breakpoints_at): Declare.
13385 (check_breakpoints): Adjust prototype.
13386 * server.h: Adjust include order.
13387 (struct thread_info): Declare here. Add a `last_status' field.
13388
13389 2010-03-23 Michael Snyder <msnyder@vmware.com>
13390
13391 * server.c (crc32): New function.
13392 (handle_query): Add handling for 'qCRC:' request.
13393
13394 2010-03-23 Pedro Alves <pedro@codesourcery.com>
13395
13396 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
13397 lwp had been stopped by a watchpoint.
13398
13399 2010-03-16 Pedro Alves <pedro@codesourcery.com>
13400
13401 * server.h (internal_error): Declare.
13402 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
13403 * utils.c (internal_error): New function.
13404
13405 2010-03-15 Andreas Schwab <schwab@redhat.com>
13406
13407 * configure.srv: Fix typo setting srv_regobj.
13408
13409 2010-03-15 Pedro Alves <pedro@codesourcery.com>
13410
13411 * linux-low.c (fetch_register): Avoid passing a non string literal
13412 format to `error'.
13413 (usr_store_inferior_registers): Ditto.
13414
13415 2010-03-14 Pedro Alves <pedro@codesourcery.com>
13416
13417 * linux-low.c (linux_write_memory): Bail out early if peeking
13418 memory failed.
13419
13420 2010-03-14 Pedro Alves <pedro@codesourcery.com>
13421
13422 * linux-low.h (struct lwp_info): New fields
13423 `stopped_by_watchpoint' and `stopped_data_address'.
13424 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
13425 here, and cache them in the lwp object.
13426 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
13427 directly.
13428 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
13429 field.
13430 (linux_stopped_by_watchpoint): Rewrite.
13431 (linux_stopped_data_address): Rewrite.
13432
13433 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
13434
13435 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
13436 switching the current inferior, not before.
13437
13438 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
13439
13440 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
13441 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
13442 i386-linux.c and amd64-linux.c.
13443 (reg-i386.o): Removed.
13444 (reg-i386.c): Likewise.
13445 (reg-i386-linux.o): Likewise.
13446 (reg-i386-linux.c): Likewise.
13447 (reg-x86-64.o): Likewise.
13448 (reg-x86-64.c): Likewise.
13449 (reg-x86-64-linux.o): Likewise.
13450 (reg-x86-64-linux.c): Likewise.
13451 (i386.o): New.
13452 (i386.c): Likewise.
13453 (i386-linux.o): Likewise.
13454 (i386-linux.c): Likewise.
13455 (amd64.o): Likewise.
13456 (amd64.c): Likewise.
13457 (amd64-linux.o): Likewise.
13458 (amd64-linux.c): Likewise.
13459
13460 * configure.srv (srv_i386_regobj): New.
13461 (srv_i386_linux_regobj): Likewise.
13462 (srv_amd64_regobj): Likewise.
13463 (srv_amd64_linux_regobj): Likewise.
13464 (srv_i386_32bit_xmlfiles): Likewise.
13465 (srv_i386_64bit_xmlfiles): Likewise.
13466 (srv_i386_xmlfiles): Likewise.
13467 (srv_amd64_xmlfiles): Likewise.
13468 (srv_i386_linux_xmlfiles): Likewise.
13469 (srv_amd64_linux_xmlfiles): Likewise.
13470 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
13471 srv_xmlfiles to $srv_i386_xmlfiles.
13472 (i[34567]86-*-mingw32ce*): Likewise.
13473 (i[34567]86-*-mingw*): Likewise.
13474 (i[34567]86-*-nto*): Likewise.
13475 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
13476 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
13477 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
13478 (x86_64-*-linux*): Likewise.
13479
13480 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
13481 (init_registers_amd64_linux): New.
13482 (x86_arch_setup): Replace init_registers_x86_64_linux with
13483 init_registers_amd64_linux.
13484
13485 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
13486
13487 * configure.ac: Check for libdl. If it is not available link against
13488 static libthread_db.
13489 * configure: Regenerate.
13490
13491 2010-02-22 Pedro Alves <pedro@codesourcery.com>
13492
13493 PR9605
13494
13495 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
13496 handing a read watchpoint.
13497 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
13498
13499 2010-02-12 Doug Evans <dje@google.com>
13500
13501 * linux-low.c (linux_supports_tracefork_flag): Document.
13502 (linux_look_up_symbols): Add comment.
13503
13504 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
13505
13506 * regcache.c (supply_register): Clear regcache if buf is NULL.
13507
13508 2010-02-02 Nicolas Roche <roche@sourceware.org>
13509 Joel Brobecker <brobecker@adacore.com>
13510
13511 * inferiors.c (find_inferior): Add function documentation.
13512 (unloaded_dll): Handle the case where the unloaded dll has not
13513 been previously registered in the dll list.
13514
13515 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
13516
13517 * linux-arm-low.c (thumb_breakpoint_len): Delete.
13518 (thumb2_breakpoint): New.
13519 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
13520
13521 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
13522
13523 * linux-low.c (get_stop_pc): Check for SIGTRAP.
13524 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
13525 breakpoints.
13526
13527 2010-01-21 Pedro Alves <pedro@codesourcery.com>
13528
13529 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
13530
13531 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13532
13533 * linux-s390-low.c (s390_collect_ptrace_register)
13534 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
13535
13536 2010-01-21 Doug Evans <dje@google.com>
13537
13538 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
13539 (PTRACE_ARG4_TYPE): New macro.
13540 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
13541 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
13542 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
13543 (usr_store_inferior_registers): Ditto.
13544 (linux_read_memory, linux_write_memory): Ditto.
13545 (linux_test_for_tracefork): Ditto.
13546
13547 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
13548 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
13549
13550 2010-01-21 Pedro Alves <pedro@codesourcery.com>
13551
13552 * proc-service.c (ps_lgetregs): Don't refetch registers from the
13553 target.
13554
13555 2010-01-21 Pedro Alves <pedro@codesourcery.com>
13556
13557 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
13558 prototype to take a regcache. Adjust.
13559
13560 2010-01-20 Pedro Alves <pedro@codesourcery.com>
13561
13562 * regcache.h (struct thread_info): Forward declare.
13563 (struct regcache): New.
13564 (new_register_cache): Adjust prototype.
13565 (get_thread_regcache): Declare.
13566 (free_register_cache): Adjust prototype.
13567 (registers_to_string, registers_from_string): Ditto.
13568 (supply_register, supply_register_by_name, collect_register)
13569 (collect_register_as_string, collect_register_by_name): Ditto.
13570 * regcache.c (struct inferior_regcache_data): Delete.
13571 (get_regcache): Rename to ...
13572 (get_thread_regcache): ... this. Adjust. Switch inferior before
13573 fetching registers.
13574 (regcache_invalidate_one): Adjust.
13575 (regcache_invalidate): Fix prototype.
13576 (new_register_cache): Return the new register cache.
13577 (free_register_cache): Change prototype.
13578 (realloc_register_cache): Adjust.
13579 (registers_to_string): Change prototype to take a regcache. Adjust.
13580 (registers_from_string): Ditto.
13581 (register_data): Ditto.
13582 (supply_register): Ditto.
13583 (supply_register_by_name): Ditto.
13584 (collect_register): Ditto.
13585 (collect_register_as_string): Ditto.
13586 (collect_register_by_name): Ditto.
13587 * server.c (process_serial_event): Adjust.
13588 * linux-low.h (regset_fill_func, regset_store_func): Change
13589 prototype.
13590 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
13591 Change prototype.
13592 * linux-low.c (get_stop_pc): Adjust.
13593 (check_removed_breakpoint): Adjust.
13594 (linux_wait_for_event): Adjust.
13595 (linux_resume_one_lwp): Adjust.
13596 (fetch_register): Add regcache parameter. Adjust.
13597 (usr_store_inferior_registers): Ditto.
13598 (regsets_fetch_inferior_registers): Ditto.
13599 (regsets_store_inferior_registers): Ditto.
13600 (linux_fetch_registers, linux_store_registers): Ditto.
13601 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
13602 regcache. Adjust.
13603 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
13604 Ditto.
13605 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
13606 prototype to take a regcache.
13607 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
13608 * remote-utils.c (convert_ascii_to_int, outreg)
13609 (prepare_resume_reply): Change prototype to take a regcache.
13610 Adjust.
13611 * target.h (struct target_ops) <fetch_registers, store_registers>:
13612 Change prototype to take a regcache.
13613 (fetch_inferior_registers, store_inferior_registers): Change
13614 prototype to take a regcache. Adjust.
13615 * proc-service.c (ps_lgetregs): Adjust.
13616 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
13617 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
13618 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
13619 take a regcache. Adjust.
13620 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
13621 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
13622 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
13623 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
13624 * linux-cris-low.c (cris_get_pc, cris_set_pc)
13625 (cris_cannot_fetch_register):
13626 (cris_breakpoint_at): Change prototype to take a regcache.
13627 Adjust.
13628 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
13629 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
13630 to take a regcache. Adjust.
13631 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
13632 Adjust.
13633 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
13634 take a regcache. Adjust.
13635 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
13636 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
13637 (m68k_set_pc): Change prototype to take a regcache. Adjust.
13638 * linux-mips-low.c (mips_get_pc):
13639 (mips_set_pc): Change prototype to take a regcache. Adjust.
13640 (mips_reinsert_addr): Adjust.
13641 (mips_collect_register): Change prototype to take a regcache.
13642 Adjust.
13643 (mips_supply_register):
13644 (mips_collect_register_32bit, mips_supply_register_32bit)
13645 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
13646 (mips_store_fpregset): Ditto.
13647 * linux-ppc-low.c (ppc_supply_ptrace_register)
13648 (ppc_supply_ptrace_register): Ditto.
13649 (parse_spufs_run): Adjust.
13650 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
13651 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
13652 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
13653 take a regcache. Adjust.
13654 * linux-s390-low.c (s390_collect_ptrace_register)
13655 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
13656 (s390_set_pc): Change prototype to take a regcache. Adjust.
13657 (s390_arch_setup): Adjust.
13658 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
13659 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
13660 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
13661 (sparc_fill_gregset, sparc_store_gregset_from_stack)
13662 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
13663 regcache. Adjust.
13664 (sparc_breakpoint_at): Adjust.
13665 * linux-xtensa-low.c (xtensa_fill_gregset):
13666 (xtensa_store_gregset):
13667 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
13668 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
13669 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
13670 prototype to take a regcache. Adjust.
13671 * win32-arm-low.c (arm_fetch_inferior_register)
13672 (arm_store_inferior_register): Change prototype to take a
13673 regcache. Adjust.
13674 * win32-i386-low.c (i386_fetch_inferior_register)
13675 (i386_store_inferior_register): Change prototype to take a
13676 regcache. Adjust.
13677 * win32-low.c (child_fetch_inferior_registers)
13678 (child_store_inferior_registers): Change prototype to take a
13679 regcache. Adjust.
13680 (win32_wait): Adjust.
13681 (win32_fetch_inferior_registers): Change prototype to take a
13682 regcache. Adjust.
13683 (win32_store_inferior_registers): Adjust.
13684 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
13685 store_inferior_register>: Change prototype to take a regcache.
13686
13687 2010-01-20 Doug Evans <dje@google.com>
13688
13689 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
13690 #ifdef.
13691 (linux_wait_for_event1, linux_init_signals): Ditto.
13692 (W_STOPCODE): Provide definition if missing.
13693
13694 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
13695
13696 * linux-low.c (linux_core_of_thread): New.
13697 (compare_ints, show_process, list_threads): New.
13698 (linux_qxfer_osdata): Report threads and cores.
13699 (linux_target_op): Register linux_core_of_thread.
13700 * remote-utils.c (prepare_resume_reply): Report the core.
13701 (buffer_xml_printf): Support %d specifier.
13702 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
13703 New.
13704 (handle_query): Handle qXfer:threads. Announce availability
13705 thereof.
13706 * target.h (struct target_ops): New field core_of_thread.
13707
13708 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
13709
13710 * Makefile.in (clean): Remove new generated files.
13711 (reg-s390.o, reg-s390.c): Remove rules.
13712 (reg-s390x.o, reg-s390x.c): Likewise.
13713 (s390-linux32.o, s390-linux32.c): Add rules.
13714 (s390-linux64.o, s390-linux64.c): Likewise.
13715 (s390x-linux64.o, s390x-linux64.c): Likewise.
13716 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
13717 * linux-s390-low.c: Include <elf.h>.
13718 (HWCAP_S390_HIGH_GPRS): Define if undefined.
13719 (init_registers_s390): Remove prototype.
13720 (init_registers_s390x): Likewise.
13721 (init_registers_s390_linux32): Add prototype.
13722 (init_registers_s390_linux64): Likewise.
13723 (init_registers_s390x_linux64): Likewise.
13724 (s390_num_regs_3264): New define.
13725 (s390_regmap_3264): New global variable.
13726 (s390_cannot_fetch_register): Remove obsolete check.
13727 (s390_cannot_store_register): Likewise.
13728 (s390_collect_ptrace_register): Handle upper/lower register halves.
13729 (s390_supply_ptrace_register): Likewise.
13730 (s390_fill_gregset): Update to register number changes.
13731 (s390_get_hwcap): New routine.
13732 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
13733 Install appropriate regmap and register set.
13734
13735 2010-01-01 Joel Brobecker <brobecker@adacore.com>
13736
13737 * server.c (gdbserver_version): Update copyright year to 2010.
13738 * gdbreplay.c (gdbreplay_version): Likewise.
13739
13740 2009-12-28 Doug Evans <dje@google.com>
13741
13742 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
13743 elf/external.h. Include <elf.h> instead but only if necessary.
13744
13745 2009-12-28 Pedro Alves <pedro@codesourcery.com>
13746
13747 * linux-low.c (linux_remove_process): Remove `detaching'
13748 parameter. Don't release/detach from thread_db here.
13749 (linux_kill): Release/detach from thread_db here, ...
13750 (linux_detach): ... and here, before actually detaching.
13751 (linux_wait_1): ... and here, when a process exits.
13752 * thread-db.c (any_thread_of): New.
13753 (thread_db_free): Switch the current inferior to a thread of the
13754 passed in process.
13755
13756 2009-12-21 Doug Evans <dje@google.com>
13757
13758 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
13759
13760 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
13761 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
13762 warning ifndef __NR_tkill. Move setting of errno there too.
13763 Delete unnecessary resetting of errno after syscall.
13764 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
13765
13766 * configure.ac: Check for dladdr.
13767 * config.in: Regenerate.
13768 * configure: Regenerate.
13769 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
13770 (try_thread_db_load): Update.
13771
13772 * linux-low.c (my_waitpid): Delete unnecessary prototype.
13773
13774 2009-12-18 Doug Evans <dje@google.com>
13775
13776 * event-loop.c: Include unistd.h if it exists.
13777
13778 * linux-low.c (my_waitpid): Move definition away from being in
13779 between linux_tracefork_child/linux_test_for_tracefork.
13780
13781 * gdb_proc_service.h (psaddr_t): Fix type.
13782 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
13783 signature to match glibc.
13784
13785 2009-12-16 Doug Evans <dje@google.com>
13786
13787 * linux-low.c (linux_read_memory): Fix argument to read.
13788
13789 2009-11-26 Pedro Alves <pedro@codesourcery.com>
13790
13791 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
13792 events, don't leave current_inferior pointing at null.
13793
13794 2009-11-26 Pedro Alves <pedro@codesourcery.com>
13795
13796 * win32-low.c (LOG): Delete.
13797 (OUTMSG): Output to stderr.
13798 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
13799 on compile time LOG macro.
13800 (win32_wait): Fix debug output.
13801
13802 2009-11-26 Pedro Alves <pedro@codesourcery.com>
13803
13804 * win32-low.c (win32_add_one_solib): If the dll name is
13805 "ntdll.dll", prepend the system directory to the dll path.
13806
13807 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
13808
13809 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
13810
13811 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
13812 Vladimir Prus <vladimir@codesourcery.com>
13813
13814 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
13815 * configure.ac: Check for __mcoldfire__ and set
13816 gdb_cv_m68k_is_coldfire.
13817 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
13818 reg-cf.o and reg-m68k.o.
13819 * configure: Regenerated.
13820
13821 2009-11-16 Pedro Alves <pedro@codesourcery.com>
13822
13823 * linux-low.c (linux_remove_process): Add `detaching' parameter.
13824 Pass it to thread_db_free.
13825 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
13826 proper `detaching' argument to linux_remove_process.
13827 * linux-low.h (thread_db_free): Add `detaching' parameter.
13828 * thread-db.c (thread_db_init): Pass false as `detaching' argument
13829 to thread_db_free.
13830 (thread_db_free): Add `detaching' parameter. Only
13831 call td_ta_clear_event if detaching from process.
13832
13833 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
13834
13835 * thread-db.c (thread_db_free): Fix typo.
13836
13837 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
13838
13839 PR gdb/10838
13840 * thread-db.c (thread_db_free): Call td_ta_clear_event.
13841
13842 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
13843
13844 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
13845 with an i686 compiler.
13846 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
13847 needed.
13848 * configure: Rebuilt.
13849
13850 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
13851
13852 PR gdb/10783
13853
13854 * server.c (handle_search_memory_1): Correct read_addr initialization
13855 in loop for searching subsequent chunks.
13856
13857 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
13858
13859 * configure.ac: New --with-libthread-db option.
13860 * thread-db.c: Allow direct dependence on libthread_db.
13861 (thread_db_free): Adjust.
13862 * config.in: Regenerate.
13863 * configure: Likewise.
13864
13865 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
13866
13867 PR gdb/10757
13868 * thread-db.c (attach_thread): New function.
13869 (maybe_attach_thread): Return success/failure.
13870 (find_new_threads_callback): Adjust.
13871 (thread_db_find_new_threads): Loop until no new threads.
13872
13873 2009-10-13 Pedro Alves <pedro@codesourcery.com>
13874
13875 * proc-service.c (ps_lgetregs): Formatting.
13876
13877 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
13878
13879 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
13880 * configure.ac: Adjust.
13881 * linux-low.h (struct process_info_private): Move members to struct
13882 thread_db.
13883 (thread_db_free, thread_db_handle_monitor_command): New prototype.
13884 * linux-low.c (linux_remove_process): Adjust.
13885 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
13886 * server.c (handle_query): Move code ...
13887 (handle_monitor_command): ... here. New function.
13888 * target.h (struct target_ops): New member.
13889 * thread-db.c (struct thread_db): New.
13890 (libthread_db_search_path): New variable.
13891 (thread_db_create_event, thread_db_enable_reporting)
13892 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
13893 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
13894 (try_thread_db_load_1, dladdr_to_soname): New functions.
13895 (try_thread_db_load, thread_db_load_search): New functions.
13896 (thread_db_init): Search for libthread_db.
13897 (thread_db_free): New function.
13898 (thread_db_handle_monitor_command): Likewise.
13899 * config.in: Regenerate.
13900 * configure: Regenerate.
13901
13902 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
13903
13904 * spu-low.c (spu_kill): Wait for inferior to terminate.
13905 Call clear_inferiors.
13906 (spu_detach): Call clear_inferiors.
13907
13908 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13909
13910 * aclocal.m4: Regenerate.
13911 * config.in: Likewise.
13912 * configure: Likewise.
13913
13914 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
13915
13916 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
13917 (parse_spufs_run): New function.
13918 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
13919 (ppc_breakpoint_at): Handle SPU breakpoints.
13920
13921 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
13922
13923 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
13924 (SPUFS_MAGIC): Define.
13925 (spu_enumerate_spu_ids): New function.
13926 (linux_qxfer_spu): New function.
13927 (linux_target_ops): Install linux_qxfer_spu.
13928
13929 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
13930
13931 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
13932 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
13933 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
13934 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
13935 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
13936 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
13937 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
13938 (init_registers_powerpc_cell32l): Add prototype.
13939 (init_registers_powerpc_cell64l): Likewise.
13940 (ppc_arch_setup): Detect Cell/B.E. architecture.
13941
13942 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13943
13944 * Makefile.in (datarootdir): New variable.
13945
13946 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
13947
13948 * linux-low.c (linux_write_memory): Update debugging output.
13949 * Makefile.in (clean): Add new descriptions.
13950 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
13951 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
13952 * configure.srv: Add new files for arm*-*-linux*.
13953 * linux-arm-low.c: Add new declarations.
13954 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
13955 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
13956 (HWCAP_VFPv3D16): New.
13957 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
13958 instead of __IWMMXT__.
13959 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
13960 (arm_arch_setup): New.
13961 (target_regsets): Remove #ifdef. Add VFP regset.
13962 (the_low_target): Use arm_arch_setup.
13963
13964 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
13965
13966 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
13967 the main thread again.
13968
13969 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
13970
13971 Adding Neutrino gdbserver.
13972 * configure: Regenerated.
13973 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
13974 * configure.srv (i[34567]86-*-nto*): New target.
13975 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
13976 * remote-utils.c [__QNX__]: Include sys/iomgr.h
13977 (nto_comctrl) [__QNX__]: New function.
13978 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
13979
13980 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
13981
13982 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
13983 srv_tgtobj.
13984
13985 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
13986 Pedro Alves <pedro@codesourcery.com>
13987
13988 * win32-i386-low.c (i386_get_thread_context): Handle systems that
13989 don't support CONTEXT_EXTENDED_REGISTERS.
13990 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
13991 (the_low_target): Install them.
13992 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
13993 failing with ERROR_PIPE_NOT_CONNECTED.
13994
13995 2009-06-30 Doug Evans <dje@google.com>
13996 Pierre Muller <muller@ics.u-strasbg.fr>
13997
13998 Add h/w watchpoint support to x86-linux, win32-i386.
13999 * Makefile.in (SFILES): Add i386-low.c
14000 (i386_low_h): Define.
14001 (i386-low.o): Add dependencies.
14002 (linux-x86-low.o): Add i386-low.h dependency.
14003 (win32-i386-low.o): Ditto.
14004 * i386-low.c: New file.
14005 * i386-low.h: New file.
14006 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
14007 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
14008 * linux-low.c (linux_add_process): Initialize arch_private.
14009 (linux_remove_process): Free arch_private.
14010 (add_lwp): Initialize arch_private.
14011 (delete_lwp): Free arch_private.
14012 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
14013 provided.
14014 * linux-low.h (process_info_private): New member arch_private.
14015 (lwp_info): New member arch_private.
14016 (linux_target_ops): New members new_process, new_thread,
14017 prepare_to_resume.
14018 (ptid_of): New macro.
14019 * linux-x86-low.c: Include stddef.h, i386-low.h.
14020 (arch_process_info): New struct.
14021 (arch_lwp_info): New struct.
14022 (x86_linux_dr_get, x86_linux_dr_set): New functions.
14023 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
14024 (i386_dr_low_get_status): New function.
14025 (x86_insert_point, x86_remove_point): New functions.
14026 (x86_stopped_by_watchpoint): New function.
14027 (x86_stopped_data_address): New function.
14028 (x86_linux_new_process, x86_linux_new_thread): New functions.
14029 (x86_linux_prepare_to_resume): New function.
14030 (the_low_target): Add entries for insert_point, remove_point,
14031 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
14032 prepare_to_resume.
14033 * server.c (debug_hw_points): New global.
14034 (monitor_show_help): Document set debug-hw-points.
14035 (handle_query): Process "set debug-hw-points".
14036 * server.h (debug_hw_points): Declare.
14037 (paddress): Declare.
14038 * utils.c (NUMCELLS, CELLSIZE): New macros.
14039 (get_sell, xsnprintf, paddress): New functions.
14040 * win32-arm-low.c (the_low_target): Add entries for insert_point,
14041 remove_point, stopped_by_watchpoint, stopped_data_address.
14042 * win32-i386-low.c: Include i386-low.h.
14043 (debug_reg_state): Replaces dr.
14044 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
14045 (i386_dr_low_get_status): New function.
14046 (i386_insert_point, i386_remove_point): New functions.
14047 (i386_stopped_by_watchpoint): New function.
14048 (i386_stopped_data_address): New function.
14049 (i386_initial_stuff): Update.
14050 (get_thread_context,set_thread_context,i386_thread_added): Update.
14051 (the_low_target): Add entries for insert_point,
14052 remove_point, stopped_by_watchpoint, stopped_data_address.
14053 * win32-low.c (win32_insert_watchpoint): New function.
14054 (win32_remove_watchpoint): New function.
14055 (win32_stopped_by_watchpoint): New function.
14056 (win32_stopped_data_address): New function.
14057 (win32_target_ops): Add entries for insert_watchpoint,
14058 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
14059 * win32-low.h (win32_target_ops): New members insert_point,
14060 remove_point, stopped_by_watchpoint, stopped_data_address.
14061
14062 2009-06-25 Pedro Alves <pedro@codesourcery.com>
14063
14064 * server.c (process_serial_event): Re-return unsupported, not
14065 error, if the type isn't recognized. Re-allow supporting only
14066 insert or remove packets. Also call require_running for
14067 breakpoints. Add missing break statement to default case. Tidy.
14068 * target.h (struct target_ops): Rename insert_watchpoint to
14069 insert_point, and remove_watchpoint to remove_point.
14070
14071 * linux-low.h (struct linux_target_ops): Likewise.
14072 * linux-low.c (linux_insert_watchpoint): Rename to ...
14073 (linux_insert_point): ... this. Adjust.
14074 (linux_remove_watchpoint): Rename to ...
14075 (linux_remove_point): ... this. Adjust.
14076 (linux_target_ops): Adjust.
14077 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
14078 (cris_insert_point): ... this.
14079 (cris_remove_watchpoint): Rename to ...
14080 (cris_remove_point): ... this.
14081 (the_low_target): Adjust.
14082
14083 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
14084
14085 * server.c (handle_v_kill): Pass signal_pid to
14086 kill_inferior if multi_process is zero.
14087
14088 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
14089
14090 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
14091 * target.h (target_ops): Comment for *_watchpoint to make it clear
14092 the functions can get types '0' and '1'.
14093
14094 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
14095
14096 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
14097 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
14098 * regcache.c (get_regcache): Likewise.
14099 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
14100 * win32-low.c (child_fetch_inferior_registers): Remove check for
14101 regno 0.
14102
14103 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
14104 Pedro Alves <pedro@codesourcery.com>
14105
14106 * target.h (struct target_ops) <supports_multi_process>: New
14107 callback.
14108 (target_supports_multi_process): New.
14109 * server.c (handle_query): Even if GDB reports support, only
14110 enable multi-process if the target also supports it. Report
14111 multi-process support only if the target backend supports it.
14112 * linux-low.c (linux_supports_multi_process): New function.
14113 (linux_target_ops): Install it as target_supports_multi_process
14114 callback.
14115
14116 2009-05-24 Doug Evans <dje@google.com>
14117
14118 Global renaming of find_thread_pid to find_thread_ptid.
14119 * server.h (find_thread_ptid): Renamed from find_thread_pid.
14120 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
14121 All callers updated.
14122
14123 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
14124 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
14125 directly.
14126
14127 * linux-low.c (get_stop_pc): Print pc if debug_threads.
14128 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
14129 (linux_resume_one_lwp): Ditto.
14130
14131 2009-05-23 Doug Evans <dje@google.com>
14132
14133 * linux-low.c (linux_resume_one_lwp): Change type of first arg
14134 from struct inferior_list_entry * to struct lwp_info *.
14135 All callers updated.
14136
14137 2009-05-13 Doug Evans <dje@google.com>
14138
14139 * linux-x86-low.c: Don't include assert.h.
14140 (x86_siginfo_fixup): Use fatal, not assert.
14141 (x86_arch_setup): Fix comment.
14142
14143 2009-05-12 Doug Evans <dje@google.com>
14144
14145 Biarch support for i386/amd64 gdbserver.
14146 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
14147 Add linux-x86-low.c.
14148 (linux-i386-low.o, linux-x86-64-low.o): Delete.
14149 (linux-x86-low.o): Add.
14150 * linux-x86-64-low.c: Delete.
14151 * linux-i386-low.c: Delete.
14152 * linux-x86-low.c: New file.
14153 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
14154 linux-x86-low.o.
14155 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
14156 linux-x86-low.o.
14157 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
14158 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
14159 (linux_child_pid_to_exec_file): New function.
14160 (elf_64_header_p, elf_64_file_p): New functions.
14161 (siginfo_fixup): New function.
14162 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
14163 give target a chance to convert layout.
14164 * linux-low.h (linux_target_ops): New member siginfo_fixup.
14165 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
14166
14167 2009-05-07 Doug Evans <dje@google.com>
14168
14169 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
14170 (regsets_store_inferior_registers): Ditto.
14171
14172 2009-05-06 Pedro Alves <pedro@codesourcery.com>
14173
14174 PR server/10048
14175
14176 * linux-low.c (must_set_ptrace_flags): Delete.
14177 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
14178 of the global.
14179 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
14180 `lwp->must_set_ptrace_flags' instead.
14181 (linux_wait_for_event_1): Set ptrace options here.
14182 (linux_wait_1): ... not here.
14183
14184 2009-04-30 Doug Evans <dje@google.com>
14185
14186 * inferiors.c (started_inferior_callback): New function.
14187 (attached_inferior_callback): New function.
14188 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
14189 * server.c (print_started_pid, print_attached_pid): New functions.
14190 (detach_or_kill_for_exit): New function.
14191 (main): Call it instead of for_each_inferior (kill_inferior_callback).
14192 * server.h (have_started_inferiors_p): Declare.
14193 (have_attached_inferiors_p): Declare.
14194
14195 * inferiors.c (remove_process): Fix memory leak, free process.
14196 * linux-low.c (linux_remove_process): New function.
14197 (linux_kill): Call it instead of remove_process.
14198 (linux_detach, linux_wait_1): Ditto.
14199
14200 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
14201
14202 * configure.srv: Add x86 Windows CE target.
14203
14204 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
14205
14206 * inferiors.c (get_thread_process): Make global.
14207 * server.h (get_thread_process): Add prototype.
14208 * thread-db.c (find_one_thread): Use get_thread_process
14209 instead of current_process.
14210 (thread_db_get_tls_address): Do not crash if called when
14211 thread layer is not yet initialized.
14212
14213 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
14214
14215 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
14216 * spu-low.c (current_tid): Rename to ...
14217 (current_ptid): ... this.
14218 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
14219 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
14220 ptid_get_lwp (current_ptid) instead of current_tid.
14221 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
14222 instead of current_tid. Use find_process_pid to verify pid
14223 argument is valid. Pass proper argument to remove_process.
14224 (spu_thread_alive): Compare current_ptid instead of current_tid.
14225 (spu_resume): Likewise.
14226
14227 2009-04-02 Pedro Alves <pedro@codesourcery.com>
14228
14229 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
14230 variable.
14231
14232 2009-04-01 Pedro Alves <pedro@codesourcery.com>
14233
14234 Implement the multiprocess extensions, and add linux multiprocess
14235 support.
14236
14237 * server.h (ULONGEST): Declare.
14238 (struct ptid, ptid_t): New.
14239 (minus_one_ptid, null_ptid): Declare.
14240 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
14241 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
14242 (struct inferior_list_entry): Change `id' type from unsigned from
14243 to ptid_t.
14244 (struct sym_cache, struct breakpoint, struct
14245 process_info_private): Forward declare.
14246 (struct process_info): Declare.
14247 (current_process): Declare.
14248 (all_processes): Declare.
14249 (initialize_inferiors): Declare.
14250 (add_thread): Adjust to use ptid_t.
14251 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
14252 (add_process, remove_process, find_thread_pid): Declare.
14253 (find_inferior_id): Adjust to use ptid_t.
14254 (cont_thread, general_thread, step_thread): Change type to ptid_t.
14255 (multi_process): Declare.
14256 (push_event): Adjust to use ptid_t.
14257 (read_ptid, write_ptid): Declare.
14258 (prepare_resume_reply): Adjust to use ptid_t.
14259 (clear_symbol_cache): Declare.
14260 * inferiors.c (all_processes): New.
14261 (null_ptid, minus_one_ptid): New.
14262 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
14263 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
14264 (add_thread): Change unsigned long to ptid. Remove gdb_id
14265 parameter. Adjust.
14266 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
14267 (gdb_id_to_thread): Rename to ...
14268 (find_thread_pid): ... this. Change unsigned long to ptid.
14269 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
14270 (loaded_dll, pull_pid_from_list): Adjust.
14271 (add_process, remove_process, find_process_pid)
14272 (get_thread_process, current_process, initialize_inferiors): New.
14273 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
14274 (struct target_waitstatus) <related_pid>: Ditto.
14275 (struct target_ops) <kill, detach>: Add `pid' argument. Change
14276 return type to int.
14277 (struct target_ops) <join>: Add `pid' argument.
14278 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
14279 (struct target_ops) <wait>: Add `ptid' field. Change return type
14280 to ptid.
14281 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
14282 (mywait): Add `ptid' argument. Change return type to ptid_t.
14283 (target_pid_to_str): Declare.
14284 * target.c (set_desired_inferior): Adjust to use ptids.
14285 (mywait): Add new `ptid' argument. Adjust.
14286 (target_pid_to_str): New.
14287 * mem-break.h (free_all_breakpoints): Declare.
14288 * mem-break.c (breakpoints): Delelete.
14289 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
14290 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
14291 to use per-process breakpoint list.
14292 (free_all_breakpoints): New.
14293 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
14294 (symbol_cache, all_symbols_looked_up): Delete.
14295 (hexchars): New.
14296 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
14297 read_ptid): New.
14298 (prepare_resume_reply): Change ptid argument's type from unsigned
14299 long to ptid_t. Adjust. Implement W;process and X;process.
14300 (free_sym_cache, clear_symbol_cache): New.
14301 (look_up_one_symbol): Adjust to per-process symbol cache. *
14302 * server.c (cont_thread, general_thread, step_thread): Change type
14303 to ptid_t.
14304 (attached): Delete.
14305 (multi_process): New.
14306 (last_ptid): Change type to ptid_t.
14307 (struct vstop_notif) <ptid>: Change type to ptid_t.
14308 (queue_stop_reply, push_event): Change `ptid' argument's type to
14309 ptid_t.
14310 (discard_queued_stop_replies): Add `pid' argument.
14311 (start_inferior): Adjust to use ptids. Adjust to mywait interface
14312 changes. Don't reference the `attached' global.
14313 (attach_inferior): Adjust to mywait interface changes.
14314 (handle_query): Adjust to use ptids. Parse GDB's qSupported
14315 features. Handle and report "multiprocess+". Handle
14316 "qAttached:PID".
14317 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
14318 changes.
14319 (handle_v_kill): New.
14320 (handle_v_stopped): Adjust to use target_pid_to_str.
14321 (handle_v_requests): Allow multiple attaches and runs when
14322 multiprocess extensions are in effect. Handle "vKill".
14323 (myresume): Adjust to use ptids.
14324 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
14325 (handle_status): Adjust to discard_queued_stop_replies interface
14326 change.
14327 (first_thread_of, kill_inferior_callback)
14328 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
14329 (main): Call initialize_inferiors. Adjust to use ptids, killing
14330 and detaching from all inferiors. Handle multiprocess packet
14331 variants.
14332 * linux-low.h: Include gdb_proc_service.h.
14333 (struct process_info_private): New.
14334 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
14335 <lwpid_of>: Use ptid_get_lwp.
14336 (get_lwp_thread): Adjust.
14337 (struct lwp_info): Add `dead' member.
14338 (find_lwp_pid): Declare.
14339 * linux-low.c (thread_db_active): Delete.
14340 (new_inferior): Adjust comment.
14341 (inferior_pid): Delete.
14342 (linux_add_process): New.
14343 (handle_extended_wait): Adjust.
14344 (add_lwp): Change unsigned long to ptid.
14345 (linux_create_inferior): Add process to processes table. Adjust
14346 to use ptids. Don't set new_inferior here.
14347 (linux_attach_lwp): Rename to ...
14348 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
14349 it. Adjust to use ptids.
14350 (linux_attach_lwp): New.
14351 (linux_attach): Add process to processes table. Don't set
14352 new_inferior here.
14353 (struct counter): New.
14354 (second_thread_of_pid_p, last_thread_of_process_p): New.
14355 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
14356 multiple processes.
14357 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
14358 processes. Remove process from process table.
14359 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
14360 to multiple processes.
14361 (any_thread_of): New.
14362 (linux_detach): Add `pid' argument, and handle it. Remove process
14363 from processes table.
14364 (linux_join): Add `pid' argument. Handle it.
14365 (linux_thread_alive): Change unsighed long argument to ptid_t.
14366 Consider dead lwps as not being alive.
14367 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
14368 threads we're not interested in.
14369 (same_lwp, find_lwp_pid): New.
14370 (linux_wait_for_lwp): Change `pid' argument's type from int to
14371 ptid_t. Adjust.
14372 (linux_wait_for_event): Rename to ...
14373 (linux_wait_for_event_1): ... this. Change `pid' argument's type
14374 from int to ptid_t. Adjust.
14375 (linux_wait_for_event): New.
14376 (linux_wait_1): Add `ptid' argument. Change return type to
14377 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
14378 that exit from the process table.
14379 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
14380 Adjust.
14381 (mark_lwp_dead): New.
14382 (wait_for_sigstop): Adjust to use ptids. If a process exits while
14383 stopping all threads, mark its main lwp as dead.
14384 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
14385 ptids.
14386 (fetch_register, usr_store_inferior_registers)
14387 (regsets_fetch_inferior_registers)
14388 (regsets_store_inferior_registers, linux_read_memory)
14389 (linux_write_memory): Inline `inferior_pid'.
14390 (linux_look_up_symbols): Adjust to use per-process
14391 `thread_db_active'.
14392 (linux_request_interrupt): Adjust to use ptids.
14393 (linux_read_auxv): Inline `inferior_pid'.
14394 (initialize_low): Don't reference thread_db_active.
14395 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
14396 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
14397 (ps_getpid): Return the pid of the current inferior.
14398 * thread-db.c (proc_handle, thread_agent): Delete.
14399 (thread_db_create_event, thread_db_enable_reporting): Adjust to
14400 per-process data.
14401 (find_one_thread): Change argument type to ptid_t. Adjust to
14402 per-process data.
14403 (maybe_attach_thread): Adjust to per-process data and ptids.
14404 (thread_db_find_new_threads): Ditto.
14405 (thread_db_init): Ditto.
14406 * spu-low.c (spu_create_inferior, spu_attach): Add process to
14407 processes table. Adjust to use ptids.
14408 (spu_kill, spu_detach): Adjust interface. Remove process from
14409 processes table.
14410 (spu_join, spu_thread_alive): Adjust interface.
14411 (spu_wait): Adjust interface. Remove process from processes
14412 table. Adjust to use ptids.
14413 * win32-low.c (current_inferior_tid): Delete.
14414 (current_inferior_ptid): New.
14415 (debug_event_ptid): New.
14416 (thread_rec): Take a ptid. Adjust.
14417 (child_add_thread): Add `pid' argument. Adjust to use ptids.
14418 (child_delete_thread): Ditto.
14419 (do_initial_child_stuff): Add `attached' argument. Add process to
14420 processes table.
14421 (child_fetch_inferior_registers, child_store_inferior_registers):
14422 Adjust.
14423 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
14424 (win32_attach): Pass 1 to do_initial_child_stuff.
14425 (win32_kill): Adjust interface. Remove process from processes
14426 table.
14427 (win32_detach): Ditto.
14428 (win32_join): Adjust interface.
14429 (win32_thread_alive): Take a ptid.
14430 (win32_resume): Adjust to use ptids.
14431 (get_child_debug_event): Ditto.
14432 (win32_wait): Adjust interface. Remove exiting process from
14433 processes table.
14434
14435 2009-04-01 Pedro Alves <pedro@codesourcery.com>
14436
14437 Non-stop mode support.
14438
14439 * server.h (non_stop): Declare.
14440 (gdb_client_data, handler_func): Declare.
14441 (delete_file_handler, add_file_handler, start_event_loop):
14442 Declare.
14443 (handle_serial_event, handle_target_event, push_event)
14444 (putpkt_notif): Declare.
14445 * target.h (enum resume_kind): New.
14446 (struct thread_resume): Replace `step' field by `kind' field.
14447 (TARGET_WNOHANG): Define.
14448 (struct target_ops) <wait>: Add `options' argument.
14449 <supports_non_stop, async, start_non_stop>: New fields.
14450 (target_supports_non_stop, target_async): New.
14451 (start_non_stop): Declare.
14452 (mywait): Add `options' argument.
14453 * target.c (mywait): Add `options' argument. Print child exit
14454 notifications here.
14455 (start_non_stop): New.
14456 * server.c (non_stop, own_buf, mem_buf): New globals.
14457 (struct vstop_notif): New.
14458 (notif_queue): New global.
14459 (queue_stop_reply, push_event, discard_queued_stop_replies)
14460 (send_next_stop_reply): New.
14461 (start_inferior): Adjust to use resume_kind. Adjust to mywait
14462 interface changes.
14463 (attach_inferior): In non-stop mode, don't wait for the target
14464 here.
14465 (handle_general_set): Handle QNonStop.
14466 (handle_query): When handling qC, return the current general
14467 thread, instead of the first thread of the list.
14468 (handle_query): If the backend supports non-stop mode, include
14469 QNonStop+ in the qSupported query response.
14470 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
14471 and non-stop mode.
14472 (handle_v_attach, handle_v_run): Handle non-stop mode.
14473 (handle_v_stopped): New.
14474 (handle_v_requests): Report support for vCont;t. Handle vStopped.
14475 (myresume): Adjust to use resume_kind. Handle non-stop.
14476 (queue_stop_reply_callback): New.
14477 (handle_status): Handle non-stop mode.
14478 (main): Clear non_stop flag on reconnection. Use the event-loop.
14479 Refactor serial protocol handling from here ...
14480 (process_serial_event): ... to this new function. When GDB
14481 selects any thread, select one here. In non-stop mode, wait until
14482 GDB acks all pending events before exiting.
14483 (handle_serial_event, handle_target_event): New.
14484 * remote-utils.c (remote_open): Install remote_desc in the event
14485 loop.
14486 (remote_close): Remove remote_desc from the event loop.
14487 (putpkt_binary): Rename to...
14488 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
14489 (putpkt_binary): New as wrapper around putpkt_binary_1.
14490 (putpkt_notif): New.
14491 (prepare_resume_reply): In non-stop mode, don't change the
14492 general_thread.
14493 * event-loop.c: New.
14494 * Makefile.in (OBJ): Add event-loop.o.
14495 (event-loop.o): New rule.
14496
14497 * linux-low.h (pid_of): Moved here.
14498 (lwpid_of): New.
14499 (get_lwp_thread): Use lwpid_of.
14500 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
14501 * linux-low.c (pid_of): Delete.
14502 (inferior_pid): Use lwpid_of.
14503 (linux_event_pipe): New.
14504 (target_is_async_p): New.
14505 (delete_lwp): New.
14506 (handle_extended_wait): Use lwpid_of.
14507 (add_lwp): Don't set lwpid field.
14508 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
14509 (linux_kill_one_lwp): If killing a running lwp, stop it first.
14510 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
14511 (linux_detach_one_lwp): If detaching from a running lwp, stop it
14512 first. Adjust to linux_wait_for_event interface changes. Use
14513 lwpid_of.
14514 (linux_detach): Don't delete the main lwp here.
14515 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
14516 (status_pending_p): Don't consider explicitly suspended lwps.
14517 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
14518 pointer. Add OPTIONS argument. Change return type to int. Use
14519 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
14520 (linux_wait_for_event): Take an integer pid instead of a lwp_info
14521 pointer. Add status pointer argument. Return a pid instead of a
14522 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
14523 changes. In non-stop mode, don't switch to a random thread.
14524 (linux_wait): Rename to...
14525 (linux_wait_1): ... this. Add target_options argument, and handle
14526 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
14527 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
14528 clean exit and signal exit code. Don't stop all threads in
14529 non-stop mode. In all-stop mode, only stop all threads when
14530 reporting a stop to GDB. Handle explicit thread stop requests.
14531 (async_file_flush, async_file_mark): New.
14532 (linux_wait): New.
14533 (send_sigstop): Use lwpid_of.
14534 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
14535 interface changes. In non-stop mode, don't switch to a random
14536 thread.
14537 (linux_resume_one_lwp): Use lwpid_of.
14538 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
14539 (linux_resume_one_thread): ... this. Handle resume_stop. In
14540 non-stop mode, don't look for pending flag in all threads.
14541 (resume_status_pending_p): Don't consider explicitly suspended
14542 threads.
14543 (my_waitpid): Reimplement. Emulate __WALL.
14544 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
14545 Use lwpid_of.
14546 (sigchld_handler, linux_supports_non_stop, linux_async)
14547 (linux_start_non_stop): New.
14548 (linux_target_ops): Register linux_supports_non_stop, linux_async
14549 and linux_start_non_stop.
14550 (initialize_low): Install SIGCHLD handler.
14551 * thread-db.c (thread_db_create_event, find_one_thread)
14552 (thread_db_get_tls_address): Use lwpid_of.
14553 * win32-low.c (win32_detach): Adjust to use resume_kind.
14554 (win32_wait): Add `options' argument.
14555 * spu-low.c (spu_resume): Adjust to use resume_kind.
14556 (spu_wait): Add `options' argument.
14557
14558 2009-04-01 Pedro Alves <pedro@codesourcery.com>
14559
14560 Decouple target code from remote protocol.
14561
14562 * target.h (enum target_waitkind): New.
14563 (struct target_waitstatus): New.
14564 (struct target_ops) <wait>: Return an unsigned long. Take a
14565 target_waitstatus pointer instead of a char pointer.
14566 (mywait): Likewise.
14567 * target.c (mywait): Change prototype to return an unsigned long.
14568 Take a target_waitstatus pointer instead of a char pointer. Adjust.
14569 * server.h (thread_from_wait, old_thread_from_wait): Delete
14570 declarations.
14571 (prepare_resume_reply): Change prototype to take a
14572 target_waitstatus.
14573 * server.c (thread_from_wait, old_thread_from_wait): Delete.
14574 (last_status, last_ptid): New.
14575 (start_inferior): Remove "statusptr" argument. Adjust. Return a
14576 pid instead of a signal.
14577 (attach_inferior): Remove "status" and "signal" parameters.
14578 Adjust.
14579 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
14580 not as an address.
14581 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
14582 (handle_v_requests, myresume): Remove "status" and "signal"
14583 parameters. Adjust.
14584 (handle_status): New.
14585 (main): Delete local `status'. Adjust.
14586 * remote-utils.c: Include target.h.
14587 (prepare_resume_reply): Change prototype to take a
14588 target_waitstatus. Adjust.
14589
14590 * linux-low.c (linux_wait): Adjust to new target_ops->wait
14591 interface.
14592 * spu-low.c (spu_wait): Adjust.
14593 * win32-low.c (enum target_waitkind, struct target_waitstatus):
14594 Delete.
14595 (win32_wait): Adjust.
14596
14597 2009-04-01 Pedro Alves <pedro@codesourcery.com>
14598
14599 * target.h (struct thread_resume): Delete leave_stopped member.
14600 (struct target_ops): Add a `n' argument to the `resume' callback.
14601 * server.c (start_inferior): Adjust.
14602 (handle_v_cont, myresume): Adjust.
14603 * linux-low.c (check_removed_breakpoint): Adjust to resume
14604 interface change, and to removed leave_stopped field.
14605 (resume_ptr): Delete.
14606 (struct thread_resume_array): New.
14607 (linux_set_resume_request): Add new `arg' parameter. Adjust to
14608 resume interface change.
14609 (linux_continue_one_thread, linux_queue_one_thread)
14610 (resume_status_pending_p): Check if the resume field is NULL
14611 instead of checking the leave_stopped member.
14612 (linux_resume): Adjust to the target resume interface change.
14613 * spu-low.c (spu_resume): Adjust to the target resume interface
14614 change.
14615 * win32-low.c (win32_detach, win32_resume): Ditto.
14616
14617 2009-04-01 Pedro Alves <pedro@codesourcery.com>
14618
14619 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
14620 flag.
14621 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
14622 pending.
14623 (linux_continue_one_thread): Only preserve the stepping flag if
14624 there's a pending breakpoint.
14625
14626 2009-03-31 Pedro Alves <pedro@codesourcery.com>
14627
14628 * server.c (main): After the inferior having exited, call
14629 remote_close before exiting gdbserver.
14630
14631 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
14632
14633 Fix size of FPSCR in Power 7 processors.
14634 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
14635 (PPC_FEATURE_HAS_DFP): New #define.
14636 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
14637 size of the FPSCR.
14638
14639 2009-03-23 Pedro Alves <pedro@codesourcery.com>
14640
14641 * server.c (handle_query) Whitespace and formatting.
14642
14643 2009-03-22 Pedro Alves <pedro@codesourcery.com>
14644
14645 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
14646 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
14647 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
14648 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
14649 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
14650 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
14651 Makefile.in, configure.ac: Fix whitespace throughout.
14652 * configure: Regenerate.
14653
14654 2009-03-22 Pedro Alves <pedro@codesourcery.com>
14655
14656 * inferiors.c (find_inferior): Make it safe for the callback
14657 function to delete the currently iterated inferior.
14658
14659 2009-03-22 Pedro Alves <pedro@codesourcery.com>
14660
14661 * Makefile.in (linuw_low_h): Move higher.
14662 (thread-db.o): Depend on $(linux_low_h).
14663
14664 2009-03-17 Pedro Alves <pedro@codesourcery.com>
14665
14666 Rename "process" to "lwp" throughout.
14667
14668 * linux-low.c (all_processes): Rename to...
14669 (all_lwps): ... this.
14670 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
14671 (add_process): Rename to ...
14672 (add_lwp): ... this. Adjust.
14673 (linux_create_inferior): Adjust.
14674 (linux_attach_lwp): Adjust.
14675 (linux_attach): Adjust.
14676 (linux_kill_one_process): Rename to ...
14677 (linux_kill_one_lwp): ... this. Adjust.
14678 (linux_kill): Adjust.
14679 (linux_detach_one_process): Rename to ...
14680 (linux_detach_one_lwp): ... this. Adjust.
14681 (linux_detach): Adjust.
14682 (check_removed_breakpoint): Adjust.
14683 (status_pending_p): Adjust.
14684 (linux_wait_for_process): Rename to ...
14685 (linux_wait_for_lwp): ... this. Adjust.
14686 (linux_wait_for_event): Adjust.
14687 (send_sigstop): Adjust.
14688 (wait_for_sigstop): Adjust.
14689 (stop_all_processes): Rename to ...
14690 (stop_all_lwps): ... this.
14691 (linux_resume_one_process): Rename to ...
14692 (linux_resume_one_lwp): ... this. Adjust.
14693 (linux_set_resume_request, linux_continue_one_thread)
14694 (linux_queue_one_thread, resume_status_pending_p)
14695 (usr_store_inferior_registers, regsets_store_inferior_registers)
14696 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
14697 Adjust.
14698 * linux-low.h (get_process): Rename to ...
14699 (get_lwp): ... this. Adjust.
14700 (get_thread_process): Rename to ...
14701 (get_thread_lwp): ... this. Adjust.
14702 (get_process_thread): Rename to ...
14703 (get_lwp_thread): ... this. Adjust.
14704 (struct process_info): Rename to ...
14705 (struct lwp_info): ... this.
14706 (all_processes): Rename to ...
14707 (all_lwps): ... this.
14708 * proc-service.c (ps_lgetregs): Adjust.
14709 * thread-db.c (thread_db_create_event, find_one_thread)
14710 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
14711
14712 2009-03-14 Pedro Alves <pedro@codesourcery.com>
14713
14714 * server.c (handle_query): Handle "qAttached".
14715
14716 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
14717
14718 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
14719 GPLv3, update license URL.
14720
14721 2009-03-01 Doug Evans <dje@google.com>
14722
14723 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
14724 (server_h): Add gdb_signals.h.
14725 (signals.o): Update.
14726 * server.h (target_signal_from_host,target_signal_to_host_p)
14727 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
14728
14729 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
14730
14731 * remote-utils.c (getpkt): Also generate remote-debug
14732 information if noack_mode is set.
14733
14734 2009-02-06 Pedro Alves <pedro@codesourcery.com>
14735
14736 * server.c (handle_query): Report qXfer:siginfo:read and
14737 qXfer:siginfo:write as supported and handle them.
14738 * target.h (struct target_ops) <qxfer_siginfo>: New field.
14739 * linux-low.c (linux_xfer_siginfo): New.
14740 (linux_target_ops): Set it.
14741
14742 2009-01-26 Pedro Alves <pedro@codesourcery.com>
14743
14744 * server.c (gdbserver_usage): Mention --remote-debug.
14745 (main): Accept '--remote-debug' switch.
14746
14747 2009-01-18 Doug Evans <dje@google.com>
14748
14749 * regcache.c (new_register_cache): No need to check result of xcalloc.
14750 * server.c (handle_search_memory): Back out calls to xmalloc,
14751 result is checked and error is returned to user upon failure.
14752 (handle_query): Ditto. Add more checks for result of malloc.
14753 (handle_v_cont): Check result of malloc, report error back to
14754 user upon failure.
14755 (handle_v_run): Ditto. Call freeargv.
14756 * server.h (freeargv): Declare.
14757 * utils.c (freeargv): New fn.
14758
14759 2009-01-15 Doug Evans <dje@google.com>
14760
14761 * gdbreplay.c (perror_with_name): Make arg const char *.
14762 * server.h (target_signal_to_name): Make return type const char *.
14763 * thread-db.c (thread_db_err_str): Make return type const char *.
14764 * utils.c (perror_with_name): Make arg const char *.
14765
14766 2009-01-14 Pedro Alves <pedro@codesourcery.com>
14767
14768 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
14769 when handling a EXIT_PROCESS_DEBUG_EVENT.
14770
14771 2009-01-06 Joel Brobecker <brobecker@adacore.com>
14772
14773 * gdbreplay.c (gdbreplay_version): Update copyright year.
14774 * server.c (gdbserver_version): Likewise.
14775
14776 2009-01-05 Doug Evans <dje@google.com>
14777
14778 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
14779 (handle_extended_wait): Improve comment.
14780
14781 2008-12-13 Doug Evans <dje@google.com>
14782
14783 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
14784 * server.h (ATTR_MALLOC): New macro.
14785 (xmalloc,xcalloc,xstrdup): Declare.
14786 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
14787 * inferiors.c: Ditto.
14788 * linux-low.c: Ditto.
14789 * mem-break.c: Ditto.
14790 * regcache.c: Ditto.
14791 * remote-utils.c: Ditto.
14792 * server.c: Ditto.
14793 * target.c: Ditto.
14794 * win32-low.c: Ditto.
14795
14796 2008-12-12 Doug Evans <dje@google.com>
14797
14798 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
14799 in debugging printf.
14800
14801 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
14802
14803 2008-12-09 Doug Evans <dje@google.com>
14804
14805 * linux-low.h (struct process_info): Delete member tid, unused.
14806 * thread-db.c (find_one_thread): Update.
14807 (maybe_attach_thread): Update.
14808
14809 2008-12-02 Pedro Alves <pedro@codesourcery.com>
14810
14811 * target.h (struct target_ops): Add qxfer_osdata member.
14812 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
14813 and dirent.h.
14814 (linux_qxfer_osdata): New functions.
14815 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
14816 callback.
14817 * server.c (handle_query): Handle "qXfer:osdata:read:".
14818 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
14819 (buffer_xml_printf): New functions.
14820 * server.h (struct buffer): New.
14821 (buffer_grow_str, buffer_grow_str0): New macros.
14822 (buffer_grow, buffer_free, buffer_init, buffer_finish)
14823 (buffer_xml_printf): Declare.
14824
14825 2008-11-24 Doug Evans <dje@google.com>
14826
14827 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
14828
14829 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
14830
14831 * server.c (handle_v_run): Always use the supplied argument list.
14832
14833 2008-11-19 Bob Wilson <bob.wilson@acm.org>
14834
14835 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
14836 (xtensa_regmap_table): Add entry for scompare1.
14837
14838 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
14839
14840 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
14841 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
14842 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
14843 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
14844 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
14845 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
14846 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
14847 XML target descriptions.
14848 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
14849 when inferior is running on an ISA 2.05 or later processor. Add
14850 special case to return offset for full 64-bit slot of FPSCR when
14851 in 32-bits.
14852
14853 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
14854
14855 * Makefile.in (SFILES, clean): Added sparc64 files.
14856 (reg-sparc64.o, reg-sparc64.c): New.
14857 * configure.srv (sparc*-*-linux*): New configuration.
14858 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
14859 syscall arguments for SPARC.
14860 (regsets_store_inferior_registers): Likewise.
14861 * linux-sparc-low.c: New file.
14862
14863 2008-10-21 Doug Evans <dje@google.com>
14864
14865 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
14866 (READLINE_DIR,READLINE_DEP): Delete.
14867 (INTERNAL_CFLAGS): Update.
14868 (LINTFLAGS): Update.
14869
14870 2008-10-10 Pedro Alves <pedro@codesourcery.com>
14871
14872 * server.c (handle_v_run): If GDB didn't specify an argv, use the
14873 whole argv from the last run, not just argv[0].
14874
14875 2008-09-08 Pedro Alves <pedro@codesourcery.com>
14876
14877 * regcache.c (new_register_cache): Return NULL if the register
14878 cache size isn't known yet.
14879 (free_register_cache): Avoid dereferencing a NULL regcache.
14880
14881 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
14882
14883 * configure.srv: Merge MIPS and MIPS64.
14884
14885 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
14886
14887 * Makefile.in (uninstall): Apply $(EXEEXT) too.
14888
14889 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
14890
14891 * Makefile.in: Add required vsx dependencies.
14892
14893 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
14894 Declare init_registers_powerpc_vsx32l.
14895 Declare init_registers_powerpc_vsx64l.
14896 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
14897 (ppc_arch_setup): Check for VSX in hwcap.
14898 (ppc_fill_vsxregset): New function.
14899 (ppc_store_vsxregset): New function.
14900 Add new VSX entry in regset_info target_regsets.
14901
14902 * configure.srv: Add new VSX dependencies.
14903
14904 2008-08-12 Pedro Alves <pedro@codesourcery.com>
14905
14906 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
14907 (remote_open): Set or clear transport_is_reliable.
14908 (putpkt_binary): Don't expect acks in noack mode.
14909 (getpkt): Don't send ack/nac in noack mode.
14910 * server.c (handle_general_set): Handle QStartNoAckMode.
14911 (handle_query): If connected by tcp pass QStartNoAckMode+ in
14912 qSupported.
14913 (main): Reset noack_mode on every connection.
14914 * server.h (noack_mode): Declare.
14915
14916 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14917
14918 * Makefile.in (GDBREPLAY_OBS): New variable.
14919 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
14920
14921 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
14922 Daniel Jacobowitz <dan@codesourcery.com>
14923
14924 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
14925 (usr_store_inferior_registers): Likewise.
14926 (regsets_store_inferior_registers): Likewise.
14927
14928 2008-07-31 Rolf Jansen <rj@surtec.com>
14929 Pedro Alves <pedro@codesourcery.com>
14930
14931 * configure.ac: Check for memmem declaration.
14932 * server.c [HAVE_MALLOC_H]: Include malloc.h.
14933 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
14934 (disable_packet_qfThreadInfo): Unconditionally compile.
14935 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
14936 * configure, config.in: Regenerate.
14937
14938 2008-07-28 Doug Kwan <dougkwan@google.com>
14939
14940 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
14941 (linux_write_memory): Remove declaration of errno.
14942
14943 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
14944
14945 * linux-low.c (handle_extended_wait): Do not use "status"
14946 variable uninitialized.
14947
14948 2008-07-07 Pedro Alves <pedro@codesourcery.com>
14949
14950 * server.c (handle_v_attach): Inhibit reporting dll changes.
14951
14952 2008-06-27 Pedro Alves <pedro@codesourcery.com>
14953
14954 * remote-utils.c (prepare_resume_reply): If requested, don't
14955 output "thread:TID" in the T stop reply.
14956
14957 * server.c (disable_packet_vCont, disable_packet_Tthread)
14958 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
14959 (handle_query): If requested, disable support for qC, qfThreadInfo
14960 and qsThreadInfo.
14961 (handle_v_requests): If requested, disable support for vCont.
14962 (gdbserver_show_disableable): New.
14963 (main): Handle --disable-packet and --disable-packet=LIST.
14964
14965 * server.h (disable_packet_vCont, disable_packet_Tthread)
14966 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
14967
14968 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
14969
14970 * server.c (gdbserver_usage): Mention --version.
14971
14972 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
14973
14974 * Makefile.in (gdbreplay.o): New rule.
14975
14976 2008-06-06 Joseph Myers <joseph@codesourcery.com>
14977
14978 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
14979 message, not gdbserver.
14980
14981 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
14982 Nathan Sidwell <nathan@codesourcery.com>
14983 Joseph Myers <joseph@codesourcery.com>
14984
14985 * acinclude.m4: Include ../../config/acx.m4.
14986 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
14987 * configure, config.in: Regenerate.
14988 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
14989 * server.c (gdbserver_version): Print PKGVERSION.
14990 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
14991 (main): Adjust gdbserver_usage calls.
14992 * gdbreplay.c (version, host_name): Add declarations.
14993 (gdbreplay_version, gdbreplay_usage): New.
14994 (main): Accept --version and --help options.
14995
14996 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
14997
14998 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
14999 (arm_breakpoint_at): Handle Thumb.
15000 (the_low_target): Add comment.
15001
15002 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
15003
15004 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
15005
15006 2008-05-09 Doug Evans <dje@google.com>
15007
15008 * server.h (decode_search_memory_packet): Declare.
15009 * remote-utils.c (decode_search_memory_packet): New fn.
15010 * server.c (handle_search_memory_1): New fn.
15011 (handle_search_memory): New fn.
15012 (handle_query): Process qSearch:memory packets.
15013
15014 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
15015
15016 * regcache.c (registers_length): Remove.
15017 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
15018 full register packet.
15019 * regcache.h (registers_length): Remove prototype.
15020 * server.h (PBUFSIZ): Define to 16384.
15021
15022 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
15023
15024 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
15025 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
15026 powerpc-64l.o, and powerpc-altivec64l.o.
15027 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
15028 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
15029 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
15030 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
15031 rs6000/power-linux.xml, and rs6000/power64-linux.xml
15032 to srv_xmlfiles.
15033
15034 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
15035 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
15036 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
15037 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
15038 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
15039 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
15040 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
15041 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
15042 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
15043 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
15044 (clean): Update.
15045
15046 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
15047 (init_registers_powerpc_32l): ... this new prototype.
15048 (init_registers_powerpc_32): Remove, replace by ...
15049 (init_registers_powerpc_altivec32l): ... this new prototype.
15050 (init_registers_powerpc_e500): Remove, replace by ...
15051 (init_registers_powerpc_e500l): ... this new prototype.
15052 (init_registers_ppc64): Remove, replace by ...
15053 (init_registers_powerpc_64l): ... this new prototype.
15054 (init_registers_powerpc_64): Remove, replace by ...
15055 (init_registers_powerpc_altivec64l): ... this new prototype.
15056 (ppc_num_regs): Set to 73.
15057 (PT_ORIG_R3, PT_TRAP): Define if necessary.
15058 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
15059 (ppc_cannot_store_register): Handle orig_r3 and trap.
15060 (ppc_arch_setup): Update init_registers_... calls.
15061 (ppc_fill_gregset): Handle orig_r3 and trap.
15062
15063 * inferiors.c (clear_inferiors): Reset current_inferior.
15064
15065 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
15066
15067 * acinclude.m4: Add override.m4.
15068 * configure: Regenerate.
15069
15070 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
15071
15072 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
15073 initial call to init_register_ppc64.
15074
15075 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
15076
15077 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
15078 single powerpc*-*-linux* case.
15079 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
15080
15081 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
15082
15083 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
15084 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
15085 from reg_xmlfiles.
15086 * linux-ppc-low.c: Include <elf.h>.
15087 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
15088 (ppc_hwcap): New global variable.
15089 (ppc_regmap): Remove __SPE__ #ifdef sections.
15090 (ppc_regmap_e500): New global variable.
15091 (ppc_cannot_store_register): Update __SPE__ special case.
15092 (ppc_get_hwcap): New function.
15093 (ppc_arch_setup): Use it to determine whether inferior supports
15094 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
15095 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
15096 Do not access registers if target does not support AltiVec.
15097 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
15098 Do not access registers if target does not support SPE.
15099 (target_regsets): Unconditionally include AltiVec and SPE regsets.
15100
15101 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
15102
15103 * linux-low.c (disabled_regsets, num_regsets): New.
15104 (use_regsets_p): Delete.
15105 (linux_wait_for_process): Clear disabled_regsets.
15106 (regsets_fetch_inferior_registers): Check and set it.
15107 (regsets_store_inferior_registers): Likewise.
15108 (linux_fetch_registers, linux_store_registers): Do not use
15109 use_regsets_p.
15110 (initialize_low): Allocate disabled_regsets.
15111
15112 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
15113
15114 * Makefile.in (LIBOBJS): New.
15115 (OBS): Use LIBOBJS.
15116 (memmem.o): New rule.
15117 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
15118 * configure: Regenerated.
15119
15120 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
15121
15122 * server.c (handle_query): Never return "unsupported" for
15123 qXfer:features:read queries.
15124
15125 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
15126
15127 * server.c (get_features_xml): Fix inverted condition.
15128 (handle_query): Always support qXfer:feature:read.
15129
15130 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
15131
15132 * server.c (wrapper_argv): New.
15133 (start_inferior): Handle wrapper_argv. If set, expect an extra
15134 trap.
15135 (gdbserver_usage): Document --wrapper.
15136 (main): Parse --wrapper.
15137
15138 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15139
15140 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
15141 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
15142 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
15143 (ppc_set_pc): Likewise.
15144 (ppc_arch_setup): New function.
15145 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
15146 of collect_register.
15147 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
15148
15149 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15150
15151 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
15152 instead of linux-ppc64-low.o.
15153 * linux-ppc64-low.c: Remove file.
15154 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
15155 (linux-ppc64-low.o): Remove rule.
15156
15157 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
15158 (init_registers_powerpc_64): Likewise.
15159 (ppc_regmap): Conditionally define depending on __powerpc64__.
15160 (ppc_cannot_store_register): Do not special-case "fpscr" when
15161 compiled on __powerpc64__.
15162 (ppc_collect_ptrace_register): New function.
15163 (ppc_supply_ptrace_register): New function.
15164 (ppc_breakpoint): Change type to "unsigned int".
15165 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
15166 (the_low_target): Conditionally provide initializers for the
15167 arch_setup member depending on __powerpc64__. Install
15168 collect_ptrace_register and supply_ptrace_register members.
15169
15170 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15171
15172 * regcache.h (gdbserver_xmltarget): Add extern declaration.
15173 * server.c (gdbserver_xmltarget): Define.
15174 (get_features_xml): Use it to replace "target.xml" and arch_string.
15175
15176 * configure.srv: Remove srv_xmltarget. Add XML files that were
15177 mentioned there to srv_xmlfiles instead. Remove conditional tests
15178 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
15179 srv_xmlfiles and srv_regobj to include all possible choices.
15180 * configure.ac (srv_xmltarget): Remove.
15181 (srv_xmlfiles): Do not add "target.xml".
15182 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
15183 checks for supplementary target information.
15184 * configure: Regenerate.
15185 * Makefile.in (XML_TARGET): Remove.
15186 (target.xml): Remove rule.
15187 (clean): Do not clean up target.xml.
15188 (.PRECIOUS): Do not mention target.xml.
15189
15190 * target.h (struct target_ops): Remove arch_string member.
15191 * linux-low.c (linux_arch_string): Remove.
15192 (linux_target_ops): Remove arch_string initializer.
15193 * linux-low.h (struct linux_target_ops): Remove arch_string member.
15194 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
15195 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
15196 * spu-low.c (spu_arch_string): Remove.
15197 (spu_target_ops): Remove arch_string initializer.
15198 * win32-low.c (win32_arch_string): Remove.
15199 (win32_target_ops): Remove arch_string initializer.
15200 * win32-low.h (struct win32_target_ops): Remove arch_string member.
15201 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
15202 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
15203
15204 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15205
15206 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
15207 by collect_ptrace_register and supply_ptrace_register hooks.
15208 * linux-low.c (fetch_register): Use supply_ptrace_register callback
15209 instead of checking for the_low_target.left_pad_xfer.
15210 (usr_store_inferior_registers): Use collect_ptrace_register callback
15211 instead of checking for the_low_target.left_pad_xfer.
15212
15213 * linux-s390-low.c (s390_collect_ptrace_register): New function.
15214 (s390_supply_ptrace_register): Likewise.
15215 (s390_fill_gregset): Call s390_collect_ptrace_register.
15216 (the_low_target): Update.
15217
15218 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
15219 (ppc_supply_ptrace_register): Likewise.
15220 (the_low_target): Update.
15221
15222 * linux-i386-low.c (the_low_target): Update.
15223 * linux-x86-64-low.c (the_low_target): Update.
15224
15225 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15226
15227 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
15228 reg-s390.o and reg-s390x.o.
15229
15230 * linux-low.c (new_inferior): New global variable.
15231 (linux_create_inferior, linux_attach): Set it.
15232 (linux_wait_for_process): Call the_low_target.arch_setup after the
15233 target has stopped for the first time.
15234 (initialize_low): Do not call the_low_target.arch_setup.
15235
15236 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
15237 (s390_set_pc): Likewise.
15238 (s390_arch_setup): New function.
15239 (the_low_target): Use s390_arch_setup as arch_setup routine.
15240
15241 * regcache.c (realloc_register_cache): New function.
15242 (set_register_cache): Call it for each existing regcache.
15243
15244 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15245
15246 * server.h (init_registers): Remove prototype.
15247
15248 * linux-low.h (struct linux_target_ops): Add arch_setup field.
15249 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
15250 instead of init_registers ().
15251 * linux-arm-low.c (init_registers_arm): Add prototype.
15252 (init_registers_arm_with_iwmmxt): Likewise.
15253 (the_low_target): Add initializer for arch_setup field.
15254 * linux-cris-low.c (init_registers_cris): Add prototype.
15255 (the_low_target): Add initializer for arch_setup field.
15256 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
15257 (the_low_target): Add initializer for arch_setup field.
15258 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
15259 (the_low_target): Add initializer for arch_setup field.
15260 * linux-ia64-low.c (init_registers_ia64): Add prototype.
15261 (the_low_target): Add initializer for arch_setup field.
15262 * linux-m32r-low.c (init_registers_m32r): Add prototype.
15263 (the_low_target): Add initializer for arch_setup field.
15264 * linux-m68k-low.c (init_registers_m68k): Add prototype.
15265 (the_low_target): Add initializer for arch_setup field.
15266 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
15267 (init_registers_mips64_linux): Likewise.
15268 (the_low_target): Add initializer for arch_setup field.
15269 * linux-ppc-low.c (init_registers_ppc): Add prototype.
15270 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
15271 (the_low_target): Add initializer for arch_setup field.
15272 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
15273 (init_registers_powerpc_64): Likewise.
15274 (the_low_target): Add initializer for arch_setup field.
15275 * linux-s390-low.c (init_registers_s390): Add prototype.
15276 (init_registers_s390x): Likewise.
15277 (the_low_target): Add initializer for arch_setup field.
15278 * linux-sh-low.c (init_registers_sh): Add prototype.
15279 (the_low_target): Add initializer for arch_setup field.
15280 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
15281 (the_low_target): Add initializer for arch_setup field.
15282 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
15283 (the_low_target): Add initializer for arch_setup field.
15284
15285 * win32-low.h (struct win32_target_ops): Add arch_setup field.
15286 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
15287 instead of init_registers ().
15288 * win32-arm-low.c (init_registers_arm): Add prototype.
15289 (the_low_target): Add initializer for arch_setup field.
15290 * win32-i386-low.c (init_registers_i386): Add prototype.
15291 (the_low_target): Add initializer for arch_setup field.
15292
15293 * spu-low.c (init_registers_spu): Add prototype.
15294 (initialize_low): Call initialie_registers_spu () instead of
15295 initialize_registers ().
15296
15297 2008-02-19 Pedro Alves <pedro@codesourcery.com>
15298
15299 * server.c (handle_v_requests): When handling the vRun and vAttach
15300 packets, if already debugging a process, don't kill it. Return an
15301 error instead.
15302
15303 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
15304
15305 * server.c (handle_query): Correct length check.
15306
15307 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
15308
15309 * win32-low.c (do_initial_child_stuff): Add process handle
15310 parameter. Set current_process_handle and current_process_id from the
15311 parameters. Clear globals.
15312 (win32_create_inferior): Don't set current_process_handle and
15313 current_process_id here. Instead pass them on the call to
15314 do_initial_child_stuff.
15315 (win32_attach): Likewise.
15316 (win32_clear_inferiors): New.
15317 (win32_kill): Don't close the current process handle or the
15318 current thread handle here. Instead call win32_clear_inferiors.
15319 (win32_detach): Don't open a new handle to the process. Call
15320 win32_clear_inferiors.
15321 (win32_join): Don't rely on current_process_handle; open a new
15322 handle using the process id.
15323 (win32_wait): Call win32_clear_inferiors when the inferior process
15324 has exited.
15325
15326 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
15327
15328 * server.c (monitor_show_help): Add "exit".
15329
15330 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
15331
15332 * Makefile.in (SFILES): Add linux-xtensa-low.c.
15333 (clean): Add reg-xtensa.c.
15334 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
15335 * configure.srv (xtensa*-*-linux*) New target.
15336 * linux-xtensa-low.c: New.
15337 * xtensa-xtregs.c: New.
15338
15339 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
15340
15341 * hostio.c: Don't include errno.h.
15342 (errno_to_fileio_errno): Move to hostio-errno.
15343 * hostio.c: (hostio_error): Remove the error parameter. Defer the
15344 error number outputting to the target->hostio_last_error callback.
15345 (hostio_packet_error): Use FILEIO_EINVAL directly.
15346 (handle_open, handle_pread, hostio_error, handle_unlink): Update
15347 calls to hostio_error.
15348 * hostio-errno.c: New.
15349 * server.h (hostio_last_error_from_errno): Declare.
15350 * target.h (target_ops): Add hostio_last_error member.
15351 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
15352 as hostio_last_error handler.
15353 * spu-low.c (spu_target_ops): Likewise.
15354 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
15355 (wince_hostio_last_error): New functions.
15356 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
15357 as hostio_last_error handler.
15358 (win32_target_ops) [!_WIN32_WCE]: Register
15359 hostio_last_error_from_errno as hostio_last_error handler.
15360 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
15361 (hostio-errno.o): New rule.
15362 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
15363 * configure.srv (srv_hostio_err_objs): New variable. Default to
15364 hostio-errno.o.
15365 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
15366 * configure: Regenerate.
15367
15368 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
15369
15370 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
15371 (linux_kill, linux_detach): Clean up the process list.
15372 * remote-utils.c (remote_open): Improve port number parsing.
15373 (putpkt_binary, input_interrupt): Only send interrupts if the target
15374 is running.
15375 * server.c (extended_protocol): Make static.
15376 (attached): Define earlier.
15377 (exit_requested, response_needed, program_argv): New variables.
15378 (target_running): New.
15379 (start_inferior): Clear attached here.
15380 (attach_inferior): Set attached here.
15381 (require_running): Define.
15382 (handle_query): Use require_running and target_running. Implement
15383 "monitor exit".
15384 (handle_v_attach, handle_v_run): New.
15385 (handle_v_requests): Use require_running. Handle vAttach and vRun.
15386 (gdbserver_usage): Update.
15387 (main): Redo argument parsing. Handle --debug and --multi. Handle
15388 --attach along with other options or after the port. Save
15389 program_argv. Support no initial program. Resynchronize
15390 communication with GDB after an error. Handle "monitor exit".
15391 Use require_running and target_running. Always allow the extended
15392 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
15393 restart in extended mode.
15394 * README: Refer to the GDB manual. Update --attach usage.
15395
15396 2007-12-20 Andreas Schwab <schwab@suse.de>
15397
15398 * linux-low.c (STACK_SIZE): Define.
15399 (linux_tracefork_child): Use it. Use __clone2 on ia64.
15400 (linux_test_for_tracefork): Likewise.
15401
15402 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
15403
15404 * linux-low.c (linux_wait_for_event): Update messages. Do not
15405 reinsert auto-delete breakpoints.
15406 * mem-break.c (struct breakpoint): Change return type of handler to
15407 int.
15408 (set_breakpoint_at): Update handler type.
15409 (reinsert_breakpoint_handler): Return 1 instead of calling
15410 delete_breakpoint.
15411 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
15412 setting a new one.
15413 (check_breakpoints): Delete auto-delete breakpoints and return 2.
15414 * mem-break.h (set_breakpoint_at): Update handler type.
15415 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
15416 * win32-low.c (auto_delete_breakpoint): New.
15417 (get_child_debug_event): Use it.
15418
15419 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
15420
15421 * configure.ac: Check for pread and pwrite.
15422 * hostio.c (handle_pread): Fall back to lseek and read.
15423 (handle_pwrite): Fall back to lseek and write.
15424 * config.in, configure: Regenerated.
15425
15426 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
15427
15428 * server.c (myresume): Add own_buf argument.
15429 (main): Update calls.
15430
15431 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
15432
15433 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
15434 * remote-utils.c (remote_open): Do not call disable_async_io.
15435 (block_async_io): Delete.
15436 (unblock_async_io): Make static.
15437 (initialize_async_io): New.
15438 * server.c (handle_v_cont): Handle async I/O here.
15439 (myresume): Likewise. Move other common resume tasks here...
15440 (main): ... from here. Call initialize_async_io. Disable async
15441 I/O before the main loop.
15442 * server.h (initialize_async_io): Declare.
15443 (block_async_io, unblock_async_io): Delete prototypes.
15444 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
15445
15446 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
15447
15448 * remote-utils.c (readchar): Allow binary data in received messages.
15449
15450 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15451
15452 * win32-low.c (attaching): New global.
15453 (win32_create_inferior): Clear the `attaching' global.
15454 (win32_attach): Set the `attaching' global.
15455 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
15456 attaching. Only set a breakpoint at the entry point if not
15457 attaching.
15458
15459 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15460
15461 * server.c (main): Don't report dll events on the initial
15462 connection on attaches.
15463
15464 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15465
15466 * server.c (main): Relax numerical bases supported for the pid of
15467 the --attach command line argument.
15468
15469 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15470
15471 * win32-low.c (win32_attach): Call OpenProcess before
15472 DebugActiveProcess, not after. Add last error output to error
15473 call.
15474
15475 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15476
15477 * win32-low.c (win32_get_thread_context)
15478 (win32_set_thread_context): New functions.
15479 (thread_rec): Use win32_get_thread_context.
15480 (continue_one_thread, win32_resume): Use win32_set_thread_context.
15481 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
15482 field.
15483
15484 2007-12-03 Leo Zayas
15485 Pedro Alves <pedro_alves@portugalmail.pt>
15486
15487 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
15488 global variables.
15489 (child_add_thread): Minor cleanup.
15490 (child_continue): Resume artificially suspended threads before
15491 calling ContinueDebugEvent.
15492 (suspend_one_thread): New.
15493 (fake_breakpoint_event): New.
15494 (get_child_debug_event): Change return type to int. Check here if
15495 gdb sent an interrupt request. If a soft interrupt was requested,
15496 fake a breakpoint event. Return 0 if there is no event to handle,
15497 and 1 otherwise.
15498 (win32_wait): Don't check here if gdb sent an interrupt request.
15499 Ensure there is a valid event to handle.
15500 (win32_request_interrupt): Add soft interruption method as last
15501 resort.
15502
15503 2007-12-03 Leo Zayas
15504 Pedro Alves <pedro_alves@portugalmail.pt>
15505
15506 * win32-low.h (win32_thread_info): Add descriptions to the
15507 structure members. Replace `suspend_count' counter by a
15508 `suspended' flag.
15509 * win32-low.c (thread_rec): Update condition of when to get the
15510 context from the inferior. Rely on ContextFlags being set if it
15511 has already been retrieved. Only suspend the inferior thread if
15512 we haven't already. Warn if that fails.
15513 (continue_one_thread): s/suspend_count/suspended/. Only call
15514 ResumeThread once. Warn if that fails.
15515
15516 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
15517
15518 * win32-low.c (win32_wait): Don't read from the inferior when it
15519 has already exited.
15520
15521 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
15522
15523 * Makefile.in (win32_low_h): New variable.
15524 (win32-low.o): Add dependency on $(win32_low_h).
15525 (win32-arm-low.o, win32-i386-low.o): New rules.
15526
15527 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
15528
15529 * hostio.c: Correct copyright year.
15530
15531 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
15532
15533 * Makefile.in (OBS): Add hostio.o.
15534 (hostio.o): New rule.
15535 * server.h (handle_vFile): Declare.
15536 * hostio.c: New file.
15537 * server.c (handle_v_requests): Take packet_len and new_packet_len
15538 for binary packets. Call handle_vFile.
15539 (main): Update call to handle_v_requests.
15540
15541 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
15542
15543 * linux-low.c: Include <sched.h>.
15544
15545 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
15546
15547 * linux-low.c (linux_tracefork_grandchild): New.
15548 (linux_tracefork_child): Use clone.
15549 (linux_test_for_tracefork): Use clone; allocate and free a stack.
15550
15551 2007-10-31 Joel Brobecker <brobecker@adacore.com>
15552
15553 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
15554
15555 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
15556
15557 * linux-low.c (handle_extended_wait): Handle unexpected signals.
15558
15559 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
15560
15561 * inferiors.c (change_inferior_id): Delete.
15562 (add_pid_to_list, pull_pid_from_list): New.
15563 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
15564 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
15565 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
15566 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
15567 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
15568 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
15569 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
15570 (using_threads): Always set to 1.
15571 (handle_extended_wait): New.
15572 (add_process): Do not set TID.
15573 (linux_create_inferior): Set must_set_ptrace_flags.
15574 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
15575 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
15576 (linux_thread_alive): Rename TID argument to LWPID.
15577 (linux_wait_for_process): Handle unknown processes. Do not use TID.
15578 (linux_wait_for_event): Do not use TID or check using_threads. Update
15579 call to dead_thread_notify. Call handle_extended_wait.
15580 (linux_create_inferior): Use PTRACE_SETOPTIONS.
15581 (send_sigstop): Delete sigstop_sent.
15582 (wait_for_sigstop): Avoid TID.
15583 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
15584 (linux_test_for_tracefork): New.
15585 (linux_lookup_signals): Use thread_db_active and
15586 linux_supports_tracefork_flag.
15587 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
15588 * linux-low.h (get_process_thread): Avoid TID.
15589 (struct process_ifo): Move thread_known and tid to the end. Remove
15590 sigstop_sent.
15591 (linux_attach_lwp, thread_db_init): Update prototypes.
15592 * server.h (change_inferior_id): Delete prototype.
15593 (add_pid_to_list, pull_pid_from_list): New prototypes.
15594 * thread-db.c (thread_db_use_events): New.
15595 (find_first_thread): Rename to...
15596 (find_one_thread): ...this. Update callers and messages. Do not
15597 call fatal. Check thread_db_use_events. Do not call
15598 change_inferior_id or new_thread_notify.
15599 (maybe_attach_thread): Update. Do not call new_thread_notify.
15600 (thread_db_init): Set thread_db_use_events. Check use_events.
15601 * utils.c (fatal, warning): Correct message prefix.
15602
15603 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
15604
15605 * Makefile.in (clean): Remove new files.
15606 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
15607 (powerpc-64.o, powerpc-64.c): New rules.
15608 * configure.srv: Use alternate register sets for powerpc64-*-linux*
15609 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
15610 with SPE.
15611 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
15612 SPE targets.
15613 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
15614 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
15615 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
15616 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
15617 (target_regsets): Add AltiVec and SPE register sets.
15618 * configure.ac: Check for AltiVec and SPE.
15619 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
15620 (ppc_fill_vrregset, ppc_store_vrregset): New.
15621 (target_regsets): Add AltiVec register set.
15622 * configure: Regenerated.
15623
15624 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
15625
15626 * linux-low.c (O_LARGEFILE): Define.
15627 (linux_read_memory): Use /proc/PID/mem.
15628 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
15629 * configure, config.in: Regenerated.
15630
15631 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
15632
15633 * linux-low.c (linux_wait_for_event): Do not pass signals while
15634 single-stepping.
15635
15636 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
15637
15638 * win32-low.c (create_process): New.
15639 (win32_create_inferior): Use create_process instead of
15640 CreateProcess. If create_process failed retry appending an ".exe"
15641 suffix. Store the GetLastError result immediatelly after
15642 create_process calls and use it on the call to error.
15643
15644 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
15645
15646 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
15647
15648 2007-08-23 Joel Brobecker <brobecker@adacore.com>
15649
15650 * configure.ac: Switch license to GPLv3.
15651
15652 2007-08-01 Michael Snyder <msnyder@access-company.com>
15653
15654 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
15655
15656 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
15657
15658 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
15659 typedef.
15660 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
15661 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
15662 CloseToolhelp32Snapshot.
15663 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
15664 CloseToolhelp32Snapshot.
15665
15666 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
15667
15668 * server.c (main): Check for inferior exit before main loop.
15669
15670 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
15671
15672 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
15673 instead of on tmp_desc.
15674
15675 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
15676 Daniel Jacobowitz <dan@codesourcery.com>
15677
15678 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
15679 (add_thread): Minor cleanups.
15680 (clear_inferiors): Move lower in the file. Clear the DLL
15681 list.
15682 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
15683 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
15684 (xml_escape_text): New.
15685 * server.c (handle_query): Handle qXfer:libraries:read. Report it
15686 for qSupported.
15687 (handle_v_cont): Report errors.
15688 (gdbserver_version): Update.
15689 (main): Correct size of own_buf. Do not report initial DLL events.
15690 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
15691 (unloaded_dll, xml_escape_text): New.
15692 * win32-low.c (enum target_waitkind): Update comments.
15693 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
15694 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
15695 (win32_EnumProcessModules, win32_GetModuleInformation)
15696 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
15697 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
15698 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
15699 (win32_Module32First, win32_Module32Next, load_toolhelp)
15700 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
15701 (get_child_debug_event): Handle DLL events.
15702 (win32_wait): Likewise.
15703
15704 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
15705
15706 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
15707 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
15708
15709 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
15710
15711 * win32-low.c (handle_output_debug_string): Ignore event if not
15712 waiting.
15713
15714 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
15715
15716 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
15717
15718 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
15719
15720 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
15721
15722 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
15723
15724 * inferiors.c (change_inferior_id): Add comment.
15725 * linux-low.c (check_removed_breakpoint): Add an early
15726 prototype. Improve debug output.
15727 (linux_attach): Doc update.
15728 (linux_detach_one_process, linux_detach): Clean up before releasing
15729 each process.
15730 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
15731 * linux-low.h (struct process_info): Doc improvement.
15732 * mem-break.c (delete_all_breakpoints): New.
15733 * mem-break.h (delete_all_breakpoints): New prototype.
15734 * thread-db.c (find_first_thread): New.
15735 (thread_db_create_event): Call it instead of
15736 thread_db_find_new_threads. Clean up unused variables.
15737 (maybe_attach_thread): Remove first thread handling.
15738 (thread_db_find_new_threads): Use find_first_thread.
15739 (thread_db_get_tls_address): Likewise.
15740
15741 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
15742
15743 * thread-db.c (thread_db_find_new_threads): Add prototype.
15744 (thread_db_create_event): Check for the main thread before adding
15745 a new thread.
15746 (maybe_attach_thread): Only enable event reporting if TID == 0.
15747 (thread_db_get_tls_address): Check for new threads.
15748
15749 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
15750
15751 * linux-low.c (linux_create_inferior): Try execv before execvp.
15752 * spu-low.c (spu_create_inferior): Likewise.
15753
15754 2007-06-13 Mike Frysinger <vapier@gentoo.org>
15755
15756 * linux-low.c (linux_create_inferior): Change execv to execvp.
15757 * spu-low.c (spu_create_inferior): Likewies.
15758
15759 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
15760
15761 * Makefile.in (clean): Clean new files instead of deleted ones.
15762 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
15763 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
15764 rules.
15765 * configure.srv: Specify XML files and new regformats for MIPS and
15766 MIPS64 GNU/Linux.
15767 * linux-mips-low.c (mips_num_regs): Set to only used registers.
15768 (mips_regmap): Do not fetch $0. Remove unused registers. Add
15769 an entry for the restart register.
15770 (mips_cannot_fetch_register, mips_cannot_store_register)
15771 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
15772 register names to match the XML descriptions.
15773 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
15774 restart register instead of $0.
15775
15776 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
15777 Markus Deuling <deuling@de.ibm.com>
15778
15779 * remote-utils.c (decode_xfer_write): New function.
15780 * server.h (decode_xfer_write): Add prototype.
15781 * server.c (handle_query): Add PACKET_LEN argument. Support
15782 qXfer:spu:read and qXfer:spu:write packets.
15783 (main): Pass packet_len to handle_query.
15784 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
15785 * target.h (target_ops): Add qxfer_spu.
15786
15787 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
15788
15789 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
15790 accessing non-seekable spufs files.
15791
15792 2007-05-16 Markus Deuling <deuling@de.ibm.com>
15793
15794 * server.c (handle_query): Add reply for qC packet.
15795
15796 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15797 Leo Zayas <lerele@champenstudios@com>
15798
15799 * server.h (check_remote_input_interrupt_request): New function.
15800 * remote_utils.c (INVALID_DESCRIPTOR): New define.
15801 (remote_desc): Initialize with INVALID_DESCRIPTOR.
15802 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
15803 (check_remote_input_interrupt_request): New function.
15804 * server.h (check_remote_input_interrupt_request): Declare.
15805 * win32-low.c (winapi_DebugBreakProcess,
15806 winapi_GenerateConsoleCtrlEvent): New typedefs.
15807 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
15808 to 250 ms.
15809 (win32_wait): Check for remote interrupt request
15810 with check_remote_input_interrupt_request.
15811 (win32_request_interrupt): New function.
15812 (win32_target_op): Set request_interrupt to win32_request_interrupt.
15813
15814 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15815
15816 * win32-low.c (debug_registers_changed,
15817 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
15818 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
15819 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
15820 (thread_rec): Get context using the low target.
15821 (child_add_thread): Call thread_added on the low target,
15822 which does the same thing.
15823 (regptr): Delete.
15824 (do_initial_child_stuff): Remove debug registers references.
15825 Set context using the low target. Resume threads after
15826 setting the contexts.
15827 (child_continue): Remove dead variable. Remove debug
15828 registers references.
15829 (child_fetch_inferior_registers): Go through the low target.
15830 (do_child_store_inferior_registers): Remove.
15831 (child_store_inferior_registers): Go through the low target.
15832 (win32_resume): Remove debug registers references.
15833 Set context using the low target.
15834 (handle_exception): Change return type to void. Don't record
15835 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
15836 first chance exception.
15837 (get_child_debug_event): Change return type to void. Remove
15838 goto loop. Always return after waiting for debug event.
15839 (win32_wait): Convert to switch statement. Handle spurious
15840 events.
15841
15842 * win32-i386-low.c (debug_registers_changed,
15843 debug_registers_used): New.
15844 (initial_stuff): Rename to ...
15845 (i386_initial_stuff): ... this. Clear debug registers
15846 state variables.
15847 (store_debug_registers): Delete.
15848 (i386_get_thread_context): New.
15849 (load_debug_registers): Delete.
15850 (i386_set_thread_context): New.
15851 (i386_thread_added): New.
15852 (single_step): Rename to ...
15853 (i386_single_step): ... this.
15854 (do_fetch_inferior_registers): Rename to ...
15855 (i386_fetch_inferior_register): ... this.
15856 (i386_store_inferior_register): New.
15857 (the_low_target): Adapt to new interface.
15858
15859 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
15860 (arm_get_thread_context): New.
15861 (arm_set_thread_context): New.
15862 (regptr): New.
15863 (do_fetch_inferior_registers): Rename to ...
15864 (arm_fetch_inferior_register): ... this.
15865 (arm_store_inferior_register): New.
15866 (arm_wince_breakpoint): Reimplement as unsigned long.
15867 (arm_wince_breakpoint_len): Define.
15868 (the_low_target): Adapt to new interface.
15869
15870 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
15871 load_debug_registers. Add get_thread_context, set_thread_context,
15872 thread_added and store_inferior_register. Rename
15873 fetch_inferior_registers to fetch_inferior_register.
15874 (regptr): Remove declaration.
15875
15876 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15877
15878 * linux-low.c (linux_detach): Change return type to int. Return 0.
15879 * spu-low.c (spu_detach): Likewise.
15880
15881 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15882
15883 * target.h (target_ops): Change return type of detach to int.
15884 Add join.
15885 (join_inferior): New.
15886 * server.c (main): Don't skip detach support on mingw32.
15887 If the inferior doesn't support detaching return error.
15888 Call join_inferior instead of using waitpid.
15889 * linux-low.c (linux_join): New.
15890 (linux_target_op): Add linux_join.
15891 * spu-low.c (spu_join): New.
15892 (spu_target_ops): Add spu_join.
15893 * win32-low.c (win32_detach): Adapt to new interface.
15894 Reopen current_process_handle before detaching. Issue a child
15895 resume before detaching.
15896 (win32_join): New.
15897 (win32_target_op): Add win32_join.
15898
15899 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15900
15901 * win32-low.c (win32-attach): Fix return value.
15902 * target.h (target_ops): Describe ATTACH return values.
15903
15904 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15905
15906 * win32-low.c (GETPROCADDRESS): Define.
15907 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
15908 (winapi_DebugSetProcessKillOnExit): Likewise.
15909 (win32_create_inferior): Force usage of ansi CreateProcessA.
15910 (win32_attach): Use GETPROCADDRESS.
15911 (win32_detach): Likewise.
15912
15913 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15914
15915 * win32-low.c (win32_wait): Don't use WSTOPSIG.
15916
15917 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
15918
15919 * win32-low.c: Commit leftover changes from 2007-03-29.
15920
15921 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
15922
15923 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
15924 fields short instead of int. Add explicit padding.
15925 (i387_cache_to_fsave): Remove unnecessary casts.
15926 (i387_fsave_to_cache): Doc fix.
15927 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
15928
15929 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
15930
15931 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
15932 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
15933
15934 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
15935
15936 * configure.srv (arm*-*-mingw32ce*): Move near the other
15937 arm targets.
15938
15939 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
15940
15941 * configure.ac: Add errno checking.
15942 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
15943 sys/file.h and malloc.h.
15944 (AC_CHECK_DECLS): Add perror.
15945 (srv_mingwce): Handle.
15946 * configure.srv (i[34567]86-*-cygwin*): Add
15947 win32-i386-low.o to srv_tgtobj.
15948 (i[34567]86-*-mingw*): Likewise.
15949 (arm*-*-mingw32ce*): Add case.
15950 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
15951 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
15952 [__MINGW32CE__] (strerror): New function.
15953 [__MINGW32CE__] (errno): Define to GetLastError.
15954 [__MINGW32CE__] (COUNTOF): New macro.
15955 (remote_open): Remove extra close call.
15956 * mem-break.c (delete_breakpoint_at): New function.
15957 * mem-break.h (delete_breakpoint_at): Declare.
15958 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
15959 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
15960 [USE_WIN32API] (read, write): Add char* casts.
15961 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
15962 * server.h: Include wincecompat.h on Windows CE.
15963 [HAVE_ERRNO_H]: Check.
15964 (perror): Declare if not declared.
15965 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
15966 (perror_with_name): Remove errno declaration.
15967 * wincecompat.h: New.
15968 * wincecompat.c: New.
15969 * win32-low.h: New.
15970 * win32-arm-low.c: New.
15971 * win32-i386-low.c: New.
15972 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
15973 (OUTMSG2): Make it safe.
15974 (_T): New macro.
15975 (COUNTOF): New macro.
15976 (NUM_REGS): Get it from the low target.
15977 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
15978 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
15979 (thread_rec): Let low target handle debug registers.
15980 (child_add_thread): Likewise.
15981 (child_init_thread_list): Likewise.
15982 (continue_one_thread): Likewise.
15983 (regptr): New.
15984 (do_child_fetch_inferior_registers): Move to ...
15985 * win32-i386-low.c: ... here, and rename to ...
15986 (do_fetch_inferior_registers): ... this.
15987 * win32-low.c (child_fetch_inferior_registers):
15988 Go through the low target.
15989 (do_child_store_inferior_registers): Use regptr.
15990 (strwinerror): New function.
15991 (win32_create_inferior): Handle Windows CE.
15992 Use strwinerror instead of strerror on Windows error
15993 codes. Add program to the error output.
15994 Don't close the main thread handle on Windows CE.
15995 (win32_attach): Use coredll.dll on Windows CE.
15996 (win32_kill): Close current process and current
15997 thread handles.
15998 (win32_detach): Use coredll.dll on Windows CE.
15999 (win32_resume): Let low target handle debug registers, and
16000 step request.
16001 (handle_exception): Add/Remove initial breakpoint. Avoid
16002 non-existant WSTOPSIG on Windows CE.
16003 (win32_read_inferior_memory): Cast to remove warning.
16004 (win32_arch_string): Go through the low target.
16005 (initialize_low): Call set_breakpoint_data with the low
16006 target's breakpoint.
16007 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
16008 FOP_REGNUM, mappings): Move to ...
16009 * win32-i386-low.c: ... here.
16010 * win32-low.c (win32_thread_info): Move to ...
16011 * win32-low.h: ... here.
16012 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
16013 win32-arm-low.c and wincecompat.c.
16014 (all:): Add $EXEEXT.
16015 (install-only:): Likewise.
16016 (gdbserver:): Likewise.
16017 (gdbreplay:): Likewise.
16018 * config.in: Regenerate.
16019 * configure: Regenerate.
16020
16021 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
16022
16023 * win32-low.c: Rename typedef thread_info to
16024 win32_thread_info throughout.
16025
16026 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
16027
16028 * win32-i386-low.c: Rename to ...
16029 * win32-low.c: ... this.
16030 * configure.srv: Replace win32-i386-low.o with win32-low.o.
16031 * Makefile.in: Likewise.
16032
16033 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
16034
16035 * remote-utils.c (monitor_output): Constify msg parameter.
16036 * server.h (monitor_output): Likewise.
16037 * win32-i386-low.c (handle_output_debug_string): New.
16038 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
16039 handle_output_debug_string.
16040 (get_child_debug_event): Likewise.
16041
16042 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
16043
16044 * server.c (main): Correct strtoul check.
16045
16046 2007-03-27 Jon Ringle <jon@ringle.org>
16047
16048 * linux-low.c: Check __ARCH_HAS_MMU__ also.
16049
16050 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
16051
16052 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
16053
16054 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
16055
16056 * terminal.h: Check HAVE_SGTTY_H.
16057
16058 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
16059
16060 * remote-utils.c (remote_open): Print out the assigned port number.
16061
16062 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
16063
16064 * remote-utils.c (monitor_output): New function.
16065 * server.c (debug_threads): Define here.
16066 (monitor_show_help): New function.
16067 (handle_query): Handle qRcmd.
16068 (main): Do not handle 'd' packet.
16069 * server.h (debug_threads, remote_debug, monitor_output): Declare.
16070 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
16071 of debug_threads.
16072
16073 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
16074
16075 * Makefile.in (EXEEXT): New.
16076 (clean): Use $(EXEEXT).
16077
16078 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
16079
16080 * target.h (target_ops): Rename send_signal to request_interrupt,
16081 and remove enum target_signal parameter.
16082 * linux-low.c (linux_request_interrupt): Rename from
16083 linux_send_signal, and always send SIGINT.
16084 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
16085 and always send SIGINT.
16086 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
16087 of send_signal.
16088 (input_interrupt): Likewise.
16089
16090 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
16091
16092 * server.c (get_features_xml): Check if target implemented
16093 arch_string.
16094 * win32-i386-low.c (win32_arch_string): New.
16095 (win32_target_ops): Add win32_arch_string as arch_string member.
16096
16097 2007-02-22 Markus Deuling <deuling@de.ibm.com>
16098
16099 * spu-low.c (spu_arch_string): New.
16100 (spu_target_ops): Add spu_arch_string.
16101
16102 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
16103
16104 * remote-utils.c: Remove HAVE_TERMINAL_H check.
16105 * configure.ac: Do not check for terminal.h.
16106 * configure, config.in: Regenerated.
16107
16108 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
16109
16110 * Makefile.in (OBS): Add $(XML_BUILTIN).
16111 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
16112 (clean): Update.
16113 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
16114 (arm-with-iwmmxt.c): New.
16115 * config.in, configure: Regenerate.
16116 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
16117 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
16118 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
16119 (arm*-*-linux*): Add iWMMXt and regset support.
16120 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
16121 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
16122 (arm_store_wmmxregset, target_regsets): New.
16123 * server.c (get_features_xml): Take annex argument. Check builtin
16124 XML documents.
16125 (handle_query): Handle multiple annexes.
16126
16127 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16128
16129 * remote-utils.c [USE_WIN32API] (read, write): Define.
16130 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
16131 write.
16132
16133 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
16134
16135 * linux-i386-low.c (the_low_target): Set arch_string.
16136 * linux-x86-64-low.c (the_low_target): Likewise.
16137 * linux-low.c (linux_arch_string): New.
16138 (linux_target_ops): Add it.
16139 * linux-low.h (struct linux_target_ops): Add arch_string.
16140 * server.c (write_qxfer_response): Use const void * for DATA.
16141 (get_features_xml): New.
16142 (handle_query): Handle qXfer:features:read. Report it for qSupported.
16143 * target.h (struct target_ops): Add arch_string method.
16144
16145 2007-01-03 Denis Pilat <denis.pilat@st.com>
16146 Daniel Jacobowitz <dan@codesourcery.com>
16147
16148 * linux-low.c (linux_kill): Handle being called with no threads.
16149 * win32-i386-low.c (win32_kill): Likewise.
16150 (get_child_debug_event): Clear current_process_handle.
16151
16152 2006-12-30 Denis PILAT <denis.pilat@st.com>
16153 Daniel Jacobowitz <dan@codesourcery.com>
16154
16155 * remote-utils.c (remote_open): Check the type of specified
16156 serial port devices before opening them.
16157 * server.c (main): Kill the inferior if an error occurs during
16158 the first remote_open.
16159
16160 2006-12-05 Markus Deuling <deuling@de.ibm.com>
16161
16162 * README: Update supported targets.
16163
16164 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
16165
16166 * Makefile.in (clean): Remove reg-mips64.c.
16167 (reg-mips64.c, reg-mips64.o): New rules.
16168 * configure.srv: Handle mips64. Include regset support for mips.
16169 * linux-mips-low.c (union mips_register): New.
16170 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
16171 (mips_breakpoint, mips_breakpoint_at): Use int.
16172 (mips_collect_register, mips_supply_register)
16173 (mips_collect_register_32bit, mips_supply_register_32bit)
16174 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
16175 (mips_store_fpregset, target_regsets): New.
16176 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
16177
16178 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
16179
16180 * configure.srv: Add target "spu*-*-*".
16181 * Makefile.in (clean): Remove reg-spu.c.
16182 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
16183 * spu-low.c: New file.
16184
16185 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
16186
16187 * configure.ac: Correct td_thr_tls_get_addr test.
16188 * configure: Regenerated.
16189
16190 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
16191
16192 * linux-low.c (linux_wait_for_event): Reformat. Use the
16193 pass_signals array.
16194 * remote-utils.c (decode_address_to_semicolon): New.
16195 * server.c (pass_signals, handle_general_set): New.
16196 (handle_query): Mention QPassSignals for qSupported.
16197 (main): Call handle_general_set.
16198 * server.h (pass_signals, decode_address_to_semicolon): New.
16199
16200 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
16201
16202 * server.c (handle_query): Correct error handling for read_auxv.
16203
16204 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
16205
16206 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
16207 and srv_linux_thread_db to yes.
16208 * linux-s390-low.c (s390_fill_gregset): New function.
16209 (target_regsets): Define data structure.
16210
16211 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
16212
16213 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
16214 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
16215 * config.in, configure: Regenerated.
16216 * inferiors.c (gdb_id_to_thread): New function.
16217 (gdb_id_to_thread_id): Use it.
16218 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
16219 * linux-low.h (struct process_info): Add th member.
16220 (thread_db_get_tls_address): New prototype.
16221 * remote-utils.c (decode_address): Make non-static.
16222 * server.c (handle_query): Handle qGetTLSAddr.
16223 * server.h (gdb_id_to_thread, decode_address): New prototypes.
16224 * target.h (struct target_ops): Add get_tls_address.
16225 * thread-db.c (maybe_attach_thread): Save the thread handle.
16226 (thread_db_get_tls_address): New.
16227
16228 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
16229
16230 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
16231 (linux_resume_one_process): Take a siginfo_t *. Update all
16232 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
16233 (struct pending_signals): Add a siginfo_t.
16234 (linux_wait_for_process): Always set last_status.
16235 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
16236 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
16237 * linux-low.h (struct process_info): Add last_status.
16238
16239 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
16240
16241 * remote-utils.c (try_rle): New function.
16242 (putpkt_binary): Use it.
16243
16244 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
16245
16246 * Makefile.in (clean): Clean reg-x86-64-linux.c.
16247 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
16248 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
16249 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
16250 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
16251 point registers.
16252
16253 2006-08-08 Richard Sandiford <richard@codesourcery.com>
16254
16255 * server.c (terminal_fd): New variable.
16256 (old_foreground_pgrp): Likewise.
16257 (restore_old_foreground_pgrp): New function.
16258 (start_inferior): Record the terminal file descriptor in terminal_fd
16259 and its original foreground group in old_foreground_pgrp. Register
16260 restore_old_foreground_pgrp with atexit().
16261
16262 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
16263
16264 * server.c (handle_query): Correct qPart to qXfer.
16265
16266 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
16267
16268 * configure.ac: Check for more headers which are missing on
16269 Windows. Automatically supply -lwsock32 and USE_WIN32API.
16270 * configure.srv: Add Cygwin and mingw32.
16271 * remote-utils.c: Don't include headers unconditionally which
16272 are missing on mingw32. Include <winsock.h> for mingw32.
16273 (remote_open): Adjust for mingw32 support. Flush
16274 standard error after writing to it.
16275 (remote_close, putpkt_binary, input_interrupt, block_async_io)
16276 (unblock_async_io, enable_async_io, disable_async_io)
16277 (readchar, getpkt): Update for Winsock support.
16278 (prepare_resume_reply): Expect a protocol signal number.
16279 * server.c: Disable <sys/wait.h> on mingw32.
16280 (start_inferior): Adjust for mingw32 support. Flush
16281 standard error after writing to it.
16282 (attach_inferior): Likewise. Use protocol signal
16283 numbers.
16284 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
16285 and names.
16286 * win32-i386-low.c: New file.
16287 * Makefile.in (XM_CLIBS): Set.
16288 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
16289 (win32-i386-low.o): New dependency rule.
16290 * linux-low.c (linux_wait): Use target signal numbers.
16291 * target.h (struct target_ops): Doc fix.
16292 * server.h (target_signal_to_name): New prototype.
16293 * gdbreplay.c: Don't include headers unconditionally which
16294 are missing on mingw32. Include <winsock.h> for mingw32.
16295 (remote_close, remote_open): Adjust for Winsock support.
16296 * configure, config.in: Regenerated.
16297
16298 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
16299
16300 * server.c (decode_xfer_read, write_qxfer_response): New.
16301 (handle_query): Take a packet length argument. Handle
16302 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
16303 the qSupported response.
16304 (main): Update call to handle_query.
16305
16306 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
16307
16308 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
16309 (putpkt_binary): Renamed from putpkt and adjusted for binary
16310 data.
16311 (putpkt): New wrapper for putpkt_binary.
16312 (readchar): Don't mask off the high bit.
16313 (decode_X_packet): New function.
16314 * server.c (main): Call putpkt_binary if a handler sets the packet
16315 length. Save the length of the incoming packet. Handle 'X'.
16316 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
16317
16318 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
16319
16320 * server.c (handle_query): Handle qSupported.
16321
16322 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
16323
16324 * remote-utils.c (all_symbols_looked_up): New variable.
16325 (look_up_one_symbol): Check it.
16326 * server.h (look_up_one_symbol): New declaration.
16327 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
16328
16329 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
16330
16331 * Makefile.in (linux-arm-low.o): Update dependencies.
16332 * linux-arm-low.c: Include "gdb_proc_service.h".
16333 (PTRACE_GET_THREAD_AREA): Define.
16334 (ps_get_thread_area): New function.
16335
16336 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
16337
16338 * configure.srv (m68k*-*-uclinux*): New target.
16339 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
16340 (linux_resume_one_process): Remove extraneous cast.
16341 (linux_read_offsets): New.
16342 (linux_target_op): Add linux_read_offsets on mmuless systems.
16343 * server.c (handle_query): Add qOffsets logic.
16344 * target.h (struct target_ops): Add read_offsets.
16345
16346 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
16347
16348 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
16349 (PTRACE_GET_THREAD_AREA): Define.
16350 (ps_get_thread_area): New function.
16351 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
16352 (linux-x86-64-low.o): Update.
16353
16354 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
16355
16356 * configure.ac: Remove checks for prfpregset_t.
16357 * gdb_proc_service.h: New file.
16358 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
16359 new "gdb_proc_service.h".
16360 * proc-service.c: Likewise.
16361 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
16362 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
16363 * Makefile.in (gdb_proc_service_h): Updated.
16364 * configure, config.in: Regenerated.
16365
16366 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
16367
16368 * remote-utils.c (prepare_resume_reply): Move declaration
16369 of gdb_id_from_wait to the top of the block.
16370
16371 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
16372
16373 * linux-low.c (regsets_store_inferior_registers): Read the regset
16374 from the target before filling it.
16375
16376 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
16377
16378 * server.c (attach_inferior): Return SIGTRAP for a successful
16379 attach.
16380
16381 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
16382
16383 * Makefile.in (OBS): Add version.o.
16384 (STAGESTUFF): Delete.
16385 (version.o): Add dependencies.
16386 (version.c): Replace rule.
16387 (clean): Remove version.c.
16388 * server.c (gdbserver_version): New.
16389 (gdbserver_usage): Use printf.
16390 (main): Handle --version and --help.
16391 * server.h (version, host_name): Add declarations.
16392
16393 2005-12-23 Eli Zaretskii <eliz@gnu.org>
16394
16395 * linux-arm-low.c:
16396 * linux-arm-low.c:
16397 * inferiors.c:
16398 * i387-fp.h:
16399 * i387-fp.c:
16400 * gdbreplay.c:
16401 * regcache.c:
16402 * proc-service.c:
16403 * mem-break.h:
16404 * mem-break.c:
16405 * linux-x86-64-low.c:
16406 * linux-sh-low.c:
16407 * linux-s390-low.c:
16408 * linux-ppc64-low.c:
16409 * linux-ppc-low.c:
16410 * linux-mips-low.c:
16411 * linux-m68k-low.c:
16412 * linux-m32r-low.c:
16413 * linux-low.h:
16414 * linux-low.c:
16415 * linux-ia64-low.c:
16416 * linux-i386-low.c:
16417 * linux-crisv32-low.c:
16418 * thread-db.c:
16419 * terminal.h:
16420 * target.h:
16421 * target.c:
16422 * server.h:
16423 * server.c:
16424 * remote-utils.c:
16425 * regcache.h:
16426 * utils.c:
16427 * Makefile.in:
16428 * configure.ac:
16429 * gdbserver.1: Add (C) after Copyright. Update the FSF
16430 address.
16431
16432 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
16433
16434 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
16435 (arm_breakpoint_at): Recognize both breakpoints.
16436 (the_low_target): Use the correct breakpoint instruction.
16437
16438 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
16439
16440 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
16441 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
16442 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
16443 (the_low_target): Update.
16444
16445 2005-10-25 Andreas Schwab <schwab@suse.de>
16446
16447 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
16448
16449 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
16450 (ia64_num_regs): Reduce to 462.
16451
16452 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
16453
16454 * acinclude.m4: Correct quoting.
16455 * aclocal.m4: Regenerated.
16456
16457 Suggested by SZOKOVACS Robert <szo@ies.hu>:
16458 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
16459 (thread_db_init): Call thread_db_err_str.
16460 * configure.ac: Check for TD_VERSION.
16461 * config.in, configure: Regenerated.
16462
16463 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16464
16465 * server.h (error, fatal, warning): Add ATTR_FORMAT.
16466
16467 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
16468
16469 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
16470 is not available. Define HAVE_PTRACE_GETREGS if it is.
16471 * config.in, configure: Regenerated.
16472 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
16473 * linux-i386-low.c, linux-m68k-low.c: Update to use
16474 HAVE_PTRACE_GETREGS.
16475 * linux-low.c (regsets_fetch_inferior_registers)
16476 (regsets_store_inferior_registers): Only return 0 if we processed
16477 GENERAL_REGS.
16478 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
16479 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
16480
16481 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
16482
16483 * inferiors.c (struct thread_info): Add gdb_id.
16484 (add_thread): Add gdb_id argument.
16485 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
16486 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
16487 calls to add_thread.
16488 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
16489 * server.c (handle_query): Use thread_to_gdb_id.
16490 (handle_v_cont, main): Use gdb_id_to_thread_id.
16491 * server.h (add_thread): Update prototype.
16492 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
16493 prototypes.
16494
16495 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
16496
16497 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
16498 left-padded registers.
16499 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
16500 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
16501
16502 2005-07-01 Steve Ellcey <sje@cup.hp.com>
16503
16504 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
16505 * configure: Regenerate.
16506 * config.in: Regenerate.
16507 * server.h (NEED_DECLARATION_STRERROR):
16508 Replace with !HAVE_DECL_STRERROR.
16509
16510 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
16511
16512 * linux-low.c (linux_wait, linux_send_signal): Don't test
16513 an unsigned long variable for > 0 if it could be MAX_ULONG.
16514 * server.c (myresume): Likewise.
16515 * target.c (set_desired_inferior): Likewise.
16516
16517 2005-06-13 Mark Kettenis <kettenis@gnu.org>
16518
16519 * configure.ac: Simplify and improve check for socklen_t.
16520 * configure, config.in: Regenerate.
16521
16522 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
16523
16524 * acconfig.h: Remove.
16525 * configure.ac: Add a test for socklen_t. Use three-argument
16526 AC_DEFINE throughout.
16527 * config.in: Regenerated using autoheader 2.59.
16528 * configure: Regenerated.
16529
16530 * gdbreplay.c (socklen_t): Provide a default.
16531 (remote_open): Use socklen_t.
16532 * remote-utils.c (socklen_t): Provide a default.
16533 (remote_open): Use socklen_t.
16534 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
16535 unsigned char.
16536
16537 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
16538 char for buffers.
16539 * linux-low.c (linux_read_memory, linux_write_memory)
16540 (linux_read_auxv): Likewise.
16541 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
16542 (check_mem_write): Likewise.
16543 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
16544 Likewise.
16545 * regcache.c (struct inferior_rgcache_data, registers_to_string)
16546 (registers_from_string, register_data): Likewise.
16547 * server.c (handle_query, main): Likewise.
16548 * server.h (convert_ascii_to_int, convert_int_to_ascii)
16549 (decode_M_packet): Likewise.
16550 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
16551 * target.h (struct target_ops): Update read_memory, write_memory,
16552 and read_auxv.
16553 (read_inferior_memory, write_inferior_memory): Update.
16554 * linux-low.h (struct linux_target_ops): Change type of breakpoint
16555 to unsigned char *.
16556 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
16557 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
16558 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
16559 linux-s390-low.c, linux-sh-low.c: Update for changes in
16560 read_inferior_memory and the_low_target->breakpoint.
16561
16562 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
16563
16564 * Makefile.in (SFILES): Add linux-ppc64-low.c.
16565 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
16566 * configure.srv: Add powerpc64-*-linux*.
16567 * linux-ppc64-low.c: New file.
16568
16569 2005-05-23 Orjan Friberg <orjanf@axis.com>
16570
16571 * linux-cris-low.c: New file with support for CRIS.
16572 * linux-crisv32-low.c: Ditto for CRISv32.
16573 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
16574 (clean): Add reg-cris.c and reg-crisv32.c.
16575 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
16576 reg-crisv32.o, and reg-crisv32.c to make rules.
16577 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
16578 recognized targets.
16579
16580 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
16581
16582 * linux-low.c (fetch_register): Ensure buffer size is a multiple
16583 of sizeof (PTRACE_XFER_TYPE).
16584 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
16585
16586 2005-05-12 Orjan Friberg <orjanf@axis.com>
16587
16588 * target.h (struct target_ops): Add insert_watchpoint,
16589 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
16590 pointers for hardware watchpoint support.
16591 * linux-low.h (struct linux_target_ops): Ditto.
16592 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
16593 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
16594 to linux_target_ops.
16595 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
16596 reply packet.
16597 * server.c (main): Recognize 'Z' and 'z' packets.
16598
16599 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
16600
16601 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
16602 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
16603 (the_low_target): Add new members.
16604
16605 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
16606
16607 * proc-service.c (ps_lgetregs): Search all_processes instead of
16608 all_threads.
16609
16610 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
16611
16612 * server.c (start_inferior): Change return type to int.
16613 (attach_inferior): Change sigptr to int *.
16614 (handle_v_cont, handle_v_requests): Change signal to int *.
16615 (main): Change signal to int.
16616
16617 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
16618
16619 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
16620 * configure.srv: Add m32r*-*-linux*.
16621 * linux-m32r-low.c: New file.
16622
16623 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
16624
16625 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
16626
16627 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
16628
16629 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
16630 Take unsigned long arguments for PIDs.
16631 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
16632 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
16633 (wait_for_sigstop, linux_resume_one_process)
16634 (regsets_fetch_inferior_registers, linux_send_signal)
16635 (linux_read_auxv): Likewise. Update the types of variables holding
16636 PIDs. Update format string specifiers.
16637 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
16638 * remote-utils.c (prepare_resume_reply): Likewise.
16639 * server.c (cont_thread, general_thread, step_thread)
16640 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
16641 unsigned long.
16642 (handle_query): Update format specifiers.
16643 (handle_v_cont, main): Use strtoul for thread IDs.
16644 * server.h (struct inferior_list_entry): Use unsigned long for ID.
16645 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
16646 (general_thread, step_thread, thread_from_wait)
16647 (old_thread_from_wait): Update.
16648 * target.h (struct thread_resume): Use unsigned long for THREAD.
16649 (struct target_ops): Use unsigned long for arguments to attach and
16650 thread_alive.
16651
16652 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
16653
16654 * acinclude.m4: Include bfd/bfd.m4 directly.
16655 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
16656 <agriffis@toolchain.org>.
16657 * aclocal.m4, configure: Regenerated.
16658
16659 2005-01-07 Andrew Cagney <cagney@gnu.org>
16660
16661 * configure.ac: Rename configure.in, require autoconf 2.59.
16662 * configure: Re-generate.
16663
16664 2004-12-08 Daniel Jacobowitz <dan@debian.org>
16665
16666 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
16667 LIBS when finished.
16668 * aclocal.m4: Regenerated.
16669 * configure: Regenerated.
16670
16671 2004-11-21 Andreas Schwab <schwab@suse.de>
16672
16673 * linux-m68k-low.c (m68k_num_gregs): Define.
16674 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
16675 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
16676 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
16677 (m68k_breakpoint_at): New. Add to the_low_target.
16678
16679 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
16680 srv_linux_thread_db to yes.
16681
16682 2004-10-20 Joel Brobecker <brobecker@gnat.com>
16683
16684 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
16685 (ARCH_SET_FS): Likewise.
16686 (ARCH_GET_FS): Likewise.
16687 (ARCH_GET_GS): Likewise.
16688
16689 2004-10-16 Daniel Jacobowitz <dan@debian.org>
16690
16691 * linux-i386-low.c (ps_get_thread_area): New.
16692 * linux-x86-64-low.c (ps_get_thread_area): New.
16693 * linux-low.c: Include <sys/syscall.h>.
16694 (linux_kill_one_process): Don't kill the first thread here.
16695 (linux_kill): Kill the first thread here.
16696 (kill_lwp): New function.
16697 (send_sigstop, linux_send_signal): Use it.
16698 * proc-service.c: Clean up #ifdefs.
16699 (fpregset_info): Delete.
16700 (ps_lgetregs): Update and enable implementation.
16701 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
16702 implementations.
16703 * remote-utils.c (struct sym_cache, symbol_cache): New.
16704 (input_interrupt): Print a clearer message.
16705 (async_io_enabled): New variable.
16706 (enable_async_io, disable_async_io): Use it. Update comments.
16707 (look_up_one_symbol): Use the symbol cache.
16708 * thread-db.c (thread_db_look_up_symbols): New function.
16709 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
16710
16711 2004-10-16 Daniel Jacobowitz <dan@debian.org>
16712
16713 * configure.in: Test for -rdynamic.
16714 * configure: Regenerated.
16715 * Makefile (INTERNAL_LDFLAGS): New.
16716 (gdbserver, gdbreplay): Use it.
16717
16718 2004-09-02 Andrew Cagney <cagney@gnu.org>
16719
16720 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
16721
16722 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
16723
16724 * linux-low.c (linux_wait): Clear all_processes list also.
16725
16726 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
16727
16728 * linux-low.c: Include <errno.h>. Remove extern declaration of
16729 errno.
16730
16731 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
16732
16733 * gdbreplay.c, server.h, utils.c: Update copyright years.
16734
16735 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
16736
16737 * server.c (main): Print child status or termination signal from
16738 variable 'signal', not 'sig'.
16739
16740 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
16741
16742 * linux-low.c (linux_read_memory): Change return type to
16743 int. Check for and return error from ptrace().
16744 * target.c (read_inferior_memory): Change return type to int. Pass
16745 back return status from the_target->read_memory().
16746 * target.h (struct target_ops): Adapt *read_memory() prototype.
16747 Update comment.
16748 (read_inferior_memory): Adapt prototype.
16749 * server.c (main): Return an error packet if
16750 read_inferior_memory() returns an error.
16751
16752 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
16753
16754 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
16755 Unify with other clean targets.
16756
16757 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
16758
16759 * server.c (handle_v_cont): Call set_desired_inferior.
16760
16761 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
16762
16763 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
16764
16765 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
16766
16767 * linux-low.c (linux_wait): Unblock async I/O.
16768 (linux_resume): Block and enable async I/O.
16769 * remote-utils.c (block_async_io, unblock_async_io): New functions.
16770 * server.h (block_async_io, unblock_async_io): Add prototypes.
16771
16772 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
16773
16774 * remote-utils.c (remote_open): Print a status notice after
16775 opening a TCP port.
16776 * server.c (attach_inferior): Print a status notice after
16777 attaching.
16778
16779 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
16780
16781 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
16782
16783 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
16784
16785 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
16786 error packet.
16787 * server.c, target.h: Update copyright years.
16788
16789 2004-02-25 Roland McGrath <roland@redhat.com>
16790
16791 * target.h (struct target_ops): New member `read_auxv'.
16792 * server.c (handle_query): Handle qPart:auxv:read: query using that.
16793 * linux-low.c (linux_read_auxv): New function.
16794 (linux_target_ops): Initialize `read_auxv' member to that.
16795
16796 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16797
16798 Committed by Jim Blandy <jimb@redhat.com>.
16799
16800 * linux-s390-low.c (s390_num_regs): Update.
16801 (s390_regmap): Remove control registers. Use __s390x__ predefine
16802 instead of GPR_SIZE to distiguish s390 and s390x targets.
16803
16804 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
16805
16806 * linux-low.c: Update copyright year.
16807 (check_removed_breakpoint): Clear pending_is_breakpoint.
16808 (linux_set_resume_request, linux_queue_one_thread)
16809 (resume_status_pending_p): New functions.
16810 (linux_continue_one_thread): Use process->resume.
16811 (linux_resume): Only resume threads if there are no pending events.
16812 * linux-low.h (struct process_info): Add resume request
16813 pointer.
16814
16815 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
16816
16817 * regcache.c (new_register_cache): Clear the allocated register
16818 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
16819
16820 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
16821
16822 * linux-low.c (linux_resume): Take a struct thread_resume *
16823 argument.
16824 (linux_wait): Update call.
16825 (resume_ptr): New static variable.
16826 (linux_continue_one_thread): Renamed from
16827 linux_continue_one_process. Use resume_ptr.
16828 (linux_resume): Use linux_continue_one_thread.
16829 * server.c (handle_v_cont, handle_v_requests): New functions.
16830 (myresume): New function.
16831 (main): Handle 'v' case.
16832 * target.h (struct thread_resume): New type.
16833 (struct target_ops): Change argument of "resume" to struct
16834 thread_resume *.
16835 (myresume): Delete macro.
16836
16837 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
16838
16839 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
16840 (uninstall): Support DESTDIR.
16841
16842 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
16843
16844 * configure.srv: Add xscale*linux copy of arm*linux entry.
16845
16846 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
16847
16848 * linux-arm-low.c (arm_reinsert_addr): New function.
16849 (the_low_target): Add arm_reinsert_addr.
16850
16851 2003-07-08 Mark Kettenis <kettenis@gnu.org>
16852
16853 * mem-break.c: Remove whitespace at end of file.
16854
16855 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
16856
16857 * configure.in: Check whether we need to prototype strerror.
16858 * server.h: Optionally prototype strerror.
16859 * gdbreplay.c (perror_with_name): Use strerror.
16860 * linux-low.c (linux_attach_lwp): Use strerror.
16861 * utils.c (perror_with_name): Use strerror.
16862 * config.in, configure: Regenerated.
16863
16864 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
16865
16866 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
16867 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
16868
16869 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
16870
16871 * Makefile.in (SFILES): Update.
16872 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
16873 low-sun3.c: Remove files.
16874
16875 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
16876
16877 * linux-low.c: Move comment to linux_thread_alive where it belonged.
16878 (linux_detach_one_process, linux_detach): New functions.
16879 (linux_target_ops): Add linux_detach.
16880 * server.c (main): Handle 'D' packet.
16881 * target.h (struct target_ops): Add "detach" member.
16882 (detach_inferior): Define.
16883
16884 2003-06-13 Mark Kettenis <kettenis@gnu.org>
16885
16886 From Kelley Cook <kelleycook@wideopenwest.com>:
16887 * configure.srv: Accept i[34567]86 variants.
16888
16889 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
16890
16891 * linux-low.c (linux_wait_for_event): Correct comment typos.
16892 (linux_resume_one_process): Call check_removed_breakpoint.
16893 (linux_send_signal): New function.
16894 (linux_target_ops): Add linux_send_signal.
16895 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
16896 of kill.
16897 * target.h (struct target_ops): Add send_signal.
16898
16899 2003-05-29 Jim Blandy <jimb@redhat.com>
16900
16901 * linux-low.c (usr_store_inferior_registers): Transfer buf in
16902 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
16903 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
16904 away part of the register's value.
16905
16906 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
16907
16908 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
16909 (linux_wait_for_event, linux_init_signals): Likewise.
16910
16911 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
16912
16913 * configure.in: Check for stdlib.h.
16914 * configure: Regenerated.
16915 * config.in: Regenerated.
16916
16917 2003-01-04 Andreas Schwab <schwab@suse.de>
16918
16919 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
16920
16921 2003-01-02 Andrew Cagney <ac131313@redhat.com>
16922
16923 * Makefile.in: Remove obsolete code.
16924
16925 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
16926
16927 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
16928 defined(PT_FPR0_HI).
16929
16930 2002-11-17 Stuart Hughes <seh@zee2.com>
16931
16932 * linux-arm-low.c (arm_num_regs): Increase.
16933 (arm_regmap): Include status register.
16934
16935 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
16936
16937 * linux-low.c (register_addr): Remove incorrect -1 check.
16938
16939 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
16940
16941 * linux-low.c (linux_create_inferior): Call setpgid. Return
16942 the new PID.
16943 (unstopped_p, linux_signal_pid): Remove.
16944 (linux_target_ops): Remove linux_signal_pid.
16945 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
16946 global instead of target method.
16947 * target.h (struct target_ops): Remove signal_pid. Update comment
16948 for create_inferior.
16949 * server.c (signal_pid): New variable.
16950 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
16951 gdbserver. Set the child to be the foreground process group.
16952 (attach_inferior): Set signal_pid.
16953
16954 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
16955
16956 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
16957
16958 2002-08-20 Jim Blandy <jimb@redhat.com>
16959
16960 * Makefile.in (LDFLAGS): Allow the configure script to establish a
16961 default for this.
16962
16963 2002-08-01 Andrew Cagney <cagney@redhat.com>
16964
16965 * Makefile.in: Make chill references obsolete.
16966
16967 2002-07-24 Kevin Buettner <kevinb@redhat.com>
16968
16969 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
16970 * configure: Regenerate.
16971 * config.in: Regenerate.
16972
16973 2002-07-09 David O'Brien <obrien@FreeBSD.org>
16974
16975 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
16976 (perror_with_name, remote_close, remote_open, expect, play): Static.
16977
16978 2002-07-04 Michal Ludvig <mludvig@suse.cz>
16979
16980 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
16981 byte offsets instead of an array of indexes.
16982 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
16983
16984 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
16985
16986 * regcache.c: Add comment.
16987
16988 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
16989
16990 * thread-db.c: New file.
16991 * proc-service.c: New file.
16992 * acinclude.m4: New file.
16993 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
16994 proc-service.o, and thread-db.o.
16995 (linux-low.o): Add USE_THREAD_DB.
16996 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
16997 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
16998 * aclocal.m4: Regenerated.
16999 * config.in: Regenerated.
17000 * configure: Regenerated.
17001 * configure.in: Check for proc_service.h, sys/procfs.h,
17002 thread_db.h, and linux/elf.h headrs.
17003 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
17004 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
17005 Check for -lthread_db and thread support.
17006 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
17007 PowerPC, and SuperH.
17008 * i387-fp.c: Constify arguments.
17009 * i387-fp.h: Likewise.
17010 * inferiors.c: (struct thread_info): Renamed from
17011 `struct inferior_info'. Remove PID member. Use generic inferior
17012 list header. All uses updated.
17013 (inferiors, signal_pid): Removed.
17014 (all_threads): New variable.
17015 (get_thread): Define.
17016 (add_inferior_to_list): New function.
17017 (for_each_inferior): New function.
17018 (change_inferior_id): New function.
17019 (add_inferior): Removed.
17020 (remove_inferior): New function.
17021 (add_thread): New function.
17022 (free_one_thread): New function.
17023 (remove_thread): New function.
17024 (clear_inferiors): Use for_each_inferior and free_one_thread.
17025 (find_inferior): New function.
17026 (find_inferior_id): New function.
17027 (inferior_target_data): Update argument type.
17028 (set_inferior_target_data): Likewise.
17029 (inferior_regcache_data): Likewise.
17030 (set_inferior_regcache_data): Likewise.
17031 * linux-low.c (linux_bp_reinsert): Remove.
17032 (all_processes, stopping_threads, using_thrads)
17033 (struct pending_signals, debug_threads, pid_of): New.
17034 (inferior_pid): Replace with macro.
17035 (struct inferior_linux_data): Remove.
17036 (get_stop_pc, add_process): New functions.
17037 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
17038 Use add_process and add_thread.
17039 (linux_attach_lwp): New function, based on old linux_attach. Use
17040 add_process and add_thread. Set stop_expected for new threads.
17041 (linux_attach): New function.
17042 (linux_kill_one_process): New function.
17043 (linux_kill): Kill all LWPs.
17044 (linux_thread_alive): Use find_inferior_id.
17045 (check_removed_breakpoints, status_pending_p): New functions.
17046 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
17047 Update. Use WNOHANG. Wait for cloned processes also. Update process
17048 struct for the found process.
17049 (linux_wait_for_event): New function.
17050 (linux_wait): Use it. Support LWPs.
17051 (send_sigstop, wait_for_sigstop, stop_all_processes)
17052 (linux_resume_one_process, linux_continue_one_process): New functions.
17053 (linux_resume): Support LWPs.
17054 (REGISTER_RAW_SIZE): Remove.
17055 (fetch_register): Use register_size instead. Call supply_register.
17056 (usr_store_inferior_registers): Likewise. Call collect_register.
17057 Fix recursive case.
17058 (regsets_fetch_inferior_registers): Improve error message.
17059 (regsets_store_inferior_registers): Add debugging.
17060 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
17061 (unstopped_p, linux_signal_pid): New functions.
17062 (linux_target_ops): Add linux_signal_pid.
17063 (linux_init_signals): New function.
17064 (initialize_low): Call it. Initialize using_threads.
17065 * regcache.c (inferior_regcache_data): Add valid
17066 flag.
17067 (get_regcache): Fetch registers lazily. Add fetch argument
17068 and update all callers.
17069 (regcache_invalidate_one, regcache_invalidate): New
17070 functions.
17071 (new_register_cache): Renamed from create_register_cache.
17072 Return the new regcache.
17073 (free_register_cache): Change argument to a void *.
17074 (registers_to_string, registers_from_string): Call get_regcache
17075 with fetch flag set.
17076 (register_data): Make static. Pass fetch flag to get_regcache.
17077 (supply_register): Call get_regcache with fetch flag clear.
17078 (collect_register): Call get_regcache with fetch flag set.
17079 (collect_register_as_string): New function.
17080 * regcache.h: Update.
17081 * remote-utils.c (putpkt): Flush after debug output and use
17082 stderr.
17083 Handle input interrupts while waiting for an ACK.
17084 (input_interrupt): Use signal_pid method.
17085 (getpkt): Flush after debug output and use stderr.
17086 (outreg): Use collect_register_as_string.
17087 (new_thread_notify, dead_thread_notify): New functions.
17088 (prepare_resume_reply): Check using_threads. Set thread_from_wait
17089 and general_thread.
17090 (look_up_one_symbol): Flush after debug output.
17091 * server.c (step_thread, server_waiting): New variables.
17092 (start_inferior): Don't use signal_pid. Update call to mywait.
17093 (attach_inferior): Update call to mywait.
17094 (handle_query): Handle qfThreadInfo and qsThreadInfo.
17095 (main): Don't fetch/store registers explicitly. Use
17096 set_desired_inferior. Support proposed ``Hs'' packet. Update
17097 calls to mywait.
17098 * server.h: Update.
17099 (struct inferior_list, struct_inferior_list_entry): New.
17100 * target.c (set_desired_inferior): New.
17101 (write_inferior_memory): Constify.
17102 (mywait): New function.
17103 * target.h: Update.
17104 (struct target_ops): New signal_pid method.
17105 (mywait): Removed macro, added prototype.
17106
17107 * linux-low.h (regset_func): Removed.
17108 (regset_fill_func, regset_store_func): New.
17109 (enum regset_type): New.
17110 (struct regset_info): Add type field. Use new operation types.
17111 (struct linux_target_ops): stop_pc renamed to get_pc.
17112 Add decr_pc_after_break and breakpoint_at.
17113 (get_process, get_thread_proess, get_process_thread)
17114 (strut process_info, all_processes, linux_attach_lwp)
17115 (thread_db_init): New.
17116
17117 * linux-arm-low.c (arm_get_pc, arm_set_pc,
17118 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
17119 (the_low_target): Add new members.
17120 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
17121 (i386_store_fpxregset): Constify.
17122 (target_regsets): Add new kind identifier.
17123 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
17124 (i386_set_pc): Add debugging.
17125 (i386_breakpoint_at): New function.
17126 (the_low_target): Add new members.
17127 * linux-mips-low.c (mips_get_pc, mips_set_pc)
17128 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
17129 (mips_breakpoint_at): New.
17130 (the_low_target): Add new members.
17131 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
17132 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
17133 (the_low_target): Add new members.
17134 * linux-sh-low.c (sh_get_pc, sh_set_pc)
17135 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
17136 (the_low_target): Add new members.
17137 * linux-x86-64-low.c (target_regsets): Add new kind
17138 identifier.
17139
17140 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
17141
17142 From Martin Pool <mbp@samba.org>:
17143 * server.c (gdbserver_usage): New function.
17144 (main): Call it.
17145
17146 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
17147
17148 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
17149 stop_at -> stop_pc.
17150
17151 2002-05-04 Andrew Cagney <ac131313@redhat.com>
17152
17153 * Makefile.in: Remove obsolete code.
17154
17155 2002-04-24 Michal Ludvig <mludvig@suse.cz>
17156
17157 * linux-low.c (regsets_fetch_inferior_registers),
17158 (regsets_store_inferior_registers): Removed cast to int from
17159 ptrace() calls.
17160 * regcache.h: Added declaration of struct inferior_info.
17161
17162 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
17163
17164 * inferiors.c (struct inferior_info): Add regcache_data.
17165 (add_inferior): Call create_register_cache.
17166 (clear_inferiors): Call free_register_cache.
17167 (inferior_regcache_data, set_inferior_regcache_data): New functions.
17168 * regcache.c (struct inferior_regcache_data): New.
17169 (registers): Remove.
17170 (get_regcache): New function.
17171 (create_register_cache, free_register_cache): New functions.
17172 (set_register_cache): Don't initialize the register cache here.
17173 (registers_to_string, registers_from_string, register_data): Call
17174 get_regcache.
17175 * regcache.h: Add prototypes.
17176 * server.h: Likewise.
17177
17178 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
17179
17180 * mem-break.c: New file.
17181 * mem-break.h: New file.
17182 * Makefile.in: Add mem-break.o rule; update server.h
17183 dependencies.
17184 * inferiors.c (struct inferior_info): Add target_data
17185 member.
17186 (clear_inferiors): Free target_data member if set.
17187 (inferior_target_data, set_inferior_target_data): New functions.
17188 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
17189 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
17190 * linux-low.c (linux_bp_reinsert): New variable.
17191 (struct inferior_linux_data): New.
17192 (linux_create_inferior): Use set_inferior_target_data.
17193 (linux_attach): Likewise. Call add_inferior.
17194 (linux_wait_for_one_inferior): New function.
17195 (linux_wait): Call it.
17196 (linux_write_memory): Add const.
17197 (initialize_low): Call set_breakpoint_data.
17198 * linux-low.h (struct linux_target_ops): Add breakpoint
17199 handling members.
17200 * server.c (attach_inferior): Remove extra add_inferior
17201 call.
17202 * server.h: Include mem-break.h. Update inferior.c
17203 prototypes.
17204 * target.c (read_inferior_memory)
17205 (write_inferior_memory): New functions.
17206 * target.h (read_inferior_memory)
17207 (write_inferior_memory): Change macros to prototypes.
17208 (struct target_ops): Update comments. Add const to write_memory
17209 definition.
17210
17211 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
17212
17213 * linux-low.c (usr_store_inferior_registers): Support
17214 registers which are allowed to fail to store.
17215 * linux-low.h (linux_target_ops): Likewise.
17216 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
17217 (ppc_cannot_store_register): FPSCR may not be storable.
17218
17219 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17220
17221 * server.h: Include <string.h> if HAVE_STRING_H.
17222 * ChangeLog: Correct paths in last ChangeLog entry.
17223
17224 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17225
17226 * linux-low.h: Remove obsolete prototypes.
17227 (struct linux_target_ops): New.
17228 (extern the_low_target): New.
17229 * linux-low.c (num_regs, regmap): Remove declarations.
17230 (register_addr): Use the_low_target explicitly.
17231 (fetch_register): Likewise.
17232 (usr_fetch_inferior_registers): Likewise.
17233 (usr_store_inferior_registers): Likewise.
17234 * linux-arm-low.c (num_regs): Remove.
17235 (arm_num_regs): Define.
17236 (arm_regmap): Renamed from regmap, made static.
17237 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
17238 made static.
17239 (arm_cannot_store_register): Renamed from cannot_store_register,
17240 made static.
17241 (the_low_target): New.
17242 * linux-i386-low.c (num_regs): Remove.
17243 (i386_num_regs): Define.
17244 (i386_regmap): Renamed from regmap, made static.
17245 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
17246 made static.
17247 (i386_cannot_store_register): Renamed from cannot_store_register,
17248 made static.
17249 (the_low_target): New.
17250 * linux-ia64-low.c (num_regs): Remove.
17251 (ia64_num_regs): Define.
17252 (ia64_regmap): Renamed from regmap, made static.
17253 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
17254 made static.
17255 (ia64_cannot_store_register): Renamed from cannot_store_register,
17256 made static.
17257 (the_low_target): New.
17258 * linux-m68k-low.c (num_regs): Remove.
17259 (m68k_num_regs): Define.
17260 (m68k_regmap): Renamed from regmap, made static.
17261 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
17262 made static.
17263 (m68k_cannot_store_register): Renamed from cannot_store_register,
17264 made static.
17265 (the_low_target): New.
17266 * linux-mips-low.c (num_regs): Remove.
17267 (mips_num_regs): Define.
17268 (mips_regmap): Renamed from regmap, made static.
17269 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
17270 made static.
17271 (mips_cannot_store_register): Renamed from cannot_store_register,
17272 made static.
17273 (the_low_target): New.
17274 * linux-ppc-low.c (num_regs): Remove.
17275 (ppc_num_regs): Define.
17276 (ppc_regmap): Renamed from regmap, made static.
17277 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
17278 made static.
17279 (ppc_cannot_store_register): Renamed from cannot_store_register,
17280 made static.
17281 (the_low_target): New.
17282 * linux-s390-low.c (num_regs): Remove.
17283 (s390_num_regs): Define.
17284 (s390_regmap): Renamed from regmap, made static.
17285 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
17286 made static.
17287 (s390_cannot_store_register): Renamed from cannot_store_register,
17288 made static.
17289 (the_low_target): New.
17290 * linux-sh-low.c (num_regs): Remove.
17291 (sh_num_regs): Define.
17292 (sh_regmap): Renamed from regmap, made static.
17293 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
17294 made static.
17295 (sh_cannot_store_register): Renamed from cannot_store_register,
17296 made static.
17297 (the_low_target): New.
17298 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
17299 (the_low_target): New.
17300
17301 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17302
17303 * Makefile.in: Add stamp-h target.
17304 * configure.in: Create stamp-h.
17305 * configure: Regenerated.
17306
17307 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17308
17309 * inferiors.c: New file.
17310 * target.c: New file.
17311 * target.h: New file.
17312 * Makefile.in: Add target.o and inferiors.o. Update
17313 dependencies.
17314 * linux-low.c (inferior_pid): New static variable,
17315 moved from server.c.
17316 (linux_create_inferior): Renamed from create_inferior.
17317 Call add_inferior. Return 0 on success instead of a PID.
17318 (linux_attach): Renamed from myattach.
17319 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
17320 (linux_thread_alive): Renamed from mythread_alive.
17321 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
17322 child dies.
17323 (linux_resume): Renamed from myresume. Add missing ``return 0''.
17324 (regsets_store_inferior_registers): Correct error message.
17325 Add missing ``return 0''.
17326 (linux_fetch_registers): Renamed from fetch_inferior_registers.
17327 (linux_store_registers): Renamed from store_inferior_registers.
17328 (linux_read_memory): Renamed from read_inferior_memory.
17329 (linux_write_memory): Renamed from write_inferior_memory.
17330 (linux_target_ops): New structure.
17331 (initialize_low): Call set_target_ops ().
17332 * remote-utils.c (unhexify): New function.
17333 (hexify): New function.
17334 (input_interrupt): Send signals to ``signal_pid''.
17335 * server.c (inferior_pid): Remove.
17336 (start_inferior): Update create_inferior call.
17337 (attach_inferior): Call add_inferior.
17338 (handle_query): New function.
17339 (main): Call handle_query for `q' packets.
17340 * server.h: Include "target.h". Remove obsolete prototypes.
17341 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
17342
17343 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
17344
17345 * Makefile.in: Add WARN_CFLAGS. Update configury
17346 dependencies.
17347 * configure.in: Check for <string.h>
17348 * configure: Regenerate.
17349 * config.in: Regenerate.
17350 * gdbreplay.c: Include needed system headers.
17351 (remote_open): Remove strchr prototype.
17352 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
17353 * regcache.c (supply_register): Change buf argument to const void *.
17354 (supply_register_by_name): Likewise.
17355 (collect_register): Change buf argument to void *.
17356 (collect_register_by_name): Likewise.
17357 * regcache.h: Add missing prototypes.
17358 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
17359 * server.c (handle_query): New function.
17360 (attached): New static variable, moved out of main.
17361 (main): Quiet longjmp clobber warnings.
17362 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
17363 * utils.c (error): Remove NORETURN.
17364 (fatal): Likewise.
This page took 0.379149 seconds and 5 git commands to generate.