Remove ptid_is_pid
[deliverable/binutils-gdb.git] / gdb / gdbserver / ChangeLog
1 2018-07-03 Tom Tromey <tom@tromey.com>
2
3 * linux-low.c: Update.
4
5 2018-07-03 Tom Tromey <tom@tromey.com>
6
7 * target.c: Update.
8
9 2018-07-03 Tom Tromey <tom@tromey.com>
10
11 * linux-low.c: Update.
12 * linux-mips-low.c: Update.
13 * lynx-low.c: Update.
14 * nto-low.c: Update.
15 * remote-utils.c: Update.
16 * server.c: Update.
17 * spu-low.c: Update.
18 * target.c: Update.
19 * thread-db.c: Update.
20
21 2018-07-03 Tom Tromey <tom@tromey.com>
22
23 * linux-low.c: Update.
24 * linux-mips-low.c: Update.
25 * lynx-low.c: Update.
26 * mem-break.c: Update.
27 * nto-low.c: Update.
28 * remote-utils.c: Update.
29 * server.c: Update.
30 * spu-low.c: Update.
31 * target.c: Update.
32 * tracepoint.c: Update.
33
34 2018-07-03 Tom Tromey <tom@tromey.com>
35
36 * linux-low.c: Update.
37 * linux-ppc-low.c: Update.
38 * linux-x86-low.c: Update.
39 * proc-service.c: Update.
40 * server.c: Update.
41 * spu-low.c: Update.
42 * thread-db.c: Update.
43 * win32-low.c: Update.
44
45 2018-07-03 Tom Tromey <tom@tromey.com>
46
47 * linux-low.c: Update.
48 * lynx-low.c: Update.
49 * nto-low.c: Update.
50 * remote-utils.c: Update.
51 * spu-low.c: Update.
52 * thread-db.c: Update.
53 * win32-low.c: Update.
54
55 2018-06-29 Joel Brobecker <brobecker@adacore.com>
56
57 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
58 parameter in call to 'amd64_create_target_description'.
59
60 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
61
62 * x86-tdesc.h: Remove executable permission flag.
63
64 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
65
66 * configure.ac: Remove AC_PREREQ, add missing quoting.
67 * configure: Re-generate.
68 * config.in: Re-generate.
69 * aclocal.m4: Re-generate.
70
71 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
72
73 * tracepoint.h (current_traceframe): Remove declaration.
74
75 2018-06-18 Alan Hayward <alan.hayward@arm.com>
76
77 * linux-aarch64-low.c (is_sve_tdesc): New function.
78 (aarch64_sve_regs_copy_to_regcache): Likewise.
79 (aarch64_sve_regs_copy_from_regcache): Likewise.
80 (aarch64_regs_info): Add SVE checks.
81 (initialize_low_arch): Initialize SVE.
82
83 2018-06-18 Alan Hayward <alan.hayward@arm.com>
84
85 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
86
87 2018-06-11 Alan Hayward <alan.hayward@arm.com>
88
89 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
90 (initialize_low_tracepoint): Likewise
91 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
92 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
93 param.
94 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
95 checks.
96 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
97
98 2018-06-11 Alan Hayward <alan.hayward@arm.com>
99
100 * server.h (PBUFSIZ): Increase size
101
102 2018-06-11 Alan Hayward <alan.hayward@arm.com>
103
104 * regcache.c (regcache::raw_compare): New function.
105 * regcache.h (regcache::raw_compare): New declaration.
106
107 2018-06-11 Alan Hayward <alan.hayward@arm.com>
108
109 * regcache.c (new_register_cache): Use new.
110 (free_register_cache): Use delete.
111 (register_data): Use const.
112 (supply_register): Move body inside regcache.
113 (regcache::raw_supply): New override function.
114 (collect_register): Move body inside regcache.
115 (regcache::raw_collect): New override function.
116 (regcache::get_register_status): New override function.
117 * regcache.h (struct regcache): Inherit from reg_buffer_common.
118
119 2018-06-09 Tom Tromey <tom@tromey.com>
120
121 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
122 declare queue.
123 (event_queue): Use std::queue.
124 (gdb_event_xfree): Remove.
125 (initialize_event_loop, process_event, wait_for_event): Update.
126
127 2018-06-08 Stan Cox <scox@redhat.com>
128
129 * win32-low.c (win32_create_inferior): last_ptid and last_status
130 moved to client_state.
131
132 2018-06-08 Pedro Alves <palves@redhat.com>
133
134 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
135 common/common-exceptions.o, common/common-utils.o,
136 common/errors.o, common/print-utils.o and utils.o.
137 * gdbreplay.c: Include "common-defs.h" instead of the two
138 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
139 string.h or alloca.h.
140 (perror_with_name): Delete.
141 (remote_open): Use xstrdup instead of strdup.
142 (main): Rename to ...
143 (captured_main): ... this.
144 (main): New.
145
146 2018-06-08 Tom Tromey <tom@tromey.com>
147
148 * linux-low.c (linux_low_read_btrace): Update.
149
150 2018-06-04 Stan Cox <scox@redhat.com>
151
152 * server.h (struct client_state): New.
153 * server.c (cont_thread, general_thread, multi_process)
154 (report_fork_events, report_vfork_events, report_exec_events)
155 (report_thread_events, swbreak_feature, hwbreak_feature)
156 (vCont_supported, disable_randomization, pass_signals)
157 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
158 Moved to client_state.
159 * remote-utils.c (remote_debug, noack_mode)
160 (transport_is_reliable): Moved to client_state.
161 * tracepoint.c (current_traceframe): Moved to client_state.
162
163 Update all callers.
164 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
165 linux-low.c, remote-utils.h, target.c: Use client_state.
166
167 2018-05-31 Alan Hayward <alan.hayward@arm.com>
168
169 * configure.srv: Add new c/h file.
170
171 2018-05-31 Alan Hayward <alan.hayward@arm.com>
172
173 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
174 null VQ.
175
176 2018-05-25 Maciej W. Rozycki <macro@mips.com>
177
178 * gdb.arch/mips-fpregset-core.exp: New test.
179 * gdb.arch/mips-fpregset-core.c: New test source.
180
181 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
182
183 PR server/23198
184 * hostio.c (require_int): Do not report overflow for integers
185 between 0xfffffff and 0x7fffffff.
186
187 2018-05-22 Maciej W. Rozycki <macro@mips.com>
188
189 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
190 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
191 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
192 functions.
193 (the_low_target): Wire them.
194
195 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
196
197 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
198 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
199 mode. Call collect_register_by_name with vscr using
200 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
201 (ppc_store_vrregset): Add and set vscr_offset variable as in
202 ppc_fill_vrregset. Call supply_register_by_name with vscr using
203 vscr_offset.
204
205 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
206
207 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
208 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
209 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
210
211 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
212
213 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
214 (ppc_store_vsxregset): Likewise.
215 (ppc_fill_vrregset): Likewise.
216 (ppc_store_vrregset): Likewise.
217 (ppc_fill_evrregset): Likewise.
218 (ppc_store_evrregset): Likewise.
219 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
220 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
221 needed.
222
223 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
224
225 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
226 wordsize of the inferior. Call ppc_linux_target_wordsize.
227
228 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
229
230 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
231 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
232 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
233 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
234 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
235 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
236 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
237 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
238 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
239 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
240 (tdesc_powerpc_e500l): Remove.
241 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
242 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
243 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
244 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
245 linux-ppc-tdesc.h.
246 (ppc_arch_setup): Remove target description matching code. Fill a
247 ppc_linux_features struct and call ppc_linux_match_description
248 with it.
249
250 2018-05-22 Maciej W. Rozycki <macro@mips.com>
251
252 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
253 width of the requested register exceeds the width of the
254 `ptrace' data type.
255 (mips_cannot_store_register): Likewise.
256
257 2018-05-21 Maciej W. Rozycki <macro@mips.com>
258
259 * linux-mips-low.c (mips_fetch_register): New function. Update
260 preceding comment.
261 (mips_store_gregset): Supply 0 rather than $restart for $zero.
262 (the_low_target): Wire `mips_fetch_register'.
263
264 2018-05-10 Joel Brobecker <brobecker@adacore.com>
265
266 * lynx-i386-low.c (LYNXOS_178): New macro.
267 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
268 the layout on LynxOS-178.
269 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
270 handle floating point registers that are not supported by
271 LynxOS-178.
272
273 2018-05-10 Tom Tromey <tom@tromey.com>
274
275 * configure: Rebuild.
276
277 2018-05-10 Joel Brobecker <brobecker@adacore.com>
278
279 PR server/23158:
280 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
281 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
282 Use it to set the expedite_regs field in the given tdesc.
283 * x86-tdesc.h: New file.
284 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
285 Adjust following the addition of the new expedite_regs parameter
286 to init_target_desc.
287 * linux-tic6x-low.c (tic6x_read_description): Likewise.
288 * linux-x86-tdesc.c: #include "x86-tdesc.h".
289 (i386_linux_read_description, amd64_linux_read_description):
290 Adjust following the addition of the new expedite_regs parameter
291 to init_target_desc.
292 * lynx-i386-low.c: #include "x86-tdesc.h".
293 (lynx_i386_arch_setup): Adjust following the addition of the new
294 expedite_regs parameter to init_target_desc.
295 * nto-x86-low.c: #include "x86-tdesc.h".
296 (nto_x86_arch_setup): Adjust following the addition of the new
297 expedite_regs parameter to init_target_desc.
298 * win32-i386-low.c: #include "x86-tdesc.h".
299 (i386_arch_setup): Adjust following the addition of the new
300 expedite_regs parameter to init_target_desc.
301
302 2018-05-10 Joel Brobecker <brobecker@adacore.com>
303
304 PR server/23158:
305 * win32-low.c (win32_create_inferior): Add call to my_wait
306 setting last_status global.
307
308 2018-05-10 Joel Brobecker <brobecker@adacore.com>
309
310 PR server/23158:
311 * win32-low.c (create_process): Only call gdb_tilde_expand if
312 inferior_cwd is not NULL.
313
314 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
315
316 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
317 registers to the cache if their values have changed.
318 (i387_xsave_to_cache): Provide default values for x87 control
319 registers when these features are available, but disabled.
320 * regcache.c (supply_register_by_name_zeroed): New function.
321 * regcache.h (supply_register_by_name_zeroed): Declare new
322 function.
323
324 2018-05-07 Tom Tromey <tom@tromey.com>
325
326 * configure: Rebuild.
327
328 2018-05-04 Tom Tromey <tom@tromey.com>
329
330 * configure: Rebuild.
331
332 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
333 Pedro Alves <palves@redhat.com>
334
335 * linux-aarch64-low.c (aarch64_stopped_data_address):
336 Likewise.
337
338 2018-04-27 Tom Tromey <tom@tromey.com>
339
340 * configure: Rebuild.
341
342 2018-04-23 Tom Tromey <tom@tromey.com>
343
344 * configure: Rebuild.
345
346 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
347
348 * Makefile.in (depcomp): Add "..".
349 (all_deps_files): New and use it.
350
351 2018-04-18 Alan Hayward <alan.hayward@arm.com>
352
353 * configure.srv (aarch64*-*-linux*): Don't include xml.
354 (i[34567]86-*-cygwin*): Likewise.
355 (i[34567]86-*-linux*): Likewise.
356 (i[34567]86-*-lynxos*): Likewise.
357 (i[34567]86-*-mingw32ce*): Likewise.
358 (i[34567]86-*-mingw*): Likewise.
359 (i[34567]86-*-nto*): Likewise.
360 (tic6x-*-uclinux): Likewise.
361 (x86_64-*-linux*): Likewise.
362 (x86_64-*-mingw*): Likewise.
363 (x86_64-*-cygwin*): Likewise.
364
365 2018-04-18 Alan Hayward <alan.hayward@arm.com>
366
367 * tdesc.c: Remove xml parameter.
368
369 2018-04-18 Alan Hayward <alan.hayward@arm.com>
370
371 * server.c (get_features_xml): Remove cast.
372 * tdesc.c (void target_desc::accept): Fill in function.
373 (tdesc_get_features_xml): Remove old xml creation.
374 (print_xml_feature::visit_pre): Add xml vistor.
375 * tdesc.h (struct target_desc): Make xmltarget mutable.
376 (tdesc_get_features_xml): Remove declaration.
377
378 2018-04-18 Alan Hayward <alan.hayward@arm.com>
379
380 * tdesc.c (tdesc_architecture_name): Add new function.
381 (tdesc_osabi_name): Likewise.
382 (tdesc_get_features_xml): Use new functions.
383
384 2018-04-18 Alan Hayward <alan.hayward@arm.com>
385
386 * tdesc.c (tdesc_create_flags): Remove.
387 (tdesc_add_flag): Likewise.
388 (tdesc_named_type): Likewise.
389 (tdesc_create_union): Likewise.
390 (tdesc_create_struct): Likewise.
391 (tdesc_create_vector): Likewise.
392 (tdesc_add_bitfield): Likewise.
393 (tdesc_add_field): Likewise.
394 (tdesc_set_struct_size): Likewise.
395
396 2018-04-18 Alan Hayward <alan.hayward@arm.com>
397
398 * tdesc.c (~target_desc): Remove implictly deleted items.
399 (init_target_desc): Iterate all features.
400 (tdesc_get_features_xml): Use vector.
401 (tdesc_create_feature): Create feature.
402 * tdesc.h (tdesc_feature) Remove
403 (target_desc): Add features.
404
405 2018-04-18 Alan Hayward <alan.hayward@arm.com>
406
407 * Makefile.in: Add common/tdesc.c
408 * tdesc.c (init_target_desc): init all reg_defs from register
409 vector.
410 (tdesc_create_reg): Create tdesc_reg.
411 * tdesc.h (tdesc_feature): Add register vector.
412
413 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
414
415 * tdesc.h (struct target_desc) <features>: Change type to
416 std::vector<std::string>.
417 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
418 changes.
419 (tdesc_get_features_xml): Likewise.
420 (tdesc_create_feature): Likewise.
421
422 2018-03-26 Alan Hayward <alan.hayward@arm.com>
423
424 * regcache.c (find_register_by_number): Return a ref.
425 (find_regno): Use references.
426 (register_size): Likewise.
427 (register_data): Likewise.
428 * tdesc.c (target_desc::~target_desc): Remove free calls.
429 (target_desc::operator==): Use std::vector compare.
430 (init_target_desc): Use reference.
431 (tdesc_create_reg): Use reg constructors.
432 * tdesc.h (struct target_desc): Replace pointer with object.
433
434 2018-03-23 Alan Hayward <alan.hayward@arm.com>
435
436 * regcache.c (find_register_by_number): Make static.
437 (find_regno): Use find_register_by_number
438 * regcache.h (struct reg): Remove declaration.
439
440 2018-03-23 Alan Hayward <alan.hayward@arm.com>
441
442 * tdesc.c (target_desc::~target_desc): Move to here.
443 (target_desc::operator==): Likewise.
444 * tdesc.h (target_desc::~target_desc): Move from here.
445 (target_desc::operator==): Likewise.
446
447 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
448
449 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
450
451 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
452
453 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
454 S390_TDESC_GS.
455 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
456 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
457 and init_registers_s390_gs_linux64.
458
459 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
460
461 * linux-s390-low.c (s390_fill_gs): Remove function.
462 (s390_fill_gsbc): Remove function.
463 (s390_regsets): Set fill functions for the guarded storage regsets
464 to NULL.
465
466 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
467
468 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
469 the word size. Add comment.
470 (s390_get_wordsize): New function.
471 (s390_arch_setup): No longer select a temporary tdesc to fetch the
472 pswm with it. Instead, use s390_get_wordsize to determine the
473 word size first and derive the correct tdesc from that directly.
474
475 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
476
477 * Makefile.in: Include silent-rules.mk.
478 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
479 (COMPILE): Add ECHO_CXX.
480 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
481 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
482 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
483 (version-generated.c): Add ECHO_GEN.
484 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
485 (IPAGENT_COMPILE): Add ECHO_CXX.
486 (%-generated.c): Add ECHO_REGDAT.
487
488 2018-03-14 Tom Tromey <tom@tromey.com>
489
490 PR cli/14977:
491 * ax.c (ax_printf): Special case for NULL.
492
493 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
494
495 * linux-low.c (linux_qxfer_libraries_svr4): Use
496 xml_escape_text_append.
497
498 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
499
500 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
501
502 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
503
504 * server.c (handle_general_set): Remove unnecessary xstrdup.
505
506 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
507
508 * server.c (parse_debug_format_options): Adjust to
509 delim_string_to_char_ptr_vec changes.
510 * thread-db.c (thread_db_load_search): Adjust to
511 dirnames_to_char_ptr_vec changes.
512
513 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
514
515 * target.h (target_enable_btrace, target_disable_btrace)
516 (target_read_btrace, target_read_btrace_conf): Turn macro into
517 inline function. Throw error if target method is not defined.
518 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
519 check for btrace target method. Be prepared to handle exceptions
520 from btrace target methods.
521
522 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
523
524 * server.c (captured_main): Change order of error message printed
525 when the current working directory cannot be found.
526
527 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
528
529 * server.c: Include "filenames.h" and "pathstuff.h".
530 (program_name): Delete variable.
531 (program_path): New anonymous class.
532 (get_exec_wrapper): Use "program_path" instead of
533 "program_name".
534 (handle_v_run): Likewise.
535 (captured_main): Likewise.
536 (process_serial_event): Likewise.
537
538 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
539
540 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
541 (OBJS): Add "pathstuff.o".
542 * server.c (current_directory): New global variable.
543 (captured_main): Initialize "current_directory".
544
545 2018-02-26 Alan Hayward <alan.hayward@arm.com>
546
547 * tdesc.c: Use common/tdesc.h.
548 * tdesc.h: Likewise.
549
550 2018-02-20 Alan Hayward <alan.hayward@arm.com>
551 Simon Marchi <simon.marchi@ericsson.com>
552
553 * Makefile.in: Switch order of make rules.
554
555 2018-02-19 Alan Hayward <alan.hayward@arm.com>
556
557 * Makefile.in: Add common directory in build.
558 * configure.ac: Add common reference.
559 * configure: Regenerate.
560
561 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
562
563 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
564 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
565 * spu-low.c (spu_target_ops): Likewise.
566 * win32-low.c (win32_target_ops): Likewise.
567 * server.c (supported_btrace_packets): Report packets unconditionally.
568 * target.h (target_ops) <supports_btrace>: Remove.
569 (target_supports_btrace): Remove.
570
571 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
572
573 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
574 (handle_btrace_disable): Change return type to void. Use exceptions
575 to report errors.
576 (handle_btrace_general_set): Catch exception and copy message to
577 return message.
578
579 2018-02-08 Tom Tromey <tom@tromey.com>
580
581 * linux-low.c (install_software_single_step_breakpoints): Use
582 make_scoped_restore.
583 * inferiors.c (make_cleanup_restore_current_thread): Remove.
584 (do_restore_current_thread_cleanup): Remove.
585 * gdbthread.h (make_cleanup_restore_current_thread): Don't
586 declare.
587
588 2018-02-08 Tom Tromey <tom@tromey.com>
589
590 * mem-break.c (set_raw_breakpoint_at): Use
591 gdb::unique_xmalloc_ptr.
592
593 2018-01-30 Pedro Alves <palves@redhat.com>
594
595 PR gdb/13211
596 * target.c (target_terminal::terminal_state): Rename to ...
597 (target_terminal::m_terminal_state): ... this.
598
599 2018-01-19 James Clarke <jrtc27@jrtc27.com>
600
601 * linux-low.c (handle_extended_wait): Surround call to
602 thread_db_notice_clone with #ifdef USE_THREAD_DB.
603
604 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
605
606 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
607 linux_ptrace_attach_fail_reason_string now returning an
608 std::string.
609 (linux_attach): Likewise.
610 * thread-db.c (attach_thread): Likewise.
611
612 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
613
614 PR gdb/21559
615 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
616 checking for fs_base/gs_base fields in struct user_regs_struct.
617 * configure: Regenerate.
618
619 2018-01-16 Yao Qi <yao.qi@linaro.org>
620
621 PR gdb/18749
622 * linux-low.c (fetch_register): Call supply_register instead of
623 error.
624
625 2018-01-08 Yao Qi <yao.qi@linaro.org>
626 Simon Marchi <simon.marchi@ericsson.com>
627
628 * Makefile.in (OBS): Remove selftest.o.
629 * configure.ac: Set srv_selftest_objs if $development is true.
630 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
631 * configure: Re-generated.
632 * server.c (captured_main): Wrap variable selftest_filter with
633 GDB_SELF_TEST.
634
635 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
636
637 * server.c (parse_debug_format_options): Return std::string.
638 (handle_monitor_command, captured_main): Adjust.
639
640 2018-01-05 Pedro Alves <palves@redhat.com>
641
642 PR gdb/18653
643 * server.c (captured_main): Pass quiet=false to
644 save_original_signals_state.
645
646 2018-01-01 Joel Brobecker <brobecker@adacore.com>
647
648 * gdbreplay.c (gdbreplay_version): Update copyright year in
649 version message.
650 * server.c (gdbserver_version): Likewise.
651
652 2017-12-08 Tom Tromey <tom@tromey.com>
653
654 * ax.c (ax_printf): Update.
655
656 2017-12-07 Yao Qi <yao.qi@linaro.org>
657
658 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
659 aarch64_linux_read_description.
660 * linux-amd64-ipa.c (idx2mask): New array.
661 (get_ipa_tdesc): Move idx2mask out.
662 (initialize_low_tracepoint): Initialize target descriptions.
663 * linux-i386-ipa.c (idx2mask): New array.
664 (get_ipa_tdesc): Move idx2mask out.
665 (initialize_low_tracepoint): Initialize target descriptions.
666
667 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
668
669 * tdesc.c (struct tdesc_type): Change return type.
670 (tdesc_add_flag): Change parameter type.
671 (tdesc_add_bitfield): Likewise.
672 (tdesc_add_field): Likewise.
673 (tdesc_set_struct_size): Likewise.
674
675 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
676
677 * regcache.c (registers_to_string): Remove unused variable.
678
679 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
680
681 * inferiors.c (for_each_inferior_with_data): Remove.
682 * inferiors.h (for_each_inferior_with_data): Remove.
683 * server.c (handle_qxfer_threads_worker): Change parameter type.
684 (handle_qxfer_threads_proper): Use for_each_thread.
685
686 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
687
688 * inferiors.c (for_each_inferior): Remove.
689 (clear_inferiors): Use for_each_thread.
690 * inferiors.h (for_each_inferior): Remove.
691 * linux-low.c (linux_wait_for_event_filtered): Use
692 for_each_thread.
693 (linux_stabilize_threads): Likewise.
694 * regcache.c (regcache_release): Likewise.
695 * server.c (gdb_wants_all_threads_stopped): Likewise.
696 (clear_pending_status_callback): Remove.
697 (handle_status): Use for_each_thread.
698 (captured_main): Likewise.
699 * win32-low.c (child_init_thread_list): Likewise.
700 (win32_clear_inferiors): Likewise.
701 (fake_breakpoint_event): Likewise.
702
703 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
704
705 * inferiors.h (find_inferior): Remove.
706 * inferiors.c (find_inferior): Remove.
707
708 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
709
710 * linux-low.c (resume_status_pending_p): Update comment.
711 (need_step_over_p): Update comment.
712
713 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
714
715 * linux-low.c (proceed_one_lwp): Return void, change parameter
716 type.
717 (unsuspend_and_proceed_one_lwp): Likewise.
718 (proceed_all_lwps): Use for_each_thread.
719 (unstop_all_lwps): Likewise.
720
721 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
722
723 * linux-low.c (linux_resume_one_thread): Return void, take
724 parameter directly.
725 (linux_resume): Use for_each_thread.
726
727 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
728
729 * linux-low.c (send_sigstop_callback): Return void, change
730 parameter type. Rename to...
731 (send_sigstop): ... this.
732 (suspend_and_send_sigstop_callback): Return void, change parameter
733 type. Rename to...
734 (suspend_and_send_sigstop): ... this.
735 (stop_all_lwps): Use for_each_thread.
736
737 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
738
739 * linux-low.c (lwp_running): Return bool, remove unused
740 argument.
741 (linux_stabilize_threads): Use find_thread.
742
743 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
744
745 * linux-low.c (select_singlestep_lwp_callback): Remove.
746 (count_events_callback): Remove.
747 (select_event_lwp_callback): Remove.
748 (select_event_lwp): Use find_thread/for_each_thread.
749
750 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
751
752 * linux-low.c (not_stopped_callback): Return bool, take filter
753 argument directly.
754 (linux_wait_for_event_filtered): Use find_thread.
755 (linux_wait_1): Likewise.
756
757 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
758
759 * linux-low.c (same_lwp): Remove.
760 (find_lwp_pid): Use find_thread.
761
762 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
763
764 * linux-low.c (delete_lwp_callback): Remove.
765 (linux_mourn): Use for_each_thread.
766
767 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
768
769 * linux-low.c (linux_detach_lwp_callback): Return void, remove
770 args parameter, don't check for pid.
771 (linux_detach): Use for_each_thread.
772
773 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
774
775 * linux-low.c (struct counter): Remove.
776 (second_thread_of_pid_p): Remove.
777 (last_thread_of_process_p): Use find_thread.
778
779 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
780
781 * inferiors.c (find_inferior_in_random): Remove.
782 * inferiors.h (find_inferior_in_random): Remove.
783 * linux-low.c (status_pending_p_callback): Return bool, accept
784 parameter ptid directly.
785 (linux_wait_for_event_filtered): Use find_thread_in_random.
786 (linux_wait_1): Likewise.
787
788 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
789
790 * inferiors.c (find_inferior_id): Remove.
791 (find_thread_ptid): Move implemention from find_inferior_id to
792 here.
793 * inferiors.h (find_inferior_id): Remove.
794 * server.c (handle_status): Use find_thread_ptid.
795 (process_serial_event): Likewise.
796 * thread-db.c (find_one_thread): Likewise.
797 (thread_db_thread_handle): Likewise.
798 * win32-low.c (thread_rec): Likewise.
799 (child_delete_thread): Likewise.
800 (win32_thread_alive): Likewise.
801 (get_child_debug_event): Likewise.
802
803 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
804
805 * linux-mips-low.c (update_watch_registers_callback): Return
806 void, remove pid_p parameter, don't check for pid.
807 (mips_insert_point, mips_remove_point): Use for_each_thread.
808
809 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
810
811 * lynx.low (lynx_delete_thread_callback): Remove.
812 (lynx_mourn): Use for_each_thread.
813
814 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
815
816 * regcache.c (regcache_invalidate_one): Remove.
817 (regcache_invalidate_pid): use for_each_thread.
818
819 2017-11-26 Tom Tromey <tom@tromey.com>
820
821 * linux-low.c (linux_create_inferior): Update.
822
823 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
824
825 * spu-low.c (spu_create_inferior): Fix typo in argument name.
826
827 2017-11-24 Alan Hayward <alan.hayward@arm.com>
828
829 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
830 * linux-aarch64-low.c (initialize_low_arch): Call init func.
831 * linux-aarch64-tdesc-selftest.c: New file.
832 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
833
834 2017-11-24 Alan Hayward <alan.hayward@arm.com>
835
836 * configure.srv: Add new file.
837 * linux-aarch64-low.c (initialize_low_arch): Call init func.
838 * linux-aarch64-tdesc-selftest.c: New file.
839 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
840
841 2017-11-24 Alan Hayward <alan.hayward@arm.com>
842
843 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
844 * linux-aarch64-low.c (initialize_low_arch): Remove init.
845 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
846
847 2017-11-24 Alan Hayward <alan.hayward@arm.com>
848
849 * configure.srv: Add new files.
850 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
851 aarch64_linux_read_description.
852 * linux-aarch64-low.c (aarch64_linux_read_description):
853 Merge with aarch64_arch_setup.
854 (aarch64_arch_setup): Call aarch64_linux_read_description.
855 * linux-aarch64-tdesc.c: New file.
856 * linux-aarch64-tdesc.h: New file.
857
858 2017-11-24 Yao Qi <yao.qi@linaro.org>
859
860 * configure.srv: Set $srv_regobj for tic6x-linux.
861 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
862 (tic6x_read_description): Move some code to tic6x_arch_setup.
863 (tic6x_tdesc_test): New function.
864 (initialize_low_arch): Call selftests::register_test.
865
866 2017-11-22 Yao Qi <yao.qi@linaro.org>
867
868 * remote-utils.c (prepare_resume_reply): Use memcpy.
869
870 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
871
872 * linux-low.c (kill_one_lwp_callback): Return void, take
873 argument directly, don't filter on pid.
874 (linux_kill): Use for_each_thread.
875
876 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
877
878 * linux-low.c (need_step_over_p): Return bool, remove dummy
879 argument.
880 (linux_resume, proceed_all_lwps): Use find_thread.
881
882 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
883
884 * linux-low.c (resume_status_pending_p): Return bool, remove
885 flag_p argument.
886 (linux_resume): Use find_thread.
887
888 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
889
890 * linux-low.c (struct thread_resume_array): Remove.
891 (linux_set_resume_request): Return void, take arguments
892 directly.
893 (linux_resume): Use for_each_thread.
894
895 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
896
897 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
898 return bool, remove data argument.
899 (linux_stabilize_threads): Use find_thread.
900
901 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
902
903 * linux-low.c (unsuspend_one_lwp): Remove.
904 (unsuspend_all_lwps): Use for_each_thread, inline code from
905 unsuspend_one_lwp.
906
907 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
908
909 * gdbthread.h (find_thread): Add overload with ptid_t filter.
910 * linux-low.c (struct iterate_over_lwps_args): Remove.
911 (iterate_over_lwps_filter): Remove.
912 (iterate_over_lwps): Use find_thread.
913
914 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
915
916 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
917 (linux_handle_new_gdb_connection): Use for_each_thread, inline
918 code from reset_lwp_ptrace_options_callback.
919
920 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
921
922 * linux-arm-low.c (struct update_registers_data): Remove.
923 (update_registers_callback): Return void, take arguments
924 directly, don't check thread's pid.
925 (arm_insert_point, arm_remove_point): Use for_each_thread.
926
927 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
928
929 * win32-low.c (continue_one_thread): Return void, take argument
930 directly.
931 (child_continue): Use for_each_thread.
932
933 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
934
935 * win32-i386-low.c (update_debug_registers_callback): Rename
936 to ...
937 (update_debug_registers): ... this, return void, remove pid_p arg.
938 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
939
940 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
941
942 * inferiors.h (struct process_info): Add constructor, initialize
943 fields..
944 <syscalls_to_catch>: Change type to std::vector<int>.
945 * inferiors.c (add_process): Allocate process_info with new.
946 (remove_process): Free process_info with delete.
947 * linux-low.c (handle_extended_wait): Adjust.
948 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
949 * server.c (handle_general_set): Adjust.
950
951 2017-11-16 Pedro Alves <palves@redhat.com>
952
953 * remote-utils.c (remote_close): Block SIGIO signals instead of
954 uninstalling the SIGIO handler.
955
956 2017-11-16 Alan Hayward <alan.hayward@arm.com>
957
958 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
959
960 2017-11-16 Yao Qi <yao.qi@linaro.org>
961
962 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
963 (tic6x_store_gregset): Likewise.
964 (tic6x_usrregs_info): Move it up.
965
966 2017-11-15 Alan Hayward <alan.hayward@arm.com>
967
968 * Makefile.in: Update arch rules.
969 * configure.srv: Explicitly mark arch/ files.
970
971 2017-11-13 Andreas Schwab <schwab@suse.de>
972
973 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
974 function.
975 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
976
977 2017-11-06 Pedro Alves <palves@redhat.com>
978
979 * config.in, configure: Regenerate.
980
981 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
982
983 * target.c (struct thread_search): Remove.
984 (thread_search_callback): Remove.
985 (prepare_to_access_memory): Use for_each_thread instead of
986 find_inferior. Inline code from thread_search_callback.
987
988 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
989
990 * server.c (struct visit_actioned_threads_data): Remove.
991 (visit_actioned_threads): Change prototype to take arguments
992 directly.
993 (resume): Use find_thread instead of find_inferior.
994
995 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
996
997 * server.c (queue_stop_reply_callback): Change prototype, return
998 void.
999 (find_status_pending_thread_callback): Remove.
1000 (handle_status): Replace find_inferior with find_thread and
1001 for_each_thread.
1002
1003 2017-10-25 Alan Hayward <alan.hayward@arm.com>
1004
1005 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
1006 with REGNO.
1007 (aarch64_store_gregset): Likewise.
1008 (aarch64_fill_fpregset): Likewise.
1009 (aarch64_store_fpregset): Likewise.
1010
1011 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
1012
1013 * gdbthread.h (find_thread, for_each_thread): New functions.
1014 * inferiors.c (thread_of_pid): Remove.
1015 (find_any_thread_of_pid): Use find_thread.
1016 * linux-low.c (num_lwps): Use for_each_thread.
1017
1018 2017-10-17 Yao Qi <yao.qi@linaro.org>
1019
1020 * Makefile.in: Remove one rule.
1021 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
1022
1023 2017-10-17 Yao Qi <yao.qi@linaro.org>
1024
1025 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
1026 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
1027
1028 2017-10-17 Yao Qi <yao.qi@linaro.org>
1029
1030 * configure.srv: Rename arm.o with arch/arm.o.
1031
1032 2017-10-17 Yao Qi <yao.qi@linaro.org>
1033
1034 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
1035 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
1036 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
1037 (arch-i386.o, arch-amd64.o): Remove rules.
1038 (arch/%.o): New rule.
1039 Update POSTCOMPILE and COMPILE.pre.
1040 * configure.ac: Invoke AC_CONFIG_COMMANDS.
1041 * configure: Re-generated.
1042 * configure.srv: Replace arch-i386.o with arch/i386.o.
1043 Replace arch-amd64.o with arch/amd64.o.
1044
1045 2017-10-16 Yao Qi <yao.qi@linaro.org>
1046
1047 * configure: Regenerated.
1048
1049 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1050
1051 * inferiors.h: (struct inferior_list): Remove.
1052 (struct inferior_list_entry); Remove.
1053 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
1054 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
1055 get_first_inferior): Remove.
1056 (for_each_inferior, for_each_inferior_with_data, find_inferior,
1057 find_inferior_id, find_inferior_in_random): Change signature.
1058 * inferiors.c (all_threads): Change type to
1059 std::list<thread_info *>.
1060 (get_thread): Remove macro.
1061 (find_inferior, find_inferior_id): Change signature, implement
1062 using find_thread.
1063 (find_inferior_in_random): Change signature, implement using
1064 find_thread_in_random.
1065 (for_each_inferior, for_each_inferior_with_data): Change
1066 signature, implement using for_each_thread.
1067 (add_inferior_to_list, remove_inferior): Remove.
1068 (add_thread, get_first_thread, thread_of_pid,
1069 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
1070 (get_first_inferior, one_inferior_p, clear_inferior_list):
1071 Remove.
1072 (clear_inferiors, get_thread_process): Update.
1073 * gdbthread.h: Include <list>.
1074 (struct thread_info) <entry>: Remove field.
1075 <id>: New field.
1076 (all_threads): Change type to std::list<thread_info *>.
1077 (get_first_inferior): Add doc.
1078 (find_thread, for_each_thread, find_thread_in_random): New
1079 functions.
1080 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
1081 * linux-arm-low.c (update_registers_callback): Update.
1082 * linux-low.c (second_thread_of_pid_p): Update.
1083 (kill_one_lwp_callback, linux_detach_lwp_callback,
1084 delete_lwp_callback, status_pending_p_callback, same_lwp,
1085 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
1086 iterate_over_lwps, not_stopped_callback,
1087 resume_stopped_resumed_lwps, count_events_callback,
1088 select_singlestep_lwp_callback, select_event_lwp_callback,
1089 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
1090 suspend_and_send_sigstop_callback, wait_for_sigstop,
1091 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
1092 lwp_running, linux_set_resume_request, resume_status_pending_p,
1093 need_step_over_p, start_step_over, linux_resume_one_thread,
1094 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
1095 reset_lwp_ptrace_options_callback): Update.
1096 * linux-mips-low.c (update_watch_registers_callback): Update.
1097 * regcache.c (regcache_invalidate_one, regcache_invalidate):
1098 Update.
1099 (free_register_cache_thread_one): Remove.
1100 (regcache_release): Update.
1101 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
1102 handle_qxfer_threads_worker): Update.
1103 (handle_query): Update, use list iterator.
1104 (visit_actioned_threads, handle_pending_status,
1105 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
1106 clear_pending_status_callback, set_pending_status_callback,
1107 find_status_pending_thread_callback, handle_status,
1108 process_serial_event): Update.
1109 * target.c (thread_search_callback): Update.
1110 * thread-db.c (thread_db_get_tls_address): Update.
1111 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
1112 Update.
1113 * win32-i386-low.c (update_debug_registers_callback): Update.
1114 * win32-low.c (delete_thread_info, child_delete_thread,
1115 continue_one_thread, suspend_one_thread,
1116 get_child_debug_event): Adjust.
1117
1118 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1119
1120 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
1121 * inferiors.h: Include <list>.
1122 (struct process_info) <entry>: Remove field.
1123 <pid>: New field.
1124 (pid_of): Change macro to function.
1125 (ptid_of, lwpid_of): Remove macro.
1126 (all_processes): Change type to std::list<process_info *>.
1127 (ALL_PROCESSES): Remove macro.
1128 (for_each_process, find_process): New function.
1129 * inferiors.c (all_processes): Change type to
1130 std::list<process_info *>.
1131 (find_thread_process): Adjust.
1132 (add_process): Likewise.
1133 (remove_process): Likewise.
1134 (find_process_pid): Likewise.
1135 (get_first_process): Likewise.
1136 (started_inferior_callback): Remove.
1137 (have_started_inferiors_p): Adjust.
1138 (attached_inferior_callback): Remove.
1139 (have_attached_inferiors_p): Adjust.
1140 * linux-low.c (check_zombie_leaders): Likewise.
1141 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
1142 (x86_linux_update_xmltarget): Adjust.
1143 * server.c (handle_query): Likewise.
1144 (gdb_reattached_process): Remove.
1145 (handle_status): Adjust.
1146 (kill_inferior_callback): Likewise.
1147 (detach_or_kill_inferior): Remove.
1148 (print_started_pid): Likewise.
1149 (print_attached_pid): Likewise.
1150 (detach_or_kill_for_exit): Update.
1151 (process_serial_event): Likewise.
1152 * linux-arm-low.c (arm_new_fork): Likewise.
1153
1154 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1155
1156 * dll.h: Include <list>.
1157 (struct dll_info): Add constructor.
1158 <entry>: Remove field.
1159 (all_dlls): Change type to std::list<dll_info>.
1160 * dll.c: Include <algorithm>.
1161 (get_dll): Remove macro.
1162 (all_dlls): Change type to std::list<dll_info *>.
1163 (free_one_dll): Remove.
1164 (match_dll): Likewise.
1165 (loaded_dll): Adjust.
1166 (unloaded_dll): Adjust to all_dlls type change, use
1167 std::find_if. Inline code from match_dll.
1168 (clear_dlls): Adjust to all_dlls type change.
1169 * server.c (emit_dll_description): Remove.
1170 (handle_qxfer_libraries): Adjust to all_dlls type change,
1171 integrate emit_dll_description's functionality.
1172
1173 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1174
1175 * linux-low.h (struct linux_target_ops) <delete_process>: New
1176 field.
1177 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
1178 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
1179 (struct linux_target_ops): Add delete_process callback.
1180 * linux-arm-low.c (arm_delete_process): New.
1181 (struct linux_target_ops): Add delete_process callback.
1182 * linux-bfin-low.c (struct linux_target_ops): Likewise.
1183 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
1184 * linux-m32r-low.c (struct linux_target_ops): Likewise.
1185 * linux-mips-low.c (mips_linux_delete_process): New.
1186 (struct linux_target_ops): Add delete_process callback.
1187 * linux-ppc-low.c (struct linux_target_ops): Likewise.
1188 * linux-s390-low.c (struct linux_target_ops): Likewise.
1189 * linux-sh-low.c (struct linux_target_ops): Likewise.
1190 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
1191 * linux-tile-low.c (struct linux_target_ops): Likewise.
1192 * linux-x86-low.c (x86_linux_delete_process): New.
1193 (struct linux_target_ops): Add delete_process callback.
1194 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
1195
1196 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1197
1198 * linux-aarch64-low.c (the_low_target): Add thread delete
1199 callback.
1200 * linux-arm-low.c (arm_delete_thread): New function.
1201 (the_low_target): Add thread delete callback.
1202 * linux-bfin-low.c (the_low_target): Likewise.
1203 * linux-crisv32-low.c (the_low_target): Likewise.
1204 * linux-low.c (delete_lwp): Invoke delete_thread callback if
1205 set.
1206 * linux-low.h (struct linux_target_ops) <delete_thread>: New
1207 field.
1208 * linux-m32r-low.c (the_low_target): Add thread delete callback.
1209 * linux-mips-low.c (mips_linux_delete_thread): New function.
1210 (the_low_target): Add thread delete callback.
1211 * linux-ppc-low.c (the_low_target): Likewise.
1212 * linux-s390-low.c (the_low_target): Likewise.
1213 * linux-sh-low.c (the_low_target): Likewise.
1214 * linux-tic6x-low.c (the_low_target): Likewise.
1215 * linux-tile-low.c (the_low_target): Likewise.
1216 * linux-x86-low.c (the_low_target): Likewise.
1217 * linux-xtensa-low.c (the_low_target): Likewise.
1218
1219 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
1220
1221 * win32-low.c: Include "common-inferior.h".
1222
1223 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1224
1225 * inferiors.c (set_inferior_cwd): New function.
1226 * server.c (handle_general_set): Handle QSetWorkingDir packet.
1227 (handle_query): Inform that QSetWorkingDir is supported.
1228 * win32-low.c (create_process): Pass the inferior's cwd to
1229 CreateProcess.
1230
1231 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1232
1233 * inferiors.c (current_inferior_cwd): New global variable.
1234 (get_inferior_cwd): New function.
1235 * inferiors.h (struct process_info) <cwd>: New field.
1236
1237 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1238
1239 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
1240 (OBS): Add gdb_tilde_expand.o.
1241
1242 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
1243
1244 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
1245 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
1246
1247 2017-09-29 Pedro Alves <palves@redhat.com>
1248
1249 * ax.c (gdb_parse_agent_expr): Constify.
1250 * ax.h (gdb_parse_agent_expr): Constify.
1251 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
1252 Constify.
1253 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
1254 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
1255 * remote-utils.h (read_ptid): Constify.
1256 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
1257 (process_point_options, process_serial_event): Constify.
1258 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
1259 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
1260 (cmd_qtbuffer): Constify.
1261
1262 2017-09-29 Pedro Alves <palves@redhat.com>
1263
1264 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
1265 fails.
1266
1267 2017-09-29 Pedro Alves <palves@redhat.com>
1268
1269 * linux-low.c (handle_extended_wait): Pass parent thread instead
1270 of process to thread_db_notice_clone.
1271 * linux-low.h (thread_db_notice_clone): Replace parent process
1272 parameter with parent thread parameter.
1273 * thread-db.c (find_one_thread): Add comment.
1274 (thread_db_notice_clone): Replace parent process parameter with
1275 parent thread parameter. Temporarily switch to the parent thread.
1276
1277 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
1278
1279 * gdbthread.h: Include "common-gdbthread.h".
1280 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
1281 "if" when validating the ptid.
1282 * remote-utils.c: Include "gdbthread.h".
1283 (prepare_resume_reply): Use "switch_to_thread".
1284 * target.c (done_accessing_memory): Likewise.
1285
1286 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1287
1288 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
1289 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
1290 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
1291 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
1292 s390x-gs-linux64-ipa.o to ipa_obj.
1293 * linux-s390-low.c (HWCAP_S390_GS): New define.
1294 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
1295 New functions.
1296 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
1297 (s390_arch_setup): Check for guarded-storage support and choose
1298 appropriate tdesc.
1299 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
1300 init_registers_s390x_gs_linux64.
1301 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
1302 enum value.
1303 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
1304 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
1305
1306 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
1307
1308 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
1309
1310 2017-09-21 Kevin Buettner <kevinb@redhat.com>
1311
1312 * linux-low.h (struct lwp_info): Add new field, thread_handle.
1313 (thread_db_thread_handle): Declare.
1314 * linux-low.c (linux_target_ops): Initialize thread_handle.
1315 * server.c (handle_qxfer_threads_worker): Add support for
1316 "handle" attribute.
1317 * target.h (struct target_ops): Add new function pointer,
1318 thread_handle.
1319 (target_thread_handle): Define.
1320 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
1321 field in lwp.
1322 (thread_db_thread_handle): New function.
1323
1324 2017-09-21 Kevin Buettner <kevinb@redhat.com>
1325
1326 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
1327 * linux-low.h (thread_db_notice_clone): Declare.
1328 * thread-db.c (thread_db_notice_clone): New function.
1329
1330 2017-09-21 Pedro Alves <palves@redhat.com>
1331
1332 * server.c (gdb_read_memory, handle_status, process_serial_event)
1333 (handle_serial_event, handle_target_event): Adjust to
1334 set_desired_thread prototype change.
1335 * target.c (set_desired_thread): Remove 'use_general' parameter
1336 and adjust.
1337 * target.h (set_desired_thread): Remove 'use_general' parameter.
1338
1339 2017-09-20 Tom Tromey <tom@tromey.com>
1340
1341 * target.c (target_terminal::terminal_state): Define.
1342 (target_terminal::init): Rename from target_terminal_init.
1343 (target_terminal::inferior): Rename from
1344 target_terminal_inferior.
1345 (target_terminal::ours): Rename from target_terminal_ours.
1346 (target_terminal::ours_for_output, target_terminal::info): New.
1347
1348 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1349
1350 * server.c (accumulate_file_name_length): Remove.
1351 (emit_dll_description): Adjust to std::string change.
1352 (handle_qxfer_libraries): Use std::string to hold document.
1353
1354 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1355
1356 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
1357 return type of xml_escape_text.
1358 * server.c (emit_dll_description): Likewise.
1359
1360 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1361
1362 * server.c (captured_main): Accept argument for --selftest.
1363 Update run_tests call.
1364 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
1365 when registering selftests.
1366
1367 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1368
1369 * regcache.c (get_thread_regcache): Update code to use "std::vector"
1370 instead of "VEC" for "target_desc.reg_defs".
1371 (regcache_cpy): Likewise.
1372 (registers_to_string): Likewise.
1373 (registers_from_string): Likewise.
1374 (find_regno): Likewise.
1375 (supply_regblock): Likewise.
1376 (regcache_raw_read_unsigned): Likewise.
1377 * tdesc.c (init_target_desc): Likewise.
1378 (tdesc_create_reg): Likewise.
1379 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
1380 (struct target_desc) <reg_defs>: Convert to "std::vector".
1381 (target_desc): Do not initialize "reg_defs".
1382 (~target_desc): Update code to use "std::vector" instead of "VEC"
1383 for "target_desc.reg_defs".
1384 (operator==): Likewise.
1385
1386 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1387
1388 * inferiors.h (thread_to_gdb_id): Remove.
1389 * inferiors.c (thread_to_gdb_id): Remove.
1390 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
1391 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
1392 lynx_store_registers, lynx_read_memory, lynx_write_memory):
1393 Likewise.
1394 * nto-low.c (nto_fetch_registers, nto_store_registers,
1395 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
1396
1397 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1398
1399 * inferiors.h (gdb_id_to_thread_id): Remove.
1400 * inferiors.c (gdb_id_to_thread_id): Remove.
1401 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
1402 removal. Move pid declaration closer to where it's used.
1403
1404 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1405
1406 * server.c (handle_detach): New function.
1407 (process_serial_event): Move code out, call handle_detach.
1408
1409 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1410
1411 * server.c (require_running): Rename to ...
1412 (require_running_or_return): ... this ...
1413 (require_running_or_break): ... and this.
1414 (handle_query, process_serial_event): Adjust.
1415
1416 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1417
1418 * linux-low.c (linux_set_resume_request): Remove unused
1419 variables.
1420
1421 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1422
1423 * server.c (first_thread_of): Remove.
1424 (process_serial_event): Replace usage of first_thread_of with
1425 find_any_thread_of_pid.
1426 * tracepoint.c (same_process_p): Remove.
1427 (gdb_agent_about_to_close): Replace usage of same_process_p with
1428 find_any_thread_of_pid.
1429 * linux-x86-low.c (same_process_callback): Remove.
1430 (x86_arch_setup_process_callback): Replace usage of
1431 same_process_callback with find_any_thread_of_pid.
1432 * thread-db.c (any_thread_of): Remove.
1433 (switch_to_process): Replace usage of any_thread_of with
1434 find_any_thread_of_pid.
1435 * inferiors.c (thread_pid_matches_callback): Remove.
1436 (find_thread_process): Adjust to use find_any_thread_of_pid.
1437
1438 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1439
1440 * regcache.c (get_thread_regcache): Guard calls to "memset"
1441 with "!VEC_empty".
1442
1443 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1444
1445 * linux-low.c (handle_extended_wait): Use
1446 "allocate_target_description" instead of "XNEW".
1447 * linux-x86-low.c (initialize_low_arch): Likewise.
1448
1449 2017-09-05 Yao Qi <yao.qi@linaro.org>
1450
1451 * configure.srv (srv_i386_regobj): Remove.
1452 (srv_amd64_regobj): Remove.
1453 (srv_regobj): Set it to "" for x86 non-linux targets.
1454 * linux-x86-tdesc.c (i386_linux_read_description):
1455 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
1456 (init_registers_i386): Remove the declaration.
1457 (tdesc_i386): Remove the declaration.
1458 (lynx_i386_arch_setup): Call i386_create_target_description.
1459 * nto-x86-low.c: Likewise.
1460 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
1461 [!__x86_64__]: include arch/i386.h.
1462 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
1463
1464 2017-09-05 Yao Qi <yao.qi@linaro.org>
1465
1466 * configure.srv (srv_amd64_linux_xmlfiles): Remove
1467 i386/amd64-XXX-linux from it.
1468
1469 2017-09-05 Yao Qi <yao.qi@linaro.org>
1470
1471 * configure.srv: Empty srv_amd64_linux_regobj if $development is
1472 false.
1473 (ipa_amd64_linux_regobj): Remove.
1474 (ipa_x32_linux_regobj): Remove.
1475
1476 2017-09-05 Yao Qi <yao.qi@linaro.org>
1477
1478 * Makefile.in (arch-amd64.o): New rule.
1479 * configure.srv: Append arch-amd64.o.
1480 * linux-amd64-ipa.c: Include common/x86-xstate.h.
1481 (get_ipa_tdesc): Call amd64_linux_read_description.
1482 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
1483 and init_registers_amd64_XXX.
1484 * linux-x86-low.c (x86_linux_read_description): Call
1485 amd64_linux_read_description.
1486 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
1487 (initialize_low_arch): Don't call init_registers_x32_XXX and
1488 init_registers_amd64_XXX.
1489 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
1490 and tdesc_amd64_XXX.
1491 [__x86_64__] (amd64_tdesc_test): New function.
1492 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
1493 and init_registers_amd64_XXX.
1494 * linux-x86-tdesc.c: Include arch/amd64.h.
1495 (xcr0_to_tdesc_idx): New function.
1496 (i386_linux_read_description): New function.
1497 (amd64_get_ipa_tdesc_idx): New function.
1498 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
1499 (amd64_get_ipa_tdesc): Declare.
1500
1501 2017-09-05 Yao Qi <yao.qi@linaro.org>
1502
1503 * configure.srv (srv_i386_linux_xmlfiles): Remove
1504 i386/i386-XXX-linux.xml from it.
1505
1506 2017-09-05 Yao Qi <yao.qi@linaro.org>
1507
1508 * configure.srv: Set srv_i386_linux_regobj empty if $development
1509 is false.
1510 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
1511 initialize_low_tdesc.
1512 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
1513 with #if initialize_low_tdesc.
1514 * linux-x86-tdesc-selftest.c: New file.
1515 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
1516
1517 2017-09-05 Yao Qi <yao.qi@linaro.org>
1518
1519 * Makefile.in (arch-i386.o): New rule.
1520 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
1521 (x86_64-*-linux*): Likewise.
1522 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
1523 include arch/i386.h.
1524 (i386_linux_read_description): Remove code and call
1525 i386_create_target_description.
1526 * tdesc.c (allocate_target_description): New function.
1527 * tdesc.h (set_tdesc_architecture): Remove declaration.
1528 (set_tdesc_osabi): Likewise.
1529
1530 2017-09-05 Yao Qi <yao.qi@linaro.org>
1531
1532 * linux-x86-tdesc.c: Don't include <inttypes.h>.
1533 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
1534 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
1535 .xmltarget.
1536 * server.c (get_features_xml): Call tdesc_get_features_xml.
1537 * tdesc.c (set_tdesc_architecture): New function.
1538 (set_tdesc_osabi): New function.
1539 (tdesc_get_features_xml): New function.
1540 (tdesc_create_feature): Add an argument.
1541 * tdesc.h (struct target_desc) <features>: New field.
1542 <arch, osabi>: New field.
1543 (~target_desc): xfree features, arch, and osabi.
1544 (target_desc::oerator==): Don't compare .xmltarget.
1545 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
1546 (set_tdesc_osabi): Likewise.
1547 (tdesc_get_features_xml): Likewise.
1548
1549 2017-09-05 Yao Qi <yao.qi@linaro.org>
1550
1551 * linux-x86-tdesc.c: Include selftest.h.
1552 (i386_tdesc_test): New function.
1553 (initialize_low_tdesc): Call selftests::register_test.
1554 * tdesc.h: Include regdef.h.
1555 (target_desc): Override operator == and !=.
1556
1557 2017-09-05 Yao Qi <yao.qi@linaro.org>
1558
1559 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
1560 (ipa_obj): Likewise.
1561 * linux-i386-ipa.c: Include common/x86-xstate.h
1562 (get_ipa_tdesc): Call i386_linux_read_description.
1563 (initialize_low_tracepoint): Don't call init_registers_XXX
1564 functions, call initialize_low_tdesc instead.
1565 * linux-x86-low.c (x86_linux_read_description): Call
1566 i386_linux_read_description.
1567 (initialize_low_arch): Don't call init_registers_i386_XXX
1568 functions, call initialize_low_tdesc.
1569 * linux-x86-tdesc.c: New file.
1570 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
1571 (i386_get_ipa_tdesc_idx): Declare.
1572 (i386_get_ipa_tdesc): Declare.
1573 (initialize_low_tdesc): Declare.
1574
1575 2017-09-05 Yao Qi <yao.qi@linaro.org>
1576
1577 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
1578 instead of 0.
1579
1580 2017-09-05 Yao Qi <yao.qi@linaro.org>
1581
1582 * Makefile.in (IPA_OBJS): Add vec-ipa.o
1583 * regcache.c (get_thread_regcache): Use VEC_length.
1584 (init_register_cache): Likewise.
1585 (regcache_cpy): Likewise.
1586 (registers_to_string): Iterate reg_defs via VEC_iterate.
1587 (find_regno): Likewise.
1588 (find_register_by_number): Use VEC_index.
1589 (register_size): Call find_register_by_number.
1590 (register_data): Call find_register_by_number.
1591 (supply_regblock): Use VEC_length.
1592 (regcache_raw_read_unsigned): Likewise.
1593 * tdesc.c (init_target_desc): Iterate reg_defs via
1594 VEC_iterate.
1595 (default_description): Update initializer.
1596 (copy_target_description): Don't update field num_registers.
1597 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
1598 <num_registers>: Remove.
1599
1600 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
1601
1602 * Makefile.in (.SECONDARY): Define target.
1603
1604 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
1605
1606 * linux-low.c (linux_wait_1): Adjust.
1607 * server.c (queue_stop_reply_callback): Adjust.
1608
1609 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1610
1611 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
1612 QEnvironmentUnset and QEnvironmentReset packets.
1613 (handle_query): Inform remote that QEnvironmentHexEncoded,
1614 QEnvironmentUnset and QEnvironmentReset are supported.
1615
1616 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
1617
1618 * inferiors.h (inferior_target_data): Rename to ...
1619 (thread_target_data): ... this.
1620 (inferior_regcache_data): Rename to ...
1621 (thread_regcache_data): ... this.
1622 (set_inferior_regcache_data): Rename to ...
1623 (set_thread_regcache_data): ... this.
1624 * inferiors.c (inferior_target_data): Rename to ...
1625 (thread_target_data): ... this.
1626 (inferior_regcache_data): Rename to ...
1627 (thread_regcache_data): ... this.
1628 (set_inferior_regcache_data): Rename to ...
1629 (set_thread_regcache_data): ... this.
1630 (free_one_thread): Update.
1631 * linux-low.h (get_thread_lwp): Update.
1632 * regcache.c (get_thread_regcache): Update.
1633 (regcache_invalidate_thread): Update.
1634 (free_register_cache_thread): Update.
1635 * win32-i386-low.c (update_debug_registers_callback): Update.
1636 (win32_get_current_dr): Update.
1637 * win32-low.c (thread_rec): Update.
1638 (delete_thread_info): Update.
1639 (continue_one_thread): Update.
1640 (suspend_one_thread): Update.
1641
1642 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
1643
1644 * inferiors.c (set_inferior_target_data): Remove.
1645 * inferiors.h (set_inferior_target_data): Remove.
1646
1647 2017-08-18 Yao Qi <yao.qi@linaro.org>
1648
1649 * Makefile.in (OBS): Add selftest.o.
1650 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
1651 * configure, config.in: Re-generated.
1652 * server.c: Include common/sefltest.h.
1653 (captured_main): Handle option --selftest.
1654
1655 2017-08-09 Yao Qi <yao.qi@linaro.org>
1656
1657 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
1658 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
1659 i386-avx-mpx.o and i386-mmx.o.
1660 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
1661 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
1662 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
1663 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
1664 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
1665 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
1666 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
1667 i386/amd64-avx-mpx.xml.
1668
1669 2017-08-09 Yao Qi <yao.qi@linaro.org>
1670
1671 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
1672 and x32-avx-avx512.o.
1673 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
1674 i386/x32-avx-avx512.xml.
1675
1676 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
1677
1678 * tracepoint.h (enum class fast_tpoint_collect_result): New
1679 enumeration.
1680 (fast_tracepoint_collecting): Change return type to
1681 fast_tpoint_collect_result.
1682 * tracepoint.c (fast_tracepoint_collecting): Likewise.
1683 * linux-low.h: Include tracepoint.h.
1684 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
1685 fast_tpoint_collect_result.
1686 * linux-low.c (handle_tracepoints): Adjust.
1687 (linux_fast_tracepoint_collecting): Change return type to
1688 fast_tpoint_collect_result.
1689 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
1690 linux_wait_1, stuck_in_jump_pad_callback,
1691 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
1692 proceed_one_lwp): Adjust to type change.
1693
1694 2017-07-10 Yao Qi <yao.qi@linaro.org>
1695
1696 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
1697
1698 2017-06-29 Yao Qi <yao.qi@linaro.org>
1699
1700 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
1701 Remove.
1702 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
1703
1704 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
1705
1706 * Makefile.in (IPA_OBJS): Sort and format one item per line.
1707
1708 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
1709
1710 * linux-low.c (linux_create_inferior): Adjust code to access the
1711 environment information via 'gdb_environ' class.
1712 * lynx-low.c (lynx_create_inferior): Likewise.
1713 * server.c (our_environ): Make it an instance of 'gdb_environ'.
1714 (get_environ): Return a pointer to 'our_environ'.
1715 (captured_main): Initialize 'our_environ'.
1716 * server.h (get_environ): Adjust prototype.
1717 * spu-low.c (spu_create_inferior): Adjust code to access the
1718 environment information via 'gdb_environ' class.
1719
1720 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
1721
1722 * linux-low.c (linux_read_memory, linux_write_memory): Remove
1723 usage of "register" keyword.
1724
1725 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
1726
1727 * configure: Re-generate.
1728
1729 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
1730
1731 * configure: Re-generate.
1732
1733 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
1734
1735 * Makefile.in (COMPILE.pre): Add "-x c++".
1736
1737 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
1738
1739 * fork-child.c: Conditionally include <signal.h>.
1740
1741 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
1742
1743 * server.c (handle_general_set): Handle new packet
1744 "QStartupWithShell".
1745 (handle_query): Add "QStartupWithShell" to the list of supported
1746 packets.
1747 (gdbserver_usage): Add help text explaining the
1748 new "--startup-with-shell" and "--no-startup-with-shell" CLI
1749 options.
1750 (captured_main): Recognize and act upon the presence of the new
1751 CLI options.
1752
1753 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
1754 Pedro Alves <palves@redhat.com>
1755
1756 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
1757 * configure: Regenerate.
1758 * configure.srv (srv_linux_obj): Add "fork-child.o" and
1759 "fork-inferior.o".
1760 (i[34567]86-*-lynxos*): Likewise.
1761 (spu*-*-*): Likewise.
1762 * fork-child.c: New file.
1763 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
1764 and "environ.h".
1765 (linux_ptrace_fun): New function.
1766 (linux_create_inferior): Adjust function prototype to reflect
1767 change on "target.h". Adjust function code to use
1768 "fork_inferior".
1769 (linux_request_interrupt): Delete "signal_pid".
1770 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
1771 (lynx_ptrace_fun): New function.
1772 (lynx_create_inferior): Adjust function prototype to reflect
1773 change on "target.h". Adjust function code to use
1774 "fork_inferior".
1775 * nto-low.c (nto_create_inferior): Adjust function prototype and
1776 code to reflect change on "target.h". Update comments.
1777 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
1778 "common-terminal.h" and "environ.h".
1779 (terminal_fd): Moved to fork-child.c.
1780 (old_foreground_pgrp): Likewise.
1781 (restore_old_foreground_pgrp): Likewise.
1782 (last_status): Make it global.
1783 (last_ptid): Likewise.
1784 (our_environ): New variable.
1785 (startup_with_shell): Likewise.
1786 (program_name): Likewise.
1787 (program_argv): Rename to...
1788 (program_args): ...this.
1789 (wrapper_argv): New variable.
1790 (start_inferior): Delete function.
1791 (get_exec_wrapper): New function.
1792 (get_exec_file): Likewise.
1793 (get_environ): Likewise.
1794 (prefork_hook): Likewise.
1795 (post_fork_inferior): Likewise.
1796 (postfork_hook): Likewise.
1797 (postfork_child_hook): Likewise.
1798 (handle_v_run): Update code to deal with arguments coming from the
1799 remote host. Update calls from "start_inferior" to
1800 "create_inferior".
1801 (captured_main): Likewise. Initialize environment variable. Call
1802 "have_job_control".
1803 * server.h (post_fork_inferior): New prototype.
1804 (get_environ): Likewise.
1805 (last_status): Declare.
1806 (last_ptid): Likewise.
1807 (signal_pid): Likewise.
1808 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
1809 (spu_ptrace_fun): New function.
1810 (spu_create_inferior): Adjust function prototype to reflect change
1811 on "target.h". Adjust function code to use "fork_inferior".
1812 * target.c (target_terminal_init): New function.
1813 (target_terminal_inferior): Likewise.
1814 (target_terminal_ours): Likewise.
1815 * target.h: Include <vector>.
1816 (struct target_ops) <create_inferior>: Update prototype.
1817 (create_inferior): Update macro.
1818 * utils.c (gdb_flush_out_err): New function.
1819 * win32-low.c (win32_create_inferior): Adjust function prototype
1820 and code to reflect change on "target.h".
1821
1822 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
1823
1824 * inferiors.c (switch_to_thread): New function.
1825
1826 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
1827
1828 * Makefile.in (SFILE): Add "common/job-control.c".
1829 (OBS): Add "job-control.o".
1830
1831 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
1832
1833 * Makefile: Remove "@host_makefile_frag@".
1834
1835 2017-05-05 Pedro Alves <palves@redhat.com>
1836
1837 * configure: Regenerate.
1838
1839 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
1840
1841 * configure: Regenerate.
1842
1843 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
1844
1845 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
1846 software_single_step change of return type to
1847 std::vector<CORE_ADDR>.
1848 * linux-low.c (install_software_single_step_breakpoints):
1849 Likewise.
1850 * linux-low.h (install_software_single_step_breakpoints):
1851 Likewise.
1852
1853 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
1854
1855 * remote-utils.c: Include "gdb_termios.h" instead of
1856 "terminal.h".
1857 * terminal.h: Delete file.
1858
1859 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
1860
1861 * server.c: Include <vector>.
1862 <program_argv, wrapper_argv>: Convert to std::vector.
1863 (start_inferior): Rewrite function to use C++.
1864 (handle_v_run): Likewise. Update code that calculates the argv
1865 based on the vRun packet; use C++.
1866 (captured_main): Likewise.
1867
1868 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
1869
1870 * server.c (handle_v_cont): Initialize thread_resume::thread
1871 with null_ptid.
1872
1873 2017-04-05 Pedro Alves <palves@redhat.com>
1874
1875 * configure: Regenerate.
1876
1877 2017-04-05 Pedro Alves <palves@redhat.com>
1878
1879 * gdbreplay.c (sync_error): Constify.
1880 * linux-x86-low.c (push_opcode): Constify.
1881
1882 2017-04-05 Pedro Alves <palves@redhat.com>
1883
1884 * win32-low.c (get_child_debug_event)
1885 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
1886 Report TARGET_WAITKIND_SPURIOUS instead.
1887
1888 2017-04-05 Pedro Alves <palves@redhat.com>
1889
1890 * remote-utils.c (remote_prepare, remote_open): Constify.
1891 * remote-utils.h (remote_prepare, remote_open): Constify.
1892 * server.c (captured_main): Constify 'port' handling.
1893
1894 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
1895
1896 * Makefile.in (clean): Clear .deps.
1897
1898 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
1899
1900 * .gitignore: Remove generated files, replace with wildcard.
1901 * (clean): Replace removal of generated files with wildcard.
1902 (version.c): Replace with...
1903 (version-generated.c): ...this.
1904 (xml-builtin.c): Replace with...
1905 (xml-builtin-generated.c): ...this.
1906 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
1907 (%.c: *regformats*): Replace with...
1908 (%-generated.c: *regformats*): ...this.
1909
1910 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
1911
1912 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
1913 (xtensa_fill_gregset): Call collect_register_by_name for
1914 threadptr register.
1915 (xtensa_store_gregset): Call supply_register_by_name for
1916 threadptr register.
1917
1918 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
1919
1920 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
1921 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
1922 (xtensa_store_gregset): Call supply_register for all registers in
1923 a0_regnum..a0_regnum + C0_NREGS range.
1924
1925 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
1926
1927 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
1928 (ax-ipa.o: ax.c): Remove.
1929 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
1930 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
1931 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
1932 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
1933 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
1934
1935 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
1936
1937 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
1938 (print-utils-ipa.o: ../common/print-utils.c): Remove.
1939 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
1940 (errors-ipa.o: ../common/errors.c): Remove.
1941 (format-ipa.o: ../common/format.c): Remove.
1942 (common-utils-ipa.o: ../common/common-utils.c): Remove.
1943
1944 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
1945
1946 * Makefile.in (%-ipa.o: %.c): New rule.
1947 (tracepoint-ipa.o: tracepoint.c): Remove.
1948 (utils-ipa.o: utils.c): Remove.
1949 (remote-utils-ipa.o: remote-utils.c): Remove.
1950 (regcache-ipa.o: regcache.c): Remove.
1951 (i386-linux-ipa.o: i386-linux.c): Remove.
1952 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
1953 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
1954 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
1955 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
1956 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
1957 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
1958 (amd64-linux-ipa.o: amd64-linux.c): Remove.
1959 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
1960 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
1961 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
1962 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
1963 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
1964 (aarch64-ipa.o: aarch64.c): Remove.
1965 (s390-linux32-ipa.o: s390-linux32.c): Remove.
1966 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
1967 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
1968 (s390-linux64-ipa.o: s390-linux64.c): Remove.
1969 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
1970 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
1971 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
1972 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
1973 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
1974 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
1975 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
1976 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
1977 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
1978 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
1979 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
1980 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
1981 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
1982 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
1983 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
1984 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
1985 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
1986 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
1987 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
1988 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
1989 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
1990 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
1991 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
1992 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
1993 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
1994 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
1995 (tdesc-ipa.o: tdesc.c): Remove.
1996 (x32-linux-ipa.o: x32-linux.c): Remove.
1997 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
1998 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
1999
2000 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2001
2002 * Makefile.in (%.o: ../arch/%.c): New rule.
2003 (arm.o: ../arch/arm.c): Remove.
2004 (arm-linux.o: ../arch/arm-linux.c): Remove.
2005 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
2006 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
2007
2008 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2009
2010 * Makefile.in (%.o: ../nat/%.c): New rule.
2011 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
2012 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
2013 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
2014 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
2015 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
2016 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
2017 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
2018 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
2019 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
2020 (linux-personality.o: ../nat/linux-personality.c): Remove.
2021 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
2022 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
2023 (x86-linux.o: ../nat/x86-linux.c): Remove.
2024 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
2025 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
2026
2027 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2028
2029 * Makefile.in (%.o: ../common/%.c): New rule.
2030 (signals.o: ../common/signals.c): Remove.
2031 (print-utils.o: ../common/print-utils.c): Remove.
2032 (rsp-low.o: ../common/rsp-low.c): Remove.
2033 (common-utils.o: ../common/common-utils.c): Remove.
2034 (posix-strerror.o: ../common/posix-strerror.c): Remove.
2035 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
2036 (vec.o: ../common/vec.c): Remove.
2037 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
2038 (xml-utils.o: ../common/xml-utils.c): Remove.
2039 (ptid.o: ../common/ptid.c): Remove.
2040 (buffer.o: ../common/buffer.c): Remove.
2041 (format.o: ../common/format.c): Remove.
2042 (filestuff.o: ../common/filestuff.c): Remove.
2043 (agent.o: ../common/agent.c): Remove.
2044 (errors.o: ../common/errors.c): Remove.
2045 (environ.o: ../common/environ.c): Remove.
2046 (common-debug.o: ../common/common-debug.c): Remove.
2047 (cleanups.o: ../common/cleanups.c): Remove.
2048 (common-exceptions.o: ../common/common-exceptions.c): Remove.
2049 (fileio.o: ../common/fileio.c): Remove.
2050 (common-regcache.o: ../common/common-regcache.c): Remove.
2051 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
2052 (new-op.o: ../common/new-op.c): Remove.
2053 (btrace-common.o: ../common/btrace-common.c): Remove.
2054
2055 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2056
2057 * Makefile.in (%.o: ../target/%.c): New rule.
2058 (waitstatus.o: ../target/waitstatus.c): Remove.
2059
2060 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2061
2062 * Makefile.in
2063 (%.c: ../regformats/%.dat,
2064 (%.c: ../regformats/arm/%.dat,
2065 (%.c: ../regformats/i386/%.dat,
2066 (%.c: ../regformats/rs6000/%.dat): New rules.
2067 (aarch64.c): Remove.
2068 (reg-arm.c): Remove.
2069 (arm-with-iwmmxt.c): Remove.
2070 (arm-with-vfpv2.c): Remove.
2071 (arm-with-vfpv3.c): Remove.
2072 (arm-with-neon.c): Remove.
2073 (reg-bfin.c): Remove.
2074 (reg-cris.c): Remove.
2075 (reg-crisv32.c): Remove.
2076 (i386.c): Remove.
2077 (i386-linux.c): Remove.
2078 (i386-avx.c): Remove.
2079 (i386-avx-linux.c): Remove.
2080 (i386-avx-avx512.c): Remove.
2081 (i386-avx-avx512-linux.c): Remove.
2082 (i386-mpx.c): Remove.
2083 (i386-mpx-linux.c): Remove.
2084 (i386-avx-mpx-avx512-pku.c): Remove.
2085 (i386-avx-mpx-avx512-pku-linux.c): Remove.
2086 (i386-avx-mpx.c): Remove.
2087 (i386-avx-mpx-linux.c): Remove.
2088 (i386-mmx.c): Remove.
2089 (i386-mmx-linux.c): Remove.
2090 (reg-ia64.c): Remove.
2091 (reg-m32r.c): Remove.
2092 (reg-m68k.c): Remove.
2093 (reg-cf.c): Remove.
2094 (mips-linux.c): Remove.
2095 (mips-dsp-linux.c): Remove.
2096 (mips64-linux.c): Remove.
2097 (mips64-dsp-linux.c): Remove.
2098 (nios2-linux.c): Remove.
2099 (powerpc-32.c): Remove.
2100 (powerpc-32l.c): Remove.
2101 (powerpc-altivec32l.c): Remove.
2102 (powerpc-cell32l.c): Remove.
2103 (powerpc-vsx32l.c): Remove.
2104 (powerpc-isa205-32l.c): Remove.
2105 (powerpc-isa205-altivec32l.c): Remove.
2106 (powerpc-isa205-vsx32l.c): Remove.
2107 (powerpc-e500l.c): Remove.
2108 (powerpc-64l.c): Remove.
2109 (powerpc-altivec64l.c): Remove.
2110 (powerpc-cell64l.c): Remove.
2111 (powerpc-vsx64l.c): Remove.
2112 (powerpc-isa205-64l.c): Remove.
2113 (powerpc-isa205-altivec64l.c): Remove.
2114 (powerpc-isa205-vsx64l.c): Remove.
2115 (s390-linux32.c): Remove.
2116 (s390-linux32v1.c): Remove.
2117 (s390-linux32v2.c): Remove.
2118 (s390-linux64.c): Remove.
2119 (s390-linux64v1.c): Remove.
2120 (s390-linux64v2.c): Remove.
2121 (s390-te-linux64.c): Remove.
2122 (s390-vx-linux64.c): Remove.
2123 (s390-tevx-linux64.c): Remove.
2124 (s390x-linux64.c): Remove.
2125 (s390x-linux64v1.c): Remove.
2126 (s390x-linux64v2.c): Remove.
2127 (s390x-te-linux64.c): Remove.
2128 (s390x-vx-linux64.c): Remove.
2129 (s390x-tevx-linux64.c): Remove.
2130 (tic6x-c64xp-linux.c): Remove.
2131 (tic6x-c64x-linux.c): Remove.
2132 (tic6x-c62x-linux.c): Remove.
2133 (reg-sh.c): Remove.
2134 (reg-sparc64.c): Remove.
2135 (reg-spu.c): Remove.
2136 (amd64.c): Remove.
2137 (amd64-linux.c): Remove.
2138 (amd64-avx.c): Remove.
2139 (amd64-avx-linux.c): Remove.
2140 (amd64-avx-avx512.c): Remove.
2141 (amd64-avx-avx512-linux.c): Remove.
2142 (amd64-mpx.c): Remove.
2143 (amd64-mpx-linux.c): Remove.
2144 (amd64-avx-mpx-avx512-pku.c): Remove.
2145 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
2146 (amd64-avx-mpx.c): Remove.
2147 (amd64-avx-mpx-linux.c): Remove.
2148 (x32.c): Remove.
2149 (x32-linux.c): Remove.
2150 (x32-avx.c): Remove.
2151 (x32-avx-linux.c): Remove.
2152 (x32-avx-avx512.c): Remove.
2153 (x32-avx-avx512-linux.c): Remove.
2154 (reg-xtensa.c): Remove.
2155 (reg-tilegx.c): Remove.
2156 (reg-tilegx32.c): Remove.
2157
2158 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
2159
2160 * Makefile.in (SFILES): Add "common/environ.c".
2161 (OBJS): Add "common/environ.h".
2162
2163 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
2164
2165 * configure.ac: Check if the fs_base and gs_base members of
2166 `struct user_regs_struct' exist.
2167 * config.in: Regenerated.
2168 * configure: Likewise.
2169
2170 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
2171
2172 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
2173 target_read_memory.
2174 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
2175 (get_next_pcs_syscall_next_pc): Likewise.
2176
2177 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
2178
2179 * win32-i386-low.c: Fix incorrect reference to a couple source files.
2180 * nto-x86-low.c: Likewise.
2181
2182 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
2183
2184 * Makefile.in: Include disable-implicit-rules.mk.
2185
2186 2016-11-23 Pedro Alves <palves@redhat.com>
2187
2188 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
2189 (debug_vprintf): Use std::chrono::steady_clock instead of
2190 gettimeofday. Use '.' instead of ':'.
2191 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
2192 (get_timestamp): Use std::chrono::steady_clock instead of
2193 gettimeofday.
2194
2195 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2196
2197 * Makefile.in: Fix whitespace formatting.
2198
2199 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
2200
2201 * Makefile.in (SFILES, OBS): Flatten list and order
2202 alphabetically.
2203
2204 2016-11-23 Pedro Alves <palves@redhat.com>
2205
2206 * event-loop.c (handle_file_event): Use warning.
2207 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
2208 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
2209 Use warning.
2210
2211 2016-11-23 Pedro Alves <palves@redhat.com>
2212
2213 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
2214 output.
2215 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
2216 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
2217 debug_printf and debug_flush for debug output.
2218 * server.c (handle_general_set): Likewise.
2219 * thread-db.c (try_thread_db_load): Use debug_printf for debug
2220 output.
2221
2222 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2223
2224 * Makefile.in (.c.o): Replace rule with ...
2225 (%.o: %.c): ... this one.
2226
2227 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2228
2229 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
2230 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
2231 make.
2232 * configure.ac: Remove checks for the make program.
2233 * configure: Re-generate.
2234
2235 2016-10-28 Pedro Alves <palves@redhat.com>
2236
2237 * Makefile.in (CXX_DIALECT): Get from configure.
2238 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
2239 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
2240 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
2241 * config.in: Regenerate.
2242 * configure: Regenerate.
2243
2244 2016-10-27 Yao Qi <yao.qi@linaro.org>
2245
2246 * linux-low.c (linux_supports_range_stepping): Return true if
2247 can_software_single_step return true.
2248
2249 2016-10-27 Yao Qi <yao.qi@linaro.org>
2250
2251 * inferiors.c (find_inferior_in_random): New function.
2252 * inferiors.h (find_inferior_in_random): Declare.
2253 * linux-low.c (linux_wait_for_event_filtered): Call
2254 find_inferior_in_random instead of find_inferior.
2255
2256 2016-10-27 Yao Qi <yao.qi@linaro.org>
2257
2258 * linux-low.c (linux_wait_1): If single-step breakpoints are
2259 inserted, remove them.
2260
2261 2016-10-26 Pedro Alves <palves@redhat.com>
2262
2263 * linux-low.c (handle_extended_wait): Link parent/child fork
2264 threads.
2265 (linux_wait_1): Unlink them.
2266 (linux_set_resume_request): Ignore resume requests for
2267 already-resumed and unhandled fork child threads.
2268 * linux-low.h (struct lwp_info) <fork_relative>: New field.
2269 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
2270 New functions.
2271 (handle_v_requests) <vCont>: Don't call require_running.
2272 * server.h (in_queued_stop_replies): New declaration.
2273
2274 2016-10-24 Yao Qi <yao.qi@linaro.org>
2275
2276 PR server/20733
2277 * linux-aarch64-low.c (append_insns): Cast the return value to
2278 'uint32_t *'.
2279
2280 2016-10-10 Yao Qi <yao.qi@linaro.org>
2281
2282 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
2283
2284 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2285
2286 * target.c (target_supports_multi_process): New function, moved
2287 from...
2288 * target.h (target_supports_multi_process): ... here. Remove
2289 macro.
2290
2291 2016-10-05 Tom Tromey <tom@tromey.com>
2292
2293 PR remote/20655:
2294 * tracepoint.c (handle_tracepoint_bkpts): Check
2295 ipa_error_tracepoint, not ipa_stopping_tracepoint.
2296
2297 2016-10-05 Yao Qi <yao.qi@linaro.org>
2298
2299 * configure.srv: Update the path of arm-*.xml files.
2300
2301 2016-10-05 Terry Guo <terry.guo@arm.com>
2302 Yao Qi <yao.qi@linaro.org>
2303
2304 * Makefile.in: Adjust the path of rules.
2305 * configure.srv: Update the path of xml files.
2306 * regformats/arm-with-iwmmxt.dat: Regenerated.
2307 * regformats/arm-with-neon.dat: Likewise.
2308 * regformats/arm-with-vfpv2.dat: Likewise.
2309 * regformats/arm-with-vfpv3.dat Likewise.
2310
2311 2016-09-30 Yao Qi <yao.qi@linaro.org>
2312
2313 PR gdbserver/20627
2314 * target.c (target_stop_and_wait): Don't call
2315 target_continue_no_signal, use resume_stop instead.
2316
2317 2016-09-26 Yao Qi <yao.qi@linaro.org>
2318
2319 * linux-low.c (linux_wait_1): Call debug_exit.
2320
2321 2016-09-23 Pedro Alves <palves@redhat.com>
2322
2323 * Makefile.in (SFILES): Add common/new-op.c.
2324 (OBS): Add common/new-op.o.
2325 (new-op.o): New rule.
2326
2327 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
2328
2329 * .gitinore: Ignore more files.
2330
2331 2016-09-21 Yao Qi <yao.qi@linaro.org>
2332
2333 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
2334 23.
2335
2336 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
2337
2338 * server.c (start_inferior): Call target_mourn_inferior instead of
2339 mourn_inferior; pass ptid_t argument to it.
2340 (resume): Likewise.
2341 (handle_target_event): Likewise.
2342 * target.c (target_mourn_inferior): New function.
2343 * target.h (mourn_inferior): Delete macro.
2344
2345 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2346
2347 * linux-low.c (lwp_is_stepping): New function.
2348
2349 2016-09-06 Carl Love <cel@us.ibm.com>
2350
2351 * server.c (start_inferior): Fixed comment, requested comment change
2352 didn't get updated correctly. Removed reference to ptrace () call as
2353 it is only true on Linux systems.
2354
2355 2016-09-06 Carl Love <cel@us.ibm.com>
2356
2357 * server.c (start_inferior): Do not call
2358 function target_post_create_inferior () if the
2359 inferior process has already exited.
2360
2361 2016-09-05 Pedro Alves <palves@redhat.com>
2362
2363 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
2364 (COMPILE.pre, CC_LD): Use CXX directly.
2365 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
2366 * acinclude.m4: Don't include build-with-cxx.m4.
2367 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
2368 * configure: Regenerate.
2369
2370 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
2371
2372 PR gdb/19495
2373 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
2374 call writing data to own_buf.
2375
2376 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2377
2378 * target.c (mywait): Call target_wait instead of
2379 the_target->wait.
2380 (target_wait): New function.
2381
2382 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2383
2384 * server.c (start_inferior): New variable 'ptid'. Replace calls
2385 to the_target->resume by target_continue{,_no_signal}, depending
2386 on the case.
2387 * target.c (target_stop_and_wait): Call target_continue_no_signal
2388 instead of the_target->resume.
2389 (target_continue): New function.
2390
2391 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
2392
2393 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
2394
2395 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2396
2397 PR server/20491
2398 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
2399 ps_prochandle.
2400 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
2401 * linux-arm-low.c (ps_get_thread_area): Likewise.
2402 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
2403 * linux-m68k-low.c (ps_get_thread_area): Likewise.
2404 * linux-mips-low.c (ps_get_thread_area): Likewise.
2405 * linux-nios2-low.c (ps_get_thread_area): Likewise.
2406 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
2407 * linux-x86-low.c (ps_get_thread_area): Likewise.
2408 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
2409
2410 2016-08-19 Pedro Alves <palves@redhat.com>
2411
2412 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
2413
2414 2016-08-19 Pedro Alves <palves@redhat.com>
2415
2416 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
2417 comment. Use memcpy instead of casting through unsigned long.
2418
2419 2016-08-19 Pedro Alves <palves@redhat.com>
2420
2421 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
2422 allocating around 0x80000000.
2423
2424 2016-08-19 Pedro Alves <palves@redhat.com>
2425
2426 PR gdb/20415
2427 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
2428 (x32-avx512-linux-ipa.o): New rules.
2429 * configure.ac (x86_64-*-linux*): New x32 check.
2430 * configure.srv (ipa_x32_linux_regobj): New.
2431 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
2432 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
2433 descriptions.
2434 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
2435 descriptions.
2436 * configure: Regenerate.
2437
2438 2016-08-09 Pedro Alves <palves@redhat.com>
2439
2440 PR gdb/18653
2441 * Makefile.in (OBS): Add signals-state-save-restore.o.
2442 (signals-state-save-restore.o): New rule.
2443 * config.in: Regenerate.
2444 * configure: Regenerate.
2445 * linux-low.c: Include "signals-state-save-restore.h".
2446 (linux_create_inferior): Call
2447 restore_original_signals_state.
2448 * server.c: Include "dispositions-save-restore.h".
2449 (captured_main): Call save_original_signals_state.
2450
2451 2016-08-05 Pedro Alves <palves@redhat.com>
2452
2453 * configure: Regenerate.
2454
2455 2016-08-04 Yao Qi <yao.qi@linaro.org>
2456
2457 * linux-low.c (regsets_fetch_inferior_registers): Check
2458 errno is ESRCH or not.
2459
2460 2016-08-02 Yao Qi <yao.qi@linaro.org>
2461
2462 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
2463 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
2464 (thread_db_load_search): Update.
2465 (try_thread_db_load_1): Don't look for td_ta_event_addr,
2466 td_ta_set_event and td_ta_event_getmsg.
2467
2468 2016-07-26 Pedro Alves <palves@redhat.com>
2469
2470 PR server/20414
2471 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
2472 of unsigned long for 64-bit registers and use uint32_t instead of
2473 unsigned int for 32-bit registers.
2474
2475 2016-07-26 Pedro Alves <palves@redhat.com>
2476
2477 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
2478 to 'ptrace'.
2479
2480 2016-07-21 Tom Tromey <tom@tromey.com>
2481
2482 * configure: Rebuild.
2483
2484 2016-07-21 Yao Qi <yao.qi@linaro.org>
2485
2486 * mem-break.c (find_gdb_breakpoint): Cast bp to
2487 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
2488
2489 2016-07-21 Yao Qi <yao.qi@linaro.org>
2490
2491 * server.c (handle_v_requests): Support s and S actions
2492 if target_supports_software_single_step return true.
2493
2494 2016-07-21 Yao Qi <yao.qi@linaro.org>
2495
2496 * linux-low.c (resume_stopped_resumed_lwps): If resume request
2497 is resume_step, call maybe_hw_step.
2498 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
2499 and unstop them.
2500 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
2501 breakpoints or not.
2502 (proceed_one_lwp): If resume request is resume_step, install
2503 reinsert breakpoints and call maybe_hw_step.
2504
2505 2016-07-21 Yao Qi <yao.qi@linaro.org>
2506
2507 * linux-low.c (proceed_one_lwp): Declare.
2508 (linux_resume_one_thread): Remove local variable 'step'.
2509 Lift code enqueue signal. Call proceed_one_lwp instead of
2510 linux_resume_one_lwp.
2511
2512 2016-07-21 Yao Qi <yao.qi@linaro.org>
2513
2514 * linux-low.c (linux_resume_one_thread): Call
2515 enqueue_pending_signal.
2516
2517 2016-07-21 Yao Qi <yao.qi@linaro.org>
2518
2519 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
2520 * inferiors.c (do_restore_current_thread_cleanup): New function.
2521 (make_cleanup_restore_current_thread): Likewise.
2522 * linux-low.c (install_software_single_step_breakpoints): Call
2523 make_cleanup_restore_current_thread. Switch current_thread to
2524 thread.
2525
2526 2016-07-21 Yao Qi <yao.qi@linaro.org>
2527
2528 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
2529 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
2530 (clone_one_breakpoint): Likewise.
2531 (delete_reinsert_breakpoints): Change parameter to thread.
2532 Callers updated.
2533 (has_reinsert_breakpoints): Likewise.
2534 (uninsert_reinsert_breakpoints): Likewise.
2535 (reinsert_reinsert_breakpoints): Likewise.
2536 * mem-break.h (set_reinsert_breakpoint): Update declaration.
2537 (delete_reinsert_breakpoints): Likewise.
2538 (reinsert_reinsert_breakpoints): Likewise.
2539 (uninsert_reinsert_breakpoints): Likewise.
2540 (has_reinsert_breakpoints): Likewise.
2541
2542 2016-07-21 Yao Qi <yao.qi@linaro.org>
2543
2544 * inferiors.c (get_thread_process): Make parameter const.
2545 * inferiors.h (get_thread_process): Update declaration.
2546 * mem-break.c (clone_all_breakpoints): Remove all parameters.
2547 Add new parameters child_thread and parent_thread. Callers
2548 updated.
2549 * mem-break.h (clone_all_breakpoints): Update declaration.
2550
2551 2016-07-21 Yao Qi <yao.qi@linaro.org>
2552
2553 * mem-break.c (struct breakpoint) <cond_list>: Remove.
2554 <command_list, handler>: Remove.
2555 (struct gdb_breakpoint): New.
2556 (struct other_breakpoint): New.
2557 (struct reinsert_breakpoint): New.
2558 (is_gdb_breakpoint): New function.
2559 (any_persistent_commands): Update command_list if
2560 is_gdb_breakpoint returns true.
2561 (set_breakpoint): Create breakpoints according to their types.
2562 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
2563 (set_gdb_breakpoint_1): Likewise.
2564 (set_gdb_breakpoint): Likewise.
2565 (clear_breakpoint_conditions): Change parameter type to
2566 'struct gdb_breakpoint *'.
2567 (clear_breakpoint_commands): Likewise.
2568 (clear_breakpoint_conditions_and_commands): Likewise.
2569 (add_condition_to_breakpoint): Likewise.
2570 (add_breakpoint_condition): Likewise.
2571 (add_commands_to_breakpoint): Likewise.
2572 (check_breakpoints): Check other_breakpoint.
2573 (clone_one_breakpoint): Clone breakpopint according to its type.
2574 * mem-break.h (struct gdb_breakpoint): Declare.
2575 (set_gdb_breakpoint): Update declaration.
2576 (clear_breakpoint_conditions_and_commands): Likewise.
2577 (add_breakpoint_condition): Likewise.
2578 (add_breakpoint_commands): Likewise.
2579 * server.c (process_point_options): Change parameter type to
2580 'struct gdb_breakpoint *'.
2581
2582 2016-07-21 Yao Qi <yao.qi@linaro.org>
2583
2584 * mem-break.c (set_breakpoint_at): Rename it to ...
2585 (set_breakpoint_type_at): ... it.
2586 (set_breakpoint_at): Call set_breakpoint_type_at.
2587 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
2588 * mem-break.h (set_breakpoint_at): Update comments.
2589
2590 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
2591
2592 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
2593 to buf parameter.
2594 (nios2_store_gregset): Likewise.
2595
2596 2016-07-01 Pedro Alves <palves@redhat.com>
2597 Antoine Tremblay <antoine.tremblay@ericsson.com>
2598
2599 * linux-low.c: Change interface to take the target lwp_info
2600 pointer directly and return void. Handle detaching from a zombie
2601 thread.
2602 (linux_detach_lwp_callback): New function.
2603 (linux_detach): Detach from the leader thread after detaching from
2604 the clone threads.
2605
2606 2016-06-28 Yao Qi <yao.qi@linaro.org>
2607
2608 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
2609 for variable new_offset.
2610 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
2611 (aarch64_ftrace_insn_reloc_cb): Likewise.
2612 (aarch64_ftrace_insn_reloc_tb): Likewise.
2613 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
2614 PRIx64 instead of PRIx32.
2615
2616 2016-06-28 Yao Qi <yao.qi@linaro.org>
2617
2618 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
2619 (the_low_target): Install arm_get_syscall_trapinfo.
2620
2621 2016-06-28 Yao Qi <yao.qi@linaro.org>
2622
2623 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
2624 function.
2625 (the_low_target): Install aarch64_get_syscall_trapinfo.
2626
2627 2016-06-28 Yao Qi <yao.qi@linaro.org>
2628
2629 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
2630 Callers updated.
2631 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
2632 Remove parameter sysno.
2633 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
2634 sysret.
2635
2636 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2637
2638 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
2639 (s390_emit_ne_goto): Likewise.
2640 (s390_emit_lt_goto): Likewise.
2641 (s390_emit_le_goto): Likewise.
2642 (s390_emit_gt_goto): Likewise.
2643 (s390_emit_ge_goto): Likewise.
2644 (s390x_emit_eq_goto): Likewise.
2645 (s390x_emit_ne_goto): Likewise.
2646 (s390x_emit_lt_goto): Likewise.
2647 (s390x_emit_le_goto): Likewise.
2648 (s390x_emit_gt_goto): Likewise.
2649 (s390x_emit_ge_goto): Likewise.
2650 (s390_emit_ops_impl): Mark variable static.
2651 (s390x_emit_ops): Likewise.
2652
2653 2016-06-17 Yao Qi <yao.qi@linaro.org>
2654
2655 * linux-low.c (handle_extended_wait): Call
2656 uninsert_reinsert_breakpoints for the parent process. Remove
2657 reinsert breakpoints from the child process. Reinsert them to
2658 the parent process when vfork is done.
2659 * mem-break.c (uninsert_reinsert_breakpoints): New function.
2660 (reinsert_reinsert_breakpoints): New function.
2661 * mem-break.h (uninsert_reinsert_breakpoints): Declare
2662 (reinsert_reinsert_breakpoints): Declare.
2663
2664 2016-06-17 Yao Qi <yao.qi@linaro.org>
2665
2666 * linux-low.c (handle_extended_wait): If the parent is doing
2667 step-over, remove the reinsert breakpoints from the forked child.
2668
2669 2016-06-17 Yao Qi <yao.qi@linaro.org>
2670
2671 * linux-low.c (unsuspend_all_lwps): Declare.
2672 (linux_low_filter_event): If thread exited, call finish_step_over.
2673 If step-over is finished, unsuspend other threads.
2674
2675 2016-06-17 Yao Qi <yao.qi@linaro.org>
2676
2677 * linux-low.c (linux_resume_one_lwp_throw): Assert
2678 has_reinsert_breakpoints returns false.
2679 * mem-break.c (delete_disabled_breakpoints): Assert
2680 bp type isn't reinsert_breakpoint.
2681
2682 2016-06-17 Yao Qi <yao.qi@linaro.org>
2683
2684 * linux-low.c (maybe_hw_step): New function.
2685 (linux_resume_one_lwp_throw): Call maybe_hw_step.
2686 (finish_step_over): Switch current_thread to lwp temporarily,
2687 and assert has_reinsert_breakpoints returns true.
2688 (proceed_one_lwp): Call maybe_hw_step.
2689 * mem-break.c (has_reinsert_breakpoints): New function.
2690 * mem-break.h (has_reinsert_breakpoints): Declare.
2691
2692 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
2693
2694 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
2695
2696 2016-05-17 Yao Qi <yao.qi@linaro.org>
2697
2698 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
2699 instead of find_inferior.
2700
2701 2016-05-05 Yao Qi <yao.qi@linaro.org>
2702
2703 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
2704 Initialize res to zero.
2705
2706 2016-05-05 Yao Qi <yao.qi@linaro.org>
2707
2708 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
2709 to uint32_t.
2710
2711 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2712
2713 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
2714 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
2715 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
2716
2717 2016-04-28 Par Olsson <par.olsson@windriver.com>
2718 Simon Marchi <simon.marchi@ericsson.com>
2719
2720 * tracepoint.c (write_inferior_int8): New function.
2721 (cmd_qtenable_disable): Write enable flag using
2722 write_inferior_int8.
2723
2724 2016-04-25 Yao Qi <yao.qi@linaro.org>
2725
2726 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
2727 (need_step_over_p): Return zero if the LWP has pending signals
2728 can be delivered on software single step target.
2729
2730 2016-04-25 Yao Qi <yao.qi@linaro.org>
2731
2732 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
2733 return instead of error.
2734
2735 2016-04-22 Yao Qi <yao.qi@linaro.org>
2736
2737 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
2738 to 23.
2739
2740 2016-04-22 Yao Qi <yao.qi@linaro.org>
2741
2742 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
2743 signal when stepping over breakpoint with software single
2744 step.
2745
2746 2016-04-21 Pedro Alves <palves@redhat.com>
2747
2748 * linux-s390-low.c (s390_collect_ptrace_register)
2749 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
2750 add casts.
2751 (s390_check_regset): Use void * instead of gdb_byte *.
2752
2753 2016-04-20 Pedro Alves <palves@redhat.com>
2754
2755 * configure: Renegerate.
2756
2757 2016-04-20 Yao Qi <yao.qi@linaro.org>
2758
2759 * linux-aarch32-low.c: Include "arch/arm-linux.h".
2760 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
2761 number 16.
2762 (arm_store_gregset): Likewise.
2763
2764 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
2765
2766 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
2767 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
2768 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
2769 (amd64-avx-mpx-linux.c): New rules.
2770 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
2771 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
2772 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
2773 (srv_amd64_regobj): Add amd64-avx-mpx.o.
2774 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
2775 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
2776 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
2777 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
2778 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
2779 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
2780 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
2781 * linux-x86-low.c (x86_linux_read_description): Add case for
2782 X86_XSTATE_AVX_MPX_MASK.
2783 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
2784 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
2785 init_registers_i386_avx_mpx_linux.
2786 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
2787 (initialize_low_tracepoint): Call
2788 init_registers_i386_avx_mpx_linux.
2789 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
2790 (initialize_low_tracepoint): Call
2791 init_registers_amd64_avx_mpx_linux.
2792 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
2793 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
2794 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
2795 declarations.
2796
2797 2016-04-18 Pedro Alves <palves@redhat.com>
2798
2799 * configure: Regenerate.
2800
2801 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
2802
2803 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
2804 (aarch64_emit_sub): Likewise.
2805
2806 2016-04-12 Pedro Alves <palves@redhat.com>
2807
2808 * utils.c (prepare_to_throw_exception): Delete.
2809
2810 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
2811
2812 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
2813
2814 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
2815
2816 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
2817
2818 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
2819
2820 * linux-aarch64-ipa.c: Add <elf.h> include.
2821 * linux-ppc-ipa.c: Add <elf.h> include.
2822 * linux-s390-ipa.c: Add <elf.h> include.
2823
2824 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
2825
2826 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
2827 (get_raw_reg_ptr): Likewise.
2828 (get_trace_state_variable_value_ptr): Likewise.
2829 (set_trace_state_variable_value_ptr): Likewise.
2830 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
2831 char *.
2832
2833 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
2834 Marcin Kościelnicki <koriakin@0x04.net>
2835
2836 PR/17221
2837 * linux-ppc-low.c (emit_insns): New function.
2838 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
2839 (ppc_emit_prologue): New function.
2840 (ppc_emit_epilogue): New function.
2841 (ppc_emit_add): New function.
2842 (ppc_emit_sub): New function.
2843 (ppc_emit_mul): New function.
2844 (ppc_emit_lsh): New function.
2845 (ppc_emit_rsh_signed): New function.
2846 (ppc_emit_rsh_unsigned): New function.
2847 (ppc_emit_ext): New function.
2848 (ppc_emit_zero_ext): New function.
2849 (ppc_emit_log_not): New function.
2850 (ppc_emit_bit_and): New function.
2851 (ppc_emit_bit_or): New function.
2852 (ppc_emit_bit_xor): New function.
2853 (ppc_emit_bit_not): New function.
2854 (ppc_emit_equal): New function.
2855 (ppc_emit_less_signed): New function.
2856 (ppc_emit_less_unsigned): New function.
2857 (ppc_emit_ref): New function.
2858 (ppc_emit_const): New function.
2859 (ppc_emit_reg): New function.
2860 (ppc_emit_pop): New function.
2861 (ppc_emit_stack_flush): New function.
2862 (ppc_emit_swap): New function.
2863 (ppc_emit_stack_adjust): New function.
2864 (ppc_emit_call): New function.
2865 (ppc_emit_int_call_1): New function.
2866 (ppc_emit_void_call_2): New function.
2867 (ppc_emit_if_goto): New function.
2868 (ppc_emit_goto): New function.
2869 (ppc_emit_eq_goto): New function.
2870 (ppc_emit_ne_goto): New function.
2871 (ppc_emit_lt_goto): New function.
2872 (ppc_emit_le_goto): New function.
2873 (ppc_emit_gt_goto): New function.
2874 (ppc_emit_ge_goto): New function.
2875 (ppc_write_goto_address): New function.
2876 (ppc_emit_ops_impl): New static variable.
2877 (ppc64v1_emit_prologue): New function.
2878 (ppc64v2_emit_prologue): New function.
2879 (ppc64_emit_epilogue): New function.
2880 (ppc64_emit_add): New function.
2881 (ppc64_emit_sub): New function.
2882 (ppc64_emit_mul): New function.
2883 (ppc64_emit_lsh): New function.
2884 (ppc64_emit_rsh_signed): New function.
2885 (ppc64_emit_rsh_unsigned): New function.
2886 (ppc64_emit_ext): New function.
2887 (ppc64_emit_zero_ext): New function.
2888 (ppc64_emit_log_not): New function.
2889 (ppc64_emit_bit_and): New function.
2890 (ppc64_emit_bit_or): New function.
2891 (ppc64_emit_bit_xor): New function.
2892 (ppc64_emit_bit_not): New function.
2893 (ppc64_emit_equal): New function.
2894 (ppc64_emit_less_signed): New function.
2895 (ppc64_emit_less_unsigned): New function.
2896 (ppc64_emit_ref): New function.
2897 (ppc64_emit_const): New function.
2898 (ppc64v1_emit_reg): New function.
2899 (ppc64v2_emit_reg): New function.
2900 (ppc64_emit_pop): New function.
2901 (ppc64_emit_stack_flush): New function.
2902 (ppc64_emit_swap): New function.
2903 (ppc64v1_emit_call): New function.
2904 (ppc64v2_emit_call): New function.
2905 (ppc64v1_emit_int_call_1): New function.
2906 (ppc64v2_emit_int_call_1): New function.
2907 (ppc64v1_emit_void_call_2): New function.
2908 (ppc64v2_emit_void_call_2): New function.
2909 (ppc64_emit_if_goto): New function.
2910 (ppc64_emit_eq_goto): New function.
2911 (ppc64_emit_ne_goto): New function.
2912 (ppc64_emit_lt_goto): New function.
2913 (ppc64_emit_le_goto): New function.
2914 (ppc64_emit_gt_goto): New function.
2915 (ppc64_emit_ge_goto): New function.
2916 (ppc64v1_emit_ops_impl): New static variable.
2917 (ppc64v2_emit_ops_impl): New static variable.
2918 (ppc_emit_ops): New function.
2919 (linux_low_target): Wire in ppc_emit_ops.
2920
2921 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
2922 Marcin Kościelnicki <koriakin@0x04.net>
2923
2924 PR/17221
2925 * Makefile.in: Add powerpc-*-ipa.o
2926 * configure.srv: Add ipa_obj for powerpc*-linux.
2927 * linux-ppc-ipa.c: New file.
2928 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
2929 includes.
2930 (PPC_FIELD): New macro.
2931 (PPC_SEXT): New macro.
2932 (PPC_OP6): New macro.
2933 (PPC_BO): New macro.
2934 (PPC_LI): New macro.
2935 (PPC_BD): New macro.
2936 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
2937 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
2938 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
2939 (ppc_get_thread_area): New function.
2940 (is_elfv2_inferior): New function.
2941 (gen_ds_form): New function.
2942 (GEN_STD): New macro.
2943 (GEN_STDU): New macro.
2944 (GEN_LD): New macro.
2945 (GEN_LDU): New macro.
2946 (gen_d_form): New function.
2947 (GEN_ADDI): New macro.
2948 (GEN_ADDIS): New macro.
2949 (GEN_LI): New macro.
2950 (GEN_LIS): New macro.
2951 (GEN_ORI): New macro.
2952 (GEN_ORIS): New macro.
2953 (GEN_LWZ): New macro.
2954 (GEN_STW): New macro.
2955 (GEN_STWU): New macro.
2956 (gen_xfx_form): New function.
2957 (GEN_MFSPR): New macro.
2958 (GEN_MTSPR): New macro.
2959 (GEN_MFCR): New macro.
2960 (GEN_MTCR): New macro.
2961 (GEN_SYNC): New macro.
2962 (GEN_LWSYNC): New macro.
2963 (gen_x_form): New function.
2964 (GEN_OR): New macro.
2965 (GEN_MR): New macro.
2966 (GEN_LWARX): New macro.
2967 (GEN_STWCX): New macro.
2968 (GEN_CMPW): New macro.
2969 (gen_md_form): New function.
2970 (GEN_RLDICL): New macro.
2971 (GEN_RLDICR): New macro.
2972 (gen_i_form): New function.
2973 (GEN_B): New macro.
2974 (GEN_BL): New macro.
2975 (gen_b_form): New function.
2976 (GEN_BNE): New macro.
2977 (GEN_LOAD): New macro.
2978 (GEN_STORE): New macro.
2979 (gen_limm): New function.
2980 (gen_atomic_xchg): New function.
2981 (gen_call): New function.
2982 (ppc_relocate_instruction): New function.
2983 (ppc_install_fast_tracepoint_jump_pad): New function.
2984 (ppc_get_min_fast_tracepoint_insn_len): New function.
2985 (ppc_get_ipa_tdesc_idx): New function.
2986 (the_low_target): Wire in the new functions.
2987 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
2988 tdescs.
2989 * linux-ppc-tdesc.h: New file.
2990
2991 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
2992
2993 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
2994 (alloc_jump_pad_buffer): New function.
2995 * linux-amd64-ipa.c: Add <sys/mman.h> include.
2996 (alloc_jump_pad_buffer): New function.
2997 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
2998 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
2999 (alloc_jump_pad_buffer): New function.
3000 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
3001 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
3002 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
3003 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
3004
3005 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
3006
3007 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
3008 * linux-amd64-ipa.c: Likewise.
3009 * linux-i386-ipa.c: Likewise.
3010 * linux-s390-ipa.c: Likewise.
3011 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
3012 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
3013 set_trace_state_variable_value_ptr.
3014 (struct ipa_sym_addresses): Likewise.
3015 (symbol_list): Likewise.
3016 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
3017 accessing gdb_collect directly.
3018 (gdb_collect_ptr_type): New typedef.
3019 (get_raw_reg_ptr_type): New typedef.
3020 (get_trace_state_variable_value_ptr_type): New typedef.
3021 (set_trace_state_variable_value_ptr_type): New typedef.
3022 (gdb_collect_ptr): New global.
3023 (get_raw_reg_ptr): New global.
3024 (get_trace_state_variable_value_ptr): New global.
3025 (set_trace_state_variable_value_ptr): New global.
3026 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
3027 accessing get_raw_reg directly.
3028 (get_get_tsv_func_addr): Likewise for
3029 get_trace_state_variable_value_ptr.
3030 (get_set_tsv_func_addr): Likewise for
3031 set_trace_state_variable_value_ptr.
3032 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
3033
3034 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
3035
3036 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
3037
3038 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
3039
3040 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
3041 packets.
3042 (relocate_instruction): Remove own_buf.
3043 * server.c (own_buf): Make global.
3044 (handle_v_requests): Make global.
3045 * server.h (own_buf): New declaration.
3046 (handle_v_requests): New prototype.
3047
3048 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
3049
3050 PR 18377
3051 * linux-s390-low.c (add_insns): New function.
3052 (s390_emit_prologue): New function.
3053 (s390_emit_epilogue): New function.
3054 (s390_emit_add): New function.
3055 (s390_emit_sub): New function.
3056 (s390_emit_mul): New function.
3057 (s390_emit_lsh): New function.
3058 (s390_emit_rsh_signed): New function.
3059 (s390_emit_rsh_unsigned): New function.
3060 (s390_emit_ext): New function.
3061 (s390_emit_log_not): New function.
3062 (s390_emit_bit_and): New function.
3063 (s390_emit_bit_or): New function.
3064 (s390_emit_bit_xor): New function.
3065 (s390_emit_bit_not): New function.
3066 (s390_emit_equal): New function.
3067 (s390_emit_less_signed): New function.
3068 (s390_emit_less_unsigned): New function.
3069 (s390_emit_ref): New function.
3070 (s390_emit_if_goto): New function.
3071 (s390_emit_goto): New function.
3072 (s390_write_goto_address): New function.
3073 (s390_emit_litpool): New function.
3074 (s390_emit_const): New function.
3075 (s390_emit_call): New function.
3076 (s390_emit_reg): New function.
3077 (s390_emit_pop): New function.
3078 (s390_emit_stack_flush): New function.
3079 (s390_emit_zero_ext): New function.
3080 (s390_emit_swap): New function.
3081 (s390_emit_stack_adjust): New function.
3082 (s390_emit_set_r2): New function.
3083 (s390_emit_int_call_1): New function.
3084 (s390_emit_void_call_2): New function.
3085 (s390_emit_eq_goto): New function.
3086 (s390_emit_ne_goto): New function.
3087 (s390_emit_lt_goto): New function.
3088 (s390_emit_le_goto): New function.
3089 (s390_emit_gt_goto): New function.
3090 (s390_emit_ge_goto): New function.
3091 (s390x_emit_prologue): New function.
3092 (s390x_emit_epilogue): New function.
3093 (s390x_emit_add): New function.
3094 (s390x_emit_sub): New function.
3095 (s390x_emit_mul): New function.
3096 (s390x_emit_lsh): New function.
3097 (s390x_emit_rsh_signed): New function.
3098 (s390x_emit_rsh_unsigned): New function.
3099 (s390x_emit_ext): New function.
3100 (s390x_emit_log_not): New function.
3101 (s390x_emit_bit_and): New function.
3102 (s390x_emit_bit_or): New function.
3103 (s390x_emit_bit_xor): New function.
3104 (s390x_emit_bit_not): New function.
3105 (s390x_emit_equal): New function.
3106 (s390x_emit_less_signed): New function.
3107 (s390x_emit_less_unsigned): New function.
3108 (s390x_emit_ref): New function.
3109 (s390x_emit_if_goto): New function.
3110 (s390x_emit_const): New function.
3111 (s390x_emit_call): New function.
3112 (s390x_emit_reg): New function.
3113 (s390x_emit_pop): New function.
3114 (s390x_emit_stack_flush): New function.
3115 (s390x_emit_zero_ext): New function.
3116 (s390x_emit_swap): New function.
3117 (s390x_emit_stack_adjust): New function.
3118 (s390x_emit_int_call_1): New function.
3119 (s390x_emit_void_call_2): New function.
3120 (s390x_emit_eq_goto): New function.
3121 (s390x_emit_ne_goto): New function.
3122 (s390x_emit_lt_goto): New function.
3123 (s390x_emit_le_goto): New function.
3124 (s390x_emit_gt_goto): New function.
3125 (s390x_emit_ge_goto): New function.
3126 (s390_emit_ops): New function.
3127 (struct linux_target_ops): Fill in emit_ops hook.
3128
3129 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
3130
3131 PR 18377
3132 * Makefile.in: Add s390 IPA files.
3133 * configure.srv: Build IPA for s390.
3134 * linux-s390-ipa.c: New file.
3135 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
3136 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
3137 (tdesc_s390_linux32): Likewise.
3138 (init_registers_s390_linux32v1): Likewise.
3139 (tdesc_s390_linux32v1): Likewise.
3140 (init_registers_s390_linux32v2): Likewise.
3141 (tdesc_s390_linux32v2): Likewise.
3142 (init_registers_s390_linux64): Likewise.
3143 (tdesc_s390_linux64): Likewise.
3144 (init_registers_s390_linux64v1): Likewise.
3145 (tdesc_s390_linux64v1): Likewise.
3146 (init_registers_s390_linux64v2): Likewise.
3147 (tdesc_s390_linux64v2): Likewise.
3148 (init_registers_s390_te_linux64): Likewise.
3149 (tdesc_s390_te_linux64): Likewise.
3150 (init_registers_s390_vx_linux64): Likewise.
3151 (tdesc_s390_vx_linux64): Likewise.
3152 (init_registers_s390_tevx_linux64): Likewise.
3153 (tdesc_s390_tevx_linux64): Likewise.
3154 (init_registers_s390x_linux64): Likewise.
3155 (tdesc_s390x_linux64): Likewise.
3156 (init_registers_s390x_linux64v1): Likewise.
3157 (tdesc_s390x_linux64v1): Likewise.
3158 (init_registers_s390x_linux64v2): Likewise.
3159 (tdesc_s390x_linux64v2): Likewise.
3160 (init_registers_s390x_te_linux64): Likewise.
3161 (tdesc_s390x_te_linux64): Likewise.
3162 (init_registers_s390x_vx_linux64): Likewise.
3163 (tdesc_s390x_vx_linux64): Likewise.
3164 (init_registers_s390x_tevx_linux64): Likewise.
3165 (tdesc_s390x_tevx_linux64): Likewise.
3166 (have_hwcap_s390_vx): New static variable.
3167 (s390_arch_setup): Fill have_hwcap_s390_vx.
3168 (s390_get_thread_area): New function.
3169 (s390_ft_entry_gpr_esa): New const.
3170 (s390_ft_entry_gpr_zarch): New const.
3171 (s390_ft_entry_misc): New const.
3172 (s390_ft_entry_fr): New const.
3173 (s390_ft_entry_vr): New const.
3174 (s390_ft_main_31): New const.
3175 (s390_ft_main_64): New const.
3176 (s390_ft_exit_fr): New const.
3177 (s390_ft_exit_vr): New const.
3178 (s390_ft_exit_misc): New const.
3179 (s390_ft_exit_gpr_esa): New const.
3180 (s390_ft_exit_gpr_zarch): New const.
3181 (append_insns): New function.
3182 (s390_relocate_instruction): New function.
3183 (s390_install_fast_tracepoint_jump_pad): New function.
3184 (s390_get_min_fast_tracepoint_insn_len): New function.
3185 (s390_get_ipa_tdesc_idx): New function.
3186 (struct linux_target_ops): Wire in the above functions.
3187 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
3188 * linux-s390-tdesc.h: New file.
3189
3190 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
3191
3192 * linux-s390-low.c (s390_supports_tracepoints): New function.
3193 (struct linux_target_ops): Fill supports_tracepoints hook.
3194
3195 2016-03-18 Yao Qi <yao.qi@linaro.org>
3196
3197 * linux-low.c (lwp_signal_can_be_delivered): New function.
3198 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
3199
3200 2016-03-18 Yao Qi <yao.qi@linaro.org>
3201
3202 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
3203 0 if signal is enqueued. Remove 'signal' from one debugging
3204 message. Move one debugging message to some lines below.
3205 Remove code setting 'signal' to 0.
3206
3207 2016-03-18 Yao Qi <yao.qi@linaro.org>
3208
3209 * linux-low.c (linux_low_filter_event): Remove redundant
3210 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
3211
3212 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
3213
3214 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
3215 (struct linux_target_ops): Wire in the above.
3216
3217 2016-03-03 Yao Qi <yao.qi@linaro.org>
3218
3219 * linux-low.c: Update comments to start_step_over.
3220
3221 2016-03-03 Yao Qi <yao.qi@linaro.org>
3222
3223 PR server/19736
3224 * linux-low.c (handle_extended_wait): Set child suspended
3225 if event_lwp->bp_reinsert isn't zero.
3226
3227 2016-03-02 Yao Qi <yao.qi@linaro.org>
3228
3229 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
3230 enqueue_pending_signal.
3231
3232 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
3233
3234 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
3235 is actually loaded.
3236
3237 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
3238
3239 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
3240 (s390_regmap_3264) [!__s390x__]: New global.
3241 (s390_collect_ptrace_register): Skip map entries containing -1.
3242 (s390_supply_ptrace_register): Ditto.
3243 (s390_fill_gprs_high): New function.
3244 (s390_store_gprs_high): New function.
3245 (s390_regsets): Add NT_S390_HIGH_GPRS.
3246 (s390_get_hwcap): Enable on 31-bit.
3247 (have_hwcap_s390_high_gprs): Enable on 31-bit.
3248 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
3249 Detect NT_S390_HIGH_GPRS.
3250 (s390_usrregs_info_3264): Enable on 31-bit.
3251 (s390_regs_info): Enable regs_info_3264 on 31-bit.
3252 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
3253
3254 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
3255
3256 PR gdb/13808
3257 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
3258 * configure.srv: Ditto.
3259 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
3260 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
3261 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
3262 (init_registers_amd64_linux): Remove prototype.
3263 (tdesc_amd64_linux): Remove declaration.
3264 (get_ipa_tdesc): New function.
3265 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
3266 initialize remaining tdescs.
3267 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
3268 (init_registers_i386_linux): Remove prototype.
3269 (tdesc_i386_linux): Remove declaration.
3270 (get_ipa_tdesc): New function.
3271 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
3272 initialize remaining tdescs.
3273 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
3274 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
3275 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
3276 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
3277 (x86_get_ipa_tdesc_idx): New function.
3278 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
3279 * linux-x86-tdesc.h: New file.
3280 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
3281 (target_get_ipa_tdesc_idx): New macro.
3282 * tracepoint.c (ipa_tdesc_idx): New macro.
3283 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
3284 (symbol_list): Add ipa_tdesc_idx.
3285 (cmd_qtstart): Write ipa_tdesc_idx in the target.
3286 (ipa_tdesc): Remove.
3287 (ipa_tdesc_idx): New variable.
3288 (get_context_regcache): Use get_ipa_tdesc.
3289 (gdb_collect): Ditto.
3290 (gdb_probe): Ditto.
3291 * tracepoint.h (get_ipa_tdesc): New prototype.
3292 (ipa_tdesc): Remove.
3293
3294 2016-02-24 Pedro Alves <palves@redhat.com>
3295
3296 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
3297 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
3298 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
3299 Factor out common code between the USE_SIGTRAP_SIGINFO and
3300 !USE_SIGTRAP_SIGINFO blocks.
3301 (linux_low_filter_event): Call save_stop_reason instead of
3302 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
3303 Update comments.
3304 (linux_wait_1): Update comments.
3305
3306 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
3307
3308 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
3309 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
3310 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
3311 ppc_insert_point, ppc_remove_point.
3312
3313 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
3314
3315 * linux-s390-low.c (s390_supports_z_point_type): New function.
3316 (struct linux_target_ops): Wire s390_supports_z_point_type in.
3317
3318 2016-02-16 Yao Qi <yao.qi@linaro.org>
3319
3320 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
3321 PC. Get pc from regcache_read_pc.
3322
3323 2016-02-12 Yao Qi <yao.qi@linaro.org>
3324
3325 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
3326 or linux_get_pc_32bit.
3327 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
3328
3329 2016-02-12 Yao Qi <yao.qi@linaro.org>
3330
3331 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
3332 arm_linux_get_next_pcs_fixup.
3333
3334 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
3335
3336 * tracepoint.c (x_tracepoint_action_download): Change
3337 write_inferior_data_ptr to write_inferior_data_pointer.
3338 (cmd_qtstart): Likewise.
3339 (write_inferior_data_ptr): Remove.
3340 (download_agent_expr): Change write_inferior_data_ptr to
3341 write_inferior_data_pointer.
3342 (download_tracepoint_1): Likewise.
3343 (download_tracepoint): Likewise.
3344 (download_trace_state_variables): Likewise.
3345
3346 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
3347 Marcin Kościelnicki <koriakin@0x04.net>
3348
3349 * tracepoint.c (struct tracepoint_action_ops): Remove.
3350 (struct tracepoint_action): Remove ops.
3351 (m_tracepoint_action_download, r_tracepoint_action_download)
3352 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
3353 size and offset accordingly.
3354 (m_tracepoint_action_ops, r_tracepoint_action_ops)
3355 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
3356 (tracepoint_action_send, tracepoint_action_download): New functions.
3357 Helpers for trace action handlers.
3358 (add_tracepoint_action): Remove setup actions ops.
3359 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
3360
3361 2016-02-10 Yao Qi <yao.qi@linaro.org>
3362
3363 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
3364
3365 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
3366
3367 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
3368 to AC_OUTPUT.
3369 * configure: Regenerate.
3370
3371 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
3372
3373 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
3374 void * to gdb_byte *.
3375 * linux-low.c (siginfo_fixup): Likewise.
3376 (linux_xfer_siginfo): Likewise.
3377 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
3378 Likewise.
3379 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
3380
3381 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
3382
3383 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
3384 to srv_tgtobj.
3385 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
3386 to srv_tgtobj.
3387 * linux-x86-low.c [__x86_64__]: Include
3388 "nat/amd64-linux-siginfo.h".
3389 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
3390 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
3391 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
3392 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
3393 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
3394 (cpt_si_fd, si_timerid, si_overrun): Move from
3395 nat/amd64-linux-siginfo.c.
3396 * Makefile.in (amd64-linux-siginfo.o:): New rule.
3397
3398 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
3399
3400 * server.c (skip_to_semicolon): Remove.
3401 (process_point_options): Use strchrnul instead of
3402 skip_to_semicolon.
3403
3404 2016-01-26 Yao Qi <yao.qi@linaro.org>
3405
3406 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
3407 * linux-low.c (install_software_single_step_breakpoints): Don't
3408 call regcache_read_pc.
3409 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
3410 argument pc.
3411
3412 2016-01-26 Yao Qi <yao.qi@linaro.org>
3413
3414 * linux-low.c (install_software_single_step_breakpoints): Call
3415 regcache_read_pc instead of get_pc.
3416
3417 2016-01-26 Yao Qi <yao.qi@linaro.org>
3418
3419 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
3420 (unblock_async_io): Rename to ...
3421 (block_unblock_async_io): ... it. New function.
3422 (enable_async_io): Don't install SIGIO handler. Unblock it
3423 instead.
3424 (disable_async_io): Don't ignore SIGIO. Block it instead.
3425 (initialize_async_io): Install SIGIO handler. Don't call
3426 unblock_async_io.
3427
3428 2016-01-26 Yao Qi <yao.qi@linaro.org>
3429
3430 * remote-utils.c (getpkt): If the buffer isn't empty, and the
3431 first character is '\003', call *the_target->request_interrupt.
3432
3433 2016-01-25 Yao Qi <yao.qi@linaro.org>
3434
3435 * remote-utils.c (new_thread_notify): Remove.
3436 (dead_thread_notify): Likewise.
3437 * remote-utils.h (new_thread_notify): Remove declaration.
3438 (dead_thread_notify): Likewise.
3439
3440 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
3441
3442 * gdb.trace/pending.exp: Fix expected message on continue.
3443
3444 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
3445
3446 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
3447 it works properly on big-endian machines where sizeof (CORE_ADDR)
3448 != sizeof (void *).
3449
3450 2016-01-21 Pedro Alves <palves@redhat.com>
3451
3452 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
3453 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
3454 * configure: Regenerate.
3455
3456 2016-01-21 Yao Qi <yao.qi@linaro.org>
3457
3458 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
3459 is_thumb and set it according to CPSR saved on the stack.
3460 (get_next_pcs_syscall_next_pc): Pass is_thumb to
3461 arm_sigreturn_next_pc.
3462
3463 2016-01-18 Yao Qi <yao.qi@linaro.org>
3464
3465 * linux-low.c (linux_set_pc_64bit): New function.
3466 (linux_get_pc_64bit): New function.
3467 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
3468 Declare.
3469 * linux-sparc-low.c (debug_threads): Remove declaration.
3470 (sparc_get_pc): Remove.
3471 (the_low_target): Use linux_get_pc_64bit instead of
3472 sparc_get_pc.
3473 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
3474 (the_low_target): Use linux_get_pc_64bit and
3475 linux_set_pc_64bit.
3476
3477 2016-01-18 Yao Qi <yao.qi@linaro.org>
3478
3479 * linux-arm-low.c (debug_threads): Remove declaration.
3480 (arm_get_pc, arm_set_pc): Remove.
3481 (the_low_target): Use linux_get_pc_32bit and
3482 linux_set_pc_32bit.
3483 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
3484 (the_low_target): Use linux_get_pc_32bit and
3485 linux_set_pc_32bit.
3486 * linux-cris-low.c (debug_threads): Remove declaration.
3487 (cris_get_pc, cris_set_pc,): Remove.
3488 (the_low_target): Use linux_get_pc_32bit and
3489 linux_set_pc_32bit.
3490 * linux-crisv32-low.c (debug_threads): Remove declaration.
3491 (cris_get_pc, cris_set_pc): Remove.
3492 (the_low_target): Use linux_get_pc_32bit and
3493 linux_set_pc_32bit.
3494 * linux-low.c: Include inttypes.h.
3495 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
3496 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
3497 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
3498 (the_low_target): Use linux_get_pc_32bit and
3499 linux_set_pc_32bit.
3500 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
3501 (the_low_target): Use linux_get_pc_32bit and
3502 linux_set_pc_32bit.
3503 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
3504 (the_low_target): Use linux_get_pc_32bit and
3505 linux_set_pc_32bit.
3506 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
3507 (the_low_target): Use linux_get_pc_32bit and
3508 linux_set_pc_32bit.
3509 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
3510 (the_low_target): Use linux_get_pc_32bit and
3511 linux_set_pc_32bit.
3512
3513 2016-01-18 Gary Benson <gbenson@redhat.com>
3514
3515 * configure.ac (AC_FUNC_FORK): New check.
3516 * config.in: Regenerate.
3517 * configure: Likewise.
3518
3519 2016-01-14 Yao Qi <yao.qi@linaro.org>
3520
3521 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
3522 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
3523 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
3524 arm_get_next_pcs_ctor.
3525
3526 2016-01-12 Josh Stone <jistone@redhat.com>
3527 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3528
3529 * inferiors.h: Include "gdb_vecs.h".
3530 (struct process_info): Add syscalls_to_catch.
3531 * inferiors.c (remove_process): Free syscalls_to_catch.
3532 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
3533 syscall_return stops.
3534 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
3535 * server.c (handle_general_set): Handle QCatchSyscalls.
3536 (handle_query): Report support for QCatchSyscalls.
3537 * target.h (struct target_ops): Add supports_catch_syscall.
3538 (target_supports_catch_syscall): New macro.
3539 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
3540 (struct lwp_info): Add syscall_state.
3541 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
3542 Maintain syscall_state and syscalls_to_catch across exec.
3543 (get_syscall_trapinfo): New function, proxy to the_low_target.
3544 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
3545 (linux_low_filter_event): Toggle syscall_state entry/return for
3546 syscall traps, and set it ignored for all others.
3547 (gdb_catching_syscalls_p): New function.
3548 (gdb_catch_this_syscall_p): New function.
3549 (linux_wait_1): Handle SYSCALL_SIGTRAP.
3550 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
3551 (linux_supports_catch_syscall): New function.
3552 (linux_target_ops): Install it.
3553 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
3554 (the_low_target): Install it.
3555
3556 2016-01-12 Mike Frysinger <vapier@gentoo.org>
3557
3558 * acinclude.m4: Include new ../warning.m4 file.
3559 * configure: Regenerated.
3560 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
3561
3562 2016-01-12 Mike Frysinger <vapier@gentoo.org>
3563
3564 * ax.c (is_goto_target): Mark static.
3565 * linux-low.c (register_addr): Likewise.
3566 (linux_fetch_registers, linux_store_registers): Likewise.
3567 * mem-break.c (any_persistent_commands): Fix old prototype.
3568 (add_commands_to_breakpoint): Mark static.
3569 * regcache.c (find_register_by_name): Delete unused func.
3570 * remote-utils.c (hex_or_minus_one): Mark static.
3571 * server.c (monitor_show_help): Mark static.
3572 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
3573 handle_v_requests): Likewise.
3574
3575 2016-01-12 Pedro Alves <palves@redhat.com>
3576
3577 Remove use of the registered trademark symbol throughout.
3578
3579 2016-01-08 Yao Qi <yao.qi@linaro.org>
3580
3581 * remote-utils.c (getpkt): If c is '\003', call target hook
3582 request_interrupt.
3583
3584 2016-01-06 Yao Qi <yao.qi@linaro.org>
3585
3586 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
3587 linux-aarch32-low.c.
3588 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
3589 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
3590 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
3591 (thumb2_breakpoint): Declare.
3592 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
3593 linux-aarch32-low.h.
3594 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
3595 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
3596 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
3597
3598 2016-01-01 Joel Brobecker <brobecker@adacore.com>
3599
3600 * gdbreplay.c (gdbreplay_version): Change copyright year in
3601 version message.
3602 * server.c (gdbserver_version): Likewise.
3603
3604 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
3605
3606 * server.c (crc32_table): Delete.
3607 (crc32): Use libiberty's xcrc32 function.
3608
3609 2015-12-22 Joel Brobecker <brobecker@adacore.com>
3610
3611 * lynx-low.c (lynx_delete_thread_callback): New function.
3612 (lynx_mourn): Properly delete our process and all of its
3613 threads. Remove call to clear_inferiors.
3614
3615 2015-12-22 Joel Brobecker <brobecker@adacore.com>
3616
3617 * target.c (thread_search_callback): Add check that
3618 the thread_stopped target callback is not NULL before
3619 calling it.
3620
3621 2015-12-21 Yao Qi <yao.qi@linaro.org>
3622
3623 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
3624 arm breakpoint.
3625
3626 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
3627
3628 * server.c (handle_query): Call target_supports_software_single_step.
3629
3630 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
3631
3632 * linux-low.c (single_step): New function.
3633 (linux_resume_one_lwp_throw): Call single_step.
3634 (start_step_over): Likewise.
3635
3636 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
3637
3638 * Makefile.in (SFILES): Append arch/arm-linux.c,
3639 arch/arm-get-next-pcs.c.
3640 (arm-linux.o): New rule.
3641 (arm-get-next-pcs.o): New rule.
3642 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
3643 arm-linux.o.
3644 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
3645 to linux-aarch32-low.c.
3646 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
3647 (arm_breakpoint_len, thumb_breakpoint): Likewise.
3648 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
3649 (thumb2_breakpoint_len): Likewise.
3650 (arm_is_thumb_mode): Make non-static.
3651 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
3652 from linux-aarch32-low.c.
3653 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
3654 (arm_breakpoint_len, thumb_breakpoint): Likewise.
3655 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
3656 (thumb2_breakpoint_len): Likewise.
3657 (arm_is_thumb_mode): New declaration.
3658 * linux-arm-low.c: Include arch/arm-linux.h
3659 aarch/arm-get-next-pcs.h, sys/syscall.h.
3660 (get_next_pcs_ops): New struct.
3661 (get_next_pcs_addr_bits_remove): New function.
3662 (get_next_pcs_is_thumb): New function.
3663 (get_next_pcs_read_memory_unsigned_integer): Likewise.
3664 (arm_sigreturn_next_pc): Likewise.
3665 (get_next_pcs_syscall_next_pc): Likewise.
3666 (arm_gdbserver_get_next_pcs): Likewise.
3667 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
3668 Initialize.
3669 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
3670 * server.h: Include gdb_vecs.h.
3671
3672 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
3673
3674 * Makefile.in (SFILES): Append common/common-regcache.c.
3675 (OBS): Append common-regcache.o.
3676 (common-regcache.o): New rule.
3677 * regcache.c (init_register_cache): Initialize cache to
3678 REG_UNAVAILABLE.
3679 (regcache_raw_read_unsigned): New function.
3680 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
3681 register_status enum.
3682
3683 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
3684
3685 * linux-aarch64-low.c (the_low_targets): Rename
3686 breakpoint_reinsert_addr to get_next_pcs.
3687 * linux-arm-low.c (the_low_targets): Likewise.
3688 * linux-bfin-low.c (the_low_targets): Likewise.
3689 * linux-cris-low.c (the_low_targets): Likewise.
3690 * linux-crisv32-low.c (the_low_targets): Likewise.
3691 * linux-low.c (can_software_single_step): Likewise.
3692 (install_software_single_step_breakpoints): New function.
3693 (start_step_over): Use install_software_single_step_breakpoints.
3694 * linux-low.h: New CORE_ADDR vector.
3695 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
3696 get_next_pcs.
3697 * linux-mips-low.c (the_low_targets): Likewise.
3698 * linux-nios2-low.c (the_low_targets): Likewise.
3699 * linux-sparc-low.c (the_low_targets): Likewise.
3700
3701 2015-12-17 Pedro Alves <palves@redhat.com>
3702
3703 * linux-low.c (linux_kill_one_lwp): Remove references to
3704 LinuxThreads.
3705 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
3706 to 'kill'.
3707 (linux_init_signals): Delete.
3708 (initialize_low): Adjust.
3709 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
3710
3711 2015-12-16 Pedro Alves <palves@redhat.com>
3712
3713 * configure.ac (compiler warning flags): When testing a
3714 -Wno-foo option, check whether -Wfoo works instead.
3715 * configure: Regenerate.
3716
3717 2015-12-11 Don Breazeal <donb@codesourcery.com>
3718
3719 * server.c (process_serial_event): Don't exit from gdbserver
3720 in remote mode if there are still active inferiors.
3721
3722 2015-12-11 Yao Qi <yao.qi@linaro.org>
3723
3724 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
3725 arm_breakpoint_at if the process is 32-bit.
3726
3727 2015-12-11 Yao Qi <yao.qi@linaro.org>
3728
3729 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
3730 arm breakpoint.
3731
3732 2015-12-07 Yao Qi <yao.qi@linaro.org>
3733
3734 * configure.srv: Append arm.o to srv_tgtobj for
3735 aarch64*-*-linux* target.
3736 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
3737 from linux-arm-low.c.
3738 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
3739 (arm_breakpoint_len, thumb_breakpoint): Likewise.
3740 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
3741 (thumb2_breakpoint_len): Likewise.
3742 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
3743 (arm_breakpoint_kinds): Likewise.
3744 (arm_breakpoint_kind_from_pc): Likewise.
3745 (arm_sw_breakpoint_from_kind): Likewise.
3746 (arm_breakpoint_kind_from_current_state): Likewise.
3747 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
3748 (arm_sw_breakpoint_from_kind): Declare.
3749 (arm_breakpoint_kind_from_current_state): Declare.
3750 (arm_breakpoint_at): Declare.
3751 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
3752 arm_sw_breakpoint_from_kind if process is 32-bit.
3753 (aarch64_breakpoint_kind_from_pc): New function.
3754 (aarch64_breakpoint_kind_from_current_state): New function.
3755 (the_low_target): Initialize fields breakpoint_kind_from_pc
3756 and breakpoint_kind_from_current_state.
3757 * linux-arm-low.c (arm_breakpoint_kinds): Move to
3758 linux-aarch32-low.c.
3759 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
3760 (arm_breakpoint, arm_breakpoint_len): Likewise.
3761 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
3762 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
3763 (arm_is_thumb_mode): Likewise.
3764 (arm_breakpoint_at): Likewise.
3765 (arm_breakpoint_kind_from_pc): Likewise.
3766 (arm_sw_breakpoint_from_kind): Likewise.
3767 (arm_breakpoint_kind_from_current_state): Likewise.
3768
3769 Revert:
3770 2015-08-04 Yao Qi <yao.qi@linaro.org>
3771
3772 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
3773 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
3774 * server.c (extended_protocol): Remove "static".
3775 * server.h (extended_protocol): Declare it.
3776
3777 2015-12-04 Josh Stone <jistone@redhat.com>
3778
3779 * target.h (struct target_ops) <arch_setup>: Rename to ...
3780 (struct target_ops) <post_create_inferior>: ... this.
3781 (target_arch_setup): Rename to ...
3782 (target_post_create_inferior): ... this, calling post_create_inferior.
3783 * server.c (start_inferior): Update target_arch_setup calls to
3784 target_post_create_inferior.
3785 * linux-low.c (linux_low_ptrace_options): Forward declare.
3786 (linux_arch_setup): Update its comment for general use.
3787 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
3788 (struct linux_target_ops): Use linux_post_create_inferior.
3789 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
3790 to post_create_inferior.
3791 * nto-low.c (struct nto_target_ops): Likewise.
3792 * spu-low.c (struct spu_target_ops): Likewise.
3793 * win32-low.c (struct win32_target_ops): Likewise.
3794
3795 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
3796
3797 * linux-arm-low.c: Remove duplicate arch/arm.h include.
3798
3799 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
3800
3801 * linux-arm-low.c (arm_reinsert_addr): Remove function.
3802 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
3803 * linux-cris-low.c (cris_reinsert_addr> Remove function.
3804 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
3805 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
3806 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
3807 * linux-mips-low.c (mips_reinsert_addr): Remove function.
3808 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
3809 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
3810 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
3811 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
3812 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
3813
3814 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
3815
3816 * linux-low.c (linux_look_up_symbols): Don't call
3817 linux_supports_traceclone.
3818 * linux-low.h (thread_db_init): Remove use_events argument.
3819 * thread-db.c (thread_db_use_event): Remove global variable.
3820 (struct thread_db) <td_thr_event_enable_p>: Remove field.
3821 (struct thread_db) <td_create_bp>: Remove field.
3822 (thread_db_create_event): Remove function.
3823 (thread_db_enable_reporting): Likewise.
3824 (find_one_thread): Don't check for thread_db_use_events.
3825 (attach_thread): Likewise.
3826 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
3827 (try_thread_db_load_1): Don't check for thread_db_use_events.
3828 (thread_db_init): Remove use_events argument and thread events
3829 handling.
3830 (remove_thread_event_breakpoints): Remove function.
3831 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
3832
3833 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
3834
3835 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
3836 New function.
3837 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
3838 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
3839 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
3840 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
3841 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
3842 Initialize.
3843 * linux-crisv32-low.c (cris_supports_hardware_single_step):
3844 New function.
3845 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
3846 * linux-low.c (can_hardware_single_step): Use
3847 supports_hardware_single_step.
3848 (can_software_single_step): New function.
3849 (start_step_over): Call can_software_single_step.
3850 (linux_supports_hardware_single_step): New function.
3851 (struct target_ops) <supports_software_single_step>: Initialize.
3852 * linux-low.h (struct linux_target_ops)
3853 <supports_hardware_single_step>: Initialize.
3854 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
3855 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
3856 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
3857 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
3858 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
3859 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
3860 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
3861 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
3862 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
3863 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
3864 Initialize.
3865 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
3866 (struct linux_target_ops) <tile_supports_hardware_single_step>:
3867 Initialize.
3868 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
3869 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
3870 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
3871 New function.
3872 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
3873 * target.h (struct target_ops): <supports_software_single_step>:
3874 New field.
3875 (target_supports_software_single_step): New macro.
3876
3877 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
3878
3879 * linux-low.c (linux_wait_1): Fix pc advance condition.
3880 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
3881 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
3882
3883 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
3884
3885 * linux-arm-low.c (arm_is_thumb_mode): New function.
3886 (arm_breakpoint_at): Use arm_is_thumb_mode.
3887 (arm_breakpoint_kind_from_current_state): New function.
3888 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
3889 Initialize.
3890 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
3891 (linux_breakpoint_kind_from_current_state): New function.
3892 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
3893 * linux-low.h (struct linux_target_ops)
3894 <breakpoint_kind_from_current_state>: New field.
3895 * target.h (struct target_ops): Likewise.
3896 (target_breakpoint_kind_from_current_state): New macro.
3897
3898 2015-11-30 Pedro Alves <palves@redhat.com>
3899
3900 * linux-low.c (linux_resume): Wake up the event loop before
3901 returning.
3902
3903 2015-11-30 Pedro Alves <palves@redhat.com>
3904
3905 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
3906 check.
3907 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
3908 to -1.
3909 * target.c (struct thread_search): New structure.
3910 (thread_search_callback): New function.
3911 (prev_general_thread): New global.
3912 (prepare_to_access_memory, done_accessing_memory): New functions.
3913 * target.h (prepare_to_access_memory, done_accessing_memory):
3914 Replace macros with function declarations.
3915
3916 2015-11-30 Pedro Alves <palves@redhat.com>
3917
3918 PR 14618
3919 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
3920 report TARGET_WAITKIND_NO_RESUMED.
3921 * remote-utils.c (prepare_resume_reply): Handle
3922 TARGET_WAITKIND_NO_RESUMED.
3923 * server.c (report_no_resumed): New global.
3924 (handle_query) <qSupported>: Handle "no-resumed+". Report
3925 "no-resumed+" support.
3926 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
3927 return error if the client doesn't support no-resumed events.
3928 (push_stop_notification): New function.
3929 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
3930 events if the client supports them.
3931
3932 2015-11-30 Pedro Alves <palves@redhat.com>
3933
3934 * linux-low.c (thread_still_has_status_pending_p): Don't check
3935 vCont;t here.
3936 (lwp_resumed): New function.
3937 (status_pending_p_callback): Return early if the LWP is not
3938 supposed to be resumed.
3939
3940 2015-11-30 Pedro Alves <palves@redhat.com>
3941
3942 * linux-low.c (handle_extended_wait): Assert that the LWP's
3943 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
3944 thread create events, leave the new child's status pending.
3945 (linux_low_filter_event): If GDB wants to hear about thread exit
3946 events, leave the LWP marked dead and don't delete it.
3947 (linux_wait_for_event_filtered): Don't check for thread exit.
3948 (filter_exit_event): New function.
3949 (linux_wait_1): Use it, when returning an exit event.
3950 (linux_resume_one_lwp_throw): Assert that the LWP's
3951 waitstatus is TARGET_WAITKIND_IGNORE.
3952 * remote-utils.c (prepare_resume_reply): Handle
3953 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
3954 * server.c (report_thread_events): New global.
3955 (handle_general_set): Handle QThreadEvents.
3956 (handle_query) <qSupported>: Handle and report QThreadEvents+;
3957 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
3958 TARGET_WAITKIND_THREAD_EXITED.
3959 * server.h (report_thread_events): Declare.
3960
3961 2015-11-30 Pedro Alves <palves@redhat.com>
3962
3963 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
3964 the thread's last_resume_kind was resume_stop.
3965
3966 2015-11-30 Pedro Alves <palves@redhat.com>
3967
3968 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
3969 before returning.
3970
3971 2015-11-30 Pedro Alves <palves@redhat.com>
3972
3973 * server.c (handle_v_requests): Handle vCtrlC.
3974
3975 2015-11-30 Pedro Alves <palves@redhat.com>
3976
3977 * gdbthread.h (find_any_thread_of_pid): Declare.
3978 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
3979 functions.
3980 * server.c (handle_query): If current_thread is NULL, look for
3981 another thread of the selected process.
3982
3983 2015-11-26 Daniel Colascione <dancol@dancol.org>
3984 Simon Marchi <simon.marchi@ericsson.com>
3985
3986 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
3987 * server.c (handle_qxfer_threads_worker): Refactor to include thread
3988 name in reply.
3989 * target.h (struct target_ops) <thread_name>: New field.
3990 (target_thread_name): New macro.
3991
3992 2015-11-23 Joel Brobecker <brobecker@adacore.com>
3993
3994 * regcache.h (regcache_invalidate_pid): Add declaration.
3995 * regcache.c (regcache_invalidate_pid): New function, extracted
3996 from regcache_invalidate.
3997 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
3998 Add trivial documentation comment.
3999 * lynx-low.c: Use regcache_invalidate_pid instead of
4000 regcache_invalidate.
4001
4002 2015-11-23 Joel Brobecker <brobecker@adacore.com>
4003
4004 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
4005 and Elf64_auxv_t if the target is Android.
4006
4007 2015-11-22 Doug Evans <xdje42@gmail.com>
4008
4009 * target.h: #include <sys/types.h>.
4010
4011 2015-11-19 Pedro Alves <palves@redhat.com>
4012
4013 * linux-low.c (linux_process_qsupported): Change prototype.
4014 Adjust.
4015 * linux-low.h (struct linux_target_ops) <process_qsupported>:
4016 Change prototype.
4017 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
4018 and adjust to loop over all features.
4019 * server.c (handle_query) <qSupported>: Adjust to call
4020 target_process_qsupported once, passing it a vector of unprocessed
4021 features.
4022 * target.h (struct target_ops) <process_qsupported>: Change
4023 prototype.
4024 (target_process_qsupported): Adjust.
4025
4026 2015-11-19 Pedro Alves <palves@redhat.com>
4027
4028 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
4029 mode.
4030 * configure: Regenerate.
4031
4032 2015-11-19 Pedro Alves <palves@redhat.com>
4033
4034 * configure: Regenerate.
4035
4036 2015-11-19 Yao Qi <yao.qi@linaro.org>
4037
4038 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
4039 type to uint32_t.
4040
4041 2015-11-19 Yao Qi <yao.qi@linaro.org>
4042
4043 * linux-aarch64-low.c (enum aarch64_operand_type): New.
4044 (struct aarch64_operand): Move enum out.
4045
4046 2015-11-19 Yao Qi <yao.qi@linaro.org>
4047
4048 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
4049 struct user_fpsimd_state *.
4050 (aarch64_store_fpregset): Likewise.
4051
4052 2015-11-19 Yao Qi <yao.qi@linaro.org>
4053
4054 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
4055 struct user_pt_regs *.
4056 (aarch64_store_gregset): Likewise.
4057
4058 2015-11-18 Pedro Alves <palves@redhat.com>
4059
4060 * Makefile.in (all_object_files): Add $IPA_OBJS.
4061
4062 2015-11-17 Pedro Alves <palves@redhat.com>
4063
4064 * win32-low.c (win32_resume): Use gdb_signal_from_host,
4065 GDB_SIGNAL_0 and gdb_signal_to_string.
4066
4067 2015-11-17 Pedro Alves <palves@redhat.com>
4068
4069 * win32-low.c (handle_output_debug_string): Remove parameter.
4070 (win32_kill): Remove our_status local and adjust call to
4071 handle_output_debug_string.
4072 (get_child_debug_event): Adjust call to
4073 handle_output_debug_string.
4074
4075 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4076
4077 * linux-mips-low.c (mips_fill_gregset): Add cast.
4078 (mips_store_gregset): Likewise.
4079 (mips_fill_fpregset): Likewise.
4080 (mips_store_fpregset): Likewise.
4081
4082 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4083
4084 * linux-mips-low.c (mips_add_watchpoint): Rename private to
4085 priv.
4086
4087 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4088
4089 * linux-mips-low.c (mips_linux_new_thread): Change type of
4090 watch_type to enum target_hw_bp_type.
4091
4092 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4093
4094 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
4095 Change return type to arm_hwbp_type.
4096
4097 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4098
4099 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
4100 (arm_store_gregset): Likewise.
4101 * linux-arm-low.c (arm_get_hwcap): Likewise.
4102 (arm_read_description): Likewise.
4103
4104 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4105
4106 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
4107
4108 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4109
4110 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
4111 (ppc_fill_vsxregset): Likewise.
4112 (ppc_store_vsxregset): Likewise.
4113 (ppc_fill_vrregset): Likewise.
4114 (ppc_store_vrregset): Likewise.
4115 (ppc_fill_evrregset): Likewise.
4116 (ppc_store_evrregset): Likewise.
4117
4118 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
4119
4120 * linux-ppc-low.c (ppc_usrregs_info): Remove
4121 forward-declaration.
4122 (ppc_arch_setup): Move lower in file.
4123
4124 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
4125
4126 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
4127 (ps_pdwrite): Likewise.
4128
4129 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
4130
4131 * linux-arm-low.c (arm_new_thread): Move pointer dereference
4132 to after assert checks.
4133
4134 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
4135
4136 * proc-service.c (ps_pdread): Add/adjust casts.
4137 (ps_pdwrite): Add/adjust casts.
4138
4139 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
4140
4141 * server.c (handle_search_memory_1): Cast return value of
4142 memmem.
4143
4144 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
4145
4146 * server.c (write_qxfer_response): Change type of data to
4147 gdb_byte *.
4148
4149 2015-10-29 Pedro Alves <palves@redhat.com>
4150
4151 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
4152
4153 2015-10-29 Pedro Alves <palves@redhat.com>
4154
4155 * tracepoint.c (clear_installed_tracepoints): Add casts.
4156
4157 2015-10-29 Pedro Alves <palves@redhat.com>
4158
4159 * server.c (handle_v_cont, process_serial_event): Add enum
4160 gdb_signal casts to signal parsing code.
4161
4162 2015-10-29 Pedro Alves <palves@redhat.com>
4163
4164 * linux-low.h (NULL_REGSET): Define.
4165 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
4166 * linux-arm-low.c (arm_regsets): Likewise.
4167 * linux-crisv32-low.c (cris_regsets): Likewise.
4168 * linux-m68k-low.c (m68k_regsets): Likewise.
4169 * linux-mips-low.c (mips_regsets): Likewise.
4170 * linux-nios2-low.c (nios2_regsets): Likewise.
4171 * linux-ppc-low.c (ppc_regsets): Likewise.
4172 * linux-s390-low.c (s390_regsets): Likewise.
4173 * linux-sh-low.c (sh_regsets): Likewise.
4174 * linux-sparc-low.c (sparc_regsets): Likewise.
4175 * linux-tic6x-low.c (tic6x_regsets): Likewise.
4176 * linux-tile-low.c (tile_regsets): Likewise.
4177 * linux-x86-low.c (x86_regsets): Likewise.
4178 * linux-xtensa-low.c (xtensa_regsets): Likewise.
4179
4180 2015-10-29 Pedro Alves <palves@redhat.com>
4181
4182 * linux-low.h (NULL_REGSET): Define.
4183 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
4184 * linux-arm-low.c (arm_regsets): Likewise.
4185 * linux-crisv32-low.c (cris_regsets): Likewise.
4186 * linux-m68k-low.c (m68k_regsets): Likewise.
4187 * linux-mips-low.c (mips_regsets): Likewise.
4188 * linux-nios2-low.c (nios2_regsets): Likewise.
4189 * linux-ppc-low.c (ppc_regsets): Likewise.
4190 * linux-s390-low.c (s390_regsets): Likewise.
4191 * linux-sh-low.c (sh_regsets): Likewise.
4192 * linux-sparc-low.c (sparc_regsets): Likewise.
4193 * linux-tic6x-low.c (tic6x_regsets): Likewise.
4194 * linux-tile-low.c (tile_regsets): Likewise.
4195 * linux-x86-low.c (x86_regsets): Likewise.
4196 * linux-xtensa-low.c (xtensa_regsets): Likewise.
4197
4198 2015-10-26 Doug Evans <dje@google.com>
4199
4200 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
4201
4202 2015-10-26 Doug Evans <dje@google.com>
4203
4204 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
4205
4206 2015-10-26 Doug Evans <dje@google.com>
4207
4208 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
4209 for debug_printf.
4210 (attach_thread, find_new_threads_callback): Ditto.
4211
4212 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
4213
4214 * mem-break.h (set_breakpoint_data): Remove.
4215
4216 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
4217
4218 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
4219 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
4220 (initialize_low): Remove set_breakpoint_data call.
4221 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
4222 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
4223 (initialize_low): Remove set_breakpoint_data call.
4224 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
4225 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
4226 (initialize_low): Remove set_breakpoint_data call.
4227
4228 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
4229
4230 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
4231 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
4232 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
4233 * target.h (target_breakpoint_kind_from_pc): New macro.
4234
4235 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
4236
4237 * linux-low.c (default_breakpoint_kind_from_pc): New function.
4238 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
4239 the default breakpoint kind.
4240
4241 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4242
4243 * linux-arm-low.c (arm_supports_z_point_type): Add software
4244 breakpoint support.
4245
4246 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4247
4248 * linux-arm-low.c: Refactor breakpoint definitions.
4249 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
4250 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
4251
4252 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4253
4254 * Makefile.in: Add arm.c/o.
4255 * configure.srv: Likewise.
4256 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
4257 (arm_breakpoint_kind_from_pc): New function.
4258 (arm_sw_breakpoint_from_kind): Return proper kind.
4259 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
4260
4261 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4262
4263 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
4264 removal.
4265 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
4266 (struct raw_breakpoint) <size>: Remove.
4267 (struct raw_breakpoint) <kind>: Add.
4268 (bp_size): New function.
4269 (bp_opcode): Likewise.
4270 (find_raw_breakpoint_at): Adjust for kind.
4271 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
4272 (remove_memory_breakpoint): Adjust for kind call bp_size.
4273 (set_raw_breakpoint_at): Adjust for kind.
4274 (set_breakpoint): Likewise.
4275 (set_breakpoint_at): Call breakpoint_kind_from_pc.
4276 (delete_raw_breakpoint): Adjust for kind.
4277 (delete_breakpoint): Likewise.
4278 (find_gdb_breakpoint): Likewise.
4279 (set_gdb_breakpoint_1): Likewise.
4280 (set_gdb_breakpoint): Likewise.
4281 (delete_gdb_breakpoint_1): Likewise.
4282 (delete_gdb_breakpoint): Likewise.
4283 (uninsert_raw_breakpoint): Likewise.
4284 (reinsert_raw_breakpoint): Likewise.
4285 (set_breakpoint_data): Remove.
4286 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
4287 (check_mem_read): Adjust for kind call bp_size.
4288 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
4289 (clone_one_breakpoint): Adjust for kind.
4290 * mem-break.h (set_gdb_breakpoint): Likewise.
4291 (delete_gdb_breakpoint): Likewise.
4292 * server.c (process_serial_event): Likewise.
4293
4294 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4295
4296 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
4297 (struct linux_target_ops) <breakpoint>: Remove.
4298 (struct linux_target_ops) <breakpoint_len>: Remove.
4299 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4300 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4301 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
4302 (arm_sw_breakpoint_from_kind): New function.
4303 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
4304 (struct linux_target_ops) <breakpoint>: Remove.
4305 (struct linux_target_ops) <breakpoint_len>: Remove.
4306 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4307 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4308 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
4309 (struct linux_target_ops) <breakpoint>: Remove.
4310 (struct linux_target_ops) <breakpoint_len>: Remove.
4311 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4312 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4313 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
4314 (struct linux_target_ops) <breakpoint>: Remove.
4315 (struct linux_target_ops) <breakpoint_len>: Remove.
4316 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4317 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4318 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
4319 and sw_breakpoint_from_kind to increment the pc.
4320 (linux_breakpoint_kind_from_pc): New function.
4321 (linux_sw_breakpoint_from_kind): New function.
4322 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
4323 (initialize_low): Call breakpoint_kind_from_pc and
4324 sw_breakpoint_from_kind to replace breakpoint_data/len.
4325 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
4326 New field.
4327 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
4328 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
4329 (struct linux_target_ops) <breakpoint>: Remove.
4330 (struct linux_target_ops) <breakpoint_len>: Remove.
4331 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4332 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4333 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
4334 (struct linux_target_ops) <breakpoint>: Remove.
4335 (struct linux_target_ops) <breakpoint_len>: Remove.
4336 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4337 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4338 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
4339 (struct linux_target_ops) <breakpoint>: Remove.
4340 (struct linux_target_ops) <breakpoint_len>: Remove.
4341 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4342 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4343 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
4344 (struct linux_target_ops) <breakpoint>: Remove.
4345 (struct linux_target_ops) <breakpoint_len>: Remove.
4346 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4347 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4348 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
4349 (struct linux_target_ops) <breakpoint>: Remove.
4350 (struct linux_target_ops) <breakpoint_len>: Remove.
4351 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4352 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4353 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
4354 (struct linux_target_ops) <breakpoint>: Remove.
4355 (struct linux_target_ops) <breakpoint_len>: Remove.
4356 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4357 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4358 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
4359 (struct linux_target_ops) <breakpoint>: Remove.
4360 (struct linux_target_ops) <breakpoint_len>: Remove.
4361 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4362 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4363 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
4364 (struct linux_target_ops) <breakpoint>: Remove.
4365 (struct linux_target_ops) <breakpoint_len>: Remove.
4366 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4367 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4368 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
4369 (struct linux_target_ops) <breakpoint>: Remove.
4370 (struct linux_target_ops) <breakpoint_len>: Remove.
4371 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4372 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4373 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
4374 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
4375 (struct linux_target_ops) <breakpoint>: Remove.
4376 (struct linux_target_ops) <breakpoint_len>: Remove.
4377 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4378 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4379 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
4380 (struct linux_target_ops) <breakpoint>: Remove.
4381 (struct linux_target_ops) <breakpoint_len>: Remove.
4382 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
4383 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
4384
4385 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
4386
4387 * linux-cris-low.c (cris_get_pc): Remove void arg.
4388
4389 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
4390
4391 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
4392 variable name.
4393
4394 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
4395
4396 * inferiors.c (thread_pid_matches_callback): New function.
4397 (find_thread_process): New function.
4398 (remove_thread): Reset current_thread.
4399 (remove_process): Assert threads have been removed first.
4400
4401 2015-10-15 Yao Qi <yao.qi@linaro.org>
4402
4403 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
4404 if it is 3.
4405 (aarch64_remove_point): Likewise.
4406 * regcache.c (regcache_register_size): New function.
4407
4408 2015-10-12 Yao Qi <yao.qi@linaro.org>
4409
4410 * linux-aarch64-low.c: Update all callers as emit_load_store
4411 is renamed to aarch64_emit_load_store.
4412
4413 2015-10-12 Yao Qi <yao.qi@linaro.org>
4414
4415 * linux-aarch64-low.c: Update all callers of function renaming
4416 from emit_insn to aarch64_emit_insn.
4417
4418 2015-10-12 Yao Qi <yao.qi@linaro.org>
4419
4420 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
4421 arch/aarch64-insn.h.
4422 (struct aarch64_memory_operand): Likewise.
4423 (ENCODE): Likewise.
4424 (emit_insn): Move to arch/aarch64-insn.c.
4425 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
4426 (emit_load_store): Move to arch/aarch64-insn.c.
4427 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
4428 (can_encode_int32): Remove.
4429
4430 2015-10-12 Yao Qi <yao.qi@linaro.org>
4431
4432 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
4433 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
4434 (aarch64_relocate_instruction): Likewise.
4435 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
4436 (struct aarch64_insn_visitor): Likewise.
4437
4438 2015-10-12 Yao Qi <yao.qi@linaro.org>
4439
4440 * linux-aarch64-low.c (struct aarch64_insn_data): New.
4441 (struct aarch64_insn_visitor): New.
4442 (struct aarch64_insn_relocation_data): New.
4443 (aarch64_ftrace_insn_reloc_b): New function.
4444 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
4445 (aarch64_ftrace_insn_reloc_cb): Likewise.
4446 (aarch64_ftrace_insn_reloc_tb): Likewise.
4447 (aarch64_ftrace_insn_reloc_adr): Likewise.
4448 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
4449 (aarch64_ftrace_insn_reloc_others): Likewise.
4450 (visitor): New.
4451 (aarch64_relocate_instruction): Use visitor.
4452
4453 2015-10-12 Yao Qi <yao.qi@linaro.org>
4454
4455 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
4456 int. Add argument buf.
4457 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
4458 aarch64_relocate_instruction.
4459
4460 2015-10-12 Yao Qi <yao.qi@linaro.org>
4461
4462 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
4463 argument insn. Remove local variable insn. Don't call
4464 target_read_uint32.
4465 (aarch64_install_fast_tracepoint_jump_pad): Call
4466 target_read_uint32.
4467
4468 2015-09-30 Yao Qi <yao.qi@linaro.org>
4469
4470 * linux-aarch64-low.c (emit_movk): Shorten a long line.
4471 (emit_load_store_pair): Likewise.
4472
4473 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
4474
4475 * dll.c (match_dll): Add cast(s).
4476 (unloaded_dll): Likewise.
4477 * linux-low.c (second_thread_of_pid_p): Likewise.
4478 (delete_lwp_callback): Likewise.
4479 (count_events_callback): Likewise.
4480 (select_event_lwp_callback): Likewise.
4481 (linux_set_resume_request): Likewise.
4482 * server.c (accumulate_file_name_length): Likewise.
4483 (emit_dll_description): Likewise.
4484 (handle_qxfer_threads_worker): Likewise.
4485 (visit_actioned_threads): Likewise.
4486 * thread-db.c (any_thread_of): Likewise.
4487 * tracepoint.c (same_process_p): Likewise.
4488 (match_blocktype): Likewise.
4489 (build_traceframe_info_xml): Likewise.
4490
4491 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
4492
4493 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
4494 assignment.
4495 (gdb_unparse_agent_expr): Likewise.
4496 * hostio.c (require_data): Likewise.
4497 (handle_pread): Likewise.
4498 * linux-low.c (disable_regset): Likewise.
4499 (fetch_register): Likewise.
4500 (store_register): Likewise.
4501 (get_dynamic): Likewise.
4502 (linux_qxfer_libraries_svr4): Likewise.
4503 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
4504 (set_fast_tracepoint_jump): Likewise.
4505 (uninsert_fast_tracepoint_jumps_at): Likewise.
4506 (reinsert_fast_tracepoint_jumps_at): Likewise.
4507 (validate_inserted_breakpoint): Likewise.
4508 (clone_agent_expr): Likewise.
4509 * regcache.c (init_register_cache): Likewise.
4510 * remote-utils.c (putpkt_binary_1): Likewise.
4511 (decode_M_packet): Likewise.
4512 (decode_X_packet): Likewise.
4513 (look_up_one_symbol): Likewise.
4514 (relocate_instruction): Likewise.
4515 (monitor_output): Likewise.
4516 * server.c (handle_search_memory): Likewise.
4517 (handle_qxfer_exec_file): Likewise.
4518 (handle_qxfer_libraries): Likewise.
4519 (handle_qxfer): Likewise.
4520 (handle_query): Likewise.
4521 (handle_v_cont): Likewise.
4522 (handle_v_run): Likewise.
4523 (captured_main): Likewise.
4524 * target.c (write_inferior_memory): Likewise.
4525 * thread-db.c (try_thread_db_load_from_dir): Likewise.
4526 * tracepoint.c (init_trace_buffer): Likewise.
4527 (add_tracepoint_action): Likewise.
4528 (add_traceframe): Likewise.
4529 (add_traceframe_block): Likewise.
4530 (cmd_qtdpsrc): Likewise.
4531 (cmd_qtdv): Likewise.
4532 (cmd_qtstatus): Likewise.
4533 (response_source): Likewise.
4534 (response_tsv): Likewise.
4535 (cmd_qtnotes): Likewise.
4536 (gdb_collect): Likewise.
4537 (initialize_tracepoint): Likewise.
4538
4539 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
4540
4541 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
4542 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
4543 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
4544 <NOP>: New.
4545 (enum aarch64_condition_codes): New enum.
4546 (w0): New static global.
4547 (fp): Likewise.
4548 (lr): Likewise.
4549 (struct aarch64_memory_operand) <type>: New
4550 MEMORY_OPERAND_POSTINDEX type.
4551 (postindex_memory_operand): New helper function.
4552 (emit_ret): New function.
4553 (emit_load_store_pair): New function, factored out of emit_stp
4554 with support for MEMORY_OPERAND_POSTINDEX.
4555 (emit_stp): Rewrite using emit_load_store_pair.
4556 (emit_ldp): New function.
4557 (emit_load_store): Likewise.
4558 (emit_ldr): Mention post-index instruction in comment.
4559 (emit_ldrh): New function.
4560 (emit_ldrb): New function.
4561 (emit_ldrsw): Mention post-index instruction in comment.
4562 (emit_str): Likewise.
4563 (emit_subs): New function.
4564 (emit_cmp): Likewise.
4565 (emit_and): Likewise.
4566 (emit_orr): Likewise.
4567 (emit_orn): Likewise.
4568 (emit_eor): Likewise.
4569 (emit_mvn): Likewise.
4570 (emit_lslv): Likewise.
4571 (emit_lsrv): Likewise.
4572 (emit_asrv): Likewise.
4573 (emit_mul): Likewise.
4574 (emit_sbfm): Likewise.
4575 (emit_sbfx): Likewise.
4576 (emit_ubfm): Likewise.
4577 (emit_ubfx): Likewise.
4578 (emit_csinc): Likewise.
4579 (emit_cset): Likewise.
4580 (emit_nop): Likewise.
4581 (emit_ops_insns): New helper function.
4582 (emit_pop): Likewise.
4583 (emit_push): Likewise.
4584 (aarch64_emit_prologue): New function.
4585 (aarch64_emit_epilogue): Likewise.
4586 (aarch64_emit_add): Likewise.
4587 (aarch64_emit_sub): Likewise.
4588 (aarch64_emit_mul): Likewise.
4589 (aarch64_emit_lsh): Likewise.
4590 (aarch64_emit_rsh_signed): Likewise.
4591 (aarch64_emit_rsh_unsigned): Likewise.
4592 (aarch64_emit_ext): Likewise.
4593 (aarch64_emit_log_not): Likewise.
4594 (aarch64_emit_bit_and): Likewise.
4595 (aarch64_emit_bit_or): Likewise.
4596 (aarch64_emit_bit_xor): Likewise.
4597 (aarch64_emit_bit_not): Likewise.
4598 (aarch64_emit_equal): Likewise.
4599 (aarch64_emit_less_signed): Likewise.
4600 (aarch64_emit_less_unsigned): Likewise.
4601 (aarch64_emit_ref): Likewise.
4602 (aarch64_emit_if_goto): Likewise.
4603 (aarch64_emit_goto): Likewise.
4604 (aarch64_write_goto_address): Likewise.
4605 (aarch64_emit_const): Likewise.
4606 (aarch64_emit_call): Likewise.
4607 (aarch64_emit_reg): Likewise.
4608 (aarch64_emit_pop): Likewise.
4609 (aarch64_emit_stack_flush): Likewise.
4610 (aarch64_emit_zero_ext): Likewise.
4611 (aarch64_emit_swap): Likewise.
4612 (aarch64_emit_stack_adjust): Likewise.
4613 (aarch64_emit_int_call_1): Likewise.
4614 (aarch64_emit_void_call_2): Likewise.
4615 (aarch64_emit_eq_goto): Likewise.
4616 (aarch64_emit_ne_goto): Likewise.
4617 (aarch64_emit_lt_goto): Likewise.
4618 (aarch64_emit_le_goto): Likewise.
4619 (aarch64_emit_gt_goto): Likewise.
4620 (aarch64_emit_ge_got): Likewise.
4621 (aarch64_emit_ops_impl): New static global variable.
4622 (aarch64_emit_ops): New target function, return
4623 &aarch64_emit_ops_impl.
4624 (struct linux_target_ops): Install it.
4625
4626 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
4627
4628 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
4629 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
4630 aarch64-ipa.o.
4631 * linux-aarch64-ipa.c: New file.
4632 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
4633 and endian.h.
4634 (aarch64_get_thread_area): New target method.
4635 (extract_signed_bitfield): New helper function.
4636 (aarch64_decode_ldr_literal): New function.
4637 (enum aarch64_opcodes): New enum.
4638 (struct aarch64_register): New struct.
4639 (struct aarch64_operand): New struct.
4640 (x0): New static global.
4641 (x1): Likewise.
4642 (x2): Likewise.
4643 (x3): Likewise.
4644 (x4): Likewise.
4645 (w2): Likewise.
4646 (ip0): Likewise.
4647 (sp): Likewise.
4648 (xzr): Likewise.
4649 (aarch64_register): New helper function.
4650 (register_operand): Likewise.
4651 (immediate_operand): Likewise.
4652 (struct aarch64_memory_operand): New struct.
4653 (offset_memory_operand): New helper function.
4654 (preindex_memory_operand): Likewise.
4655 (enum aarch64_system_control_registers): New enum.
4656 (ENCODE): New macro.
4657 (emit_insn): New helper function.
4658 (emit_b): New function.
4659 (emit_bcond): Likewise.
4660 (emit_cb): Likewise.
4661 (emit_tb): Likewise.
4662 (emit_blr): Likewise.
4663 (emit_stp): Likewise.
4664 (emit_ldp_q_offset): Likewise.
4665 (emit_stp_q_offset): Likewise.
4666 (emit_load_store): Likewise.
4667 (emit_ldr): Likewise.
4668 (emit_ldrsw): Likewise.
4669 (emit_str): Likewise.
4670 (emit_ldaxr): Likewise.
4671 (emit_stxr): Likewise.
4672 (emit_stlr): Likewise.
4673 (emit_data_processing_reg): Likewise.
4674 (emit_data_processing): Likewise.
4675 (emit_add): Likewise.
4676 (emit_sub): Likewise.
4677 (emit_mov): Likewise.
4678 (emit_movk): Likewise.
4679 (emit_mov_addr): Likewise.
4680 (emit_mrs): Likewise.
4681 (emit_msr): Likewise.
4682 (emit_sevl): Likewise.
4683 (emit_wfe): Likewise.
4684 (append_insns): Likewise.
4685 (can_encode_int32_in): New helper function.
4686 (aarch64_relocate_instruction): New function.
4687 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
4688 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
4689 (struct linux_target_ops): Install aarch64_get_thread_area,
4690 aarch64_install_fast_tracepoint_jump_pad and
4691 aarch64_get_min_fast_tracepoint_insn_len.
4692
4693 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
4694
4695 * Makefile.in (aarch64-insn.o): New rule.
4696 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
4697
4698 2015-09-21 Yao Qi <yao.qi@linaro.org>
4699
4700 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
4701
4702 2015-09-21 Yao Qi <yao.qi@linaro.org>
4703
4704 * tracepoint.c (max_jump_pad_size): Remove.
4705
4706 2015-09-18 Yao Qi <yao.qi@linaro.org>
4707
4708 * linux-aarch64-low.c: Don't include sys/uio.h.
4709 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
4710
4711 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
4712
4713 * tracepoint.c (eval_result_type): Change prototype.
4714 (condition_true_at_tracepoint): Fix argument to compiled_cond.
4715
4716 2015-09-15 Pedro Alves <palves@redhat.com>
4717
4718 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
4719 Check whether to report exec events instead of checking whether
4720 multiprocess is enabled.
4721
4722 2015-09-15 Pedro Alves <palves@redhat.com>
4723
4724 PR remote/18965
4725 * remote-utils.c (prepare_resume_reply): Merge
4726 TARGET_WAITKIND_VFORK_DONE switch case with the
4727 TARGET_WAITKIND_FORKED case.
4728
4729 2015-09-15 Yao Qi <yao.qi@linaro.org>
4730
4731 * server.c (handle_query): Check string comparison using
4732 "else if" instead of "if".
4733
4734 2015-09-15 Yao Qi <yao.qi@linaro.org>
4735
4736 * server.c (vCont_supported): New global variable.
4737 (handle_query): Set vCont_supported to 1 if "vContSupported+"
4738 matches. Append ";vContSupported+" to own_buf.
4739 (handle_v_requests): Append ";s;S" to own_buf if target supports
4740 hardware single step or vCont_supported is false.
4741 (capture_main): Set vCont_supported to zero.
4742
4743 2015-09-15 Yao Qi <yao.qi@linaro.org>
4744
4745 * linux-low.c (linux_supports_conditional_breakpoints): Rename
4746 it to ...
4747 (linux_supports_hardware_single_step): ... New function.
4748 (linux_target_ops): Update.
4749 * lynx-low.c (lynx_target_ops): Set field
4750 supports_hardware_single_step to target_can_do_hardware_single_step.
4751 * nto-low.c (nto_target_ops): Likewise.
4752 * spu-low.c (spu_target_ops): Likewise.
4753 * win32-low.c (win32_target_ops): Likewise.
4754 * target.c (target_can_do_hardware_single_step): New function.
4755 * target.h (struct target_ops) <supports_conditional_breakpoints>:
4756 Remove. <supports_hardware_single_step>: New field.
4757 (target_supports_conditional_breakpoints): Remove.
4758 (target_supports_hardware_single_step): New macro.
4759 (target_can_do_hardware_single_step): Declare.
4760 * server.c (handle_query): Use target_supports_hardware_single_step
4761 instead of target_supports_conditional_breakpoints.
4762
4763 2015-09-15 Yao Qi <yao.qi@linaro.org>
4764
4765 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
4766 function.
4767 (struct linux_target_ops the_low_target): Install
4768 aarch64_linux_siginfo_fixup.
4769
4770 2015-09-11 Don Breazeal <donb@codesourcery.com>
4771 Luis Machado <lgustavo@codesourcery.com>
4772
4773 * linux-low.c (linux_mourn): Static declaration.
4774 (linux_arch_setup): Move in front of
4775 handle_extended_wait.
4776 (linux_arch_setup_thread): New function.
4777 (handle_extended_wait): Handle exec events. Call
4778 linux_arch_setup_thread. Make event_lwp argument a
4779 pointer-to-a-pointer.
4780 (check_zombie_leaders): Do not check stopped threads.
4781 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
4782 (linux_low_filter_event): Add lwp and thread for exec'ing
4783 non-leader thread if leader thread has been deleted.
4784 Refactor code into linux_arch_setup_thread and call it.
4785 Pass child lwp pointer by reference to handle_extended_wait.
4786 (linux_wait_for_event_filtered): Update comment.
4787 (linux_wait_1): Prevent clobbering exec event status.
4788 (linux_supports_exec_events): New function.
4789 (linux_target_ops) <supports_exec_events>: Initialize new member.
4790 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
4791 new member.
4792 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
4793 * server.c (report_exec_events): New global variable.
4794 (handle_query): Handle qSupported query for exec-events feature.
4795 (captured_main): Initialize report_exec_events.
4796 * server.h (report_exec_events): Declare new global variable.
4797 * target.h (struct target_ops) <supports_exec_events>: New
4798 member.
4799 (target_supports_exec_events): New macro.
4800 * win32-low.c (win32_target_ops) <supports_exec_events>:
4801 Initialize new member.
4802
4803 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
4804
4805 * linux-low.c (linux_low_enable_btrace): Remove.
4806 (linux_target_ops): Replace linux_low_enable_btrace with
4807 linux_enable_btrace.
4808
4809 2015-09-03 Yao Qi <yao.qi@linaro.org>
4810
4811 * linux-aarch64-low.c (aarch64_insert_point): Call
4812 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
4813 returns true.
4814
4815 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4816
4817 * linux-low.c (check_stopped_by_breakpoint): Use
4818 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
4819
4820 2015-08-27 Pedro Alves <palves@redhat.com>
4821
4822 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
4823
4824 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
4825
4826 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
4827 the XNEW-family equivalent.
4828 (compile_bytecodes): Likewise.
4829 * dll.c (loaded_dll): Likewise.
4830 * event-loop.c (append_callback_event): Likewise.
4831 (create_file_handler): Likewise.
4832 (create_file_event): Likewise.
4833 * hostio.c (handle_open): Likewise.
4834 * inferiors.c (add_thread): Likewise.
4835 (add_process): Likewise.
4836 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
4837 * linux-arm-low.c (arm_new_process): Likewise.
4838 (arm_new_thread): Likewise.
4839 * linux-low.c (add_to_pid_list): Likewise.
4840 (linux_add_process): Likewise.
4841 (handle_extended_wait): Likewise.
4842 (add_lwp): Likewise.
4843 (enqueue_one_deferred_signal): Likewise.
4844 (enqueue_pending_signal): Likewise.
4845 (linux_resume_one_lwp_throw): Likewise.
4846 (linux_resume_one_thread): Likewise.
4847 (linux_read_memory): Likewise.
4848 (linux_write_memory): Likewise.
4849 * linux-mips-low.c (mips_linux_new_process): Likewise.
4850 (mips_linux_new_thread): Likewise.
4851 (mips_add_watchpoint): Likewise.
4852 * linux-x86-low.c (initialize_low_arch): Likewise.
4853 * lynx-low.c (lynx_add_process): Likewise.
4854 * mem-break.c (set_raw_breakpoint_at): Likewise.
4855 (set_breakpoint): Likewise.
4856 (add_condition_to_breakpoint): Likewise.
4857 (add_commands_to_breakpoint): Likewise.
4858 (clone_agent_expr): Likewise.
4859 (clone_one_breakpoint): Likewise.
4860 * regcache.c (new_register_cache): Likewise.
4861 * remote-utils.c (look_up_one_symbol): Likewise.
4862 * server.c (queue_stop_reply): Likewise.
4863 (start_inferior): Likewise.
4864 (queue_stop_reply_callback): Likewise.
4865 (handle_target_event): Likewise.
4866 * spu-low.c (fetch_ppc_memory): Likewise.
4867 (store_ppc_memory): Likewise.
4868 * target.c (set_target_ops): Likewise.
4869 * thread-db.c (thread_db_load_search): Likewise.
4870 (try_thread_db_load_1): Likewise.
4871 * tracepoint.c (add_tracepoint): Likewise.
4872 (add_tracepoint_action): Likewise.
4873 (create_trace_state_variable): Likewise.
4874 (cmd_qtdpsrc): Likewise.
4875 (cmd_qtro): Likewise.
4876 (add_while_stepping_state): Likewise.
4877 * win32-low.c (child_add_thread): Likewise.
4878 (get_image_name): Likewise.
4879
4880 2015-08-25 Yao Qi <yao.qi@linaro.org>
4881
4882 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
4883
4884 2015-08-25 Yao Qi <yao.qi@linaro.org>
4885
4886 * Makefile.in (aarch64-linux.o): New rule.
4887 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
4888 srv_tgtobj.
4889 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
4890 (aarch64_init_debug_reg_state): Make it extern.
4891 (aarch64_linux_prepare_to_resume): Remove.
4892
4893 2015-08-25 Yao Qi <yao.qi@linaro.org>
4894
4895 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
4896 lwp_arch_private_info and ptid_of_lwp.
4897
4898 2015-08-25 Yao Qi <yao.qi@linaro.org>
4899
4900 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
4901 Find proc_info by find_process_pid. All callers updated.
4902
4903 2015-08-25 Yao Qi <yao.qi@linaro.org>
4904
4905 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
4906 Remove.
4907 (debug_reg_change_callback): Remove.
4908 (aarch64_notify_debug_reg_change): Remove.
4909
4910 2015-08-25 Yao Qi <yao.qi@linaro.org>
4911
4912 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
4913 Call current_lwp_ptid.
4914
4915 2015-08-25 Yao Qi <yao.qi@linaro.org>
4916
4917 * linux-aarch64-low.c (debug_reg_change_callback): Use
4918 debug_printf.
4919
4920 2015-08-25 Yao Qi <yao.qi@linaro.org>
4921
4922 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
4923
4924 2015-08-25 Yao Qi <yao.qi@linaro.org>
4925
4926 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
4927
4928 2015-08-25 Yao Qi <yao.qi@linaro.org>
4929
4930 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
4931 the code.
4932
4933 2015-08-25 Yao Qi <yao.qi@linaro.org>
4934
4935 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
4936 Remove.
4937 (debug_reg_change_callback): Remove argument entry and add argument
4938 lwp. Remove local variable thread. Don't print thread id in the
4939 debugging output. Don't check whether pid of thread equals to pid.
4940 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
4941 iterate_over_lwps instead find_inferior.
4942
4943 2015-08-24 Pedro Alves <palves@redhat.com>
4944
4945 * inferiors.c (get_first_process): New function.
4946 * inferiors.h (get_first_process): New declaration.
4947 * remote-utils.c (read_ptid): Default to the first process in the
4948 list, instead of to the current thread's process.
4949
4950 2015-08-24 Pedro Alves <palves@redhat.com>
4951
4952 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
4953 * event-loop.c: Likewise.
4954 * remote-utils.c: Likewise.
4955 * tracepoint.c: Likewise.
4956
4957 2015-08-24 Pedro Alves <palves@redhat.com>
4958
4959 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
4960 ptid_get_lwp.
4961
4962 2015-08-21 Pedro Alves <palves@redhat.com>
4963
4964 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
4965 instead of literal 1.
4966
4967 2015-08-21 Pedro Alves <palves@redhat.com>
4968
4969 * tdesc.c (default_description): Explicitly zero-initialize.
4970
4971 2015-08-21 Pedro Alves <palves@redhat.com>
4972
4973 PR gdb/18749
4974 * inferiors.c (remove_thread): Discard any pending stop reply for
4975 this thread.
4976 * server.c (remove_all_on_match_pid): Rename to ...
4977 (remove_all_on_match_ptid): ... this. Work with a filter ptid
4978 instead of a pid.
4979 (discard_queued_stop_replies): Change parameter to a ptid. Now
4980 extern.
4981 (handle_v_kill, kill_inferior_callback, captured_main)
4982 (process_serial_event): Adjust.
4983 * server.h (discard_queued_stop_replies): Declare.
4984
4985 2015-08-21 Pedro Alves <palves@redhat.com>
4986
4987 * linux-low.c (wait_for_sigstop): Always switch to no thread
4988 selected if the previously current thread dies.
4989 * lynx-low.c (lynx_request_interrupt): Use the first thread's
4990 process instead of the current thread's.
4991 * remote-utils.c (input_interrupt): Don't check if there's no
4992 current thread.
4993 * server.c (gdb_read_memory, gdb_write_memory): If setting the
4994 current thread to the general thread fails, error out.
4995 (handle_qxfer_auxv, handle_qxfer_libraries)
4996 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
4997 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
4998 (handle_query): Check if there's a thread selected instead of
4999 checking whether there's any thread in the thread list.
5000 (handle_qxfer_threads, handle_qxfer_btrace)
5001 (handle_qxfer_btrace_conf): Don't error out early if there's no
5002 thread in the thread list.
5003 (handle_v_cont, myresume): Don't set the current thread to the
5004 continue thread.
5005 (process_serial_event) <Hg handling>: Also set thread_id if the
5006 previous general thread is still alive.
5007 (process_serial_event) <g/G handling>: If setting the current
5008 thread to the general thread fails, error out.
5009 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
5010 thread's lwp instead of the current thread's.
5011 * target.c (set_desired_thread): If the desired thread was not
5012 found, leave the current thread pointing to NULL. Return an int
5013 (boolean) indicating success.
5014 * target.h (set_desired_thread): Change return type to int.
5015
5016 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
5017
5018 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
5019 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
5020 #includes.
5021 (ps_get_thread_area): New function.
5022
5023 2015-08-19 Gary Benson <gbenson@redhat.com>
5024
5025 * hostio.c (handle_pread): Do not attempt to read more data
5026 than hostio_reply_with_data can fit in a packet.
5027
5028 2015-08-18 Joel Brobecker <brobecker@adacore.com>
5029
5030 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
5031
5032 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
5033
5034 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
5035
5036 2015-08-06 Pedro Alves <palves@redhat.com>
5037
5038 * tracepoint.c (expr_eval_result): Now an int.
5039
5040 2015-08-06 Pedro Alves <palves@redhat.com>
5041
5042 * gdbthread.h (struct regcache): Forward declare.
5043 (struct thread_info) <regcache_data>: Now a struct regcache
5044 pointer.
5045 * inferiors.c (inferior_regcache_data)
5046 (set_inferior_regcache_data): Now work with struct regcache
5047 pointers.
5048 * inferiors.h (struct regcache): Forward declare.
5049 (inferior_regcache_data, set_inferior_regcache_data): Now work
5050 with struct regcache pointers.
5051 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
5052 (free_register_cache_thread): Remove struct regcache pointer
5053 casts.
5054
5055 2015-08-06 Pedro Alves <palves@redhat.com>
5056
5057 * server.c (captured_main): On error, print the exception message
5058 to stderr, and if run_once is set, throw a quit.
5059
5060 2015-08-06 Pedro Alves <palves@redhat.com>
5061
5062 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
5063 the current thread.
5064
5065 2015-08-06 Pedro Alves <palves@redhat.com>
5066
5067 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
5068 reading beyond the passed in buffer length.
5069
5070 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5071
5072 * tracepoint.c (symbol_list) <required>: Remove.
5073
5074 2015-08-06 Pedro Alves <palves@redhat.com>
5075
5076 * linux-low.c (handle_extended_wait): Set the fork child's suspend
5077 count if stopping and suspending threads.
5078 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
5079 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
5080 (linux_detach): Complete an ongoing step-over.
5081 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
5082 throughout.
5083 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
5084 (linux_wait_1): If passing a signal to the inferior after
5085 finishing a step-over, unsuspend and re-resume all lwps. If we
5086 see a single-step event but the thread should be continuing, don't
5087 pass the trap to gdb.
5088 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
5089 internal_error instead of gdb_assert.
5090 (enqueue_pending_signal): New function.
5091 (check_ptrace_stopped_lwp_gone): Add debug output.
5092 (start_step_over): Use internal_error instead of gdb_assert.
5093 (complete_ongoing_step_over): New function.
5094 (linux_resume_one_thread): Don't resume a suspended thread.
5095 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
5096 it stepping.
5097
5098 2015-08-06 Pedro Alves <palves@redhat.com>
5099
5100 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
5101 (linux_thread_alive): Use lwp_is_marked_dead.
5102 (extended_event_reported): Delete.
5103 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
5104 instead of extended_event_reported.
5105 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
5106 as well.
5107 (lwp_is_marked_dead): New function.
5108 (lwp_running): Use lwp_is_marked_dead.
5109 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
5110 comment.
5111
5112 2015-08-06 Pedro Alves <palves@redhat.com>
5113
5114 * linux-low.c (linux_wait_1): Move fork event output out of the
5115 !report_to_gdb check. Pass event_child->waitstatus to
5116 target_waitstatus_to_string instead of ourstatus.
5117
5118 2015-08-04 Yao Qi <yao.qi@linaro.org>
5119
5120 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
5121 if current_thread is 32 bit.
5122
5123 2015-08-04 Yao Qi <yao.qi@linaro.org>
5124
5125 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
5126 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
5127 * server.c (extended_protocol): Remove "static".
5128 * server.h (extended_protocol): Declare it.
5129
5130 2015-08-04 Yao Qi <yao.qi@linaro.org>
5131
5132 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
5133 both aarch64 and aarch32.
5134 (aarch64_set_pc): Likewise.
5135
5136 2015-08-04 Yao Qi <yao.qi@linaro.org>
5137
5138 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
5139 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
5140 arm-with-neon.xml to srv_xmlfiles.
5141 * linux-aarch64-low.c: Include linux-aarch32-low.h.
5142 (is_64bit_tdesc): New function.
5143 (aarch64_linux_read_description): New function.
5144 (aarch64_arch_setup): Call aarch64_linux_read_description.
5145 (regs_info): Rename to regs_info_aarch64.
5146 (aarch64_regs_info): Return right regs_info.
5147 (initialize_low_arch): Call initialize_low_arch_aarch32.
5148
5149 2015-08-04 Yao Qi <yao.qi@linaro.org>
5150
5151 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
5152 * linux-aarch32-low.c: New file.
5153 * linux-aarch32-low.h: New file.
5154 * linux-arm-low.c (arm_fill_gregset): Move it to
5155 linux-aarch32-low.c.
5156 (arm_store_gregset): Likewise.
5157 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
5158 (arm_store_vfpregset): Call arm_store_vfpregset_num.
5159 (arm_arch_setup): Check if PTRACE_GETREGSET works.
5160 (regs_info): Rename to regs_info_arm.
5161 (arm_regs_info): Return regs_info_aarch32 if
5162 have_ptrace_getregset is 1 and target description is
5163 arm_with_neon or arm_with_vfpv3.
5164 (initialize_low_arch): Don't call init_registers_arm_with_neon.
5165 Call initialize_low_arch_aarch32 instead.
5166
5167 2015-08-04 Yao Qi <yao.qi@linaro.org>
5168
5169 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
5170 * linux-low.c: ... here.
5171 * linux-low.h (have_ptrace_getregset): Declare it.
5172
5173 2015-08-04 Pedro Alves <palves@redhat.com>
5174
5175 * thread-db.c (struct thread_db): Use new typedefs.
5176 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
5177 CHK calls.
5178 (disable_thread_event_reporting): Cast result of dlsym to
5179 destination function pointer type.
5180 (thread_db_mourn): Use td_ta_delete_ftype.
5181
5182 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5183
5184 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
5185 arch variant.
5186 (CDX_BREAKPOINT): Define for R2.
5187 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
5188 (the_low_target): Add comments.
5189
5190 2015-07-30 Yao Qi <yao.qi@linaro.org>
5191
5192 * linux-arm-low.c (arm_hwcap): Remove it.
5193 (arm_read_description): New local variable arm_hwcap. Don't
5194 set arm_hwcap to zero.
5195
5196 2015-07-30 Yao Qi <yao.qi@linaro.org>
5197
5198 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
5199 Use regcache->tdesc instead.
5200 (arm_store_wmmxregset): Likewise.
5201 (arm_fill_vfpregset): Likewise.
5202 (arm_store_vfpregset): Likewise.
5203
5204 2015-07-30 Yao Qi <yao.qi@linaro.org>
5205
5206 * linux-arm-low.c: Include arch/arm.h.
5207 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
5208 (arm_store_gregset): Likewise.
5209
5210 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5211
5212 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
5213 ptrace's 4th parameter.
5214
5215 2015-07-27 Yao Qi <yao.qi@linaro.org>
5216
5217 * configure.srv (case aarch64*-*-linux*): Don't set
5218 srv_linux_usrregs.
5219
5220 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
5221
5222 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
5223 sys/ptrace.h.
5224 * linux-arm-low.c: Likewise.
5225 * linux-cris-low.c: Likewise.
5226 * linux-crisv32-low.c: Likewise.
5227 * linux-low.c: Likewise.
5228 * linux-m68k-low.c: Likewise.
5229 * linux-mips-low.c: Likewise.
5230 * linux-nios2-low.c: Likewise.
5231 * linux-s390-low.c: Likewise.
5232 * linux-sparc-low.c: Likewise.
5233 * linux-tic6x-low.c: Likewise.
5234 * linux-tile-low.c: Likewise.
5235 * linux-x86-low.c: Likewise.
5236
5237 2015-07-24 Pedro Alves <palves@redhat.com>
5238
5239 * config.in: Regenerate.
5240 * configure: Regenerate.
5241
5242 2015-07-24 Pedro Alves <palves@redhat.com>
5243
5244 * acinclude.m4: Include ../ptrace.m4.
5245 * configure.ac: Call GDB_AC_PTRACE.
5246 * config.in, configure: Regenerate.
5247
5248 2015-07-24 Yao Qi <yao.qi@linaro.org>
5249
5250 * linux-low.c (linux_create_inferior): Remove setting to
5251 proc->priv->new_inferior.
5252 (linux_attach): Likewise.
5253 (linux_low_filter_event): Likewise.
5254 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
5255
5256 2015-07-24 Yao Qi <yao.qi@linaro.org>
5257
5258 * linux-low.c (linux_arch_setup): New function.
5259 (linux_low_filter_event): If proc->tdesc is NULL and
5260 proc->attached is true, call the_low_target.arch_setup.
5261 Otherwise, keep status pending, and return.
5262 (linux_resume_one_lwp_throw): Don't call get_pc if
5263 thread->while_stepping isn't NULL. Don't call
5264 get_thread_regcache if proc->tdesc is NULL.
5265 (need_step_over_p): Return 0 if proc->tdesc is NULL.
5266 (linux_target_ops): Install arch_setup.
5267 * server.c (start_inferior): Call the_target->arch_setup.
5268 * target.h (struct target_ops) <arch_setup>: New field.
5269 (target_arch_setup): New marco.
5270 * lynx-low.c (lynx_target_ops): Update.
5271 * nto-low.c (nto_target_ops): Update.
5272 * spu-low.c (spu_target_ops): Update.
5273 * win32-low.c (win32_target_ops): Update.
5274
5275 2015-07-24 Yao Qi <yao.qi@linaro.org>
5276
5277 * linux-low.c (linux_add_process): Don't set
5278 proc->priv->new_inferior.
5279 (linux_create_inferior): Set proc->priv->new_inferior to 1.
5280 (linux_attach): Likewise.
5281
5282 2015-07-24 Yao Qi <yao.qi@linaro.org>
5283
5284 * server.c (start_inferior): Code refactor.
5285
5286 2015-07-24 Yao Qi <yao.qi@linaro.org>
5287
5288 * server.c (process_serial_event): Set general_thread.
5289
5290 2015-07-21 Yao Qi <yao.qi@linaro.org>
5291
5292 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
5293 aarch64_linux_get_debug_reg_capacity.
5294
5295 2015-07-17 Yao Qi <yao.qi@linaro.org>
5296
5297 * Makefile.in (aarch64-linux-hw-point.o): New rule.
5298 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
5299 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
5300 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5301 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5302 (AARCH64_HWP_ALIGNMENT): Likewise.
5303 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5304 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5305 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5306 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5307 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5308 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5309 (struct aarch64_debug_reg_state): Likewise.
5310 (struct arch_lwp_info): Likewise.
5311 (aarch64_align_watchpoint): Likewise.
5312 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5313 (aarch64_watchpoint_length): Likewise.
5314 (aarch64_point_encode_ctrl_reg): Likewise
5315 (aarch64_point_is_aligned): Likewise.
5316 (aarch64_align_watchpoint): Likewise.
5317 (aarch64_linux_set_debug_regs):
5318 (aarch64_dr_state_insert_one_point): Likewise.
5319 (aarch64_dr_state_remove_one_point): Likewise.
5320 (aarch64_handle_breakpoint): Likewise.
5321 (aarch64_handle_aligned_watchpoint): Likewise.
5322 (aarch64_handle_unaligned_watchpoint): Likewise.
5323 (aarch64_handle_watchpoint): Likewise.
5324
5325 2015-07-17 Yao Qi <yao.qi@linaro.org>
5326
5327 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
5328 and don't aarch64_get_debug_reg_state. All callers update.
5329 (aarch64_handle_aligned_watchpoint): Likewise.
5330 (aarch64_handle_unaligned_watchpoint): Likewise.
5331 (aarch64_handle_watchpoint): Likewise.
5332 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
5333 (aarch64_remove_point): Likewise.
5334
5335 2015-07-17 Yao Qi <yao.qi@linaro.org>
5336
5337 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
5338 debug_printf.
5339 (aarch64_handle_unaligned_watchpoint): Likewise.
5340
5341 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5342
5343 Revert the previous 3 commits:
5344 Move gdb_regex* to common/
5345 Move linux_find_memory_regions_full & co.
5346 gdbserver build-id attribute generator
5347
5348 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5349 Jan Kratochvil <jan.kratochvil@redhat.com>
5350
5351 gdbserver build-id attribute generator.
5352 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
5353 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
5354 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
5355 (find_phdr): New.
5356 (get_dynamic): Use find_pdhr to traverse program headers.
5357 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
5358 (compare_mapping_entry_range, struct find_memory_region_callback_data)
5359 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
5360 (get_hex_build_id): New.
5361 (linux_qxfer_libraries_svr4): Add optional build-id attribute
5362 to reply XML document.
5363
5364 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5365 Jan Kratochvil <jan.kratochvil@redhat.com>
5366
5367 * target.c: Include target/target-utils.h and fcntl.h.
5368 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
5369 (target_fileio_read_stralloc): New functions.
5370
5371 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5372
5373 * Makefile.in (OBS): Add gdb_regex.o.
5374 (gdb_regex.o): New.
5375 * config.in: Rebuilt.
5376 * configure: Rebuilt.
5377
5378 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5379 Jan Kratochvil <jan.kratochvil@redhat.com>
5380
5381 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5382 * Makefile.in (OBS): Add target-utils.o.
5383 (linux-maps.o, target-utils.o): New.
5384 * configure.srv (srv_linux_obj): Add linux-maps.o.
5385
5386 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
5387
5388 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
5389 function, return 1.
5390 (the_low_target): Install it.
5391
5392 2015-07-14 Pedro Alves <palves@redhat.com>
5393
5394 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
5395 Instead, ignore ECHILD, and throw an error for other errnos.
5396
5397 2015-07-10 Pedro Alves <palves@redhat.com>
5398
5399 * event-loop.c (struct callback_event) <data>: Change type to
5400 gdb_client_data instance instead of gdb_client_data pointer.
5401 (append_callback_event): Adjust.
5402
5403 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
5404
5405 * linux-aarch64-low.c: Add comments for each linux_target_ops
5406 method. Remove comments already covered in target_ops and
5407 linux_target_ops definitions.
5408 (the_low_target): Add comments for each unimplemented method.
5409
5410 2015-07-09 Yao Qi <yao.qi@linaro.org>
5411
5412 * linux-aarch64-low.c (aarch64_regmap): Remove.
5413 (aarch64_usrregs_info): Remove.
5414 (regs_info): Set field usrregs to NULL.
5415
5416 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
5417
5418 * linux-low.c: Include "rsp-low.h"
5419 (linux_low_encode_pt_config, linux_low_encode_raw): New.
5420 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
5421 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
5422 (handle_btrace_enable_pt): New.
5423 (handle_btrace_general_set): Support "pt".
5424 (handle_btrace_conf_general_set): Support "pt:size".
5425
5426 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
5427
5428 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
5429 Z_PACKET_SW_BP.
5430
5431 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
5432
5433 * linux-aarch64-low.c: Remove comment about endianness.
5434 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
5435 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
5436 memcmp.
5437
5438 2015-06-24 Gary Benson <gbenson@redhat.com>
5439
5440 * linux-i386-ipa.c (stdint.h): Do not include.
5441 * lynx-i386-low.c (stdint.h): Likewise.
5442 * lynx-ppc-low.c (stdint.h): Likewise.
5443 * mem-break.c (stdint.h): Likewise.
5444 * thread-db.c (stdint.h): Likewise.
5445 * tracepoint.c (stdint.h): Likewise.
5446 * win32-low.c (stdint.h): Likewise.
5447
5448 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
5449
5450 * server.c (write_qxfer_response): Update call to
5451 remote_escape_output.
5452
5453 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
5454 Jan Kratochvil <jan.kratochvil@redhat.com>
5455
5456 Merge multiple hex conversions.
5457 * gdbreplay.c (tohex): Rename to 'fromhex'.
5458 (logchar): Use fromhex.
5459
5460 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5461
5462 * server.c (handle_qxfer_libraries): Set `version' attribute for
5463 <library-list>.
5464
5465 2015-06-10 Gary Benson <gbenson@redhat.com>
5466
5467 * target.h (struct target_ops) <multifs_open>: New field.
5468 <multifs_unlink>: Likewise.
5469 <multifs_readlink>: Likewise.
5470 * linux-low.c (nat/linux-namespaces.h): New include.
5471 (linux_target_ops): Initialize the_target->multifs_open,
5472 the_target->multifs_unlink and the_target->multifs_readlink.
5473 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
5474 * hostio.c (hostio_fs_pid): New static variable.
5475 (hostio_handle_new_gdb_connection): New function.
5476 (handle_setfs): Likewise.
5477 (handle_open): Use the_target->multifs_open as appropriate.
5478 (handle_unlink): Use the_target->multifs_unlink as appropriate.
5479 (handle_readlink): Use the_target->multifs_readlink as
5480 appropriate.
5481 (handle_vFile): Handle vFile:setfs packets.
5482 * server.c (handle_query): Call hostio_handle_new_gdb_connection
5483 after target_handle_new_gdb_connection.
5484
5485 2015-06-10 Gary Benson <gbenson@redhat.com>
5486
5487 * configure.ac (AC_CHECK_FUNCS): Add setns.
5488 * config.in: Regenerate.
5489 * configure: Likewise.
5490 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
5491 (linux-namespaces.o): New rule.
5492 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
5493
5494 2015-06-09 Gary Benson <gbenson@redhat.com>
5495
5496 * hostio.c (handle_open): Process mode argument with
5497 fileio_to_host_mode.
5498
5499 2015-06-01 Yao Qi <yao.qi@linaro.org>
5500
5501 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
5502 * linux-x86-low.c: Likewise.
5503
5504 2015-05-28 Don Breazeal <donb@codesourcery.com>
5505
5506 * linux-low.c (handle_extended_wait): Initialize
5507 thread_info.last_resume_kind for new fork children.
5508
5509 2015-05-15 Pedro Alves <palves@redhat.com>
5510
5511 * target.h (target_handle_new_gdb_connection): Rewrite using if
5512 wrapped in do/while.
5513
5514 2015-05-14 Joel Brobecker <brobecker@adacore.com>
5515
5516 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
5517 * configure, config.in: Regenerate.
5518 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
5519 Declare typedef.
5520
5521 2015-05-12 Don Breazeal <donb@codesourcery.com>
5522
5523 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
5524 PTRACE_EVENT_VFORK_DONE.
5525 (linux_low_ptrace_options, extended_event_reported): Add vfork
5526 events.
5527 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
5528 and "vforkdone" for RSP 'T' Stop Reply Packet.
5529 * server.h (report_vfork_events): Declare
5530 global variable.
5531
5532 2015-05-12 Don Breazeal <donb@codesourcery.com>
5533
5534 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
5535 (the_low_target) <new_fork>: Initialize new member.
5536 * linux-arm-low.c (arm_new_fork): New function.
5537 (the_low_target) <new_fork>: Initialize new member.
5538 * linux-low.c (handle_extended_wait): Call new target function
5539 new_fork.
5540 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
5541 * linux-mips-low.c (mips_add_watchpoint): New function
5542 extracted from mips_insert_point.
5543 (the_low_target) <new_fork>: Initialize new member.
5544 (mips_linux_new_fork): New function.
5545 (mips_insert_point): Call mips_add_watchpoint.
5546 * linux-x86-low.c (x86_linux_new_fork): New function.
5547 (the_low_target) <new_fork>: Initialize new member.
5548
5549 2015-05-12 Don Breazeal <donb@codesourcery.com>
5550
5551 * linux-low.c (handle_extended_wait): Implement return value,
5552 rename argument 'event_child' to 'event_lwp', handle
5553 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
5554 (linux_low_ptrace_options): New function.
5555 (linux_low_filter_event): Call linux_low_ptrace_options,
5556 use different argument fo linux_enable_event_reporting,
5557 use return value from handle_extended_wait.
5558 (extended_event_reported): New function.
5559 (linux_wait_1): Call extended_event_reported and set
5560 status to report fork events.
5561 (linux_write_memory): Add pid to debug message.
5562 (reset_lwp_ptrace_options_callback): New function.
5563 (linux_handle_new_gdb_connection): New function.
5564 (linux_target_ops): Initialize new structure member.
5565 * linux-low.h (struct lwp_info) <waitstatus>: New member.
5566 * lynx-low.c: Initialize new structure member.
5567 * remote-utils.c (prepare_resume_reply): Implement stop reason
5568 "fork" for "T" stop message.
5569 * server.c (handle_query): Call handle_new_gdb_connection.
5570 * server.h (report_fork_events): Declare global flag.
5571 * target.h (struct target_ops) <handle_new_gdb_connection>:
5572 New member.
5573 (target_handle_new_gdb_connection): New macro.
5574 * win32-low.c: Initialize new structure member.
5575
5576 2015-05-12 Don Breazeal <donb@codesourcery.com>
5577
5578 * mem-break.c (APPEND_TO_LIST): Define macro.
5579 (clone_agent_expr): New function.
5580 (clone_one_breakpoint): New function.
5581 (clone_all_breakpoints): New function.
5582 * mem-break.h: Declare new functions.
5583
5584 2015-05-12 Don Breazeal <donb@codesourcery.com>
5585
5586 * linux-low.c (linux_supports_fork_events): New function.
5587 (linux_supports_vfork_events): New function.
5588 (linux_target_ops): Initialize new structure members.
5589 (initialize_low): Call linux_check_ptrace_features.
5590 * lynx-low.c (lynx_target_ops): Initialize new structure
5591 members.
5592 * server.c (report_fork_events, report_vfork_events):
5593 New global flags.
5594 (handle_query): Add new features to qSupported packet and
5595 response.
5596 (captured_main): Initialize new global variables.
5597 * target.h (struct target_ops) <supports_fork_events>:
5598 New member.
5599 <supports_vfork_events>: New member.
5600 (target_supports_fork_events): New macro.
5601 (target_supports_vfork_events): New macro.
5602 * win32-low.c (win32_target_ops): Initialize new structure
5603 members.
5604
5605 2015-05-12 Gary Benson <gbenson@redhat.com>
5606
5607 * server.c (handle_qxfer_exec_file): Use current process
5608 if annex is empty.
5609
5610 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
5611
5612 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
5613 Remove HAVE_PTRACE_GETREGS conditionals.
5614 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
5615 instead of PTRACE_GETREGS and PTRACE_SETREGS.
5616
5617 2015-05-08 Yao Qi <yao.qi@linaro.org>
5618
5619 * linux-low.c (linux_supports_conditional_breakpoints): New
5620 function.
5621 (linux_target_ops): Install new target method.
5622 * lynx-low.c (lynx_target_ops): Install NULL hook for
5623 supports_conditional_breakpoints.
5624 * nto-low.c (nto_target_ops): Likewise.
5625 * spu-low.c (spu_target_ops): Likewise.
5626 * win32-low.c (win32_target_ops): Likewise.
5627 * server.c (handle_query): Check
5628 target_supports_conditional_breakpoints.
5629 * target.h (struct target_ops) <supports_conditional_breakpoints>:
5630 New field.
5631 (target_supports_conditional_breakpoints): New macro.
5632
5633 2015-05-06 Pedro Alves <palves@redhat.com>
5634
5635 PR server/18081
5636 * server.c (start_inferior): If the process exits, mourn it.
5637
5638 2015-04-21 Gary Benson <gbenson@redhat.com>
5639
5640 * hostio.c (fileio_open_flags_to_host): Factored out to
5641 fileio_to_host_openflags in common/fileio.c. Single use
5642 updated.
5643
5644 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
5645
5646 * linux-xtensa-low.c (xtensa_fill_gregset)
5647 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
5648 XCHAL_HAVE_LOOP.
5649
5650 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
5651
5652 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
5653 (regs_info): Replace usrregs pointer with NULL.
5654
5655 2015-04-17 Gary Benson <gbenson@redhat.com>
5656
5657 * target.h (struct target_ops) <pid_to_exec_file>: New field.
5658 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
5659 * server.c (handle_qxfer_exec_file): New function.
5660 (qxfer_packets): Add exec-file entry.
5661 (handle_query): Report qXfer:exec-file:read as supported packet.
5662
5663 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
5664
5665 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
5666
5667 2015-04-09 Gary Benson <gbenson@redhat.com>
5668
5669 * hostio-errno.c (errno_to_fileio_error): Remove function.
5670 Update caller to use remote_fileio_to_fio_error.
5671
5672 2015-04-09 Yao Qi <yao.qi@linaro.org>
5673
5674 * linux-low.c (linux_insert_point): Call
5675 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
5676 (linux_remove_point): Call remove_memory_breakpoint if type is
5677 raw_bkpt_type_sw.
5678 * linux-x86-low.c (x86_insert_point): Don't call
5679 insert_memory_breakpoint.
5680 (x86_remove_point): Don't call remove_memory_breakpoint.
5681
5682 2015-04-01 Pedro Alves <palves@redhat.com>
5683 Cleber Rosa <crosa@redhat.com>
5684
5685 * server.c (gdbserver_usage): Reorganize and extend the usage
5686 message.
5687
5688 2015-03-24 Pedro Alves <palves@redhat.com>
5689
5690 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
5691 output. Also dump TRAP_TRACE.
5692 (linux_low_filter_event): In debug output, distinguish a
5693 resume_stop SIGSTOP from a delayed SIGSTOP.
5694
5695 2015-03-24 Gary Benson <gbenson@redhat.com>
5696
5697 * linux-x86-low.c (x86_linux_new_thread): Moved to
5698 nat/x86-linux.c.
5699 (x86_linux_prepare_to_resume): Likewise.
5700
5701 2015-03-24 Gary Benson <gbenson@redhat.com>
5702
5703 * Makefile.in (x86-linux-dregs.o): New rule.
5704 * configure.srv: Add x86-linux-dregs.o to relevant targets.
5705 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
5706 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
5707 (x86_linux_dr_get): Likewise.
5708 (x86_linux_dr_set): Likewise.
5709 (update_debug_registers_callback): Likewise.
5710 (x86_linux_dr_set_addr): Likewise.
5711 (x86_linux_dr_get_addr): Likewise.
5712 (x86_linux_dr_set_control): Likewise.
5713 (x86_linux_dr_get_control): Likewise.
5714 (x86_linux_dr_get_status): Likewise.
5715 (x86_linux_update_debug_registers): Likewise.
5716
5717 2015-03-24 Gary Benson <gbenson@redhat.com>
5718
5719 * linux-x86-low.c (x86_linux_update_debug_registers):
5720 New function, factored out from...
5721 (x86_linux_prepare_to_resume): ...this.
5722
5723 2015-03-24 Gary Benson <gbenson@redhat.com>
5724
5725 * linux-x86-low.c (x86_linux_dr_get): Update comments.
5726 (x86_linux_dr_set): Likewise.
5727 (update_debug_registers_callback): Likewise.
5728 (x86_linux_dr_set_addr): Likewise.
5729 (x86_linux_dr_get_addr): Likewise.
5730 (x86_linux_dr_set_control): Likewise.
5731 (x86_linux_dr_get_control): Likewise.
5732 (x86_linux_dr_get_status): Likewise.
5733 (x86_linux_prepare_to_resume): Likewise.
5734
5735 2015-03-24 Gary Benson <gbenson@redhat.com>
5736
5737 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
5738 Use perror_with_name. Pass string through gettext.
5739 (x86_linux_dr_set): Likewise.
5740
5741 2015-03-24 Gary Benson <gbenson@redhat.com>
5742
5743 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
5744 (x86_linux_dr_set_addr): ...this.
5745 (x86_dr_low_get_addr): Rename to...
5746 (x86_linux_dr_get_addr): ...this.
5747 (x86_dr_low_set_control): Rename to...
5748 (x86_linux_dr_set_control): ...this.
5749 (x86_dr_low_get_control): Rename to...
5750 (x86_linux_dr_get_control): ...this.
5751 (x86_dr_low_get_status): Rename to...
5752 (x86_linux_dr_get_status): ...this.
5753 (x86_dr_low): Update with new function names.
5754
5755 2015-03-24 Gary Benson <gbenson@redhat.com>
5756
5757 * Makefile.in (x86-linux.o): New rule.
5758 * configure.srv: Add x86-linux.o to relevant targets.
5759 * linux-low.c (lwp_set_arch_private_info): New function.
5760 (lwp_arch_private_info): Likewise.
5761 * linux-x86-low.c: Include nat/x86-linux.h.
5762 (arch_lwp_info): Removed structure.
5763 (update_debug_registers_callback):
5764 Use lwp_set_debug_registers_changed.
5765 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
5766 and lwp_set_debug_registers_changed.
5767 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
5768
5769 2015-03-24 Gary Benson <gbenson@redhat.com>
5770
5771 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
5772 * linux-arm-low.c (arm_new_thread): Likewise.
5773 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
5774 * linux-mips-low.c (mips_linux_new_thread): Likewise.
5775 * linux-x86-low.c (x86_linux_new_thread): Likewise.
5776 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
5777
5778 2015-03-24 Gary Benson <gbenson@redhat.com>
5779
5780 * linux-low.c (ptid_of_lwp): New function.
5781 (lwp_is_stopped): Likewise.
5782 (lwp_stop_reason): Likewise.
5783 * linux-x86-low.c (update_debug_registers_callback):
5784 Use lwp_is_stopped.
5785 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
5786 lwp_stop_reason.
5787
5788 2015-03-24 Gary Benson <gbenson@redhat.com>
5789
5790 * linux-low.h (linux_stop_lwp): Remove declaration.
5791
5792 2015-03-24 Gary Benson <gbenson@redhat.com>
5793
5794 * linux-low.h: Include nat/linux-nat.h.
5795 * linux-low.c (iterate_over_lwps_args): New structure.
5796 (iterate_over_lwps_filter): New function.
5797 (iterate_over_lwps): Likewise.
5798 * linux-x86-low.c (update_debug_registers_callback):
5799 Update signature to what iterate_over_lwps expects.
5800 Remove PID check that iterate_over_lwps now performs.
5801 (x86_dr_low_set_addr): Use iterate_over_lwps.
5802 (x86_dr_low_set_control): Likewise.
5803
5804 2015-03-24 Gary Benson <gbenson@redhat.com>
5805
5806 * linux-x86-low.c (x86_debug_reg_state): New function.
5807 (x86_linux_prepare_to_resume): Use the above.
5808
5809 2015-03-24 Gary Benson <gbenson@redhat.com>
5810
5811 * linux-low.c (current_lwp_ptid): New function.
5812 * linux-x86-low.c: Include nat/linux-nat.h.
5813 (x86_dr_low_get_addr): Use current_lwp_ptid.
5814 (x86_dr_low_get_control): Likewise.
5815 (x86_dr_low_get_status): Likewise.
5816
5817 2015-03-20 Pedro Alves <palves@redhat.com>
5818
5819 * tracepoint.c (cmd_qtstatus): Make "str" const.
5820
5821 2015-03-20 Pedro Alves <palves@redhat.com>
5822
5823 * server.c (handle_general_set): Make "req_str" const.
5824
5825 2015-03-19 Pedro Alves <palves@redhat.com>
5826
5827 * linux-low.c (linux_resume_one_lwp): Rename to ...
5828 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
5829 instead call perror_with_name.
5830 (check_ptrace_stopped_lwp_gone): New function.
5831 (linux_resume_one_lwp): Reimplement as wrapper around
5832 linux_resume_one_lwp_throw that swallows errors if the LWP is
5833 gone.
5834
5835 2015-03-19 Pedro Alves <palves@redhat.com>
5836
5837 * linux-low.c (count_events_callback, select_event_lwp_callback):
5838 No longer check whether the thread has resume_stop as last resume
5839 kind.
5840
5841 2015-03-19 Pedro Alves <palves@redhat.com>
5842
5843 * linux-low.c (count_events_callback, select_event_lwp_callback):
5844 Use the lwp's status_pending_p field, not the thread's.
5845
5846 2015-03-19 Pedro Alves <palves@redhat.com>
5847
5848 * linux-low.c (select_event_lwp_callback): Update comments to
5849 no longer mention SIGTRAP.
5850
5851 2015-03-18 Gary Benson <gbenson@redhat.com>
5852
5853 * server.c (handle_query): Do not report vFile:fstat as supported.
5854
5855 2015-03-11 Gary Benson <gbenson@redhat.com>
5856
5857 * hostio.c (sys/types.h): New include.
5858 (sys/stat.h): Likewise.
5859 (common-remote-fileio.h): Likewise.
5860 (handle_fstat): New function.
5861 (handle_vFile): Handle vFile:fstat packets.
5862
5863 2015-03-11 Gary Benson <gbenson@redhat.com>
5864
5865 * configure.ac (AC_CHECK_MEMBERS): Add checks for
5866 struct stat.st_blocks and struct stat.st_blksize.
5867 * configure: Regenerate.
5868 * config.in: Likewise.
5869 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
5870 (OBS): Add common-remote-fileio.o.
5871 (common-remote-fileio.o): New rule.
5872
5873 2015-03-09 Pedro Alves <palves@redhat.com>
5874
5875 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
5876 'struct sockaddr' pointer in 'accept' call.
5877
5878 2015-03-09 Pedro Alves <palves@redhat.com>
5879
5880 Revert:
5881 2015-03-07 Pedro Alves <palves@redhat.com>
5882 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
5883 or <winsock2.h> here. Instead include "gdb_socket.h".
5884 (remote_open): Use union gdb_sockaddr_u.
5885 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
5886 or <winsock2.h> here. Instead include "gdb_socket.h".
5887 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
5888 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
5889 or <sys/un.h>.
5890 (init_named_socket, gdb_agent_helper_thread): Use union
5891 gdb_sockaddr_u.
5892
5893 2015-03-07 Pedro Alves <palves@redhat.com>
5894
5895 * configure.ac (build_warnings): Move
5896 -Wdeclaration-after-statement to the C-specific set.
5897 * configure: Regenerate.
5898
5899 2015-03-07 Pedro Alves <palves@redhat.com>
5900
5901 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
5902 or <winsock2.h> here. Instead include "gdb_socket.h".
5903 (remote_open): Use union gdb_sockaddr_u.
5904 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
5905 or <winsock2.h> here. Instead include "gdb_socket.h".
5906 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
5907 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
5908 or <sys/un.h>.
5909 (init_named_socket, gdb_agent_helper_thread): Use union
5910 gdb_sockaddr_u.
5911
5912 2015-03-07 Pedro Alves <palves@redhat.com>
5913
5914 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
5915 instead.
5916
5917 2015-03-06 Yao Qi <yao.qi@linaro.org>
5918
5919 * linux-aarch64-low.c (aarch64_insert_point): Use
5920 show_debug_regs as a boolean.
5921 (aarch64_remove_point): Likewise.
5922
5923 2015-03-05 Pedro Alves <palves@redhat.com>
5924
5925 * lynx-low.c (lynx_target_ops): Install NULL hooks for
5926 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
5927 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
5928 * nto-low.c (nto_target_ops): Likewise.
5929 * spu-low.c (spu_target_ops): Likewise.
5930 * win32-low.c (win32_target_ops): Likewise.
5931
5932 2015-03-04 Pedro Alves <palves@redhat.com>
5933
5934 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
5935 Decide whether a breakpoint triggered based on the SIGTRAP's
5936 siginfo.si_code.
5937 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
5938 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
5939 (linux_low_filter_event): Check for breakpoints before checking
5940 watchpoints.
5941 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
5942 siginfo.si_code.
5943 (linux_stopped_by_sw_breakpoint)
5944 (linux_supports_stopped_by_sw_breakpoint)
5945 (linux_stopped_by_hw_breakpoint)
5946 (linux_supports_stopped_by_hw_breakpoint): New functions.
5947 (linux_target_ops): Install new target methods.
5948
5949 2015-03-04 Pedro Alves <palves@redhat.com>
5950
5951 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
5952 * server.c (swbreak_feature, hwbreak_feature): New globals.
5953 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
5954 (captured_main): Clear swbreak_feature and hwbreak_feature.
5955 * server.h (swbreak_feature, hwbreak_feature): Declare.
5956 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
5957 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
5958 supports_stopped_by_hw_breakpoint>: New fields.
5959 (target_supports_stopped_by_sw_breakpoint)
5960 (target_stopped_by_sw_breakpoint)
5961 (target_supports_stopped_by_hw_breakpoint)
5962 (target_stopped_by_hw_breakpoint): Declare.
5963
5964 2015-03-04 Pedro Alves <palves@redhat.com>
5965
5966 enum lwp_stop_reason -> enum target_stop_reason
5967 * linux-low.c (check_stopped_by_breakpoint): Adjust.
5968 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
5969 (linux_wait_1, stuck_in_jump_pad_callback)
5970 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
5971 (linux_stopped_by_watchpoint):
5972 * linux-low.h (enum lwp_stop_reason): Delete.
5973 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
5974 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
5975
5976 2015-03-04 Yao Qi <yao.qi@linaro.org>
5977
5978 * Makefile.in (SFILES): Add linux-aarch64-low.c.
5979
5980 2015-03-03 Gary Benson <gbenson@redhat.com>
5981
5982 * hostio.c (handle_vFile): Fix prefix lengths.
5983
5984 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
5985
5986 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
5987 ptr_bits.
5988
5989 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
5990
5991 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
5992 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
5993 (clean): Add "rm -f" for above C files.
5994 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
5995 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
5996 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
5997 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
5998 * linux-s390-low.c (HWCAP_S390_VX): New macro.
5999 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
6000 (init_registers_s390x_vx_linux64)
6001 (init_registers_s390x_tevx_linux64)
6002 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
6003 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
6004 declarations.
6005 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
6006 (s390_store_vxrs_high): New functions.
6007 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
6008 NT_S390_VXRS_HIGH.
6009 (s390_arch_setup): Add logic for selecting one of the new target
6010 descriptions. Activate the new vector regsets if applicable.
6011 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
6012 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
6013 and init_registers_s390x_tevx_linux64.
6014
6015 2015-03-01 Pedro Alves <palves@redhat.com>
6016
6017 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
6018 parameter.
6019
6020 2015-02-27 Pedro Alves <palves@redhat.com>
6021
6022 * linux-x86-low.c (u_debugreg_offset): New function.
6023 (x86_linux_dr_get, x86_linux_dr_set): Use it.
6024
6025 2015-02-27 Pedro Alves <palves@redhat.com>
6026
6027 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
6028 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
6029 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
6030 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6031 (ps_lsetfpregs, ps_getpid)
6032 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
6033 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
6034 (ps_lsetxregs, ps_plog): Declare.
6035
6036 2015-02-27 Pedro Alves <palves@redhat.com>
6037
6038 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
6039 IP_AGENT_EXPORT_FUNC.
6040 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
6041 IP_AGENT_EXPORT_FUNC.
6042 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
6043 (IP_AGENT_EXPORT): Delete.
6044 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
6045 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
6046 (gdb_trampoline_buffer_error, collecting, gdb_collect)
6047 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
6048 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
6049 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
6050 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
6051 (traceframe_read_count, traceframe_write_count)
6052 (traceframes_created, trace_state_variables, get_raw_reg)
6053 (get_trace_state_variable_value, set_trace_state_variable_value)
6054 (ust_loaded, helper_thread_id, cmd_buf): Use
6055 IPA_SYM_EXPORTED_NAME.
6056 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
6057 (tracepoints) Use IP_AGENT_EXPORT_VAR.
6058 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
6059 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
6060 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
6061 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
6062 EXTERN_C_PUSH/EXTERN_C_POP.
6063 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
6064 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
6065 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
6066 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
6067 (traceframe_write_count, traceframe_read_count)
6068 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
6069 (about_to_request_buffer_space, get_trace_state_variable_value)
6070 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
6071 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
6072 EXTERN_C_PUSH/EXTERN_C_POP.
6073 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
6074 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
6075 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
6076 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
6077 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
6078 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
6079 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
6080 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
6081 Define.
6082 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
6083 (IP_AGENT_EXPORT_VAR_DECL): Define.
6084 (tracing): Declare.
6085 (gdb_agent_get_raw_reg): Declare.
6086
6087 2015-02-27 Tom Tromey <tromey@redhat.com>
6088 Pedro Alves <palves@redhat.com>
6089
6090 Rename symbols whose names are reserved C++ keywords throughout.
6091
6092 2015-02-27 Pedro Alves <palves@redhat.com>
6093
6094 * Makefile.in (COMPILER): New, get it from autoconf.
6095 (CXX): Get from autoconf instead.
6096 (COMPILE.pre): Use COMPILER.
6097 (CC-LD): Rename to ...
6098 (CC_LD): ... this. Use COMPILER.
6099 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
6100 (CXX_FOR_TARGET): Default to g++ instead of gcc.
6101 * acinclude.m4: Include build-with-cxx.m4.
6102 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
6103 Disable -Werror by default if building in C++ mode.
6104 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
6105 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
6106 the C++ compiler. Save/restore CXXFLAGS too.
6107 * configure: Regenerate.
6108
6109 2015-02-27 Pedro Alves <palves@redhat.com>
6110
6111 * acinclude.m4: Include libiberty.m4.
6112 * configure.ac: Call libiberty_INIT.
6113 * config.in, configure: Regenerate.
6114
6115 2015-02-26 Pedro Alves <palves@redhat.com>
6116
6117 * linux-low.c (linux_wait_1): When incrementing the PC past a
6118 program breakpoint always use the_low_target.breakpoint_len as
6119 increment, rather than the maximum between that and
6120 the_low_target.decr_pc_after_break.
6121
6122 2015-02-23 Pedro Alves <palves@redhat.com>
6123
6124 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
6125 thread was doing a step-over; always adjust the PC if
6126 we stepped over a permanent breakpoint.
6127 (linux_wait_1): If we stepped over breakpoint that was on top of a
6128 permanent breakpoint, manually advance the PC past it.
6129
6130 2015-02-23 Pedro Alves <palves@redhat.com>
6131
6132 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
6133 modes.
6134 (x86_fill_gregset, x86_store_gregset): Use it when handling
6135 $orig_eax.
6136
6137 2015-02-20 Pedro Alves <palves@redhat.com>
6138
6139 * thread-db.c: Include "nat/linux-procfs.h".
6140 (thread_db_init): Skip listing new threads if the kernel supports
6141 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
6142
6143 2015-02-20 Pedro Alves <palves@redhat.com>
6144
6145 * linux-low.c (status_pending_p_callback): Use ptid_match.
6146
6147 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
6148
6149 PR breakpoints/16812
6150 * linux-low.c (wstatus_maybe_breakpoint): Remove.
6151 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
6152 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
6153
6154 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
6155
6156 PR breakpoints/15956
6157 * tracepoint.c (cmd_qtinit): Add check for current_thread.
6158
6159 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6160
6161 * linux-low.c (linux_low_btrace_conf): Print size.
6162 * server.c (handle_btrace_conf_general_set): New.
6163 (hanle_general_set): Call handle_btrace_conf_general_set.
6164 (handle_query): Report Qbtrace-conf:bts:size as supported.
6165
6166 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6167
6168 * linux-low.c (linux_low_enable_btrace): Update parameters.
6169 (linux_low_btrace_conf): New.
6170 (linux_target_ops)<to_btrace_conf>: Initialize.
6171 * server.c (current_btrace_conf): New.
6172 (handle_btrace_enable): Rename to ...
6173 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
6174 to target_enable_btrace. Update comment. Update users.
6175 (handle_qxfer_btrace_conf): New.
6176 (qxfer_packets): Add btrace-conf entry.
6177 (handle_query): Report qXfer:btrace-conf:read as supported packet.
6178 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
6179 (target_ops)<read_btrace_conf>: New.
6180 (target_enable_btrace): Update parameters.
6181 (target_read_btrace_conf): New.
6182
6183 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6184
6185 * server.c (handle_btrace_general_set): Remove call to
6186 target_supports_btrace.
6187 (supported_btrace_packets): New.
6188 (handle_query): Call supported_btrace_packets.
6189 * target.h: include btrace-common.h.
6190 (btrace_target_info): Removed.
6191 (supports_btrace, target_supports_btrace): Update parameters.
6192
6193 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6194
6195 * Makefile.in (SFILES): Add common/btrace-common.c.
6196 (OBS): Add common/btrace-common.o.
6197 (btrace-common.o): Add build rules.
6198 * linux-low: Include btrace-common.h.
6199 (linux_low_read_btrace): Use struct btrace_data. Call
6200 btrace_data_init and btrace_data_fini.
6201
6202 2015-02-06 Pedro Alves <palves@redhat.com>
6203
6204 * thread-db.c (find_new_threads_callback): Add debug output.
6205
6206 2015-02-04 Pedro Alves <palves@redhat.com>
6207
6208 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
6209 (resume_stopped_resumed_lwps): New function.
6210 (linux_wait_for_event_filtered): Use it.
6211
6212 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
6213
6214 * Makefile.in (SFILES): Add linux-personality.c.
6215 (linux-personality.o): New rule.
6216 * configure.srv (srv_linux_obj): Add linux-personality.o to the
6217 list of objects to be built.
6218 * linux-low.c: Include nat/linux-personality.h.
6219 (linux_create_inferior): Remove code to disable address space
6220 randomization (moved to ../nat/linux-personality.c). Create
6221 cleanup to disable address space randomization.
6222
6223 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
6224
6225 * Makefile.in (posix-strerror.o): New rule.
6226 (mingw-strerror.o): Likewise.
6227 * configure: Regenerated.
6228 * configure.ac: Source file ../common/common.host. Initialize new
6229 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
6230
6231 2015-01-14 Yao Qi <yao@codesourcery.com>
6232
6233 * Makefile.in (SFILES): Add nat/ppc-linux.c.
6234 (ppc-linux.o): New rule.
6235 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
6236 * configure.ac: AC_CHECK_FUNCS(getauxval).
6237 * config.in: Re-generated.
6238 * configure: Re-generated.
6239 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
6240 ppc64_64bit_inferior_p
6241
6242 2015-01-14 Yao Qi <yao@codesourcery.com>
6243
6244 * linux-ppc-low.c: Include "nat/ppc-linux.h".
6245 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
6246 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
6247 (PT_ORIG_R3, PT_TRAP): Likewise.
6248 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
6249 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
6250 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
6251
6252 2015-01-10 Joel Brobecker <brobecker@adacore.com>
6253
6254 * i387-fp.c (i387_cache_to_xsave): In look over
6255 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
6256 zmmh_low_space field by use of zmmh_high_space.
6257
6258 2015-01-09 Pedro Alves <palves@redhat.com>
6259
6260 * linux-low.c (step_over_bkpt): Move higher up in the file.
6261 (handle_extended_wait): Don't store the stop_pc here.
6262 (get_stop_pc): Adjust comments and rename to ...
6263 (check_stopped_by_breakpoint): ... this. Record whether the LWP
6264 stopped for a software breakpoint or hardware breakpoint.
6265 (thread_still_has_status_pending_p): New function.
6266 (status_pending_p_callback): Use
6267 thread_still_has_status_pending_p. If the event is no longer
6268 interesting, resume the LWP.
6269 (handle_tracepoints): Add assert.
6270 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
6271 (wstatus_maybe_breakpoint): New function.
6272 (cancel_breakpoint): Delete function.
6273 (check_stopped_by_watchpoint): New function, factored out from
6274 linux_low_filter_event.
6275 (lp_status_maybe_breakpoint): Delete function.
6276 (linux_low_filter_event): Remove filter_ptid argument.
6277 Leave thread group exits pending here. Store the LWP's stop PC.
6278 Always leave events pending.
6279 (linux_wait_for_event_filtered): Pull all events out of the
6280 kernel, and leave them all pending.
6281 (count_events_callback, select_event_lwp_callback): Consider all
6282 events.
6283 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
6284 (select_event_lwp): Only give preference to the stepping LWP in
6285 all-stop mode. Adjust comments.
6286 (ignore_event): New function.
6287 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
6288 references to cancel_breakpoints. Adjust to renames. Also give
6289 equal priority to all LWPs that have had events in non-stop mode.
6290 If reporting a software breakpoint event, unadjust the LWP's PC.
6291 (linux_wait): If linux_wait_1 returned an ignored event, retry.
6292 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
6293 Adjust.
6294 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
6295 (resume_status_pending_p): Use thread_still_has_status_pending_p.
6296 (linux_stopped_by_watchpoint): Adjust.
6297 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
6298 * linux-low.h (enum lwp_stop_reason): New.
6299 (struct lwp_info) <stop_pc>: Adjust comment.
6300 <stopped_by_watchpoint>: Delete field.
6301 <stop_reason>: New field.
6302 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
6303 * mem-break.c (software_breakpoint_inserted_here)
6304 (hardware_breakpoint_inserted_here): New function.
6305 * mem-break.h (software_breakpoint_inserted_here)
6306 (hardware_breakpoint_inserted_here): Declare.
6307 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
6308 (cancel_breakpoints): Delete.
6309 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
6310 (upload_fast_traceframes): Remove references to
6311 cancel_breakpoints.
6312
6313 2015-01-09 Pedro Alves <palves@redhat.com>
6314
6315 * thread-db.c (find_new_threads_callback): Ignore thread if the
6316 kernel thread ID is -1.
6317
6318 2015-01-09 Pedro Alves <palves@redhat.com>
6319
6320 * linux-low.c (linux_attach_fail_reason_string): Move to
6321 nat/linux-ptrace.c, and rename.
6322 (linux_attach_lwp): Update comment.
6323 (attach_proc_task_lwp_callback): New function.
6324 (linux_attach): Adjust to rename and use
6325 linux_proc_attach_tgid_threads.
6326 (linux_attach_fail_reason_string): Delete declaration.
6327
6328 2015-01-01 Joel Brobecker <brobecker@adacore.com>
6329
6330 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
6331 * server.c (gdbserver_version): Likewise.
6332
6333 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
6334
6335 * remote-utils.c: Include ctype.h.
6336 (input_interrupt): Explicitly handle the case when the char
6337 received is the NUL byte. Improve the printing of non-ASCII
6338 characters.
6339
6340 2014-12-16 Joel Brobecker <brobecker@adacore.com>
6341
6342 * linux-low.c (linux_low_filter_event): Update call to
6343 linux_enable_event_reporting following the addition of
6344 a new parameter to that function.
6345
6346 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
6347
6348 PR server/17457
6349 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
6350 (AARCH64_FPCR_REGNO): Likewise.
6351 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
6352 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
6353 (aarch64_store_fpregset): Likewise.
6354
6355 2014-12-15 Joel Brobecker <brobecker@adacore.com>
6356
6357 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
6358 Remove FIXME comment about assumption about N.
6359
6360 2014-12-13 Joel Brobecker <brobecker@adacore.com>
6361
6362 * configure.ac: If large-file support is disabled in GDBserver,
6363 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
6364 * configure: Regenerate.
6365
6366 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
6367
6368 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
6369 warning upon ENODATA from ptrace.
6370 * linux-s390-low.c (s390_store_tdb): New.
6371 (s390_regsets): Add regset for NT_S390_TDB.
6372
6373 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
6374
6375 * linux-low.c (regsets_store_inferior_registers): Skip regsets
6376 without a fill_function.
6377 * linux-s390-low.c (s390_fill_last_break): Remove.
6378 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
6379 (s390_arch_setup): Use regset's size instead of fill_function for
6380 loop end condition.
6381
6382 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
6383
6384 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
6385 the regset's store function when ptrace returned an error.
6386 * regcache.c (get_thread_regcache): Invalidate register cache
6387 before fetching inferior's registers.
6388
6389 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
6390
6391 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
6392 while-loop as for-loop.
6393 (regsets_store_inferior_registers): Likewise.
6394
6395 2014-11-28 Yao Qi <yao@codesourcery.com>
6396
6397 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
6398 * config.in, configure: Re-generate.
6399 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
6400 is defined.
6401
6402 2014-11-21 Yao Qi <yao@codesourcery.com>
6403
6404 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
6405 (AC_CHECK_HEADERS): Remove malloc.h.
6406 * configure: Re-generated.
6407 * config.in: Re-generated.
6408 * server.h: Don't include alloca.h and malloc.h.
6409 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
6410 Don't include malloc.h.
6411
6412 2014-11-17 Joel Brobecker <brobecker@adacore.com>
6413
6414 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
6415 corresponding ERRNO check in same block.
6416
6417 2014-11-12 Pedro Alves <palves@redhat.com>
6418
6419 * server.c (cont_thread): Update comment.
6420 (start_inferior, attach_inferior): No longer clear cont_thread.
6421 (handle_v_cont): No longer set cont_thread.
6422 (captured_main): Clear cont_thread each time a GDB connects.
6423
6424 2014-11-12 Pedro Alves <palves@redhat.com>
6425
6426 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
6427 thread, and don't resume all threads if the Hc thread has exited.
6428
6429 2014-11-12 Pedro Alves <palves@redhat.com>
6430
6431 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
6432 the process group instead of to a specific LWP.
6433
6434 2014-10-15 Pedro Alves <palves@redhat.com>
6435
6436 PR server/17487
6437 * win32-arm-low.c (arm_set_thread_context): Remove current_event
6438 parameter.
6439 (arm_set_thread_context): Delete.
6440 (the_low_target): Adjust.
6441 * win32-i386-low.c (debug_registers_changed)
6442 (debug_registers_used): Delete.
6443 (update_debug_registers_callback): New function.
6444 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
6445 needing to update their debug registers.
6446 (win32_get_current_dr): New function.
6447 (x86_dr_low_get_addr, x86_dr_low_get_control)
6448 (x86_dr_low_get_status): Fetch the debug register from the thread
6449 record's context.
6450 (i386_initial_stuff): Adjust.
6451 (i386_get_thread_context): Remove current_event parameter. Don't
6452 clear debug_registers_changed nor copy DR values to
6453 debug_reg_state.
6454 (i386_set_thread_context): Delete.
6455 (i386_prepare_to_resume): New function.
6456 (i386_thread_added): Mark the thread as needing to update irs
6457 debug registers.
6458 (the_low_target): Remove i386_set_thread_context and install
6459 i386_prepare_to_resume.
6460 * win32-low.c (win32_get_thread_context): Adjust.
6461 (win32_set_thread_context): Use SetThreadContext
6462 directly.
6463 (win32_prepare_to_resume): New function.
6464 (win32_require_context): New function, factored out from ...
6465 (thread_rec): ... this.
6466 (continue_one_thread): Call win32_prepare_to_resume on each thread
6467 we're about to continue.
6468 (win32_resume): Call win32_prepare_to_resume on the event thread.
6469 * win32-low.h (struct win32_thread_info)
6470 <debug_registers_changed>: New field.
6471 (struct win32_target_ops): Change prototype of set_thread_context,
6472 delete set_thread_context and add prepare_to_resume.
6473 (win32_require_context): New declaration.
6474
6475 2014-10-08 Gary Benson <gbenson@redhat.com>
6476
6477 * server.h: Do not include common-exceptions.h.
6478
6479 2014-10-08 Gary Benson <gbenson@redhat.com>
6480
6481 * server.h: Do not include cleanups.h.
6482
6483 2014-09-30 James Hogan <james.hogan@imgtec.com>
6484
6485 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
6486 mips64-dsp-linux.c.
6487
6488 2014-09-23 Yao Qi <yao@codesourcery.com>
6489
6490 * linux-low.c (lp_status_maybe_breakpoint): New function.
6491 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
6492 (count_events_callback): Likewise.
6493 (select_event_lwp_callback): Likewise.
6494 (cancel_breakpoints_callback): Likewise.
6495
6496 2014-09-19 Don Breazeal <donb@codesourcery.com>
6497
6498 * linux-low.c (handle_extended_wait): Call
6499 linux_ptrace_get_extended_event.
6500 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
6501 linux_is_extended_waitstatus.
6502
6503 2014-09-16 Joel Brobecker <brobecker@adacore.com>
6504
6505 * Makefile.in (CPPFLAGS): Define.
6506 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
6507 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
6508
6509 2014-09-16 Gary Benson <gbenson@redhat.com>
6510
6511 * inferiors.h (current_inferior): Renamed as...
6512 (current_thread): New variable. All uses updated.
6513 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
6514 (maybe_move_out_of_jump_pad): Likewise.
6515 (cancel_breakpoint): Likewise.
6516 (linux_low_filter_event): Likewise.
6517 (wait_for_sigstop): Likewise.
6518 (linux_resume_one_lwp): Likewise.
6519 (need_step_over_p): Likewise.
6520 (start_step_over): Likewise.
6521 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
6522 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
6523 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
6524 and save_inferior as saved_thread.
6525 * regcache.c (get_thread_regcache): Renamed saved_inferior as
6526 saved_thread.
6527 (regcache_invalidate_thread): Likewise.
6528 * remote-utils.c (prepare_resume_reply): Likewise.
6529 * thread-db.c (thread_db_get_tls_address): Likewise.
6530 (disable_thread_event_reporting): Likewise.
6531 (remove_thread_event_breakpoints): Likewise.
6532 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
6533 as saved_thread.
6534 * target.h (set_desired_inferior): Renamed as...
6535 (set_desired_thread): New declaration. All uses updated.
6536 * server.c (myresume): Updated comment to reference thread instead
6537 of inferior.
6538 (handle_serial_event): Likewise.
6539 (handle_target_event): Likewise.
6540
6541 2014-09-12 Tom Tromey <tromey@redhat.com>
6542 Gary Benson <gbenson@redhat.com>
6543
6544 * regcache.h: Include common-regcache.h.
6545 (regcache_read_pc): Don't declare.
6546 * regcache.c (get_thread_regcache_for_ptid): New function.
6547
6548 2014-09-11 Tom Tromey <tromey@redhat.com>
6549 Gary Benson <gbenson@redhat.com>
6550
6551 * symbol.c: New file.
6552 * Makefile.in (SFILES): Add symbol.c.
6553 (OBS): Add symbol.o.
6554
6555 2014-09-11 Gary Benson <gbenson@redhat.com>
6556
6557 * target.c (target_stop_ptid, target_continue_ptid): New
6558 functions.
6559
6560 2014-09-11 Tom Tromey <tromey@redhat.com>
6561 Gary Benson <gbenson@redhat.com>
6562
6563 * target.h: Include target/target.h.
6564 * target.c (target_read_memory, target_read_uint32)
6565 (target_write_memory): New functions.
6566
6567 2014-09-11 Gary Benson <gbenson@redhat.com>
6568
6569 * server.h (debug_hw_points): Don't declare.
6570 * server.c (debug_hw_points): Don't define. Replace all uses
6571 with show_debug_regs.
6572 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
6573 all uses with show_debug_regs.
6574
6575 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6576
6577 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
6578 endianness into account.
6579 (ppc_supply_ptrace_register): Likewise.
6580
6581 2014-09-03 James Hogan <james.hogan@imgtec.com>
6582
6583 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
6584 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
6585
6586 2014-09-03 Gary Benson <gbenson@redhat.com>
6587
6588 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
6589 ALL_DEBUG_ADDRESS_REGISTERS.
6590
6591 2014-09-02 Gary Benson <gbenson@redhat.com>
6592
6593 * i386-low.h: Renamed as...
6594 * x86-low.h: New file. All type, function and variable name
6595 prefixes changed from "i386_" to "x86_". All references updated.
6596 * i386-low.c: Renamed as...
6597 * x86-low.c: New file. All type, function and variable name
6598 prefixes changed from "i386_" to "x86_". All references updated.
6599
6600 2014-09-02 Gary Benson <gbenson@redhat.com>
6601
6602 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
6603 (x86_linux_new_thread): Likewise.
6604
6605 2014-08-29 Gary Benson <gbenson@redhat.com>
6606
6607 * server.h (setjmp.h): Do not include.
6608 (toplevel): Do not declare.
6609 (common-exceptions.h): Include.
6610 (cleanups.h): Likewise.
6611 * server.c (toplevel): Do not define.
6612 (exit_code): New static global.
6613 (detach_or_kill_for_exit_cleanup): New function.
6614 (main): New function. Original main renamed to...
6615 (captured_main): New function.
6616 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
6617
6618 2014-08-29 Gary Benson <gbenson@redhat.com>
6619
6620 * Makefile.in (SFILES): Add common/common-exceptions.c.
6621 (OBS): Add common-exceptions.o.
6622 (common-exceptions.o): New rule.
6623 * utils.c (prepare_to_throw_exception): New function.
6624
6625 2014-08-29 Gary Benson <gbenson@redhat.com>
6626
6627 * config.in: Regenerate.
6628 * configure: Likewise.
6629
6630 2014-08-29 Gary Benson <gbenson@redhat.com>
6631
6632 * Makefile.in (SFILES): Add common/cleanups.c.
6633 (OBS): cleanups.o.
6634 (cleanups.o): New rule.
6635
6636 2014-08-29 Gary Benson <gbenson@redhat.com>
6637
6638 * utils.c (internal_vwarning): New function.
6639
6640 2014-08-28 Gary Benson <gbenson@redhat.com>
6641
6642 * utils.h (fatal): Remove declaration.
6643 * utils.c (fatal): Remove function.
6644
6645 2014-08-28 Gary Benson <gbenson@redhat.com>
6646
6647 * tracepoint.c (gdb_agent_init): Replace fatal with
6648 perror_with_name.
6649 (initialize_tracepoint): Likewise.
6650
6651 2014-08-28 Gary Benson <gbenson@redhat.com>
6652
6653 * remote-utils.c (remote_prepare): Replace fatal with error.
6654
6655 2014-08-28 Gary Benson <gbenson@redhat.com>
6656
6657 * linux-low.c (linux_async): Replace fatal with warning.
6658 Tidy up and return.
6659 (linux_start_non_stop): Return -1 if linux_async failed.
6660
6661 2014-08-28 Gary Benson <gbenson@redhat.com>
6662
6663 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
6664 gdb_assert.
6665 (i386_dr_low_get_addr): Remove vague comment.
6666 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
6667 gdb_assert.
6668
6669 2014-08-28 Gary Benson <gbenson@redhat.com>
6670
6671 * inferiors.c (get_thread_process): Replace check with gdb_assert.
6672 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
6673 internal_error.
6674 (linux_resume_one_lwp): Likewise.
6675 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
6676 gdb_assert.
6677 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
6678 with internal_error.
6679 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
6680 (init_register_cache): Replace fatal with gdb_assert_not_reached.
6681 (find_register_by_name): Replace fatal with internal_error.
6682 (find_regno): Likewise.
6683 * tdesc.c (init_target_desc): Replace check with gdb_assert.
6684 * thread-db.c (thread_db_create_event): Likewise.
6685 (thread_db_load_search): Likewise.
6686 (try_thread_db_load_1): Likewise.
6687 * tracepoint.c (get_jump_space_head): Replace fatal with
6688 internal_error.
6689 (claim_trampoline_space): Likewise.
6690 (have_fast_tracepoint_trampoline_buffer): Likewise.
6691 (cmd_qtstart): Likewise.
6692 (stop_tracing): Likewise.
6693 (fast_tracepoint_collecting): Likewise.
6694 (target_malloc): Likewise.
6695 (download_tracepoint): Likewise.
6696 (download_trace_state_variables): Replace check with gdb_assert.
6697 (upload_fast_traceframes): Replace fatal with internal_error.
6698
6699 2014-08-19 Tom Tromey <tromey@redhat.com>
6700 Gary Benson <gbenson@redhat.com>
6701
6702 * Makefile.in (SFILES): Add common/common-debug.c.
6703 (OBS): Add common-debug.o.
6704 (common-debug.o): New rule.
6705 * debug.h (debug_printf): Don't declare.
6706 * debug.c (debug_printf): Renamed and rewritten as...
6707 (debug_vprintf): New function.
6708
6709 2014-08-19 Gary Benson <gbenson@redhat.com>
6710
6711 * utils.h: Do not include print-utils.h.
6712
6713 2014-08-19 Tom Tromey <tromey@redhat.com>
6714 Gary Benson <gbenson@redhat.com>
6715
6716 * server.h: Add static assertion.
6717 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
6718
6719 2014-08-19 Tom Tromey <tromey@redhat.com>
6720 Gary Benson <gbenson@redhat.com>
6721
6722 * Makefile.in (SFILES): Add common/errors.c.
6723 (OBS): Add errors.o.
6724 (IPA_OBS): Add errors-ipa.o.
6725 (errors.o): New rule.
6726 (errors-ipa.o): Likewise.
6727 * utils.h (perror_with_name, error, warning): Don't declare.
6728 * utils.c (warning): Renamed and rewritten as...
6729 (vwarning): New function.
6730 (error): Renamed and rewritten as...
6731 (verror): New function.
6732 (internal_error): Renamed and rewritten as...
6733 (internal_verror): New function.
6734
6735 2014-08-07 Gary Benson <gbenson@redhat.com>
6736
6737 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
6738 * configure: Regenerate.
6739 * config.in: Likewise.
6740 * server.h: Do not include errno.h.
6741 * event-loop.c: Likewise.
6742 * hostio-errno.c: Likewise.
6743 * linux-low.c: Likewise.
6744 * remote-utils.c: Likewise.
6745 * spu-low.c: Likewise.
6746 * utils.c: Likewise.
6747 * gdbreplay.c: Unconditionally include errno.h.
6748
6749 2014-08-07 Gary Benson <gbenson@redhat.com>
6750
6751 * server.h: Do not include string.h.
6752 * event-loop.c: Likewise.
6753 * linux-low.c: Likewise.
6754 * regcache.c: Likewise.
6755 * remote-utils.c: Likewise.
6756 * spu-low.c: Likewise.
6757 * utils.c: Likewise.
6758
6759 2014-08-07 Gary Benson <gbenson@redhat.com>
6760
6761 * server.h: Do not include gdb_assert.h.
6762
6763 2014-08-07 Gary Benson <gbenson@redhat.com>
6764
6765 * server.h: Do not include common-utils.h.
6766
6767 2014-08-07 Gary Benson <gbenson@redhat.com>
6768
6769 * server.h: Do not include ptid.h.
6770 * notif.h: Likewise.
6771
6772 2014-08-07 Gary Benson <gbenson@redhat.com>
6773
6774 * server.h: Do not include gdb_locale.h.
6775
6776 2014-08-07 Gary Benson <gbenson@redhat.com>
6777
6778 * server.h: Do not include gdb/signals.h.
6779 * win32-low.c: Likewise.
6780
6781 2014-08-07 Gary Benson <gbenson@redhat.com>
6782
6783 * server.h: Do not include pathmax.h.
6784
6785 2014-08-07 Gary Benson <gbenson@redhat.com>
6786
6787 * server.h: Do not include libiberty.h.
6788 * linux-bfin-low.c: Likewise.
6789
6790 2014-08-07 Gary Benson <gbenson@redhat.com>
6791
6792 * server.h: Do not include ansidecl.h.
6793
6794 2014-08-07 Gary Benson <gbenson@redhat.com>
6795
6796 * linux-x86-low.c: Do not include stddef.h.
6797 * lynx-ppc-low.c: Likewise.
6798 * tracepoint.c: Likewise.
6799
6800 2014-08-07 Gary Benson <gbenson@redhat.com>
6801
6802 * server.h: Do not include stdarg.h.
6803 * nto-low.c: Likewise.
6804
6805 2014-08-07 Gary Benson <gbenson@redhat.com>
6806
6807 * server.h: Do not include stdlib.h.
6808 * inferiors.c: Likewise.
6809 * linux-low.c: Likewise.
6810 * regcache.c: Likewise.
6811 * spu-low.c: Likewise.
6812 * tracepoint.c: Likewise.
6813 * utils.c: Likewise.
6814
6815 2014-08-07 Gary Benson <gbenson@redhat.com>
6816
6817 * server.h: Do not include stdio.h.
6818 * linux-low.c: Likewise.
6819 * remote-utils.c: Likewise.
6820 * spu-low.c: Likewise.
6821 * utils.c: Likewise.
6822 * wincecompat.c: Likewise.
6823
6824 2014-08-06 Gary Benson <gbenson@redhat.com>
6825
6826 * regcache.c (init_register_cache): Move conditionals inside if.
6827
6828 2014-08-06 Gary Benson <gbenson@redhat.com>
6829
6830 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
6831
6832 2014-07-31 Gary Benson <gbenson@redhat.com>
6833
6834 * ax.h: Do not include server.h.
6835 * gdbthread.h: Likewise.
6836 * lynx-low.h: Likewise.
6837 * notif.h: Likewise.
6838
6839 2014-07-30 Gary Benson <gbenson@redhat.com>
6840
6841 * server.h: Include common-defs.h.
6842 Do not include config.h or build-gnulib-gdbserver/config.h.
6843
6844 2014-07-30 Gary Benson <gbenson@redhat.com>
6845
6846 * hostio-errno.c: Move server.h to top of includes list.
6847 * inferiors.c: Likewise.
6848 * linux-x86-low.c: Likewise.
6849 * notif.c: Include server.h.
6850
6851 2014-07-24 Tom Tromey <tromey@redhat.com>
6852 Gary Benson <gbenson@redhat.com>
6853
6854 * server.h (CORE_ADDR): Now unsigned.
6855
6856 2014-07-16 Pedro Alves <palves@redhat.com>
6857
6858 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
6859
6860 2014-07-15 Pedro Alves <palves@redhat.com>
6861
6862 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
6863 copy.
6864
6865 2014-07-11 Pedro Alves <palves@redhat.com>
6866
6867 * linux-low.c (kill_wait_lwp): New function, based on
6868 kill_one_lwp_callback, but use my_waitpid directly.
6869 (kill_one_lwp_callback, linux_kill): Use it.
6870
6871 2014-06-23 Pedro Alves <palves@redhat.com>
6872
6873 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
6874 before setting DR0..DR3.
6875
6876 2014-06-20 Gary Benson <gbenson@redhat.com>
6877
6878 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
6879 * configure: Regenerated.
6880 * config.in: Likewise.
6881
6882 2014-06-20 Gary Benson <gbenson@redhat.com>
6883
6884 * Makefile.in (SFILES): Update locations for files moved
6885 from common to nat.
6886 (object file files): Reordered.
6887
6888 2014-06-20 Gary Benson <gbenson@redhat.com>
6889
6890 * i386-low.h (i386_dr_low_can_set_addr): Removed.
6891 (i386_dr_low_set_addr): Likewise.
6892 (i386_dr_low_get_addr): Likewise.
6893 (i386_dr_low_can_set_control): Likewise.
6894 (i386_dr_low_set_control): Likewise.
6895 (i386_dr_low_get_control): Likewise.
6896 (i386_dr_low_get_status): Likewise.
6897 (i386_get_debug_register_length): Likewise.
6898 * linux-x86-low.c (i386_dr_low_set_addr):
6899 Changed signature. Made static.
6900 (i386_dr_low_get_addr): Likewise.
6901 (i386_dr_low_set_control): Likewise.
6902 (i386_dr_low_get_control): Likewise.
6903 (i386_dr_low_get_status): Likewise.
6904 (i386_dr_low): New global variable.
6905 * win32-i386-low.c (i386_dr_low_set_addr):
6906 Changed signature. Made static.
6907 (i386_dr_low_get_addr): Likewise.
6908 (i386_dr_low_set_control): Likewise.
6909 (i386_dr_low_get_control): Likewise.
6910 (i386_dr_low_get_status): Likewise.
6911 (i386_dr_low): New global variable.
6912
6913 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
6914
6915 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
6916 * Makefile.in (AR, AR_FLAGS): Define.
6917 * configure: Regenerate.
6918
6919 2014-06-19 Gary Benson <gbenson@redhat.com>
6920
6921 * Makefile.in (i386-dregs.o): New rule.
6922 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
6923 * i386-low.c (target.h): Remove include.
6924 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
6925 (DR_CONTROL_SHIFT): Likewise.
6926 (DR_CONTROL_SIZE): Likewise.
6927 (DR_RW_EXECUTE): Likewise.
6928 (DR_RW_WRITE): Likewise.
6929 (DR_RW_READ): Likewise.
6930 (DR_RW_IORW): Likewise.
6931 (DR_LEN_1): Likewise.
6932 (DR_LEN_2): Likewise.
6933 (DR_LEN_4): Likewise.
6934 (DR_LEN_8): Likewise.
6935 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6936 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6937 (DR_ENABLE_SIZE): Likewise.
6938 (DR_LOCAL_SLOWDOWN): Likewise.
6939 (DR_GLOBAL_SLOWDOWN): Likewise.
6940 (DR_CONTROL_RESERVED): Likewise.
6941 (I386_DR_CONTROL_MASK): Likewise.
6942 (I386_DR_VACANT): Likewise.
6943 (I386_DR_LOCAL_ENABLE): Likewise.
6944 (I386_DR_GLOBAL_ENABLE): Likewise.
6945 (I386_DR_DISABLE): Likewise.
6946 (I386_DR_SET_RW_LEN): Likewise.
6947 (I386_DR_GET_RW_LEN): Likewise.
6948 (I386_DR_WATCH_HIT): Likewise.
6949 (i386_wp_op_t): Likewise.
6950 (i386_show_dr): Likewise.
6951 (i386_length_and_rw_bits): Likewise.
6952 (i386_insert_aligned_watchpoint): Likewise.
6953 (i386_remove_aligned_watchpoint): Likewise.
6954 (i386_handle_nonaligned_watchpoint): Likewise.
6955 i386_update_inferior_debug_regs(): Likewise.
6956 (i386_dr_insert_watchpoint): Likewise.
6957 (i386_dr_remove_watchpoint): Likewise.
6958 (i386_dr_region_ok_for_watchpoint): Likewise.
6959 (i386_dr_stopped_data_address): Likewise.
6960 (i386_dr_stopped_by_watchpoint): Likewise.
6961
6962 2014-06-19 Gary Benson <gbenson@redhat.com>
6963
6964 * i386-low.c (i386_dr_show): Renamed to
6965 i386_show_dr and made static. All uses updated.
6966 (i386_dr_length_and_rw_bits): Renamed to
6967 i386_length_and_rw_bits and made static.
6968 All uses updated.
6969 (i386_dr_insert_aligned_watchpoint): Renamed to
6970 i386_insert_aligned_watchpoint and made static.
6971 All uses updated.
6972 (i386_dr_remove_aligned_watchpoint): Renamed to
6973 i386_remove_aligned_watchpoint and made static.
6974 All uses updated.
6975 (i386_dr_update_inferior_debug_regs): Renamed to
6976 i386_update_inferior_debug_regs and made static.
6977 All uses updated.
6978
6979 2014-06-18 Gary Benson <gbenson@redhat.com>
6980
6981 * i386-low.h (i386_dr_low_can_set_addr): New macro.
6982 (i386_dr_low_can_set_control): Likewise.
6983 (i386_get_debug_register_length): Likewise.
6984 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
6985 (i386_dr_low_can_set_control): Likewise.
6986 (i386_get_debug_register_length): Likewise.
6987
6988 2014-06-17 Gary Benson <gbenson@redhat.com>
6989
6990 * i386-low.h (i386-dregs.h): New include.
6991 (DR_FIRSTADDR): Now in i386-dregs.h.
6992 (DR_LASTADDR): Likewise.
6993 (DR_NADDR): Likewise.
6994 (DR_STATUS): Likewise.
6995 (DR_CONTROL): Likewise.
6996 (i386_debug_reg_state): Likewise.
6997 (i386_dr_insert_watchpoint): Likewise.
6998 (i386_dr_remove_watchpoint): Likewise.
6999 (i386_dr_region_ok_for_watchpoint): Likewise.
7000 (i386_dr_stopped_data_address): Likewise.
7001 (i386_dr_stopped_by_watchpoint): Likewise.
7002 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
7003
7004 2014-06-18 Gary Benson <gbenson@redhat.com>
7005
7006 * i386-low.h (i386_low_insert_watchpoint): Renamed to
7007 i386_dr_insert_watchpoint.
7008 (i386_low_remove_watchpoint): Renamed to
7009 i386_dr_remove_watchpoint.
7010 (i386_low_region_ok_for_watchpoint): Renamed to
7011 i386_dr_region_ok_for_watchpoint.
7012 (i386_low_stopped_data_address): Renamed to
7013 i386_dr_stopped_data_address.
7014 (i386_low_stopped_by_watchpoint): Renamed to
7015 i386_dr_stopped_by_watchpoint.
7016 * i386-low.c (i386_show_dr): Renamed to
7017 i386_dr_show and made nonstatic. All uses updated.
7018 (i386_length_and_rw_bits): Renamed to
7019 i386_dr_length_and_rw_bits and made nonstatic.
7020 All uses updated.
7021 (i386_insert_aligned_watchpoint): Renamed to
7022 i386_dr_insert_aligned_watchpoint and made nonstatic.
7023 All uses updated.
7024 (i386_remove_aligned_watchpoint): Renamed to
7025 i386_dr_remove_aligned_watchpoint and made nonstatic.
7026 All uses updated.
7027 (i386_update_inferior_debug_regs): Renamed to
7028 i386_dr_update_inferior_debug_regs and made nonstatic.
7029 All uses updated.
7030 (i386_low_insert_watchpoint): Renamed to
7031 i386_dr_insert_watchpoint. All uses updated.
7032 (i386_low_remove_watchpoint): Renamed to
7033 i386_dr_remove_watchpoint. All uses updated.
7034 (i386_low_region_ok_for_watchpoint): Renamed to
7035 i386_dr_region_ok_for_watchpoint. All uses updated.
7036 (i386_low_stopped_data_address): Renamed to
7037 i386_dr_stopped_data_address. All uses updated.
7038 (i386_low_stopped_by_watchpoint): Renamed to
7039 i386_dr_stopped_by_watchpoint. All uses updated.
7040
7041 2014-06-18 Gary Benson <gbenson@redhat.com>
7042
7043 * i386-low.c (i386_dr_low_can_set_addr): New macro.
7044 (i386_dr_low_can_set_control): Likewise.
7045 (i386_insert_aligned_watchpoint): New check.
7046
7047 2014-06-18 Gary Benson <gbenson@redhat.com>
7048
7049 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
7050 Renamed to state.
7051
7052 2014-06-18 Gary Benson <gbenson@redhat.com>
7053
7054 * i386-low.c (i386_length_and_rw_bits): Use internal_error
7055 instead of fatal and error.
7056 (i386_handle_nonaligned_watchpoint): Likewise.
7057
7058 2014-06-18 Gary Benson <gbenson@redhat.com>
7059
7060 * i386-low.c (i386_get_debug_register_length): New macro.
7061 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
7062 (i386_show_dr): Use debug_printf instead of fprintf. Use
7063 phex to format values.
7064
7065 2014-06-18 Gary Benson <gbenson@redhat.com>
7066
7067 * i386-low.h: Comment changes.
7068 * i386-low.c: Likewise.
7069
7070 2014-06-18 Gary Benson <gbenson@redhat.com>
7071
7072 * i386-low.c: Whitespace changes.
7073
7074 2014-06-12 Tom Tromey <tromey@redhat.com>
7075
7076 * utils.c (freeargv): Remove.
7077
7078 2014-06-12 Tom Tromey <tromey@redhat.com>
7079
7080 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
7081 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
7082 (parse_debug_format_options): Likewise.
7083 (gdbserver_usage): Likewise.
7084 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
7085 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
7086 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
7087 against libiberty.
7088 ($(LIBGNU)): Depend on libiberty.
7089 (all-lib): Recurse into all subdirs.
7090 (install-only): Invoke "install" target in subdirs.
7091 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
7092 targets.
7093 * configure: Rebuild.
7094 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
7095 for vasprintf, vsnprintf, or gettimeofday.
7096 * configure.srv: Don't add safe-ctype.o or lbasename.o to
7097 srv_tgtobj.
7098
7099 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7100
7101 * development.sh: Delete.
7102 * Makefile.in (config.status): Adjust dependency on development.sh.
7103 * configure.ac: Adjust development.sh source call.
7104 * configure: Regenerate.
7105
7106 2014-06-02 Pedro Alves <palves@redhat.com>
7107
7108 * ax.c (gdb_free_agent_expr): New function.
7109 * ax.h (gdb_free_agent_expr): New declaration.
7110 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
7111 list.
7112 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
7113 static.
7114 (clear_breakpoint_conditions_and_commands): New function.
7115 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
7116 (clear_breakpoint_conditions_and_commands): New declaration.
7117
7118 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7119
7120 * linux-aarch64-low.c (asm/ptrace.h): Include.
7121
7122 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7123
7124 Fix TLS access for -static -pthread.
7125 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
7126 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
7127 (thread_db_load_search, try_thread_db_load_1): Initialize it.
7128
7129 2014-05-20 Pedro Alves <palves@redhat.com>
7130
7131 * linux-aarch64-low.c (aarch64_insert_point)
7132 (aarch64_remove_point): No longer check whether the type is
7133 supported here. Adjust to new interface.
7134 (the_low_target): Install aarch64_supports_z_point_type as
7135 supports_z_point_type method.
7136 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
7137 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
7138 instead of a Z packet char. Adjust.
7139 (arm_supports_z_point_type): New function.
7140 (arm_insert_point, arm_remove_point): Adjust to new interface.
7141 (the_low_target): Install arm_supports_z_point_type.
7142 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
7143 (cris_insert_point, cris_remove_point): Adjust to new interface.
7144 Don't check whether the type is supported here.
7145 (the_low_target): Install cris_supports_z_point_type.
7146 * linux-low.c (linux_supports_z_point_type): New function.
7147 (linux_insert_point, linux_remove_point): Adjust to new interface.
7148 * linux-low.h (struct linux_target_ops) <insert_point,
7149 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
7150 raw_breakpoint pointer parameter.
7151 <supports_z_point_type>: New method.
7152 * linux-mips-low.c (mips_supports_z_point_type): New function.
7153 (mips_insert_point, mips_remove_point): Adjust to new interface.
7154 Use mips_supports_z_point_type.
7155 (the_low_target): Install mips_supports_z_point_type.
7156 * linux-ppc-low.c (the_low_target): Install NULL as
7157 supports_z_point_type method.
7158 * linux-s390-low.c (the_low_target): Install NULL as
7159 supports_z_point_type method.
7160 * linux-sparc-low.c (the_low_target): Install NULL as
7161 supports_z_point_type method.
7162 * linux-x86-low.c (x86_supports_z_point_type): New function.
7163 (x86_insert_point): Adjust to new insert_point interface. Use
7164 insert_memory_breakpoint. Adjust to new
7165 i386_low_insert_watchpoint interface.
7166 (x86_remove_point): Adjust to remove_point interface. Use
7167 remove_memory_breakpoint. Adjust to new
7168 i386_low_remove_watchpoint interface.
7169 (the_low_target): Install x86_supports_z_point_type.
7170 * lynx-low.c (lynx_target_ops): Install NULL as
7171 supports_z_point_type callback.
7172 * nto-low.c (nto_supports_z_point_type): New.
7173 (nto_insert_point, nto_remove_point): Adjust to new interface.
7174 (nto_target_ops): Install nto_supports_z_point_type.
7175 * mem-break.c: Adjust intro comment.
7176 (struct raw_breakpoint) <raw_type, size>: New fields.
7177 <inserted>: Update comment.
7178 <shlib_disabled>: Delete field.
7179 (enum bkpt_type) <gdb_breakpoint>: Delete value.
7180 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
7181 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
7182 (raw_bkpt_type_to_target_hw_bp_type): New function.
7183 (find_enabled_raw_code_breakpoint_at): New function.
7184 (find_raw_breakpoint_at): New type and size parameters. Use them.
7185 (insert_memory_breakpoint): New function, based off
7186 set_raw_breakpoint_at.
7187 (remove_memory_breakpoint): New function.
7188 (set_raw_breakpoint_at): Reimplement.
7189 (set_breakpoint): New, based on set_breakpoint_at.
7190 (set_breakpoint_at): Reimplement.
7191 (delete_raw_breakpoint): Go through the_target->remove_point
7192 instead of assuming memory breakpoints.
7193 (find_gdb_breakpoint_at): Delete.
7194 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
7195 (find_gdb_breakpoint): New function.
7196 (set_gdb_breakpoint_at): Delete.
7197 (z_type_supported): New function.
7198 (set_gdb_breakpoint_1): New function, loosely based off
7199 set_gdb_breakpoint_at.
7200 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
7201 (delete_gdb_breakpoint_at): Delete.
7202 (delete_gdb_breakpoint_1): New function, loosely based off
7203 delete_gdb_breakpoint_at.
7204 (delete_gdb_breakpoint): New function.
7205 (clear_gdb_breakpoint_conditions): Rename to ...
7206 (clear_breakpoint_conditions): ... this. Don't handle a NULL
7207 breakpoint.
7208 (add_condition_to_breakpoint): Make static.
7209 (add_breakpoint_condition): Take a struct breakpoint pointer
7210 instead of an address. Adjust.
7211 (gdb_condition_true_at_breakpoint): Rename to ...
7212 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
7213 z_type parameter.
7214 (gdb_condition_true_at_breakpoint): Reimplement.
7215 (add_breakpoint_commands): Take a struct breakpoint pointer
7216 instead of an address. Adjust.
7217 (gdb_no_commands_at_breakpoint): Rename to ...
7218 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
7219 parameter. Return true if no breakpoint was found. Change debug
7220 output.
7221 (gdb_no_commands_at_breakpoint): Reimplement.
7222 (run_breakpoint_commands): Rename to ...
7223 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
7224 and change return type to boolean.
7225 (run_breakpoint_commands): New function.
7226 (gdb_breakpoint_here): Also check for Z1 breakpoints.
7227 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
7228 breakpoint. Go through the_target->remove_point instead of
7229 assuming memory breakpoint.
7230 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
7231 software and hardware breakpoints.
7232 (reinsert_raw_breakpoint): Go through the_target->insert_point
7233 instead of assuming memory breakpoint.
7234 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
7235 software and hardware breakpoints.
7236 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
7237 Check both software and hardware breakpoints.
7238 (validate_inserted_breakpoint): Assert the breakpoint is a
7239 software breakpoint. Set the inserted flag to -1 instead of
7240 setting shlib_disabled.
7241 (delete_disabled_breakpoints): Adjust.
7242 (validate_breakpoints): Only validate software breakpoints.
7243 Adjust to inserted flag change.
7244 (check_mem_read, check_mem_write): Skip breakpoint types other
7245 than software breakpoints. Adjust to inserted flag change.
7246 * mem-break.h (enum raw_bkpt_type): New enum.
7247 (raw_breakpoint, struct process_info): Forward declare.
7248 (Z_packet_to_target_hw_bp_type): Delete declaration.
7249 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
7250 (set_gdb_breakpoint, delete_gdb_breakpoint)
7251 (clear_breakpoint_conditions): New declarations.
7252 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
7253 (breakpoint_inserted_here): Update comment.
7254 (add_breakpoint_condition, add_breakpoint_commands): Replace
7255 address parameter with a breakpoint pointer parameter.
7256 (gdb_breakpoint_here): Update comment.
7257 (delete_gdb_breakpoint_at): Delete.
7258 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
7259 * server.c (process_point_options): Take a struct breakpoint
7260 pointer instead of an address. Adjust.
7261 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
7262 delete_gdb_breakpoint.
7263 * spu-low.c (spu_target_ops): Install NULL as
7264 supports_z_point_type method.
7265 * target.h: Include mem-break.h.
7266 (struct target_ops) <prepare_to_access_memory>: Update comment.
7267 <supports_z_point_type>: New field.
7268 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
7269 instead of a char. Also take a raw breakpoint pointer.
7270 * win32-arm-low.c (the_low_target): Install NULL as
7271 supports_z_point_type.
7272 * win32-i386-low.c (i386_supports_z_point_type): New function.
7273 (i386_insert_point, i386_remove_point): Adjust to new interface.
7274 (the_low_target): Install i386_supports_z_point_type.
7275 * win32-low.c (win32_supports_z_point_type): New function.
7276 (win32_insert_point, win32_remove_point): Adjust to new interface.
7277 (win32_target_ops): Install win32_supports_z_point_type.
7278 * win32-low.h (struct win32_target_ops):
7279 <supports_z_point_type>: New method.
7280 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
7281 instead of a char. Also take a raw breakpoint pointer.
7282
7283 2014-05-20 Pedro Alves <palves@redhat.com>
7284
7285 * mem-break.h: Include break-common.h.
7286 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
7287 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
7288 (Z_packet_to_target_hw_bp_type): New declaration.
7289 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
7290 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
7291 (Z_PACKET_ACCESS_WP): Delete macros.
7292 (Z_packet_to_hw_type): Delete function.
7293 * i386-low.h: Don't include break-common.h here.
7294 (Z_packet_to_hw_type): Delete declaration.
7295 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
7296 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
7297 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
7298 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
7299 * linux-aarch64-low.c: Don't include break-common.h here.
7300 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
7301 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
7302 (Z_packet_to_target_hw_bp_type): Delete function.
7303 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
7304 function.
7305 (mips_insert_point, mips_remove_point): Use
7306 Z_packet_to_target_hw_bp_type.
7307
7308 2014-05-20 Pedro Alves <palves@redhat.com>
7309
7310 * linux-aarch64-low.c: Include break-common.h.
7311 (enum target_point_type): Delete.
7312 (Z_packet_to_point_type): Rename to ...
7313 (Z_packet_to_target_hw_bp_type): ... this, and return a
7314 target_hw_bp_type instead.
7315 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
7316 instead of an enum target_point_type.
7317 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
7318 breakpoint type.
7319 (aarch64_dr_state_insert_one_point)
7320 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
7321 (aarch64_handle_aligned_watchpoint)
7322 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
7323 Take an enum target_hw_bp_type instead of an enum
7324 target_point_type.
7325 (aarch64_supports_z_point_type): New function.
7326 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
7327 use Z_packet_to_target_hw_bp_type.
7328
7329 2014-05-20 Joel Brobecker <brobecker@adacore.com>
7330
7331 * configure.ac: Only use -Werror by default when DEVELOPMENT
7332 is true.
7333 * configure: Regenerate.
7334
7335 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7336
7337 Fix gdbserver qGetTLSAddr for x86_64 -m32.
7338 * linux-x86-low.c (X86_64_USER_REGS): New.
7339 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
7340
7341 2014-04-28 Yao Qi <yao@codesourcery.com>
7342
7343 * Makefile.in (i386-avx512.c): Fix the typo of generated file
7344 name.
7345
7346 2014-04-25 Pedro Alves <palves@redhat.com>
7347
7348 PR server/16255
7349 * linux-low.c (linux_attach_fail_reason_string): New function.
7350 (linux_attach_lwp): Delete.
7351 (linux_attach_lwp_1): Rename to ...
7352 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
7353 argument. Remove "initial" parameter. Return int instead of
7354 void. Don't error or warn here.
7355 (linux_attach): Adjust to call linux_attach_lwp. Call error on
7356 failure to attach to the tgid. Call warning when failing to
7357 attach to an lwp.
7358 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
7359 argument. Remove "initial" parameter. Return int instead of
7360 void. Don't error or warn here.
7361 (linux_attach_fail_reason_string): New declaration.
7362 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
7363 interface change. Use linux_attach_fail_reason_string.
7364
7365 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7366 Walfred Tedeschi <walfred.tedeschi@intel.com>
7367
7368 * Makefile.in: Added rules to handle new files
7369 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
7370 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
7371 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
7372 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
7373 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
7374 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
7375 x32-avx512-linux.o.
7376 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
7377 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
7378 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
7379 i386/x32-avx512.xml.
7380 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
7381 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
7382 i386/x32-avx512-linux.xml.
7383 * i387-fp.c (num_avx512_k_registers): New constant for number
7384 of K registers.
7385 (num_avx512_zmmh_low_registers): New constant for number of
7386 lower ZMM registers (0-15).
7387 (num_avx512_zmmh_high_registers): New constant for number of
7388 higher ZMM registers (16-31).
7389 (num_avx512_ymmh_registers): New contant for number of higher
7390 YMM registers (ymm16-31 added by avx521 on x86_64).
7391 (num_avx512_xmm_registers): New constant for number of higher
7392 XMM registers (xmm16-31 added by AVX512 on x86_64).
7393 (struct i387_xsave): Add space for AVX512 registers.
7394 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
7395 Add code to handle AVX512 registers.
7396 (i387_xsave_to_cache): Add code to handle AVX512 registers.
7397 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
7398 prototypei from generated file.
7399 (tdesc_amd64_avx512_linux): Likewise.
7400 (init_registers_x32_avx512_linux): Likewise.
7401 (tdesc_x32_avx512_linux): Likewise.
7402 (init_registers_i386_avx512_linux): Likewise.
7403 (tdesc_i386_avx512_linux): Likewise.
7404 (x86_64_regmap): Add AVX512 registers.
7405 (x86_linux_read_description): Add code to handle AVX512 XSTATE
7406 mask.
7407 (initialize_low_arch): Add code to initialize AVX512 registers.
7408
7409 2014-04-23 Pedro Alves <palves@redhat.com>
7410
7411 * mem-break.c (find_gdb_breakpoint_at): Make static.
7412 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
7413
7414 2014-04-23 Pedro Alves <palves@redhat.com>
7415
7416 * i386-low.c: Don't include break-common.h here.
7417 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
7418 prototype to take target_hw_bp_type as argument instead of a Z
7419 packet char.
7420 * i386-low.h: Include break-common.h here.
7421 (Z_packet_to_hw_type): Declare.
7422 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
7423 prototypes.
7424 * linux-x86-low.c (x86_insert_point): Convert the packet number to
7425 a target_hw_bp_type before calling i386_low_insert_watchpoint.
7426 (x86_remove_point): Convert the packet number to a
7427 target_hw_bp_type before calling i386_low_remove_watchpoint.
7428 * win32-i386-low.c (i386_insert_point): Convert the packet number
7429 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
7430 (i386_remove_point): Convert the packet number to a
7431 target_hw_bp_type before calling i386_low_remove_watchpoint.
7432
7433 2014-04-23 Pedro Alves <palves@redhat.com>
7434
7435 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
7436
7437 2014-04-10 Pedro Alves <palves@redhat.com>
7438
7439 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7440 Check if the condition or command is NULL before checking if the
7441 breakpoint is known. On success, return true.
7442 * mem-break.h (add_breakpoint_condition): Document return.
7443 (add_breakpoint_commands): Add describing comment.
7444 * server.c (skip_to_semicolon): New function.
7445 (process_point_options): Use it.
7446
7447 2014-04-09 Pedro Alves <palves@redhat.com>
7448
7449 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
7450 to lwpid_of.
7451
7452 2014-02-27 Pedro Alves <palves@redhat.com>
7453
7454 PR 12702
7455 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
7456 macros.
7457 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
7458 output.
7459 (last_thread_of_process_p): Take a PID argument instead of a
7460 thread pointer.
7461 (linux_wait_for_lwp): Delete.
7462 (num_lwps, check_zombie_leaders, not_stopped_callback): New
7463 functions.
7464 (linux_low_filter_event): New function, party factored out from
7465 linux_wait_for_event.
7466 (linux_wait_for_event): Rename to ...
7467 (linux_wait_for_event_filtered): ... this. Add new filter ptid
7468 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
7469 sigsuspend. Check for zombie leaders.
7470 (linux_wait_for_event): Reimplement as wrapper around
7471 linux_wait_for_event_filtered.
7472 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
7473 a normal or signal exit is seen, it's the whole process exiting.
7474 (wait_for_sigstop): No longer a for_each_inferior callback.
7475 Rewrite on top of linux_wait_for_event_filtered.
7476 (stop_all_lwps): Call wait_for_sigstop directly.
7477 * server.c (resume, handle_target_event): Handle
7478 TARGET_WAITKIND_NO_RESUMED.
7479
7480 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7481
7482 * win32-low.c (psapi_get_dll_name,
7483 * win32_CreateToolhelp32Snapshot): Delete.
7484 (win32_CreateToolhelp32Snapshot, win32_Module32First)
7485 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
7486 Delete.
7487 (handle_load_dll): Add function description.
7488 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
7489
7490 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7491
7492 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
7493 Add comment.
7494 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
7495 base address when calling win32_add_one_solib.
7496 (handle_load_dll): Delete local variable load_addr.
7497 Remove 0x1000 offset applied to DLL base address when calling
7498 win32_add_one_solib.
7499 (handle_unload_dll): Add comment.
7500
7501 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7502
7503 * win32-low.c (win32_add_all_dlls): Renames
7504 win32_ensure_ntdll_loaded. Rewrite function documentation.
7505 Adjust implementation to always load all DLLs.
7506 Add 0x1000 offset to DLL base address when calling
7507 win32_add_one_solib.
7508 (child_initialization_done): New static global.
7509 (do_initial_child_stuff): Set child_initialization_done to
7510 zero during child initialization, and 1 after. Replace call
7511 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
7512 Add comment.
7513 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
7514 (handle_unload_dll): Add function documentation.
7515 (get_child_debug_event): Ignore load and unload DLL events
7516 during child initialization.
7517
7518 2014-02-20 Doug Evans <dje@google.com>
7519
7520 Remove global all_lwps.
7521 * inferiors.h (ptid_of): Move here from linux-low.h.
7522 (pid_of, lwpid_of): Ditto.
7523 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
7524 parameter is a struct thread_info * now.
7525 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
7526 directly. Pass &all_threads to find_inferior instead of &all_lwps.
7527 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
7528 directly.
7529 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
7530 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
7531 * linux-arm-low.c (update_registers_callback): Update, "entry"
7532 parameter is a struct thread_info * now.
7533 Fetch lwpid from current_inferior directly.
7534 (arm_insert_point): Pass &all_threads to find_inferior instead of
7535 &all_lwps.
7536 (arm_remove_point): Ditto.
7537 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
7538 (arm_prepare_to_resume): Fetch pid from thread.
7539 (arm_read_description): Fetch lwpid from current_inferior directly.
7540 * linux-low.c (all_lwps): Delete.
7541 (delete_lwp): Delete call to remove_inferior.
7542 (handle_extended_wait): Fetch lwpid from thread.
7543 (add_lwp): Don't set lwp->entry.id. Remove call to
7544 add_inferior_to_list.
7545 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
7546 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
7547 (kill_one_lwp_callback): Ditto.
7548 (linux_kill): Don't dereference NULL pointer.
7549 Fetch ptid,lwpid from thread.
7550 (get_detach_signal): Fetch ptid from thread.
7551 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
7552 Simplify call to regcache_invalidate_thread.
7553 (delete_lwp_callback): Update, "entry" parameter is a
7554 struct thread_info * now. Fetch pid from thread.
7555 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
7556 (status_pending_p_callback): Update, "entry" parameter is a
7557 struct thread_info * now. Fetch ptid from thread.
7558 (find_lwp_pid): Update, "entry" parameter is a
7559 struct thread_info * now.
7560 (linux_wait_for_lwp): Fetch pid from thread.
7561 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
7562 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
7563 (enqueue_one_deferred_signal): Fetch lwpid from thread.
7564 (dequeue_one_deferred_signal): Ditto.
7565 (cancel_breakpoint): Fetch ptid from current_inferior.
7566 (linux_wait_for_event): Pass &all_threads to find_inferior,
7567 not &all_lwps. Fetch ptid, lwpid from thread.
7568 (count_events_callback): Update, "entry" parameter is a
7569 struct thread_info * now.
7570 (select_singlestep_lwp_callback): Ditto.
7571 (select_event_lwp_callback): Ditto.
7572 (cancel_breakpoints_callback): Ditto.
7573 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
7574 not &all_lwps.
7575 (select_event_lwp): Ditto. Fetch ptid from event_thread.
7576 (unsuspend_one_lwp): Update, "entry" parameter is a
7577 struct thread_info * now.
7578 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
7579 not &all_lwps.
7580 (linux_stabilize_threads): Ditto. And for for_each_inferior.
7581 Fetch lwpid from thread, not lwp.
7582 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
7583 Pass &all_threads to find_inferior, not &all_lwps.
7584 (send_sigstop): Fetch lwpid from thread, not lwp.
7585 (send_sigstop_callback): Update, "entry" parameter is a
7586 struct thread_info * now.
7587 (suspend_and_send_sigstop_callback): Ditto.
7588 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
7589 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
7590 struct thread_info * now.
7591 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
7592 from thread, lwp.
7593 (lwp_running): Update, "entry" parameter is a
7594 struct thread_info * now.
7595 (stop_all_lwps): Fetch ptid from thread.
7596 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
7597 (linux_resume_one_lwp): Fetch lwpid from thread.
7598 (linux_set_resume_request): Update, "entry" parameter is a
7599 struct thread_info * now. Fetch pid, lwpid from thread.
7600 (resume_status_pending_p): Update, "entry" parameter is a
7601 struct thread_info * now.
7602 (need_step_over_p): Ditto. Fetch lwpid from thread.
7603 (start_step_over): Fetch lwpid from thread.
7604 (linux_resume_one_thread): Update, "entry" parameter is a
7605 struct thread_info * now. Fetch lwpid from thread.
7606 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
7607 (proceed_one_lwp): Update, "entry" parameter is a
7608 struct thread_info * now. Fetch lwpid from thread.
7609 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
7610 struct thread_info * now.
7611 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
7612 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
7613 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
7614 directly.
7615 (regsets_store_inferior_registers): Ditto.
7616 (fetch_register, store_register): Ditto.
7617 (linux_read_memory, linux_write_memory): Ditto.
7618 (linux_request_interrupt): Ditto.
7619 (linux_read_auxv): Ditto.
7620 (linux_xfer_siginfo): Ditto.
7621 (linux_qxfer_spu): Ditto.
7622 (linux_qxfer_libraries_svr4): Ditto.
7623 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
7624 moved to inferiors.h.
7625 (get_lwp): Delete.
7626 (get_thread_lwp): Update.
7627 (struct lwp_info): Delete member "entry". Simplify comment for
7628 member "thread".
7629 (all_lwps): Delete.
7630 * linux-mips-low.c (mips_read_description): Fetch lwpid from
7631 current_inferior directly.
7632 (update_watch_registers_callback): Update, "entry" parameter is a
7633 struct thread_info * now. Fetch pid from thread.
7634 (mips_linux_prepare_to_resume): Fetch ptid from thread.
7635 (mips_insert_point): Fetch lwpid from current_inferior.
7636 Pass &all_threads to find_inferior, not &all_lwps.
7637 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
7638 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
7639 directly.
7640 (mips_stopped_data_address): Ditto.
7641 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
7642 directly.
7643 * linux-tile-low.c (tile_arch_setup): Ditto.
7644 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
7645 (update_debug_registers_callback): Update, "entry" parameter is a
7646 struct thread_info * now. Fetch pid from thread.
7647 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
7648 Pass &all_threads to find_inferior, not &all_lwps.
7649 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
7650 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
7651 Pass &all_threads to find_inferior, not &all_lwps.
7652 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
7653 (i386_dr_low_get_status): Ditto.
7654 (x86_linux_prepare_to_resume): Fetch ptid from thread.
7655 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
7656 (x86_linux_read_description): Ditto.
7657 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
7658
7659 2014-02-20 Doug Evans <dje@google.com>
7660
7661 * inferiors.c (get_first_inferior): Fix buglet.
7662
7663 2014-02-19 Doug Evans <dje@google.com>
7664
7665 * gdbthread.h (add_thread): Change result type to struct thread_info *.
7666 * inferiors.c (add_thread): Change result type to struct thread_info *.
7667 All callers updated.
7668 (add_lwp): Call add_thread here instead of in callers.
7669 All callers updated.
7670 * linux-low.h (get_lwp_thread): Rewrite.
7671 (struct lwp_info): New member "thread".
7672
7673 2014-02-19 Doug Evans <dje@google.com>
7674
7675 * linux-low.c (add_lwp): Change result to struct lwp_info *.
7676 All callers updated.
7677
7678 2014-02-19 Doug Evans <dje@google.com>
7679
7680 * inferiors.c (add_thread): Fix whitespace.
7681
7682 2014-02-19 Doug Evans <dje@google.com>
7683
7684 * dll.c (clear_dlls): Replace accessing list implemention details
7685 with API function.
7686 * gdbthread.h (get_first_thread): Declare.
7687 * inferiors.c (for_each_inferior_with_data): New function.
7688 (get_first_thread): New function.
7689 (find_thread_ptid): Simplify.
7690 (get_first_inferior): New function.
7691 (clear_list): Delete.
7692 (one_inferior_p): New function.
7693 (clear_inferior_list): New function.
7694 (clear_inferiors): Update.
7695 * inferiors.h (for_each_inferior_with_data): Declare.
7696 (clear_inferior_list): Declare.
7697 (one_inferior_p): Declare.
7698 (get_first_inferior): Declare.
7699 * linux-low.c (linux_wait_for_event): Replace accessing list
7700 implemention details with API function.
7701 * server.c (target_running): Ditto.
7702 (accumulate_file_name_length): New function.
7703 (emit_dll_description): New function.
7704 (handle_qxfer_libraries): Replace accessing list implemention
7705 details with API function.
7706 (handle_qxfer_threads_worker): New function.
7707 (handle_qxfer_threads_proper): Replace accessing list implemention
7708 details with API function.
7709 (handle_query): Ditto.
7710 (visit_actioned_threads_callback_ftype): New typedef.
7711 (visit_actioned_threads_data): New struct.
7712 (visit_actioned_threads): Rewrite to be find_inferior callback.
7713 (resume): Call find_inferior.
7714 (handle_status): Replace accessing list implemention
7715 details with API function.
7716 (process_serial_event): Replace accessing list implemention details
7717 with API function.
7718 * target.c (set_desired_inferior): Replace accessing list implemention
7719 details with API function.
7720 * tracepoint.c (same_process_p): New function.
7721 (gdb_agent_about_to_close): Replace accessing list implemention
7722 details with API function.
7723 * win32-low.c (child_delete_thread): Replace accessing list
7724 implemention details with API function.
7725 (match_dll_by_basename): New function.
7726 (dll_is_loaded_by_basename): New function.
7727 (win32_ensure_ntdll_loaded): Replace accessing list implemention
7728 details call to dll_is_loaded_by_basename.
7729
7730 2014-02-19 Doug Evans <dje@google.com>
7731
7732 * dll.h (struct dll_info): Add comment.
7733 * gdbthread.h (struct thread_info): Add comment.
7734 (current_ptid): Simplify.
7735 * inferiors.c (add_process): Update.
7736 (remove_process): Update.
7737 * inferiors.h (struct process_info): Rename member "head" to "entry".
7738 * linux-low.c (delete_lwp): Update.
7739 (add_lwp): Update.
7740 (last_thread_of_process_p): Update.
7741 (kill_one_lwp_callback, linux_kill): Update.
7742 (status_pending_p_callback): Update.
7743 (wait_for_sigstop): Update. Simplify read of ptid.
7744 (start_step_over): Update.
7745 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
7746 (get_lwp_thread): Update.
7747 (struct lwp_info): Rename member "head" to "entry".
7748 * regcache.h (inferior_list_entry): Delete.
7749 * server.c (kill_inferior_callback): Update.
7750 (detach_or_kill_inferior_callback): Update.
7751 (print_started_pid): Update.
7752 (print_attached_pid): Update.
7753 (process_serial_event): Simplify read of ptid.
7754 * thread-db.c (thread_db_create_event): Update.
7755 (thread_db_get_tls_address): Update.
7756 * win32-low.c (current_inferior_ptid): Simplify.
7757
7758 2014-02-19 Tom Tromey <tromey@redhat.com>
7759
7760 * target.h (struct target_ops) <supports_btrace>: Add target_ops
7761 argument.
7762 (target_supports_btrace): Update.
7763
7764 2014-02-14 Yao Qi <yao@codesourcery.com>
7765
7766 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
7767 (rsp-low-ipa.o): New target.
7768
7769 2014-02-12 Tom Tromey <tromey@redhat.com>
7770
7771 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
7772 convert_ascii_to_int.
7773 * regcache.c (registers_to_string): Likewise.
7774 * remote-utils.c (decode_M_packet): Likewise.
7775 * server.c (process_serial_event): Likewise.
7776
7777 2014-02-12 Tom Tromey <tromey@redhat.com>
7778
7779 * server.c (handle_query, handle_v_run): Use hex2bin, not
7780 unhexify.
7781 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
7782
7783 2014-02-12 Tom Tromey <tromey@redhat.com>
7784
7785 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
7786 convert_int_to_ascii.
7787 * regcache.c (registers_to_string, collect_register_as_string):
7788 Likewise.
7789 * remote-utils.c (look_up_one_symbol, relocate_instruction):
7790 Likewise.
7791 * server.c (process_serial_event): Likewise.
7792 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
7793 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
7794
7795 2014-02-12 Tom Tromey <tromey@redhat.com>
7796
7797 * remote-utils.c (look_up_one_symbol, monitor_output): Use
7798 bin2hex, not hexify.
7799 * tracepoint.c (cmd_qtstatus): Likewise.
7800
7801 2014-02-12 Tom Tromey <tromey@redhat.com>
7802
7803 * remote-utils.c (monitor_output): Pass explicit length to
7804 hexify.
7805
7806 2014-02-12 Tom Tromey <tromey@redhat.com>
7807
7808 * tracepoint.c: Include rsp-low.h.
7809 * server.c: Include rsp-low.h.
7810 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
7811 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
7812 declare.
7813 * remote-utils.c: Include rsp-low.h.
7814 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
7815 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
7816 (convert_int_to_ascii, convert_ascii_to_int): Move to
7817 common/rsp-low.c.
7818 * regcache.c: Include rsp-low.h.
7819 * ax.c: Include rsp-low.h.
7820 * Makefile.in (SFILES): Add common/rsp-low.c.
7821 (OBS): Add rsp-low.o.
7822 (rsp-low.o): New target.
7823
7824 2014-02-12 Tom Tromey <tromey@redhat.com>
7825
7826 * utils.h (pulongest, plongest, phex_nz): Don't declare.
7827 Include print-utils.h.
7828 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7829 (plongest, thirty_two, phex_nz): Remove.
7830 * Makefile.in (SFILES): Add common/print-utils.c.
7831 (OBS): Add print-utils.o.
7832 (print-utils-ipa.o): New target.
7833 (print-utils.o): New target.
7834 (IPA_OBJS): Add print-utils-ipa.o.
7835
7836 2014-02-06 Tom Tromey <tromey@redhat.com>
7837
7838 * Makefile.in (SFILES): Fix indentation.
7839
7840 2014-02-05 Doug Evans <dje@google.com>
7841
7842 * linux-low.c (linux_wait_for_event): Improve comment.
7843 (linux_wait_1): Keep current_inferior in sync with event_child.
7844
7845 2014-01-22 Doug Evans <dje@google.com>
7846
7847 * gdbthread.h (gdb_id_to_thread): Delete, unused.
7848
7849 2014-01-22 Doug Evans <dje@google.com>
7850
7851 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
7852 * configure: Regenerate.
7853 * config.in: Regenerate.
7854 * Makefile.in (SFILES): Add debug.c.
7855 (OBS): Add debug.o.
7856 * debug.c: New file.
7857 * debug.h: New file.
7858 * linux-aarch64-low.c (*): Update all debugging printfs to use
7859 debug_printf instead of fprintf.
7860 * linux-arm-low.c (*): Ditto.
7861 * linux-cris-low.c (*): Ditto.
7862 * linux-crisv32-low.c (*): Ditto.
7863 * linux-m32r-low.c (*): Ditto.
7864 * linux-sparc-low.c (*): Ditto.
7865 * linux-x86.c (*): Ditto.
7866 * linux-low.c (*): Ditto.
7867 (linux_wait_1): Add calls to debug_enter, debug_exit.
7868 (linux_wait): Remove redundant debugging printf.
7869 (stop_all_lwps): Add calls to debug_enter, debug_exit.
7870 (linux_resume, unstop_all_lwps): Ditto.
7871 * mem-break.c (*): Update all debugging printfs to use
7872 debug_printf instead of fprintf.
7873 * remote-utils.c (*): Ditto.
7874 * thread-db.c (*): Ditto.
7875 * server.c #include <ctype.h>, "gdb_vecs.h".
7876 (debug_threads): Moved to debug.c.
7877 (*): Update all debugging printfs to use debug_printf instead of
7878 fprintf.
7879 (start_inferior): Replace call to fflush with call to debug_flush.
7880 (monitor_show_help): Mention set debug-format.
7881 (parse_debug_format_options): New function.
7882 (handle_monitor_command): Handle "monitor set debug-format".
7883 (gdbserver_usage): Mention --debug-format.
7884 (main): Parse --debug-format.
7885 * server.h (debug_threads): Declaration moved to debug.h.
7886 #include "debug.h".
7887 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
7888 trace_debug_1 that uses debug_printf.
7889 (tracepoint_look_up_symbols): Update all debugging printfs to use
7890 debug_printf instead of fprintf.
7891
7892 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7893
7894 * linux-xtensa-low.c: Include asm/ptrace.h instead of
7895 sys/ptrace.h.
7896
7897 2014-01-17 Pedro Alves <palves@redhat.com>
7898
7899 PR build/16445
7900 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
7901 defined after including gdb_proc_service.h.
7902
7903 2014-01-16 Doug Evans <dje@google.com>
7904
7905 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
7906 (match_dll): Use it.
7907
7908 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7909
7910 * target.h (target_ops) <read_btrace>: Change parameters and
7911 return type to allow error reporting.
7912 * server.c (handle_qxfer_btrace): Support delta reads. Pass
7913 trace reading errors on.
7914 * linux-low.c (linux_low_read_btrace): Pass trace reading
7915 errors on.
7916 (linux_low_disable_btrace): New.
7917
7918 2014-01-15 Doug Evans <dje@google.com>
7919
7920 * inferiors.c (thread_id_to_gdb_id): Delete.
7921 * inferiors.h (thread_id_to_gdb_id): Delete.
7922
7923 2014-01-13 Eli Zaretskii <eliz@gnu.org>
7924
7925 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
7926 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
7927 versions.
7928
7929 2014-01-08 Pedro Alves <palves@redhat.com>
7930
7931 * server.c (handle_status): Don't discard previous queued stop
7932 replies or thread's pending status here.
7933 (main) <disconnection>: Do it here instead.
7934
7935 2014-01-08 Pedro Alves <palves@redhat.com>
7936
7937 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
7938 * server.c (visit_actioned_threads, handle_pending_status): New
7939 function.
7940 (handle_v_cont): Factor out parts to ...
7941 (resume): ... this new function. If in all-stop, and a thread
7942 being resumed has a pending status, report it without actually
7943 resuming.
7944 (myresume): Adjust to use the new 'resume' function.
7945 (clear_pending_status_callback, set_pending_status_callback)
7946 (find_status_pending_thread_callback): New functions.
7947 (handle_status): Handle the case of multiple threads having
7948 interesting statuses to report. Report threads' real last signal
7949 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
7950 with an interesting thread to report the status for, instead of
7951 always reporting the status of the first thread.
7952
7953 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7954
7955 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
7956 * gdbreplay.c (gdbreplay_version): Likewise.
7957
7958 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
7959
7960 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
7961 iov.iov_len with the real length in use.
7962
7963 2013-12-13 Joel Brobecker <brobecker@adacore.com>
7964
7965 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
7966 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
7967 for all targets that use win32-low.c.
7968 * win32-low.c (win32_ensure_ntdll_loaded): New function.
7969 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
7970
7971 2013-12-13 Pedro Alves <palves@redhat.com>
7972
7973 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
7974 if equal to TARGET_WAITKIND_LOADED.
7975 * win32-low.c (cached_status): New static global.
7976 (win32_wait): Add declaration.
7977 (do_initial_child_stuff): Flush all initial pending debug events
7978 up to the initial breakpoint.
7979 (win32_wait): If CACHED_STATUS was set, return that instead
7980 of doing a real wait. Remove the code resuming the execution
7981 of the inferior after receiving a TARGET_WAITKIND_LOADED event
7982 during the initial phase. Also remove the code changing
7983 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
7984 TARGET_WAITKIND_STOPPED.
7985
7986 2013-12-11 Yao Qi <yao@codesourcery.com>
7987
7988 * notif.c (handle_notif_ack): Return 0 if no notification
7989 matches.
7990
7991 2013-11-20 Doug Evans <dje@google.com>
7992
7993 * linux-low.c (linux_set_resume_request): Fix comment.
7994
7995 2013-11-20 Doug Evans <dje@google.com>
7996
7997 * linux-low.c (resume_status_pending_p): Tweak comment.
7998
7999 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
8000
8001 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
8002 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
8003 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
8004 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
8005 (srv_amd64_regobj): Add amd64-mpx.o.
8006 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
8007 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
8008 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
8009 * i387-fp.c (num_pl_bnd_register) Added constant.
8010 (num_pl_bnd_cfg_registers) Added constant.
8011 (struct i387_xsave) Added reserved area and MPX fields.
8012 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
8013 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
8014 function.
8015 (tdesc_i386_mpx_linux): Add MPX amd64 target.
8016 (init_registers_amd64_mpx_linux): Declare new function.
8017 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
8018 (x86_64_regmap): Add MPX registers.
8019 (x86_linux_read_description): Add MPX case.
8020 (initialize_low_arch): Initialize MPX targets.
8021
8022 2013-11-18 Tom Tromey <tromey@redhat.com>
8023
8024 * configure: Rebuild.
8025 * configure.ac: Don't check for stdlib.h.
8026 * gdbreplay.c: Unconditionally include stdlib.h.
8027
8028 2013-11-18 Tom Tromey <tromey@redhat.com>
8029
8030 * config.in: Rebuild.
8031 * configure: Rebuild.
8032 * configure.ac: Don't use AC_HEADER_DIRENT.
8033
8034 2013-11-18 Tom Tromey <tromey@redhat.com>
8035
8036 * server.h: Don't check HAVE_STRING_H.
8037 * gdbreplay.c: Don't check HAVE_STRING_H.
8038 * configure: Rebuild.
8039
8040 2013-11-18 Tom Tromey <tromey@redhat.com>
8041
8042 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
8043 LIBGNU.
8044
8045 2013-11-08 Tom Tromey <tromey@redhat.com>
8046
8047 * configure, config.in: Rebuild.
8048 * configure.ac: Remove unused configury.
8049
8050 2013-11-08 Tom Tromey <tromey@redhat.com>
8051
8052 * acinclude.m4: Include common.m4, codeset.m4.
8053 * configure, config.in: Rebuild.
8054 * configure.ac: Use GDB_AC_COMMON.
8055
8056 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
8057
8058 * linux-s390-low.c (HWCAP_S390_TE): New define.
8059 (s390_arch_setup): Consider the TE field in the HWCAP for
8060 determining 'have_regset_tdb'.
8061
8062 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
8063
8064 PR gdb/16014
8065 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
8066 call to sizeof.
8067
8068 2013-10-02 Pedro Alves <palves@redhat.com>
8069
8070 * server.c (process_serial_event): Don't output "GDBserver
8071 exiting" if GDB is connected through stdio.
8072 * target.c (mywait): Likewise, be silent if GDB is connected
8073 through stdio.
8074
8075 2013-10-01 Joel Brobecker <brobecker@adacore.com>
8076
8077 * lynx-low.c (lynx_add_threads_after_attach): New function.
8078 (lynx_attach): Remove call to add_thread. Add call to
8079 lynx_add_threads_after_attach instead.
8080
8081 2013-09-28 Mike Frysinger <vapier@gentoo.org>
8082
8083 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
8084 * config.in, configure: Regenerated.
8085
8086 2013-09-18 Yao Qi <yao@codesourcery.com>
8087
8088 PR server/15959
8089 * server.c (start_inferior): Clear 'resume_info'.
8090
8091 2013-09-16 Jiong Wang <jiwang@tilera.com>
8092
8093 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
8094 for each register.
8095
8096 2013-09-16 Jiong Wang <jiwang@tilera.com>
8097
8098 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
8099 linux-tile-low.o to srv_tgtobj.
8100
8101 2013-09-16 Will Newton <will.newton@linaro.org>
8102
8103 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
8104 out regs.
8105
8106 2013-09-06 Pedro Alves <palves@redhat.com>
8107
8108 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
8109 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
8110 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
8111 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
8112 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
8113 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
8114
8115 2013-09-06 Pedro Alves <palves@redhat.com>
8116
8117 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
8118 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
8119
8120 2013-09-06 Pedro Alves <palves@redhat.com>
8121
8122 * linux-amd64-ipa.c: Include tracepoint.h.
8123 * linux-i386-ipa.c: Include tracepoint.h.
8124
8125 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
8126
8127 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
8128 (ps_get_thread_area): New function.
8129
8130 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
8131
8132 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
8133 (initialize_low_arch): Call init_registers_crisv32 rather than
8134 init_register_crisv32.
8135
8136 2013-09-05 Pedro Alves <palves@redhat.com>
8137
8138 * server.h (handle_vFile, hostio_last_error_from_errno): Move
8139 to ...
8140 * hostio.h: ... this new file.
8141 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
8142 win32-low.c: Include hostio.h.
8143
8144 2013-09-05 Pedro Alves <palves@redhat.com>
8145
8146 * server.h (gdb_client_data, handler_func, callback_handler_func)
8147 (delete_file_handler, add_file_handler, append_callback_event)
8148 (delete_callback_event, start_event_loop, initialize_event_loop):
8149 Move to event-loop.h and include it.
8150 * event-loop.h: New file.
8151
8152 2013-09-05 Pedro Alves <palves@redhat.com>
8153
8154 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
8155 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
8156 (loaded_dll, unloaded_dll): Move to ...
8157 * dll.h: ... this new file.
8158 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
8159
8160 2013-09-05 Pedro Alves <palves@redhat.com>
8161
8162 * server.h (current_process, get_thread_process, all_processes)
8163 (add_inferior_to_list, for_each_inferior, current_inferior)
8164 (remove_inferior, add_process, remove_process, find_process_pid)
8165 (have_started_inferiors_p, have_attached_inferiors_p)
8166 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
8167 (clear_inferiors, find_inferior, find_inferior_id)
8168 (inferior_target_data, set_inferior_target_data)
8169 (inferior_regcache_data, set_inferior_regcache_data): Move to
8170 inferiors.h, and include it.
8171 * inferiors.h: New file.
8172
8173 2013-09-05 Pedro Alves <palves@redhat.com>
8174
8175 * server.h (struct emit_ops, current_insn_ptr, emit_error):
8176 Move ...
8177 * ax.h: ... here.
8178
8179 2013-09-05 Pedro Alves <palves@redhat.com>
8180
8181 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
8182 tracepoint.h.
8183 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
8184 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
8185 (handle_tracepoint_general_set, handle_tracepoint_query)
8186 (tracepoint_finished_step, tracepoint_was_hit)
8187 (release_while_stepping_state_list, current_traceframe)
8188 (in_readonly_region, traceframe_read_mem)
8189 (fetch_traceframe_registers, traceframe_read_sdata)
8190 (traceframe_read_info, struct fast_tpoint_collect_status)
8191 (fast_tracepoint_collecting, force_unlock_trace_buffer)
8192 (handle_tracepoit_bkpts, initialize_low_tracepoint)
8193 (supply_fast_tracepoint_registers)
8194 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
8195 (ipa_tdesc, claim_trampoline_space)
8196 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
8197 (agent_mem_read, agent_get_trace_state_variable_value)
8198 (agent_set_trace_state_variable_value, agent_tsv_read)
8199 (agent_mem_read_string, get_raw_reg_func_addr)
8200 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
8201 * tracepoint.h: ... this new file.
8202
8203 2013-09-05 Pedro Alves <palves@redhat.com>
8204
8205 * server.h (perror_with_name, error, fatal, warning, paddress)
8206 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
8207 include it.
8208 * utils.h: New file.
8209
8210 2013-09-05 Pedro Alves <palves@redhat.com>
8211
8212 * server.h (remote_debug, noack_mode, transport_is_reliable)
8213 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
8214 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
8215 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
8216 (write_enn, initialize_async_io, enable_async_io)
8217 (disable_async_io, check_remote_input_interrupt_request)
8218 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
8219 (dead_thread_notify, prepare_resume_reply)
8220 (decode_address_to_semicolon, decode_address, decode_m_packet)
8221 (decode_M_packet, decode_X_packet, decode_xfer_write)
8222 (decode_search_memory_packet, unhexify, hexify)
8223 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
8224 (look_up_one_symbol, relocate_instruction)
8225 (monitor_output): Move to remote-utils.h, and include it.
8226 * remote-utils.h: New file.
8227
8228 2013-09-05 Pedro Alves <palves@redhat.com>
8229
8230 * server.h (_): Delete.
8231
8232 2013-09-02 Pedro Alves <palves@redhat.com>
8233
8234 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
8235 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
8236 allocated.
8237 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
8238
8239 2013-09-02 Pierre Muller <muller@sourceware.org>
8240
8241 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
8242 or WriteProcessMemory complete successfully and handle
8243 ERROR_PARTIAL_COPY error.
8244
8245 2013-09-02 Pedro Alves <palves@redhat.com>
8246
8247 * server.c (gdb_read_memory): Return -1 on traceframe memory read
8248 error instead of EIO.
8249
8250 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8251
8252 PR server/15604
8253 * linux-low.c: Include filestuff.h.
8254 (linux_create_inferior) <pid == 0>: Call close_most_fds.
8255 * lynx-low.c: Include filestuff.h.
8256 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
8257 * server.c: Include filestuff.h.
8258 (main): Call notice_open_fds.
8259 * spu-low.c: Include filestuff.h.
8260 (spu_create_inferior) <pid == 0>: Call close_most_fds.
8261
8262 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
8263
8264 * Makefile.in: Explain why ../target and ../nat are not
8265 listed as include file search paths.
8266 (linux-waitpid.o): New object file rule.
8267 * configure.srv (srv_native_linux_obj): New variable.
8268 Replace all occurrences of linux native object files with
8269 $srv_native_linux_obj.
8270 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
8271 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
8272 (linux_enable_event_reporting): Remove declaration.
8273 (my_waitpid): Moved to common/linux-waitpid.c.
8274 (linux_wait_for_event): Pass ptid when calling
8275 linux_enable_event_reporting.
8276 (linux_supports_tracefork_flag): Remove.
8277 (linux_enable_event_reporting): Likewise.
8278 (linux_tracefork_grandchild): Remove.
8279 (STACK_SIZE): Moved to common/linux-ptrace.c.
8280 (linux_tracefork_child): Remove.
8281 (linux_test_for_tracefork): Remove.
8282 (linux_look_up_symbols): Call linux_supports_traceclone.
8283 (initialize_low): Remove call to linux_test_for_tracefork.
8284 * linux-low.h (PTRACE_TYPE_ARG3): Move to
8285 common/linux-ptrace.h.
8286 (PTRACE_TYPE_ARG4): Likewise.
8287 Include linux-ptrace.h.
8288
8289 2013-08-21 Pedro Alves <palves@redhat.com>
8290
8291 * config.in: Renegerate.
8292
8293 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
8294
8295 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
8296 (SFILES): Remove $(srcdir)/common/target-common.c and
8297 add $(srcdir)/target/waitstatus.c.
8298 (OBS): Remove target-common.o and add waitstatus.o.
8299 (server_h): Remove $(srcdir)/../common/target-common.h and
8300 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
8301 and $(srcdir)/../target/waitstatus.h.
8302 (target-common.o): Remove.
8303 (waitstatus.o): New target object file.
8304 * target.h: Do not include target-common.h and
8305 include target/resume.h, target/wait.h and
8306 target/waitstatus.h.
8307
8308 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
8309
8310 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
8311 to PTRACE_TYPE_ARG3.
8312 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
8313 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
8314 PTRACE_TYPE_ARG4.
8315 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
8316 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
8317
8318 2013-07-27 Jie Zhang <jie@codesourcery.com>
8319 Daniel Jacobowitz <dan@codesourcery.com>
8320 Yao Qi <yao@codesourcery.com>
8321
8322 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
8323 (mips-linux-watch.o): New rule.
8324 (mips_linux_watch_h): New variable.
8325 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
8326 srv_tgtobj.
8327 * linux-mips-low.c: Include mips-linux-watch.h.
8328 (struct arch_process_info, struct arch_lwp_info): New.
8329 (update_watch_registers_callback): New function.
8330 (mips_linux_new_process, mips_linux_new_thread) New functions.
8331 (mips_linux_prepare_to_resume, mips_insert_point): New
8332 functions.
8333 (mips_remove_point, mips_stopped_by_watchpoint): New
8334 functions.
8335 (rsp_bp_type_to_target_hw_bp_type): New function.
8336 (mips_stopped_data_address): New function.
8337 (the_low_target): Add watchpoint support functions.
8338
8339 2013-07-27 Yao Qi <yao@codesourcery.com>
8340
8341 * i386-low.c: Include break-common.h.
8342 (enum target_hw_bp_type): Remove.
8343
8344 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
8345
8346 * Makefile.in (SFILES): /common/target-common.c.
8347 (OBS): Add target-common.o.
8348 (server_h): Add $(srcdir)/../common/target-common.h.
8349 (target-common.o): New target.
8350 * server.c (queue_stop_reply_callback): Free
8351 status string after use.
8352 * target.c (target_waitstatus_to_string): Remove.
8353 * target.h: Include target-common.h.
8354 (resume_kind): Likewise.
8355 (target_waitkind): Likewise.
8356 (target_waitstatus): Likewise.
8357 (TARGET_WNOHANG): Likewise.
8358
8359 2013-07-04 Yao Qi <yao@codesourcery.com>
8360
8361 * Makefile.in (host_alias): Use @host_noncanonical@.
8362 (target_alias): Use @target_noncanonical@.
8363 * configure.ac: Use ACX_NONCANONICAL_TARGET and
8364 ACX_NONCANONICAL_HOST.
8365 * configure: Regenerated.
8366
8367 Revert:
8368 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
8369
8370 * configure.ac (version_host, version_target): Set and AC_SUBST them.
8371 * configure: Rebuild.
8372 * Makefile.in (version_host, version_target): Get from configure.
8373 (version.c): Use $(version_host) and $(version_target).
8374
8375 2013-07-03 Pedro Alves <palves@redhat.com>
8376
8377 * Makefile.in (config.status): Depend on development.sh.
8378 * acinclude.m4: Include libmcheck.m4.
8379 * configure: Regenerate.
8380
8381 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
8382
8383 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
8384 attribute inside the parentheses.
8385 (winapi_DebugSetProcessKillOnExit): Ditto.
8386 (winapi_DebugBreakProcess): Ditto.
8387 (winapi_GenerateConsoleCtrlEvent): Ditto.
8388
8389 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
8390
8391 * notif.h (notif_event): Add a dummy member to avoid compiler
8392 errors.
8393
8394 2013-07-01 Pedro Alves <palves@redhat.com>
8395
8396 * hostio.c (HOSTIO_PATH_MAX): Define.
8397 (require_filename, handle_open, handle_unlink, handle_readlink):
8398 Use it.
8399
8400 2013-07-01 Pedro Alves <palves@redhat.com>
8401
8402 * server.h: Include "pathmax.h".
8403 * linux-low.c: Don't include sys/param.h.
8404 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
8405 MAXPATHLEN.
8406 * win32-low.c: Don't include sys/param.h.
8407 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
8408
8409 2013-07-01 Pedro Alves <palves@redhat.com>
8410
8411 * event-loop.c: Don't check HAVE_UNISTD_H before including
8412 <unistd.h>.
8413 * gdbreplay.c: Likewise.
8414 * remote-utils.c: Likewise.
8415 * server.c: Likewise.
8416 * configure.ac: Don't check for unistd.h.
8417 * configure: Regenerate.
8418
8419 2013-06-28 Tom Tromey <tromey@redhat.com>
8420
8421 * Makefile.in (version.c): Use version.in, not
8422 common/version.in.
8423
8424 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
8425
8426 * configure.ac (version_host, version_target): Set and AC_SUBST them.
8427 * configure: Rebuild.
8428 * Makefile.in (version_host, version_target): Get from configure.
8429 (version.c): Use $(version_host) and $(version_target).
8430
8431 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
8432
8433 Fix trace-status to output user name without trailing colon.
8434 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
8435
8436 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
8437
8438 Fix trace-status to output proper start-time and stop-time.
8439 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
8440 output start time and stop time in hex as gdb expects.
8441
8442 2013-06-26 Pedro Alves <pedro@codesourcery.com>
8443
8444 * tracepoint.c (build_traceframe_info_xml): Output trace state
8445 variables present in the trace buffer.
8446
8447 2013-06-24 Tom Tromey <tromey@redhat.com>
8448
8449 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
8450 create-version.sh.
8451 (version.o): Remove.
8452 * gdbreplay.c: Include version.h.
8453 (version, host_name): Don't declare.
8454 * server.h: Include version.h.
8455 (version, host_name): Don't declare.
8456
8457 2013-06-12 Pedro Alves <palves@redhat.com>
8458
8459 * linux-x86-low.c (linux_is_elf64): Delete global.
8460 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
8461 with local linux_pid_exe_is_elf_64_file use.
8462
8463 2013-06-11 Pedro Alves <palves@redhat.com>
8464
8465 * linux-low.c (regset_disabled, disable_regset): New functions.
8466 (regsets_fetch_inferior_registers)
8467 (regsets_store_inferior_registers): Use them.
8468 (initialize_regsets_info); Don't allocate the disabled_regsets
8469 array here.
8470 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
8471 comment.
8472
8473 2013-06-11 Pedro Alves <palves@redhat.com>
8474
8475 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
8476 xmalloc.
8477
8478 2013-06-11 Pedro Alves <palves@redhat.com>
8479
8480 * linux-x86-low.c (initialize_low_arch): Call
8481 init_registers_x32_avx_linux.
8482
8483 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8484
8485 Fix compatibility with Android Bionic.
8486 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
8487 it is not empty.
8488
8489 2013-06-07 Pedro Alves <palves@redhat.com>
8490
8491 PR server/14823
8492 * Makefile.in (OBS): Add tdesc.o.
8493 (IPA_OBJS): Add tdesc-ipa.o.
8494 (tdesc-ipa.o): New rule.
8495 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
8496 interface.
8497 * linux-low.c (new_inferior): Delete.
8498 (disabled_regsets, num_regsets): Delete.
8499 (linux_add_process): Adjust to set the new per-process
8500 new_inferior flag.
8501 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
8502 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
8503 was a stop. When calling arch_setup, switch the current inferior
8504 to the thread that got an event.
8505 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
8506 (regsets_fetch_inferior_registers)
8507 (regsets_store_inferior_registers): New regsets_info parameter.
8508 Adjust to use it.
8509 (linux_register_in_regsets): New regs_info parameter. Adjust to
8510 use it.
8511 (register_addr, fetch_register, store_register): New usrregs_info
8512 parameter. Adjust to use it.
8513 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
8514 parameter regs_info. Adjust to use it.
8515 (linux_fetch_registers): Get the current inferior's regs_info, and
8516 adjust to use it.
8517 (linux_store_registers): Ditto.
8518 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
8519 (initialize_low): Don't initialize the target_regsets here. Call
8520 initialize_low_arch.
8521 * linux-low.h (target_regsets): Delete declaration.
8522 (struct regsets_info): New.
8523 (struct usrregs_info): New.
8524 (struct regs_info): New.
8525 (struct process_info_private) <new_inferior>: New field.
8526 (struct linux_target_ops): Delete the num_regs, regmap, and
8527 regset_bitmap fields. New field regs_info.
8528 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
8529 * i387-fp.c (num_xmm_registers): Delete.
8530 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
8531 calls to new interface.
8532 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
8533 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
8534 Infer the number of xmm registers from the regcache's target
8535 description.
8536 * i387-fp.h (num_xmm_registers): Delete.
8537 * inferiors.c (add_thread): Don't install the thread's regcache
8538 here.
8539 * proc-service.c (gregset_info): Fetch the current inferior's
8540 regs_info. Adjust to use it.
8541 * regcache.c: Include tdesc.h.
8542 (register_bytes, reg_defs, num_registers)
8543 (gdbserver_expedite_regs): Delete.
8544 (get_thread_regcache): If the thread doesn't have a regcache yet,
8545 create one, instead of aborting gdbserver.
8546 (regcache_invalidate_one): Rename to ...
8547 (regcache_invalidate_thread): ... this.
8548 (regcache_invalidate_one): New.
8549 (regcache_invalidate): Only invalidate registers of the current
8550 process.
8551 (init_register_cache): Add target_desc parameter, and use it.
8552 (new_register_cache): Ditto. Assert the target description has a
8553 non zero registers_size.
8554 (regcache_cpy): Add assertions. Adjust.
8555 (realloc_register_cache, set_register_cache): Delete.
8556 (registers_to_string, registers_from_string): Adjust.
8557 (find_register_by_name, find_regno, find_register_by_number)
8558 (register_cache_size): Add target_desc parameter, and use it.
8559 (free_register_cache_thread, free_register_cache_thread_one)
8560 (regcache_release, register_cache_size): New.
8561 (register_size): Add target_desc parameter, and use it.
8562 (register_data, supply_register, supply_register_zeroed)
8563 (supply_regblock, supply_register_by_name, collect_register)
8564 (collect_register_as_string, collect_register_by_name): Adjust.
8565 * regcache.h (struct target_desc): Forward declare.
8566 (struct regcache) <tdesc>: New field.
8567 (init_register_cache, new_register_cache): Add target_desc
8568 parameter.
8569 (regcache_invalidate_thread): Declare.
8570 (regcache_invalidate_one): Delete declaration.
8571 (regcache_release): Declare.
8572 (find_register_by_number, register_cache_size, register_size)
8573 (find_regno): Add target_desc parameter.
8574 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
8575 declarations.
8576 * remote-utils.c: Include tdesc.h.
8577 (outreg, prepare_resume_reply): Adjust.
8578 * server.c: Include tdesc.h.
8579 (gdbserver_xmltarget): Delete declaration.
8580 (get_features_xml, process_serial_event): Adjust.
8581 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
8582 declare.
8583 (struct process_info) <tdesc>: New field.
8584 (ipa_tdesc): Declare.
8585 * tdesc.c: New file.
8586 * tdesc.h: New file.
8587 * tracepoint.c: Include tdesc.h.
8588 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
8589 (get_context_regcache): Adjust to pass ipa_tdesc down.
8590 (do_action_at_tracepoint): Adjust to get the register cache size
8591 from the context regcache's description.
8592 (traceframe_walk_blocks): Adjust to get the register cache size
8593 from the current trace frame's description.
8594 (traceframe_get_pc): Adjust to get current trace frame's
8595 description and pass it down.
8596 (gdb_collect): Adjust to get the register cache size from the
8597 IPA's description.
8598 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
8599 (gdbserver_xmltarget): Delete.
8600 (initialize_low_tracepoint): Set the ipa's target description.
8601 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
8602 (initialize_low_tracepoint): Set the ipa's target description.
8603 * linux-x86-low.c: Include tdesc.h.
8604 [__x86_64__] (is_64bit_tdesc): New.
8605 (ps_get_thread_area, x86_get_thread_area): Use it.
8606 (i386_cannot_store_register): Rename to ...
8607 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
8608 (i386_cannot_fetch_register): Rename to ...
8609 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
8610 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
8611 to new interface.
8612 (target_regsets): Rename to ...
8613 (x86_regsets): ... this.
8614 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
8615 interface.
8616 (x86_siginfo_fixup): Use is_64bit_tdesc.
8617 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
8618 (tdesc_x32_avx_linux, tdesc_x32_linux)
8619 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
8620 Declare.
8621 (x86_linux_update_xmltarget): Delete.
8622 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
8623 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
8624 (AMD64_LINUX_USER64_CS): New.
8625 (x86_linux_read_description): New, based on
8626 x86_linux_update_xmltarget.
8627 (same_process_callback): New.
8628 (x86_arch_setup_process_callback): New.
8629 (x86_linux_update_xmltarget): New.
8630 (x86_regsets_info): New.
8631 (amd64_linux_regs_info): New.
8632 (i386_linux_usrregs_info): New.
8633 (i386_linux_regs_info): New.
8634 (x86_linux_regs_info): New.
8635 (x86_arch_setup): Reimplement.
8636 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
8637 (x86_emit_ops): Ditto.
8638 (the_low_target): Adjust. Install x86_linux_regs_info,
8639 x86_cannot_fetch_register, and x86_cannot_store_register.
8640 (initialize_low_arch): New.
8641 * linux-ia64-low.c (tdesc_ia64): Declare.
8642 (ia64_fetch_register): Adjust.
8643 (ia64_usrregs_info, regs_info): New globals.
8644 (ia64_regs_info): New function.
8645 (the_low_target): Adjust.
8646 (initialize_low_arch): New function.
8647 * linux-sparc-low.c (tdesc_sparc64): Declare.
8648 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
8649 Adjust.
8650 (sparc_arch_setup): New function.
8651 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
8652 (the_low_target): Adjust.
8653 (initialize_low_arch): New function.
8654 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
8655 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
8656 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
8657 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
8658 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
8659 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
8660 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
8661 (tdesc_powerpc_isa205_vsx64l): Declare.
8662 (ppc_cannot_store_register, ppc_collect_ptrace_register)
8663 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
8664 (ppc_set_pc, ppc_get_hwcap): Adjust.
8665 (ppc_usrregs_info): Forward declare.
8666 (!__powerpc64__) ppc_regmap_adjusted: New global.
8667 (ppc_arch_setup): Adjust to the current process'es target
8668 description.
8669 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
8670 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
8671 (ppc_store_evrregset): Adjust.
8672 (target_regsets): Rename to ...
8673 (ppc_regsets): ... this, and make static.
8674 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
8675 (ppc_regs_info): New function.
8676 (the_low_target): Adjust.
8677 (initialize_low_arch): New function.
8678 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
8679 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
8680 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
8681 (tdesc_s390x_linux64v2): Declare.
8682 (s390_collect_ptrace_register, s390_supply_ptrace_register)
8683 (s390_fill_gregset, s390_store_last_break): Adjust.
8684 (target_regsets): Rename to ...
8685 (s390_regsets): ... this, and make static.
8686 (s390_get_pc, s390_set_pc): Adjust.
8687 (s390_get_hwcap): New target_desc parameter, and use it.
8688 [__s390x__] (have_hwcap_s390_high_gprs): New global.
8689 (s390_arch_setup): Adjust to set the current process'es target
8690 description. Don't adjust the regmap.
8691 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
8692 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
8693 (regs_info_3264): New globals.
8694 (s390_regs_info): New function.
8695 (the_low_target): Adjust.
8696 (initialize_low_arch): New function.
8697 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
8698 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
8699 [__mips64] (init_registers_mips_linux)
8700 (init_registers_mips_dsp_linux): Delete defines.
8701 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
8702 (have_dsp): New global.
8703 (mips_read_description): New, based on mips_arch_setup.
8704 (mips_arch_setup): Reimplement.
8705 (get_usrregs_info): New function.
8706 (mips_cannot_fetch_register, mips_cannot_store_register)
8707 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
8708 (mips_fill_fpregset, mips_store_fpregset): Adjust.
8709 (target_regsets): Rename to ...
8710 (mips_regsets): ... this, and make static.
8711 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
8712 (dsp_regs_info, regs_info): New globals.
8713 (mips_regs_info): New function.
8714 (the_low_target): Adjust.
8715 (initialize_low_arch): New function.
8716 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
8717 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
8718 Declare.
8719 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
8720 (arm_read_description): New, with bits factored from
8721 arm_arch_setup.
8722 (arm_arch_setup): Reimplement.
8723 (target_regsets): Rename to ...
8724 (arm_regsets): ... this, and make static.
8725 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
8726 (arm_regs_info): New function.
8727 (the_low_target): Adjust.
8728 (initialize_low_arch): New function.
8729 * linux-m68k-low.c (tdesc_m68k): Declare.
8730 (target_regsets): Rename to ...
8731 (m68k_regsets): ... this, and make static.
8732 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
8733 (m68k_regs_info): New function.
8734 (m68k_arch_setup): New function.
8735 (the_low_target): Adjust.
8736 (initialize_low_arch): New function.
8737 * linux-sh-low.c (tdesc_sharch): Declare.
8738 (target_regsets): Rename to ...
8739 (sh_regsets): ... this, and make static.
8740 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
8741 (sh_regs_info, sh_arch_setup): New functions.
8742 (the_low_target): Adjust.
8743 (initialize_low_arch): New function.
8744 * linux-bfin-low.c (tdesc_bfin): Declare.
8745 (bfin_arch_setup): New function.
8746 (bfin_usrregs_info, regs_info): New globals.
8747 (bfin_regs_info): New function.
8748 (the_low_target): Adjust.
8749 (initialize_low_arch): New function.
8750 * linux-cris-low.c (tdesc_cris): Declare.
8751 (cris_arch_setup): New function.
8752 (cris_usrregs_info, regs_info): New globals.
8753 (cris_regs_info): New function.
8754 (the_low_target): Adjust.
8755 (initialize_low_arch): New function.
8756 * linux-cris-low.c (tdesc_crisv32): Declare.
8757 (cris_arch_setup): New function.
8758 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
8759 (cris_regs_info): New function.
8760 (the_low_target): Adjust.
8761 (initialize_low_arch): New function.
8762 * linux-m32r-low.c (tdesc_m32r): Declare.
8763 (m32r_arch_setup): New function.
8764 (m32r_usrregs_info, regs_info): New globals.
8765 (m32r_regs_info): Adjust.
8766 (initialize_low_arch): New function.
8767 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
8768 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
8769 (tic6x_usrregs_info): Forward declare.
8770 (tic6x_read_description): New function, based on ...
8771 (tic6x_arch_setup): ... this. Reimplement.
8772 (target_regsets): Rename to ...
8773 (tic6x_regsets): ... this, and make static.
8774 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
8775 (tic6x_regs_info): New function.
8776 (the_low_target): Adjust.
8777 (initialize_low_arch): New function.
8778 * linux-xtensa-low.c (tdesc_xtensa): Declare.
8779 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
8780 (target_regsets): Rename to ...
8781 (xtensa_regsets): ... this, and make static.
8782 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
8783 globals.
8784 (xtensa_arch_setup, xtensa_regs_info): New functions.
8785 (the_low_target): Adjust.
8786 (initialize_low_arch): New function.
8787 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
8788 (nios2_arch_setup): Set the current process'es tdesc.
8789 (target_regsets): Rename to ...
8790 (nios2_regsets): ... this.
8791 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
8792 (nios2_regs_info): New function.
8793 (the_low_target): Adjust.
8794 (initialize_low_arch): New function.
8795 * linux-aarch64-low.c (tdesc_aarch64): Declare.
8796 (aarch64_arch_setup): Set the current process'es tdesc.
8797 (target_regsets): Rename to ...
8798 (aarch64_regsets): ... this.
8799 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
8800 (aarch64_regs_info): New function.
8801 (the_low_target): Adjust.
8802 (initialize_low_arch): New function.
8803 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
8804 globals.
8805 (target_regsets): Rename to ...
8806 (tile_regsets): ... this.
8807 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
8808 (tile_regs_info): New function.
8809 (tile_arch_setup): Set the current process'es tdesc.
8810 (the_low_target): Adjust.
8811 (initialize_low_arch): New function.
8812 * spu-low.c (tdesc_spu): Declare.
8813 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
8814 * win32-arm-low.c (tdesc_arm): Declare.
8815 (arm_arch_setup): New function.
8816 (the_low_target): Install arm_arch_setup instead of
8817 init_registers_arm.
8818 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
8819 (init_windows_x86): Rename to ...
8820 (i386_arch_setup): ... this. Set `win32_tdesc'.
8821 (the_low_target): Adjust.
8822 * win32-low.c (win32_tdesc): New global.
8823 (child_add_thread): Don't create the thread cache here.
8824 (do_initial_child_stuff): Set the new process'es tdesc.
8825 * win32-low.h (struct target_desc): Forward declare.
8826 (win32_tdesc): Declare.
8827 * lynx-i386-low.c (tdesc_i386): Declare global.
8828 (lynx_i386_arch_setup): Set `lynx_tdesc'.
8829 * lynx-low.c (lynx_tdesc): New global.
8830 (lynx_add_process): Set the new process'es tdesc.
8831 * lynx-low.h (struct target_desc): Forward declare.
8832 (lynx_tdesc): Declare global.
8833 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
8834 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
8835 * nto-low.c (nto_tdesc): New global.
8836 (do_attach): Set the new process'es tdesc.
8837 * nto-low.h (struct target_desc): Forward declare.
8838 (nto_tdesc): Declare.
8839 * nto-x86-low.c (tdesc_i386): Declare.
8840 (nto_x86_arch_setup): Set `nto_tdesc'.
8841
8842 2013-06-04 Gary Benson <gbenson@redhat.com>
8843
8844 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
8845 to qSupported response when appropriate.
8846 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
8847 with nonzero-length annex.
8848 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
8849 arguments supplied in annex.
8850
8851 2013-05-31 Doug Evans <dje@google.com>
8852
8853 PR server/15594
8854 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
8855 64 bits in 64-cross-32 environment.
8856
8857 2013-05-28 Pedro Alves <palves@redhat.com>
8858
8859 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
8860 (aarch64-without-fpu.c): Delete rule.
8861 * configure.srv (aarch64*-*-linux*): Remove references to
8862 aarch64-without-fpu.o and aarch64-without-fpu.xml.
8863 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
8864 declaration.
8865
8866 2013-05-24 Pedro Alves <palves@redhat.com>
8867
8868 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
8869 instead of strchr/decode_address. Error if the range isn't split
8870 with a ','. Don't assume there's be a ':' in the action.
8871
8872 2013-05-23 Yao Qi <yao@codesourcery.com>
8873 Pedro Alves <palves@redhat.com>
8874
8875 * linux-low.c (lwp_in_step_range): New function.
8876 (linux_wait_1): If the thread was range stepping and stopped
8877 outside the stepping range, report the stop to GDB. Otherwise,
8878 continue stepping. Add range stepping debug output.
8879 (linux_set_resume_request): Copy the step range from the resume
8880 request to the lwp.
8881 (linux_supports_range_stepping): New.
8882 (linux_target_ops) <supports_range_stepping>: Set to
8883 linux_supports_range_stepping.
8884 * linux-low.h (struct linux_target_ops)
8885 <supports_range_stepping>: New field.
8886 (struct lwp_info) <step_range_start, step_range_end>: New fields.
8887 * linux-x86-low.c (x86_supports_range_stepping): New.
8888 (the_low_target) <supports_range_stepping>: Set to
8889 x86_supports_range_stepping.
8890 * server.c (handle_v_cont): Handle 'r' action.
8891 (handle_v_requests): Append ";r" if the target supports range
8892 stepping.
8893 * target.h (struct thread_resume) <step_range_start,
8894 step_range_end>: New fields.
8895 (struct target_ops) <supports_range_stepping>:
8896 New field.
8897 (target_supports_range_stepping): New macro.
8898
8899 2013-05-17 Joel Brobecker <brobecker@adacore.com>
8900
8901 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
8902 confusion in comment.
8903
8904 2013-05-17 Joel Brobecker <brobecker@adacore.com>
8905
8906 * lynx-low.c (struct process_info_private): New type.
8907 (lynx_add_process): New function.
8908 (lynx_create_inferior, lynx_attach): Replace calls to
8909 add_process by calls to lynx_add_process.
8910 (lynx_resume): If PTID is null, then try using
8911 current_process()->private->last_wait_event_ptid.
8912 Add comments.
8913 (lynx_clear_inferiors): Delete. The contents of that function
8914 has been inlined in lynx_mourn;
8915 (lynx_wait_1): Save the ptid in the process's private data.
8916 (lynx_mourn): Free the process' private data. Replace call
8917 to lynx_clear_inferiors by call to clear_inferiors.
8918
8919 2013-05-17 Yao Qi <yao@codesourcery.com>
8920
8921 * i386-low.c (i386_length_and_rw_bits): Move the comment to
8922 the right place.
8923
8924 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
8925
8926 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
8927 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
8928 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
8929 PT_TEXT_END_ADDR guards. Update comments.
8930 (linux_target_op) <read_offsets>: Conditionally define to
8931 linux_read_offsets if the target is UCLIBC and if it defines
8932 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
8933
8934 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
8935 Andrew Jenner <andrew@codesourcery.com>
8936
8937 * Makefile.in (SFILES): Add linux-nios2-low.c.
8938 (clean): Add action to delete nios2-linux.c.
8939 (nios2-linux.c): New rule.
8940 * configure.srv: Add nios2*-*-linux*.
8941 * linux-nios2-low.c: New.
8942
8943 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
8944
8945 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
8946
8947 2013-04-25 Hui Zhu <hui@codesourcery.com>
8948
8949 PR gdb/15186
8950 * ax.c (ax_printf): Add fflush.
8951
8952 2013-04-22 Tom Tromey <tromey@redhat.com>
8953
8954 * Makefile.in (SFILES): Add filestuff.c.
8955 (OBS): Add filestuff.o.
8956 (filestuff.o): New target.
8957 * config.in, configure: Rebuild.
8958 * configure.ac: Check for fdwalk, pipe2.
8959
8960 2013-04-17 Pedro Alves <palves@redhat.com>
8961
8962 * configure.ac (USE_THREAD_DB): Delete variable.
8963 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
8964 Don't AC_SUBST USE_THREAD_DB.
8965 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
8966 * config.in, configure: Regenerate.
8967
8968 2013-04-16 Pedro Alves <palves@redhat.com>
8969
8970 * linux-low.h (struct lwp_info) <thread_known>: Move under
8971 the USE_THREAD_DB #ifdef.
8972
8973 2013-04-16 Pedro Alves <palves@redhat.com>
8974
8975 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
8976 (linux-low.o): Delete rule.
8977 * linux-low.h: Always include "gdb_thread_db.h" instead of
8978 conditionally including thread_db.h.
8979 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
8980 HAVE_THREAD_DB_H.
8981
8982 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
8983
8984 * Makefile.in (install-only): Fix make install regression.
8985
8986 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8987
8988 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8989 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
8990 installation.
8991 * gdbserver.1: Remove.
8992
8993 2013-03-22 Pedro Alves <palves@redhat.com>
8994
8995 * linux-low.c (handle_extended_wait): Don't call
8996 linux_enable_event_reporting.
8997
8998 2013-03-15 Tony Theodore <tonyt@logyst.com>
8999
9000 PR build/9098:
9001 * Makefile.in (SHELL): Use @SHELL@.
9002
9003 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
9004
9005 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
9006 compiler warning.
9007
9008 2013-03-13 Joel Brobecker <brobecker@adacore.com>
9009
9010 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
9011 Remove extraneous NULL element.
9012
9013 2013-03-13 Yao Qi <yao@codesourcery.com>
9014
9015 * tracepoint.c (traceframe_read_tsv): Look for the last matched
9016 'V' block in trace frame.
9017
9018 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9019
9020 * target.h (struct target_ops): Add btrace ops.
9021 (target_supports_btrace): New macro.
9022 (target_enable_btrace): New macro.
9023 (target_disable_btrace): New macro.
9024 (target_read_btrace): New macro.
9025 * gdbthread.h (struct thread_info): Add btrace field.
9026 * server.c: Include btrace-common.h.
9027 (handle_btrace_general_set): New function.
9028 (handle_btrace_enable): New function.
9029 (handle_btrace_disable): New function.
9030 (handle_general_set): Call handle_btrace_general_set.
9031 (handle_qxfer_btrace): New function.
9032 (struct qxfer qxfer_packets[]): Add btrace entry.
9033 * inferiors.c (remove_thread): Disable btrace.
9034 * linux-low: Include linux-btrace.h.
9035 (linux_low_enable_btrace): New function.
9036 (linux_low_read_btrace): New function.
9037 (linux_target_ops): Add btrace ops.
9038 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
9039 Add srv_linux_btrace=yes.
9040 (x86_64-*-linux*): Add linux-btrace.o.
9041 Add srv_linux_btrace=yes.
9042 * configure.ac: Define HAVE_LINUX_BTRACE.
9043 * config.in: Regenerated.
9044 * configure: Regenerated.
9045
9046 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9047
9048 * server.c (handle_qxfer): Preserve error message if -3 is
9049 returned.
9050 (qxfer): Document the -3 return value.
9051
9052 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9053
9054 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
9055 (linux_btrace_h): New variable.
9056 (linux-btrace.o): New rule.
9057
9058 2013-03-08 Stan Shebs <stan@codesourcery.com>
9059 Hafiz Abid Qadeer <abidh@codesourcery.com>
9060
9061 * tracepoint.c (trace_buffer_size): New global.
9062 (DEFAULT_TRACE_BUFFER_SIZE): New define.
9063 (init_trace_buffer): Change to one-argument function. Allocate
9064 trace buffer memory.
9065 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
9066 handle QTBuffer:size packet.
9067 (cmd_bigqtbuffer_size): New function.
9068 (initialize_tracepoint): Call init_trace_buffer with
9069 DEFAULT_TRACE_BUFFER_SIZE.
9070 * server.c (handle_query): Add QTBuffer:size in the
9071 supported packets.
9072
9073 2013-03-07 Yao Qi <yao@codesourcery.com>
9074
9075 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
9076 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
9077 of -1.
9078 (cmd_qtsp): Adjust condition. Do post increment.
9079 Set cur_action and cur_step_action back to 0.
9080
9081 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
9082
9083 PR server/15236
9084 * linux-low.c (linux_write_memory): Return early success if LEN is
9085 zero.
9086
9087 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9088
9089 * configure.srv: Add x86_64-*-cygwin* as target.
9090
9091 2013-02-28 Tom Tromey <tromey@redhat.com>
9092
9093 * configure.ac: Invoke AC_SYS_LARGEFILE.
9094 * configure, config.in: Rebuild.
9095
9096 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
9097
9098 * win32-low.c: Throughout, fix format strings and casts of
9099 printf-like functions to avoid type related warnings on all
9100 platforms.
9101 (get_child_debug_event): Print dwDebugEventCode as hex since
9102 that's how it's usually documented.
9103
9104 2013-02-28 Yao Qi <yao@codesourcery.com>
9105
9106 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
9107 pulongest.
9108
9109 2013-02-27 Jiong Wang <jiwang@tilera.com>
9110
9111 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
9112 (reg-tilegx32.c): New rule.
9113 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
9114 * linux-tile-low.c (tile_arch_setup): New function. Invoke
9115 different register info initializer according to elf class.
9116 (init_registers_tilgx32): New function. The tilegx32 register info
9117 initializer.
9118 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
9119 (tile_store_gregset): Likewise.
9120
9121 2013-02-27 Yao Qi <yao@codesourcery.com>
9122
9123 * server.c (process_point_options): Print debug message when
9124 debug_threads is true.
9125
9126 2013-02-26 Yao Qi <yao@codesourcery.com>
9127
9128 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
9129
9130 2013-02-19 Pedro Alves <palves@redhat.com>
9131 Kai Tietz <ktietz@redhat.com>
9132
9133 PR gdb/15161
9134
9135 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
9136 instead of strtoul to extract address from packet.
9137 (process_serial_event) <'z'>: Likewise.
9138
9139 2013-02-18 Yao Qi <yao@codesourcery.com>
9140
9141 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
9142
9143 2013-02-14 Pedro Alves <palves@redhat.com>
9144
9145 Plug memory leak.
9146
9147 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
9148 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
9149
9150 2013-02-14 Pedro Alves <palves@redhat.com>
9151
9152 * tracepoint.c (cmd_qtdpsrc): Use savestring.
9153
9154 2013-02-14 Pedro Alves <palves@redhat.com>
9155
9156 * tracepoint.c (save_string): Delete.
9157 (add_tracepoint_action): Use savestring instead of save_string.
9158
9159 2013-02-12 Pedro Alves <palves@redhat.com>
9160
9161 * linux-xtensa-low.c: Ditto.
9162 * xtensa-xtregs.c: Ditto.
9163
9164 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9165
9166 * thread-db.c (thread_db_get_tls_address): NULL pointer check
9167 thread_db.
9168
9169 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9170
9171 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
9172 aarch64_num_wp_regs and aarch64_num_bp_regs to
9173 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
9174
9175 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9176
9177 * linux-aarch64-low.c (ps_get_thread_area): Replace
9178 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
9179
9180 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9181 Marcus Shawcroft <marcus.shawcroft@arm.com>
9182 Nigel Stephens <nigel.stephens@arm.com>
9183 Yufeng Zhang <yufeng.zhang@arm.com>
9184
9185 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
9186 (aarch64.c, aarch64-without-fpu.c): New targets.
9187 * configure.srv (aarch64*-*-linux*): New.
9188 * linux-aarch64-low.c: New file.
9189
9190 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
9191
9192 * linux-low.c (handle_extended_wait, linux_create_inferior)
9193 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
9194 (dequeue_one_deferred_signal, linux_resume_one_thread)
9195 (fetch_register, linux_write_memory, linux_enable_event_reporting)
9196 (linux_tracefork_grandchild, linux_test_for_tracefork)
9197 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
9198 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
9199 where the argument is 0.
9200
9201 2013-01-25 Yao Qi <yao@codesourcery.com>
9202
9203 * event-loop.c: Include "queue.h".
9204 (gdb_event_p): New typedef.
9205 (struct gdb_event) <next_event>: Remove.
9206 (event_queue): Change to QUEUE(gdb_event_p).
9207 (async_queue_event): Remove.
9208 (gdb_event_xfree): New.
9209 (initialize_event_loop): New.
9210 (process_event): Use API from QUEUE.
9211 (wait_for_event): Likewise.
9212 * server.c (main): Call initialize_event_loop.
9213 * server.h (initialize_event_loop): Declare.
9214
9215 2013-01-18 Yao Qi <yao@codesourcery.com>
9216
9217 * ax.h (struct eval_agent_expr_context): New.
9218 (gdb_eval_agent_expr): Update declaration.
9219 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
9220 TFRAME. Add new argument CTX.
9221 * server.h (struct eval_agent_expr_context): Declare.
9222 (agent_mem_read, agent_tsv_read): Update declaration.
9223 (agent_mem_read_string): Likewise.
9224 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
9225 (add_traceframe_block): Add new argument TPOINT.
9226 Increase TPOINT->traceframe_usage.
9227 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
9228 eval_tracepoint_agent_expr.
9229 (condition_true_at_tracepoint): Likewise.
9230 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
9231 (agent_mem_read_string, agent_tsv_read): Likewise.
9232
9233 2013-01-16 Yao Qi <yao@codesourcery.com>
9234
9235 * linux-low.c (linux_resume_one_lwp): Don't check
9236 'lwp->bp_reinsert != 0'.
9237
9238 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9239 Pedro Alves <palves@redhat.com>
9240
9241 * lynx-low.c (ptrace_request_to_str): Define a temporary
9242 macro and use it to simplify this function's implementation.
9243
9244 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9245
9246 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
9247 sets errno.
9248
9249 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9250
9251 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
9252
9253 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9254
9255 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
9256
9257 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9258
9259 * lynx-low.c (lynx_resume): Use the resume_info parameter
9260 to determine the ptid for the lynx_ptrace call, unless
9261 it is equal to minus_one_ptid, in which case we use the
9262 ptid of the current_inferior.
9263 (lynx_wait_1): After having received a thread create/exit
9264 event, resume the inferior's execution using the signaling
9265 thread's ptid, rather than the old ptid.
9266
9267 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9268
9269 * lynx-low.c (lynx_resume): Delete variable ret.
9270
9271 2013-01-01 Joel Brobecker <brobecker@adacore.com>
9272
9273 * gdbreplay.c (gdbreplay_version): Update copyright year.
9274 * server.c (gdbserver_version): Likewise.
9275
9276 2012-12-17 Joel Brobecker <brobecker@adacore.com>
9277
9278 * lynx-low.c (lynx_wait_1): Add debug trace before adding
9279 new thread.
9280
9281 2012-12-17 Joel Brobecker <brobecker@adacore.com>
9282
9283 * lynx-low.c (ptrace_request_to_str): Add handling for
9284 PTRACE_GETTRACESIG.
9285
9286 2012-12-17 Joel Brobecker <brobecker@adacore.com>
9287
9288 * lynx-low.c (lynx_attach): Delete variable new_process.
9289
9290 2012-12-17 Joel Brobecker <brobecker@adacore.com>
9291
9292 * lynx-low.c (lynx_create_inferior): Delete variable
9293 new_process.
9294
9295 2012-12-17 Joel Brobecker <brobecker@adacore.com>
9296
9297 * lynx-low.c (ptrace_request_to_str): Do not handle
9298 PTRACE_GETTHREADLIST if this macro does not exist.
9299
9300 2012-12-15 Yao Qi <yao@codesourcery.com>
9301
9302 * Makefile.in (OBS): Add notif.o.
9303 * notif.c, notif.h: New.
9304 * server.c: Include "notif.h".
9305 (struct vstop_notif) <next>: Remove.
9306 <base>: New field.
9307 (queue_stop_reply): Update.
9308 (push_event, send_next_stop_reply): Remove.
9309 (discard_queued_stop_replies): Update.
9310 (notif_stop): New variable.
9311 (handle_v_stopped): Remove.
9312 (handle_v_requests): Don't call handle_v_stopped. Call
9313 handle_ack_notif instead.
9314 (queue_stop_reply_callback): Call notif_event_enque instead
9315 of queue_stop_reply.
9316 (handle_status): Don't call send_next_stop_reply, call
9317 notif_write_event instead.
9318 (kill_inferior_callback): Likewise.
9319 (detach_or_kill_inferior_callback): Likewise.
9320 (main): Call initialize_notif.
9321 (process_serial_event): Call QUEUE_is_empty.
9322 (handle_target_event): Call notif_push instead of push event.
9323 * server.h (push_event): Remove declaration.
9324
9325 2012-12-10 Tom Tromey <tromey@redhat.com>
9326
9327 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
9328 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
9329 macros.
9330 (.c.o): Rewrite.
9331 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
9332 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
9333 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
9334 (amd64-linux-ipa.o, ax.o): Rewrite.
9335 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
9336 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
9337 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
9338 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
9339 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
9340 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
9341 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
9342 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
9343 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
9344 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
9345 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
9346 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
9347 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
9348 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
9349 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
9350 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
9351 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
9352 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
9353 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
9354 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
9355 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
9356 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
9357 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
9358 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
9359 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
9360 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
9361 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
9362 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
9363 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
9364 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
9365 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
9366 (reg-tilegx.o): Remove.
9367 (all_object_files): New macro.
9368 Include .deps files.
9369 * aclocal.m4, configure: Rebuild.
9370 * acinclude.m4: Include depstand.m4, lead-dot.m4.
9371 * configure.ac: Invoke ZW_CREATE_DEPDIR,
9372 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
9373
9374 2012-12-05 Tom Tromey <tromey@redhat.com>
9375
9376 PR gdb/14917:
9377 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
9378
9379 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
9380
9381 * configure.ac: Check for linux/perf_event.h.
9382 * config.in: Regenerated.
9383 * configure: Regenerated.
9384
9385 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
9386
9387 * hostio.c (handle_readlink): Decrease buffer size
9388 parameter passed to readlink by one byte.
9389
9390 2012-11-26 Yao Qi <yao@codesourcery.com>
9391
9392 * configure.ac (build_warnings): Append '-Wempty-body'.
9393 * configure: Regenerated.
9394 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
9395 body.
9396
9397 2012-11-15 Pierre Muller <muller@sourceware.org>
9398
9399 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
9400 * config.in: Regenerate.
9401 * configure: Regenerate.
9402 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
9403 Use "gdb_wait.h" header instead of <sys/wait.h> header.
9404 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
9405 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
9406 header.
9407 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
9408 instead of <sys/wait.h> header.
9409 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
9410
9411 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
9412
9413 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
9414 (various make rules): Remove -DGDBSERVER
9415
9416 2012-11-09 Yao Qi <yao@codesourcery.com>
9417
9418 * spu-low.c (current_ptid): Move it to ..
9419 * gdbthread.h: ... here. New.
9420 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
9421 * server.c (myresume, process_serial_event): Likewise.
9422 * thread-db.c (thread_db_find_new_threads): Likewise.
9423 * tracepoint.c (run_inferior_command): Likewise.
9424
9425 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
9426
9427 * server.c (handle_search_memory_1): Include access length in
9428 warning message.
9429
9430 2012-09-05 Michael Brandt <michael.brandt@axis.com>
9431
9432 * linux-crisv32-low.c: Fix compile errors.
9433
9434 2012-09-04 Yao Qi <yao@codesourcery.com>
9435
9436 * tracepoint.c (cmd_qtsv): Adjust debug message.
9437 Don't check CUR_TPOINT.
9438
9439 2012-08-28 Yao Qi <yao@codesourcery.com>
9440
9441 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
9442 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
9443 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
9444 Remove declarations of xmalloc, xreallloc, xstrdup and
9445 freeargv.
9446 * Makefile.in (libiberty_h): New.
9447 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
9448 (linux-bfin-low.o): Append dependency 'libiberty.h'.
9449
9450 2012-08-23 Yao Qi <yao@codesourcery.com>
9451
9452 * server.h: Remove declaration of 'xsnprintf'.
9453
9454 2012-08-22 Keith Seitz <keiths@redhat.com>
9455
9456 * server.h: Include build-gnulib-gbserver/config.h.
9457 * gdbreplay.c: Likewise.
9458
9459 2012-08-08 Doug Evans <dje@google.com>
9460
9461 * Makefile.in (SFILES): Add gdb_vecs.c.
9462 (OBS): Add gdb_vecs.o.
9463 (gdb_vecs_h, host_defs_h): New variables.
9464 (thread-db.o): Add $(gdb_vecs_h) dependency.
9465 (gdb_vecs.o): New rule.
9466 * thread-db.c: #include "gdb_vecs.h".
9467 (thread_db_load_search): Use a vector to iterate over path elements.
9468 Handle text appearing after "$pdir".
9469
9470 * configure.ac: Add check for strstr.
9471 * config.in: Regenerate.
9472 * configure: Regenerate.
9473
9474 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9475
9476 * hostio.c (handle_pread): If pread fails, fall back to attempting
9477 lseek/read.
9478 (handle_pwrite): Likewise for pwrite.
9479
9480 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9481
9482 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
9483 between unsupported TYPE and unimplementable ADDR/LEN combination.
9484 (arm_insert_point): Act on new return value.
9485
9486 2012-07-31 Pedro Alves <palves@redhat.com>
9487
9488 * server.c (process_point_options): Only skip tokens if we find
9489 one that is unrecognized. Don't treat 'X' specially while
9490 skipping unrecognized tokens.
9491
9492 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
9493
9494 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
9495 to 4-byte-align HW breakpoint addresses for Thumb.
9496
9497 2012-07-27 Yao Qi <yao@codesourcery.com>
9498
9499 PR remote/14161.
9500
9501 * server.h: Declare gdb_agent_about_to_close.
9502 * target.c (kill_inferior): Include "agent.h".
9503 New. Send command 'kill'.
9504 * target.h (kill_inferior): Removed macro.
9505 * tracepoint.c (gdb_agent_about_to_close): New.
9506 (gdb_agent_helper_thread): Handle command 'close'.
9507 Wait endlessly until the inferior stops.
9508 Install gdb_agent_remove_socket to atexit hook.
9509 (agent_socket_name): New static variable.
9510 (gdb_agent_socket_init): Replace local variable 'name' with
9511 'agent_socket_name'.
9512 (gdb_agent_remove_socket): New.
9513
9514 2012-07-27 Yao Qi <yao@codesourcery.com>
9515
9516 * server.c (process_point_options): Stop at 'X' when parsing.
9517
9518 2012-07-19 Michael Eager <eager@eagercon.com>
9519
9520 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
9521 to hw_execute.
9522 * linux-x86-low.c (x86_insert_point, x86_remove_point):
9523 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
9524 hardware breakpoint.
9525
9526 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
9527
9528 * gdbserver/linux-low.c (initialize_low): Call
9529 linux_ptrace_init_warnings.
9530
9531 2012-07-02 Doug Evans <dje@google.com>
9532
9533 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
9534 pointer to int.
9535
9536 2012-07-02 Stan Shebs <stan@codesourcery.com>
9537
9538 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
9539 (ax.o): Add it to build rule.
9540 (ax-ipa.o): Ditto.
9541 (OBS): Add format.o.
9542 (IPA_OBS): Add format.o.
9543 * server.c (handle_query): Claim support for breakpoint commands.
9544 (process_point_options): Add command case.
9545 (process_serial_event): Leave running if there are printfs in
9546 effect.
9547 * mem-break.h (any_persistent_commands): Declare.
9548 (add_breakpoint_commands): Declare.
9549 (gdb_no_commands_at_breakpoint): Declare.
9550 (run_breakpoint_commands): Declare.
9551 * mem-break.c (struct point_command_list): New struct.
9552 (struct breakpoint): New field command_list.
9553 (any_persistent_commands): New function.
9554 (add_commands_to_breakpoint): New function.
9555 (add_breakpoint_commands): New function.
9556 (gdb_no_commands_at_breakpoint): New function.
9557 (run_breakpoint_commands): New function.
9558 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
9559 locally.
9560 * ax.c: Include format.h.
9561 (ax_printf): New function.
9562 (gdb_eval_agent_expr): Add printf opcode.
9563
9564 2012-06-13 Yao Qi <yao@codesourcery.com>
9565
9566 * server.c (start_inferior): Remove duplicated writes to fields
9567 'last_resume_kind' and 'last_status' of 'current_inferior'.
9568
9569 2012-06-12 Yao Qi <yao@codesourcery.com>
9570 Pedro Alves <palves@redhat.com>
9571
9572 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
9573 comment.
9574 * server.c (handle_v_cont): Extend comment.
9575
9576 2012-06-11 Yao Qi <yao@codesourcery.com>
9577
9578 * linux-low.c (linux_attach): Add 'static'.
9579
9580 2012-06-06 Yao Qi <yao@codesourcery.com>
9581
9582 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
9583
9584 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9585
9586 Fix gcc -flto compilation warning.
9587 * server.c (main): Make variable multi_mode and attach volatile.
9588
9589 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
9590
9591 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
9592 if the platform doesn't know about it.
9593
9594 2012-05-30 Jeff Kenton <jkenton@tilera.com>
9595
9596 * Makefile.in (SFILES): Add linux-tile-low.c.
9597 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
9598 * configure.srv: Handle tilegx-*-linux*.
9599 * linux-tile-low.c: New file.
9600
9601 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9602
9603 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
9604
9605 2012-05-24 Pedro Alves <palves@redhat.com>
9606
9607 PR gdb/7205
9608
9609 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
9610
9611 2012-05-24 Pedro Alves <palves@redhat.com>
9612
9613 PR gdb/7205
9614
9615 Replace target_signal with gdb_signal throughout.
9616
9617 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
9618
9619 * linux-low.c (linux_store_registers): Avoid the copying sequence
9620 when no data has been retrieved by ptrace.
9621
9622 2012-05-22 Will Deacon <will.deacon@arm.com>
9623
9624 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
9625 Include asm/ptrace.h.
9626 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
9627 already defined.
9628
9629 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
9630
9631 * linux-low.c (linux_store_registers): Don't re-retrieve data
9632 with ptrace that has already been obtained from /proc. Always
9633 copy any data retrieved with ptrace to the buffer supplied.
9634
9635 2012-05-11 Yao Qi <yao@codesourcery.com>
9636 Pedro Alves <palves@redhat.com>
9637
9638 * linux-low.c (enum stopping_threads_kind): New.
9639 (stopping_threads): Change type to `enum stopping_threads_kind'.
9640 (handle_extended_wait): If stopping and suspending threads, leave
9641 the new_lwp suspended too.
9642 (linux_wait_for_event): Adjust.
9643 (stop_all_lwps): Set `stopping_threads' to
9644 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
9645 whether we're suspending threads or just stopping them. Assert no
9646 recursion happens.
9647
9648 2012-04-29 Yao Qi <yao@codesourcery.com>
9649
9650 * server.h: Move some code to ...
9651 * gdbthread.h: ... here. New.
9652 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
9653 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
9654 (nto-low.o, win32-low.o): Likewise.
9655 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
9656 * regcache.c, remote-utils.c, server.c: Likewise.
9657 * target.c, tracepoint.c, win32-low.c: Likewise.
9658
9659 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
9660
9661 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
9662 (PTRACE_ARG4_TYPE): Likewise.
9663 (PTRACE_XFER_TYPE): Likewise.
9664 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
9665 ptrace to PTRACE_ARG3_TYPE.
9666 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
9667 (PTRACE_ARG4_TYPE): Likewise.
9668 (PTRACE_XFER_TYPE): Likewise.
9669 (linux_detach_one_lwp): Cast fourth argument of
9670 ptrace to long then PTRACE_ARG4_TYPE.
9671 (regsets_fetch_inferior_registers): Cast third argument of
9672 ptrace to long then PTRACE_ARG3_TYPE.
9673 (regsets_store_inferior_registers): Likewise.
9674
9675 2012-04-20 Pedro Alves <palves@redhat.com>
9676
9677 * configure: Regenerate.
9678
9679 2012-04-19 Pedro Alves <palves@redhat.com>
9680
9681 * Makefile.in (GNULIB_BUILDDIR): New.
9682 (LIBGNU, INCGNU, GNULIB_H): Adjust.
9683 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
9684 (all, install-only, uninstall, clean-info, all-lib, clean): No
9685 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
9686 (maintainer-clean realclean distclean): Use subdir_do.
9687 (subdir_do): New.
9688 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
9689 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
9690 * acinclude.m4: Include acx_configure_dir.m4.
9691 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
9692 calls. Call AC_PROG_RANLIB. Configure gnulib using
9693 ACX_CONFIGURE_DIR.
9694 (GNULIB): New.
9695 (GNULIB_STDINT_H): Adjust.
9696 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
9697 * gdbreplay.c: Include build-gnulib/config.h.
9698 * server.h: Likewise.
9699 * aclocal.m4: Regenerate.
9700 * config.in: Regenerate.
9701 * configure: Regenerate.
9702
9703 2012-04-19 Pedro Alves <palves@redhat.com>
9704
9705 * Makefile.in (LIBGNU, INCGNU): Adjust.
9706 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
9707 (all, install-only, uninstall, clean-info, all-lib, clean)
9708 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
9709 * configure.ac: Adjust AC_OUTPUT output.
9710 * aclocal.m4: Regenerate.
9711 * configure: Regenerate.
9712
9713 2012-04-19 Pedro Alves <palves@redhat.com>
9714
9715 * Makefile.in (generated_files): New.
9716 (server_h): Remove the explicit dependency on config.h, and depend
9717 on $generated_files.
9718
9719 2012-04-19 Pedro Alves <palves@redhat.com>
9720
9721 * Makefile.in (INCGNU): Add -Ignulib.
9722
9723 2012-04-19 Pedro Alves <palves@redhat.com>
9724
9725 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
9726 (INCGNU): ... this, and spell out -I here.
9727 (GNULIB_LIB): Rename to ...
9728 (LIBGNU): ... this.
9729 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
9730
9731 2012-04-19 Pedro Alves <palves@redhat.com>
9732
9733 * config.in: Regenerate.
9734
9735 2012-04-19 Pedro Alves <palves@redhat.com>
9736
9737 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
9738 * server.h (memmem): Remove declaration.
9739 * config.in: Regenerate.
9740 * configure: Regenerate.
9741
9742 2012-04-19 Yao Qi <yao@codesourcery.com>
9743
9744 * Makefile.in (SFILES): Add common/vec.c.
9745 (OBS): Add vec.o.
9746 (vec.o): New rule.
9747
9748 2012-04-19 Yao Qi <yao@codesourcery.com>
9749
9750 * remote-utils.c (prepare_resume_reply): Replace with macro
9751 target_core_of_thread.
9752 * server.c (handle_qxfer_threads_proper): Likewise.
9753 * target.h (traget_core_of_thread): New macro.
9754
9755 2012-04-18 Pedro Alves <palves@redhat.com>
9756
9757 * aclocal.m4: Regenerate.
9758 * configure: Regenerate.
9759
9760 2012-04-16 Yao Qi <yao@codesourcery.com>
9761
9762 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
9763 duplicated on address.
9764
9765 2012-04-16 Yao Qi <yao@codesourcery.com>
9766
9767 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
9768 (struct tracepoint_action_ops) <send>: New field.
9769 (m_tracepoint_action_send, r_tracepoint_action_send): New.
9770 (agent_expr_send, x_tracepoint_action_send): New.
9771 (l_tracepoint_action_send): New.
9772 (cmd_qtdp): Download and install tracepoint
9773 according to `use_agent'.
9774 (run_inferior_command): Add one more parameter `len'.
9775 Update callers.
9776 (tracepoint_send_agent): New.
9777 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
9778
9779 2012-04-16 Yao Qi <yao@codesourcery.com>
9780
9781 * tracepoint.c (download_tracepoints): Moved to ...
9782 (cmd_qtstart): ... here.
9783
9784 2012-04-14 Yao Qi <yao@codesourcery.com>
9785
9786 * tracepoint.c: Include inttypes.h.
9787 (struct collect_memory_action): Use sized types.
9788 (struct tracepoint): Likewise.
9789 (cmd_qtdp, stop_tracing): Update print specifiers.
9790 (cmd_qtp, response_tracepoint): Likewise.
9791 (collect_data_at_tracepoint): Likewise.
9792 (collect_data_at_step): Likewise.
9793
9794 2012-04-14 Yao Qi <yao@codesourcery.com>
9795
9796 Import gnulib module inttypes.
9797 * aclocal.m4, config.in, configure: Regenerated.
9798
9799 2012-04-14 Yao Qi <yao@codesourcery.com>
9800
9801 * Makefile.in (maintainer-clean, realclean, distclean): Remove
9802 Makefile and config.status at last.
9803
9804 2012-04-13 Yao Qi <yao@codesourcery.com>
9805
9806 * tracepoint.c: Include stdint.h unconditionally.
9807
9808 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
9809
9810 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
9811 on BFD_HAVE_SYS_PROCFS_TYPE.
9812 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
9813 * configure: Regenerate.
9814 * config.in: Likewise.
9815
9816 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
9817
9818 * Makefile.in (clean): Also remove x32.c x32-linux.c
9819 x32-avx.c x32-avx-linux.c.
9820 (x32.o): New target.
9821 (x32.c): Likewise.
9822 (x32-linux.o): Likewise.
9823 (x32-linux.c): Likewise.
9824 (x32-avx.o): Likewise.
9825 (x32-avx.c): Likewise.
9826 (x32-avx-linux.o): Likewise.
9827 (x32-avx-linux.c): Likewise.
9828
9829 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
9830 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
9831 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
9832 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
9833 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
9834 i386/x32-avx-linux.xml.
9835
9836 * linux-x86-low.c (init_registers_x32_linux): New prototype.
9837 (init_registers_x32_avx_linux): Likwise.
9838 (x86_linux_update_xmltarget): Call init_registers_x32_linux
9839 or init_registers_x32_avx_linux if linux_is_elf64 is false.
9840
9841 2012-04-13 Pedro Alves <palves@redhat.com>
9842
9843 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
9844 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
9845 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
9846 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
9847 the sub-make.
9848
9849 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
9850
9851 * linux-x86-low.c (compat_x32_clock_t): New.
9852 (compat_x32_siginfo_t): Likewise.
9853 (compat_x32_siginfo_from_siginfo): Likewise.
9854 (siginfo_from_compat_x32_siginfo): Likewise.
9855 (linux_is_elf64): Likewise.
9856 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
9857 and siginfo_from_compat_x32_siginfo for x32.
9858 (x86_arch_setup): Set linux_is_elf64.
9859
9860 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
9861
9862 PR gdb/13969
9863 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
9864 e_machine field.
9865 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
9866 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
9867 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
9868 compatible with process.
9869
9870 2012-04-12 Yao Qi <yao@codesourcery.com>
9871
9872 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
9873 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
9874 (install-only, install-info, clean): Handle sub dir gnulib.
9875 (all-lib, am--refresh): New targets.
9876 (memmem.o): Remove target.
9877 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
9878 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
9879 (AC_REPLACE_FUNCS): Remove memmem.
9880 Invoke gl_INIT and AM_INIT_AUTOMAKE.
9881 (AC_OUTPUT): Generate Makefile in gnulib/.
9882 * aclocal.m4, config.in, configure: Regenerated.
9883
9884 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9885
9886 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
9887
9888 2012-04-05 Pedro Alves <palves@redhat.com>
9889
9890 -Werror=strict-aliasing
9891
9892 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
9893 pointer.
9894
9895 2012-04-04 Pedro Alves <palves@redhat.com>
9896
9897 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
9898 (sparc_store_gregset_from_stack, sparc_store_gregset)
9899 (sparc_breakpoint_at): Fix formatting.
9900
9901 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
9902
9903 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
9904 are available.
9905 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
9906 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
9907 * config.in: Regenerate.
9908 * configure: Likewise.
9909
9910 2012-03-29 Pedro Alves <palves@redhat.com>
9911
9912 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
9913 Correct ptrace arguments.
9914
9915 2012-03-28 Pedro Alves <palves@redhat.com>
9916
9917 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
9918 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
9919 (IA64_FR1_REGNUM): New defines.
9920 (ia64_fetch_register): New.
9921 (the_low_target): Install it.
9922 * linux-low.h (struct linux_target_ops) <fetch_register>: New
9923 field.
9924 * linux-low.c (linux_fetch_registers): Try the
9925 the_low_target.fetch_register hook first.
9926
9927 * linux-arm-low.c (the_low_target): Adjust.
9928 * linux-bfin-low.c (the_low_target): Adjust.
9929 * linux-cris-low.c (the_low_target): Adjust.
9930 * linux-crisv32-low.c (the_low_target): Adjust.
9931 * linux-m32r-low.c (the_low_target): Adjust.
9932 * linux-m68k-low.c (the_low_target): Adjust.
9933 * linux-mips-low.c (the_low_target): Adjust.
9934 * linux-ppc-low.c (the_low_target): Adjust.
9935 * linux-s390-low.c (the_low_target): Adjust.
9936 * linux-sh-low.c (the_low_target): Adjust.
9937 * linux-sparc-low.c (the_low_target): Adjust.
9938 * linux-tic6x-low.c (the_low_target): Adjust.
9939 * linux-x86-low.c (the_low_target): Adjust.
9940 * linux-xtensa-low.c (the_low_target): Adjust.
9941
9942 2012-03-26 Pedro Alves <palves@redhat.com>
9943
9944 * server.c (handle_qxfer_libraries): Don't bail early if
9945 the_target->qxfer_libraries_svr4 is not NULL.
9946
9947 2012-03-26 Pedro Alves <palves@redhat.com>
9948
9949 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
9950
9951 2012-03-23 Pedro Alves <palves@redhat.com>
9952
9953 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
9954 "library-list-svr4" element's start tag when the the DSO list is
9955 empty.
9956
9957 2012-03-23 Pedro Alves <palves@redhat.com>
9958
9959 * linux-low.c (read_one_ptr): Read the inferior's pointer through
9960 a variable whose type size is the same as the inferior's pointer
9961 size.
9962
9963 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9964
9965 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
9966 struct siginfo.
9967 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
9968 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9969 * linux-low.h: Include <signal.h>.
9970 (struct siginfo): Remove forward declaration.
9971 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
9972 struct siginfo.
9973
9974 2012-03-21 Mike Frysinger <vapier@gentoo.org>
9975
9976 * .gitignore: Ignore more files.
9977
9978 2012-03-19 Pedro Alves <palves@redhat.com>
9979 Jan Kratochvil <jan.kratochvil@redhat.com>
9980
9981 * server.c (cont_thread, general_thread): Add describing comments.
9982 (start_inferior): Clear `cont_thread'.
9983 (handle_v_cont): Don't set `cont_thread' if resuming all threads
9984 of a process.
9985
9986 2012-03-15 Yao Qi <yao@codesourcery.com>
9987
9988 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
9989 handling to ...
9990 (cmd_qtdp): ... here.
9991
9992 2012-03-15 Yao Qi <yao@codesourcery.com>
9993
9994 * tracepoint.c (struct tracepoint_action_ops): New.
9995 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
9996 (m_tracepoint_action_download): New.
9997 (r_tracepoint_action_download): New.
9998 (x_tracepoint_action_download): New.
9999 (l_tracepoint_action_download): New.
10000 (add_tracepoint_action): Install `action->ops' according type.
10001 (download_tracepoint_1): Move code `download' function pointer
10002 of various tracepoint_action_ops.
10003
10004 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10005
10006 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
10007 linux_ptrace_attach_warnings.
10008
10009 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10010
10011 * Makefile.in (linux-ptrace.o): New.
10012 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
10013 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
10014 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
10015 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
10016 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
10017 of these targets.
10018 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
10019
10020 2012-03-08 Yao Qi <yao@codesourcery.com>
10021 Pedro Alves <palves@redhat.com>
10022
10023 Fix PR server/13392.
10024 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
10025 offset of JMP insn.
10026 * tracepoint.c (remove_tracepoint): New.
10027 (cmd_qtdp): Call remove_tracepoint when failed to install.
10028
10029 2012-03-07 Pedro Alves <palves@redhat.com>
10030
10031 * linux-low.c (get_detach_signal): New.
10032 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
10033 Pass on pending signals to PTRACE_DETACH. Check the result of the
10034 ptrace call.
10035 * server.c (program_signals, program_signals_p): New.
10036 (handle_general_set): Handle QProgramSignals.
10037 * server.h (program_signals, program_signals_p): Declare.
10038
10039 2012-03-05 Pedro Alves <palves@redhat.com>
10040 Jan Kratochvil <jan.kratochvil@redhat.com>
10041
10042 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
10043 New comment why.
10044
10045 2012-03-03 Yao Qi <yao@codesourcery.com>
10046
10047 * tracepoint.c (tracepoint_look_up_symbols): Update call to
10048 agent_look_up_symbols.
10049
10050 2012-03-03 Yao Qi <yao@codesourcery.com>
10051
10052 * Makefile.in (linux-low.o): Keep dependence on agent.h.
10053 (linux-x86-low.o): Likewise.
10054 * server.h: Remove in_process_agent_loaded.
10055 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
10056 common/agent.c.
10057 Update callers.
10058
10059 2012-03-03 Yao Qi <yao@codesourcery.com>
10060
10061 * tracepoint.c (gdb_agent_capability): New global.
10062 (in_process_agent_loaded_ust): Renamed to
10063 `in_process_agent_supports_ust'.
10064 Update callers.
10065 (in_process_agent_supports_ust): Call agent_capability_check.
10066 (clear_installed_tracepoints): Assert that agent supports
10067 agent.
10068
10069 2012-03-03 Yao Qi <yao@codesourcery.com>
10070
10071 * linux-low.c (linux_supports_agent): New.
10072 (linux_target_ops): Initialize field `supports_agent' with
10073 linux_supports_agent.
10074 * target.h (struct target_ops) <supports_agent>: New.
10075 (target_supports_agent): New macro.
10076 * server.c (handle_general_set): Handle packet 'QAgent'.
10077 (handle_query): Send `QAgent+'.
10078 * Makefile.in (server.o): Depends on agent.h.
10079
10080 2012-03-03 Yao Qi <yao@codesourcery.com>
10081
10082 * Makefile.in (OBS): Add agent.o.
10083 Add new rule for agent.o.
10084 Track dependence of tracepoint.c on agent.h.
10085 * tracepoint.c (run_inferior_command_1):
10086 (run_inferior_command): Call agent_run_command.
10087 (gdb_ust_connect_sync_socket): Deleted. Move it to
10088 common/agent.c.
10089 (resume_thread, stop_thread): Likewise.
10090 (gdb_ust_socket_init): Renamed to ...
10091 (gdb_agent_socket_init): ... New.
10092 (gdb_ust_thread): Renamed to ...
10093 (gdb_agent_helper_thread): ... New.
10094 (gdb_ust_init): Move some code to ...
10095 (gdb_agent_init): ... here. New.
10096 [HAVE_UST]: Call gdb_ust_init.
10097 (initialize_tracepoint_ftlib): Call gdb_agent_init.
10098 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
10099 * config.in, configure: Regenerated.
10100
10101 2012-03-02 Pedro Alves <palves@redhat.com>
10102
10103 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
10104 * linux-low.c (struct simple_pid_list): New.
10105 (stopped_pids): New a struct simple_pid_list pointer.
10106 (add_to_pid_list, pull_pid_from_list): New.
10107 (handle_extended_wait): Don't assume the first signal new children
10108 report is SIGSTOP. Adjust call to pull_pid_from_list.
10109 (linux_wait_for_lwp): Adjust.
10110
10111 2012-03-02 Yao Qi <yao@codesourcery.com>
10112
10113 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
10114 debug log.
10115
10116 2012-03-02 Yao Qi <yao@codesourcery.com>
10117
10118 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
10119 `stop_pc' and `tpoint'. Update caller.
10120
10121 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10122
10123 * linux-low.h (linux_target_ops): Add regset_bitmap member.
10124 * linux-low.c (use_linux_regsets): New macro.
10125 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
10126 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
10127 (linux_register_in_regsets): New function.
10128 (usr_fetch_inferior_registers): Skip registers covered by
10129 regsets.
10130 (usr_store_inferior_registers): Likewise.
10131 (usr_fetch_inferior_registers): New macro.
10132 (usr_store_inferior_registers): Likewise.
10133 (linux_fetch_registers): Handle mixed regset/non-regset targets.
10134 (linux_store_registers): Likewise.
10135 * linux-mips-low.c (init_registers_mips_dsp_linux): New
10136 prototype.
10137 (init_registers_mips64_dsp_linux): Likewise.
10138 (init_registers_mips_linux): New macro.
10139 (init_registers_mips_dsp_linux): Likewise.
10140 (mips_dsp_num_regs): Likewise.
10141 (DSP_BASE, DSP_CONTROL): New fallback macros.
10142 (mips_base_regs): New macro.
10143 (mips_regmap): Use it. Fix the size.
10144 (mips_dsp_regmap): New variable.
10145 (mips_dsp_regset_bitmap): Likewise.
10146 (mips_arch_setup): New function.
10147 (mips_cannot_fetch_register): Use the_low_target.regmap rather
10148 than mips_regmap.
10149 (mips_cannot_store_register): Likewise.
10150 (the_low_target): Update .arch_setup, .num_regs and .regmap
10151 initializers. Add .regset_bitmap initializer.
10152 * linux-arm-low.c (the_low_target): Add .regset_bitmap
10153 initializer.
10154 * linux-bfin-low.c (the_low_target): Likewise.
10155 * linux-cris-low.c (the_low_target): Likewise.
10156 * linux-crisv32-low.c (the_low_target): Likewise.
10157 * linux-ia64-low.c (the_low_target): Likewise.
10158 * linux-m32r-low.c (the_low_target): Likewise.
10159 * linux-m68k-low.c (the_low_target): Likewise.
10160 * linux-ppc-low.c (the_low_target): Likewise.
10161 * linux-s390-low.c (the_low_target): Likewise.
10162 * linux-sh-low.c (the_low_target): Likewise.
10163 * linux-sparc-low.c (the_low_target): Likewise.
10164 * linux-tic6x-low.c (the_low_target): Likewise.
10165 * linux-x86-low.c (the_low_target): Likewise.
10166 * linux-xtensa-low.c (the_low_target): Likewise.
10167 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
10168 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
10169 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
10170 srv_xmlfiles.
10171 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
10172 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
10173
10174 2012-02-29 Yao Qi <yao@codesourcery.com>
10175 Pedro Alves <palves@redhat.com>
10176
10177 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
10178 `step_over_finished' is true.
10179
10180 2012-02-27 Pedro Alves <palves@redhat.com>
10181
10182 * linux-low.c (pid_is_stopped): Delete, moved to common/.
10183 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
10184
10185 2012-02-27 Pedro Alves <palves@redhat.com>
10186
10187 PR server/9684
10188 * linux-low.c (pid_is_stopped): New.
10189 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
10190
10191 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
10192
10193 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
10194 of conditions.
10195
10196 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10197
10198 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
10199
10200 2012-02-24 Luis Machado <lgustavo@codesourcery>
10201
10202 * server.c (handle_query): Advertise support for target-side
10203 breakpoint condition evaluation.
10204 (process_point_options): New function.
10205 (process_serial_event): When inserting a breakpoint, check for
10206 a target-side condition that should be evaluated.
10207
10208 * mem-break.c: Include regcache.h and ax.h.
10209 (point_cond_list_t): New data structure.
10210 (breakpoint) <cond_list>: New field.
10211 (find_gdb_breakpoint_at): Make non-static.
10212 (delete_gdb_breakpoint_at): Clear any target-side
10213 conditions.
10214 (clear_gdb_breakpoint_conditions): New function.
10215 (add_condition_to_breakpoint): Likewise.
10216 (add_breakpoint_condition): Likewise.
10217 (gdb_condition_true_at_breakpoint): Likewise.
10218 (gdb_breakpoint_here): Return result directly instead
10219 of going through a local variable.
10220
10221 * mem-break.h (find_gdb_breakpoint_at): New prototype.
10222 (clear_gdb_breakpoint_conditions): Likewise.
10223 (add_breakpoint_condition): Likewise.
10224 (gdb_condition_true_at_breakpoint): Likewise.
10225
10226 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
10227 (need_step_over_p): Take target-side breakpoint condition into
10228 consideration.
10229
10230 2012-02-24 Luis Machado <lgustavo@codesourcery>
10231
10232 * server.h: Include tracepoint.h.
10233 (agent_mem_read, agent_get_trace_state_variable_value,
10234 agent_set_trace_state_variable_value,
10235 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
10236 get_set_tsv_func_addr): New prototypes.
10237
10238 * ax.h: New include file.
10239 * ax.c: New source file.
10240
10241 * tracepoint.c: Include ax.h.
10242 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
10243 agent_expr, eval_result_type): Move to ax.h.
10244 (parse_agent_expr): Rename to ...
10245 (gdb_parse_agent_expr): ... this, make it non-static and move
10246 to ax.h.
10247 (unparse_agent_expr) Rename to ...
10248 (gdb_unparse_agent_expr): ... this, make it non-static and move
10249 to ax.h.
10250 (eval_agent_expr): Rename to ...
10251 (eval_tracepoint_agent_expr): ... this.
10252 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
10253 forward declarations.
10254 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
10255 (agent_get_trace_state_variable_value): New function.
10256 (agent_set_trace_state_variable_value): New function.
10257 (cmd_qtdp): Call gdb_parse_agent_expr (...).
10258 (response_tracepoint): Call gdb_unparse_agent_expr (...).
10259 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
10260 (condition_true_at_tracepoint): Likewise.
10261 (parse_agent_expr): Rename to ...
10262 (gdb_parse_agent_expr): ... this and move to ax.c.
10263 (unparse_agent_expr): Rename to ...
10264 (gdb_unparse_agent_expr): ... this and move to ax.c.
10265 (gdb_agent_op_name): Move to ax.c.
10266 (eval_agent_expr): Rename to ...
10267 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
10268 and move to ax.c.
10269 (eval_tracepoint_agent_expr): New function.
10270 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
10271 non-static.
10272 (current_insn_ptr, emit_error, struct bytecode_address): Move to
10273 ax.c.
10274 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
10275 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
10276 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
10277 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
10278 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
10279 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
10280 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
10281 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
10282 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
10283 (compile_bytecodes): Remove forward declaration.
10284 (is_goto_target): Move to ax.c.
10285 (compile_bytecodes): Move to ax.c and call
10286 agent_get_trace_state_variable_value (...) and
10287 agent_set_trace_state_variable_value (...).
10288
10289 * Makefile.in: Update ax.c and IPA dependencies.
10290
10291 2012-02-24 Pedro Alves <palves@redhat.com>
10292
10293 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
10294 (cmd_bigqtbuffer_circular): ... this. Only handle
10295 'QTBuffer:circular:'.
10296 (handle_tracepoint_general_set): Adjust.
10297
10298 2012-02-16 Yao Qi <yao@codesourcery.com>
10299
10300 * inferiors.c: Move code to ...
10301 * dll.c: .... here. New.
10302 * server.h: Declare clear_dlls.
10303 * Makefile.in (SFILES): Add dll.c.
10304 (OBS): Add dll.o
10305 (dll.o): New rule.
10306
10307 2012-02-11 Yao Qi <yao@codesourcery.com>
10308
10309 * server.c: (handle_monitor_command): Add a new parameter
10310 `own_buf'.
10311 (handle_query): Update caller.
10312
10313 2012-02-09 Joel Brobecker <brobecker@adacore.com>
10314
10315 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
10316 * configure, config.in: Regenerate.
10317 * hostio.c: Provide an alternate implementation if HAVE_READLINK
10318 is not defined.
10319
10320 2012-02-02 Pedro Alves <palves@redhat.com>
10321
10322 Try SIGKILL first, then PTRACE_KILL.
10323 * linux-low.c (linux_kill_one_lwp): New.
10324 (linux_kill_one_lwp): Rename to ...
10325 (kill_one_lwp_callback): ... this. Use the new
10326 linux_kill_one_lwp.
10327
10328 2012-02-02 Pedro Alves <palves@redhat.com>
10329
10330 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
10331 inferior.
10332
10333 2012-01-27 Pedro Alves <palves@redhat.com>
10334
10335 * linux-low.c (linux_child_pid_to_exec_file): Delete.
10336 (elf_64_file_p): Make static.
10337 (linux_pid_exe_is_elf_64_file): New.
10338 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
10339 Delete declarations.
10340 (linux_pid_exe_is_elf_64_file): Declare.
10341 * linux-x86-low.c (x86_arch_setup): Use
10342 linux_pid_exe_is_elf_64_file.
10343
10344 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10345
10346 * linux-low.c (linux_wait_for_event_1): Rename to ...
10347 (linux_wait_for_event): ... here and merge it with former
10348 linux_wait_for_event - new variable wait_ptid, use it.
10349 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
10350
10351 2012-01-23 Pedro Alves <palves@redhat.com>
10352
10353 * server.c (main): Avoid yet another case of infinite loop while
10354 detaching/killing after a longjmp.
10355
10356 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10357
10358 Code cleanup.
10359 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
10360
10361 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10362
10363 * hostio.c (handle_readlink): New function.
10364 (handle_vFile): Call it to handle "vFile:readlink" packets.
10365
10366 2012-01-20 Pedro Alves <palves@redhat.com>
10367 Ulrich Weigand <ulrich.weigand@linaro.org>
10368
10369 * server.c (handle_v_requests): Only support vAttach and vRun to
10370 start multiple processes when in extended protocol mode.
10371
10372 2012-01-17 Pedro Alves <palves@redhat.com>
10373
10374 * tracepoint.c (initialize_tracepoint): Use mmap instead of
10375 memalign plus mprotect to allocate the scratch buffer.
10376
10377 2012-01-13 Pedro Alves <palves@redhat.com>
10378
10379 * server.c (attach_inferior): Clear `cont_thread'.
10380
10381 2012-01-13 Pedro Alves <palves@redhat.com>
10382
10383 * server.c (main): Avoid infinite loop while detaching/killing
10384 after a longjmp.
10385
10386 2012-01-09 Doug Evans <dje@google.com>
10387
10388 * server.c (start_inferior): Set last_ptid in --wrapper case.
10389
10390 2012-01-06 Yao Qi <yao@codesourcery.com>
10391
10392 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
10393 defined.
10394 [IN_PROCESS_AGENT] (debug_agent): New global variable.
10395
10396 2012-01-04 Yao Qi <yao@codesourcery.com>
10397
10398 * tracepoint.c (cmd_qtdp): Print debug message
10399 for static tracepoint.
10400
10401 2012-01-04 Yao Qi <yao@codesourcery.com>
10402
10403 * tracepoint.c (trace_vdebug): Differentiate debug message
10404 between gdbserver and IPA.
10405
10406 2012-01-03 Yao Qi <yao@codesourcery.com>
10407
10408 * tracepoint.c (tracepoint_was_hit): Don't collect for
10409 static tracepoint.
10410
10411 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10412
10413 * terminal.h: Reformat copyright header.
10414
10415 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10416
10417 * server.c (gdbserver_version): Update copyright year.
10418 * gdbreplay.c (gdbreplay_version): Likewise.
10419
10420 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10421
10422 * linux-low.c (linux_create_inferior): Put empty if clause for write.
10423
10424 Revert:
10425 2011-12-18 Hui Zhu <teawater@gmail.com>
10426 * linux-low.c (linux_create_inferior): Save return value to ret.
10427
10428 2011-12-18 Hui Zhu <teawater@gmail.com>
10429
10430 * linux-low.c (linux_create_inferior): Save return value to ret.
10431
10432 2011-12-16 Doug Evans <dje@google.com>
10433
10434 * linux-low.c (linux_create_inferior): If stdio connection,
10435 redirect stdin from /dev/null, stdout to stderr.
10436 * remote-utils.c (remote_is_stdio): New static global.
10437 (remote_connection_is_stdio): New function.
10438 (remote_prepare): Handle stdio connection.
10439 (remote_open): Ditto.
10440 (remote_close): Don't close stdin for stdio connections.
10441 (read_prim,write_prim): New functions. Replace all calls to
10442 read/write to these.
10443 * server.c (main): Watch for "-" argument. Move call to
10444 remote_prepare before start_inferior.
10445 * server.h (STDIO_CONNECTION_NAME): New macro.
10446 (remote_connection_is_stdio): Declare.
10447
10448 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
10449 in debugging output.
10450
10451 2011-12-15 Yao Qi <yao@codesourcery.com>
10452
10453 * tracepoint.c: Include sys/syscall.h.
10454 (gdb_ust_thread): Remove preprocessor conditional.
10455
10456 2011-12-14 Pedro Alves <pedro@codesourcery.com>
10457
10458 * linux-low.c (linux_detach_one_lwp): Call
10459 the_low_target.prepare_to_resume before detaching.
10460
10461 2011-12-14 Yao Qi <yao@codesourcery.com>
10462
10463 * tracepoint.c (gdb_ust_thread): Don't ignore return value
10464 of write.
10465
10466 2011-12-14 Yao Qi <yao@codesourcery.com>
10467
10468 * i386-low.c (i386_low_stopped_data_address): Initialize local
10469 variable `control'.
10470
10471 2011-12-13 Pedro Alves <pedro@codesourcery.com>
10472
10473 PR remote/13492
10474
10475 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
10476 DR_CONTROL unless necessary. Extend comments.
10477 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
10478 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
10479
10480 2011-12-13 Yao Qi <yao@codesourcery.com>
10481
10482 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
10483 macros.
10484 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
10485
10486 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10487
10488 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
10489 Print new debug message for such case.
10490
10491 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
10492
10493 Fix overlapping memcpy.
10494 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
10495 the read_inferior_memory transfer.
10496 (delete_fast_tracepoint_jump): New variable buf. Use it for the
10497 write_inferior_memory transfer.
10498 (set_fast_tracepoint_jump): New variable buf. Use it for the
10499 read_inferior_memory and write_inferior_memory transfers.
10500 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
10501 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
10502 Use it for the write_inferior_memory transfer.
10503 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
10504 buffers.
10505
10506 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
10507
10508 * linux-low.c (fetch_register, store_register): Make code
10509 consistent, fix formatting.
10510
10511 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
10512
10513 * linux-low.c (usr_store_inferior_registers): Factor out code
10514 to handle individual registers into...
10515 (store_register): ... this new function.
10516
10517 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
10518
10519 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
10520 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
10521 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
10522 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
10523 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
10524 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
10525 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
10526 (srv_xmlfiles): Add new XML files.
10527
10528 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
10529 and <sys/uio.h>.
10530 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
10531 (init_registers_s390_linux32v1): Add prototype.
10532 (init_registers_s390_linux32v2): Likewise.
10533 (init_registers_s390_linux64v1): Likewise.
10534 (init_registers_s390_linux64v2): Likewise.
10535 (init_registers_s390x_linux64v1): Likewise.
10536 (init_registers_s390x_linux64v2): Likewise.
10537 (s390_num_regs): Increment to 52.
10538 (s390_regmap): Add orig_r2 register.
10539 (s390_num_regs_3264): Increment to 68.
10540 (s390_regmap_3264): Add orig_r2 register.
10541 (s390_collect_ptrace_register): Handle orig_r2 register.
10542 (s390_supply_ptrace_register): Likewise.
10543 (s390_fill_last_break): New function.
10544 (s390_store_last_break): Likewise.
10545 (s390_fill_system_call): New function.
10546 (s390_store_system_call): Likewise.
10547 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
10548 register sets.
10549 (s390_check_regset): New function.
10550 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
10551 NT_S390_SYSTEM_CALL regsets and use appropriate description.
10552 Update target_regsets for available register sets.
10553
10554 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
10555 Jan Kratochvil <jan.kratochvil@redhat.com>
10556
10557 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
10558 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
10559 New.
10560 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
10561 * linux-low.h (struct process_info_private): New member r_debug.
10562 * server.c (handle_qxfer_libraries): Call
10563 the_target->qxfer_libraries_svr4.
10564 (handle_qxfer_libraries_svr4): New function.
10565 (qxfer_packets): New entry "libraries-svr4".
10566 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
10567 * target.h (struct target_ops): New member qxfer_libraries_svr4.
10568 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
10569 PACKET_qXfer_libraries_svr4.
10570
10571 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
10572
10573 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
10574 PSW address/mask between 8-byte and 16-byte formats.
10575 (s390_supply_ptrace_register): Likewise.
10576 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
10577 basic addressing mode bit.
10578
10579 2011-11-24 Stan Shebs <stan@codesourcery.com>
10580
10581 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
10582
10583 2011-11-17 Stan Shebs <stan@codesourcery.com>
10584
10585 * tracepoint.c (struct tracepoint): New field traceframe_usage.
10586 (tracing_start_time): New global.
10587 (tracing_stop_time): New global.
10588 (tracing_user_name): New global.
10589 (tracing_notes): New global.
10590 (tracing_stop_note): New global.
10591 (cmd_qtstart): Set traceframe_usage, start_time.
10592 (stop_tracing): Set stop_time.
10593 (cmd_qtstatus): Report additional status.
10594 (cmd_qtp): New function.
10595 (handle_tracepoint_query): Call it.
10596 (cmd_qtnotes): New function.
10597 (handle_tracepoint_general_set): Call it.
10598 (get_timestamp): Rename from tsv_get_timestamp.
10599
10600 2011-11-14 Stan Shebs <stan@codesourcery.com>
10601 Kwok Cheung Yeung <kcy@codesourcery.com>
10602
10603 * linux-x86-low.c (small_jump_insn): New.
10604 (i386_install_fast_tracepoint_jump_pad): Add arguments for
10605 trampoline and error message, build a trampoline and issue a small
10606 jump instruction to it.
10607 (x86_install_fast_tracepoint_jump_pad): Add arguments for
10608 trampoline and error message.
10609 (x86_get_min_fast_tracepoint_insn_len): New.
10610 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
10611 * linux-low.h (struct linux_target_ops): Add arguments to
10612 install_fast_tracepoint_jump_pad operation, add new operation.
10613 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
10614 arguments.
10615 (linux_get_min_fast_tracepoint_insn_len): New function.
10616 (linux_target_op): Add new operation.
10617 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
10618 (gdb_trampoline_buffer_end): Ditto.
10619 (gdb_trampoline_buffer_error): Ditto.
10620 (struct ipa_sym_addresses): Add fields for new IPA variables.
10621 (symbol_list): Add entries for new IPA variables.
10622 (struct tracepoint): Add fields to hold the address range of the
10623 trampoline used by the tracepoint.
10624 (trampoline_buffer_head): New static variable.
10625 (trampoline_buffer_tail): Ditto.
10626 (claim_trampoline_space): New function.
10627 (have_fast_tracepoint_trampoline_buffer): New function.
10628 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
10629 structure.
10630 (install_fast_tracepoint): Ditto, also add error buffer argument.
10631 (cmd_qtminftpilen): New function.
10632 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
10633 (fast_tracepoint_from_trampoline_address): New function.
10634 (fast_tracepoint_collecting): Handle trampoline as part of jump
10635 pad space.
10636 (set_trampoline_buffer_space): New function.
10637 (initialize_tracepoint): Initialize new IPA variables.
10638 * target.h (struct target_ops): Add arguments to
10639 install_fast_tracepoint_jump_pad operation, add new
10640 get_min_fast_tracepoint_insn_len operation.
10641 (target_get_min_fast_tracepoint_insn_len): New.
10642 (install_fast_tracepoint_jump_pad): Add arguments.
10643 * server.h (IPA_BUFSIZ): Define.
10644 * linux-i386-ipa.c: Include extra header files.
10645 (initialize_fast_tracepoint_trampoline_buffer): New function.
10646 (initialize_low_tracepoint): Call it.
10647 * server.h (set_trampoline_buffer_space): Declare.
10648 (claim_trampoline_space): Ditto.
10649 (have_fast_tracepoint_trampoline_buffer): Ditto.
10650
10651 2011-11-14 Yao Qi <yao@codesourcery.com>
10652
10653 * server.c (handle_query): Handle InstallInTrace for qSupported.
10654 * tracepoint.c (add_tracepoint): Sort list.
10655 (install_tracepoint, download_tracepoint): New.
10656 (cmd_qtdp): Call them to install and download tracepoints.
10657 (sort_tracepoints): Removed.
10658 (cmd_qtstart): Update.
10659
10660 2011-11-14 Yao Qi <yao@codesourcery.com>
10661
10662 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
10663 * mem-break.h: Declare.
10664 * tracepoint.c (cmd_qtstart): Move some code to ...
10665 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
10666 New.
10667 (download_tracepoints): Move some code to ...
10668 (download_tracepoint_1): ... here. New.
10669
10670 2011-11-08 Yao Qi <yao@codesourcery.com>
10671
10672 * remote-utils.c (relocate_instruction): A comment fix.
10673
10674 2011-11-07 Joel Brobecker <brobecker@adacore.com>
10675
10676 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
10677 (i386_dr_low_get_control, i386_dr_low_get_status): Use
10678 dr_status_mirror and dr_control_mirror from debug_reg_state.
10679 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
10680 (i386_initial_stuff): Remove use of deleted globals.
10681 (i386_get_thread_context, i386_set_thread_context,
10682 i386_thread_added): Use dr_status_mirror and dr_control_mirror
10683 from debug_reg_state.
10684
10685 2011-11-05 Yao Qi <yao@codesourcery.com>
10686
10687 * tracepoint.c (gdb_collect): Loop over tracepoints of same
10688 address as TPOINT's.
10689
10690 2011-11-02 Stan Shebs <stan@codesourcery.com>
10691
10692 * tracepoint.c (agent_mem_read_string): New function.
10693 (eval_agent_expr): Call it for tracenz.
10694 * server.c (handle_query): Report support for tracenz.
10695
10696 2011-11-02 Yao Qi <yao@codesourcery.com>
10697
10698 * tracepoint.c (cmd_qtstart): Remove unused local variables.
10699
10700 2011-11-02 Yao Qi <yao@codesourcery.com>
10701
10702 * target.h: Fix a typo in comment.
10703
10704 2011-10-31 Pedro Alves <pedro@codesourcery.com>
10705
10706 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
10707 clobber the breakpoints' shadows with fast tracepoint jumps.
10708 * mem-break.h (check_mem_write): Add `myaddr' parameter.
10709 * target.c (write_inferior_memory): Also pass MYADDR down to
10710 check_mem_write.
10711
10712 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
10713
10714 * configure.ac: Check support for personality routine.
10715 * configure: Regenerate.
10716 * config.in: Likewise.
10717 * linux-low.c: Include <sys/personality.h>.
10718 Define ADDR_NO_RANDOMIZE if necessary.
10719 (linux_create_inferior): Disable address space randomization when
10720 forking inferior, if requested.
10721 (linux_supports_disable_randomization): New function.
10722 (linux_target_ops): Install it.
10723 * server.h (disable_randomization): Declare.
10724 * server.c (disable_randomization): New global variable.
10725 (handle_general_set): Handle QDisableRandomization.
10726 (handle_query): Likewise for qSupported.
10727 (main): Support --disable-randomization and --no-disable-randomization
10728 command line arguments.
10729 * target.h (struct target_ops): Add supports_disable_randomization.
10730 (target_supports_disable_randomization): New macro.
10731
10732 2011-09-29 Mike Frysinger <vapier@gentoo.org>
10733
10734 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
10735 ifdef check.
10736 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
10737 [!PT_GETDSBT] (target_loadmap): New definition.
10738 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
10739 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
10740 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
10741 and PT_GETDSBT to LINUX_LOADMAP.
10742 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
10743 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
10744
10745 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
10746
10747 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
10748 (arm_linux_hwbp_cap): New static variable.
10749 (arm_linux_get_hwbp_cap): Replace by ...
10750 (arm_linux_init_hwbp_cap): ... this new function.
10751 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
10752 (arm_linux_get_hw_watchpoint_count): Likewise.
10753 (arm_linux_get_hw_watchpoint_max_length): Likewise.
10754 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
10755 (arm_prepare_to_resume): Use perror_with_name instead of error.
10756
10757 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
10758
10759 * linux-arm-low.c: Include <signal.h>.
10760 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
10761 (struct arm_linux_hwbp_cap): New data type.
10762 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
10763 (struct arm_linux_hw_breakpoint): New data type.
10764 (MAX_BPTS, MAX_WPTS): Define.
10765 (struct arch_process_info, struct arch_lwp_info): New data types.
10766 (arm_linux_get_hwbp_cap): New function.
10767 (arm_linux_get_hw_breakpoint_count): Likewise.
10768 (arm_linux_get_hw_watchpoint_count): Likewise.
10769 (arm_linux_get_hw_watchpoint_max_length): Likewise.
10770 (arm_hwbp_control_initialize): Likewise.
10771 (arm_hwbp_control_is_enabled): Likewise.
10772 (arm_hwbp_control_is_initialized): Likewise.
10773 (arm_hwbp_control_disable): Likewise.
10774 (arm_linux_hw_breakpoint_equal): Likewise.
10775 (arm_linux_hw_point_initialize): Likewise.
10776 (struct update_registers_data): New data structure.
10777 (update_registers_callback: New function.
10778 (arm_insert_point): Likewise.
10779 (arm_remove_point): Likewise.
10780 (arm_stopped_by_watchpoint): Likewise.
10781 (arm_stopped_data_address): Likewise.
10782 (arm_new_process): Likewise.
10783 (arm_new_thread): Likewise.
10784 (arm_prepare_to_resume): Likewise.
10785 (the_low_target): Register arm_insert_point, arm_remove_point,
10786 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
10787 arm_new_thread, and arm_prepare_to_resume.
10788
10789 2011-09-15 Stan Shebs <stan@codesourcery.com>
10790
10791 * server.h (struct emit_ops): Add compare-goto fields.
10792 * tracepoint.c (gdb_agent_op_sizes): New table.
10793 (emit_eq_goto): New function.
10794 (emit_ne_goto): New function.
10795 (emit_lt_goto): New function.
10796 (emit_le_goto): New function.
10797 (emit_gt_goto): New function.
10798 (emit_ge_goto): New function.
10799 (is_goto_target): New function.
10800 (compile_bytecodes): Recognize special cases of compare-goto
10801 combinations and call specialized emitters for them.
10802 * linux-x86-low.c (amd64_emit_eq_goto): New function.
10803 (amd64_emit_ne_goto): New function.
10804 (amd64_emit_lt_goto): New function.
10805 (amd64_emit_le_goto): New function.
10806 (amd64_emit_gt_goto): New function.
10807 (amd64_emit_ge_goto): New function.
10808 (amd64_emit_ops): Add the new functions.
10809 (i386_emit_eq_goto): New function.
10810 (i386_emit_ne_goto): New function.
10811 (i386_emit_lt_goto): New function.
10812 (i386_emit_le_goto): New function.
10813 (i386_emit_gt_goto): New function.
10814 (i386_emit_ge_goto): New function.
10815 (i386_emit_ops): Add the new functions.
10816
10817 2011-09-08 Stan Shebs <stan@codesourcery.com>
10818
10819 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
10820 (i386_emit_epilogue): Restore %ebx.
10821
10822 2011-08-31 Jie Zhang <jzhang918@gmail.com>
10823
10824 * server.c (step_thread): Remove definition.
10825 (process_serial_event): Don't handle Hs.
10826 * server.h (step_thread): Remove declaration.
10827 * target.c (set_desired_inferior): Remove use of step_thread.
10828
10829 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
10830
10831 * linux-low.c: Include linux-procfs.h.
10832 (linux_attach_lwp_1): Update comments.
10833 (linux_attach): Scan for existing threads when attaching to a
10834 process that is the tgid.
10835 * Makefile.in: Update dependencies.
10836
10837 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
10838
10839 * configure.srv: Add linux-procfs.o dependencies.
10840
10841 2011-08-14 Yao Qi <yao@codesourcery.com>
10842
10843 * target.h (struct target_ops): Fix indent.
10844 * win32-low.c (win32_target_ops): Fix comment.
10845
10846 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
10847 Yao Qi <yao@codesourcery.com>
10848
10849 * Makefile.in (clean): Remove tic6x-*.c files.
10850 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
10851 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
10852 (tic6x-c64xp-linux.c): Likewise.
10853 * configure.srv: Add support for tic6x-*-uclinux.
10854 * linux-tic6x-low.c: New.
10855 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
10856
10857 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
10858 Yao Qi <yao@codesourcery.com>
10859
10860 * target.h (struct target_ops): Add read_loadmap.
10861 * linux-low.c (struct target_loadseg): New type.
10862 (struct target_loadmap): New type.
10863 (linux_read_loadmap): New function.
10864 (linux_target_ops): Add linux_read_loadmap.
10865 * server.c (handle_query): Support qXfer:fdpic:read packet.
10866 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
10867 to NULL.
10868
10869 2011-08-05 Eli Zaretskii <eliz@gnu.org>
10870
10871 * win32-low.c: Include <stdint.h>.
10872
10873 2011-07-22 Pedro Alves <pedro@codesourcery.com>
10874
10875 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
10876 to the inferior here.
10877 (i386_remove_aligned_watchpoint): Ditto.
10878 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
10879 fit part of the watchpoint in the debug registers.
10880 (i386_update_inferior_debug_regs): New.
10881 (i386_low_insert_watchpoint): Work on a local mirror of the debug
10882 registers, and only update the inferior on success.
10883 (i386_low_remove_watchpoint): Ditto.
10884
10885 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
10886
10887 * linux-low.c (compare_ints, unique, list_threads, show_process,
10888 linux_core_of_thread): Delete.
10889 (linux_target_ops): Change linux_core_of_thread to
10890 linux_common_core_of_thread.
10891 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
10892 * utils.c (malloc_failure): Change type of argument.
10893 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
10894 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
10895 common/linux-osdata.c, common/ptid.c and common/buffer.c.
10896 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
10897 (IPA_OBJS): Add common-utils-ipa.o.
10898 (ptid_h, linux_osdata_h): New macros.
10899 (server_h): Add common/common-utils.h, common/xml-utils.h,
10900 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
10901 common/ptid.h.
10902 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
10903 ptid.o, buffer.o): New rules.
10904 (linux-low.o): Add common/linux-osdata.h as a dependency.
10905 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
10906 * configure.ac: Add AC_HEADER_DIRENT check.
10907 * config.in: Regenerate.
10908 * configure: Regenerate.
10909 * remote-utils.c (xml_escape_text): Delete.
10910 (buffer_grow, buffer_free, buffer_init, buffer_finish,
10911 buffer_xml_printf): Move to common/buffer.c.
10912 * server.c (main): Remove call to initialize_inferiors.
10913 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
10914 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
10915 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
10916 internal_error, gdb_assert, gdb_assert_fail): Delete.
10917 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
10918 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
10919 common/buffer.h.
10920 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
10921 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
10922 initialize_inferiors): Delete.
10923
10924 2011-07-20 Pedro Alves <pedro@codesourcery.com>
10925
10926 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
10927 symbol error.
10928
10929 2011-05-31 Pedro Alves <pedro@codesourcery.com>
10930
10931 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
10932 assertion.
10933 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
10934
10935 2011-05-26 Yao Qi <yao@codesourcery.com>
10936
10937 * Makefile.in (thread-db.o): Track dependence to
10938 common/gdb_thread_db.h.
10939 * thread-db.c: include gdb_thread_db.h from right place.
10940
10941 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
10942
10943 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
10944 __FILE__ and __LINE__ to internal_error.
10945
10946 2011-05-13 Doug Evans <dje@google.com>
10947
10948 * thread-db.c (try_thread_db_load_from_sdir): New function.
10949 (try_thread_db_load_from_dir): New function.
10950 (thread_db_load_search): Handle $sdir, ignore $pdir.
10951 Remove trying of system directories if search of
10952 libthread-db-search-path fails, that is now done via $sdir.
10953
10954 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
10955
10956 * server.c (handle_query): Add EnableDisableTracepoints to the list
10957 of supported features.
10958 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
10959 tracepoints.
10960 (cmd_qtenable_disable): New.
10961 (cmd_qtstart): Install tracepoints even if disabled.
10962 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
10963 receiving a QTEnable or QTDisable packet.
10964 (gdb_collect): Skip data collection if fast tracepoint is disabled.
10965 (ust_marker_to_static_tracepoint): Do not ignore disabled static
10966 tracepoints.
10967 (gdb_probe): Skip data collection if static tracepoint is disabled.
10968
10969 2011-05-10 Doug Evans <dje@google.com>
10970
10971 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
10972
10973 2011-05-04 Doug Evans <dje@google.com>
10974
10975 * linux-low.c (linux_join): Skip process lookup.
10976 * spu-low.c (spu_join): Ditto.
10977 * server.c (join_inferiors_callback): Delete.
10978 (process_serial_event): For 'D' packet (detach) call join_inferior
10979 directly.
10980
10981 2011-05-04 Joseph Myers <joseph@codesourcery.com>
10982
10983 * README: Don't mention xscale*-*-linux*.
10984 * configure.srv (xscale*-*-linux*): Don't handle target.
10985
10986 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
10987
10988 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
10989 casting pointers.
10990 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
10991 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
10992 (i386_emit_void_call_2): Likewise.
10993
10994 2011-04-26 Yao Qi <yao@codesourcery.com>
10995
10996 * linux-low.c: Move common macros to linux-ptrace.h.
10997 Include linux-ptrace.h.
10998 * Makefile.in (linux_ptrace_h): New.
10999 (linux-low.o): Depends on linux-ptrace.h.
11000
11001 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11002
11003 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
11004 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
11005 (remote_prepare): New function with most of the TCP code from ...
11006 (remote_open): ... here. Detect PORT here unconditionally. Move also
11007 setting transport_is_reliable.
11008 * server.c (run_once): New variable.
11009 (gdbserver_usage): Document it.
11010 (main): Set run_once for `--once'. Call remote_prepare. Exit after
11011 the first run if RUN_ONCE.
11012 * server.h (run_once, remote_prepare): New declarations.
11013
11014 2011-04-19 Tom Tromey <tromey@redhat.com>
11015
11016 * win32-low.c (handle_load_dll): Remove duplicate "the".
11017
11018 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
11019
11020 Remove support for old Cygwin 1.5 versions.
11021 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
11022 function to avoid warning.
11023 (win32_add_one_solib): Use cygwin_conv_path function to avoid
11024 warning.
11025
11026 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
11027
11028 * gdbserver/server.h (Macro _): Define it if not available.
11029
11030 2011-03-14 Michael Snyder <msnyder@vmware.com>
11031
11032 * hostio.c (handle_close): Remove unnecessary null test.
11033
11034 2011-03-10 Joel Brobecker <brobecker@adacore.com>
11035
11036 * Makefile.in (maintainer-clean realclean distclean): Remove
11037 "make ... subdir_do" command.
11038
11039 2011-03-10 Michael Snyder <msnyder@vmware.com>
11040
11041 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
11042
11043 * server.c (handle_v_run): Free alloced buffer on early return.
11044
11045 2011-03-09 Yao Qi <yao@codesourcery.com>
11046
11047 Revert:
11048 2011-03-04 Yao Qi <yao@codesourcery.com>
11049
11050 * Makefile.in: Remove GNU make feature --directory.
11051
11052 2011-03-05 Yao Qi <yao@codesourcery.com>
11053
11054 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
11055 (subdir_do): New make target. Copied from gdb/Makefile.
11056 (maintainer-clean, realclean, distclean, clean): Call corresponding
11057 make targets in common/Makefile.
11058
11059 2011-02-11 Yao Qi <yao@codesourcery.com>
11060
11061 * configure.ac: Call AC_PROG_RANLIB.
11062 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
11063 * configure: Regenerate.
11064
11065 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
11066
11067 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
11068
11069 2011-03-06 Yao Qi <yao@codesourcery.com>
11070
11071 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
11072
11073 2011-03-05 Yao Qi <yao@codesourcery.com>
11074
11075 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
11076 (subdir_do): New make target. Copied from gdb/Makefile.
11077 (maintainer-clean, realclean, distclean, clean): Call corresponding
11078 make targets in common/Makefile.
11079
11080 2011-03-04 Yao Qi <yao@codesourcery.com>
11081
11082 * Makefile.in: Remove GNU make feature --directory.
11083
11084 2011-03-04 Michael Snyder <msnyder@vmware.com>
11085
11086 * server.c (queue_stop_reply): Call xmalloc not malloc.
11087
11088 2011-03-02 Michael Snyder <msnyder@vmware.com>
11089
11090 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
11091
11092 2011-02-28 Michael Snyder <msnyder@vmware.com>
11093
11094 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
11095 (cmd_qtframe): Ditto.
11096 (cmd_qtbuffer): Ditto.
11097 (cmd_bigqtbuffer): Ditto.
11098
11099 * utils.c (decimal2str): Initialize 'width' to nine, then
11100 don't mess with it.
11101
11102 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
11103
11104 * hostio.c (require_data): Free *data, not data.
11105
11106 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11107
11108 * hostio.c (require_data): Use free, not xfree.
11109
11110 2011-02-27 Michael Snyder <msnyder@vmware.com>
11111
11112 * server.c (handle_query): Discard unused value.
11113
11114 * hostio.c (require_data): Free malloc memory before returning
11115 error.
11116
11117 2011-02-26 Michael Snyder <msnyder@vmware.com>
11118
11119 * linux-low.c (list_threads): Call closedir for dirent.
11120
11121 2011-02-27 Michael Snyder <msnyder@vmware.com>
11122
11123 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
11124 a case statement falls through.
11125
11126 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
11127
11128 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
11129 in comparison.
11130
11131 2011-02-26 Michael Snyder <msnyder@vmware.com>
11132
11133 * utils.c (decimal2str): Eliminate dead code and dead param.
11134 (pulongest): Drop dead param from call to decimal2str.
11135 (plongest): Ditto.
11136
11137 2011-02-24 Joel Brobecker <brobecker@adacore.com>
11138
11139 Revert the following patch (not approved yet):
11140 2011-02-21 Hui Zhu <teawater@gmail.com>
11141 * tracepoint.c (tp_printf): New function.
11142 (eval_agent_expr): Handle gdb_agent_op_printf.
11143
11144 2011-02-21 Hui Zhu <teawater@gmail.com>
11145
11146 * tracepoint.c (tp_printf): New function.
11147 (eval_agent_expr): Handle gdb_agent_op_printf.
11148
11149 2011-02-18 Tom Tromey <tromey@redhat.com>
11150
11151 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
11152 (tracepoint.o): Likewise.
11153 * tracepoint.c (enum gdb_agent_op): Use ax.def.
11154 (gdb_agent_op_names): Likewise.
11155
11156 2011-02-18 Tom Tromey <tromey@redhat.com>
11157
11158 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
11159 gdb_agent_op_rot>: New constants.
11160 (gdb_agent_op_names): Add pick and roll.
11161 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
11162 cases.
11163
11164 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11165
11166 * aclocal.m4: Regenerated with aclocal-1.11.1.
11167
11168 2011-02-14 Pedro Alves <pedro@codesourcery.com>
11169
11170 * server.c (handle_qxfer_traceframe_info): New.
11171 (qxfer_packets): Register "traceframe-info".
11172 (handle_query): Report support for qXfer:traceframe-info:read+.
11173 * tracepoint.c (match_blocktype): New.
11174 (traceframe_find_block_type): Rename to ...
11175 (traceframe_walk_blocks): ... this. Add callback filter argument,
11176 and use it.
11177 (traceframe_find_block_type): New, reimplemented on top of
11178 traceframe_walk_blocks.
11179 (build_traceframe_info_xml): New.
11180 (traceframe_read_info): New.
11181 * server.h (traceframe_read_info): Declare.
11182
11183 2011-02-11 Yao Qi <yao@codesourcery.com>
11184
11185 * configure.ac: Call AC_PROG_RANLIB.
11186 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
11187 * configure: Regenerate.
11188
11189 2011-02-07 Pedro Alves <pedro@codesourcery.com>
11190
11191 * server.c (gdb_read_memory): Change return semantics to allow
11192 partial transfers.
11193 (handle_search_memory_1): Adjust.
11194 (process_serial_event) <'m' packet>: Handle partial transfers.
11195 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
11196
11197 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11198
11199 * regcache.c (init_register_cache): Initialize
11200 regcache->register_status.
11201 (free_register_cache): Release regcache->register_status.
11202 (regcache_cpy): Copy register_status.
11203 (registers_to_string): Print 'x's for unavailable registers.
11204 (supply_register): Mark the register's status valid or
11205 unavailable, depending on whether a buffer was passed in or not.
11206 (supply_register_zeroed): New.
11207 (supply_regblock): Mark the registers' status valid or
11208 unavailable, depending on whether a buffer was passed in or not.
11209 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
11210 (struct regcache): New `register_status' field.
11211 (supply_register_zeroed): Declare.
11212 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
11213 supply_register_zeroed, rather than passing a NULL buffer to
11214 supply_register.
11215 * tracepoint.c (fetch_traceframe_registers): Update comment.
11216
11217 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11218
11219 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
11220 buffer explicit.
11221
11222 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11223
11224 * server.h (decode_xfer_write): Change prototype.
11225 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
11226 and don't extract the annex here.
11227 * server.c (decode_xfer_read): Remove `annex' parameter,
11228 and don't extract the annex here.
11229 (decode_xfer): New.
11230 (struct qxfer): New.
11231 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
11232 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
11233 (handle_qxfer_statictrace): New functions, abstracted out from
11234 handle_query, and made to use the struct qxfer interface.
11235 (handle_threads_qxfer_proper): Rename to ...
11236 (handle_qxfer_threads_proper): ... this.
11237 (handle_threads_qxfer): Rename to ...
11238 (handle_qxfer_threads): ... this. Adjust.
11239 (qxfer_packets): New array.
11240 (handle_qxfer): New function.
11241 (handle_query): Use handle_qxfer.
11242
11243 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
11244
11245 * gdbreplay.c: Shorten lines of >= 80 columns.
11246 * linux-low.c: Ditto.
11247 * linux-ppc-low.c: Ditto.
11248 * linux-s390-low.c: Ditto.
11249 * linux-sparc-low.c: Ditto.
11250 * linux-x86-low.c: Ditto.
11251 * linux-xtensa-low.c: Ditto.
11252 * mem-break.c: Ditto.
11253 * nto-low.c: Ditto.
11254 * regcache.h: Ditto.
11255 * remote-utils.c: Ditto.
11256 * server.c: Ditto.
11257 * server.h: Ditto.
11258 * thread-db.c: Ditto.
11259 * tracepoint.c: Ditto.
11260 * utils.c: Ditto.
11261 * win32-low.h: Ditto.
11262
11263 2011-01-05 Joel Brobecker <brobecker@adacore.com>
11264
11265 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
11266 update.
11267
11268 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11269
11270 * server.c (gdbserver_version): Update copyright year in version
11271 output.
11272 * gdbreplay.c (gdbreplay_version): Ditto.
11273
11274 2010-12-29 Jie Zhang <jie.zhang@analog.com>
11275
11276 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
11277 * linux-bfin-low.c: New file.
11278 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
11279 PT_DATA_ADDR for BFIN targets.
11280 * Makefile.in (SFILES): Add linux-bfin-low.c.
11281 (clean): Remove reg-bfin.c.
11282 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
11283 * README: Mention supported Blackfin targets.
11284
11285 2010-12-23 Mike Frysinger <vapier@gentoo.org>
11286
11287 * .gitignore: New file.
11288
11289 2010-11-16 Mike Frysinger <vapier@gentoo.org>
11290
11291 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
11292
11293 2010-10-22 Jie Zhang <jie@codesourcery.com>
11294
11295 * Makefile.in: Add FLAGS_TO_PASS variable.
11296 (install): Remove dependency of install-only and recursively
11297 invoke make for install-only.
11298
11299 2010-10-04 Doug Evans <dje@google.com>
11300
11301 * Makefile.in (uninstall): Use $(DESTDIR).
11302
11303 2010-09-24 Pedro Alves <pedro@codesourcery.com>
11304
11305 PR gdb/11842
11306
11307 * linux-x86-low.c (compat_siginfo_from_siginfo)
11308 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
11309 si_code is < 0. Check for si_code == SI_TIMER before checking for
11310 si_code < 0.
11311
11312 2010-09-13 Joel Brobecker <brobecker@adacore.com>
11313
11314 * lynx-i386-low.c: New file.
11315 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
11316
11317 2010-09-13 Joel Brobecker <brobecker@adacore.com>
11318
11319 * lynx-low.c (ptrace_request_to_str): Remove handling for
11320 request values that have been removed in LynxOS 5.x.
11321
11322 2010-09-13 Joel Brobecker <brobecker@adacore.com>
11323
11324 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
11325 <ptrace.h>
11326
11327 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
11328
11329 * configure.ac: Add --enable-inprocess-agent option.
11330 * configure: Rebuilt.
11331
11332 2010-09-06 Yao Qi <yao@codesourcery.com>
11333
11334 * linux-low.c (linux_kill): Remove unused variable.
11335 (linux_stabilize_threads): Likewise.
11336 * server.c (start_inferior): Likewise.
11337 (queue_stop_reply_callback): Likewise.
11338 * tracepoint.c (do_action_at_tracepoint): Likewise.
11339
11340 2010-09-06 Yao Qi <yao@codesourcery.com>
11341
11342 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
11343 on return.
11344
11345 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
11346
11347 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
11348
11349 2010-09-06 Pedro Alves <pedro@codesourcery.com>
11350
11351 * Makefile.in (install-only): Replace $IPA_DEPFILES with
11352 "$(IPA_DEPFILES)".
11353
11354 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11355
11356 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
11357 gdbserver/lynx-ppc-low.c: New files.
11358 * Makefile.in (lynx_low_h): New variable.
11359 (lynx-low.o, lynx-ppc-low.o): New rules.
11360 * configure.ac: On LynxOS, link with -lnetinet.
11361 * configure.srv: Add handling of powerpc-*-lynxos* targets.
11362 * configure: regenerate.
11363
11364 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11365
11366 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
11367 * configure.ac: Add check for vasprintf and vsnprintf.
11368 * configure, config.in: Regenerate.
11369 * server.h (vasprintf, vsnprintf): Add conditional declarations.
11370
11371 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11372
11373 * gdbreplay.c: Move include of alloca.h up, next to include of
11374 malloc.h.
11375 * server.h: Add include of malloc.h.
11376 * mem-break.c: Remove include of malloc.h.
11377 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
11378
11379 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11380
11381 * Makefile.in (memmem.o): Build with -Wno-error.
11382
11383 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11384
11385 * utils.c (xsnprintf): Make non-static.
11386 * server.h: Add xsnprintf declaration.
11387 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
11388 replace calls to snprintf by calls to xsnprintf throughout.
11389
11390 2010-09-01 Joel Brobecker <brobecker@adacore.com>
11391
11392 * configure.ac: Add configure check for alloca.
11393 * configure, config.in: Regenerate.
11394 * server.h: Include alloca.h if it exists.
11395 * gdbreplay.c: Include alloca.h if it exists.
11396
11397 2010-08-28 Pedro Alves <pedro@codesourcery.com>
11398
11399 * linux-low.c (__SIGRTMIN): Define if not already defined.
11400 (linux_create_inferior): Check for __ANDROID__ rather than
11401 __SIGRTMIN.
11402 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
11403 are already deferred.
11404 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
11405 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
11406 stopped and already has a pending signal to report.
11407 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
11408 a pending signal to report or is moving out of a jump pad.
11409 (linux_init_signals): Check for __ANDROID__ rather than
11410 __SIGRTMIN.
11411
11412 2010-08-28 Pedro Alves <pedro@codesourcery.com>
11413
11414 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
11415 debug_threads check. Avoid a linear search when not doing debug
11416 output.
11417
11418 2010-08-27 Pedro Alves <pedro@codesourcery.com>
11419
11420 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
11421 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
11422 (struct file_handler) <fd>: Change type to gdb_fildes_t.
11423 (process_event): Change local fd's type to gdb_fildes_t.
11424 (create_file_handler): Adjust prototype.
11425 (delete_file_handler): Adjust prototype.
11426 (handle_file_event): Adjust prototype. Use pfildes.
11427 (create_file_event): Adjsut prototype.
11428 * remote-utils.c (remote_desc, listen_desc): Change type to
11429 gdb_fildes_t.
11430 * server.h: New gdb_fildes_t typedef.
11431 [USE_WIN32API]: Include winsock2.h.
11432 (delete_file_handler, add_file_handler): Adjust prototypes.
11433 (pfildes): Declare.
11434 * utils.c (pfildes): New.
11435
11436 2010-08-27 Pedro Alves <pedro@codesourcery.com>
11437
11438 * configure.ac (build_warnings): Add -Wno-char-subscripts.
11439 * configure: Regenerate.
11440
11441 2010-08-27 Pedro Alves <pedro@codesourcery.com>
11442
11443 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
11444 (linux_done_accessing_memory): ... this.
11445 (linux_target_ops): Adjust.
11446 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
11447 * nto-low.c (nto_target_ops): Adjust comment.
11448 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
11449 * spu-low.c (spu_target_ops): Adjust comment.
11450 * target.h (target_ops): Rename unprepare_to_access_memory field
11451 to done_accessing_memory.
11452 (unprepare_to_access_memory): Rename to ...
11453 (done_accessing_memory): ... this.
11454
11455 2010-08-26 Pedro Alves <pedro@codesourcery.com>
11456
11457 * linux-low.c (linux_prepare_to_access_memory): New.
11458 (linux_unprepare_to_access_memory): New.
11459 (linux_target_ops): Install them.
11460 * server.c (read_memory): Rename to ...
11461 (gdb_read_memory): ... this. Use
11462 prepare_to_access_memory/prepare_to_access_memory.
11463 (write_memory): Rename to ...
11464 (gdb_write_memory): ... this. Use
11465 prepare_to_access_memory/prepare_to_access_memory.
11466 (handle_search_memory_1): Adjust.
11467 (process_serial_event): Adjust.
11468 * target.h (struct target_ops): New fields
11469 prepare_to_access_memory and unprepare_to_access_memory.
11470 (prepare_to_access_memory, unprepare_to_access_memory): New.
11471 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
11472 prepare_to_access_memory/prepare_to_access_memory.
11473 * nto-low.c (nto_target_ops): Adjust.
11474 * spu-low.c (spu_target_ops): Adjust.
11475 * win32-low.c (win32_target_ops): Adjust.
11476
11477 2010-08-26 Pedro Alves <pedro@codesourcery.com>
11478
11479 * Makefile.in (WARN_CFLAGS): Get it from configure.
11480 (WERROR_CFLAGS): New.
11481 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
11482 * configure.ac: Introduce --enable-werror, which adds -Werror to
11483 the compiler command line. Enabled by default. Disable with
11484 --disable-werror. Add -Wdeclaration-after-statement
11485 Wpointer-arith and -Wformat-nonliteral to warning flags.
11486 * configure: Regenerate.
11487
11488 2010-08-26 Pedro Alves <pedro@codesourcery.com>
11489
11490 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
11491
11492 2010-08-26 Pedro Alves <pedro@codesourcery.com>
11493
11494 * gdbreplay.c (remote_error): New.
11495 (gdbchar): New.
11496 (expect): Use gdbchar. Check for error reading from GDB.
11497 Clarify sync error output.
11498 (play): Check for errors writing to GDB.
11499 * linux-low.c (sigchld_handler): Really ignore `write' errors.
11500 * remote-utils.c (getpkt): Check for errors writing to the remote
11501 descriptor.
11502
11503 2010-08-25 Pedro Alves <pedro@codesourcery.com>
11504
11505 * linux-low.c (linux_wait_1): Move non-debugging code out of
11506 `debug_threads' control.
11507
11508 2010-08-25 Pedro Alves <pedro@codesourcery.com>
11509
11510 * linux-low.c (linux_wait_1): Don't set last_status here.
11511 * server.c (push_event, queue_stop_reply_callback): Assert we're
11512 not pushing a TARGET_WAITKIND_IGNORE event.
11513 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
11514 (myresume, handle_target_event): Set the thread's last_resume_kind
11515 and last_status from the target returned status.
11516
11517 2010-08-25 Pedro Alves <pedro@codesourcery.com>
11518
11519 PR threads/10729
11520
11521 * linux-x86-low.c (update_debug_registers_callback): New.
11522 (i386_dr_low_set_addr): Use it.
11523 (i386_dr_low_get_addr): New.
11524 (i386_dr_low_set_control): Use update_debug_registers_callback.
11525 (i386_dr_low_get_control): New.
11526 (i386_dr_low_get_status): Adjust.
11527 * linux-low.c (linux_stop_lwp): New.
11528 * linux-low.h (linux_stop_lwp): Declare.
11529
11530 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
11531 argument instead of a i386_debug_reg_state.
11532 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
11533 a i386_debug_reg_state.
11534 (i386_insert_aligned_watchpoint): Adjust.
11535 (i386_remove_aligned_watchpoint): Adjust.
11536 (i386_low_stopped_data_address): Read the debug registers from the
11537 inferior instead of from the mirrors.
11538 * i386-low.h (struct i386_debug_reg_state): Extend comment.
11539 (i386_dr_low_get_addr): Declare.
11540 (i386_dr_low_get_control): Declare.
11541 (i386_dr_low_get_status): Change prototype.
11542
11543 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
11544 (i386_dr_low_get_addr): New.
11545 (i386_dr_low_get_control): New.
11546 (i386_dr_low_get_status): Adjust prototype. Return
11547 dr_status_mirror.
11548 (i386_initial_stuff): Clear dr_status_mirror and
11549 dr_control_mirror.
11550 (i386_get_thread_context): Adjust.
11551 (i386_set_thread_context): Adjust.
11552 (i386_thread_added): Adjust.
11553
11554 2010-08-24 Pedro Alves <pedro@codesourcery.com>
11555
11556 * linux-low.h (linux_thread_area): Delete declaration.
11557
11558 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
11559
11560 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
11561 after its termination.
11562
11563 2010-08-09 Pedro Alves <pedro@codesourcery.com>
11564
11565 * linux-low.c (gdb_wants_lwp_stopped): Delete.
11566 (gdb_wants_all_stopped): Delete.
11567 (linux_wait_1): Don't call them.
11568 * server.c (handle_v_cont): Tag all threads as want-stopped.
11569 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
11570 stopped as "client-wants-stopped".
11571
11572 2010-07-31 Pedro Alves <pedro@codesourcery.com>
11573
11574 * Makefile.in (signals_h): New.
11575 (server_h): Depend on it.
11576 (server.o): Don't depend on $(signals_def).
11577 (signals.o): Depend on $(signals_def).
11578
11579 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
11580
11581 * Makefile.in (signals_def): New.
11582 (server_h): Append include/gdb/signals.h and signals_def.
11583 (server.o): Append signals_def.
11584
11585 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11586
11587 * server.c (handle_target_event): Use target_signal_to_host for
11588 resume_info.sig initialization.
11589 * target.h (struct thread_resume) <sig>: New comment.
11590
11591 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
11592
11593 * server.c (handle_query): strcpy() the returned string from paddress()
11594 instead of sprintf().
11595 * utils.c (paddress): Return phex_nz().
11596
11597 2010-07-07 Joel Brobecker <brobecker@adacore.com>
11598
11599 * server.c (handle_v_cont): Call mourn_inferior if process
11600 just exited.
11601 (myresume): Likewise.
11602
11603 2010-07-01 Pedro Alves <pedro@codesourcery.com>
11604
11605 Static tracepoints, and integration with UST.
11606
11607 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
11608 * mem-break.c (uninsert_all_breakpoints)
11609 (reinsert_all_breakpoints): New.
11610 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
11611 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
11612 (gdb_agent_ust_loaded, helper_thread_id)
11613 (gdb_agent_helper_thread_id): New macros.
11614 (struct ipa_sym_addresses): Add addr_ust_loaded,
11615 addr_helper_thread_id, addr_cmd_buf.
11616 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
11617 (in_process_agent_loaded_ust): New.
11618 (write_e_ust_not_loaded): New.
11619 (maybe_write_ipa_ust_not_loaded): New.
11620 (struct collect_static_trace_data_action): New.
11621 (enum tracepoint_type) <static_tracepoint>: New.
11622 (struct tracepoint) <handle>: Mention static tracepoints.
11623 (struct static_tracepoint_ctx): New.
11624 (CMD_BUF_SIZE): New.
11625 (add_tracepoint_action): Handle static tracepoint actions.
11626 (unprobe_marker_at): New.
11627 (clear_installed_tracepoints): Handle static tracepoints.
11628 (cmd_qtdp): Handle static tracepoints.
11629 (probe_marker_at): New.
11630 (cmd_qtstart): Handle static tracepoints.
11631 (response_tracepoint): Handle static tracepoints.
11632 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
11633 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
11634 (get_context_regcache): Handle static tracepoints.
11635 (do_action_at_tracepoint): Handle static tracepoint actions.
11636 (traceframe_find_block_type): Handle static trace data blocks.
11637 (traceframe_read_sdata): New.
11638 (download_tracepoints): Download static tracepoint actions.
11639 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
11640 (GDB_PROBE_NAME): New.
11641 (ust_ops): New.
11642 (GET_UST_SYM): New.
11643 (USTF): New.
11644 (dlsym_ust): New.
11645 (ust_marker_to_static_tracepoint): New.
11646 (gdb_probe): New.
11647 (collect_ust_data_at_tracepoint): New.
11648 (gdb_ust_probe): New.
11649 (UNIX_PATH_MAX, SOCK_DIR): New.
11650 (gdb_ust_connect_sync_socket): New.
11651 (resume_thread, stop_thread): New.
11652 (run_inferior_command): New.
11653 (init_named_socket): New.
11654 (gdb_ust_socket_init): New.
11655 (cstr_to_hexstr): New.
11656 (next_st): New.
11657 (first_marker, next_marker): New.
11658 (response_ust_marker): New.
11659 (cmd_qtfstm, cmd_qtsstm): New.
11660 (unprobe_marker_at, probe_marker_at): New.
11661 (cmd_qtstmat, gdb_ust_thread): New.
11662 (gdb_ust_init): New.
11663 (initialize_tracepoint_ftlib): Call gdb_ust_init.
11664 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
11665 (ST_REGENTRY): New.
11666 (x86_64_st_collect_regmap): New.
11667 (X86_64_NUM_ST_COLLECT_GREGS): New.
11668 (AMD64_RIP_REGNUM): New.
11669 (supply_static_tracepoint_registers): New.
11670 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
11671 (ST_REGENTRY): New.
11672 (i386_st_collect_regmap): New.
11673 (i386_NUM_ST_COLLECT_GREGS): New.
11674 (supply_static_tracepoint_registers): New.
11675 * server.c (handle_query): Handle qXfer:statictrace:read.
11676 <qSupported>: Report support for StaticTracepoints, and
11677 qXfer:statictrace:read features.
11678 * server.h (traceframe_read_sdata)
11679 (supply_static_tracepoint_registers): Declare.
11680 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
11681 (unpack_varlen_hex): Include in IPA build.
11682 * Makefile.in (ustlibs, ustinc): New.
11683 (IPA_OBJS): Add remote-utils-ipa.o.
11684 ($(IPA_LIB)): Link -ldl and -lpthread.
11685 (UST_CFLAGS): New.
11686 (IPAGENT_CFLAGS): Add UST_CFLAGS.
11687 * config.in, configure: Regenerate.
11688
11689 2010-06-20 Ian Lance Taylor <iant@google.com>
11690 Pedro Alves <pedro@codesourcery.com>
11691
11692 * linux-x86-low.c (always_true): Delete.
11693 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
11694 trying to fool the compiler with always_true.
11695
11696 2010-06-20 Pedro Alves <pedro@codesourcery.com>
11697
11698 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
11699 conditions in gdbserver.
11700
11701 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
11702
11703 * spu-low.c (spu_read_memory): Wrap around local store limit.
11704 (spu_write_memory): Likewise.
11705
11706 2010-06-15 Pedro Alves <pedro@codesourcery.com>
11707
11708 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
11709 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
11710 LONGEST uses.
11711 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
11712 uses.
11713 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
11714 uses with LONGEST uses.
11715
11716 2010-06-14 Stan Shebs <stan@codesourcery.com>
11717 Pedro Alves <pedro@codesourcery.com>
11718
11719 Bytecode compiler.
11720
11721 * linux-x86-low.c: Include limits.h.
11722 (add_insns): New.
11723 (always_true): New.
11724 (EMIT_ASM): New.
11725 (EMIT_ASM32): New.
11726 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
11727 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
11728 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
11729 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
11730 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
11731 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
11732 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
11733 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
11734 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
11735 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
11736 (amd64_emit_void_call_2): New.
11737 (amd64_emit_ops): New.
11738 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
11739 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
11740 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
11741 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
11742 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
11743 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
11744 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
11745 (i386_emit_call, i386_emit_reg, i386_emit_pop)
11746 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
11747 (i386_emit_stack_adjust, i386_emit_int_call_1)
11748 (i386_emit_void_call_2): New.
11749 (i386_emit_ops): New.
11750 (x86_emit_ops): New.
11751 (the_low_target): Install x86_emit_ops.
11752 * server.h (struct emit_ops): New.
11753 (get_raw_reg_func_addr): Declare.
11754 (current_insn_ptr, emit_error): Declare.
11755 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
11756 (set_trace_state_variable_value): New defines.
11757 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
11758 addr_get_trace_state_variable_value and
11759 addr_set_trace_state_variable_value.
11760 (symbol_list): New fields for get_raw_reg,
11761 get_trace_state_variable_value and set_trace_state_variable_value.
11762 (condfn): New typedef.
11763 (struct tracepoint): New field `compiled_cond'.
11764 (do_action_at_tracepoint): Clear compiled_cond.
11765 (get_trace_state_variable_value, set_trace_state_variable_value):
11766 Export in the IPA.
11767 (condition_true_at_tracepoint): If there's a compiled condition,
11768 run that.
11769 (current_insn_ptr, emit_error): New globals.
11770 (struct bytecode_address): New.
11771 (get_raw_reg_func_addr): New.
11772 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
11773 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
11774 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
11775 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
11776 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
11777 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
11778 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
11779 (compile_tracepoint_condition, compile_bytecodes): New.
11780 * target.h (emit_ops): Forward declare.
11781 (struct target_ops): New field emit_ops.
11782 (target_emit_ops): New.
11783 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
11784 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
11785 * linux-low.c (linux_emit_ops): New.
11786 (linux_target_ops): Install it.
11787 * linux-low.h (struct linux_target_ops): New field emit_ops.
11788
11789 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
11790
11791 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
11792 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
11793
11794 2010-06-01 Pedro Alves <pedro@codesourcery.com>
11795 Stan Shebs <stan@codesourcery.com>
11796
11797 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
11798 (all): Depend on $(extra_libraries).
11799 (install-only): Install the IPA.
11800 (IPA_OBJS, IPA_LIB): New.
11801 (clean): Remove the IPA lib.
11802 (IPAGENT_CFLAGS): New.
11803 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
11804 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
11805 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
11806 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
11807 * configure.ac: Check for atomic builtins support in the compiler.
11808 (IPA_DEPFILES, extra_libraries): Define.
11809 * configure.srv (ipa_obj): Add description.
11810 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
11811 (i[34567]86-*-linux*): Set ipa_obj.
11812 (x86_64-*-linux*): Set ipa_obj.
11813 * linux-low.c (stabilizing_threads): New.
11814 (supports_fast_tracepoints): New.
11815 (linux_detach): Stabilize threads before detaching.
11816 (handle_tracepoints): Handle internal tracing breakpoints. Assert
11817 the lwp is either not stabilizing, or is moving out of a jump pad.
11818 (linux_fast_tracepoint_collecting): New.
11819 (maybe_move_out_of_jump_pad): New.
11820 (enqueue_one_deferred_signal): New.
11821 (dequeue_one_deferred_signal): New.
11822 (linux_wait_for_event_1): If moving out of a jump pad, defer
11823 pending signals to later.
11824 (linux_stabilize_threads): New.
11825 (linux_wait_1): Check if threads need moving out of jump pads, and
11826 do it if so.
11827 (stuck_in_jump_pad_callback): New.
11828 (move_out_of_jump_pad_callback): New.
11829 (lwp_running): New.
11830 (linux_resume_one_lwp): Handle moving out of jump pads.
11831 (linux_set_resume_request): Dequeue deferred signals.
11832 (need_step_over_p): Also step over fast tracepoint jumps.
11833 (start_step_over): Also uninsert fast tracepoint jumps.
11834 (finish_step_over): Also reinsert fast tracepoint jumps.
11835 (linux_install_fast_tracepoint_jump): New.
11836 (linux_target_ops): Install linux_stabilize_threads and
11837 linux_install_fast_tracepoint_jump_pad.
11838 * linux-low.h (linux_target_ops) <get_thread_area,
11839 install_fast_tracepoint_jump_pad>: New fields.
11840 (struct lwp_info) <collecting_fast_tracepoint,
11841 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
11842 (linux_get_thread_area): Declare.
11843 * linux-x86-low.c (jump_insn): New.
11844 (x86_get_thread_area): New.
11845 (append_insns): New.
11846 (push_opcode): New.
11847 (amd64_install_fast_tracepoint_jump_pad): New.
11848 (i386_install_fast_tracepoint_jump_pad): New.
11849 (x86_install_fast_tracepoint_jump_pad): New.
11850 (the_low_target): Install x86_get_thread_area and
11851 x86_install_fast_tracepoint_jump_pad.
11852 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
11853 (struct fast_tracepoint_jump): New.
11854 (fast_tracepoint_jump_insn): New.
11855 (fast_tracepoint_jump_shadow): New.
11856 (find_fast_tracepoint_jump_at): New.
11857 (fast_tracepoint_jump_here): New.
11858 (delete_fast_tracepoint_jump): New.
11859 (set_fast_tracepoint_jump): New.
11860 (uninsert_fast_tracepoint_jumps_at): New.
11861 (reinsert_fast_tracepoint_jumps_at): New.
11862 (set_breakpoint_at): Use write_inferior_memory.
11863 (uninsert_raw_breakpoint): Use write_inferior_memory.
11864 (check_mem_read): Mask out fast tracepoint jumps.
11865 (check_mem_write): Mask out fast tracepoint jumps.
11866 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
11867 (set_fast_tracepoint_jump): Declare.
11868 (delete_fast_tracepoint_jump)
11869 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
11870 (reinsert_fast_tracepoint_jumps_at): Declare.
11871 * regcache.c: Don't compile many functions when building the
11872 in-process agent library.
11873 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
11874 the register buffer in the heap.
11875 (free_register_cache): If the register buffer isn't owned by the
11876 regcache, don't free it.
11877 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
11878 pre-existing register caches.
11879 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
11880 type.
11881 (convert_ascii_to_int): : Constify `from' parameter type.
11882 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
11883 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
11884 the needed buffer in-place.
11885 (relocate_instruction): New.
11886 * server.c (handle_query) <qSymbols>: If the target supports
11887 tracepoints, give it a chance of looking up symbols. Report
11888 support for fast tracepoints.
11889 (handle_status): Stabilize threads.
11890 (process_serial_event): Adjust.
11891 * server.h (struct fast_tracepoint_jump): Forward declare.
11892 (struct process_info) <fast_tracepoint_jumps>: New field.
11893 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
11894 (decode_X_packet, decode_M_packet): Adjust.
11895 (relocate_instruction): Declare.
11896 (in_process_agent_loaded): Declare.
11897 (tracepoint_look_up_symbols): Declare.
11898 (struct fast_tpoint_collect_status): Declare.
11899 (fast_tracepoint_collecting): Declare.
11900 (force_unlock_trace_buffer): Declare.
11901 (handle_tracepoint_bkpts): Declare.
11902 (initialize_low_tracepoint)
11903 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
11904 * target.h (struct target_ops) <stabilize_threads,
11905 install_fast_tracepoint_jump_pad>: New fields.
11906 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
11907 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
11908 [HAVE_STDINT_H]: Include stdint.h.
11909 (trace_debug_1): Rename to ...
11910 (trace_vdebug): ... this.
11911 (trace_debug): Rename to ...
11912 (trace_debug_1): ... this. Add `level' parameter.
11913 (trace_debug): New.
11914 (ATTR_USED, ATTR_NOINLINE): New.
11915 (IP_AGENT_EXPORT): New.
11916 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11917 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
11918 (about_to_request_buffer_space, trace_buffer_is_full)
11919 (stopping_tracepoint, expr_eval_result, error_tracepoint)
11920 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
11921 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
11922 (traceframe_write_count, traceframes_created)
11923 (trace_state_variables)
11924 New renaming defines.
11925 (struct ipa_sym_addresses): New.
11926 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
11927 (symbol_list): New.
11928 (ipa_sym_addrs): New.
11929 (all_tracepoint_symbols_looked_up): New.
11930 (in_process_agent_loaded): New.
11931 (write_e_ipa_not_loaded): New.
11932 (maybe_write_ipa_not_loaded): New.
11933 (tracepoint_look_up_symbols): New.
11934 (debug_threads) [IN_PROCESS_AGENT]: New.
11935 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
11936 (UNKNOWN_SIDE_EFFECTS): New.
11937 (stop_tracing): New.
11938 (flush_trace_buffer): New.
11939 (stop_tracing_bkpt): New.
11940 (flush_trace_buffer_bkpt): New.
11941 (read_inferior_integer): New.
11942 (read_inferior_uinteger): New.
11943 (read_inferior_data_pointer): New.
11944 (write_inferior_data_pointer): New.
11945 (write_inferior_integer): New.
11946 (write_inferior_uinteger): New.
11947 (struct collect_static_trace_data_action): Delete.
11948 (enum tracepoint_type): New.
11949 (struct tracepoint) <type>: New field `type'.
11950 <actions_str, step_actions, step_actions_str>: Only include in
11951 GDBserver.
11952 <orig_size, obj_addr_on_target, adjusted_insn_addr>
11953 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
11954 (tracepoints): Use IP_AGENT_EXPORT.
11955 (last_tracepoint): Don't include in the IPA.
11956 (stopping_tracepoint): Use IP_AGENT_EXPORT.
11957 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
11958 (alloced_trace_state_variables): New.
11959 (trace_state_variables): Use IP_AGENT_EXPORT.
11960 (traceframe_t): Delete unused variable.
11961 (circular_trace_buffer): Don't include in the IPA.
11962 (trace_buffer_start): Delete.
11963 (struct trace_buffer_control): New.
11964 (trace_buffer_free): Delete.
11965 (struct ipa_trace_buffer_control): New.
11966 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
11967 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
11968 New.
11969 (trace_buffer_ctrl): New.
11970 (TRACE_BUFFER_CTRL_CURR): New.
11971 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
11972 Reimplement as macros.
11973 (trace_buffer_wrap): Delete.
11974 (traceframe_write_count, traceframe_read_count)
11975 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
11976 (struct tracepoint_hit_ctx) <type>: New field.
11977 (struct fast_tracepoint_ctx): New.
11978 (memory_barrier): New.
11979 (cmpxchg): New.
11980 (record_tracepoint_error): Update atomically in the IPA.
11981 (clear_inferior_trace_buffer): New.
11982 (about_to_request_buffer_space): New.
11983 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
11984 updating the same buffer.
11985 (add_tracepoint): Default the tracepoint's type to trap
11986 tracepoint, and orig_size to -1.
11987 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
11988 internal variables.
11989 (create_trace_state_variable): New parameter `gdb'. Handle it.
11990 (clear_installed_tracepoints): Clear fast tracepoint jumps.
11991 (cmd_qtdp): Handle fast tracepoints.
11992 (cmd_qtdv): Adjust.
11993 (max_jump_pad_size): New.
11994 (gdb_jump_pad_head): New.
11995 (get_jump_space_head): New.
11996 (claim_jump_space): New.
11997 (sort_tracepoints): New.
11998 (MAX_JUMP_SIZE): New.
11999 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
12000 IPA.
12001 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
12002 support. Upload fast traceframes, and delete internal IPA
12003 breakpoints.
12004 (stop_tracing_handler): New.
12005 (flush_trace_buffer_handler): New.
12006 (cmd_qtstop): Upload fast tracepoints.
12007 (response_tracepoint): Handle fast tracepoints.
12008 (tracepoint_finished_step): Upload fast traceframes. Set the
12009 tracepoint hit context's tracepoint type.
12010 (handle_tracepoint_bkpts): New.
12011 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
12012 type. Add comment about fast tracepoints.
12013 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
12014 non-existing action_str field.
12015 (get_context_regcache): Handle fast tracepoints.
12016 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
12017 to the regcache.
12018 (fast_tracepoint_from_jump_pad_address): New.
12019 (fast_tracepoint_from_ipa_tpoint_address): New.
12020 (collecting_t): New.
12021 (force_unlock_trace_buffer): New.
12022 (fast_tracepoint_collecting): New.
12023 (collecting): New.
12024 (gdb_collect): New.
12025 (write_inferior_data_ptr): New.
12026 (target_tp_heap): New.
12027 (target_malloc): New.
12028 (download_agent_expr): New.
12029 (UALIGN): New.
12030 (download_tracepoints): New.
12031 (download_trace_state_variables): New.
12032 (upload_fast_traceframes): New.
12033 (IPA_FIRST_TRACEFRAME): New.
12034 (IPA_NEXT_TRACEFRAME_1): New.
12035 (IPA_NEXT_TRACEFRAME): New.
12036 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
12037 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
12038 (gdb_jump_pad_buffer_end): New.
12039 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
12040 (initialize_tracepoint): Adjust.
12041 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
12042 buffer. Initialize the low module.
12043 * utils.c (PREFIX, TOOLNAME): New.
12044 (malloc_failure): Use PREFIX.
12045 (error): In the IPA, an error causes an exit.
12046 (fatal, warning): Use PREFIX.
12047 (internal_error): Use TOOLNAME.
12048 (NUMCELLS): Increase to 10.
12049 * configure, config.in: Regenerate.
12050
12051 2010-06-01 Pedro Alves <pedro@codesourcery.com>
12052
12053 * server.c (handle_query) <qSupported>: Do two passes over the
12054 qSupported string to avoid nesting strtok.
12055
12056 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12057
12058 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
12059 (CDEPS): New.
12060 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
12061 -Wl,--dynamic-list.
12062 * configure: Regenerate.
12063 * proc-service.list: New.
12064
12065 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12066
12067 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
12068 New comment.
12069
12070 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
12071
12072 * gdbreplay.c (remote_open): Check error return from socket() call by
12073 its equality to -1 not by it being negative.
12074 * remote-utils.c (remote_open): Likewise.
12075
12076 2010-05-23 Pedro Alves <pedro@codesourcery.com>
12077
12078 * config.h: Regenerate.
12079
12080 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
12081
12082 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
12083 doesn't provide PTRACE_GET_THREAD_AREA.
12084
12085 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
12086
12087 * linux-m68k-low.c: Include <asm/ptrace.h>
12088 (ps_get_thread_area): Implement.
12089
12090 2010-05-03 Doug Evans <dje@google.com>
12091
12092 * event-loop.c (struct callback_event): New struct.
12093 (callback_list): New global.
12094 (append_callback_event, delete_callback_event): New functions.
12095 (process_callback): New function.
12096 (start_event_loop): Call it.
12097 * remote-utils.c (NOT_SCHEDULED): Define.
12098 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
12099 moved out of readchar.
12100 (readchar): Rewrite. Call reschedule before returning.
12101 (reset_readchar): New function.
12102 (remote_close): Call it.
12103 (process_remaining, reschedule): New functions.
12104 * server.h (callback_handler_func): New typedef.
12105 (append_callback_event, delete_callback_event): Declare.
12106
12107 2010-05-03 Pedro Alves <pedro@codesourcery.com>
12108
12109 * proc-service.c (ps_pglobal_lookup): Use
12110 thread_db_look_up_one_symbol.
12111 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
12112 parameter. Use it instead of all_symbols_looked_up.
12113 * server.h (struct process_info) <all_symbols_looked_up>: Delete
12114 field.
12115 (all_symbols_looked_up): Don't declare.
12116 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
12117 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
12118 field.
12119 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
12120 Set all_symbols_looked_up here.
12121 (thread_db_look_up_one_symbol): New.
12122 (thread_db_get_tls_address): Adjust.
12123 (thread_db_load_search, try_thread_db_load_1): Always allocate the
12124 thread_db object on the heap, and tentatively set it in the
12125 process structure.
12126 (thread_db_init): Don't set all_symbols_looked_up here.
12127 * linux-low.h (thread_db_look_up_one_symbol): Declare.
12128
12129 2010-05-03 Pedro Alves <pedro@codesourcery.com>
12130
12131 * linux-low.c (linux_kill, linux_detach): Adjust.
12132 (status_pending_p_callback): Remove redundant statement. Check
12133 for !TARGET_WAITIKIND_IGNORE, instead of
12134 TARGET_WAITKIND_STOPPED.
12135 (handle_tracepoints): Make sure LWP is locked. Adjust.
12136 (linux_wait_for_event_1): Adjust.
12137 (linux_cancel_breakpoints): New.
12138 (unsuspend_one_lwp): New.
12139 (unsuspend_all_lwps): New.
12140 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
12141 (send_sigstop_callback): Change return type to int, add new
12142 `except' parameter and handle it.
12143 (suspend_and_send_sigstop_callback): New.
12144 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
12145 pass them down. If SUSPEND, also increment the lwp's suspend
12146 count.
12147 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
12148 (need_step_over_p): Don't consider suspended LWPs.
12149 (start_step_over): Adjust.
12150 (proceed_one_lwp): Change return type to int, add new `except'
12151 parameter and handle it.
12152 (unsuspend_and_proceed_one_lwp): New.
12153 (proceed_all_lwps): Use find_inferior instead of
12154 for_each_inferior.
12155 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
12156 also decrement the suspend count of LWPs. Pass `except' down,
12157 instead of hacking its suspend count.
12158 (linux_pause_all): Add `freeze' parameter. Adjust.
12159 (linux_unpause_all): New.
12160 (linux_target_ops): Install linux_unpause_all.
12161 * server.c (handle_status): Adjust.
12162 * target.h (struct target_ops): New fields `unpause_all' and
12163 `cancel_breakpoints'. Add new parameter to `pause_all'.
12164 (pause_all): Add new `freeze' parameter.
12165 (unpause_all): New.
12166 (cancel_breakpoints): New.
12167 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
12168 cancel breakpoints.
12169 (cmd_qtstart): Pause threads.
12170 (stop_tracing): Pause threads, and cancel breakpoints.
12171 * win32-low.c (win32_target_ops): Adjust.
12172
12173 2010-05-03 Pedro Alves <pedro@codesourcery.com>
12174
12175 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
12176 the inferior right away from here...
12177 (linux_wait_1): ... to here, and adjust to check the thread's
12178 last_resume_kind instead of the lwp's step or stop_expected flags.
12179
12180 2010-05-02 Pedro Alves <pedro@codesourcery.com>
12181
12182 * README: Use consistent `GDB' and `GDBserver' spellings.
12183
12184 2010-05-02 Pedro Alves <pedro@codesourcery.com>
12185
12186 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
12187 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
12188 (linux_detach_one_lwp): Assume the lwp is stopped.
12189 (any_thread_of): Delete.
12190 (linux_detach): Stop all lwps here. Don't blindly delete all
12191 breakpoints.
12192 (delete_lwp_callback): New.
12193 (linux_mourn): Delete all lwps of the process that is gone.
12194 (linux_wait_1): Don't delete the last lwp of the process here.
12195 * mem-break.h (mark_breakpoints_out): Declare.
12196 * mem-break.c (mark_breakpoints_out): New.
12197 (free_all_breakpoints): Use it.
12198 * server.c (handle_target_event): If the process is gone, mark
12199 breakpoints out.
12200 * thread-db.c (struct thread_db) <create_bp>: New field.
12201 (thread_db_enable_reporting): Fix prototype. Store a thread event
12202 breakpoint reference in the thread_db struct.
12203 (thread_db_load_search): Clear the thread_db object.
12204 (try_thread_db_load_1): Ditto.
12205 (switch_to_process): New.
12206 (disable_thread_event_reporting): Use it.
12207 (remove_thread_event_breakpoints): New.
12208 (thread_db_detach, thread_db_mourn): Use it.
12209
12210 2010-05-01 Pedro Alves <pedro@codesourcery.com>
12211
12212 * linux-low.c (linux_enable_event_reporting): New.
12213 (linux_wait_for_event_1, handle_extended_wait): Use it.
12214
12215 2010-04-30 Pedro Alves <pedro@codesourcery.com>
12216
12217 * linux-low.c (linux_kill_one_lwp, linux_kill)
12218 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
12219 (send_sigstop): Take an lwp_info as parameter instead. Queue a
12220 SIGSTOP even if the LWP is stopped.
12221 (send_sigstop_callback): New.
12222 (stop_all_lwps): Use send_sigstop_callback instead.
12223 (linux_resume_one_thread): Adjust.
12224 (proceed_one_lwp): Still proceed an LWP that the client has
12225 requested to stop, if we haven't reported it as stopped yet. Make
12226 sure that LWPs the client want stopped, have a pending SIGSTOP.
12227
12228 2010-04-26 Doug Evans <dje@google.com>
12229
12230 * server.c (handle_general_set): Make static.
12231
12232 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
12233 Print received char after testing for error/eof instead of before.
12234 (input_interrupt): Tweak comment.
12235
12236 2010-04-23 Doug Evans <dje@google.com>
12237
12238 * server.c (start_inferior): Print inferior argv if --debug.
12239
12240 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
12241
12242 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
12243 * nto-x86-low.c: Include server.h
12244
12245 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
12246
12247 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
12248 be consistent with other sources of this directory.
12249 (init_registers_amd64): Correct name of source file of this function
12250 in the comment.
12251
12252 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
12253
12254 * configure.srv (x86_64-*-mingw*): New configuration for Windows
12255 64-bit executables.
12256
12257 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
12258
12259 * win32-i386-low.c: Add 64-bit support.
12260 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
12261 (init_registers_amd64): Declare.
12262 (mappings): Add 64-bit version of array.
12263 (init_windows_x86): New function.
12264 (the_low_target): Change init_arch field to init_windows_x86.
12265
12266 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
12267
12268 * win32-low.c: Adapt to support also 64-bit architecture.
12269 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
12270 (get_image_name): Use SIZE_T type for local variable `done'.
12271 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
12272 (toolhelp_get_dll_name): Idem.
12273 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
12274 Use uintptr_t typecast to avoid warning.
12275 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
12276 (handle_exception): Use phex_nz to avoid warning.
12277 (win32_wait): Remove unused local variable `process'.
12278
12279 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
12280
12281 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
12282 `amd64-avx.o'.
12283
12284 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
12285
12286 * configure.ac: Use `ws2_32' library for srv_mingw.
12287 * configure: Regenerate.
12288 * gdbreplay.c: Include winsock2.h instead of winsock.h.
12289 * remote-utils.c: Likewise.
12290
12291 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
12292
12293 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
12294 if __x86_64__ is defined.
12295
12296 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
12297
12298 * configure: Regenerate.
12299
12300 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
12301
12302 * server.c (handle_query): Handle 'qGetTIBAddr' query.
12303 * target.h (target_ops): New get_tib_address field.
12304 * win32-low.h (win32_thread_info): Add thread_local_base field.
12305 * win32-low.c (child_add_thread): Add tlb argument.
12306 Set thread_local_base field to TLB.
12307 (get_child_debug_event): Adapt to child_add_thread change.
12308 (win32_get_tib_address): New function.
12309 (win32_target_ops): Set get_tib_address field to
12310 win32_get_tib_address.
12311 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
12312
12313 2010-04-12 Pedro Alves <pedro@codesourcery.com>
12314
12315 * linux-low.c (linux_mourn): Also remove the process.
12316 * server.c (handle_target_event): Don't remove the process here.
12317 * nto-low.c (nto_mourn): New.
12318 (nto_target_ops): Install it.
12319 * spu-low.c (spu_mourn): New.
12320 (spu_target_ops): Install it.
12321 * win32-low.c (win32_mourn): New.
12322 (win32_target_ops): Install it.
12323
12324 2010-04-12 Pedro Alves <pedro@codesourcery.com>
12325
12326 * server.h (buffer_xml_printf): Remove redundant `;'.
12327
12328 2010-04-12 Pedro Alves <pedro@codesourcery.com>
12329
12330 * regcache.c (set_register_cache): Invalidate regcaches before
12331 changing the register cache layout.
12332 (regcache_invalidate_one): Allow a NULL regcache.
12333 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
12334 regcaches before changing the register cache layout or the target
12335 regsets.
12336
12337 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
12338
12339 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
12340 variable warning on Linux/x86-64.
12341
12342 2010-04-11 Pedro Alves <pedro@codesourcery.com>
12343
12344 GDBserver disconnected tracing support.
12345
12346 * linux-low.c (linux_remove_process): Delete.
12347 (add_lwp): Don't set last_resume_kind here.
12348 (linux_kill): Use `mourn'.
12349 (linux_detach): Use `thread_db_detach', and `mourn'.
12350 (linux_mourn): New.
12351 (linux_attach_lwp_1): Adjust comment.
12352 (linux_attach): last_resume_kind moved the thread_info; adjust.
12353 (status_pending_p_callback): Adjust.
12354 (linux_wait_for_event_1): Adjust.
12355 (count_events_callback, select_singlestep_lwp_callback)
12356 (select_event_lwp_callback, cancel_breakpoints_callback)
12357 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
12358 (proceed_one_lwp): Adjust.
12359 (linux_async): Add debug output.
12360 (linux_thread_stopped): New.
12361 (linux_pause_all): New.
12362 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
12363 linux_pause_all.
12364 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
12365 (thread_db_free): Delete declaration.
12366 (thread_db_detach, thread_db_mourn): Declare.
12367 * thread-db.c (thread_db_init): Use thread_db_mourn.
12368 (thread_db_free): Delete, split in two.
12369 (disable_thread_event_reporting): New.
12370 (thread_db_detach): New.
12371 (thread_db_mourn): New.
12372
12373 * server.h (struct thread_info) <last_resume_kind>: New field.
12374 <attached>: Add comment.
12375 <gdb_detached>: New field.
12376 (handler_func): Change return type to int.
12377 (handle_serial_event, handle_target_event): Ditto.
12378 (gdb_connected): Declare.
12379 (tracing): Delete.
12380 (disconnected_tracing): Declare.
12381 (stop_tracing): Declare.
12382
12383 * server.c (handle_query) <qSupported>: Report support for
12384 disconnected tracing.
12385 (queue_stop_reply_callback): Account for running threads.
12386 (gdb_wants_thread_stopped): New.
12387 (gdb_wants_all_threads_stopped): New.
12388 (gdb_reattached_process): New.
12389 (handle_status): Clear the `gdb_detached' flag of all processes.
12390 In all-stop, stop all threads.
12391 (main): Be sure to leave tfind mode. Handle disconnected tracing.
12392 (process_serial_event): If the remote connection breaks, or if an
12393 exit was forced with "monitor exit", force an event loop exit.
12394 Handle disconnected tracing on detach.
12395 (handle_serial_event): Adjust.
12396 (handle_target_event): If GDB isn't connected, forward events back
12397 to the inferior, unless the last process exited, in which case,
12398 exit gdbserver. Adjust interface.
12399
12400 * remote-utils.c (remote_open): Don't block in accept. Instead
12401 register an event loop source on the listen socket file
12402 descriptor. Refactor bits into ...
12403 (listen_desc): ... this new global.
12404 (gdb_connected): ... this new function.
12405 (enable_async_notification): ... this new function.
12406 (handle_accept_event): ... this new function.
12407 (remote_close): Clear remote_desc.
12408
12409 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
12410
12411 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
12412 New fields.
12413 (mourn_inferior): Define.
12414 (target_process_qsupported): Avoid the dangling else problem.
12415 (thread_stopped): Define.
12416 (pause_all): Define.
12417 (target_waitstatus_to_string): Declare.
12418 * target.c (target_waitstatus_to_string): New.
12419
12420 * tracepoint.c (tracing): Make extern.
12421 (disconnected_tracing): New.
12422 (stop_tracing): Make extern. Handle tracing stops due to GDB
12423 disconnecting.
12424 (cmd_qtdisconnected): New.
12425 (cmd_qtstatus): Report disconnected tracing status in trace reply.
12426 (handle_tracepoint_general_set): Handle QTDisconnected.
12427
12428 * event-loop.c (event_handler_func): Change return type to int.
12429 (process_event): Bail out if the event handler wants the event
12430 loop to stop.
12431 (handle_file_event): Ditto.
12432 (start_event_loop): Bail out if the event handler wants the event
12433 loop to stop.
12434
12435 * nto-low.c (nto_target_ops): Adjust.
12436 * spu-low.c (spu_wait): Don't remove the process here.
12437 (spu_target_ops): Adjust.
12438 * win32-low.c (win32_wait): Don't remove the process here.
12439 (win32_target_ops): Adjust.
12440
12441 2010-04-11 Pedro Alves <pedro@codesourcery.com>
12442
12443 * regcache.c (realloc_register_cache): Invalidate inferior's
12444 regcache before recreating it.
12445
12446 2010-04-09 Pedro Alves <pedro@codesourcery.com>
12447
12448 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
12449
12450 2010-04-09 Stan Shebs <stan@codesourcery.com>
12451 Pedro Alves <pedro@codesourcery.com>
12452
12453 * server.h (LONGEST): New.
12454 (struct thread_info) <while_stepping>: New field.
12455 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
12456 Declare.
12457 (initialize_tracepoint, handle_tracepoint_general_set)
12458 (handle_tracepoint_query, tracepoint_finished_step)
12459 (tracepoint_was_hit, release_while_stepping_state_list):
12460 (current_traceframe): Declare.
12461 * server.c (handle_general_set): Handle tracepoint packets.
12462 (read_memory): New.
12463 (write_memory): New.
12464 (handle_search_memory_1): Use read_memory.
12465 (handle_query): Report support for conditional tracepoints, trace
12466 state variables, and tracepoint sources. Handle tracepoint
12467 queries.
12468 (main): Initialize the tracepoints module.
12469 (process_serial_event): Handle traceframe reads/writes.
12470
12471 * linux-low.c (handle_tracepoints): New.
12472 (linux_wait_1): Call it.
12473 (linux_resume_one_lwp): Handle while-stepping.
12474 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
12475 (linux_target_ops): Install them.
12476 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
12477 New field.
12478 * linux-x86-low.c (x86_supports_tracepoints): New.
12479 (the_low_target). Install it.
12480
12481 * mem-break.h (delete_breakpoint): Declare.
12482 * mem-break.c (delete_breakpoint): Make external.
12483
12484 * target.h (struct target_ops): Add `supports_tracepoints',
12485 `read_pc', and `write_pc' fields.
12486 (target_supports_tracepoints): Define.
12487 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
12488 (phex_nz): New.
12489
12490 * regcache.h (struct regcache) <registers_owned>: New field.
12491 (init_register_cache, regcache_cpy): Declare.
12492 (regcache_read_pc, regcache_write_pc): Declare.
12493 (register_cache_size): Declare.
12494 (supply_regblock): Declare.
12495 * regcache.c (init_register_cache): New.
12496 (new_register_cache): Use it.
12497 (regcache_cpy): New.
12498 (register_cache_size): New.
12499 (supply_regblock): New.
12500 (regcache_read_pc, regcache_write_pc): New.
12501
12502 * tracepoint.c: New.
12503
12504 * Makefile.in (OBS): Add tracepoint.o.
12505 (tracepoint.o): New rule.
12506
12507 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
12508
12509 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
12510 (i386-mmx.o): New.
12511 (i386-mmx.c): Likewise.
12512 (i386-mmx-linux.o): Likewise.
12513 (i386-mmx-linux.c): Likewise.
12514
12515 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
12516 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
12517 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
12518 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
12519
12520 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
12521 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
12522 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
12523
12524 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
12525
12526 * Makefile.in (clean): Updated.
12527 (i386-avx.o): New.
12528 (i386-avx.c): Likewise.
12529 (i386-avx-linux.o): Likewise.
12530 (i386-avx-linux.c): Likewise.
12531 (amd64-avx.o): Likewise.
12532 (amd64-avx.c): Likewise.
12533 (amd64-avx-linux.o): Likewise.
12534 (amd64-avx-linux.c): Likewise.
12535
12536 * configure.srv (srv_i386_regobj): Add i386-avx.o.
12537 (srv_i386_linux_regobj): Add i386-avx-linux.o.
12538 (srv_amd64_regobj): Add amd64-avx.o.
12539 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
12540 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
12541 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
12542 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
12543 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
12544 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
12545 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
12546
12547 * i387-fp.c: Include "i386-xstate.h".
12548 (i387_xsave): New.
12549 (i387_cache_to_xsave): Likewise.
12550 (i387_xsave_to_cache): Likewise.
12551 (x86_xcr0): Likewise.
12552
12553 * i387-fp.h (i387_cache_to_xsave): Likewise.
12554 (i387_xsave_to_cache): Likewise.
12555 (x86_xcr0): Likewise.
12556
12557 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
12558 * linux-crisv32-low.c (target_regsets): Likewise.
12559 * linux-m68k-low.c (target_regsets): Likewise.
12560 * linux-mips-low.c (target_regsets): Likewise.
12561 * linux-ppc-low.c (target_regsets): Likewise.
12562 * linux-s390-low.c (target_regsets): Likewise.
12563 * linux-sh-low.c (target_regsets): Likewise.
12564 * linux-sparc-low.c (target_regsets): Likewise.
12565 * linux-xtensa-low.c (target_regsets): Likewise.
12566
12567 * linux-low.c: Include <sys/uio.h>.
12568 (regsets_fetch_inferior_registers): Support nt_type.
12569 (regsets_store_inferior_registers): Likewise.
12570 (linux_process_qsupported): New.
12571 (linux_target_ops): Add linux_process_qsupported.
12572
12573 * linux-low.h (regset_info): Add nt_type.
12574 (linux_target_ops): Add process_qsupported.
12575
12576 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
12577 and <sys/uio.h>.
12578 (init_registers_i386_avx_linux): New.
12579 (init_registers_amd64_avx_linux): Likewise.
12580 (xmltarget_i386_linux_no_xml): Likewise.
12581 (xmltarget_amd64_linux_no_xml): Likewise.
12582 (PTRACE_GETREGSET): Likewise.
12583 (PTRACE_SETREGSET): Likewise.
12584 (x86_fill_xstateregset): Likewise.
12585 (x86_store_xstateregset): Likewise.
12586 (use_xml): Likewise.
12587 (x86_linux_update_xmltarget): Likewise.
12588 (x86_linux_process_qsupported): Likewise.
12589 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
12590 (x86_arch_setup): Don't call init_registers_amd64_linux nor
12591 init_registers_i386_linux here. Call
12592 x86_linux_update_xmltarget.
12593 (the_low_target): Add x86_linux_process_qsupported.
12594
12595 * server.c (handle_query): Call target_process_qsupported.
12596
12597 * target.h (target_ops): Add process_qsupported.
12598 (target_process_qsupported): New.
12599
12600 2010-04-03 Pedro Alves <pedro@codesourcery.com>
12601
12602 * inferiors.c (add_thread): Set last_status kind to
12603 TARGET_WAITKIND_IGNORE.
12604 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
12605 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
12606 (linux_wait_1): Move `thread' local definition to block that uses
12607 it. Don't NULL initialize `event_child'.
12608 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
12609 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
12610 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
12611
12612 2010-04-01 Pedro Alves <pedro@codesourcery.com>
12613
12614 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
12615 an extended waitstatus, or by a watchpoint.
12616 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
12617 thread was stepping or has been stopped by a watchpoint.
12618
12619 2010-04-01 Pedro Alves <pedro@codesourcery.com>
12620
12621 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
12622 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
12623 of another, then delete the previous, and validate all
12624 breakpoints.
12625 (validate_inserted_breakpoint): New.
12626 (delete_disabled_breakpoints): New.
12627 (validate_breakpoints): New.
12628 (check_mem_read): Validate breakpoints before trusting their
12629 shadow. Delete disabled breakpoints.
12630 (check_mem_write): Validate breakpoints before trusting they
12631 should be inserted. Delete disabled breakpoints.
12632 * mem-break.h (validate_breakpoints):
12633 * server.c (handle_query): Validate breakpoints when we see a
12634 qSymbol query.
12635
12636 2010-04-01 Pedro Alves <pedro@codesourcery.com>
12637
12638 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
12639 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
12640 if we could tell there's a GDB breakpoint at stop_pc.
12641 (need_step_over_p): Don't do a step over if we find a GDB
12642 breakpoint at the resume PC.
12643
12644 * mem-break.c (struct raw_breakpoint): New.
12645 (enum bkpt_type): New type `gdb_breakpoint'.
12646 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
12647 fields. New field `raw'.
12648 (find_raw_breakpoint_at): New.
12649 (set_raw_breakpoint_at): Handle refcounting. Create a raw
12650 breakpoint instead.
12651 (set_breakpoint_at): Adjust.
12652 (delete_raw_breakpoint): New.
12653 (release_breakpoint): New.
12654 (delete_breakpoint): Rename to...
12655 (delete_breakpoint_1): ... this. Add proc parameter. Use
12656 release_breakpoint. Return ENOENT.
12657 (delete_breakpoint): Reimplement.
12658 (find_breakpoint_at): Delete.
12659 (find_gdb_breakpoint_at): New.
12660 (delete_breakpoint_at): Delete.
12661 (set_gdb_breakpoint_at): New.
12662 (delete_gdb_breakpoint_at): New.
12663 (gdb_breakpoint_here): New.
12664 (set_reinsert_breakpoint): Use release_breakpoint.
12665 (uninsert_breakpoint): Rename to ...
12666 (uninsert_raw_breakpoint): ... this.
12667 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
12668 (reinsert_raw_breakpoint): Change parameter type to
12669 raw_breakpoint.
12670 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
12671 instead.
12672 (check_breakpoints): Adjust. Use release_breakpoint.
12673 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
12674 (breakpoint_inserted_here): Ditto.
12675 (check_mem_read): Adjust to iterate over raw breakpoints instead.
12676 Don't trust the breakpoint's shadow if it is not inserted.
12677 (check_mem_write): Adjust to iterate over raw breakpoints instead.
12678 (delete_all_breakpoints): Adjust.
12679 (free_all_breakpoints): Mark all breakpoints as uninserted, and
12680 use delete_breakpoint_1.
12681
12682 * mem-break.h (breakpoints_supported): Delete declaration.
12683 (set_gdb_breakpoint_at): Declare.
12684 (gdb_breakpoint_here): Declare.
12685 (delete_breakpoint_at): Delete.
12686 (delete_gdb_breakpoint_at): Declare.
12687
12688 * server.h (struct raw_breakpoint): Forward declare.
12689 (struct process_info): New field `raw_breakpoints'.
12690
12691 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
12692 breakpoints.
12693
12694 2010-03-24 Pedro Alves <pedro@codesourcery.com>
12695
12696 * linux-low.c (status_pending_p_callback): Fix comment.
12697 (linux_wait_for_event_1): Move most of the internal breakpoint
12698 handling from here...
12699 (linux_wait_1): ... to here.
12700 (count_events_callback): New.
12701 (select_singlestep_lwp_callback): New.
12702 (select_event_lwp_callback): New.
12703 (cancel_breakpoints_callback): New.
12704 (select_event_lwp): New.
12705 (linux_wait_1): Simplify internal breakpoint handling. Give equal
12706 priority to all LWPs that have had events that should be reported
12707 to the client. Cancel breakpoints when about to reporting the
12708 event to the client, not while stopping lwps. No longer cancel
12709 finished single-steps here.
12710 (cancel_finished_single_step): Delete.
12711 (cancel_finished_single_steps): Delete.
12712
12713 2010-03-24 Pedro Alves <pedro@codesourcery.com>
12714
12715 * mem-break.c (enum bkpt_type): New.
12716 (struct breakpoint): New field `type'.
12717 (set_breakpoint_at): Change return type to struct breakpoint
12718 pointer. Set type to `other_breakpoint' by default.
12719 (delete_breakpoint): Rewrite, supporting more than one breakpoint
12720 in the breakpoint list.
12721 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
12722 (reinsert_breakpoint): Rename to ...
12723 (reinsert_raw_breakpoint): ... this.
12724 (reinsert_breakpoints_at): Adjust.
12725 * mem-break.h (struct breakpoint): Declare.
12726 (set_breakpoint_at): Change return type to struct breakpoint
12727 pointer.
12728
12729 2010-03-24 Pedro Alves <pedro@codesourcery.com>
12730
12731 * server.c (handle_query): Assign, not compare.
12732
12733 2010-03-24 Pedro Alves <pedro@codesourcery.com>
12734
12735 Teach linux gdbserver to step-over-breakpoints.
12736
12737 * linux-low.c (can_hardware_single_step): New.
12738 (supports_breakpoints): New.
12739 (handle_extended_wait): If stopping threads, read the stop pc of
12740 the new cloned LWP.
12741 (get_pc): New.
12742 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
12743 low target doesn't support retrieving the PC.
12744 (add_lwp): Set last_resume_kind to resume_continue.
12745 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
12746 (linux_attach): Don't clear stop_expected. Set the lwp's
12747 last_resume_kind to resume_stop.
12748 (linux_detach_one_lwp): Don't check for removed breakpoints.
12749 (check_removed_breakpoint): Delete.
12750 (status_pending_p): Rename to ...
12751 (status_pending_p_callback): ... this. Don't check for removed
12752 breakpoints. Don't consider threads that are stopped from GDB's
12753 perspective.
12754 (linux_wait_for_lwp): Always read the stop_pc here.
12755 (cancel_breakpoint): New.
12756 (step_over_bkpt): New global.
12757 (linux_wait_for_event_1): Implement stepping over breakpoints.
12758 (gdb_wants_lwp_stopped): New.
12759 (gdb_wants_all_stopped): New.
12760 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
12761 single-step traps here. Store the thread's last reported target
12762 wait status.
12763 (send_sigstop): Don't clear stop_expected. Always set it,
12764 instead.
12765 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
12766 (cancel_finished_single_step): New.
12767 (cancel_finished_single_steps): New.
12768 (wait_for_sigstop): Don't cancel finished single-step traps here.
12769 (linux_resume_one_lwp): Don't check for removed breakpoints.
12770 Don't set `step' on non-hardware step archs.
12771 (linux_set_resume_request): Ignore resume_stop requests if already
12772 stopping or stopped. Set the lwp's last_resume_kind.
12773 (resume_status_pending_p): Don't check for removed breakpoints.
12774 (need_step_over_p): New.
12775 (start_step_over): New.
12776 (finish_step_over): New.
12777 (linux_resume_one_thread): Always queue a sigstop for resume_stop
12778 requests. Clear the thread's last reported target waitstatus.
12779 Don't use the `suspended' flag. Don't consider pending breakpoints.
12780 (linux_resume): Start a step-over if necessary.
12781 (proceed_one_lwp): New.
12782 (proceed_all_lwps): New.
12783 (unstop_all_lwps): New.
12784 * linux-low.h (struct lwp_info): Rewrite comment for the
12785 `suspended' flag. Add the `stop_pc' field. Delete the
12786 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
12787 Add `'last_resume_kind' and `need_step_over' fields.
12788 * inferiors.c (struct thread_info): Delete, moved elsewhere.
12789 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
12790 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
12791 (set_raw_breakpoint_at): New.
12792 (set_breakpoint_at): Rewrite to use it.
12793 (reinsert_breakpoint_handler): Delete.
12794 (set_reinsert_breakpoint): New.
12795 (reinsert_breakpoint_by_bp): Delete.
12796 (delete_reinsert_breakpoints): New.
12797 (uninsert_breakpoint): Rewrite.
12798 (uninsert_breakpoints_at): New.
12799 (reinsert_breakpoint): Rewrite.
12800 (reinsert_breakpoints_at): New.
12801 (check_breakpoints): Rewrite.
12802 (breakpoint_here): New.
12803 (breakpoint_inserted_here): New.
12804 (check_mem_read): Adjust.
12805 * mem-break.h (breakpoints_supported, breakpoint_here)
12806 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
12807 (reinsert_breakpoint_by_bp): Delete declaration.
12808 (delete_reinsert_breakpoints): Declare.
12809 (reinsert_breakpoint): Delete declaration.
12810 (reinsert_breakpoints_at): Declare.
12811 (uninsert_breakpoint): Delete declaration.
12812 (uninsert_breakpoints_at): Declare.
12813 (check_breakpoints): Adjust prototype.
12814 * server.h: Adjust include order.
12815 (struct thread_info): Declare here. Add a `last_status' field.
12816
12817 2010-03-23 Michael Snyder <msnyder@vmware.com>
12818
12819 * server.c (crc32): New function.
12820 (handle_query): Add handling for 'qCRC:' request.
12821
12822 2010-03-23 Pedro Alves <pedro@codesourcery.com>
12823
12824 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
12825 lwp had been stopped by a watchpoint.
12826
12827 2010-03-16 Pedro Alves <pedro@codesourcery.com>
12828
12829 * server.h (internal_error): Declare.
12830 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
12831 * utils.c (internal_error): New function.
12832
12833 2010-03-15 Andreas Schwab <schwab@redhat.com>
12834
12835 * configure.srv: Fix typo setting srv_regobj.
12836
12837 2010-03-15 Pedro Alves <pedro@codesourcery.com>
12838
12839 * linux-low.c (fetch_register): Avoid passing a non string literal
12840 format to `error'.
12841 (usr_store_inferior_registers): Ditto.
12842
12843 2010-03-14 Pedro Alves <pedro@codesourcery.com>
12844
12845 * linux-low.c (linux_write_memory): Bail out early if peeking
12846 memory failed.
12847
12848 2010-03-14 Pedro Alves <pedro@codesourcery.com>
12849
12850 * linux-low.h (struct lwp_info): New fields
12851 `stopped_by_watchpoint' and `stopped_data_address'.
12852 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
12853 here, and cache them in the lwp object.
12854 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
12855 directly.
12856 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
12857 field.
12858 (linux_stopped_by_watchpoint): Rewrite.
12859 (linux_stopped_data_address): Rewrite.
12860
12861 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
12862
12863 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
12864 switching the current inferior, not before.
12865
12866 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
12867
12868 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
12869 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
12870 i386-linux.c and amd64-linux.c.
12871 (reg-i386.o): Removed.
12872 (reg-i386.c): Likewise.
12873 (reg-i386-linux.o): Likewise.
12874 (reg-i386-linux.c): Likewise.
12875 (reg-x86-64.o): Likewise.
12876 (reg-x86-64.c): Likewise.
12877 (reg-x86-64-linux.o): Likewise.
12878 (reg-x86-64-linux.c): Likewise.
12879 (i386.o): New.
12880 (i386.c): Likewise.
12881 (i386-linux.o): Likewise.
12882 (i386-linux.c): Likewise.
12883 (amd64.o): Likewise.
12884 (amd64.c): Likewise.
12885 (amd64-linux.o): Likewise.
12886 (amd64-linux.c): Likewise.
12887
12888 * configure.srv (srv_i386_regobj): New.
12889 (srv_i386_linux_regobj): Likewise.
12890 (srv_amd64_regobj): Likewise.
12891 (srv_amd64_linux_regobj): Likewise.
12892 (srv_i386_32bit_xmlfiles): Likewise.
12893 (srv_i386_64bit_xmlfiles): Likewise.
12894 (srv_i386_xmlfiles): Likewise.
12895 (srv_amd64_xmlfiles): Likewise.
12896 (srv_i386_linux_xmlfiles): Likewise.
12897 (srv_amd64_linux_xmlfiles): Likewise.
12898 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
12899 srv_xmlfiles to $srv_i386_xmlfiles.
12900 (i[34567]86-*-mingw32ce*): Likewise.
12901 (i[34567]86-*-mingw*): Likewise.
12902 (i[34567]86-*-nto*): Likewise.
12903 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
12904 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
12905 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
12906 (x86_64-*-linux*): Likewise.
12907
12908 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
12909 (init_registers_amd64_linux): New.
12910 (x86_arch_setup): Replace init_registers_x86_64_linux with
12911 init_registers_amd64_linux.
12912
12913 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
12914
12915 * configure.ac: Check for libdl. If it is not available link against
12916 static libthread_db.
12917 * configure: Regenerate.
12918
12919 2010-02-22 Pedro Alves <pedro@codesourcery.com>
12920
12921 PR9605
12922
12923 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
12924 handing a read watchpoint.
12925 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
12926
12927 2010-02-12 Doug Evans <dje@google.com>
12928
12929 * linux-low.c (linux_supports_tracefork_flag): Document.
12930 (linux_look_up_symbols): Add comment.
12931
12932 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
12933
12934 * regcache.c (supply_register): Clear regcache if buf is NULL.
12935
12936 2010-02-02 Nicolas Roche <roche@sourceware.org>
12937 Joel Brobecker <brobecker@adacore.com>
12938
12939 * inferiors.c (find_inferior): Add function documentation.
12940 (unloaded_dll): Handle the case where the unloaded dll has not
12941 been previously registered in the dll list.
12942
12943 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
12944
12945 * linux-arm-low.c (thumb_breakpoint_len): Delete.
12946 (thumb2_breakpoint): New.
12947 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
12948
12949 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
12950
12951 * linux-low.c (get_stop_pc): Check for SIGTRAP.
12952 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
12953 breakpoints.
12954
12955 2010-01-21 Pedro Alves <pedro@codesourcery.com>
12956
12957 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
12958
12959 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12960
12961 * linux-s390-low.c (s390_collect_ptrace_register)
12962 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
12963
12964 2010-01-21 Doug Evans <dje@google.com>
12965
12966 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
12967 (PTRACE_ARG4_TYPE): New macro.
12968 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
12969 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
12970 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
12971 (usr_store_inferior_registers): Ditto.
12972 (linux_read_memory, linux_write_memory): Ditto.
12973 (linux_test_for_tracefork): Ditto.
12974
12975 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
12976 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
12977
12978 2010-01-21 Pedro Alves <pedro@codesourcery.com>
12979
12980 * proc-service.c (ps_lgetregs): Don't refetch registers from the
12981 target.
12982
12983 2010-01-21 Pedro Alves <pedro@codesourcery.com>
12984
12985 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
12986 prototype to take a regcache. Adjust.
12987
12988 2010-01-20 Pedro Alves <pedro@codesourcery.com>
12989
12990 * regcache.h (struct thread_info): Forward declare.
12991 (struct regcache): New.
12992 (new_register_cache): Adjust prototype.
12993 (get_thread_regcache): Declare.
12994 (free_register_cache): Adjust prototype.
12995 (registers_to_string, registers_from_string): Ditto.
12996 (supply_register, supply_register_by_name, collect_register)
12997 (collect_register_as_string, collect_register_by_name): Ditto.
12998 * regcache.c (struct inferior_regcache_data): Delete.
12999 (get_regcache): Rename to ...
13000 (get_thread_regcache): ... this. Adjust. Switch inferior before
13001 fetching registers.
13002 (regcache_invalidate_one): Adjust.
13003 (regcache_invalidate): Fix prototype.
13004 (new_register_cache): Return the new register cache.
13005 (free_register_cache): Change prototype.
13006 (realloc_register_cache): Adjust.
13007 (registers_to_string): Change prototype to take a regcache. Adjust.
13008 (registers_from_string): Ditto.
13009 (register_data): Ditto.
13010 (supply_register): Ditto.
13011 (supply_register_by_name): Ditto.
13012 (collect_register): Ditto.
13013 (collect_register_as_string): Ditto.
13014 (collect_register_by_name): Ditto.
13015 * server.c (process_serial_event): Adjust.
13016 * linux-low.h (regset_fill_func, regset_store_func): Change
13017 prototype.
13018 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
13019 Change prototype.
13020 * linux-low.c (get_stop_pc): Adjust.
13021 (check_removed_breakpoint): Adjust.
13022 (linux_wait_for_event): Adjust.
13023 (linux_resume_one_lwp): Adjust.
13024 (fetch_register): Add regcache parameter. Adjust.
13025 (usr_store_inferior_registers): Ditto.
13026 (regsets_fetch_inferior_registers): Ditto.
13027 (regsets_store_inferior_registers): Ditto.
13028 (linux_fetch_registers, linux_store_registers): Ditto.
13029 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
13030 regcache. Adjust.
13031 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
13032 Ditto.
13033 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
13034 prototype to take a regcache.
13035 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
13036 * remote-utils.c (convert_ascii_to_int, outreg)
13037 (prepare_resume_reply): Change prototype to take a regcache.
13038 Adjust.
13039 * target.h (struct target_ops) <fetch_registers, store_registers>:
13040 Change prototype to take a regcache.
13041 (fetch_inferior_registers, store_inferior_registers): Change
13042 prototype to take a regcache. Adjust.
13043 * proc-service.c (ps_lgetregs): Adjust.
13044 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
13045 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
13046 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
13047 take a regcache. Adjust.
13048 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
13049 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
13050 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
13051 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
13052 * linux-cris-low.c (cris_get_pc, cris_set_pc)
13053 (cris_cannot_fetch_register):
13054 (cris_breakpoint_at): Change prototype to take a regcache.
13055 Adjust.
13056 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
13057 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
13058 to take a regcache. Adjust.
13059 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
13060 Adjust.
13061 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
13062 take a regcache. Adjust.
13063 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
13064 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
13065 (m68k_set_pc): Change prototype to take a regcache. Adjust.
13066 * linux-mips-low.c (mips_get_pc):
13067 (mips_set_pc): Change prototype to take a regcache. Adjust.
13068 (mips_reinsert_addr): Adjust.
13069 (mips_collect_register): Change prototype to take a regcache.
13070 Adjust.
13071 (mips_supply_register):
13072 (mips_collect_register_32bit, mips_supply_register_32bit)
13073 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
13074 (mips_store_fpregset): Ditto.
13075 * linux-ppc-low.c (ppc_supply_ptrace_register)
13076 (ppc_supply_ptrace_register): Ditto.
13077 (parse_spufs_run): Adjust.
13078 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
13079 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
13080 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
13081 take a regcache. Adjust.
13082 * linux-s390-low.c (s390_collect_ptrace_register)
13083 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
13084 (s390_set_pc): Change prototype to take a regcache. Adjust.
13085 (s390_arch_setup): Adjust.
13086 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
13087 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
13088 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
13089 (sparc_fill_gregset, sparc_store_gregset_from_stack)
13090 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
13091 regcache. Adjust.
13092 (sparc_breakpoint_at): Adjust.
13093 * linux-xtensa-low.c (xtensa_fill_gregset):
13094 (xtensa_store_gregset):
13095 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
13096 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
13097 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
13098 prototype to take a regcache. Adjust.
13099 * win32-arm-low.c (arm_fetch_inferior_register)
13100 (arm_store_inferior_register): Change prototype to take a
13101 regcache. Adjust.
13102 * win32-i386-low.c (i386_fetch_inferior_register)
13103 (i386_store_inferior_register): Change prototype to take a
13104 regcache. Adjust.
13105 * win32-low.c (child_fetch_inferior_registers)
13106 (child_store_inferior_registers): Change prototype to take a
13107 regcache. Adjust.
13108 (win32_wait): Adjust.
13109 (win32_fetch_inferior_registers): Change prototype to take a
13110 regcache. Adjust.
13111 (win32_store_inferior_registers): Adjust.
13112 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
13113 store_inferior_register>: Change prototype to take a regcache.
13114
13115 2010-01-20 Doug Evans <dje@google.com>
13116
13117 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
13118 #ifdef.
13119 (linux_wait_for_event1, linux_init_signals): Ditto.
13120 (W_STOPCODE): Provide definition if missing.
13121
13122 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
13123
13124 * linux-low.c (linux_core_of_thread): New.
13125 (compare_ints, show_process, list_threads): New.
13126 (linux_qxfer_osdata): Report threads and cores.
13127 (linux_target_op): Register linux_core_of_thread.
13128 * remote-utils.c (prepare_resume_reply): Report the core.
13129 (buffer_xml_printf): Support %d specifier.
13130 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
13131 New.
13132 (handle_query): Handle qXfer:threads. Announce availability
13133 thereof.
13134 * target.h (struct target_ops): New field core_of_thread.
13135
13136 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
13137
13138 * Makefile.in (clean): Remove new generated files.
13139 (reg-s390.o, reg-s390.c): Remove rules.
13140 (reg-s390x.o, reg-s390x.c): Likewise.
13141 (s390-linux32.o, s390-linux32.c): Add rules.
13142 (s390-linux64.o, s390-linux64.c): Likewise.
13143 (s390x-linux64.o, s390x-linux64.c): Likewise.
13144 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
13145 * linux-s390-low.c: Include <elf.h>.
13146 (HWCAP_S390_HIGH_GPRS): Define if undefined.
13147 (init_registers_s390): Remove prototype.
13148 (init_registers_s390x): Likewise.
13149 (init_registers_s390_linux32): Add prototype.
13150 (init_registers_s390_linux64): Likewise.
13151 (init_registers_s390x_linux64): Likewise.
13152 (s390_num_regs_3264): New define.
13153 (s390_regmap_3264): New global variable.
13154 (s390_cannot_fetch_register): Remove obsolete check.
13155 (s390_cannot_store_register): Likewise.
13156 (s390_collect_ptrace_register): Handle upper/lower register halves.
13157 (s390_supply_ptrace_register): Likewise.
13158 (s390_fill_gregset): Update to register number changes.
13159 (s390_get_hwcap): New routine.
13160 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
13161 Install appropriate regmap and register set.
13162
13163 2010-01-01 Joel Brobecker <brobecker@adacore.com>
13164
13165 * server.c (gdbserver_version): Update copyright year to 2010.
13166 * gdbreplay.c (gdbreplay_version): Likewise.
13167
13168 2009-12-28 Doug Evans <dje@google.com>
13169
13170 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
13171 elf/external.h. Include <elf.h> instead but only if necessary.
13172
13173 2009-12-28 Pedro Alves <pedro@codesourcery.com>
13174
13175 * linux-low.c (linux_remove_process): Remove `detaching'
13176 parameter. Don't release/detach from thread_db here.
13177 (linux_kill): Release/detach from thread_db here, ...
13178 (linux_detach): ... and here, before actually detaching.
13179 (linux_wait_1): ... and here, when a process exits.
13180 * thread-db.c (any_thread_of): New.
13181 (thread_db_free): Switch the current inferior to a thread of the
13182 passed in process.
13183
13184 2009-12-21 Doug Evans <dje@google.com>
13185
13186 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
13187
13188 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
13189 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
13190 warning ifndef __NR_tkill. Move setting of errno there too.
13191 Delete unnecessary resetting of errno after syscall.
13192 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
13193
13194 * configure.ac: Check for dladdr.
13195 * config.in: Regenerate.
13196 * configure: Regenerate.
13197 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
13198 (try_thread_db_load): Update.
13199
13200 * linux-low.c (my_waitpid): Delete unnecessary prototype.
13201
13202 2009-12-18 Doug Evans <dje@google.com>
13203
13204 * event-loop.c: Include unistd.h if it exists.
13205
13206 * linux-low.c (my_waitpid): Move definition away from being in
13207 between linux_tracefork_child/linux_test_for_tracefork.
13208
13209 * gdb_proc_service.h (psaddr_t): Fix type.
13210 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
13211 signature to match glibc.
13212
13213 2009-12-16 Doug Evans <dje@google.com>
13214
13215 * linux-low.c (linux_read_memory): Fix argument to read.
13216
13217 2009-11-26 Pedro Alves <pedro@codesourcery.com>
13218
13219 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
13220 events, don't leave current_inferior pointing at null.
13221
13222 2009-11-26 Pedro Alves <pedro@codesourcery.com>
13223
13224 * win32-low.c (LOG): Delete.
13225 (OUTMSG): Output to stderr.
13226 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
13227 on compile time LOG macro.
13228 (win32_wait): Fix debug output.
13229
13230 2009-11-26 Pedro Alves <pedro@codesourcery.com>
13231
13232 * win32-low.c (win32_add_one_solib): If the dll name is
13233 "ntdll.dll", prepend the system directory to the dll path.
13234
13235 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
13236
13237 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
13238
13239 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
13240 Vladimir Prus <vladimir@codesourcery.com>
13241
13242 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
13243 * configure.ac: Check for __mcoldfire__ and set
13244 gdb_cv_m68k_is_coldfire.
13245 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
13246 reg-cf.o and reg-m68k.o.
13247 * configure: Regenerated.
13248
13249 2009-11-16 Pedro Alves <pedro@codesourcery.com>
13250
13251 * linux-low.c (linux_remove_process): Add `detaching' parameter.
13252 Pass it to thread_db_free.
13253 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
13254 proper `detaching' argument to linux_remove_process.
13255 * linux-low.h (thread_db_free): Add `detaching' parameter.
13256 * thread-db.c (thread_db_init): Pass false as `detaching' argument
13257 to thread_db_free.
13258 (thread_db_free): Add `detaching' parameter. Only
13259 call td_ta_clear_event if detaching from process.
13260
13261 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
13262
13263 * thread-db.c (thread_db_free): Fix typo.
13264
13265 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
13266
13267 PR gdb/10838
13268 * thread-db.c (thread_db_free): Call td_ta_clear_event.
13269
13270 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
13271
13272 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
13273 with an i686 compiler.
13274 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
13275 needed.
13276 * configure: Rebuilt.
13277
13278 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
13279
13280 PR gdb/10783
13281
13282 * server.c (handle_search_memory_1): Correct read_addr initialization
13283 in loop for searching subsequent chunks.
13284
13285 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
13286
13287 * configure.ac: New --with-libthread-db option.
13288 * thread-db.c: Allow direct dependence on libthread_db.
13289 (thread_db_free): Adjust.
13290 * config.in: Regenerate.
13291 * configure: Likewise.
13292
13293 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
13294
13295 PR gdb/10757
13296 * thread-db.c (attach_thread): New function.
13297 (maybe_attach_thread): Return success/failure.
13298 (find_new_threads_callback): Adjust.
13299 (thread_db_find_new_threads): Loop until no new threads.
13300
13301 2009-10-13 Pedro Alves <pedro@codesourcery.com>
13302
13303 * proc-service.c (ps_lgetregs): Formatting.
13304
13305 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
13306
13307 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
13308 * configure.ac: Adjust.
13309 * linux-low.h (struct process_info_private): Move members to struct
13310 thread_db.
13311 (thread_db_free, thread_db_handle_monitor_command): New prototype.
13312 * linux-low.c (linux_remove_process): Adjust.
13313 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
13314 * server.c (handle_query): Move code ...
13315 (handle_monitor_command): ... here. New function.
13316 * target.h (struct target_ops): New member.
13317 * thread-db.c (struct thread_db): New.
13318 (libthread_db_search_path): New variable.
13319 (thread_db_create_event, thread_db_enable_reporting)
13320 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
13321 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
13322 (try_thread_db_load_1, dladdr_to_soname): New functions.
13323 (try_thread_db_load, thread_db_load_search): New functions.
13324 (thread_db_init): Search for libthread_db.
13325 (thread_db_free): New function.
13326 (thread_db_handle_monitor_command): Likewise.
13327 * config.in: Regenerate.
13328 * configure: Regenerate.
13329
13330 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
13331
13332 * spu-low.c (spu_kill): Wait for inferior to terminate.
13333 Call clear_inferiors.
13334 (spu_detach): Call clear_inferiors.
13335
13336 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13337
13338 * aclocal.m4: Regenerate.
13339 * config.in: Likewise.
13340 * configure: Likewise.
13341
13342 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
13343
13344 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
13345 (parse_spufs_run): New function.
13346 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
13347 (ppc_breakpoint_at): Handle SPU breakpoints.
13348
13349 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
13350
13351 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
13352 (SPUFS_MAGIC): Define.
13353 (spu_enumerate_spu_ids): New function.
13354 (linux_qxfer_spu): New function.
13355 (linux_target_ops): Install linux_qxfer_spu.
13356
13357 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
13358
13359 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
13360 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
13361 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
13362 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
13363 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
13364 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
13365 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
13366 (init_registers_powerpc_cell32l): Add prototype.
13367 (init_registers_powerpc_cell64l): Likewise.
13368 (ppc_arch_setup): Detect Cell/B.E. architecture.
13369
13370 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13371
13372 * Makefile.in (datarootdir): New variable.
13373
13374 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
13375
13376 * linux-low.c (linux_write_memory): Update debugging output.
13377 * Makefile.in (clean): Add new descriptions.
13378 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
13379 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
13380 * configure.srv: Add new files for arm*-*-linux*.
13381 * linux-arm-low.c: Add new declarations.
13382 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
13383 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
13384 (HWCAP_VFPv3D16): New.
13385 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
13386 instead of __IWMMXT__.
13387 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
13388 (arm_arch_setup): New.
13389 (target_regsets): Remove #ifdef. Add VFP regset.
13390 (the_low_target): Use arm_arch_setup.
13391
13392 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
13393
13394 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
13395 the main thread again.
13396
13397 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
13398
13399 Adding Neutrino gdbserver.
13400 * configure: Regenerated.
13401 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
13402 * configure.srv (i[34567]86-*-nto*): New target.
13403 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
13404 * remote-utils.c [__QNX__]: Include sys/iomgr.h
13405 (nto_comctrl) [__QNX__]: New function.
13406 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
13407
13408 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
13409
13410 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
13411 srv_tgtobj.
13412
13413 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
13414 Pedro Alves <pedro@codesourcery.com>
13415
13416 * win32-i386-low.c (i386_get_thread_context): Handle systems that
13417 don't support CONTEXT_EXTENDED_REGISTERS.
13418 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
13419 (the_low_target): Install them.
13420 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
13421 failing with ERROR_PIPE_NOT_CONNECTED.
13422
13423 2009-06-30 Doug Evans <dje@google.com>
13424 Pierre Muller <muller@ics.u-strasbg.fr>
13425
13426 Add h/w watchpoint support to x86-linux, win32-i386.
13427 * Makefile.in (SFILES): Add i386-low.c
13428 (i386_low_h): Define.
13429 (i386-low.o): Add dependencies.
13430 (linux-x86-low.o): Add i386-low.h dependency.
13431 (win32-i386-low.o): Ditto.
13432 * i386-low.c: New file.
13433 * i386-low.h: New file.
13434 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
13435 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
13436 * linux-low.c (linux_add_process): Initialize arch_private.
13437 (linux_remove_process): Free arch_private.
13438 (add_lwp): Initialize arch_private.
13439 (delete_lwp): Free arch_private.
13440 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
13441 provided.
13442 * linux-low.h (process_info_private): New member arch_private.
13443 (lwp_info): New member arch_private.
13444 (linux_target_ops): New members new_process, new_thread,
13445 prepare_to_resume.
13446 (ptid_of): New macro.
13447 * linux-x86-low.c: Include stddef.h, i386-low.h.
13448 (arch_process_info): New struct.
13449 (arch_lwp_info): New struct.
13450 (x86_linux_dr_get, x86_linux_dr_set): New functions.
13451 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
13452 (i386_dr_low_get_status): New function.
13453 (x86_insert_point, x86_remove_point): New functions.
13454 (x86_stopped_by_watchpoint): New function.
13455 (x86_stopped_data_address): New function.
13456 (x86_linux_new_process, x86_linux_new_thread): New functions.
13457 (x86_linux_prepare_to_resume): New function.
13458 (the_low_target): Add entries for insert_point, remove_point,
13459 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
13460 prepare_to_resume.
13461 * server.c (debug_hw_points): New global.
13462 (monitor_show_help): Document set debug-hw-points.
13463 (handle_query): Process "set debug-hw-points".
13464 * server.h (debug_hw_points): Declare.
13465 (paddress): Declare.
13466 * utils.c (NUMCELLS, CELLSIZE): New macros.
13467 (get_sell, xsnprintf, paddress): New functions.
13468 * win32-arm-low.c (the_low_target): Add entries for insert_point,
13469 remove_point, stopped_by_watchpoint, stopped_data_address.
13470 * win32-i386-low.c: Include i386-low.h.
13471 (debug_reg_state): Replaces dr.
13472 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
13473 (i386_dr_low_get_status): New function.
13474 (i386_insert_point, i386_remove_point): New functions.
13475 (i386_stopped_by_watchpoint): New function.
13476 (i386_stopped_data_address): New function.
13477 (i386_initial_stuff): Update.
13478 (get_thread_context,set_thread_context,i386_thread_added): Update.
13479 (the_low_target): Add entries for insert_point,
13480 remove_point, stopped_by_watchpoint, stopped_data_address.
13481 * win32-low.c (win32_insert_watchpoint): New function.
13482 (win32_remove_watchpoint): New function.
13483 (win32_stopped_by_watchpoint): New function.
13484 (win32_stopped_data_address): New function.
13485 (win32_target_ops): Add entries for insert_watchpoint,
13486 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
13487 * win32-low.h (win32_target_ops): New members insert_point,
13488 remove_point, stopped_by_watchpoint, stopped_data_address.
13489
13490 2009-06-25 Pedro Alves <pedro@codesourcery.com>
13491
13492 * server.c (process_serial_event): Re-return unsupported, not
13493 error, if the type isn't recognized. Re-allow supporting only
13494 insert or remove packets. Also call require_running for
13495 breakpoints. Add missing break statement to default case. Tidy.
13496 * target.h (struct target_ops): Rename insert_watchpoint to
13497 insert_point, and remove_watchpoint to remove_point.
13498
13499 * linux-low.h (struct linux_target_ops): Likewise.
13500 * linux-low.c (linux_insert_watchpoint): Rename to ...
13501 (linux_insert_point): ... this. Adjust.
13502 (linux_remove_watchpoint): Rename to ...
13503 (linux_remove_point): ... this. Adjust.
13504 (linux_target_ops): Adjust.
13505 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
13506 (cris_insert_point): ... this.
13507 (cris_remove_watchpoint): Rename to ...
13508 (cris_remove_point): ... this.
13509 (the_low_target): Adjust.
13510
13511 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
13512
13513 * server.c (handle_v_kill): Pass signal_pid to
13514 kill_inferior if multi_process is zero.
13515
13516 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
13517
13518 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
13519 * target.h (target_ops): Comment for *_watchpoint to make it clear
13520 the functions can get types '0' and '1'.
13521
13522 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
13523
13524 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
13525 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
13526 * regcache.c (get_regcache): Likewise.
13527 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
13528 * win32-low.c (child_fetch_inferior_registers): Remove check for
13529 regno 0.
13530
13531 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
13532 Pedro Alves <pedro@codesourcery.com>
13533
13534 * target.h (struct target_ops) <supports_multi_process>: New
13535 callback.
13536 (target_supports_multi_process): New.
13537 * server.c (handle_query): Even if GDB reports support, only
13538 enable multi-process if the target also supports it. Report
13539 multi-process support only if the target backend supports it.
13540 * linux-low.c (linux_supports_multi_process): New function.
13541 (linux_target_ops): Install it as target_supports_multi_process
13542 callback.
13543
13544 2009-05-24 Doug Evans <dje@google.com>
13545
13546 Global renaming of find_thread_pid to find_thread_ptid.
13547 * server.h (find_thread_ptid): Renamed from find_thread_pid.
13548 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
13549 All callers updated.
13550
13551 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
13552 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
13553 directly.
13554
13555 * linux-low.c (get_stop_pc): Print pc if debug_threads.
13556 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
13557 (linux_resume_one_lwp): Ditto.
13558
13559 2009-05-23 Doug Evans <dje@google.com>
13560
13561 * linux-low.c (linux_resume_one_lwp): Change type of first arg
13562 from struct inferior_list_entry * to struct lwp_info *.
13563 All callers updated.
13564
13565 2009-05-13 Doug Evans <dje@google.com>
13566
13567 * linux-x86-low.c: Don't include assert.h.
13568 (x86_siginfo_fixup): Use fatal, not assert.
13569 (x86_arch_setup): Fix comment.
13570
13571 2009-05-12 Doug Evans <dje@google.com>
13572
13573 Biarch support for i386/amd64 gdbserver.
13574 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
13575 Add linux-x86-low.c.
13576 (linux-i386-low.o, linux-x86-64-low.o): Delete.
13577 (linux-x86-low.o): Add.
13578 * linux-x86-64-low.c: Delete.
13579 * linux-i386-low.c: Delete.
13580 * linux-x86-low.c: New file.
13581 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
13582 linux-x86-low.o.
13583 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
13584 linux-x86-low.o.
13585 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
13586 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
13587 (linux_child_pid_to_exec_file): New function.
13588 (elf_64_header_p, elf_64_file_p): New functions.
13589 (siginfo_fixup): New function.
13590 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
13591 give target a chance to convert layout.
13592 * linux-low.h (linux_target_ops): New member siginfo_fixup.
13593 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
13594
13595 2009-05-07 Doug Evans <dje@google.com>
13596
13597 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
13598 (regsets_store_inferior_registers): Ditto.
13599
13600 2009-05-06 Pedro Alves <pedro@codesourcery.com>
13601
13602 PR server/10048
13603
13604 * linux-low.c (must_set_ptrace_flags): Delete.
13605 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
13606 of the global.
13607 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
13608 `lwp->must_set_ptrace_flags' instead.
13609 (linux_wait_for_event_1): Set ptrace options here.
13610 (linux_wait_1): ... not here.
13611
13612 2009-04-30 Doug Evans <dje@google.com>
13613
13614 * inferiors.c (started_inferior_callback): New function.
13615 (attached_inferior_callback): New function.
13616 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
13617 * server.c (print_started_pid, print_attached_pid): New functions.
13618 (detach_or_kill_for_exit): New function.
13619 (main): Call it instead of for_each_inferior (kill_inferior_callback).
13620 * server.h (have_started_inferiors_p): Declare.
13621 (have_attached_inferiors_p): Declare.
13622
13623 * inferiors.c (remove_process): Fix memory leak, free process.
13624 * linux-low.c (linux_remove_process): New function.
13625 (linux_kill): Call it instead of remove_process.
13626 (linux_detach, linux_wait_1): Ditto.
13627
13628 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
13629
13630 * configure.srv: Add x86 Windows CE target.
13631
13632 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
13633
13634 * inferiors.c (get_thread_process): Make global.
13635 * server.h (get_thread_process): Add prototype.
13636 * thread-db.c (find_one_thread): Use get_thread_process
13637 instead of current_process.
13638 (thread_db_get_tls_address): Do not crash if called when
13639 thread layer is not yet initialized.
13640
13641 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
13642
13643 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
13644 * spu-low.c (current_tid): Rename to ...
13645 (current_ptid): ... this.
13646 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
13647 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
13648 ptid_get_lwp (current_ptid) instead of current_tid.
13649 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
13650 instead of current_tid. Use find_process_pid to verify pid
13651 argument is valid. Pass proper argument to remove_process.
13652 (spu_thread_alive): Compare current_ptid instead of current_tid.
13653 (spu_resume): Likewise.
13654
13655 2009-04-02 Pedro Alves <pedro@codesourcery.com>
13656
13657 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
13658 variable.
13659
13660 2009-04-01 Pedro Alves <pedro@codesourcery.com>
13661
13662 Implement the multiprocess extensions, and add linux multiprocess
13663 support.
13664
13665 * server.h (ULONGEST): Declare.
13666 (struct ptid, ptid_t): New.
13667 (minus_one_ptid, null_ptid): Declare.
13668 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
13669 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
13670 (struct inferior_list_entry): Change `id' type from unsigned from
13671 to ptid_t.
13672 (struct sym_cache, struct breakpoint, struct
13673 process_info_private): Forward declare.
13674 (struct process_info): Declare.
13675 (current_process): Declare.
13676 (all_processes): Declare.
13677 (initialize_inferiors): Declare.
13678 (add_thread): Adjust to use ptid_t.
13679 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
13680 (add_process, remove_process, find_thread_pid): Declare.
13681 (find_inferior_id): Adjust to use ptid_t.
13682 (cont_thread, general_thread, step_thread): Change type to ptid_t.
13683 (multi_process): Declare.
13684 (push_event): Adjust to use ptid_t.
13685 (read_ptid, write_ptid): Declare.
13686 (prepare_resume_reply): Adjust to use ptid_t.
13687 (clear_symbol_cache): Declare.
13688 * inferiors.c (all_processes): New.
13689 (null_ptid, minus_one_ptid): New.
13690 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
13691 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
13692 (add_thread): Change unsigned long to ptid. Remove gdb_id
13693 parameter. Adjust.
13694 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
13695 (gdb_id_to_thread): Rename to ...
13696 (find_thread_pid): ... this. Change unsigned long to ptid.
13697 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
13698 (loaded_dll, pull_pid_from_list): Adjust.
13699 (add_process, remove_process, find_process_pid)
13700 (get_thread_process, current_process, initialize_inferiors): New.
13701 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
13702 (struct target_waitstatus) <related_pid>: Ditto.
13703 (struct target_ops) <kill, detach>: Add `pid' argument. Change
13704 return type to int.
13705 (struct target_ops) <join>: Add `pid' argument.
13706 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
13707 (struct target_ops) <wait>: Add `ptid' field. Change return type
13708 to ptid.
13709 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
13710 (mywait): Add `ptid' argument. Change return type to ptid_t.
13711 (target_pid_to_str): Declare.
13712 * target.c (set_desired_inferior): Adjust to use ptids.
13713 (mywait): Add new `ptid' argument. Adjust.
13714 (target_pid_to_str): New.
13715 * mem-break.h (free_all_breakpoints): Declare.
13716 * mem-break.c (breakpoints): Delelete.
13717 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
13718 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
13719 to use per-process breakpoint list.
13720 (free_all_breakpoints): New.
13721 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
13722 (symbol_cache, all_symbols_looked_up): Delete.
13723 (hexchars): New.
13724 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
13725 read_ptid): New.
13726 (prepare_resume_reply): Change ptid argument's type from unsigned
13727 long to ptid_t. Adjust. Implement W;process and X;process.
13728 (free_sym_cache, clear_symbol_cache): New.
13729 (look_up_one_symbol): Adjust to per-process symbol cache. *
13730 * server.c (cont_thread, general_thread, step_thread): Change type
13731 to ptid_t.
13732 (attached): Delete.
13733 (multi_process): New.
13734 (last_ptid): Change type to ptid_t.
13735 (struct vstop_notif) <ptid>: Change type to ptid_t.
13736 (queue_stop_reply, push_event): Change `ptid' argument's type to
13737 ptid_t.
13738 (discard_queued_stop_replies): Add `pid' argument.
13739 (start_inferior): Adjust to use ptids. Adjust to mywait interface
13740 changes. Don't reference the `attached' global.
13741 (attach_inferior): Adjust to mywait interface changes.
13742 (handle_query): Adjust to use ptids. Parse GDB's qSupported
13743 features. Handle and report "multiprocess+". Handle
13744 "qAttached:PID".
13745 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
13746 changes.
13747 (handle_v_kill): New.
13748 (handle_v_stopped): Adjust to use target_pid_to_str.
13749 (handle_v_requests): Allow multiple attaches and runs when
13750 multiprocess extensions are in effect. Handle "vKill".
13751 (myresume): Adjust to use ptids.
13752 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
13753 (handle_status): Adjust to discard_queued_stop_replies interface
13754 change.
13755 (first_thread_of, kill_inferior_callback)
13756 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
13757 (main): Call initialize_inferiors. Adjust to use ptids, killing
13758 and detaching from all inferiors. Handle multiprocess packet
13759 variants.
13760 * linux-low.h: Include gdb_proc_service.h.
13761 (struct process_info_private): New.
13762 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
13763 <lwpid_of>: Use ptid_get_lwp.
13764 (get_lwp_thread): Adjust.
13765 (struct lwp_info): Add `dead' member.
13766 (find_lwp_pid): Declare.
13767 * linux-low.c (thread_db_active): Delete.
13768 (new_inferior): Adjust comment.
13769 (inferior_pid): Delete.
13770 (linux_add_process): New.
13771 (handle_extended_wait): Adjust.
13772 (add_lwp): Change unsigned long to ptid.
13773 (linux_create_inferior): Add process to processes table. Adjust
13774 to use ptids. Don't set new_inferior here.
13775 (linux_attach_lwp): Rename to ...
13776 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
13777 it. Adjust to use ptids.
13778 (linux_attach_lwp): New.
13779 (linux_attach): Add process to processes table. Don't set
13780 new_inferior here.
13781 (struct counter): New.
13782 (second_thread_of_pid_p, last_thread_of_process_p): New.
13783 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
13784 multiple processes.
13785 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
13786 processes. Remove process from process table.
13787 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
13788 to multiple processes.
13789 (any_thread_of): New.
13790 (linux_detach): Add `pid' argument, and handle it. Remove process
13791 from processes table.
13792 (linux_join): Add `pid' argument. Handle it.
13793 (linux_thread_alive): Change unsighed long argument to ptid_t.
13794 Consider dead lwps as not being alive.
13795 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
13796 threads we're not interested in.
13797 (same_lwp, find_lwp_pid): New.
13798 (linux_wait_for_lwp): Change `pid' argument's type from int to
13799 ptid_t. Adjust.
13800 (linux_wait_for_event): Rename to ...
13801 (linux_wait_for_event_1): ... this. Change `pid' argument's type
13802 from int to ptid_t. Adjust.
13803 (linux_wait_for_event): New.
13804 (linux_wait_1): Add `ptid' argument. Change return type to
13805 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
13806 that exit from the process table.
13807 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
13808 Adjust.
13809 (mark_lwp_dead): New.
13810 (wait_for_sigstop): Adjust to use ptids. If a process exits while
13811 stopping all threads, mark its main lwp as dead.
13812 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
13813 ptids.
13814 (fetch_register, usr_store_inferior_registers)
13815 (regsets_fetch_inferior_registers)
13816 (regsets_store_inferior_registers, linux_read_memory)
13817 (linux_write_memory): Inline `inferior_pid'.
13818 (linux_look_up_symbols): Adjust to use per-process
13819 `thread_db_active'.
13820 (linux_request_interrupt): Adjust to use ptids.
13821 (linux_read_auxv): Inline `inferior_pid'.
13822 (initialize_low): Don't reference thread_db_active.
13823 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
13824 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
13825 (ps_getpid): Return the pid of the current inferior.
13826 * thread-db.c (proc_handle, thread_agent): Delete.
13827 (thread_db_create_event, thread_db_enable_reporting): Adjust to
13828 per-process data.
13829 (find_one_thread): Change argument type to ptid_t. Adjust to
13830 per-process data.
13831 (maybe_attach_thread): Adjust to per-process data and ptids.
13832 (thread_db_find_new_threads): Ditto.
13833 (thread_db_init): Ditto.
13834 * spu-low.c (spu_create_inferior, spu_attach): Add process to
13835 processes table. Adjust to use ptids.
13836 (spu_kill, spu_detach): Adjust interface. Remove process from
13837 processes table.
13838 (spu_join, spu_thread_alive): Adjust interface.
13839 (spu_wait): Adjust interface. Remove process from processes
13840 table. Adjust to use ptids.
13841 * win32-low.c (current_inferior_tid): Delete.
13842 (current_inferior_ptid): New.
13843 (debug_event_ptid): New.
13844 (thread_rec): Take a ptid. Adjust.
13845 (child_add_thread): Add `pid' argument. Adjust to use ptids.
13846 (child_delete_thread): Ditto.
13847 (do_initial_child_stuff): Add `attached' argument. Add process to
13848 processes table.
13849 (child_fetch_inferior_registers, child_store_inferior_registers):
13850 Adjust.
13851 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
13852 (win32_attach): Pass 1 to do_initial_child_stuff.
13853 (win32_kill): Adjust interface. Remove process from processes
13854 table.
13855 (win32_detach): Ditto.
13856 (win32_join): Adjust interface.
13857 (win32_thread_alive): Take a ptid.
13858 (win32_resume): Adjust to use ptids.
13859 (get_child_debug_event): Ditto.
13860 (win32_wait): Adjust interface. Remove exiting process from
13861 processes table.
13862
13863 2009-04-01 Pedro Alves <pedro@codesourcery.com>
13864
13865 Non-stop mode support.
13866
13867 * server.h (non_stop): Declare.
13868 (gdb_client_data, handler_func): Declare.
13869 (delete_file_handler, add_file_handler, start_event_loop):
13870 Declare.
13871 (handle_serial_event, handle_target_event, push_event)
13872 (putpkt_notif): Declare.
13873 * target.h (enum resume_kind): New.
13874 (struct thread_resume): Replace `step' field by `kind' field.
13875 (TARGET_WNOHANG): Define.
13876 (struct target_ops) <wait>: Add `options' argument.
13877 <supports_non_stop, async, start_non_stop>: New fields.
13878 (target_supports_non_stop, target_async): New.
13879 (start_non_stop): Declare.
13880 (mywait): Add `options' argument.
13881 * target.c (mywait): Add `options' argument. Print child exit
13882 notifications here.
13883 (start_non_stop): New.
13884 * server.c (non_stop, own_buf, mem_buf): New globals.
13885 (struct vstop_notif): New.
13886 (notif_queue): New global.
13887 (queue_stop_reply, push_event, discard_queued_stop_replies)
13888 (send_next_stop_reply): New.
13889 (start_inferior): Adjust to use resume_kind. Adjust to mywait
13890 interface changes.
13891 (attach_inferior): In non-stop mode, don't wait for the target
13892 here.
13893 (handle_general_set): Handle QNonStop.
13894 (handle_query): When handling qC, return the current general
13895 thread, instead of the first thread of the list.
13896 (handle_query): If the backend supports non-stop mode, include
13897 QNonStop+ in the qSupported query response.
13898 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
13899 and non-stop mode.
13900 (handle_v_attach, handle_v_run): Handle non-stop mode.
13901 (handle_v_stopped): New.
13902 (handle_v_requests): Report support for vCont;t. Handle vStopped.
13903 (myresume): Adjust to use resume_kind. Handle non-stop.
13904 (queue_stop_reply_callback): New.
13905 (handle_status): Handle non-stop mode.
13906 (main): Clear non_stop flag on reconnection. Use the event-loop.
13907 Refactor serial protocol handling from here ...
13908 (process_serial_event): ... to this new function. When GDB
13909 selects any thread, select one here. In non-stop mode, wait until
13910 GDB acks all pending events before exiting.
13911 (handle_serial_event, handle_target_event): New.
13912 * remote-utils.c (remote_open): Install remote_desc in the event
13913 loop.
13914 (remote_close): Remove remote_desc from the event loop.
13915 (putpkt_binary): Rename to...
13916 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
13917 (putpkt_binary): New as wrapper around putpkt_binary_1.
13918 (putpkt_notif): New.
13919 (prepare_resume_reply): In non-stop mode, don't change the
13920 general_thread.
13921 * event-loop.c: New.
13922 * Makefile.in (OBJ): Add event-loop.o.
13923 (event-loop.o): New rule.
13924
13925 * linux-low.h (pid_of): Moved here.
13926 (lwpid_of): New.
13927 (get_lwp_thread): Use lwpid_of.
13928 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
13929 * linux-low.c (pid_of): Delete.
13930 (inferior_pid): Use lwpid_of.
13931 (linux_event_pipe): New.
13932 (target_is_async_p): New.
13933 (delete_lwp): New.
13934 (handle_extended_wait): Use lwpid_of.
13935 (add_lwp): Don't set lwpid field.
13936 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
13937 (linux_kill_one_lwp): If killing a running lwp, stop it first.
13938 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
13939 (linux_detach_one_lwp): If detaching from a running lwp, stop it
13940 first. Adjust to linux_wait_for_event interface changes. Use
13941 lwpid_of.
13942 (linux_detach): Don't delete the main lwp here.
13943 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
13944 (status_pending_p): Don't consider explicitly suspended lwps.
13945 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
13946 pointer. Add OPTIONS argument. Change return type to int. Use
13947 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
13948 (linux_wait_for_event): Take an integer pid instead of a lwp_info
13949 pointer. Add status pointer argument. Return a pid instead of a
13950 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
13951 changes. In non-stop mode, don't switch to a random thread.
13952 (linux_wait): Rename to...
13953 (linux_wait_1): ... this. Add target_options argument, and handle
13954 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
13955 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
13956 clean exit and signal exit code. Don't stop all threads in
13957 non-stop mode. In all-stop mode, only stop all threads when
13958 reporting a stop to GDB. Handle explicit thread stop requests.
13959 (async_file_flush, async_file_mark): New.
13960 (linux_wait): New.
13961 (send_sigstop): Use lwpid_of.
13962 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
13963 interface changes. In non-stop mode, don't switch to a random
13964 thread.
13965 (linux_resume_one_lwp): Use lwpid_of.
13966 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
13967 (linux_resume_one_thread): ... this. Handle resume_stop. In
13968 non-stop mode, don't look for pending flag in all threads.
13969 (resume_status_pending_p): Don't consider explicitly suspended
13970 threads.
13971 (my_waitpid): Reimplement. Emulate __WALL.
13972 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
13973 Use lwpid_of.
13974 (sigchld_handler, linux_supports_non_stop, linux_async)
13975 (linux_start_non_stop): New.
13976 (linux_target_ops): Register linux_supports_non_stop, linux_async
13977 and linux_start_non_stop.
13978 (initialize_low): Install SIGCHLD handler.
13979 * thread-db.c (thread_db_create_event, find_one_thread)
13980 (thread_db_get_tls_address): Use lwpid_of.
13981 * win32-low.c (win32_detach): Adjust to use resume_kind.
13982 (win32_wait): Add `options' argument.
13983 * spu-low.c (spu_resume): Adjust to use resume_kind.
13984 (spu_wait): Add `options' argument.
13985
13986 2009-04-01 Pedro Alves <pedro@codesourcery.com>
13987
13988 Decouple target code from remote protocol.
13989
13990 * target.h (enum target_waitkind): New.
13991 (struct target_waitstatus): New.
13992 (struct target_ops) <wait>: Return an unsigned long. Take a
13993 target_waitstatus pointer instead of a char pointer.
13994 (mywait): Likewise.
13995 * target.c (mywait): Change prototype to return an unsigned long.
13996 Take a target_waitstatus pointer instead of a char pointer. Adjust.
13997 * server.h (thread_from_wait, old_thread_from_wait): Delete
13998 declarations.
13999 (prepare_resume_reply): Change prototype to take a
14000 target_waitstatus.
14001 * server.c (thread_from_wait, old_thread_from_wait): Delete.
14002 (last_status, last_ptid): New.
14003 (start_inferior): Remove "statusptr" argument. Adjust. Return a
14004 pid instead of a signal.
14005 (attach_inferior): Remove "status" and "signal" parameters.
14006 Adjust.
14007 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
14008 not as an address.
14009 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
14010 (handle_v_requests, myresume): Remove "status" and "signal"
14011 parameters. Adjust.
14012 (handle_status): New.
14013 (main): Delete local `status'. Adjust.
14014 * remote-utils.c: Include target.h.
14015 (prepare_resume_reply): Change prototype to take a
14016 target_waitstatus. Adjust.
14017
14018 * linux-low.c (linux_wait): Adjust to new target_ops->wait
14019 interface.
14020 * spu-low.c (spu_wait): Adjust.
14021 * win32-low.c (enum target_waitkind, struct target_waitstatus):
14022 Delete.
14023 (win32_wait): Adjust.
14024
14025 2009-04-01 Pedro Alves <pedro@codesourcery.com>
14026
14027 * target.h (struct thread_resume): Delete leave_stopped member.
14028 (struct target_ops): Add a `n' argument to the `resume' callback.
14029 * server.c (start_inferior): Adjust.
14030 (handle_v_cont, myresume): Adjust.
14031 * linux-low.c (check_removed_breakpoint): Adjust to resume
14032 interface change, and to removed leave_stopped field.
14033 (resume_ptr): Delete.
14034 (struct thread_resume_array): New.
14035 (linux_set_resume_request): Add new `arg' parameter. Adjust to
14036 resume interface change.
14037 (linux_continue_one_thread, linux_queue_one_thread)
14038 (resume_status_pending_p): Check if the resume field is NULL
14039 instead of checking the leave_stopped member.
14040 (linux_resume): Adjust to the target resume interface change.
14041 * spu-low.c (spu_resume): Adjust to the target resume interface
14042 change.
14043 * win32-low.c (win32_detach, win32_resume): Ditto.
14044
14045 2009-04-01 Pedro Alves <pedro@codesourcery.com>
14046
14047 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
14048 flag.
14049 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
14050 pending.
14051 (linux_continue_one_thread): Only preserve the stepping flag if
14052 there's a pending breakpoint.
14053
14054 2009-03-31 Pedro Alves <pedro@codesourcery.com>
14055
14056 * server.c (main): After the inferior having exited, call
14057 remote_close before exiting gdbserver.
14058
14059 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
14060
14061 Fix size of FPSCR in Power 7 processors.
14062 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
14063 (PPC_FEATURE_HAS_DFP): New #define.
14064 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
14065 size of the FPSCR.
14066
14067 2009-03-23 Pedro Alves <pedro@codesourcery.com>
14068
14069 * server.c (handle_query) Whitespace and formatting.
14070
14071 2009-03-22 Pedro Alves <pedro@codesourcery.com>
14072
14073 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
14074 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
14075 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
14076 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
14077 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
14078 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
14079 Makefile.in, configure.ac: Fix whitespace throughout.
14080 * configure: Regenerate.
14081
14082 2009-03-22 Pedro Alves <pedro@codesourcery.com>
14083
14084 * inferiors.c (find_inferior): Make it safe for the callback
14085 function to delete the currently iterated inferior.
14086
14087 2009-03-22 Pedro Alves <pedro@codesourcery.com>
14088
14089 * Makefile.in (linuw_low_h): Move higher.
14090 (thread-db.o): Depend on $(linux_low_h).
14091
14092 2009-03-17 Pedro Alves <pedro@codesourcery.com>
14093
14094 Rename "process" to "lwp" throughout.
14095
14096 * linux-low.c (all_processes): Rename to...
14097 (all_lwps): ... this.
14098 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
14099 (add_process): Rename to ...
14100 (add_lwp): ... this. Adjust.
14101 (linux_create_inferior): Adjust.
14102 (linux_attach_lwp): Adjust.
14103 (linux_attach): Adjust.
14104 (linux_kill_one_process): Rename to ...
14105 (linux_kill_one_lwp): ... this. Adjust.
14106 (linux_kill): Adjust.
14107 (linux_detach_one_process): Rename to ...
14108 (linux_detach_one_lwp): ... this. Adjust.
14109 (linux_detach): Adjust.
14110 (check_removed_breakpoint): Adjust.
14111 (status_pending_p): Adjust.
14112 (linux_wait_for_process): Rename to ...
14113 (linux_wait_for_lwp): ... this. Adjust.
14114 (linux_wait_for_event): Adjust.
14115 (send_sigstop): Adjust.
14116 (wait_for_sigstop): Adjust.
14117 (stop_all_processes): Rename to ...
14118 (stop_all_lwps): ... this.
14119 (linux_resume_one_process): Rename to ...
14120 (linux_resume_one_lwp): ... this. Adjust.
14121 (linux_set_resume_request, linux_continue_one_thread)
14122 (linux_queue_one_thread, resume_status_pending_p)
14123 (usr_store_inferior_registers, regsets_store_inferior_registers)
14124 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
14125 Adjust.
14126 * linux-low.h (get_process): Rename to ...
14127 (get_lwp): ... this. Adjust.
14128 (get_thread_process): Rename to ...
14129 (get_thread_lwp): ... this. Adjust.
14130 (get_process_thread): Rename to ...
14131 (get_lwp_thread): ... this. Adjust.
14132 (struct process_info): Rename to ...
14133 (struct lwp_info): ... this.
14134 (all_processes): Rename to ...
14135 (all_lwps): ... this.
14136 * proc-service.c (ps_lgetregs): Adjust.
14137 * thread-db.c (thread_db_create_event, find_one_thread)
14138 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
14139
14140 2009-03-14 Pedro Alves <pedro@codesourcery.com>
14141
14142 * server.c (handle_query): Handle "qAttached".
14143
14144 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
14145
14146 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
14147 GPLv3, update license URL.
14148
14149 2009-03-01 Doug Evans <dje@google.com>
14150
14151 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
14152 (server_h): Add gdb_signals.h.
14153 (signals.o): Update.
14154 * server.h (target_signal_from_host,target_signal_to_host_p)
14155 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
14156
14157 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
14158
14159 * remote-utils.c (getpkt): Also generate remote-debug
14160 information if noack_mode is set.
14161
14162 2009-02-06 Pedro Alves <pedro@codesourcery.com>
14163
14164 * server.c (handle_query): Report qXfer:siginfo:read and
14165 qXfer:siginfo:write as supported and handle them.
14166 * target.h (struct target_ops) <qxfer_siginfo>: New field.
14167 * linux-low.c (linux_xfer_siginfo): New.
14168 (linux_target_ops): Set it.
14169
14170 2009-01-26 Pedro Alves <pedro@codesourcery.com>
14171
14172 * server.c (gdbserver_usage): Mention --remote-debug.
14173 (main): Accept '--remote-debug' switch.
14174
14175 2009-01-18 Doug Evans <dje@google.com>
14176
14177 * regcache.c (new_register_cache): No need to check result of xcalloc.
14178 * server.c (handle_search_memory): Back out calls to xmalloc,
14179 result is checked and error is returned to user upon failure.
14180 (handle_query): Ditto. Add more checks for result of malloc.
14181 (handle_v_cont): Check result of malloc, report error back to
14182 user upon failure.
14183 (handle_v_run): Ditto. Call freeargv.
14184 * server.h (freeargv): Declare.
14185 * utils.c (freeargv): New fn.
14186
14187 2009-01-15 Doug Evans <dje@google.com>
14188
14189 * gdbreplay.c (perror_with_name): Make arg const char *.
14190 * server.h (target_signal_to_name): Make return type const char *.
14191 * thread-db.c (thread_db_err_str): Make return type const char *.
14192 * utils.c (perror_with_name): Make arg const char *.
14193
14194 2009-01-14 Pedro Alves <pedro@codesourcery.com>
14195
14196 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
14197 when handling a EXIT_PROCESS_DEBUG_EVENT.
14198
14199 2009-01-06 Joel Brobecker <brobecker@adacore.com>
14200
14201 * gdbreplay.c (gdbreplay_version): Update copyright year.
14202 * server.c (gdbserver_version): Likewise.
14203
14204 2009-01-05 Doug Evans <dje@google.com>
14205
14206 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
14207 (handle_extended_wait): Improve comment.
14208
14209 2008-12-13 Doug Evans <dje@google.com>
14210
14211 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
14212 * server.h (ATTR_MALLOC): New macro.
14213 (xmalloc,xcalloc,xstrdup): Declare.
14214 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
14215 * inferiors.c: Ditto.
14216 * linux-low.c: Ditto.
14217 * mem-break.c: Ditto.
14218 * regcache.c: Ditto.
14219 * remote-utils.c: Ditto.
14220 * server.c: Ditto.
14221 * target.c: Ditto.
14222 * win32-low.c: Ditto.
14223
14224 2008-12-12 Doug Evans <dje@google.com>
14225
14226 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
14227 in debugging printf.
14228
14229 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
14230
14231 2008-12-09 Doug Evans <dje@google.com>
14232
14233 * linux-low.h (struct process_info): Delete member tid, unused.
14234 * thread-db.c (find_one_thread): Update.
14235 (maybe_attach_thread): Update.
14236
14237 2008-12-02 Pedro Alves <pedro@codesourcery.com>
14238
14239 * target.h (struct target_ops): Add qxfer_osdata member.
14240 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
14241 and dirent.h.
14242 (linux_qxfer_osdata): New functions.
14243 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
14244 callback.
14245 * server.c (handle_query): Handle "qXfer:osdata:read:".
14246 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
14247 (buffer_xml_printf): New functions.
14248 * server.h (struct buffer): New.
14249 (buffer_grow_str, buffer_grow_str0): New macros.
14250 (buffer_grow, buffer_free, buffer_init, buffer_finish)
14251 (buffer_xml_printf): Declare.
14252
14253 2008-11-24 Doug Evans <dje@google.com>
14254
14255 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
14256
14257 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
14258
14259 * server.c (handle_v_run): Always use the supplied argument list.
14260
14261 2008-11-19 Bob Wilson <bob.wilson@acm.org>
14262
14263 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
14264 (xtensa_regmap_table): Add entry for scompare1.
14265
14266 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
14267
14268 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
14269 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
14270 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
14271 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
14272 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
14273 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
14274 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
14275 XML target descriptions.
14276 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
14277 when inferior is running on an ISA 2.05 or later processor. Add
14278 special case to return offset for full 64-bit slot of FPSCR when
14279 in 32-bits.
14280
14281 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
14282
14283 * Makefile.in (SFILES, clean): Added sparc64 files.
14284 (reg-sparc64.o, reg-sparc64.c): New.
14285 * configure.srv (sparc*-*-linux*): New configuration.
14286 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
14287 syscall arguments for SPARC.
14288 (regsets_store_inferior_registers): Likewise.
14289 * linux-sparc-low.c: New file.
14290
14291 2008-10-21 Doug Evans <dje@google.com>
14292
14293 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
14294 (READLINE_DIR,READLINE_DEP): Delete.
14295 (INTERNAL_CFLAGS): Update.
14296 (LINTFLAGS): Update.
14297
14298 2008-10-10 Pedro Alves <pedro@codesourcery.com>
14299
14300 * server.c (handle_v_run): If GDB didn't specify an argv, use the
14301 whole argv from the last run, not just argv[0].
14302
14303 2008-09-08 Pedro Alves <pedro@codesourcery.com>
14304
14305 * regcache.c (new_register_cache): Return NULL if the register
14306 cache size isn't known yet.
14307 (free_register_cache): Avoid dereferencing a NULL regcache.
14308
14309 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
14310
14311 * configure.srv: Merge MIPS and MIPS64.
14312
14313 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
14314
14315 * Makefile.in (uninstall): Apply $(EXEEXT) too.
14316
14317 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
14318
14319 * Makefile.in: Add required vsx dependencies.
14320
14321 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
14322 Declare init_registers_powerpc_vsx32l.
14323 Declare init_registers_powerpc_vsx64l.
14324 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
14325 (ppc_arch_setup): Check for VSX in hwcap.
14326 (ppc_fill_vsxregset): New function.
14327 (ppc_store_vsxregset): New function.
14328 Add new VSX entry in regset_info target_regsets.
14329
14330 * configure.srv: Add new VSX dependencies.
14331
14332 2008-08-12 Pedro Alves <pedro@codesourcery.com>
14333
14334 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
14335 (remote_open): Set or clear transport_is_reliable.
14336 (putpkt_binary): Don't expect acks in noack mode.
14337 (getpkt): Don't send ack/nac in noack mode.
14338 * server.c (handle_general_set): Handle QStartNoAckMode.
14339 (handle_query): If connected by tcp pass QStartNoAckMode+ in
14340 qSupported.
14341 (main): Reset noack_mode on every connection.
14342 * server.h (noack_mode): Declare.
14343
14344 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14345
14346 * Makefile.in (GDBREPLAY_OBS): New variable.
14347 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
14348
14349 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
14350 Daniel Jacobowitz <dan@codesourcery.com>
14351
14352 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
14353 (usr_store_inferior_registers): Likewise.
14354 (regsets_store_inferior_registers): Likewise.
14355
14356 2008-07-31 Rolf Jansen <rj@surtec.com>
14357 Pedro Alves <pedro@codesourcery.com>
14358
14359 * configure.ac: Check for memmem declaration.
14360 * server.c [HAVE_MALLOC_H]: Include malloc.h.
14361 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
14362 (disable_packet_qfThreadInfo): Unconditionally compile.
14363 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
14364 * configure, config.in: Regenerate.
14365
14366 2008-07-28 Doug Kwan <dougkwan@google.com>
14367
14368 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
14369 (linux_write_memory): Remove declaration of errno.
14370
14371 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
14372
14373 * linux-low.c (handle_extended_wait): Do not use "status"
14374 variable uninitialized.
14375
14376 2008-07-07 Pedro Alves <pedro@codesourcery.com>
14377
14378 * server.c (handle_v_attach): Inhibit reporting dll changes.
14379
14380 2008-06-27 Pedro Alves <pedro@codesourcery.com>
14381
14382 * remote-utils.c (prepare_resume_reply): If requested, don't
14383 output "thread:TID" in the T stop reply.
14384
14385 * server.c (disable_packet_vCont, disable_packet_Tthread)
14386 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
14387 (handle_query): If requested, disable support for qC, qfThreadInfo
14388 and qsThreadInfo.
14389 (handle_v_requests): If requested, disable support for vCont.
14390 (gdbserver_show_disableable): New.
14391 (main): Handle --disable-packet and --disable-packet=LIST.
14392
14393 * server.h (disable_packet_vCont, disable_packet_Tthread)
14394 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
14395
14396 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
14397
14398 * server.c (gdbserver_usage): Mention --version.
14399
14400 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
14401
14402 * Makefile.in (gdbreplay.o): New rule.
14403
14404 2008-06-06 Joseph Myers <joseph@codesourcery.com>
14405
14406 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
14407 message, not gdbserver.
14408
14409 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
14410 Nathan Sidwell <nathan@codesourcery.com>
14411 Joseph Myers <joseph@codesourcery.com>
14412
14413 * acinclude.m4: Include ../../config/acx.m4.
14414 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
14415 * configure, config.in: Regenerate.
14416 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
14417 * server.c (gdbserver_version): Print PKGVERSION.
14418 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
14419 (main): Adjust gdbserver_usage calls.
14420 * gdbreplay.c (version, host_name): Add declarations.
14421 (gdbreplay_version, gdbreplay_usage): New.
14422 (main): Accept --version and --help options.
14423
14424 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
14425
14426 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
14427 (arm_breakpoint_at): Handle Thumb.
14428 (the_low_target): Add comment.
14429
14430 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
14431
14432 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
14433
14434 2008-05-09 Doug Evans <dje@google.com>
14435
14436 * server.h (decode_search_memory_packet): Declare.
14437 * remote-utils.c (decode_search_memory_packet): New fn.
14438 * server.c (handle_search_memory_1): New fn.
14439 (handle_search_memory): New fn.
14440 (handle_query): Process qSearch:memory packets.
14441
14442 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
14443
14444 * regcache.c (registers_length): Remove.
14445 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
14446 full register packet.
14447 * regcache.h (registers_length): Remove prototype.
14448 * server.h (PBUFSIZ): Define to 16384.
14449
14450 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
14451
14452 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
14453 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
14454 powerpc-64l.o, and powerpc-altivec64l.o.
14455 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
14456 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
14457 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
14458 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
14459 rs6000/power-linux.xml, and rs6000/power64-linux.xml
14460 to srv_xmlfiles.
14461
14462 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
14463 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
14464 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
14465 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
14466 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
14467 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
14468 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
14469 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
14470 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
14471 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
14472 (clean): Update.
14473
14474 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
14475 (init_registers_powerpc_32l): ... this new prototype.
14476 (init_registers_powerpc_32): Remove, replace by ...
14477 (init_registers_powerpc_altivec32l): ... this new prototype.
14478 (init_registers_powerpc_e500): Remove, replace by ...
14479 (init_registers_powerpc_e500l): ... this new prototype.
14480 (init_registers_ppc64): Remove, replace by ...
14481 (init_registers_powerpc_64l): ... this new prototype.
14482 (init_registers_powerpc_64): Remove, replace by ...
14483 (init_registers_powerpc_altivec64l): ... this new prototype.
14484 (ppc_num_regs): Set to 73.
14485 (PT_ORIG_R3, PT_TRAP): Define if necessary.
14486 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
14487 (ppc_cannot_store_register): Handle orig_r3 and trap.
14488 (ppc_arch_setup): Update init_registers_... calls.
14489 (ppc_fill_gregset): Handle orig_r3 and trap.
14490
14491 * inferiors.c (clear_inferiors): Reset current_inferior.
14492
14493 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
14494
14495 * acinclude.m4: Add override.m4.
14496 * configure: Regenerate.
14497
14498 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
14499
14500 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
14501 initial call to init_register_ppc64.
14502
14503 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
14504
14505 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
14506 single powerpc*-*-linux* case.
14507 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
14508
14509 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
14510
14511 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
14512 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
14513 from reg_xmlfiles.
14514 * linux-ppc-low.c: Include <elf.h>.
14515 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
14516 (ppc_hwcap): New global variable.
14517 (ppc_regmap): Remove __SPE__ #ifdef sections.
14518 (ppc_regmap_e500): New global variable.
14519 (ppc_cannot_store_register): Update __SPE__ special case.
14520 (ppc_get_hwcap): New function.
14521 (ppc_arch_setup): Use it to determine whether inferior supports
14522 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
14523 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
14524 Do not access registers if target does not support AltiVec.
14525 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
14526 Do not access registers if target does not support SPE.
14527 (target_regsets): Unconditionally include AltiVec and SPE regsets.
14528
14529 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
14530
14531 * linux-low.c (disabled_regsets, num_regsets): New.
14532 (use_regsets_p): Delete.
14533 (linux_wait_for_process): Clear disabled_regsets.
14534 (regsets_fetch_inferior_registers): Check and set it.
14535 (regsets_store_inferior_registers): Likewise.
14536 (linux_fetch_registers, linux_store_registers): Do not use
14537 use_regsets_p.
14538 (initialize_low): Allocate disabled_regsets.
14539
14540 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
14541
14542 * Makefile.in (LIBOBJS): New.
14543 (OBS): Use LIBOBJS.
14544 (memmem.o): New rule.
14545 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
14546 * configure: Regenerated.
14547
14548 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
14549
14550 * server.c (handle_query): Never return "unsupported" for
14551 qXfer:features:read queries.
14552
14553 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
14554
14555 * server.c (get_features_xml): Fix inverted condition.
14556 (handle_query): Always support qXfer:feature:read.
14557
14558 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
14559
14560 * server.c (wrapper_argv): New.
14561 (start_inferior): Handle wrapper_argv. If set, expect an extra
14562 trap.
14563 (gdbserver_usage): Document --wrapper.
14564 (main): Parse --wrapper.
14565
14566 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
14567
14568 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
14569 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
14570 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
14571 (ppc_set_pc): Likewise.
14572 (ppc_arch_setup): New function.
14573 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
14574 of collect_register.
14575 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
14576
14577 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
14578
14579 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
14580 instead of linux-ppc64-low.o.
14581 * linux-ppc64-low.c: Remove file.
14582 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
14583 (linux-ppc64-low.o): Remove rule.
14584
14585 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
14586 (init_registers_powerpc_64): Likewise.
14587 (ppc_regmap): Conditionally define depending on __powerpc64__.
14588 (ppc_cannot_store_register): Do not special-case "fpscr" when
14589 compiled on __powerpc64__.
14590 (ppc_collect_ptrace_register): New function.
14591 (ppc_supply_ptrace_register): New function.
14592 (ppc_breakpoint): Change type to "unsigned int".
14593 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
14594 (the_low_target): Conditionally provide initializers for the
14595 arch_setup member depending on __powerpc64__. Install
14596 collect_ptrace_register and supply_ptrace_register members.
14597
14598 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
14599
14600 * regcache.h (gdbserver_xmltarget): Add extern declaration.
14601 * server.c (gdbserver_xmltarget): Define.
14602 (get_features_xml): Use it to replace "target.xml" and arch_string.
14603
14604 * configure.srv: Remove srv_xmltarget. Add XML files that were
14605 mentioned there to srv_xmlfiles instead. Remove conditional tests
14606 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
14607 srv_xmlfiles and srv_regobj to include all possible choices.
14608 * configure.ac (srv_xmltarget): Remove.
14609 (srv_xmlfiles): Do not add "target.xml".
14610 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
14611 checks for supplementary target information.
14612 * configure: Regenerate.
14613 * Makefile.in (XML_TARGET): Remove.
14614 (target.xml): Remove rule.
14615 (clean): Do not clean up target.xml.
14616 (.PRECIOUS): Do not mention target.xml.
14617
14618 * target.h (struct target_ops): Remove arch_string member.
14619 * linux-low.c (linux_arch_string): Remove.
14620 (linux_target_ops): Remove arch_string initializer.
14621 * linux-low.h (struct linux_target_ops): Remove arch_string member.
14622 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
14623 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
14624 * spu-low.c (spu_arch_string): Remove.
14625 (spu_target_ops): Remove arch_string initializer.
14626 * win32-low.c (win32_arch_string): Remove.
14627 (win32_target_ops): Remove arch_string initializer.
14628 * win32-low.h (struct win32_target_ops): Remove arch_string member.
14629 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
14630 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
14631
14632 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
14633
14634 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
14635 by collect_ptrace_register and supply_ptrace_register hooks.
14636 * linux-low.c (fetch_register): Use supply_ptrace_register callback
14637 instead of checking for the_low_target.left_pad_xfer.
14638 (usr_store_inferior_registers): Use collect_ptrace_register callback
14639 instead of checking for the_low_target.left_pad_xfer.
14640
14641 * linux-s390-low.c (s390_collect_ptrace_register): New function.
14642 (s390_supply_ptrace_register): Likewise.
14643 (s390_fill_gregset): Call s390_collect_ptrace_register.
14644 (the_low_target): Update.
14645
14646 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
14647 (ppc_supply_ptrace_register): Likewise.
14648 (the_low_target): Update.
14649
14650 * linux-i386-low.c (the_low_target): Update.
14651 * linux-x86-64-low.c (the_low_target): Update.
14652
14653 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
14654
14655 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
14656 reg-s390.o and reg-s390x.o.
14657
14658 * linux-low.c (new_inferior): New global variable.
14659 (linux_create_inferior, linux_attach): Set it.
14660 (linux_wait_for_process): Call the_low_target.arch_setup after the
14661 target has stopped for the first time.
14662 (initialize_low): Do not call the_low_target.arch_setup.
14663
14664 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
14665 (s390_set_pc): Likewise.
14666 (s390_arch_setup): New function.
14667 (the_low_target): Use s390_arch_setup as arch_setup routine.
14668
14669 * regcache.c (realloc_register_cache): New function.
14670 (set_register_cache): Call it for each existing regcache.
14671
14672 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
14673
14674 * server.h (init_registers): Remove prototype.
14675
14676 * linux-low.h (struct linux_target_ops): Add arch_setup field.
14677 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
14678 instead of init_registers ().
14679 * linux-arm-low.c (init_registers_arm): Add prototype.
14680 (init_registers_arm_with_iwmmxt): Likewise.
14681 (the_low_target): Add initializer for arch_setup field.
14682 * linux-cris-low.c (init_registers_cris): Add prototype.
14683 (the_low_target): Add initializer for arch_setup field.
14684 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
14685 (the_low_target): Add initializer for arch_setup field.
14686 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
14687 (the_low_target): Add initializer for arch_setup field.
14688 * linux-ia64-low.c (init_registers_ia64): Add prototype.
14689 (the_low_target): Add initializer for arch_setup field.
14690 * linux-m32r-low.c (init_registers_m32r): Add prototype.
14691 (the_low_target): Add initializer for arch_setup field.
14692 * linux-m68k-low.c (init_registers_m68k): Add prototype.
14693 (the_low_target): Add initializer for arch_setup field.
14694 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
14695 (init_registers_mips64_linux): Likewise.
14696 (the_low_target): Add initializer for arch_setup field.
14697 * linux-ppc-low.c (init_registers_ppc): Add prototype.
14698 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
14699 (the_low_target): Add initializer for arch_setup field.
14700 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
14701 (init_registers_powerpc_64): Likewise.
14702 (the_low_target): Add initializer for arch_setup field.
14703 * linux-s390-low.c (init_registers_s390): Add prototype.
14704 (init_registers_s390x): Likewise.
14705 (the_low_target): Add initializer for arch_setup field.
14706 * linux-sh-low.c (init_registers_sh): Add prototype.
14707 (the_low_target): Add initializer for arch_setup field.
14708 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
14709 (the_low_target): Add initializer for arch_setup field.
14710 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
14711 (the_low_target): Add initializer for arch_setup field.
14712
14713 * win32-low.h (struct win32_target_ops): Add arch_setup field.
14714 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
14715 instead of init_registers ().
14716 * win32-arm-low.c (init_registers_arm): Add prototype.
14717 (the_low_target): Add initializer for arch_setup field.
14718 * win32-i386-low.c (init_registers_i386): Add prototype.
14719 (the_low_target): Add initializer for arch_setup field.
14720
14721 * spu-low.c (init_registers_spu): Add prototype.
14722 (initialize_low): Call initialie_registers_spu () instead of
14723 initialize_registers ().
14724
14725 2008-02-19 Pedro Alves <pedro@codesourcery.com>
14726
14727 * server.c (handle_v_requests): When handling the vRun and vAttach
14728 packets, if already debugging a process, don't kill it. Return an
14729 error instead.
14730
14731 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
14732
14733 * server.c (handle_query): Correct length check.
14734
14735 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
14736
14737 * win32-low.c (do_initial_child_stuff): Add process handle
14738 parameter. Set current_process_handle and current_process_id from the
14739 parameters. Clear globals.
14740 (win32_create_inferior): Don't set current_process_handle and
14741 current_process_id here. Instead pass them on the call to
14742 do_initial_child_stuff.
14743 (win32_attach): Likewise.
14744 (win32_clear_inferiors): New.
14745 (win32_kill): Don't close the current process handle or the
14746 current thread handle here. Instead call win32_clear_inferiors.
14747 (win32_detach): Don't open a new handle to the process. Call
14748 win32_clear_inferiors.
14749 (win32_join): Don't rely on current_process_handle; open a new
14750 handle using the process id.
14751 (win32_wait): Call win32_clear_inferiors when the inferior process
14752 has exited.
14753
14754 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
14755
14756 * server.c (monitor_show_help): Add "exit".
14757
14758 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
14759
14760 * Makefile.in (SFILES): Add linux-xtensa-low.c.
14761 (clean): Add reg-xtensa.c.
14762 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
14763 * configure.srv (xtensa*-*-linux*) New target.
14764 * linux-xtensa-low.c: New.
14765 * xtensa-xtregs.c: New.
14766
14767 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
14768
14769 * hostio.c: Don't include errno.h.
14770 (errno_to_fileio_errno): Move to hostio-errno.
14771 * hostio.c: (hostio_error): Remove the error parameter. Defer the
14772 error number outputting to the target->hostio_last_error callback.
14773 (hostio_packet_error): Use FILEIO_EINVAL directly.
14774 (handle_open, handle_pread, hostio_error, handle_unlink): Update
14775 calls to hostio_error.
14776 * hostio-errno.c: New.
14777 * server.h (hostio_last_error_from_errno): Declare.
14778 * target.h (target_ops): Add hostio_last_error member.
14779 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
14780 as hostio_last_error handler.
14781 * spu-low.c (spu_target_ops): Likewise.
14782 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
14783 (wince_hostio_last_error): New functions.
14784 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
14785 as hostio_last_error handler.
14786 (win32_target_ops) [!_WIN32_WCE]: Register
14787 hostio_last_error_from_errno as hostio_last_error handler.
14788 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
14789 (hostio-errno.o): New rule.
14790 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
14791 * configure.srv (srv_hostio_err_objs): New variable. Default to
14792 hostio-errno.o.
14793 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
14794 * configure: Regenerate.
14795
14796 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
14797
14798 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
14799 (linux_kill, linux_detach): Clean up the process list.
14800 * remote-utils.c (remote_open): Improve port number parsing.
14801 (putpkt_binary, input_interrupt): Only send interrupts if the target
14802 is running.
14803 * server.c (extended_protocol): Make static.
14804 (attached): Define earlier.
14805 (exit_requested, response_needed, program_argv): New variables.
14806 (target_running): New.
14807 (start_inferior): Clear attached here.
14808 (attach_inferior): Set attached here.
14809 (require_running): Define.
14810 (handle_query): Use require_running and target_running. Implement
14811 "monitor exit".
14812 (handle_v_attach, handle_v_run): New.
14813 (handle_v_requests): Use require_running. Handle vAttach and vRun.
14814 (gdbserver_usage): Update.
14815 (main): Redo argument parsing. Handle --debug and --multi. Handle
14816 --attach along with other options or after the port. Save
14817 program_argv. Support no initial program. Resynchronize
14818 communication with GDB after an error. Handle "monitor exit".
14819 Use require_running and target_running. Always allow the extended
14820 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
14821 restart in extended mode.
14822 * README: Refer to the GDB manual. Update --attach usage.
14823
14824 2007-12-20 Andreas Schwab <schwab@suse.de>
14825
14826 * linux-low.c (STACK_SIZE): Define.
14827 (linux_tracefork_child): Use it. Use __clone2 on ia64.
14828 (linux_test_for_tracefork): Likewise.
14829
14830 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
14831
14832 * linux-low.c (linux_wait_for_event): Update messages. Do not
14833 reinsert auto-delete breakpoints.
14834 * mem-break.c (struct breakpoint): Change return type of handler to
14835 int.
14836 (set_breakpoint_at): Update handler type.
14837 (reinsert_breakpoint_handler): Return 1 instead of calling
14838 delete_breakpoint.
14839 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
14840 setting a new one.
14841 (check_breakpoints): Delete auto-delete breakpoints and return 2.
14842 * mem-break.h (set_breakpoint_at): Update handler type.
14843 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
14844 * win32-low.c (auto_delete_breakpoint): New.
14845 (get_child_debug_event): Use it.
14846
14847 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
14848
14849 * configure.ac: Check for pread and pwrite.
14850 * hostio.c (handle_pread): Fall back to lseek and read.
14851 (handle_pwrite): Fall back to lseek and write.
14852 * config.in, configure: Regenerated.
14853
14854 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
14855
14856 * server.c (myresume): Add own_buf argument.
14857 (main): Update calls.
14858
14859 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
14860
14861 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
14862 * remote-utils.c (remote_open): Do not call disable_async_io.
14863 (block_async_io): Delete.
14864 (unblock_async_io): Make static.
14865 (initialize_async_io): New.
14866 * server.c (handle_v_cont): Handle async I/O here.
14867 (myresume): Likewise. Move other common resume tasks here...
14868 (main): ... from here. Call initialize_async_io. Disable async
14869 I/O before the main loop.
14870 * server.h (initialize_async_io): Declare.
14871 (block_async_io, unblock_async_io): Delete prototypes.
14872 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
14873
14874 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
14875
14876 * remote-utils.c (readchar): Allow binary data in received messages.
14877
14878 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
14879
14880 * win32-low.c (attaching): New global.
14881 (win32_create_inferior): Clear the `attaching' global.
14882 (win32_attach): Set the `attaching' global.
14883 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
14884 attaching. Only set a breakpoint at the entry point if not
14885 attaching.
14886
14887 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
14888
14889 * server.c (main): Don't report dll events on the initial
14890 connection on attaches.
14891
14892 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
14893
14894 * server.c (main): Relax numerical bases supported for the pid of
14895 the --attach command line argument.
14896
14897 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
14898
14899 * win32-low.c (win32_attach): Call OpenProcess before
14900 DebugActiveProcess, not after. Add last error output to error
14901 call.
14902
14903 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
14904
14905 * win32-low.c (win32_get_thread_context)
14906 (win32_set_thread_context): New functions.
14907 (thread_rec): Use win32_get_thread_context.
14908 (continue_one_thread, win32_resume): Use win32_set_thread_context.
14909 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
14910 field.
14911
14912 2007-12-03 Leo Zayas
14913 Pedro Alves <pedro_alves@portugalmail.pt>
14914
14915 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
14916 global variables.
14917 (child_add_thread): Minor cleanup.
14918 (child_continue): Resume artificially suspended threads before
14919 calling ContinueDebugEvent.
14920 (suspend_one_thread): New.
14921 (fake_breakpoint_event): New.
14922 (get_child_debug_event): Change return type to int. Check here if
14923 gdb sent an interrupt request. If a soft interrupt was requested,
14924 fake a breakpoint event. Return 0 if there is no event to handle,
14925 and 1 otherwise.
14926 (win32_wait): Don't check here if gdb sent an interrupt request.
14927 Ensure there is a valid event to handle.
14928 (win32_request_interrupt): Add soft interruption method as last
14929 resort.
14930
14931 2007-12-03 Leo Zayas
14932 Pedro Alves <pedro_alves@portugalmail.pt>
14933
14934 * win32-low.h (win32_thread_info): Add descriptions to the
14935 structure members. Replace `suspend_count' counter by a
14936 `suspended' flag.
14937 * win32-low.c (thread_rec): Update condition of when to get the
14938 context from the inferior. Rely on ContextFlags being set if it
14939 has already been retrieved. Only suspend the inferior thread if
14940 we haven't already. Warn if that fails.
14941 (continue_one_thread): s/suspend_count/suspended/. Only call
14942 ResumeThread once. Warn if that fails.
14943
14944 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
14945
14946 * win32-low.c (win32_wait): Don't read from the inferior when it
14947 has already exited.
14948
14949 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
14950
14951 * Makefile.in (win32_low_h): New variable.
14952 (win32-low.o): Add dependency on $(win32_low_h).
14953 (win32-arm-low.o, win32-i386-low.o): New rules.
14954
14955 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
14956
14957 * hostio.c: Correct copyright year.
14958
14959 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
14960
14961 * Makefile.in (OBS): Add hostio.o.
14962 (hostio.o): New rule.
14963 * server.h (handle_vFile): Declare.
14964 * hostio.c: New file.
14965 * server.c (handle_v_requests): Take packet_len and new_packet_len
14966 for binary packets. Call handle_vFile.
14967 (main): Update call to handle_v_requests.
14968
14969 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
14970
14971 * linux-low.c: Include <sched.h>.
14972
14973 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
14974
14975 * linux-low.c (linux_tracefork_grandchild): New.
14976 (linux_tracefork_child): Use clone.
14977 (linux_test_for_tracefork): Use clone; allocate and free a stack.
14978
14979 2007-10-31 Joel Brobecker <brobecker@adacore.com>
14980
14981 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
14982
14983 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
14984
14985 * linux-low.c (handle_extended_wait): Handle unexpected signals.
14986
14987 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
14988
14989 * inferiors.c (change_inferior_id): Delete.
14990 (add_pid_to_list, pull_pid_from_list): New.
14991 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
14992 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
14993 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
14994 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
14995 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
14996 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
14997 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
14998 (using_threads): Always set to 1.
14999 (handle_extended_wait): New.
15000 (add_process): Do not set TID.
15001 (linux_create_inferior): Set must_set_ptrace_flags.
15002 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
15003 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
15004 (linux_thread_alive): Rename TID argument to LWPID.
15005 (linux_wait_for_process): Handle unknown processes. Do not use TID.
15006 (linux_wait_for_event): Do not use TID or check using_threads. Update
15007 call to dead_thread_notify. Call handle_extended_wait.
15008 (linux_create_inferior): Use PTRACE_SETOPTIONS.
15009 (send_sigstop): Delete sigstop_sent.
15010 (wait_for_sigstop): Avoid TID.
15011 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
15012 (linux_test_for_tracefork): New.
15013 (linux_lookup_signals): Use thread_db_active and
15014 linux_supports_tracefork_flag.
15015 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
15016 * linux-low.h (get_process_thread): Avoid TID.
15017 (struct process_ifo): Move thread_known and tid to the end. Remove
15018 sigstop_sent.
15019 (linux_attach_lwp, thread_db_init): Update prototypes.
15020 * server.h (change_inferior_id): Delete prototype.
15021 (add_pid_to_list, pull_pid_from_list): New prototypes.
15022 * thread-db.c (thread_db_use_events): New.
15023 (find_first_thread): Rename to...
15024 (find_one_thread): ...this. Update callers and messages. Do not
15025 call fatal. Check thread_db_use_events. Do not call
15026 change_inferior_id or new_thread_notify.
15027 (maybe_attach_thread): Update. Do not call new_thread_notify.
15028 (thread_db_init): Set thread_db_use_events. Check use_events.
15029 * utils.c (fatal, warning): Correct message prefix.
15030
15031 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
15032
15033 * Makefile.in (clean): Remove new files.
15034 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
15035 (powerpc-64.o, powerpc-64.c): New rules.
15036 * configure.srv: Use alternate register sets for powerpc64-*-linux*
15037 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
15038 with SPE.
15039 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
15040 SPE targets.
15041 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
15042 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
15043 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
15044 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
15045 (target_regsets): Add AltiVec and SPE register sets.
15046 * configure.ac: Check for AltiVec and SPE.
15047 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
15048 (ppc_fill_vrregset, ppc_store_vrregset): New.
15049 (target_regsets): Add AltiVec register set.
15050 * configure: Regenerated.
15051
15052 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
15053
15054 * linux-low.c (O_LARGEFILE): Define.
15055 (linux_read_memory): Use /proc/PID/mem.
15056 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
15057 * configure, config.in: Regenerated.
15058
15059 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
15060
15061 * linux-low.c (linux_wait_for_event): Do not pass signals while
15062 single-stepping.
15063
15064 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
15065
15066 * win32-low.c (create_process): New.
15067 (win32_create_inferior): Use create_process instead of
15068 CreateProcess. If create_process failed retry appending an ".exe"
15069 suffix. Store the GetLastError result immediatelly after
15070 create_process calls and use it on the call to error.
15071
15072 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
15073
15074 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
15075
15076 2007-08-23 Joel Brobecker <brobecker@adacore.com>
15077
15078 * configure.ac: Switch license to GPLv3.
15079
15080 2007-08-01 Michael Snyder <msnyder@access-company.com>
15081
15082 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
15083
15084 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
15085
15086 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
15087 typedef.
15088 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
15089 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
15090 CloseToolhelp32Snapshot.
15091 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
15092 CloseToolhelp32Snapshot.
15093
15094 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
15095
15096 * server.c (main): Check for inferior exit before main loop.
15097
15098 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
15099
15100 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
15101 instead of on tmp_desc.
15102
15103 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
15104 Daniel Jacobowitz <dan@codesourcery.com>
15105
15106 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
15107 (add_thread): Minor cleanups.
15108 (clear_inferiors): Move lower in the file. Clear the DLL
15109 list.
15110 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
15111 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
15112 (xml_escape_text): New.
15113 * server.c (handle_query): Handle qXfer:libraries:read. Report it
15114 for qSupported.
15115 (handle_v_cont): Report errors.
15116 (gdbserver_version): Update.
15117 (main): Correct size of own_buf. Do not report initial DLL events.
15118 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
15119 (unloaded_dll, xml_escape_text): New.
15120 * win32-low.c (enum target_waitkind): Update comments.
15121 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
15122 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
15123 (win32_EnumProcessModules, win32_GetModuleInformation)
15124 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
15125 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
15126 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
15127 (win32_Module32First, win32_Module32Next, load_toolhelp)
15128 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
15129 (get_child_debug_event): Handle DLL events.
15130 (win32_wait): Likewise.
15131
15132 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
15133
15134 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
15135 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
15136
15137 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
15138
15139 * win32-low.c (handle_output_debug_string): Ignore event if not
15140 waiting.
15141
15142 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
15143
15144 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
15145
15146 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
15147
15148 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
15149
15150 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
15151
15152 * inferiors.c (change_inferior_id): Add comment.
15153 * linux-low.c (check_removed_breakpoint): Add an early
15154 prototype. Improve debug output.
15155 (linux_attach): Doc update.
15156 (linux_detach_one_process, linux_detach): Clean up before releasing
15157 each process.
15158 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
15159 * linux-low.h (struct process_info): Doc improvement.
15160 * mem-break.c (delete_all_breakpoints): New.
15161 * mem-break.h (delete_all_breakpoints): New prototype.
15162 * thread-db.c (find_first_thread): New.
15163 (thread_db_create_event): Call it instead of
15164 thread_db_find_new_threads. Clean up unused variables.
15165 (maybe_attach_thread): Remove first thread handling.
15166 (thread_db_find_new_threads): Use find_first_thread.
15167 (thread_db_get_tls_address): Likewise.
15168
15169 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
15170
15171 * thread-db.c (thread_db_find_new_threads): Add prototype.
15172 (thread_db_create_event): Check for the main thread before adding
15173 a new thread.
15174 (maybe_attach_thread): Only enable event reporting if TID == 0.
15175 (thread_db_get_tls_address): Check for new threads.
15176
15177 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
15178
15179 * linux-low.c (linux_create_inferior): Try execv before execvp.
15180 * spu-low.c (spu_create_inferior): Likewise.
15181
15182 2007-06-13 Mike Frysinger <vapier@gentoo.org>
15183
15184 * linux-low.c (linux_create_inferior): Change execv to execvp.
15185 * spu-low.c (spu_create_inferior): Likewies.
15186
15187 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
15188
15189 * Makefile.in (clean): Clean new files instead of deleted ones.
15190 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
15191 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
15192 rules.
15193 * configure.srv: Specify XML files and new regformats for MIPS and
15194 MIPS64 GNU/Linux.
15195 * linux-mips-low.c (mips_num_regs): Set to only used registers.
15196 (mips_regmap): Do not fetch $0. Remove unused registers. Add
15197 an entry for the restart register.
15198 (mips_cannot_fetch_register, mips_cannot_store_register)
15199 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
15200 register names to match the XML descriptions.
15201 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
15202 restart register instead of $0.
15203
15204 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
15205 Markus Deuling <deuling@de.ibm.com>
15206
15207 * remote-utils.c (decode_xfer_write): New function.
15208 * server.h (decode_xfer_write): Add prototype.
15209 * server.c (handle_query): Add PACKET_LEN argument. Support
15210 qXfer:spu:read and qXfer:spu:write packets.
15211 (main): Pass packet_len to handle_query.
15212 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
15213 * target.h (target_ops): Add qxfer_spu.
15214
15215 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
15216
15217 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
15218 accessing non-seekable spufs files.
15219
15220 2007-05-16 Markus Deuling <deuling@de.ibm.com>
15221
15222 * server.c (handle_query): Add reply for qC packet.
15223
15224 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15225 Leo Zayas <lerele@champenstudios@com>
15226
15227 * server.h (check_remote_input_interrupt_request): New function.
15228 * remote_utils.c (INVALID_DESCRIPTOR): New define.
15229 (remote_desc): Initialize with INVALID_DESCRIPTOR.
15230 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
15231 (check_remote_input_interrupt_request): New function.
15232 * server.h (check_remote_input_interrupt_request): Declare.
15233 * win32-low.c (winapi_DebugBreakProcess,
15234 winapi_GenerateConsoleCtrlEvent): New typedefs.
15235 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
15236 to 250 ms.
15237 (win32_wait): Check for remote interrupt request
15238 with check_remote_input_interrupt_request.
15239 (win32_request_interrupt): New function.
15240 (win32_target_op): Set request_interrupt to win32_request_interrupt.
15241
15242 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15243
15244 * win32-low.c (debug_registers_changed,
15245 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
15246 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
15247 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
15248 (thread_rec): Get context using the low target.
15249 (child_add_thread): Call thread_added on the low target,
15250 which does the same thing.
15251 (regptr): Delete.
15252 (do_initial_child_stuff): Remove debug registers references.
15253 Set context using the low target. Resume threads after
15254 setting the contexts.
15255 (child_continue): Remove dead variable. Remove debug
15256 registers references.
15257 (child_fetch_inferior_registers): Go through the low target.
15258 (do_child_store_inferior_registers): Remove.
15259 (child_store_inferior_registers): Go through the low target.
15260 (win32_resume): Remove debug registers references.
15261 Set context using the low target.
15262 (handle_exception): Change return type to void. Don't record
15263 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
15264 first chance exception.
15265 (get_child_debug_event): Change return type to void. Remove
15266 goto loop. Always return after waiting for debug event.
15267 (win32_wait): Convert to switch statement. Handle spurious
15268 events.
15269
15270 * win32-i386-low.c (debug_registers_changed,
15271 debug_registers_used): New.
15272 (initial_stuff): Rename to ...
15273 (i386_initial_stuff): ... this. Clear debug registers
15274 state variables.
15275 (store_debug_registers): Delete.
15276 (i386_get_thread_context): New.
15277 (load_debug_registers): Delete.
15278 (i386_set_thread_context): New.
15279 (i386_thread_added): New.
15280 (single_step): Rename to ...
15281 (i386_single_step): ... this.
15282 (do_fetch_inferior_registers): Rename to ...
15283 (i386_fetch_inferior_register): ... this.
15284 (i386_store_inferior_register): New.
15285 (the_low_target): Adapt to new interface.
15286
15287 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
15288 (arm_get_thread_context): New.
15289 (arm_set_thread_context): New.
15290 (regptr): New.
15291 (do_fetch_inferior_registers): Rename to ...
15292 (arm_fetch_inferior_register): ... this.
15293 (arm_store_inferior_register): New.
15294 (arm_wince_breakpoint): Reimplement as unsigned long.
15295 (arm_wince_breakpoint_len): Define.
15296 (the_low_target): Adapt to new interface.
15297
15298 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
15299 load_debug_registers. Add get_thread_context, set_thread_context,
15300 thread_added and store_inferior_register. Rename
15301 fetch_inferior_registers to fetch_inferior_register.
15302 (regptr): Remove declaration.
15303
15304 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15305
15306 * linux-low.c (linux_detach): Change return type to int. Return 0.
15307 * spu-low.c (spu_detach): Likewise.
15308
15309 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15310
15311 * target.h (target_ops): Change return type of detach to int.
15312 Add join.
15313 (join_inferior): New.
15314 * server.c (main): Don't skip detach support on mingw32.
15315 If the inferior doesn't support detaching return error.
15316 Call join_inferior instead of using waitpid.
15317 * linux-low.c (linux_join): New.
15318 (linux_target_op): Add linux_join.
15319 * spu-low.c (spu_join): New.
15320 (spu_target_ops): Add spu_join.
15321 * win32-low.c (win32_detach): Adapt to new interface.
15322 Reopen current_process_handle before detaching. Issue a child
15323 resume before detaching.
15324 (win32_join): New.
15325 (win32_target_op): Add win32_join.
15326
15327 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15328
15329 * win32-low.c (win32-attach): Fix return value.
15330 * target.h (target_ops): Describe ATTACH return values.
15331
15332 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15333
15334 * win32-low.c (GETPROCADDRESS): Define.
15335 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
15336 (winapi_DebugSetProcessKillOnExit): Likewise.
15337 (win32_create_inferior): Force usage of ansi CreateProcessA.
15338 (win32_attach): Use GETPROCADDRESS.
15339 (win32_detach): Likewise.
15340
15341 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
15342
15343 * win32-low.c (win32_wait): Don't use WSTOPSIG.
15344
15345 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
15346
15347 * win32-low.c: Commit leftover changes from 2007-03-29.
15348
15349 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
15350
15351 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
15352 fields short instead of int. Add explicit padding.
15353 (i387_cache_to_fsave): Remove unnecessary casts.
15354 (i387_fsave_to_cache): Doc fix.
15355 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
15356
15357 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
15358
15359 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
15360 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
15361
15362 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
15363
15364 * configure.srv (arm*-*-mingw32ce*): Move near the other
15365 arm targets.
15366
15367 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
15368
15369 * configure.ac: Add errno checking.
15370 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
15371 sys/file.h and malloc.h.
15372 (AC_CHECK_DECLS): Add perror.
15373 (srv_mingwce): Handle.
15374 * configure.srv (i[34567]86-*-cygwin*): Add
15375 win32-i386-low.o to srv_tgtobj.
15376 (i[34567]86-*-mingw*): Likewise.
15377 (arm*-*-mingw32ce*): Add case.
15378 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
15379 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
15380 [__MINGW32CE__] (strerror): New function.
15381 [__MINGW32CE__] (errno): Define to GetLastError.
15382 [__MINGW32CE__] (COUNTOF): New macro.
15383 (remote_open): Remove extra close call.
15384 * mem-break.c (delete_breakpoint_at): New function.
15385 * mem-break.h (delete_breakpoint_at): Declare.
15386 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
15387 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
15388 [USE_WIN32API] (read, write): Add char* casts.
15389 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
15390 * server.h: Include wincecompat.h on Windows CE.
15391 [HAVE_ERRNO_H]: Check.
15392 (perror): Declare if not declared.
15393 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
15394 (perror_with_name): Remove errno declaration.
15395 * wincecompat.h: New.
15396 * wincecompat.c: New.
15397 * win32-low.h: New.
15398 * win32-arm-low.c: New.
15399 * win32-i386-low.c: New.
15400 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
15401 (OUTMSG2): Make it safe.
15402 (_T): New macro.
15403 (COUNTOF): New macro.
15404 (NUM_REGS): Get it from the low target.
15405 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
15406 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
15407 (thread_rec): Let low target handle debug registers.
15408 (child_add_thread): Likewise.
15409 (child_init_thread_list): Likewise.
15410 (continue_one_thread): Likewise.
15411 (regptr): New.
15412 (do_child_fetch_inferior_registers): Move to ...
15413 * win32-i386-low.c: ... here, and rename to ...
15414 (do_fetch_inferior_registers): ... this.
15415 * win32-low.c (child_fetch_inferior_registers):
15416 Go through the low target.
15417 (do_child_store_inferior_registers): Use regptr.
15418 (strwinerror): New function.
15419 (win32_create_inferior): Handle Windows CE.
15420 Use strwinerror instead of strerror on Windows error
15421 codes. Add program to the error output.
15422 Don't close the main thread handle on Windows CE.
15423 (win32_attach): Use coredll.dll on Windows CE.
15424 (win32_kill): Close current process and current
15425 thread handles.
15426 (win32_detach): Use coredll.dll on Windows CE.
15427 (win32_resume): Let low target handle debug registers, and
15428 step request.
15429 (handle_exception): Add/Remove initial breakpoint. Avoid
15430 non-existant WSTOPSIG on Windows CE.
15431 (win32_read_inferior_memory): Cast to remove warning.
15432 (win32_arch_string): Go through the low target.
15433 (initialize_low): Call set_breakpoint_data with the low
15434 target's breakpoint.
15435 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
15436 FOP_REGNUM, mappings): Move to ...
15437 * win32-i386-low.c: ... here.
15438 * win32-low.c (win32_thread_info): Move to ...
15439 * win32-low.h: ... here.
15440 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
15441 win32-arm-low.c and wincecompat.c.
15442 (all:): Add $EXEEXT.
15443 (install-only:): Likewise.
15444 (gdbserver:): Likewise.
15445 (gdbreplay:): Likewise.
15446 * config.in: Regenerate.
15447 * configure: Regenerate.
15448
15449 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
15450
15451 * win32-low.c: Rename typedef thread_info to
15452 win32_thread_info throughout.
15453
15454 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
15455
15456 * win32-i386-low.c: Rename to ...
15457 * win32-low.c: ... this.
15458 * configure.srv: Replace win32-i386-low.o with win32-low.o.
15459 * Makefile.in: Likewise.
15460
15461 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
15462
15463 * remote-utils.c (monitor_output): Constify msg parameter.
15464 * server.h (monitor_output): Likewise.
15465 * win32-i386-low.c (handle_output_debug_string): New.
15466 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
15467 handle_output_debug_string.
15468 (get_child_debug_event): Likewise.
15469
15470 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
15471
15472 * server.c (main): Correct strtoul check.
15473
15474 2007-03-27 Jon Ringle <jon@ringle.org>
15475
15476 * linux-low.c: Check __ARCH_HAS_MMU__ also.
15477
15478 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
15479
15480 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
15481
15482 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
15483
15484 * terminal.h: Check HAVE_SGTTY_H.
15485
15486 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
15487
15488 * remote-utils.c (remote_open): Print out the assigned port number.
15489
15490 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
15491
15492 * remote-utils.c (monitor_output): New function.
15493 * server.c (debug_threads): Define here.
15494 (monitor_show_help): New function.
15495 (handle_query): Handle qRcmd.
15496 (main): Do not handle 'd' packet.
15497 * server.h (debug_threads, remote_debug, monitor_output): Declare.
15498 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
15499 of debug_threads.
15500
15501 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
15502
15503 * Makefile.in (EXEEXT): New.
15504 (clean): Use $(EXEEXT).
15505
15506 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
15507
15508 * target.h (target_ops): Rename send_signal to request_interrupt,
15509 and remove enum target_signal parameter.
15510 * linux-low.c (linux_request_interrupt): Rename from
15511 linux_send_signal, and always send SIGINT.
15512 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
15513 and always send SIGINT.
15514 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
15515 of send_signal.
15516 (input_interrupt): Likewise.
15517
15518 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
15519
15520 * server.c (get_features_xml): Check if target implemented
15521 arch_string.
15522 * win32-i386-low.c (win32_arch_string): New.
15523 (win32_target_ops): Add win32_arch_string as arch_string member.
15524
15525 2007-02-22 Markus Deuling <deuling@de.ibm.com>
15526
15527 * spu-low.c (spu_arch_string): New.
15528 (spu_target_ops): Add spu_arch_string.
15529
15530 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
15531
15532 * remote-utils.c: Remove HAVE_TERMINAL_H check.
15533 * configure.ac: Do not check for terminal.h.
15534 * configure, config.in: Regenerated.
15535
15536 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
15537
15538 * Makefile.in (OBS): Add $(XML_BUILTIN).
15539 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
15540 (clean): Update.
15541 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
15542 (arm-with-iwmmxt.c): New.
15543 * config.in, configure: Regenerate.
15544 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
15545 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
15546 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
15547 (arm*-*-linux*): Add iWMMXt and regset support.
15548 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
15549 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
15550 (arm_store_wmmxregset, target_regsets): New.
15551 * server.c (get_features_xml): Take annex argument. Check builtin
15552 XML documents.
15553 (handle_query): Handle multiple annexes.
15554
15555 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
15556
15557 * remote-utils.c [USE_WIN32API] (read, write): Define.
15558 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
15559 write.
15560
15561 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
15562
15563 * linux-i386-low.c (the_low_target): Set arch_string.
15564 * linux-x86-64-low.c (the_low_target): Likewise.
15565 * linux-low.c (linux_arch_string): New.
15566 (linux_target_ops): Add it.
15567 * linux-low.h (struct linux_target_ops): Add arch_string.
15568 * server.c (write_qxfer_response): Use const void * for DATA.
15569 (get_features_xml): New.
15570 (handle_query): Handle qXfer:features:read. Report it for qSupported.
15571 * target.h (struct target_ops): Add arch_string method.
15572
15573 2007-01-03 Denis Pilat <denis.pilat@st.com>
15574 Daniel Jacobowitz <dan@codesourcery.com>
15575
15576 * linux-low.c (linux_kill): Handle being called with no threads.
15577 * win32-i386-low.c (win32_kill): Likewise.
15578 (get_child_debug_event): Clear current_process_handle.
15579
15580 2006-12-30 Denis PILAT <denis.pilat@st.com>
15581 Daniel Jacobowitz <dan@codesourcery.com>
15582
15583 * remote-utils.c (remote_open): Check the type of specified
15584 serial port devices before opening them.
15585 * server.c (main): Kill the inferior if an error occurs during
15586 the first remote_open.
15587
15588 2006-12-05 Markus Deuling <deuling@de.ibm.com>
15589
15590 * README: Update supported targets.
15591
15592 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
15593
15594 * Makefile.in (clean): Remove reg-mips64.c.
15595 (reg-mips64.c, reg-mips64.o): New rules.
15596 * configure.srv: Handle mips64. Include regset support for mips.
15597 * linux-mips-low.c (union mips_register): New.
15598 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
15599 (mips_breakpoint, mips_breakpoint_at): Use int.
15600 (mips_collect_register, mips_supply_register)
15601 (mips_collect_register_32bit, mips_supply_register_32bit)
15602 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
15603 (mips_store_fpregset, target_regsets): New.
15604 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
15605
15606 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
15607
15608 * configure.srv: Add target "spu*-*-*".
15609 * Makefile.in (clean): Remove reg-spu.c.
15610 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
15611 * spu-low.c: New file.
15612
15613 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
15614
15615 * configure.ac: Correct td_thr_tls_get_addr test.
15616 * configure: Regenerated.
15617
15618 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
15619
15620 * linux-low.c (linux_wait_for_event): Reformat. Use the
15621 pass_signals array.
15622 * remote-utils.c (decode_address_to_semicolon): New.
15623 * server.c (pass_signals, handle_general_set): New.
15624 (handle_query): Mention QPassSignals for qSupported.
15625 (main): Call handle_general_set.
15626 * server.h (pass_signals, decode_address_to_semicolon): New.
15627
15628 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
15629
15630 * server.c (handle_query): Correct error handling for read_auxv.
15631
15632 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
15633
15634 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
15635 and srv_linux_thread_db to yes.
15636 * linux-s390-low.c (s390_fill_gregset): New function.
15637 (target_regsets): Define data structure.
15638
15639 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
15640
15641 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
15642 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
15643 * config.in, configure: Regenerated.
15644 * inferiors.c (gdb_id_to_thread): New function.
15645 (gdb_id_to_thread_id): Use it.
15646 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
15647 * linux-low.h (struct process_info): Add th member.
15648 (thread_db_get_tls_address): New prototype.
15649 * remote-utils.c (decode_address): Make non-static.
15650 * server.c (handle_query): Handle qGetTLSAddr.
15651 * server.h (gdb_id_to_thread, decode_address): New prototypes.
15652 * target.h (struct target_ops): Add get_tls_address.
15653 * thread-db.c (maybe_attach_thread): Save the thread handle.
15654 (thread_db_get_tls_address): New.
15655
15656 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
15657
15658 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
15659 (linux_resume_one_process): Take a siginfo_t *. Update all
15660 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
15661 (struct pending_signals): Add a siginfo_t.
15662 (linux_wait_for_process): Always set last_status.
15663 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
15664 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
15665 * linux-low.h (struct process_info): Add last_status.
15666
15667 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
15668
15669 * remote-utils.c (try_rle): New function.
15670 (putpkt_binary): Use it.
15671
15672 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
15673
15674 * Makefile.in (clean): Clean reg-x86-64-linux.c.
15675 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
15676 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
15677 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
15678 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
15679 point registers.
15680
15681 2006-08-08 Richard Sandiford <richard@codesourcery.com>
15682
15683 * server.c (terminal_fd): New variable.
15684 (old_foreground_pgrp): Likewise.
15685 (restore_old_foreground_pgrp): New function.
15686 (start_inferior): Record the terminal file descriptor in terminal_fd
15687 and its original foreground group in old_foreground_pgrp. Register
15688 restore_old_foreground_pgrp with atexit().
15689
15690 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
15691
15692 * server.c (handle_query): Correct qPart to qXfer.
15693
15694 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
15695
15696 * configure.ac: Check for more headers which are missing on
15697 Windows. Automatically supply -lwsock32 and USE_WIN32API.
15698 * configure.srv: Add Cygwin and mingw32.
15699 * remote-utils.c: Don't include headers unconditionally which
15700 are missing on mingw32. Include <winsock.h> for mingw32.
15701 (remote_open): Adjust for mingw32 support. Flush
15702 standard error after writing to it.
15703 (remote_close, putpkt_binary, input_interrupt, block_async_io)
15704 (unblock_async_io, enable_async_io, disable_async_io)
15705 (readchar, getpkt): Update for Winsock support.
15706 (prepare_resume_reply): Expect a protocol signal number.
15707 * server.c: Disable <sys/wait.h> on mingw32.
15708 (start_inferior): Adjust for mingw32 support. Flush
15709 standard error after writing to it.
15710 (attach_inferior): Likewise. Use protocol signal
15711 numbers.
15712 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
15713 and names.
15714 * win32-i386-low.c: New file.
15715 * Makefile.in (XM_CLIBS): Set.
15716 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
15717 (win32-i386-low.o): New dependency rule.
15718 * linux-low.c (linux_wait): Use target signal numbers.
15719 * target.h (struct target_ops): Doc fix.
15720 * server.h (target_signal_to_name): New prototype.
15721 * gdbreplay.c: Don't include headers unconditionally which
15722 are missing on mingw32. Include <winsock.h> for mingw32.
15723 (remote_close, remote_open): Adjust for Winsock support.
15724 * configure, config.in: Regenerated.
15725
15726 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
15727
15728 * server.c (decode_xfer_read, write_qxfer_response): New.
15729 (handle_query): Take a packet length argument. Handle
15730 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
15731 the qSupported response.
15732 (main): Update call to handle_query.
15733
15734 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
15735
15736 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
15737 (putpkt_binary): Renamed from putpkt and adjusted for binary
15738 data.
15739 (putpkt): New wrapper for putpkt_binary.
15740 (readchar): Don't mask off the high bit.
15741 (decode_X_packet): New function.
15742 * server.c (main): Call putpkt_binary if a handler sets the packet
15743 length. Save the length of the incoming packet. Handle 'X'.
15744 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
15745
15746 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
15747
15748 * server.c (handle_query): Handle qSupported.
15749
15750 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
15751
15752 * remote-utils.c (all_symbols_looked_up): New variable.
15753 (look_up_one_symbol): Check it.
15754 * server.h (look_up_one_symbol): New declaration.
15755 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
15756
15757 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
15758
15759 * Makefile.in (linux-arm-low.o): Update dependencies.
15760 * linux-arm-low.c: Include "gdb_proc_service.h".
15761 (PTRACE_GET_THREAD_AREA): Define.
15762 (ps_get_thread_area): New function.
15763
15764 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
15765
15766 * configure.srv (m68k*-*-uclinux*): New target.
15767 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
15768 (linux_resume_one_process): Remove extraneous cast.
15769 (linux_read_offsets): New.
15770 (linux_target_op): Add linux_read_offsets on mmuless systems.
15771 * server.c (handle_query): Add qOffsets logic.
15772 * target.h (struct target_ops): Add read_offsets.
15773
15774 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
15775
15776 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
15777 (PTRACE_GET_THREAD_AREA): Define.
15778 (ps_get_thread_area): New function.
15779 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
15780 (linux-x86-64-low.o): Update.
15781
15782 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
15783
15784 * configure.ac: Remove checks for prfpregset_t.
15785 * gdb_proc_service.h: New file.
15786 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
15787 new "gdb_proc_service.h".
15788 * proc-service.c: Likewise.
15789 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
15790 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
15791 * Makefile.in (gdb_proc_service_h): Updated.
15792 * configure, config.in: Regenerated.
15793
15794 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
15795
15796 * remote-utils.c (prepare_resume_reply): Move declaration
15797 of gdb_id_from_wait to the top of the block.
15798
15799 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
15800
15801 * linux-low.c (regsets_store_inferior_registers): Read the regset
15802 from the target before filling it.
15803
15804 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
15805
15806 * server.c (attach_inferior): Return SIGTRAP for a successful
15807 attach.
15808
15809 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
15810
15811 * Makefile.in (OBS): Add version.o.
15812 (STAGESTUFF): Delete.
15813 (version.o): Add dependencies.
15814 (version.c): Replace rule.
15815 (clean): Remove version.c.
15816 * server.c (gdbserver_version): New.
15817 (gdbserver_usage): Use printf.
15818 (main): Handle --version and --help.
15819 * server.h (version, host_name): Add declarations.
15820
15821 2005-12-23 Eli Zaretskii <eliz@gnu.org>
15822
15823 * linux-arm-low.c:
15824 * linux-arm-low.c:
15825 * inferiors.c:
15826 * i387-fp.h:
15827 * i387-fp.c:
15828 * gdbreplay.c:
15829 * regcache.c:
15830 * proc-service.c:
15831 * mem-break.h:
15832 * mem-break.c:
15833 * linux-x86-64-low.c:
15834 * linux-sh-low.c:
15835 * linux-s390-low.c:
15836 * linux-ppc64-low.c:
15837 * linux-ppc-low.c:
15838 * linux-mips-low.c:
15839 * linux-m68k-low.c:
15840 * linux-m32r-low.c:
15841 * linux-low.h:
15842 * linux-low.c:
15843 * linux-ia64-low.c:
15844 * linux-i386-low.c:
15845 * linux-crisv32-low.c:
15846 * thread-db.c:
15847 * terminal.h:
15848 * target.h:
15849 * target.c:
15850 * server.h:
15851 * server.c:
15852 * remote-utils.c:
15853 * regcache.h:
15854 * utils.c:
15855 * Makefile.in:
15856 * configure.ac:
15857 * gdbserver.1: Add (C) after Copyright. Update the FSF
15858 address.
15859
15860 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
15861
15862 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
15863 (arm_breakpoint_at): Recognize both breakpoints.
15864 (the_low_target): Use the correct breakpoint instruction.
15865
15866 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
15867
15868 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
15869 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
15870 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
15871 (the_low_target): Update.
15872
15873 2005-10-25 Andreas Schwab <schwab@suse.de>
15874
15875 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
15876
15877 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
15878 (ia64_num_regs): Reduce to 462.
15879
15880 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
15881
15882 * acinclude.m4: Correct quoting.
15883 * aclocal.m4: Regenerated.
15884
15885 Suggested by SZOKOVACS Robert <szo@ies.hu>:
15886 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
15887 (thread_db_init): Call thread_db_err_str.
15888 * configure.ac: Check for TD_VERSION.
15889 * config.in, configure: Regenerated.
15890
15891 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15892
15893 * server.h (error, fatal, warning): Add ATTR_FORMAT.
15894
15895 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
15896
15897 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
15898 is not available. Define HAVE_PTRACE_GETREGS if it is.
15899 * config.in, configure: Regenerated.
15900 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
15901 * linux-i386-low.c, linux-m68k-low.c: Update to use
15902 HAVE_PTRACE_GETREGS.
15903 * linux-low.c (regsets_fetch_inferior_registers)
15904 (regsets_store_inferior_registers): Only return 0 if we processed
15905 GENERAL_REGS.
15906 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
15907 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
15908
15909 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
15910
15911 * inferiors.c (struct thread_info): Add gdb_id.
15912 (add_thread): Add gdb_id argument.
15913 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
15914 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
15915 calls to add_thread.
15916 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
15917 * server.c (handle_query): Use thread_to_gdb_id.
15918 (handle_v_cont, main): Use gdb_id_to_thread_id.
15919 * server.h (add_thread): Update prototype.
15920 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
15921 prototypes.
15922
15923 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
15924
15925 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
15926 left-padded registers.
15927 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
15928 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
15929
15930 2005-07-01 Steve Ellcey <sje@cup.hp.com>
15931
15932 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
15933 * configure: Regenerate.
15934 * config.in: Regenerate.
15935 * server.h (NEED_DECLARATION_STRERROR):
15936 Replace with !HAVE_DECL_STRERROR.
15937
15938 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
15939
15940 * linux-low.c (linux_wait, linux_send_signal): Don't test
15941 an unsigned long variable for > 0 if it could be MAX_ULONG.
15942 * server.c (myresume): Likewise.
15943 * target.c (set_desired_inferior): Likewise.
15944
15945 2005-06-13 Mark Kettenis <kettenis@gnu.org>
15946
15947 * configure.ac: Simplify and improve check for socklen_t.
15948 * configure, config.in: Regenerate.
15949
15950 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
15951
15952 * acconfig.h: Remove.
15953 * configure.ac: Add a test for socklen_t. Use three-argument
15954 AC_DEFINE throughout.
15955 * config.in: Regenerated using autoheader 2.59.
15956 * configure: Regenerated.
15957
15958 * gdbreplay.c (socklen_t): Provide a default.
15959 (remote_open): Use socklen_t.
15960 * remote-utils.c (socklen_t): Provide a default.
15961 (remote_open): Use socklen_t.
15962 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
15963 unsigned char.
15964
15965 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
15966 char for buffers.
15967 * linux-low.c (linux_read_memory, linux_write_memory)
15968 (linux_read_auxv): Likewise.
15969 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
15970 (check_mem_write): Likewise.
15971 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
15972 Likewise.
15973 * regcache.c (struct inferior_rgcache_data, registers_to_string)
15974 (registers_from_string, register_data): Likewise.
15975 * server.c (handle_query, main): Likewise.
15976 * server.h (convert_ascii_to_int, convert_int_to_ascii)
15977 (decode_M_packet): Likewise.
15978 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
15979 * target.h (struct target_ops): Update read_memory, write_memory,
15980 and read_auxv.
15981 (read_inferior_memory, write_inferior_memory): Update.
15982 * linux-low.h (struct linux_target_ops): Change type of breakpoint
15983 to unsigned char *.
15984 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
15985 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
15986 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
15987 linux-s390-low.c, linux-sh-low.c: Update for changes in
15988 read_inferior_memory and the_low_target->breakpoint.
15989
15990 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
15991
15992 * Makefile.in (SFILES): Add linux-ppc64-low.c.
15993 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
15994 * configure.srv: Add powerpc64-*-linux*.
15995 * linux-ppc64-low.c: New file.
15996
15997 2005-05-23 Orjan Friberg <orjanf@axis.com>
15998
15999 * linux-cris-low.c: New file with support for CRIS.
16000 * linux-crisv32-low.c: Ditto for CRISv32.
16001 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
16002 (clean): Add reg-cris.c and reg-crisv32.c.
16003 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
16004 reg-crisv32.o, and reg-crisv32.c to make rules.
16005 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
16006 recognized targets.
16007
16008 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
16009
16010 * linux-low.c (fetch_register): Ensure buffer size is a multiple
16011 of sizeof (PTRACE_XFER_TYPE).
16012 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
16013
16014 2005-05-12 Orjan Friberg <orjanf@axis.com>
16015
16016 * target.h (struct target_ops): Add insert_watchpoint,
16017 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
16018 pointers for hardware watchpoint support.
16019 * linux-low.h (struct linux_target_ops): Ditto.
16020 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
16021 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
16022 to linux_target_ops.
16023 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
16024 reply packet.
16025 * server.c (main): Recognize 'Z' and 'z' packets.
16026
16027 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
16028
16029 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
16030 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
16031 (the_low_target): Add new members.
16032
16033 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
16034
16035 * proc-service.c (ps_lgetregs): Search all_processes instead of
16036 all_threads.
16037
16038 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
16039
16040 * server.c (start_inferior): Change return type to int.
16041 (attach_inferior): Change sigptr to int *.
16042 (handle_v_cont, handle_v_requests): Change signal to int *.
16043 (main): Change signal to int.
16044
16045 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
16046
16047 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
16048 * configure.srv: Add m32r*-*-linux*.
16049 * linux-m32r-low.c: New file.
16050
16051 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
16052
16053 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
16054
16055 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
16056
16057 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
16058 Take unsigned long arguments for PIDs.
16059 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
16060 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
16061 (wait_for_sigstop, linux_resume_one_process)
16062 (regsets_fetch_inferior_registers, linux_send_signal)
16063 (linux_read_auxv): Likewise. Update the types of variables holding
16064 PIDs. Update format string specifiers.
16065 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
16066 * remote-utils.c (prepare_resume_reply): Likewise.
16067 * server.c (cont_thread, general_thread, step_thread)
16068 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
16069 unsigned long.
16070 (handle_query): Update format specifiers.
16071 (handle_v_cont, main): Use strtoul for thread IDs.
16072 * server.h (struct inferior_list_entry): Use unsigned long for ID.
16073 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
16074 (general_thread, step_thread, thread_from_wait)
16075 (old_thread_from_wait): Update.
16076 * target.h (struct thread_resume): Use unsigned long for THREAD.
16077 (struct target_ops): Use unsigned long for arguments to attach and
16078 thread_alive.
16079
16080 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
16081
16082 * acinclude.m4: Include bfd/bfd.m4 directly.
16083 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
16084 <agriffis@toolchain.org>.
16085 * aclocal.m4, configure: Regenerated.
16086
16087 2005-01-07 Andrew Cagney <cagney@gnu.org>
16088
16089 * configure.ac: Rename configure.in, require autoconf 2.59.
16090 * configure: Re-generate.
16091
16092 2004-12-08 Daniel Jacobowitz <dan@debian.org>
16093
16094 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
16095 LIBS when finished.
16096 * aclocal.m4: Regenerated.
16097 * configure: Regenerated.
16098
16099 2004-11-21 Andreas Schwab <schwab@suse.de>
16100
16101 * linux-m68k-low.c (m68k_num_gregs): Define.
16102 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
16103 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
16104 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
16105 (m68k_breakpoint_at): New. Add to the_low_target.
16106
16107 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
16108 srv_linux_thread_db to yes.
16109
16110 2004-10-20 Joel Brobecker <brobecker@gnat.com>
16111
16112 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
16113 (ARCH_SET_FS): Likewise.
16114 (ARCH_GET_FS): Likewise.
16115 (ARCH_GET_GS): Likewise.
16116
16117 2004-10-16 Daniel Jacobowitz <dan@debian.org>
16118
16119 * linux-i386-low.c (ps_get_thread_area): New.
16120 * linux-x86-64-low.c (ps_get_thread_area): New.
16121 * linux-low.c: Include <sys/syscall.h>.
16122 (linux_kill_one_process): Don't kill the first thread here.
16123 (linux_kill): Kill the first thread here.
16124 (kill_lwp): New function.
16125 (send_sigstop, linux_send_signal): Use it.
16126 * proc-service.c: Clean up #ifdefs.
16127 (fpregset_info): Delete.
16128 (ps_lgetregs): Update and enable implementation.
16129 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
16130 implementations.
16131 * remote-utils.c (struct sym_cache, symbol_cache): New.
16132 (input_interrupt): Print a clearer message.
16133 (async_io_enabled): New variable.
16134 (enable_async_io, disable_async_io): Use it. Update comments.
16135 (look_up_one_symbol): Use the symbol cache.
16136 * thread-db.c (thread_db_look_up_symbols): New function.
16137 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
16138
16139 2004-10-16 Daniel Jacobowitz <dan@debian.org>
16140
16141 * configure.in: Test for -rdynamic.
16142 * configure: Regenerated.
16143 * Makefile (INTERNAL_LDFLAGS): New.
16144 (gdbserver, gdbreplay): Use it.
16145
16146 2004-09-02 Andrew Cagney <cagney@gnu.org>
16147
16148 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
16149
16150 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
16151
16152 * linux-low.c (linux_wait): Clear all_processes list also.
16153
16154 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
16155
16156 * linux-low.c: Include <errno.h>. Remove extern declaration of
16157 errno.
16158
16159 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
16160
16161 * gdbreplay.c, server.h, utils.c: Update copyright years.
16162
16163 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
16164
16165 * server.c (main): Print child status or termination signal from
16166 variable 'signal', not 'sig'.
16167
16168 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
16169
16170 * linux-low.c (linux_read_memory): Change return type to
16171 int. Check for and return error from ptrace().
16172 * target.c (read_inferior_memory): Change return type to int. Pass
16173 back return status from the_target->read_memory().
16174 * target.h (struct target_ops): Adapt *read_memory() prototype.
16175 Update comment.
16176 (read_inferior_memory): Adapt prototype.
16177 * server.c (main): Return an error packet if
16178 read_inferior_memory() returns an error.
16179
16180 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
16181
16182 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
16183 Unify with other clean targets.
16184
16185 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
16186
16187 * server.c (handle_v_cont): Call set_desired_inferior.
16188
16189 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
16190
16191 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
16192
16193 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
16194
16195 * linux-low.c (linux_wait): Unblock async I/O.
16196 (linux_resume): Block and enable async I/O.
16197 * remote-utils.c (block_async_io, unblock_async_io): New functions.
16198 * server.h (block_async_io, unblock_async_io): Add prototypes.
16199
16200 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
16201
16202 * remote-utils.c (remote_open): Print a status notice after
16203 opening a TCP port.
16204 * server.c (attach_inferior): Print a status notice after
16205 attaching.
16206
16207 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
16208
16209 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
16210
16211 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
16212
16213 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
16214 error packet.
16215 * server.c, target.h: Update copyright years.
16216
16217 2004-02-25 Roland McGrath <roland@redhat.com>
16218
16219 * target.h (struct target_ops): New member `read_auxv'.
16220 * server.c (handle_query): Handle qPart:auxv:read: query using that.
16221 * linux-low.c (linux_read_auxv): New function.
16222 (linux_target_ops): Initialize `read_auxv' member to that.
16223
16224 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16225
16226 Committed by Jim Blandy <jimb@redhat.com>.
16227
16228 * linux-s390-low.c (s390_num_regs): Update.
16229 (s390_regmap): Remove control registers. Use __s390x__ predefine
16230 instead of GPR_SIZE to distiguish s390 and s390x targets.
16231
16232 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
16233
16234 * linux-low.c: Update copyright year.
16235 (check_removed_breakpoint): Clear pending_is_breakpoint.
16236 (linux_set_resume_request, linux_queue_one_thread)
16237 (resume_status_pending_p): New functions.
16238 (linux_continue_one_thread): Use process->resume.
16239 (linux_resume): Only resume threads if there are no pending events.
16240 * linux-low.h (struct process_info): Add resume request
16241 pointer.
16242
16243 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
16244
16245 * regcache.c (new_register_cache): Clear the allocated register
16246 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
16247
16248 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
16249
16250 * linux-low.c (linux_resume): Take a struct thread_resume *
16251 argument.
16252 (linux_wait): Update call.
16253 (resume_ptr): New static variable.
16254 (linux_continue_one_thread): Renamed from
16255 linux_continue_one_process. Use resume_ptr.
16256 (linux_resume): Use linux_continue_one_thread.
16257 * server.c (handle_v_cont, handle_v_requests): New functions.
16258 (myresume): New function.
16259 (main): Handle 'v' case.
16260 * target.h (struct thread_resume): New type.
16261 (struct target_ops): Change argument of "resume" to struct
16262 thread_resume *.
16263 (myresume): Delete macro.
16264
16265 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
16266
16267 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
16268 (uninstall): Support DESTDIR.
16269
16270 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
16271
16272 * configure.srv: Add xscale*linux copy of arm*linux entry.
16273
16274 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
16275
16276 * linux-arm-low.c (arm_reinsert_addr): New function.
16277 (the_low_target): Add arm_reinsert_addr.
16278
16279 2003-07-08 Mark Kettenis <kettenis@gnu.org>
16280
16281 * mem-break.c: Remove whitespace at end of file.
16282
16283 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
16284
16285 * configure.in: Check whether we need to prototype strerror.
16286 * server.h: Optionally prototype strerror.
16287 * gdbreplay.c (perror_with_name): Use strerror.
16288 * linux-low.c (linux_attach_lwp): Use strerror.
16289 * utils.c (perror_with_name): Use strerror.
16290 * config.in, configure: Regenerated.
16291
16292 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
16293
16294 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
16295 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
16296
16297 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
16298
16299 * Makefile.in (SFILES): Update.
16300 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
16301 low-sun3.c: Remove files.
16302
16303 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
16304
16305 * linux-low.c: Move comment to linux_thread_alive where it belonged.
16306 (linux_detach_one_process, linux_detach): New functions.
16307 (linux_target_ops): Add linux_detach.
16308 * server.c (main): Handle 'D' packet.
16309 * target.h (struct target_ops): Add "detach" member.
16310 (detach_inferior): Define.
16311
16312 2003-06-13 Mark Kettenis <kettenis@gnu.org>
16313
16314 From Kelley Cook <kelleycook@wideopenwest.com>:
16315 * configure.srv: Accept i[34567]86 variants.
16316
16317 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
16318
16319 * linux-low.c (linux_wait_for_event): Correct comment typos.
16320 (linux_resume_one_process): Call check_removed_breakpoint.
16321 (linux_send_signal): New function.
16322 (linux_target_ops): Add linux_send_signal.
16323 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
16324 of kill.
16325 * target.h (struct target_ops): Add send_signal.
16326
16327 2003-05-29 Jim Blandy <jimb@redhat.com>
16328
16329 * linux-low.c (usr_store_inferior_registers): Transfer buf in
16330 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
16331 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
16332 away part of the register's value.
16333
16334 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
16335
16336 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
16337 (linux_wait_for_event, linux_init_signals): Likewise.
16338
16339 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
16340
16341 * configure.in: Check for stdlib.h.
16342 * configure: Regenerated.
16343 * config.in: Regenerated.
16344
16345 2003-01-04 Andreas Schwab <schwab@suse.de>
16346
16347 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
16348
16349 2003-01-02 Andrew Cagney <ac131313@redhat.com>
16350
16351 * Makefile.in: Remove obsolete code.
16352
16353 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
16354
16355 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
16356 defined(PT_FPR0_HI).
16357
16358 2002-11-17 Stuart Hughes <seh@zee2.com>
16359
16360 * linux-arm-low.c (arm_num_regs): Increase.
16361 (arm_regmap): Include status register.
16362
16363 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
16364
16365 * linux-low.c (register_addr): Remove incorrect -1 check.
16366
16367 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
16368
16369 * linux-low.c (linux_create_inferior): Call setpgid. Return
16370 the new PID.
16371 (unstopped_p, linux_signal_pid): Remove.
16372 (linux_target_ops): Remove linux_signal_pid.
16373 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
16374 global instead of target method.
16375 * target.h (struct target_ops): Remove signal_pid. Update comment
16376 for create_inferior.
16377 * server.c (signal_pid): New variable.
16378 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
16379 gdbserver. Set the child to be the foreground process group.
16380 (attach_inferior): Set signal_pid.
16381
16382 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
16383
16384 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
16385
16386 2002-08-20 Jim Blandy <jimb@redhat.com>
16387
16388 * Makefile.in (LDFLAGS): Allow the configure script to establish a
16389 default for this.
16390
16391 2002-08-01 Andrew Cagney <cagney@redhat.com>
16392
16393 * Makefile.in: Make chill references obsolete.
16394
16395 2002-07-24 Kevin Buettner <kevinb@redhat.com>
16396
16397 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
16398 * configure: Regenerate.
16399 * config.in: Regenerate.
16400
16401 2002-07-09 David O'Brien <obrien@FreeBSD.org>
16402
16403 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
16404 (perror_with_name, remote_close, remote_open, expect, play): Static.
16405
16406 2002-07-04 Michal Ludvig <mludvig@suse.cz>
16407
16408 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
16409 byte offsets instead of an array of indexes.
16410 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
16411
16412 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
16413
16414 * regcache.c: Add comment.
16415
16416 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
16417
16418 * thread-db.c: New file.
16419 * proc-service.c: New file.
16420 * acinclude.m4: New file.
16421 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
16422 proc-service.o, and thread-db.o.
16423 (linux-low.o): Add USE_THREAD_DB.
16424 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
16425 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
16426 * aclocal.m4: Regenerated.
16427 * config.in: Regenerated.
16428 * configure: Regenerated.
16429 * configure.in: Check for proc_service.h, sys/procfs.h,
16430 thread_db.h, and linux/elf.h headrs.
16431 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
16432 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
16433 Check for -lthread_db and thread support.
16434 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
16435 PowerPC, and SuperH.
16436 * i387-fp.c: Constify arguments.
16437 * i387-fp.h: Likewise.
16438 * inferiors.c: (struct thread_info): Renamed from
16439 `struct inferior_info'. Remove PID member. Use generic inferior
16440 list header. All uses updated.
16441 (inferiors, signal_pid): Removed.
16442 (all_threads): New variable.
16443 (get_thread): Define.
16444 (add_inferior_to_list): New function.
16445 (for_each_inferior): New function.
16446 (change_inferior_id): New function.
16447 (add_inferior): Removed.
16448 (remove_inferior): New function.
16449 (add_thread): New function.
16450 (free_one_thread): New function.
16451 (remove_thread): New function.
16452 (clear_inferiors): Use for_each_inferior and free_one_thread.
16453 (find_inferior): New function.
16454 (find_inferior_id): New function.
16455 (inferior_target_data): Update argument type.
16456 (set_inferior_target_data): Likewise.
16457 (inferior_regcache_data): Likewise.
16458 (set_inferior_regcache_data): Likewise.
16459 * linux-low.c (linux_bp_reinsert): Remove.
16460 (all_processes, stopping_threads, using_thrads)
16461 (struct pending_signals, debug_threads, pid_of): New.
16462 (inferior_pid): Replace with macro.
16463 (struct inferior_linux_data): Remove.
16464 (get_stop_pc, add_process): New functions.
16465 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
16466 Use add_process and add_thread.
16467 (linux_attach_lwp): New function, based on old linux_attach. Use
16468 add_process and add_thread. Set stop_expected for new threads.
16469 (linux_attach): New function.
16470 (linux_kill_one_process): New function.
16471 (linux_kill): Kill all LWPs.
16472 (linux_thread_alive): Use find_inferior_id.
16473 (check_removed_breakpoints, status_pending_p): New functions.
16474 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
16475 Update. Use WNOHANG. Wait for cloned processes also. Update process
16476 struct for the found process.
16477 (linux_wait_for_event): New function.
16478 (linux_wait): Use it. Support LWPs.
16479 (send_sigstop, wait_for_sigstop, stop_all_processes)
16480 (linux_resume_one_process, linux_continue_one_process): New functions.
16481 (linux_resume): Support LWPs.
16482 (REGISTER_RAW_SIZE): Remove.
16483 (fetch_register): Use register_size instead. Call supply_register.
16484 (usr_store_inferior_registers): Likewise. Call collect_register.
16485 Fix recursive case.
16486 (regsets_fetch_inferior_registers): Improve error message.
16487 (regsets_store_inferior_registers): Add debugging.
16488 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
16489 (unstopped_p, linux_signal_pid): New functions.
16490 (linux_target_ops): Add linux_signal_pid.
16491 (linux_init_signals): New function.
16492 (initialize_low): Call it. Initialize using_threads.
16493 * regcache.c (inferior_regcache_data): Add valid
16494 flag.
16495 (get_regcache): Fetch registers lazily. Add fetch argument
16496 and update all callers.
16497 (regcache_invalidate_one, regcache_invalidate): New
16498 functions.
16499 (new_register_cache): Renamed from create_register_cache.
16500 Return the new regcache.
16501 (free_register_cache): Change argument to a void *.
16502 (registers_to_string, registers_from_string): Call get_regcache
16503 with fetch flag set.
16504 (register_data): Make static. Pass fetch flag to get_regcache.
16505 (supply_register): Call get_regcache with fetch flag clear.
16506 (collect_register): Call get_regcache with fetch flag set.
16507 (collect_register_as_string): New function.
16508 * regcache.h: Update.
16509 * remote-utils.c (putpkt): Flush after debug output and use
16510 stderr.
16511 Handle input interrupts while waiting for an ACK.
16512 (input_interrupt): Use signal_pid method.
16513 (getpkt): Flush after debug output and use stderr.
16514 (outreg): Use collect_register_as_string.
16515 (new_thread_notify, dead_thread_notify): New functions.
16516 (prepare_resume_reply): Check using_threads. Set thread_from_wait
16517 and general_thread.
16518 (look_up_one_symbol): Flush after debug output.
16519 * server.c (step_thread, server_waiting): New variables.
16520 (start_inferior): Don't use signal_pid. Update call to mywait.
16521 (attach_inferior): Update call to mywait.
16522 (handle_query): Handle qfThreadInfo and qsThreadInfo.
16523 (main): Don't fetch/store registers explicitly. Use
16524 set_desired_inferior. Support proposed ``Hs'' packet. Update
16525 calls to mywait.
16526 * server.h: Update.
16527 (struct inferior_list, struct_inferior_list_entry): New.
16528 * target.c (set_desired_inferior): New.
16529 (write_inferior_memory): Constify.
16530 (mywait): New function.
16531 * target.h: Update.
16532 (struct target_ops): New signal_pid method.
16533 (mywait): Removed macro, added prototype.
16534
16535 * linux-low.h (regset_func): Removed.
16536 (regset_fill_func, regset_store_func): New.
16537 (enum regset_type): New.
16538 (struct regset_info): Add type field. Use new operation types.
16539 (struct linux_target_ops): stop_pc renamed to get_pc.
16540 Add decr_pc_after_break and breakpoint_at.
16541 (get_process, get_thread_proess, get_process_thread)
16542 (strut process_info, all_processes, linux_attach_lwp)
16543 (thread_db_init): New.
16544
16545 * linux-arm-low.c (arm_get_pc, arm_set_pc,
16546 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
16547 (the_low_target): Add new members.
16548 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
16549 (i386_store_fpxregset): Constify.
16550 (target_regsets): Add new kind identifier.
16551 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
16552 (i386_set_pc): Add debugging.
16553 (i386_breakpoint_at): New function.
16554 (the_low_target): Add new members.
16555 * linux-mips-low.c (mips_get_pc, mips_set_pc)
16556 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
16557 (mips_breakpoint_at): New.
16558 (the_low_target): Add new members.
16559 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
16560 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
16561 (the_low_target): Add new members.
16562 * linux-sh-low.c (sh_get_pc, sh_set_pc)
16563 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
16564 (the_low_target): Add new members.
16565 * linux-x86-64-low.c (target_regsets): Add new kind
16566 identifier.
16567
16568 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
16569
16570 From Martin Pool <mbp@samba.org>:
16571 * server.c (gdbserver_usage): New function.
16572 (main): Call it.
16573
16574 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
16575
16576 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
16577 stop_at -> stop_pc.
16578
16579 2002-05-04 Andrew Cagney <ac131313@redhat.com>
16580
16581 * Makefile.in: Remove obsolete code.
16582
16583 2002-04-24 Michal Ludvig <mludvig@suse.cz>
16584
16585 * linux-low.c (regsets_fetch_inferior_registers),
16586 (regsets_store_inferior_registers): Removed cast to int from
16587 ptrace() calls.
16588 * regcache.h: Added declaration of struct inferior_info.
16589
16590 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
16591
16592 * inferiors.c (struct inferior_info): Add regcache_data.
16593 (add_inferior): Call create_register_cache.
16594 (clear_inferiors): Call free_register_cache.
16595 (inferior_regcache_data, set_inferior_regcache_data): New functions.
16596 * regcache.c (struct inferior_regcache_data): New.
16597 (registers): Remove.
16598 (get_regcache): New function.
16599 (create_register_cache, free_register_cache): New functions.
16600 (set_register_cache): Don't initialize the register cache here.
16601 (registers_to_string, registers_from_string, register_data): Call
16602 get_regcache.
16603 * regcache.h: Add prototypes.
16604 * server.h: Likewise.
16605
16606 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
16607
16608 * mem-break.c: New file.
16609 * mem-break.h: New file.
16610 * Makefile.in: Add mem-break.o rule; update server.h
16611 dependencies.
16612 * inferiors.c (struct inferior_info): Add target_data
16613 member.
16614 (clear_inferiors): Free target_data member if set.
16615 (inferior_target_data, set_inferior_target_data): New functions.
16616 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
16617 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
16618 * linux-low.c (linux_bp_reinsert): New variable.
16619 (struct inferior_linux_data): New.
16620 (linux_create_inferior): Use set_inferior_target_data.
16621 (linux_attach): Likewise. Call add_inferior.
16622 (linux_wait_for_one_inferior): New function.
16623 (linux_wait): Call it.
16624 (linux_write_memory): Add const.
16625 (initialize_low): Call set_breakpoint_data.
16626 * linux-low.h (struct linux_target_ops): Add breakpoint
16627 handling members.
16628 * server.c (attach_inferior): Remove extra add_inferior
16629 call.
16630 * server.h: Include mem-break.h. Update inferior.c
16631 prototypes.
16632 * target.c (read_inferior_memory)
16633 (write_inferior_memory): New functions.
16634 * target.h (read_inferior_memory)
16635 (write_inferior_memory): Change macros to prototypes.
16636 (struct target_ops): Update comments. Add const to write_memory
16637 definition.
16638
16639 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
16640
16641 * linux-low.c (usr_store_inferior_registers): Support
16642 registers which are allowed to fail to store.
16643 * linux-low.h (linux_target_ops): Likewise.
16644 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
16645 (ppc_cannot_store_register): FPSCR may not be storable.
16646
16647 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
16648
16649 * server.h: Include <string.h> if HAVE_STRING_H.
16650 * ChangeLog: Correct paths in last ChangeLog entry.
16651
16652 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
16653
16654 * linux-low.h: Remove obsolete prototypes.
16655 (struct linux_target_ops): New.
16656 (extern the_low_target): New.
16657 * linux-low.c (num_regs, regmap): Remove declarations.
16658 (register_addr): Use the_low_target explicitly.
16659 (fetch_register): Likewise.
16660 (usr_fetch_inferior_registers): Likewise.
16661 (usr_store_inferior_registers): Likewise.
16662 * linux-arm-low.c (num_regs): Remove.
16663 (arm_num_regs): Define.
16664 (arm_regmap): Renamed from regmap, made static.
16665 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
16666 made static.
16667 (arm_cannot_store_register): Renamed from cannot_store_register,
16668 made static.
16669 (the_low_target): New.
16670 * linux-i386-low.c (num_regs): Remove.
16671 (i386_num_regs): Define.
16672 (i386_regmap): Renamed from regmap, made static.
16673 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
16674 made static.
16675 (i386_cannot_store_register): Renamed from cannot_store_register,
16676 made static.
16677 (the_low_target): New.
16678 * linux-ia64-low.c (num_regs): Remove.
16679 (ia64_num_regs): Define.
16680 (ia64_regmap): Renamed from regmap, made static.
16681 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
16682 made static.
16683 (ia64_cannot_store_register): Renamed from cannot_store_register,
16684 made static.
16685 (the_low_target): New.
16686 * linux-m68k-low.c (num_regs): Remove.
16687 (m68k_num_regs): Define.
16688 (m68k_regmap): Renamed from regmap, made static.
16689 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
16690 made static.
16691 (m68k_cannot_store_register): Renamed from cannot_store_register,
16692 made static.
16693 (the_low_target): New.
16694 * linux-mips-low.c (num_regs): Remove.
16695 (mips_num_regs): Define.
16696 (mips_regmap): Renamed from regmap, made static.
16697 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
16698 made static.
16699 (mips_cannot_store_register): Renamed from cannot_store_register,
16700 made static.
16701 (the_low_target): New.
16702 * linux-ppc-low.c (num_regs): Remove.
16703 (ppc_num_regs): Define.
16704 (ppc_regmap): Renamed from regmap, made static.
16705 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
16706 made static.
16707 (ppc_cannot_store_register): Renamed from cannot_store_register,
16708 made static.
16709 (the_low_target): New.
16710 * linux-s390-low.c (num_regs): Remove.
16711 (s390_num_regs): Define.
16712 (s390_regmap): Renamed from regmap, made static.
16713 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
16714 made static.
16715 (s390_cannot_store_register): Renamed from cannot_store_register,
16716 made static.
16717 (the_low_target): New.
16718 * linux-sh-low.c (num_regs): Remove.
16719 (sh_num_regs): Define.
16720 (sh_regmap): Renamed from regmap, made static.
16721 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
16722 made static.
16723 (sh_cannot_store_register): Renamed from cannot_store_register,
16724 made static.
16725 (the_low_target): New.
16726 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
16727 (the_low_target): New.
16728
16729 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
16730
16731 * Makefile.in: Add stamp-h target.
16732 * configure.in: Create stamp-h.
16733 * configure: Regenerated.
16734
16735 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
16736
16737 * inferiors.c: New file.
16738 * target.c: New file.
16739 * target.h: New file.
16740 * Makefile.in: Add target.o and inferiors.o. Update
16741 dependencies.
16742 * linux-low.c (inferior_pid): New static variable,
16743 moved from server.c.
16744 (linux_create_inferior): Renamed from create_inferior.
16745 Call add_inferior. Return 0 on success instead of a PID.
16746 (linux_attach): Renamed from myattach.
16747 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
16748 (linux_thread_alive): Renamed from mythread_alive.
16749 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
16750 child dies.
16751 (linux_resume): Renamed from myresume. Add missing ``return 0''.
16752 (regsets_store_inferior_registers): Correct error message.
16753 Add missing ``return 0''.
16754 (linux_fetch_registers): Renamed from fetch_inferior_registers.
16755 (linux_store_registers): Renamed from store_inferior_registers.
16756 (linux_read_memory): Renamed from read_inferior_memory.
16757 (linux_write_memory): Renamed from write_inferior_memory.
16758 (linux_target_ops): New structure.
16759 (initialize_low): Call set_target_ops ().
16760 * remote-utils.c (unhexify): New function.
16761 (hexify): New function.
16762 (input_interrupt): Send signals to ``signal_pid''.
16763 * server.c (inferior_pid): Remove.
16764 (start_inferior): Update create_inferior call.
16765 (attach_inferior): Call add_inferior.
16766 (handle_query): New function.
16767 (main): Call handle_query for `q' packets.
16768 * server.h: Include "target.h". Remove obsolete prototypes.
16769 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
16770
16771 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
16772
16773 * Makefile.in: Add WARN_CFLAGS. Update configury
16774 dependencies.
16775 * configure.in: Check for <string.h>
16776 * configure: Regenerate.
16777 * config.in: Regenerate.
16778 * gdbreplay.c: Include needed system headers.
16779 (remote_open): Remove strchr prototype.
16780 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
16781 * regcache.c (supply_register): Change buf argument to const void *.
16782 (supply_register_by_name): Likewise.
16783 (collect_register): Change buf argument to void *.
16784 (collect_register_by_name): Likewise.
16785 * regcache.h: Add missing prototypes.
16786 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
16787 * server.c (handle_query): New function.
16788 (attached): New static variable, moved out of main.
16789 (main): Quiet longjmp clobber warnings.
16790 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
16791 * utils.c (error): Remove NORETURN.
16792 (fatal): Likewise.
This page took 0.458813 seconds and 4 git commands to generate.