Move gdb-dlfcn.[ch] to gdbsupport/
[deliverable/binutils-gdb.git] / gdb / gdbserver / ChangeLog
CommitLineData
2d41fa11
SDJ
12019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2
3 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5 * config.in: Regenerate.
6 * configure: Regenerate.
7
d59b55f0
TT
82019-08-15 Tom Tromey <tromey@adacore.com>
9
10 * target.c (target_write_memory): Use gdb::byte_vector.
11
4196ab2a
TT
122019-08-15 Tom Tromey <tromey@adacore.com>
13
14 * tracepoint.c (write_inferior_data_pointer)
15 (write_inferior_integer, write_inferior_int8)
16 (write_inferior_uinteger, m_tracepoint_action_download)
17 (r_tracepoint_action_download, x_tracepoint_action_download)
18 (l_tracepoint_action_download, clear_inferior_trace_buffer)
19 (download_agent_expr, download_tracepoint_1)
20 (download_trace_state_variables, upload_fast_traceframes): Update.
21 * server.c (gdb_write_memory): Update.
22 * remote-utils.c (relocate_instruction): Update.
23 * proc-service.c (ps_pdwrite): Update.
24 * mem-break.c (remove_memory_breakpoint)
25 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
26 (uninsert_fast_tracepoint_jumps_at)
27 (reinsert_fast_tracepoint_jumps_at): Update.
28 * linux-x86-low.c (append_insns)
29 (i386_install_fast_tracepoint_jump_pad)
30 (amd64_write_goto_address, i386_write_goto_address): Update.
31 * linux-s390-low.c (append_insns, s390_write_goto_address):
32 Update.
33 * linux-ppc-low.c (ppc_relocate_instruction)
34 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
35 (ppc_write_goto_address): Update.
36 * linux-aarch64-low.c (append_insns): Update.
37 * target.h (struct target_ops): Update.
38 (write_inferior_memory): Don't declare.
39 * target.c (target_write_memory): Rename from
40 write_inferior_memory. Remove old target_write_memory.
41
c6778d00
TT
422019-08-15 Tom Tromey <tromey@adacore.com>
43
44 * target.c (write_inferior_memory): Use std::vector.
45
404f2902
FCE
462019-08-06 Frank Ch. Eigler <fche@redhat.com>
47
48 PR build/24886
49 * configure.ac: Drop enable-libmcheck support.
50 * configure, config.in: Rebuild.
51 * acinclude.m4: Don't include it.
52
4c5aa8e0
AH
532019-07-19 Alan Hayward <alan.hayward@arm.com>
54
55 * configure.srv: Remove Arm xml files.
56
7cc17433
AH
572019-07-19 Alan Hayward <alan.hayward@arm.com>
58
59 * configure.srv: Add new files. Remove xml generated files.
60 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
61 registers.
62 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
63 * linux-aarch32-tdesc.c: New file.
64 * linux-aarch32-tdesc.h: New file.
65 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
66 * linux-arm-low.c (init_registers_arm, tdesc_arm)
67 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
68 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
69 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
70 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
71 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
72 (arm_read_description): Call arm_linux_read_description.
73 (initialize_low_arch): Don't init registers.
74 * linux-arm-tdesc.c: New file.
75 * linux-arm-tdesc.h: New file.
76
166a82be
AH
772019-07-10 Alan Hayward <alan.hayward@arm.com>
78
79 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
80 Move counter inside for.
81 (arm_read_description): Check ptrace earlier.
82 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
83
268a13a5
TT
842019-07-09 Tom Tromey <tom@tromey.com>
85
86 * configure: Rebuild.
87 * configure.ac: Change common to gdbsupport.
88 * acinclude.m4: Change common to gdbsupport.
89 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
90 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
91 common to gdbsupport.
92 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
93 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
94 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
95 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
96 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
97 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
98 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
99 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
100 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
101 common to gdbsupport.
102
350fab54
AH
1032019-07-04 Alan Hayward <alan.hayward@arm.com>
104
105 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
106 defines.
107 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
108
2b40fda7
AH
1092019-07-04 Alan Hayward <alan.hayward@arm.com>
110
111 * configure.srv: Remove legacy xml.
112 * linux-aarch64-low.c (initialize_low_arch): Remove
113 initialize_low_tdesc call.
114 * linux-aarch64-tdesc-selftest.c: Remove file.
115 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
116 * linux-x86-low.c (initialize_low_arch): Remove
117 initialize_low_tdesc call.
118 * linux-x86-tdesc-selftest.c: Remove file.
119 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
120
7d10623d
TV
1212019-06-20 Tom de Vries <tdevries@suse.de>
122
123 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
124 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
125
8d6a48df
TV
1262019-06-19 Tom de Vries <tdevries@suse.de>
127
128 * debug.h (debug_write): Change return type to ssize_t.
129 * debug.c (debug_write): Same.
130
73cc7272
TT
1312019-06-14 Tom Tromey <tom@tromey.com>
132
133 * configure.ac: Use new path to gnulib.
134 * configure: Rebuild.
135 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
136 to gnulib.
137
08f10e02
TT
1382019-06-11 Tom Tromey <tom@tromey.com>
139
140 * Makefile.in (SFILES): Add alloc.c.
141 (OBS): Add alloc.o.
142 (IPA_OBJS): Add alloc-ipa.o.
143 (alloc-ipa.o): New target.
144 (%.o: ../%.c): New pattern rule.
145
422186a9
TT
1462019-06-10 Tom Tromey <tromey@adacore.com>
147
148 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
149 end warning with a newline.
150 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
151 newline.
152 * thread-db.c (attach_thread): Don't end warning with a newline.
153 (thread_db_notice_clone): Likewise.
154 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
155 newline.
156 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
157 end warning with a newline.
158
b02f78f9
PA
1592019-06-04 Pedro Alves <palves@redhat.com>
160
161 * server.c (captured_main): Use make_unique_xstrdup.
162
88ed7edb
TT
1632019-06-02 Tom Tromey <tom@tromey.com>
164
165 * gdbreplay.c (fromhex): Remove.
166 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
167
33a6bc35
TT
1682019-05-29 Tom Tromey <tromey@adacore.com>
169
170 * configure: Rebuild.
171
e90a813d
KB
1722019-05-06 Kevin Buettner <kevinb@redhat.com>
173
174 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
175 sign extension code on 32-bit builds.
176
353ea2d1
EZ
1772019-05-03 Eli Zaretskii <eliz@gnu.org>
178
179 * remote-utils.c:
180 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
181
b494cdff
TT
1822019-04-19 Tom Tromey <tom@tromey.com>
183
184 * server.c (struct vstop_notif): Derive from notif_event.
185 <base>: Remove.
186 (queue_stop_reply): Update.
187 (remove_all_on_match_ptid): Change type. Rewrite.
188 (discard_queued_stop_replies): Rewrite.
189 (in_queued_stop_replies_ptid): Change type.
190 (in_queued_stop_replies): Rewrite.
191 (notif_stop): Update.
192 (queue_stop_reply_callback): Update.
193 (captured_main): Don't call initialize_notif.
194 (push_stop_notification): Update.
195 * notif.c (notif_write_event, handle_notif_ack)
196 (notif_event_enque, notif_push): Update.
197 (notif_event_xfree, initialize_notif): Remove.
198 * notif.h (struct notif_event): Include <list>, not
199 "common/queue.h".
200 (struct notif_server) <queue>: Now a std::list.
201 (notif_event_p): Remove typedef.
202 (initialize_notif): Don't declare.
203 (struct notif_event): Add virtual destructor.
204
a7e559cc
AH
2052019-04-17 Alan Hayward <alan.hayward@arm.com>
206
207 * ax.c (ax_vdebug): Call debug_printf.
208 * debug.c (debug_write): New function.
209 * debug.h (debug_write): New declaration.
210 * linux-low.c (sigchld_handler): Call debug_write.
211
aeb2e706
AH
2122019-04-17 Alan Hayward <alan.hayward@arm.com>
213
214 * debug.c (debug_set_output): New function.
215 (debug_vprintf): Send output to debug_file.
216 (debug_flush): Likewise.
217 * debug.h (debug_set_output): New declaration.
218 * server.c (handle_monitor_command): Add debug-file option.
219 (captured_main): Likewise.
220
c1bc0935
AH
2212019-04-17 Alan Hayward <alan.hayward@arm.com>
222
223 * debug.c (remote_debug): Add definition.
224 * debug.h (remote_debug): Add declaration.
225 * hostio.c (remote_debug): Remove declaration.
226 * remote-utils.c (struct ui_file): Likewise.
227 (remote_debug): Likewise.
228 * remote-utils.h (remote_debug): Likewise,
229 * server.c (remote_debug): Remove definition.
230
3f52fdbc
KB
2312019-04-10 Kevin Buettner <kevinb@redhat.com>
232
233 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
234 when using a 64-bit gdbserver.
235
b0319eaa
TT
2362019-04-09 Tom Tromey <tromey@adacore.com>
237
238 * linux-low.c (select_event_lwp): Use find_thread_in_random.
239
eedc3f4f
TT
2402019-04-08 Tom Tromey <tom@tromey.com>
241
242 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
243 throw.
244 (linux_resume_one_lwp): Likewise.
245
230d2906
TT
2462019-04-08 Tom Tromey <tom@tromey.com>
247
248 * gdbreplay.c: Update.
249 * linux-low.c: Update.
250 * server.c: Update.
251
a70b8144
TT
2522019-04-08 Tom Tromey <tom@tromey.com>
253
254 * server.c: Use C++ exception handling.
255 * linux-low.c: Use C++ exception handling.
256 * gdbreplay.c: Use C++ exception handling.
257
3d6e9d23
TT
2582019-04-08 Tom Tromey <tom@tromey.com>
259
260 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
261 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
262 (captured_main, main): Update.
263 * gdbreplay.c (main): Update.
264
0570503d
PFC
2652019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
266
267 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
268 value in argument pointer, return 1 if the entry is found and 0
269 otherwise. Move comment.
270 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
271 * linux-low.h (linux_get_auxv): Declare.
272 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
273
227a9e65
TT
2742019-04-05 Tom Tromey <tromey@adacore.com>
275
276 * server.c (gdbserver_usage): Use upper-case for metasyntactic
277 variables.
278
69f4c9cc
AH
2792019-03-28 Alan Hayward <alan.hayward@arm.com>
280
281 * linux-low.c (AT_HWCAP2): Add define if not already included.
282
974c89e0
AH
2832019-03-26 Alan Hayward <alan.hayward@arm.com>
284
285 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
286 (aarch64_arch_setup): Call linux_get_hwcap.
287 * linux-arm-low.c (arm_get_hwcap): Remove function.
288 (arm_read_description): Call linux_get_hwcap.
289 * linux-low.c (linux_get_auxv): New function.
290 (linux_get_hwcap): Likewise.
291 (linux_get_hwcap2): Likewise.
292 * linux-low.h (linux_get_hwcap): New declaration.
293 (linux_get_hwcap2): Likewise.
294 * linux-ppc-low.c (ppc_get_auxv): Remove function.
295 (ppc_arch_setup): Call linux_get_hwcap.
296 * linux-s390-low.c (s390_get_hwcap): Remove function.
297 (s390_arch_setup): Call linux_get_hwcap.
298
1ef53e6b
AH
2992019-03-22 Alan Hayward <alan.hayward@arm.com>
300 Jiong Wang <jiong.wang@arm.com>
301
302 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
303 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
304 to fail.
305 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
306
ee4fbcfa
AH
3072019-03-22 Alan Hayward <alan.hayward@arm.com>
308 Jiong Wang <jiong.wang@arm.com>
309
310 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
311 (aarch64_get_hwcap): New function.
312 (aarch64_arch_setup): Read APIA hwcap.
313
6dc0ebde
AH
3142019-03-22 Alan Hayward <alan.hayward@arm.com>
315 Jiong Wang <jiong.wang@arm.com>
316
317 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
318 (initialize_low_tracepoint): Likewise.
319 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
320 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
321 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
322 (aarch64_linux_read_description): Likewise.
323 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
324
1163a4b7
JB
3252019-03-12 John Baldwin <jhb@FreeBSD.org>
326
327 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
328 i386_create_target_description for 'segments' parameter.
329 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
330 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
331 * win32-i386-low.c (i386_arch_setup): Likewise.
332
d3a70e03
TT
3332019-03-12 Tom Tromey <tromey@adacore.com>
334
335 * linux-low.c (iterate_over_lwps): Update.
336
37991b4f
TT
3372019-03-06 Tom Tromey <tom@tromey.com>
338
339 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
340 (captured_main): Use SCOPE_EXIT.
341
45950eb6
SDJ
3422019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
343
344 * configure.srv: Use '$enable_unittest' instead of '$development'
345 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
346 case.
347
43ac54fc
TT
3482019-02-27 Tom Tromey <tromey@adacore.com>
349
350 * gdbreplay.c (logchar): Handle \r\n.
351
df0da8a2
AH
3522019-02-07 Alan Hayward <alan.hayward@arm.com>
353
354 * linux-low.c (linux_attach): Add process before lwp.
355 * server.c (attach_inferior): Check if already attached.
356
1a5c2598
TT
3572019-02-07 Tom Tromey <tom@tromey.com>
358
359 * x86-tdesc.h: Rename include guard.
360 * x86-low.h: Add include guard.
361 * wincecompat.h: Rename include guard.
362 * win32-low.h: Add include guard.
363 * utils.h: Rename include guard.
364 * tracepoint.h: Rename include guard.
365 * tdesc.h: Rename include guard.
366 * target.h: Rename include guard.
367 * server.h: Rename include guard.
368 * remote-utils.h: Rename include guard.
369 * regcache.h: Rename include guard.
370 * nto-low.h: Rename include guard.
371 * notif.h: Add include guard.
372 * mem-break.h: Rename include guard.
373 * lynx-low.h: Add include guard.
374 * linux-x86-tdesc.h: Add include guard.
375 * linux-s390-tdesc.h: Add include guard.
376 * linux-ppc-tdesc-init.h: Add include guard.
377 * linux-low.h: Add include guard.
378 * linux-aarch64-tdesc.h: Add include guard.
379 * linux-aarch32-low.h: Add include guard.
380 * inferiors.h: Rename include guard.
381 * i387-fp.h: Rename include guard.
382 * hostio.h: Rename include guard.
383 * gdbthread.h: Rename include guard.
384 * gdb_proc_service.h: Rename include guard.
385 * event-loop.h: Rename include guard.
386 * dll.h: Rename include guard.
387 * debug.h: Rename include guard.
388 * ax.h: Rename include guard.
389
956cc47c
SN
3902018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
391
392 PR gdb/23985
393 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
394 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
395
a0707f3c
TT
3962019-01-25 Tom Tromey <tom@tromey.com>
397
398 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
399
0747795c
TT
4002019-01-25 Tom Tromey <tom@tromey.com>
401
402 * win32-low.c: Fix common/ includes.
403 * win32-i386-low.c: Fix common/ includes.
404 * tracepoint.c: Fix common/ includes.
405 * thread-db.c: Fix common/ includes.
406 * target.h: Fix common/ includes.
407 * symbol.c: Fix common/ includes.
408 * spu-low.c: Fix common/ includes.
409 * server.h: Fix common/ includes.
410 * server.c: Fix common/ includes.
411 * remote-utils.c: Fix common/ includes.
412 * regcache.h: Fix common/ includes.
413 * regcache.c: Fix common/ includes.
414 * nto-x86-low.c: Fix common/ includes.
415 * notif.h: Fix common/ includes.
416 * mem-break.h: Fix common/ includes.
417 * lynx-low.c: Fix common/ includes.
418 * lynx-i386-low.c: Fix common/ includes.
419 * linux-x86-tdesc-selftest.c: Fix common/ includes.
420 * linux-x86-low.c: Fix common/ includes.
421 * linux-low.c: Fix common/ includes.
422 * inferiors.h: Fix common/ includes.
423 * i387-fp.c: Fix common/ includes.
424 * hostio.c: Fix common/ includes.
425 * hostio-errno.c: Fix common/ includes.
426 * gdbthread.h: Fix common/ includes.
427 * gdbreplay.c: Fix common/ includes.
428 * fork-child.c: Fix common/ includes.
429 * event-loop.c: Fix common/ includes.
430 * ax.c:
431 (enum gdb_agent_op): Fix common/ includes.
432
be6d4f74
TT
4332019-01-21 Tom Tromey <tom@tromey.com>
434
435 * tracepoint.c: Fix includes.
436 * remote-utils.c: Fix includes.
437 * linux-x86-low.c: Fix includes.
438
66d91b39
JB
4392019-01-01 Joel Brobecker <brobecker@adacore.com>
440
441 * gdbreplay.c (gdbreplay_version): Update copyright year in
442 version message.
443 * server.c (gdbserver_version): Likewise.
444
754e3168
AH
4452018-12-05 Alan Hayward <alan.hayward@arm.com>
446
447 * linux-low.c (add_lwp): Switch ordering.
448
d105de22
TT
4492018-11-29 Tom Tromey <tom@tromey.com>
450
451 * win32-low.c (win32_join): Take pid, not process.
452 * target.h (struct target_ops) <join>: Change argument type.
453 (join_inferior): Change argument name.
454 * spu-low.c (spu_join): Take pid, not process.
455 * server.c (handle_detach): Preserve pid before destroying
456 process.
457 * lynx-low.c (lynx_join): Take pid, not process.
458 * linux-low.c (linux_join): Take pid, not process.
459
50138245
AH
4602018-11-23 Alan Hayward <alan.hayward@arm.com>
461
462 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
463 (aarch64_cannot_fetch_register): Likewise.
464 (struct linux_target_ops): Update references.
465
64f57f3d
PFC
4662018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
467
468 * linux-ppc-low.c: Include nat/linux-ptrace.h.
469
8d619c01
EBM
4702018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
471
472 * configure.srv (ipa_ppc_linux_regobj): Add
473 powerpc-isa207-htm-vsx32l-ipa.o and
474 powerpc-isa207-htm-vsx64l-ipa.o.
475 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
476 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
477 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
478 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
479 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
480 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
481 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
482 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
483 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
484 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
485 (init_registers_powerpc_isa207_htm_vsx32l)
486 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
487 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
488 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
489 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
490 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
491 (ppc_store_tm_ctarregset): New functions.
492 (ppc_regsets): Add entries for HTM regsets.
493 (ppc_arch_setup): Set htm in features struct when needed. Set
494 sizes for the HTM regsets.
495 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
496 (initialize_low_arch): Call
497 init_registers_powerpc_isa207_htm_vsx32l and
498 init_registers_powerpc_isa207_htm_vsx64l.
499 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
500 PPC_TDESC_ISA207_HTM_VSX.
501 (initialize_low_tracepoint): Call
502 init_registers_powerpc_isa207_htm_vsx32l and
503 init_registers_powerpc_isa207_htm_vsx64l.
504
232bfb86
EBM
5052018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
506
507 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
508 rs6000/power-linux-pmu.xml to srv_xmlfiles.
509 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
510 (ppc_store_pmuregset): New functions.
511 (ppc_regsets): Add entries for ebb and pmu regsets.
512 (ppc_arch_setup): Set isa207 in features struct if the ebb and
513 pmu regsets are available. Set sizes for these regsets.
514
f2cf6173
EBM
5152018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
516
517 * configure.srv (ipa_ppc_linux_regobj): Add
518 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
519 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
520 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
521 rs6000/powerpc-isa207-vsx32l.xml, and
522 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
523 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
524 <PPC_TDESC_ISA207_VSX>: New enum value.
525 (init_registers_powerpc_isa207_vsx32l): Declare.
526 (init_registers_powerpc_isa207_vsx64l): Declare.
527 * linux-ppc-low.c (ppc_fill_tarregset): New function.
528 (ppc_store_tarregset): New function.
529 (ppc_regsets): Add entry for the TAR regset.
530 (ppc_arch_setup): Set isa207 in features struct when needed. Set
531 size for the TAR regsets.
532 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
533 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
534 and init_registers_powerpc_isa207_vsx64l.
535 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
536 (initialize_low_tracepoint): Call
537 init_registers_powerpc_isa207_vsx32l and
538 init_registers_powerpc_isa207_vsx64l.
539
7ca18ed6
EBM
5402018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
541 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
542
543 * configure.srv (ipa_ppc_linux_regobj): Add
544 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
545 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
546 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
547 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
548 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
549 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
550 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
551 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
552 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
553 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
554 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
555 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
556 (ppc_hwcap): Add comment.
557 (ppc_hwcap2): New global.
558 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
559 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
560 (ppc_regsets): Add entries for the DSCR and PPR regsets.
561 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
562 when needed. Set sizes for the the DSCR and PPR regsets.
563 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
564 (initialize_low_arch): Call
565 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
566 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
567 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
568 PPC_TDESC_ISA205_PPR_DSCR_VSX.
569 (initialize_low_tracepoint): Call
570 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
571 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
572
5c849b22
PFC
5732018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
574
575 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
576
8ecfd7bd
SDJ
5772018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
578 Simon Marchi <simark@simark.ca>
579
580 * acinclude.m4: Include "../selftest.m4".
581 * configure: Regenerate.
582 * configure.ac: Use "GDB_AC_SELFTEST".
583 * configure.srv: Use "$enable_unittests" instead of
584 "$development" when checking whether unit tests have been
585 enabled.
586 * server.c (captured_main): Update message informing that
587 selftests have been disabled.
588
96643e35
TT
5892018-10-04 Tom Tromey <tom@tromey.com>
590
591 * configure: Rebuild.
592
da4ae14a
TT
5932018-10-04 Tom Tromey <tom@tromey.com>
594
595 * server.c (handle_status): Rename inner "thread".
596 (process_serial_event): Declare "res" in 'm' case.
597 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
598 (iterate_over_lwps): Rename inner "thread".
599 (linux_qxfer_libraries_svr4): Rename inner "len".
600 * gdbthread.h (find_thread_in_random): Rename inner "thread".
601
7c619dbd
GB
6022018-10-01 Gary Benson <gbenson@redhat.com>
603
604 * gdb_proc_service.h: Moved common code to
605 common/gdb_proc_service.h.
606
3795e814
GB
6072018-10-01 Gary Benson <gbenson@redhat.com>
608
609 * gdb_proc_service.h: Synchronize comments and whitespace with
610 GDB's version of this file.
611
49b036f1
TT
6122018-09-25 Tom Tromey <tom@tromey.com>
613
614 * configure: Rebuild.
615 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
616
8ff03f0b
SM
6172018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
618
619 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
620 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
621 ($(IPA_LIB)): Sort IPA_OBJS.
622
a1cd91dc
SM
6232018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
624
625 * Makefile.in: Remove references to $(ADD_DEPS).
626
752312ba
TT
6272018-09-16 Tom Tromey <tom@tromey.com>
628
629 * remote-utils.c (remote_open): Use GNU style for metasyntactic
630 variables.
631 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
632 variables.
633
f1628857
TT
6342018-09-05 Tom Tromey <tom@tromey.com>
635
636 * configure: Rebuild.
637
ad202fcc
SM
6382018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
639
640 PR build/23399
641 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
642
d3d8724a
TT
6432018-08-27 Tom Tromey <tom@tromey.com>
644
645 PR build/23087:
646 * configure: Rebuild.
647
b4f183d2
TT
6482018-08-27 Tom Tromey <tom@tromey.com>
649
650 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
651 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
652 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
653 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
654 (s390x_emit_stack_adjust): Add casts to unsigned char.
655
4e2aa472
SM
6562018-08-22 Simon Marchi <simon.marchi@ericsson.com>
657
658 PR gdb/23374
659 PR gdb/23375
660 * server.h (struct client_state) <disable_randomization>:
661 Initialize to 1.
662
cf4088a9
SM
6632018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
664
665 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
666 variable.
667 (mips_supply_ptrace_register): Likewise.
668
a0de763e
TT
6692018-07-22 Tom Tromey <tom@tromey.com>
670
671 * configure: Rebuild.
672
b0a7723d
TT
6732018-07-22 Tom Tromey <tom@tromey.com>
674
675 * win32-low.c (win32_create_inferior): Remove unused variables.
676 * gdbreplay.c (remote_open): Remove unused variable.
677 * remote-utils.c (remote_prepare): Remove unused variable.
678 * x86-tdesc.h (X86_TDESC_H): Define.
679 (amd64_expedite_regs): Define conditionally.
680 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
681 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
682 * remote-utils.c (readchar): Remove unused variable.
683
a780ef4f
PA
6842018-07-13 Pedro Alves <palves@redhat.com>
685
686 * linux-low.c (linux_kill): Change parameter to process_info
687 pointer instead of pid. Adjust.
688 * lynx-low.c (lynx_kill): Likewise.
689 * nto-low.c (nto_kill): Likewise.
690 * spu-low.c (spu_kill): Likewise.
691 * win32-low.c (win32_kill): Likewise.
692 * server.c (handle_v_kill, kill_inferior_callback)
693 (detach_or_kill_for_exit): Adjust.
694 * target.c (kill_inferior): Change parameter to process_info
695 pointer instead of pid. Adjust.
696 * target.h (struct target_ops) <kill>: Change parameter to
697 process_info pointer instead of pid. Adjust all implementations
698 and callers.
699 (kill_inferior): Likewise.
700
ef2ddb33
PA
7012018-07-13 Pedro Alves <palves@redhat.com>
702
703 * linux-low.c (linux_detach, linux_join): Change parameter to
704 process_info pointer instead of pid. Adjust.
705 * lynx-low.c (lynx_detach, lynx_join): Likewise.
706 * nto-low.c (nto_detach): Likewise.
707 * spu-low.c (spu_detach, spu_join): Likewise.
708 * win32-low.c (win32_detach, win32_join): Likewise.
709 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
710 * target.h (struct target_ops) <detach, join>: Change parameter to
711 process_info pointer instead of pid. Adjust all implementations
712 and callers.
713 (detach_inferior, join_inferior): Rename 'pid' parameter to
714 'proc'.
715
c7ab0aef
SDJ
7162018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
717 Jan Kratochvil <jan.kratochvil@redhat.com>
718 Paul Fertser <fercerpav@gmail.com>
719 Tsutomu Seki <sekiriki@gmail.com>
720
721 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
722 (OBS): Add 'common/netstuff.o'.
723 (GDBREPLAY_OBS): Likewise.
724 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
725 (remote_open): Implement support for IPv6
726 connections.
727 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
728 and 'wspiapi.h'.
729 (handle_accept_event): Accept connections from IPv6 sources.
730 (remote_prepare): Handle IPv6-style hostnames; implement
731 support for IPv6 connections.
732 (remote_open): Implement support for printing connections from
733 IPv6 sources.
734
31445d10
PA
7352018-07-11 Pedro Alves <palves@redhat.com>
736
737 PR gdb/23377
738 * mem-break.c (any_persistent_commands): Add process_info
739 parameter and use it instead of relying on the current process.
740 Change return type to bool.
741 * mem-break.h (any_persistent_commands): Add process_info
742 parameter and change return type to bool.
743 * server.c (handle_detach): Remove require_running_or_return call.
744 Look up the process_info for the process we're about to detach.
745 If not found, return back error to GDB. Adjust
746 any_persistent_commands call to pass down a process pointer.
747
cb197132
PA
7482018-07-11 Pedro Alves <palves@redhat.com>
749
750 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
751 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
752 instead of collect_register_by_name.
753 * regcache.c (regcache_raw_get_unsigned_by_name): New.
754 * regcache.h (regcache_raw_get_unsigned_by_name): New.
755
1b919490
VB
7562018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
757 Pedro Alves <palves@redhat.com>
758
759 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
760
d7e15655
TT
7612018-07-03 Tom Tromey <tom@tromey.com>
762
763 * linux-low.c: Update.
764 * lynx-low.c: Update.
765 * mem-break.c: Update.
766 * nto-low.c: Update.
767 * remote-utils.c: Update.
768 * server.c: Update.
769 * spu-low.c: Update.
770 * target.c: Update.
771 * win32-low.c: Update.
772
26a57c92
TT
7732018-07-03 Tom Tromey <tom@tromey.com>
774
775 * server.c: Update.
776
0e998d96
TT
7772018-07-03 Tom Tromey <tom@tromey.com>
778
779 * linux-low.c: Update.
780
cc6bcb54
TT
7812018-07-03 Tom Tromey <tom@tromey.com>
782
783 * target.c: Update.
784
e38504b3
TT
7852018-07-03 Tom Tromey <tom@tromey.com>
786
787 * linux-low.c: Update.
788 * linux-mips-low.c: Update.
789 * lynx-low.c: Update.
790 * nto-low.c: Update.
791 * remote-utils.c: Update.
792 * server.c: Update.
793 * spu-low.c: Update.
794 * target.c: Update.
795 * thread-db.c: Update.
796
e99b03dc
TT
7972018-07-03 Tom Tromey <tom@tromey.com>
798
799 * linux-low.c: Update.
800 * linux-mips-low.c: Update.
801 * lynx-low.c: Update.
802 * mem-break.c: Update.
803 * nto-low.c: Update.
804 * remote-utils.c: Update.
805 * server.c: Update.
806 * spu-low.c: Update.
807 * target.c: Update.
808 * tracepoint.c: Update.
809
f2907e49
TT
8102018-07-03 Tom Tromey <tom@tromey.com>
811
812 * linux-low.c: Update.
813 * linux-ppc-low.c: Update.
814 * linux-x86-low.c: Update.
815 * proc-service.c: Update.
816 * server.c: Update.
817 * spu-low.c: Update.
818 * thread-db.c: Update.
819 * win32-low.c: Update.
820
fd79271b
TT
8212018-07-03 Tom Tromey <tom@tromey.com>
822
823 * linux-low.c: Update.
824 * lynx-low.c: Update.
825 * nto-low.c: Update.
826 * remote-utils.c: Update.
827 * spu-low.c: Update.
828 * thread-db.c: Update.
829 * win32-low.c: Update.
830
c0867626
SDJ
8312018-06-29 Joel Brobecker <brobecker@adacore.com>
832
833 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
834 parameter in call to 'amd64_create_target_description'.
835
2512d7ef
JK
8362018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
837
838 * x86-tdesc.h: Remove executable permission flag.
839
d0ac1c44
SM
8402018-06-19 Simon Marchi <simon.marchi@ericsson.com>
841
842 * configure.ac: Remove AC_PREREQ, add missing quoting.
843 * configure: Re-generate.
844 * config.in: Re-generate.
845 * aclocal.m4: Re-generate.
846
c4eb05ff
SM
8472018-06-18 Simon Marchi <simon.marchi@ericsson.com>
848
849 * tracepoint.h (current_traceframe): Remove declaration.
850
02895270
AH
8512018-06-18 Alan Hayward <alan.hayward@arm.com>
852
853 * linux-aarch64-low.c (is_sve_tdesc): New function.
854 (aarch64_sve_regs_copy_to_regcache): Likewise.
855 (aarch64_sve_regs_copy_from_regcache): Likewise.
856 (aarch64_regs_info): Add SVE checks.
857 (initialize_low_arch): Initialize SVE.
858
e9902bfc
AH
8592018-06-18 Alan Hayward <alan.hayward@arm.com>
860
861 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
862
fefa175e
AH
8632018-06-11 Alan Hayward <alan.hayward@arm.com>
864
865 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
866 (initialize_low_tracepoint): Likewise
867 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
868 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
869 param.
870 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
871 checks.
872 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
873
b91ad3ff
AH
8742018-06-11 Alan Hayward <alan.hayward@arm.com>
875
876 * server.h (PBUFSIZ): Increase size
877
f868386e
AH
8782018-06-11 Alan Hayward <alan.hayward@arm.com>
879
880 * regcache.c (regcache::raw_compare): New function.
881 * regcache.h (regcache::raw_compare): New declaration.
882
9c861883
AH
8832018-06-11 Alan Hayward <alan.hayward@arm.com>
884
885 * regcache.c (new_register_cache): Use new.
886 (free_register_cache): Use delete.
887 (register_data): Use const.
888 (supply_register): Move body inside regcache.
889 (regcache::raw_supply): New override function.
890 (collect_register): Move body inside regcache.
891 (regcache::raw_collect): New override function.
892 (regcache::get_register_status): New override function.
893 * regcache.h (struct regcache): Inherit from reg_buffer_common.
894
40591844
TT
8952018-06-09 Tom Tromey <tom@tromey.com>
896
897 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
898 declare queue.
899 (event_queue): Use std::queue.
900 (gdb_event_xfree): Remove.
901 (initialize_event_loop, process_event, wait_for_event): Update.
902
6341380d
SC
9032018-06-08 Stan Cox <scox@redhat.com>
904
905 * win32-low.c (win32_create_inferior): last_ptid and last_status
906 moved to client_state.
907
03349c93
PA
9082018-06-08 Pedro Alves <palves@redhat.com>
909
910 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
911 common/common-exceptions.o, common/common-utils.o,
912 common/errors.o, common/print-utils.o and utils.o.
913 * gdbreplay.c: Include "common-defs.h" instead of the two
914 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
915 string.h or alloca.h.
916 (perror_with_name): Delete.
917 (remote_open): Use xstrdup instead of strdup.
918 (main): Rename to ...
919 (captured_main): ... this.
920 (main): New.
921
8dcc53b3
TT
9222018-06-08 Tom Tromey <tom@tromey.com>
923
924 * linux-low.c (linux_low_read_btrace): Update.
925
c12a5089
SC
9262018-06-04 Stan Cox <scox@redhat.com>
927
928 * server.h (struct client_state): New.
929 * server.c (cont_thread, general_thread, multi_process)
930 (report_fork_events, report_vfork_events, report_exec_events)
931 (report_thread_events, swbreak_feature, hwbreak_feature)
932 (vCont_supported, disable_randomization, pass_signals)
933 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
934 Moved to client_state.
935 * remote-utils.c (remote_debug, noack_mode)
936 (transport_is_reliable): Moved to client_state.
937 * tracepoint.c (current_traceframe): Moved to client_state.
938
939 Update all callers.
940 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
941 linux-low.c, remote-utils.h, target.c: Use client_state.
942
122394f1
AH
9432018-05-31 Alan Hayward <alan.hayward@arm.com>
944
945 * configure.srv: Add new c/h file.
946
95228a0d
AH
9472018-05-31 Alan Hayward <alan.hayward@arm.com>
948
949 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
950 null VQ.
951
d8dab6c3
MR
9522018-05-25 Maciej W. Rozycki <macro@mips.com>
953
954 * gdb.arch/mips-fpregset-core.exp: New test.
955 * gdb.arch/mips-fpregset-core.c: New test source.
956
81e25b7c
EK
9572018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
958
959 PR server/23198
960 * hostio.c (require_int): Do not report overflow for integers
961 between 0xfffffff and 0x7fffffff.
962
7e947ad3
MR
9632018-05-22 Maciej W. Rozycki <macro@mips.com>
964
965 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
966 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
967 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
968 functions.
969 (the_low_target): Wire them.
970
1d75a658
PFC
9712018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
972
973 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
974 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
975 mode. Call collect_register_by_name with vscr using
976 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
977 (ppc_store_vrregset): Add and set vscr_offset variable as in
978 ppc_fill_vrregset. Call supply_register_by_name with vscr using
979 vscr_offset.
980
d078308a
PFC
9812018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
982
983 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
984 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
985 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
986
7273b5fc
PFC
9872018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
988
989 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
990 (ppc_store_vsxregset): Likewise.
991 (ppc_fill_vrregset): Likewise.
992 (ppc_store_vrregset): Likewise.
993 (ppc_fill_evrregset): Likewise.
994 (ppc_store_evrregset): Likewise.
995 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
996 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
997 needed.
998
2e077f5e
PFC
9992018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1000
1001 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
1002 wordsize of the inferior. Call ppc_linux_target_wordsize.
1003
bd64614e
PFC
10042018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1005
1006 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
1007 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
1008 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
1009 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
1010 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
1011 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
1012 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
1013 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
1014 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
1015 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
1016 (tdesc_powerpc_e500l): Remove.
1017 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
1018 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
1019 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
1020 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
1021 linux-ppc-tdesc.h.
1022 (ppc_arch_setup): Remove target description matching code. Fill a
1023 ppc_linux_features struct and call ppc_linux_match_description
1024 with it.
1025
75d74cca
MR
10262018-05-22 Maciej W. Rozycki <macro@mips.com>
1027
1028 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
1029 width of the requested register exceeds the width of the
1030 `ptrace' data type.
1031 (mips_cannot_store_register): Likewise.
1032
e4439e43
MR
10332018-05-21 Maciej W. Rozycki <macro@mips.com>
1034
1035 * linux-mips-low.c (mips_fetch_register): New function. Update
1036 preceding comment.
1037 (mips_store_gregset): Supply 0 rather than $restart for $zero.
1038 (the_low_target): Wire `mips_fetch_register'.
1039
55271bf9
JB
10402018-05-10 Joel Brobecker <brobecker@adacore.com>
1041
1042 * lynx-i386-low.c (LYNXOS_178): New macro.
1043 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
1044 the layout on LynxOS-178.
1045 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
1046 handle floating point registers that are not supported by
1047 LynxOS-178.
1048
1a34f210
TT
10492018-05-10 Tom Tromey <tom@tromey.com>
1050
1051 * configure: Rebuild.
1052
190852c8
JB
10532018-05-10 Joel Brobecker <brobecker@adacore.com>
1054
1055 PR server/23158:
1056 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
1057 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
1058 Use it to set the expedite_regs field in the given tdesc.
1059 * x86-tdesc.h: New file.
1060 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
1061 Adjust following the addition of the new expedite_regs parameter
1062 to init_target_desc.
1063 * linux-tic6x-low.c (tic6x_read_description): Likewise.
1064 * linux-x86-tdesc.c: #include "x86-tdesc.h".
1065 (i386_linux_read_description, amd64_linux_read_description):
1066 Adjust following the addition of the new expedite_regs parameter
1067 to init_target_desc.
1068 * lynx-i386-low.c: #include "x86-tdesc.h".
1069 (lynx_i386_arch_setup): Adjust following the addition of the new
1070 expedite_regs parameter to init_target_desc.
1071 * nto-x86-low.c: #include "x86-tdesc.h".
1072 (nto_x86_arch_setup): Adjust following the addition of the new
1073 expedite_regs parameter to init_target_desc.
1074 * win32-i386-low.c: #include "x86-tdesc.h".
1075 (i386_arch_setup): Adjust following the addition of the new
1076 expedite_regs parameter to init_target_desc.
1077
7dbac825
JB
10782018-05-10 Joel Brobecker <brobecker@adacore.com>
1079
1080 PR server/23158:
1081 * win32-low.c (win32_create_inferior): Add call to my_wait
1082 setting last_status global.
1083
906994d9
JB
10842018-05-10 Joel Brobecker <brobecker@adacore.com>
1085
1086 PR server/23158:
1087 * win32-low.c (create_process): Only call gdb_tilde_expand if
1088 inferior_cwd is not NULL.
1089
8ee22052
AB
10902018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
1091
1092 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
1093 registers to the cache if their values have changed.
1094 (i387_xsave_to_cache): Provide default values for x87 control
1095 registers when these features are available, but disabled.
1096 * regcache.c (supply_register_by_name_zeroed): New function.
1097 * regcache.h (supply_register_by_name_zeroed): Declare new
1098 function.
1099
aff689d3
TT
11002018-05-07 Tom Tromey <tom@tromey.com>
1101
1102 * configure: Rebuild.
1103
85e26832
TT
11042018-05-04 Tom Tromey <tom@tromey.com>
1105
1106 * configure: Rebuild.
1107
a3b60e45
JK
11082018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1109 Pedro Alves <palves@redhat.com>
1110
1111 * linux-aarch64-low.c (aarch64_stopped_data_address):
1112 Likewise.
1113
632e107b
TT
11142018-04-27 Tom Tromey <tom@tromey.com>
1115
1116 * configure: Rebuild.
1117
458412c3
TT
11182018-04-23 Tom Tromey <tom@tromey.com>
1119
1120 * configure: Rebuild.
1121
f31c089e
SM
11222018-04-19 Simon Marchi <simon.marchi@ericsson.com>
1123
1124 * Makefile.in (depcomp): Add "..".
1125 (all_deps_files): New and use it.
1126
b319b098
AH
11272018-04-18 Alan Hayward <alan.hayward@arm.com>
1128
1129 * configure.srv (aarch64*-*-linux*): Don't include xml.
1130 (i[34567]86-*-cygwin*): Likewise.
1131 (i[34567]86-*-linux*): Likewise.
1132 (i[34567]86-*-lynxos*): Likewise.
1133 (i[34567]86-*-mingw32ce*): Likewise.
1134 (i[34567]86-*-mingw*): Likewise.
1135 (i[34567]86-*-nto*): Likewise.
1136 (tic6x-*-uclinux): Likewise.
1137 (x86_64-*-linux*): Likewise.
1138 (x86_64-*-mingw*): Likewise.
1139 (x86_64-*-cygwin*): Likewise.
1140
3b74854b
AH
11412018-04-18 Alan Hayward <alan.hayward@arm.com>
1142
1143 * tdesc.c: Remove xml parameter.
1144
e98577a9
AH
11452018-04-18 Alan Hayward <alan.hayward@arm.com>
1146
1147 * server.c (get_features_xml): Remove cast.
1148 * tdesc.c (void target_desc::accept): Fill in function.
1149 (tdesc_get_features_xml): Remove old xml creation.
1150 (print_xml_feature::visit_pre): Add xml vistor.
1151 * tdesc.h (struct target_desc): Make xmltarget mutable.
1152 (tdesc_get_features_xml): Remove declaration.
1153
d278f585
AH
11542018-04-18 Alan Hayward <alan.hayward@arm.com>
1155
1156 * tdesc.c (tdesc_architecture_name): Add new function.
1157 (tdesc_osabi_name): Likewise.
1158 (tdesc_get_features_xml): Use new functions.
1159
eee8a18d
AH
11602018-04-18 Alan Hayward <alan.hayward@arm.com>
1161
1162 * tdesc.c (tdesc_create_flags): Remove.
1163 (tdesc_add_flag): Likewise.
1164 (tdesc_named_type): Likewise.
1165 (tdesc_create_union): Likewise.
1166 (tdesc_create_struct): Likewise.
1167 (tdesc_create_vector): Likewise.
1168 (tdesc_add_bitfield): Likewise.
1169 (tdesc_add_field): Likewise.
1170 (tdesc_set_struct_size): Likewise.
1171
82ec9bc7
AH
11722018-04-18 Alan Hayward <alan.hayward@arm.com>
1173
1174 * tdesc.c (~target_desc): Remove implictly deleted items.
1175 (init_target_desc): Iterate all features.
1176 (tdesc_get_features_xml): Use vector.
1177 (tdesc_create_feature): Create feature.
1178 * tdesc.h (tdesc_feature) Remove
1179 (target_desc): Add features.
1180
ea3e7d71
AH
11812018-04-18 Alan Hayward <alan.hayward@arm.com>
1182
1183 * Makefile.in: Add common/tdesc.c
1184 * tdesc.c (init_target_desc): init all reg_defs from register
1185 vector.
1186 (tdesc_create_reg): Create tdesc_reg.
1187 * tdesc.h (tdesc_feature): Add register vector.
1188
17d08cd4
SM
11892018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1190
1191 * tdesc.h (struct target_desc) <features>: Change type to
1192 std::vector<std::string>.
1193 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
1194 changes.
1195 (tdesc_get_features_xml): Likewise.
1196 (tdesc_create_feature): Likewise.
1197
5cd3e386
AH
11982018-03-26 Alan Hayward <alan.hayward@arm.com>
1199
1200 * regcache.c (find_register_by_number): Return a ref.
1201 (find_regno): Use references.
1202 (register_size): Likewise.
1203 (register_data): Likewise.
1204 * tdesc.c (target_desc::~target_desc): Remove free calls.
1205 (target_desc::operator==): Use std::vector compare.
1206 (init_target_desc): Use reference.
1207 (tdesc_create_reg): Use reg constructors.
1208 * tdesc.h (struct target_desc): Replace pointer with object.
1209
dff7492c
AH
12102018-03-23 Alan Hayward <alan.hayward@arm.com>
1211
1212 * regcache.c (find_register_by_number): Make static.
1213 (find_regno): Use find_register_by_number
1214 * regcache.h (struct reg): Remove declaration.
1215
d80e5242
AH
12162018-03-23 Alan Hayward <alan.hayward@arm.com>
1217
1218 * tdesc.c (target_desc::~target_desc): Move to here.
1219 (target_desc::operator==): Likewise.
1220 * tdesc.h (target_desc::~target_desc): Move from here.
1221 (target_desc::operator==): Likewise.
1222
f69c5afb
AA
12232018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
1224
1225 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
1226
ce29f843
AA
12272018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1228
1229 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
1230 S390_TDESC_GS.
1231 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
1232 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
1233 and init_registers_s390_gs_linux64.
1234
c49bd90b
AA
12352018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1236
1237 * linux-s390-low.c (s390_fill_gs): Remove function.
1238 (s390_fill_gsbc): Remove function.
1239 (s390_regsets): Set fill functions for the guarded storage regsets
1240 to NULL.
1241
7edb9bd3
AA
12422018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1243
1244 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
1245 the word size. Add comment.
1246 (s390_get_wordsize): New function.
1247 (s390_arch_setup): No longer select a temporary tdesc to fetch the
1248 pswm with it. Instead, use s390_get_wordsize to determine the
1249 word size first and derive the correct tdesc from that directly.
1250
39be3c7e
SM
12512018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
1252
1253 * Makefile.in: Include silent-rules.mk.
1254 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
1255 (COMPILE): Add ECHO_CXX.
1256 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
1257 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
1258 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
1259 (version-generated.c): Add ECHO_GEN.
1260 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
1261 (IPAGENT_COMPILE): Add ECHO_CXX.
1262 (%-generated.c): Add ECHO_REGDAT.
1263
3ae9ce5d
TT
12642018-03-14 Tom Tromey <tom@tromey.com>
1265
1266 PR cli/14977:
1267 * ax.c (ax_printf): Special case for NULL.
1268
e6a58aa8
SM
12692018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1270
1271 * linux-low.c (linux_qxfer_libraries_svr4): Use
1272 xml_escape_text_append.
1273
f6e8a41e
SM
12742018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1275
1276 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
1277
b9671caf
SM
12782018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1279
1280 * server.c (handle_general_set): Remove unnecessary xstrdup.
1281
e80aaf61
SM
12822018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1283
1284 * server.c (parse_debug_format_options): Adjust to
1285 delim_string_to_char_ptr_vec changes.
1286 * thread-db.c (thread_db_load_search): Adjust to
1287 dirnames_to_char_ptr_vec changes.
1288
b1223e78
MM
12892018-03-01 Markus Metzger <markus.t.metzger@intel.com>
1290
1291 * target.h (target_enable_btrace, target_disable_btrace)
1292 (target_read_btrace, target_read_btrace_conf): Turn macro into
1293 inline function. Throw error if target method is not defined.
1294 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
1295 check for btrace target method. Be prepared to handle exceptions
1296 from btrace target methods.
1297
81561546
SDJ
12982018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1299
1300 * server.c (captured_main): Change order of error message printed
1301 when the current working directory cannot be found.
1302
25e3c82c
SDJ
13032018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1304
1305 * server.c: Include "filenames.h" and "pathstuff.h".
1306 (program_name): Delete variable.
1307 (program_path): New anonymous class.
1308 (get_exec_wrapper): Use "program_path" instead of
1309 "program_name".
1310 (handle_v_run): Likewise.
1311 (captured_main): Likewise.
1312 (process_serial_event): Likewise.
1313
b4987c95
SDJ
13142018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1315
1316 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
1317 (OBJS): Add "pathstuff.o".
1318 * server.c (current_directory): New global variable.
1319 (captured_main): Initialize "current_directory".
1320
f46cd62a
AH
13212018-02-26 Alan Hayward <alan.hayward@arm.com>
1322
1323 * tdesc.c: Use common/tdesc.h.
1324 * tdesc.h: Likewise.
1325
a543c5ca
AH
13262018-02-20 Alan Hayward <alan.hayward@arm.com>
1327 Simon Marchi <simon.marchi@ericsson.com>
1328
1329 * Makefile.in: Switch order of make rules.
1330
b5884fa7
AH
13312018-02-19 Alan Hayward <alan.hayward@arm.com>
1332
1333 * Makefile.in: Add common directory in build.
1334 * configure.ac: Add common reference.
1335 * configure: Regenerate.
1336
de6242d3
MM
13372018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1338
1339 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
1340 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
1341 * spu-low.c (spu_target_ops): Likewise.
1342 * win32-low.c (win32_target_ops): Likewise.
1343 * server.c (supported_btrace_packets): Report packets unconditionally.
1344 * target.h (target_ops) <supports_btrace>: Remove.
1345 (target_supports_btrace): Remove.
1346
9ee23a85
MM
13472018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1348
1349 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
1350 (handle_btrace_disable): Change return type to void. Use exceptions
1351 to report errors.
1352 (handle_btrace_general_set): Catch exception and copy message to
1353 return message.
1354
8ce47547
TT
13552018-02-08 Tom Tromey <tom@tromey.com>
1356
1357 * linux-low.c (install_software_single_step_breakpoints): Use
1358 make_scoped_restore.
1359 * inferiors.c (make_cleanup_restore_current_thread): Remove.
1360 (do_restore_current_thread_cleanup): Remove.
1361 * gdbthread.h (make_cleanup_restore_current_thread): Don't
1362 declare.
1363
45dd3607
TT
13642018-02-08 Tom Tromey <tom@tromey.com>
1365
1366 * mem-break.c (set_raw_breakpoint_at): Use
1367 gdb::unique_xmalloc_ptr.
1368
e671cd59
PA
13692018-01-30 Pedro Alves <palves@redhat.com>
1370
1371 PR gdb/13211
1372 * target.c (target_terminal::terminal_state): Rename to ...
1373 (target_terminal::m_terminal_state): ... this.
1374
a0aad537
JC
13752018-01-19 James Clarke <jrtc27@jrtc27.com>
1376
1377 * linux-low.c (handle_extended_wait): Surround call to
1378 thread_db_notice_clone with #ifdef USE_THREAD_DB.
1379
4d9b86e1
SM
13802018-01-17 Simon Marchi <simon.marchi@ericsson.com>
1381
1382 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
1383 linux_ptrace_attach_fail_reason_string now returning an
1384 std::string.
1385 (linux_attach): Likewise.
1386 * thread-db.c (attach_thread): Likewise.
1387
f517c180
EA
13882018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
1389
1390 PR gdb/21559
1391 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
1392 checking for fs_base/gs_base fields in struct user_regs_struct.
1393 * configure: Regenerate.
1394
9a70f35c
YQ
13952018-01-16 Yao Qi <yao.qi@linaro.org>
1396
1397 PR gdb/18749
1398 * linux-low.c (fetch_register): Call supply_register instead of
1399 error.
1400
605fd3c6
YQ
14012018-01-08 Yao Qi <yao.qi@linaro.org>
1402 Simon Marchi <simon.marchi@ericsson.com>
1403
1404 * Makefile.in (OBS): Remove selftest.o.
1405 * configure.ac: Set srv_selftest_objs if $development is true.
1406 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
1407 * configure: Re-generated.
1408 * server.c (captured_main): Wrap variable selftest_filter with
1409 GDB_SELF_TEST.
1410
2cc05030
SM
14112018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1412
1413 * server.c (parse_debug_format_options): Return std::string.
1414 (handle_monitor_command, captured_main): Adjust.
1415
e379cee6
PA
14162018-01-05 Pedro Alves <palves@redhat.com>
1417
1418 PR gdb/18653
1419 * server.c (captured_main): Pass quiet=false to
1420 save_original_signals_state.
1421
82e1e79a
JB
14222018-01-01 Joel Brobecker <brobecker@adacore.com>
1423
1424 * gdbreplay.c (gdbreplay_version): Update copyright year in
1425 version message.
1426 * server.c (gdbserver_version): Likewise.
1427
8e481c3b
TT
14282017-12-08 Tom Tromey <tom@tromey.com>
1429
1430 * ax.c (ax_printf): Update.
1431
a8806230
YQ
14322017-12-07 Yao Qi <yao.qi@linaro.org>
1433
1434 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
1435 aarch64_linux_read_description.
1436 * linux-amd64-ipa.c (idx2mask): New array.
1437 (get_ipa_tdesc): Move idx2mask out.
1438 (initialize_low_tracepoint): Initialize target descriptions.
1439 * linux-i386-ipa.c (idx2mask): New array.
1440 (get_ipa_tdesc): Move idx2mask out.
1441 (initialize_low_tracepoint): Initialize target descriptions.
1442
d4a0e8b5
SM
14432017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
1444
1445 * tdesc.c (struct tdesc_type): Change return type.
1446 (tdesc_add_flag): Change parameter type.
1447 (tdesc_add_bitfield): Likewise.
1448 (tdesc_add_field): Likewise.
1449 (tdesc_set_struct_size): Likewise.
1450
798a7429
SM
14512017-12-05 Simon Marchi <simon.marchi@ericsson.com>
1452
1453 * regcache.c (registers_to_string): Remove unused variable.
1454
c0e15c9b
SM
14552017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1456
1457 * inferiors.c (for_each_inferior_with_data): Remove.
1458 * inferiors.h (for_each_inferior_with_data): Remove.
1459 * server.c (handle_qxfer_threads_worker): Change parameter type.
1460 (handle_qxfer_threads_proper): Use for_each_thread.
1461
f0045347
SM
14622017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1463
1464 * inferiors.c (for_each_inferior): Remove.
1465 (clear_inferiors): Use for_each_thread.
1466 * inferiors.h (for_each_inferior): Remove.
1467 * linux-low.c (linux_wait_for_event_filtered): Use
1468 for_each_thread.
1469 (linux_stabilize_threads): Likewise.
1470 * regcache.c (regcache_release): Likewise.
1471 * server.c (gdb_wants_all_threads_stopped): Likewise.
1472 (clear_pending_status_callback): Remove.
1473 (handle_status): Use for_each_thread.
1474 (captured_main): Likewise.
1475 * win32-low.c (child_init_thread_list): Likewise.
1476 (win32_clear_inferiors): Likewise.
1477 (fake_breakpoint_event): Likewise.
1478
9521758b
SM
14792017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1480
1481 * inferiors.h (find_inferior): Remove.
1482 * inferiors.c (find_inferior): Remove.
1483
8f86d7aa
SM
14842017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1485
1486 * linux-low.c (resume_status_pending_p): Update comment.
1487 (need_step_over_p): Update comment.
1488
e2b44075
SM
14892017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1490
1491 * linux-low.c (proceed_one_lwp): Return void, change parameter
1492 type.
1493 (unsuspend_and_proceed_one_lwp): Likewise.
1494 (proceed_all_lwps): Use for_each_thread.
1495 (unstop_all_lwps): Likewise.
1496
c80825ff
SM
14972017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1498
1499 * linux-low.c (linux_resume_one_thread): Return void, take
1500 parameter directly.
1501 (linux_resume): Use for_each_thread.
1502
df3e4dbe
SM
15032017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1504
1505 * linux-low.c (send_sigstop_callback): Return void, change
1506 parameter type. Rename to...
1507 (send_sigstop): ... this.
1508 (suspend_and_send_sigstop_callback): Return void, change parameter
1509 type. Rename to...
1510 (suspend_and_send_sigstop): ... this.
1511 (stop_all_lwps): Use for_each_thread.
1512
5a6b0a41
SM
15132017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1514
1515 * linux-low.c (lwp_running): Return bool, remove unused
1516 argument.
1517 (linux_stabilize_threads): Use find_thread.
1518
39a64da5
SM
15192017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1520
1521 * linux-low.c (select_singlestep_lwp_callback): Remove.
1522 (count_events_callback): Remove.
1523 (select_event_lwp_callback): Remove.
1524 (select_event_lwp): Use find_thread/for_each_thread.
1525
a1385b7b
SM
15262017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1527
1528 * linux-low.c (not_stopped_callback): Return bool, take filter
1529 argument directly.
1530 (linux_wait_for_event_filtered): Use find_thread.
1531 (linux_wait_1): Likewise.
1532
454296a2
SM
15332017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1534
1535 * linux-low.c (same_lwp): Remove.
1536 (find_lwp_pid): Use find_thread.
1537
6b2a85da
SM
15382017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1539
1540 * linux-low.c (delete_lwp_callback): Remove.
1541 (linux_mourn): Use for_each_thread.
1542
798a38e8
SM
15432017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1544
1545 * linux-low.c (linux_detach_lwp_callback): Return void, remove
1546 args parameter, don't check for pid.
1547 (linux_detach): Use for_each_thread.
1548
e4eb0dec
SM
15492017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1550
1551 * linux-low.c (struct counter): Remove.
1552 (second_thread_of_pid_p): Remove.
1553 (last_thread_of_process_p): Use find_thread.
1554
83e1b6c1
SM
15552017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1556
1557 * inferiors.c (find_inferior_in_random): Remove.
1558 * inferiors.h (find_inferior_in_random): Remove.
1559 * linux-low.c (status_pending_p_callback): Return bool, accept
1560 parameter ptid directly.
1561 (linux_wait_for_event_filtered): Use find_thread_in_random.
1562 (linux_wait_1): Likewise.
1563
8dc7b443
SM
15642017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1565
1566 * inferiors.c (find_inferior_id): Remove.
1567 (find_thread_ptid): Move implemention from find_inferior_id to
1568 here.
1569 * inferiors.h (find_inferior_id): Remove.
1570 * server.c (handle_status): Use find_thread_ptid.
1571 (process_serial_event): Likewise.
1572 * thread-db.c (find_one_thread): Likewise.
1573 (thread_db_thread_handle): Likewise.
1574 * win32-low.c (thread_rec): Likewise.
1575 (child_delete_thread): Likewise.
1576 (win32_thread_alive): Likewise.
1577 (get_child_debug_event): Likewise.
1578
da25033c
SM
15792017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1580
1581 * linux-mips-low.c (update_watch_registers_callback): Return
1582 void, remove pid_p parameter, don't check for pid.
1583 (mips_insert_point, mips_remove_point): Use for_each_thread.
1584
c91bb56b
SM
15852017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1586
1587 * lynx.low (lynx_delete_thread_callback): Remove.
1588 (lynx_mourn): Use for_each_thread.
1589
634a3254
SM
15902017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
1591
1592 * regcache.c (regcache_invalidate_one): Remove.
1593 (regcache_invalidate_pid): use for_each_thread.
1594
41272101
TT
15952017-11-26 Tom Tromey <tom@tromey.com>
1596
1597 * linux-low.c (linux_create_inferior): Update.
1598
f5291a6f
UW
15992017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
1600
1601 * spu-low.c (spu_create_inferior): Fix typo in argument name.
1602
6654d750
AH
16032017-11-24 Alan Hayward <alan.hayward@arm.com>
1604
1605 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
1606 * linux-aarch64-low.c (initialize_low_arch): Call init func.
1607 * linux-aarch64-tdesc-selftest.c: New file.
1608 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
1609
16102017-11-24 Alan Hayward <alan.hayward@arm.com>
1611
1612 * configure.srv: Add new file.
1613 * linux-aarch64-low.c (initialize_low_arch): Call init func.
1614 * linux-aarch64-tdesc-selftest.c: New file.
1615 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
1616
49bdb7ee
AH
16172017-11-24 Alan Hayward <alan.hayward@arm.com>
1618
1619 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
1620 * linux-aarch64-low.c (initialize_low_arch): Remove init.
1621 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
1622
d6d7ce56
AH
16232017-11-24 Alan Hayward <alan.hayward@arm.com>
1624
1625 * configure.srv: Add new files.
1626 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
1627 aarch64_linux_read_description.
1628 * linux-aarch64-low.c (aarch64_linux_read_description):
1629 Merge with aarch64_arch_setup.
1630 (aarch64_arch_setup): Call aarch64_linux_read_description.
1631 * linux-aarch64-tdesc.c: New file.
1632 * linux-aarch64-tdesc.h: New file.
1633
506fe5f4
YQ
16342017-11-24 Yao Qi <yao.qi@linaro.org>
1635
1636 * configure.srv: Set $srv_regobj for tic6x-linux.
1637 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
1638 (tic6x_read_description): Move some code to tic6x_arch_setup.
1639 (tic6x_tdesc_test): New function.
1640 (initialize_low_arch): Call selftests::register_test.
1641
29f9a567
YQ
16422017-11-22 Yao Qi <yao.qi@linaro.org>
1643
1644 * remote-utils.c (prepare_resume_reply): Use memcpy.
1645
578290ec
SM
16462017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1647
1648 * linux-low.c (kill_one_lwp_callback): Return void, take
1649 argument directly, don't filter on pid.
1650 (linux_kill): Use for_each_thread.
1651
eca55aec
SM
16522017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1653
1654 * linux-low.c (need_step_over_p): Return bool, remove dummy
1655 argument.
1656 (linux_resume, proceed_all_lwps): Use find_thread.
1657
25c28b4d
SM
16582017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1659
1660 * linux-low.c (resume_status_pending_p): Return bool, remove
1661 flag_p argument.
1662 (linux_resume): Use find_thread.
1663
5fdda392
SM
16642017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1665
1666 * linux-low.c (struct thread_resume_array): Remove.
1667 (linux_set_resume_request): Return void, take arguments
1668 directly.
1669 (linux_resume): Use for_each_thread.
1670
fcb056a5
SM
16712017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1672
1673 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
1674 return bool, remove data argument.
1675 (linux_stabilize_threads): Use find_thread.
1676
139720c5
SM
16772017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1678
1679 * linux-low.c (unsuspend_one_lwp): Remove.
1680 (unsuspend_all_lwps): Use for_each_thread, inline code from
1681 unsuspend_one_lwp.
1682
6d1e5673
SM
16832017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1684
1685 * gdbthread.h (find_thread): Add overload with ptid_t filter.
1686 * linux-low.c (struct iterate_over_lwps_args): Remove.
1687 (iterate_over_lwps_filter): Remove.
1688 (iterate_over_lwps): Use find_thread.
1689
bbf550d5
SM
16902017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1691
1692 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
1693 (linux_handle_new_gdb_connection): Use for_each_thread, inline
1694 code from reset_lwp_ptrace_options_callback.
1695
00192f77
SM
16962017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1697
1698 * linux-arm-low.c (struct update_registers_data): Remove.
1699 (update_registers_callback): Return void, take arguments
1700 directly, don't check thread's pid.
1701 (arm_insert_point, arm_remove_point): Use for_each_thread.
1702
2bee2b6c
SM
17032017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1704
1705 * win32-low.c (continue_one_thread): Return void, take argument
1706 directly.
1707 (child_continue): Use for_each_thread.
1708
0b360f19
SM
17092017-11-19 Simon Marchi <simon.marchi@ericsson.com>
1710
1711 * win32-i386-low.c (update_debug_registers_callback): Rename
1712 to ...
1713 (update_debug_registers): ... this, return void, remove pid_p arg.
1714 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
1715
f27866ba
SM
17162017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1717
1718 * inferiors.h (struct process_info): Add constructor, initialize
1719 fields..
1720 <syscalls_to_catch>: Change type to std::vector<int>.
1721 * inferiors.c (add_process): Allocate process_info with new.
1722 (remove_process): Free process_info with delete.
1723 * linux-low.c (handle_extended_wait): Adjust.
1724 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
1725 * server.c (handle_general_set): Adjust.
1726
e849ea89
PA
17272017-11-16 Pedro Alves <palves@redhat.com>
1728
1729 * remote-utils.c (remote_close): Block SIGIO signals instead of
1730 uninstalling the SIGIO handler.
1731
1d0aa65c
AH
17322017-11-16 Alan Hayward <alan.hayward@arm.com>
1733
1734 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
1735
3491a34c
YQ
17362017-11-16 Yao Qi <yao.qi@linaro.org>
1737
1738 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
1739 (tic6x_store_gregset): Likewise.
1740 (tic6x_usrregs_info): Move it up.
1741
a602f924
AH
17422017-11-15 Alan Hayward <alan.hayward@arm.com>
1743
1744 * Makefile.in: Update arch rules.
1745 * configure.srv: Explicitly mark arch/ files.
1746
5616b6c3
AS
17472017-11-13 Andreas Schwab <schwab@suse.de>
1748
1749 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
1750 function.
1751 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
1752
d1928160
PA
17532017-11-06 Pedro Alves <palves@redhat.com>
1754
1755 * config.in, configure: Regenerate.
1756
bac608e7
SM
17572017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1758
1759 * target.c (struct thread_search): Remove.
1760 (thread_search_callback): Remove.
1761 (prepare_to_access_memory): Use for_each_thread instead of
1762 find_inferior. Inline code from thread_search_callback.
1763
eaddb425
SM
17642017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1765
1766 * server.c (struct visit_actioned_threads_data): Remove.
1767 (visit_actioned_threads): Change prototype to take arguments
1768 directly.
1769 (resume): Use find_thread instead of find_inferior.
1770
99078d34
SM
17712017-10-27 Simon Marchi <simon.marchi@ericsson.com>
1772
1773 * server.c (queue_stop_reply_callback): Change prototype, return
1774 void.
1775 (find_status_pending_thread_callback): Remove.
1776 (handle_status): Replace find_inferior with find_thread and
1777 for_each_thread.
1778
cc628f3d
AH
17792017-10-25 Alan Hayward <alan.hayward@arm.com>
1780
1781 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
1782 with REGNO.
1783 (aarch64_store_gregset): Likewise.
1784 (aarch64_fill_fpregset): Likewise.
1785 (aarch64_store_fpregset): Likewise.
1786
4d3bb80e
SM
17872017-10-21 Simon Marchi <simon.marchi@ericsson.com>
1788
1789 * gdbthread.h (find_thread, for_each_thread): New functions.
1790 * inferiors.c (thread_of_pid): Remove.
1791 (find_any_thread_of_pid): Use find_thread.
1792 * linux-low.c (num_lwps): Use for_each_thread.
1793
7a7cdfa0
YQ
17942017-10-17 Yao Qi <yao.qi@linaro.org>
1795
1796 * Makefile.in: Remove one rule.
1797 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
1798
e675d170
YQ
17992017-10-17 Yao Qi <yao.qi@linaro.org>
1800
1801 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
1802 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
1803
7eb4e0f9
YQ
18042017-10-17 Yao Qi <yao.qi@linaro.org>
1805
1806 * configure.srv: Rename arm.o with arch/arm.o.
1807
60d6cfc9
YQ
18082017-10-17 Yao Qi <yao.qi@linaro.org>
1809
1810 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
1811 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
1812 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
1813 (arch-i386.o, arch-amd64.o): Remove rules.
1814 (arch/%.o): New rule.
1815 Update POSTCOMPILE and COMPILE.pre.
1816 * configure.ac: Invoke AC_CONFIG_COMMANDS.
1817 * configure: Re-generated.
1818 * configure.srv: Replace arch-i386.o with arch/i386.o.
1819 Replace arch-amd64.o with arch/amd64.o.
1820
5bfda255
YQ
18212017-10-16 Yao Qi <yao.qi@linaro.org>
1822
1823 * configure: Regenerated.
1824
9c80ecd6
SM
18252017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1826
1827 * inferiors.h: (struct inferior_list): Remove.
1828 (struct inferior_list_entry); Remove.
1829 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
1830 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
1831 get_first_inferior): Remove.
1832 (for_each_inferior, for_each_inferior_with_data, find_inferior,
1833 find_inferior_id, find_inferior_in_random): Change signature.
1834 * inferiors.c (all_threads): Change type to
1835 std::list<thread_info *>.
1836 (get_thread): Remove macro.
1837 (find_inferior, find_inferior_id): Change signature, implement
1838 using find_thread.
1839 (find_inferior_in_random): Change signature, implement using
1840 find_thread_in_random.
1841 (for_each_inferior, for_each_inferior_with_data): Change
1842 signature, implement using for_each_thread.
1843 (add_inferior_to_list, remove_inferior): Remove.
1844 (add_thread, get_first_thread, thread_of_pid,
1845 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
1846 (get_first_inferior, one_inferior_p, clear_inferior_list):
1847 Remove.
1848 (clear_inferiors, get_thread_process): Update.
1849 * gdbthread.h: Include <list>.
1850 (struct thread_info) <entry>: Remove field.
1851 <id>: New field.
1852 (all_threads): Change type to std::list<thread_info *>.
1853 (get_first_inferior): Add doc.
1854 (find_thread, for_each_thread, find_thread_in_random): New
1855 functions.
1856 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
1857 * linux-arm-low.c (update_registers_callback): Update.
1858 * linux-low.c (second_thread_of_pid_p): Update.
1859 (kill_one_lwp_callback, linux_detach_lwp_callback,
1860 delete_lwp_callback, status_pending_p_callback, same_lwp,
1861 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
1862 iterate_over_lwps, not_stopped_callback,
1863 resume_stopped_resumed_lwps, count_events_callback,
1864 select_singlestep_lwp_callback, select_event_lwp_callback,
1865 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
1866 suspend_and_send_sigstop_callback, wait_for_sigstop,
1867 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
1868 lwp_running, linux_set_resume_request, resume_status_pending_p,
1869 need_step_over_p, start_step_over, linux_resume_one_thread,
1870 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
1871 reset_lwp_ptrace_options_callback): Update.
1872 * linux-mips-low.c (update_watch_registers_callback): Update.
1873 * regcache.c (regcache_invalidate_one, regcache_invalidate):
1874 Update.
1875 (free_register_cache_thread_one): Remove.
1876 (regcache_release): Update.
1877 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
1878 handle_qxfer_threads_worker): Update.
1879 (handle_query): Update, use list iterator.
1880 (visit_actioned_threads, handle_pending_status,
1881 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
1882 clear_pending_status_callback, set_pending_status_callback,
1883 find_status_pending_thread_callback, handle_status,
1884 process_serial_event): Update.
1885 * target.c (thread_search_callback): Update.
1886 * thread-db.c (thread_db_get_tls_address): Update.
1887 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
1888 Update.
1889 * win32-i386-low.c (update_debug_registers_callback): Update.
1890 * win32-low.c (delete_thread_info, child_delete_thread,
1891 continue_one_thread, suspend_one_thread,
1892 get_child_debug_event): Adjust.
1893
9179355e
SM
18942017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1895
1896 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
1897 * inferiors.h: Include <list>.
1898 (struct process_info) <entry>: Remove field.
1899 <pid>: New field.
1900 (pid_of): Change macro to function.
1901 (ptid_of, lwpid_of): Remove macro.
1902 (all_processes): Change type to std::list<process_info *>.
1903 (ALL_PROCESSES): Remove macro.
1904 (for_each_process, find_process): New function.
1905 * inferiors.c (all_processes): Change type to
1906 std::list<process_info *>.
1907 (find_thread_process): Adjust.
1908 (add_process): Likewise.
1909 (remove_process): Likewise.
1910 (find_process_pid): Likewise.
1911 (get_first_process): Likewise.
1912 (started_inferior_callback): Remove.
1913 (have_started_inferiors_p): Adjust.
1914 (attached_inferior_callback): Remove.
1915 (have_attached_inferiors_p): Adjust.
1916 * linux-low.c (check_zombie_leaders): Likewise.
1917 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
1918 (x86_linux_update_xmltarget): Adjust.
1919 * server.c (handle_query): Likewise.
1920 (gdb_reattached_process): Remove.
1921 (handle_status): Adjust.
1922 (kill_inferior_callback): Likewise.
1923 (detach_or_kill_inferior): Remove.
1924 (print_started_pid): Likewise.
1925 (print_attached_pid): Likewise.
1926 (detach_or_kill_for_exit): Update.
1927 (process_serial_event): Likewise.
1928 * linux-arm-low.c (arm_new_fork): Likewise.
1929
c9cb8905
SM
19302017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1931
1932 * dll.h: Include <list>.
1933 (struct dll_info): Add constructor.
1934 <entry>: Remove field.
1935 (all_dlls): Change type to std::list<dll_info>.
1936 * dll.c: Include <algorithm>.
1937 (get_dll): Remove macro.
1938 (all_dlls): Change type to std::list<dll_info *>.
1939 (free_one_dll): Remove.
1940 (match_dll): Likewise.
1941 (loaded_dll): Adjust.
1942 (unloaded_dll): Adjust to all_dlls type change, use
1943 std::find_if. Inline code from match_dll.
1944 (clear_dlls): Adjust to all_dlls type change.
1945 * server.c (emit_dll_description): Remove.
1946 (handle_qxfer_libraries): Adjust to all_dlls type change,
1947 integrate emit_dll_description's functionality.
1948
04ec7890
SM
19492017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1950
1951 * linux-low.h (struct linux_target_ops) <delete_process>: New
1952 field.
1953 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
1954 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
1955 (struct linux_target_ops): Add delete_process callback.
1956 * linux-arm-low.c (arm_delete_process): New.
1957 (struct linux_target_ops): Add delete_process callback.
1958 * linux-bfin-low.c (struct linux_target_ops): Likewise.
1959 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
1960 * linux-m32r-low.c (struct linux_target_ops): Likewise.
1961 * linux-mips-low.c (mips_linux_delete_process): New.
1962 (struct linux_target_ops): Add delete_process callback.
1963 * linux-ppc-low.c (struct linux_target_ops): Likewise.
1964 * linux-s390-low.c (struct linux_target_ops): Likewise.
1965 * linux-sh-low.c (struct linux_target_ops): Likewise.
1966 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
1967 * linux-tile-low.c (struct linux_target_ops): Likewise.
1968 * linux-x86-low.c (x86_linux_delete_process): New.
1969 (struct linux_target_ops): Add delete_process callback.
1970 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
1971
466eecee
SM
19722017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1973
1974 * linux-aarch64-low.c (the_low_target): Add thread delete
1975 callback.
1976 * linux-arm-low.c (arm_delete_thread): New function.
1977 (the_low_target): Add thread delete callback.
1978 * linux-bfin-low.c (the_low_target): Likewise.
1979 * linux-crisv32-low.c (the_low_target): Likewise.
1980 * linux-low.c (delete_lwp): Invoke delete_thread callback if
1981 set.
1982 * linux-low.h (struct linux_target_ops) <delete_thread>: New
1983 field.
1984 * linux-m32r-low.c (the_low_target): Add thread delete callback.
1985 * linux-mips-low.c (mips_linux_delete_thread): New function.
1986 (the_low_target): Add thread delete callback.
1987 * linux-ppc-low.c (the_low_target): Likewise.
1988 * linux-s390-low.c (the_low_target): Likewise.
1989 * linux-sh-low.c (the_low_target): Likewise.
1990 * linux-tic6x-low.c (the_low_target): Likewise.
1991 * linux-tile-low.c (the_low_target): Likewise.
1992 * linux-x86-low.c (the_low_target): Likewise.
1993 * linux-xtensa-low.c (the_low_target): Likewise.
1994
b79f7801
YZ
19952017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
1996
1997 * win32-low.c: Include "common-inferior.h".
1998
bc3b087d
SDJ
19992017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2000
2001 * inferiors.c (set_inferior_cwd): New function.
2002 * server.c (handle_general_set): Handle QSetWorkingDir packet.
2003 (handle_query): Inform that QSetWorkingDir is supported.
2004 * win32-low.c (create_process): Pass the inferior's cwd to
2005 CreateProcess.
2006
d092c5a2
SDJ
20072017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2008
2009 * inferiors.c (current_inferior_cwd): New global variable.
2010 (get_inferior_cwd): New function.
2011 * inferiors.h (struct process_info) <cwd>: New field.
2012
7da0a886
SDJ
20132017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2014
2015 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
2016 (OBS): Add gdb_tilde_expand.o.
2017
289a6840
SM
20182017-10-02 Simon Marchi <simon.marchi@ericsson.com>
2019
2020 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
2021 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
2022
256642e8
PA
20232017-09-29 Pedro Alves <palves@redhat.com>
2024
2025 * ax.c (gdb_parse_agent_expr): Constify.
2026 * ax.h (gdb_parse_agent_expr): Constify.
2027 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
2028 Constify.
2029 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
2030 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
2031 * remote-utils.h (read_ptid): Constify.
2032 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
2033 (process_point_options, process_serial_event): Constify.
2034 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
2035 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
2036 (cmd_qtbuffer): Constify.
2037
5b9ca4d4
PA
20382017-09-29 Pedro Alves <palves@redhat.com>
2039
2040 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
2041 fails.
2042
94c207e0
PA
20432017-09-29 Pedro Alves <palves@redhat.com>
2044
2045 * linux-low.c (handle_extended_wait): Pass parent thread instead
2046 of process to thread_db_notice_clone.
2047 * linux-low.h (thread_db_notice_clone): Replace parent process
2048 parameter with parent thread parameter.
2049 * thread-db.c (find_one_thread): Add comment.
2050 (thread_db_notice_clone): Replace parent process parameter with
2051 parent thread parameter. Temporarily switch to the parent thread.
2052
75352e28
SDJ
20532017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
2054
2055 * gdbthread.h: Include "common-gdbthread.h".
2056 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
2057 "if" when validating the ptid.
2058 * remote-utils.c: Include "gdbthread.h".
2059 (prepare_resume_reply): Use "switch_to_thread".
2060 * target.c (done_accessing_memory): Likewise.
2061
ad339634
AA
20622017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2063
2064 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
2065 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
2066 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
2067 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
2068 s390x-gs-linux64-ipa.o to ipa_obj.
2069 * linux-s390-low.c (HWCAP_S390_GS): New define.
2070 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
2071 New functions.
2072 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
2073 (s390_arch_setup): Check for guarded-storage support and choose
2074 appropriate tdesc.
2075 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
2076 init_registers_s390x_gs_linux64.
2077 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
2078 enum value.
2079 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
2080 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
2081
cc4d742f
SM
20822017-09-22 Simon Marchi <simon.marchi@ericsson.com>
2083
2084 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
2085
f6327dcb
KB
20862017-09-21 Kevin Buettner <kevinb@redhat.com>
2087
2088 * linux-low.h (struct lwp_info): Add new field, thread_handle.
2089 (thread_db_thread_handle): Declare.
2090 * linux-low.c (linux_target_ops): Initialize thread_handle.
2091 * server.c (handle_qxfer_threads_worker): Add support for
2092 "handle" attribute.
2093 * target.h (struct target_ops): Add new function pointer,
2094 thread_handle.
2095 (target_thread_handle): Define.
2096 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
2097 field in lwp.
2098 (thread_db_thread_handle): New function.
2099
86299109
KB
21002017-09-21 Kevin Buettner <kevinb@redhat.com>
2101
2102 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
2103 * linux-low.h (thread_db_notice_clone): Declare.
2104 * thread-db.c (thread_db_notice_clone): New function.
2105
f557a88a
PA
21062017-09-21 Pedro Alves <palves@redhat.com>
2107
2108 * server.c (gdb_read_memory, handle_status, process_serial_event)
2109 (handle_serial_event, handle_target_event): Adjust to
2110 set_desired_thread prototype change.
2111 * target.c (set_desired_thread): Remove 'use_general' parameter
2112 and adjust.
2113 * target.h (set_desired_thread): Remove 'use_general' parameter.
2114
223ffa71
TT
21152017-09-20 Tom Tromey <tom@tromey.com>
2116
2117 * target.c (target_terminal::terminal_state): Define.
2118 (target_terminal::init): Rename from target_terminal_init.
2119 (target_terminal::inferior): Rename from
2120 target_terminal_inferior.
2121 (target_terminal::ours): Rename from target_terminal_ours.
2122 (target_terminal::ours_for_output, target_terminal::info): New.
2123
04fd3ba9
SM
21242017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2125
2126 * server.c (accumulate_file_name_length): Remove.
2127 (emit_dll_description): Adjust to std::string change.
2128 (handle_qxfer_libraries): Use std::string to hold document.
2129
5e187554
SM
21302017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2131
2132 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
2133 return type of xml_escape_text.
2134 * server.c (emit_dll_description): Likewise.
2135
1526853e
SM
21362017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2137
2138 * server.c (captured_main): Accept argument for --selftest.
2139 Update run_tests call.
2140 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
2141 when registering selftests.
2142
c4dfafab
SDJ
21432017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2144
2145 * regcache.c (get_thread_regcache): Update code to use "std::vector"
2146 instead of "VEC" for "target_desc.reg_defs".
2147 (regcache_cpy): Likewise.
2148 (registers_to_string): Likewise.
2149 (registers_from_string): Likewise.
2150 (find_regno): Likewise.
2151 (supply_regblock): Likewise.
2152 (regcache_raw_read_unsigned): Likewise.
2153 * tdesc.c (init_target_desc): Likewise.
2154 (tdesc_create_reg): Likewise.
2155 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
2156 (struct target_desc) <reg_defs>: Convert to "std::vector".
2157 (target_desc): Do not initialize "reg_defs".
2158 (~target_desc): Update code to use "std::vector" instead of "VEC"
2159 for "target_desc.reg_defs".
2160 (operator==): Likewise.
2161
124aceb4
SM
21622017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2163
2164 * inferiors.h (thread_to_gdb_id): Remove.
2165 * inferiors.c (thread_to_gdb_id): Remove.
2166 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
2167 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
2168 lynx_store_registers, lynx_read_memory, lynx_write_memory):
2169 Likewise.
2170 * nto-low.c (nto_fetch_registers, nto_store_registers,
2171 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
2172
96cde54f
SM
21732017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2174
2175 * inferiors.h (gdb_id_to_thread_id): Remove.
2176 * inferiors.c (gdb_id_to_thread_id): Remove.
2177 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
2178 removal. Move pid declaration closer to where it's used.
2179
e8ca139e
SM
21802017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2181
2182 * server.c (handle_detach): New function.
2183 (process_serial_event): Move code out, call handle_detach.
2184
f8a4e119
SM
21852017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2186
2187 * server.c (require_running): Rename to ...
2188 (require_running_or_return): ... this ...
2189 (require_running_or_break): ... and this.
2190 (handle_query, process_serial_event): Adjust.
2191
0eb0a407
SM
21922017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2193
2194 * linux-low.c (linux_set_resume_request): Remove unused
2195 variables.
2196
785922a5
SM
21972017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2198
2199 * server.c (first_thread_of): Remove.
2200 (process_serial_event): Replace usage of first_thread_of with
2201 find_any_thread_of_pid.
2202 * tracepoint.c (same_process_p): Remove.
2203 (gdb_agent_about_to_close): Replace usage of same_process_p with
2204 find_any_thread_of_pid.
2205 * linux-x86-low.c (same_process_callback): Remove.
2206 (x86_arch_setup_process_callback): Replace usage of
2207 same_process_callback with find_any_thread_of_pid.
2208 * thread-db.c (any_thread_of): Remove.
2209 (switch_to_process): Replace usage of any_thread_of with
2210 find_any_thread_of_pid.
2211 * inferiors.c (thread_pid_matches_callback): Remove.
2212 (find_thread_process): Adjust to use find_any_thread_of_pid.
2213
a059f00c
SDJ
22142017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2215
2216 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 2217 with "!VEC_empty".
a059f00c 2218
cc397f3a
SDJ
22192017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2220
2221 * linux-low.c (handle_extended_wait): Use
2222 "allocate_target_description" instead of "XNEW".
2223 * linux-x86-low.c (initialize_low_arch): Likewise.
2224
22916b07
YQ
22252017-09-05 Yao Qi <yao.qi@linaro.org>
2226
2227 * configure.srv (srv_i386_regobj): Remove.
2228 (srv_amd64_regobj): Remove.
2229 (srv_regobj): Set it to "" for x86 non-linux targets.
2230 * linux-x86-tdesc.c (i386_linux_read_description):
2231 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
2232 (init_registers_i386): Remove the declaration.
2233 (tdesc_i386): Remove the declaration.
2234 (lynx_i386_arch_setup): Call i386_create_target_description.
2235 * nto-x86-low.c: Likewise.
2236 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
2237 [!__x86_64__]: include arch/i386.h.
2238 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
2239
38602d55
YQ
22402017-09-05 Yao Qi <yao.qi@linaro.org>
2241
2242 * configure.srv (srv_amd64_linux_xmlfiles): Remove
2243 i386/amd64-XXX-linux from it.
2244
44b886ff
YQ
22452017-09-05 Yao Qi <yao.qi@linaro.org>
2246
2247 * configure.srv: Empty srv_amd64_linux_regobj if $development is
2248 false.
2249 (ipa_amd64_linux_regobj): Remove.
2250 (ipa_x32_linux_regobj): Remove.
2251
b4570e4b
YQ
22522017-09-05 Yao Qi <yao.qi@linaro.org>
2253
2254 * Makefile.in (arch-amd64.o): New rule.
2255 * configure.srv: Append arch-amd64.o.
2256 * linux-amd64-ipa.c: Include common/x86-xstate.h.
2257 (get_ipa_tdesc): Call amd64_linux_read_description.
2258 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
2259 and init_registers_amd64_XXX.
2260 * linux-x86-low.c (x86_linux_read_description): Call
2261 amd64_linux_read_description.
2262 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
2263 (initialize_low_arch): Don't call init_registers_x32_XXX and
2264 init_registers_amd64_XXX.
2265 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
2266 and tdesc_amd64_XXX.
2267 [__x86_64__] (amd64_tdesc_test): New function.
2268 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
2269 and init_registers_amd64_XXX.
2270 * linux-x86-tdesc.c: Include arch/amd64.h.
2271 (xcr0_to_tdesc_idx): New function.
2272 (i386_linux_read_description): New function.
2273 (amd64_get_ipa_tdesc_idx): New function.
2274 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
2275 (amd64_get_ipa_tdesc): Declare.
2276
d1f28ea2
YQ
22772017-09-05 Yao Qi <yao.qi@linaro.org>
2278
2279 * configure.srv (srv_i386_linux_xmlfiles): Remove
2280 i386/i386-XXX-linux.xml from it.
2281
25a93583
YQ
22822017-09-05 Yao Qi <yao.qi@linaro.org>
2283
2284 * configure.srv: Set srv_i386_linux_regobj empty if $development
2285 is false.
2286 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
2287 initialize_low_tdesc.
2288 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
2289 with #if initialize_low_tdesc.
2290 * linux-x86-tdesc-selftest.c: New file.
2291 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
2292
5f035c07
YQ
22932017-09-05 Yao Qi <yao.qi@linaro.org>
2294
2295 * Makefile.in (arch-i386.o): New rule.
2296 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
2297 (x86_64-*-linux*): Likewise.
2298 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
2299 include arch/i386.h.
2300 (i386_linux_read_description): Remove code and call
2301 i386_create_target_description.
2302 * tdesc.c (allocate_target_description): New function.
2303 * tdesc.h (set_tdesc_architecture): Remove declaration.
2304 (set_tdesc_osabi): Likewise.
2305
0abe8a89
YQ
23062017-09-05 Yao Qi <yao.qi@linaro.org>
2307
2308 * linux-x86-tdesc.c: Don't include <inttypes.h>.
2309 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
2310 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
2311 .xmltarget.
2312 * server.c (get_features_xml): Call tdesc_get_features_xml.
2313 * tdesc.c (set_tdesc_architecture): New function.
2314 (set_tdesc_osabi): New function.
2315 (tdesc_get_features_xml): New function.
2316 (tdesc_create_feature): Add an argument.
2317 * tdesc.h (struct target_desc) <features>: New field.
2318 <arch, osabi>: New field.
2319 (~target_desc): xfree features, arch, and osabi.
2320 (target_desc::oerator==): Don't compare .xmltarget.
2321 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
2322 (set_tdesc_osabi): Likewise.
2323 (tdesc_get_features_xml): Likewise.
2324
0a188386
YQ
23252017-09-05 Yao Qi <yao.qi@linaro.org>
2326
2327 * linux-x86-tdesc.c: Include selftest.h.
2328 (i386_tdesc_test): New function.
2329 (initialize_low_tdesc): Call selftests::register_test.
2330 * tdesc.h: Include regdef.h.
2331 (target_desc): Override operator == and !=.
2332
f49ff000
YQ
23332017-09-05 Yao Qi <yao.qi@linaro.org>
2334
2335 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
2336 (ipa_obj): Likewise.
2337 * linux-i386-ipa.c: Include common/x86-xstate.h
2338 (get_ipa_tdesc): Call i386_linux_read_description.
2339 (initialize_low_tracepoint): Don't call init_registers_XXX
2340 functions, call initialize_low_tdesc instead.
2341 * linux-x86-low.c (x86_linux_read_description): Call
2342 i386_linux_read_description.
2343 (initialize_low_arch): Don't call init_registers_i386_XXX
2344 functions, call initialize_low_tdesc.
2345 * linux-x86-tdesc.c: New file.
2346 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
2347 (i386_get_ipa_tdesc_idx): Declare.
2348 (i386_get_ipa_tdesc): Declare.
2349 (initialize_low_tdesc): Declare.
2350
2b68ef2f
YQ
23512017-09-05 Yao Qi <yao.qi@linaro.org>
2352
2353 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
2354 instead of 0.
2355
f7000548
YQ
23562017-09-05 Yao Qi <yao.qi@linaro.org>
2357
2358 * Makefile.in (IPA_OBJS): Add vec-ipa.o
2359 * regcache.c (get_thread_regcache): Use VEC_length.
2360 (init_register_cache): Likewise.
2361 (regcache_cpy): Likewise.
2362 (registers_to_string): Iterate reg_defs via VEC_iterate.
2363 (find_regno): Likewise.
2364 (find_register_by_number): Use VEC_index.
2365 (register_size): Call find_register_by_number.
2366 (register_data): Call find_register_by_number.
2367 (supply_regblock): Use VEC_length.
2368 (regcache_raw_read_unsigned): Likewise.
2369 * tdesc.c (init_target_desc): Iterate reg_defs via
2370 VEC_iterate.
2371 (default_description): Update initializer.
2372 (copy_target_description): Don't update field num_registers.
2373 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
2374 <num_registers>: Remove.
2375
50a421ac
SM
23762017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2377
2378 * Makefile.in (.SECONDARY): Define target.
2379
23fdd69e
SM
23802017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2381
2382 * linux-low.c (linux_wait_1): Adjust.
2383 * server.c (queue_stop_reply_callback): Adjust.
2384
0a2dde4a
SDJ
23852017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2386
2387 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
2388 QEnvironmentUnset and QEnvironmentReset packets.
2389 (handle_query): Inform remote that QEnvironmentHexEncoded,
2390 QEnvironmentUnset and QEnvironmentReset are supported.
2391
6afd337d
SM
23922017-08-25 Simon Marchi <simon.marchi@ericsson.com>
2393
2394 * inferiors.h (inferior_target_data): Rename to ...
2395 (thread_target_data): ... this.
2396 (inferior_regcache_data): Rename to ...
2397 (thread_regcache_data): ... this.
2398 (set_inferior_regcache_data): Rename to ...
2399 (set_thread_regcache_data): ... this.
2400 * inferiors.c (inferior_target_data): Rename to ...
2401 (thread_target_data): ... this.
2402 (inferior_regcache_data): Rename to ...
2403 (thread_regcache_data): ... this.
2404 (set_inferior_regcache_data): Rename to ...
2405 (set_thread_regcache_data): ... this.
2406 (free_one_thread): Update.
2407 * linux-low.h (get_thread_lwp): Update.
2408 * regcache.c (get_thread_regcache): Update.
2409 (regcache_invalidate_thread): Update.
2410 (free_register_cache_thread): Update.
2411 * win32-i386-low.c (update_debug_registers_callback): Update.
2412 (win32_get_current_dr): Update.
2413 * win32-low.c (thread_rec): Update.
2414 (delete_thread_info): Update.
2415 (continue_one_thread): Update.
2416 (suspend_one_thread): Update.
2417
a160cc46
SM
24182017-08-24 Simon Marchi <simon.marchi@ericsson.com>
2419
2420 * inferiors.c (set_inferior_target_data): Remove.
2421 * inferiors.h (set_inferior_target_data): Remove.
2422
6d580b63
YQ
24232017-08-18 Yao Qi <yao.qi@linaro.org>
2424
2425 * Makefile.in (OBS): Add selftest.o.
2426 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
2427 * configure, config.in: Re-generated.
2428 * server.c: Include common/sefltest.h.
2429 (captured_main): Handle option --selftest.
2430
f5a29eb0
YQ
24312017-08-09 Yao Qi <yao.qi@linaro.org>
2432
2433 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
2434 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
2435 i386-avx-mpx.o and i386-mmx.o.
2436 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
2437 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
2438 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
2439 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
2440 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
2441 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
2442 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
2443 i386/amd64-avx-mpx.xml.
2444
57757c2f
YQ
24452017-08-09 Yao Qi <yao.qi@linaro.org>
2446
2447 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
2448 and x32-avx-avx512.o.
2449 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
2450 i386/x32-avx-avx512.xml.
2451
229d26fc
SM
24522017-07-26 Simon Marchi <simon.marchi@ericsson.com>
2453
2454 * tracepoint.h (enum class fast_tpoint_collect_result): New
2455 enumeration.
2456 (fast_tracepoint_collecting): Change return type to
2457 fast_tpoint_collect_result.
2458 * tracepoint.c (fast_tracepoint_collecting): Likewise.
2459 * linux-low.h: Include tracepoint.h.
2460 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
2461 fast_tpoint_collect_result.
2462 * linux-low.c (handle_tracepoints): Adjust.
2463 (linux_fast_tracepoint_collecting): Change return type to
2464 fast_tpoint_collect_result.
2465 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
2466 linux_wait_1, stuck_in_jump_pad_callback,
2467 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
2468 proceed_one_lwp): Adjust to type change.
2469
2e1e43e1
YQ
24702017-07-10 Yao Qi <yao.qi@linaro.org>
2471
2472 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
2473
adc764e7
YQ
24742017-06-29 Yao Qi <yao.qi@linaro.org>
2475
2476 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
2477 Remove.
2478 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
2479
a206891a
SM
24802017-06-20 Simon Marchi <simon.marchi@ericsson.com>
2481
2482 * Makefile.in (IPA_OBJS): Sort and format one item per line.
2483
9a6c7d9c
SDJ
24842017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
2485
2486 * linux-low.c (linux_create_inferior): Adjust code to access the
2487 environment information via 'gdb_environ' class.
2488 * lynx-low.c (lynx_create_inferior): Likewise.
2489 * server.c (our_environ): Make it an instance of 'gdb_environ'.
2490 (get_environ): Return a pointer to 'our_environ'.
2491 (captured_main): Initialize 'our_environ'.
2492 * server.h (get_environ): Adjust prototype.
2493 * spu-low.c (spu_create_inferior): Adjust code to access the
2494 environment information via 'gdb_environ' class.
2495
ae3e2ccf
SM
24962017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2497
2498 * linux-low.c (linux_read_memory, linux_write_memory): Remove
2499 usage of "register" keyword.
2500
3e019bdc
SM
25012017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2502
2503 * configure: Re-generate.
2504
8465943a
SM
25052017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2506
2507 * configure: Re-generate.
2508
cf0dd6f0
SM
25092017-06-17 Simon Marchi <simon.marchi@ericsson.com>
2510
2511 * Makefile.in (COMPILE.pre): Add "-x c++".
2512
9845682b
SDJ
25132017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
2514
2515 * fork-child.c: Conditionally include <signal.h>.
2516
aefd8b33
SDJ
25172017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
2518
2519 * server.c (handle_general_set): Handle new packet
2520 "QStartupWithShell".
2521 (handle_query): Add "QStartupWithShell" to the list of supported
2522 packets.
2523 (gdbserver_usage): Add help text explaining the
2524 new "--startup-with-shell" and "--no-startup-with-shell" CLI
2525 options.
2526 (captured_main): Recognize and act upon the presence of the new
2527 CLI options.
2528
2090129c
SDJ
25292017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
2530 Pedro Alves <palves@redhat.com>
2531
2532 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
2533 * configure: Regenerate.
2534 * configure.srv (srv_linux_obj): Add "fork-child.o" and
2535 "fork-inferior.o".
2536 (i[34567]86-*-lynxos*): Likewise.
2537 (spu*-*-*): Likewise.
2538 * fork-child.c: New file.
2539 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
2540 and "environ.h".
2541 (linux_ptrace_fun): New function.
2542 (linux_create_inferior): Adjust function prototype to reflect
2543 change on "target.h". Adjust function code to use
2544 "fork_inferior".
2545 (linux_request_interrupt): Delete "signal_pid".
2546 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
2547 (lynx_ptrace_fun): New function.
2548 (lynx_create_inferior): Adjust function prototype to reflect
2549 change on "target.h". Adjust function code to use
2550 "fork_inferior".
2551 * nto-low.c (nto_create_inferior): Adjust function prototype and
2552 code to reflect change on "target.h". Update comments.
2553 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
2554 "common-terminal.h" and "environ.h".
2555 (terminal_fd): Moved to fork-child.c.
2556 (old_foreground_pgrp): Likewise.
2557 (restore_old_foreground_pgrp): Likewise.
2558 (last_status): Make it global.
2559 (last_ptid): Likewise.
2560 (our_environ): New variable.
2561 (startup_with_shell): Likewise.
2562 (program_name): Likewise.
2563 (program_argv): Rename to...
2564 (program_args): ...this.
2565 (wrapper_argv): New variable.
2566 (start_inferior): Delete function.
2567 (get_exec_wrapper): New function.
2568 (get_exec_file): Likewise.
2569 (get_environ): Likewise.
2570 (prefork_hook): Likewise.
2571 (post_fork_inferior): Likewise.
2572 (postfork_hook): Likewise.
2573 (postfork_child_hook): Likewise.
2574 (handle_v_run): Update code to deal with arguments coming from the
2575 remote host. Update calls from "start_inferior" to
2576 "create_inferior".
2577 (captured_main): Likewise. Initialize environment variable. Call
2578 "have_job_control".
2579 * server.h (post_fork_inferior): New prototype.
2580 (get_environ): Likewise.
2581 (last_status): Declare.
2582 (last_ptid): Likewise.
2583 (signal_pid): Likewise.
2584 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
2585 (spu_ptrace_fun): New function.
2586 (spu_create_inferior): Adjust function prototype to reflect change
2587 on "target.h". Adjust function code to use "fork_inferior".
2588 * target.c (target_terminal_init): New function.
2589 (target_terminal_inferior): Likewise.
2590 (target_terminal_ours): Likewise.
2591 * target.h: Include <vector>.
2592 (struct target_ops) <create_inferior>: Update prototype.
2593 (create_inferior): Update macro.
2594 * utils.c (gdb_flush_out_err): New function.
2595 * win32-low.c (win32_create_inferior): Adjust function prototype
2596 and code to reflect change on "target.h".
2597
043a4934
SDJ
25982017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
2599
2600 * inferiors.c (switch_to_thread): New function.
2601
15652511
SDJ
26022017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
2603
2604 * Makefile.in (SFILE): Add "common/job-control.c".
2605 (OBS): Add "job-control.o".
2606
21ea5acd
SDJ
26072017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
2608
2609 * Makefile: Remove "@host_makefile_frag@".
2610
e13cb306
PA
26112017-05-05 Pedro Alves <palves@redhat.com>
2612
2613 * configure: Regenerate.
2614
c94fee56
SDJ
26152017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
2616
2617 * configure: Regenerate.
2618
a0ff9e1a
SM
26192017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
2620
2621 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
2622 software_single_step change of return type to
2623 std::vector<CORE_ADDR>.
2624 * linux-low.c (install_software_single_step_breakpoints):
2625 Likewise.
2626 * linux-low.h (install_software_single_step_breakpoints):
2627 Likewise.
2628
be628ab8
SDJ
26292017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
2630
2631 * remote-utils.c: Include "gdb_termios.h" instead of
2632 "terminal.h".
2633 * terminal.h: Delete file.
2634
7c5ded6a
SDJ
26352017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
2636
2637 * server.c: Include <vector>.
2638 <program_argv, wrapper_argv>: Convert to std::vector.
2639 (start_inferior): Rewrite function to use C++.
2640 (handle_v_run): Likewise. Update code that calculates the argv
2641 based on the vRun packet; use C++.
2642 (captured_main): Likewise.
2643
436252de
SM
26442017-04-06 Simon Marchi <simon.marchi@ericsson.com>
2645
2646 * server.c (handle_v_cont): Initialize thread_resume::thread
2647 with null_ptid.
2648
9bf2a700
PA
26492017-04-05 Pedro Alves <palves@redhat.com>
2650
2651 * configure: Regenerate.
2652
a121b7c1
PA
26532017-04-05 Pedro Alves <palves@redhat.com>
2654
2655 * gdbreplay.c (sync_error): Constify.
2656 * linux-x86-low.c (push_opcode): Constify.
2657
21c8a587
PA
26582017-04-05 Pedro Alves <palves@redhat.com>
2659
2660 * win32-low.c (get_child_debug_event)
2661 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
2662 Report TARGET_WAITKIND_SPURIOUS instead.
2663
fb32b4f7
PA
26642017-04-05 Pedro Alves <palves@redhat.com>
2665
e79be6e5
SM
2666 * remote-utils.c (remote_prepare, remote_open): Constify.
2667 * remote-utils.h (remote_prepare, remote_open): Constify.
2668 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 2669
65dd1e59
SM
26702017-04-04 Simon Marchi <simon.marchi@ericsson.com>
2671
2672 * Makefile.in (clean): Clear .deps.
2673
8fa5b777
SM
26742017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
2675
2676 * .gitignore: Remove generated files, replace with wildcard.
2677 * (clean): Replace removal of generated files with wildcard.
2678 (version.c): Replace with...
2679 (version-generated.c): ...this.
2680 (xml-builtin.c): Replace with...
2681 (xml-builtin-generated.c): ...this.
2682 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
2683 (%.c: *regformats*): Replace with...
2684 (%-generated.c: *regformats*): ...this.
2685
a12e714b
MF
26862017-03-27 Max Filippov <jcmvbkbc@gmail.com>
2687
2688 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
2689 (xtensa_fill_gregset): Call collect_register_by_name for
2690 threadptr register.
2691 (xtensa_store_gregset): Call supply_register_by_name for
2692 threadptr register.
2693
1a09b50a
MF
26942017-03-27 Max Filippov <jcmvbkbc@gmail.com>
2695
2696 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
2697 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
2698 (xtensa_store_gregset): Call supply_register for all registers in
2699 a0_regnum..a0_regnum + C0_NREGS range.
2700
1a01e7c6
SM
27012017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2702
2703 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
2704 (ax-ipa.o: ax.c): Remove.
2705 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
2706 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
2707 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
2708 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
2709 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
2710
36bc18a8
SM
27112017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2712
2713 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
2714 (print-utils-ipa.o: ../common/print-utils.c): Remove.
2715 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
2716 (errors-ipa.o: ../common/errors.c): Remove.
2717 (format-ipa.o: ../common/format.c): Remove.
2718 (common-utils-ipa.o: ../common/common-utils.c): Remove.
2719
a8ebe3d5
SM
27202017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2721
2722 * Makefile.in (%-ipa.o: %.c): New rule.
2723 (tracepoint-ipa.o: tracepoint.c): Remove.
2724 (utils-ipa.o: utils.c): Remove.
2725 (remote-utils-ipa.o: remote-utils.c): Remove.
2726 (regcache-ipa.o: regcache.c): Remove.
2727 (i386-linux-ipa.o: i386-linux.c): Remove.
2728 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
2729 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
2730 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
2731 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
2732 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
2733 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
2734 (amd64-linux-ipa.o: amd64-linux.c): Remove.
2735 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
2736 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
2737 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
2738 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
2739 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
2740 (aarch64-ipa.o: aarch64.c): Remove.
2741 (s390-linux32-ipa.o: s390-linux32.c): Remove.
2742 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
2743 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
2744 (s390-linux64-ipa.o: s390-linux64.c): Remove.
2745 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
2746 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
2747 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
2748 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
2749 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
2750 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
2751 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
2752 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
2753 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
2754 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
2755 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
2756 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
2757 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
2758 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
2759 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
2760 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
2761 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
2762 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
2763 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
2764 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
2765 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
2766 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
2767 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
2768 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
2769 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
2770 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
2771 (tdesc-ipa.o: tdesc.c): Remove.
2772 (x32-linux-ipa.o: x32-linux.c): Remove.
2773 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
2774 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
2775
50cfacb7
SM
27762017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2777
2778 * Makefile.in (%.o: ../arch/%.c): New rule.
2779 (arm.o: ../arch/arm.c): Remove.
2780 (arm-linux.o: ../arch/arm-linux.c): Remove.
2781 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
2782 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
2783
c5a22423
SM
27842017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2785
2786 * Makefile.in (%.o: ../nat/%.c): New rule.
2787 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
2788 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
2789 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
2790 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
2791 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
2792 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
2793 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
2794 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
2795 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
2796 (linux-personality.o: ../nat/linux-personality.c): Remove.
2797 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
2798 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
2799 (x86-linux.o: ../nat/x86-linux.c): Remove.
2800 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
2801 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
2802
6bda016b
SM
28032017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2804
2805 * Makefile.in (%.o: ../common/%.c): New rule.
2806 (signals.o: ../common/signals.c): Remove.
2807 (print-utils.o: ../common/print-utils.c): Remove.
2808 (rsp-low.o: ../common/rsp-low.c): Remove.
2809 (common-utils.o: ../common/common-utils.c): Remove.
2810 (posix-strerror.o: ../common/posix-strerror.c): Remove.
2811 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
2812 (vec.o: ../common/vec.c): Remove.
2813 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
2814 (xml-utils.o: ../common/xml-utils.c): Remove.
2815 (ptid.o: ../common/ptid.c): Remove.
2816 (buffer.o: ../common/buffer.c): Remove.
2817 (format.o: ../common/format.c): Remove.
2818 (filestuff.o: ../common/filestuff.c): Remove.
2819 (agent.o: ../common/agent.c): Remove.
2820 (errors.o: ../common/errors.c): Remove.
2821 (environ.o: ../common/environ.c): Remove.
2822 (common-debug.o: ../common/common-debug.c): Remove.
2823 (cleanups.o: ../common/cleanups.c): Remove.
2824 (common-exceptions.o: ../common/common-exceptions.c): Remove.
2825 (fileio.o: ../common/fileio.c): Remove.
2826 (common-regcache.o: ../common/common-regcache.c): Remove.
2827 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
2828 (new-op.o: ../common/new-op.c): Remove.
2829 (btrace-common.o: ../common/btrace-common.c): Remove.
2830
21122961
SM
28312017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2832
2833 * Makefile.in (%.o: ../target/%.c): New rule.
2834 (waitstatus.o: ../target/waitstatus.c): Remove.
2835
c362e621
SM
28362017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2837
2838 * Makefile.in
2839 (%.c: ../regformats/%.dat,
2840 (%.c: ../regformats/arm/%.dat,
2841 (%.c: ../regformats/i386/%.dat,
2842 (%.c: ../regformats/rs6000/%.dat): New rules.
2843 (aarch64.c): Remove.
2844 (reg-arm.c): Remove.
2845 (arm-with-iwmmxt.c): Remove.
2846 (arm-with-vfpv2.c): Remove.
2847 (arm-with-vfpv3.c): Remove.
2848 (arm-with-neon.c): Remove.
2849 (reg-bfin.c): Remove.
2850 (reg-cris.c): Remove.
2851 (reg-crisv32.c): Remove.
2852 (i386.c): Remove.
2853 (i386-linux.c): Remove.
2854 (i386-avx.c): Remove.
2855 (i386-avx-linux.c): Remove.
2856 (i386-avx-avx512.c): Remove.
2857 (i386-avx-avx512-linux.c): Remove.
2858 (i386-mpx.c): Remove.
2859 (i386-mpx-linux.c): Remove.
2860 (i386-avx-mpx-avx512-pku.c): Remove.
2861 (i386-avx-mpx-avx512-pku-linux.c): Remove.
2862 (i386-avx-mpx.c): Remove.
2863 (i386-avx-mpx-linux.c): Remove.
2864 (i386-mmx.c): Remove.
2865 (i386-mmx-linux.c): Remove.
2866 (reg-ia64.c): Remove.
2867 (reg-m32r.c): Remove.
2868 (reg-m68k.c): Remove.
2869 (reg-cf.c): Remove.
2870 (mips-linux.c): Remove.
2871 (mips-dsp-linux.c): Remove.
2872 (mips64-linux.c): Remove.
2873 (mips64-dsp-linux.c): Remove.
2874 (nios2-linux.c): Remove.
2875 (powerpc-32.c): Remove.
2876 (powerpc-32l.c): Remove.
2877 (powerpc-altivec32l.c): Remove.
2878 (powerpc-cell32l.c): Remove.
2879 (powerpc-vsx32l.c): Remove.
2880 (powerpc-isa205-32l.c): Remove.
2881 (powerpc-isa205-altivec32l.c): Remove.
2882 (powerpc-isa205-vsx32l.c): Remove.
2883 (powerpc-e500l.c): Remove.
2884 (powerpc-64l.c): Remove.
2885 (powerpc-altivec64l.c): Remove.
2886 (powerpc-cell64l.c): Remove.
2887 (powerpc-vsx64l.c): Remove.
2888 (powerpc-isa205-64l.c): Remove.
2889 (powerpc-isa205-altivec64l.c): Remove.
2890 (powerpc-isa205-vsx64l.c): Remove.
2891 (s390-linux32.c): Remove.
2892 (s390-linux32v1.c): Remove.
2893 (s390-linux32v2.c): Remove.
2894 (s390-linux64.c): Remove.
2895 (s390-linux64v1.c): Remove.
2896 (s390-linux64v2.c): Remove.
2897 (s390-te-linux64.c): Remove.
2898 (s390-vx-linux64.c): Remove.
2899 (s390-tevx-linux64.c): Remove.
2900 (s390x-linux64.c): Remove.
2901 (s390x-linux64v1.c): Remove.
2902 (s390x-linux64v2.c): Remove.
2903 (s390x-te-linux64.c): Remove.
2904 (s390x-vx-linux64.c): Remove.
2905 (s390x-tevx-linux64.c): Remove.
2906 (tic6x-c64xp-linux.c): Remove.
2907 (tic6x-c64x-linux.c): Remove.
2908 (tic6x-c62x-linux.c): Remove.
2909 (reg-sh.c): Remove.
2910 (reg-sparc64.c): Remove.
2911 (reg-spu.c): Remove.
2912 (amd64.c): Remove.
2913 (amd64-linux.c): Remove.
2914 (amd64-avx.c): Remove.
2915 (amd64-avx-linux.c): Remove.
2916 (amd64-avx-avx512.c): Remove.
2917 (amd64-avx-avx512-linux.c): Remove.
2918 (amd64-mpx.c): Remove.
2919 (amd64-mpx-linux.c): Remove.
2920 (amd64-avx-mpx-avx512-pku.c): Remove.
2921 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
2922 (amd64-avx-mpx.c): Remove.
2923 (amd64-avx-mpx-linux.c): Remove.
2924 (x32.c): Remove.
2925 (x32-linux.c): Remove.
2926 (x32-avx.c): Remove.
2927 (x32-avx-linux.c): Remove.
2928 (x32-avx-avx512.c): Remove.
2929 (x32-avx-avx512-linux.c): Remove.
2930 (reg-xtensa.c): Remove.
2931 (reg-tilegx.c): Remove.
2932 (reg-tilegx32.c): Remove.
2933
1672e0d9
SDJ
29342017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
2935
2936 * Makefile.in (SFILES): Add "common/environ.c".
2937 (OBJS): Add "common/environ.h".
2938
239b6d10
WT
29392017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
2940
2941 * configure.ac: Check if the fs_base and gs_base members of
2942 `struct user_regs_struct' exist.
2943 * config.in: Regenerated.
2944 * configure: Likewise.
2945
694b382c
AT
29462017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
2947
2948 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
2949 target_read_memory.
2950 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
2951 (get_next_pcs_syscall_next_pc): Likewise.
2952
7dc53023
LM
29532016-12-23 Luis Machado <lgustavo@codesourcery.com>
2954
2955 * win32-i386-low.c: Fix incorrect reference to a couple source files.
2956 * nto-x86-low.c: Likewise.
2957
ad02e4fe
SM
29582016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
2959
2960 * Makefile.in: Include disable-implicit-rules.mk.
2961
dcb07cfa
PA
29622016-11-23 Pedro Alves <palves@redhat.com>
2963
2964 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
2965 (debug_vprintf): Use std::chrono::steady_clock instead of
2966 gettimeofday. Use '.' instead of ':'.
2967 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
2968 (get_timestamp): Use std::chrono::steady_clock instead of
2969 gettimeofday.
2970
8629c02c
SM
29712016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2972
2973 * Makefile.in: Fix whitespace formatting.
2974
b593ecca
SM
29752016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2976
2977 * Makefile.in (SFILES, OBS): Flatten list and order
2978 alphabetically.
2979
9986ba08
PA
29802016-11-23 Pedro Alves <palves@redhat.com>
2981
2982 * event-loop.c (handle_file_event): Use warning.
2983 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
2984 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
2985 Use warning.
2986
4eefa7bc
PA
29872016-11-23 Pedro Alves <palves@redhat.com>
2988
2989 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
2990 output.
2991 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
2992 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
2993 debug_printf and debug_flush for debug output.
2994 * server.c (handle_general_set): Likewise.
2995 * thread-db.c (try_thread_db_load): Use debug_printf for debug
2996 output.
2997
5443506e
SM
29982016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2999
3000 * Makefile.in (.c.o): Replace rule with ...
3001 (%.o: %.c): ... this one.
3002
3b165252
SM
30032016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3004
3005 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
3006 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
3007 make.
3008 * configure.ac: Remove checks for the make program.
3009 * configure: Re-generate.
3010
0bcda685
PA
30112016-10-28 Pedro Alves <palves@redhat.com>
3012
3013 * Makefile.in (CXX_DIALECT): Get from configure.
3014 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
3015 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
3016 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
3017 * config.in: Regenerate.
3018 * configure: Regenerate.
3019
c3805894
YQ
30202016-10-27 Yao Qi <yao.qi@linaro.org>
3021
3022 * linux-low.c (linux_supports_range_stepping): Return true if
3023 can_software_single_step return true.
3024
89342618
YQ
30252016-10-27 Yao Qi <yao.qi@linaro.org>
3026
3027 * inferiors.c (find_inferior_in_random): New function.
3028 * inferiors.h (find_inferior_in_random): Declare.
3029 * linux-low.c (linux_wait_for_event_filtered): Call
3030 find_inferior_in_random instead of find_inferior.
3031
e3652c84
YQ
30322016-10-27 Yao Qi <yao.qi@linaro.org>
3033
3034 * linux-low.c (linux_wait_1): If single-step breakpoints are
3035 inserted, remove them.
3036
5a04c4cf
PA
30372016-10-26 Pedro Alves <palves@redhat.com>
3038
3039 * linux-low.c (handle_extended_wait): Link parent/child fork
3040 threads.
3041 (linux_wait_1): Unlink them.
3042 (linux_set_resume_request): Ignore resume requests for
3043 already-resumed and unhandled fork child threads.
3044 * linux-low.h (struct lwp_info) <fork_relative>: New field.
3045 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
3046 New functions.
3047 (handle_v_requests) <vCont>: Don't call require_running.
3048 * server.h (in_queued_stop_replies): New declaration.
3049
cb93dc7f
YQ
30502016-10-24 Yao Qi <yao.qi@linaro.org>
3051
3052 PR server/20733
3053 * linux-aarch64-low.c (append_insns): Cast the return value to
3054 'uint32_t *'.
3055
a1078bea
YQ
30562016-10-10 Yao Qi <yao.qi@linaro.org>
3057
3058 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
3059
1fb77080
SDJ
30602016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
3061
3062 * target.c (target_supports_multi_process): New function, moved
3063 from...
3064 * target.h (target_supports_multi_process): ... here. Remove
3065 macro.
3066
39b5a3b9
TT
30672016-10-05 Tom Tromey <tom@tromey.com>
3068
3069 PR remote/20655:
3070 * tracepoint.c (handle_tracepoint_bkpts): Check
3071 ipa_error_tracepoint, not ipa_stopping_tracepoint.
3072
c1d0b70a
YQ
30732016-10-05 Yao Qi <yao.qi@linaro.org>
3074
3075 * configure.srv: Update the path of arm-*.xml files.
3076
0a69eedb
YQ
30772016-10-05 Terry Guo <terry.guo@arm.com>
3078 Yao Qi <yao.qi@linaro.org>
3079
3080 * Makefile.in: Adjust the path of rules.
3081 * configure.srv: Update the path of xml files.
3082 * regformats/arm-with-iwmmxt.dat: Regenerated.
3083 * regformats/arm-with-neon.dat: Likewise.
3084 * regformats/arm-with-vfpv2.dat: Likewise.
3085 * regformats/arm-with-vfpv3.dat Likewise.
3086
17e16485
YQ
30872016-09-30 Yao Qi <yao.qi@linaro.org>
3088
3089 PR gdbserver/20627
3090 * target.c (target_stop_and_wait): Don't call
3091 target_continue_no_signal, use resume_stop instead.
3092
edeeb602
YQ
30932016-09-26 Yao Qi <yao.qi@linaro.org>
3094
3095 * linux-low.c (linux_wait_1): Call debug_exit.
3096
503b1c39
PA
30972016-09-23 Pedro Alves <palves@redhat.com>
3098
3099 * Makefile.in (SFILES): Add common/new-op.c.
3100 (OBS): Add common/new-op.o.
3101 (new-op.o): New rule.
3102
74172ecf
SM
31032016-09-21 Simon Marchi <simon.marchi@ericsson.com>
3104
3105 * .gitinore: Ignore more files.
3106
fc6cda2e
YQ
31072016-09-21 Yao Qi <yao.qi@linaro.org>
3108
3109 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
3110 23.
3111
bc1e6c81
SDJ
31122016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
3113
3114 * server.c (start_inferior): Call target_mourn_inferior instead of
3115 mourn_inferior; pass ptid_t argument to it.
3116 (resume): Likewise.
3117 (handle_target_event): Likewise.
3118 * target.c (target_mourn_inferior): New function.
3119 * target.h (mourn_inferior): Delete macro.
3120
0e00e962
AA
31212016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
3122
3123 * linux-low.c (lwp_is_stepping): New function.
3124
1d8cb77d
CL
31252016-09-06 Carl Love <cel@us.ibm.com>
3126
3127 * server.c (start_inferior): Fixed comment, requested comment change
3128 didn't get updated correctly. Removed reference to ptrace () call as
3129 it is only true on Linux systems.
3130
7313bced
CL
31312016-09-06 Carl Love <cel@us.ibm.com>
3132
3133 * server.c (start_inferior): Do not call
3134 function target_post_create_inferior () if the
3135 inferior process has already exited.
3136
cf6de44d
PA
31372016-09-05 Pedro Alves <palves@redhat.com>
3138
3139 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
3140 (COMPILE.pre, CC_LD): Use CXX directly.
3141 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
3142 * acinclude.m4: Don't include build-with-cxx.m4.
3143 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
3144 * configure: Regenerate.
3145
c1da6748
AT
31462016-09-02 Akash Trehan <akash.trehan123@gmail.com>
3147
3148 PR gdb/19495
3149 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
3150 call writing data to own_buf.
3151
f2b9e3df
SDJ
31522016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3153
3154 * target.c (mywait): Call target_wait instead of
3155 the_target->wait.
3156 (target_wait): New function.
3157
049a8570
SDJ
31582016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3159
3160 * server.c (start_inferior): New variable 'ptid'. Replace calls
3161 to the_target->resume by target_continue{,_no_signal}, depending
3162 on the case.
3163 * target.c (target_stop_and_wait): Call target_continue_no_signal
3164 instead of the_target->resume.
3165 (target_continue): New function.
3166
3aa5cfa0
AT
31672016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
3168
3169 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
3170
754653a7
AZ
31712016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3172
3173 PR server/20491
3174 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
3175 ps_prochandle.
3176 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
3177 * linux-arm-low.c (ps_get_thread_area): Likewise.
3178 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
3179 * linux-m68k-low.c (ps_get_thread_area): Likewise.
3180 * linux-mips-low.c (ps_get_thread_area): Likewise.
3181 * linux-nios2-low.c (ps_get_thread_area): Likewise.
3182 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
3183 * linux-x86-low.c (ps_get_thread_area): Likewise.
3184 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
3185
ed036b40
PA
31862016-08-19 Pedro Alves <palves@redhat.com>
3187
3188 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
3189
c8ef42ee
PA
31902016-08-19 Pedro Alves <palves@redhat.com>
3191
3192 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
3193 comment. Use memcpy instead of casting through unsigned long.
3194
9c235a72
PA
31952016-08-19 Pedro Alves <palves@redhat.com>
3196
3197 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
3198 allocating around 0x80000000.
3199
201506da
PA
32002016-08-19 Pedro Alves <palves@redhat.com>
3201
3202 PR gdb/20415
3203 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
3204 (x32-avx512-linux-ipa.o): New rules.
3205 * configure.ac (x86_64-*-linux*): New x32 check.
3206 * configure.srv (ipa_x32_linux_regobj): New.
3207 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
3208 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
3209 descriptions.
3210 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
3211 descriptions.
3212 * configure: Regenerate.
3213
f348d89a
PA
32142016-08-09 Pedro Alves <palves@redhat.com>
3215
3216 PR gdb/18653
3217 * Makefile.in (OBS): Add signals-state-save-restore.o.
3218 (signals-state-save-restore.o): New rule.
3219 * config.in: Regenerate.
3220 * configure: Regenerate.
3221 * linux-low.c: Include "signals-state-save-restore.h".
3222 (linux_create_inferior): Call
3223 restore_original_signals_state.
3224 * server.c: Include "dispositions-save-restore.h".
3225 (captured_main): Call save_original_signals_state.
3226
1baf5149
PA
32272016-08-05 Pedro Alves <palves@redhat.com>
3228
3229 * configure: Regenerate.
3230
fcd4a73d
YQ
32312016-08-04 Yao Qi <yao.qi@linaro.org>
3232
3233 * linux-low.c (regsets_fetch_inferior_registers): Check
3234 errno is ESRCH or not.
3235
979659d0
YQ
32362016-08-02 Yao Qi <yao.qi@linaro.org>
3237
3238 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
3239 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
3240 (thread_db_load_search): Update.
3241 (try_thread_db_load_1): Don't look for td_ta_event_addr,
3242 td_ta_set_event and td_ta_event_getmsg.
3243
6598661d
PA
32442016-07-26 Pedro Alves <palves@redhat.com>
3245
3246 PR server/20414
3247 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
3248 of unsigned long for 64-bit registers and use uint32_t instead of
3249 unsigned int for 32-bit registers.
3250
9cf12d57
PA
32512016-07-26 Pedro Alves <palves@redhat.com>
3252
3253 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
3254 to 'ptrace'.
3255
305450ed
TT
32562016-07-21 Tom Tromey <tom@tromey.com>
3257
3258 * configure: Rebuild.
3259
2583da7c
YQ
32602016-07-21 Yao Qi <yao.qi@linaro.org>
3261
3262 * mem-break.c (find_gdb_breakpoint): Cast bp to
3263 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
3264
21536b36
YQ
32652016-07-21 Yao Qi <yao.qi@linaro.org>
3266
3267 * server.c (handle_v_requests): Support s and S actions
3268 if target_supports_software_single_step return true.
3269
8901d193
YQ
32702016-07-21 Yao Qi <yao.qi@linaro.org>
3271
3272 * linux-low.c (resume_stopped_resumed_lwps): If resume request
3273 is resume_step, call maybe_hw_step.
3274 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
3275 and unstop them.
3276 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
3277 breakpoints or not.
3278 (proceed_one_lwp): If resume request is resume_step, install
3279 reinsert breakpoints and call maybe_hw_step.
3280
0e9a339e
YQ
32812016-07-21 Yao Qi <yao.qi@linaro.org>
3282
3283 * linux-low.c (proceed_one_lwp): Declare.
3284 (linux_resume_one_thread): Remove local variable 'step'.
3285 Lift code enqueue signal. Call proceed_one_lwp instead of
3286 linux_resume_one_lwp.
3287
4281b351
YQ
32882016-07-21 Yao Qi <yao.qi@linaro.org>
3289
3290 * linux-low.c (linux_resume_one_thread): Call
3291 enqueue_pending_signal.
3292
984a2c04
YQ
32932016-07-21 Yao Qi <yao.qi@linaro.org>
3294
3295 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
3296 * inferiors.c (do_restore_current_thread_cleanup): New function.
3297 (make_cleanup_restore_current_thread): Likewise.
3298 * linux-low.c (install_software_single_step_breakpoints): Call
3299 make_cleanup_restore_current_thread. Switch current_thread to
3300 thread.
3301
bec903c9
YQ
33022016-07-21 Yao Qi <yao.qi@linaro.org>
3303
3304 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
3305 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
3306 (clone_one_breakpoint): Likewise.
3307 (delete_reinsert_breakpoints): Change parameter to thread.
3308 Callers updated.
3309 (has_reinsert_breakpoints): Likewise.
3310 (uninsert_reinsert_breakpoints): Likewise.
3311 (reinsert_reinsert_breakpoints): Likewise.
3312 * mem-break.h (set_reinsert_breakpoint): Update declaration.
3313 (delete_reinsert_breakpoints): Likewise.
3314 (reinsert_reinsert_breakpoints): Likewise.
3315 (uninsert_reinsert_breakpoints): Likewise.
3316 (has_reinsert_breakpoints): Likewise.
3317
63c40ec7
YQ
33182016-07-21 Yao Qi <yao.qi@linaro.org>
3319
3320 * inferiors.c (get_thread_process): Make parameter const.
3321 * inferiors.h (get_thread_process): Update declaration.
3322 * mem-break.c (clone_all_breakpoints): Remove all parameters.
3323 Add new parameters child_thread and parent_thread. Callers
3324 updated.
3325 * mem-break.h (clone_all_breakpoints): Update declaration.
3326
9aa76cd0
YQ
33272016-07-21 Yao Qi <yao.qi@linaro.org>
3328
3329 * mem-break.c (struct breakpoint) <cond_list>: Remove.
3330 <command_list, handler>: Remove.
3331 (struct gdb_breakpoint): New.
3332 (struct other_breakpoint): New.
3333 (struct reinsert_breakpoint): New.
3334 (is_gdb_breakpoint): New function.
3335 (any_persistent_commands): Update command_list if
3336 is_gdb_breakpoint returns true.
3337 (set_breakpoint): Create breakpoints according to their types.
3338 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
3339 (set_gdb_breakpoint_1): Likewise.
3340 (set_gdb_breakpoint): Likewise.
3341 (clear_breakpoint_conditions): Change parameter type to
3342 'struct gdb_breakpoint *'.
3343 (clear_breakpoint_commands): Likewise.
3344 (clear_breakpoint_conditions_and_commands): Likewise.
3345 (add_condition_to_breakpoint): Likewise.
3346 (add_breakpoint_condition): Likewise.
3347 (add_commands_to_breakpoint): Likewise.
3348 (check_breakpoints): Check other_breakpoint.
3349 (clone_one_breakpoint): Clone breakpopint according to its type.
3350 * mem-break.h (struct gdb_breakpoint): Declare.
3351 (set_gdb_breakpoint): Update declaration.
3352 (clear_breakpoint_conditions_and_commands): Likewise.
3353 (add_breakpoint_condition): Likewise.
3354 (add_breakpoint_commands): Likewise.
3355 * server.c (process_point_options): Change parameter type to
3356 'struct gdb_breakpoint *'.
3357
811f8301
YQ
33582016-07-21 Yao Qi <yao.qi@linaro.org>
3359
3360 * mem-break.c (set_breakpoint_at): Rename it to ...
3361 (set_breakpoint_type_at): ... it.
3362 (set_breakpoint_at): Call set_breakpoint_type_at.
3363 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
3364 * mem-break.h (set_breakpoint_at): Update comments.
3365
b1c51e36
CLT
33662016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
3367
3368 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
3369 to buf parameter.
3370 (nios2_store_gregset): Likewise.
3371
ced2dffb
PA
33722016-07-01 Pedro Alves <palves@redhat.com>
3373 Antoine Tremblay <antoine.tremblay@ericsson.com>
3374
3375 * linux-low.c: Change interface to take the target lwp_info
3376 pointer directly and return void. Handle detaching from a zombie
3377 thread.
3378 (linux_detach_lwp_callback): New function.
3379 (linux_detach): Detach from the leader thread after detaching from
3380 the clone threads.
3381
2ac09a5b
YQ
33822016-06-28 Yao Qi <yao.qi@linaro.org>
3383
3384 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
3385 for variable new_offset.
3386 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
3387 (aarch64_ftrace_insn_reloc_cb): Likewise.
3388 (aarch64_ftrace_insn_reloc_tb): Likewise.
3389 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
3390 PRIx64 instead of PRIx32.
3391
79e7fd4f
YQ
33922016-06-28 Yao Qi <yao.qi@linaro.org>
3393
3394 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
3395 (the_low_target): Install arm_get_syscall_trapinfo.
3396
061fc021
YQ
33972016-06-28 Yao Qi <yao.qi@linaro.org>
3398
3399 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
3400 function.
3401 (the_low_target): Install aarch64_get_syscall_trapinfo.
3402
4cc32bec
YQ
34032016-06-28 Yao Qi <yao.qi@linaro.org>
3404
3405 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
3406 Callers updated.
3407 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
3408 Remove parameter sysno.
3409 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
3410 sysret.
3411
782c1122
AA
34122016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3413
3414 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
3415 (s390_emit_ne_goto): Likewise.
3416 (s390_emit_lt_goto): Likewise.
3417 (s390_emit_le_goto): Likewise.
3418 (s390_emit_gt_goto): Likewise.
3419 (s390_emit_ge_goto): Likewise.
3420 (s390x_emit_eq_goto): Likewise.
3421 (s390x_emit_ne_goto): Likewise.
3422 (s390x_emit_lt_goto): Likewise.
3423 (s390x_emit_le_goto): Likewise.
3424 (s390x_emit_gt_goto): Likewise.
3425 (s390x_emit_ge_goto): Likewise.
3426 (s390_emit_ops_impl): Mark variable static.
3427 (s390x_emit_ops): Likewise.
3428
2e7b624b
YQ
34292016-06-17 Yao Qi <yao.qi@linaro.org>
3430
3431 * linux-low.c (handle_extended_wait): Call
3432 uninsert_reinsert_breakpoints for the parent process. Remove
3433 reinsert breakpoints from the child process. Reinsert them to
3434 the parent process when vfork is done.
3435 * mem-break.c (uninsert_reinsert_breakpoints): New function.
3436 (reinsert_reinsert_breakpoints): New function.
3437 * mem-break.h (uninsert_reinsert_breakpoints): Declare
3438 (reinsert_reinsert_breakpoints): Declare.
3439
8a81c5d7
YQ
34402016-06-17 Yao Qi <yao.qi@linaro.org>
3441
3442 * linux-low.c (handle_extended_wait): If the parent is doing
3443 step-over, remove the reinsert breakpoints from the forked child.
3444
f50bf8e5
YQ
34452016-06-17 Yao Qi <yao.qi@linaro.org>
3446
3447 * linux-low.c (unsuspend_all_lwps): Declare.
3448 (linux_low_filter_event): If thread exited, call finish_step_over.
3449 If step-over is finished, unsuspend other threads.
3450
8376a3cb
YQ
34512016-06-17 Yao Qi <yao.qi@linaro.org>
3452
3453 * linux-low.c (linux_resume_one_lwp_throw): Assert
3454 has_reinsert_breakpoints returns false.
3455 * mem-break.c (delete_disabled_breakpoints): Assert
3456 bp type isn't reinsert_breakpoint.
3457
f79b145d
YQ
34582016-06-17 Yao Qi <yao.qi@linaro.org>
3459
3460 * linux-low.c (maybe_hw_step): New function.
3461 (linux_resume_one_lwp_throw): Call maybe_hw_step.
3462 (finish_step_over): Switch current_thread to lwp temporarily,
3463 and assert has_reinsert_breakpoints returns true.
3464 (proceed_one_lwp): Call maybe_hw_step.
3465 * mem-break.c (has_reinsert_breakpoints): New function.
3466 * mem-break.h (has_reinsert_breakpoints): Declare.
3467
0ae534d2
JT
34682016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
3469
3470 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
3471
fcdad592
YQ
34722016-05-17 Yao Qi <yao.qi@linaro.org>
3473
3474 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
3475 instead of find_inferior.
3476
9e784964
YQ
34772016-05-05 Yao Qi <yao.qi@linaro.org>
3478
3479 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
3480 Initialize res to zero.
3481
cf2ebb6e
YQ
34822016-05-05 Yao Qi <yao.qi@linaro.org>
3483
3484 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
3485 to uint32_t.
3486
c1aebf87
UW
34872016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3488
3489 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
3490 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
3491 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
3492
35fd2deb 34932016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 3494 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
3495
3496 * tracepoint.c (write_inferior_int8): New function.
3497 (cmd_qtenable_disable): Write enable flag using
3498 write_inferior_int8.
3499
484b3c32
YQ
35002016-04-25 Yao Qi <yao.qi@linaro.org>
3501
3502 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
3503 (need_step_over_p): Return zero if the LWP has pending signals
3504 can be delivered on software single step target.
3505
85ba7d86
YQ
35062016-04-25 Yao Qi <yao.qi@linaro.org>
3507
3508 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
3509 return instead of error.
3510
3539aa13
YQ
35112016-04-22 Yao Qi <yao.qi@linaro.org>
3512
3513 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
3514 to 23.
3515
5b061e98
YQ
35162016-04-22 Yao Qi <yao.qi@linaro.org>
3517
3518 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
3519 signal when stepping over breakpoint with software single
3520 step.
3521
3451269c
PA
35222016-04-21 Pedro Alves <palves@redhat.com>
3523
3524 * linux-s390-low.c (s390_collect_ptrace_register)
3525 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
3526 add casts.
3527 (s390_check_regset): Use void * instead of gdb_byte *.
3528
a2358508
PA
35292016-04-20 Pedro Alves <palves@redhat.com>
3530
3531 * configure: Renegerate.
3532
6885166d
YQ
35332016-04-20 Yao Qi <yao.qi@linaro.org>
3534
3535 * linux-aarch32-low.c: Include "arch/arm-linux.h".
3536 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
3537 number 16.
3538 (arm_store_gregset): Likewise.
3539
2b863f51
WT
35402016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
3541
3542 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
3543 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
3544 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
3545 (amd64-avx-mpx-linux.c): New rules.
3546 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
3547 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
3548 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
3549 (srv_amd64_regobj): Add amd64-avx-mpx.o.
3550 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
3551 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
3552 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
3553 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
3554 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
3555 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
3556 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
3557 * linux-x86-low.c (x86_linux_read_description): Add case for
3558 X86_XSTATE_AVX_MPX_MASK.
3559 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
3560 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
3561 init_registers_i386_avx_mpx_linux.
3562 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
3563 (initialize_low_tracepoint): Call
3564 init_registers_i386_avx_mpx_linux.
3565 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
3566 (initialize_low_tracepoint): Call
3567 init_registers_amd64_avx_mpx_linux.
3568 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
3569 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
3570 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
3571 declarations.
3572
9b30624b
PA
35732016-04-18 Pedro Alves <palves@redhat.com>
3574
3575 * configure: Regenerate.
3576
45e3745e
AT
35772016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
3578
3579 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
3580 (aarch64_emit_sub): Likewise.
3581
2afc13ff
PA
35822016-04-12 Pedro Alves <palves@redhat.com>
3583
3584 * utils.c (prepare_to_throw_exception): Delete.
3585
6e774b13
SM
35862016-04-05 Simon Marchi <simon.marchi@ericsson.com>
3587
3588 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
3589
4dca19f8
MK
35902016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
3591
3592 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
3593
d0a9981f
MK
35942016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
3595
3596 * linux-aarch64-ipa.c: Add <elf.h> include.
3597 * linux-ppc-ipa.c: Add <elf.h> include.
3598 * linux-s390-ipa.c: Add <elf.h> include.
3599
252db07e
MK
36002016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
3601
3602 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
3603 (get_raw_reg_ptr): Likewise.
3604 (get_trace_state_variable_value_ptr): Likewise.
3605 (set_trace_state_variable_value_ptr): Likewise.
3606 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
3607 char *.
3608
14e2b6d9
MK
36092016-03-31 Wei-cheng Wang <cole945@gmail.com>
3610 Marcin Kościelnicki <koriakin@0x04.net>
3611
3612 PR/17221
3613 * linux-ppc-low.c (emit_insns): New function.
3614 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
3615 (ppc_emit_prologue): New function.
3616 (ppc_emit_epilogue): New function.
3617 (ppc_emit_add): New function.
3618 (ppc_emit_sub): New function.
3619 (ppc_emit_mul): New function.
3620 (ppc_emit_lsh): New function.
3621 (ppc_emit_rsh_signed): New function.
3622 (ppc_emit_rsh_unsigned): New function.
3623 (ppc_emit_ext): New function.
3624 (ppc_emit_zero_ext): New function.
3625 (ppc_emit_log_not): New function.
3626 (ppc_emit_bit_and): New function.
3627 (ppc_emit_bit_or): New function.
3628 (ppc_emit_bit_xor): New function.
3629 (ppc_emit_bit_not): New function.
3630 (ppc_emit_equal): New function.
3631 (ppc_emit_less_signed): New function.
3632 (ppc_emit_less_unsigned): New function.
3633 (ppc_emit_ref): New function.
3634 (ppc_emit_const): New function.
3635 (ppc_emit_reg): New function.
3636 (ppc_emit_pop): New function.
3637 (ppc_emit_stack_flush): New function.
3638 (ppc_emit_swap): New function.
3639 (ppc_emit_stack_adjust): New function.
3640 (ppc_emit_call): New function.
3641 (ppc_emit_int_call_1): New function.
3642 (ppc_emit_void_call_2): New function.
3643 (ppc_emit_if_goto): New function.
3644 (ppc_emit_goto): New function.
3645 (ppc_emit_eq_goto): New function.
3646 (ppc_emit_ne_goto): New function.
3647 (ppc_emit_lt_goto): New function.
3648 (ppc_emit_le_goto): New function.
3649 (ppc_emit_gt_goto): New function.
3650 (ppc_emit_ge_goto): New function.
3651 (ppc_write_goto_address): New function.
3652 (ppc_emit_ops_impl): New static variable.
3653 (ppc64v1_emit_prologue): New function.
3654 (ppc64v2_emit_prologue): New function.
3655 (ppc64_emit_epilogue): New function.
3656 (ppc64_emit_add): New function.
3657 (ppc64_emit_sub): New function.
3658 (ppc64_emit_mul): New function.
3659 (ppc64_emit_lsh): New function.
3660 (ppc64_emit_rsh_signed): New function.
3661 (ppc64_emit_rsh_unsigned): New function.
3662 (ppc64_emit_ext): New function.
3663 (ppc64_emit_zero_ext): New function.
3664 (ppc64_emit_log_not): New function.
3665 (ppc64_emit_bit_and): New function.
3666 (ppc64_emit_bit_or): New function.
3667 (ppc64_emit_bit_xor): New function.
3668 (ppc64_emit_bit_not): New function.
3669 (ppc64_emit_equal): New function.
3670 (ppc64_emit_less_signed): New function.
3671 (ppc64_emit_less_unsigned): New function.
3672 (ppc64_emit_ref): New function.
3673 (ppc64_emit_const): New function.
3674 (ppc64v1_emit_reg): New function.
3675 (ppc64v2_emit_reg): New function.
3676 (ppc64_emit_pop): New function.
3677 (ppc64_emit_stack_flush): New function.
3678 (ppc64_emit_swap): New function.
3679 (ppc64v1_emit_call): New function.
3680 (ppc64v2_emit_call): New function.
3681 (ppc64v1_emit_int_call_1): New function.
3682 (ppc64v2_emit_int_call_1): New function.
3683 (ppc64v1_emit_void_call_2): New function.
3684 (ppc64v2_emit_void_call_2): New function.
3685 (ppc64_emit_if_goto): New function.
3686 (ppc64_emit_eq_goto): New function.
3687 (ppc64_emit_ne_goto): New function.
3688 (ppc64_emit_lt_goto): New function.
3689 (ppc64_emit_le_goto): New function.
3690 (ppc64_emit_gt_goto): New function.
3691 (ppc64_emit_ge_goto): New function.
3692 (ppc64v1_emit_ops_impl): New static variable.
3693 (ppc64v2_emit_ops_impl): New static variable.
3694 (ppc_emit_ops): New function.
3695 (linux_low_target): Wire in ppc_emit_ops.
3696
a2174ba4
MK
36972016-03-31 Wei-cheng Wang <cole945@gmail.com>
3698 Marcin Kościelnicki <koriakin@0x04.net>
3699
3700 PR/17221
3701 * Makefile.in: Add powerpc-*-ipa.o
3702 * configure.srv: Add ipa_obj for powerpc*-linux.
3703 * linux-ppc-ipa.c: New file.
3704 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
3705 includes.
3706 (PPC_FIELD): New macro.
3707 (PPC_SEXT): New macro.
3708 (PPC_OP6): New macro.
3709 (PPC_BO): New macro.
3710 (PPC_LI): New macro.
3711 (PPC_BD): New macro.
3712 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
3713 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
3714 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
3715 (ppc_get_thread_area): New function.
3716 (is_elfv2_inferior): New function.
3717 (gen_ds_form): New function.
3718 (GEN_STD): New macro.
3719 (GEN_STDU): New macro.
3720 (GEN_LD): New macro.
3721 (GEN_LDU): New macro.
3722 (gen_d_form): New function.
3723 (GEN_ADDI): New macro.
3724 (GEN_ADDIS): New macro.
3725 (GEN_LI): New macro.
3726 (GEN_LIS): New macro.
3727 (GEN_ORI): New macro.
3728 (GEN_ORIS): New macro.
3729 (GEN_LWZ): New macro.
3730 (GEN_STW): New macro.
3731 (GEN_STWU): New macro.
3732 (gen_xfx_form): New function.
3733 (GEN_MFSPR): New macro.
3734 (GEN_MTSPR): New macro.
3735 (GEN_MFCR): New macro.
3736 (GEN_MTCR): New macro.
3737 (GEN_SYNC): New macro.
3738 (GEN_LWSYNC): New macro.
3739 (gen_x_form): New function.
3740 (GEN_OR): New macro.
3741 (GEN_MR): New macro.
3742 (GEN_LWARX): New macro.
3743 (GEN_STWCX): New macro.
3744 (GEN_CMPW): New macro.
3745 (gen_md_form): New function.
3746 (GEN_RLDICL): New macro.
3747 (GEN_RLDICR): New macro.
3748 (gen_i_form): New function.
3749 (GEN_B): New macro.
3750 (GEN_BL): New macro.
3751 (gen_b_form): New function.
3752 (GEN_BNE): New macro.
3753 (GEN_LOAD): New macro.
3754 (GEN_STORE): New macro.
3755 (gen_limm): New function.
3756 (gen_atomic_xchg): New function.
3757 (gen_call): New function.
3758 (ppc_relocate_instruction): New function.
3759 (ppc_install_fast_tracepoint_jump_pad): New function.
3760 (ppc_get_min_fast_tracepoint_insn_len): New function.
3761 (ppc_get_ipa_tdesc_idx): New function.
3762 (the_low_target): Wire in the new functions.
3763 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
3764 tdescs.
3765 * linux-ppc-tdesc.h: New file.
3766
a13c4696
MK
37672016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
3768
3769 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
3770 (alloc_jump_pad_buffer): New function.
3771 * linux-amd64-ipa.c: Add <sys/mman.h> include.
3772 (alloc_jump_pad_buffer): New function.
3773 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
3774 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
3775 (alloc_jump_pad_buffer): New function.
3776 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
3777 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
3778 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
3779 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
3780
1cda1512
MK
37812016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
3782
3783 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
3784 * linux-amd64-ipa.c: Likewise.
3785 * linux-i386-ipa.c: Likewise.
3786 * linux-s390-ipa.c: Likewise.
3787 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
3788 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
3789 set_trace_state_variable_value_ptr.
3790 (struct ipa_sym_addresses): Likewise.
3791 (symbol_list): Likewise.
3792 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
3793 accessing gdb_collect directly.
3794 (gdb_collect_ptr_type): New typedef.
3795 (get_raw_reg_ptr_type): New typedef.
3796 (get_trace_state_variable_value_ptr_type): New typedef.
3797 (set_trace_state_variable_value_ptr_type): New typedef.
3798 (gdb_collect_ptr): New global.
3799 (get_raw_reg_ptr): New global.
3800 (get_trace_state_variable_value_ptr): New global.
3801 (set_trace_state_variable_value_ptr): New global.
3802 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
3803 accessing get_raw_reg directly.
3804 (get_get_tsv_func_addr): Likewise for
3805 get_trace_state_variable_value_ptr.
3806 (get_set_tsv_func_addr): Likewise for
3807 set_trace_state_variable_value_ptr.
3808 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
3809
72fb5488
SM
38102016-03-30 Simon Marchi <simon.marchi@ericsson.com>
3811
3812 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
3813
28170b88
MK
38142016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
3815
3816 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
3817 packets.
3818 (relocate_instruction): Remove own_buf.
3819 * server.c (own_buf): Make global.
3820 (handle_v_requests): Make global.
3821 * server.h (own_buf): New declaration.
3822 (handle_v_requests): New prototype.
3823
f39e8743
MK
38242016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
3825
3826 PR 18377
3827 * linux-s390-low.c (add_insns): New function.
3828 (s390_emit_prologue): New function.
3829 (s390_emit_epilogue): New function.
3830 (s390_emit_add): New function.
3831 (s390_emit_sub): New function.
3832 (s390_emit_mul): New function.
3833 (s390_emit_lsh): New function.
3834 (s390_emit_rsh_signed): New function.
3835 (s390_emit_rsh_unsigned): New function.
3836 (s390_emit_ext): New function.
3837 (s390_emit_log_not): New function.
3838 (s390_emit_bit_and): New function.
3839 (s390_emit_bit_or): New function.
3840 (s390_emit_bit_xor): New function.
3841 (s390_emit_bit_not): New function.
3842 (s390_emit_equal): New function.
3843 (s390_emit_less_signed): New function.
3844 (s390_emit_less_unsigned): New function.
3845 (s390_emit_ref): New function.
3846 (s390_emit_if_goto): New function.
3847 (s390_emit_goto): New function.
3848 (s390_write_goto_address): New function.
3849 (s390_emit_litpool): New function.
3850 (s390_emit_const): New function.
3851 (s390_emit_call): New function.
3852 (s390_emit_reg): New function.
3853 (s390_emit_pop): New function.
3854 (s390_emit_stack_flush): New function.
3855 (s390_emit_zero_ext): New function.
3856 (s390_emit_swap): New function.
3857 (s390_emit_stack_adjust): New function.
3858 (s390_emit_set_r2): New function.
3859 (s390_emit_int_call_1): New function.
3860 (s390_emit_void_call_2): New function.
3861 (s390_emit_eq_goto): New function.
3862 (s390_emit_ne_goto): New function.
3863 (s390_emit_lt_goto): New function.
3864 (s390_emit_le_goto): New function.
3865 (s390_emit_gt_goto): New function.
3866 (s390_emit_ge_goto): New function.
3867 (s390x_emit_prologue): New function.
3868 (s390x_emit_epilogue): New function.
3869 (s390x_emit_add): New function.
3870 (s390x_emit_sub): New function.
3871 (s390x_emit_mul): New function.
3872 (s390x_emit_lsh): New function.
3873 (s390x_emit_rsh_signed): New function.
3874 (s390x_emit_rsh_unsigned): New function.
3875 (s390x_emit_ext): New function.
3876 (s390x_emit_log_not): New function.
3877 (s390x_emit_bit_and): New function.
3878 (s390x_emit_bit_or): New function.
3879 (s390x_emit_bit_xor): New function.
3880 (s390x_emit_bit_not): New function.
3881 (s390x_emit_equal): New function.
3882 (s390x_emit_less_signed): New function.
3883 (s390x_emit_less_unsigned): New function.
3884 (s390x_emit_ref): New function.
3885 (s390x_emit_if_goto): New function.
3886 (s390x_emit_const): New function.
3887 (s390x_emit_call): New function.
3888 (s390x_emit_reg): New function.
3889 (s390x_emit_pop): New function.
3890 (s390x_emit_stack_flush): New function.
3891 (s390x_emit_zero_ext): New function.
3892 (s390x_emit_swap): New function.
3893 (s390x_emit_stack_adjust): New function.
3894 (s390x_emit_int_call_1): New function.
3895 (s390x_emit_void_call_2): New function.
3896 (s390x_emit_eq_goto): New function.
3897 (s390x_emit_ne_goto): New function.
3898 (s390x_emit_lt_goto): New function.
3899 (s390x_emit_le_goto): New function.
3900 (s390x_emit_gt_goto): New function.
3901 (s390x_emit_ge_goto): New function.
3902 (s390_emit_ops): New function.
3903 (struct linux_target_ops): Fill in emit_ops hook.
3904
abd9baf9
MK
39052016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
3906
3907 PR 18377
3908 * Makefile.in: Add s390 IPA files.
3909 * configure.srv: Build IPA for s390.
3910 * linux-s390-ipa.c: New file.
3911 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
3912 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
3913 (tdesc_s390_linux32): Likewise.
3914 (init_registers_s390_linux32v1): Likewise.
3915 (tdesc_s390_linux32v1): Likewise.
3916 (init_registers_s390_linux32v2): Likewise.
3917 (tdesc_s390_linux32v2): Likewise.
3918 (init_registers_s390_linux64): Likewise.
3919 (tdesc_s390_linux64): Likewise.
3920 (init_registers_s390_linux64v1): Likewise.
3921 (tdesc_s390_linux64v1): Likewise.
3922 (init_registers_s390_linux64v2): Likewise.
3923 (tdesc_s390_linux64v2): Likewise.
3924 (init_registers_s390_te_linux64): Likewise.
3925 (tdesc_s390_te_linux64): Likewise.
3926 (init_registers_s390_vx_linux64): Likewise.
3927 (tdesc_s390_vx_linux64): Likewise.
3928 (init_registers_s390_tevx_linux64): Likewise.
3929 (tdesc_s390_tevx_linux64): Likewise.
3930 (init_registers_s390x_linux64): Likewise.
3931 (tdesc_s390x_linux64): Likewise.
3932 (init_registers_s390x_linux64v1): Likewise.
3933 (tdesc_s390x_linux64v1): Likewise.
3934 (init_registers_s390x_linux64v2): Likewise.
3935 (tdesc_s390x_linux64v2): Likewise.
3936 (init_registers_s390x_te_linux64): Likewise.
3937 (tdesc_s390x_te_linux64): Likewise.
3938 (init_registers_s390x_vx_linux64): Likewise.
3939 (tdesc_s390x_vx_linux64): Likewise.
3940 (init_registers_s390x_tevx_linux64): Likewise.
3941 (tdesc_s390x_tevx_linux64): Likewise.
3942 (have_hwcap_s390_vx): New static variable.
3943 (s390_arch_setup): Fill have_hwcap_s390_vx.
3944 (s390_get_thread_area): New function.
3945 (s390_ft_entry_gpr_esa): New const.
3946 (s390_ft_entry_gpr_zarch): New const.
3947 (s390_ft_entry_misc): New const.
3948 (s390_ft_entry_fr): New const.
3949 (s390_ft_entry_vr): New const.
3950 (s390_ft_main_31): New const.
3951 (s390_ft_main_64): New const.
3952 (s390_ft_exit_fr): New const.
3953 (s390_ft_exit_vr): New const.
3954 (s390_ft_exit_misc): New const.
3955 (s390_ft_exit_gpr_esa): New const.
3956 (s390_ft_exit_gpr_zarch): New const.
3957 (append_insns): New function.
3958 (s390_relocate_instruction): New function.
3959 (s390_install_fast_tracepoint_jump_pad): New function.
3960 (s390_get_min_fast_tracepoint_insn_len): New function.
3961 (s390_get_ipa_tdesc_idx): New function.
3962 (struct linux_target_ops): Wire in the above functions.
3963 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
3964 * linux-s390-tdesc.h: New file.
3965
a4105d04
MK
39662016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
3967
3968 * linux-s390-low.c (s390_supports_tracepoints): New function.
3969 (struct linux_target_ops): Fill supports_tracepoints hook.
3970
35ac8b3e
YQ
39712016-03-18 Yao Qi <yao.qi@linaro.org>
3972
3973 * linux-low.c (lwp_signal_can_be_delivered): New function.
3974 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
3975
94610ec4
YQ
39762016-03-18 Yao Qi <yao.qi@linaro.org>
3977
3978 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
3979 0 if signal is enqueued. Remove 'signal' from one debugging
3980 message. Move one debugging message to some lines below.
3981 Remove code setting 'signal' to 0.
3982
80aea927
YQ
39832016-03-18 Yao Qi <yao.qi@linaro.org>
3984
3985 * linux-low.c (linux_low_filter_event): Remove redundant
3986 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
3987
b04fd3be
MK
39882016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
3989
3990 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
3991 (struct linux_target_ops): Wire in the above.
3992
c40c8d4b
YQ
39932016-03-03 Yao Qi <yao.qi@linaro.org>
3994
3995 * linux-low.c: Update comments to start_step_over.
3996
0f8288ae
YQ
39972016-03-03 Yao Qi <yao.qi@linaro.org>
3998
3999 PR server/19736
4000 * linux-low.c (handle_extended_wait): Set child suspended
4001 if event_lwp->bp_reinsert isn't zero.
4002
fdbd04a8
YQ
40032016-03-02 Yao Qi <yao.qi@linaro.org>
4004
4005 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
4006 enqueue_pending_signal.
4007
6896a8fa
MK
40082016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
4009
4010 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
4011 is actually loaded.
4012
ab503087
MK
40132016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
4014
4015 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
4016 (s390_regmap_3264) [!__s390x__]: New global.
4017 (s390_collect_ptrace_register): Skip map entries containing -1.
4018 (s390_supply_ptrace_register): Ditto.
4019 (s390_fill_gprs_high): New function.
4020 (s390_store_gprs_high): New function.
4021 (s390_regsets): Add NT_S390_HIGH_GPRS.
4022 (s390_get_hwcap): Enable on 31-bit.
4023 (have_hwcap_s390_high_gprs): Enable on 31-bit.
4024 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
4025 Detect NT_S390_HIGH_GPRS.
4026 (s390_usrregs_info_3264): Enable on 31-bit.
4027 (s390_regs_info): Enable regs_info_3264 on 31-bit.
4028 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
4029
ae91f625
MK
40302016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
4031
4032 PR gdb/13808
4033 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
4034 * configure.srv: Ditto.
4035 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
4036 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
4037 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
4038 (init_registers_amd64_linux): Remove prototype.
4039 (tdesc_amd64_linux): Remove declaration.
4040 (get_ipa_tdesc): New function.
4041 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
4042 initialize remaining tdescs.
4043 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
4044 (init_registers_i386_linux): Remove prototype.
4045 (tdesc_i386_linux): Remove declaration.
4046 (get_ipa_tdesc): New function.
4047 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
4048 initialize remaining tdescs.
4049 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
4050 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
4051 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
4052 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
4053 (x86_get_ipa_tdesc_idx): New function.
4054 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
4055 * linux-x86-tdesc.h: New file.
4056 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
4057 (target_get_ipa_tdesc_idx): New macro.
4058 * tracepoint.c (ipa_tdesc_idx): New macro.
4059 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
4060 (symbol_list): Add ipa_tdesc_idx.
4061 (cmd_qtstart): Write ipa_tdesc_idx in the target.
4062 (ipa_tdesc): Remove.
4063 (ipa_tdesc_idx): New variable.
4064 (get_context_regcache): Use get_ipa_tdesc.
4065 (gdb_collect): Ditto.
4066 (gdb_probe): Ditto.
4067 * tracepoint.h (get_ipa_tdesc): New prototype.
4068 (ipa_tdesc): Remove.
4069
e7ad2f14
PA
40702016-02-24 Pedro Alves <palves@redhat.com>
4071
4072 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
4073 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
4074 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
4075 Factor out common code between the USE_SIGTRAP_SIGINFO and
4076 !USE_SIGTRAP_SIGINFO blocks.
4077 (linux_low_filter_event): Call save_stop_reason instead of
4078 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
4079 Update comments.
4080 (linux_wait_1): Update comments.
4081
657f9cde
WW
40822016-02-24 Wei-cheng Wang <cole945@gmail.com>
4083
4084 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
4085 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
4086 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
4087 ppc_insert_point, ppc_remove_point.
4088
b00b61e1
MK
40892016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
4090
4091 * linux-s390-low.c (s390_supports_z_point_type): New function.
4092 (struct linux_target_ops): Wire s390_supports_z_point_type in.
4093
553cb527
YQ
40942016-02-16 Yao Qi <yao.qi@linaro.org>
4095
4096 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
4097 PC. Get pc from regcache_read_pc.
4098
a5652c21
YQ
40992016-02-12 Yao Qi <yao.qi@linaro.org>
4100
4101 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
4102 or linux_get_pc_32bit.
4103 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
4104
ed443b61
YQ
41052016-02-12 Yao Qi <yao.qi@linaro.org>
4106
4107 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
4108 arm_linux_get_next_pcs_fixup.
4109
020ecd38
MK
41102016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
4111
4112 * tracepoint.c (x_tracepoint_action_download): Change
4113 write_inferior_data_ptr to write_inferior_data_pointer.
4114 (cmd_qtstart): Likewise.
4115 (write_inferior_data_ptr): Remove.
4116 (download_agent_expr): Change write_inferior_data_ptr to
4117 write_inferior_data_pointer.
4118 (download_tracepoint_1): Likewise.
4119 (download_tracepoint): Likewise.
4120 (download_trace_state_variables): Likewise.
4121
7cae9051
WW
41222016-02-11 Wei-cheng Wang <cole945@gmail.com>
4123 Marcin Kościelnicki <koriakin@0x04.net>
4124
4125 * tracepoint.c (struct tracepoint_action_ops): Remove.
4126 (struct tracepoint_action): Remove ops.
4127 (m_tracepoint_action_download, r_tracepoint_action_download)
4128 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
4129 size and offset accordingly.
4130 (m_tracepoint_action_ops, r_tracepoint_action_ops)
4131 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
4132 (tracepoint_action_send, tracepoint_action_download): New functions.
4133 Helpers for trace action handlers.
4134 (add_tracepoint_action): Remove setup actions ops.
4135 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
4136
9f6a71b4
YQ
41372016-02-10 Yao Qi <yao.qi@linaro.org>
4138
4139 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
4140
1e94266c
SM
41412016-02-09 Simon Marchi <simon.marchi@ericsson.com>
4142
4143 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
4144 to AC_OUTPUT.
4145 * configure: Regenerate.
4146
8adce034
SM
41472016-02-09 Simon Marchi <simon.marchi@ericsson.com>
4148
4149 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
4150 void * to gdb_byte *.
4151 * linux-low.c (siginfo_fixup): Likewise.
4152 (linux_xfer_siginfo): Likewise.
4153 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
4154 Likewise.
4155 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
4156
93813b37
WT
41572016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
4158
4159 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
4160 to srv_tgtobj.
4161 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
4162 to srv_tgtobj.
4163 * linux-x86-low.c [__x86_64__]: Include
4164 "nat/amd64-linux-siginfo.h".
4165 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
4166 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
4167 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
4168 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
4169 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
4170 (cpt_si_fd, si_timerid, si_overrun): Move from
4171 nat/amd64-linux-siginfo.c.
4172 * Makefile.in (amd64-linux-siginfo.o:): New rule.
4173
8424cc97
SM
41742016-01-28 Simon Marchi <simon.marchi@ericsson.com>
4175
4176 * server.c (skip_to_semicolon): Remove.
4177 (process_point_options): Use strchrnul instead of
4178 skip_to_semicolon.
4179
4d18591b
YQ
41802016-01-26 Yao Qi <yao.qi@linaro.org>
4181
4182 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
4183 * linux-low.c (install_software_single_step_breakpoints): Don't
4184 call regcache_read_pc.
4185 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
4186 argument pc.
4187
d8020970
YQ
41882016-01-26 Yao Qi <yao.qi@linaro.org>
4189
4190 * linux-low.c (install_software_single_step_breakpoints): Call
4191 regcache_read_pc instead of get_pc.
4192
8b207339
YQ
41932016-01-26 Yao Qi <yao.qi@linaro.org>
4194
4195 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
4196 (unblock_async_io): Rename to ...
4197 (block_unblock_async_io): ... it. New function.
4198 (enable_async_io): Don't install SIGIO handler. Unblock it
4199 instead.
4200 (disable_async_io): Don't ignore SIGIO. Block it instead.
4201 (initialize_async_io): Install SIGIO handler. Don't call
4202 unblock_async_io.
4203
18879fef
YQ
42042016-01-26 Yao Qi <yao.qi@linaro.org>
4205
4206 * remote-utils.c (getpkt): If the buffer isn't empty, and the
4207 first character is '\003', call *the_target->request_interrupt.
4208
a0f8e08a
YQ
42092016-01-25 Yao Qi <yao.qi@linaro.org>
4210
4211 * remote-utils.c (new_thread_notify): Remove.
4212 (dead_thread_notify): Likewise.
4213 * remote-utils.h (new_thread_notify): Remove declaration.
4214 (dead_thread_notify): Likewise.
4215
cc5fd9ab
MK
42162016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
4217
4218 * gdb.trace/pending.exp: Fix expected message on continue.
4219
99e8eb11
MK
42202016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
4221
4222 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
4223 it works properly on big-endian machines where sizeof (CORE_ADDR)
4224 != sizeof (void *).
4225
a994041d
PA
42262016-01-21 Pedro Alves <palves@redhat.com>
4227
4228 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
4229 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
4230 * configure: Regenerate.
4231
f7a6a40d
YQ
42322016-01-21 Yao Qi <yao.qi@linaro.org>
4233
4234 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
4235 is_thumb and set it according to CPSR saved on the stack.
4236 (get_next_pcs_syscall_next_pc): Pass is_thumb to
4237 arm_sigreturn_next_pc.
4238
6f69e520
YQ
42392016-01-18 Yao Qi <yao.qi@linaro.org>
4240
4241 * linux-low.c (linux_set_pc_64bit): New function.
4242 (linux_get_pc_64bit): New function.
4243 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
4244 Declare.
4245 * linux-sparc-low.c (debug_threads): Remove declaration.
4246 (sparc_get_pc): Remove.
4247 (the_low_target): Use linux_get_pc_64bit instead of
4248 sparc_get_pc.
4249 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
4250 (the_low_target): Use linux_get_pc_64bit and
4251 linux_set_pc_64bit.
4252
276d4552
YQ
42532016-01-18 Yao Qi <yao.qi@linaro.org>
4254
4255 * linux-arm-low.c (debug_threads): Remove declaration.
4256 (arm_get_pc, arm_set_pc): Remove.
4257 (the_low_target): Use linux_get_pc_32bit and
4258 linux_set_pc_32bit.
4259 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
4260 (the_low_target): Use linux_get_pc_32bit and
4261 linux_set_pc_32bit.
4262 * linux-cris-low.c (debug_threads): Remove declaration.
4263 (cris_get_pc, cris_set_pc,): Remove.
4264 (the_low_target): Use linux_get_pc_32bit and
4265 linux_set_pc_32bit.
4266 * linux-crisv32-low.c (debug_threads): Remove declaration.
4267 (cris_get_pc, cris_set_pc): Remove.
4268 (the_low_target): Use linux_get_pc_32bit and
4269 linux_set_pc_32bit.
4270 * linux-low.c: Include inttypes.h.
4271 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
4272 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
4273 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
4274 (the_low_target): Use linux_get_pc_32bit and
4275 linux_set_pc_32bit.
4276 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
4277 (the_low_target): Use linux_get_pc_32bit and
4278 linux_set_pc_32bit.
4279 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
4280 (the_low_target): Use linux_get_pc_32bit and
4281 linux_set_pc_32bit.
4282 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
4283 (the_low_target): Use linux_get_pc_32bit and
4284 linux_set_pc_32bit.
4285 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
4286 (the_low_target): Use linux_get_pc_32bit and
4287 linux_set_pc_32bit.
4288
eb0edac8
GB
42892016-01-18 Gary Benson <gbenson@redhat.com>
4290
4291 * configure.ac (AC_FUNC_FORK): New check.
4292 * config.in: Regenerate.
4293 * configure: Likewise.
4294
1b451dda
YQ
42952016-01-14 Yao Qi <yao.qi@linaro.org>
4296
4297 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
4298 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
4299 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
4300 arm_get_next_pcs_ctor.
4301
82075af2
JS
43022016-01-12 Josh Stone <jistone@redhat.com>
4303 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4304
4305 * inferiors.h: Include "gdb_vecs.h".
4306 (struct process_info): Add syscalls_to_catch.
4307 * inferiors.c (remove_process): Free syscalls_to_catch.
4308 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
4309 syscall_return stops.
4310 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
4311 * server.c (handle_general_set): Handle QCatchSyscalls.
4312 (handle_query): Report support for QCatchSyscalls.
4313 * target.h (struct target_ops): Add supports_catch_syscall.
4314 (target_supports_catch_syscall): New macro.
4315 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
4316 (struct lwp_info): Add syscall_state.
4317 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
4318 Maintain syscall_state and syscalls_to_catch across exec.
4319 (get_syscall_trapinfo): New function, proxy to the_low_target.
4320 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
4321 (linux_low_filter_event): Toggle syscall_state entry/return for
4322 syscall traps, and set it ignored for all others.
4323 (gdb_catching_syscalls_p): New function.
4324 (gdb_catch_this_syscall_p): New function.
4325 (linux_wait_1): Handle SYSCALL_SIGTRAP.
4326 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
4327 (linux_supports_catch_syscall): New function.
4328 (linux_target_ops): Install it.
4329 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
4330 (the_low_target): Install it.
4331
8f13a3ce
MF
43322016-01-12 Mike Frysinger <vapier@gentoo.org>
4333
4334 * acinclude.m4: Include new ../warning.m4 file.
4335 * configure: Regenerated.
4336 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
4337
5b3da067
MF
43382016-01-12 Mike Frysinger <vapier@gentoo.org>
4339
4340 * ax.c (is_goto_target): Mark static.
4341 * linux-low.c (register_addr): Likewise.
4342 (linux_fetch_registers, linux_store_registers): Likewise.
4343 * mem-break.c (any_persistent_commands): Fix old prototype.
4344 (add_commands_to_breakpoint): Mark static.
4345 * regcache.c (find_register_by_name): Delete unused func.
4346 * remote-utils.c (hex_or_minus_one): Mark static.
4347 * server.c (monitor_show_help): Mark static.
4348 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
4349 handle_v_requests): Likewise.
4350
bc504a31
PA
43512016-01-12 Pedro Alves <palves@redhat.com>
4352
4353 Remove use of the registered trademark symbol throughout.
4354
5a0dd67a
YQ
43552016-01-08 Yao Qi <yao.qi@linaro.org>
4356
4357 * remote-utils.c (getpkt): If c is '\003', call target hook
4358 request_interrupt.
4359
b2ca446f
YQ
43602016-01-06 Yao Qi <yao.qi@linaro.org>
4361
4362 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
4363 linux-aarch32-low.c.
4364 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4365 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
4366 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
4367 (thumb2_breakpoint): Declare.
4368 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
4369 linux-aarch32-low.h.
4370 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4371 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
4372 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
4373
edd88788
JB
43742016-01-01 Joel Brobecker <brobecker@adacore.com>
4375
4376 * gdbreplay.c (gdbreplay_version): Change copyright year in
4377 version message.
4378 * server.c (gdbserver_version): Likewise.
4379
65da7f14
PP
43802015-12-28 Patrick Palka <patrick@parcs.ath.cx>
4381
4382 * server.c (crc32_table): Delete.
4383 (crc32): Use libiberty's xcrc32 function.
4384
4abd5ed2
JB
43852015-12-22 Joel Brobecker <brobecker@adacore.com>
4386
4387 * lynx-low.c (lynx_delete_thread_callback): New function.
4388 (lynx_mourn): Properly delete our process and all of its
4389 threads. Remove call to clear_inferiors.
4390
0e50fe5c
JB
43912015-12-22 Joel Brobecker <brobecker@adacore.com>
4392
4393 * target.c (thread_search_callback): Add check that
4394 the thread_stopped target callback is not NULL before
4395 calling it.
4396
35adc03f
YQ
43972015-12-21 Yao Qi <yao.qi@linaro.org>
4398
4399 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
4400 arm breakpoint.
4401
bd2b2909
AT
44022015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4403
4404 * server.c (handle_query): Call target_supports_software_single_step.
4405
7fe5e27e
AT
44062015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4407
4408 * linux-low.c (single_step): New function.
4409 (linux_resume_one_lwp_throw): Call single_step.
4410 (start_step_over): Likewise.
4411
d9311bfa
AT
44122015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4413
4414 * Makefile.in (SFILES): Append arch/arm-linux.c,
4415 arch/arm-get-next-pcs.c.
4416 (arm-linux.o): New rule.
4417 (arm-get-next-pcs.o): New rule.
4418 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
4419 arm-linux.o.
4420 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
4421 to linux-aarch32-low.c.
4422 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4423 (arm_breakpoint_len, thumb_breakpoint): Likewise.
4424 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
4425 (thumb2_breakpoint_len): Likewise.
4426 (arm_is_thumb_mode): Make non-static.
4427 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
4428 from linux-aarch32-low.c.
4429 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4430 (arm_breakpoint_len, thumb_breakpoint): Likewise.
4431 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
4432 (thumb2_breakpoint_len): Likewise.
4433 (arm_is_thumb_mode): New declaration.
4434 * linux-arm-low.c: Include arch/arm-linux.h
4435 aarch/arm-get-next-pcs.h, sys/syscall.h.
4436 (get_next_pcs_ops): New struct.
4437 (get_next_pcs_addr_bits_remove): New function.
4438 (get_next_pcs_is_thumb): New function.
4439 (get_next_pcs_read_memory_unsigned_integer): Likewise.
4440 (arm_sigreturn_next_pc): Likewise.
4441 (get_next_pcs_syscall_next_pc): Likewise.
4442 (arm_gdbserver_get_next_pcs): Likewise.
4443 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
4444 Initialize.
4445 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
4446 * server.h: Include gdb_vecs.h.
4447
68ce2059
AT
44482015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4449
4450 * Makefile.in (SFILES): Append common/common-regcache.c.
4451 (OBS): Append common-regcache.o.
4452 (common-regcache.o): New rule.
4453 * regcache.c (init_register_cache): Initialize cache to
4454 REG_UNAVAILABLE.
4455 (regcache_raw_read_unsigned): New function.
4456 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
4457 register_status enum.
4458
fa5308bd
AT
44592015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
4460
4461 * linux-aarch64-low.c (the_low_targets): Rename
4462 breakpoint_reinsert_addr to get_next_pcs.
4463 * linux-arm-low.c (the_low_targets): Likewise.
4464 * linux-bfin-low.c (the_low_targets): Likewise.
4465 * linux-cris-low.c (the_low_targets): Likewise.
4466 * linux-crisv32-low.c (the_low_targets): Likewise.
4467 * linux-low.c (can_software_single_step): Likewise.
4468 (install_software_single_step_breakpoints): New function.
4469 (start_step_over): Use install_software_single_step_breakpoints.
4470 * linux-low.h: New CORE_ADDR vector.
4471 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
4472 get_next_pcs.
4473 * linux-mips-low.c (the_low_targets): Likewise.
4474 * linux-nios2-low.c (the_low_targets): Likewise.
4475 * linux-sparc-low.c (the_low_targets): Likewise.
4476
4a6ed09b
PA
44772015-12-17 Pedro Alves <palves@redhat.com>
4478
4479 * linux-low.c (linux_kill_one_lwp): Remove references to
4480 LinuxThreads.
4481 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
4482 to 'kill'.
4483 (linux_init_signals): Delete.
4484 (initialize_low): Adjust.
4485 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
4486
7544db95
PA
44872015-12-16 Pedro Alves <palves@redhat.com>
4488
4489 * configure.ac (compiler warning flags): When testing a
4490 -Wno-foo option, check whether -Wfoo works instead.
4491 * configure: Regenerate.
4492
8020350c
DB
44932015-12-11 Don Breazeal <donb@codesourcery.com>
4494
4495 * server.c (process_serial_event): Don't exit from gdbserver
4496 in remote mode if there are still active inferiors.
4497
db91f502
YQ
44982015-12-11 Yao Qi <yao.qi@linaro.org>
4499
4500 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
4501 arm_breakpoint_at if the process is 32-bit.
4502
b37a6290
YQ
45032015-12-11 Yao Qi <yao.qi@linaro.org>
4504
4505 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
4506 arm breakpoint.
4507
17b1509a
YQ
45082015-12-07 Yao Qi <yao.qi@linaro.org>
4509
4510 * configure.srv: Append arm.o to srv_tgtobj for
4511 aarch64*-*-linux* target.
4512 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
4513 from linux-arm-low.c.
4514 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
4515 (arm_breakpoint_len, thumb_breakpoint): Likewise.
4516 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
4517 (thumb2_breakpoint_len): Likewise.
4518 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
4519 (arm_breakpoint_kinds): Likewise.
4520 (arm_breakpoint_kind_from_pc): Likewise.
4521 (arm_sw_breakpoint_from_kind): Likewise.
4522 (arm_breakpoint_kind_from_current_state): Likewise.
4523 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
4524 (arm_sw_breakpoint_from_kind): Declare.
4525 (arm_breakpoint_kind_from_current_state): Declare.
4526 (arm_breakpoint_at): Declare.
4527 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
4528 arm_sw_breakpoint_from_kind if process is 32-bit.
4529 (aarch64_breakpoint_kind_from_pc): New function.
4530 (aarch64_breakpoint_kind_from_current_state): New function.
4531 (the_low_target): Initialize fields breakpoint_kind_from_pc
4532 and breakpoint_kind_from_current_state.
4533 * linux-arm-low.c (arm_breakpoint_kinds): Move to
4534 linux-aarch32-low.c.
4535 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
4536 (arm_breakpoint, arm_breakpoint_len): Likewise.
4537 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
4538 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
4539 (arm_is_thumb_mode): Likewise.
4540 (arm_breakpoint_at): Likewise.
4541 (arm_breakpoint_kind_from_pc): Likewise.
4542 (arm_sw_breakpoint_from_kind): Likewise.
4543 (arm_breakpoint_kind_from_current_state): Likewise.
4544
4545 Revert:
4546 2015-08-04 Yao Qi <yao.qi@linaro.org>
4547
4548 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
4549 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
4550 * server.c (extended_protocol): Remove "static".
4551 * server.h (extended_protocol): Declare it.
4552
ece66d65
JS
45532015-12-04 Josh Stone <jistone@redhat.com>
4554
4555 * target.h (struct target_ops) <arch_setup>: Rename to ...
4556 (struct target_ops) <post_create_inferior>: ... this.
4557 (target_arch_setup): Rename to ...
4558 (target_post_create_inferior): ... this, calling post_create_inferior.
4559 * server.c (start_inferior): Update target_arch_setup calls to
4560 target_post_create_inferior.
4561 * linux-low.c (linux_low_ptrace_options): Forward declare.
4562 (linux_arch_setup): Update its comment for general use.
4563 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
4564 (struct linux_target_ops): Use linux_post_create_inferior.
4565 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
4566 to post_create_inferior.
4567 * nto-low.c (struct nto_target_ops): Likewise.
4568 * spu-low.c (struct spu_target_ops): Likewise.
4569 * win32-low.c (struct win32_target_ops): Likewise.
4570
e58c48b4
AT
45712015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
4572
4573 * linux-arm-low.c: Remove duplicate arch/arm.h include.
4574
fbec8956
AT
45752015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4576
4577 * linux-arm-low.c (arm_reinsert_addr): Remove function.
4578 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
4579 * linux-cris-low.c (cris_reinsert_addr> Remove function.
4580 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4581 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
4582 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4583 * linux-mips-low.c (mips_reinsert_addr): Remove function.
4584 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4585 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
4586 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4587 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
4588 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
4589
9b4c5f87
AT
45902015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4591
4592 * linux-low.c (linux_look_up_symbols): Don't call
4593 linux_supports_traceclone.
4594 * linux-low.h (thread_db_init): Remove use_events argument.
4595 * thread-db.c (thread_db_use_event): Remove global variable.
4596 (struct thread_db) <td_thr_event_enable_p>: Remove field.
4597 (struct thread_db) <td_create_bp>: Remove field.
4598 (thread_db_create_event): Remove function.
4599 (thread_db_enable_reporting): Likewise.
4600 (find_one_thread): Don't check for thread_db_use_events.
4601 (attach_thread): Likewise.
4602 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
4603 (try_thread_db_load_1): Don't check for thread_db_use_events.
4604 (thread_db_init): Remove use_events argument and thread events
4605 handling.
4606 (remove_thread_event_breakpoints): Remove function.
4607 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
4608
7d00775e
AT
46092015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4610
4611 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
4612 New function.
4613 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4614 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
4615 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4616 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
4617 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
4618 Initialize.
4619 * linux-crisv32-low.c (cris_supports_hardware_single_step):
4620 New function.
4621 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4622 * linux-low.c (can_hardware_single_step): Use
4623 supports_hardware_single_step.
4624 (can_software_single_step): New function.
4625 (start_step_over): Call can_software_single_step.
4626 (linux_supports_hardware_single_step): New function.
4627 (struct target_ops) <supports_software_single_step>: Initialize.
4628 * linux-low.h (struct linux_target_ops)
4629 <supports_hardware_single_step>: Initialize.
4630 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
4631 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4632 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
4633 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
4634 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
4635 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4636 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
4637 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4638 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
4639 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
4640 Initialize.
4641 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
4642 (struct linux_target_ops) <tile_supports_hardware_single_step>:
4643 Initialize.
4644 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
4645 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4646 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
4647 New function.
4648 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4649 * target.h (struct target_ops): <supports_software_single_step>:
4650 New field.
4651 (target_supports_software_single_step): New macro.
4652
2d97cd35
AT
46532015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4654
4655 * linux-low.c (linux_wait_1): Fix pc advance condition.
4656 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
4657 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
4658
769ef81f
AT
46592015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
4660
4661 * linux-arm-low.c (arm_is_thumb_mode): New function.
4662 (arm_breakpoint_at): Use arm_is_thumb_mode.
4663 (arm_breakpoint_kind_from_current_state): New function.
4664 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
4665 Initialize.
4666 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
4667 (linux_breakpoint_kind_from_current_state): New function.
4668 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
4669 * linux-low.h (struct linux_target_ops)
4670 <breakpoint_kind_from_current_state>: New field.
4671 * target.h (struct target_ops): Likewise.
4672 (target_breakpoint_kind_from_current_state): New macro.
4673
1bebeeca
PA
46742015-11-30 Pedro Alves <palves@redhat.com>
4675
4676 * linux-low.c (linux_resume): Wake up the event loop before
4677 returning.
4678
a67a9fae
PA
46792015-11-30 Pedro Alves <palves@redhat.com>
4680
4681 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
4682 check.
4683 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
4684 to -1.
4685 * target.c (struct thread_search): New structure.
4686 (thread_search_callback): New function.
4687 (prev_general_thread): New global.
4688 (prepare_to_access_memory, done_accessing_memory): New functions.
4689 * target.h (prepare_to_access_memory, done_accessing_memory):
4690 Replace macros with function declarations.
4691
f2faf941
PA
46922015-11-30 Pedro Alves <palves@redhat.com>
4693
4694 PR 14618
4695 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
4696 report TARGET_WAITKIND_NO_RESUMED.
4697 * remote-utils.c (prepare_resume_reply): Handle
4698 TARGET_WAITKIND_NO_RESUMED.
4699 * server.c (report_no_resumed): New global.
4700 (handle_query) <qSupported>: Handle "no-resumed+". Report
4701 "no-resumed+" support.
4702 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
4703 return error if the client doesn't support no-resumed events.
4704 (push_stop_notification): New function.
4705 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
4706 events if the client supports them.
4707
a681f9c9
PA
47082015-11-30 Pedro Alves <palves@redhat.com>
4709
4710 * linux-low.c (thread_still_has_status_pending_p): Don't check
4711 vCont;t here.
4712 (lwp_resumed): New function.
4713 (status_pending_p_callback): Return early if the LWP is not
4714 supposed to be resumed.
4715
65706a29
PA
47162015-11-30 Pedro Alves <palves@redhat.com>
4717
4718 * linux-low.c (handle_extended_wait): Assert that the LWP's
4719 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
4720 thread create events, leave the new child's status pending.
4721 (linux_low_filter_event): If GDB wants to hear about thread exit
4722 events, leave the LWP marked dead and don't delete it.
4723 (linux_wait_for_event_filtered): Don't check for thread exit.
4724 (filter_exit_event): New function.
4725 (linux_wait_1): Use it, when returning an exit event.
4726 (linux_resume_one_lwp_throw): Assert that the LWP's
4727 waitstatus is TARGET_WAITKIND_IGNORE.
4728 * remote-utils.c (prepare_resume_reply): Handle
4729 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
4730 * server.c (report_thread_events): New global.
4731 (handle_general_set): Handle QThreadEvents.
4732 (handle_query) <qSupported>: Handle and report QThreadEvents+;
4733 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
4734 TARGET_WAITKIND_THREAD_EXITED.
4735 * server.h (report_thread_events): Declare.
4736
56cf4bed
PA
47372015-11-30 Pedro Alves <palves@redhat.com>
4738
4739 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
4740 the thread's last_resume_kind was resume_stop.
4741
500c1d85
PA
47422015-11-30 Pedro Alves <palves@redhat.com>
4743
4744 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
4745 before returning.
4746
de979965
PA
47472015-11-30 Pedro Alves <palves@redhat.com>
4748
4749 * server.c (handle_v_requests): Handle vCtrlC.
4750
34c65914
PA
47512015-11-30 Pedro Alves <palves@redhat.com>
4752
4753 * gdbthread.h (find_any_thread_of_pid): Declare.
4754 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
4755 functions.
4756 * server.c (handle_query): If current_thread is NULL, look for
4757 another thread of the selected process.
4758
79efa585 47592015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 4760 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
4761
4762 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
4763 * server.c (handle_qxfer_threads_worker): Refactor to include thread
4764 name in reply.
4765 * target.h (struct target_ops) <thread_name>: New field.
4766 (target_thread_name): New macro.
4767
80d82c19
JB
47682015-11-23 Joel Brobecker <brobecker@adacore.com>
4769
4770 * regcache.h (regcache_invalidate_pid): Add declaration.
4771 * regcache.c (regcache_invalidate_pid): New function, extracted
4772 from regcache_invalidate.
4773 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
4774 Add trivial documentation comment.
4775 * lynx-low.c: Use regcache_invalidate_pid instead of
4776 regcache_invalidate.
4777
64da5dd5
JB
47782015-11-23 Joel Brobecker <brobecker@adacore.com>
4779
4780 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
4781 and Elf64_auxv_t if the target is Android.
4782
37ce4055
DE
47832015-11-22 Doug Evans <xdje42@gmail.com>
4784
4785 * target.h: #include <sys/types.h>.
4786
06e03fff
PA
47872015-11-19 Pedro Alves <palves@redhat.com>
4788
4789 * linux-low.c (linux_process_qsupported): Change prototype.
4790 Adjust.
4791 * linux-low.h (struct linux_target_ops) <process_qsupported>:
4792 Change prototype.
4793 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
4794 and adjust to loop over all features.
4795 * server.c (handle_query) <qSupported>: Adjust to call
4796 target_process_qsupported once, passing it a vector of unprocessed
4797 features.
4798 * target.h (struct target_ops) <process_qsupported>: Change
4799 prototype.
4800 (target_process_qsupported): Adjust.
4801
9a084706
PA
48022015-11-19 Pedro Alves <palves@redhat.com>
4803
4804 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
4805 mode.
4806 * configure: Regenerate.
4807
dad44a1f
PA
48082015-11-19 Pedro Alves <palves@redhat.com>
4809
4810 * configure: Regenerate.
4811
231c0592
YQ
48122015-11-19 Yao Qi <yao.qi@linaro.org>
4813
4814 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
4815 type to uint32_t.
4816
6c1c9a8b
YQ
48172015-11-19 Yao Qi <yao.qi@linaro.org>
4818
4819 * linux-aarch64-low.c (enum aarch64_operand_type): New.
4820 (struct aarch64_operand): Move enum out.
4821
9caa3311
YQ
48222015-11-19 Yao Qi <yao.qi@linaro.org>
4823
4824 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
4825 struct user_fpsimd_state *.
4826 (aarch64_store_fpregset): Likewise.
4827
6a69a054
YQ
48282015-11-19 Yao Qi <yao.qi@linaro.org>
4829
4830 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
4831 struct user_pt_regs *.
4832 (aarch64_store_gregset): Likewise.
4833
1798301e
PA
48342015-11-18 Pedro Alves <palves@redhat.com>
4835
4836 * Makefile.in (all_object_files): Add $IPA_OBJS.
4837
ce7715e2
PA
48382015-11-17 Pedro Alves <palves@redhat.com>
4839
4840 * win32-low.c (win32_resume): Use gdb_signal_from_host,
4841 GDB_SIGNAL_0 and gdb_signal_to_string.
4842
c0879059
PA
48432015-11-17 Pedro Alves <palves@redhat.com>
4844
4845 * win32-low.c (handle_output_debug_string): Remove parameter.
4846 (win32_kill): Remove our_status local and adjust call to
4847 handle_output_debug_string.
4848 (get_child_debug_event): Adjust call to
4849 handle_output_debug_string.
4850
1996e237
SM
48512015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4852
4853 * linux-mips-low.c (mips_fill_gregset): Add cast.
4854 (mips_store_gregset): Likewise.
4855 (mips_fill_fpregset): Likewise.
4856 (mips_store_fpregset): Likewise.
4857
cbec665b
SM
48582015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4859
4860 * linux-mips-low.c (mips_add_watchpoint): Rename private to
4861 priv.
4862
eb3e3c67
SM
48632015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4864
4865 * linux-mips-low.c (mips_linux_new_thread): Change type of
4866 watch_type to enum target_hw_bp_type.
4867
171de4b8
SM
48682015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4869
4870 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
4871 Change return type to arm_hwbp_type.
4872
04248ead
SM
48732015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4874
4875 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
4876 (arm_store_gregset): Likewise.
4877 * linux-arm-low.c (arm_get_hwcap): Likewise.
4878 (arm_read_description): Likewise.
4879
04b3479c
SM
48802015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4881
4882 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
4883
2bc84e8a
SM
48842015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4885
4886 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
4887 (ppc_fill_vsxregset): Likewise.
4888 (ppc_store_vsxregset): Likewise.
4889 (ppc_fill_vrregset): Likewise.
4890 (ppc_store_vrregset): Likewise.
4891 (ppc_fill_evrregset): Likewise.
4892 (ppc_store_evrregset): Likewise.
4893
e6c5bb05
SM
48942015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4895
4896 * linux-ppc-low.c (ppc_usrregs_info): Remove
4897 forward-declaration.
4898 (ppc_arch_setup): Move lower in file.
4899
7ea45d72
SM
49002015-10-30 Simon Marchi <simon.marchi@ericsson.com>
4901
4902 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
4903 (ps_pdwrite): Likewise.
4904
69291610
HW
49052015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
4906
4907 * linux-arm-low.c (arm_new_thread): Move pointer dereference
4908 to after assert checks.
4909
b42945fd
SM
49102015-10-29 Simon Marchi <simon.marchi@ericsson.com>
4911
4912 * proc-service.c (ps_pdread): Add/adjust casts.
4913 (ps_pdwrite): Add/adjust casts.
4914
d6f85c84
SM
49152015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
4916
4917 * server.c (handle_search_memory_1): Cast return value of
4918 memmem.
4919
f98cd059
SM
49202015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
4921
4922 * server.c (write_qxfer_response): Change type of data to
4923 gdb_byte *.
4924
d2412fa5
PA
49252015-10-29 Pedro Alves <palves@redhat.com>
4926
4927 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
4928
c17414a2
PA
49292015-10-29 Pedro Alves <palves@redhat.com>
4930
4931 * tracepoint.c (clear_installed_tracepoints): Add casts.
4932
e053fbc4
PA
49332015-10-29 Pedro Alves <palves@redhat.com>
4934
4935 * server.c (handle_v_cont, process_serial_event): Add enum
4936 gdb_signal casts to signal parsing code.
4937
add67df8
PA
49382015-10-29 Pedro Alves <palves@redhat.com>
4939
4940 * linux-low.h (NULL_REGSET): Define.
4941 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
4942 * linux-arm-low.c (arm_regsets): Likewise.
4943 * linux-crisv32-low.c (cris_regsets): Likewise.
4944 * linux-m68k-low.c (m68k_regsets): Likewise.
4945 * linux-mips-low.c (mips_regsets): Likewise.
4946 * linux-nios2-low.c (nios2_regsets): Likewise.
4947 * linux-ppc-low.c (ppc_regsets): Likewise.
4948 * linux-s390-low.c (s390_regsets): Likewise.
4949 * linux-sh-low.c (sh_regsets): Likewise.
4950 * linux-sparc-low.c (sparc_regsets): Likewise.
4951 * linux-tic6x-low.c (tic6x_regsets): Likewise.
4952 * linux-tile-low.c (tile_regsets): Likewise.
4953 * linux-x86-low.c (x86_regsets): Likewise.
4954 * linux-xtensa-low.c (xtensa_regsets): Likewise.
4955
50bc912a
PA
49562015-10-29 Pedro Alves <palves@redhat.com>
4957
4958 * linux-low.h (NULL_REGSET): Define.
4959 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
4960 * linux-arm-low.c (arm_regsets): Likewise.
4961 * linux-crisv32-low.c (cris_regsets): Likewise.
4962 * linux-m68k-low.c (m68k_regsets): Likewise.
4963 * linux-mips-low.c (mips_regsets): Likewise.
4964 * linux-nios2-low.c (nios2_regsets): Likewise.
4965 * linux-ppc-low.c (ppc_regsets): Likewise.
4966 * linux-s390-low.c (s390_regsets): Likewise.
4967 * linux-sh-low.c (sh_regsets): Likewise.
4968 * linux-sparc-low.c (sparc_regsets): Likewise.
4969 * linux-tic6x-low.c (tic6x_regsets): Likewise.
4970 * linux-tile-low.c (tile_regsets): Likewise.
4971 * linux-x86-low.c (x86_regsets): Likewise.
4972 * linux-xtensa-low.c (xtensa_regsets): Likewise.
4973
682b2546
DE
49742015-10-26 Doug Evans <dje@google.com>
4975
4976 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
4977
963843d4
DE
49782015-10-26 Doug Evans <dje@google.com>
4979
4980 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
4981
d41401ac
DE
49822015-10-26 Doug Evans <dje@google.com>
4983
4984 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
4985 for debug_printf.
4986 (attach_thread, find_new_threads_callback): Ditto.
4987
3db28855
AT
49882015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
4989
4990 * mem-break.h (set_breakpoint_data): Remove.
4991
fb78e89c
AT
49922015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
4993
4994 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
4995 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
4996 (initialize_low): Remove set_breakpoint_data call.
4997 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
4998 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
4999 (initialize_low): Remove set_breakpoint_data call.
5000 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
5001 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
5002 (initialize_low): Remove set_breakpoint_data call.
5003
2e6ee069
AT
50042015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
5005
5006 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
5007 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
5008 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
5009 * target.h (target_breakpoint_kind_from_pc): New macro.
5010
1652a986
AT
50112015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
5012
5013 * linux-low.c (default_breakpoint_kind_from_pc): New function.
5014 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
5015 the default breakpoint kind.
5016
abeead09
AT
50172015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5018
5019 * linux-arm-low.c (arm_supports_z_point_type): Add software
5020 breakpoint support.
5021
b0b4b501
AT
50222015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5023
5024 * linux-arm-low.c: Refactor breakpoint definitions.
5025 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
5026 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
5027
8689682c
AT
50282015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5029
5030 * Makefile.in: Add arm.c/o.
5031 * configure.srv: Likewise.
5032 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
5033 (arm_breakpoint_kind_from_pc): New function.
5034 (arm_sw_breakpoint_from_kind): Return proper kind.
5035 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
5036
27165294
AT
50372015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5038
5039 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
5040 removal.
5041 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
5042 (struct raw_breakpoint) <size>: Remove.
5043 (struct raw_breakpoint) <kind>: Add.
5044 (bp_size): New function.
5045 (bp_opcode): Likewise.
5046 (find_raw_breakpoint_at): Adjust for kind.
5047 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
5048 (remove_memory_breakpoint): Adjust for kind call bp_size.
5049 (set_raw_breakpoint_at): Adjust for kind.
5050 (set_breakpoint): Likewise.
5051 (set_breakpoint_at): Call breakpoint_kind_from_pc.
5052 (delete_raw_breakpoint): Adjust for kind.
5053 (delete_breakpoint): Likewise.
5054 (find_gdb_breakpoint): Likewise.
5055 (set_gdb_breakpoint_1): Likewise.
5056 (set_gdb_breakpoint): Likewise.
5057 (delete_gdb_breakpoint_1): Likewise.
5058 (delete_gdb_breakpoint): Likewise.
5059 (uninsert_raw_breakpoint): Likewise.
5060 (reinsert_raw_breakpoint): Likewise.
5061 (set_breakpoint_data): Remove.
5062 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
5063 (check_mem_read): Adjust for kind call bp_size.
5064 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
5065 (clone_one_breakpoint): Adjust for kind.
5066 * mem-break.h (set_gdb_breakpoint): Likewise.
5067 (delete_gdb_breakpoint): Likewise.
5068 * server.c (process_serial_event): Likewise.
5069
dd373349
AT
50702015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5071
5072 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
5073 (struct linux_target_ops) <breakpoint>: Remove.
5074 (struct linux_target_ops) <breakpoint_len>: Remove.
5075 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5076 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5077 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
5078 (arm_sw_breakpoint_from_kind): New function.
5079 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
5080 (struct linux_target_ops) <breakpoint>: Remove.
5081 (struct linux_target_ops) <breakpoint_len>: Remove.
5082 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5083 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5084 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
5085 (struct linux_target_ops) <breakpoint>: Remove.
5086 (struct linux_target_ops) <breakpoint_len>: Remove.
5087 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5088 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5089 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
5090 (struct linux_target_ops) <breakpoint>: Remove.
5091 (struct linux_target_ops) <breakpoint_len>: Remove.
5092 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5093 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5094 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
5095 and sw_breakpoint_from_kind to increment the pc.
5096 (linux_breakpoint_kind_from_pc): New function.
5097 (linux_sw_breakpoint_from_kind): New function.
5098 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
5099 (initialize_low): Call breakpoint_kind_from_pc and
5100 sw_breakpoint_from_kind to replace breakpoint_data/len.
5101 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
5102 New field.
5103 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
5104 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
5105 (struct linux_target_ops) <breakpoint>: Remove.
5106 (struct linux_target_ops) <breakpoint_len>: Remove.
5107 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5108 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5109 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
5110 (struct linux_target_ops) <breakpoint>: Remove.
5111 (struct linux_target_ops) <breakpoint_len>: Remove.
5112 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5113 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5114 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
5115 (struct linux_target_ops) <breakpoint>: Remove.
5116 (struct linux_target_ops) <breakpoint_len>: Remove.
5117 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5118 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5119 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
5120 (struct linux_target_ops) <breakpoint>: Remove.
5121 (struct linux_target_ops) <breakpoint_len>: Remove.
5122 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5123 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5124 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
5125 (struct linux_target_ops) <breakpoint>: Remove.
5126 (struct linux_target_ops) <breakpoint_len>: Remove.
5127 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5128 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5129 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
5130 (struct linux_target_ops) <breakpoint>: Remove.
5131 (struct linux_target_ops) <breakpoint_len>: Remove.
5132 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5133 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5134 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
5135 (struct linux_target_ops) <breakpoint>: Remove.
5136 (struct linux_target_ops) <breakpoint_len>: Remove.
5137 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5138 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5139 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
5140 (struct linux_target_ops) <breakpoint>: Remove.
5141 (struct linux_target_ops) <breakpoint_len>: Remove.
5142 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5143 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5144 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
5145 (struct linux_target_ops) <breakpoint>: Remove.
5146 (struct linux_target_ops) <breakpoint_len>: Remove.
5147 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5148 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5149 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
5150 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
5151 (struct linux_target_ops) <breakpoint>: Remove.
5152 (struct linux_target_ops) <breakpoint_len>: Remove.
5153 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5154 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5155 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
5156 (struct linux_target_ops) <breakpoint>: Remove.
5157 (struct linux_target_ops) <breakpoint_len>: Remove.
5158 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5159 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5160
4cd98a19
AT
51612015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5162
5163 * linux-cris-low.c (cris_get_pc): Remove void arg.
5164
774ee6d2
AR
51652015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
5166
5167 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
5168 variable name.
5169
833dcd29
AR
51702015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
5171
5172 * inferiors.c (thread_pid_matches_callback): New function.
5173 (find_thread_process): New function.
5174 (remove_thread): Reset current_thread.
5175 (remove_process): Assert threads have been removed first.
5176
8d689ee5
YQ
51772015-10-15 Yao Qi <yao.qi@linaro.org>
5178
5179 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
5180 if it is 3.
5181 (aarch64_remove_point): Likewise.
5182 * regcache.c (regcache_register_size): New function.
5183
1c2e1515
YQ
51842015-10-12 Yao Qi <yao.qi@linaro.org>
5185
5186 * linux-aarch64-low.c: Update all callers as emit_load_store
5187 is renamed to aarch64_emit_load_store.
5188
e1c587c3
YQ
51892015-10-12 Yao Qi <yao.qi@linaro.org>
5190
5191 * linux-aarch64-low.c: Update all callers of function renaming
5192 from emit_insn to aarch64_emit_insn.
5193
b6542f81
YQ
51942015-10-12 Yao Qi <yao.qi@linaro.org>
5195
5196 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
5197 arch/aarch64-insn.h.
5198 (struct aarch64_memory_operand): Likewise.
5199 (ENCODE): Likewise.
5200 (emit_insn): Move to arch/aarch64-insn.c.
5201 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
5202 (emit_load_store): Move to arch/aarch64-insn.c.
5203 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
5204 (can_encode_int32): Remove.
5205
246994ce
YQ
52062015-10-12 Yao Qi <yao.qi@linaro.org>
5207
5208 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
5209 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
5210 (aarch64_relocate_instruction): Likewise.
5211 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
5212 (struct aarch64_insn_visitor): Likewise.
5213
0badd99f
YQ
52142015-10-12 Yao Qi <yao.qi@linaro.org>
5215
5216 * linux-aarch64-low.c (struct aarch64_insn_data): New.
5217 (struct aarch64_insn_visitor): New.
5218 (struct aarch64_insn_relocation_data): New.
5219 (aarch64_ftrace_insn_reloc_b): New function.
5220 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
5221 (aarch64_ftrace_insn_reloc_cb): Likewise.
5222 (aarch64_ftrace_insn_reloc_tb): Likewise.
5223 (aarch64_ftrace_insn_reloc_adr): Likewise.
5224 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
5225 (aarch64_ftrace_insn_reloc_others): Likewise.
5226 (visitor): New.
5227 (aarch64_relocate_instruction): Use visitor.
5228
dfaffe9d
YQ
52292015-10-12 Yao Qi <yao.qi@linaro.org>
5230
5231 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
5232 int. Add argument buf.
5233 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
5234 aarch64_relocate_instruction.
5235
70b439f0
YQ
52362015-10-12 Yao Qi <yao.qi@linaro.org>
5237
5238 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
5239 argument insn. Remove local variable insn. Don't call
5240 target_read_uint32.
5241 (aarch64_install_fast_tracepoint_jump_pad): Call
5242 target_read_uint32.
5243
7781c06f
YQ
52442015-09-30 Yao Qi <yao.qi@linaro.org>
5245
5246 * linux-aarch64-low.c (emit_movk): Shorten a long line.
5247 (emit_load_store_pair): Likewise.
5248
9a3c8263
SM
52492015-09-25 Simon Marchi <simon.marchi@ericsson.com>
5250
5251 * dll.c (match_dll): Add cast(s).
5252 (unloaded_dll): Likewise.
5253 * linux-low.c (second_thread_of_pid_p): Likewise.
5254 (delete_lwp_callback): Likewise.
5255 (count_events_callback): Likewise.
5256 (select_event_lwp_callback): Likewise.
5257 (linux_set_resume_request): Likewise.
5258 * server.c (accumulate_file_name_length): Likewise.
5259 (emit_dll_description): Likewise.
5260 (handle_qxfer_threads_worker): Likewise.
5261 (visit_actioned_threads): Likewise.
5262 * thread-db.c (any_thread_of): Likewise.
5263 * tracepoint.c (same_process_p): Likewise.
5264 (match_blocktype): Likewise.
5265 (build_traceframe_info_xml): Likewise.
5266
224c3ddb
SM
52672015-09-25 Simon Marchi <simon.marchi@ericsson.com>
5268
5269 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
5270 assignment.
5271 (gdb_unparse_agent_expr): Likewise.
5272 * hostio.c (require_data): Likewise.
5273 (handle_pread): Likewise.
5274 * linux-low.c (disable_regset): Likewise.
5275 (fetch_register): Likewise.
5276 (store_register): Likewise.
5277 (get_dynamic): Likewise.
5278 (linux_qxfer_libraries_svr4): Likewise.
5279 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
5280 (set_fast_tracepoint_jump): Likewise.
5281 (uninsert_fast_tracepoint_jumps_at): Likewise.
5282 (reinsert_fast_tracepoint_jumps_at): Likewise.
5283 (validate_inserted_breakpoint): Likewise.
5284 (clone_agent_expr): Likewise.
5285 * regcache.c (init_register_cache): Likewise.
5286 * remote-utils.c (putpkt_binary_1): Likewise.
5287 (decode_M_packet): Likewise.
5288 (decode_X_packet): Likewise.
5289 (look_up_one_symbol): Likewise.
5290 (relocate_instruction): Likewise.
5291 (monitor_output): Likewise.
5292 * server.c (handle_search_memory): Likewise.
5293 (handle_qxfer_exec_file): Likewise.
5294 (handle_qxfer_libraries): Likewise.
5295 (handle_qxfer): Likewise.
5296 (handle_query): Likewise.
5297 (handle_v_cont): Likewise.
5298 (handle_v_run): Likewise.
5299 (captured_main): Likewise.
5300 * target.c (write_inferior_memory): Likewise.
5301 * thread-db.c (try_thread_db_load_from_dir): Likewise.
5302 * tracepoint.c (init_trace_buffer): Likewise.
5303 (add_tracepoint_action): Likewise.
5304 (add_traceframe): Likewise.
5305 (add_traceframe_block): Likewise.
5306 (cmd_qtdpsrc): Likewise.
5307 (cmd_qtdv): Likewise.
5308 (cmd_qtstatus): Likewise.
5309 (response_source): Likewise.
5310 (response_tsv): Likewise.
5311 (cmd_qtnotes): Likewise.
5312 (gdb_collect): Likewise.
5313 (initialize_tracepoint): Likewise.
5314
afbe19f8
PL
53152015-09-21 Pierre Langlois <pierre.langlois@arm.com>
5316
5317 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
5318 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
5319 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
5320 <NOP>: New.
5321 (enum aarch64_condition_codes): New enum.
5322 (w0): New static global.
5323 (fp): Likewise.
5324 (lr): Likewise.
5325 (struct aarch64_memory_operand) <type>: New
5326 MEMORY_OPERAND_POSTINDEX type.
5327 (postindex_memory_operand): New helper function.
5328 (emit_ret): New function.
5329 (emit_load_store_pair): New function, factored out of emit_stp
5330 with support for MEMORY_OPERAND_POSTINDEX.
5331 (emit_stp): Rewrite using emit_load_store_pair.
5332 (emit_ldp): New function.
5333 (emit_load_store): Likewise.
5334 (emit_ldr): Mention post-index instruction in comment.
5335 (emit_ldrh): New function.
5336 (emit_ldrb): New function.
5337 (emit_ldrsw): Mention post-index instruction in comment.
5338 (emit_str): Likewise.
5339 (emit_subs): New function.
5340 (emit_cmp): Likewise.
5341 (emit_and): Likewise.
5342 (emit_orr): Likewise.
5343 (emit_orn): Likewise.
5344 (emit_eor): Likewise.
5345 (emit_mvn): Likewise.
5346 (emit_lslv): Likewise.
5347 (emit_lsrv): Likewise.
5348 (emit_asrv): Likewise.
5349 (emit_mul): Likewise.
5350 (emit_sbfm): Likewise.
5351 (emit_sbfx): Likewise.
5352 (emit_ubfm): Likewise.
5353 (emit_ubfx): Likewise.
5354 (emit_csinc): Likewise.
5355 (emit_cset): Likewise.
5356 (emit_nop): Likewise.
5357 (emit_ops_insns): New helper function.
5358 (emit_pop): Likewise.
5359 (emit_push): Likewise.
5360 (aarch64_emit_prologue): New function.
5361 (aarch64_emit_epilogue): Likewise.
5362 (aarch64_emit_add): Likewise.
5363 (aarch64_emit_sub): Likewise.
5364 (aarch64_emit_mul): Likewise.
5365 (aarch64_emit_lsh): Likewise.
5366 (aarch64_emit_rsh_signed): Likewise.
5367 (aarch64_emit_rsh_unsigned): Likewise.
5368 (aarch64_emit_ext): Likewise.
5369 (aarch64_emit_log_not): Likewise.
5370 (aarch64_emit_bit_and): Likewise.
5371 (aarch64_emit_bit_or): Likewise.
5372 (aarch64_emit_bit_xor): Likewise.
5373 (aarch64_emit_bit_not): Likewise.
5374 (aarch64_emit_equal): Likewise.
5375 (aarch64_emit_less_signed): Likewise.
5376 (aarch64_emit_less_unsigned): Likewise.
5377 (aarch64_emit_ref): Likewise.
5378 (aarch64_emit_if_goto): Likewise.
5379 (aarch64_emit_goto): Likewise.
5380 (aarch64_write_goto_address): Likewise.
5381 (aarch64_emit_const): Likewise.
5382 (aarch64_emit_call): Likewise.
5383 (aarch64_emit_reg): Likewise.
5384 (aarch64_emit_pop): Likewise.
5385 (aarch64_emit_stack_flush): Likewise.
5386 (aarch64_emit_zero_ext): Likewise.
5387 (aarch64_emit_swap): Likewise.
5388 (aarch64_emit_stack_adjust): Likewise.
5389 (aarch64_emit_int_call_1): Likewise.
5390 (aarch64_emit_void_call_2): Likewise.
5391 (aarch64_emit_eq_goto): Likewise.
5392 (aarch64_emit_ne_goto): Likewise.
5393 (aarch64_emit_lt_goto): Likewise.
5394 (aarch64_emit_le_goto): Likewise.
5395 (aarch64_emit_gt_goto): Likewise.
5396 (aarch64_emit_ge_got): Likewise.
5397 (aarch64_emit_ops_impl): New static global variable.
5398 (aarch64_emit_ops): New target function, return
5399 &aarch64_emit_ops_impl.
5400 (struct linux_target_ops): Install it.
5401
bb903df0
PL
54022015-09-21 Pierre Langlois <pierre.langlois@arm.com>
5403
5404 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
5405 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
5406 aarch64-ipa.o.
5407 * linux-aarch64-ipa.c: New file.
5408 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
5409 and endian.h.
5410 (aarch64_get_thread_area): New target method.
5411 (extract_signed_bitfield): New helper function.
5412 (aarch64_decode_ldr_literal): New function.
5413 (enum aarch64_opcodes): New enum.
5414 (struct aarch64_register): New struct.
5415 (struct aarch64_operand): New struct.
5416 (x0): New static global.
5417 (x1): Likewise.
5418 (x2): Likewise.
5419 (x3): Likewise.
5420 (x4): Likewise.
5421 (w2): Likewise.
5422 (ip0): Likewise.
5423 (sp): Likewise.
5424 (xzr): Likewise.
5425 (aarch64_register): New helper function.
5426 (register_operand): Likewise.
5427 (immediate_operand): Likewise.
5428 (struct aarch64_memory_operand): New struct.
5429 (offset_memory_operand): New helper function.
5430 (preindex_memory_operand): Likewise.
5431 (enum aarch64_system_control_registers): New enum.
5432 (ENCODE): New macro.
5433 (emit_insn): New helper function.
5434 (emit_b): New function.
5435 (emit_bcond): Likewise.
5436 (emit_cb): Likewise.
5437 (emit_tb): Likewise.
5438 (emit_blr): Likewise.
5439 (emit_stp): Likewise.
5440 (emit_ldp_q_offset): Likewise.
5441 (emit_stp_q_offset): Likewise.
5442 (emit_load_store): Likewise.
5443 (emit_ldr): Likewise.
5444 (emit_ldrsw): Likewise.
5445 (emit_str): Likewise.
5446 (emit_ldaxr): Likewise.
5447 (emit_stxr): Likewise.
5448 (emit_stlr): Likewise.
5449 (emit_data_processing_reg): Likewise.
5450 (emit_data_processing): Likewise.
5451 (emit_add): Likewise.
5452 (emit_sub): Likewise.
5453 (emit_mov): Likewise.
5454 (emit_movk): Likewise.
5455 (emit_mov_addr): Likewise.
5456 (emit_mrs): Likewise.
5457 (emit_msr): Likewise.
5458 (emit_sevl): Likewise.
5459 (emit_wfe): Likewise.
5460 (append_insns): Likewise.
5461 (can_encode_int32_in): New helper function.
5462 (aarch64_relocate_instruction): New function.
5463 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
5464 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
5465 (struct linux_target_ops): Install aarch64_get_thread_area,
5466 aarch64_install_fast_tracepoint_jump_pad and
5467 aarch64_get_min_fast_tracepoint_insn_len.
5468
787749ea
PL
54692015-09-21 Pierre Langlois <pierre.langlois@arm.com>
5470
5471 * Makefile.in (aarch64-insn.o): New rule.
5472 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
5473
9812b2e6
YQ
54742015-09-21 Yao Qi <yao.qi@linaro.org>
5475
5476 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
5477
18fe412b
YQ
54782015-09-21 Yao Qi <yao.qi@linaro.org>
5479
5480 * tracepoint.c (max_jump_pad_size): Remove.
5481
a0cc84cd
YQ
54822015-09-18 Yao Qi <yao.qi@linaro.org>
5483
5484 * linux-aarch64-low.c: Don't include sys/uio.h.
5485 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
5486
d78908cf
WW
54872015-09-16 Wei-cheng Wang <cole945@gmail.com>
5488
5489 * tracepoint.c (eval_result_type): Change prototype.
5490 (condition_true_at_tracepoint): Fix argument to compiled_cond.
5491
d57e0d50
PA
54922015-09-15 Pedro Alves <palves@redhat.com>
5493
5494 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
5495 Check whether to report exec events instead of checking whether
5496 multiprocess is enabled.
5497
5a676acc
PA
54982015-09-15 Pedro Alves <palves@redhat.com>
5499
5500 PR remote/18965
5501 * remote-utils.c (prepare_resume_reply): Merge
5502 TARGET_WAITKIND_VFORK_DONE switch case with the
5503 TARGET_WAITKIND_FORKED case.
5504
7c5d0fad
YQ
55052015-09-15 Yao Qi <yao.qi@linaro.org>
5506
5507 * server.c (handle_query): Check string comparison using
5508 "else if" instead of "if".
5509
750ce8d1
YQ
55102015-09-15 Yao Qi <yao.qi@linaro.org>
5511
5512 * server.c (vCont_supported): New global variable.
5513 (handle_query): Set vCont_supported to 1 if "vContSupported+"
5514 matches. Append ";vContSupported+" to own_buf.
5515 (handle_v_requests): Append ";s;S" to own_buf if target supports
5516 hardware single step or vCont_supported is false.
5517 (capture_main): Set vCont_supported to zero.
5518
70b90b91
YQ
55192015-09-15 Yao Qi <yao.qi@linaro.org>
5520
5521 * linux-low.c (linux_supports_conditional_breakpoints): Rename
5522 it to ...
5523 (linux_supports_hardware_single_step): ... New function.
5524 (linux_target_ops): Update.
5525 * lynx-low.c (lynx_target_ops): Set field
5526 supports_hardware_single_step to target_can_do_hardware_single_step.
5527 * nto-low.c (nto_target_ops): Likewise.
5528 * spu-low.c (spu_target_ops): Likewise.
5529 * win32-low.c (win32_target_ops): Likewise.
5530 * target.c (target_can_do_hardware_single_step): New function.
5531 * target.h (struct target_ops) <supports_conditional_breakpoints>:
5532 Remove. <supports_hardware_single_step>: New field.
5533 (target_supports_conditional_breakpoints): Remove.
5534 (target_supports_hardware_single_step): New macro.
5535 (target_can_do_hardware_single_step): Declare.
5536 * server.c (handle_query): Use target_supports_hardware_single_step
5537 instead of target_supports_conditional_breakpoints.
5538
ade90bde
YQ
55392015-09-15 Yao Qi <yao.qi@linaro.org>
5540
5541 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
5542 function.
5543 (struct linux_target_ops the_low_target): Install
5544 aarch64_linux_siginfo_fixup.
5545
94585166
DB
55462015-09-11 Don Breazeal <donb@codesourcery.com>
5547 Luis Machado <lgustavo@codesourcery.com>
5548
5549 * linux-low.c (linux_mourn): Static declaration.
5550 (linux_arch_setup): Move in front of
5551 handle_extended_wait.
5552 (linux_arch_setup_thread): New function.
5553 (handle_extended_wait): Handle exec events. Call
5554 linux_arch_setup_thread. Make event_lwp argument a
5555 pointer-to-a-pointer.
5556 (check_zombie_leaders): Do not check stopped threads.
5557 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
5558 (linux_low_filter_event): Add lwp and thread for exec'ing
5559 non-leader thread if leader thread has been deleted.
5560 Refactor code into linux_arch_setup_thread and call it.
5561 Pass child lwp pointer by reference to handle_extended_wait.
5562 (linux_wait_for_event_filtered): Update comment.
5563 (linux_wait_1): Prevent clobbering exec event status.
5564 (linux_supports_exec_events): New function.
5565 (linux_target_ops) <supports_exec_events>: Initialize new member.
5566 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
5567 new member.
5568 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
5569 * server.c (report_exec_events): New global variable.
5570 (handle_query): Handle qSupported query for exec-events feature.
5571 (captured_main): Initialize report_exec_events.
5572 * server.h (report_exec_events): Declare new global variable.
5573 * target.h (struct target_ops) <supports_exec_events>: New
5574 member.
5575 (target_supports_exec_events): New macro.
5576 * win32-low.c (win32_target_ops) <supports_exec_events>:
5577 Initialize new member.
5578
0568462b
MM
55792015-09-09 Markus Metzger <markus.t.metzger@intel.com>
5580
5581 * linux-low.c (linux_low_enable_btrace): Remove.
5582 (linux_target_ops): Replace linux_low_enable_btrace with
5583 linux_enable_btrace.
5584
39edd165
YQ
55852015-09-03 Yao Qi <yao.qi@linaro.org>
5586
5587 * linux-aarch64-low.c (aarch64_insert_point): Call
5588 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
5589 returns true.
5590
1db33b5a
UW
55912015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5592
5593 * linux-low.c (check_stopped_by_breakpoint): Use
5594 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
5595
ab290430
PA
55962015-08-27 Pedro Alves <palves@redhat.com>
5597
5598 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
5599
8d749320
SM
56002015-08-26 Simon Marchi <simon.marchi@ericsson.com>
5601
6711b7f8
SM
5602 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
5603 the XNEW-family equivalent.
8d749320
SM
5604 (compile_bytecodes): Likewise.
5605 * dll.c (loaded_dll): Likewise.
5606 * event-loop.c (append_callback_event): Likewise.
5607 (create_file_handler): Likewise.
5608 (create_file_event): Likewise.
5609 * hostio.c (handle_open): Likewise.
5610 * inferiors.c (add_thread): Likewise.
5611 (add_process): Likewise.
5612 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
5613 * linux-arm-low.c (arm_new_process): Likewise.
5614 (arm_new_thread): Likewise.
5615 * linux-low.c (add_to_pid_list): Likewise.
5616 (linux_add_process): Likewise.
5617 (handle_extended_wait): Likewise.
5618 (add_lwp): Likewise.
5619 (enqueue_one_deferred_signal): Likewise.
5620 (enqueue_pending_signal): Likewise.
5621 (linux_resume_one_lwp_throw): Likewise.
5622 (linux_resume_one_thread): Likewise.
5623 (linux_read_memory): Likewise.
5624 (linux_write_memory): Likewise.
5625 * linux-mips-low.c (mips_linux_new_process): Likewise.
5626 (mips_linux_new_thread): Likewise.
5627 (mips_add_watchpoint): Likewise.
5628 * linux-x86-low.c (initialize_low_arch): Likewise.
5629 * lynx-low.c (lynx_add_process): Likewise.
5630 * mem-break.c (set_raw_breakpoint_at): Likewise.
5631 (set_breakpoint): Likewise.
5632 (add_condition_to_breakpoint): Likewise.
5633 (add_commands_to_breakpoint): Likewise.
5634 (clone_agent_expr): Likewise.
5635 (clone_one_breakpoint): Likewise.
5636 * regcache.c (new_register_cache): Likewise.
5637 * remote-utils.c (look_up_one_symbol): Likewise.
5638 * server.c (queue_stop_reply): Likewise.
5639 (start_inferior): Likewise.
5640 (queue_stop_reply_callback): Likewise.
5641 (handle_target_event): Likewise.
5642 * spu-low.c (fetch_ppc_memory): Likewise.
5643 (store_ppc_memory): Likewise.
5644 * target.c (set_target_ops): Likewise.
5645 * thread-db.c (thread_db_load_search): Likewise.
5646 (try_thread_db_load_1): Likewise.
5647 * tracepoint.c (add_tracepoint): Likewise.
5648 (add_tracepoint_action): Likewise.
5649 (create_trace_state_variable): Likewise.
5650 (cmd_qtdpsrc): Likewise.
5651 (cmd_qtro): Likewise.
5652 (add_while_stepping_state): Likewise.
5653 * win32-low.c (child_add_thread): Likewise.
5654 (get_image_name): Likewise.
5655
ed8b7b42
YQ
56562015-08-25 Yao Qi <yao.qi@linaro.org>
5657
5658 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
5659
db3cb7cb
YQ
56602015-08-25 Yao Qi <yao.qi@linaro.org>
5661
5662 * Makefile.in (aarch64-linux.o): New rule.
5663 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
5664 srv_tgtobj.
5665 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
5666 (aarch64_init_debug_reg_state): Make it extern.
5667 (aarch64_linux_prepare_to_resume): Remove.
5668
f6011a1c
YQ
56692015-08-25 Yao Qi <yao.qi@linaro.org>
5670
5671 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
5672 lwp_arch_private_info and ptid_of_lwp.
5673
88e2cf7e
YQ
56742015-08-25 Yao Qi <yao.qi@linaro.org>
5675
5676 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
5677 Find proc_info by find_process_pid. All callers updated.
5678
5e35436e
YQ
56792015-08-25 Yao Qi <yao.qi@linaro.org>
5680
5681 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
5682 Remove.
5683 (debug_reg_change_callback): Remove.
5684 (aarch64_notify_debug_reg_change): Remove.
5685
4a8a7965
YQ
56862015-08-25 Yao Qi <yao.qi@linaro.org>
5687
5688 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
5689 Call current_lwp_ptid.
5690
32a271ee
YQ
56912015-08-25 Yao Qi <yao.qi@linaro.org>
5692
5693 * linux-aarch64-low.c (debug_reg_change_callback): Use
5694 debug_printf.
5695
0d51c8d7
YQ
56962015-08-25 Yao Qi <yao.qi@linaro.org>
5697
5698 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
5699
31a43dd5
YQ
57002015-08-25 Yao Qi <yao.qi@linaro.org>
5701
5702 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
5703
8ee52567
YQ
57042015-08-25 Yao Qi <yao.qi@linaro.org>
5705
5706 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
5707 the code.
5708
ff3f0f45
YQ
57092015-08-25 Yao Qi <yao.qi@linaro.org>
5710
5711 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
5712 Remove.
5713 (debug_reg_change_callback): Remove argument entry and add argument
5714 lwp. Remove local variable thread. Don't print thread id in the
5715 debugging output. Don't check whether pid of thread equals to pid.
5716 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
5717 iterate_over_lwps instead find_inferior.
5718
3d40fbb5
PA
57192015-08-24 Pedro Alves <palves@redhat.com>
5720
5721 * inferiors.c (get_first_process): New function.
5722 * inferiors.h (get_first_process): New declaration.
5723 * remote-utils.c (read_ptid): Default to the first process in the
5724 list, instead of to the current thread's process.
5725
438e1e42
PA
57262015-08-24 Pedro Alves <palves@redhat.com>
5727
5728 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
5729 * event-loop.c: Likewise.
5730 * remote-utils.c: Likewise.
5731 * tracepoint.c: Likewise.
5732
a8c6d4fc
PA
57332015-08-24 Pedro Alves <palves@redhat.com>
5734
5735 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
5736 ptid_get_lwp.
5737
99b0bb12
PA
57382015-08-21 Pedro Alves <palves@redhat.com>
5739
5740 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
5741 instead of literal 1.
5742
f8904751
PA
57432015-08-21 Pedro Alves <palves@redhat.com>
5744
5745 * tdesc.c (default_description): Explicitly zero-initialize.
5746
465a859e
PA
57472015-08-21 Pedro Alves <palves@redhat.com>
5748
5749 PR gdb/18749
5750 * inferiors.c (remove_thread): Discard any pending stop reply for
5751 this thread.
5752 * server.c (remove_all_on_match_pid): Rename to ...
5753 (remove_all_on_match_ptid): ... this. Work with a filter ptid
5754 instead of a pid.
5755 (discard_queued_stop_replies): Change parameter to a ptid. Now
5756 extern.
5757 (handle_v_kill, kill_inferior_callback, captured_main)
5758 (process_serial_event): Adjust.
5759 * server.h (discard_queued_stop_replies): Declare.
5760
f0db101d
PA
57612015-08-21 Pedro Alves <palves@redhat.com>
5762
5763 * linux-low.c (wait_for_sigstop): Always switch to no thread
5764 selected if the previously current thread dies.
5765 * lynx-low.c (lynx_request_interrupt): Use the first thread's
5766 process instead of the current thread's.
5767 * remote-utils.c (input_interrupt): Don't check if there's no
5768 current thread.
5769 * server.c (gdb_read_memory, gdb_write_memory): If setting the
5770 current thread to the general thread fails, error out.
5771 (handle_qxfer_auxv, handle_qxfer_libraries)
5772 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
5773 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
5774 (handle_query): Check if there's a thread selected instead of
5775 checking whether there's any thread in the thread list.
5776 (handle_qxfer_threads, handle_qxfer_btrace)
5777 (handle_qxfer_btrace_conf): Don't error out early if there's no
5778 thread in the thread list.
5779 (handle_v_cont, myresume): Don't set the current thread to the
5780 continue thread.
5781 (process_serial_event) <Hg handling>: Also set thread_id if the
5782 previous general thread is still alive.
5783 (process_serial_event) <g/G handling>: If setting the current
5784 thread to the general thread fails, error out.
5785 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
5786 thread's lwp instead of the current thread's.
5787 * target.c (set_desired_thread): If the desired thread was not
5788 found, leave the current thread pointing to NULL. Return an int
5789 (boolean) indicating success.
5790 * target.h (set_desired_thread): Change return type to int.
5791
40045d91
MF
57922015-08-20 Max Filippov <jcmvbkbc@gmail.com>
5793
5794 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
5795 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
5796 #includes.
5797 (ps_get_thread_area): New function.
5798
45face3b
GB
57992015-08-19 Gary Benson <gbenson@redhat.com>
5800
5801 * hostio.c (handle_pread): Do not attempt to read more data
5802 than hostio_reply_with_data can fit in a packet.
5803
16d5f642
JB
58042015-08-18 Joel Brobecker <brobecker@adacore.com>
5805
5806 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
5807
a738da3a
MF
58082015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
5809
5810 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
5811
33ebda9d
PA
58122015-08-06 Pedro Alves <palves@redhat.com>
5813
5814 * tracepoint.c (expr_eval_result): Now an int.
5815
a44892be
PA
58162015-08-06 Pedro Alves <palves@redhat.com>
5817
5818 * gdbthread.h (struct regcache): Forward declare.
5819 (struct thread_info) <regcache_data>: Now a struct regcache
5820 pointer.
5821 * inferiors.c (inferior_regcache_data)
5822 (set_inferior_regcache_data): Now work with struct regcache
5823 pointers.
5824 * inferiors.h (struct regcache): Forward declare.
5825 (inferior_regcache_data, set_inferior_regcache_data): Now work
5826 with struct regcache pointers.
5827 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
5828 (free_register_cache_thread): Remove struct regcache pointer
5829 casts.
5830
608a1e46
PA
58312015-08-06 Pedro Alves <palves@redhat.com>
5832
5833 * server.c (captured_main): On error, print the exception message
5834 to stderr, and if run_once is set, throw a quit.
5835
f0ce0d3a
PA
58362015-08-06 Pedro Alves <palves@redhat.com>
5837
5838 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
5839 the current thread.
5840
bf47e248
PA
58412015-08-06 Pedro Alves <palves@redhat.com>
5842
5843 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
5844 reading beyond the passed in buffer length.
5845
b6b9ffcc
PL
58462015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5847
5848 * tracepoint.c (symbol_list) <required>: Remove.
5849
863d01bd
PA
58502015-08-06 Pedro Alves <palves@redhat.com>
5851
5852 * linux-low.c (handle_extended_wait): Set the fork child's suspend
5853 count if stopping and suspending threads.
5854 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
5855 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
5856 (linux_detach): Complete an ongoing step-over.
5857 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
5858 throughout.
5859 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
5860 (linux_wait_1): If passing a signal to the inferior after
5861 finishing a step-over, unsuspend and re-resume all lwps. If we
5862 see a single-step event but the thread should be continuing, don't
5863 pass the trap to gdb.
5864 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
5865 internal_error instead of gdb_assert.
5866 (enqueue_pending_signal): New function.
5867 (check_ptrace_stopped_lwp_gone): Add debug output.
5868 (start_step_over): Use internal_error instead of gdb_assert.
5869 (complete_ongoing_step_over): New function.
5870 (linux_resume_one_thread): Don't resume a suspended thread.
5871 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
5872 it stepping.
5873
00db26fa
PA
58742015-08-06 Pedro Alves <palves@redhat.com>
5875
5876 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
5877 (linux_thread_alive): Use lwp_is_marked_dead.
5878 (extended_event_reported): Delete.
5879 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
5880 instead of extended_event_reported.
5881 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
5882 as well.
5883 (lwp_is_marked_dead): New function.
5884 (lwp_running): Use lwp_is_marked_dead.
5885 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
5886 comment.
5887
ad071a30
PA
58882015-08-06 Pedro Alves <palves@redhat.com>
5889
5890 * linux-low.c (linux_wait_1): Move fork event output out of the
5891 !report_to_gdb check. Pass event_child->waitstatus to
5892 target_waitstatus_to_string instead of ourstatus.
5893
524b57e6
YQ
58942015-08-04 Yao Qi <yao.qi@linaro.org>
5895
5896 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
5897 if current_thread is 32 bit.
5898
6085d6f6
YQ
58992015-08-04 Yao Qi <yao.qi@linaro.org>
5900
5901 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
5902 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
5903 * server.c (extended_protocol): Remove "static".
5904 * server.h (extended_protocol): Declare it.
5905
8a7e4587
YQ
59062015-08-04 Yao Qi <yao.qi@linaro.org>
5907
5908 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
5909 both aarch64 and aarch32.
5910 (aarch64_set_pc): Likewise.
5911
3b53ae99
YQ
59122015-08-04 Yao Qi <yao.qi@linaro.org>
5913
5914 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
5915 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
5916 arm-with-neon.xml to srv_xmlfiles.
5917 * linux-aarch64-low.c: Include linux-aarch32-low.h.
5918 (is_64bit_tdesc): New function.
5919 (aarch64_linux_read_description): New function.
5920 (aarch64_arch_setup): Call aarch64_linux_read_description.
5921 (regs_info): Rename to regs_info_aarch64.
5922 (aarch64_regs_info): Return right regs_info.
5923 (initialize_low_arch): Call initialize_low_arch_aarch32.
5924
bd9e6534
YQ
59252015-08-04 Yao Qi <yao.qi@linaro.org>
5926
5927 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
5928 * linux-aarch32-low.c: New file.
5929 * linux-aarch32-low.h: New file.
5930 * linux-arm-low.c (arm_fill_gregset): Move it to
5931 linux-aarch32-low.c.
5932 (arm_store_gregset): Likewise.
5933 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
5934 (arm_store_vfpregset): Call arm_store_vfpregset_num.
5935 (arm_arch_setup): Check if PTRACE_GETREGSET works.
5936 (regs_info): Rename to regs_info_arm.
5937 (arm_regs_info): Return regs_info_aarch32 if
5938 have_ptrace_getregset is 1 and target description is
5939 arm_with_neon or arm_with_vfpv3.
5940 (initialize_low_arch): Don't call init_registers_arm_with_neon.
5941 Call initialize_low_arch_aarch32 instead.
5942
ded48a5e
YQ
59432015-08-04 Yao Qi <yao.qi@linaro.org>
5944
5945 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
5946 * linux-low.c: ... here.
5947 * linux-low.h (have_ptrace_getregset): Declare it.
5948
96e9210f
PA
59492015-08-04 Pedro Alves <palves@redhat.com>
5950
5951 * thread-db.c (struct thread_db): Use new typedefs.
5952 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
5953 CHK calls.
5954 (disable_thread_event_reporting): Cast result of dlsym to
5955 destination function pointer type.
5956 (thread_db_mourn): Use td_ta_delete_ftype.
5957
af60a1ef
SL
59582015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5959
5960 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
5961 arch variant.
5962 (CDX_BREAKPOINT): Define for R2.
5963 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
5964 (the_low_target): Add comments.
5965
e8b41681
YQ
59662015-07-30 Yao Qi <yao.qi@linaro.org>
5967
5968 * linux-arm-low.c (arm_hwcap): Remove it.
5969 (arm_read_description): New local variable arm_hwcap. Don't
5970 set arm_hwcap to zero.
5971
89abb039
YQ
59722015-07-30 Yao Qi <yao.qi@linaro.org>
5973
5974 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
5975 Use regcache->tdesc instead.
5976 (arm_store_wmmxregset): Likewise.
5977 (arm_fill_vfpregset): Likewise.
5978 (arm_store_vfpregset): Likewise.
5979
deca266c
YQ
59802015-07-30 Yao Qi <yao.qi@linaro.org>
5981
5982 * linux-arm-low.c: Include arch/arm.h.
5983 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
5984 (arm_store_gregset): Likewise.
5985
aa58a496
SM
59862015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5987
5988 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
5989 ptrace's 4th parameter.
5990
50904b25
YQ
59912015-07-27 Yao Qi <yao.qi@linaro.org>
5992
5993 * configure.srv (case aarch64*-*-linux*): Don't set
5994 srv_linux_usrregs.
5995
5826e159
PA
59962015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
5997
5998 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
5999 sys/ptrace.h.
6000 * linux-arm-low.c: Likewise.
6001 * linux-cris-low.c: Likewise.
6002 * linux-crisv32-low.c: Likewise.
6003 * linux-low.c: Likewise.
6004 * linux-m68k-low.c: Likewise.
6005 * linux-mips-low.c: Likewise.
6006 * linux-nios2-low.c: Likewise.
6007 * linux-s390-low.c: Likewise.
6008 * linux-sparc-low.c: Likewise.
6009 * linux-tic6x-low.c: Likewise.
6010 * linux-tile-low.c: Likewise.
6011 * linux-x86-low.c: Likewise.
6012
54019719
PA
60132015-07-24 Pedro Alves <palves@redhat.com>
6014
6015 * config.in: Regenerate.
6016 * configure: Regenerate.
6017
eb7aa561
PA
60182015-07-24 Pedro Alves <palves@redhat.com>
6019
6020 * acinclude.m4: Include ../ptrace.m4.
6021 * configure.ac: Call GDB_AC_PTRACE.
6022 * config.in, configure: Regenerate.
6023
55d7b841
YQ
60242015-07-24 Yao Qi <yao.qi@linaro.org>
6025
6026 * linux-low.c (linux_create_inferior): Remove setting to
6027 proc->priv->new_inferior.
6028 (linux_attach): Likewise.
6029 (linux_low_filter_event): Likewise.
6030 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
6031
c06cbd92
YQ
60322015-07-24 Yao Qi <yao.qi@linaro.org>
6033
6034 * linux-low.c (linux_arch_setup): New function.
6035 (linux_low_filter_event): If proc->tdesc is NULL and
6036 proc->attached is true, call the_low_target.arch_setup.
6037 Otherwise, keep status pending, and return.
6038 (linux_resume_one_lwp_throw): Don't call get_pc if
6039 thread->while_stepping isn't NULL. Don't call
6040 get_thread_regcache if proc->tdesc is NULL.
6041 (need_step_over_p): Return 0 if proc->tdesc is NULL.
6042 (linux_target_ops): Install arch_setup.
6043 * server.c (start_inferior): Call the_target->arch_setup.
6044 * target.h (struct target_ops) <arch_setup>: New field.
6045 (target_arch_setup): New marco.
6046 * lynx-low.c (lynx_target_ops): Update.
6047 * nto-low.c (nto_target_ops): Update.
6048 * spu-low.c (spu_target_ops): Update.
6049 * win32-low.c (win32_target_ops): Update.
6050
5ae3ebba
YQ
60512015-07-24 Yao Qi <yao.qi@linaro.org>
6052
6053 * linux-low.c (linux_add_process): Don't set
6054 proc->priv->new_inferior.
6055 (linux_create_inferior): Set proc->priv->new_inferior to 1.
6056 (linux_attach): Likewise.
6057
eb97750b
YQ
60582015-07-24 Yao Qi <yao.qi@linaro.org>
6059
6060 * server.c (start_inferior): Code refactor.
6061
51aee833
YQ
60622015-07-24 Yao Qi <yao.qi@linaro.org>
6063
6064 * server.c (process_serial_event): Set general_thread.
6065
af1b22f3
YQ
60662015-07-21 Yao Qi <yao.qi@linaro.org>
6067
6068 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
6069 aarch64_linux_get_debug_reg_capacity.
6070
554717a3
YQ
60712015-07-17 Yao Qi <yao.qi@linaro.org>
6072
6073 * Makefile.in (aarch64-linux-hw-point.o): New rule.
6074 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
6075 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
6076 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6077 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6078 (AARCH64_HWP_ALIGNMENT): Likewise.
6079 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6080 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6081 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6082 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6083 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6084 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6085 (struct aarch64_debug_reg_state): Likewise.
6086 (struct arch_lwp_info): Likewise.
6087 (aarch64_align_watchpoint): Likewise.
6088 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6089 (aarch64_watchpoint_length): Likewise.
6090 (aarch64_point_encode_ctrl_reg): Likewise
6091 (aarch64_point_is_aligned): Likewise.
6092 (aarch64_align_watchpoint): Likewise.
6093 (aarch64_linux_set_debug_regs):
6094 (aarch64_dr_state_insert_one_point): Likewise.
6095 (aarch64_dr_state_remove_one_point): Likewise.
6096 (aarch64_handle_breakpoint): Likewise.
6097 (aarch64_handle_aligned_watchpoint): Likewise.
6098 (aarch64_handle_unaligned_watchpoint): Likewise.
6099 (aarch64_handle_watchpoint): Likewise.
6100
c67ca4de
YQ
61012015-07-17 Yao Qi <yao.qi@linaro.org>
6102
6103 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
6104 and don't aarch64_get_debug_reg_state. All callers update.
6105 (aarch64_handle_aligned_watchpoint): Likewise.
6106 (aarch64_handle_unaligned_watchpoint): Likewise.
6107 (aarch64_handle_watchpoint): Likewise.
6108 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
6109 (aarch64_remove_point): Likewise.
6110
25abf979
YQ
61112015-07-17 Yao Qi <yao.qi@linaro.org>
6112
6113 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
6114 debug_printf.
6115 (aarch64_handle_unaligned_watchpoint): Likewise.
6116
db1ff28b
JK
61172015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6118
6119 Revert the previous 3 commits:
6120 Move gdb_regex* to common/
6121 Move linux_find_memory_regions_full & co.
6122 gdbserver build-id attribute generator
6123
700ca40f
JK
61242015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6125 Jan Kratochvil <jan.kratochvil@redhat.com>
6126
6127 gdbserver build-id attribute generator.
6128 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
6129 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
6130 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
6131 (find_phdr): New.
6132 (get_dynamic): Use find_pdhr to traverse program headers.
6133 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
6134 (compare_mapping_entry_range, struct find_memory_region_callback_data)
6135 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
6136 (get_hex_build_id): New.
6137 (linux_qxfer_libraries_svr4): Add optional build-id attribute
6138 to reply XML document.
6139
9904185c
JK
61402015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6141 Jan Kratochvil <jan.kratochvil@redhat.com>
6142
6143 * target.c: Include target/target-utils.h and fcntl.h.
6144 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
6145 (target_fileio_read_stralloc): New functions.
6146
6e5b4429
JK
61472015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6148
6149 * Makefile.in (OBS): Add gdb_regex.o.
6150 (gdb_regex.o): New.
6151 * config.in: Rebuilt.
6152 * configure: Rebuilt.
6153
ddc98fbf
JK
61542015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6155 Jan Kratochvil <jan.kratochvil@redhat.com>
6156
6157 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6158 * Makefile.in (OBS): Add target-utils.o.
6159 (linux-maps.o, target-utils.o): New.
6160 * configure.srv (srv_linux_obj): Add linux-maps.o.
6161
e57bb7a0
PL
61622015-07-15 Pierre Langlois <pierre.langlois@arm.com>
6163
6164 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
6165 function, return 1.
6166 (the_low_target): Install it.
6167
586b02a9
PA
61682015-07-14 Pedro Alves <palves@redhat.com>
6169
6170 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
6171 Instead, ignore ECHILD, and throw an error for other errnos.
6172
58c1b36c
PA
61732015-07-10 Pedro Alves <palves@redhat.com>
6174
6175 * event-loop.c (struct callback_event) <data>: Change type to
6176 gdb_client_data instance instead of gdb_client_data pointer.
6177 (append_callback_event): Adjust.
6178
421530db
PL
61792015-07-10 Pierre Langlois <pierre.langlois@arm.com>
6180
6181 * linux-aarch64-low.c: Add comments for each linux_target_ops
6182 method. Remove comments already covered in target_ops and
6183 linux_target_ops definitions.
6184 (the_low_target): Add comments for each unimplemented method.
6185
c2d65f38
YQ
61862015-07-09 Yao Qi <yao.qi@linaro.org>
6187
6188 * linux-aarch64-low.c (aarch64_regmap): Remove.
6189 (aarch64_usrregs_info): Remove.
6190 (regs_info): Set field usrregs to NULL.
6191
b20a6524
MM
61922015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6193
6194 * linux-low.c: Include "rsp-low.h"
6195 (linux_low_encode_pt_config, linux_low_encode_raw): New.
6196 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
6197 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
6198 (handle_btrace_enable_pt): New.
6199 (handle_btrace_general_set): Support "pt".
6200 (handle_btrace_conf_general_set): Support "pt:size".
6201
96c97461
PL
62022015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6203
6204 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
6205 Z_PACKET_SW_BP.
6206
37d66942
PL
62072015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6208
6209 * linux-aarch64-low.c: Remove comment about endianness.
6210 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
6211 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
6212 memcmp.
6213
dc06243f
GB
62142015-06-24 Gary Benson <gbenson@redhat.com>
6215
6216 * linux-i386-ipa.c (stdint.h): Do not include.
6217 * lynx-i386-low.c (stdint.h): Likewise.
6218 * lynx-ppc-low.c (stdint.h): Likewise.
6219 * mem-break.c (stdint.h): Likewise.
6220 * thread-db.c (stdint.h): Likewise.
6221 * tracepoint.c (stdint.h): Likewise.
6222 * win32-low.c (stdint.h): Likewise.
6223
124e13d9
SM
62242015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6225
6226 * server.c (write_qxfer_response): Update call to
6227 remote_escape_output.
6228
909c2cda
JK
62292015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6230 Jan Kratochvil <jan.kratochvil@redhat.com>
6231
6232 Merge multiple hex conversions.
6233 * gdbreplay.c (tohex): Rename to 'fromhex'.
6234 (logchar): Use fromhex.
6235
24c05f46
JK
62362015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6237
6238 * server.c (handle_qxfer_libraries): Set `version' attribute for
6239 <library-list>.
6240
14d2069a
GB
62412015-06-10 Gary Benson <gbenson@redhat.com>
6242
6243 * target.h (struct target_ops) <multifs_open>: New field.
6244 <multifs_unlink>: Likewise.
6245 <multifs_readlink>: Likewise.
6246 * linux-low.c (nat/linux-namespaces.h): New include.
6247 (linux_target_ops): Initialize the_target->multifs_open,
6248 the_target->multifs_unlink and the_target->multifs_readlink.
6249 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
6250 * hostio.c (hostio_fs_pid): New static variable.
6251 (hostio_handle_new_gdb_connection): New function.
6252 (handle_setfs): Likewise.
6253 (handle_open): Use the_target->multifs_open as appropriate.
6254 (handle_unlink): Use the_target->multifs_unlink as appropriate.
6255 (handle_readlink): Use the_target->multifs_readlink as
6256 appropriate.
6257 (handle_vFile): Handle vFile:setfs packets.
6258 * server.c (handle_query): Call hostio_handle_new_gdb_connection
6259 after target_handle_new_gdb_connection.
6260
4b8b5e72
GB
62612015-06-10 Gary Benson <gbenson@redhat.com>
6262
6263 * configure.ac (AC_CHECK_FUNCS): Add setns.
6264 * config.in: Regenerate.
6265 * configure: Likewise.
6266 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
6267 (linux-namespaces.o): New rule.
6268 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
6269
3ac2e371
GB
62702015-06-09 Gary Benson <gbenson@redhat.com>
6271
6272 * hostio.c (handle_open): Process mode argument with
6273 fileio_to_host_mode.
6274
ca9b78ce
YQ
62752015-06-01 Yao Qi <yao.qi@linaro.org>
6276
6277 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
6278 * linux-x86-low.c: Likewise.
6279
bfacd19d
DB
62802015-05-28 Don Breazeal <donb@codesourcery.com>
6281
6282 * linux-low.c (handle_extended_wait): Initialize
6283 thread_info.last_resume_kind for new fork children.
6284
452003ef
PA
62852015-05-15 Pedro Alves <palves@redhat.com>
6286
6287 * target.h (target_handle_new_gdb_connection): Rewrite using if
6288 wrapped in do/while.
6289
1041a03c
JB
62902015-05-14 Joel Brobecker <brobecker@adacore.com>
6291
6292 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
6293 * configure, config.in: Regenerate.
6294 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
6295 Declare typedef.
6296
c269dbdb
DB
62972015-05-12 Don Breazeal <donb@codesourcery.com>
6298
6299 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
6300 PTRACE_EVENT_VFORK_DONE.
6301 (linux_low_ptrace_options, extended_event_reported): Add vfork
6302 events.
6303 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
6304 and "vforkdone" for RSP 'T' Stop Reply Packet.
6305 * server.h (report_vfork_events): Declare
6306 global variable.
6307
3a8a0396
DB
63082015-05-12 Don Breazeal <donb@codesourcery.com>
6309
6310 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
6311 (the_low_target) <new_fork>: Initialize new member.
6312 * linux-arm-low.c (arm_new_fork): New function.
6313 (the_low_target) <new_fork>: Initialize new member.
6314 * linux-low.c (handle_extended_wait): Call new target function
6315 new_fork.
6316 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
6317 * linux-mips-low.c (mips_add_watchpoint): New function
6318 extracted from mips_insert_point.
6319 (the_low_target) <new_fork>: Initialize new member.
6320 (mips_linux_new_fork): New function.
6321 (mips_insert_point): Call mips_add_watchpoint.
6322 * linux-x86-low.c (x86_linux_new_fork): New function.
6323 (the_low_target) <new_fork>: Initialize new member.
6324
de0d863e
DB
63252015-05-12 Don Breazeal <donb@codesourcery.com>
6326
6327 * linux-low.c (handle_extended_wait): Implement return value,
6328 rename argument 'event_child' to 'event_lwp', handle
6329 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
6330 (linux_low_ptrace_options): New function.
6331 (linux_low_filter_event): Call linux_low_ptrace_options,
6332 use different argument fo linux_enable_event_reporting,
6333 use return value from handle_extended_wait.
6334 (extended_event_reported): New function.
6335 (linux_wait_1): Call extended_event_reported and set
6336 status to report fork events.
6337 (linux_write_memory): Add pid to debug message.
6338 (reset_lwp_ptrace_options_callback): New function.
6339 (linux_handle_new_gdb_connection): New function.
6340 (linux_target_ops): Initialize new structure member.
6341 * linux-low.h (struct lwp_info) <waitstatus>: New member.
6342 * lynx-low.c: Initialize new structure member.
6343 * remote-utils.c (prepare_resume_reply): Implement stop reason
6344 "fork" for "T" stop message.
6345 * server.c (handle_query): Call handle_new_gdb_connection.
6346 * server.h (report_fork_events): Declare global flag.
6347 * target.h (struct target_ops) <handle_new_gdb_connection>:
6348 New member.
6349 (target_handle_new_gdb_connection): New macro.
6350 * win32-low.c: Initialize new structure member.
6351
ddcbc397
DB
63522015-05-12 Don Breazeal <donb@codesourcery.com>
6353
6354 * mem-break.c (APPEND_TO_LIST): Define macro.
6355 (clone_agent_expr): New function.
6356 (clone_one_breakpoint): New function.
6357 (clone_all_breakpoints): New function.
6358 * mem-break.h: Declare new functions.
6359
89245bc0
DB
63602015-05-12 Don Breazeal <donb@codesourcery.com>
6361
6362 * linux-low.c (linux_supports_fork_events): New function.
6363 (linux_supports_vfork_events): New function.
6364 (linux_target_ops): Initialize new structure members.
6365 (initialize_low): Call linux_check_ptrace_features.
6366 * lynx-low.c (lynx_target_ops): Initialize new structure
6367 members.
6368 * server.c (report_fork_events, report_vfork_events):
6369 New global flags.
6370 (handle_query): Add new features to qSupported packet and
6371 response.
6372 (captured_main): Initialize new global variables.
6373 * target.h (struct target_ops) <supports_fork_events>:
6374 New member.
6375 <supports_vfork_events>: New member.
6376 (target_supports_fork_events): New macro.
6377 (target_supports_vfork_events): New macro.
6378 * win32-low.c (win32_target_ops): Initialize new structure
6379 members.
6380
835205d0
GB
63812015-05-12 Gary Benson <gbenson@redhat.com>
6382
6383 * server.c (handle_qxfer_exec_file): Use current process
6384 if annex is empty.
6385
21e94bd9
SL
63862015-05-08 Sandra Loosemore <sandra@codesourcery.com>
6387
6388 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
6389 Remove HAVE_PTRACE_GETREGS conditionals.
6390 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
6391 instead of PTRACE_GETREGS and PTRACE_SETREGS.
6392
45614f15
YQ
63932015-05-08 Yao Qi <yao.qi@linaro.org>
6394
6395 * linux-low.c (linux_supports_conditional_breakpoints): New
6396 function.
6397 (linux_target_ops): Install new target method.
6398 * lynx-low.c (lynx_target_ops): Install NULL hook for
6399 supports_conditional_breakpoints.
6400 * nto-low.c (nto_target_ops): Likewise.
6401 * spu-low.c (spu_target_ops): Likewise.
6402 * win32-low.c (win32_target_ops): Likewise.
6403 * server.c (handle_query): Check
6404 target_supports_conditional_breakpoints.
6405 * target.h (struct target_ops) <supports_conditional_breakpoints>:
6406 New field.
6407 (target_supports_conditional_breakpoints): New macro.
6408
80ad801e
PA
64092015-05-06 Pedro Alves <palves@redhat.com>
6410
6411 PR server/18081
6412 * server.c (start_inferior): If the process exits, mourn it.
6413
819843c7
GB
64142015-04-21 Gary Benson <gbenson@redhat.com>
6415
6416 * hostio.c (fileio_open_flags_to_host): Factored out to
6417 fileio_to_host_openflags in common/fileio.c. Single use
6418 updated.
6419
a2d5a9d7
MF
64202015-04-17 Max Filippov <jcmvbkbc@gmail.com>
6421
6422 * linux-xtensa-low.c (xtensa_fill_gregset)
6423 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
6424 XCHAL_HAVE_LOOP.
6425
deb44829
MF
64262015-04-17 Max Filippov <jcmvbkbc@gmail.com>
6427
6428 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
6429 (regs_info): Replace usrregs pointer with NULL.
6430
e57f1de3
GB
64312015-04-17 Gary Benson <gbenson@redhat.com>
6432
6433 * target.h (struct target_ops) <pid_to_exec_file>: New field.
6434 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
6435 * server.c (handle_qxfer_exec_file): New function.
6436 (qxfer_packets): Add exec-file entry.
6437 (handle_query): Report qXfer:exec-file:read as supported packet.
6438
62828379
RN
64392015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
6440
6441 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
6442
b88bb450
GB
64432015-04-09 Gary Benson <gbenson@redhat.com>
6444
6445 * hostio-errno.c (errno_to_fileio_error): Remove function.
6446 Update caller to use remote_fileio_to_fio_error.
6447
c8f4bfdd
YQ
64482015-04-09 Yao Qi <yao.qi@linaro.org>
6449
6450 * linux-low.c (linux_insert_point): Call
6451 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
6452 (linux_remove_point): Call remove_memory_breakpoint if type is
6453 raw_bkpt_type_sw.
6454 * linux-x86-low.c (x86_insert_point): Don't call
6455 insert_memory_breakpoint.
6456 (x86_remove_point): Don't call remove_memory_breakpoint.
6457
41f98f02
PA
64582015-04-01 Pedro Alves <palves@redhat.com>
6459 Cleber Rosa <crosa@redhat.com>
6460
6461 * server.c (gdbserver_usage): Reorganize and extend the usage
6462 message.
6463
2bf6fb9d
PA
64642015-03-24 Pedro Alves <palves@redhat.com>
6465
6466 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
6467 output. Also dump TRAP_TRACE.
6468 (linux_low_filter_event): In debug output, distinguish a
6469 resume_stop SIGSTOP from a delayed SIGSTOP.
6470
369f6daa
GB
64712015-03-24 Gary Benson <gbenson@redhat.com>
6472
6473 * linux-x86-low.c (x86_linux_new_thread): Moved to
6474 nat/x86-linux.c.
6475 (x86_linux_prepare_to_resume): Likewise.
6476
8e5d4070
GB
64772015-03-24 Gary Benson <gbenson@redhat.com>
6478
6479 * Makefile.in (x86-linux-dregs.o): New rule.
6480 * configure.srv: Add x86-linux-dregs.o to relevant targets.
6481 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
6482 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
6483 (x86_linux_dr_get): Likewise.
6484 (x86_linux_dr_set): Likewise.
6485 (update_debug_registers_callback): Likewise.
6486 (x86_linux_dr_set_addr): Likewise.
6487 (x86_linux_dr_get_addr): Likewise.
6488 (x86_linux_dr_set_control): Likewise.
6489 (x86_linux_dr_get_control): Likewise.
6490 (x86_linux_dr_get_status): Likewise.
6491 (x86_linux_update_debug_registers): Likewise.
6492
2b95d440
GB
64932015-03-24 Gary Benson <gbenson@redhat.com>
6494
6495 * linux-x86-low.c (x86_linux_update_debug_registers):
6496 New function, factored out from...
6497 (x86_linux_prepare_to_resume): ...this.
6498
14b0bc68
GB
64992015-03-24 Gary Benson <gbenson@redhat.com>
6500
6501 * linux-x86-low.c (x86_linux_dr_get): Update comments.
6502 (x86_linux_dr_set): Likewise.
6503 (update_debug_registers_callback): Likewise.
6504 (x86_linux_dr_set_addr): Likewise.
6505 (x86_linux_dr_get_addr): Likewise.
6506 (x86_linux_dr_set_control): Likewise.
6507 (x86_linux_dr_get_control): Likewise.
6508 (x86_linux_dr_get_status): Likewise.
6509 (x86_linux_prepare_to_resume): Likewise.
6510
5dfe6ca8
GB
65112015-03-24 Gary Benson <gbenson@redhat.com>
6512
6513 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
6514 Use perror_with_name. Pass string through gettext.
6515 (x86_linux_dr_set): Likewise.
6516
d33472ad
GB
65172015-03-24 Gary Benson <gbenson@redhat.com>
6518
6519 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
6520 (x86_linux_dr_set_addr): ...this.
6521 (x86_dr_low_get_addr): Rename to...
6522 (x86_linux_dr_get_addr): ...this.
6523 (x86_dr_low_set_control): Rename to...
6524 (x86_linux_dr_set_control): ...this.
6525 (x86_dr_low_get_control): Rename to...
6526 (x86_linux_dr_get_control): ...this.
6527 (x86_dr_low_get_status): Rename to...
6528 (x86_linux_dr_get_status): ...this.
6529 (x86_dr_low): Update with new function names.
6530
4b134ca1
GB
65312015-03-24 Gary Benson <gbenson@redhat.com>
6532
6533 * Makefile.in (x86-linux.o): New rule.
6534 * configure.srv: Add x86-linux.o to relevant targets.
6535 * linux-low.c (lwp_set_arch_private_info): New function.
6536 (lwp_arch_private_info): Likewise.
6537 * linux-x86-low.c: Include nat/x86-linux.h.
6538 (arch_lwp_info): Removed structure.
6539 (update_debug_registers_callback):
6540 Use lwp_set_debug_registers_changed.
6541 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
6542 and lwp_set_debug_registers_changed.
6543 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
6544
34c703da
GB
65452015-03-24 Gary Benson <gbenson@redhat.com>
6546
6547 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
6548 * linux-arm-low.c (arm_new_thread): Likewise.
6549 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
6550 * linux-mips-low.c (mips_linux_new_thread): Likewise.
6551 * linux-x86-low.c (x86_linux_new_thread): Likewise.
6552 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
6553
cff068da
GB
65542015-03-24 Gary Benson <gbenson@redhat.com>
6555
6556 * linux-low.c (ptid_of_lwp): New function.
6557 (lwp_is_stopped): Likewise.
6558 (lwp_stop_reason): Likewise.
6559 * linux-x86-low.c (update_debug_registers_callback):
6560 Use lwp_is_stopped.
6561 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
6562 lwp_stop_reason.
6563
b2f7c7e8
GB
65642015-03-24 Gary Benson <gbenson@redhat.com>
6565
6566 * linux-low.h (linux_stop_lwp): Remove declaration.
6567
6d4ee8c6
GB
65682015-03-24 Gary Benson <gbenson@redhat.com>
6569
6570 * linux-low.h: Include nat/linux-nat.h.
6571 * linux-low.c (iterate_over_lwps_args): New structure.
6572 (iterate_over_lwps_filter): New function.
6573 (iterate_over_lwps): Likewise.
6574 * linux-x86-low.c (update_debug_registers_callback):
6575 Update signature to what iterate_over_lwps expects.
6576 Remove PID check that iterate_over_lwps now performs.
6577 (x86_dr_low_set_addr): Use iterate_over_lwps.
6578 (x86_dr_low_set_control): Likewise.
6579
70a0bb6b
GB
65802015-03-24 Gary Benson <gbenson@redhat.com>
6581
6582 * linux-x86-low.c (x86_debug_reg_state): New function.
6583 (x86_linux_prepare_to_resume): Use the above.
6584
7b669087
GB
65852015-03-24 Gary Benson <gbenson@redhat.com>
6586
6587 * linux-low.c (current_lwp_ptid): New function.
6588 * linux-x86-low.c: Include nat/linux-nat.h.
6589 (x86_dr_low_get_addr): Use current_lwp_ptid.
6590 (x86_dr_low_get_control): Likewise.
6591 (x86_dr_low_get_status): Likewise.
6592
eef49a3d
PA
65932015-03-20 Pedro Alves <palves@redhat.com>
6594
6595 * tracepoint.c (cmd_qtstatus): Make "str" const.
6596
b2333d22
PA
65972015-03-20 Pedro Alves <palves@redhat.com>
6598
6599 * server.c (handle_general_set): Make "req_str" const.
6600
23f238d3
PA
66012015-03-19 Pedro Alves <palves@redhat.com>
6602
6603 * linux-low.c (linux_resume_one_lwp): Rename to ...
6604 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
6605 instead call perror_with_name.
6606 (check_ptrace_stopped_lwp_gone): New function.
6607 (linux_resume_one_lwp): Reimplement as wrapper around
6608 linux_resume_one_lwp_throw that swallows errors if the LWP is
6609 gone.
6610
91baf43f
PA
66112015-03-19 Pedro Alves <palves@redhat.com>
6612
6613 * linux-low.c (count_events_callback, select_event_lwp_callback):
6614 No longer check whether the thread has resume_stop as last resume
6615 kind.
6616
8bf3b159
PA
66172015-03-19 Pedro Alves <palves@redhat.com>
6618
6619 * linux-low.c (count_events_callback, select_event_lwp_callback):
6620 Use the lwp's status_pending_p field, not the thread's.
6621
b90fc188
PA
66222015-03-19 Pedro Alves <palves@redhat.com>
6623
6624 * linux-low.c (select_event_lwp_callback): Update comments to
6625 no longer mention SIGTRAP.
6626
464b0089
GB
66272015-03-18 Gary Benson <gbenson@redhat.com>
6628
6629 * server.c (handle_query): Do not report vFile:fstat as supported.
6630
aa9e327f
GB
66312015-03-11 Gary Benson <gbenson@redhat.com>
6632
6633 * hostio.c (sys/types.h): New include.
6634 (sys/stat.h): Likewise.
6635 (common-remote-fileio.h): Likewise.
6636 (handle_fstat): New function.
6637 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 6638
791c0056
GB
66392015-03-11 Gary Benson <gbenson@redhat.com>
6640
6641 * configure.ac (AC_CHECK_MEMBERS): Add checks for
6642 struct stat.st_blocks and struct stat.st_blksize.
6643 * configure: Regenerate.
6644 * config.in: Likewise.
6645 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
6646 (OBS): Add common-remote-fileio.o.
6647 (common-remote-fileio.o): New rule.
6648
9a9df970
PA
66492015-03-09 Pedro Alves <palves@redhat.com>
6650
6651 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
6652 'struct sockaddr' pointer in 'accept' call.
6653
9eb1356e
PA
66542015-03-09 Pedro Alves <palves@redhat.com>
6655
6656 Revert:
6657 2015-03-07 Pedro Alves <palves@redhat.com>
6658 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
6659 or <winsock2.h> here. Instead include "gdb_socket.h".
6660 (remote_open): Use union gdb_sockaddr_u.
6661 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
6662 or <winsock2.h> here. Instead include "gdb_socket.h".
6663 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
6664 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
6665 or <sys/un.h>.
6666 (init_named_socket, gdb_agent_helper_thread): Use union
6667 gdb_sockaddr_u.
6668
aac331e4
PA
66692015-03-07 Pedro Alves <palves@redhat.com>
6670
6671 * configure.ac (build_warnings): Move
6672 -Wdeclaration-after-statement to the C-specific set.
6673 * configure: Regenerate.
6674
366c75fc
PA
66752015-03-07 Pedro Alves <palves@redhat.com>
6676
6677 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
6678 or <winsock2.h> here. Instead include "gdb_socket.h".
6679 (remote_open): Use union gdb_sockaddr_u.
6680 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
6681 or <winsock2.h> here. Instead include "gdb_socket.h".
6682 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
6683 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
6684 or <sys/un.h>.
6685 (init_named_socket, gdb_agent_helper_thread): Use union
6686 gdb_sockaddr_u.
6687
492d29ea
PA
66882015-03-07 Pedro Alves <palves@redhat.com>
6689
6690 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
6691 instead.
6692
60a191ed
YQ
66932015-03-06 Yao Qi <yao.qi@linaro.org>
6694
6695 * linux-aarch64-low.c (aarch64_insert_point): Use
6696 show_debug_regs as a boolean.
6697 (aarch64_remove_point): Likewise.
6698
f5771b1d
PA
66992015-03-05 Pedro Alves <palves@redhat.com>
6700
6701 * lynx-low.c (lynx_target_ops): Install NULL hooks for
6702 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
6703 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
6704 * nto-low.c (nto_target_ops): Likewise.
6705 * spu-low.c (spu_target_ops): Likewise.
6706 * win32-low.c (win32_target_ops): Likewise.
6707
3e572f71
PA
67082015-03-04 Pedro Alves <palves@redhat.com>
6709
72f4393d 6710 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
6711 Decide whether a breakpoint triggered based on the SIGTRAP's
6712 siginfo.si_code.
72f4393d
L
6713 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
6714 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
6715 (linux_low_filter_event): Check for breakpoints before checking
6716 watchpoints.
6717 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
6718 siginfo.si_code.
72f4393d
L
6719 (linux_stopped_by_sw_breakpoint)
6720 (linux_supports_stopped_by_sw_breakpoint)
6721 (linux_stopped_by_hw_breakpoint)
6722 (linux_supports_stopped_by_hw_breakpoint): New functions.
6723 (linux_target_ops): Install new target methods.
3e572f71 6724
1ec68e26
PA
67252015-03-04 Pedro Alves <palves@redhat.com>
6726
6727 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
6728 * server.c (swbreak_feature, hwbreak_feature): New globals.
6729 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
6730 (captured_main): Clear swbreak_feature and hwbreak_feature.
6731 * server.h (swbreak_feature, hwbreak_feature): Declare.
6732 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
6733 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
6734 supports_stopped_by_hw_breakpoint>: New fields.
6735 (target_supports_stopped_by_sw_breakpoint)
6736 (target_stopped_by_sw_breakpoint)
6737 (target_supports_stopped_by_hw_breakpoint)
6738 (target_stopped_by_hw_breakpoint): Declare.
6739
15c66dd6
PA
67402015-03-04 Pedro Alves <palves@redhat.com>
6741
6742 enum lwp_stop_reason -> enum target_stop_reason
6743 * linux-low.c (check_stopped_by_breakpoint): Adjust.
6744 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
6745 (linux_wait_1, stuck_in_jump_pad_callback)
6746 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
6747 (linux_stopped_by_watchpoint):
6748 * linux-low.h (enum lwp_stop_reason): Delete.
6749 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
6750 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
6751
98fc70d6
YQ
67522015-03-04 Yao Qi <yao.qi@linaro.org>
6753
6754 * Makefile.in (SFILES): Add linux-aarch64-low.c.
6755
dd2ac174
GB
67562015-03-03 Gary Benson <gbenson@redhat.com>
6757
6758 * hostio.c (handle_vFile): Fix prefix lengths.
6759
d68e53f4
MM
67602015-03-03 Markus Metzger <markus.t.metzger@intel.com>
6761
6762 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
6763 ptr_bits.
6764
bf2d68ab
AA
67652015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
6766
6767 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
6768 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
6769 (clean): Add "rm -f" for above C files.
6770 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
6771 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
6772 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
6773 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
6774 * linux-s390-low.c (HWCAP_S390_VX): New macro.
6775 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
6776 (init_registers_s390x_vx_linux64)
6777 (init_registers_s390x_tevx_linux64)
6778 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
6779 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
6780 declarations.
6781 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
6782 (s390_store_vxrs_high): New functions.
6783 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
6784 NT_S390_VXRS_HIGH.
6785 (s390_arch_setup): Add logic for selecting one of the new target
6786 descriptions. Activate the new vector regsets if applicable.
6787 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
6788 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
6789 and init_registers_s390x_tevx_linux64.
6790
c966a859
PA
67912015-03-01 Pedro Alves <palves@redhat.com>
6792
6793 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
6794 parameter.
6795
4180215b
PA
67962015-02-27 Pedro Alves <palves@redhat.com>
6797
6798 * linux-x86-low.c (u_debugreg_offset): New function.
6799 (x86_linux_dr_get, x86_linux_dr_set): Use it.
6800
749bab01
PA
68012015-02-27 Pedro Alves <palves@redhat.com>
6802
6803 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
6804 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
6805 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
6806 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6807 (ps_lsetfpregs, ps_getpid)
6808 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
6809 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
6810 (ps_lsetxregs, ps_plog): Declare.
6811
3c14e5a3
PA
68122015-02-27 Pedro Alves <palves@redhat.com>
6813
6814 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
6815 IP_AGENT_EXPORT_FUNC.
6816 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
6817 IP_AGENT_EXPORT_FUNC.
6818 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
6819 (IP_AGENT_EXPORT): Delete.
6820 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
6821 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
6822 (gdb_trampoline_buffer_error, collecting, gdb_collect)
6823 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
6824 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
6825 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
6826 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
6827 (traceframe_read_count, traceframe_write_count)
6828 (traceframes_created, trace_state_variables, get_raw_reg)
6829 (get_trace_state_variable_value, set_trace_state_variable_value)
6830 (ust_loaded, helper_thread_id, cmd_buf): Use
6831 IPA_SYM_EXPORTED_NAME.
6832 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
6833 (tracepoints) Use IP_AGENT_EXPORT_VAR.
6834 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
6835 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
6836 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
6837 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
6838 EXTERN_C_PUSH/EXTERN_C_POP.
6839 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
6840 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
6841 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
6842 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
6843 (traceframe_write_count, traceframe_read_count)
6844 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
6845 (about_to_request_buffer_space, get_trace_state_variable_value)
6846 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
6847 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
6848 EXTERN_C_PUSH/EXTERN_C_POP.
6849 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
6850 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
6851 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
6852 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
6853 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
6854 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
6855 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
6856 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
6857 Define.
6858 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
6859 (IP_AGENT_EXPORT_VAR_DECL): Define.
6860 (tracing): Declare.
6861 (gdb_agent_get_raw_reg): Declare.
6862
fe978cb0
PA
68632015-02-27 Tom Tromey <tromey@redhat.com>
6864 Pedro Alves <palves@redhat.com>
6865
6866 Rename symbols whose names are reserved C++ keywords throughout.
6867
3bc3d82a
PA
68682015-02-27 Pedro Alves <palves@redhat.com>
6869
6870 * Makefile.in (COMPILER): New, get it from autoconf.
6871 (CXX): Get from autoconf instead.
6872 (COMPILE.pre): Use COMPILER.
6873 (CC-LD): Rename to ...
6874 (CC_LD): ... this. Use COMPILER.
6875 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
6876 (CXX_FOR_TARGET): Default to g++ instead of gcc.
6877 * acinclude.m4: Include build-with-cxx.m4.
6878 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
6879 Disable -Werror by default if building in C++ mode.
6880 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
6881 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
6882 the C++ compiler. Save/restore CXXFLAGS too.
6883 * configure: Regenerate.
6884
07697489
PA
68852015-02-27 Pedro Alves <palves@redhat.com>
6886
6887 * acinclude.m4: Include libiberty.m4.
6888 * configure.ac: Call libiberty_INIT.
6889 * config.in, configure: Regenerate.
6890
9beb7c4e
PA
68912015-02-26 Pedro Alves <palves@redhat.com>
6892
6893 * linux-low.c (linux_wait_1): When incrementing the PC past a
6894 program breakpoint always use the_low_target.breakpoint_len as
6895 increment, rather than the maximum between that and
6896 the_low_target.decr_pc_after_break.
6897
8090aef2
PA
68982015-02-23 Pedro Alves <palves@redhat.com>
6899
6900 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
6901 thread was doing a step-over; always adjust the PC if
6902 we stepped over a permanent breakpoint.
6903 (linux_wait_1): If we stepped over breakpoint that was on top of a
6904 permanent breakpoint, manually advance the PC past it.
6905
bc9540e8
PA
69062015-02-23 Pedro Alves <palves@redhat.com>
6907
6908 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
6909 modes.
6910 (x86_fill_gregset, x86_store_gregset): Use it when handling
6911 $orig_eax.
6912
2db9a427
PA
69132015-02-20 Pedro Alves <palves@redhat.com>
6914
6915 * thread-db.c: Include "nat/linux-procfs.h".
6916 (thread_db_init): Skip listing new threads if the kernel supports
6917 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
6918
afa8d396
PA
69192015-02-20 Pedro Alves <palves@redhat.com>
6920
6921 * linux-low.c (status_pending_p_callback): Use ptid_match.
6922
c9587f88
AT
69232015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
6924
6925 PR breakpoints/16812
6926 * linux-low.c (wstatus_maybe_breakpoint): Remove.
6927 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
6928 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
6929
b05ec7a5
AT
69302015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
6931
6932 PR breakpoints/15956
6933 * tracepoint.c (cmd_qtinit): Add check for current_thread.
6934
d33501a5
MM
69352015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6936
6937 * linux-low.c (linux_low_btrace_conf): Print size.
6938 * server.c (handle_btrace_conf_general_set): New.
6939 (hanle_general_set): Call handle_btrace_conf_general_set.
6940 (handle_query): Report Qbtrace-conf:bts:size as supported.
6941
f4abbc16
MM
69422015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6943
6944 * linux-low.c (linux_low_enable_btrace): Update parameters.
6945 (linux_low_btrace_conf): New.
6946 (linux_target_ops)<to_btrace_conf>: Initialize.
6947 * server.c (current_btrace_conf): New.
6948 (handle_btrace_enable): Rename to ...
6949 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
6950 to target_enable_btrace. Update comment. Update users.
6951 (handle_qxfer_btrace_conf): New.
6952 (qxfer_packets): Add btrace-conf entry.
6953 (handle_query): Report qXfer:btrace-conf:read as supported packet.
6954 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
6955 (target_ops)<read_btrace_conf>: New.
6956 (target_enable_btrace): Update parameters.
6957 (target_read_btrace_conf): New.
6958
043c3577
MM
69592015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6960
6961 * server.c (handle_btrace_general_set): Remove call to
6962 target_supports_btrace.
6963 (supported_btrace_packets): New.
6964 (handle_query): Call supported_btrace_packets.
6965 * target.h: include btrace-common.h.
6966 (btrace_target_info): Removed.
6967 (supports_btrace, target_supports_btrace): Update parameters.
6968
734b0e4b
MM
69692015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6970
6971 * Makefile.in (SFILES): Add common/btrace-common.c.
6972 (OBS): Add common/btrace-common.o.
6973 (btrace-common.o): Add build rules.
6974 * linux-low: Include btrace-common.h.
6975 (linux_low_read_btrace): Use struct btrace_data. Call
6976 btrace_data_init and btrace_data_fini.
6977
d6c146e9
PA
69782015-02-06 Pedro Alves <palves@redhat.com>
6979
6980 * thread-db.c (find_new_threads_callback): Add debug output.
6981
20ba1ce6
PA
69822015-02-04 Pedro Alves <palves@redhat.com>
6983
6984 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
6985 (resume_stopped_resumed_lwps): New function.
6986 (linux_wait_for_event_filtered): Use it.
6987
8cc73a39
SDJ
69882015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
6989
6990 * Makefile.in (SFILES): Add linux-personality.c.
6991 (linux-personality.o): New rule.
6992 * configure.srv (srv_linux_obj): Add linux-personality.o to the
6993 list of objects to be built.
6994 * linux-low.c: Include nat/linux-personality.h.
6995 (linux_create_inferior): Remove code to disable address space
6996 randomization (moved to ../nat/linux-personality.c). Create
6997 cleanup to disable address space randomization.
6998
fb23d554
SDJ
69992015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
7000
7001 * Makefile.in (posix-strerror.o): New rule.
7002 (mingw-strerror.o): Likewise.
7003 * configure: Regenerated.
7004 * configure.ac: Source file ../common/common.host. Initialize new
7005 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
7006
cdf43629
YQ
70072015-01-14 Yao Qi <yao@codesourcery.com>
7008
7009 * Makefile.in (SFILES): Add nat/ppc-linux.c.
7010 (ppc-linux.o): New rule.
7011 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
7012 * configure.ac: AC_CHECK_FUNCS(getauxval).
7013 * config.in: Re-generated.
7014 * configure: Re-generated.
7015 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
7016 ppc64_64bit_inferior_p
7017
514c5338
YQ
70182015-01-14 Yao Qi <yao@codesourcery.com>
7019
7020 * linux-ppc-low.c: Include "nat/ppc-linux.h".
7021 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
7022 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
7023 (PT_ORIG_R3, PT_TRAP): Likewise.
7024 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
7025 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
7026 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
7027
3368c1e5
JB
70282015-01-10 Joel Brobecker <brobecker@adacore.com>
7029
7030 * i387-fp.c (i387_cache_to_xsave): In look over
7031 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
7032 zmmh_low_space field by use of zmmh_high_space.
7033
582511be
PA
70342015-01-09 Pedro Alves <palves@redhat.com>
7035
7036 * linux-low.c (step_over_bkpt): Move higher up in the file.
7037 (handle_extended_wait): Don't store the stop_pc here.
7038 (get_stop_pc): Adjust comments and rename to ...
7039 (check_stopped_by_breakpoint): ... this. Record whether the LWP
7040 stopped for a software breakpoint or hardware breakpoint.
7041 (thread_still_has_status_pending_p): New function.
7042 (status_pending_p_callback): Use
7043 thread_still_has_status_pending_p. If the event is no longer
7044 interesting, resume the LWP.
7045 (handle_tracepoints): Add assert.
7046 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
7047 (wstatus_maybe_breakpoint): New function.
7048 (cancel_breakpoint): Delete function.
7049 (check_stopped_by_watchpoint): New function, factored out from
7050 linux_low_filter_event.
7051 (lp_status_maybe_breakpoint): Delete function.
7052 (linux_low_filter_event): Remove filter_ptid argument.
7053 Leave thread group exits pending here. Store the LWP's stop PC.
7054 Always leave events pending.
7055 (linux_wait_for_event_filtered): Pull all events out of the
7056 kernel, and leave them all pending.
7057 (count_events_callback, select_event_lwp_callback): Consider all
7058 events.
7059 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
7060 (select_event_lwp): Only give preference to the stepping LWP in
7061 all-stop mode. Adjust comments.
7062 (ignore_event): New function.
7063 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
7064 references to cancel_breakpoints. Adjust to renames. Also give
7065 equal priority to all LWPs that have had events in non-stop mode.
7066 If reporting a software breakpoint event, unadjust the LWP's PC.
7067 (linux_wait): If linux_wait_1 returned an ignored event, retry.
7068 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
7069 Adjust.
7070 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
7071 (resume_status_pending_p): Use thread_still_has_status_pending_p.
7072 (linux_stopped_by_watchpoint): Adjust.
7073 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
7074 * linux-low.h (enum lwp_stop_reason): New.
7075 (struct lwp_info) <stop_pc>: Adjust comment.
7076 <stopped_by_watchpoint>: Delete field.
7077 <stop_reason>: New field.
7078 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
7079 * mem-break.c (software_breakpoint_inserted_here)
7080 (hardware_breakpoint_inserted_here): New function.
7081 * mem-break.h (software_breakpoint_inserted_here)
7082 (hardware_breakpoint_inserted_here): Declare.
7083 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
7084 (cancel_breakpoints): Delete.
7085 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
7086 (upload_fast_traceframes): Remove references to
7087 cancel_breakpoints.
7088
a33e3959
PA
70892015-01-09 Pedro Alves <palves@redhat.com>
7090
7091 * thread-db.c (find_new_threads_callback): Ignore thread if the
7092 kernel thread ID is -1.
7093
8784d563
PA
70942015-01-09 Pedro Alves <palves@redhat.com>
7095
7096 * linux-low.c (linux_attach_fail_reason_string): Move to
7097 nat/linux-ptrace.c, and rename.
7098 (linux_attach_lwp): Update comment.
7099 (attach_proc_task_lwp_callback): New function.
7100 (linux_attach): Adjust to rename and use
7101 linux_proc_attach_tgid_threads.
7102 (linux_attach_fail_reason_string): Delete declaration.
7103
76f2b779
JB
71042015-01-01 Joel Brobecker <brobecker@adacore.com>
7105
7106 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
7107 * server.c (gdbserver_version): Likewise.
7108
fafcc06a
SDJ
71092014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
7110
7111 * remote-utils.c: Include ctype.h.
7112 (input_interrupt): Explicitly handle the case when the char
7113 received is the NUL byte. Improve the printing of non-ASCII
7114 characters.
7115
beed38b8
JB
71162014-12-16 Joel Brobecker <brobecker@adacore.com>
7117
7118 * linux-low.c (linux_low_filter_event): Update call to
7119 linux_enable_event_reporting following the addition of
7120 a new parameter to that function.
7121
bf330350
CU
71222014-12-16 Catalin Udma <catalin.udma@freescale.com>
7123
7124 PR server/17457
7125 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
7126 (AARCH64_FPCR_REGNO): Likewise.
7127 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
7128 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
7129 (aarch64_store_fpregset): Likewise.
7130
5227d625
JB
71312014-12-15 Joel Brobecker <brobecker@adacore.com>
7132
7133 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
7134 Remove FIXME comment about assumption about N.
7135
f93b65a0
JB
71362014-12-13 Joel Brobecker <brobecker@adacore.com>
7137
7138 * configure.ac: If large-file support is disabled in GDBserver,
7139 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
7140 * configure: Regenerate.
7141
e5a9158d
AA
71422014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
7143
7144 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
7145 warning upon ENODATA from ptrace.
7146 * linux-s390-low.c (s390_store_tdb): New.
7147 (s390_regsets): Add regset for NT_S390_TDB.
7148
feea5f36
AA
71492014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
7150
7151 * linux-low.c (regsets_store_inferior_registers): Skip regsets
7152 without a fill_function.
7153 * linux-s390-low.c (s390_fill_last_break): Remove.
7154 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
7155 (s390_arch_setup): Use regset's size instead of fill_function for
7156 loop end condition.
7157
098dbe61
AA
71582014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
7159
7160 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
7161 the regset's store function when ptrace returned an error.
7162 * regcache.c (get_thread_regcache): Invalidate register cache
7163 before fetching inferior's registers.
7164
28eef672
AA
71652014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
7166
7167 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
7168 while-loop as for-loop.
7169 (regsets_store_inferior_registers): Likewise.
7170
bdca27a2
YQ
71712014-11-28 Yao Qi <yao@codesourcery.com>
7172
7173 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
7174 * config.in, configure: Re-generate.
7175 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
7176 is defined.
7177
9c232dda
YQ
71782014-11-21 Yao Qi <yao@codesourcery.com>
7179
7180 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
7181 (AC_CHECK_HEADERS): Remove malloc.h.
7182 * configure: Re-generated.
7183 * config.in: Re-generated.
7184 * server.h: Don't include alloca.h and malloc.h.
7185 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
7186 Don't include malloc.h.
7187
43968415
JB
71882014-11-17 Joel Brobecker <brobecker@adacore.com>
7189
7190 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
7191 corresponding ERRNO check in same block.
7192
40e91bc7
PA
71932014-11-12 Pedro Alves <palves@redhat.com>
7194
7195 * server.c (cont_thread): Update comment.
7196 (start_inferior, attach_inferior): No longer clear cont_thread.
7197 (handle_v_cont): No longer set cont_thread.
7198 (captured_main): Clear cont_thread each time a GDB connects.
7199
c2c118cf
PA
72002014-11-12 Pedro Alves <palves@redhat.com>
7201
7202 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
7203 thread, and don't resume all threads if the Hc thread has exited.
7204
78708b7c
PA
72052014-11-12 Pedro Alves <palves@redhat.com>
7206
7207 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
7208 the process group instead of to a specific LWP.
7209
a2abc7de
PA
72102014-10-15 Pedro Alves <palves@redhat.com>
7211
7212 PR server/17487
7213 * win32-arm-low.c (arm_set_thread_context): Remove current_event
7214 parameter.
7215 (arm_set_thread_context): Delete.
7216 (the_low_target): Adjust.
7217 * win32-i386-low.c (debug_registers_changed)
7218 (debug_registers_used): Delete.
7219 (update_debug_registers_callback): New function.
7220 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
7221 needing to update their debug registers.
7222 (win32_get_current_dr): New function.
7223 (x86_dr_low_get_addr, x86_dr_low_get_control)
7224 (x86_dr_low_get_status): Fetch the debug register from the thread
7225 record's context.
7226 (i386_initial_stuff): Adjust.
7227 (i386_get_thread_context): Remove current_event parameter. Don't
7228 clear debug_registers_changed nor copy DR values to
7229 debug_reg_state.
7230 (i386_set_thread_context): Delete.
7231 (i386_prepare_to_resume): New function.
7232 (i386_thread_added): Mark the thread as needing to update irs
7233 debug registers.
7234 (the_low_target): Remove i386_set_thread_context and install
7235 i386_prepare_to_resume.
7236 * win32-low.c (win32_get_thread_context): Adjust.
7237 (win32_set_thread_context): Use SetThreadContext
7238 directly.
7239 (win32_prepare_to_resume): New function.
7240 (win32_require_context): New function, factored out from ...
7241 (thread_rec): ... this.
7242 (continue_one_thread): Call win32_prepare_to_resume on each thread
7243 we're about to continue.
7244 (win32_resume): Call win32_prepare_to_resume on the event thread.
7245 * win32-low.h (struct win32_thread_info)
7246 <debug_registers_changed>: New field.
7247 (struct win32_target_ops): Change prototype of set_thread_context,
7248 delete set_thread_context and add prepare_to_resume.
7249 (win32_require_context): New declaration.
7250
a442d071
GB
72512014-10-08 Gary Benson <gbenson@redhat.com>
7252
7253 * server.h: Do not include common-exceptions.h.
7254
6f1947e8
GB
72552014-10-08 Gary Benson <gbenson@redhat.com>
7256
7257 * server.h: Do not include cleanups.h.
7258
63b434a4
JH
72592014-09-30 James Hogan <james.hogan@imgtec.com>
7260
7261 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
7262 mips64-dsp-linux.c.
7263
c4d9ceb6
YQ
72642014-09-23 Yao Qi <yao@codesourcery.com>
7265
7266 * linux-low.c (lp_status_maybe_breakpoint): New function.
7267 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
7268 (count_events_callback): Likewise.
7269 (select_event_lwp_callback): Likewise.
7270 (cancel_breakpoints_callback): Likewise.
7271
89a5711c
DB
72722014-09-19 Don Breazeal <donb@codesourcery.com>
7273
7274 * linux-low.c (handle_extended_wait): Call
7275 linux_ptrace_get_extended_event.
7276 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
7277 linux_is_extended_waitstatus.
7278
bffc0964
JB
72792014-09-16 Joel Brobecker <brobecker@adacore.com>
7280
7281 * Makefile.in (CPPFLAGS): Define.
7282 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
7283 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
7284
0bfdf32f
GB
72852014-09-16 Gary Benson <gbenson@redhat.com>
7286
7287 * inferiors.h (current_inferior): Renamed as...
7288 (current_thread): New variable. All uses updated.
7289 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
7290 (maybe_move_out_of_jump_pad): Likewise.
7291 (cancel_breakpoint): Likewise.
7292 (linux_low_filter_event): Likewise.
7293 (wait_for_sigstop): Likewise.
7294 (linux_resume_one_lwp): Likewise.
7295 (need_step_over_p): Likewise.
7296 (start_step_over): Likewise.
7297 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
7298 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
7299 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
7300 and save_inferior as saved_thread.
7301 * regcache.c (get_thread_regcache): Renamed saved_inferior as
7302 saved_thread.
7303 (regcache_invalidate_thread): Likewise.
7304 * remote-utils.c (prepare_resume_reply): Likewise.
7305 * thread-db.c (thread_db_get_tls_address): Likewise.
7306 (disable_thread_event_reporting): Likewise.
7307 (remove_thread_event_breakpoints): Likewise.
7308 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
7309 as saved_thread.
7310 * target.h (set_desired_inferior): Renamed as...
7311 (set_desired_thread): New declaration. All uses updated.
7312 * server.c (myresume): Updated comment to reference thread instead
7313 of inferior.
7314 (handle_serial_event): Likewise.
7315 (handle_target_event): Likewise.
7316
361c8ade
GB
73172014-09-12 Tom Tromey <tromey@redhat.com>
7318 Gary Benson <gbenson@redhat.com>
7319
7320 * regcache.h: Include common-regcache.h.
7321 (regcache_read_pc): Don't declare.
7322 * regcache.c (get_thread_regcache_for_ptid): New function.
7323
bd9269f7
GB
73242014-09-11 Tom Tromey <tromey@redhat.com>
7325 Gary Benson <gbenson@redhat.com>
7326
7327 * symbol.c: New file.
7328 * Makefile.in (SFILES): Add symbol.c.
7329 (OBS): Add symbol.o.
7330
f8c1d06b
GB
73312014-09-11 Gary Benson <gbenson@redhat.com>
7332
7333 * target.c (target_stop_ptid, target_continue_ptid): New
7334 functions.
7335
721ec300
GB
73362014-09-11 Tom Tromey <tromey@redhat.com>
7337 Gary Benson <gbenson@redhat.com>
7338
7339 * target.h: Include target/target.h.
7340 * target.c (target_read_memory, target_read_uint32)
7341 (target_write_memory): New functions.
7342
c5e92cca
GB
73432014-09-11 Gary Benson <gbenson@redhat.com>
7344
7345 * server.h (debug_hw_points): Don't declare.
7346 * server.c (debug_hw_points): Don't define. Replace all uses
7347 with show_debug_regs.
7348 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
7349 all uses with show_debug_regs.
7350
2e4bb98a
EBM
73512014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7352
7353 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
7354 endianness into account.
7355 (ppc_supply_ptrace_register): Likewise.
7356
ac740bc7
JH
73572014-09-03 James Hogan <james.hogan@imgtec.com>
7358
7359 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
7360 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
7361
97ea6506
GB
73622014-09-03 Gary Benson <gbenson@redhat.com>
7363
7364 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
7365 ALL_DEBUG_ADDRESS_REGISTERS.
7366
df7e5265
GB
73672014-09-02 Gary Benson <gbenson@redhat.com>
7368
7369 * i386-low.h: Renamed as...
7370 * x86-low.h: New file. All type, function and variable name
7371 prefixes changed from "i386_" to "x86_". All references updated.
7372 * i386-low.c: Renamed as...
7373 * x86-low.c: New file. All type, function and variable name
7374 prefixes changed from "i386_" to "x86_". All references updated.
7375
ed859da7
GB
73762014-09-02 Gary Benson <gbenson@redhat.com>
7377
7378 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
7379 (x86_linux_new_thread): Likewise.
7380
860789c7
GB
73812014-08-29 Gary Benson <gbenson@redhat.com>
7382
7383 * server.h (setjmp.h): Do not include.
7384 (toplevel): Do not declare.
7385 (common-exceptions.h): Include.
7386 (cleanups.h): Likewise.
7387 * server.c (toplevel): Do not define.
7388 (exit_code): New static global.
7389 (detach_or_kill_for_exit_cleanup): New function.
7390 (main): New function. Original main renamed to...
7391 (captured_main): New function.
7392 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
7393
ff55e1b5
GB
73942014-08-29 Gary Benson <gbenson@redhat.com>
7395
7396 * Makefile.in (SFILES): Add common/common-exceptions.c.
7397 (OBS): Add common-exceptions.o.
7398 (common-exceptions.o): New rule.
7399 * utils.c (prepare_to_throw_exception): New function.
7400
e9bcb658
GB
74012014-08-29 Gary Benson <gbenson@redhat.com>
7402
7403 * config.in: Regenerate.
7404 * configure: Likewise.
7405
e3180625
GB
74062014-08-29 Gary Benson <gbenson@redhat.com>
7407
7408 * Makefile.in (SFILES): Add common/cleanups.c.
7409 (OBS): cleanups.o.
7410 (cleanups.o): New rule.
7411
e3d6ba5d
GB
74122014-08-29 Gary Benson <gbenson@redhat.com>
7413
7414 * utils.c (internal_vwarning): New function.
7415
7096e886
GB
74162014-08-28 Gary Benson <gbenson@redhat.com>
7417
7418 * utils.h (fatal): Remove declaration.
7419 * utils.c (fatal): Remove function.
7420
14ce3192
GB
74212014-08-28 Gary Benson <gbenson@redhat.com>
7422
7423 * tracepoint.c (gdb_agent_init): Replace fatal with
7424 perror_with_name.
7425 (initialize_tracepoint): Likewise.
7426
50278d59
GB
74272014-08-28 Gary Benson <gbenson@redhat.com>
7428
7429 * remote-utils.c (remote_prepare): Replace fatal with error.
7430
aa96c426
GB
74312014-08-28 Gary Benson <gbenson@redhat.com>
7432
7433 * linux-low.c (linux_async): Replace fatal with warning.
7434 Tidy up and return.
7435 (linux_start_non_stop): Return -1 if linux_async failed.
7436
f7160e97
GB
74372014-08-28 Gary Benson <gbenson@redhat.com>
7438
7439 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
7440 gdb_assert.
7441 (i386_dr_low_get_addr): Remove vague comment.
7442 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
7443 gdb_assert.
7444
38e08fca
GB
74452014-08-28 Gary Benson <gbenson@redhat.com>
7446
7447 * inferiors.c (get_thread_process): Replace check with gdb_assert.
7448 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
7449 internal_error.
7450 (linux_resume_one_lwp): Likewise.
7451 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
7452 gdb_assert.
7453 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
7454 with internal_error.
7455 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
7456 (init_register_cache): Replace fatal with gdb_assert_not_reached.
7457 (find_register_by_name): Replace fatal with internal_error.
7458 (find_regno): Likewise.
7459 * tdesc.c (init_target_desc): Replace check with gdb_assert.
7460 * thread-db.c (thread_db_create_event): Likewise.
7461 (thread_db_load_search): Likewise.
7462 (try_thread_db_load_1): Likewise.
7463 * tracepoint.c (get_jump_space_head): Replace fatal with
7464 internal_error.
7465 (claim_trampoline_space): Likewise.
7466 (have_fast_tracepoint_trampoline_buffer): Likewise.
7467 (cmd_qtstart): Likewise.
7468 (stop_tracing): Likewise.
7469 (fast_tracepoint_collecting): Likewise.
7470 (target_malloc): Likewise.
7471 (download_tracepoint): Likewise.
7472 (download_trace_state_variables): Replace check with gdb_assert.
7473 (upload_fast_traceframes): Replace fatal with internal_error.
7474
34abf635
GB
74752014-08-19 Tom Tromey <tromey@redhat.com>
7476 Gary Benson <gbenson@redhat.com>
7477
7478 * Makefile.in (SFILES): Add common/common-debug.c.
7479 (OBS): Add common-debug.o.
7480 (common-debug.o): New rule.
7481 * debug.h (debug_printf): Don't declare.
7482 * debug.c (debug_printf): Renamed and rewritten as...
7483 (debug_vprintf): New function.
7484
f6e94d78
GB
74852014-08-19 Gary Benson <gbenson@redhat.com>
7486
7487 * utils.h: Do not include print-utils.h.
7488
9239eeab
GB
74892014-08-19 Tom Tromey <tromey@redhat.com>
7490 Gary Benson <gbenson@redhat.com>
7491
7492 * server.h: Add static assertion.
7493 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
7494
ef87c8bb
GB
74952014-08-19 Tom Tromey <tromey@redhat.com>
7496 Gary Benson <gbenson@redhat.com>
7497
7498 * Makefile.in (SFILES): Add common/errors.c.
7499 (OBS): Add errors.o.
7500 (IPA_OBS): Add errors-ipa.o.
7501 (errors.o): New rule.
7502 (errors-ipa.o): Likewise.
7503 * utils.h (perror_with_name, error, warning): Don't declare.
7504 * utils.c (warning): Renamed and rewritten as...
7505 (vwarning): New function.
7506 (error): Renamed and rewritten as...
7507 (verror): New function.
7508 (internal_error): Renamed and rewritten as...
7509 (internal_verror): New function.
7510
bb974a24
GB
75112014-08-07 Gary Benson <gbenson@redhat.com>
7512
7513 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
7514 * configure: Regenerate.
7515 * config.in: Likewise.
7516 * server.h: Do not include errno.h.
7517 * event-loop.c: Likewise.
7518 * hostio-errno.c: Likewise.
7519 * linux-low.c: Likewise.
7520 * remote-utils.c: Likewise.
7521 * spu-low.c: Likewise.
7522 * utils.c: Likewise.
7523 * gdbreplay.c: Unconditionally include errno.h.
7524
6d3d12eb
GB
75252014-08-07 Gary Benson <gbenson@redhat.com>
7526
7527 * server.h: Do not include string.h.
7528 * event-loop.c: Likewise.
7529 * linux-low.c: Likewise.
7530 * regcache.c: Likewise.
7531 * remote-utils.c: Likewise.
7532 * spu-low.c: Likewise.
7533 * utils.c: Likewise.
7534
dccbb609
GB
75352014-08-07 Gary Benson <gbenson@redhat.com>
7536
7537 * server.h: Do not include gdb_assert.h.
7538
e76df0d0
GB
75392014-08-07 Gary Benson <gbenson@redhat.com>
7540
7541 * server.h: Do not include common-utils.h.
7542
4cb9c816
GB
75432014-08-07 Gary Benson <gbenson@redhat.com>
7544
7545 * server.h: Do not include ptid.h.
7546 * notif.h: Likewise.
7547
3995eeee
GB
75482014-08-07 Gary Benson <gbenson@redhat.com>
7549
7550 * server.h: Do not include gdb_locale.h.
7551
cb9f1a9b
GB
75522014-08-07 Gary Benson <gbenson@redhat.com>
7553
7554 * server.h: Do not include gdb/signals.h.
7555 * win32-low.c: Likewise.
7556
a5fceff8
GB
75572014-08-07 Gary Benson <gbenson@redhat.com>
7558
7559 * server.h: Do not include pathmax.h.
7560
b9391142
GB
75612014-08-07 Gary Benson <gbenson@redhat.com>
7562
7563 * server.h: Do not include libiberty.h.
7564 * linux-bfin-low.c: Likewise.
7565
0e443c87
GB
75662014-08-07 Gary Benson <gbenson@redhat.com>
7567
7568 * server.h: Do not include ansidecl.h.
7569
8ebb3f56
GB
75702014-08-07 Gary Benson <gbenson@redhat.com>
7571
7572 * linux-x86-low.c: Do not include stddef.h.
7573 * lynx-ppc-low.c: Likewise.
7574 * tracepoint.c: Likewise.
7575
8980bdf6
GB
75762014-08-07 Gary Benson <gbenson@redhat.com>
7577
7578 * server.h: Do not include stdarg.h.
7579 * nto-low.c: Likewise.
7580
d7096f71
GB
75812014-08-07 Gary Benson <gbenson@redhat.com>
7582
7583 * server.h: Do not include stdlib.h.
7584 * inferiors.c: Likewise.
7585 * linux-low.c: Likewise.
7586 * regcache.c: Likewise.
7587 * spu-low.c: Likewise.
7588 * tracepoint.c: Likewise.
7589 * utils.c: Likewise.
7590
d02f550d
GB
75912014-08-07 Gary Benson <gbenson@redhat.com>
7592
7593 * server.h: Do not include stdio.h.
7594 * linux-low.c: Likewise.
7595 * remote-utils.c: Likewise.
7596 * spu-low.c: Likewise.
7597 * utils.c: Likewise.
7598 * wincecompat.c: Likewise.
7599
87f6c4e3
GB
76002014-08-06 Gary Benson <gbenson@redhat.com>
7601
7602 * regcache.c (init_register_cache): Move conditionals inside if.
7603
7089dca4
GB
76042014-08-06 Gary Benson <gbenson@redhat.com>
7605
7606 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
7607
462f517e
GB
76082014-07-31 Gary Benson <gbenson@redhat.com>
7609
7610 * ax.h: Do not include server.h.
7611 * gdbthread.h: Likewise.
7612 * lynx-low.h: Likewise.
7613 * notif.h: Likewise.
7614
976411d6
GB
76152014-07-30 Gary Benson <gbenson@redhat.com>
7616
7617 * server.h: Include common-defs.h.
7618 Do not include config.h or build-gnulib-gdbserver/config.h.
7619
d41f6d8e
GB
76202014-07-30 Gary Benson <gbenson@redhat.com>
7621
7622 * hostio-errno.c: Move server.h to top of includes list.
7623 * inferiors.c: Likewise.
7624 * linux-x86-low.c: Likewise.
7625 * notif.c: Include server.h.
7626
314c6a35
TT
76272014-07-24 Tom Tromey <tromey@redhat.com>
7628 Gary Benson <gbenson@redhat.com>
7629
7630 * server.h (CORE_ADDR): Now unsigned.
7631
69ff6be5
PA
76322014-07-16 Pedro Alves <palves@redhat.com>
7633
7634 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
7635
ce9e3fe7
PA
76362014-07-15 Pedro Alves <palves@redhat.com>
7637
7638 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
7639 copy.
7640
e76126e8
PA
76412014-07-11 Pedro Alves <palves@redhat.com>
7642
7643 * linux-low.c (kill_wait_lwp): New function, based on
7644 kill_one_lwp_callback, but use my_waitpid directly.
7645 (kill_one_lwp_callback, linux_kill): Use it.
7646
8e9db26e
PA
76472014-06-23 Pedro Alves <palves@redhat.com>
7648
7649 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
7650 before setting DR0..DR3.
7651
698b3e08
GB
76522014-06-20 Gary Benson <gbenson@redhat.com>
7653
7654 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
7655 * configure: Regenerated.
7656 * config.in: Likewise.
7657
125f8a3d
GB
76582014-06-20 Gary Benson <gbenson@redhat.com>
7659
7660 * Makefile.in (SFILES): Update locations for files moved
7661 from common to nat.
7662 (object file files): Reordered.
7663
42995dbd
GB
76642014-06-20 Gary Benson <gbenson@redhat.com>
7665
7666 * i386-low.h (i386_dr_low_can_set_addr): Removed.
7667 (i386_dr_low_set_addr): Likewise.
7668 (i386_dr_low_get_addr): Likewise.
7669 (i386_dr_low_can_set_control): Likewise.
7670 (i386_dr_low_set_control): Likewise.
7671 (i386_dr_low_get_control): Likewise.
7672 (i386_dr_low_get_status): Likewise.
7673 (i386_get_debug_register_length): Likewise.
7674 * linux-x86-low.c (i386_dr_low_set_addr):
7675 Changed signature. Made static.
7676 (i386_dr_low_get_addr): Likewise.
7677 (i386_dr_low_set_control): Likewise.
7678 (i386_dr_low_get_control): Likewise.
7679 (i386_dr_low_get_status): Likewise.
7680 (i386_dr_low): New global variable.
7681 * win32-i386-low.c (i386_dr_low_set_addr):
7682 Changed signature. Made static.
7683 (i386_dr_low_get_addr): Likewise.
7684 (i386_dr_low_set_control): Likewise.
7685 (i386_dr_low_get_control): Likewise.
7686 (i386_dr_low_get_status): Likewise.
7687 (i386_dr_low): New global variable.
7688
e1d2394b
MS
76892014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
7690
7691 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
7692 * Makefile.in (AR, AR_FLAGS): Define.
7693 * configure: Regenerate.
7694
3a8ee006
GB
76952014-06-19 Gary Benson <gbenson@redhat.com>
7696
7697 * Makefile.in (i386-dregs.o): New rule.
7698 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
7699 * i386-low.c (target.h): Remove include.
7700 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
7701 (DR_CONTROL_SHIFT): Likewise.
7702 (DR_CONTROL_SIZE): Likewise.
7703 (DR_RW_EXECUTE): Likewise.
7704 (DR_RW_WRITE): Likewise.
7705 (DR_RW_READ): Likewise.
7706 (DR_RW_IORW): Likewise.
7707 (DR_LEN_1): Likewise.
7708 (DR_LEN_2): Likewise.
7709 (DR_LEN_4): Likewise.
7710 (DR_LEN_8): Likewise.
7711 (DR_LOCAL_ENABLE_SHIFT): Likewise.
7712 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
7713 (DR_ENABLE_SIZE): Likewise.
7714 (DR_LOCAL_SLOWDOWN): Likewise.
7715 (DR_GLOBAL_SLOWDOWN): Likewise.
7716 (DR_CONTROL_RESERVED): Likewise.
7717 (I386_DR_CONTROL_MASK): Likewise.
7718 (I386_DR_VACANT): Likewise.
7719 (I386_DR_LOCAL_ENABLE): Likewise.
7720 (I386_DR_GLOBAL_ENABLE): Likewise.
7721 (I386_DR_DISABLE): Likewise.
7722 (I386_DR_SET_RW_LEN): Likewise.
7723 (I386_DR_GET_RW_LEN): Likewise.
7724 (I386_DR_WATCH_HIT): Likewise.
7725 (i386_wp_op_t): Likewise.
7726 (i386_show_dr): Likewise.
7727 (i386_length_and_rw_bits): Likewise.
7728 (i386_insert_aligned_watchpoint): Likewise.
7729 (i386_remove_aligned_watchpoint): Likewise.
7730 (i386_handle_nonaligned_watchpoint): Likewise.
7731 i386_update_inferior_debug_regs(): Likewise.
7732 (i386_dr_insert_watchpoint): Likewise.
7733 (i386_dr_remove_watchpoint): Likewise.
7734 (i386_dr_region_ok_for_watchpoint): Likewise.
7735 (i386_dr_stopped_data_address): Likewise.
7736 (i386_dr_stopped_by_watchpoint): Likewise.
7737
8f26655c
GB
77382014-06-19 Gary Benson <gbenson@redhat.com>
7739
7740 * i386-low.c (i386_dr_show): Renamed to
7741 i386_show_dr and made static. All uses updated.
7742 (i386_dr_length_and_rw_bits): Renamed to
7743 i386_length_and_rw_bits and made static.
7744 All uses updated.
7745 (i386_dr_insert_aligned_watchpoint): Renamed to
7746 i386_insert_aligned_watchpoint and made static.
7747 All uses updated.
7748 (i386_dr_remove_aligned_watchpoint): Renamed to
7749 i386_remove_aligned_watchpoint and made static.
7750 All uses updated.
7751 (i386_dr_update_inferior_debug_regs): Renamed to
7752 i386_update_inferior_debug_regs and made static.
7753 All uses updated.
7754
b9228891
GB
77552014-06-18 Gary Benson <gbenson@redhat.com>
7756
5171def3
GB
7757 * i386-low.h (i386_dr_low_can_set_addr): New macro.
7758 (i386_dr_low_can_set_control): Likewise.
7759 (i386_get_debug_register_length): Likewise.
7760 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
7761 (i386_dr_low_can_set_control): Likewise.
7762 (i386_get_debug_register_length): Likewise.
7763
77642014-06-17 Gary Benson <gbenson@redhat.com>
7765
b9228891
GB
7766 * i386-low.h (i386-dregs.h): New include.
7767 (DR_FIRSTADDR): Now in i386-dregs.h.
7768 (DR_LASTADDR): Likewise.
7769 (DR_NADDR): Likewise.
7770 (DR_STATUS): Likewise.
7771 (DR_CONTROL): Likewise.
7772 (i386_debug_reg_state): Likewise.
7773 (i386_dr_insert_watchpoint): Likewise.
7774 (i386_dr_remove_watchpoint): Likewise.
7775 (i386_dr_region_ok_for_watchpoint): Likewise.
7776 (i386_dr_stopped_data_address): Likewise.
7777 (i386_dr_stopped_by_watchpoint): Likewise.
7778 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
7779
4be83cc2
GB
77802014-06-18 Gary Benson <gbenson@redhat.com>
7781
7782 * i386-low.h (i386_low_insert_watchpoint): Renamed to
7783 i386_dr_insert_watchpoint.
7784 (i386_low_remove_watchpoint): Renamed to
7785 i386_dr_remove_watchpoint.
7786 (i386_low_region_ok_for_watchpoint): Renamed to
7787 i386_dr_region_ok_for_watchpoint.
7788 (i386_low_stopped_data_address): Renamed to
7789 i386_dr_stopped_data_address.
7790 (i386_low_stopped_by_watchpoint): Renamed to
7791 i386_dr_stopped_by_watchpoint.
7792 * i386-low.c (i386_show_dr): Renamed to
7793 i386_dr_show and made nonstatic. All uses updated.
7794 (i386_length_and_rw_bits): Renamed to
7795 i386_dr_length_and_rw_bits and made nonstatic.
7796 All uses updated.
7797 (i386_insert_aligned_watchpoint): Renamed to
7798 i386_dr_insert_aligned_watchpoint and made nonstatic.
7799 All uses updated.
7800 (i386_remove_aligned_watchpoint): Renamed to
7801 i386_dr_remove_aligned_watchpoint and made nonstatic.
7802 All uses updated.
7803 (i386_update_inferior_debug_regs): Renamed to
7804 i386_dr_update_inferior_debug_regs and made nonstatic.
7805 All uses updated.
7806 (i386_low_insert_watchpoint): Renamed to
7807 i386_dr_insert_watchpoint. All uses updated.
7808 (i386_low_remove_watchpoint): Renamed to
7809 i386_dr_remove_watchpoint. All uses updated.
7810 (i386_low_region_ok_for_watchpoint): Renamed to
7811 i386_dr_region_ok_for_watchpoint. All uses updated.
7812 (i386_low_stopped_data_address): Renamed to
7813 i386_dr_stopped_data_address. All uses updated.
7814 (i386_low_stopped_by_watchpoint): Renamed to
7815 i386_dr_stopped_by_watchpoint. All uses updated.
7816
131aa0d4
GB
78172014-06-18 Gary Benson <gbenson@redhat.com>
7818
7819 * i386-low.c (i386_dr_low_can_set_addr): New macro.
7820 (i386_dr_low_can_set_control): Likewise.
7821 (i386_insert_aligned_watchpoint): New check.
7822
d9305f7f
GB
78232014-06-18 Gary Benson <gbenson@redhat.com>
7824
7825 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
7826 Renamed to state.
7827
e927c9fc
GB
78282014-06-18 Gary Benson <gbenson@redhat.com>
7829
7830 * i386-low.c (i386_length_and_rw_bits): Use internal_error
7831 instead of fatal and error.
7832 (i386_handle_nonaligned_watchpoint): Likewise.
7833
1b6d4134
GB
78342014-06-18 Gary Benson <gbenson@redhat.com>
7835
7836 * i386-low.c (i386_get_debug_register_length): New macro.
7837 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
7838 (i386_show_dr): Use debug_printf instead of fprintf. Use
7839 phex to format values.
7840
6e62758f
GB
78412014-06-18 Gary Benson <gbenson@redhat.com>
7842
7843 * i386-low.h: Comment changes.
7844 * i386-low.c: Likewise.
7845
fc6e2f03
GB
78462014-06-18 Gary Benson <gbenson@redhat.com>
7847
7848 * i386-low.c: Whitespace changes.
7849
f9d1eeed
TT
78502014-06-12 Tom Tromey <tromey@redhat.com>
7851
7852 * utils.c (freeargv): Remove.
7853
0b04e523
TT
78542014-06-12 Tom Tromey <tromey@redhat.com>
7855
7856 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
7857 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
7858 (parse_debug_format_options): Likewise.
7859 (gdbserver_usage): Likewise.
7860 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
7861 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
7862 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
7863 against libiberty.
7864 ($(LIBGNU)): Depend on libiberty.
7865 (all-lib): Recurse into all subdirs.
7866 (install-only): Invoke "install" target in subdirs.
7867 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
7868 targets.
7869 * configure: Rebuild.
7870 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
7871 for vasprintf, vsnprintf, or gettimeofday.
7872 * configure.srv: Don't add safe-ctype.o or lbasename.o to
7873 srv_tgtobj.
7874
270c9937
JB
78752014-06-05 Joel Brobecker <brobecker@adacore.com>
7876
7877 * development.sh: Delete.
7878 * Makefile.in (config.status): Adjust dependency on development.sh.
7879 * configure.ac: Adjust development.sh source call.
7880 * configure: Regenerate.
7881
0a261ed8
PA
78822014-06-02 Pedro Alves <palves@redhat.com>
7883
7884 * ax.c (gdb_free_agent_expr): New function.
7885 * ax.h (gdb_free_agent_expr): New declaration.
7886 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
7887 list.
7888 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
7889 static.
7890 (clear_breakpoint_conditions_and_commands): New function.
7891 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
7892 (clear_breakpoint_conditions_and_commands): New declaration.
7893
e9dae05e
RR
78942014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7895
7896 * linux-aarch64-low.c (asm/ptrace.h): Include.
7897
5876f503
JK
78982014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7899
7900 Fix TLS access for -static -pthread.
7901 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
7902 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
7903 (thread_db_load_search, try_thread_db_load_1): Initialize it.
7904
802e8e6d
PA
79052014-05-20 Pedro Alves <palves@redhat.com>
7906
7907 * linux-aarch64-low.c (aarch64_insert_point)
7908 (aarch64_remove_point): No longer check whether the type is
7909 supported here. Adjust to new interface.
7910 (the_low_target): Install aarch64_supports_z_point_type as
7911 supports_z_point_type method.
7912 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
7913 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
7914 instead of a Z packet char. Adjust.
7915 (arm_supports_z_point_type): New function.
7916 (arm_insert_point, arm_remove_point): Adjust to new interface.
7917 (the_low_target): Install arm_supports_z_point_type.
7918 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
7919 (cris_insert_point, cris_remove_point): Adjust to new interface.
7920 Don't check whether the type is supported here.
7921 (the_low_target): Install cris_supports_z_point_type.
7922 * linux-low.c (linux_supports_z_point_type): New function.
7923 (linux_insert_point, linux_remove_point): Adjust to new interface.
7924 * linux-low.h (struct linux_target_ops) <insert_point,
7925 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
7926 raw_breakpoint pointer parameter.
7927 <supports_z_point_type>: New method.
7928 * linux-mips-low.c (mips_supports_z_point_type): New function.
7929 (mips_insert_point, mips_remove_point): Adjust to new interface.
7930 Use mips_supports_z_point_type.
7931 (the_low_target): Install mips_supports_z_point_type.
7932 * linux-ppc-low.c (the_low_target): Install NULL as
7933 supports_z_point_type method.
7934 * linux-s390-low.c (the_low_target): Install NULL as
7935 supports_z_point_type method.
7936 * linux-sparc-low.c (the_low_target): Install NULL as
7937 supports_z_point_type method.
7938 * linux-x86-low.c (x86_supports_z_point_type): New function.
7939 (x86_insert_point): Adjust to new insert_point interface. Use
7940 insert_memory_breakpoint. Adjust to new
7941 i386_low_insert_watchpoint interface.
7942 (x86_remove_point): Adjust to remove_point interface. Use
7943 remove_memory_breakpoint. Adjust to new
7944 i386_low_remove_watchpoint interface.
7945 (the_low_target): Install x86_supports_z_point_type.
7946 * lynx-low.c (lynx_target_ops): Install NULL as
7947 supports_z_point_type callback.
7948 * nto-low.c (nto_supports_z_point_type): New.
7949 (nto_insert_point, nto_remove_point): Adjust to new interface.
7950 (nto_target_ops): Install nto_supports_z_point_type.
7951 * mem-break.c: Adjust intro comment.
7952 (struct raw_breakpoint) <raw_type, size>: New fields.
7953 <inserted>: Update comment.
7954 <shlib_disabled>: Delete field.
7955 (enum bkpt_type) <gdb_breakpoint>: Delete value.
7956 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
7957 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
7958 (raw_bkpt_type_to_target_hw_bp_type): New function.
7959 (find_enabled_raw_code_breakpoint_at): New function.
7960 (find_raw_breakpoint_at): New type and size parameters. Use them.
7961 (insert_memory_breakpoint): New function, based off
7962 set_raw_breakpoint_at.
7963 (remove_memory_breakpoint): New function.
7964 (set_raw_breakpoint_at): Reimplement.
7965 (set_breakpoint): New, based on set_breakpoint_at.
7966 (set_breakpoint_at): Reimplement.
7967 (delete_raw_breakpoint): Go through the_target->remove_point
7968 instead of assuming memory breakpoints.
7969 (find_gdb_breakpoint_at): Delete.
7970 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
7971 (find_gdb_breakpoint): New function.
7972 (set_gdb_breakpoint_at): Delete.
7973 (z_type_supported): New function.
7974 (set_gdb_breakpoint_1): New function, loosely based off
7975 set_gdb_breakpoint_at.
7976 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
7977 (delete_gdb_breakpoint_at): Delete.
7978 (delete_gdb_breakpoint_1): New function, loosely based off
7979 delete_gdb_breakpoint_at.
7980 (delete_gdb_breakpoint): New function.
7981 (clear_gdb_breakpoint_conditions): Rename to ...
7982 (clear_breakpoint_conditions): ... this. Don't handle a NULL
7983 breakpoint.
7984 (add_condition_to_breakpoint): Make static.
7985 (add_breakpoint_condition): Take a struct breakpoint pointer
7986 instead of an address. Adjust.
7987 (gdb_condition_true_at_breakpoint): Rename to ...
7988 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
7989 z_type parameter.
7990 (gdb_condition_true_at_breakpoint): Reimplement.
7991 (add_breakpoint_commands): Take a struct breakpoint pointer
7992 instead of an address. Adjust.
7993 (gdb_no_commands_at_breakpoint): Rename to ...
7994 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
7995 parameter. Return true if no breakpoint was found. Change debug
7996 output.
7997 (gdb_no_commands_at_breakpoint): Reimplement.
7998 (run_breakpoint_commands): Rename to ...
7999 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
8000 and change return type to boolean.
8001 (run_breakpoint_commands): New function.
8002 (gdb_breakpoint_here): Also check for Z1 breakpoints.
8003 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
8004 breakpoint. Go through the_target->remove_point instead of
8005 assuming memory breakpoint.
8006 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
8007 software and hardware breakpoints.
8008 (reinsert_raw_breakpoint): Go through the_target->insert_point
8009 instead of assuming memory breakpoint.
8010 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
8011 software and hardware breakpoints.
8012 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
8013 Check both software and hardware breakpoints.
8014 (validate_inserted_breakpoint): Assert the breakpoint is a
8015 software breakpoint. Set the inserted flag to -1 instead of
8016 setting shlib_disabled.
8017 (delete_disabled_breakpoints): Adjust.
8018 (validate_breakpoints): Only validate software breakpoints.
8019 Adjust to inserted flag change.
8020 (check_mem_read, check_mem_write): Skip breakpoint types other
8021 than software breakpoints. Adjust to inserted flag change.
8022 * mem-break.h (enum raw_bkpt_type): New enum.
8023 (raw_breakpoint, struct process_info): Forward declare.
8024 (Z_packet_to_target_hw_bp_type): Delete declaration.
8025 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
8026 (set_gdb_breakpoint, delete_gdb_breakpoint)
8027 (clear_breakpoint_conditions): New declarations.
8028 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
8029 (breakpoint_inserted_here): Update comment.
8030 (add_breakpoint_condition, add_breakpoint_commands): Replace
8031 address parameter with a breakpoint pointer parameter.
8032 (gdb_breakpoint_here): Update comment.
8033 (delete_gdb_breakpoint_at): Delete.
8034 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
8035 * server.c (process_point_options): Take a struct breakpoint
8036 pointer instead of an address. Adjust.
8037 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
8038 delete_gdb_breakpoint.
8039 * spu-low.c (spu_target_ops): Install NULL as
8040 supports_z_point_type method.
8041 * target.h: Include mem-break.h.
8042 (struct target_ops) <prepare_to_access_memory>: Update comment.
8043 <supports_z_point_type>: New field.
8044 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
8045 instead of a char. Also take a raw breakpoint pointer.
8046 * win32-arm-low.c (the_low_target): Install NULL as
8047 supports_z_point_type.
8048 * win32-i386-low.c (i386_supports_z_point_type): New function.
8049 (i386_insert_point, i386_remove_point): Adjust to new interface.
8050 (the_low_target): Install i386_supports_z_point_type.
8051 * win32-low.c (win32_supports_z_point_type): New function.
8052 (win32_insert_point, win32_remove_point): Adjust to new interface.
8053 (win32_target_ops): Install win32_supports_z_point_type.
8054 * win32-low.h (struct win32_target_ops):
8055 <supports_z_point_type>: New method.
8056 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
8057 instead of a char. Also take a raw breakpoint pointer.
8058
932539e3
PA
80592014-05-20 Pedro Alves <palves@redhat.com>
8060
8061 * mem-break.h: Include break-common.h.
8062 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
8063 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
8064 (Z_packet_to_target_hw_bp_type): New declaration.
8065 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
8066 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
8067 (Z_PACKET_ACCESS_WP): Delete macros.
8068 (Z_packet_to_hw_type): Delete function.
8069 * i386-low.h: Don't include break-common.h here.
8070 (Z_packet_to_hw_type): Delete declaration.
8071 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
8072 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
8073 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
8074 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
8075 * linux-aarch64-low.c: Don't include break-common.h here.
8076 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
8077 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
8078 (Z_packet_to_target_hw_bp_type): Delete function.
8079 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
8080 function.
8081 (mips_insert_point, mips_remove_point): Use
8082 Z_packet_to_target_hw_bp_type.
8083
4ff0d3d8
PA
80842014-05-20 Pedro Alves <palves@redhat.com>
8085
8086 * linux-aarch64-low.c: Include break-common.h.
8087 (enum target_point_type): Delete.
8088 (Z_packet_to_point_type): Rename to ...
8089 (Z_packet_to_target_hw_bp_type): ... this, and return a
8090 target_hw_bp_type instead.
8091 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
8092 instead of an enum target_point_type.
8093 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
8094 breakpoint type.
8095 (aarch64_dr_state_insert_one_point)
8096 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
8097 (aarch64_handle_aligned_watchpoint)
8098 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
8099 Take an enum target_hw_bp_type instead of an enum
8100 target_point_type.
8101 (aarch64_supports_z_point_type): New function.
8102 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
8103 use Z_packet_to_target_hw_bp_type.
8104
786dc519
JB
81052014-05-20 Joel Brobecker <brobecker@adacore.com>
8106
8107 * configure.ac: Only use -Werror by default when DEVELOPMENT
8108 is true.
8109 * configure: Regenerate.
8110
9e0aa64f
JK
81112014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8112
8113 Fix gdbserver qGetTLSAddr for x86_64 -m32.
8114 * linux-x86-low.c (X86_64_USER_REGS): New.
8115 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
8116
2b577b92
YQ
81172014-04-28 Yao Qi <yao@codesourcery.com>
8118
8119 * Makefile.in (i386-avx512.c): Fix the typo of generated file
8120 name.
8121
94611da2
PA
81222014-04-25 Pedro Alves <palves@redhat.com>
8123
8124 PR server/16255
8125 * linux-low.c (linux_attach_fail_reason_string): New function.
8126 (linux_attach_lwp): Delete.
8127 (linux_attach_lwp_1): Rename to ...
8128 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
8129 argument. Remove "initial" parameter. Return int instead of
8130 void. Don't error or warn here.
8131 (linux_attach): Adjust to call linux_attach_lwp. Call error on
8132 failure to attach to the tgid. Call warning when failing to
8133 attach to an lwp.
8134 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
8135 argument. Remove "initial" parameter. Return int instead of
8136 void. Don't error or warn here.
8137 (linux_attach_fail_reason_string): New declaration.
8138 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
8139 interface change. Use linux_attach_fail_reason_string.
8140
01f9f808
MS
81412014-04-24 Michael Sturm <michael.sturm@mintel.com>
8142 Walfred Tedeschi <walfred.tedeschi@intel.com>
8143
8144 * Makefile.in: Added rules to handle new files
8145 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
8146 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
8147 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
8148 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
8149 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
8150 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
8151 x32-avx512-linux.o.
8152 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
8153 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
8154 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
8155 i386/x32-avx512.xml.
8156 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
8157 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
8158 i386/x32-avx512-linux.xml.
8159 * i387-fp.c (num_avx512_k_registers): New constant for number
8160 of K registers.
8161 (num_avx512_zmmh_low_registers): New constant for number of
8162 lower ZMM registers (0-15).
8163 (num_avx512_zmmh_high_registers): New constant for number of
8164 higher ZMM registers (16-31).
8165 (num_avx512_ymmh_registers): New contant for number of higher
8166 YMM registers (ymm16-31 added by avx521 on x86_64).
8167 (num_avx512_xmm_registers): New constant for number of higher
8168 XMM registers (xmm16-31 added by AVX512 on x86_64).
8169 (struct i387_xsave): Add space for AVX512 registers.
8170 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
8171 Add code to handle AVX512 registers.
8172 (i387_xsave_to_cache): Add code to handle AVX512 registers.
8173 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
8174 prototypei from generated file.
8175 (tdesc_amd64_avx512_linux): Likewise.
8176 (init_registers_x32_avx512_linux): Likewise.
8177 (tdesc_x32_avx512_linux): Likewise.
8178 (init_registers_i386_avx512_linux): Likewise.
8179 (tdesc_i386_avx512_linux): Likewise.
8180 (x86_64_regmap): Add AVX512 registers.
8181 (x86_linux_read_description): Add code to handle AVX512 XSTATE
8182 mask.
8183 (initialize_low_arch): Add code to initialize AVX512 registers.
8184
51aa91f9
PA
81852014-04-23 Pedro Alves <palves@redhat.com>
8186
8187 * mem-break.c (find_gdb_breakpoint_at): Make static.
8188 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
8189
a4165e94
PA
81902014-04-23 Pedro Alves <palves@redhat.com>
8191
8192 * i386-low.c: Don't include break-common.h here.
8193 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
8194 prototype to take target_hw_bp_type as argument instead of a Z
8195 packet char.
8196 * i386-low.h: Include break-common.h here.
8197 (Z_packet_to_hw_type): Declare.
8198 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
8199 prototypes.
8200 * linux-x86-low.c (x86_insert_point): Convert the packet number to
8201 a target_hw_bp_type before calling i386_low_insert_watchpoint.
8202 (x86_remove_point): Convert the packet number to a
8203 target_hw_bp_type before calling i386_low_remove_watchpoint.
8204 * win32-i386-low.c (i386_insert_point): Convert the packet number
8205 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
8206 (i386_remove_point): Convert the packet number to a
8207 target_hw_bp_type before calling i386_low_remove_watchpoint.
8208
b8acf843
PA
82092014-04-23 Pedro Alves <palves@redhat.com>
8210
8211 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
8212
d708bcd1
PA
82132014-04-10 Pedro Alves <palves@redhat.com>
8214
8215 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8216 Check if the condition or command is NULL before checking if the
8217 breakpoint is known. On success, return true.
8218 * mem-break.h (add_breakpoint_condition): Document return.
8219 (add_breakpoint_commands): Add describing comment.
8220 * server.c (skip_to_semicolon): New function.
8221 (process_point_options): Use it.
8222
2eec7d5b
PA
82232014-04-09 Pedro Alves <palves@redhat.com>
8224
8225 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
8226 to lwpid_of.
8227
fa96cb38
PA
82282014-02-27 Pedro Alves <palves@redhat.com>
8229
8230 PR 12702
8231 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
8232 macros.
8233 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
8234 output.
8235 (last_thread_of_process_p): Take a PID argument instead of a
8236 thread pointer.
8237 (linux_wait_for_lwp): Delete.
8238 (num_lwps, check_zombie_leaders, not_stopped_callback): New
8239 functions.
8240 (linux_low_filter_event): New function, party factored out from
8241 linux_wait_for_event.
8242 (linux_wait_for_event): Rename to ...
8243 (linux_wait_for_event_filtered): ... this. Add new filter ptid
8244 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
8245 sigsuspend. Check for zombie leaders.
8246 (linux_wait_for_event): Reimplement as wrapper around
8247 linux_wait_for_event_filtered.
8248 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
8249 a normal or signal exit is seen, it's the whole process exiting.
8250 (wait_for_sigstop): No longer a for_each_inferior callback.
8251 Rewrite on top of linux_wait_for_event_filtered.
8252 (stop_all_lwps): Call wait_for_sigstop directly.
8253 * server.c (resume, handle_target_event): Handle
8254 TARGET_WAITKIND_NO_RESUMED.
8255
d763de10
JB
82562014-02-26 Joel Brobecker <brobecker@adacore.com>
8257
8258 * win32-low.c (psapi_get_dll_name,
8259 * win32_CreateToolhelp32Snapshot): Delete.
8260 (win32_CreateToolhelp32Snapshot, win32_Module32First)
8261 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
8262 Delete.
8263 (handle_load_dll): Add function description.
8264 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
8265
850a0f76
JB
82662014-02-26 Joel Brobecker <brobecker@adacore.com>
8267
8268 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
8269 Add comment.
8270 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
8271 base address when calling win32_add_one_solib.
8272 (handle_load_dll): Delete local variable load_addr.
8273 Remove 0x1000 offset applied to DLL base address when calling
8274 win32_add_one_solib.
8275 (handle_unload_dll): Add comment.
8276
f25b3fc3
JB
82772014-02-26 Joel Brobecker <brobecker@adacore.com>
8278
8279 * win32-low.c (win32_add_all_dlls): Renames
8280 win32_ensure_ntdll_loaded. Rewrite function documentation.
8281 Adjust implementation to always load all DLLs.
8282 Add 0x1000 offset to DLL base address when calling
8283 win32_add_one_solib.
8284 (child_initialization_done): New static global.
8285 (do_initial_child_stuff): Set child_initialization_done to
8286 zero during child initialization, and 1 after. Replace call
8287 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
8288 Add comment.
8289 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
8290 (handle_unload_dll): Add function documentation.
8291 (get_child_debug_event): Ignore load and unload DLL events
8292 during child initialization.
8293
d86d4aaf
DE
82942014-02-20 Doug Evans <dje@google.com>
8295
3bc32da3 8296 Remove global all_lwps.
d86d4aaf
DE
8297 * inferiors.h (ptid_of): Move here from linux-low.h.
8298 (pid_of, lwpid_of): Ditto.
8299 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
8300 parameter is a struct thread_info * now.
8301 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
8302 directly. Pass &all_threads to find_inferior instead of &all_lwps.
8303 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
8304 directly.
8305 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
8306 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
8307 * linux-arm-low.c (update_registers_callback): Update, "entry"
8308 parameter is a struct thread_info * now.
8309 Fetch lwpid from current_inferior directly.
8310 (arm_insert_point): Pass &all_threads to find_inferior instead of
8311 &all_lwps.
8312 (arm_remove_point): Ditto.
8313 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
8314 (arm_prepare_to_resume): Fetch pid from thread.
8315 (arm_read_description): Fetch lwpid from current_inferior directly.
8316 * linux-low.c (all_lwps): Delete.
8317 (delete_lwp): Delete call to remove_inferior.
8318 (handle_extended_wait): Fetch lwpid from thread.
8319 (add_lwp): Don't set lwp->entry.id. Remove call to
8320 add_inferior_to_list.
8321 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
8322 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
8323 (kill_one_lwp_callback): Ditto.
8324 (linux_kill): Don't dereference NULL pointer.
8325 Fetch ptid,lwpid from thread.
8326 (get_detach_signal): Fetch ptid from thread.
8327 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
8328 Simplify call to regcache_invalidate_thread.
8329 (delete_lwp_callback): Update, "entry" parameter is a
8330 struct thread_info * now. Fetch pid from thread.
8331 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
8332 (status_pending_p_callback): Update, "entry" parameter is a
8333 struct thread_info * now. Fetch ptid from thread.
8334 (find_lwp_pid): Update, "entry" parameter is a
8335 struct thread_info * now.
8336 (linux_wait_for_lwp): Fetch pid from thread.
8337 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
8338 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
8339 (enqueue_one_deferred_signal): Fetch lwpid from thread.
8340 (dequeue_one_deferred_signal): Ditto.
8341 (cancel_breakpoint): Fetch ptid from current_inferior.
8342 (linux_wait_for_event): Pass &all_threads to find_inferior,
8343 not &all_lwps. Fetch ptid, lwpid from thread.
8344 (count_events_callback): Update, "entry" parameter is a
8345 struct thread_info * now.
8346 (select_singlestep_lwp_callback): Ditto.
8347 (select_event_lwp_callback): Ditto.
8348 (cancel_breakpoints_callback): Ditto.
8349 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
8350 not &all_lwps.
8351 (select_event_lwp): Ditto. Fetch ptid from event_thread.
8352 (unsuspend_one_lwp): Update, "entry" parameter is a
8353 struct thread_info * now.
8354 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
8355 not &all_lwps.
8356 (linux_stabilize_threads): Ditto. And for for_each_inferior.
8357 Fetch lwpid from thread, not lwp.
8358 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
8359 Pass &all_threads to find_inferior, not &all_lwps.
8360 (send_sigstop): Fetch lwpid from thread, not lwp.
8361 (send_sigstop_callback): Update, "entry" parameter is a
8362 struct thread_info * now.
8363 (suspend_and_send_sigstop_callback): Ditto.
8364 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
8365 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
8366 struct thread_info * now.
8367 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
8368 from thread, lwp.
8369 (lwp_running): Update, "entry" parameter is a
8370 struct thread_info * now.
8371 (stop_all_lwps): Fetch ptid from thread.
8372 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
8373 (linux_resume_one_lwp): Fetch lwpid from thread.
8374 (linux_set_resume_request): Update, "entry" parameter is a
8375 struct thread_info * now. Fetch pid, lwpid from thread.
8376 (resume_status_pending_p): Update, "entry" parameter is a
8377 struct thread_info * now.
8378 (need_step_over_p): Ditto. Fetch lwpid from thread.
8379 (start_step_over): Fetch lwpid from thread.
8380 (linux_resume_one_thread): Update, "entry" parameter is a
8381 struct thread_info * now. Fetch lwpid from thread.
8382 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
8383 (proceed_one_lwp): Update, "entry" parameter is a
8384 struct thread_info * now. Fetch lwpid from thread.
8385 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
8386 struct thread_info * now.
8387 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
8388 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
8389 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
8390 directly.
8391 (regsets_store_inferior_registers): Ditto.
8392 (fetch_register, store_register): Ditto.
8393 (linux_read_memory, linux_write_memory): Ditto.
8394 (linux_request_interrupt): Ditto.
8395 (linux_read_auxv): Ditto.
8396 (linux_xfer_siginfo): Ditto.
8397 (linux_qxfer_spu): Ditto.
8398 (linux_qxfer_libraries_svr4): Ditto.
8399 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
8400 moved to inferiors.h.
8401 (get_lwp): Delete.
8402 (get_thread_lwp): Update.
8403 (struct lwp_info): Delete member "entry". Simplify comment for
8404 member "thread".
8405 (all_lwps): Delete.
8406 * linux-mips-low.c (mips_read_description): Fetch lwpid from
8407 current_inferior directly.
8408 (update_watch_registers_callback): Update, "entry" parameter is a
8409 struct thread_info * now. Fetch pid from thread.
8410 (mips_linux_prepare_to_resume): Fetch ptid from thread.
8411 (mips_insert_point): Fetch lwpid from current_inferior.
8412 Pass &all_threads to find_inferior, not &all_lwps.
8413 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
8414 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
8415 directly.
8416 (mips_stopped_data_address): Ditto.
8417 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
8418 directly.
8419 * linux-tile-low.c (tile_arch_setup): Ditto.
8420 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
8421 (update_debug_registers_callback): Update, "entry" parameter is a
8422 struct thread_info * now. Fetch pid from thread.
8423 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
8424 Pass &all_threads to find_inferior, not &all_lwps.
8425 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
8426 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
8427 Pass &all_threads to find_inferior, not &all_lwps.
8428 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
8429 (i386_dr_low_get_status): Ditto.
8430 (x86_linux_prepare_to_resume): Fetch ptid from thread.
8431 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
8432 (x86_linux_read_description): Ditto.
8433 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
8434
3b8361aa
DE
84352014-02-20 Doug Evans <dje@google.com>
8436
8437 * inferiors.c (get_first_inferior): Fix buglet.
8438
f7667f0d
DE
84392014-02-19 Doug Evans <dje@google.com>
8440
8441 * gdbthread.h (add_thread): Change result type to struct thread_info *.
8442 * inferiors.c (add_thread): Change result type to struct thread_info *.
8443 All callers updated.
8444 (add_lwp): Call add_thread here instead of in callers.
8445 All callers updated.
8446 * linux-low.h (get_lwp_thread): Rewrite.
8447 (struct lwp_info): New member "thread".
8448
b3312d80
DE
84492014-02-19 Doug Evans <dje@google.com>
8450
8451 * linux-low.c (add_lwp): Change result to struct lwp_info *.
8452 All callers updated.
8453
ecc6f45c
DE
84542014-02-19 Doug Evans <dje@google.com>
8455
8456 * inferiors.c (add_thread): Fix whitespace.
8457
649ebbca
DE
84582014-02-19 Doug Evans <dje@google.com>
8459
8460 * dll.c (clear_dlls): Replace accessing list implemention details
8461 with API function.
8462 * gdbthread.h (get_first_thread): Declare.
8463 * inferiors.c (for_each_inferior_with_data): New function.
8464 (get_first_thread): New function.
8465 (find_thread_ptid): Simplify.
8466 (get_first_inferior): New function.
8467 (clear_list): Delete.
8468 (one_inferior_p): New function.
8469 (clear_inferior_list): New function.
8470 (clear_inferiors): Update.
8471 * inferiors.h (for_each_inferior_with_data): Declare.
8472 (clear_inferior_list): Declare.
8473 (one_inferior_p): Declare.
8474 (get_first_inferior): Declare.
8475 * linux-low.c (linux_wait_for_event): Replace accessing list
8476 implemention details with API function.
8477 * server.c (target_running): Ditto.
8478 (accumulate_file_name_length): New function.
8479 (emit_dll_description): New function.
8480 (handle_qxfer_libraries): Replace accessing list implemention
8481 details with API function.
8482 (handle_qxfer_threads_worker): New function.
8483 (handle_qxfer_threads_proper): Replace accessing list implemention
8484 details with API function.
8485 (handle_query): Ditto.
8486 (visit_actioned_threads_callback_ftype): New typedef.
8487 (visit_actioned_threads_data): New struct.
8488 (visit_actioned_threads): Rewrite to be find_inferior callback.
8489 (resume): Call find_inferior.
8490 (handle_status): Replace accessing list implemention
8491 details with API function.
8492 (process_serial_event): Replace accessing list implemention details
8493 with API function.
8494 * target.c (set_desired_inferior): Replace accessing list implemention
8495 details with API function.
8496 * tracepoint.c (same_process_p): New function.
8497 (gdb_agent_about_to_close): Replace accessing list implemention
8498 details with API function.
8499 * win32-low.c (child_delete_thread): Replace accessing list
8500 implemention details with API function.
8501 (match_dll_by_basename): New function.
8502 (dll_is_loaded_by_basename): New function.
8503 (win32_ensure_ntdll_loaded): Replace accessing list implemention
8504 details call to dll_is_loaded_by_basename.
8505
80894984
DE
85062014-02-19 Doug Evans <dje@google.com>
8507
8508 * dll.h (struct dll_info): Add comment.
8509 * gdbthread.h (struct thread_info): Add comment.
8510 (current_ptid): Simplify.
8511 * inferiors.c (add_process): Update.
8512 (remove_process): Update.
8513 * inferiors.h (struct process_info): Rename member "head" to "entry".
8514 * linux-low.c (delete_lwp): Update.
8515 (add_lwp): Update.
8516 (last_thread_of_process_p): Update.
8517 (kill_one_lwp_callback, linux_kill): Update.
8518 (status_pending_p_callback): Update.
8519 (wait_for_sigstop): Update. Simplify read of ptid.
8520 (start_step_over): Update.
8521 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
8522 (get_lwp_thread): Update.
8523 (struct lwp_info): Rename member "head" to "entry".
8524 * regcache.h (inferior_list_entry): Delete.
8525 * server.c (kill_inferior_callback): Update.
8526 (detach_or_kill_inferior_callback): Update.
8527 (print_started_pid): Update.
8528 (print_attached_pid): Update.
8529 (process_serial_event): Simplify read of ptid.
8530 * thread-db.c (thread_db_create_event): Update.
8531 (thread_db_get_tls_address): Update.
8532 * win32-low.c (current_inferior_ptid): Simplify.
8533
46917d26
TT
85342014-02-19 Tom Tromey <tromey@redhat.com>
8535
8536 * target.h (struct target_ops) <supports_btrace>: Add target_ops
8537 argument.
8538 (target_supports_btrace): Update.
8539
0759a81e
YQ
85402014-02-14 Yao Qi <yao@codesourcery.com>
8541
8542 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
8543 (rsp-low-ipa.o): New target.
8544
a7191e8b
TT
85452014-02-12 Tom Tromey <tromey@redhat.com>
8546
8547 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
8548 convert_ascii_to_int.
8549 * regcache.c (registers_to_string): Likewise.
8550 * remote-utils.c (decode_M_packet): Likewise.
8551 * server.c (process_serial_event): Likewise.
8552
ff0e980e
TT
85532014-02-12 Tom Tromey <tromey@redhat.com>
8554
8555 * server.c (handle_query, handle_v_run): Use hex2bin, not
8556 unhexify.
8557 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
8558
e9371aff
TT
85592014-02-12 Tom Tromey <tromey@redhat.com>
8560
8561 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
8562 convert_int_to_ascii.
8563 * regcache.c (registers_to_string, collect_register_as_string):
8564 Likewise.
8565 * remote-utils.c (look_up_one_symbol, relocate_instruction):
8566 Likewise.
8567 * server.c (process_serial_event): Likewise.
8568 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
8569 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
8570
971dc0b8
TT
85712014-02-12 Tom Tromey <tromey@redhat.com>
8572
8573 * remote-utils.c (look_up_one_symbol, monitor_output): Use
8574 bin2hex, not hexify.
8575 * tracepoint.c (cmd_qtstatus): Likewise.
8576
0a822afb
TT
85772014-02-12 Tom Tromey <tromey@redhat.com>
8578
8579 * remote-utils.c (monitor_output): Pass explicit length to
8580 hexify.
8581
9c3d6531
TT
85822014-02-12 Tom Tromey <tromey@redhat.com>
8583
8584 * tracepoint.c: Include rsp-low.h.
8585 * server.c: Include rsp-low.h.
8586 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
8587 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
8588 declare.
8589 * remote-utils.c: Include rsp-low.h.
8590 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
8591 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
8592 (convert_int_to_ascii, convert_ascii_to_int): Move to
8593 common/rsp-low.c.
8594 * regcache.c: Include rsp-low.h.
8595 * ax.c: Include rsp-low.h.
8596 * Makefile.in (SFILES): Add common/rsp-low.c.
8597 (OBS): Add rsp-low.o.
8598 (rsp-low.o): New target.
8599
01fd3ea5
TT
86002014-02-12 Tom Tromey <tromey@redhat.com>
8601
8602 * utils.h (pulongest, plongest, phex_nz): Don't declare.
8603 Include print-utils.h.
8604 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8605 (plongest, thirty_two, phex_nz): Remove.
8606 * Makefile.in (SFILES): Add common/print-utils.c.
8607 (OBS): Add print-utils.o.
8608 (print-utils-ipa.o): New target.
8609 (print-utils.o): New target.
8610 (IPA_OBJS): Add print-utils-ipa.o.
8611
e99dc820
TT
86122014-02-06 Tom Tromey <tromey@redhat.com>
8613
8614 * Makefile.in (SFILES): Fix indentation.
8615
ee1e2d4f
DE
86162014-02-05 Doug Evans <dje@google.com>
8617
8618 * linux-low.c (linux_wait_for_event): Improve comment.
8619 (linux_wait_1): Keep current_inferior in sync with event_child.
8620
f5a02773
DE
86212014-01-22 Doug Evans <dje@google.com>
8622
8623 * gdbthread.h (gdb_id_to_thread): Delete, unused.
8624
87ce2a04
DE
86252014-01-22 Doug Evans <dje@google.com>
8626
8627 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
8628 * configure: Regenerate.
8629 * config.in: Regenerate.
8630 * Makefile.in (SFILES): Add debug.c.
8631 (OBS): Add debug.o.
8632 * debug.c: New file.
8633 * debug.h: New file.
8634 * linux-aarch64-low.c (*): Update all debugging printfs to use
8635 debug_printf instead of fprintf.
8636 * linux-arm-low.c (*): Ditto.
8637 * linux-cris-low.c (*): Ditto.
8638 * linux-crisv32-low.c (*): Ditto.
8639 * linux-m32r-low.c (*): Ditto.
8640 * linux-sparc-low.c (*): Ditto.
8641 * linux-x86.c (*): Ditto.
8642 * linux-low.c (*): Ditto.
8643 (linux_wait_1): Add calls to debug_enter, debug_exit.
8644 (linux_wait): Remove redundant debugging printf.
8645 (stop_all_lwps): Add calls to debug_enter, debug_exit.
8646 (linux_resume, unstop_all_lwps): Ditto.
8647 * mem-break.c (*): Update all debugging printfs to use
8648 debug_printf instead of fprintf.
8649 * remote-utils.c (*): Ditto.
8650 * thread-db.c (*): Ditto.
8651 * server.c #include <ctype.h>, "gdb_vecs.h".
8652 (debug_threads): Moved to debug.c.
8653 (*): Update all debugging printfs to use debug_printf instead of
8654 fprintf.
8655 (start_inferior): Replace call to fflush with call to debug_flush.
8656 (monitor_show_help): Mention set debug-format.
8657 (parse_debug_format_options): New function.
8658 (handle_monitor_command): Handle "monitor set debug-format".
8659 (gdbserver_usage): Mention --debug-format.
8660 (main): Parse --debug-format.
8661 * server.h (debug_threads): Declaration moved to debug.h.
8662 #include "debug.h".
8663 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
8664 trace_debug_1 that uses debug_printf.
8665 (tracepoint_look_up_symbols): Update all debugging printfs to use
8666 debug_printf instead of fprintf.
8667
e671835b
BS
86682014-01-20 Baruch Siach <baruch@tkos.co.il>
8669
8670 * linux-xtensa-low.c: Include asm/ptrace.h instead of
8671 sys/ptrace.h.
8672
b5737fa9
PA
86732014-01-17 Pedro Alves <palves@redhat.com>
8674
ea38d2a9 8675 PR build/16445
c7faa97a
PA
8676 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
8677 defined after including gdb_proc_service.h.
b5737fa9 8678
40ed484e
DE
86792014-01-16 Doug Evans <dje@google.com>
8680
8681 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
8682 (match_dll): Use it.
8683
969c39fb
MM
86842014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8685
8686 * target.h (target_ops) <read_btrace>: Change parameters and
8687 return type to allow error reporting.
8688 * server.c (handle_qxfer_btrace): Support delta reads. Pass
8689 trace reading errors on.
8690 * linux-low.c (linux_low_read_btrace): Pass trace reading
8691 errors on.
8692 (linux_low_disable_btrace): New.
8693
ab7f45ba
DE
86942014-01-15 Doug Evans <dje@google.com>
8695
8696 * inferiors.c (thread_id_to_gdb_id): Delete.
8697 * inferiors.h (thread_id_to_gdb_id): Delete.
8698
66af0f44
EZ
86992014-01-13 Eli Zaretskii <eliz@gnu.org>
8700
8701 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
8702 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
8703 versions.
8704
9939e131
PA
87052014-01-08 Pedro Alves <palves@redhat.com>
8706
8707 * server.c (handle_status): Don't discard previous queued stop
8708 replies or thread's pending status here.
8709 (main) <disconnection>: Do it here instead.
8710
b7ea362b
PA
87112014-01-08 Pedro Alves <palves@redhat.com>
8712
8713 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
8714 * server.c (visit_actioned_threads, handle_pending_status): New
8715 function.
8716 (handle_v_cont): Factor out parts to ...
8717 (resume): ... this new function. If in all-stop, and a thread
8718 being resumed has a pending status, report it without actually
8719 resuming.
8720 (myresume): Adjust to use the new 'resume' function.
8721 (clear_pending_status_callback, set_pending_status_callback)
8722 (find_status_pending_thread_callback): New functions.
8723 (handle_status): Handle the case of multiple threads having
8724 interesting statuses to report. Report threads' real last signal
8725 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
8726 with an interesting thread to report the status for, instead of
8727 always reporting the status of the first thread.
8728
28498c42
JB
87292014-01-01 Joel Brobecker <brobecker@adacore.com>
8730
8731 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
8732 * gdbreplay.c (gdbreplay_version): Likewise.
8733
f45c82da
YZ
87342013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
8735
8736 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
8737 iov.iov_len with the real length in use.
8738
379a5e2d
JB
87392013-12-13 Joel Brobecker <brobecker@adacore.com>
8740
8741 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
8742 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
8743 for all targets that use win32-low.c.
8744 * win32-low.c (win32_ensure_ntdll_loaded): New function.
8745 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
8746
4210d83e
PA
87472013-12-13 Pedro Alves <palves@redhat.com>
8748
8749 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
8750 if equal to TARGET_WAITKIND_LOADED.
8751 * win32-low.c (cached_status): New static global.
8752 (win32_wait): Add declaration.
8753 (do_initial_child_stuff): Flush all initial pending debug events
8754 up to the initial breakpoint.
8755 (win32_wait): If CACHED_STATUS was set, return that instead
8756 of doing a real wait. Remove the code resuming the execution
8757 of the inferior after receiving a TARGET_WAITKIND_LOADED event
8758 during the initial phase. Also remove the code changing
8759 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
8760 TARGET_WAITKIND_STOPPED.
8761
e7f0d979
YQ
87622013-12-11 Yao Qi <yao@codesourcery.com>
8763
8764 * notif.c (handle_notif_ack): Return 0 if no notification
8765 matches.
8766
ebcf782c
DE
87672013-11-20 Doug Evans <dje@google.com>
8768
8769 * linux-low.c (linux_set_resume_request): Fix comment.
8770
20ad9378
DE
87712013-11-20 Doug Evans <dje@google.com>
8772
8773 * linux-low.c (resume_status_pending_p): Tweak comment.
8774
a196ebeb
WT
87752013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
8776
8777 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
8778 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
8779 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
8780 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
8781 (srv_amd64_regobj): Add amd64-mpx.o.
8782 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
8783 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
8784 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
8785 * i387-fp.c (num_pl_bnd_register) Added constant.
8786 (num_pl_bnd_cfg_registers) Added constant.
8787 (struct i387_xsave) Added reserved area and MPX fields.
8788 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
8789 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
8790 function.
8791 (tdesc_i386_mpx_linux): Add MPX amd64 target.
8792 (init_registers_amd64_mpx_linux): Declare new function.
8793 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
8794 (x86_64_regmap): Add MPX registers.
8795 (x86_linux_read_description): Add MPX case.
8796 (initialize_low_arch): Initialize MPX targets.
8797
0080a2f6
TT
87982013-11-18 Tom Tromey <tromey@redhat.com>
8799
8800 * configure: Rebuild.
8801 * configure.ac: Don't check for stdlib.h.
8802 * gdbreplay.c: Unconditionally include stdlib.h.
8803
2978b111
TT
88042013-11-18 Tom Tromey <tromey@redhat.com>
8805
8806 * config.in: Rebuild.
8807 * configure: Rebuild.
8808 * configure.ac: Don't use AC_HEADER_DIRENT.
8809
a3d08894
TT
88102013-11-18 Tom Tromey <tromey@redhat.com>
8811
8812 * server.h: Don't check HAVE_STRING_H.
8813 * gdbreplay.c: Don't check HAVE_STRING_H.
8814 * configure: Rebuild.
8815
0a5dd17d
TT
88162013-11-18 Tom Tromey <tromey@redhat.com>
8817
8818 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
8819 LIBGNU.
8820
1bd2f0ba
TT
88212013-11-08 Tom Tromey <tromey@redhat.com>
8822
8823 * configure, config.in: Rebuild.
8824 * configure.ac: Remove unused configury.
8825
3266f10b
TT
88262013-11-08 Tom Tromey <tromey@redhat.com>
8827
8828 * acinclude.m4: Include common.m4, codeset.m4.
8829 * configure, config.in: Rebuild.
8830 * configure.ac: Use GDB_AC_COMMON.
8831
6682d959
AA
88322013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
8833
8834 * linux-s390-low.c (HWCAP_S390_TE): New define.
8835 (s390_arch_setup): Consider the TE field in the HWCAP for
8836 determining 'have_regset_tdb'.
8837
fd0a4d76
SDJ
88382013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
8839
8840 PR gdb/16014
8841 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
8842 call to sizeof.
8843
1a3d890b
PA
88442013-10-02 Pedro Alves <palves@redhat.com>
8845
8846 * server.c (process_serial_event): Don't output "GDBserver
8847 exiting" if GDB is connected through stdio.
8848 * target.c (mywait): Likewise, be silent if GDB is connected
8849 through stdio.
8850
97ad4581
JB
88512013-10-01 Joel Brobecker <brobecker@adacore.com>
8852
8853 * lynx-low.c (lynx_add_threads_after_attach): New function.
8854 (lynx_attach): Remove call to add_thread. Add call to
8855 lynx_add_threads_after_attach instead.
8856
5b4e221c
MF
88572013-09-28 Mike Frysinger <vapier@gentoo.org>
8858
8859 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
8860 * config.in, configure: Regenerated.
8861
ee47b2f8
YQ
88622013-09-18 Yao Qi <yao@codesourcery.com>
8863
8864 PR server/15959
8865 * server.c (start_inferior): Clear 'resume_info'.
8866
d6707650 88672013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 8868
d6707650
JW
8869 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
8870 for each register.
8871
9243dd0e 88722013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 8873
9243dd0e
JW
8874 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
8875 linux-tile-low.o to srv_tgtobj.
8876
c623a6ef
WN
88772013-09-16 Will Newton <will.newton@linaro.org>
8878
8879 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
8880 out regs.
8881
fb71d39e
PA
88822013-09-06 Pedro Alves <palves@redhat.com>
8883
8884 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
8885 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
8886 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
8887 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
8888 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
8889 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
8890
8e7e9910
PA
88912013-09-06 Pedro Alves <palves@redhat.com>
8892
8893 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
8894 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
8895
7c3a12ca
PA
88962013-09-06 Pedro Alves <palves@redhat.com>
8897
8898 * linux-amd64-ipa.c: Include tracepoint.h.
8899 * linux-i386-ipa.c: Include tracepoint.h.
8900
8eb3d7b6
RW
89012013-09-06 Ricard Wanderlof <ricardw@axis.com>
8902
8903 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
8904 (ps_get_thread_area): New function.
8905
eddddb9d
RW
89062013-09-06 Ricard Wanderlof <ricardw@axis.com>
8907
8908 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
8909 (initialize_low_arch): Call init_registers_crisv32 rather than
8910 init_register_crisv32.
8911
533b0600
PA
89122013-09-05 Pedro Alves <palves@redhat.com>
8913
8914 * server.h (handle_vFile, hostio_last_error_from_errno): Move
8915 to ...
8916 * hostio.h: ... this new file.
8917 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
8918 win32-low.c: Include hostio.h.
8919
0ce3d3b5
PA
89202013-09-05 Pedro Alves <palves@redhat.com>
8921
8922 * server.h (gdb_client_data, handler_func, callback_handler_func)
8923 (delete_file_handler, add_file_handler, append_callback_event)
8924 (delete_callback_event, start_event_loop, initialize_event_loop):
8925 Move to event-loop.h and include it.
8926 * event-loop.h: New file.
8927
799cdc37
PA
89282013-09-05 Pedro Alves <palves@redhat.com>
8929
8930 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
8931 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
8932 (loaded_dll, unloaded_dll): Move to ...
8933 * dll.h: ... this new file.
8934 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
8935
6a6bbd9d
PA
89362013-09-05 Pedro Alves <palves@redhat.com>
8937
8938 * server.h (current_process, get_thread_process, all_processes)
8939 (add_inferior_to_list, for_each_inferior, current_inferior)
8940 (remove_inferior, add_process, remove_process, find_process_pid)
8941 (have_started_inferiors_p, have_attached_inferiors_p)
8942 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
8943 (clear_inferiors, find_inferior, find_inferior_id)
8944 (inferior_target_data, set_inferior_target_data)
8945 (inferior_regcache_data, set_inferior_regcache_data): Move to
8946 inferiors.h, and include it.
8947 * inferiors.h: New file.
8948
f699aaba
PA
89492013-09-05 Pedro Alves <palves@redhat.com>
8950
8951 * server.h (struct emit_ops, current_insn_ptr, emit_error):
8952 Move ...
72f4393d 8953 * ax.h: ... here.
f699aaba 8954
c144c7a0
PA
89552013-09-05 Pedro Alves <palves@redhat.com>
8956
8957 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
8958 tracepoint.h.
8959 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
8960 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
8961 (handle_tracepoint_general_set, handle_tracepoint_query)
8962 (tracepoint_finished_step, tracepoint_was_hit)
8963 (release_while_stepping_state_list, current_traceframe)
8964 (in_readonly_region, traceframe_read_mem)
8965 (fetch_traceframe_registers, traceframe_read_sdata)
8966 (traceframe_read_info, struct fast_tpoint_collect_status)
8967 (fast_tracepoint_collecting, force_unlock_trace_buffer)
8968 (handle_tracepoit_bkpts, initialize_low_tracepoint)
8969 (supply_fast_tracepoint_registers)
8970 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
8971 (ipa_tdesc, claim_trampoline_space)
8972 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
8973 (agent_mem_read, agent_get_trace_state_variable_value)
8974 (agent_set_trace_state_variable_value, agent_tsv_read)
8975 (agent_mem_read_string, get_raw_reg_func_addr)
8976 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
8977 * tracepoint.h: ... this new file.
8978
ff42e6ab
PA
89792013-09-05 Pedro Alves <palves@redhat.com>
8980
8981 * server.h (perror_with_name, error, fatal, warning, paddress)
8982 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
8983 include it.
8984 * utils.h: New file.
8985
541af0f4
PA
89862013-09-05 Pedro Alves <palves@redhat.com>
8987
8988 * server.h (remote_debug, noack_mode, transport_is_reliable)
8989 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
8990 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
8991 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
8992 (write_enn, initialize_async_io, enable_async_io)
8993 (disable_async_io, check_remote_input_interrupt_request)
8994 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
8995 (dead_thread_notify, prepare_resume_reply)
8996 (decode_address_to_semicolon, decode_address, decode_m_packet)
8997 (decode_M_packet, decode_X_packet, decode_xfer_write)
8998 (decode_search_memory_packet, unhexify, hexify)
8999 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
9000 (look_up_one_symbol, relocate_instruction)
9001 (monitor_output): Move to remote-utils.h, and include it.
9002 * remote-utils.h: New file.
9003
eebdf26b
PA
90042013-09-05 Pedro Alves <palves@redhat.com>
9005
9006 * server.h (_): Delete.
9007
3aafd2ff
PA
90082013-09-02 Pedro Alves <palves@redhat.com>
9009
9010 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
9011 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
9012 allocated.
9013 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
9014
cee83bcb
PM
90152013-09-02 Pierre Muller <muller@sourceware.org>
9016
9017 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
9018 or WriteProcessMemory complete successfully and handle
9019 ERROR_PARTIAL_COPY error.
9020
9a13b2fa
PA
90212013-09-02 Pedro Alves <palves@redhat.com>
9022
9023 * server.c (gdb_read_memory): Return -1 on traceframe memory read
9024 error instead of EIO.
9025
602e3198
JK
90262013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9027
9028 PR server/15604
9029 * linux-low.c: Include filestuff.h.
9030 (linux_create_inferior) <pid == 0>: Call close_most_fds.
9031 * lynx-low.c: Include filestuff.h.
9032 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
9033 * server.c: Include filestuff.h.
9034 (main): Call notice_open_fds.
9035 * spu-low.c: Include filestuff.h.
9036 (spu_create_inferior) <pid == 0>: Call close_most_fds.
9037
96d7229d
LM
90382013-08-22 Luis Machado <lgustavo@codesourcery.com>
9039
9040 * Makefile.in: Explain why ../target and ../nat are not
9041 listed as include file search paths.
9042 (linux-waitpid.o): New object file rule.
9043 * configure.srv (srv_native_linux_obj): New variable.
9044 Replace all occurrences of linux native object files with
9045 $srv_native_linux_obj.
9046 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
9047 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
9048 (linux_enable_event_reporting): Remove declaration.
9049 (my_waitpid): Moved to common/linux-waitpid.c.
9050 (linux_wait_for_event): Pass ptid when calling
9051 linux_enable_event_reporting.
9052 (linux_supports_tracefork_flag): Remove.
9053 (linux_enable_event_reporting): Likewise.
9054 (linux_tracefork_grandchild): Remove.
9055 (STACK_SIZE): Moved to common/linux-ptrace.c.
9056 (linux_tracefork_child): Remove.
9057 (linux_test_for_tracefork): Remove.
9058 (linux_look_up_symbols): Call linux_supports_traceclone.
9059 (initialize_low): Remove call to linux_test_for_tracefork.
9060 * linux-low.h (PTRACE_TYPE_ARG3): Move to
9061 common/linux-ptrace.h.
9062 (PTRACE_TYPE_ARG4): Likewise.
9063 Include linux-ptrace.h.
9064
32940073
PA
90652013-08-21 Pedro Alves <palves@redhat.com>
9066
9067 * config.in: Renegerate.
9068
33b60d58 90692013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 9070
33b60d58
LM
9071 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
9072 (SFILES): Remove $(srcdir)/common/target-common.c and
9073 add $(srcdir)/target/waitstatus.c.
9074 (OBS): Remove target-common.o and add waitstatus.o.
9075 (server_h): Remove $(srcdir)/../common/target-common.h and
9076 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
9077 and $(srcdir)/../target/waitstatus.h.
9078 (target-common.o): Remove.
9079 (waitstatus.o): New target object file.
9080 * target.h: Do not include target-common.h and
9081 include target/resume.h, target/wait.h and
9082 target/waitstatus.h.
9083
b8e1b30e
LM
90842013-08-13 Luis Machado <lgustavo@codesourcery.com>
9085
9086 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
9087 to PTRACE_TYPE_ARG3.
9088 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
9089 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
9090 PTRACE_TYPE_ARG4.
9091 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
9092 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
9093
7a60ad40
YQ
90942013-07-27 Jie Zhang <jie@codesourcery.com>
9095 Daniel Jacobowitz <dan@codesourcery.com>
9096 Yao Qi <yao@codesourcery.com>
9097
9098 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
9099 (mips-linux-watch.o): New rule.
9100 (mips_linux_watch_h): New variable.
9101 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
9102 srv_tgtobj.
9103 * linux-mips-low.c: Include mips-linux-watch.h.
9104 (struct arch_process_info, struct arch_lwp_info): New.
9105 (update_watch_registers_callback): New function.
9106 (mips_linux_new_process, mips_linux_new_thread) New functions.
9107 (mips_linux_prepare_to_resume, mips_insert_point): New
9108 functions.
9109 (mips_remove_point, mips_stopped_by_watchpoint): New
9110 functions.
9111 (rsp_bp_type_to_target_hw_bp_type): New function.
9112 (mips_stopped_data_address): New function.
9113 (the_low_target): Add watchpoint support functions.
9114
de6f69ad
YQ
91152013-07-27 Yao Qi <yao@codesourcery.com>
9116
9117 * i386-low.c: Include break-common.h.
9118 (enum target_hw_bp_type): Remove.
9119
3360c0bf
LM
91202013-07-24 Luis Machado <lgustavo@codesourcery.com>
9121
9122 * Makefile.in (SFILES): /common/target-common.c.
9123 (OBS): Add target-common.o.
9124 (server_h): Add $(srcdir)/../common/target-common.h.
9125 (target-common.o): New target.
9126 * server.c (queue_stop_reply_callback): Free
9127 status string after use.
9128 * target.c (target_waitstatus_to_string): Remove.
9129 * target.h: Include target-common.h.
9130 (resume_kind): Likewise.
9131 (target_waitkind): Likewise.
9132 (target_waitstatus): Likewise.
9133 (TARGET_WNOHANG): Likewise.
9134
bd885420
YQ
91352013-07-04 Yao Qi <yao@codesourcery.com>
9136
9137 * Makefile.in (host_alias): Use @host_noncanonical@.
9138 (target_alias): Use @target_noncanonical@.
9139 * configure.ac: Use ACX_NONCANONICAL_TARGET and
9140 ACX_NONCANONICAL_HOST.
9141 * configure: Regenerated.
9142
9143 Revert:
9144 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
9145
9146 * configure.ac (version_host, version_target): Set and AC_SUBST them.
9147 * configure: Rebuild.
9148 * Makefile.in (version_host, version_target): Get from configure.
9149 (version.c): Use $(version_host) and $(version_target).
9150
17ef446e
PA
91512013-07-03 Pedro Alves <palves@redhat.com>
9152
9153 * Makefile.in (config.status): Depend on development.sh.
9154 * acinclude.m4: Include libmcheck.m4.
9155 * configure: Regenerate.
9156
7a9a7487
MG
91572013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
9158
9159 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
9160 attribute inside the parentheses.
9161 (winapi_DebugSetProcessKillOnExit): Ditto.
9162 (winapi_DebugBreakProcess): Ditto.
9163 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 9164
49b64de6
MG
91652013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
9166
9167 * notif.h (notif_event): Add a dummy member to avoid compiler
9168 errors.
9169
d5749ee7
PA
91702013-07-01 Pedro Alves <palves@redhat.com>
9171
9172 * hostio.c (HOSTIO_PATH_MAX): Define.
9173 (require_filename, handle_open, handle_unlink, handle_readlink):
9174 Use it.
9175
d8d2a3ee
PA
91762013-07-01 Pedro Alves <palves@redhat.com>
9177
9178 * server.h: Include "pathmax.h".
9179 * linux-low.c: Don't include sys/param.h.
9180 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
9181 MAXPATHLEN.
9182 * win32-low.c: Don't include sys/param.h.
9183 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
9184
bc7dea8d
PA
91852013-07-01 Pedro Alves <palves@redhat.com>
9186
9187 * event-loop.c: Don't check HAVE_UNISTD_H before including
9188 <unistd.h>.
9189 * gdbreplay.c: Likewise.
9190 * remote-utils.c: Likewise.
9191 * server.c: Likewise.
9192 * configure.ac: Don't check for unistd.h.
9193 * configure: Regenerate.
9194
d6c2da54
TT
91952013-06-28 Tom Tromey <tromey@redhat.com>
9196
9197 * Makefile.in (version.c): Use version.in, not
9198 common/version.in.
9199
257b6bec
MG
92002013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
9201
9202 * configure.ac (version_host, version_target): Set and AC_SUBST them.
9203 * configure: Rebuild.
9204 * Makefile.in (version_host, version_target): Get from configure.
9205 (version.c): Use $(version_host) and $(version_target).
9206
86ebe149
DK
92072013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
9208
9209 Fix trace-status to output user name without trailing colon.
9210 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
9211
f30aa5af
DK
92122013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
9213
9214 Fix trace-status to output proper start-time and stop-time.
9215 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
9216 output start time and stop time in hex as gdb expects.
9217
28a93511
YQ
92182013-06-26 Pedro Alves <pedro@codesourcery.com>
9219
9220 * tracepoint.c (build_traceframe_info_xml): Output trace state
9221 variables present in the trace buffer.
9222
01208463
TT
92232013-06-24 Tom Tromey <tromey@redhat.com>
9224
9225 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
9226 create-version.sh.
9227 (version.o): Remove.
9228 * gdbreplay.c: Include version.h.
9229 (version, host_name): Don't declare.
9230 * server.h: Include version.h.
9231 (version, host_name): Don't declare.
9232
760256f9
PA
92332013-06-12 Pedro Alves <palves@redhat.com>
9234
9235 * linux-x86-low.c (linux_is_elf64): Delete global.
9236 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
9237 with local linux_pid_exe_is_elf_64_file use.
9238
030031ee
PA
92392013-06-11 Pedro Alves <palves@redhat.com>
9240
9241 * linux-low.c (regset_disabled, disable_regset): New functions.
9242 (regsets_fetch_inferior_registers)
9243 (regsets_store_inferior_registers): Use them.
9244 (initialize_regsets_info); Don't allocate the disabled_regsets
9245 array here.
9246 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
9247 comment.
9248
5da6eb0a
PA
92492013-06-11 Pedro Alves <palves@redhat.com>
9250
9251 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
9252 xmalloc.
9253
7e5aaa09
PA
92542013-06-11 Pedro Alves <palves@redhat.com>
9255
9256 * linux-x86-low.c (initialize_low_arch): Call
9257 init_registers_x32_avx_linux.
9258
d878444c
JK
92592013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9260
9261 Fix compatibility with Android Bionic.
9262 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
9263 it is not empty.
9264
3aee8918
PA
92652013-06-07 Pedro Alves <palves@redhat.com>
9266
5f2b57b5 9267 PR server/14823
3aee8918
PA
9268 * Makefile.in (OBS): Add tdesc.o.
9269 (IPA_OBJS): Add tdesc-ipa.o.
9270 (tdesc-ipa.o): New rule.
9271 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
9272 interface.
9273 * linux-low.c (new_inferior): Delete.
9274 (disabled_regsets, num_regsets): Delete.
9275 (linux_add_process): Adjust to set the new per-process
9276 new_inferior flag.
9277 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
9278 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
9279 was a stop. When calling arch_setup, switch the current inferior
9280 to the thread that got an event.
9281 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
9282 (regsets_fetch_inferior_registers)
9283 (regsets_store_inferior_registers): New regsets_info parameter.
9284 Adjust to use it.
9285 (linux_register_in_regsets): New regs_info parameter. Adjust to
9286 use it.
9287 (register_addr, fetch_register, store_register): New usrregs_info
9288 parameter. Adjust to use it.
9289 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
9290 parameter regs_info. Adjust to use it.
9291 (linux_fetch_registers): Get the current inferior's regs_info, and
9292 adjust to use it.
9293 (linux_store_registers): Ditto.
9294 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
9295 (initialize_low): Don't initialize the target_regsets here. Call
9296 initialize_low_arch.
9297 * linux-low.h (target_regsets): Delete declaration.
9298 (struct regsets_info): New.
9299 (struct usrregs_info): New.
9300 (struct regs_info): New.
9301 (struct process_info_private) <new_inferior>: New field.
9302 (struct linux_target_ops): Delete the num_regs, regmap, and
9303 regset_bitmap fields. New field regs_info.
9304 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
9305 * i387-fp.c (num_xmm_registers): Delete.
9306 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
9307 calls to new interface.
9308 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
9309 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
9310 Infer the number of xmm registers from the regcache's target
9311 description.
9312 * i387-fp.h (num_xmm_registers): Delete.
9313 * inferiors.c (add_thread): Don't install the thread's regcache
9314 here.
9315 * proc-service.c (gregset_info): Fetch the current inferior's
9316 regs_info. Adjust to use it.
9317 * regcache.c: Include tdesc.h.
9318 (register_bytes, reg_defs, num_registers)
9319 (gdbserver_expedite_regs): Delete.
9320 (get_thread_regcache): If the thread doesn't have a regcache yet,
9321 create one, instead of aborting gdbserver.
9322 (regcache_invalidate_one): Rename to ...
9323 (regcache_invalidate_thread): ... this.
9324 (regcache_invalidate_one): New.
9325 (regcache_invalidate): Only invalidate registers of the current
9326 process.
9327 (init_register_cache): Add target_desc parameter, and use it.
9328 (new_register_cache): Ditto. Assert the target description has a
9329 non zero registers_size.
9330 (regcache_cpy): Add assertions. Adjust.
9331 (realloc_register_cache, set_register_cache): Delete.
9332 (registers_to_string, registers_from_string): Adjust.
9333 (find_register_by_name, find_regno, find_register_by_number)
9334 (register_cache_size): Add target_desc parameter, and use it.
9335 (free_register_cache_thread, free_register_cache_thread_one)
9336 (regcache_release, register_cache_size): New.
9337 (register_size): Add target_desc parameter, and use it.
9338 (register_data, supply_register, supply_register_zeroed)
9339 (supply_regblock, supply_register_by_name, collect_register)
9340 (collect_register_as_string, collect_register_by_name): Adjust.
9341 * regcache.h (struct target_desc): Forward declare.
9342 (struct regcache) <tdesc>: New field.
9343 (init_register_cache, new_register_cache): Add target_desc
9344 parameter.
9345 (regcache_invalidate_thread): Declare.
9346 (regcache_invalidate_one): Delete declaration.
9347 (regcache_release): Declare.
9348 (find_register_by_number, register_cache_size, register_size)
9349 (find_regno): Add target_desc parameter.
9350 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
9351 declarations.
9352 * remote-utils.c: Include tdesc.h.
9353 (outreg, prepare_resume_reply): Adjust.
9354 * server.c: Include tdesc.h.
9355 (gdbserver_xmltarget): Delete declaration.
9356 (get_features_xml, process_serial_event): Adjust.
9357 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
9358 declare.
9359 (struct process_info) <tdesc>: New field.
9360 (ipa_tdesc): Declare.
9361 * tdesc.c: New file.
9362 * tdesc.h: New file.
9363 * tracepoint.c: Include tdesc.h.
9364 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
9365 (get_context_regcache): Adjust to pass ipa_tdesc down.
9366 (do_action_at_tracepoint): Adjust to get the register cache size
9367 from the context regcache's description.
9368 (traceframe_walk_blocks): Adjust to get the register cache size
9369 from the current trace frame's description.
9370 (traceframe_get_pc): Adjust to get current trace frame's
9371 description and pass it down.
9372 (gdb_collect): Adjust to get the register cache size from the
9373 IPA's description.
9374 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
9375 (gdbserver_xmltarget): Delete.
9376 (initialize_low_tracepoint): Set the ipa's target description.
9377 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
9378 (initialize_low_tracepoint): Set the ipa's target description.
9379 * linux-x86-low.c: Include tdesc.h.
9380 [__x86_64__] (is_64bit_tdesc): New.
9381 (ps_get_thread_area, x86_get_thread_area): Use it.
9382 (i386_cannot_store_register): Rename to ...
9383 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
9384 (i386_cannot_fetch_register): Rename to ...
9385 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
9386 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
9387 to new interface.
9388 (target_regsets): Rename to ...
9389 (x86_regsets): ... this.
9390 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
9391 interface.
9392 (x86_siginfo_fixup): Use is_64bit_tdesc.
9393 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
9394 (tdesc_x32_avx_linux, tdesc_x32_linux)
9395 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
9396 Declare.
9397 (x86_linux_update_xmltarget): Delete.
9398 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
9399 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
9400 (AMD64_LINUX_USER64_CS): New.
9401 (x86_linux_read_description): New, based on
9402 x86_linux_update_xmltarget.
9403 (same_process_callback): New.
9404 (x86_arch_setup_process_callback): New.
9405 (x86_linux_update_xmltarget): New.
9406 (x86_regsets_info): New.
9407 (amd64_linux_regs_info): New.
9408 (i386_linux_usrregs_info): New.
9409 (i386_linux_regs_info): New.
9410 (x86_linux_regs_info): New.
9411 (x86_arch_setup): Reimplement.
9412 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
9413 (x86_emit_ops): Ditto.
9414 (the_low_target): Adjust. Install x86_linux_regs_info,
9415 x86_cannot_fetch_register, and x86_cannot_store_register.
9416 (initialize_low_arch): New.
9417 * linux-ia64-low.c (tdesc_ia64): Declare.
9418 (ia64_fetch_register): Adjust.
9419 (ia64_usrregs_info, regs_info): New globals.
9420 (ia64_regs_info): New function.
9421 (the_low_target): Adjust.
9422 (initialize_low_arch): New function.
9423 * linux-sparc-low.c (tdesc_sparc64): Declare.
9424 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
9425 Adjust.
9426 (sparc_arch_setup): New function.
9427 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
9428 (the_low_target): Adjust.
9429 (initialize_low_arch): New function.
9430 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
9431 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
9432 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
9433 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
9434 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
9435 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
9436 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
9437 (tdesc_powerpc_isa205_vsx64l): Declare.
9438 (ppc_cannot_store_register, ppc_collect_ptrace_register)
9439 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
9440 (ppc_set_pc, ppc_get_hwcap): Adjust.
9441 (ppc_usrregs_info): Forward declare.
9442 (!__powerpc64__) ppc_regmap_adjusted: New global.
9443 (ppc_arch_setup): Adjust to the current process'es target
9444 description.
9445 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
9446 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
9447 (ppc_store_evrregset): Adjust.
9448 (target_regsets): Rename to ...
9449 (ppc_regsets): ... this, and make static.
9450 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
9451 (ppc_regs_info): New function.
9452 (the_low_target): Adjust.
9453 (initialize_low_arch): New function.
9454 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
9455 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
9456 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
9457 (tdesc_s390x_linux64v2): Declare.
9458 (s390_collect_ptrace_register, s390_supply_ptrace_register)
9459 (s390_fill_gregset, s390_store_last_break): Adjust.
9460 (target_regsets): Rename to ...
9461 (s390_regsets): ... this, and make static.
9462 (s390_get_pc, s390_set_pc): Adjust.
9463 (s390_get_hwcap): New target_desc parameter, and use it.
9464 [__s390x__] (have_hwcap_s390_high_gprs): New global.
9465 (s390_arch_setup): Adjust to set the current process'es target
9466 description. Don't adjust the regmap.
9467 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
9468 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
9469 (regs_info_3264): New globals.
9470 (s390_regs_info): New function.
9471 (the_low_target): Adjust.
9472 (initialize_low_arch): New function.
9473 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
9474 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
9475 [__mips64] (init_registers_mips_linux)
9476 (init_registers_mips_dsp_linux): Delete defines.
9477 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
9478 (have_dsp): New global.
9479 (mips_read_description): New, based on mips_arch_setup.
9480 (mips_arch_setup): Reimplement.
9481 (get_usrregs_info): New function.
9482 (mips_cannot_fetch_register, mips_cannot_store_register)
9483 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
9484 (mips_fill_fpregset, mips_store_fpregset): Adjust.
9485 (target_regsets): Rename to ...
9486 (mips_regsets): ... this, and make static.
9487 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
9488 (dsp_regs_info, regs_info): New globals.
9489 (mips_regs_info): New function.
9490 (the_low_target): Adjust.
9491 (initialize_low_arch): New function.
9492 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
9493 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
9494 Declare.
9495 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
9496 (arm_read_description): New, with bits factored from
9497 arm_arch_setup.
9498 (arm_arch_setup): Reimplement.
9499 (target_regsets): Rename to ...
9500 (arm_regsets): ... this, and make static.
9501 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
9502 (arm_regs_info): New function.
9503 (the_low_target): Adjust.
9504 (initialize_low_arch): New function.
9505 * linux-m68k-low.c (tdesc_m68k): Declare.
9506 (target_regsets): Rename to ...
9507 (m68k_regsets): ... this, and make static.
9508 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
9509 (m68k_regs_info): New function.
9510 (m68k_arch_setup): New function.
9511 (the_low_target): Adjust.
9512 (initialize_low_arch): New function.
9513 * linux-sh-low.c (tdesc_sharch): Declare.
9514 (target_regsets): Rename to ...
9515 (sh_regsets): ... this, and make static.
9516 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
9517 (sh_regs_info, sh_arch_setup): New functions.
9518 (the_low_target): Adjust.
9519 (initialize_low_arch): New function.
9520 * linux-bfin-low.c (tdesc_bfin): Declare.
9521 (bfin_arch_setup): New function.
9522 (bfin_usrregs_info, regs_info): New globals.
9523 (bfin_regs_info): New function.
9524 (the_low_target): Adjust.
9525 (initialize_low_arch): New function.
9526 * linux-cris-low.c (tdesc_cris): Declare.
9527 (cris_arch_setup): New function.
9528 (cris_usrregs_info, regs_info): New globals.
9529 (cris_regs_info): New function.
9530 (the_low_target): Adjust.
9531 (initialize_low_arch): New function.
9532 * linux-cris-low.c (tdesc_crisv32): Declare.
9533 (cris_arch_setup): New function.
9534 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
9535 (cris_regs_info): New function.
9536 (the_low_target): Adjust.
9537 (initialize_low_arch): New function.
9538 * linux-m32r-low.c (tdesc_m32r): Declare.
9539 (m32r_arch_setup): New function.
9540 (m32r_usrregs_info, regs_info): New globals.
9541 (m32r_regs_info): Adjust.
9542 (initialize_low_arch): New function.
9543 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
9544 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
9545 (tic6x_usrregs_info): Forward declare.
9546 (tic6x_read_description): New function, based on ...
9547 (tic6x_arch_setup): ... this. Reimplement.
9548 (target_regsets): Rename to ...
9549 (tic6x_regsets): ... this, and make static.
9550 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
9551 (tic6x_regs_info): New function.
9552 (the_low_target): Adjust.
9553 (initialize_low_arch): New function.
9554 * linux-xtensa-low.c (tdesc_xtensa): Declare.
9555 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
9556 (target_regsets): Rename to ...
9557 (xtensa_regsets): ... this, and make static.
9558 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
9559 globals.
9560 (xtensa_arch_setup, xtensa_regs_info): New functions.
9561 (the_low_target): Adjust.
9562 (initialize_low_arch): New function.
9563 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
9564 (nios2_arch_setup): Set the current process'es tdesc.
9565 (target_regsets): Rename to ...
9566 (nios2_regsets): ... this.
9567 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
9568 (nios2_regs_info): New function.
9569 (the_low_target): Adjust.
9570 (initialize_low_arch): New function.
a261b8f5
PA
9571 * linux-aarch64-low.c (tdesc_aarch64): Declare.
9572 (aarch64_arch_setup): Set the current process'es tdesc.
9573 (target_regsets): Rename to ...
9574 (aarch64_regsets): ... this.
9575 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
9576 (aarch64_regs_info): New function.
9577 (the_low_target): Adjust.
9578 (initialize_low_arch): New function.
3aee8918
PA
9579 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
9580 globals.
9581 (target_regsets): Rename to ...
9582 (tile_regsets): ... this.
9583 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
9584 (tile_regs_info): New function.
9585 (tile_arch_setup): Set the current process'es tdesc.
9586 (the_low_target): Adjust.
9587 (initialize_low_arch): New function.
9588 * spu-low.c (tdesc_spu): Declare.
9589 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
9590 * win32-arm-low.c (tdesc_arm): Declare.
9591 (arm_arch_setup): New function.
9592 (the_low_target): Install arm_arch_setup instead of
9593 init_registers_arm.
9594 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
9595 (init_windows_x86): Rename to ...
9596 (i386_arch_setup): ... this. Set `win32_tdesc'.
9597 (the_low_target): Adjust.
9598 * win32-low.c (win32_tdesc): New global.
9599 (child_add_thread): Don't create the thread cache here.
9600 (do_initial_child_stuff): Set the new process'es tdesc.
9601 * win32-low.h (struct target_desc): Forward declare.
9602 (win32_tdesc): Declare.
9603 * lynx-i386-low.c (tdesc_i386): Declare global.
9604 (lynx_i386_arch_setup): Set `lynx_tdesc'.
9605 * lynx-low.c (lynx_tdesc): New global.
9606 (lynx_add_process): Set the new process'es tdesc.
9607 * lynx-low.h (struct target_desc): Forward declare.
9608 (lynx_tdesc): Declare global.
9609 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
9610 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
9611 * nto-low.c (nto_tdesc): New global.
9612 (do_attach): Set the new process'es tdesc.
9613 * nto-low.h (struct target_desc): Forward declare.
9614 (nto_tdesc): Declare.
9615 * nto-x86-low.c (tdesc_i386): Declare.
9616 (nto_x86_arch_setup): Set `nto_tdesc'.
9617
b1fbec62
GB
96182013-06-04 Gary Benson <gbenson@redhat.com>
9619
9620 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
9621 to qSupported response when appropriate.
9622 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
9623 with nonzero-length annex.
9624 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
9625 arguments supplied in annex.
9626
d1ec4ce7
DE
96272013-05-31 Doug Evans <dje@google.com>
9628
ac44adcb 9629 PR server/15594
d1ec4ce7
DE
9630 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
9631 64 bits in 64-cross-32 environment.
9632
9b25f2d3
PA
96332013-05-28 Pedro Alves <palves@redhat.com>
9634
9635 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
9636 (aarch64-without-fpu.c): Delete rule.
9637 * configure.srv (aarch64*-*-linux*): Remove references to
9638 aarch64-without-fpu.o and aarch64-without-fpu.xml.
9639 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
9640 declaration.
9641
6740dc9c
PA
96422013-05-24 Pedro Alves <palves@redhat.com>
9643
9644 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
9645 instead of strchr/decode_address. Error if the range isn't split
9646 with a ','. Don't assume there's be a ':' in the action.
9647
c2d6af84
PA
96482013-05-23 Yao Qi <yao@codesourcery.com>
9649 Pedro Alves <palves@redhat.com>
9650
9651 * linux-low.c (lwp_in_step_range): New function.
9652 (linux_wait_1): If the thread was range stepping and stopped
9653 outside the stepping range, report the stop to GDB. Otherwise,
9654 continue stepping. Add range stepping debug output.
9655 (linux_set_resume_request): Copy the step range from the resume
9656 request to the lwp.
9657 (linux_supports_range_stepping): New.
9658 (linux_target_ops) <supports_range_stepping>: Set to
9659 linux_supports_range_stepping.
9660 * linux-low.h (struct linux_target_ops)
9661 <supports_range_stepping>: New field.
9662 (struct lwp_info) <step_range_start, step_range_end>: New fields.
9663 * linux-x86-low.c (x86_supports_range_stepping): New.
9664 (the_low_target) <supports_range_stepping>: Set to
9665 x86_supports_range_stepping.
9666 * server.c (handle_v_cont): Handle 'r' action.
9667 (handle_v_requests): Append ";r" if the target supports range
9668 stepping.
9669 * target.h (struct thread_resume) <step_range_start,
9670 step_range_end>: New fields.
9671 (struct target_ops) <supports_range_stepping>:
9672 New field.
9673 (target_supports_range_stepping): New macro.
9674
58794e1a
JB
96752013-05-17 Joel Brobecker <brobecker@adacore.com>
9676
9677 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
9678 confusion in comment.
9679
d631c5a7
JB
96802013-05-17 Joel Brobecker <brobecker@adacore.com>
9681
9682 * lynx-low.c (struct process_info_private): New type.
9683 (lynx_add_process): New function.
9684 (lynx_create_inferior, lynx_attach): Replace calls to
9685 add_process by calls to lynx_add_process.
9686 (lynx_resume): If PTID is null, then try using
9687 current_process()->private->last_wait_event_ptid.
9688 Add comments.
9689 (lynx_clear_inferiors): Delete. The contents of that function
9690 has been inlined in lynx_mourn;
9691 (lynx_wait_1): Save the ptid in the process's private data.
9692 (lynx_mourn): Free the process' private data. Replace call
9693 to lynx_clear_inferiors by call to clear_inferiors.
9694
96f7a20f
YQ
96952013-05-17 Yao Qi <yao@codesourcery.com>
9696
9697 * i386-low.c (i386_length_and_rw_bits): Move the comment to
9698 the right place.
9699
db0dfaa0
LM
97002013-05-16 Luis Machado <lgustavo@codesourcery.com>
9701
9702 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
9703 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
9704 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
9705 PT_TEXT_END_ADDR guards. Update comments.
9706 (linux_target_op) <read_offsets>: Conditionally define to
9707 linux_read_offsets if the target is UCLIBC and if it defines
9708 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
9709
68f5f838
SL
97102013-05-06 Sandra Loosemore <sandra@codesourcery.com>
9711 Andrew Jenner <andrew@codesourcery.com>
9712
9713 * Makefile.in (SFILES): Add linux-nios2-low.c.
9714 (clean): Add action to delete nios2-linux.c.
9715 (nios2-linux.c): New rule.
9716 * configure.srv: Add nios2*-*-linux*.
9717 * linux-nios2-low.c: New.
9718
1ebff1fd
HAQ
97192013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
9720
9721 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
9722
f6150862
HZ
97232013-04-25 Hui Zhu <hui@codesourcery.com>
9724
9725 PR gdb/15186
f6150862
HZ
9726 * ax.c (ax_printf): Add fflush.
9727
614c279d
TT
97282013-04-22 Tom Tromey <tromey@redhat.com>
9729
9730 * Makefile.in (SFILES): Add filestuff.c.
9731 (OBS): Add filestuff.o.
9732 (filestuff.o): New target.
9733 * config.in, configure: Rebuild.
9734 * configure.ac: Check for fdwalk, pipe2.
9735
7d4e5717
PA
97362013-04-17 Pedro Alves <palves@redhat.com>
9737
9738 * configure.ac (USE_THREAD_DB): Delete variable.
9739 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
9740 Don't AC_SUBST USE_THREAD_DB.
9741 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
9742 * config.in, configure: Regenerate.
9743
d5c93e41
PA
97442013-04-16 Pedro Alves <palves@redhat.com>
9745
9746 * linux-low.h (struct lwp_info) <thread_known>: Move under
9747 the USE_THREAD_DB #ifdef.
9748
04f5fe89
PA
97492013-04-16 Pedro Alves <palves@redhat.com>
9750
9751 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
9752 (linux-low.o): Delete rule.
9753 * linux-low.h: Always include "gdb_thread_db.h" instead of
9754 conditionally including thread_db.h.
9755 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
9756 HAVE_THREAD_DB_H.
9757
480b27bf
JK
97582013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
9759
9760 * Makefile.in (install-only): Fix make install regression.
9761
43662968
JK
97622013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9763
9764 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9765 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
9766 installation.
9767 * gdbserver.1: Remove.
9768
3e74e146
PA
97692013-03-22 Pedro Alves <palves@redhat.com>
9770
9771 * linux-low.c (handle_extended_wait): Don't call
9772 linux_enable_event_reporting.
9773
a8347a2a
TT
97742013-03-15 Tony Theodore <tonyt@logyst.com>
9775
9776 PR build/9098:
9777 * Makefile.in (SHELL): Use @SHELL@.
9778
eeb56fa7
SDJ
97792013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
9780
9781 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
9782 compiler warning.
9783
4fa7e2ff
JB
97842013-03-13 Joel Brobecker <brobecker@adacore.com>
9785
9786 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
9787 Remove extraneous NULL element.
9788
8ddb1965
YQ
97892013-03-13 Yao Qi <yao@codesourcery.com>
9790
9791 * tracepoint.c (traceframe_read_tsv): Look for the last matched
9792 'V' block in trace frame.
9793
9accd112
MM
97942013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9795
9796 * target.h (struct target_ops): Add btrace ops.
9797 (target_supports_btrace): New macro.
9798 (target_enable_btrace): New macro.
9799 (target_disable_btrace): New macro.
9800 (target_read_btrace): New macro.
9801 * gdbthread.h (struct thread_info): Add btrace field.
9802 * server.c: Include btrace-common.h.
9803 (handle_btrace_general_set): New function.
9804 (handle_btrace_enable): New function.
9805 (handle_btrace_disable): New function.
9806 (handle_general_set): Call handle_btrace_general_set.
9807 (handle_qxfer_btrace): New function.
9808 (struct qxfer qxfer_packets[]): Add btrace entry.
9809 * inferiors.c (remove_thread): Disable btrace.
9810 * linux-low: Include linux-btrace.h.
9811 (linux_low_enable_btrace): New function.
9812 (linux_low_read_btrace): New function.
9813 (linux_target_ops): Add btrace ops.
9814 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
9815 Add srv_linux_btrace=yes.
9816 (x86_64-*-linux*): Add linux-btrace.o.
9817 Add srv_linux_btrace=yes.
9818 * configure.ac: Define HAVE_LINUX_BTRACE.
9819 * config.in: Regenerated.
9820 * configure: Regenerated.
9821
5cc22e4c
MM
98222013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9823
9824 * server.c (handle_qxfer): Preserve error message if -3 is
9825 returned.
9826 (qxfer): Document the -3 return value.
9827
7c97f91e
MM
98282013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9829
9830 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
9831 (linux_btrace_h): New variable.
9832 (linux-btrace.o): New rule.
9833
be9a119c 98342013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
9835 Hafiz Abid Qadeer <abidh@codesourcery.com>
9836
9837 * tracepoint.c (trace_buffer_size): New global.
9838 (DEFAULT_TRACE_BUFFER_SIZE): New define.
9839 (init_trace_buffer): Change to one-argument function. Allocate
9840 trace buffer memory.
9841 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
9842 handle QTBuffer:size packet.
9843 (cmd_bigqtbuffer_size): New function.
9844 (initialize_tracepoint): Call init_trace_buffer with
9845 DEFAULT_TRACE_BUFFER_SIZE.
9846 * server.c (handle_query): Add QTBuffer:size in the
9847 supported packets.
9848
e64f7499
YQ
98492013-03-07 Yao Qi <yao@codesourcery.com>
9850
9851 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
9852 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
9853 of -1.
9854 (cmd_qtsp): Adjust condition. Do post increment.
9855 Set cur_action and cur_step_action back to 0.
9856
f0ae6fc3
PA
98572013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
9858
9859 PR server/15236
9860 * linux-low.c (linux_write_memory): Return early success if LEN is
9861 zero.
9862
b5b0b0af
CV
98632013-03-05 Corinna Vinschen <vinschen@redhat.de>
9864
334ad4a8 9865 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 9866
589bc927
TT
98672013-02-28 Tom Tromey <tromey@redhat.com>
9868
9869 * configure.ac: Invoke AC_SYS_LARGEFILE.
9870 * configure, config.in: Rebuild.
9871
dfe07582
CV
98722013-02-28 Corinna Vinschen <vinschen@redhat.com>
9873
9874 * win32-low.c: Throughout, fix format strings and casts of
9875 printf-like functions to avoid type related warnings on all
9876 platforms.
9877 (get_child_debug_event): Print dwDebugEventCode as hex since
9878 that's how it's usually documented.
9879
736cd585
YQ
98802013-02-28 Yao Qi <yao@codesourcery.com>
9881
9882 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
9883 pulongest.
9884
e1f58301
JW
98852013-02-27 Jiong Wang <jiwang@tilera.com>
9886
9887 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
9888 (reg-tilegx32.c): New rule.
9889 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
9890 * linux-tile-low.c (tile_arch_setup): New function. Invoke
9891 different register info initializer according to elf class.
9892 (init_registers_tilgx32): New function. The tilegx32 register info
9893 initializer.
9894 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
9895 (tile_store_gregset): Likewise.
9896
d171ca78
YQ
98972013-02-27 Yao Qi <yao@codesourcery.com>
9898
9899 * server.c (process_point_options): Print debug message when
9900 debug_threads is true.
9901
282bbdf3
YQ
99022013-02-26 Yao Qi <yao@codesourcery.com>
9903
9904 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
9905
aca22551
PA
99062013-02-19 Pedro Alves <palves@redhat.com>
9907 Kai Tietz <ktietz@redhat.com>
9908
9909 PR gdb/15161
9910
9911 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
9912 instead of strtoul to extract address from packet.
9913 (process_serial_event) <'z'>: Likewise.
9914
4f3cee1c
YQ
99152013-02-18 Yao Qi <yao@codesourcery.com>
9916
9917 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
9918
8e1d55a3
PA
99192013-02-14 Pedro Alves <palves@redhat.com>
9920
9921 Plug memory leak.
9922
9923 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
9924 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
9925
458820da
PA
99262013-02-14 Pedro Alves <palves@redhat.com>
9927
9928 * tracepoint.c (cmd_qtdpsrc): Use savestring.
9929
baea0dae
PA
99302013-02-14 Pedro Alves <palves@redhat.com>
9931
9932 * tracepoint.c (save_string): Delete.
9933 (add_tracepoint_action): Use savestring instead of save_string.
9934
0b1afbb3
PA
99352013-02-12 Pedro Alves <palves@redhat.com>
9936
9937 * linux-xtensa-low.c: Ditto.
9938 * xtensa-xtregs.c: Ditto.
9939
8a4ac37e
PA
99402013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9941
9942 * thread-db.c (thread_db_get_tls_address): NULL pointer check
9943 thread_db.
9944
148de6bb
MS
99452013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9946
9947 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
9948 aarch64_num_wp_regs and aarch64_num_bp_regs to
9949 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
9950
55fac6e0
MS
99512013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9952
9953 * linux-aarch64-low.c (ps_get_thread_area): Replace
9954 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
9955
176eb98c
MS
99562013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9957 Marcus Shawcroft <marcus.shawcroft@arm.com>
9958 Nigel Stephens <nigel.stephens@arm.com>
9959 Yufeng Zhang <yufeng.zhang@arm.com>
9960
9961 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
9962 (aarch64.c, aarch64-without-fpu.c): New targets.
9963 * configure.srv (aarch64*-*-linux*): New.
9964 * linux-aarch64-low.c: New file.
9965
56f7af9c
MS
99662013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
9967
43aaf8b6 9968 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
9969 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
9970 (dequeue_one_deferred_signal, linux_resume_one_thread)
9971 (fetch_register, linux_write_memory, linux_enable_event_reporting)
9972 (linux_tracefork_grandchild, linux_test_for_tracefork)
9973 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
9974 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
9975 where the argument is 0.
9976
60f662b0
YQ
99772013-01-25 Yao Qi <yao@codesourcery.com>
9978
9979 * event-loop.c: Include "queue.h".
9980 (gdb_event_p): New typedef.
9981 (struct gdb_event) <next_event>: Remove.
9982 (event_queue): Change to QUEUE(gdb_event_p).
9983 (async_queue_event): Remove.
9984 (gdb_event_xfree): New.
9985 (initialize_event_loop): New.
9986 (process_event): Use API from QUEUE.
9987 (wait_for_event): Likewise.
9988 * server.c (main): Call initialize_event_loop.
9989 * server.h (initialize_event_loop): Declare.
9990
5ae4861a
YQ
99912013-01-18 Yao Qi <yao@codesourcery.com>
9992
9993 * ax.h (struct eval_agent_expr_context): New.
9994 (gdb_eval_agent_expr): Update declaration.
9995 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
9996 TFRAME. Add new argument CTX.
9997 * server.h (struct eval_agent_expr_context): Declare.
9998 (agent_mem_read, agent_tsv_read): Update declaration.
9999 (agent_mem_read_string): Likewise.
10000 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
10001 (add_traceframe_block): Add new argument TPOINT.
10002 Increase TPOINT->traceframe_usage.
10003 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
10004 eval_tracepoint_agent_expr.
10005 (condition_true_at_tracepoint): Likewise.
10006 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
10007 (agent_mem_read_string, agent_tsv_read): Likewise.
10008
85e00e85
YQ
100092013-01-16 Yao Qi <yao@codesourcery.com>
10010
10011 * linux-low.c (linux_resume_one_lwp): Don't check
10012 'lwp->bp_reinsert != 0'.
10013
4039cf45
JB
100142013-01-07 Joel Brobecker <brobecker@adacore.com>
10015 Pedro Alves <palves@redhat.com>
10016
10017 * lynx-low.c (ptrace_request_to_str): Define a temporary
10018 macro and use it to simplify this function's implementation.
10019
9044dee2
JB
100202013-01-07 Joel Brobecker <brobecker@adacore.com>
10021
10022 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
10023 sets errno.
10024
e6352c8f
JB
100252013-01-07 Joel Brobecker <brobecker@adacore.com>
10026
10027 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
10028
50681a27
JB
100292013-01-07 Joel Brobecker <brobecker@adacore.com>
10030
10031 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
10032
3f6e77ef
JB
100332013-01-07 Joel Brobecker <brobecker@adacore.com>
10034
10035 * lynx-low.c (lynx_resume): Use the resume_info parameter
10036 to determine the ptid for the lynx_ptrace call, unless
10037 it is equal to minus_one_ptid, in which case we use the
10038 ptid of the current_inferior.
10039 (lynx_wait_1): After having received a thread create/exit
10040 event, resume the inferior's execution using the signaling
10041 thread's ptid, rather than the old ptid.
10042
7fda33ae
JB
100432013-01-07 Joel Brobecker <brobecker@adacore.com>
10044
10045 * lynx-low.c (lynx_resume): Delete variable ret.
10046
b9786c74
JB
100472013-01-01 Joel Brobecker <brobecker@adacore.com>
10048
10049 * gdbreplay.c (gdbreplay_version): Update copyright year.
10050 * server.c (gdbserver_version): Likewise.
10051
8b93d60f
JB
100522012-12-17 Joel Brobecker <brobecker@adacore.com>
10053
10054 * lynx-low.c (lynx_wait_1): Add debug trace before adding
10055 new thread.
10056
037335a7
JB
100572012-12-17 Joel Brobecker <brobecker@adacore.com>
10058
10059 * lynx-low.c (ptrace_request_to_str): Add handling for
10060 PTRACE_GETTRACESIG.
10061
52d4cbd8
JB
100622012-12-17 Joel Brobecker <brobecker@adacore.com>
10063
10064 * lynx-low.c (lynx_attach): Delete variable new_process.
10065
ab8f6ca9
JB
100662012-12-17 Joel Brobecker <brobecker@adacore.com>
10067
10068 * lynx-low.c (lynx_create_inferior): Delete variable
10069 new_process.
10070
78cbc024
JB
100712012-12-17 Joel Brobecker <brobecker@adacore.com>
10072
10073 * lynx-low.c (ptrace_request_to_str): Do not handle
10074 PTRACE_GETTHREADLIST if this macro does not exist.
10075
14a00470
YQ
100762012-12-15 Yao Qi <yao@codesourcery.com>
10077
10078 * Makefile.in (OBS): Add notif.o.
10079 * notif.c, notif.h: New.
10080 * server.c: Include "notif.h".
10081 (struct vstop_notif) <next>: Remove.
10082 <base>: New field.
10083 (queue_stop_reply): Update.
10084 (push_event, send_next_stop_reply): Remove.
10085 (discard_queued_stop_replies): Update.
10086 (notif_stop): New variable.
10087 (handle_v_stopped): Remove.
10088 (handle_v_requests): Don't call handle_v_stopped. Call
10089 handle_ack_notif instead.
10090 (queue_stop_reply_callback): Call notif_event_enque instead
10091 of queue_stop_reply.
10092 (handle_status): Don't call send_next_stop_reply, call
10093 notif_write_event instead.
10094 (kill_inferior_callback): Likewise.
10095 (detach_or_kill_inferior_callback): Likewise.
10096 (main): Call initialize_notif.
10097 (process_serial_event): Call QUEUE_is_empty.
10098 (handle_target_event): Call notif_push instead of push event.
10099 * server.h (push_event): Remove declaration.
10100
61c125b9
TT
101012012-12-10 Tom Tromey <tromey@redhat.com>
10102
10103 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
10104 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
10105 macros.
10106 (.c.o): Rewrite.
10107 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
10108 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
10109 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
10110 (amd64-linux-ipa.o, ax.o): Rewrite.
10111 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
10112 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
10113 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
10114 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
10115 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
10116 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
10117 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
10118 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
10119 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
10120 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
10121 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
10122 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
10123 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
10124 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
10125 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
10126 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
10127 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
10128 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
10129 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
10130 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
10131 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
10132 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
10133 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
10134 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
10135 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
10136 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
10137 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
10138 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
10139 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
10140 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
10141 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
10142 (reg-tilegx.o): Remove.
10143 (all_object_files): New macro.
10144 Include .deps files.
10145 * aclocal.m4, configure: Rebuild.
10146 * acinclude.m4: Include depstand.m4, lead-dot.m4.
10147 * configure.ac: Invoke ZW_CREATE_DEPDIR,
10148 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
10149
e90e9ad9
TT
101502012-12-05 Tom Tromey <tromey@redhat.com>
10151
10152 PR gdb/14917:
10153 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
10154
02d403bf 101552012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
10156
10157 * configure.ac: Check for linux/perf_event.h.
10158 * config.in: Regenerated.
10159 * configure: Regenerated.
10160
0270a750
PA
101612012-11-26 Maxime Villard <rustyBSD@gmx.fr>
10162
10163 * hostio.c (handle_readlink): Decrease buffer size
10164 parameter passed to readlink by one byte.
10165
8c29b58e
YQ
101662012-11-26 Yao Qi <yao@codesourcery.com>
10167
10168 * configure.ac (build_warnings): Append '-Wempty-body'.
10169 * configure: Regenerated.
10170 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
10171 body.
10172
8bdce1ff
PM
101732012-11-15 Pierre Muller <muller@sourceware.org>
10174
10175 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
10176 * config.in: Regenerate.
10177 * configure: Regenerate.
10178 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
10179 Use "gdb_wait.h" header instead of <sys/wait.h> header.
10180 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
10181 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
10182 header.
10183 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
10184 instead of <sys/wait.h> header.
10185 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
10186
02d403bf 101872012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
10188
10189 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
10190 (various make rules): Remove -DGDBSERVER
10191
fbd5db48
YQ
101922012-11-09 Yao Qi <yao@codesourcery.com>
10193
10194 * spu-low.c (current_ptid): Move it to ..
10195 * gdbthread.h: ... here. New.
10196 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
10197 * server.c (myresume, process_serial_event): Likewise.
10198 * thread-db.c (thread_db_find_new_threads): Likewise.
10199 * tracepoint.c (run_inferior_command): Likewise.
10200
b3dc46ff
AB
102012012-10-01 Andrew Burgess <aburgess@broadcom.com>
10202
10203 * server.c (handle_search_memory_1): Include access length in
10204 warning message.
10205
07c04788
HPN
102062012-09-05 Michael Brandt <michael.brandt@axis.com>
10207
10208 * linux-crisv32-low.c: Fix compile errors.
10209
918d227b
YQ
102102012-09-04 Yao Qi <yao@codesourcery.com>
10211
10212 * tracepoint.c (cmd_qtsv): Adjust debug message.
10213 Don't check CUR_TPOINT.
10214
18c1b81a
YQ
102152012-08-28 Yao Qi <yao@codesourcery.com>
10216
10217 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
10218 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
10219 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
10220 Remove declarations of xmalloc, xreallloc, xstrdup and
10221 freeargv.
10222 * Makefile.in (libiberty_h): New.
10223 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
10224 (linux-bfin-low.o): Append dependency 'libiberty.h'.
10225
dc82f37b
YQ
102262012-08-23 Yao Qi <yao@codesourcery.com>
10227
10228 * server.h: Remove declaration of 'xsnprintf'.
10229
406b1477
KS
102302012-08-22 Keith Seitz <keiths@redhat.com>
10231
10232 * server.h: Include build-gnulib-gbserver/config.h.
10233 * gdbreplay.c: Likewise.
10234
e6712ff1
DE
102352012-08-08 Doug Evans <dje@google.com>
10236
10237 * Makefile.in (SFILES): Add gdb_vecs.c.
10238 (OBS): Add gdb_vecs.o.
10239 (gdb_vecs_h, host_defs_h): New variables.
10240 (thread-db.o): Add $(gdb_vecs_h) dependency.
10241 (gdb_vecs.o): New rule.
10242 * thread-db.c: #include "gdb_vecs.h".
10243 (thread_db_load_search): Use a vector to iterate over path elements.
10244 Handle text appearing after "$pdir".
10245
10246 * configure.ac: Add check for strstr.
10247 * config.in: Regenerate.
10248 * configure: Regenerate.
10249
7c3270ae
UW
102502012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10251
10252 * hostio.c (handle_pread): If pread fails, fall back to attempting
10253 lseek/read.
10254 (handle_pwrite): Likewise for pwrite.
10255
b62e2b27
UW
102562012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
10257
10258 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
10259 between unsupported TYPE and unimplementable ADDR/LEN combination.
10260 (arm_insert_point): Act on new return value.
10261
78a99e91
PA
102622012-07-31 Pedro Alves <palves@redhat.com>
10263
10264 * server.c (process_point_options): Only skip tokens if we find
10265 one that is unrecognized. Don't treat 'X' specially while
10266 skipping unrecognized tokens.
10267
fcf303ab
UW
102682012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
10269
10270 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
10271 to 4-byte-align HW breakpoint addresses for Thumb.
10272
7255706c
YQ
102732012-07-27 Yao Qi <yao@codesourcery.com>
10274
10275 PR remote/14161.
10276
10277 * server.h: Declare gdb_agent_about_to_close.
10278 * target.c (kill_inferior): Include "agent.h".
10279 New. Send command 'kill'.
10280 * target.h (kill_inferior): Removed macro.
10281 * tracepoint.c (gdb_agent_about_to_close): New.
10282 (gdb_agent_helper_thread): Handle command 'close'.
10283 Wait endlessly until the inferior stops.
10284 Install gdb_agent_remove_socket to atexit hook.
10285 (agent_socket_name): New static variable.
10286 (gdb_agent_socket_init): Replace local variable 'name' with
10287 'agent_socket_name'.
10288 (gdb_agent_remove_socket): New.
10289
5a3f286f
YQ
102902012-07-27 Yao Qi <yao@codesourcery.com>
10291
10292 * server.c (process_point_options): Stop at 'X' when parsing.
10293
961bd387
ME
102942012-07-19 Michael Eager <eager@eagercon.com>
10295
a261b8f5 10296 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
10297 to hw_execute.
10298 * linux-x86-low.c (x86_insert_point, x86_remove_point):
10299 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
10300 hardware breakpoint.
10301
aa7c7447
JK
103022012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
10303
10304 * gdbserver/linux-low.c (initialize_low): Call
10305 linux_ptrace_init_warnings.
10306
7f216e7c
DE
103072012-07-02 Doug Evans <dje@google.com>
10308
10309 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
10310 pointer to int.
10311
d3ce09f5
SS
103122012-07-02 Stan Shebs <stan@codesourcery.com>
10313
10314 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
10315 (ax.o): Add it to build rule.
10316 (ax-ipa.o): Ditto.
10317 (OBS): Add format.o.
10318 (IPA_OBS): Add format.o.
10319 * server.c (handle_query): Claim support for breakpoint commands.
10320 (process_point_options): Add command case.
10321 (process_serial_event): Leave running if there are printfs in
10322 effect.
10323 * mem-break.h (any_persistent_commands): Declare.
10324 (add_breakpoint_commands): Declare.
10325 (gdb_no_commands_at_breakpoint): Declare.
10326 (run_breakpoint_commands): Declare.
10327 * mem-break.c (struct point_command_list): New struct.
10328 (struct breakpoint): New field command_list.
10329 (any_persistent_commands): New function.
10330 (add_commands_to_breakpoint): New function.
10331 (add_breakpoint_commands): New function.
10332 (gdb_no_commands_at_breakpoint): New function.
10333 (run_breakpoint_commands): New function.
10334 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
10335 locally.
10336 * ax.c: Include format.h.
10337 (ax_printf): New function.
10338 (gdb_eval_agent_expr): Add printf opcode.
10339
2f8f6aed
YQ
103402012-06-13 Yao Qi <yao@codesourcery.com>
10341
10342 * server.c (start_inferior): Remove duplicated writes to fields
10343 'last_resume_kind' and 'last_status' of 'current_inferior'.
10344
0c9070b3
YQ
103452012-06-12 Yao Qi <yao@codesourcery.com>
10346 Pedro Alves <palves@redhat.com>
10347
10348 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
10349 comment.
10350 * server.c (handle_v_cont): Extend comment.
10351
c52daf70
YQ
103522012-06-11 Yao Qi <yao@codesourcery.com>
10353
10354 * linux-low.c (linux_attach): Add 'static'.
10355
d38bbb0a
YQ
103562012-06-06 Yao Qi <yao@codesourcery.com>
10357
10358 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
10359
89dc0afd
JK
103602012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10361
10362 Fix gcc -flto compilation warning.
10363 * server.c (main): Make variable multi_mode and attach volatile.
10364
75f62ce7
TJB
103652012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10366
10367 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
10368 if the platform doesn't know about it.
10369
65f479b6
PA
103702012-05-30 Jeff Kenton <jkenton@tilera.com>
10371
10372 * Makefile.in (SFILES): Add linux-tile-low.c.
10373 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
10374 * configure.srv: Handle tilegx-*-linux*.
10375 * linux-tile-low.c: New file.
10376
0c5bf5a9
JK
103772012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10378
10379 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
10380
a493e3e2
PA
103812012-05-24 Pedro Alves <palves@redhat.com>
10382
10383 PR gdb/7205
10384
43aaf8b6 10385 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 10386
2ea28649
PA
103872012-05-24 Pedro Alves <palves@redhat.com>
10388
10389 PR gdb/7205
10390
10391 Replace target_signal with gdb_signal throughout.
10392
8d409d16
MR
103932012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
10394
10395 * linux-low.c (linux_store_registers): Avoid the copying sequence
10396 when no data has been retrieved by ptrace.
10397
23512c01
MGD
103982012-05-22 Will Deacon <will.deacon@arm.com>
10399
10400 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
10401 Include asm/ptrace.h.
10402 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
10403 already defined.
10404
4934b29e
MR
104052012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
10406
10407 * linux-low.c (linux_store_registers): Don't re-retrieve data
10408 with ptrace that has already been obtained from /proc. Always
10409 copy any data retrieved with ptrace to the buffer supplied.
10410
bde24c0a
PA
104112012-05-11 Yao Qi <yao@codesourcery.com>
10412 Pedro Alves <palves@redhat.com>
10413
10414 * linux-low.c (enum stopping_threads_kind): New.
10415 (stopping_threads): Change type to `enum stopping_threads_kind'.
10416 (handle_extended_wait): If stopping and suspending threads, leave
10417 the new_lwp suspended too.
10418 (linux_wait_for_event): Adjust.
10419 (stop_all_lwps): Set `stopping_threads' to
10420 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
10421 whether we're suspending threads or just stopping them. Assert no
10422 recursion happens.
10423
623b6bdf
YQ
104242012-04-29 Yao Qi <yao@codesourcery.com>
10425
10426 * server.h: Move some code to ...
10427 * gdbthread.h: ... here. New.
10428 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
10429 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
10430 (nto-low.o, win32-low.o): Likewise.
10431 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
10432 * regcache.c, remote-utils.c, server.c: Likewise.
10433 * target.c, tracepoint.c, win32-low.c: Likewise.
10434
f15f9948
TJB
104352012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10436
10437 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
10438 (PTRACE_ARG4_TYPE): Likewise.
10439 (PTRACE_XFER_TYPE): Likewise.
10440 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
10441 ptrace to PTRACE_ARG3_TYPE.
10442 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
10443 (PTRACE_ARG4_TYPE): Likewise.
10444 (PTRACE_XFER_TYPE): Likewise.
10445 (linux_detach_one_lwp): Cast fourth argument of
10446 ptrace to long then PTRACE_ARG4_TYPE.
10447 (regsets_fetch_inferior_registers): Cast third argument of
10448 ptrace to long then PTRACE_ARG3_TYPE.
10449 (regsets_store_inferior_registers): Likewise.
10450
38ea300a
PA
104512012-04-20 Pedro Alves <palves@redhat.com>
10452
10453 * configure: Regenerate.
10454
c971b7fa
PA
104552012-04-19 Pedro Alves <palves@redhat.com>
10456
43aaf8b6 10457 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 10458 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
10459 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
10460 (all, install-only, uninstall, clean-info, all-lib, clean): No
10461 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
10462 (maintainer-clean realclean distclean): Use subdir_do.
10463 (subdir_do): New.
10464 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 10465 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
10466 * acinclude.m4: Include acx_configure_dir.m4.
10467 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
10468 calls. Call AC_PROG_RANLIB. Configure gnulib using
10469 ACX_CONFIGURE_DIR.
10470 (GNULIB): New.
10471 (GNULIB_STDINT_H): Adjust.
10472 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
10473 * gdbreplay.c: Include build-gnulib/config.h.
10474 * server.h: Likewise.
10475 * aclocal.m4: Regenerate.
10476 * config.in: Regenerate.
10477 * configure: Regenerate.
c971b7fa 10478
809277f8
PA
104792012-04-19 Pedro Alves <palves@redhat.com>
10480
10481 * Makefile.in (LIBGNU, INCGNU): Adjust.
10482 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
10483 (all, install-only, uninstall, clean-info, all-lib, clean)
10484 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
10485 * configure.ac: Adjust AC_OUTPUT output.
10486 * aclocal.m4: Regenerate.
10487 * configure: Regenerate.
10488
fd9bb8b8
PA
104892012-04-19 Pedro Alves <palves@redhat.com>
10490
10491 * Makefile.in (generated_files): New.
10492 (server_h): Remove the explicit dependency on config.h, and depend
10493 on $generated_files.
10494
1c298c66
PA
104952012-04-19 Pedro Alves <palves@redhat.com>
10496
10497 * Makefile.in (INCGNU): Add -Ignulib.
10498
57c4b50b
PA
104992012-04-19 Pedro Alves <palves@redhat.com>
10500
10501 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
10502 (INCGNU): ... this, and spell out -I here.
10503 (GNULIB_LIB): Rename to ...
10504 (LIBGNU): ... this.
10505 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
10506
1030e047
PA
105072012-04-19 Pedro Alves <palves@redhat.com>
10508
10509 * config.in: Regenerate.
10510
447d4319
PA
105112012-04-19 Pedro Alves <palves@redhat.com>
10512
10513 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
10514 * server.h (memmem): Remove declaration.
10515 * config.in: Regenerate.
10516 * configure: Regenerate.
10517
aad9eab9
YQ
105182012-04-19 Yao Qi <yao@codesourcery.com>
10519
10520 * Makefile.in (SFILES): Add common/vec.c.
10521 (OBS): Add vec.o.
10522 (vec.o): New rule.
10523
3e10640f
YQ
105242012-04-19 Yao Qi <yao@codesourcery.com>
10525
10526 * remote-utils.c (prepare_resume_reply): Replace with macro
10527 target_core_of_thread.
10528 * server.c (handle_qxfer_threads_proper): Likewise.
10529 * target.h (traget_core_of_thread): New macro.
10530
71622373
PA
105312012-04-18 Pedro Alves <palves@redhat.com>
10532
10533 * aclocal.m4: Regenerate.
10534 * configure: Regenerate.
10535
80d26939
YQ
105362012-04-16 Yao Qi <yao@codesourcery.com>
10537
10538 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
10539 duplicated on address.
10540
42476b70
YQ
105412012-04-16 Yao Qi <yao@codesourcery.com>
10542
10543 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
10544 (struct tracepoint_action_ops) <send>: New field.
10545 (m_tracepoint_action_send, r_tracepoint_action_send): New.
10546 (agent_expr_send, x_tracepoint_action_send): New.
10547 (l_tracepoint_action_send): New.
10548 (cmd_qtdp): Download and install tracepoint
10549 according to `use_agent'.
10550 (run_inferior_command): Add one more parameter `len'.
10551 Update callers.
10552 (tracepoint_send_agent): New.
10553 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
10554
7bc83639
YQ
105552012-04-16 Yao Qi <yao@codesourcery.com>
10556
10557 * tracepoint.c (download_tracepoints): Moved to ...
10558 (cmd_qtstart): ... here.
10559
5f18041e
YQ
105602012-04-14 Yao Qi <yao@codesourcery.com>
10561
10562 * tracepoint.c: Include inttypes.h.
10563 (struct collect_memory_action): Use sized types.
10564 (struct tracepoint): Likewise.
10565 (cmd_qtdp, stop_tracing): Update print specifiers.
10566 (cmd_qtp, response_tracepoint): Likewise.
10567 (collect_data_at_tracepoint): Likewise.
10568 (collect_data_at_step): Likewise.
10569
55a8c076
YQ
105702012-04-14 Yao Qi <yao@codesourcery.com>
10571
10572 Import gnulib module inttypes.
10573 * aclocal.m4, config.in, configure: Regenerated.
10574
dc750257
YQ
105752012-04-14 Yao Qi <yao@codesourcery.com>
10576
10577 * Makefile.in (maintainer-clean, realclean, distclean): Remove
10578 Makefile and config.status at last.
10579
0ab5faf9
YQ
105802012-04-13 Yao Qi <yao@codesourcery.com>
10581
10582 * tracepoint.c: Include stdint.h unconditionally.
10583
18f5fd81
TJB
105842012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10585
10586 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
10587 on BFD_HAVE_SYS_PROCFS_TYPE.
10588 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
10589 * configure: Regenerate.
10590 * config.in: Likewise.
10591
4d47af5c
L
105922012-04-13 H.J. Lu <hongjiu.lu@intel.com>
10593
10594 * Makefile.in (clean): Also remove x32.c x32-linux.c
10595 x32-avx.c x32-avx-linux.c.
10596 (x32.o): New target.
10597 (x32.c): Likewise.
10598 (x32-linux.o): Likewise.
10599 (x32-linux.c): Likewise.
10600 (x32-avx.o): Likewise.
10601 (x32-avx.c): Likewise.
10602 (x32-avx-linux.o): Likewise.
10603 (x32-avx-linux.c): Likewise.
10604
10605 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
10606 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
10607 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
10608 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
10609 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
10610 i386/x32-avx-linux.xml.
10611
10612 * linux-x86-low.c (init_registers_x32_linux): New prototype.
10613 (init_registers_x32_avx_linux): Likwise.
10614 (x86_linux_update_xmltarget): Call init_registers_x32_linux
10615 or init_registers_x32_avx_linux if linux_is_elf64 is false.
10616
ecedbe58
PA
106172012-04-13 Pedro Alves <palves@redhat.com>
10618
10619 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
10620 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
10621 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
10622 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
10623 the sub-make.
10624
c92b5177
L
106252012-04-12 H.J. Lu <hongjiu.lu@intel.com>
10626
10627 * linux-x86-low.c (compat_x32_clock_t): New.
10628 (compat_x32_siginfo_t): Likewise.
10629 (compat_x32_siginfo_from_siginfo): Likewise.
10630 (siginfo_from_compat_x32_siginfo): Likewise.
10631 (linux_is_elf64): Likewise.
10632 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
10633 and siginfo_from_compat_x32_siginfo for x32.
10634 (x86_arch_setup): Set linux_is_elf64.
10635
214d508e
L
106362012-04-12 H.J. Lu <hongjiu.lu@intel.com>
10637
10638 PR gdb/13969
10639 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
10640 e_machine field.
10641 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
10642 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
10643 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
10644 compatible with process.
10645
c9a1864a
YQ
106462012-04-12 Yao Qi <yao@codesourcery.com>
10647
10648 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
10649 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
10650 (install-only, install-info, clean): Handle sub dir gnulib.
10651 (all-lib, am--refresh): New targets.
10652 (memmem.o): Remove target.
10653 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
10654 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
10655 (AC_REPLACE_FUNCS): Remove memmem.
10656 Invoke gl_INIT and AM_INIT_AUTOMAKE.
10657 (AC_OUTPUT): Generate Makefile in gnulib/.
10658 * aclocal.m4, config.in, configure: Regenerated.
10659
367ba2c2
MR
106602012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
10661
10662 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
10663
9d236627
PA
106642012-04-05 Pedro Alves <palves@redhat.com>
10665
10666 -Werror=strict-aliasing
10667
10668 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
10669 pointer.
10670
111217b3
PA
106712012-04-04 Pedro Alves <palves@redhat.com>
10672
10673 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
10674 (sparc_store_gregset_from_stack, sparc_store_gregset)
10675 (sparc_breakpoint_at): Fix formatting.
10676
8365dcf5
TJB
106772012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
10678
10679 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
10680 are available.
10681 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
10682 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
10683 * config.in: Regenerate.
10684 * configure: Likewise.
10685
689cc2ae
PA
106862012-03-29 Pedro Alves <palves@redhat.com>
10687
10688 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
10689 Correct ptrace arguments.
10690
c14dfd32
PA
106912012-03-28 Pedro Alves <palves@redhat.com>
10692
10693 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
10694 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
10695 (IA64_FR1_REGNUM): New defines.
10696 (ia64_fetch_register): New.
10697 (the_low_target): Install it.
10698 * linux-low.h (struct linux_target_ops) <fetch_register>: New
10699 field.
10700 * linux-low.c (linux_fetch_registers): Try the
10701 the_low_target.fetch_register hook first.
10702
10703 * linux-arm-low.c (the_low_target): Adjust.
10704 * linux-bfin-low.c (the_low_target): Adjust.
10705 * linux-cris-low.c (the_low_target): Adjust.
10706 * linux-crisv32-low.c (the_low_target): Adjust.
10707 * linux-m32r-low.c (the_low_target): Adjust.
10708 * linux-m68k-low.c (the_low_target): Adjust.
10709 * linux-mips-low.c (the_low_target): Adjust.
10710 * linux-ppc-low.c (the_low_target): Adjust.
10711 * linux-s390-low.c (the_low_target): Adjust.
10712 * linux-sh-low.c (the_low_target): Adjust.
10713 * linux-sparc-low.c (the_low_target): Adjust.
10714 * linux-tic6x-low.c (the_low_target): Adjust.
10715 * linux-x86-low.c (the_low_target): Adjust.
10716 * linux-xtensa-low.c (the_low_target): Adjust.
10717
63c88e13
PA
107182012-03-26 Pedro Alves <palves@redhat.com>
10719
10720 * server.c (handle_qxfer_libraries): Don't bail early if
10721 the_target->qxfer_libraries_svr4 is not NULL.
10722
fb723180
PA
107232012-03-26 Pedro Alves <palves@redhat.com>
10724
10725 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
10726
0afae3cf
PA
107272012-03-23 Pedro Alves <palves@redhat.com>
10728
10729 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
10730 "library-list-svr4" element's start tag when the the DSO list is
10731 empty.
10732
485f1ee4
PA
107332012-03-23 Pedro Alves <palves@redhat.com>
10734
10735 * linux-low.c (read_one_ptr): Read the inferior's pointer through
10736 a variable whose type size is the same as the inferior's pointer
10737 size.
10738
a5362b9a
TS
107392012-03-21 Thomas Schwinge <thomas@codesourcery.com>
10740
10741 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
10742 struct siginfo.
10743 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
10744 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
10745 * linux-low.h: Include <signal.h>.
10746 (struct siginfo): Remove forward declaration.
10747 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
10748 struct siginfo.
10749
d226c142
MF
107502012-03-21 Mike Frysinger <vapier@gentoo.org>
10751
10752 * .gitignore: Ignore more files.
10753
122f36ef
PA
107542012-03-19 Pedro Alves <palves@redhat.com>
10755 Jan Kratochvil <jan.kratochvil@redhat.com>
10756
10757 * server.c (cont_thread, general_thread): Add describing comments.
10758 (start_inferior): Clear `cont_thread'.
10759 (handle_v_cont): Don't set `cont_thread' if resuming all threads
10760 of a process.
10761
fc3e5175
YQ
107622012-03-15 Yao Qi <yao@codesourcery.com>
10763
10764 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
10765 handling to ...
10766 (cmd_qtdp): ... here.
10767
8d0d92cd
YQ
107682012-03-15 Yao Qi <yao@codesourcery.com>
10769
10770 * tracepoint.c (struct tracepoint_action_ops): New.
10771 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
10772 (m_tracepoint_action_download): New.
10773 (r_tracepoint_action_download): New.
10774 (x_tracepoint_action_download): New.
10775 (l_tracepoint_action_download): New.
10776 (add_tracepoint_action): Install `action->ops' according type.
10777 (download_tracepoint_1): Move code `download' function pointer
10778 of various tracepoint_action_ops.
10779
87b0bb13
JK
107802012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10781
10782 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
10783 linux_ptrace_attach_warnings.
10784
5f572dec
JK
107852012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10786
10787 * Makefile.in (linux-ptrace.o): New.
10788 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
10789 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
10790 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
10791 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
10792 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
10793 of these targets.
10794 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
10795
f4647387
YQ
107962012-03-08 Yao Qi <yao@codesourcery.com>
10797 Pedro Alves <palves@redhat.com>
10798
10799 Fix PR server/13392.
10800 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
10801 offset of JMP insn.
10802 * tracepoint.c (remove_tracepoint): New.
10803 (cmd_qtdp): Call remove_tracepoint when failed to install.
10804
9b224c5e
PA
108052012-03-07 Pedro Alves <palves@redhat.com>
10806
10807 * linux-low.c (get_detach_signal): New.
10808 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
10809 Pass on pending signals to PTRACE_DETACH. Check the result of the
10810 ptrace call.
10811 * server.c (program_signals, program_signals_p): New.
10812 (handle_general_set): Handle QProgramSignals.
10813 * server.h (program_signals, program_signals_p): Declare.
10814
e237a7e2
JK
108152012-03-05 Pedro Alves <palves@redhat.com>
10816 Jan Kratochvil <jan.kratochvil@redhat.com>
10817
10818 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
10819 New comment why.
10820
5808517f
YQ
108212012-03-03 Yao Qi <yao@codesourcery.com>
10822
10823 * tracepoint.c (tracepoint_look_up_symbols): Update call to
10824 agent_look_up_symbols.
10825
58b4daa5
YQ
108262012-03-03 Yao Qi <yao@codesourcery.com>
10827
10828 * Makefile.in (linux-low.o): Keep dependence on agent.h.
10829 (linux-x86-low.o): Likewise.
10830 * server.h: Remove in_process_agent_loaded.
10831 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
10832 common/agent.c.
10833 Update callers.
10834
8ffcbaaf
YQ
108352012-03-03 Yao Qi <yao@codesourcery.com>
10836
10837 * tracepoint.c (gdb_agent_capability): New global.
10838 (in_process_agent_loaded_ust): Renamed to
10839 `in_process_agent_supports_ust'.
10840 Update callers.
10841 (in_process_agent_supports_ust): Call agent_capability_check.
10842 (clear_installed_tracepoints): Assert that agent supports
10843 agent.
10844
d1feda86
YQ
108452012-03-03 Yao Qi <yao@codesourcery.com>
10846
10847 * linux-low.c (linux_supports_agent): New.
10848 (linux_target_ops): Initialize field `supports_agent' with
10849 linux_supports_agent.
10850 * target.h (struct target_ops) <supports_agent>: New.
10851 (target_supports_agent): New macro.
10852 * server.c (handle_general_set): Handle packet 'QAgent'.
10853 (handle_query): Send `QAgent+'.
10854 * Makefile.in (server.o): Depends on agent.h.
10855
2fa291ac
YQ
108562012-03-03 Yao Qi <yao@codesourcery.com>
10857
10858 * Makefile.in (OBS): Add agent.o.
10859 Add new rule for agent.o.
10860 Track dependence of tracepoint.c on agent.h.
10861 * tracepoint.c (run_inferior_command_1):
10862 (run_inferior_command): Call agent_run_command.
10863 (gdb_ust_connect_sync_socket): Deleted. Move it to
10864 common/agent.c.
10865 (resume_thread, stop_thread): Likewise.
10866 (gdb_ust_socket_init): Renamed to ...
10867 (gdb_agent_socket_init): ... New.
10868 (gdb_ust_thread): Renamed to ...
10869 (gdb_agent_helper_thread): ... New.
10870 (gdb_ust_init): Move some code to ...
10871 (gdb_agent_init): ... here. New.
10872 [HAVE_UST]: Call gdb_ust_init.
10873 (initialize_tracepoint_ftlib): Call gdb_agent_init.
10874 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
10875 * config.in, configure: Regenerated.
10876
05044653
PA
108772012-03-02 Pedro Alves <palves@redhat.com>
10878
10879 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
10880 * linux-low.c (struct simple_pid_list): New.
10881 (stopped_pids): New a struct simple_pid_list pointer.
10882 (add_to_pid_list, pull_pid_from_list): New.
10883 (handle_extended_wait): Don't assume the first signal new children
10884 report is SIGSTOP. Adjust call to pull_pid_from_list.
10885 (linux_wait_for_lwp): Adjust.
10886
8d00225b
YQ
108872012-03-02 Yao Qi <yao@codesourcery.com>
10888
10889 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
10890 debug log.
10891
19560ba5
YQ
108922012-03-02 Yao Qi <yao@codesourcery.com>
10893
10894 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
10895 `stop_pc' and `tpoint'. Update caller.
10896
1faeff08
MR
108972012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10898
10899 * linux-low.h (linux_target_ops): Add regset_bitmap member.
10900 * linux-low.c (use_linux_regsets): New macro.
10901 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
10902 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
10903 (linux_register_in_regsets): New function.
10904 (usr_fetch_inferior_registers): Skip registers covered by
10905 regsets.
10906 (usr_store_inferior_registers): Likewise.
10907 (usr_fetch_inferior_registers): New macro.
10908 (usr_store_inferior_registers): Likewise.
10909 (linux_fetch_registers): Handle mixed regset/non-regset targets.
10910 (linux_store_registers): Likewise.
10911 * linux-mips-low.c (init_registers_mips_dsp_linux): New
10912 prototype.
10913 (init_registers_mips64_dsp_linux): Likewise.
10914 (init_registers_mips_linux): New macro.
10915 (init_registers_mips_dsp_linux): Likewise.
10916 (mips_dsp_num_regs): Likewise.
10917 (DSP_BASE, DSP_CONTROL): New fallback macros.
10918 (mips_base_regs): New macro.
10919 (mips_regmap): Use it. Fix the size.
10920 (mips_dsp_regmap): New variable.
10921 (mips_dsp_regset_bitmap): Likewise.
10922 (mips_arch_setup): New function.
10923 (mips_cannot_fetch_register): Use the_low_target.regmap rather
10924 than mips_regmap.
10925 (mips_cannot_store_register): Likewise.
10926 (the_low_target): Update .arch_setup, .num_regs and .regmap
10927 initializers. Add .regset_bitmap initializer.
10928 * linux-arm-low.c (the_low_target): Add .regset_bitmap
10929 initializer.
10930 * linux-bfin-low.c (the_low_target): Likewise.
10931 * linux-cris-low.c (the_low_target): Likewise.
10932 * linux-crisv32-low.c (the_low_target): Likewise.
10933 * linux-ia64-low.c (the_low_target): Likewise.
10934 * linux-m32r-low.c (the_low_target): Likewise.
10935 * linux-m68k-low.c (the_low_target): Likewise.
10936 * linux-ppc-low.c (the_low_target): Likewise.
10937 * linux-s390-low.c (the_low_target): Likewise.
10938 * linux-sh-low.c (the_low_target): Likewise.
10939 * linux-sparc-low.c (the_low_target): Likewise.
10940 * linux-tic6x-low.c (the_low_target): Likewise.
10941 * linux-x86-low.c (the_low_target): Likewise.
10942 * linux-xtensa-low.c (the_low_target): Likewise.
10943 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
10944 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
10945 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
10946 srv_xmlfiles.
10947 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
10948 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
10949
c03e6ccc
YQ
109502012-02-29 Yao Qi <yao@codesourcery.com>
10951 Pedro Alves <palves@redhat.com>
10952
10953 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
10954 `step_over_finished' is true.
10955
644cebc9
PA
109562012-02-27 Pedro Alves <palves@redhat.com>
10957
10958 * linux-low.c (pid_is_stopped): Delete, moved to common/.
10959 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
10960
c14d7ab2
PA
109612012-02-27 Pedro Alves <palves@redhat.com>
10962
10963 PR server/9684
10964 * linux-low.c (pid_is_stopped): New.
10965 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
10966
412c89dd
LM
109672012-02-25 Luis Machado <lgustavo@codesourcery.com>
10968
10969 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
10970 of conditions.
10971
b745defe
MR
109722012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10973
10974 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
10975
9f3a5c85
LM
109762012-02-24 Luis Machado <lgustavo@codesourcery>
10977
10978 * server.c (handle_query): Advertise support for target-side
10979 breakpoint condition evaluation.
10980 (process_point_options): New function.
10981 (process_serial_event): When inserting a breakpoint, check for
10982 a target-side condition that should be evaluated.
10983
10984 * mem-break.c: Include regcache.h and ax.h.
10985 (point_cond_list_t): New data structure.
10986 (breakpoint) <cond_list>: New field.
10987 (find_gdb_breakpoint_at): Make non-static.
10988 (delete_gdb_breakpoint_at): Clear any target-side
10989 conditions.
10990 (clear_gdb_breakpoint_conditions): New function.
10991 (add_condition_to_breakpoint): Likewise.
10992 (add_breakpoint_condition): Likewise.
10993 (gdb_condition_true_at_breakpoint): Likewise.
10994 (gdb_breakpoint_here): Return result directly instead
10995 of going through a local variable.
10996
10997 * mem-break.h (find_gdb_breakpoint_at): New prototype.
10998 (clear_gdb_breakpoint_conditions): Likewise.
10999 (add_breakpoint_condition): Likewise.
11000 (gdb_condition_true_at_breakpoint): Likewise.
11001
11002 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
11003 (need_step_over_p): Take target-side breakpoint condition into
11004 consideration.
11005
5e1dc496
LM
110062012-02-24 Luis Machado <lgustavo@codesourcery>
11007
11008 * server.h: Include tracepoint.h.
11009 (agent_mem_read, agent_get_trace_state_variable_value,
11010 agent_set_trace_state_variable_value,
11011 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
11012 get_set_tsv_func_addr): New prototypes.
11013
11014 * ax.h: New include file.
11015 * ax.c: New source file.
11016
11017 * tracepoint.c: Include ax.h.
11018 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
11019 agent_expr, eval_result_type): Move to ax.h.
11020 (parse_agent_expr): Rename to ...
11021 (gdb_parse_agent_expr): ... this, make it non-static and move
11022 to ax.h.
11023 (unparse_agent_expr) Rename to ...
11024 (gdb_unparse_agent_expr): ... this, make it non-static and move
11025 to ax.h.
11026 (eval_agent_expr): Rename to ...
11027 (eval_tracepoint_agent_expr): ... this.
11028 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
11029 forward declarations.
11030 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
11031 (agent_get_trace_state_variable_value): New function.
11032 (agent_set_trace_state_variable_value): New function.
11033 (cmd_qtdp): Call gdb_parse_agent_expr (...).
11034 (response_tracepoint): Call gdb_unparse_agent_expr (...).
11035 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
11036 (condition_true_at_tracepoint): Likewise.
11037 (parse_agent_expr): Rename to ...
11038 (gdb_parse_agent_expr): ... this and move to ax.c.
11039 (unparse_agent_expr): Rename to ...
11040 (gdb_unparse_agent_expr): ... this and move to ax.c.
11041 (gdb_agent_op_name): Move to ax.c.
11042 (eval_agent_expr): Rename to ...
11043 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
11044 and move to ax.c.
11045 (eval_tracepoint_agent_expr): New function.
11046 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 11047 non-static.
5e1dc496
LM
11048 (current_insn_ptr, emit_error, struct bytecode_address): Move to
11049 ax.c.
11050 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
11051 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
11052 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
11053 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
11054 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
11055 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
11056 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
11057 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
11058 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
11059 (compile_bytecodes): Remove forward declaration.
11060 (is_goto_target): Move to ax.c.
11061 (compile_bytecodes): Move to ax.c and call
11062 agent_get_trace_state_variable_value (...) and
11063 agent_set_trace_state_variable_value (...).
11064
11065 * Makefile.in: Update ax.c and IPA dependencies.
11066
277e4e52
PA
110672012-02-24 Pedro Alves <palves@redhat.com>
11068
11069 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
11070 (cmd_bigqtbuffer_circular): ... this. Only handle
11071 'QTBuffer:circular:'.
11072 (handle_tracepoint_general_set): Adjust.
11073
bf4c19f7
YQ
110742012-02-16 Yao Qi <yao@codesourcery.com>
11075
11076 * inferiors.c: Move code to ...
11077 * dll.c: .... here. New.
11078 * server.h: Declare clear_dlls.
11079 * Makefile.in (SFILES): Add dll.c.
11080 (OBS): Add dll.o
11081 (dll.o): New rule.
11082
d73f2619
YQ
110832012-02-11 Yao Qi <yao@codesourcery.com>
11084
11085 * server.c: (handle_monitor_command): Add a new parameter
11086 `own_buf'.
11087 (handle_query): Update caller.
11088
f8255c2a
JB
110892012-02-09 Joel Brobecker <brobecker@adacore.com>
11090
11091 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
11092 * configure, config.in: Regenerate.
11093 * hostio.c: Provide an alternate implementation if HAVE_READLINK
11094 is not defined.
11095
da84f473
PA
110962012-02-02 Pedro Alves <palves@redhat.com>
11097
11098 Try SIGKILL first, then PTRACE_KILL.
11099 * linux-low.c (linux_kill_one_lwp): New.
11100 (linux_kill_one_lwp): Rename to ...
11101 (kill_one_lwp_callback): ... this. Use the new
11102 linux_kill_one_lwp.
11103
e886a173
PA
111042012-02-02 Pedro Alves <palves@redhat.com>
11105
11106 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
11107 inferior.
11108
be07f1a2
PA
111092012-01-27 Pedro Alves <palves@redhat.com>
11110
11111 * linux-low.c (linux_child_pid_to_exec_file): Delete.
11112 (elf_64_file_p): Make static.
11113 (linux_pid_exe_is_elf_64_file): New.
11114 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
11115 Delete declarations.
11116 (linux_pid_exe_is_elf_64_file): Declare.
11117 * linux-x86-low.c (x86_arch_setup): Use
11118 linux_pid_exe_is_elf_64_file.
11119
d8301ad1
JK
111202012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11121
11122 * linux-low.c (linux_wait_for_event_1): Rename to ...
11123 (linux_wait_for_event): ... here and merge it with former
11124 linux_wait_for_event - new variable wait_ptid, use it.
11125 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
11126
01b17894
PA
111272012-01-23 Pedro Alves <palves@redhat.com>
11128
11129 * server.c (main): Avoid yet another case of infinite loop while
11130 detaching/killing after a longjmp.
11131
e825046f
JK
111322012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11133
11134 Code cleanup.
11135 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
11136
b9e7b9c3
UW
111372012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11138
11139 * hostio.c (handle_readlink): New function.
11140 (handle_vFile): Call it to handle "vFile:readlink" packets.
11141
901f9912
UW
111422012-01-20 Pedro Alves <palves@redhat.com>
11143 Ulrich Weigand <ulrich.weigand@linaro.org>
11144
11145 * server.c (handle_v_requests): Only support vAttach and vRun to
11146 start multiple processes when in extended protocol mode.
11147
fc1ab1a0
PA
111482012-01-17 Pedro Alves <palves@redhat.com>
11149
11150 * tracepoint.c (initialize_tracepoint): Use mmap instead of
11151 memalign plus mprotect to allocate the scratch buffer.
11152
7d5d4e98
PA
111532012-01-13 Pedro Alves <palves@redhat.com>
11154
11155 * server.c (attach_inferior): Clear `cont_thread'.
11156
f128d5e9
PA
111572012-01-13 Pedro Alves <palves@redhat.com>
11158
11159 * server.c (main): Avoid infinite loop while detaching/killing
11160 after a longjmp.
11161
06db92f0
DE
111622012-01-09 Doug Evans <dje@google.com>
11163
11164 * server.c (start_inferior): Set last_ptid in --wrapper case.
11165
32d92999
YQ
111662012-01-06 Yao Qi <yao@codesourcery.com>
11167
11168 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
11169 defined.
11170 [IN_PROCESS_AGENT] (debug_agent): New global variable.
11171
5e0a92a9
YQ
111722012-01-04 Yao Qi <yao@codesourcery.com>
11173
11174 * tracepoint.c (cmd_qtdp): Print debug message
11175 for static tracepoint.
11176
ae639e8c
YQ
111772012-01-04 Yao Qi <yao@codesourcery.com>
11178
11179 * tracepoint.c (trace_vdebug): Differentiate debug message
11180 between gdbserver and IPA.
11181
f72429c5
YQ
111822012-01-03 Yao Qi <yao@codesourcery.com>
11183
11184 * tracepoint.c (tracepoint_was_hit): Don't collect for
11185 static tracepoint.
11186
12c3e59c
JB
111872012-01-02 Joel Brobecker <brobecker@adacore.com>
11188
11189 * terminal.h: Reformat copyright header.
11190
67827812
JB
111912012-01-02 Joel Brobecker <brobecker@adacore.com>
11192
11193 * server.c (gdbserver_version): Update copyright year.
11194 * gdbreplay.c (gdbreplay_version): Likewise.
11195
3e52c33d
JK
111962011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
11197
11198 * linux-low.c (linux_create_inferior): Put empty if clause for write.
11199
11200 Revert:
11201 2011-12-18 Hui Zhu <teawater@gmail.com>
11202 * linux-low.c (linux_create_inferior): Save return value to ret.
11203
66f1260e
HZ
112042011-12-18 Hui Zhu <teawater@gmail.com>
11205
11206 * linux-low.c (linux_create_inferior): Save return value to ret.
11207
e77616d7
DE
112082011-12-16 Doug Evans <dje@google.com>
11209
e7b06c57
DE
11210 * linux-low.c (linux_create_inferior): If stdio connection,
11211 redirect stdin from /dev/null, stdout to stderr.
11212 * remote-utils.c (remote_is_stdio): New static global.
11213 (remote_connection_is_stdio): New function.
11214 (remote_prepare): Handle stdio connection.
11215 (remote_open): Ditto.
11216 (remote_close): Don't close stdin for stdio connections.
11217 (read_prim,write_prim): New functions. Replace all calls to
11218 read/write to these.
11219 * server.c (main): Watch for "-" argument. Move call to
11220 remote_prepare before start_inferior.
11221 * server.h (STDIO_CONNECTION_NAME): New macro.
11222 (remote_connection_is_stdio): Declare.
11223
e77616d7
DE
11224 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
11225 in debugging output.
11226
82067193
YQ
112272011-12-15 Yao Qi <yao@codesourcery.com>
11228
11229 * tracepoint.c: Include sys/syscall.h.
11230 (gdb_ust_thread): Remove preprocessor conditional.
11231
82bfbe7e
PA
112322011-12-14 Pedro Alves <pedro@codesourcery.com>
11233
11234 * linux-low.c (linux_detach_one_lwp): Call
11235 the_low_target.prepare_to_resume before detaching.
11236
712c6575
YQ
112372011-12-14 Yao Qi <yao@codesourcery.com>
11238
11239 * tracepoint.c (gdb_ust_thread): Don't ignore return value
11240 of write.
11241
d54d1edf
YQ
112422011-12-14 Yao Qi <yao@codesourcery.com>
11243
11244 * i386-low.c (i386_low_stopped_data_address): Initialize local
11245 variable `control'.
11246
6210a125
PA
112472011-12-13 Pedro Alves <pedro@codesourcery.com>
11248
11249 PR remote/13492
11250
11251 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
11252 DR_CONTROL unless necessary. Extend comments.
11253 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
11254 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
11255
2ece8244
YQ
112562011-12-13 Yao Qi <yao@codesourcery.com>
11257
11258 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
11259 macros.
11260 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
11261
784867a5
JK
112622011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11263
11264 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
11265 Print new debug message for such case.
11266
6bf36717
JK
112672011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
11268
11269 Fix overlapping memcpy.
11270 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
11271 the read_inferior_memory transfer.
11272 (delete_fast_tracepoint_jump): New variable buf. Use it for the
11273 write_inferior_memory transfer.
11274 (set_fast_tracepoint_jump): New variable buf. Use it for the
11275 read_inferior_memory and write_inferior_memory transfers.
11276 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
11277 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
11278 Use it for the write_inferior_memory transfer.
11279 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
11280 buffers.
11281
50275556
MR
112822011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
11283
11284 * linux-low.c (fetch_register, store_register): Make code
11285 consistent, fix formatting.
11286
7325beb4
MR
112872011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
11288
11289 * linux-low.c (usr_store_inferior_registers): Factor out code
11290 to handle individual registers into...
11291 (store_register): ... this new function.
11292
c642a434
UW
112932011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
11294
11295 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
11296 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
11297 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
11298 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
11299 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
11300 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
11301 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
11302 (srv_xmlfiles): Add new XML files.
11303
11304 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
11305 and <sys/uio.h>.
11306 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
11307 (init_registers_s390_linux32v1): Add prototype.
11308 (init_registers_s390_linux32v2): Likewise.
11309 (init_registers_s390_linux64v1): Likewise.
11310 (init_registers_s390_linux64v2): Likewise.
11311 (init_registers_s390x_linux64v1): Likewise.
11312 (init_registers_s390x_linux64v2): Likewise.
11313 (s390_num_regs): Increment to 52.
11314 (s390_regmap): Add orig_r2 register.
11315 (s390_num_regs_3264): Increment to 68.
11316 (s390_regmap_3264): Add orig_r2 register.
11317 (s390_collect_ptrace_register): Handle orig_r2 register.
11318 (s390_supply_ptrace_register): Likewise.
11319 (s390_fill_last_break): New function.
11320 (s390_store_last_break): Likewise.
11321 (s390_fill_system_call): New function.
11322 (s390_store_system_call): Likewise.
11323 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
11324 register sets.
11325 (s390_check_regset): New function.
11326 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
11327 NT_S390_SYSTEM_CALL regsets and use appropriate description.
11328 Update target_regsets for available register sets.
11329
2268b414
JK
113302011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
11331 Jan Kratochvil <jan.kratochvil@redhat.com>
11332
11333 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
11334 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
11335 New.
11336 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
11337 * linux-low.h (struct process_info_private): New member r_debug.
11338 * server.c (handle_qxfer_libraries): Call
11339 the_target->qxfer_libraries_svr4.
11340 (handle_qxfer_libraries_svr4): New function.
11341 (qxfer_packets): New entry "libraries-svr4".
11342 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
11343 * target.h (struct target_ops): New member qxfer_libraries_svr4.
11344 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
11345 PACKET_qXfer_libraries_svr4.
11346
d6db1fab
UW
113472011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
11348
11349 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
11350 PSW address/mask between 8-byte and 16-byte formats.
11351 (s390_supply_ptrace_register): Likewise.
11352 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
11353 basic addressing mode bit.
11354
242f5f1c
SS
113552011-11-24 Stan Shebs <stan@codesourcery.com>
11356
11357 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
11358
f196051f
SS
113592011-11-17 Stan Shebs <stan@codesourcery.com>
11360
11361 * tracepoint.c (struct tracepoint): New field traceframe_usage.
11362 (tracing_start_time): New global.
11363 (tracing_stop_time): New global.
11364 (tracing_user_name): New global.
11365 (tracing_notes): New global.
11366 (tracing_stop_note): New global.
11367 (cmd_qtstart): Set traceframe_usage, start_time.
11368 (stop_tracing): Set stop_time.
11369 (cmd_qtstatus): Report additional status.
11370 (cmd_qtp): New function.
11371 (handle_tracepoint_query): Call it.
11372 (cmd_qtnotes): New function.
11373 (handle_tracepoint_general_set): Call it.
11374 (get_timestamp): Rename from tsv_get_timestamp.
11375
405f8e94
SS
113762011-11-14 Stan Shebs <stan@codesourcery.com>
11377 Kwok Cheung Yeung <kcy@codesourcery.com>
11378
11379 * linux-x86-low.c (small_jump_insn): New.
11380 (i386_install_fast_tracepoint_jump_pad): Add arguments for
11381 trampoline and error message, build a trampoline and issue a small
11382 jump instruction to it.
11383 (x86_install_fast_tracepoint_jump_pad): Add arguments for
11384 trampoline and error message.
11385 (x86_get_min_fast_tracepoint_insn_len): New.
11386 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
11387 * linux-low.h (struct linux_target_ops): Add arguments to
11388 install_fast_tracepoint_jump_pad operation, add new operation.
11389 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
11390 arguments.
11391 (linux_get_min_fast_tracepoint_insn_len): New function.
11392 (linux_target_op): Add new operation.
11393 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
11394 (gdb_trampoline_buffer_end): Ditto.
11395 (gdb_trampoline_buffer_error): Ditto.
11396 (struct ipa_sym_addresses): Add fields for new IPA variables.
11397 (symbol_list): Add entries for new IPA variables.
11398 (struct tracepoint): Add fields to hold the address range of the
11399 trampoline used by the tracepoint.
11400 (trampoline_buffer_head): New static variable.
11401 (trampoline_buffer_tail): Ditto.
11402 (claim_trampoline_space): New function.
11403 (have_fast_tracepoint_trampoline_buffer): New function.
11404 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
11405 structure.
11406 (install_fast_tracepoint): Ditto, also add error buffer argument.
11407 (cmd_qtminftpilen): New function.
11408 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
11409 (fast_tracepoint_from_trampoline_address): New function.
11410 (fast_tracepoint_collecting): Handle trampoline as part of jump
11411 pad space.
11412 (set_trampoline_buffer_space): New function.
11413 (initialize_tracepoint): Initialize new IPA variables.
11414 * target.h (struct target_ops): Add arguments to
11415 install_fast_tracepoint_jump_pad operation, add new
11416 get_min_fast_tracepoint_insn_len operation.
11417 (target_get_min_fast_tracepoint_insn_len): New.
11418 (install_fast_tracepoint_jump_pad): Add arguments.
11419 * server.h (IPA_BUFSIZ): Define.
11420 * linux-i386-ipa.c: Include extra header files.
11421 (initialize_fast_tracepoint_trampoline_buffer): New function.
11422 (initialize_low_tracepoint): Call it.
11423 * server.h (set_trampoline_buffer_space): Declare.
11424 (claim_trampoline_space): Ditto.
11425 (have_fast_tracepoint_trampoline_buffer): Ditto.
11426
1e4d1764
YQ
114272011-11-14 Yao Qi <yao@codesourcery.com>
11428
11429 * server.c (handle_query): Handle InstallInTrace for qSupported.
11430 * tracepoint.c (add_tracepoint): Sort list.
11431 (install_tracepoint, download_tracepoint): New.
11432 (cmd_qtdp): Call them to install and download tracepoints.
11433 (sort_tracepoints): Removed.
11434 (cmd_qtstart): Update.
11435
5c73ff4e
YQ
114362011-11-14 Yao Qi <yao@codesourcery.com>
11437
11438 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
11439 * mem-break.h: Declare.
11440 * tracepoint.c (cmd_qtstart): Move some code to ...
11441 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
11442 New.
11443 (download_tracepoints): Move some code to ...
11444 (download_tracepoint_1): ... here. New.
11445
86a30030
YQ
114462011-11-08 Yao Qi <yao@codesourcery.com>
11447
11448 * remote-utils.c (relocate_instruction): A comment fix.
11449
8d26e50c
JB
114502011-11-07 Joel Brobecker <brobecker@adacore.com>
11451
11452 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
11453 (i386_dr_low_get_control, i386_dr_low_get_status): Use
11454 dr_status_mirror and dr_control_mirror from debug_reg_state.
11455 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
11456 (i386_initial_stuff): Remove use of deleted globals.
11457 (i386_get_thread_context, i386_set_thread_context,
11458 i386_thread_added): Use dr_status_mirror and dr_control_mirror
11459 from debug_reg_state.
11460
a59306a3
YQ
114612011-11-05 Yao Qi <yao@codesourcery.com>
11462
11463 * tracepoint.c (gdb_collect): Loop over tracepoints of same
11464 address as TPOINT's.
11465
3065dfb6
SS
114662011-11-02 Stan Shebs <stan@codesourcery.com>
11467
11468 * tracepoint.c (agent_mem_read_string): New function.
11469 (eval_agent_expr): Call it for tracenz.
11470 * server.c (handle_query): Report support for tracenz.
11471
fd0d8c7c
YQ
114722011-11-02 Yao Qi <yao@codesourcery.com>
11473
11474 * tracepoint.c (cmd_qtstart): Remove unused local variables.
11475
609086b1
YQ
114762011-11-02 Yao Qi <yao@codesourcery.com>
11477
11478 * target.h: Fix a typo in comment.
11479
b9fd1791
PA
114802011-10-31 Pedro Alves <pedro@codesourcery.com>
11481
11482 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
11483 clobber the breakpoints' shadows with fast tracepoint jumps.
11484 * mem-break.h (check_mem_write): Add `myaddr' parameter.
11485 * target.c (write_inferior_memory): Also pass MYADDR down to
11486 check_mem_write.
11487
03583c20
UW
114882011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
11489
11490 * configure.ac: Check support for personality routine.
11491 * configure: Regenerate.
11492 * config.in: Likewise.
11493 * linux-low.c: Include <sys/personality.h>.
11494 Define ADDR_NO_RANDOMIZE if necessary.
11495 (linux_create_inferior): Disable address space randomization when
11496 forking inferior, if requested.
11497 (linux_supports_disable_randomization): New function.
11498 (linux_target_ops): Install it.
11499 * server.h (disable_randomization): Declare.
11500 * server.c (disable_randomization): New global variable.
11501 (handle_general_set): Handle QDisableRandomization.
11502 (handle_query): Likewise for qSupported.
11503 (main): Support --disable-randomization and --no-disable-randomization
11504 command line arguments.
11505 * target.h (struct target_ops): Add supports_disable_randomization.
11506 (target_supports_disable_randomization): New macro.
11507
723b724b
MF
115082011-09-29 Mike Frysinger <vapier@gentoo.org>
11509
11510 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
11511 ifdef check.
11512 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
11513 [!PT_GETDSBT] (target_loadmap): New definition.
11514 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
11515 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
11516 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
11517 and PT_GETDSBT to LINUX_LOADMAP.
11518 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
11519 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
11520
55329a5c 115212011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
11522
11523 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
11524 (arm_linux_hwbp_cap): New static variable.
11525 (arm_linux_get_hwbp_cap): Replace by ...
11526 (arm_linux_init_hwbp_cap): ... this new function.
11527 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
11528 (arm_linux_get_hw_watchpoint_count): Likewise.
11529 (arm_linux_get_hw_watchpoint_max_length): Likewise.
11530 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
11531 (arm_prepare_to_resume): Use perror_with_name instead of error.
11532
55329a5c 115332011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
11534
11535 * linux-arm-low.c: Include <signal.h>.
11536 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
11537 (struct arm_linux_hwbp_cap): New data type.
11538 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
11539 (struct arm_linux_hw_breakpoint): New data type.
11540 (MAX_BPTS, MAX_WPTS): Define.
11541 (struct arch_process_info, struct arch_lwp_info): New data types.
11542 (arm_linux_get_hwbp_cap): New function.
11543 (arm_linux_get_hw_breakpoint_count): Likewise.
11544 (arm_linux_get_hw_watchpoint_count): Likewise.
11545 (arm_linux_get_hw_watchpoint_max_length): Likewise.
11546 (arm_hwbp_control_initialize): Likewise.
11547 (arm_hwbp_control_is_enabled): Likewise.
11548 (arm_hwbp_control_is_initialized): Likewise.
11549 (arm_hwbp_control_disable): Likewise.
11550 (arm_linux_hw_breakpoint_equal): Likewise.
11551 (arm_linux_hw_point_initialize): Likewise.
11552 (struct update_registers_data): New data structure.
11553 (update_registers_callback: New function.
11554 (arm_insert_point): Likewise.
11555 (arm_remove_point): Likewise.
11556 (arm_stopped_by_watchpoint): Likewise.
11557 (arm_stopped_data_address): Likewise.
11558 (arm_new_process): Likewise.
11559 (arm_new_thread): Likewise.
11560 (arm_prepare_to_resume): Likewise.
11561 (the_low_target): Register arm_insert_point, arm_remove_point,
11562 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
11563 arm_new_thread, and arm_prepare_to_resume.
11564
6b9801d4
SS
115652011-09-15 Stan Shebs <stan@codesourcery.com>
11566
11567 * server.h (struct emit_ops): Add compare-goto fields.
11568 * tracepoint.c (gdb_agent_op_sizes): New table.
11569 (emit_eq_goto): New function.
11570 (emit_ne_goto): New function.
11571 (emit_lt_goto): New function.
11572 (emit_le_goto): New function.
11573 (emit_gt_goto): New function.
11574 (emit_ge_goto): New function.
11575 (is_goto_target): New function.
11576 (compile_bytecodes): Recognize special cases of compare-goto
11577 combinations and call specialized emitters for them.
11578 * linux-x86-low.c (amd64_emit_eq_goto): New function.
11579 (amd64_emit_ne_goto): New function.
11580 (amd64_emit_lt_goto): New function.
11581 (amd64_emit_le_goto): New function.
11582 (amd64_emit_gt_goto): New function.
11583 (amd64_emit_ge_goto): New function.
11584 (amd64_emit_ops): Add the new functions.
11585 (i386_emit_eq_goto): New function.
11586 (i386_emit_ne_goto): New function.
11587 (i386_emit_lt_goto): New function.
11588 (i386_emit_le_goto): New function.
11589 (i386_emit_gt_goto): New function.
11590 (i386_emit_ge_goto): New function.
11591 (i386_emit_ops): Add the new functions.
11592
bf15cbda
SS
115932011-09-08 Stan Shebs <stan@codesourcery.com>
11594
11595 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
11596 (i386_emit_epilogue): Restore %ebx.
11597
943ca1dd
JZ
115982011-08-31 Jie Zhang <jzhang918@gmail.com>
11599
11600 * server.c (step_thread): Remove definition.
11601 (process_serial_event): Don't handle Hs.
11602 * server.h (step_thread): Remove declaration.
11603 * target.c (set_desired_inferior): Remove use of step_thread.
11604
e3deef73
LM
116052011-08-24 Luis Machado <lgustavo@codesourcery.com>
11606
11607 * linux-low.c: Include linux-procfs.h.
11608 (linux_attach_lwp_1): Update comments.
11609 (linux_attach): Scan for existing threads when attaching to a
11610 process that is the tgid.
11611 * Makefile.in: Update dependencies.
11612
13da1c97
LM
116132011-08-24 Luis Machado <lgustavo@codesourcery.com>
11614
11615 * configure.srv: Add linux-procfs.o dependencies.
11616
881127c9
YQ
116172011-08-14 Yao Qi <yao@codesourcery.com>
11618
11619 * target.h (struct target_ops): Fix indent.
11620 * win32-low.c (win32_target_ops): Fix comment.
11621
58dbd541
YQ
116222011-08-14 Andrew Jenner <andrew@codesourcery.com>
11623 Yao Qi <yao@codesourcery.com>
11624
11625 * Makefile.in (clean): Remove tic6x-*.c files.
11626 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
11627 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
11628 (tic6x-c64xp-linux.c): Likewise.
11629 * configure.srv: Add support for tic6x-*-uclinux.
11630 * linux-tic6x-low.c: New.
11631 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
11632
78d85199
YQ
116332011-08-14 Andrew Stubbs <ams@codesourcery.com>
11634 Yao Qi <yao@codesourcery.com>
11635
11636 * target.h (struct target_ops): Add read_loadmap.
11637 * linux-low.c (struct target_loadseg): New type.
11638 (struct target_loadmap): New type.
11639 (linux_read_loadmap): New function.
11640 (linux_target_ops): Add linux_read_loadmap.
11641 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
11642 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
11643 to NULL.
78d85199 11644
a959a88d
EZ
116452011-08-05 Eli Zaretskii <eliz@gnu.org>
11646
11647 * win32-low.c: Include <stdint.h>.
11648
1ced966e
PA
116492011-07-22 Pedro Alves <pedro@codesourcery.com>
11650
11651 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
11652 to the inferior here.
11653 (i386_remove_aligned_watchpoint): Ditto.
11654 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
11655 fit part of the watchpoint in the debug registers.
11656 (i386_update_inferior_debug_regs): New.
11657 (i386_low_insert_watchpoint): Work on a local mirror of the debug
11658 registers, and only update the inferior on success.
11659 (i386_low_remove_watchpoint): Ditto.
11660
d26e3629
KY
116612011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
11662
11663 * linux-low.c (compare_ints, unique, list_threads, show_process,
11664 linux_core_of_thread): Delete.
11665 (linux_target_ops): Change linux_core_of_thread to
11666 linux_common_core_of_thread.
11667 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
11668 * utils.c (malloc_failure): Change type of argument.
11669 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
11670 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
11671 common/linux-osdata.c, common/ptid.c and common/buffer.c.
11672 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
11673 (IPA_OBJS): Add common-utils-ipa.o.
11674 (ptid_h, linux_osdata_h): New macros.
11675 (server_h): Add common/common-utils.h, common/xml-utils.h,
11676 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
11677 common/ptid.h.
11678 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
11679 ptid.o, buffer.o): New rules.
11680 (linux-low.o): Add common/linux-osdata.h as a dependency.
11681 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
11682 * configure.ac: Add AC_HEADER_DIRENT check.
11683 * config.in: Regenerate.
11684 * configure: Regenerate.
11685 * remote-utils.c (xml_escape_text): Delete.
11686 (buffer_grow, buffer_free, buffer_init, buffer_finish,
11687 buffer_xml_printf): Move to common/buffer.c.
11688 * server.c (main): Remove call to initialize_inferiors.
11689 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
11690 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
11691 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
11692 internal_error, gdb_assert, gdb_assert_fail): Delete.
11693 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
11694 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
11695 common/buffer.h.
11696 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
11697 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
11698 initialize_inferiors): Delete.
11699
2275a1a7
PA
117002011-07-20 Pedro Alves <pedro@codesourcery.com>
11701
11702 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
11703 symbol error.
11704
0a5b1e09
PA
117052011-05-31 Pedro Alves <pedro@codesourcery.com>
11706
11707 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
11708 assertion.
11709 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
11710
6938fd34
YQ
117112011-05-26 Yao Qi <yao@codesourcery.com>
11712
11713 * Makefile.in (thread-db.o): Track dependence to
11714 common/gdb_thread_db.h.
11715 * thread-db.c: include gdb_thread_db.h from right place.
11716
b481f9e0
TT
117172011-05-16 Adrian Cornish <gnu@bluedreamer.com>
11718
11719 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
11720 __FILE__ and __LINE__ to internal_error.
11721
98a5dd13
DE
117222011-05-13 Doug Evans <dje@google.com>
11723
11724 * thread-db.c (try_thread_db_load_from_sdir): New function.
11725 (try_thread_db_load_from_dir): New function.
11726 (thread_db_load_search): Handle $sdir, ignore $pdir.
11727 Remove trying of system directories if search of
11728 libthread-db-search-path fails, that is now done via $sdir.
11729
d248b706
KY
117302011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
11731
11732 * server.c (handle_query): Add EnableDisableTracepoints to the list
11733 of supported features.
43aaf8b6 11734 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 11735 tracepoints.
43aaf8b6
PA
11736 (cmd_qtenable_disable): New.
11737 (cmd_qtstart): Install tracepoints even if disabled.
11738 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
11739 receiving a QTEnable or QTDisable packet.
11740 (gdb_collect): Skip data collection if fast tracepoint is disabled.
11741 (ust_marker_to_static_tracepoint): Do not ignore disabled static
11742 tracepoints.
11743 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 11744
84e578fb
DE
117452011-05-10 Doug Evans <dje@google.com>
11746
11747 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
11748
71f55dd8
DE
117492011-05-04 Doug Evans <dje@google.com>
11750
11751 * linux-low.c (linux_join): Skip process lookup.
11752 * spu-low.c (spu_join): Ditto.
11753 * server.c (join_inferiors_callback): Delete.
11754 (process_serial_event): For 'D' packet (detach) call join_inferior
11755 directly.
11756
4d393d60
JM
117572011-05-04 Joseph Myers <joseph@codesourcery.com>
11758
11759 * README: Don't mention xscale*-*-linux*.
11760 * configure.srv (xscale*-*-linux*): Don't handle target.
11761
b00ad6ff
NF
117622011-04-27 Nathan Froyd <froydnj@codesourcery.com>
11763
11764 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
11765 casting pointers.
11766 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
11767 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
11768 (i386_emit_void_call_2): Likewise.
11769
af96c192
YQ
117702011-04-26 Yao Qi <yao@codesourcery.com>
11771
43aaf8b6
PA
11772 * linux-low.c: Move common macros to linux-ptrace.h.
11773 Include linux-ptrace.h.
af96c192
YQ
11774 * Makefile.in (linux_ptrace_h): New.
11775 (linux-low.o): Depends on linux-ptrace.h.
11776
03f2bd59
JK
117772011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11778
11779 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
11780 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
11781 (remote_prepare): New function with most of the TCP code from ...
11782 (remote_open): ... here. Detect PORT here unconditionally. Move also
11783 setting transport_is_reliable.
11784 * server.c (run_once): New variable.
11785 (gdbserver_usage): Document it.
11786 (main): Set run_once for `--once'. Call remote_prepare. Exit after
11787 the first run if RUN_ONCE.
11788 * server.h (run_once, remote_prepare): New declarations.
11789
7a9dd1b2
TT
117902011-04-19 Tom Tromey <tromey@redhat.com>
11791
11792 * win32-low.c (handle_load_dll): Remove duplicate "the".
11793
81239425
PM
117942011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
11795
11796 Remove support for old Cygwin 1.5 versions.
11797 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
11798 function to avoid warning.
11799 (win32_add_one_solib): Use cygwin_conv_path function to avoid
11800 warning.
11801
9e0627f1
PM
118022011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
11803
11804 * gdbserver/server.h (Macro _): Define it if not available.
11805
588eebee
MS
118062011-03-14 Michael Snyder <msnyder@vmware.com>
11807
348af9f7 11808 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 11809
43f70d4c
JB
118102011-03-10 Joel Brobecker <brobecker@adacore.com>
11811
11812 * Makefile.in (maintainer-clean realclean distclean): Remove
11813 "make ... subdir_do" command.
11814
348af9f7
MS
118152011-03-10 Michael Snyder <msnyder@vmware.com>
11816
11817 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
11818
11819 * server.c (handle_v_run): Free alloced buffer on early return.
11820
e637a4f5
YQ
118212011-03-09 Yao Qi <yao@codesourcery.com>
11822
11823 Revert:
11824 2011-03-04 Yao Qi <yao@codesourcery.com>
11825
11826 * Makefile.in: Remove GNU make feature --directory.
11827
11828 2011-03-05 Yao Qi <yao@codesourcery.com>
11829
11830 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
11831 (subdir_do): New make target. Copied from gdb/Makefile.
11832 (maintainer-clean, realclean, distclean, clean): Call corresponding
11833 make targets in common/Makefile.
11834
11835 2011-02-11 Yao Qi <yao@codesourcery.com>
11836
11837 * configure.ac: Call AC_PROG_RANLIB.
11838 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
11839 * configure: Regenerate.
11840
e6edda56
JK
118412011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
11842
11843 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
11844
e5141119
JB
118452011-03-06 Yao Qi <yao@codesourcery.com>
11846
11847 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
11848
64794aa4
JB
118492011-03-05 Yao Qi <yao@codesourcery.com>
11850
11851 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
11852 (subdir_do): New make target. Copied from gdb/Makefile.
11853 (maintainer-clean, realclean, distclean, clean): Call corresponding
11854 make targets in common/Makefile.
11855
7a762829
YQ
118562011-03-04 Yao Qi <yao@codesourcery.com>
11857
11858 * Makefile.in: Remove GNU make feature --directory.
11859
348af9f7
MS
118602011-03-04 Michael Snyder <msnyder@vmware.com>
11861
11862 * server.c (queue_stop_reply): Call xmalloc not malloc.
11863
118642011-03-02 Michael Snyder <msnyder@vmware.com>
11865
11866 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
11867
9f72fee2
MS
118682011-02-28 Michael Snyder <msnyder@vmware.com>
11869
588eebee
MS
11870 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
11871 (cmd_qtframe): Ditto.
11872 (cmd_qtbuffer): Ditto.
11873 (cmd_bigqtbuffer): Ditto.
11874
9f72fee2
MS
11875 * utils.c (decimal2str): Initialize 'width' to nine, then
11876 don't mess with it.
11877
8040bd49
UW
118782011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
11879
11880 * hostio.c (require_data): Free *data, not data.
11881
7e52cbd0
JK
118822011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11883
11884 * hostio.c (require_data): Use free, not xfree.
11885
9130f83e
MS
118862011-02-27 Michael Snyder <msnyder@vmware.com>
11887
4b812f4e
MS
11888 * server.c (handle_query): Discard unused value.
11889
9130f83e
MS
11890 * hostio.c (require_data): Free malloc memory before returning
11891 error.
11892
69d37113
MS
118932011-02-26 Michael Snyder <msnyder@vmware.com>
11894
11895 * linux-low.c (list_threads): Call closedir for dirent.
11896
35f5825a
MS
118972011-02-27 Michael Snyder <msnyder@vmware.com>
11898
2a589cef
MS
11899 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
11900 a case statement falls through.
11901
0adea5f7
MS
11902 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
11903
35f5825a
MS
11904 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
11905 in comparison.
11906
238f1c74
MS
119072011-02-26 Michael Snyder <msnyder@vmware.com>
11908
11909 * utils.c (decimal2str): Eliminate dead code and dead param.
11910 (pulongest): Drop dead param from call to decimal2str.
11911 (plongest): Ditto.
11912
633ff500
JB
119132011-02-24 Joel Brobecker <brobecker@adacore.com>
11914
11915 Revert the following patch (not approved yet):
11916 2011-02-21 Hui Zhu <teawater@gmail.com>
11917 * tracepoint.c (tp_printf): New function.
11918 (eval_agent_expr): Handle gdb_agent_op_printf.
11919
f9c6ff72
HZ
119202011-02-21 Hui Zhu <teawater@gmail.com>
11921
11922 * tracepoint.c (tp_printf): New function.
11923 (eval_agent_expr): Handle gdb_agent_op_printf.
11924
94d5e490
TT
119252011-02-18 Tom Tromey <tromey@redhat.com>
11926
11927 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
11928 (tracepoint.o): Likewise.
11929 * tracepoint.c (enum gdb_agent_op): Use ax.def.
11930 (gdb_agent_op_names): Likewise.
11931
c7f96d2b
TT
119322011-02-18 Tom Tromey <tromey@redhat.com>
11933
11934 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
11935 gdb_agent_op_rot>: New constants.
11936 (gdb_agent_op_names): Add pick and roll.
11937 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
11938 cases.
11939
0feedb2c
JK
119402011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11941
11942 * aclocal.m4: Regenerated with aclocal-1.11.1.
11943
b3b9301e
PA
119442011-02-14 Pedro Alves <pedro@codesourcery.com>
11945
11946 * server.c (handle_qxfer_traceframe_info): New.
11947 (qxfer_packets): Register "traceframe-info".
11948 (handle_query): Report support for qXfer:traceframe-info:read+.
11949 * tracepoint.c (match_blocktype): New.
11950 (traceframe_find_block_type): Rename to ...
11951 (traceframe_walk_blocks): ... this. Add callback filter argument,
11952 and use it.
11953 (traceframe_find_block_type): New, reimplemented on top of
11954 traceframe_walk_blocks.
11955 (build_traceframe_info_xml): New.
11956 (traceframe_read_info): New.
11957 * server.h (traceframe_read_info): Declare.
11958
4f3e6fb7
YQ
119592011-02-11 Yao Qi <yao@codesourcery.com>
11960
11961 * configure.ac: Call AC_PROG_RANLIB.
11962 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
11963 * configure: Regenerate.
11964
764880b7
PA
119652011-02-07 Pedro Alves <pedro@codesourcery.com>
11966
11967 * server.c (gdb_read_memory): Change return semantics to allow
11968 partial transfers.
11969 (handle_search_memory_1): Adjust.
11970 (process_serial_event) <'m' packet>: Handle partial transfers.
11971 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
11972
1c79eb8a
PA
119732011-01-28 Pedro Alves <pedro@codesourcery.com>
11974
11975 * regcache.c (init_register_cache): Initialize
11976 regcache->register_status.
11977 (free_register_cache): Release regcache->register_status.
11978 (regcache_cpy): Copy register_status.
11979 (registers_to_string): Print 'x's for unavailable registers.
11980 (supply_register): Mark the register's status valid or
11981 unavailable, depending on whether a buffer was passed in or not.
11982 (supply_register_zeroed): New.
11983 (supply_regblock): Mark the registers' status valid or
11984 unavailable, depending on whether a buffer was passed in or not.
11985 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
11986 (struct regcache): New `register_status' field.
11987 (supply_register_zeroed): Declare.
11988 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
11989 supply_register_zeroed, rather than passing a NULL buffer to
11990 supply_register.
11991 * tracepoint.c (fetch_traceframe_registers): Update comment.
11992
85724a0e
PA
119932011-01-28 Pedro Alves <pedro@codesourcery.com>
11994
11995 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
11996 buffer explicit.
11997
d08aafef
PA
119982011-01-25 Pedro Alves <pedro@codesourcery.com>
11999
12000 * server.h (decode_xfer_write): Change prototype.
12001 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
12002 and don't extract the annex here.
12003 * server.c (decode_xfer_read): Remove `annex' parameter,
12004 and don't extract the annex here.
12005 (decode_xfer): New.
12006 (struct qxfer): New.
12007 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
12008 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
12009 (handle_qxfer_statictrace): New functions, abstracted out from
12010 handle_query, and made to use the struct qxfer interface.
12011 (handle_threads_qxfer_proper): Rename to ...
12012 (handle_qxfer_threads_proper): ... this.
12013 (handle_threads_qxfer): Rename to ...
12014 (handle_qxfer_threads): ... this. Adjust.
12015 (qxfer_packets): New array.
12016 (handle_qxfer): New function.
12017 (handle_query): Use handle_qxfer.
12018
493e2a69
MS
120192011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
12020
12021 * gdbreplay.c: Shorten lines of >= 80 columns.
12022 * linux-low.c: Ditto.
12023 * linux-ppc-low.c: Ditto.
12024 * linux-s390-low.c: Ditto.
12025 * linux-sparc-low.c: Ditto.
12026 * linux-x86-low.c: Ditto.
12027 * linux-xtensa-low.c: Ditto.
12028 * mem-break.c: Ditto.
12029 * nto-low.c: Ditto.
12030 * regcache.h: Ditto.
12031 * remote-utils.c: Ditto.
12032 * server.c: Ditto.
12033 * server.h: Ditto.
12034 * thread-db.c: Ditto.
12035 * tracepoint.c: Ditto.
12036 * utils.c: Ditto.
12037 * win32-low.h: Ditto.
12038
44944448
JB
120392011-01-05 Joel Brobecker <brobecker@adacore.com>
12040
12041 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
12042 update.
12043
71ce852c
JB
120442011-01-01 Joel Brobecker <brobecker@adacore.com>
12045
12046 * server.c (gdbserver_version): Update copyright year in version
12047 output.
12048 * gdbreplay.c (gdbreplay_version): Ditto.
12049
eb826dc6
MF
120502010-12-29 Jie Zhang <jie.zhang@analog.com>
12051
12052 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
12053 * linux-bfin-low.c: New file.
12054 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
12055 PT_DATA_ADDR for BFIN targets.
12056 * Makefile.in (SFILES): Add linux-bfin-low.c.
12057 (clean): Remove reg-bfin.c.
12058 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
12059 * README: Mention supported Blackfin targets.
12060
39ab222a
MF
120612010-12-23 Mike Frysinger <vapier@gentoo.org>
12062
12063 * .gitignore: New file.
12064
a1f2ce7d
MF
120652010-11-16 Mike Frysinger <vapier@gentoo.org>
12066
12067 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
12068
f474844c
JZ
120692010-10-22 Jie Zhang <jie@codesourcery.com>
12070
12071 * Makefile.in: Add FLAGS_TO_PASS variable.
12072 (install): Remove dependency of install-only and recursively
12073 invoke make for install-only.
12074
f1048712
DE
120752010-10-04 Doug Evans <dje@google.com>
12076
12077 * Makefile.in (uninstall): Use $(DESTDIR).
12078
b53a1623
PA
120792010-09-24 Pedro Alves <pedro@codesourcery.com>
12080
e6ee044d
PA
12081 PR gdb/11842
12082
b53a1623
PA
12083 * linux-x86-low.c (compat_siginfo_from_siginfo)
12084 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
12085 si_code is < 0. Check for si_code == SI_TIMER before checking for
12086 si_code < 0.
12087
fa1bd1e4
JB
120882010-09-13 Joel Brobecker <brobecker@adacore.com>
12089
12090 * lynx-i386-low.c: New file.
12091 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
12092
47fac8f8
JB
120932010-09-13 Joel Brobecker <brobecker@adacore.com>
12094
12095 * lynx-low.c (ptrace_request_to_str): Remove handling for
12096 request values that have been removed in LynxOS 5.x.
12097
1adfc54d
JB
120982010-09-13 Joel Brobecker <brobecker@adacore.com>
12099
12100 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
12101 <ptrace.h>
12102
c2a66c29
NS
121032010-09-09 Nathan Sidwell <nathan@codesourcery.com>
12104
12105 * configure.ac: Add --enable-inprocess-agent option.
12106 * configure: Rebuilt.
12107
32fcada3
YQ
121082010-09-06 Yao Qi <yao@codesourcery.com>
12109
12110 * linux-low.c (linux_kill): Remove unused variable.
12111 (linux_stabilize_threads): Likewise.
12112 * server.c (start_inferior): Likewise.
12113 (queue_stop_reply_callback): Likewise.
12114 * tracepoint.c (do_action_at_tracepoint): Likewise.
12115
0cccb683
YQ
121162010-09-06 Yao Qi <yao@codesourcery.com>
12117
12118 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
12119 on return.
12120
423ec54c
JK
121212010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
12122
12123 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
12124
12ac6819
PA
121252010-09-06 Pedro Alves <pedro@codesourcery.com>
12126
12127 * Makefile.in (install-only): Replace $IPA_DEPFILES with
12128 "$(IPA_DEPFILES)".
12129
8ed54b31
JB
121302010-09-01 Joel Brobecker <brobecker@adacore.com>
12131
12132 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
12133 gdbserver/lynx-ppc-low.c: New files.
12134 * Makefile.in (lynx_low_h): New variable.
12135 (lynx-low.o, lynx-ppc-low.o): New rules.
12136 * configure.ac: On LynxOS, link with -lnetinet.
12137 * configure.srv: Add handling of powerpc-*-lynxos* targets.
12138 * configure: regenerate.
12139
bb0116a4
JB
121402010-09-01 Joel Brobecker <brobecker@adacore.com>
12141
12142 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
12143 * configure.ac: Add check for vasprintf and vsnprintf.
12144 * configure, config.in: Regenerate.
12145 * server.h (vasprintf, vsnprintf): Add conditional declarations.
12146
a778ab81 121472010-09-01 Joel Brobecker <brobecker@adacore.com>
12148
12149 * gdbreplay.c: Move include of alloca.h up, next to include of
12150 malloc.h.
12151 * server.h: Add include of malloc.h.
12152 * mem-break.c: Remove include of malloc.h.
12153 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
12154
8b034a19 121552010-09-01 Joel Brobecker <brobecker@adacore.com>
12156
12157 * Makefile.in (memmem.o): Build with -Wno-error.
12158
121592010-09-01 Joel Brobecker <brobecker@adacore.com>
12160
12161 * utils.c (xsnprintf): Make non-static.
12162 * server.h: Add xsnprintf declaration.
12163 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
12164 replace calls to snprintf by calls to xsnprintf throughout.
12165
121662010-09-01 Joel Brobecker <brobecker@adacore.com>
12167
12168 * configure.ac: Add configure check for alloca.
12169 * configure, config.in: Regenerate.
12170 * server.h: Include alloca.h if it exists.
12171 * gdbreplay.c: Include alloca.h if it exists.
12172
1a981360
PA
121732010-08-28 Pedro Alves <pedro@codesourcery.com>
12174
12175 * linux-low.c (__SIGRTMIN): Define if not already defined.
12176 (linux_create_inferior): Check for __ANDROID__ rather than
12177 __SIGRTMIN.
12178 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
12179 are already deferred.
12180 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
12181 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
12182 stopped and already has a pending signal to report.
12183 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
12184 a pending signal to report or is moving out of a jump pad.
12185 (linux_init_signals): Check for __ANDROID__ rather than
12186 __SIGRTMIN.
12187
b4d51a55
PA
121882010-08-28 Pedro Alves <pedro@codesourcery.com>
12189
12190 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
12191 debug_threads check. Avoid a linear search when not doing debug
12192 output.
12193
ec48365d
PA
121942010-08-27 Pedro Alves <pedro@codesourcery.com>
12195
12196 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
12197 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
12198 (struct file_handler) <fd>: Change type to gdb_fildes_t.
12199 (process_event): Change local fd's type to gdb_fildes_t.
12200 (create_file_handler): Adjust prototype.
12201 (delete_file_handler): Adjust prototype.
12202 (handle_file_event): Adjust prototype. Use pfildes.
12203 (create_file_event): Adjsut prototype.
12204 * remote-utils.c (remote_desc, listen_desc): Change type to
12205 gdb_fildes_t.
12206 * server.h: New gdb_fildes_t typedef.
12207 [USE_WIN32API]: Include winsock2.h.
12208 (delete_file_handler, add_file_handler): Adjust prototypes.
12209 (pfildes): Declare.
12210 * utils.c (pfildes): New.
12211
854d88f0
PA
122122010-08-27 Pedro Alves <pedro@codesourcery.com>
12213
12214 * configure.ac (build_warnings): Add -Wno-char-subscripts.
12215 * configure: Regenerate.
12216
0146f85b
PA
122172010-08-27 Pedro Alves <pedro@codesourcery.com>
12218
12219 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
12220 (linux_done_accessing_memory): ... this.
12221 (linux_target_ops): Adjust.
12222 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
12223 * nto-low.c (nto_target_ops): Adjust comment.
12224 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
12225 * spu-low.c (spu_target_ops): Adjust comment.
12226 * target.h (target_ops): Rename unprepare_to_access_memory field
12227 to done_accessing_memory.
12228 (unprepare_to_access_memory): Rename to ...
12229 (done_accessing_memory): ... this.
12230
90d74c30
PA
122312010-08-26 Pedro Alves <pedro@codesourcery.com>
12232
12233 * linux-low.c (linux_prepare_to_access_memory): New.
12234 (linux_unprepare_to_access_memory): New.
12235 (linux_target_ops): Install them.
12236 * server.c (read_memory): Rename to ...
12237 (gdb_read_memory): ... this. Use
12238 prepare_to_access_memory/prepare_to_access_memory.
12239 (write_memory): Rename to ...
12240 (gdb_write_memory): ... this. Use
12241 prepare_to_access_memory/prepare_to_access_memory.
12242 (handle_search_memory_1): Adjust.
12243 (process_serial_event): Adjust.
12244 * target.h (struct target_ops): New fields
12245 prepare_to_access_memory and unprepare_to_access_memory.
12246 (prepare_to_access_memory, unprepare_to_access_memory): New.
12247 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
12248 prepare_to_access_memory/prepare_to_access_memory.
12249 * nto-low.c (nto_target_ops): Adjust.
12250 * spu-low.c (spu_target_ops): Adjust.
12251 * win32-low.c (win32_target_ops): Adjust.
12252
fd467969
PA
122532010-08-26 Pedro Alves <pedro@codesourcery.com>
12254
12255 * Makefile.in (WARN_CFLAGS): Get it from configure.
12256 (WERROR_CFLAGS): New.
12257 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
12258 * configure.ac: Introduce --enable-werror, which adds -Werror to
12259 the compiler command line. Enabled by default. Disable with
12260 --disable-werror. Add -Wdeclaration-after-statement
12261 Wpointer-arith and -Wformat-nonliteral to warning flags.
12262 * configure: Regenerate.
12263
331e2f5f
PA
122642010-08-26 Pedro Alves <pedro@codesourcery.com>
12265
12266 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
12267
e581f2b4
PA
122682010-08-26 Pedro Alves <pedro@codesourcery.com>
12269
12270 * gdbreplay.c (remote_error): New.
12271 (gdbchar): New.
12272 (expect): Use gdbchar. Check for error reading from GDB.
12273 Clarify sync error output.
12274 (play): Check for errors writing to GDB.
12275 * linux-low.c (sigchld_handler): Really ignore `write' errors.
12276 * remote-utils.c (getpkt): Check for errors writing to the remote
12277 descriptor.
12278
3c11dd79
PA
122792010-08-25 Pedro Alves <pedro@codesourcery.com>
12280
12281 * linux-low.c (linux_wait_1): Move non-debugging code out of
12282 `debug_threads' control.
12283
d20a8ad9
PA
122842010-08-25 Pedro Alves <pedro@codesourcery.com>
12285
12286 * linux-low.c (linux_wait_1): Don't set last_status here.
12287 * server.c (push_event, queue_stop_reply_callback): Assert we're
12288 not pushing a TARGET_WAITKIND_IGNORE event.
12289 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
12290 (myresume, handle_target_event): Set the thread's last_resume_kind
12291 and last_status from the target returned status.
12292
964e4306
PA
122932010-08-25 Pedro Alves <pedro@codesourcery.com>
12294
12295 PR threads/10729
12296
12297 * linux-x86-low.c (update_debug_registers_callback): New.
12298 (i386_dr_low_set_addr): Use it.
12299 (i386_dr_low_get_addr): New.
12300 (i386_dr_low_set_control): Use update_debug_registers_callback.
12301 (i386_dr_low_get_control): New.
12302 (i386_dr_low_get_status): Adjust.
12303 * linux-low.c (linux_stop_lwp): New.
12304 * linux-low.h (linux_stop_lwp): Declare.
12305
12306 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
12307 argument instead of a i386_debug_reg_state.
12308 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
12309 a i386_debug_reg_state.
12310 (i386_insert_aligned_watchpoint): Adjust.
12311 (i386_remove_aligned_watchpoint): Adjust.
12312 (i386_low_stopped_data_address): Read the debug registers from the
12313 inferior instead of from the mirrors.
12314 * i386-low.h (struct i386_debug_reg_state): Extend comment.
12315 (i386_dr_low_get_addr): Declare.
12316 (i386_dr_low_get_control): Declare.
12317 (i386_dr_low_get_status): Change prototype.
12318
12319 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
12320 (i386_dr_low_get_addr): New.
12321 (i386_dr_low_get_control): New.
12322 (i386_dr_low_get_status): Adjust prototype. Return
12323 dr_status_mirror.
12324 (i386_initial_stuff): Clear dr_status_mirror and
12325 dr_control_mirror.
12326 (i386_get_thread_context): Adjust.
12327 (i386_set_thread_context): Adjust.
12328 (i386_thread_added): Adjust.
12329
5f21a75b
PA
123302010-08-24 Pedro Alves <pedro@codesourcery.com>
12331
12332 * linux-low.h (linux_thread_area): Delete declaration.
12333
3e4c1235
TS
123342010-08-11 Thomas Schwinge <thomas@codesourcery.com>
12335
12336 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
12337 after its termination.
12338
1971b033
PA
123392010-08-09 Pedro Alves <pedro@codesourcery.com>
12340
12341 * linux-low.c (gdb_wants_lwp_stopped): Delete.
12342 (gdb_wants_all_stopped): Delete.
12343 (linux_wait_1): Don't call them.
12344 * server.c (handle_v_cont): Tag all threads as want-stopped.
12345 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
12346 stopped as "client-wants-stopped".
12347
310444ac
PA
123482010-07-31 Pedro Alves <pedro@codesourcery.com>
12349
12350 * Makefile.in (signals_h): New.
12351 (server_h): Depend on it.
12352 (server.o): Don't depend on $(signals_def).
12353 (signals.o): Depend on $(signals_def).
12354
a19cae16
JK
123552010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
12356
12357 * Makefile.in (signals_def): New.
12358 (server_h): Append include/gdb/signals.h and signals_def.
12359 (server.o): Append signals_def.
12360
30d50328
JK
123612010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
12362
12363 * server.c (handle_target_event): Use target_signal_to_host for
12364 resume_info.sig initialization.
12365 * target.h (struct thread_resume) <sig>: New comment.
12366
5c3216e2
OS
123672010-07-20 Ozkan Sezer <sezeroz@gmail.com>
12368
c6f46ca0
OS
12369 * server.c (handle_query): strcpy() the returned string from paddress()
12370 instead of sprintf().
5c3216e2
OS
12371 * utils.c (paddress): Return phex_nz().
12372
6bd31874
JB
123732010-07-07 Joel Brobecker <brobecker@adacore.com>
12374
12375 * server.c (handle_v_cont): Call mourn_inferior if process
12376 just exited.
12377 (myresume): Likewise.
12378
0fb4aa4b
PA
123792010-07-01 Pedro Alves <pedro@codesourcery.com>
12380
12381 Static tracepoints, and integration with UST.
12382
12383 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
12384 * mem-break.c (uninsert_all_breakpoints)
12385 (reinsert_all_breakpoints): New.
12386 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
12387 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
12388 (gdb_agent_ust_loaded, helper_thread_id)
12389 (gdb_agent_helper_thread_id): New macros.
12390 (struct ipa_sym_addresses): Add addr_ust_loaded,
12391 addr_helper_thread_id, addr_cmd_buf.
12392 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
12393 (in_process_agent_loaded_ust): New.
12394 (write_e_ust_not_loaded): New.
12395 (maybe_write_ipa_ust_not_loaded): New.
12396 (struct collect_static_trace_data_action): New.
12397 (enum tracepoint_type) <static_tracepoint>: New.
12398 (struct tracepoint) <handle>: Mention static tracepoints.
12399 (struct static_tracepoint_ctx): New.
12400 (CMD_BUF_SIZE): New.
12401 (add_tracepoint_action): Handle static tracepoint actions.
12402 (unprobe_marker_at): New.
12403 (clear_installed_tracepoints): Handle static tracepoints.
12404 (cmd_qtdp): Handle static tracepoints.
12405 (probe_marker_at): New.
12406 (cmd_qtstart): Handle static tracepoints.
12407 (response_tracepoint): Handle static tracepoints.
12408 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
12409 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
12410 (get_context_regcache): Handle static tracepoints.
12411 (do_action_at_tracepoint): Handle static tracepoint actions.
12412 (traceframe_find_block_type): Handle static trace data blocks.
12413 (traceframe_read_sdata): New.
12414 (download_tracepoints): Download static tracepoint actions.
12415 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
12416 (GDB_PROBE_NAME): New.
12417 (ust_ops): New.
12418 (GET_UST_SYM): New.
12419 (USTF): New.
12420 (dlsym_ust): New.
12421 (ust_marker_to_static_tracepoint): New.
12422 (gdb_probe): New.
12423 (collect_ust_data_at_tracepoint): New.
12424 (gdb_ust_probe): New.
12425 (UNIX_PATH_MAX, SOCK_DIR): New.
12426 (gdb_ust_connect_sync_socket): New.
12427 (resume_thread, stop_thread): New.
12428 (run_inferior_command): New.
12429 (init_named_socket): New.
12430 (gdb_ust_socket_init): New.
12431 (cstr_to_hexstr): New.
12432 (next_st): New.
12433 (first_marker, next_marker): New.
12434 (response_ust_marker): New.
12435 (cmd_qtfstm, cmd_qtsstm): New.
12436 (unprobe_marker_at, probe_marker_at): New.
12437 (cmd_qtstmat, gdb_ust_thread): New.
12438 (gdb_ust_init): New.
12439 (initialize_tracepoint_ftlib): Call gdb_ust_init.
12440 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
12441 (ST_REGENTRY): New.
12442 (x86_64_st_collect_regmap): New.
12443 (X86_64_NUM_ST_COLLECT_GREGS): New.
12444 (AMD64_RIP_REGNUM): New.
12445 (supply_static_tracepoint_registers): New.
12446 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
12447 (ST_REGENTRY): New.
12448 (i386_st_collect_regmap): New.
12449 (i386_NUM_ST_COLLECT_GREGS): New.
12450 (supply_static_tracepoint_registers): New.
12451 * server.c (handle_query): Handle qXfer:statictrace:read.
12452 <qSupported>: Report support for StaticTracepoints, and
12453 qXfer:statictrace:read features.
12454 * server.h (traceframe_read_sdata)
12455 (supply_static_tracepoint_registers): Declare.
12456 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
12457 (unpack_varlen_hex): Include in IPA build.
12458 * Makefile.in (ustlibs, ustinc): New.
12459 (IPA_OBJS): Add remote-utils-ipa.o.
12460 ($(IPA_LIB)): Link -ldl and -lpthread.
12461 (UST_CFLAGS): New.
12462 (IPAGENT_CFLAGS): Add UST_CFLAGS.
12463 * config.in, configure: Regenerate.
12464
9e4344e5
PA
124652010-06-20 Ian Lance Taylor <iant@google.com>
12466 Pedro Alves <pedro@codesourcery.com>
12467
12468 * linux-x86-low.c (always_true): Delete.
12469 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
12470 trying to fool the compiler with always_true.
12471
c6beb2cb
PA
124722010-06-20 Pedro Alves <pedro@codesourcery.com>
12473
12474 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
12475 conditions in gdbserver.
12476
d2ed6730
UW
124772010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
12478
12479 * spu-low.c (spu_read_memory): Wrap around local store limit.
12480 (spu_write_memory): Likewise.
12481
4e29fb54
PA
124822010-06-15 Pedro Alves <pedro@codesourcery.com>
12483
12484 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
12485 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
12486 LONGEST uses.
12487 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
12488 uses.
12489 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
12490 uses with LONGEST uses.
12491
6a271cae
PA
124922010-06-14 Stan Shebs <stan@codesourcery.com>
12493 Pedro Alves <pedro@codesourcery.com>
12494
12495 Bytecode compiler.
12496
12497 * linux-x86-low.c: Include limits.h.
12498 (add_insns): New.
12499 (always_true): New.
12500 (EMIT_ASM): New.
12501 (EMIT_ASM32): New.
12502 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
12503 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
12504 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
12505 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
12506 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
12507 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
12508 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
12509 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
12510 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
12511 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
12512 (amd64_emit_void_call_2): New.
12513 (amd64_emit_ops): New.
12514 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
12515 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
12516 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
12517 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
12518 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
12519 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
12520 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
12521 (i386_emit_call, i386_emit_reg, i386_emit_pop)
12522 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
12523 (i386_emit_stack_adjust, i386_emit_int_call_1)
12524 (i386_emit_void_call_2): New.
12525 (i386_emit_ops): New.
12526 (x86_emit_ops): New.
12527 (the_low_target): Install x86_emit_ops.
12528 * server.h (struct emit_ops): New.
12529 (get_raw_reg_func_addr): Declare.
12530 (current_insn_ptr, emit_error): Declare.
12531 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
12532 (set_trace_state_variable_value): New defines.
12533 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
12534 addr_get_trace_state_variable_value and
12535 addr_set_trace_state_variable_value.
12536 (symbol_list): New fields for get_raw_reg,
12537 get_trace_state_variable_value and set_trace_state_variable_value.
12538 (condfn): New typedef.
12539 (struct tracepoint): New field `compiled_cond'.
12540 (do_action_at_tracepoint): Clear compiled_cond.
12541 (get_trace_state_variable_value, set_trace_state_variable_value):
12542 Export in the IPA.
12543 (condition_true_at_tracepoint): If there's a compiled condition,
12544 run that.
12545 (current_insn_ptr, emit_error): New globals.
12546 (struct bytecode_address): New.
12547 (get_raw_reg_func_addr): New.
12548 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
12549 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
12550 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
12551 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
12552 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
12553 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
12554 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
12555 (compile_tracepoint_condition, compile_bytecodes): New.
12556 * target.h (emit_ops): Forward declare.
12557 (struct target_ops): New field emit_ops.
12558 (target_emit_ops): New.
12559 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
12560 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
12561 * linux-low.c (linux_emit_ops): New.
12562 (linux_target_ops): Install it.
12563 * linux-low.h (struct linux_target_ops): New field emit_ops.
12564
92b72907
UW
125652010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
12566
12567 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
12568 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
12569
fa593d66
PA
125702010-06-01 Pedro Alves <pedro@codesourcery.com>
12571 Stan Shebs <stan@codesourcery.com>
12572
12573 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
12574 (all): Depend on $(extra_libraries).
12575 (install-only): Install the IPA.
12576 (IPA_OBJS, IPA_LIB): New.
12577 (clean): Remove the IPA lib.
12578 (IPAGENT_CFLAGS): New.
12579 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
12580 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
12581 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
12582 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
12583 * configure.ac: Check for atomic builtins support in the compiler.
12584 (IPA_DEPFILES, extra_libraries): Define.
12585 * configure.srv (ipa_obj): Add description.
12586 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
12587 (i[34567]86-*-linux*): Set ipa_obj.
12588 (x86_64-*-linux*): Set ipa_obj.
12589 * linux-low.c (stabilizing_threads): New.
12590 (supports_fast_tracepoints): New.
12591 (linux_detach): Stabilize threads before detaching.
12592 (handle_tracepoints): Handle internal tracing breakpoints. Assert
12593 the lwp is either not stabilizing, or is moving out of a jump pad.
12594 (linux_fast_tracepoint_collecting): New.
12595 (maybe_move_out_of_jump_pad): New.
12596 (enqueue_one_deferred_signal): New.
12597 (dequeue_one_deferred_signal): New.
12598 (linux_wait_for_event_1): If moving out of a jump pad, defer
12599 pending signals to later.
12600 (linux_stabilize_threads): New.
12601 (linux_wait_1): Check if threads need moving out of jump pads, and
12602 do it if so.
12603 (stuck_in_jump_pad_callback): New.
12604 (move_out_of_jump_pad_callback): New.
12605 (lwp_running): New.
12606 (linux_resume_one_lwp): Handle moving out of jump pads.
12607 (linux_set_resume_request): Dequeue deferred signals.
12608 (need_step_over_p): Also step over fast tracepoint jumps.
12609 (start_step_over): Also uninsert fast tracepoint jumps.
12610 (finish_step_over): Also reinsert fast tracepoint jumps.
12611 (linux_install_fast_tracepoint_jump): New.
12612 (linux_target_ops): Install linux_stabilize_threads and
12613 linux_install_fast_tracepoint_jump_pad.
12614 * linux-low.h (linux_target_ops) <get_thread_area,
12615 install_fast_tracepoint_jump_pad>: New fields.
12616 (struct lwp_info) <collecting_fast_tracepoint,
12617 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
12618 (linux_get_thread_area): Declare.
12619 * linux-x86-low.c (jump_insn): New.
12620 (x86_get_thread_area): New.
12621 (append_insns): New.
12622 (push_opcode): New.
12623 (amd64_install_fast_tracepoint_jump_pad): New.
12624 (i386_install_fast_tracepoint_jump_pad): New.
12625 (x86_install_fast_tracepoint_jump_pad): New.
12626 (the_low_target): Install x86_get_thread_area and
12627 x86_install_fast_tracepoint_jump_pad.
12628 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
12629 (struct fast_tracepoint_jump): New.
12630 (fast_tracepoint_jump_insn): New.
12631 (fast_tracepoint_jump_shadow): New.
12632 (find_fast_tracepoint_jump_at): New.
12633 (fast_tracepoint_jump_here): New.
12634 (delete_fast_tracepoint_jump): New.
12635 (set_fast_tracepoint_jump): New.
12636 (uninsert_fast_tracepoint_jumps_at): New.
12637 (reinsert_fast_tracepoint_jumps_at): New.
12638 (set_breakpoint_at): Use write_inferior_memory.
12639 (uninsert_raw_breakpoint): Use write_inferior_memory.
12640 (check_mem_read): Mask out fast tracepoint jumps.
12641 (check_mem_write): Mask out fast tracepoint jumps.
12642 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
12643 (set_fast_tracepoint_jump): Declare.
12644 (delete_fast_tracepoint_jump)
12645 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
12646 (reinsert_fast_tracepoint_jumps_at): Declare.
12647 * regcache.c: Don't compile many functions when building the
12648 in-process agent library.
12649 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
12650 the register buffer in the heap.
12651 (free_register_cache): If the register buffer isn't owned by the
12652 regcache, don't free it.
12653 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
12654 pre-existing register caches.
12655 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
12656 type.
12657 (convert_ascii_to_int): : Constify `from' parameter type.
12658 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
12659 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
12660 the needed buffer in-place.
12661 (relocate_instruction): New.
12662 * server.c (handle_query) <qSymbols>: If the target supports
12663 tracepoints, give it a chance of looking up symbols. Report
12664 support for fast tracepoints.
12665 (handle_status): Stabilize threads.
12666 (process_serial_event): Adjust.
12667 * server.h (struct fast_tracepoint_jump): Forward declare.
12668 (struct process_info) <fast_tracepoint_jumps>: New field.
12669 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
12670 (decode_X_packet, decode_M_packet): Adjust.
12671 (relocate_instruction): Declare.
12672 (in_process_agent_loaded): Declare.
12673 (tracepoint_look_up_symbols): Declare.
12674 (struct fast_tpoint_collect_status): Declare.
12675 (fast_tracepoint_collecting): Declare.
12676 (force_unlock_trace_buffer): Declare.
12677 (handle_tracepoint_bkpts): Declare.
12678 (initialize_low_tracepoint)
12679 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
12680 * target.h (struct target_ops) <stabilize_threads,
12681 install_fast_tracepoint_jump_pad>: New fields.
12682 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
12683 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
12684 [HAVE_STDINT_H]: Include stdint.h.
12685 (trace_debug_1): Rename to ...
12686 (trace_vdebug): ... this.
12687 (trace_debug): Rename to ...
12688 (trace_debug_1): ... this. Add `level' parameter.
12689 (trace_debug): New.
12690 (ATTR_USED, ATTR_NOINLINE): New.
12691 (IP_AGENT_EXPORT): New.
12692 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12693 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
12694 (about_to_request_buffer_space, trace_buffer_is_full)
12695 (stopping_tracepoint, expr_eval_result, error_tracepoint)
12696 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
12697 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
12698 (traceframe_write_count, traceframes_created)
12699 (trace_state_variables)
12700 New renaming defines.
12701 (struct ipa_sym_addresses): New.
12702 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
12703 (symbol_list): New.
12704 (ipa_sym_addrs): New.
12705 (all_tracepoint_symbols_looked_up): New.
12706 (in_process_agent_loaded): New.
12707 (write_e_ipa_not_loaded): New.
12708 (maybe_write_ipa_not_loaded): New.
12709 (tracepoint_look_up_symbols): New.
12710 (debug_threads) [IN_PROCESS_AGENT]: New.
12711 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
12712 (UNKNOWN_SIDE_EFFECTS): New.
12713 (stop_tracing): New.
12714 (flush_trace_buffer): New.
12715 (stop_tracing_bkpt): New.
12716 (flush_trace_buffer_bkpt): New.
12717 (read_inferior_integer): New.
12718 (read_inferior_uinteger): New.
12719 (read_inferior_data_pointer): New.
12720 (write_inferior_data_pointer): New.
12721 (write_inferior_integer): New.
12722 (write_inferior_uinteger): New.
12723 (struct collect_static_trace_data_action): Delete.
12724 (enum tracepoint_type): New.
12725 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
12726 <actions_str, step_actions, step_actions_str>: Only include in
12727 GDBserver.
fa593d66
PA
12728 <orig_size, obj_addr_on_target, adjusted_insn_addr>
12729 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
12730 (tracepoints): Use IP_AGENT_EXPORT.
12731 (last_tracepoint): Don't include in the IPA.
12732 (stopping_tracepoint): Use IP_AGENT_EXPORT.
12733 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
12734 (alloced_trace_state_variables): New.
12735 (trace_state_variables): Use IP_AGENT_EXPORT.
12736 (traceframe_t): Delete unused variable.
12737 (circular_trace_buffer): Don't include in the IPA.
12738 (trace_buffer_start): Delete.
12739 (struct trace_buffer_control): New.
12740 (trace_buffer_free): Delete.
12741 (struct ipa_trace_buffer_control): New.
12742 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
12743 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
12744 New.
12745 (trace_buffer_ctrl): New.
12746 (TRACE_BUFFER_CTRL_CURR): New.
12747 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
12748 Reimplement as macros.
12749 (trace_buffer_wrap): Delete.
12750 (traceframe_write_count, traceframe_read_count)
12751 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
12752 (struct tracepoint_hit_ctx) <type>: New field.
12753 (struct fast_tracepoint_ctx): New.
12754 (memory_barrier): New.
12755 (cmpxchg): New.
12756 (record_tracepoint_error): Update atomically in the IPA.
12757 (clear_inferior_trace_buffer): New.
12758 (about_to_request_buffer_space): New.
12759 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
12760 updating the same buffer.
12761 (add_tracepoint): Default the tracepoint's type to trap
12762 tracepoint, and orig_size to -1.
12763 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
12764 internal variables.
12765 (create_trace_state_variable): New parameter `gdb'. Handle it.
12766 (clear_installed_tracepoints): Clear fast tracepoint jumps.
12767 (cmd_qtdp): Handle fast tracepoints.
12768 (cmd_qtdv): Adjust.
12769 (max_jump_pad_size): New.
12770 (gdb_jump_pad_head): New.
12771 (get_jump_space_head): New.
12772 (claim_jump_space): New.
12773 (sort_tracepoints): New.
12774 (MAX_JUMP_SIZE): New.
12775 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
12776 IPA.
12777 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
12778 support. Upload fast traceframes, and delete internal IPA
12779 breakpoints.
12780 (stop_tracing_handler): New.
12781 (flush_trace_buffer_handler): New.
12782 (cmd_qtstop): Upload fast tracepoints.
12783 (response_tracepoint): Handle fast tracepoints.
12784 (tracepoint_finished_step): Upload fast traceframes. Set the
12785 tracepoint hit context's tracepoint type.
12786 (handle_tracepoint_bkpts): New.
12787 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
12788 type. Add comment about fast tracepoints.
12789 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
12790 non-existing action_str field.
12791 (get_context_regcache): Handle fast tracepoints.
12792 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
12793 to the regcache.
12794 (fast_tracepoint_from_jump_pad_address): New.
12795 (fast_tracepoint_from_ipa_tpoint_address): New.
12796 (collecting_t): New.
12797 (force_unlock_trace_buffer): New.
12798 (fast_tracepoint_collecting): New.
12799 (collecting): New.
12800 (gdb_collect): New.
12801 (write_inferior_data_ptr): New.
12802 (target_tp_heap): New.
12803 (target_malloc): New.
12804 (download_agent_expr): New.
12805 (UALIGN): New.
12806 (download_tracepoints): New.
12807 (download_trace_state_variables): New.
12808 (upload_fast_traceframes): New.
12809 (IPA_FIRST_TRACEFRAME): New.
12810 (IPA_NEXT_TRACEFRAME_1): New.
12811 (IPA_NEXT_TRACEFRAME): New.
12812 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
12813 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
12814 (gdb_jump_pad_buffer_end): New.
12815 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
12816 (initialize_tracepoint): Adjust.
12817 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
12818 buffer. Initialize the low module.
12819 * utils.c (PREFIX, TOOLNAME): New.
12820 (malloc_failure): Use PREFIX.
12821 (error): In the IPA, an error causes an exit.
12822 (fatal, warning): Use PREFIX.
12823 (internal_error): Use TOOLNAME.
12824 (NUMCELLS): Increase to 10.
12825 * configure, config.in: Regenerate.
12826
d149dd1d
PA
128272010-06-01 Pedro Alves <pedro@codesourcery.com>
12828
12829 * server.c (handle_query) <qSupported>: Do two passes over the
12830 qSupported string to avoid nesting strtok.
12831
f6528abd
JK
128322010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12833
12834 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
12835 (CDEPS): New.
12836 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
12837 -Wl,--dynamic-list.
12838 * configure: Regenerate.
12839 * proc-service.list: New.
12840
ca2a87a0
JK
128412010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12842
12843 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
12844 New comment.
12845
363a6e9f
OS
128462010-05-26 Ozkan Sezer <sezeroz@gmail.com>
12847
12848 * gdbreplay.c (remote_open): Check error return from socket() call by
12849 its equality to -1 not by it being negative.
12850 * remote-utils.c (remote_open): Likewise.
12851
d23b6cb1
PA
128522010-05-23 Pedro Alves <pedro@codesourcery.com>
12853
12854 * config.h: Regenerate.
12855
28d3cf85
MK
128562010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
12857
12858 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
12859 doesn't provide PTRACE_GET_THREAD_AREA.
12860
fea36a59
MK
128612010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
12862
12863 * linux-m68k-low.c: Include <asm/ptrace.h>
12864 (ps_get_thread_area): Implement.
12865
24b066ba
DE
128662010-05-03 Doug Evans <dje@google.com>
12867
12868 * event-loop.c (struct callback_event): New struct.
12869 (callback_list): New global.
12870 (append_callback_event, delete_callback_event): New functions.
12871 (process_callback): New function.
12872 (start_event_loop): Call it.
12873 * remote-utils.c (NOT_SCHEDULED): Define.
12874 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
12875 moved out of readchar.
12876 (readchar): Rewrite. Call reschedule before returning.
12877 (reset_readchar): New function.
12878 (remote_close): Call it.
12879 (process_remaining, reschedule): New functions.
12880 * server.h (callback_handler_func): New typedef.
12881 (append_callback_event, delete_callback_event): Declare.
12882
9836d6ea
PA
128832010-05-03 Pedro Alves <pedro@codesourcery.com>
12884
12885 * proc-service.c (ps_pglobal_lookup): Use
12886 thread_db_look_up_one_symbol.
12887 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
12888 parameter. Use it instead of all_symbols_looked_up.
12889 * server.h (struct process_info) <all_symbols_looked_up>: Delete
12890 field.
12891 (all_symbols_looked_up): Don't declare.
12892 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
12893 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
12894 field.
12895 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
12896 Set all_symbols_looked_up here.
12897 (thread_db_look_up_one_symbol): New.
12898 (thread_db_get_tls_address): Adjust.
12899 (thread_db_load_search, try_thread_db_load_1): Always allocate the
12900 thread_db object on the heap, and tentatively set it in the
12901 process structure.
12902 (thread_db_init): Don't set all_symbols_looked_up here.
12903 * linux-low.h (thread_db_look_up_one_symbol): Declare.
12904
7984d532
PA
129052010-05-03 Pedro Alves <pedro@codesourcery.com>
12906
12907 * linux-low.c (linux_kill, linux_detach): Adjust.
12908 (status_pending_p_callback): Remove redundant statement. Check
12909 for !TARGET_WAITIKIND_IGNORE, instead of
12910 TARGET_WAITKIND_STOPPED.
12911 (handle_tracepoints): Make sure LWP is locked. Adjust.
12912 (linux_wait_for_event_1): Adjust.
12913 (linux_cancel_breakpoints): New.
12914 (unsuspend_one_lwp): New.
12915 (unsuspend_all_lwps): New.
12916 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
12917 (send_sigstop_callback): Change return type to int, add new
12918 `except' parameter and handle it.
12919 (suspend_and_send_sigstop_callback): New.
12920 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
12921 pass them down. If SUSPEND, also increment the lwp's suspend
12922 count.
12923 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
12924 (need_step_over_p): Don't consider suspended LWPs.
12925 (start_step_over): Adjust.
12926 (proceed_one_lwp): Change return type to int, add new `except'
12927 parameter and handle it.
12928 (unsuspend_and_proceed_one_lwp): New.
12929 (proceed_all_lwps): Use find_inferior instead of
12930 for_each_inferior.
12931 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
12932 also decrement the suspend count of LWPs. Pass `except' down,
12933 instead of hacking its suspend count.
12934 (linux_pause_all): Add `freeze' parameter. Adjust.
12935 (linux_unpause_all): New.
12936 (linux_target_ops): Install linux_unpause_all.
12937 * server.c (handle_status): Adjust.
12938 * target.h (struct target_ops): New fields `unpause_all' and
12939 `cancel_breakpoints'. Add new parameter to `pause_all'.
12940 (pause_all): Add new `freeze' parameter.
12941 (unpause_all): New.
12942 (cancel_breakpoints): New.
12943 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
12944 cancel breakpoints.
12945 (cmd_qtstart): Pause threads.
12946 (stop_tracing): Pause threads, and cancel breakpoints.
12947 * win32-low.c (win32_target_ops): Adjust.
12948
e471f25b
PA
129492010-05-03 Pedro Alves <pedro@codesourcery.com>
12950
12951 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
12952 the inferior right away from here...
12953 (linux_wait_1): ... to here, and adjust to check the thread's
12954 last_resume_kind instead of the lwp's step or stop_expected flags.
12955
1915ef4f
PA
129562010-05-02 Pedro Alves <pedro@codesourcery.com>
12957
12958 * README: Use consistent `GDB' and `GDBserver' spellings.
12959
f9e39928
PA
129602010-05-02 Pedro Alves <pedro@codesourcery.com>
12961
12962 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
12963 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
12964 (linux_detach_one_lwp): Assume the lwp is stopped.
12965 (any_thread_of): Delete.
12966 (linux_detach): Stop all lwps here. Don't blindly delete all
12967 breakpoints.
12968 (delete_lwp_callback): New.
12969 (linux_mourn): Delete all lwps of the process that is gone.
12970 (linux_wait_1): Don't delete the last lwp of the process here.
12971 * mem-break.h (mark_breakpoints_out): Declare.
12972 * mem-break.c (mark_breakpoints_out): New.
12973 (free_all_breakpoints): Use it.
12974 * server.c (handle_target_event): If the process is gone, mark
12975 breakpoints out.
12976 * thread-db.c (struct thread_db) <create_bp>: New field.
12977 (thread_db_enable_reporting): Fix prototype. Store a thread event
12978 breakpoint reference in the thread_db struct.
12979 (thread_db_load_search): Clear the thread_db object.
12980 (try_thread_db_load_1): Ditto.
12981 (switch_to_process): New.
12982 (disable_thread_event_reporting): Use it.
12983 (remove_thread_event_breakpoints): New.
12984 (thread_db_detach, thread_db_mourn): Use it.
12985
1e7fc18c
PA
129862010-05-01 Pedro Alves <pedro@codesourcery.com>
12987
12988 * linux-low.c (linux_enable_event_reporting): New.
12989 (linux_wait_for_event_1, handle_extended_wait): Use it.
12990
02fc4de7
PA
129912010-04-30 Pedro Alves <pedro@codesourcery.com>
12992
12993 * linux-low.c (linux_kill_one_lwp, linux_kill)
12994 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
12995 (send_sigstop): Take an lwp_info as parameter instead. Queue a
12996 SIGSTOP even if the LWP is stopped.
12997 (send_sigstop_callback): New.
12998 (stop_all_lwps): Use send_sigstop_callback instead.
12999 (linux_resume_one_thread): Adjust.
13000 (proceed_one_lwp): Still proceed an LWP that the client has
13001 requested to stop, if we haven't reported it as stopped yet. Make
13002 sure that LWPs the client want stopped, have a pending SIGSTOP.
13003
bc3b5632
DE
130042010-04-26 Doug Evans <dje@google.com>
13005
ae1ada35
DE
13006 * server.c (handle_general_set): Make static.
13007
bc3b5632
DE
13008 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
13009 Print received char after testing for error/eof instead of before.
13010 (input_interrupt): Tweak comment.
13011
65730243
DE
130122010-04-23 Doug Evans <dje@google.com>
13013
13014 * server.c (start_inferior): Print inferior argv if --debug.
13015
a8ae7dc0
AR
130162010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
13017
13018 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
13019 * nto-x86-low.c: Include server.h
13020
1c07cc19
PM
130212010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
13022
13023 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
13024 be consistent with other sources of this directory.
13025 (init_registers_amd64): Correct name of source file of this function
13026 in the comment.
13027
e0a61e09
PM
130282010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13029
13030 * configure.srv (x86_64-*-mingw*): New configuration for Windows
13031 64-bit executables.
13032
54709339
PM
130332010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13034
13035 * win32-i386-low.c: Add 64-bit support.
13036 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
13037 (init_registers_amd64): Declare.
13038 (mappings): Add 64-bit version of array.
13039 (init_windows_x86): New function.
13040 (the_low_target): Change init_arch field to init_windows_x86.
13041
e8f0053d
PM
130422010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13043
13044 * win32-low.c: Adapt to support also 64-bit architecture.
13045 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
13046 (get_image_name): Use SIZE_T type for local variable `done'.
13047 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
13048 (toolhelp_get_dll_name): Idem.
13049 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
13050 Use uintptr_t typecast to avoid warning.
13051 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
13052 (handle_exception): Use phex_nz to avoid warning.
13053 (win32_wait): Remove unused local variable `process'.
13054
c481e77e
PM
130552010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13056
13057 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
13058 `amd64-avx.o'.
13059
12ea4b69
PM
130602010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
13061
13062 * configure.ac: Use `ws2_32' library for srv_mingw.
13063 * configure: Regenerate.
13064 * gdbreplay.c: Include winsock2.h instead of winsock.h.
13065 * remote-utils.c: Likewise.
13066
f6d1620c
L
130672010-04-17 H.J. Lu <hongjiu.lu@intel.com>
13068
13069 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
13070 if __x86_64__ is defined.
13071
8e642873
PM
130722010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
13073
13074 * configure: Regenerate.
13075
711e434b
PM
130762010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
13077
13078 * server.c (handle_query): Handle 'qGetTIBAddr' query.
13079 * target.h (target_ops): New get_tib_address field.
13080 * win32-low.h (win32_thread_info): Add thread_local_base field.
13081 * win32-low.c (child_add_thread): Add tlb argument.
13082 Set thread_local_base field to TLB.
13083 (get_child_debug_event): Adapt to child_add_thread change.
13084 (win32_get_tib_address): New function.
13085 (win32_target_ops): Set get_tib_address field to
13086 win32_get_tib_address.
13087 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
13088
505106cd
PA
130892010-04-12 Pedro Alves <pedro@codesourcery.com>
13090
505106cd
PA
13091 * linux-low.c (linux_mourn): Also remove the process.
13092 * server.c (handle_target_event): Don't remove the process here.
13093 * nto-low.c (nto_mourn): New.
13094 (nto_target_ops): Install it.
13095 * spu-low.c (spu_mourn): New.
13096 (spu_target_ops): Install it.
13097 * win32-low.c (win32_mourn): New.
13098 (win32_target_ops): Install it.
13099
e8470a06
PA
131002010-04-12 Pedro Alves <pedro@codesourcery.com>
13101
13102 * server.h (buffer_xml_printf): Remove redundant `;'.
13103
45ba0d02
PA
131042010-04-12 Pedro Alves <pedro@codesourcery.com>
13105
13106 * regcache.c (set_register_cache): Invalidate regcaches before
13107 changing the register cache layout.
13108 (regcache_invalidate_one): Allow a NULL regcache.
13109 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
13110 regcaches before changing the register cache layout or the target
13111 regsets.
13112
59e04013
L
131132010-04-12 H.J. Lu <hongjiu.lu@intel.com>
13114
13115 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
13116 variable warning on Linux/x86-64.
13117
8336d594
PA
131182010-04-11 Pedro Alves <pedro@codesourcery.com>
13119
13120 GDBserver disconnected tracing support.
13121
13122 * linux-low.c (linux_remove_process): Delete.
13123 (add_lwp): Don't set last_resume_kind here.
13124 (linux_kill): Use `mourn'.
13125 (linux_detach): Use `thread_db_detach', and `mourn'.
13126 (linux_mourn): New.
13127 (linux_attach_lwp_1): Adjust comment.
13128 (linux_attach): last_resume_kind moved the thread_info; adjust.
13129 (status_pending_p_callback): Adjust.
13130 (linux_wait_for_event_1): Adjust.
13131 (count_events_callback, select_singlestep_lwp_callback)
13132 (select_event_lwp_callback, cancel_breakpoints_callback)
13133 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
13134 (proceed_one_lwp): Adjust.
13135 (linux_async): Add debug output.
13136 (linux_thread_stopped): New.
13137 (linux_pause_all): New.
13138 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
13139 linux_pause_all.
13140 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
13141 (thread_db_free): Delete declaration.
13142 (thread_db_detach, thread_db_mourn): Declare.
13143 * thread-db.c (thread_db_init): Use thread_db_mourn.
13144 (thread_db_free): Delete, split in two.
13145 (disable_thread_event_reporting): New.
13146 (thread_db_detach): New.
13147 (thread_db_mourn): New.
13148
13149 * server.h (struct thread_info) <last_resume_kind>: New field.
13150 <attached>: Add comment.
13151 <gdb_detached>: New field.
13152 (handler_func): Change return type to int.
13153 (handle_serial_event, handle_target_event): Ditto.
13154 (gdb_connected): Declare.
13155 (tracing): Delete.
13156 (disconnected_tracing): Declare.
13157 (stop_tracing): Declare.
13158
13159 * server.c (handle_query) <qSupported>: Report support for
13160 disconnected tracing.
13161 (queue_stop_reply_callback): Account for running threads.
13162 (gdb_wants_thread_stopped): New.
13163 (gdb_wants_all_threads_stopped): New.
13164 (gdb_reattached_process): New.
13165 (handle_status): Clear the `gdb_detached' flag of all processes.
13166 In all-stop, stop all threads.
13167 (main): Be sure to leave tfind mode. Handle disconnected tracing.
13168 (process_serial_event): If the remote connection breaks, or if an
13169 exit was forced with "monitor exit", force an event loop exit.
13170 Handle disconnected tracing on detach.
13171 (handle_serial_event): Adjust.
13172 (handle_target_event): If GDB isn't connected, forward events back
13173 to the inferior, unless the last process exited, in which case,
13174 exit gdbserver. Adjust interface.
13175
13176 * remote-utils.c (remote_open): Don't block in accept. Instead
13177 register an event loop source on the listen socket file
13178 descriptor. Refactor bits into ...
13179 (listen_desc): ... this new global.
13180 (gdb_connected): ... this new function.
13181 (enable_async_notification): ... this new function.
13182 (handle_accept_event): ... this new function.
13183 (remote_close): Clear remote_desc.
13184
13185 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
13186
13187 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
13188 New fields.
13189 (mourn_inferior): Define.
13190 (target_process_qsupported): Avoid the dangling else problem.
13191 (thread_stopped): Define.
13192 (pause_all): Define.
13193 (target_waitstatus_to_string): Declare.
13194 * target.c (target_waitstatus_to_string): New.
13195
13196 * tracepoint.c (tracing): Make extern.
13197 (disconnected_tracing): New.
13198 (stop_tracing): Make extern. Handle tracing stops due to GDB
13199 disconnecting.
13200 (cmd_qtdisconnected): New.
13201 (cmd_qtstatus): Report disconnected tracing status in trace reply.
13202 (handle_tracepoint_general_set): Handle QTDisconnected.
13203
13204 * event-loop.c (event_handler_func): Change return type to int.
13205 (process_event): Bail out if the event handler wants the event
13206 loop to stop.
13207 (handle_file_event): Ditto.
13208 (start_event_loop): Bail out if the event handler wants the event
13209 loop to stop.
13210
13211 * nto-low.c (nto_target_ops): Adjust.
13212 * spu-low.c (spu_wait): Don't remove the process here.
13213 (spu_target_ops): Adjust.
13214 * win32-low.c (win32_wait): Don't remove the process here.
13215 (win32_target_ops): Adjust.
13216
5d267c4c
PA
132172010-04-11 Pedro Alves <pedro@codesourcery.com>
13218
13219 * regcache.c (realloc_register_cache): Invalidate inferior's
13220 regcache before recreating it.
13221
623ccd72
PA
132222010-04-09 Pedro Alves <pedro@codesourcery.com>
13223
13224 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
13225
219f2f23
PA
132262010-04-09 Stan Shebs <stan@codesourcery.com>
13227 Pedro Alves <pedro@codesourcery.com>
13228
13229 * server.h (LONGEST): New.
13230 (struct thread_info) <while_stepping>: New field.
13231 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
13232 Declare.
13233 (initialize_tracepoint, handle_tracepoint_general_set)
13234 (handle_tracepoint_query, tracepoint_finished_step)
13235 (tracepoint_was_hit, release_while_stepping_state_list):
13236 (current_traceframe): Declare.
13237 * server.c (handle_general_set): Handle tracepoint packets.
13238 (read_memory): New.
13239 (write_memory): New.
13240 (handle_search_memory_1): Use read_memory.
13241 (handle_query): Report support for conditional tracepoints, trace
13242 state variables, and tracepoint sources. Handle tracepoint
13243 queries.
13244 (main): Initialize the tracepoints module.
13245 (process_serial_event): Handle traceframe reads/writes.
13246
13247 * linux-low.c (handle_tracepoints): New.
13248 (linux_wait_1): Call it.
13249 (linux_resume_one_lwp): Handle while-stepping.
13250 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
13251 (linux_target_ops): Install them.
13252 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
13253 New field.
13254 * linux-x86-low.c (x86_supports_tracepoints): New.
13255 (the_low_target). Install it.
13256
13257 * mem-break.h (delete_breakpoint): Declare.
13258 * mem-break.c (delete_breakpoint): Make external.
13259
13260 * target.h (struct target_ops): Add `supports_tracepoints',
13261 `read_pc', and `write_pc' fields.
13262 (target_supports_tracepoints): Define.
13263 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
13264 (phex_nz): New.
13265
13266 * regcache.h (struct regcache) <registers_owned>: New field.
13267 (init_register_cache, regcache_cpy): Declare.
13268 (regcache_read_pc, regcache_write_pc): Declare.
13269 (register_cache_size): Declare.
13270 (supply_regblock): Declare.
13271 * regcache.c (init_register_cache): New.
13272 (new_register_cache): Use it.
13273 (regcache_cpy): New.
13274 (register_cache_size): New.
13275 (supply_regblock): New.
13276 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 13277
219f2f23
PA
13278 * tracepoint.c: New.
13279
13280 * Makefile.in (OBS): Add tracepoint.o.
13281 (tracepoint.o): New rule.
13282
3a13a53b
L
132832010-04-08 H.J. Lu <hongjiu.lu@intel.com>
13284
13285 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
13286 (i386-mmx.o): New.
13287 (i386-mmx.c): Likewise.
13288 (i386-mmx-linux.o): Likewise.
13289 (i386-mmx-linux.c): Likewise.
13290
13291 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
13292 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
13293 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
13294 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
13295
13296 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
13297 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
13298 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
13299
1570b33e
L
133002010-04-07 H.J. Lu <hongjiu.lu@intel.com>
13301
13302 * Makefile.in (clean): Updated.
13303 (i386-avx.o): New.
13304 (i386-avx.c): Likewise.
13305 (i386-avx-linux.o): Likewise.
13306 (i386-avx-linux.c): Likewise.
13307 (amd64-avx.o): Likewise.
13308 (amd64-avx.c): Likewise.
13309 (amd64-avx-linux.o): Likewise.
13310 (amd64-avx-linux.c): Likewise.
13311
13312 * configure.srv (srv_i386_regobj): Add i386-avx.o.
13313 (srv_i386_linux_regobj): Add i386-avx-linux.o.
13314 (srv_amd64_regobj): Add amd64-avx.o.
13315 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
13316 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
13317 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
13318 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
13319 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
13320 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
13321 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
13322
13323 * i387-fp.c: Include "i386-xstate.h".
13324 (i387_xsave): New.
13325 (i387_cache_to_xsave): Likewise.
13326 (i387_xsave_to_cache): Likewise.
13327 (x86_xcr0): Likewise.
13328
13329 * i387-fp.h (i387_cache_to_xsave): Likewise.
13330 (i387_xsave_to_cache): Likewise.
13331 (x86_xcr0): Likewise.
13332
13333 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
13334 * linux-crisv32-low.c (target_regsets): Likewise.
13335 * linux-m68k-low.c (target_regsets): Likewise.
13336 * linux-mips-low.c (target_regsets): Likewise.
13337 * linux-ppc-low.c (target_regsets): Likewise.
13338 * linux-s390-low.c (target_regsets): Likewise.
13339 * linux-sh-low.c (target_regsets): Likewise.
13340 * linux-sparc-low.c (target_regsets): Likewise.
13341 * linux-xtensa-low.c (target_regsets): Likewise.
13342
13343 * linux-low.c: Include <sys/uio.h>.
13344 (regsets_fetch_inferior_registers): Support nt_type.
13345 (regsets_store_inferior_registers): Likewise.
13346 (linux_process_qsupported): New.
13347 (linux_target_ops): Add linux_process_qsupported.
13348
13349 * linux-low.h (regset_info): Add nt_type.
13350 (linux_target_ops): Add process_qsupported.
13351
13352 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
13353 and <sys/uio.h>.
13354 (init_registers_i386_avx_linux): New.
13355 (init_registers_amd64_avx_linux): Likewise.
13356 (xmltarget_i386_linux_no_xml): Likewise.
13357 (xmltarget_amd64_linux_no_xml): Likewise.
13358 (PTRACE_GETREGSET): Likewise.
13359 (PTRACE_SETREGSET): Likewise.
13360 (x86_fill_xstateregset): Likewise.
13361 (x86_store_xstateregset): Likewise.
13362 (use_xml): Likewise.
13363 (x86_linux_update_xmltarget): Likewise.
13364 (x86_linux_process_qsupported): Likewise.
13365 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
13366 (x86_arch_setup): Don't call init_registers_amd64_linux nor
13367 init_registers_i386_linux here. Call
13368 x86_linux_update_xmltarget.
13369 (the_low_target): Add x86_linux_process_qsupported.
13370
13371 * server.c (handle_query): Call target_process_qsupported.
13372
13373 * target.h (target_ops): Add process_qsupported.
13374 (target_process_qsupported): New.
13375
fc7238bb
PA
133762010-04-03 Pedro Alves <pedro@codesourcery.com>
13377
13378 * inferiors.c (add_thread): Set last_status kind to
13379 TARGET_WAITKIND_IGNORE.
13380 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
13381 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
13382 (linux_wait_1): Move `thread' local definition to block that uses
13383 it. Don't NULL initialize `event_child'.
13384 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
13385 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
13386 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
13387
bdabb078
PA
133882010-04-01 Pedro Alves <pedro@codesourcery.com>
13389
13390 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
13391 an extended waitstatus, or by a watchpoint.
13392 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
13393 thread was stepping or has been stopped by a watchpoint.
13394
d3bbe7a0
PA
133952010-04-01 Pedro Alves <pedro@codesourcery.com>
13396
13397 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
13398 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
13399 of another, then delete the previous, and validate all
13400 breakpoints.
13401 (validate_inserted_breakpoint): New.
13402 (delete_disabled_breakpoints): New.
13403 (validate_breakpoints): New.
13404 (check_mem_read): Validate breakpoints before trusting their
13405 shadow. Delete disabled breakpoints.
13406 (check_mem_write): Validate breakpoints before trusting they
13407 should be inserted. Delete disabled breakpoints.
13408 * mem-break.h (validate_breakpoints):
13409 * server.c (handle_query): Validate breakpoints when we see a
13410 qSymbol query.
13411
8b07ae33
PA
134122010-04-01 Pedro Alves <pedro@codesourcery.com>
13413
13414 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
13415 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
13416 if we could tell there's a GDB breakpoint at stop_pc.
13417 (need_step_over_p): Don't do a step over if we find a GDB
13418 breakpoint at the resume PC.
13419
13420 * mem-break.c (struct raw_breakpoint): New.
13421 (enum bkpt_type): New type `gdb_breakpoint'.
13422 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
13423 fields. New field `raw'.
13424 (find_raw_breakpoint_at): New.
13425 (set_raw_breakpoint_at): Handle refcounting. Create a raw
13426 breakpoint instead.
13427 (set_breakpoint_at): Adjust.
13428 (delete_raw_breakpoint): New.
13429 (release_breakpoint): New.
13430 (delete_breakpoint): Rename to...
13431 (delete_breakpoint_1): ... this. Add proc parameter. Use
13432 release_breakpoint. Return ENOENT.
13433 (delete_breakpoint): Reimplement.
13434 (find_breakpoint_at): Delete.
13435 (find_gdb_breakpoint_at): New.
13436 (delete_breakpoint_at): Delete.
13437 (set_gdb_breakpoint_at): New.
13438 (delete_gdb_breakpoint_at): New.
13439 (gdb_breakpoint_here): New.
13440 (set_reinsert_breakpoint): Use release_breakpoint.
13441 (uninsert_breakpoint): Rename to ...
13442 (uninsert_raw_breakpoint): ... this.
13443 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
13444 (reinsert_raw_breakpoint): Change parameter type to
13445 raw_breakpoint.
13446 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
13447 instead.
13448 (check_breakpoints): Adjust. Use release_breakpoint.
13449 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
13450 (breakpoint_inserted_here): Ditto.
13451 (check_mem_read): Adjust to iterate over raw breakpoints instead.
13452 Don't trust the breakpoint's shadow if it is not inserted.
13453 (check_mem_write): Adjust to iterate over raw breakpoints instead.
13454 (delete_all_breakpoints): Adjust.
13455 (free_all_breakpoints): Mark all breakpoints as uninserted, and
13456 use delete_breakpoint_1.
13457
13458 * mem-break.h (breakpoints_supported): Delete declaration.
13459 (set_gdb_breakpoint_at): Declare.
13460 (gdb_breakpoint_here): Declare.
13461 (delete_breakpoint_at): Delete.
13462 (delete_gdb_breakpoint_at): Declare.
13463
13464 * server.h (struct raw_breakpoint): Forward declare.
13465 (struct process_info): New field `raw_breakpoints'.
13466
13467 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
13468 breakpoints.
13469
6bf5e0ba
PA
134702010-03-24 Pedro Alves <pedro@codesourcery.com>
13471
13472 * linux-low.c (status_pending_p_callback): Fix comment.
13473 (linux_wait_for_event_1): Move most of the internal breakpoint
13474 handling from here...
13475 (linux_wait_1): ... to here.
13476 (count_events_callback): New.
13477 (select_singlestep_lwp_callback): New.
13478 (select_event_lwp_callback): New.
13479 (cancel_breakpoints_callback): New.
13480 (select_event_lwp): New.
13481 (linux_wait_1): Simplify internal breakpoint handling. Give equal
13482 priority to all LWPs that have had events that should be reported
13483 to the client. Cancel breakpoints when about to reporting the
13484 event to the client, not while stopping lwps. No longer cancel
13485 finished single-steps here.
13486 (cancel_finished_single_step): Delete.
13487 (cancel_finished_single_steps): Delete.
13488
414a389f
PA
134892010-03-24 Pedro Alves <pedro@codesourcery.com>
13490
13491 * mem-break.c (enum bkpt_type): New.
13492 (struct breakpoint): New field `type'.
13493 (set_breakpoint_at): Change return type to struct breakpoint
13494 pointer. Set type to `other_breakpoint' by default.
13495 (delete_breakpoint): Rewrite, supporting more than one breakpoint
13496 in the breakpoint list.
13497 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
13498 (reinsert_breakpoint): Rename to ...
13499 (reinsert_raw_breakpoint): ... this.
13500 (reinsert_breakpoints_at): Adjust.
13501 * mem-break.h (struct breakpoint): Declare.
13502 (set_breakpoint_at): Change return type to struct breakpoint
13503 pointer.
13504
2280c721
PA
135052010-03-24 Pedro Alves <pedro@codesourcery.com>
13506
13507 * server.c (handle_query): Assign, not compare.
13508
d50171e4
PA
135092010-03-24 Pedro Alves <pedro@codesourcery.com>
13510
13511 Teach linux gdbserver to step-over-breakpoints.
13512
13513 * linux-low.c (can_hardware_single_step): New.
13514 (supports_breakpoints): New.
13515 (handle_extended_wait): If stopping threads, read the stop pc of
13516 the new cloned LWP.
13517 (get_pc): New.
13518 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
13519 low target doesn't support retrieving the PC.
13520 (add_lwp): Set last_resume_kind to resume_continue.
13521 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
13522 (linux_attach): Don't clear stop_expected. Set the lwp's
13523 last_resume_kind to resume_stop.
13524 (linux_detach_one_lwp): Don't check for removed breakpoints.
13525 (check_removed_breakpoint): Delete.
13526 (status_pending_p): Rename to ...
13527 (status_pending_p_callback): ... this. Don't check for removed
13528 breakpoints. Don't consider threads that are stopped from GDB's
13529 perspective.
13530 (linux_wait_for_lwp): Always read the stop_pc here.
13531 (cancel_breakpoint): New.
13532 (step_over_bkpt): New global.
13533 (linux_wait_for_event_1): Implement stepping over breakpoints.
13534 (gdb_wants_lwp_stopped): New.
13535 (gdb_wants_all_stopped): New.
13536 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
13537 single-step traps here. Store the thread's last reported target
13538 wait status.
13539 (send_sigstop): Don't clear stop_expected. Always set it,
13540 instead.
13541 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
13542 (cancel_finished_single_step): New.
13543 (cancel_finished_single_steps): New.
13544 (wait_for_sigstop): Don't cancel finished single-step traps here.
13545 (linux_resume_one_lwp): Don't check for removed breakpoints.
13546 Don't set `step' on non-hardware step archs.
13547 (linux_set_resume_request): Ignore resume_stop requests if already
13548 stopping or stopped. Set the lwp's last_resume_kind.
13549 (resume_status_pending_p): Don't check for removed breakpoints.
13550 (need_step_over_p): New.
13551 (start_step_over): New.
13552 (finish_step_over): New.
13553 (linux_resume_one_thread): Always queue a sigstop for resume_stop
13554 requests. Clear the thread's last reported target waitstatus.
13555 Don't use the `suspended' flag. Don't consider pending breakpoints.
13556 (linux_resume): Start a step-over if necessary.
13557 (proceed_one_lwp): New.
13558 (proceed_all_lwps): New.
13559 (unstop_all_lwps): New.
13560 * linux-low.h (struct lwp_info): Rewrite comment for the
13561 `suspended' flag. Add the `stop_pc' field. Delete the
13562 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
13563 Add `'last_resume_kind' and `need_step_over' fields.
13564 * inferiors.c (struct thread_info): Delete, moved elsewhere.
13565 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
13566 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
13567 (set_raw_breakpoint_at): New.
13568 (set_breakpoint_at): Rewrite to use it.
13569 (reinsert_breakpoint_handler): Delete.
13570 (set_reinsert_breakpoint): New.
13571 (reinsert_breakpoint_by_bp): Delete.
13572 (delete_reinsert_breakpoints): New.
13573 (uninsert_breakpoint): Rewrite.
13574 (uninsert_breakpoints_at): New.
13575 (reinsert_breakpoint): Rewrite.
13576 (reinsert_breakpoints_at): New.
13577 (check_breakpoints): Rewrite.
13578 (breakpoint_here): New.
13579 (breakpoint_inserted_here): New.
13580 (check_mem_read): Adjust.
13581 * mem-break.h (breakpoints_supported, breakpoint_here)
13582 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
13583 (reinsert_breakpoint_by_bp): Delete declaration.
13584 (delete_reinsert_breakpoints): Declare.
13585 (reinsert_breakpoint): Delete declaration.
13586 (reinsert_breakpoints_at): Declare.
13587 (uninsert_breakpoint): Delete declaration.
13588 (uninsert_breakpoints_at): Declare.
13589 (check_breakpoints): Adjust prototype.
13590 * server.h: Adjust include order.
13591 (struct thread_info): Declare here. Add a `last_status' field.
13592
30ba68cb
MS
135932010-03-23 Michael Snyder <msnyder@vmware.com>
13594
13595 * server.c (crc32): New function.
13596 (handle_query): Add handling for 'qCRC:' request.
13597
b9a881c2
PA
135982010-03-23 Pedro Alves <pedro@codesourcery.com>
13599
13600 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
13601 lwp had been stopped by a watchpoint.
13602
e92d13d5
PA
136032010-03-16 Pedro Alves <pedro@codesourcery.com>
13604
13605 * server.h (internal_error): Declare.
13606 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
13607 * utils.c (internal_error): New function.
13608
64daa791
AS
136092010-03-15 Andreas Schwab <schwab@redhat.com>
13610
13611 * configure.srv: Fix typo setting srv_regobj.
13612
f52cd8cd
PA
136132010-03-15 Pedro Alves <pedro@codesourcery.com>
13614
13615 * linux-low.c (fetch_register): Avoid passing a non string literal
13616 format to `error'.
13617 (usr_store_inferior_registers): Ditto.
13618
93ae6fdc
PA
136192010-03-14 Pedro Alves <pedro@codesourcery.com>
13620
13621 * linux-low.c (linux_write_memory): Bail out early if peeking
13622 memory failed.
13623
c3adc08c
PA
136242010-03-14 Pedro Alves <pedro@codesourcery.com>
13625
13626 * linux-low.h (struct lwp_info): New fields
13627 `stopped_by_watchpoint' and `stopped_data_address'.
13628 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
13629 here, and cache them in the lwp object.
13630 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
13631 directly.
13632 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
13633 field.
13634 (linux_stopped_by_watchpoint): Rewrite.
13635 (linux_stopped_data_address): Rewrite.
13636
bce522a2
PA
136372010-03-06 Simo Melenius <simo.melenius@iki.fi>
13638
13639 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
13640 switching the current inferior, not before.
13641
90884b2b
L
136422010-03-01 H.J. Lu <hongjiu.lu@intel.com>
13643
13644 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
13645 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
13646 i386-linux.c and amd64-linux.c.
13647 (reg-i386.o): Removed.
13648 (reg-i386.c): Likewise.
13649 (reg-i386-linux.o): Likewise.
13650 (reg-i386-linux.c): Likewise.
13651 (reg-x86-64.o): Likewise.
13652 (reg-x86-64.c): Likewise.
13653 (reg-x86-64-linux.o): Likewise.
13654 (reg-x86-64-linux.c): Likewise.
13655 (i386.o): New.
13656 (i386.c): Likewise.
13657 (i386-linux.o): Likewise.
13658 (i386-linux.c): Likewise.
13659 (amd64.o): Likewise.
13660 (amd64.c): Likewise.
13661 (amd64-linux.o): Likewise.
13662 (amd64-linux.c): Likewise.
13663
13664 * configure.srv (srv_i386_regobj): New.
13665 (srv_i386_linux_regobj): Likewise.
13666 (srv_amd64_regobj): Likewise.
13667 (srv_amd64_linux_regobj): Likewise.
13668 (srv_i386_32bit_xmlfiles): Likewise.
13669 (srv_i386_64bit_xmlfiles): Likewise.
13670 (srv_i386_xmlfiles): Likewise.
13671 (srv_amd64_xmlfiles): Likewise.
13672 (srv_i386_linux_xmlfiles): Likewise.
13673 (srv_amd64_linux_xmlfiles): Likewise.
13674 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
13675 srv_xmlfiles to $srv_i386_xmlfiles.
13676 (i[34567]86-*-mingw32ce*): Likewise.
13677 (i[34567]86-*-mingw*): Likewise.
13678 (i[34567]86-*-nto*): Likewise.
13679 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
13680 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
13681 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
13682 (x86_64-*-linux*): Likewise.
13683
13684 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
13685 (init_registers_amd64_linux): New.
13686 (x86_arch_setup): Replace init_registers_x86_64_linux with
13687 init_registers_amd64_linux.
13688
193f13e6
MK
136892010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
13690
13691 * configure.ac: Check for libdl. If it is not available link against
13692 static libthread_db.
13693 * configure: Regenerate.
13694
85d721b8
PA
136952010-02-22 Pedro Alves <pedro@codesourcery.com>
13696
13697 PR9605
13698
13699 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
13700 handing a read watchpoint.
13701 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
13702
6076632b
DE
137032010-02-12 Doug Evans <dje@google.com>
13704
13705 * linux-low.c (linux_supports_tracefork_flag): Document.
13706 (linux_look_up_symbols): Add comment.
13707
3327ccf7
L
137082010-02-03 H.J. Lu <hongjiu.lu@intel.com>
13709
13710 * regcache.c (supply_register): Clear regcache if buf is NULL.
13711
0718675c 137122010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 13713 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
13714
13715 * inferiors.c (find_inferior): Add function documentation.
13716 (unloaded_dll): Handle the case where the unloaded dll has not
13717 been previously registered in the dll list.
13718
177321bd
DJ
137192010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
13720
13721 * linux-arm-low.c (thumb_breakpoint_len): Delete.
13722 (thumb2_breakpoint): New.
13723 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
13724
2b009048
DJ
137252010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
13726
13727 * linux-low.c (get_stop_pc): Check for SIGTRAP.
13728 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
13729 breakpoints.
13730
3be029c7
PA
137312010-01-21 Pedro Alves <pedro@codesourcery.com>
13732
13733 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
13734
18f5de3b
JK
137352010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13736
13737 * linux-s390-low.c (s390_collect_ptrace_register)
13738 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
13739
3743bb4f
DE
137402010-01-21 Doug Evans <dje@google.com>
13741
14ce3065
DE
13742 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
13743 (PTRACE_ARG4_TYPE): New macro.
13744 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
13745 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
13746 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
13747 (usr_store_inferior_registers): Ditto.
13748 (linux_read_memory, linux_write_memory): Ditto.
13749 (linux_test_for_tracefork): Ditto.
13750
3743bb4f
DE
13751 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
13752 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
13753
8b315be5
PA
137542010-01-21 Pedro Alves <pedro@codesourcery.com>
13755
13756 * proc-service.c (ps_lgetregs): Don't refetch registers from the
13757 target.
13758
85492558
PA
137592010-01-21 Pedro Alves <pedro@codesourcery.com>
13760
13761 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
13762 prototype to take a regcache. Adjust.
13763
442ea881
PA
137642010-01-20 Pedro Alves <pedro@codesourcery.com>
13765
13766 * regcache.h (struct thread_info): Forward declare.
13767 (struct regcache): New.
13768 (new_register_cache): Adjust prototype.
13769 (get_thread_regcache): Declare.
13770 (free_register_cache): Adjust prototype.
13771 (registers_to_string, registers_from_string): Ditto.
13772 (supply_register, supply_register_by_name, collect_register)
13773 (collect_register_as_string, collect_register_by_name): Ditto.
13774 * regcache.c (struct inferior_regcache_data): Delete.
13775 (get_regcache): Rename to ...
13776 (get_thread_regcache): ... this. Adjust. Switch inferior before
13777 fetching registers.
13778 (regcache_invalidate_one): Adjust.
13779 (regcache_invalidate): Fix prototype.
13780 (new_register_cache): Return the new register cache.
13781 (free_register_cache): Change prototype.
13782 (realloc_register_cache): Adjust.
13783 (registers_to_string): Change prototype to take a regcache. Adjust.
13784 (registers_from_string): Ditto.
13785 (register_data): Ditto.
13786 (supply_register): Ditto.
13787 (supply_register_by_name): Ditto.
13788 (collect_register): Ditto.
13789 (collect_register_as_string): Ditto.
13790 (collect_register_by_name): Ditto.
13791 * server.c (process_serial_event): Adjust.
13792 * linux-low.h (regset_fill_func, regset_store_func): Change
13793 prototype.
13794 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
13795 Change prototype.
13796 * linux-low.c (get_stop_pc): Adjust.
13797 (check_removed_breakpoint): Adjust.
13798 (linux_wait_for_event): Adjust.
13799 (linux_resume_one_lwp): Adjust.
13800 (fetch_register): Add regcache parameter. Adjust.
13801 (usr_store_inferior_registers): Ditto.
13802 (regsets_fetch_inferior_registers): Ditto.
13803 (regsets_store_inferior_registers): Ditto.
13804 (linux_fetch_registers, linux_store_registers): Ditto.
13805 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
13806 regcache. Adjust.
43aaf8b6
PA
13807 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
13808 Ditto.
442ea881
PA
13809 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
13810 prototype to take a regcache.
13811 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
13812 * remote-utils.c (convert_ascii_to_int, outreg)
13813 (prepare_resume_reply): Change prototype to take a regcache.
13814 Adjust.
13815 * target.h (struct target_ops) <fetch_registers, store_registers>:
13816 Change prototype to take a regcache.
13817 (fetch_inferior_registers, store_inferior_registers): Change
13818 prototype to take a regcache. Adjust.
13819 * proc-service.c (ps_lgetregs): Adjust.
13820 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
13821 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
13822 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
13823 take a regcache. Adjust.
13824 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
13825 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
13826 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
13827 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
13828 * linux-cris-low.c (cris_get_pc, cris_set_pc)
13829 (cris_cannot_fetch_register):
13830 (cris_breakpoint_at): Change prototype to take a regcache.
13831 Adjust.
13832 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
13833 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
13834 to take a regcache. Adjust.
13835 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
13836 Adjust.
13837 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
13838 take a regcache. Adjust.
13839 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
13840 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
13841 (m68k_set_pc): Change prototype to take a regcache. Adjust.
13842 * linux-mips-low.c (mips_get_pc):
13843 (mips_set_pc): Change prototype to take a regcache. Adjust.
13844 (mips_reinsert_addr): Adjust.
13845 (mips_collect_register): Change prototype to take a regcache.
13846 Adjust.
13847 (mips_supply_register):
13848 (mips_collect_register_32bit, mips_supply_register_32bit)
13849 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
13850 (mips_store_fpregset): Ditto.
43aaf8b6
PA
13851 * linux-ppc-low.c (ppc_supply_ptrace_register)
13852 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
13853 (parse_spufs_run): Adjust.
13854 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
13855 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
13856 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
13857 take a regcache. Adjust.
13858 * linux-s390-low.c (s390_collect_ptrace_register)
13859 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
13860 (s390_set_pc): Change prototype to take a regcache. Adjust.
13861 (s390_arch_setup): Adjust.
13862 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
13863 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
13864 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
13865 (sparc_fill_gregset, sparc_store_gregset_from_stack)
13866 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
13867 regcache. Adjust.
13868 (sparc_breakpoint_at): Adjust.
13869 * linux-xtensa-low.c (xtensa_fill_gregset):
13870 (xtensa_store_gregset):
13871 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
13872 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
13873 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
13874 prototype to take a regcache. Adjust.
13875 * win32-arm-low.c (arm_fetch_inferior_register)
13876 (arm_store_inferior_register): Change prototype to take a
13877 regcache. Adjust.
13878 * win32-i386-low.c (i386_fetch_inferior_register)
13879 (i386_store_inferior_register): Change prototype to take a
13880 regcache. Adjust.
13881 * win32-low.c (child_fetch_inferior_registers)
13882 (child_store_inferior_registers): Change prototype to take a
13883 regcache. Adjust.
13884 (win32_wait): Adjust.
13885 (win32_fetch_inferior_registers): Change prototype to take a
13886 regcache. Adjust.
13887 (win32_store_inferior_registers): Adjust.
13888 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
13889 store_inferior_register>: Change prototype to take a regcache.
13890
60c3d7b0
DE
138912010-01-20 Doug Evans <dje@google.com>
13892
13893 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
13894 #ifdef.
13895 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 13896 (W_STOPCODE): Provide definition if missing.
60c3d7b0 13897
dc146f7c
VP
138982010-01-13 Vladimir Prus <vladimir@codesourcery.com>
13899
13900 * linux-low.c (linux_core_of_thread): New.
13901 (compare_ints, show_process, list_threads): New.
13902 (linux_qxfer_osdata): Report threads and cores.
13903 (linux_target_op): Register linux_core_of_thread.
13904 * remote-utils.c (prepare_resume_reply): Report the core.
13905 (buffer_xml_printf): Support %d specifier.
13906 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
13907 New.
13908 (handle_query): Handle qXfer:threads. Announce availability
13909 thereof.
13910 * target.h (struct target_ops): New field core_of_thread.
13911
7803799a
UW
139122010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
13913
13914 * Makefile.in (clean): Remove new generated files.
13915 (reg-s390.o, reg-s390.c): Remove rules.
13916 (reg-s390x.o, reg-s390x.c): Likewise.
13917 (s390-linux32.o, s390-linux32.c): Add rules.
13918 (s390-linux64.o, s390-linux64.c): Likewise.
13919 (s390x-linux64.o, s390x-linux64.c): Likewise.
13920 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
13921 * linux-s390-low.c: Include <elf.h>.
13922 (HWCAP_S390_HIGH_GPRS): Define if undefined.
13923 (init_registers_s390): Remove prototype.
13924 (init_registers_s390x): Likewise.
13925 (init_registers_s390_linux32): Add prototype.
13926 (init_registers_s390_linux64): Likewise.
13927 (init_registers_s390x_linux64): Likewise.
13928 (s390_num_regs_3264): New define.
13929 (s390_regmap_3264): New global variable.
13930 (s390_cannot_fetch_register): Remove obsolete check.
13931 (s390_cannot_store_register): Likewise.
13932 (s390_collect_ptrace_register): Handle upper/lower register halves.
13933 (s390_supply_ptrace_register): Likewise.
13934 (s390_fill_gregset): Update to register number changes.
13935 (s390_get_hwcap): New routine.
13936 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
13937 Install appropriate regmap and register set.
13938
6e7ffa39
JB
139392010-01-01 Joel Brobecker <brobecker@adacore.com>
13940
13941 * server.c (gdbserver_version): Update copyright year to 2010.
13942 * gdbreplay.c (gdbreplay_version): Likewise.
13943
957f3f49
DE
139442009-12-28 Doug Evans <dje@google.com>
13945
13946 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
13947 elf/external.h. Include <elf.h> instead but only if necessary.
13948
ca5c370d
PA
139492009-12-28 Pedro Alves <pedro@codesourcery.com>
13950
13951 * linux-low.c (linux_remove_process): Remove `detaching'
13952 parameter. Don't release/detach from thread_db here.
13953 (linux_kill): Release/detach from thread_db here, ...
13954 (linux_detach): ... and here, before actually detaching.
13955 (linux_wait_1): ... and here, when a process exits.
13956 * thread-db.c (any_thread_of): New.
13957 (thread_db_free): Switch the current inferior to a thread of the
13958 passed in process.
13959
4ee62156
DE
139602009-12-21 Doug Evans <dje@google.com>
13961
d90e6a88
DE
13962 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
13963
c5f62d5f
DE
13964 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
13965 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
13966 warning ifndef __NR_tkill. Move setting of errno there too.
13967 Delete unnecessary resetting of errno after syscall.
13968 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
13969
10e86dd7
DE
13970 * configure.ac: Check for dladdr.
13971 * config.in: Regenerate.
13972 * configure: Regenerate.
13973 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
13974 (try_thread_db_load): Update.
13975
4ee62156
DE
13976 * linux-low.c (my_waitpid): Delete unnecessary prototype.
13977
00f515da
DE
139782009-12-18 Doug Evans <dje@google.com>
13979
e9464885
DE
13980 * event-loop.c: Include unistd.h if it exists.
13981
07d4f67e
DE
13982 * linux-low.c (my_waitpid): Move definition away from being in
13983 between linux_tracefork_child/linux_test_for_tracefork.
13984
00f515da
DE
13985 * gdb_proc_service.h (psaddr_t): Fix type.
13986 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
13987 signature to match glibc.
13988
1de1badb
DE
139892009-12-16 Doug Evans <dje@google.com>
13990
13991 * linux-low.c (linux_read_memory): Fix argument to read.
13992
aeeb81d1
PA
139932009-11-26 Pedro Alves <pedro@codesourcery.com>
13994
13995 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
13996 events, don't leave current_inferior pointing at null.
13997
10357975
PA
139982009-11-26 Pedro Alves <pedro@codesourcery.com>
13999
14000 * win32-low.c (LOG): Delete.
14001 (OUTMSG): Output to stderr.
14002 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
14003 on compile time LOG macro.
14004 (win32_wait): Fix debug output.
14005
cf6e3471
PA
140062009-11-26 Pedro Alves <pedro@codesourcery.com>
14007
14008 * win32-low.c (win32_add_one_solib): If the dll name is
14009 "ntdll.dll", prepend the system directory to the dll path.
14010
0c85e18e
MK
140112009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
14012
14013 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
14014
9ac544ce 140152009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 14016 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
14017
14018 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
14019 * configure.ac: Check for __mcoldfire__ and set
14020 gdb_cv_m68k_is_coldfire.
14021 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
14022 reg-cf.o and reg-m68k.o.
14023 * configure: Regenerated.
14024
fd7dd3e6
PA
140252009-11-16 Pedro Alves <pedro@codesourcery.com>
14026
14027 * linux-low.c (linux_remove_process): Add `detaching' parameter.
14028 Pass it to thread_db_free.
14029 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
14030 proper `detaching' argument to linux_remove_process.
14031 * linux-low.h (thread_db_free): Add `detaching' parameter.
14032 * thread-db.c (thread_db_init): Pass false as `detaching' argument
14033 to thread_db_free.
14034 (thread_db_free): Add `detaching' parameter. Only
14035 call td_ta_clear_event if detaching from process.
14036
75aa492e
MK
140372009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
14038
14039 * thread-db.c (thread_db_free): Fix typo.
14040
21e1bee4
PP
140412009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
14042
14043 PR gdb/10838
14044 * thread-db.c (thread_db_free): Call td_ta_clear_event.
14045
8838b45e
NS
140462009-11-03 Nathan Sidwell <nathan@codesourcery.com>
14047
14048 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
14049 with an i686 compiler.
14050 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
14051 needed.
14052 * configure: Rebuilt.
14053
8a35fb51
SL
140542009-10-29 Sandra Loosemore <sandra@codesourcery.com>
14055
14056 PR gdb/10783
14057
14058 * server.c (handle_search_memory_1): Correct read_addr initialization
14059 in loop for searching subsequent chunks.
14060
96f15937
PP
140612009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
14062
14063 * configure.ac: New --with-libthread-db option.
14064 * thread-db.c: Allow direct dependence on libthread_db.
14065 (thread_db_free): Adjust.
14066 * config.in: Regenerate.
14067 * configure: Likewise.
889bf7c5 14068
5f7d1694
PP
140692009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
14070
14071 PR gdb/10757
14072 * thread-db.c (attach_thread): New function.
14073 (maybe_attach_thread): Return success/failure.
14074 (find_new_threads_callback): Adjust.
889bf7c5
PA
14075 (thread_db_find_new_threads): Loop until no new threads.
14076
88e3b899
PA
140772009-10-13 Pedro Alves <pedro@codesourcery.com>
14078
14079 * proc-service.c (ps_lgetregs): Formatting.
14080
cdbfd419
PP
140812009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
14082
14083 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
14084 * configure.ac: Adjust.
14085 * linux-low.h (struct process_info_private): Move members to struct
14086 thread_db.
14087 (thread_db_free, thread_db_handle_monitor_command): New prototype.
14088 * linux-low.c (linux_remove_process): Adjust.
14089 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
14090 * server.c (handle_query): Move code ...
14091 (handle_monitor_command): ... here. New function.
14092 * target.h (struct target_ops): New member.
14093 * thread-db.c (struct thread_db): New.
14094 (libthread_db_search_path): New variable.
14095 (thread_db_create_event, thread_db_enable_reporting)
14096 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
14097 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
14098 (try_thread_db_load_1, dladdr_to_soname): New functions.
14099 (try_thread_db_load, thread_db_load_search): New functions.
14100 (thread_db_init): Search for libthread_db.
14101 (thread_db_free): New function.
14102 (thread_db_handle_monitor_command): Likewise.
14103 * config.in: Regenerate.
14104 * configure: Regenerate.
889bf7c5 14105
4168d2d6
UW
141062009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
14107
14108 * spu-low.c (spu_kill): Wait for inferior to terminate.
14109 Call clear_inferiors.
14110 (spu_detach): Call clear_inferiors.
14111
81ecdfbb
RW
141122009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14113
14114 * aclocal.m4: Regenerate.
14115 * config.in: Likewise.
14116 * configure: Likewise.
14117
0b9ff2c0
UW
141182009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
14119
14120 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
14121 (parse_spufs_run): New function.
14122 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
14123 (ppc_breakpoint_at): Handle SPU breakpoints.
14124
efcbbd14
UW
141252009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
14126
14127 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
14128 (SPUFS_MAGIC): Define.
14129 (spu_enumerate_spu_ids): New function.
14130 (linux_qxfer_spu): New function.
14131 (linux_target_ops): Install linux_qxfer_spu.
14132
f4d9bade
UW
141332009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
14134
14135 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
14136 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
14137 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
14138 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
14139 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
14140 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
14141 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
14142 (init_registers_powerpc_cell32l): Add prototype.
14143 (init_registers_powerpc_cell64l): Likewise.
14144 (ppc_arch_setup): Detect Cell/B.E. architecture.
14145
96e946ca
RW
141462009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14147
14148 * Makefile.in (datarootdir): New variable.
14149
58d6951d
DJ
141502009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
14151
14152 * linux-low.c (linux_write_memory): Update debugging output.
14153 * Makefile.in (clean): Add new descriptions.
14154 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
14155 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
14156 * configure.srv: Add new files for arm*-*-linux*.
14157 * linux-arm-low.c: Add new declarations.
14158 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
14159 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
14160 (HWCAP_VFPv3D16): New.
14161 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
14162 instead of __IWMMXT__.
14163 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
14164 (arm_arch_setup): New.
14165 (target_regsets): Remove #ifdef. Add VFP regset.
14166 (the_low_target): Use arm_arch_setup.
14167
12b42a12
DJ
141682009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
14169
14170 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
14171 the main thread again.
14172
ac8c974e
AR
141732009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
14174
14175 Adding Neutrino gdbserver.
14176 * configure: Regenerated.
14177 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
14178 * configure.srv (i[34567]86-*-nto*): New target.
14179 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
14180 * remote-utils.c [__QNX__]: Include sys/iomgr.h
14181 (nto_comctrl) [__QNX__]: New function.
14182 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
14183
4424e0c3 141842009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
14185
14186 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
14187 srv_tgtobj.
14188
912cf4ba
PA
141892009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
14190 Pedro Alves <pedro@codesourcery.com>
14191
14192 * win32-i386-low.c (i386_get_thread_context): Handle systems that
14193 don't support CONTEXT_EXTENDED_REGISTERS.
14194 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
14195 (the_low_target): Install them.
14196 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
14197 failing with ERROR_PIPE_NOT_CONNECTED.
14198
aa5ca48f
DE
141992009-06-30 Doug Evans <dje@google.com>
14200 Pierre Muller <muller@ics.u-strasbg.fr>
14201
14202 Add h/w watchpoint support to x86-linux, win32-i386.
14203 * Makefile.in (SFILES): Add i386-low.c
14204 (i386_low_h): Define.
14205 (i386-low.o): Add dependencies.
14206 (linux-x86-low.o): Add i386-low.h dependency.
14207 (win32-i386-low.o): Ditto.
14208 * i386-low.c: New file.
14209 * i386-low.h: New file.
14210 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
14211 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
14212 * linux-low.c (linux_add_process): Initialize arch_private.
14213 (linux_remove_process): Free arch_private.
14214 (add_lwp): Initialize arch_private.
14215 (delete_lwp): Free arch_private.
14216 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
14217 provided.
14218 * linux-low.h (process_info_private): New member arch_private.
14219 (lwp_info): New member arch_private.
14220 (linux_target_ops): New members new_process, new_thread,
14221 prepare_to_resume.
14222 (ptid_of): New macro.
14223 * linux-x86-low.c: Include stddef.h, i386-low.h.
14224 (arch_process_info): New struct.
14225 (arch_lwp_info): New struct.
14226 (x86_linux_dr_get, x86_linux_dr_set): New functions.
14227 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
14228 (i386_dr_low_get_status): New function.
14229 (x86_insert_point, x86_remove_point): New functions.
14230 (x86_stopped_by_watchpoint): New function.
14231 (x86_stopped_data_address): New function.
14232 (x86_linux_new_process, x86_linux_new_thread): New functions.
14233 (x86_linux_prepare_to_resume): New function.
14234 (the_low_target): Add entries for insert_point, remove_point,
14235 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
14236 prepare_to_resume.
14237 * server.c (debug_hw_points): New global.
14238 (monitor_show_help): Document set debug-hw-points.
14239 (handle_query): Process "set debug-hw-points".
14240 * server.h (debug_hw_points): Declare.
14241 (paddress): Declare.
14242 * utils.c (NUMCELLS, CELLSIZE): New macros.
14243 (get_sell, xsnprintf, paddress): New functions.
14244 * win32-arm-low.c (the_low_target): Add entries for insert_point,
14245 remove_point, stopped_by_watchpoint, stopped_data_address.
14246 * win32-i386-low.c: Include i386-low.h.
14247 (debug_reg_state): Replaces dr.
14248 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
14249 (i386_dr_low_get_status): New function.
14250 (i386_insert_point, i386_remove_point): New functions.
14251 (i386_stopped_by_watchpoint): New function.
14252 (i386_stopped_data_address): New function.
14253 (i386_initial_stuff): Update.
14254 (get_thread_context,set_thread_context,i386_thread_added): Update.
14255 (the_low_target): Add entries for insert_point,
14256 remove_point, stopped_by_watchpoint, stopped_data_address.
14257 * win32-low.c (win32_insert_watchpoint): New function.
14258 (win32_remove_watchpoint): New function.
14259 (win32_stopped_by_watchpoint): New function.
14260 (win32_stopped_data_address): New function.
14261 (win32_target_ops): Add entries for insert_watchpoint,
14262 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
14263 * win32-low.h (win32_target_ops): New members insert_point,
14264 remove_point, stopped_by_watchpoint, stopped_data_address.
14265
d993e290
PA
142662009-06-25 Pedro Alves <pedro@codesourcery.com>
14267
14268 * server.c (process_serial_event): Re-return unsupported, not
14269 error, if the type isn't recognized. Re-allow supporting only
14270 insert or remove packets. Also call require_running for
14271 breakpoints. Add missing break statement to default case. Tidy.
14272 * target.h (struct target_ops): Rename insert_watchpoint to
14273 insert_point, and remove_watchpoint to remove_point.
14274
14275 * linux-low.h (struct linux_target_ops): Likewise.
14276 * linux-low.c (linux_insert_watchpoint): Rename to ...
14277 (linux_insert_point): ... this. Adjust.
14278 (linux_remove_watchpoint): Rename to ...
14279 (linux_remove_point): ... this. Adjust.
14280 (linux_target_ops): Adjust.
14281 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
14282 (cris_insert_point): ... this.
14283 (cris_remove_watchpoint): Rename to ...
14284 (cris_remove_point): ... this.
14285 (the_low_target): Adjust.
14286
0f54c268
PM
142872009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
14288
14289 * server.c (handle_v_kill): Pass signal_pid to
14290 kill_inferior if multi_process is zero.
14291
c6314022
AR
142922009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
14293
14294 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
14295 * target.h (target_ops): Comment for *_watchpoint to make it clear
14296 the functions can get types '0' and '1'.
14297
4463ce24
AR
142982009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
14299
14300 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
14301 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
14302 * regcache.c (get_regcache): Likewise.
14303 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
14304 * win32-low.c (child_fetch_inferior_registers): Remove check for
14305 regno 0.
14306
cf8fd78b
PA
143072009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
14308 Pedro Alves <pedro@codesourcery.com>
14309
14310 * target.h (struct target_ops) <supports_multi_process>: New
14311 callback.
14312 (target_supports_multi_process): New.
14313 * server.c (handle_query): Even if GDB reports support, only
14314 enable multi-process if the target also supports it. Report
14315 multi-process support only if the target backend supports it.
14316 * linux-low.c (linux_supports_multi_process): New function.
14317 (linux_target_ops): Install it as target_supports_multi_process
14318 callback.
14319
47c0c975
DE
143202009-05-24 Doug Evans <dje@google.com>
14321
e09875d4
DE
14322 Global renaming of find_thread_pid to find_thread_ptid.
14323 * server.h (find_thread_ptid): Renamed from find_thread_pid.
14324 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
14325 All callers updated.
14326
e27d73f6
DE
14327 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
14328 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
14329 directly.
14330
47c0c975
DE
14331 * linux-low.c (get_stop_pc): Print pc if debug_threads.
14332 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
14333 (linux_resume_one_lwp): Ditto.
14334
2acc282a
DE
143352009-05-23 Doug Evans <dje@google.com>
14336
14337 * linux-low.c (linux_resume_one_lwp): Change type of first arg
14338 from struct inferior_list_entry * to struct lwp_info *.
14339 All callers updated.
14340
9f1036c1
DE
143412009-05-13 Doug Evans <dje@google.com>
14342
14343 * linux-x86-low.c: Don't include assert.h.
14344 (x86_siginfo_fixup): Use fatal, not assert.
14345 (x86_arch_setup): Fix comment.
14346
d0722149
DE
143472009-05-12 Doug Evans <dje@google.com>
14348
14349 Biarch support for i386/amd64 gdbserver.
14350 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
14351 Add linux-x86-low.c.
14352 (linux-i386-low.o, linux-x86-64-low.o): Delete.
14353 (linux-x86-low.o): Add.
14354 * linux-x86-64-low.c: Delete.
14355 * linux-i386-low.c: Delete.
14356 * linux-x86-low.c: New file.
14357 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
14358 linux-x86-low.o.
14359 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
14360 linux-x86-low.o.
14361 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
14362 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
14363 (linux_child_pid_to_exec_file): New function.
14364 (elf_64_header_p, elf_64_file_p): New functions.
14365 (siginfo_fixup): New function.
14366 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
14367 give target a chance to convert layout.
14368 * linux-low.h (linux_target_ops): New member siginfo_fixup.
14369 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
14370
fdeb2a12
DE
143712009-05-07 Doug Evans <dje@google.com>
14372
14373 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
14374 (regsets_store_inferior_registers): Ditto.
14375
a6dbe5df
PA
143762009-05-06 Pedro Alves <pedro@codesourcery.com>
14377
14378 PR server/10048
14379
14380 * linux-low.c (must_set_ptrace_flags): Delete.
14381 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
14382 of the global.
14383 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
14384 `lwp->must_set_ptrace_flags' instead.
ba42693b 14385 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
14386 (linux_wait_1): ... not here.
14387
5091eb23
DE
143882009-04-30 Doug Evans <dje@google.com>
14389
9f767825
DE
14390 * inferiors.c (started_inferior_callback): New function.
14391 (attached_inferior_callback): New function.
14392 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
14393 * server.c (print_started_pid, print_attached_pid): New functions.
14394 (detach_or_kill_for_exit): New function.
14395 (main): Call it instead of for_each_inferior (kill_inferior_callback).
14396 * server.h (have_started_inferiors_p): Declare.
14397 (have_attached_inferiors_p): Declare.
14398
5091eb23
DE
14399 * inferiors.c (remove_process): Fix memory leak, free process.
14400 * linux-low.c (linux_remove_process): New function.
14401 (linux_kill): Call it instead of remove_process.
14402 (linux_detach, linux_wait_1): Ditto.
14403
155c8968
PA
144042009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
14405
14406 * configure.srv: Add x86 Windows CE target.
14407
7fe519cb
UW
144082009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
14409
14410 * inferiors.c (get_thread_process): Make global.
14411 * server.h (get_thread_process): Add prototype.
14412 * thread-db.c (find_one_thread): Use get_thread_process
14413 instead of current_process.
14414 (thread_db_get_tls_address): Do not crash if called when
14415 thread layer is not yet initialized.
14416
5472f405
UW
144172009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
14418
14419 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
14420 * spu-low.c (current_tid): Rename to ...
14421 (current_ptid): ... this.
14422 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
14423 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
14424 ptid_get_lwp (current_ptid) instead of current_tid.
14425 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
14426 instead of current_tid. Use find_process_pid to verify pid
14427 argument is valid. Pass proper argument to remove_process.
14428 (spu_thread_alive): Compare current_ptid instead of current_tid.
14429 (spu_resume): Likewise.
14430
55ac2b99
PA
144312009-04-02 Pedro Alves <pedro@codesourcery.com>
14432
14433 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
14434 variable.
14435
95954743
PA
144362009-04-01 Pedro Alves <pedro@codesourcery.com>
14437
14438 Implement the multiprocess extensions, and add linux multiprocess
14439 support.
14440
14441 * server.h (ULONGEST): Declare.
14442 (struct ptid, ptid_t): New.
14443 (minus_one_ptid, null_ptid): Declare.
14444 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
14445 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
14446 (struct inferior_list_entry): Change `id' type from unsigned from
14447 to ptid_t.
14448 (struct sym_cache, struct breakpoint, struct
14449 process_info_private): Forward declare.
14450 (struct process_info): Declare.
14451 (current_process): Declare.
14452 (all_processes): Declare.
14453 (initialize_inferiors): Declare.
14454 (add_thread): Adjust to use ptid_t.
14455 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
14456 (add_process, remove_process, find_thread_pid): Declare.
14457 (find_inferior_id): Adjust to use ptid_t.
14458 (cont_thread, general_thread, step_thread): Change type to ptid_t.
14459 (multi_process): Declare.
14460 (push_event): Adjust to use ptid_t.
14461 (read_ptid, write_ptid): Declare.
14462 (prepare_resume_reply): Adjust to use ptid_t.
14463 (clear_symbol_cache): Declare.
14464 * inferiors.c (all_processes): New.
14465 (null_ptid, minus_one_ptid): New.
14466 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
14467 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
14468 (add_thread): Change unsigned long to ptid. Remove gdb_id
14469 parameter. Adjust.
14470 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
14471 (gdb_id_to_thread): Rename to ...
14472 (find_thread_pid): ... this. Change unsigned long to ptid.
14473 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
14474 (loaded_dll, pull_pid_from_list): Adjust.
14475 (add_process, remove_process, find_process_pid)
14476 (get_thread_process, current_process, initialize_inferiors): New.
14477 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
14478 (struct target_waitstatus) <related_pid>: Ditto.
14479 (struct target_ops) <kill, detach>: Add `pid' argument. Change
14480 return type to int.
14481 (struct target_ops) <join>: Add `pid' argument.
14482 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
14483 (struct target_ops) <wait>: Add `ptid' field. Change return type
14484 to ptid.
14485 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
14486 (mywait): Add `ptid' argument. Change return type to ptid_t.
14487 (target_pid_to_str): Declare.
14488 * target.c (set_desired_inferior): Adjust to use ptids.
14489 (mywait): Add new `ptid' argument. Adjust.
14490 (target_pid_to_str): New.
14491 * mem-break.h (free_all_breakpoints): Declare.
14492 * mem-break.c (breakpoints): Delelete.
14493 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
14494 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
14495 to use per-process breakpoint list.
14496 (free_all_breakpoints): New.
14497 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
14498 (symbol_cache, all_symbols_looked_up): Delete.
14499 (hexchars): New.
14500 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
14501 read_ptid): New.
14502 (prepare_resume_reply): Change ptid argument's type from unsigned
14503 long to ptid_t. Adjust. Implement W;process and X;process.
14504 (free_sym_cache, clear_symbol_cache): New.
14505 (look_up_one_symbol): Adjust to per-process symbol cache. *
14506 * server.c (cont_thread, general_thread, step_thread): Change type
14507 to ptid_t.
14508 (attached): Delete.
14509 (multi_process): New.
14510 (last_ptid): Change type to ptid_t.
14511 (struct vstop_notif) <ptid>: Change type to ptid_t.
14512 (queue_stop_reply, push_event): Change `ptid' argument's type to
14513 ptid_t.
14514 (discard_queued_stop_replies): Add `pid' argument.
14515 (start_inferior): Adjust to use ptids. Adjust to mywait interface
14516 changes. Don't reference the `attached' global.
14517 (attach_inferior): Adjust to mywait interface changes.
14518 (handle_query): Adjust to use ptids. Parse GDB's qSupported
14519 features. Handle and report "multiprocess+". Handle
14520 "qAttached:PID".
14521 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
14522 changes.
14523 (handle_v_kill): New.
14524 (handle_v_stopped): Adjust to use target_pid_to_str.
14525 (handle_v_requests): Allow multiple attaches and runs when
14526 multiprocess extensions are in effect. Handle "vKill".
14527 (myresume): Adjust to use ptids.
14528 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
14529 (handle_status): Adjust to discard_queued_stop_replies interface
14530 change.
14531 (first_thread_of, kill_inferior_callback)
14532 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
14533 (main): Call initialize_inferiors. Adjust to use ptids, killing
14534 and detaching from all inferiors. Handle multiprocess packet
14535 variants.
14536 * linux-low.h: Include gdb_proc_service.h.
14537 (struct process_info_private): New.
14538 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
14539 <lwpid_of>: Use ptid_get_lwp.
14540 (get_lwp_thread): Adjust.
14541 (struct lwp_info): Add `dead' member.
14542 (find_lwp_pid): Declare.
14543 * linux-low.c (thread_db_active): Delete.
14544 (new_inferior): Adjust comment.
14545 (inferior_pid): Delete.
14546 (linux_add_process): New.
14547 (handle_extended_wait): Adjust.
14548 (add_lwp): Change unsigned long to ptid.
14549 (linux_create_inferior): Add process to processes table. Adjust
14550 to use ptids. Don't set new_inferior here.
14551 (linux_attach_lwp): Rename to ...
14552 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
14553 it. Adjust to use ptids.
14554 (linux_attach_lwp): New.
14555 (linux_attach): Add process to processes table. Don't set
14556 new_inferior here.
14557 (struct counter): New.
14558 (second_thread_of_pid_p, last_thread_of_process_p): New.
14559 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
14560 multiple processes.
14561 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
14562 processes. Remove process from process table.
14563 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
14564 to multiple processes.
14565 (any_thread_of): New.
14566 (linux_detach): Add `pid' argument, and handle it. Remove process
14567 from processes table.
14568 (linux_join): Add `pid' argument. Handle it.
14569 (linux_thread_alive): Change unsighed long argument to ptid_t.
14570 Consider dead lwps as not being alive.
14571 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
14572 threads we're not interested in.
14573 (same_lwp, find_lwp_pid): New.
14574 (linux_wait_for_lwp): Change `pid' argument's type from int to
14575 ptid_t. Adjust.
14576 (linux_wait_for_event): Rename to ...
14577 (linux_wait_for_event_1): ... this. Change `pid' argument's type
14578 from int to ptid_t. Adjust.
14579 (linux_wait_for_event): New.
14580 (linux_wait_1): Add `ptid' argument. Change return type to
14581 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
14582 that exit from the process table.
14583 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
14584 Adjust.
14585 (mark_lwp_dead): New.
14586 (wait_for_sigstop): Adjust to use ptids. If a process exits while
14587 stopping all threads, mark its main lwp as dead.
14588 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
14589 ptids.
14590 (fetch_register, usr_store_inferior_registers)
14591 (regsets_fetch_inferior_registers)
14592 (regsets_store_inferior_registers, linux_read_memory)
14593 (linux_write_memory): Inline `inferior_pid'.
14594 (linux_look_up_symbols): Adjust to use per-process
14595 `thread_db_active'.
14596 (linux_request_interrupt): Adjust to use ptids.
14597 (linux_read_auxv): Inline `inferior_pid'.
14598 (initialize_low): Don't reference thread_db_active.
14599 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
14600 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
14601 (ps_getpid): Return the pid of the current inferior.
14602 * thread-db.c (proc_handle, thread_agent): Delete.
14603 (thread_db_create_event, thread_db_enable_reporting): Adjust to
14604 per-process data.
14605 (find_one_thread): Change argument type to ptid_t. Adjust to
14606 per-process data.
14607 (maybe_attach_thread): Adjust to per-process data and ptids.
14608 (thread_db_find_new_threads): Ditto.
14609 (thread_db_init): Ditto.
14610 * spu-low.c (spu_create_inferior, spu_attach): Add process to
14611 processes table. Adjust to use ptids.
14612 (spu_kill, spu_detach): Adjust interface. Remove process from
14613 processes table.
14614 (spu_join, spu_thread_alive): Adjust interface.
14615 (spu_wait): Adjust interface. Remove process from processes
14616 table. Adjust to use ptids.
14617 * win32-low.c (current_inferior_tid): Delete.
14618 (current_inferior_ptid): New.
14619 (debug_event_ptid): New.
14620 (thread_rec): Take a ptid. Adjust.
14621 (child_add_thread): Add `pid' argument. Adjust to use ptids.
14622 (child_delete_thread): Ditto.
14623 (do_initial_child_stuff): Add `attached' argument. Add process to
14624 processes table.
14625 (child_fetch_inferior_registers, child_store_inferior_registers):
14626 Adjust.
14627 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
14628 (win32_attach): Pass 1 to do_initial_child_stuff.
14629 (win32_kill): Adjust interface. Remove process from processes
14630 table.
14631 (win32_detach): Ditto.
14632 (win32_join): Adjust interface.
14633 (win32_thread_alive): Take a ptid.
14634 (win32_resume): Adjust to use ptids.
14635 (get_child_debug_event): Ditto.
14636 (win32_wait): Adjust interface. Remove exiting process from
14637 processes table.
14638
bd99dc85
PA
146392009-04-01 Pedro Alves <pedro@codesourcery.com>
14640
14641 Non-stop mode support.
14642
14643 * server.h (non_stop): Declare.
14644 (gdb_client_data, handler_func): Declare.
14645 (delete_file_handler, add_file_handler, start_event_loop):
14646 Declare.
14647 (handle_serial_event, handle_target_event, push_event)
14648 (putpkt_notif): Declare.
14649 * target.h (enum resume_kind): New.
14650 (struct thread_resume): Replace `step' field by `kind' field.
14651 (TARGET_WNOHANG): Define.
14652 (struct target_ops) <wait>: Add `options' argument.
14653 <supports_non_stop, async, start_non_stop>: New fields.
14654 (target_supports_non_stop, target_async): New.
14655 (start_non_stop): Declare.
14656 (mywait): Add `options' argument.
14657 * target.c (mywait): Add `options' argument. Print child exit
14658 notifications here.
14659 (start_non_stop): New.
14660 * server.c (non_stop, own_buf, mem_buf): New globals.
14661 (struct vstop_notif): New.
14662 (notif_queue): New global.
14663 (queue_stop_reply, push_event, discard_queued_stop_replies)
14664 (send_next_stop_reply): New.
14665 (start_inferior): Adjust to use resume_kind. Adjust to mywait
14666 interface changes.
14667 (attach_inferior): In non-stop mode, don't wait for the target
14668 here.
14669 (handle_general_set): Handle QNonStop.
14670 (handle_query): When handling qC, return the current general
14671 thread, instead of the first thread of the list.
14672 (handle_query): If the backend supports non-stop mode, include
14673 QNonStop+ in the qSupported query response.
14674 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
14675 and non-stop mode.
14676 (handle_v_attach, handle_v_run): Handle non-stop mode.
14677 (handle_v_stopped): New.
14678 (handle_v_requests): Report support for vCont;t. Handle vStopped.
14679 (myresume): Adjust to use resume_kind. Handle non-stop.
14680 (queue_stop_reply_callback): New.
14681 (handle_status): Handle non-stop mode.
14682 (main): Clear non_stop flag on reconnection. Use the event-loop.
14683 Refactor serial protocol handling from here ...
14684 (process_serial_event): ... to this new function. When GDB
14685 selects any thread, select one here. In non-stop mode, wait until
14686 GDB acks all pending events before exiting.
14687 (handle_serial_event, handle_target_event): New.
14688 * remote-utils.c (remote_open): Install remote_desc in the event
14689 loop.
14690 (remote_close): Remove remote_desc from the event loop.
14691 (putpkt_binary): Rename to...
14692 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
14693 (putpkt_binary): New as wrapper around putpkt_binary_1.
14694 (putpkt_notif): New.
14695 (prepare_resume_reply): In non-stop mode, don't change the
14696 general_thread.
14697 * event-loop.c: New.
14698 * Makefile.in (OBJ): Add event-loop.o.
14699 (event-loop.o): New rule.
14700
14701 * linux-low.h (pid_of): Moved here.
14702 (lwpid_of): New.
14703 (get_lwp_thread): Use lwpid_of.
14704 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
14705 * linux-low.c (pid_of): Delete.
14706 (inferior_pid): Use lwpid_of.
14707 (linux_event_pipe): New.
14708 (target_is_async_p): New.
14709 (delete_lwp): New.
14710 (handle_extended_wait): Use lwpid_of.
14711 (add_lwp): Don't set lwpid field.
14712 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
14713 (linux_kill_one_lwp): If killing a running lwp, stop it first.
14714 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
14715 (linux_detach_one_lwp): If detaching from a running lwp, stop it
14716 first. Adjust to linux_wait_for_event interface changes. Use
14717 lwpid_of.
14718 (linux_detach): Don't delete the main lwp here.
14719 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
14720 (status_pending_p): Don't consider explicitly suspended lwps.
14721 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
14722 pointer. Add OPTIONS argument. Change return type to int. Use
14723 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
14724 (linux_wait_for_event): Take an integer pid instead of a lwp_info
14725 pointer. Add status pointer argument. Return a pid instead of a
14726 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
14727 changes. In non-stop mode, don't switch to a random thread.
14728 (linux_wait): Rename to...
14729 (linux_wait_1): ... this. Add target_options argument, and handle
14730 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
14731 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
14732 clean exit and signal exit code. Don't stop all threads in
14733 non-stop mode. In all-stop mode, only stop all threads when
14734 reporting a stop to GDB. Handle explicit thread stop requests.
14735 (async_file_flush, async_file_mark): New.
14736 (linux_wait): New.
14737 (send_sigstop): Use lwpid_of.
14738 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
14739 interface changes. In non-stop mode, don't switch to a random
14740 thread.
14741 (linux_resume_one_lwp): Use lwpid_of.
14742 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
14743 (linux_resume_one_thread): ... this. Handle resume_stop. In
14744 non-stop mode, don't look for pending flag in all threads.
14745 (resume_status_pending_p): Don't consider explicitly suspended
14746 threads.
14747 (my_waitpid): Reimplement. Emulate __WALL.
14748 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
14749 Use lwpid_of.
14750 (sigchld_handler, linux_supports_non_stop, linux_async)
14751 (linux_start_non_stop): New.
14752 (linux_target_ops): Register linux_supports_non_stop, linux_async
14753 and linux_start_non_stop.
14754 (initialize_low): Install SIGCHLD handler.
14755 * thread-db.c (thread_db_create_event, find_one_thread)
14756 (thread_db_get_tls_address): Use lwpid_of.
14757 * win32-low.c (win32_detach): Adjust to use resume_kind.
14758 (win32_wait): Add `options' argument.
14759 * spu-low.c (spu_resume): Adjust to use resume_kind.
14760 (spu_wait): Add `options' argument.
14761
5b1c542e
PA
147622009-04-01 Pedro Alves <pedro@codesourcery.com>
14763
14764 Decouple target code from remote protocol.
14765
14766 * target.h (enum target_waitkind): New.
14767 (struct target_waitstatus): New.
14768 (struct target_ops) <wait>: Return an unsigned long. Take a
14769 target_waitstatus pointer instead of a char pointer.
14770 (mywait): Likewise.
14771 * target.c (mywait): Change prototype to return an unsigned long.
14772 Take a target_waitstatus pointer instead of a char pointer. Adjust.
14773 * server.h (thread_from_wait, old_thread_from_wait): Delete
14774 declarations.
14775 (prepare_resume_reply): Change prototype to take a
14776 target_waitstatus.
14777 * server.c (thread_from_wait, old_thread_from_wait): Delete.
14778 (last_status, last_ptid): New.
14779 (start_inferior): Remove "statusptr" argument. Adjust. Return a
14780 pid instead of a signal.
14781 (attach_inferior): Remove "status" and "signal" parameters.
14782 Adjust.
14783 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
14784 not as an address.
14785 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
14786 (handle_v_requests, myresume): Remove "status" and "signal"
14787 parameters. Adjust.
14788 (handle_status): New.
14789 (main): Delete local `status'. Adjust.
14790 * remote-utils.c: Include target.h.
14791 (prepare_resume_reply): Change prototype to take a
14792 target_waitstatus. Adjust.
14793
14794 * linux-low.c (linux_wait): Adjust to new target_ops->wait
14795 interface.
14796 * spu-low.c (spu_wait): Adjust.
14797 * win32-low.c (enum target_waitkind, struct target_waitstatus):
14798 Delete.
14799 (win32_wait): Adjust.
14800
2bd7c093
PA
148012009-04-01 Pedro Alves <pedro@codesourcery.com>
14802
14803 * target.h (struct thread_resume): Delete leave_stopped member.
14804 (struct target_ops): Add a `n' argument to the `resume' callback.
14805 * server.c (start_inferior): Adjust.
14806 (handle_v_cont, myresume): Adjust.
14807 * linux-low.c (check_removed_breakpoint): Adjust to resume
14808 interface change, and to removed leave_stopped field.
14809 (resume_ptr): Delete.
14810 (struct thread_resume_array): New.
14811 (linux_set_resume_request): Add new `arg' parameter. Adjust to
14812 resume interface change.
14813 (linux_continue_one_thread, linux_queue_one_thread)
14814 (resume_status_pending_p): Check if the resume field is NULL
14815 instead of checking the leave_stopped member.
14816 (linux_resume): Adjust to the target resume interface change.
14817 * spu-low.c (spu_resume): Adjust to the target resume interface
14818 change.
14819 * win32-low.c (win32_detach, win32_resume): Ditto.
14820
c35fafde
PA
148212009-04-01 Pedro Alves <pedro@codesourcery.com>
14822
14823 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
14824 flag.
14825 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
14826 pending.
14827 (linux_continue_one_thread): Only preserve the stepping flag if
14828 there's a pending breakpoint.
14829
0a59d50b
PA
148302009-03-31 Pedro Alves <pedro@codesourcery.com>
14831
14832 * server.c (main): After the inferior having exited, call
14833 remote_close before exiting gdbserver.
14834
f04c6d38
TJB
148352009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
14836
14837 Fix size of FPSCR in Power 7 processors.
14838 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
14839 (PPC_FEATURE_HAS_DFP): New #define.
14840 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
14841 size of the FPSCR.
14842
78e5cee6
PA
148432009-03-23 Pedro Alves <pedro@codesourcery.com>
14844
14845 * server.c (handle_query) Whitespace and formatting.
14846
1b3f6016
PA
148472009-03-22 Pedro Alves <pedro@codesourcery.com>
14848
14849 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
14850 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
14851 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
14852 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
14853 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
14854 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
14855 Makefile.in, configure.ac: Fix whitespace throughout.
14856 * configure: Regenerate.
14857
a07b2135
PA
148582009-03-22 Pedro Alves <pedro@codesourcery.com>
14859
14860 * inferiors.c (find_inferior): Make it safe for the callback
14861 function to delete the currently iterated inferior.
14862
67cc2626
PA
148632009-03-22 Pedro Alves <pedro@codesourcery.com>
14864
14865 * Makefile.in (linuw_low_h): Move higher.
14866 (thread-db.o): Depend on $(linux_low_h).
14867
54a0b537
PA
148682009-03-17 Pedro Alves <pedro@codesourcery.com>
14869
14870 Rename "process" to "lwp" throughout.
14871
14872 * linux-low.c (all_processes): Rename to...
14873 (all_lwps): ... this.
14874 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
14875 (add_process): Rename to ...
14876 (add_lwp): ... this. Adjust.
14877 (linux_create_inferior): Adjust.
14878 (linux_attach_lwp): Adjust.
14879 (linux_attach): Adjust.
14880 (linux_kill_one_process): Rename to ...
14881 (linux_kill_one_lwp): ... this. Adjust.
14882 (linux_kill): Adjust.
14883 (linux_detach_one_process): Rename to ...
14884 (linux_detach_one_lwp): ... this. Adjust.
14885 (linux_detach): Adjust.
14886 (check_removed_breakpoint): Adjust.
14887 (status_pending_p): Adjust.
14888 (linux_wait_for_process): Rename to ...
14889 (linux_wait_for_lwp): ... this. Adjust.
14890 (linux_wait_for_event): Adjust.
14891 (send_sigstop): Adjust.
14892 (wait_for_sigstop): Adjust.
14893 (stop_all_processes): Rename to ...
14894 (stop_all_lwps): ... this.
14895 (linux_resume_one_process): Rename to ...
14896 (linux_resume_one_lwp): ... this. Adjust.
14897 (linux_set_resume_request, linux_continue_one_thread)
14898 (linux_queue_one_thread, resume_status_pending_p)
14899 (usr_store_inferior_registers, regsets_store_inferior_registers)
14900 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
14901 Adjust.
14902 * linux-low.h (get_process): Rename to ...
14903 (get_lwp): ... this. Adjust.
14904 (get_thread_process): Rename to ...
14905 (get_thread_lwp): ... this. Adjust.
14906 (get_process_thread): Rename to ...
14907 (get_lwp_thread): ... this. Adjust.
14908 (struct process_info): Rename to ...
14909 (struct lwp_info): ... this.
14910 (all_processes): Rename to ...
14911 (all_lwps): ... this.
14912 * proc-service.c (ps_lgetregs): Adjust.
14913 * thread-db.c (thread_db_create_event, find_one_thread)
14914 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
14915
0b16c5cf
PA
149162009-03-14 Pedro Alves <pedro@codesourcery.com>
14917
14918 * server.c (handle_query): Handle "qAttached".
14919
32de4b9d
NS
149202009-03-13 Nathan Sidwell <nathan@codesourcery.com>
14921
14922 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
14923 GPLv3, update license URL.
14924
2aecd87f
DE
149252009-03-01 Doug Evans <dje@google.com>
14926
93efd302 14927 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
14928 (server_h): Add gdb_signals.h.
14929 (signals.o): Update.
14930 * server.h (target_signal_from_host,target_signal_to_host_p)
14931 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
14932
86b1f9c5
PM
149332009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
14934
14935 * remote-utils.c (getpkt): Also generate remote-debug
14936 information if noack_mode is set.
14937
4aa995e1
PA
149382009-02-06 Pedro Alves <pedro@codesourcery.com>
14939
14940 * server.c (handle_query): Report qXfer:siginfo:read and
14941 qXfer:siginfo:write as supported and handle them.
14942 * target.h (struct target_ops) <qxfer_siginfo>: New field.
14943 * linux-low.c (linux_xfer_siginfo): New.
14944 (linux_target_ops): Set it.
14945
62709adf
PA
149462009-01-26 Pedro Alves <pedro@codesourcery.com>
14947
14948 * server.c (gdbserver_usage): Mention --remote-debug.
14949 (main): Accept '--remote-debug' switch.
14950
aef93bd7
DE
149512009-01-18 Doug Evans <dje@google.com>
14952
14953 * regcache.c (new_register_cache): No need to check result of xcalloc.
14954 * server.c (handle_search_memory): Back out calls to xmalloc,
14955 result is checked and error is returned to user upon failure.
14956 (handle_query): Ditto. Add more checks for result of malloc.
14957 (handle_v_cont): Check result of malloc, report error back to
14958 user upon failure.
14959 (handle_v_run): Ditto. Call freeargv.
14960 * server.h (freeargv): Declare.
14961 * utils.c (freeargv): New fn.
14962
54363045
DE
149632009-01-15 Doug Evans <dje@google.com>
14964
f626972c
DE
14965 * gdbreplay.c (perror_with_name): Make arg const char *.
14966 * server.h (target_signal_to_name): Make return type const char *.
0842e787 14967 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 14968 * utils.c (perror_with_name): Make arg const char *.
54363045 14969
18aae699
PA
149702009-01-14 Pedro Alves <pedro@codesourcery.com>
14971
14972 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
14973 when handling a EXIT_PROCESS_DEBUG_EVENT.
14974
ff703abe
JB
149752009-01-06 Joel Brobecker <brobecker@adacore.com>
14976
14977 * gdbreplay.c (gdbreplay_version): Update copyright year.
14978 * server.c (gdbserver_version): Likewise.
14979
f21cc1a2 149802009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
14981
14982 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 14983 (handle_extended_wait): Improve comment.
0e21c1ec 14984
bca929d3
DE
149852008-12-13 Doug Evans <dje@google.com>
14986
14987 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
14988 * server.h (ATTR_MALLOC): New macro.
14989 (xmalloc,xcalloc,xstrdup): Declare.
14990 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
14991 * inferiors.c: Ditto.
14992 * linux-low.c: Ditto.
14993 * mem-break.c: Ditto.
14994 * regcache.c: Ditto.
14995 * remote-utils.c: Ditto.
14996 * server.c: Ditto.
14997 * target.c: Ditto.
14998 * win32-low.c: Ditto.
14999
97438e3f
DE
150002008-12-12 Doug Evans <dje@google.com>
15001
896c7fbb
DE
15002 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
15003 in debugging printf.
15004
97438e3f
DE
15005 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
15006
e3b886f8
DE
150072008-12-09 Doug Evans <dje@google.com>
15008
15009 * linux-low.h (struct process_info): Delete member tid, unused.
15010 * thread-db.c (find_one_thread): Update.
15011 (maybe_attach_thread): Update.
15012
07e059b5
VP
150132008-12-02 Pedro Alves <pedro@codesourcery.com>
15014
889bf7c5
PA
15015 * target.h (struct target_ops): Add qxfer_osdata member.
15016 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
15017 and dirent.h.
15018 (linux_qxfer_osdata): New functions.
15019 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
15020 callback.
15021 * server.c (handle_query): Handle "qXfer:osdata:read:".
15022 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
15023 (buffer_xml_printf): New functions.
15024 * server.h (struct buffer): New.
15025 (buffer_grow_str, buffer_grow_str0): New macros.
15026 (buffer_grow, buffer_free, buffer_init, buffer_finish)
15027 (buffer_xml_printf): Declare.
07e059b5 15028
4cab47ab
DE
150292008-11-24 Doug Evans <dje@google.com>
15030
15031 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
15032
f142445f
DJ
150332008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
15034
15035 * server.c (handle_v_run): Always use the supplied argument list.
15036
d0107bb6 150372008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 15038
d0107bb6
BW
15039 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
15040 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 15041
2c4ad781
TJB
150422008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
15043
15044 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
15045 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
15046 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
15047 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
15048 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
15049 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
15050 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
15051 XML target descriptions.
15052 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
15053 when inferior is running on an ISA 2.05 or later processor. Add
15054 special case to return offset for full 64-bit slot of FPSCR when
15055 in 32-bits.
15056
dfb64f85
DJ
150572008-11-14 Daniel Gutson <dgutson@codesourcery.com>
15058
15059 * Makefile.in (SFILES, clean): Added sparc64 files.
15060 (reg-sparc64.o, reg-sparc64.c): New.
15061 * configure.srv (sparc*-*-linux*): New configuration.
15062 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
15063 syscall arguments for SPARC.
15064 (regsets_store_inferior_registers): Likewise.
15065 * linux-sparc-low.c: New file.
15066
66b6e1dd
DE
150672008-10-21 Doug Evans <dje@google.com>
15068
15069 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
15070 (READLINE_DIR,READLINE_DEP): Delete.
15071 (INTERNAL_CFLAGS): Update.
15072 (LINTFLAGS): Update.
15073
9b710a42
PA
150742008-10-10 Pedro Alves <pedro@codesourcery.com>
15075
15076 * server.c (handle_v_run): If GDB didn't specify an argv, use the
15077 whole argv from the last run, not just argv[0].
15078
5822d809
PA
150792008-09-08 Pedro Alves <pedro@codesourcery.com>
15080
15081 * regcache.c (new_register_cache): Return NULL if the register
15082 cache size isn't known yet.
15083 (free_register_cache): Avoid dereferencing a NULL regcache.
15084
74aac56f
DJ
150852008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
15086
15087 * configure.srv: Merge MIPS and MIPS64.
15088
400b20f5
MR
150892008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
15090
15091 * Makefile.in (uninstall): Apply $(EXEEXT) too.
15092
677c5bb1
LM
150932008-08-18 Luis Machado <luisgpm@br.ibm.com>
15094
15095 * Makefile.in: Add required vsx dependencies.
15096
15097 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
15098 Declare init_registers_powerpc_vsx32l.
15099 Declare init_registers_powerpc_vsx64l.
15100 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
15101 (ppc_arch_setup): Check for VSX in hwcap.
15102 (ppc_fill_vsxregset): New function.
15103 (ppc_store_vsxregset): New function.
15104 Add new VSX entry in regset_info target_regsets.
15105
15106 * configure.srv: Add new VSX dependencies.
15107
a6f3e723
SL
151082008-08-12 Pedro Alves <pedro@codesourcery.com>
15109
15110 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
15111 (remote_open): Set or clear transport_is_reliable.
15112 (putpkt_binary): Don't expect acks in noack mode.
15113 (getpkt): Don't send ack/nac in noack mode.
15114 * server.c (handle_general_set): Handle QStartNoAckMode.
15115 (handle_query): If connected by tcp pass QStartNoAckMode+ in
15116 qSupported.
15117 (main): Reset noack_mode on every connection.
15118 * server.h (noack_mode): Declare.
15119
a417dc56
RW
151202008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15121
15122 * Makefile.in (GDBREPLAY_OBS): New variable.
15123 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
15124
3221518c
UW
151252008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
15126 Daniel Jacobowitz <dan@codesourcery.com>
15127
15128 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
15129 (usr_store_inferior_registers): Likewise.
15130 (regsets_store_inferior_registers): Likewise.
15131
ec56be1b
PA
151322008-07-31 Rolf Jansen <rj@surtec.com>
15133 Pedro Alves <pedro@codesourcery.com>
15134
15135 * configure.ac: Check for memmem declaration.
15136 * server.c [HAVE_MALLOC_H]: Include malloc.h.
15137 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
15138 (disable_packet_qfThreadInfo): Unconditionally compile.
15139 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
15140 * configure, config.in: Regenerate.
15141
2fe5e3ff
DE
151422008-07-28 Doug Kwan <dougkwan@google.com>
15143
15144 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
15145 (linux_write_memory): Remove declaration of errno.
15146
836acd6d
UW
151472008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
15148
15149 * linux-low.c (handle_extended_wait): Do not use "status"
15150 variable uninitialized.
15151
aeba519e
PA
151522008-07-07 Pedro Alves <pedro@codesourcery.com>
15153
15154 * server.c (handle_v_attach): Inhibit reporting dll changes.
15155
db42f210
PA
151562008-06-27 Pedro Alves <pedro@codesourcery.com>
15157
15158 * remote-utils.c (prepare_resume_reply): If requested, don't
15159 output "thread:TID" in the T stop reply.
15160
15161 * server.c (disable_packet_vCont, disable_packet_Tthread)
15162 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
15163 (handle_query): If requested, disable support for qC, qfThreadInfo
15164 and qsThreadInfo.
15165 (handle_v_requests): If requested, disable support for vCont.
15166 (gdbserver_show_disableable): New.
15167 (main): Handle --disable-packet and --disable-packet=LIST.
15168
15169 * server.h (disable_packet_vCont, disable_packet_Tthread)
15170 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
15171
8e4c5421
CD
151722008-06-20 Carlos O'Donell <carlos@codesourcery.com>
15173
15174 * server.c (gdbserver_usage): Mention --version.
15175
6e23a804
DJ
151762008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
15177
15178 * Makefile.in (gdbreplay.o): New rule.
15179
90aa6a40
JM
151802008-06-06 Joseph Myers <joseph@codesourcery.com>
15181
15182 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
15183 message, not gdbserver.
15184
c16158bc 151852008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
15186 Nathan Sidwell <nathan@codesourcery.com>
15187 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
15188
15189 * acinclude.m4: Include ../../config/acx.m4.
15190 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
15191 * configure, config.in: Regenerate.
15192 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
15193 * server.c (gdbserver_version): Print PKGVERSION.
15194 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
15195 (main): Adjust gdbserver_usage calls.
15196 * gdbreplay.c (version, host_name): Add declarations.
15197 (gdbreplay_version, gdbreplay_usage): New.
15198 (main): Accept --version and --help options.
15199
aeb75bf5
DJ
152002008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
15201
15202 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
15203 (arm_breakpoint_at): Handle Thumb.
15204 (the_low_target): Add comment.
15205
76b233dd
UW
152062008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
15207
15208 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
15209
08388c79
DE
152102008-05-09 Doug Evans <dje@google.com>
15211
a3c83fae
DE
15212 * server.h (decode_search_memory_packet): Declare.
15213 * remote-utils.c (decode_search_memory_packet): New fn.
15214 * server.c (handle_search_memory_1): New fn.
08388c79
DE
15215 (handle_search_memory): New fn.
15216 (handle_query): Process qSearch:memory packets.
15217
bb9c3d36
UW
152182008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
15219
15220 * regcache.c (registers_length): Remove.
15221 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
15222 full register packet.
15223 * regcache.h (registers_length): Remove prototype.
15224 * server.h (PBUFSIZ): Define to 16384.
15225
7284e1be
UW
152262008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
15227
15228 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
15229 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
15230 powerpc-64l.o, and powerpc-altivec64l.o.
15231 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
15232 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
15233 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
15234 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
15235 rs6000/power-linux.xml, and rs6000/power64-linux.xml
15236 to srv_xmlfiles.
15237
15238 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
15239 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
15240 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
15241 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
15242 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
15243 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
15244 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
15245 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
15246 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
15247 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
15248 (clean): Update.
15249
15250 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
15251 (init_registers_powerpc_32l): ... this new prototype.
15252 (init_registers_powerpc_32): Remove, replace by ...
15253 (init_registers_powerpc_altivec32l): ... this new prototype.
15254 (init_registers_powerpc_e500): Remove, replace by ...
15255 (init_registers_powerpc_e500l): ... this new prototype.
15256 (init_registers_ppc64): Remove, replace by ...
15257 (init_registers_powerpc_64l): ... this new prototype.
15258 (init_registers_powerpc_64): Remove, replace by ...
15259 (init_registers_powerpc_altivec64l): ... this new prototype.
15260 (ppc_num_regs): Set to 73.
15261 (PT_ORIG_R3, PT_TRAP): Define if necessary.
15262 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
15263 (ppc_cannot_store_register): Handle orig_r3 and trap.
15264 (ppc_arch_setup): Update init_registers_... calls.
15265 (ppc_fill_gregset): Handle orig_r3 and trap.
15266
15267 * inferiors.c (clear_inferiors): Reset current_inferior.
15268
fdc59709
PB
152692008-04-23 Paolo Bonzini <bonzini@gnu.org>
15270
889bf7c5
PA
15271 * acinclude.m4: Add override.m4.
15272 * configure: Regenerate.
fdc59709 15273
c9b2f845
UW
152742008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
15275
15276 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
15277 initial call to init_register_ppc64.
15278
550512b8
UW
152792008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
15280
43aaf8b6
PA
15281 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
15282 single powerpc*-*-linux* case.
550512b8
UW
15283 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
15284
b6430ec3
UW
152852008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
15286
15287 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 15288 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
15289 from reg_xmlfiles.
15290 * linux-ppc-low.c: Include <elf.h>.
15291 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
15292 (ppc_hwcap): New global variable.
15293 (ppc_regmap): Remove __SPE__ #ifdef sections.
15294 (ppc_regmap_e500): New global variable.
15295 (ppc_cannot_store_register): Update __SPE__ special case.
15296 (ppc_get_hwcap): New function.
15297 (ppc_arch_setup): Use it to determine whether inferior supports
15298 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
15299 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
15300 Do not access registers if target does not support AltiVec.
15301 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
15302 Do not access registers if target does not support SPE.
15303 (target_regsets): Unconditionally include AltiVec and SPE regsets.
15304
52fa2412
UW
153052008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
15306
15307 * linux-low.c (disabled_regsets, num_regsets): New.
15308 (use_regsets_p): Delete.
15309 (linux_wait_for_process): Clear disabled_regsets.
15310 (regsets_fetch_inferior_registers): Check and set it.
15311 (regsets_store_inferior_registers): Likewise.
15312 (linux_fetch_registers, linux_store_registers): Do not use
15313 use_regsets_p.
15314 (initialize_low): Allocate disabled_regsets.
15315
e28b3332
DJ
153162008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
15317
15318 * Makefile.in (LIBOBJS): New.
15319 (OBS): Use LIBOBJS.
15320 (memmem.o): New rule.
15321 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
15322 * configure: Regenerated.
15323
4536995d
UW
153242008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
15325
15326 * server.c (handle_query): Never return "unsupported" for
15327 qXfer:features:read queries.
15328
221c031f
UW
153292008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
15330
15331 * server.c (get_features_xml): Fix inverted condition.
15332 (handle_query): Always support qXfer:feature:read.
15333
ccd213ac
DJ
153342008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
15335
15336 * server.c (wrapper_argv): New.
15337 (start_inferior): Handle wrapper_argv. If set, expect an extra
15338 trap.
15339 (gdbserver_usage): Document --wrapper.
15340 (main): Parse --wrapper.
15341
6fe305f7
UW
153422008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15343
15344 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
15345 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
15346 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
15347 (ppc_set_pc): Likewise.
15348 (ppc_arch_setup): New function.
15349 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
15350 of collect_register.
889bf7c5 15351 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 15352
5b0a002e
UW
153532008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15354
15355 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
15356 instead of linux-ppc64-low.o.
15357 * linux-ppc64-low.c: Remove file.
15358 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
15359 (linux-ppc64-low.o): Remove rule.
15360
15361 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
15362 (init_registers_powerpc_64): Likewise.
15363 (ppc_regmap): Conditionally define depending on __powerpc64__.
15364 (ppc_cannot_store_register): Do not special-case "fpscr" when
15365 compiled on __powerpc64__.
15366 (ppc_collect_ptrace_register): New function.
15367 (ppc_supply_ptrace_register): New function.
15368 (ppc_breakpoint): Change type to "unsigned int".
15369 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
15370 (the_low_target): Conditionally provide initializers for the
889bf7c5 15371 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
15372 collect_ptrace_register and supply_ptrace_register members.
15373
9b4b61c8
UW
153742008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15375
15376 * regcache.h (gdbserver_xmltarget): Add extern declaration.
15377 * server.c (gdbserver_xmltarget): Define.
15378 (get_features_xml): Use it to replace "target.xml" and arch_string.
15379
15380 * configure.srv: Remove srv_xmltarget. Add XML files that were
15381 mentioned there to srv_xmlfiles instead. Remove conditional tests
15382 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
15383 srv_xmlfiles and srv_regobj to include all possible choices.
15384 * configure.ac (srv_xmltarget): Remove.
15385 (srv_xmlfiles): Do not add "target.xml".
15386 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
15387 checks for supplementary target information.
15388 * configure: Regenerate.
15389 * Makefile.in (XML_TARGET): Remove.
15390 (target.xml): Remove rule.
15391 (clean): Do not clean up target.xml.
15392 (.PRECIOUS): Do not mention target.xml.
15393
15394 * target.h (struct target_ops): Remove arch_string member.
15395 * linux-low.c (linux_arch_string): Remove.
15396 (linux_target_ops): Remove arch_string initializer.
15397 * linux-low.h (struct linux_target_ops): Remove arch_string member.
15398 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
15399 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
15400 * spu-low.c (spu_arch_string): Remove.
15401 (spu_target_ops): Remove arch_string initializer.
15402 * win32-low.c (win32_arch_string): Remove.
15403 (win32_target_ops): Remove arch_string initializer.
15404 * win32-low.h (struct win32_target_ops): Remove arch_string member.
15405 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
15406 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
15407
ee1a7ae4
UW
154082008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15409
15410 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
15411 by collect_ptrace_register and supply_ptrace_register hooks.
15412 * linux-low.c (fetch_register): Use supply_ptrace_register callback
15413 instead of checking for the_low_target.left_pad_xfer.
15414 (usr_store_inferior_registers): Use collect_ptrace_register callback
15415 instead of checking for the_low_target.left_pad_xfer.
15416
15417 * linux-s390-low.c (s390_collect_ptrace_register): New function.
15418 (s390_supply_ptrace_register): Likewise.
15419 (s390_fill_gregset): Call s390_collect_ptrace_register.
15420 (the_low_target): Update.
15421
15422 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
15423 (ppc_supply_ptrace_register): Likewise.
15424 (the_low_target): Update.
15425
15426 * linux-i386-low.c (the_low_target): Update.
15427 * linux-x86-64-low.c (the_low_target): Update.
15428
d61ddec4
UW
154292008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15430
15431 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
15432 reg-s390.o and reg-s390x.o.
15433
15434 * linux-low.c (new_inferior): New global variable.
15435 (linux_create_inferior, linux_attach): Set it.
15436 (linux_wait_for_process): Call the_low_target.arch_setup after the
15437 target has stopped for the first time.
15438 (initialize_low): Do not call the_low_target.arch_setup.
15439
15440 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
15441 (s390_set_pc): Likewise.
15442 (s390_arch_setup): New function.
15443 (the_low_target): Use s390_arch_setup as arch_setup routine.
15444
15445 * regcache.c (realloc_register_cache): New function.
15446 (set_register_cache): Call it for each existing regcache.
15447
d05b4ac3
UW
154482008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15449
15450 * server.h (init_registers): Remove prototype.
15451
15452 * linux-low.h (struct linux_target_ops): Add arch_setup field.
15453 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
15454 instead of init_registers ().
15455 * linux-arm-low.c (init_registers_arm): Add prototype.
15456 (init_registers_arm_with_iwmmxt): Likewise.
15457 (the_low_target): Add initializer for arch_setup field.
15458 * linux-cris-low.c (init_registers_cris): Add prototype.
15459 (the_low_target): Add initializer for arch_setup field.
15460 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
15461 (the_low_target): Add initializer for arch_setup field.
15462 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
15463 (the_low_target): Add initializer for arch_setup field.
15464 * linux-ia64-low.c (init_registers_ia64): Add prototype.
15465 (the_low_target): Add initializer for arch_setup field.
15466 * linux-m32r-low.c (init_registers_m32r): Add prototype.
15467 (the_low_target): Add initializer for arch_setup field.
15468 * linux-m68k-low.c (init_registers_m68k): Add prototype.
15469 (the_low_target): Add initializer for arch_setup field.
15470 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
15471 (init_registers_mips64_linux): Likewise.
15472 (the_low_target): Add initializer for arch_setup field.
15473 * linux-ppc-low.c (init_registers_ppc): Add prototype.
15474 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
15475 (the_low_target): Add initializer for arch_setup field.
15476 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
15477 (init_registers_powerpc_64): Likewise.
15478 (the_low_target): Add initializer for arch_setup field.
15479 * linux-s390-low.c (init_registers_s390): Add prototype.
15480 (init_registers_s390x): Likewise.
15481 (the_low_target): Add initializer for arch_setup field.
15482 * linux-sh-low.c (init_registers_sh): Add prototype.
15483 (the_low_target): Add initializer for arch_setup field.
15484 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
15485 (the_low_target): Add initializer for arch_setup field.
15486 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
15487 (the_low_target): Add initializer for arch_setup field.
15488
15489 * win32-low.h (struct win32_target_ops): Add arch_setup field.
15490 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
15491 instead of init_registers ().
15492 * win32-arm-low.c (init_registers_arm): Add prototype.
15493 (the_low_target): Add initializer for arch_setup field.
15494 * win32-i386-low.c (init_registers_i386): Add prototype.
15495 (the_low_target): Add initializer for arch_setup field.
15496
15497 * spu-low.c (init_registers_spu): Add prototype.
15498 (initialize_low): Call initialie_registers_spu () instead of
15499 initialize_registers ().
15500
fd96d250
PA
155012008-02-19 Pedro Alves <pedro@codesourcery.com>
15502
15503 * server.c (handle_v_requests): When handling the vRun and vAttach
15504 packets, if already debugging a process, don't kill it. Return an
15505 error instead.
15506
d41b6bb4
DJ
155072008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
15508
15509 * server.c (handle_query): Correct length check.
15510
5ac588cf
PA
155112008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
15512
15513 * win32-low.c (do_initial_child_stuff): Add process handle
15514 parameter. Set current_process_handle and current_process_id from the
15515 parameters. Clear globals.
15516 (win32_create_inferior): Don't set current_process_handle and
15517 current_process_id here. Instead pass them on the call to
15518 do_initial_child_stuff.
15519 (win32_attach): Likewise.
15520 (win32_clear_inferiors): New.
15521 (win32_kill): Don't close the current process handle or the
15522 current thread handle here. Instead call win32_clear_inferiors.
15523 (win32_detach): Don't open a new handle to the process. Call
15524 win32_clear_inferiors.
15525 (win32_join): Don't rely on current_process_handle; open a new
15526 handle using the process id.
15527 (win32_wait): Call win32_clear_inferiors when the inferior process
15528 has exited.
15529
ecd7ecbc
DJ
155302008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
15531
15532 * server.c (monitor_show_help): Add "exit".
15533
1525d545
MG
155342008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
15535
ecd7ecbc 15536 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
15537 (clean): Add reg-xtensa.c.
15538 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
15539 * configure.srv (xtensa*-*-linux*) New target.
15540 * linux-xtensa-low.c: New.
15541 * xtensa-xtregs.c: New.
1525d545 15542
59a016f0
PA
155432008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
15544
15545 * hostio.c: Don't include errno.h.
15546 (errno_to_fileio_errno): Move to hostio-errno.
15547 * hostio.c: (hostio_error): Remove the error parameter. Defer the
15548 error number outputting to the target->hostio_last_error callback.
15549 (hostio_packet_error): Use FILEIO_EINVAL directly.
15550 (handle_open, handle_pread, hostio_error, handle_unlink): Update
15551 calls to hostio_error.
15552 * hostio-errno.c: New.
15553 * server.h (hostio_last_error_from_errno): Declare.
15554 * target.h (target_ops): Add hostio_last_error member.
15555 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
15556 as hostio_last_error handler.
889bf7c5 15557 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
15558 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
15559 (wince_hostio_last_error): New functions.
15560 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
15561 as hostio_last_error handler.
15562 (win32_target_ops) [!_WIN32_WCE]: Register
15563 hostio_last_error_from_errno as hostio_last_error handler.
15564 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
15565 (hostio-errno.o): New rule.
15566 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
15567 * configure.srv (srv_hostio_err_objs): New variable. Default to
15568 hostio-errno.o.
15569 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
15570 * configure: Regenerate.
15571
2d717e4f
DJ
155722008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
15573
15574 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
15575 (linux_kill, linux_detach): Clean up the process list.
15576 * remote-utils.c (remote_open): Improve port number parsing.
15577 (putpkt_binary, input_interrupt): Only send interrupts if the target
15578 is running.
15579 * server.c (extended_protocol): Make static.
15580 (attached): Define earlier.
15581 (exit_requested, response_needed, program_argv): New variables.
15582 (target_running): New.
15583 (start_inferior): Clear attached here.
15584 (attach_inferior): Set attached here.
15585 (require_running): Define.
15586 (handle_query): Use require_running and target_running. Implement
15587 "monitor exit".
15588 (handle_v_attach, handle_v_run): New.
15589 (handle_v_requests): Use require_running. Handle vAttach and vRun.
15590 (gdbserver_usage): Update.
15591 (main): Redo argument parsing. Handle --debug and --multi. Handle
15592 --attach along with other options or after the port. Save
15593 program_argv. Support no initial program. Resynchronize
15594 communication with GDB after an error. Handle "monitor exit".
15595 Use require_running and target_running. Always allow the extended
15596 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
15597 restart in extended mode.
15598 * README: Refer to the GDB manual. Update --attach usage.
15599
7407e2de
AS
156002007-12-20 Andreas Schwab <schwab@suse.de>
15601
15602 * linux-low.c (STACK_SIZE): Define.
15603 (linux_tracefork_child): Use it. Use __clone2 on ia64.
15604 (linux_test_for_tracefork): Likewise.
15605
b65d95c5
DJ
156062007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
15607
15608 * linux-low.c (linux_wait_for_event): Update messages. Do not
15609 reinsert auto-delete breakpoints.
15610 * mem-break.c (struct breakpoint): Change return type of handler to
15611 int.
15612 (set_breakpoint_at): Update handler type.
15613 (reinsert_breakpoint_handler): Return 1 instead of calling
15614 delete_breakpoint.
15615 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
15616 setting a new one.
15617 (check_breakpoints): Delete auto-delete breakpoints and return 2.
15618 * mem-break.h (set_breakpoint_at): Update handler type.
15619 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
15620 * win32-low.c (auto_delete_breakpoint): New.
15621 (get_child_debug_event): Use it.
15622
4e799345
DJ
156232007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
15624
15625 * configure.ac: Check for pread and pwrite.
15626 * hostio.c (handle_pread): Fall back to lseek and read.
15627 (handle_pwrite): Fall back to lseek and write.
15628 * config.in, configure: Regenerated.
15629
27524b67
DJ
156302007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
15631
15632 * server.c (myresume): Add own_buf argument.
15633 (main): Update calls.
15634
a20d5e98
DJ
156352007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
15636
15637 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
15638 * remote-utils.c (remote_open): Do not call disable_async_io.
15639 (block_async_io): Delete.
15640 (unblock_async_io): Make static.
15641 (initialize_async_io): New.
15642 * server.c (handle_v_cont): Handle async I/O here.
15643 (myresume): Likewise. Move other common resume tasks here...
15644 (main): ... from here. Call initialize_async_io. Disable async
15645 I/O before the main loop.
15646 * server.h (initialize_async_io): Declare.
15647 (block_async_io, unblock_async_io): Delete prototypes.
15648 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
15649
b79d787e
DJ
156502007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
15651
15652 * remote-utils.c (readchar): Allow binary data in received messages.
15653
d97903b2
PA
156542007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15655
15656 * win32-low.c (attaching): New global.
15657 (win32_create_inferior): Clear the `attaching' global.
15658 (win32_attach): Set the `attaching' global.
15659 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
15660 attaching. Only set a breakpoint at the entry point if not
15661 attaching.
15662
311de423
PA
156632007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15664
15665 * server.c (main): Don't report dll events on the initial
15666 connection on attaches.
15667
6c2d16d2
PA
156682007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15669
15670 * server.c (main): Relax numerical bases supported for the pid of
15671 the --attach command line argument.
15672
5ca906e6
PA
156732007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15674
15675 * win32-low.c (win32_attach): Call OpenProcess before
15676 DebugActiveProcess, not after. Add last error output to error
15677 call.
15678
9c6c8194
PA
156792007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
15680
15681 * win32-low.c (win32_get_thread_context)
15682 (win32_set_thread_context): New functions.
15683 (thread_rec): Use win32_get_thread_context.
15684 (continue_one_thread, win32_resume): Use win32_set_thread_context.
15685 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
15686 field.
15687
4d5d1aaa
PA
156882007-12-03 Leo Zayas
15689 Pedro Alves <pedro_alves@portugalmail.pt>
15690
15691 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
15692 global variables.
15693 (child_add_thread): Minor cleanup.
15694 (child_continue): Resume artificially suspended threads before
15695 calling ContinueDebugEvent.
15696 (suspend_one_thread): New.
15697 (fake_breakpoint_event): New.
15698 (get_child_debug_event): Change return type to int. Check here if
15699 gdb sent an interrupt request. If a soft interrupt was requested,
15700 fake a breakpoint event. Return 0 if there is no event to handle,
15701 and 1 otherwise.
15702 (win32_wait): Don't check here if gdb sent an interrupt request.
15703 Ensure there is a valid event to handle.
15704 (win32_request_interrupt): Add soft interruption method as last
15705 resort.
15706
c436e841
PA
157072007-12-03 Leo Zayas
15708 Pedro Alves <pedro_alves@portugalmail.pt>
15709
15710 * win32-low.h (win32_thread_info): Add descriptions to the
15711 structure members. Replace `suspend_count' counter by a
15712 `suspended' flag.
15713 * win32-low.c (thread_rec): Update condition of when to get the
15714 context from the inferior. Rely on ContextFlags being set if it
15715 has already been retrieved. Only suspend the inferior thread if
15716 we haven't already. Warn if that fails.
15717 (continue_one_thread): s/suspend_count/suspended/. Only call
15718 ResumeThread once. Warn if that fails.
15719
e7b5fa67
PA
157202007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
15721
15722 * win32-low.c (win32_wait): Don't read from the inferior when it
15723 has already exited.
15724
a385171d
PA
157252007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
15726
15727 * Makefile.in (win32_low_h): New variable.
15728 (win32-low.o): Add dependency on $(win32_low_h).
15729 (win32-arm-low.o, win32-i386-low.o): New rules.
15730
f80c84b3
DJ
157312007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
15732
15733 * hostio.c: Correct copyright year.
15734
a6b151f1
DJ
157352007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
15736
15737 * Makefile.in (OBS): Add hostio.o.
15738 (hostio.o): New rule.
15739 * server.h (handle_vFile): Declare.
15740 * hostio.c: New file.
15741 * server.c (handle_v_requests): Take packet_len and new_packet_len
15742 for binary packets. Call handle_vFile.
15743 (main): Update call to handle_v_requests.
15744
f9387fc3
DJ
157452007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
15746
15747 * linux-low.c: Include <sched.h>.
15748
51c2684e
DJ
157492007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
15750
15751 * linux-low.c (linux_tracefork_grandchild): New.
15752 (linux_tracefork_child): Use clone.
15753 (linux_test_for_tracefork): Use clone; allocate and free a stack.
15754
75f83163
JB
157552007-10-31 Joel Brobecker <brobecker@adacore.com>
15756
15757 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
15758
da5898ce
DJ
157592007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
15760
15761 * linux-low.c (handle_extended_wait): Handle unexpected signals.
15762
24a09b5f
DJ
157632007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
15764
15765 * inferiors.c (change_inferior_id): Delete.
15766 (add_pid_to_list, pull_pid_from_list): New.
15767 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
15768 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
15769 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
15770 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
15771 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
15772 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
15773 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
15774 (using_threads): Always set to 1.
15775 (handle_extended_wait): New.
15776 (add_process): Do not set TID.
15777 (linux_create_inferior): Set must_set_ptrace_flags.
15778 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
15779 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
15780 (linux_thread_alive): Rename TID argument to LWPID.
15781 (linux_wait_for_process): Handle unknown processes. Do not use TID.
15782 (linux_wait_for_event): Do not use TID or check using_threads. Update
15783 call to dead_thread_notify. Call handle_extended_wait.
15784 (linux_create_inferior): Use PTRACE_SETOPTIONS.
15785 (send_sigstop): Delete sigstop_sent.
15786 (wait_for_sigstop): Avoid TID.
15787 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
15788 (linux_test_for_tracefork): New.
15789 (linux_lookup_signals): Use thread_db_active and
15790 linux_supports_tracefork_flag.
15791 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
15792 * linux-low.h (get_process_thread): Avoid TID.
15793 (struct process_ifo): Move thread_known and tid to the end. Remove
15794 sigstop_sent.
15795 (linux_attach_lwp, thread_db_init): Update prototypes.
15796 * server.h (change_inferior_id): Delete prototype.
15797 (add_pid_to_list, pull_pid_from_list): New prototypes.
15798 * thread-db.c (thread_db_use_events): New.
15799 (find_first_thread): Rename to...
15800 (find_one_thread): ...this. Update callers and messages. Do not
15801 call fatal. Check thread_db_use_events. Do not call
15802 change_inferior_id or new_thread_notify.
15803 (maybe_attach_thread): Update. Do not call new_thread_notify.
15804 (thread_db_init): Set thread_db_use_events. Check use_events.
15805 * utils.c (fatal, warning): Correct message prefix.
15806
30ed0a8f
DJ
158072007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
15808
15809 * Makefile.in (clean): Remove new files.
15810 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
15811 (powerpc-64.o, powerpc-64.c): New rules.
15812 * configure.srv: Use alternate register sets for powerpc64-*-linux*
15813 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
15814 with SPE.
15815 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
15816 SPE targets.
15817 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
15818 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
15819 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
15820 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
15821 (target_regsets): Add AltiVec and SPE register sets.
15822 * configure.ac: Check for AltiVec and SPE.
15823 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
15824 (ppc_fill_vrregset, ppc_store_vrregset): New.
15825 (target_regsets): Add AltiVec register set.
15826 * configure: Regenerated.
15827
fd462a61
DJ
158282007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
15829
15830 * linux-low.c (O_LARGEFILE): Define.
15831 (linux_read_memory): Use /proc/PID/mem.
15832 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
15833 * configure, config.in: Regenerated.
15834
69f223ed
DJ
158352007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
15836
15837 * linux-low.c (linux_wait_for_event): Do not pass signals while
15838 single-stepping.
15839
aec18585
PA
158402007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
15841
15842 * win32-low.c (create_process): New.
15843 (win32_create_inferior): Use create_process instead of
15844 CreateProcess. If create_process failed retry appending an ".exe"
15845 suffix. Store the GetLastError result immediatelly after
15846 create_process calls and use it on the call to error.
15847
34d86ddd
PA
158482007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
15849
15850 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
15851
5a0e3bd0
JB
158522007-08-23 Joel Brobecker <brobecker@adacore.com>
15853
15854 * configure.ac: Switch license to GPLv3.
15855
f88c79e6
MS
158562007-08-01 Michael Snyder <msnyder@access-company.com>
15857
15858 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
15859
6b3d9b83
PA
158602007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
15861
15862 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
15863 typedef.
15864 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
15865 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
15866 CloseToolhelp32Snapshot.
15867 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
15868 CloseToolhelp32Snapshot.
15869
c588c53c
MS
158702007-07-27 Michael Snyder <michael.snyder@access-company.com>
15871
15872 * server.c (main): Check for inferior exit before main loop.
15873
aa0403d9
PA
158742007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
15875
15876 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
15877 instead of on tmp_desc.
15878
255e7678
DJ
158792007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
15880 Daniel Jacobowitz <dan@codesourcery.com>
15881
15882 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
15883 (add_thread): Minor cleanups.
15884 (clear_inferiors): Move lower in the file. Clear the DLL
15885 list.
15886 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
15887 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
15888 (xml_escape_text): New.
15889 * server.c (handle_query): Handle qXfer:libraries:read. Report it
15890 for qSupported.
15891 (handle_v_cont): Report errors.
15892 (gdbserver_version): Update.
15893 (main): Correct size of own_buf. Do not report initial DLL events.
15894 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
15895 (unloaded_dll, xml_escape_text): New.
15896 * win32-low.c (enum target_waitkind): Update comments.
15897 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
15898 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
15899 (win32_EnumProcessModules, win32_GetModuleInformation)
15900 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
15901 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
15902 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
15903 (win32_Module32First, win32_Module32Next, load_toolhelp)
15904 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
15905 (get_child_debug_event): Handle DLL events.
15906 (win32_wait): Likewise.
15907
0d37add9
DJ
159082007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
15909
15910 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
15911 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
15912
45e2715e
PA
159132007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
15914
15915 * win32-low.c (handle_output_debug_string): Ignore event if not
15916 waiting.
15917
c5674cf1
PA
159182007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
15919
15920 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
15921
2bbe3cc1
DJ
159222007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
15923
15924 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
15925
ae13219e
DJ
159262007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
15927
15928 * inferiors.c (change_inferior_id): Add comment.
15929 * linux-low.c (check_removed_breakpoint): Add an early
15930 prototype. Improve debug output.
15931 (linux_attach): Doc update.
15932 (linux_detach_one_process, linux_detach): Clean up before releasing
15933 each process.
15934 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
15935 * linux-low.h (struct process_info): Doc improvement.
15936 * mem-break.c (delete_all_breakpoints): New.
15937 * mem-break.h (delete_all_breakpoints): New prototype.
15938 * thread-db.c (find_first_thread): New.
15939 (thread_db_create_event): Call it instead of
15940 thread_db_find_new_threads. Clean up unused variables.
15941 (maybe_attach_thread): Remove first thread handling.
15942 (thread_db_find_new_threads): Use find_first_thread.
15943 (thread_db_get_tls_address): Likewise.
15944
4105de34
DJ
159452007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
15946
15947 * thread-db.c (thread_db_find_new_threads): Add prototype.
15948 (thread_db_create_event): Check for the main thread before adding
15949 a new thread.
15950 (maybe_attach_thread): Only enable event reporting if TID == 0.
15951 (thread_db_get_tls_address): Check for new threads.
15952
2b876972
DJ
159532007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
15954
15955 * linux-low.c (linux_create_inferior): Try execv before execvp.
15956 * spu-low.c (spu_create_inferior): Likewise.
15957
7a245884
DJ
159582007-06-13 Mike Frysinger <vapier@gentoo.org>
15959
15960 * linux-low.c (linux_create_inferior): Change execv to execvp.
15961 * spu-low.c (spu_create_inferior): Likewies.
15962
117ce543
DJ
159632007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
15964
15965 * Makefile.in (clean): Clean new files instead of deleted ones.
15966 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
15967 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
15968 rules.
15969 * configure.srv: Specify XML files and new regformats for MIPS and
15970 MIPS64 GNU/Linux.
15971 * linux-mips-low.c (mips_num_regs): Set to only used registers.
15972 (mips_regmap): Do not fetch $0. Remove unused registers. Add
15973 an entry for the restart register.
15974 (mips_cannot_fetch_register, mips_cannot_store_register)
15975 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
15976 register names to match the XML descriptions.
15977 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
15978 restart register instead of $0.
15979
0e7f50da
UW
159802007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
15981 Markus Deuling <deuling@de.ibm.com>
15982
15983 * remote-utils.c (decode_xfer_write): New function.
15984 * server.h (decode_xfer_write): Add prototype.
15985 * server.c (handle_query): Add PACKET_LEN argument. Support
15986 qXfer:spu:read and qXfer:spu:write packets.
15987 (main): Pass packet_len to handle_query.
15988 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
15989 * target.h (target_ops): Add qxfer_spu.
15990
374c1d38
UW
159912007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
15992
15993 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
15994 accessing non-seekable spufs files.
15995
bb63802a
UW
159962007-05-16 Markus Deuling <deuling@de.ibm.com>
15997
889bf7c5 15998 * server.c (handle_query): Add reply for qC packet.
bb63802a 15999
7390519e
PA
160002007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16001 Leo Zayas <lerele@champenstudios@com>
16002
16003 * server.h (check_remote_input_interrupt_request): New function.
16004 * remote_utils.c (INVALID_DESCRIPTOR): New define.
16005 (remote_desc): Initialize with INVALID_DESCRIPTOR.
16006 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
16007 (check_remote_input_interrupt_request): New function.
16008 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 16009 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
16010 winapi_GenerateConsoleCtrlEvent): New typedefs.
16011 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
16012 to 250 ms.
16013 (win32_wait): Check for remote interrupt request
16014 with check_remote_input_interrupt_request.
16015 (win32_request_interrupt): New function.
16016 (win32_target_op): Set request_interrupt to win32_request_interrupt.
16017
34b34921
PA
160182007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16019
16020 * win32-low.c (debug_registers_changed,
16021 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
16022 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
16023 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
16024 (thread_rec): Get context using the low target.
16025 (child_add_thread): Call thread_added on the low target,
16026 which does the same thing.
16027 (regptr): Delete.
16028 (do_initial_child_stuff): Remove debug registers references.
16029 Set context using the low target. Resume threads after
16030 setting the contexts.
16031 (child_continue): Remove dead variable. Remove debug
16032 registers references.
16033 (child_fetch_inferior_registers): Go through the low target.
16034 (do_child_store_inferior_registers): Remove.
16035 (child_store_inferior_registers): Go through the low target.
16036 (win32_resume): Remove debug registers references.
16037 Set context using the low target.
16038 (handle_exception): Change return type to void. Don't record
16039 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
16040 first chance exception.
889bf7c5 16041 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
16042 goto loop. Always return after waiting for debug event.
16043 (win32_wait): Convert to switch statement. Handle spurious
16044 events.
16045
16046 * win32-i386-low.c (debug_registers_changed,
16047 debug_registers_used): New.
16048 (initial_stuff): Rename to ...
16049 (i386_initial_stuff): ... this. Clear debug registers
16050 state variables.
16051 (store_debug_registers): Delete.
16052 (i386_get_thread_context): New.
16053 (load_debug_registers): Delete.
16054 (i386_set_thread_context): New.
16055 (i386_thread_added): New.
16056 (single_step): Rename to ...
16057 (i386_single_step): ... this.
16058 (do_fetch_inferior_registers): Rename to ...
16059 (i386_fetch_inferior_register): ... this.
16060 (i386_store_inferior_register): New.
16061 (the_low_target): Adapt to new interface.
16062
16063 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
16064 (arm_get_thread_context): New.
16065 (arm_set_thread_context): New.
16066 (regptr): New.
16067 (do_fetch_inferior_registers): Rename to ...
16068 (arm_fetch_inferior_register): ... this.
16069 (arm_store_inferior_register): New.
16070 (arm_wince_breakpoint): Reimplement as unsigned long.
16071 (arm_wince_breakpoint_len): Define.
16072 (the_low_target): Adapt to new interface.
16073
16074 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
16075 load_debug_registers. Add get_thread_context, set_thread_context,
16076 thread_added and store_inferior_register. Rename
16077 fetch_inferior_registers to fetch_inferior_register.
16078 (regptr): Remove declaration.
16079
dd6953e1
PA
160802007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16081
16082 * linux-low.c (linux_detach): Change return type to int. Return 0.
16083 * spu-low.c (spu_detach): Likewise.
16084
444d6139
PA
160852007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16086
16087 * target.h (target_ops): Change return type of detach to int.
16088 Add join.
16089 (join_inferior): New.
16090 * server.c (main): Don't skip detach support on mingw32.
16091 If the inferior doesn't support detaching return error.
16092 Call join_inferior instead of using waitpid.
16093 * linux-low.c (linux_join): New.
16094 (linux_target_op): Add linux_join.
16095 * spu-low.c (spu_join): New.
16096 (spu_target_ops): Add spu_join.
16097 * win32-low.c (win32_detach): Adapt to new interface.
16098 Reopen current_process_handle before detaching. Issue a child
16099 resume before detaching.
16100 (win32_join): New.
16101 (win32_target_op): Add win32_join.
16102
1d5315fe
PA
161032007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16104
16105 * win32-low.c (win32-attach): Fix return value.
16106 * target.h (target_ops): Describe ATTACH return values.
16107
bf914831
PA
161082007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16109
16110 * win32-low.c (GETPROCADDRESS): Define.
16111 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
16112 (winapi_DebugSetProcessKillOnExit): Likewise.
16113 (win32_create_inferior): Force usage of ansi CreateProcessA.
16114 (win32_attach): Use GETPROCADDRESS.
16115 (win32_detach): Likewise.
16116
f72f3e60
PA
161172007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16118
16119 * win32-low.c (win32_wait): Don't use WSTOPSIG.
16120
ed50f18f
PA
161212007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
16122
16123 * win32-low.c: Commit leftover changes from 2007-03-29.
16124
0c2ead7e
DJ
161252007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
16126
16127 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
16128 fields short instead of int. Add explicit padding.
16129 (i387_cache_to_fsave): Remove unnecessary casts.
16130 (i387_fsave_to_cache): Doc fix.
16131 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
16132
73725ff3
DJ
161332007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
16134
16135 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
16136 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
16137
d99f33d8
PA
161382007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
16139
16140 * configure.srv (arm*-*-mingw32ce*): Move near the other
16141 arm targets.
16142
68070c10
PA
161432007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
16144
2482afc6 16145 * configure.ac: Add errno checking.
68070c10
PA
16146 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
16147 sys/file.h and malloc.h.
16148 (AC_CHECK_DECLS): Add perror.
16149 (srv_mingwce): Handle.
2482afc6 16150 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
16151 win32-i386-low.o to srv_tgtobj.
16152 (i[34567]86-*-mingw*): Likewise.
16153 (arm*-*-mingw32ce*): Add case.
16154 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
16155 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
16156 [__MINGW32CE__] (strerror): New function.
16157 [__MINGW32CE__] (errno): Define to GetLastError.
16158 [__MINGW32CE__] (COUNTOF): New macro.
16159 (remote_open): Remove extra close call.
16160 * mem-break.c (delete_breakpoint_at): New function.
16161 * mem-break.h (delete_breakpoint_at): Declare.
16162 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
16163 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
16164 [USE_WIN32API] (read, write): Add char* casts.
16165 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
16166 * server.h: Include wincecompat.h on Windows CE.
16167 [HAVE_ERRNO_H]: Check.
16168 (perror): Declare if not declared.
16169 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
16170 (perror_with_name): Remove errno declaration.
16171 * wincecompat.h: New.
16172 * wincecompat.c: New.
16173 * win32-low.h: New.
16174 * win32-arm-low.c: New.
16175 * win32-i386-low.c: New.
16176 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
16177 (OUTMSG2): Make it safe.
16178 (_T): New macro.
16179 (COUNTOF): New macro.
16180 (NUM_REGS): Get it from the low target.
16181 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
16182 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
16183 (thread_rec): Let low target handle debug registers.
16184 (child_add_thread): Likewise.
16185 (child_init_thread_list): Likewise.
16186 (continue_one_thread): Likewise.
16187 (regptr): New.
16188 (do_child_fetch_inferior_registers): Move to ...
16189 * win32-i386-low.c: ... here, and rename to ...
16190 (do_fetch_inferior_registers): ... this.
889bf7c5 16191 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
16192 Go through the low target.
16193 (do_child_store_inferior_registers): Use regptr.
16194 (strwinerror): New function.
16195 (win32_create_inferior): Handle Windows CE.
16196 Use strwinerror instead of strerror on Windows error
16197 codes. Add program to the error output.
16198 Don't close the main thread handle on Windows CE.
16199 (win32_attach): Use coredll.dll on Windows CE.
16200 (win32_kill): Close current process and current
16201 thread handles.
16202 (win32_detach): Use coredll.dll on Windows CE.
16203 (win32_resume): Let low target handle debug registers, and
16204 step request.
16205 (handle_exception): Add/Remove initial breakpoint. Avoid
16206 non-existant WSTOPSIG on Windows CE.
16207 (win32_read_inferior_memory): Cast to remove warning.
16208 (win32_arch_string): Go through the low target.
16209 (initialize_low): Call set_breakpoint_data with the low
16210 target's breakpoint.
16211 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
16212 FOP_REGNUM, mappings): Move to ...
16213 * win32-i386-low.c: ... here.
16214 * win32-low.c (win32_thread_info): Move to ...
16215 * win32-low.h: ... here.
16216 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
16217 win32-arm-low.c and wincecompat.c.
16218 (all:): Add $EXEEXT.
16219 (install-only:): Likewise.
16220 (gdbserver:): Likewise.
16221 (gdbreplay:): Likewise.
16222 * config.in: Regenerate.
16223 * configure: Regenerate.
16224
41093d81
PA
162252007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
16226
16227 * win32-low.c: Rename typedef thread_info to
16228 win32_thread_info throughout.
16229
544afa54
PA
162302007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
16231
16232 * win32-i386-low.c: Rename to ...
16233 * win32-low.c: ... this.
16234 * configure.srv: Replace win32-i386-low.o with win32-low.o.
16235 * Makefile.in: Likewise.
16236
bce7165d
PA
162372007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
16238
16239 * remote-utils.c (monitor_output): Constify msg parameter.
16240 * server.h (monitor_output): Likewise.
16241 * win32-i386-low.c (handle_output_debug_string): New.
16242 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
16243 handle_output_debug_string.
16244 (get_child_debug_event): Likewise.
16245
506c7aa0
DJ
162462007-03-27 Mat Hostetter <mat@lcs.mit.edu>
16247
16248 * server.c (main): Correct strtoul check.
16249
42c81e2a
DJ
162502007-03-27 Jon Ringle <jon@ringle.org>
16251
16252 * linux-low.c: Check __ARCH_HAS_MMU__ also.
16253
9453113a
DJ
162542007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
16255
16256 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
16257
64a69107
DJ
162582007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
16259
16260 * terminal.h: Check HAVE_SGTTY_H.
16261
162622007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
16263
16264 * remote-utils.c (remote_open): Print out the assigned port number.
16265
c74d0ad8
DJ
162662007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
16267
16268 * remote-utils.c (monitor_output): New function.
16269 * server.c (debug_threads): Define here.
16270 (monitor_show_help): New function.
16271 (handle_query): Handle qRcmd.
16272 (main): Do not handle 'd' packet.
16273 * server.h (debug_threads, remote_debug, monitor_output): Declare.
16274 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
16275 of debug_threads.
16276
de7c3b4a
PA
162772007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
16278
16279 * Makefile.in (EXEEXT): New.
16280 (clean): Use $(EXEEXT).
16281
ef57601b
PA
162822007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
16283
16284 * target.h (target_ops): Rename send_signal to request_interrupt,
16285 and remove enum target_signal parameter.
16286 * linux-low.c (linux_request_interrupt): Rename from
16287 linux_send_signal, and always send SIGINT.
16288 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
16289 and always send SIGINT.
16290 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
16291 of send_signal.
16292 (input_interrupt): Likewise.
16293
820f2bda
PA
162942007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
16295
16296 * server.c (get_features_xml): Check if target implemented
16297 arch_string.
16298 * win32-i386-low.c (win32_arch_string): New.
16299 (win32_target_ops): Add win32_arch_string as arch_string member.
16300
ab39bf24
UW
163012007-02-22 Markus Deuling <deuling@de.ibm.com>
16302
16303 * spu-low.c (spu_arch_string): New.
16304 (spu_target_ops): Add spu_arch_string.
16305
61ff6e04
DJ
163062007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
16307
16308 * remote-utils.c: Remove HAVE_TERMINAL_H check.
16309 * configure.ac: Do not check for terminal.h.
16310 * configure, config.in: Regenerated.
16311
fb1e4ffc
DJ
163122007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
16313
16314 * Makefile.in (OBS): Add $(XML_BUILTIN).
16315 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
16316 (clean): Update.
16317 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
16318 (arm-with-iwmmxt.c): New.
16319 * config.in, configure: Regenerate.
16320 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
16321 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
16322 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
16323 (arm*-*-linux*): Add iWMMXt and regset support.
16324 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
16325 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
16326 (arm_store_wmmxregset, target_regsets): New.
16327 * server.c (get_features_xml): Take annex argument. Check builtin
16328 XML documents.
16329 (handle_query): Handle multiple annexes.
16330
0f48aa01
DJ
163312007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16332
16333 * remote-utils.c [USE_WIN32API] (read, write): Define.
16334 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
16335 write.
16336
23181151
DJ
163372007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
16338
16339 * linux-i386-low.c (the_low_target): Set arch_string.
16340 * linux-x86-64-low.c (the_low_target): Likewise.
16341 * linux-low.c (linux_arch_string): New.
16342 (linux_target_ops): Add it.
16343 * linux-low.h (struct linux_target_ops): Add arch_string.
16344 * server.c (write_qxfer_response): Use const void * for DATA.
16345 (get_features_xml): New.
16346 (handle_query): Handle qXfer:features:read. Report it for qSupported.
16347 * target.h (struct target_ops): Add arch_string method.
16348
9d606399
DJ
163492007-01-03 Denis Pilat <denis.pilat@st.com>
16350 Daniel Jacobowitz <dan@codesourcery.com>
16351
16352 * linux-low.c (linux_kill): Handle being called with no threads.
16353 * win32-i386-low.c (win32_kill): Likewise.
16354 (get_child_debug_event): Clear current_process_handle.
16355
163562006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
16357 Daniel Jacobowitz <dan@codesourcery.com>
16358
16359 * remote-utils.c (remote_open): Check the type of specified
16360 serial port devices before opening them.
16361 * server.c (main): Kill the inferior if an error occurs during
16362 the first remote_open.
16363
a5e13d24
DJ
163642006-12-05 Markus Deuling <deuling@de.ibm.com>
16365
16366 * README: Update supported targets.
16367
186947f7
DJ
163682006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
16369
16370 * Makefile.in (clean): Remove reg-mips64.c.
16371 (reg-mips64.c, reg-mips64.o): New rules.
16372 * configure.srv: Handle mips64. Include regset support for mips.
16373 * linux-mips-low.c (union mips_register): New.
16374 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
16375 (mips_breakpoint, mips_breakpoint_at): Use int.
16376 (mips_collect_register, mips_supply_register)
16377 (mips_collect_register_32bit, mips_supply_register_32bit)
16378 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
16379 (mips_store_fpregset, target_regsets): New.
16380 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
16381
a13e2c95
UW
163822006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
16383
16384 * configure.srv: Add target "spu*-*-*".
16385 * Makefile.in (clean): Remove reg-spu.c.
16386 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
16387 * spu-low.c: New file.
16388
cb7283db
DJ
163892006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
16390
16391 * configure.ac: Correct td_thr_tls_get_addr test.
16392 * configure: Regenerated.
16393
89be2091
DJ
163942006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
16395
16396 * linux-low.c (linux_wait_for_event): Reformat. Use the
16397 pass_signals array.
16398 * remote-utils.c (decode_address_to_semicolon): New.
16399 * server.c (pass_signals, handle_general_set): New.
16400 (handle_query): Mention QPassSignals for qSupported.
16401 (main): Call handle_general_set.
16402 * server.h (pass_signals, decode_address_to_semicolon): New.
16403
000ef4f0
DJ
164042006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
16405
16406 * server.c (handle_query): Correct error handling for read_auxv.
16407
b7149293
UW
164082005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
16409
16410 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
16411 and srv_linux_thread_db to yes.
16412 * linux-s390-low.c (s390_fill_gregset): New function.
16413 (target_regsets): Define data structure.
16414
dae5f5cf
DJ
164152006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
16416
16417 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
16418 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
16419 * config.in, configure: Regenerated.
16420 * inferiors.c (gdb_id_to_thread): New function.
16421 (gdb_id_to_thread_id): Use it.
16422 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
16423 * linux-low.h (struct process_info): Add th member.
16424 (thread_db_get_tls_address): New prototype.
16425 * remote-utils.c (decode_address): Make non-static.
16426 * server.c (handle_query): Handle qGetTLSAddr.
16427 * server.h (gdb_id_to_thread, decode_address): New prototypes.
16428 * target.h (struct target_ops): Add get_tls_address.
16429 * thread-db.c (maybe_attach_thread): Save the thread handle.
16430 (thread_db_get_tls_address): New.
16431
32ca6d61
DJ
164322006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
16433
16434 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
16435 (linux_resume_one_process): Take a siginfo_t *. Update all
16436 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
16437 (struct pending_signals): Add a siginfo_t.
16438 (linux_wait_for_process): Always set last_status.
16439 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
16440 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
16441 * linux-low.h (struct process_info): Add last_status.
16442
5ffff7c1
DJ
164432006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
16444
16445 * remote-utils.c (try_rle): New function.
16446 (putpkt_binary): Use it.
16447
8695c747
DJ
164482006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
16449
16450 * Makefile.in (clean): Clean reg-x86-64-linux.c.
16451 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
16452 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
16453 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
16454 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
16455 point registers.
16456
290fadea
RS
164572006-08-08 Richard Sandiford <richard@codesourcery.com>
16458
16459 * server.c (terminal_fd): New variable.
16460 (old_foreground_pgrp): Likewise.
16461 (restore_old_foreground_pgrp): New function.
16462 (start_inferior): Record the terminal file descriptor in terminal_fd
16463 and its original foreground group in old_foreground_pgrp. Register
16464 restore_old_foreground_pgrp with atexit().
16465
9f2e1e63
DJ
164662006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
16467
16468 * server.c (handle_query): Correct qPart to qXfer.
16469
b80864fb
DJ
164702006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
16471
16472 * configure.ac: Check for more headers which are missing on
16473 Windows. Automatically supply -lwsock32 and USE_WIN32API.
16474 * configure.srv: Add Cygwin and mingw32.
16475 * remote-utils.c: Don't include headers unconditionally which
16476 are missing on mingw32. Include <winsock.h> for mingw32.
16477 (remote_open): Adjust for mingw32 support. Flush
16478 standard error after writing to it.
16479 (remote_close, putpkt_binary, input_interrupt, block_async_io)
16480 (unblock_async_io, enable_async_io, disable_async_io)
16481 (readchar, getpkt): Update for Winsock support.
16482 (prepare_resume_reply): Expect a protocol signal number.
16483 * server.c: Disable <sys/wait.h> on mingw32.
16484 (start_inferior): Adjust for mingw32 support. Flush
16485 standard error after writing to it.
16486 (attach_inferior): Likewise. Use protocol signal
16487 numbers.
16488 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
16489 and names.
16490 * win32-i386-low.c: New file.
16491 * Makefile.in (XM_CLIBS): Set.
16492 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
16493 (win32-i386-low.o): New dependency rule.
16494 * linux-low.c (linux_wait): Use target signal numbers.
16495 * target.h (struct target_ops): Doc fix.
16496 * server.h (target_signal_to_name): New prototype.
16497 * gdbreplay.c: Don't include headers unconditionally which
16498 are missing on mingw32. Include <winsock.h> for mingw32.
16499 (remote_close, remote_open): Adjust for Winsock support.
16500 * configure, config.in: Regenerated.
16501
0876f84a
DJ
165022006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
16503
16504 * server.c (decode_xfer_read, write_qxfer_response): New.
16505 (handle_query): Take a packet length argument. Handle
16506 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
16507 the qSupported response.
16508 (main): Update call to handle_query.
16509
01f9e8fa
DJ
165102006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
16511
16512 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
16513 (putpkt_binary): Renamed from putpkt and adjusted for binary
16514 data.
16515 (putpkt): New wrapper for putpkt_binary.
16516 (readchar): Don't mask off the high bit.
16517 (decode_X_packet): New function.
16518 * server.c (main): Call putpkt_binary if a handler sets the packet
16519 length. Save the length of the incoming packet. Handle 'X'.
16520 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
16521
be2a5f71
DJ
165222006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
16523
16524 * server.c (handle_query): Handle qSupported.
16525
ea025f5f
DJ
165262006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
16527
16528 * remote-utils.c (all_symbols_looked_up): New variable.
16529 (look_up_one_symbol): Check it.
16530 * server.h (look_up_one_symbol): New declaration.
16531 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
16532
9308fc88
DJ
165332006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
16534
16535 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 16536 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
16537 (PTRACE_GET_THREAD_AREA): Define.
16538 (ps_get_thread_area): New function.
16539
52fb6437
NS
165402006-05-09 Nathan Sidwell <nathan@codesourcery.com>
16541
16542 * configure.srv (m68k*-*-uclinux*): New target.
16543 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
16544 (linux_resume_one_process): Remove extraneous cast.
16545 (linux_read_offsets): New.
16546 (linux_target_op): Add linux_read_offsets on mmuless systems.
16547 * server.c (handle_query): Add qOffsets logic.
16548 * target.h (struct target_ops): Add read_offsets.
16549
21b0f40c
DJ
165502006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
16551
16552 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
16553 (PTRACE_GET_THREAD_AREA): Define.
16554 (ps_get_thread_area): New function.
16555 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
16556 (linux-x86-64-low.o): Update.
16557
0050a760
DJ
165582006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
16559
16560 * configure.ac: Remove checks for prfpregset_t.
16561 * gdb_proc_service.h: New file.
16562 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
16563 new "gdb_proc_service.h".
16564 * proc-service.c: Likewise.
16565 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
16566 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
16567 * Makefile.in (gdb_proc_service_h): Updated.
16568 * configure, config.in: Regenerated.
16569
b92a518e
DJ
165702006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
16571
16572 * remote-utils.c (prepare_resume_reply): Move declaration
16573 of gdb_id_from_wait to the top of the block.
16574
545587ee
DJ
165752006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
16576
16577 * linux-low.c (regsets_store_inferior_registers): Read the regset
16578 from the target before filling it.
16579
9db87ebd
DJ
165802006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
16581
16582 * server.c (attach_inferior): Return SIGTRAP for a successful
16583 attach.
16584
dd24457d
DJ
165852006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
16586
16587 * Makefile.in (OBS): Add version.o.
16588 (STAGESTUFF): Delete.
16589 (version.o): Add dependencies.
16590 (version.c): Replace rule.
16591 (clean): Remove version.c.
16592 * server.c (gdbserver_version): New.
16593 (gdbserver_usage): Use printf.
16594 (main): Handle --version and --help.
16595 * server.h (version, host_name): Add declarations.
16596
6f0f660e
EZ
165972005-12-23 Eli Zaretskii <eliz@gnu.org>
16598
889bf7c5
PA
16599 * linux-arm-low.c:
16600 * linux-arm-low.c:
16601 * inferiors.c:
16602 * i387-fp.h:
16603 * i387-fp.c:
16604 * gdbreplay.c:
16605 * regcache.c:
16606 * proc-service.c:
16607 * mem-break.h:
16608 * mem-break.c:
16609 * linux-x86-64-low.c:
16610 * linux-sh-low.c:
16611 * linux-s390-low.c:
16612 * linux-ppc64-low.c:
16613 * linux-ppc-low.c:
16614 * linux-mips-low.c:
16615 * linux-m68k-low.c:
16616 * linux-m32r-low.c:
16617 * linux-low.h:
16618 * linux-low.c:
16619 * linux-ia64-low.c:
16620 * linux-i386-low.c:
16621 * linux-crisv32-low.c:
16622 * thread-db.c:
16623 * terminal.h:
16624 * target.h:
16625 * target.c:
16626 * server.h:
16627 * server.c:
16628 * remote-utils.c:
16629 * regcache.h:
16630 * utils.c:
16631 * Makefile.in:
16632 * configure.ac:
6f0f660e
EZ
16633 * gdbserver.1: Add (C) after Copyright. Update the FSF
16634 address.
16635
9d1fb177
DJ
166362005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
16637
16638 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
16639 (arm_breakpoint_at): Recognize both breakpoints.
16640 (the_low_target): Use the correct breakpoint instruction.
16641
011a70c2
DJ
166422005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
16643
16644 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
16645 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
16646 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
16647 (the_low_target): Update.
16648
7fb85e41
AS
166492005-10-25 Andreas Schwab <schwab@suse.de>
16650
16651 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
16652
16653 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
16654 (ia64_num_regs): Reduce to 462.
16655
3db0444b
DJ
166562005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
16657
16658 * acinclude.m4: Correct quoting.
16659 * aclocal.m4: Regenerated.
16660
16661 Suggested by SZOKOVACS Robert <szo@ies.hu>:
16662 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
16663 (thread_db_init): Call thread_db_err_str.
16664 * configure.ac: Check for TD_VERSION.
16665 * config.in, configure: Regenerated.
16666
bee0189a
DJ
166672005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16668
16669 * server.h (error, fatal, warning): Add ATTR_FORMAT.
16670
e9d25b98
DJ
166712005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
16672
16673 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
16674 is not available. Define HAVE_PTRACE_GETREGS if it is.
16675 * config.in, configure: Regenerated.
16676 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
16677 * linux-i386-low.c, linux-m68k-low.c: Update to use
16678 HAVE_PTRACE_GETREGS.
16679 * linux-low.c (regsets_fetch_inferior_registers)
16680 (regsets_store_inferior_registers): Only return 0 if we processed
16681 GENERAL_REGS.
16682 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
16683 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
16684
a06660f7
DJ
166852005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
16686
16687 * inferiors.c (struct thread_info): Add gdb_id.
16688 (add_thread): Add gdb_id argument.
16689 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
16690 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
16691 calls to add_thread.
16692 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
16693 * server.c (handle_query): Use thread_to_gdb_id.
16694 (handle_v_cont, main): Use gdb_id_to_thread_id.
16695 * server.h (add_thread): Update prototype.
16696 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
16697 prototypes.
16698
5a1f5858
DJ
166992005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
16700
16701 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
16702 left-padded registers.
16703 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
16704 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
16705
e122f1f5
SE
167062005-07-01 Steve Ellcey <sje@cup.hp.com>
16707
16708 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
16709 * configure: Regenerate.
16710 * config.in: Regenerate.
16711 * server.h (NEED_DECLARATION_STRERROR):
16712 Replace with !HAVE_DECL_STRERROR.
16713
d592fa2f
DJ
167142005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
16715
16716 * linux-low.c (linux_wait, linux_send_signal): Don't test
16717 an unsigned long variable for > 0 if it could be MAX_ULONG.
16718 * server.c (myresume): Likewise.
16719 * target.c (set_desired_inferior): Likewise.
16720
ccbd4912
MK
167212005-06-13 Mark Kettenis <kettenis@gnu.org>
16722
16723 * configure.ac: Simplify and improve check for socklen_t.
16724 * configure, config.in: Regenerate.
16725
f450004a
DJ
167262005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
16727
16728 * acconfig.h: Remove.
16729 * configure.ac: Add a test for socklen_t. Use three-argument
16730 AC_DEFINE throughout.
16731 * config.in: Regenerated using autoheader 2.59.
16732 * configure: Regenerated.
16733
16734 * gdbreplay.c (socklen_t): Provide a default.
16735 (remote_open): Use socklen_t.
16736 * remote-utils.c (socklen_t): Provide a default.
16737 (remote_open): Use socklen_t.
16738 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
16739 unsigned char.
16740
16741 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
16742 char for buffers.
16743 * linux-low.c (linux_read_memory, linux_write_memory)
16744 (linux_read_auxv): Likewise.
16745 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
16746 (check_mem_write): Likewise.
16747 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
16748 Likewise.
16749 * regcache.c (struct inferior_rgcache_data, registers_to_string)
16750 (registers_from_string, register_data): Likewise.
16751 * server.c (handle_query, main): Likewise.
16752 * server.h (convert_ascii_to_int, convert_int_to_ascii)
16753 (decode_M_packet): Likewise.
16754 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
16755 * target.h (struct target_ops): Update read_memory, write_memory,
16756 and read_auxv.
16757 (read_inferior_memory, write_inferior_memory): Update.
16758 * linux-low.h (struct linux_target_ops): Change type of breakpoint
16759 to unsigned char *.
16760 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
16761 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
16762 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
16763 linux-s390-low.c, linux-sh-low.c: Update for changes in
16764 read_inferior_memory and the_low_target->breakpoint.
16765
eee84df1
DJ
167662005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
16767
16768 * Makefile.in (SFILES): Add linux-ppc64-low.c.
16769 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
16770 * configure.srv: Add powerpc64-*-linux*.
16771 * linux-ppc64-low.c: New file.
16772
45b134e5
OF
167732005-05-23 Orjan Friberg <orjanf@axis.com>
16774
16775 * linux-cris-low.c: New file with support for CRIS.
16776 * linux-crisv32-low.c: Ditto for CRISv32.
16777 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
16778 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 16779 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
16780 reg-crisv32.o, and reg-crisv32.c to make rules.
16781 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
16782 recognized targets.
16783
48d93c75
UW
167842005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
16785
16786 * linux-low.c (fetch_register): Ensure buffer size is a multiple
16787 of sizeof (PTRACE_XFER_TYPE).
16788 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
16789
e013ee27
OF
167902005-05-12 Orjan Friberg <orjanf@axis.com>
16791
889bf7c5 16792 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
16793 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
16794 pointers for hardware watchpoint support.
16795 * linux-low.h (struct linux_target_ops): Ditto.
16796 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
16797 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
16798 to linux_target_ops.
16799 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
16800 reply packet.
16801 * server.c (main): Recognize 'Z' and 'z' packets.
16802
b0ded00b
UW
168032005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
16804
16805 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
16806 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
16807 (the_low_target): Add new members.
16808
8643e2ad
DJ
168092005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
16810
16811 * proc-service.c (ps_lgetregs): Search all_processes instead of
16812 all_threads.
16813
fc620387
DJ
168142005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
16815
16816 * server.c (start_inferior): Change return type to int.
16817 (attach_inferior): Change sigptr to int *.
16818 (handle_v_cont, handle_v_requests): Change signal to int *.
16819 (main): Change signal to int.
16820
168212005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
16822
16823 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
16824 * configure.srv: Add m32r*-*-linux*.
16825 * linux-m32r-low.c: New file.
16826
e0e76420
DJ
168272005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
16828
16829 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
16830
a1928bad
DJ
168312005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
16832
16833 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
16834 Take unsigned long arguments for PIDs.
16835 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
16836 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
16837 (wait_for_sigstop, linux_resume_one_process)
16838 (regsets_fetch_inferior_registers, linux_send_signal)
16839 (linux_read_auxv): Likewise. Update the types of variables holding
16840 PIDs. Update format string specifiers.
16841 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
16842 * remote-utils.c (prepare_resume_reply): Likewise.
16843 * server.c (cont_thread, general_thread, step_thread)
16844 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
16845 unsigned long.
16846 (handle_query): Update format specifiers.
16847 (handle_v_cont, main): Use strtoul for thread IDs.
16848 * server.h (struct inferior_list_entry): Use unsigned long for ID.
16849 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
16850 (general_thread, step_thread, thread_from_wait)
16851 (old_thread_from_wait): Update.
16852 * target.h (struct thread_resume): Use unsigned long for THREAD.
16853 (struct target_ops): Use unsigned long for arguments to attach and
16854 thread_alive.
16855
dcdb98d2
DJ
168562005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
16857
16858 * acinclude.m4: Include bfd/bfd.m4 directly.
16859 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
16860 <agriffis@toolchain.org>.
16861 * aclocal.m4, configure: Regenerated.
16862
bec39cab
AC
168632005-01-07 Andrew Cagney <cagney@gnu.org>
16864
16865 * configure.ac: Rename configure.in, require autoconf 2.59.
16866 * configure: Re-generate.
16867
434c4c77
DJ
168682004-12-08 Daniel Jacobowitz <dan@debian.org>
16869
16870 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
16871 LIBS when finished.
16872 * aclocal.m4: Regenerated.
16873 * configure: Regenerated.
16874
db1d3e1b
AS
168752004-11-21 Andreas Schwab <schwab@suse.de>
16876
16877 * linux-m68k-low.c (m68k_num_gregs): Define.
16878 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
16879 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
16880 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
16881 (m68k_breakpoint_at): New. Add to the_low_target.
16882
16883 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
16884 srv_linux_thread_db to yes.
16885
43360365
JB
168862004-10-20 Joel Brobecker <brobecker@gnat.com>
16887
16888 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
16889 (ARCH_SET_FS): Likewise.
16890 (ARCH_GET_FS): Likewise.
16891 (ARCH_GET_GS): Likewise.
16892
fd500816
DJ
168932004-10-16 Daniel Jacobowitz <dan@debian.org>
16894
16895 * linux-i386-low.c (ps_get_thread_area): New.
16896 * linux-x86-64-low.c (ps_get_thread_area): New.
16897 * linux-low.c: Include <sys/syscall.h>.
16898 (linux_kill_one_process): Don't kill the first thread here.
16899 (linux_kill): Kill the first thread here.
16900 (kill_lwp): New function.
16901 (send_sigstop, linux_send_signal): Use it.
16902 * proc-service.c: Clean up #ifdefs.
16903 (fpregset_info): Delete.
16904 (ps_lgetregs): Update and enable implementation.
16905 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
16906 implementations.
16907 * remote-utils.c (struct sym_cache, symbol_cache): New.
16908 (input_interrupt): Print a clearer message.
16909 (async_io_enabled): New variable.
16910 (enable_async_io, disable_async_io): Use it. Update comments.
16911 (look_up_one_symbol): Use the symbol cache.
16912 * thread-db.c (thread_db_look_up_symbols): New function.
16913 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
16914
f6de3c42
DJ
169152004-10-16 Daniel Jacobowitz <dan@debian.org>
16916
16917 * configure.in: Test for -rdynamic.
16918 * configure: Regenerated.
16919 * Makefile (INTERNAL_LDFLAGS): New.
16920 (gdbserver, gdbreplay): Use it.
16921
2c0fc042
AC
169222004-09-02 Andrew Cagney <cagney@gnu.org>
16923
16924 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
16925
075b3282
DJ
169262004-03-23 Daniel Jacobowitz <drow@mvista.com>
16927
16928 * linux-low.c (linux_wait): Clear all_processes list also.
16929
fa6a77dc
DJ
169302004-03-12 Daniel Jacobowitz <drow@mvista.com>
16931
16932 * linux-low.c: Include <errno.h>. Remove extern declaration of
16933 errno.
16934
6d782a97
DJ
169352004-03-12 Daniel Jacobowitz <drow@mvista.com>
16936
16937 * gdbreplay.c, server.h, utils.c: Update copyright years.
16938
3a7fb99b
DJ
169392004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
16940
16941 * server.c (main): Print child status or termination signal from
16942 variable 'signal', not 'sig'.
16943
c3e735a6
DJ
169442004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
16945
16946 * linux-low.c (linux_read_memory): Change return type to
16947 int. Check for and return error from ptrace().
16948 * target.c (read_inferior_memory): Change return type to int. Pass
16949 back return status from the_target->read_memory().
16950 * target.h (struct target_ops): Adapt *read_memory() prototype.
16951 Update comment.
16952 (read_inferior_memory): Adapt prototype.
16953 * server.c (main): Return an error packet if
16954 read_inferior_memory() returns an error.
16955
a59d1c82
DJ
169562004-03-04 Daniel Jacobowitz <drow@mvista.com>
16957
16958 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
16959 Unify with other clean targets.
16960
dc3f8883
DJ
169612004-02-29 Daniel Jacobowitz <drow@mvista.com>
16962
16963 * server.c (handle_v_cont): Call set_desired_inferior.
16964
89a208da
DJ
169652004-02-29 Daniel Jacobowitz <drow@mvista.com>
16966
16967 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
16968
62ea82f5
DJ
169692004-02-29 Daniel Jacobowitz <drow@mvista.com>
16970
16971 * linux-low.c (linux_wait): Unblock async I/O.
16972 (linux_resume): Block and enable async I/O.
16973 * remote-utils.c (block_async_io, unblock_async_io): New functions.
16974 * server.h (block_async_io, unblock_async_io): Add prototypes.
16975
6910d122
DJ
169762004-02-29 Daniel Jacobowitz <drow@mvista.com>
16977
16978 * remote-utils.c (remote_open): Print a status notice after
16979 opening a TCP port.
16980 * server.c (attach_inferior): Print a status notice after
16981 attaching.
16982
169832004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
16984
16985 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
16986
c89dc5d4
DJ
169872004-02-26 Daniel Jacobowitz <drow@mvista.com>
16988
16989 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
16990 error packet.
16991 * server.c, target.h: Update copyright years.
16992
4b8dad4a
RM
169932004-02-25 Roland McGrath <roland@redhat.com>
16994
16995 * target.h (struct target_ops): New member `read_auxv'.
16996 * server.c (handle_query): Handle qPart:auxv:read: query using that.
16997 * linux-low.c (linux_read_auxv): New function.
16998 (linux_target_ops): Initialize `read_auxv' member to that.
16999
d7446758
JB
170002004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17001
17002 Committed by Jim Blandy <jimb@redhat.com>.
17003
17004 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 17005 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
17006 instead of GPR_SIZE to distiguish s390 and s390x targets.
17007
5544ad89
DJ
170082004-01-31 Daniel Jacobowitz <drow@mvista.com>
17009
17010 * linux-low.c: Update copyright year.
17011 (check_removed_breakpoint): Clear pending_is_breakpoint.
17012 (linux_set_resume_request, linux_queue_one_thread)
17013 (resume_status_pending_p): New functions.
17014 (linux_continue_one_thread): Use process->resume.
17015 (linux_resume): Only resume threads if there are no pending events.
17016 * linux-low.h (struct process_info): Add resume request
17017 pointer.
17018
2a68b70e
DJ
170192004-01-30 Daniel Jacobowitz <drow@mvista.com>
17020
17021 * regcache.c (new_register_cache): Clear the allocated register
17022 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
17023
64386c31
DJ
170242003-10-13 Daniel Jacobowitz <drow@mvista.com>
17025
17026 * linux-low.c (linux_resume): Take a struct thread_resume *
17027 argument.
17028 (linux_wait): Update call.
17029 (resume_ptr): New static variable.
17030 (linux_continue_one_thread): Renamed from
17031 linux_continue_one_process. Use resume_ptr.
17032 (linux_resume): Use linux_continue_one_thread.
17033 * server.c (handle_v_cont, handle_v_requests): New functions.
17034 (myresume): New function.
17035 (main): Handle 'v' case.
17036 * target.h (struct thread_resume): New type.
17037 (struct target_ops): Change argument of "resume" to struct
17038 thread_resume *.
17039 (myresume): Delete macro.
17040
c938e9b0
L
170412003-08-08 H.J. Lu <hongjiu.lu@intel.com>
17042
17043 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
17044 (uninstall): Support DESTDIR.
17045
7f313d07
BC
17046Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
17047
17048 * configure.srv: Add xscale*linux copy of arm*linux entry.
17049
3b2fc2ea
DJ
170502003-07-24 Daniel Jacobowitz <drow@mvista.com>
17051
17052 * linux-arm-low.c (arm_reinsert_addr): New function.
17053 (the_low_target): Add arm_reinsert_addr.
17054
1c0a559e
MK
170552003-07-08 Mark Kettenis <kettenis@gnu.org>
17056
17057 * mem-break.c: Remove whitespace at end of file.
17058
43d5792c
DJ
170592003-06-28 Daniel Jacobowitz <drow@mvista.com>
17060
17061 * configure.in: Check whether we need to prototype strerror.
17062 * server.h: Optionally prototype strerror.
17063 * gdbreplay.c (perror_with_name): Use strerror.
17064 * linux-low.c (linux_attach_lwp): Use strerror.
17065 * utils.c (perror_with_name): Use strerror.
17066 * config.in, configure: Regenerated.
17067
c8a86edf
DJ
170682003-06-28 Daniel Jacobowitz <drow@mvista.com>
17069
17070 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
17071 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
17072
73d37363
DJ
170732003-06-20 Daniel Jacobowitz <drow@mvista.com>
17074
17075 * Makefile.in (SFILES): Update.
17076 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
17077 low-sun3.c: Remove files.
17078
6ad8ae5c
DJ
170792003-06-17 Daniel Jacobowitz <drow@mvista.com>
17080
17081 * linux-low.c: Move comment to linux_thread_alive where it belonged.
17082 (linux_detach_one_process, linux_detach): New functions.
17083 (linux_target_ops): Add linux_detach.
17084 * server.c (main): Handle 'D' packet.
17085 * target.h (struct target_ops): Add "detach" member.
17086 (detach_inferior): Define.
17087
1581182a
MK
170882003-06-13 Mark Kettenis <kettenis@gnu.org>
17089
17090 From Kelley Cook <kelleycook@wideopenwest.com>:
17091 * configure.srv: Accept i[34567]86 variants.
17092
e5379b03
DJ
170932003-06-05 Daniel Jacobowitz <drow@mvista.com>
17094
17095 * linux-low.c (linux_wait_for_event): Correct comment typos.
17096 (linux_resume_one_process): Call check_removed_breakpoint.
17097 (linux_send_signal): New function.
17098 (linux_target_ops): Add linux_send_signal.
17099 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
17100 of kill.
17101 * target.h (struct target_ops): Add send_signal.
17102
2ff29de4
JB
171032003-05-29 Jim Blandy <jimb@redhat.com>
17104
17105 * linux-low.c (usr_store_inferior_registers): Transfer buf in
17106 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
17107 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
17108 away part of the register's value.
17109
254787d4
DJ
171102003-03-26 Daniel Jacobowitz <drow@mvista.com>
17111
17112 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
17113 (linux_wait_for_event, linux_init_signals): Likewise.
17114
94e10508
DJ
171152003-03-17 Daniel Jacobowitz <drow@mvista.com>
17116
17117 * configure.in: Check for stdlib.h.
17118 * configure: Regenerated.
17119 * config.in: Regenerated.
17120
4c0711e0
DJ
171212003-01-04 Andreas Schwab <schwab@suse.de>
17122
17123 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
17124
ef66e766
AC
171252003-01-02 Andrew Cagney <ac131313@redhat.com>
17126
17127 * Makefile.in: Remove obsolete code.
17128
a1358604
DJ
171292002-11-20 Daniel Jacobowitz <drow@mvista.com>
17130
17131 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
17132 defined(PT_FPR0_HI).
17133
23ce3b1c
DJ
171342002-11-17 Stuart Hughes <seh@zee2.com>
17135
17136 * linux-arm-low.c (arm_num_regs): Increase.
17137 (arm_regmap): Include status register.
17138
171392002-11-17 Daniel Jacobowitz <drow@mvista.com>
17140
17141 * linux-low.c (register_addr): Remove incorrect -1 check.
17142
a9fa9f7d
DJ
171432002-08-29 Daniel Jacobowitz <drow@mvista.com>
17144
17145 * linux-low.c (linux_create_inferior): Call setpgid. Return
17146 the new PID.
17147 (unstopped_p, linux_signal_pid): Remove.
17148 (linux_target_ops): Remove linux_signal_pid.
17149 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
17150 global instead of target method.
17151 * target.h (struct target_ops): Remove signal_pid. Update comment
17152 for create_inferior.
17153 * server.c (signal_pid): New variable.
17154 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 17155 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
17156 (attach_inferior): Set signal_pid.
17157
17574093
DJ
171582002-08-23 Daniel Jacobowitz <drow@mvista.com>
17159
17160 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
17161
171622002-08-20 Jim Blandy <jimb@redhat.com>
17163
17164 * Makefile.in (LDFLAGS): Allow the configure script to establish a
17165 default for this.
17166
171672002-08-01 Andrew Cagney <cagney@redhat.com>
17168
17169 * Makefile.in: Make chill references obsolete.
17170
171712002-07-24 Kevin Buettner <kevinb@redhat.com>
17172
17173 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
17174 * configure: Regenerate.
17175 * config.in: Regenerate.
17176
171772002-07-09 David O'Brien <obrien@FreeBSD.org>
17178
17179 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
17180 (perror_with_name, remote_close, remote_open, expect, play): Static.
17181
171822002-07-04 Michal Ludvig <mludvig@suse.cz>
17183
4b8dad4a 17184 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
17185 byte offsets instead of an array of indexes.
17186 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
17187
171882002-06-13 Daniel Jacobowitz <drow@mvista.com>
17189
17190 * regcache.c: Add comment.
17191
171922002-06-11 Daniel Jacobowitz <drow@mvista.com>
17193
17194 * thread-db.c: New file.
17195 * proc-service.c: New file.
17196 * acinclude.m4: New file.
17197 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
17198 proc-service.o, and thread-db.o.
17199 (linux-low.o): Add USE_THREAD_DB.
17200 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
17201 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
17202 * aclocal.m4: Regenerated.
17203 * config.in: Regenerated.
17204 * configure: Regenerated.
17205 * configure.in: Check for proc_service.h, sys/procfs.h,
17206 thread_db.h, and linux/elf.h headrs.
17207 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
17208 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
17209 Check for -lthread_db and thread support.
17210 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
17211 PowerPC, and SuperH.
17212 * i387-fp.c: Constify arguments.
17213 * i387-fp.h: Likewise.
17214 * inferiors.c: (struct thread_info): Renamed from
17215 `struct inferior_info'. Remove PID member. Use generic inferior
17216 list header. All uses updated.
17217 (inferiors, signal_pid): Removed.
17218 (all_threads): New variable.
17219 (get_thread): Define.
17220 (add_inferior_to_list): New function.
17221 (for_each_inferior): New function.
17222 (change_inferior_id): New function.
17223 (add_inferior): Removed.
17224 (remove_inferior): New function.
17225 (add_thread): New function.
17226 (free_one_thread): New function.
17227 (remove_thread): New function.
17228 (clear_inferiors): Use for_each_inferior and free_one_thread.
17229 (find_inferior): New function.
17230 (find_inferior_id): New function.
17231 (inferior_target_data): Update argument type.
17232 (set_inferior_target_data): Likewise.
17233 (inferior_regcache_data): Likewise.
17234 (set_inferior_regcache_data): Likewise.
17235 * linux-low.c (linux_bp_reinsert): Remove.
17236 (all_processes, stopping_threads, using_thrads)
17237 (struct pending_signals, debug_threads, pid_of): New.
17238 (inferior_pid): Replace with macro.
17239 (struct inferior_linux_data): Remove.
17240 (get_stop_pc, add_process): New functions.
17241 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
17242 Use add_process and add_thread.
17243 (linux_attach_lwp): New function, based on old linux_attach. Use
17244 add_process and add_thread. Set stop_expected for new threads.
17245 (linux_attach): New function.
17246 (linux_kill_one_process): New function.
17247 (linux_kill): Kill all LWPs.
17248 (linux_thread_alive): Use find_inferior_id.
17249 (check_removed_breakpoints, status_pending_p): New functions.
17250 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
17251 Update. Use WNOHANG. Wait for cloned processes also. Update process
17252 struct for the found process.
17253 (linux_wait_for_event): New function.
17254 (linux_wait): Use it. Support LWPs.
17255 (send_sigstop, wait_for_sigstop, stop_all_processes)
17256 (linux_resume_one_process, linux_continue_one_process): New functions.
17257 (linux_resume): Support LWPs.
17258 (REGISTER_RAW_SIZE): Remove.
17259 (fetch_register): Use register_size instead. Call supply_register.
17260 (usr_store_inferior_registers): Likewise. Call collect_register.
17261 Fix recursive case.
17262 (regsets_fetch_inferior_registers): Improve error message.
17263 (regsets_store_inferior_registers): Add debugging.
17264 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
17265 (unstopped_p, linux_signal_pid): New functions.
17266 (linux_target_ops): Add linux_signal_pid.
17267 (linux_init_signals): New function.
17268 (initialize_low): Call it. Initialize using_threads.
17269 * regcache.c (inferior_regcache_data): Add valid
17270 flag.
17271 (get_regcache): Fetch registers lazily. Add fetch argument
17272 and update all callers.
17273 (regcache_invalidate_one, regcache_invalidate): New
17274 functions.
17275 (new_register_cache): Renamed from create_register_cache.
17276 Return the new regcache.
17277 (free_register_cache): Change argument to a void *.
17278 (registers_to_string, registers_from_string): Call get_regcache
17279 with fetch flag set.
17280 (register_data): Make static. Pass fetch flag to get_regcache.
17281 (supply_register): Call get_regcache with fetch flag clear.
17282 (collect_register): Call get_regcache with fetch flag set.
17283 (collect_register_as_string): New function.
17284 * regcache.h: Update.
17285 * remote-utils.c (putpkt): Flush after debug output and use
17286 stderr.
17287 Handle input interrupts while waiting for an ACK.
17288 (input_interrupt): Use signal_pid method.
17289 (getpkt): Flush after debug output and use stderr.
17290 (outreg): Use collect_register_as_string.
17291 (new_thread_notify, dead_thread_notify): New functions.
17292 (prepare_resume_reply): Check using_threads. Set thread_from_wait
17293 and general_thread.
17294 (look_up_one_symbol): Flush after debug output.
17295 * server.c (step_thread, server_waiting): New variables.
17296 (start_inferior): Don't use signal_pid. Update call to mywait.
17297 (attach_inferior): Update call to mywait.
17298 (handle_query): Handle qfThreadInfo and qsThreadInfo.
17299 (main): Don't fetch/store registers explicitly. Use
17300 set_desired_inferior. Support proposed ``Hs'' packet. Update
17301 calls to mywait.
17302 * server.h: Update.
17303 (struct inferior_list, struct_inferior_list_entry): New.
17304 * target.c (set_desired_inferior): New.
17305 (write_inferior_memory): Constify.
17306 (mywait): New function.
17307 * target.h: Update.
17308 (struct target_ops): New signal_pid method.
17309 (mywait): Removed macro, added prototype.
17310
17311 * linux-low.h (regset_func): Removed.
17312 (regset_fill_func, regset_store_func): New.
17313 (enum regset_type): New.
17314 (struct regset_info): Add type field. Use new operation types.
17315 (struct linux_target_ops): stop_pc renamed to get_pc.
17316 Add decr_pc_after_break and breakpoint_at.
17317 (get_process, get_thread_proess, get_process_thread)
17318 (strut process_info, all_processes, linux_attach_lwp)
17319 (thread_db_init): New.
17320
17321 * linux-arm-low.c (arm_get_pc, arm_set_pc,
17322 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
17323 (the_low_target): Add new members.
17324 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
17325 (i386_store_fpxregset): Constify.
17326 (target_regsets): Add new kind identifier.
17327 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
17328 (i386_set_pc): Add debugging.
17329 (i386_breakpoint_at): New function.
17330 (the_low_target): Add new members.
17331 * linux-mips-low.c (mips_get_pc, mips_set_pc)
17332 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
17333 (mips_breakpoint_at): New.
17334 (the_low_target): Add new members.
17335 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
17336 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
17337 (the_low_target): Add new members.
17338 * linux-sh-low.c (sh_get_pc, sh_set_pc)
17339 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
17340 (the_low_target): Add new members.
17341 * linux-x86-64-low.c (target_regsets): Add new kind
17342 identifier.
17343
173442002-05-15 Daniel Jacobowitz <drow@mvista.com>
17345
17346 From Martin Pool <mbp@samba.org>:
17347 * server.c (gdbserver_usage): New function.
17348 (main): Call it.
17349
173502002-05-14 Daniel Jacobowitz <drow@mvista.com>
17351
17352 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
17353 stop_at -> stop_pc.
17354
173552002-05-04 Andrew Cagney <ac131313@redhat.com>
17356
17357 * Makefile.in: Remove obsolete code.
17358
173592002-04-24 Michal Ludvig <mludvig@suse.cz>
17360
17361 * linux-low.c (regsets_fetch_inferior_registers),
17362 (regsets_store_inferior_registers): Removed cast to int from
17363 ptrace() calls.
17364 * regcache.h: Added declaration of struct inferior_info.
17365
173662002-04-20 Daniel Jacobowitz <drow@mvista.com>
17367
17368 * inferiors.c (struct inferior_info): Add regcache_data.
17369 (add_inferior): Call create_register_cache.
17370 (clear_inferiors): Call free_register_cache.
17371 (inferior_regcache_data, set_inferior_regcache_data): New functions.
17372 * regcache.c (struct inferior_regcache_data): New.
17373 (registers): Remove.
17374 (get_regcache): New function.
17375 (create_register_cache, free_register_cache): New functions.
17376 (set_register_cache): Don't initialize the register cache here.
17377 (registers_to_string, registers_from_string, register_data): Call
17378 get_regcache.
17379 * regcache.h: Add prototypes.
17380 * server.h: Likewise.
17381
173822002-04-20 Daniel Jacobowitz <drow@mvista.com>
17383
17384 * mem-break.c: New file.
17385 * mem-break.h: New file.
17386 * Makefile.in: Add mem-break.o rule; update server.h
17387 dependencies.
17388 * inferiors.c (struct inferior_info): Add target_data
17389 member.
17390 (clear_inferiors): Free target_data member if set.
17391 (inferior_target_data, set_inferior_target_data): New functions.
17392 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
17393 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
17394 * linux-low.c (linux_bp_reinsert): New variable.
17395 (struct inferior_linux_data): New.
17396 (linux_create_inferior): Use set_inferior_target_data.
17397 (linux_attach): Likewise. Call add_inferior.
17398 (linux_wait_for_one_inferior): New function.
17399 (linux_wait): Call it.
17400 (linux_write_memory): Add const.
17401 (initialize_low): Call set_breakpoint_data.
17402 * linux-low.h (struct linux_target_ops): Add breakpoint
17403 handling members.
17404 * server.c (attach_inferior): Remove extra add_inferior
17405 call.
17406 * server.h: Include mem-break.h. Update inferior.c
17407 prototypes.
17408 * target.c (read_inferior_memory)
17409 (write_inferior_memory): New functions.
17410 * target.h (read_inferior_memory)
17411 (write_inferior_memory): Change macros to prototypes.
17412 (struct target_ops): Update comments. Add const to write_memory
17413 definition.
17414
174152002-04-11 Daniel Jacobowitz <drow@mvista.com>
17416
17417 * linux-low.c (usr_store_inferior_registers): Support
17418 registers which are allowed to fail to store.
17419 * linux-low.h (linux_target_ops): Likewise.
17420 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
17421 (ppc_cannot_store_register): FPSCR may not be storable.
17422
174232002-04-09 Daniel Jacobowitz <drow@mvista.com>
17424
17425 * server.h: Include <string.h> if HAVE_STRING_H.
17426 * ChangeLog: Correct paths in last ChangeLog entry.
17427
174282002-04-09 Daniel Jacobowitz <drow@mvista.com>
17429
17430 * linux-low.h: Remove obsolete prototypes.
17431 (struct linux_target_ops): New.
17432 (extern the_low_target): New.
17433 * linux-low.c (num_regs, regmap): Remove declarations.
17434 (register_addr): Use the_low_target explicitly.
17435 (fetch_register): Likewise.
17436 (usr_fetch_inferior_registers): Likewise.
17437 (usr_store_inferior_registers): Likewise.
17438 * linux-arm-low.c (num_regs): Remove.
17439 (arm_num_regs): Define.
17440 (arm_regmap): Renamed from regmap, made static.
17441 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
17442 made static.
17443 (arm_cannot_store_register): Renamed from cannot_store_register,
17444 made static.
17445 (the_low_target): New.
17446 * linux-i386-low.c (num_regs): Remove.
17447 (i386_num_regs): Define.
17448 (i386_regmap): Renamed from regmap, made static.
17449 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
17450 made static.
17451 (i386_cannot_store_register): Renamed from cannot_store_register,
17452 made static.
17453 (the_low_target): New.
17454 * linux-ia64-low.c (num_regs): Remove.
17455 (ia64_num_regs): Define.
17456 (ia64_regmap): Renamed from regmap, made static.
17457 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
17458 made static.
17459 (ia64_cannot_store_register): Renamed from cannot_store_register,
17460 made static.
17461 (the_low_target): New.
17462 * linux-m68k-low.c (num_regs): Remove.
17463 (m68k_num_regs): Define.
17464 (m68k_regmap): Renamed from regmap, made static.
17465 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
17466 made static.
17467 (m68k_cannot_store_register): Renamed from cannot_store_register,
17468 made static.
17469 (the_low_target): New.
17470 * linux-mips-low.c (num_regs): Remove.
17471 (mips_num_regs): Define.
17472 (mips_regmap): Renamed from regmap, made static.
17473 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
17474 made static.
17475 (mips_cannot_store_register): Renamed from cannot_store_register,
17476 made static.
17477 (the_low_target): New.
17478 * linux-ppc-low.c (num_regs): Remove.
17479 (ppc_num_regs): Define.
17480 (ppc_regmap): Renamed from regmap, made static.
17481 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
17482 made static.
17483 (ppc_cannot_store_register): Renamed from cannot_store_register,
17484 made static.
17485 (the_low_target): New.
17486 * linux-s390-low.c (num_regs): Remove.
17487 (s390_num_regs): Define.
17488 (s390_regmap): Renamed from regmap, made static.
17489 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
17490 made static.
17491 (s390_cannot_store_register): Renamed from cannot_store_register,
17492 made static.
17493 (the_low_target): New.
17494 * linux-sh-low.c (num_regs): Remove.
17495 (sh_num_regs): Define.
17496 (sh_regmap): Renamed from regmap, made static.
17497 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
17498 made static.
17499 (sh_cannot_store_register): Renamed from cannot_store_register,
17500 made static.
17501 (the_low_target): New.
17502 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
17503 (the_low_target): New.
17504
175052002-04-09 Daniel Jacobowitz <drow@mvista.com>
17506
17507 * Makefile.in: Add stamp-h target.
17508 * configure.in: Create stamp-h.
17509 * configure: Regenerated.
17510
175112002-04-09 Daniel Jacobowitz <drow@mvista.com>
17512
17513 * inferiors.c: New file.
17514 * target.c: New file.
17515 * target.h: New file.
17516 * Makefile.in: Add target.o and inferiors.o. Update
17517 dependencies.
17518 * linux-low.c (inferior_pid): New static variable,
17519 moved from server.c.
17520 (linux_create_inferior): Renamed from create_inferior.
17521 Call add_inferior. Return 0 on success instead of a PID.
17522 (linux_attach): Renamed from myattach.
17523 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
17524 (linux_thread_alive): Renamed from mythread_alive.
17525 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
17526 child dies.
17527 (linux_resume): Renamed from myresume. Add missing ``return 0''.
17528 (regsets_store_inferior_registers): Correct error message.
17529 Add missing ``return 0''.
17530 (linux_fetch_registers): Renamed from fetch_inferior_registers.
17531 (linux_store_registers): Renamed from store_inferior_registers.
17532 (linux_read_memory): Renamed from read_inferior_memory.
17533 (linux_write_memory): Renamed from write_inferior_memory.
17534 (linux_target_ops): New structure.
17535 (initialize_low): Call set_target_ops ().
17536 * remote-utils.c (unhexify): New function.
17537 (hexify): New function.
17538 (input_interrupt): Send signals to ``signal_pid''.
17539 * server.c (inferior_pid): Remove.
17540 (start_inferior): Update create_inferior call.
17541 (attach_inferior): Call add_inferior.
17542 (handle_query): New function.
17543 (main): Call handle_query for `q' packets.
17544 * server.h: Include "target.h". Remove obsolete prototypes.
17545 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
17546
175472002-04-09 Daniel Jacobowitz <drow@mvista.com>
17548
17549 * Makefile.in: Add WARN_CFLAGS. Update configury
17550 dependencies.
17551 * configure.in: Check for <string.h>
17552 * configure: Regenerate.
17553 * config.in: Regenerate.
17554 * gdbreplay.c: Include needed system headers.
17555 (remote_open): Remove strchr prototype.
17556 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
17557 * regcache.c (supply_register): Change buf argument to const void *.
17558 (supply_register_by_name): Likewise.
17559 (collect_register): Change buf argument to void *.
17560 (collect_register_by_name): Likewise.
17561 * regcache.h: Add missing prototypes.
17562 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
17563 * server.c (handle_query): New function.
17564 (attached): New static variable, moved out of main.
17565 (main): Quiet longjmp clobber warnings.
17566 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
17567 * utils.c (error): Remove NORETURN.
17568 (fatal): Likewise.
This page took 2.100148 seconds and 4 git commands to generate.