30a5a447b3350598b2d7d4eb94a0b51252ae7a8a
[deliverable/binutils-gdb.git] / gdb / gdbserver / ChangeLog
1 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * Makefile.in (%.o: ../common/%.c): New rule.
4 (signals.o: ../common/signals.c): Remove.
5 (print-utils.o: ../common/print-utils.c): Remove.
6 (rsp-low.o: ../common/rsp-low.c): Remove.
7 (common-utils.o: ../common/common-utils.c): Remove.
8 (posix-strerror.o: ../common/posix-strerror.c): Remove.
9 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
10 (vec.o: ../common/vec.c): Remove.
11 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
12 (xml-utils.o: ../common/xml-utils.c): Remove.
13 (ptid.o: ../common/ptid.c): Remove.
14 (buffer.o: ../common/buffer.c): Remove.
15 (format.o: ../common/format.c): Remove.
16 (filestuff.o: ../common/filestuff.c): Remove.
17 (agent.o: ../common/agent.c): Remove.
18 (errors.o: ../common/errors.c): Remove.
19 (environ.o: ../common/environ.c): Remove.
20 (common-debug.o: ../common/common-debug.c): Remove.
21 (cleanups.o: ../common/cleanups.c): Remove.
22 (common-exceptions.o: ../common/common-exceptions.c): Remove.
23 (fileio.o: ../common/fileio.c): Remove.
24 (common-regcache.o: ../common/common-regcache.c): Remove.
25 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
26 (new-op.o: ../common/new-op.c): Remove.
27 (btrace-common.o: ../common/btrace-common.c): Remove.
28
29 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
30
31 * Makefile.in (%.o: ../target/%.c): New rule.
32 (waitstatus.o: ../target/waitstatus.c): Remove.
33
34 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
35
36 * Makefile.in
37 (%.c: ../regformats/%.dat,
38 (%.c: ../regformats/arm/%.dat,
39 (%.c: ../regformats/i386/%.dat,
40 (%.c: ../regformats/rs6000/%.dat): New rules.
41 (aarch64.c): Remove.
42 (reg-arm.c): Remove.
43 (arm-with-iwmmxt.c): Remove.
44 (arm-with-vfpv2.c): Remove.
45 (arm-with-vfpv3.c): Remove.
46 (arm-with-neon.c): Remove.
47 (reg-bfin.c): Remove.
48 (reg-cris.c): Remove.
49 (reg-crisv32.c): Remove.
50 (i386.c): Remove.
51 (i386-linux.c): Remove.
52 (i386-avx.c): Remove.
53 (i386-avx-linux.c): Remove.
54 (i386-avx-avx512.c): Remove.
55 (i386-avx-avx512-linux.c): Remove.
56 (i386-mpx.c): Remove.
57 (i386-mpx-linux.c): Remove.
58 (i386-avx-mpx-avx512-pku.c): Remove.
59 (i386-avx-mpx-avx512-pku-linux.c): Remove.
60 (i386-avx-mpx.c): Remove.
61 (i386-avx-mpx-linux.c): Remove.
62 (i386-mmx.c): Remove.
63 (i386-mmx-linux.c): Remove.
64 (reg-ia64.c): Remove.
65 (reg-m32r.c): Remove.
66 (reg-m68k.c): Remove.
67 (reg-cf.c): Remove.
68 (mips-linux.c): Remove.
69 (mips-dsp-linux.c): Remove.
70 (mips64-linux.c): Remove.
71 (mips64-dsp-linux.c): Remove.
72 (nios2-linux.c): Remove.
73 (powerpc-32.c): Remove.
74 (powerpc-32l.c): Remove.
75 (powerpc-altivec32l.c): Remove.
76 (powerpc-cell32l.c): Remove.
77 (powerpc-vsx32l.c): Remove.
78 (powerpc-isa205-32l.c): Remove.
79 (powerpc-isa205-altivec32l.c): Remove.
80 (powerpc-isa205-vsx32l.c): Remove.
81 (powerpc-e500l.c): Remove.
82 (powerpc-64l.c): Remove.
83 (powerpc-altivec64l.c): Remove.
84 (powerpc-cell64l.c): Remove.
85 (powerpc-vsx64l.c): Remove.
86 (powerpc-isa205-64l.c): Remove.
87 (powerpc-isa205-altivec64l.c): Remove.
88 (powerpc-isa205-vsx64l.c): Remove.
89 (s390-linux32.c): Remove.
90 (s390-linux32v1.c): Remove.
91 (s390-linux32v2.c): Remove.
92 (s390-linux64.c): Remove.
93 (s390-linux64v1.c): Remove.
94 (s390-linux64v2.c): Remove.
95 (s390-te-linux64.c): Remove.
96 (s390-vx-linux64.c): Remove.
97 (s390-tevx-linux64.c): Remove.
98 (s390x-linux64.c): Remove.
99 (s390x-linux64v1.c): Remove.
100 (s390x-linux64v2.c): Remove.
101 (s390x-te-linux64.c): Remove.
102 (s390x-vx-linux64.c): Remove.
103 (s390x-tevx-linux64.c): Remove.
104 (tic6x-c64xp-linux.c): Remove.
105 (tic6x-c64x-linux.c): Remove.
106 (tic6x-c62x-linux.c): Remove.
107 (reg-sh.c): Remove.
108 (reg-sparc64.c): Remove.
109 (reg-spu.c): Remove.
110 (amd64.c): Remove.
111 (amd64-linux.c): Remove.
112 (amd64-avx.c): Remove.
113 (amd64-avx-linux.c): Remove.
114 (amd64-avx-avx512.c): Remove.
115 (amd64-avx-avx512-linux.c): Remove.
116 (amd64-mpx.c): Remove.
117 (amd64-mpx-linux.c): Remove.
118 (amd64-avx-mpx-avx512-pku.c): Remove.
119 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
120 (amd64-avx-mpx.c): Remove.
121 (amd64-avx-mpx-linux.c): Remove.
122 (x32.c): Remove.
123 (x32-linux.c): Remove.
124 (x32-avx.c): Remove.
125 (x32-avx-linux.c): Remove.
126 (x32-avx-avx512.c): Remove.
127 (x32-avx-avx512-linux.c): Remove.
128 (reg-xtensa.c): Remove.
129 (reg-tilegx.c): Remove.
130 (reg-tilegx32.c): Remove.
131
132 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
133
134 * Makefile.in (SFILES): Add "common/environ.c".
135 (OBJS): Add "common/environ.h".
136
137 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
138
139 * configure.ac: Check if the fs_base and gs_base members of
140 `struct user_regs_struct' exist.
141 * config.in: Regenerated.
142 * configure: Likewise.
143
144 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
145
146 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
147 target_read_memory.
148 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
149 (get_next_pcs_syscall_next_pc): Likewise.
150
151 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
152
153 * win32-i386-low.c: Fix incorrect reference to a couple source files.
154 * nto-x86-low.c: Likewise.
155
156 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
157
158 * Makefile.in: Include disable-implicit-rules.mk.
159
160 2016-11-23 Pedro Alves <palves@redhat.com>
161
162 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
163 (debug_vprintf): Use std::chrono::steady_clock instead of
164 gettimeofday. Use '.' instead of ':'.
165 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
166 (get_timestamp): Use std::chrono::steady_clock instead of
167 gettimeofday.
168
169 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
170
171 * Makefile.in: Fix whitespace formatting.
172
173 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
174
175 * Makefile.in (SFILES, OBS): Flatten list and order
176 alphabetically.
177
178 2016-11-23 Pedro Alves <palves@redhat.com>
179
180 * event-loop.c (handle_file_event): Use warning.
181 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
182 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
183 Use warning.
184
185 2016-11-23 Pedro Alves <palves@redhat.com>
186
187 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
188 output.
189 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
190 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
191 debug_printf and debug_flush for debug output.
192 * server.c (handle_general_set): Likewise.
193 * thread-db.c (try_thread_db_load): Use debug_printf for debug
194 output.
195
196 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
197
198 * Makefile.in (.c.o): Replace rule with ...
199 (%.o: %.c): ... this one.
200
201 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
202
203 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
204 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
205 make.
206 * configure.ac: Remove checks for the make program.
207 * configure: Re-generate.
208
209 2016-10-28 Pedro Alves <palves@redhat.com>
210
211 * Makefile.in (CXX_DIALECT): Get from configure.
212 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
213 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
214 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
215 * config.in: Regenerate.
216 * configure: Regenerate.
217
218 2016-10-27 Yao Qi <yao.qi@linaro.org>
219
220 * linux-low.c (linux_supports_range_stepping): Return true if
221 can_software_single_step return true.
222
223 2016-10-27 Yao Qi <yao.qi@linaro.org>
224
225 * inferiors.c (find_inferior_in_random): New function.
226 * inferiors.h (find_inferior_in_random): Declare.
227 * linux-low.c (linux_wait_for_event_filtered): Call
228 find_inferior_in_random instead of find_inferior.
229
230 2016-10-27 Yao Qi <yao.qi@linaro.org>
231
232 * linux-low.c (linux_wait_1): If single-step breakpoints are
233 inserted, remove them.
234
235 2016-10-26 Pedro Alves <palves@redhat.com>
236
237 * linux-low.c (handle_extended_wait): Link parent/child fork
238 threads.
239 (linux_wait_1): Unlink them.
240 (linux_set_resume_request): Ignore resume requests for
241 already-resumed and unhandled fork child threads.
242 * linux-low.h (struct lwp_info) <fork_relative>: New field.
243 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
244 New functions.
245 (handle_v_requests) <vCont>: Don't call require_running.
246 * server.h (in_queued_stop_replies): New declaration.
247
248 2016-10-24 Yao Qi <yao.qi@linaro.org>
249
250 PR server/20733
251 * linux-aarch64-low.c (append_insns): Cast the return value to
252 'uint32_t *'.
253
254 2016-10-10 Yao Qi <yao.qi@linaro.org>
255
256 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
257
258 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
259
260 * target.c (target_supports_multi_process): New function, moved
261 from...
262 * target.h (target_supports_multi_process): ... here. Remove
263 macro.
264
265 2016-10-05 Tom Tromey <tom@tromey.com>
266
267 PR remote/20655:
268 * tracepoint.c (handle_tracepoint_bkpts): Check
269 ipa_error_tracepoint, not ipa_stopping_tracepoint.
270
271 2016-10-05 Yao Qi <yao.qi@linaro.org>
272
273 * configure.srv: Update the path of arm-*.xml files.
274
275 2016-10-05 Terry Guo <terry.guo@arm.com>
276 Yao Qi <yao.qi@linaro.org>
277
278 * Makefile.in: Adjust the path of rules.
279 * configure.srv: Update the path of xml files.
280 * regformats/arm-with-iwmmxt.dat: Regenerated.
281 * regformats/arm-with-neon.dat: Likewise.
282 * regformats/arm-with-vfpv2.dat: Likewise.
283 * regformats/arm-with-vfpv3.dat Likewise.
284
285 2016-09-30 Yao Qi <yao.qi@linaro.org>
286
287 PR gdbserver/20627
288 * target.c (target_stop_and_wait): Don't call
289 target_continue_no_signal, use resume_stop instead.
290
291 2016-09-26 Yao Qi <yao.qi@linaro.org>
292
293 * linux-low.c (linux_wait_1): Call debug_exit.
294
295 2016-09-23 Pedro Alves <palves@redhat.com>
296
297 * Makefile.in (SFILES): Add common/new-op.c.
298 (OBS): Add common/new-op.o.
299 (new-op.o): New rule.
300
301 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
302
303 * .gitinore: Ignore more files.
304
305 2016-09-21 Yao Qi <yao.qi@linaro.org>
306
307 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
308 23.
309
310 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
311
312 * server.c (start_inferior): Call target_mourn_inferior instead of
313 mourn_inferior; pass ptid_t argument to it.
314 (resume): Likewise.
315 (handle_target_event): Likewise.
316 * target.c (target_mourn_inferior): New function.
317 * target.h (mourn_inferior): Delete macro.
318
319 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
320
321 * linux-low.c (lwp_is_stepping): New function.
322
323 2016-09-06 Carl Love <cel@us.ibm.com>
324
325 * server.c (start_inferior): Fixed comment, requested comment change
326 didn't get updated correctly. Removed reference to ptrace () call as
327 it is only true on Linux systems.
328
329 2016-09-06 Carl Love <cel@us.ibm.com>
330
331 * server.c (start_inferior): Do not call
332 function target_post_create_inferior () if the
333 inferior process has already exited.
334
335 2016-09-05 Pedro Alves <palves@redhat.com>
336
337 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
338 (COMPILE.pre, CC_LD): Use CXX directly.
339 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
340 * acinclude.m4: Don't include build-with-cxx.m4.
341 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
342 * configure: Regenerate.
343
344 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
345
346 PR gdb/19495
347 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
348 call writing data to own_buf.
349
350 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
351
352 * target.c (mywait): Call target_wait instead of
353 the_target->wait.
354 (target_wait): New function.
355
356 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
357
358 * server.c (start_inferior): New variable 'ptid'. Replace calls
359 to the_target->resume by target_continue{,_no_signal}, depending
360 on the case.
361 * target.c (target_stop_and_wait): Call target_continue_no_signal
362 instead of the_target->resume.
363 (target_continue): New function.
364
365 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
366
367 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
368
369 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
370
371 PR server/20491
372 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
373 ps_prochandle.
374 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
375 * linux-arm-low.c (ps_get_thread_area): Likewise.
376 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
377 * linux-m68k-low.c (ps_get_thread_area): Likewise.
378 * linux-mips-low.c (ps_get_thread_area): Likewise.
379 * linux-nios2-low.c (ps_get_thread_area): Likewise.
380 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
381 * linux-x86-low.c (ps_get_thread_area): Likewise.
382 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
383
384 2016-08-19 Pedro Alves <palves@redhat.com>
385
386 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
387
388 2016-08-19 Pedro Alves <palves@redhat.com>
389
390 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
391 comment. Use memcpy instead of casting through unsigned long.
392
393 2016-08-19 Pedro Alves <palves@redhat.com>
394
395 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
396 allocating around 0x80000000.
397
398 2016-08-19 Pedro Alves <palves@redhat.com>
399
400 PR gdb/20415
401 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
402 (x32-avx512-linux-ipa.o): New rules.
403 * configure.ac (x86_64-*-linux*): New x32 check.
404 * configure.srv (ipa_x32_linux_regobj): New.
405 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
406 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
407 descriptions.
408 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
409 descriptions.
410 * configure: Regenerate.
411
412 2016-08-09 Pedro Alves <palves@redhat.com>
413
414 PR gdb/18653
415 * Makefile.in (OBS): Add signals-state-save-restore.o.
416 (signals-state-save-restore.o): New rule.
417 * config.in: Regenerate.
418 * configure: Regenerate.
419 * linux-low.c: Include "signals-state-save-restore.h".
420 (linux_create_inferior): Call
421 restore_original_signals_state.
422 * server.c: Include "dispositions-save-restore.h".
423 (captured_main): Call save_original_signals_state.
424
425 2016-08-05 Pedro Alves <palves@redhat.com>
426
427 * configure: Regenerate.
428
429 2016-08-04 Yao Qi <yao.qi@linaro.org>
430
431 * linux-low.c (regsets_fetch_inferior_registers): Check
432 errno is ESRCH or not.
433
434 2016-08-02 Yao Qi <yao.qi@linaro.org>
435
436 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
437 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
438 (thread_db_load_search): Update.
439 (try_thread_db_load_1): Don't look for td_ta_event_addr,
440 td_ta_set_event and td_ta_event_getmsg.
441
442 2016-07-26 Pedro Alves <palves@redhat.com>
443
444 PR server/20414
445 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
446 of unsigned long for 64-bit registers and use uint32_t instead of
447 unsigned int for 32-bit registers.
448
449 2016-07-26 Pedro Alves <palves@redhat.com>
450
451 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
452 to 'ptrace'.
453
454 2016-07-21 Tom Tromey <tom@tromey.com>
455
456 * configure: Rebuild.
457
458 2016-07-21 Yao Qi <yao.qi@linaro.org>
459
460 * mem-break.c (find_gdb_breakpoint): Cast bp to
461 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
462
463 2016-07-21 Yao Qi <yao.qi@linaro.org>
464
465 * server.c (handle_v_requests): Support s and S actions
466 if target_supports_software_single_step return true.
467
468 2016-07-21 Yao Qi <yao.qi@linaro.org>
469
470 * linux-low.c (resume_stopped_resumed_lwps): If resume request
471 is resume_step, call maybe_hw_step.
472 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
473 and unstop them.
474 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
475 breakpoints or not.
476 (proceed_one_lwp): If resume request is resume_step, install
477 reinsert breakpoints and call maybe_hw_step.
478
479 2016-07-21 Yao Qi <yao.qi@linaro.org>
480
481 * linux-low.c (proceed_one_lwp): Declare.
482 (linux_resume_one_thread): Remove local variable 'step'.
483 Lift code enqueue signal. Call proceed_one_lwp instead of
484 linux_resume_one_lwp.
485
486 2016-07-21 Yao Qi <yao.qi@linaro.org>
487
488 * linux-low.c (linux_resume_one_thread): Call
489 enqueue_pending_signal.
490
491 2016-07-21 Yao Qi <yao.qi@linaro.org>
492
493 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
494 * inferiors.c (do_restore_current_thread_cleanup): New function.
495 (make_cleanup_restore_current_thread): Likewise.
496 * linux-low.c (install_software_single_step_breakpoints): Call
497 make_cleanup_restore_current_thread. Switch current_thread to
498 thread.
499
500 2016-07-21 Yao Qi <yao.qi@linaro.org>
501
502 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
503 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
504 (clone_one_breakpoint): Likewise.
505 (delete_reinsert_breakpoints): Change parameter to thread.
506 Callers updated.
507 (has_reinsert_breakpoints): Likewise.
508 (uninsert_reinsert_breakpoints): Likewise.
509 (reinsert_reinsert_breakpoints): Likewise.
510 * mem-break.h (set_reinsert_breakpoint): Update declaration.
511 (delete_reinsert_breakpoints): Likewise.
512 (reinsert_reinsert_breakpoints): Likewise.
513 (uninsert_reinsert_breakpoints): Likewise.
514 (has_reinsert_breakpoints): Likewise.
515
516 2016-07-21 Yao Qi <yao.qi@linaro.org>
517
518 * inferiors.c (get_thread_process): Make parameter const.
519 * inferiors.h (get_thread_process): Update declaration.
520 * mem-break.c (clone_all_breakpoints): Remove all parameters.
521 Add new parameters child_thread and parent_thread. Callers
522 updated.
523 * mem-break.h (clone_all_breakpoints): Update declaration.
524
525 2016-07-21 Yao Qi <yao.qi@linaro.org>
526
527 * mem-break.c (struct breakpoint) <cond_list>: Remove.
528 <command_list, handler>: Remove.
529 (struct gdb_breakpoint): New.
530 (struct other_breakpoint): New.
531 (struct reinsert_breakpoint): New.
532 (is_gdb_breakpoint): New function.
533 (any_persistent_commands): Update command_list if
534 is_gdb_breakpoint returns true.
535 (set_breakpoint): Create breakpoints according to their types.
536 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
537 (set_gdb_breakpoint_1): Likewise.
538 (set_gdb_breakpoint): Likewise.
539 (clear_breakpoint_conditions): Change parameter type to
540 'struct gdb_breakpoint *'.
541 (clear_breakpoint_commands): Likewise.
542 (clear_breakpoint_conditions_and_commands): Likewise.
543 (add_condition_to_breakpoint): Likewise.
544 (add_breakpoint_condition): Likewise.
545 (add_commands_to_breakpoint): Likewise.
546 (check_breakpoints): Check other_breakpoint.
547 (clone_one_breakpoint): Clone breakpopint according to its type.
548 * mem-break.h (struct gdb_breakpoint): Declare.
549 (set_gdb_breakpoint): Update declaration.
550 (clear_breakpoint_conditions_and_commands): Likewise.
551 (add_breakpoint_condition): Likewise.
552 (add_breakpoint_commands): Likewise.
553 * server.c (process_point_options): Change parameter type to
554 'struct gdb_breakpoint *'.
555
556 2016-07-21 Yao Qi <yao.qi@linaro.org>
557
558 * mem-break.c (set_breakpoint_at): Rename it to ...
559 (set_breakpoint_type_at): ... it.
560 (set_breakpoint_at): Call set_breakpoint_type_at.
561 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
562 * mem-break.h (set_breakpoint_at): Update comments.
563
564 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
565
566 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
567 to buf parameter.
568 (nios2_store_gregset): Likewise.
569
570 2016-07-01 Pedro Alves <palves@redhat.com>
571 Antoine Tremblay <antoine.tremblay@ericsson.com>
572
573 * linux-low.c: Change interface to take the target lwp_info
574 pointer directly and return void. Handle detaching from a zombie
575 thread.
576 (linux_detach_lwp_callback): New function.
577 (linux_detach): Detach from the leader thread after detaching from
578 the clone threads.
579
580 2016-06-28 Yao Qi <yao.qi@linaro.org>
581
582 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
583 for variable new_offset.
584 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
585 (aarch64_ftrace_insn_reloc_cb): Likewise.
586 (aarch64_ftrace_insn_reloc_tb): Likewise.
587 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
588 PRIx64 instead of PRIx32.
589
590 2016-06-28 Yao Qi <yao.qi@linaro.org>
591
592 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
593 (the_low_target): Install arm_get_syscall_trapinfo.
594
595 2016-06-28 Yao Qi <yao.qi@linaro.org>
596
597 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
598 function.
599 (the_low_target): Install aarch64_get_syscall_trapinfo.
600
601 2016-06-28 Yao Qi <yao.qi@linaro.org>
602
603 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
604 Callers updated.
605 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
606 Remove parameter sysno.
607 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
608 sysret.
609
610 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
611
612 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
613 (s390_emit_ne_goto): Likewise.
614 (s390_emit_lt_goto): Likewise.
615 (s390_emit_le_goto): Likewise.
616 (s390_emit_gt_goto): Likewise.
617 (s390_emit_ge_goto): Likewise.
618 (s390x_emit_eq_goto): Likewise.
619 (s390x_emit_ne_goto): Likewise.
620 (s390x_emit_lt_goto): Likewise.
621 (s390x_emit_le_goto): Likewise.
622 (s390x_emit_gt_goto): Likewise.
623 (s390x_emit_ge_goto): Likewise.
624 (s390_emit_ops_impl): Mark variable static.
625 (s390x_emit_ops): Likewise.
626
627 2016-06-17 Yao Qi <yao.qi@linaro.org>
628
629 * linux-low.c (handle_extended_wait): Call
630 uninsert_reinsert_breakpoints for the parent process. Remove
631 reinsert breakpoints from the child process. Reinsert them to
632 the parent process when vfork is done.
633 * mem-break.c (uninsert_reinsert_breakpoints): New function.
634 (reinsert_reinsert_breakpoints): New function.
635 * mem-break.h (uninsert_reinsert_breakpoints): Declare
636 (reinsert_reinsert_breakpoints): Declare.
637
638 2016-06-17 Yao Qi <yao.qi@linaro.org>
639
640 * linux-low.c (handle_extended_wait): If the parent is doing
641 step-over, remove the reinsert breakpoints from the forked child.
642
643 2016-06-17 Yao Qi <yao.qi@linaro.org>
644
645 * linux-low.c (unsuspend_all_lwps): Declare.
646 (linux_low_filter_event): If thread exited, call finish_step_over.
647 If step-over is finished, unsuspend other threads.
648
649 2016-06-17 Yao Qi <yao.qi@linaro.org>
650
651 * linux-low.c (linux_resume_one_lwp_throw): Assert
652 has_reinsert_breakpoints returns false.
653 * mem-break.c (delete_disabled_breakpoints): Assert
654 bp type isn't reinsert_breakpoint.
655
656 2016-06-17 Yao Qi <yao.qi@linaro.org>
657
658 * linux-low.c (maybe_hw_step): New function.
659 (linux_resume_one_lwp_throw): Call maybe_hw_step.
660 (finish_step_over): Switch current_thread to lwp temporarily,
661 and assert has_reinsert_breakpoints returns true.
662 (proceed_one_lwp): Call maybe_hw_step.
663 * mem-break.c (has_reinsert_breakpoints): New function.
664 * mem-break.h (has_reinsert_breakpoints): Declare.
665
666 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
667
668 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
669
670 2016-05-17 Yao Qi <yao.qi@linaro.org>
671
672 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
673 instead of find_inferior.
674
675 2016-05-05 Yao Qi <yao.qi@linaro.org>
676
677 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
678 Initialize res to zero.
679
680 2016-05-05 Yao Qi <yao.qi@linaro.org>
681
682 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
683 to uint32_t.
684
685 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
686
687 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
688 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
689 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
690
691 2016-04-28 Par Olsson <par.olsson@windriver.com>
692 Simon Marchi <simon.marchi@ericsson.com>
693
694 * tracepoint.c (write_inferior_int8): New function.
695 (cmd_qtenable_disable): Write enable flag using
696 write_inferior_int8.
697
698 2016-04-25 Yao Qi <yao.qi@linaro.org>
699
700 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
701 (need_step_over_p): Return zero if the LWP has pending signals
702 can be delivered on software single step target.
703
704 2016-04-25 Yao Qi <yao.qi@linaro.org>
705
706 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
707 return instead of error.
708
709 2016-04-22 Yao Qi <yao.qi@linaro.org>
710
711 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
712 to 23.
713
714 2016-04-22 Yao Qi <yao.qi@linaro.org>
715
716 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
717 signal when stepping over breakpoint with software single
718 step.
719
720 2016-04-21 Pedro Alves <palves@redhat.com>
721
722 * linux-s390-low.c (s390_collect_ptrace_register)
723 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
724 add casts.
725 (s390_check_regset): Use void * instead of gdb_byte *.
726
727 2016-04-20 Pedro Alves <palves@redhat.com>
728
729 * configure: Renegerate.
730
731 2016-04-20 Yao Qi <yao.qi@linaro.org>
732
733 * linux-aarch32-low.c: Include "arch/arm-linux.h".
734 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
735 number 16.
736 (arm_store_gregset): Likewise.
737
738 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
739
740 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
741 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
742 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
743 (amd64-avx-mpx-linux.c): New rules.
744 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
745 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
746 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
747 (srv_amd64_regobj): Add amd64-avx-mpx.o.
748 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
749 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
750 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
751 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
752 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
753 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
754 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
755 * linux-x86-low.c (x86_linux_read_description): Add case for
756 X86_XSTATE_AVX_MPX_MASK.
757 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
758 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
759 init_registers_i386_avx_mpx_linux.
760 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
761 (initialize_low_tracepoint): Call
762 init_registers_i386_avx_mpx_linux.
763 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
764 (initialize_low_tracepoint): Call
765 init_registers_amd64_avx_mpx_linux.
766 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
767 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
768 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
769 declarations.
770
771 2016-04-18 Pedro Alves <palves@redhat.com>
772
773 * configure: Regenerate.
774
775 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
776
777 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
778 (aarch64_emit_sub): Likewise.
779
780 2016-04-12 Pedro Alves <palves@redhat.com>
781
782 * utils.c (prepare_to_throw_exception): Delete.
783
784 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
785
786 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
787
788 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
789
790 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
791
792 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
793
794 * linux-aarch64-ipa.c: Add <elf.h> include.
795 * linux-ppc-ipa.c: Add <elf.h> include.
796 * linux-s390-ipa.c: Add <elf.h> include.
797
798 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
799
800 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
801 (get_raw_reg_ptr): Likewise.
802 (get_trace_state_variable_value_ptr): Likewise.
803 (set_trace_state_variable_value_ptr): Likewise.
804 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
805 char *.
806
807 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
808 Marcin Kościelnicki <koriakin@0x04.net>
809
810 PR/17221
811 * linux-ppc-low.c (emit_insns): New function.
812 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
813 (ppc_emit_prologue): New function.
814 (ppc_emit_epilogue): New function.
815 (ppc_emit_add): New function.
816 (ppc_emit_sub): New function.
817 (ppc_emit_mul): New function.
818 (ppc_emit_lsh): New function.
819 (ppc_emit_rsh_signed): New function.
820 (ppc_emit_rsh_unsigned): New function.
821 (ppc_emit_ext): New function.
822 (ppc_emit_zero_ext): New function.
823 (ppc_emit_log_not): New function.
824 (ppc_emit_bit_and): New function.
825 (ppc_emit_bit_or): New function.
826 (ppc_emit_bit_xor): New function.
827 (ppc_emit_bit_not): New function.
828 (ppc_emit_equal): New function.
829 (ppc_emit_less_signed): New function.
830 (ppc_emit_less_unsigned): New function.
831 (ppc_emit_ref): New function.
832 (ppc_emit_const): New function.
833 (ppc_emit_reg): New function.
834 (ppc_emit_pop): New function.
835 (ppc_emit_stack_flush): New function.
836 (ppc_emit_swap): New function.
837 (ppc_emit_stack_adjust): New function.
838 (ppc_emit_call): New function.
839 (ppc_emit_int_call_1): New function.
840 (ppc_emit_void_call_2): New function.
841 (ppc_emit_if_goto): New function.
842 (ppc_emit_goto): New function.
843 (ppc_emit_eq_goto): New function.
844 (ppc_emit_ne_goto): New function.
845 (ppc_emit_lt_goto): New function.
846 (ppc_emit_le_goto): New function.
847 (ppc_emit_gt_goto): New function.
848 (ppc_emit_ge_goto): New function.
849 (ppc_write_goto_address): New function.
850 (ppc_emit_ops_impl): New static variable.
851 (ppc64v1_emit_prologue): New function.
852 (ppc64v2_emit_prologue): New function.
853 (ppc64_emit_epilogue): New function.
854 (ppc64_emit_add): New function.
855 (ppc64_emit_sub): New function.
856 (ppc64_emit_mul): New function.
857 (ppc64_emit_lsh): New function.
858 (ppc64_emit_rsh_signed): New function.
859 (ppc64_emit_rsh_unsigned): New function.
860 (ppc64_emit_ext): New function.
861 (ppc64_emit_zero_ext): New function.
862 (ppc64_emit_log_not): New function.
863 (ppc64_emit_bit_and): New function.
864 (ppc64_emit_bit_or): New function.
865 (ppc64_emit_bit_xor): New function.
866 (ppc64_emit_bit_not): New function.
867 (ppc64_emit_equal): New function.
868 (ppc64_emit_less_signed): New function.
869 (ppc64_emit_less_unsigned): New function.
870 (ppc64_emit_ref): New function.
871 (ppc64_emit_const): New function.
872 (ppc64v1_emit_reg): New function.
873 (ppc64v2_emit_reg): New function.
874 (ppc64_emit_pop): New function.
875 (ppc64_emit_stack_flush): New function.
876 (ppc64_emit_swap): New function.
877 (ppc64v1_emit_call): New function.
878 (ppc64v2_emit_call): New function.
879 (ppc64v1_emit_int_call_1): New function.
880 (ppc64v2_emit_int_call_1): New function.
881 (ppc64v1_emit_void_call_2): New function.
882 (ppc64v2_emit_void_call_2): New function.
883 (ppc64_emit_if_goto): New function.
884 (ppc64_emit_eq_goto): New function.
885 (ppc64_emit_ne_goto): New function.
886 (ppc64_emit_lt_goto): New function.
887 (ppc64_emit_le_goto): New function.
888 (ppc64_emit_gt_goto): New function.
889 (ppc64_emit_ge_goto): New function.
890 (ppc64v1_emit_ops_impl): New static variable.
891 (ppc64v2_emit_ops_impl): New static variable.
892 (ppc_emit_ops): New function.
893 (linux_low_target): Wire in ppc_emit_ops.
894
895 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
896 Marcin Kościelnicki <koriakin@0x04.net>
897
898 PR/17221
899 * Makefile.in: Add powerpc-*-ipa.o
900 * configure.srv: Add ipa_obj for powerpc*-linux.
901 * linux-ppc-ipa.c: New file.
902 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
903 includes.
904 (PPC_FIELD): New macro.
905 (PPC_SEXT): New macro.
906 (PPC_OP6): New macro.
907 (PPC_BO): New macro.
908 (PPC_LI): New macro.
909 (PPC_BD): New macro.
910 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
911 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
912 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
913 (ppc_get_thread_area): New function.
914 (is_elfv2_inferior): New function.
915 (gen_ds_form): New function.
916 (GEN_STD): New macro.
917 (GEN_STDU): New macro.
918 (GEN_LD): New macro.
919 (GEN_LDU): New macro.
920 (gen_d_form): New function.
921 (GEN_ADDI): New macro.
922 (GEN_ADDIS): New macro.
923 (GEN_LI): New macro.
924 (GEN_LIS): New macro.
925 (GEN_ORI): New macro.
926 (GEN_ORIS): New macro.
927 (GEN_LWZ): New macro.
928 (GEN_STW): New macro.
929 (GEN_STWU): New macro.
930 (gen_xfx_form): New function.
931 (GEN_MFSPR): New macro.
932 (GEN_MTSPR): New macro.
933 (GEN_MFCR): New macro.
934 (GEN_MTCR): New macro.
935 (GEN_SYNC): New macro.
936 (GEN_LWSYNC): New macro.
937 (gen_x_form): New function.
938 (GEN_OR): New macro.
939 (GEN_MR): New macro.
940 (GEN_LWARX): New macro.
941 (GEN_STWCX): New macro.
942 (GEN_CMPW): New macro.
943 (gen_md_form): New function.
944 (GEN_RLDICL): New macro.
945 (GEN_RLDICR): New macro.
946 (gen_i_form): New function.
947 (GEN_B): New macro.
948 (GEN_BL): New macro.
949 (gen_b_form): New function.
950 (GEN_BNE): New macro.
951 (GEN_LOAD): New macro.
952 (GEN_STORE): New macro.
953 (gen_limm): New function.
954 (gen_atomic_xchg): New function.
955 (gen_call): New function.
956 (ppc_relocate_instruction): New function.
957 (ppc_install_fast_tracepoint_jump_pad): New function.
958 (ppc_get_min_fast_tracepoint_insn_len): New function.
959 (ppc_get_ipa_tdesc_idx): New function.
960 (the_low_target): Wire in the new functions.
961 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
962 tdescs.
963 * linux-ppc-tdesc.h: New file.
964
965 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
966
967 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
968 (alloc_jump_pad_buffer): New function.
969 * linux-amd64-ipa.c: Add <sys/mman.h> include.
970 (alloc_jump_pad_buffer): New function.
971 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
972 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
973 (alloc_jump_pad_buffer): New function.
974 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
975 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
976 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
977 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
978
979 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
980
981 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
982 * linux-amd64-ipa.c: Likewise.
983 * linux-i386-ipa.c: Likewise.
984 * linux-s390-ipa.c: Likewise.
985 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
986 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
987 set_trace_state_variable_value_ptr.
988 (struct ipa_sym_addresses): Likewise.
989 (symbol_list): Likewise.
990 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
991 accessing gdb_collect directly.
992 (gdb_collect_ptr_type): New typedef.
993 (get_raw_reg_ptr_type): New typedef.
994 (get_trace_state_variable_value_ptr_type): New typedef.
995 (set_trace_state_variable_value_ptr_type): New typedef.
996 (gdb_collect_ptr): New global.
997 (get_raw_reg_ptr): New global.
998 (get_trace_state_variable_value_ptr): New global.
999 (set_trace_state_variable_value_ptr): New global.
1000 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
1001 accessing get_raw_reg directly.
1002 (get_get_tsv_func_addr): Likewise for
1003 get_trace_state_variable_value_ptr.
1004 (get_set_tsv_func_addr): Likewise for
1005 set_trace_state_variable_value_ptr.
1006 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
1007
1008 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
1009
1010 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
1011
1012 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
1013
1014 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
1015 packets.
1016 (relocate_instruction): Remove own_buf.
1017 * server.c (own_buf): Make global.
1018 (handle_v_requests): Make global.
1019 * server.h (own_buf): New declaration.
1020 (handle_v_requests): New prototype.
1021
1022 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
1023
1024 PR 18377
1025 * linux-s390-low.c (add_insns): New function.
1026 (s390_emit_prologue): New function.
1027 (s390_emit_epilogue): New function.
1028 (s390_emit_add): New function.
1029 (s390_emit_sub): New function.
1030 (s390_emit_mul): New function.
1031 (s390_emit_lsh): New function.
1032 (s390_emit_rsh_signed): New function.
1033 (s390_emit_rsh_unsigned): New function.
1034 (s390_emit_ext): New function.
1035 (s390_emit_log_not): New function.
1036 (s390_emit_bit_and): New function.
1037 (s390_emit_bit_or): New function.
1038 (s390_emit_bit_xor): New function.
1039 (s390_emit_bit_not): New function.
1040 (s390_emit_equal): New function.
1041 (s390_emit_less_signed): New function.
1042 (s390_emit_less_unsigned): New function.
1043 (s390_emit_ref): New function.
1044 (s390_emit_if_goto): New function.
1045 (s390_emit_goto): New function.
1046 (s390_write_goto_address): New function.
1047 (s390_emit_litpool): New function.
1048 (s390_emit_const): New function.
1049 (s390_emit_call): New function.
1050 (s390_emit_reg): New function.
1051 (s390_emit_pop): New function.
1052 (s390_emit_stack_flush): New function.
1053 (s390_emit_zero_ext): New function.
1054 (s390_emit_swap): New function.
1055 (s390_emit_stack_adjust): New function.
1056 (s390_emit_set_r2): New function.
1057 (s390_emit_int_call_1): New function.
1058 (s390_emit_void_call_2): New function.
1059 (s390_emit_eq_goto): New function.
1060 (s390_emit_ne_goto): New function.
1061 (s390_emit_lt_goto): New function.
1062 (s390_emit_le_goto): New function.
1063 (s390_emit_gt_goto): New function.
1064 (s390_emit_ge_goto): New function.
1065 (s390x_emit_prologue): New function.
1066 (s390x_emit_epilogue): New function.
1067 (s390x_emit_add): New function.
1068 (s390x_emit_sub): New function.
1069 (s390x_emit_mul): New function.
1070 (s390x_emit_lsh): New function.
1071 (s390x_emit_rsh_signed): New function.
1072 (s390x_emit_rsh_unsigned): New function.
1073 (s390x_emit_ext): New function.
1074 (s390x_emit_log_not): New function.
1075 (s390x_emit_bit_and): New function.
1076 (s390x_emit_bit_or): New function.
1077 (s390x_emit_bit_xor): New function.
1078 (s390x_emit_bit_not): New function.
1079 (s390x_emit_equal): New function.
1080 (s390x_emit_less_signed): New function.
1081 (s390x_emit_less_unsigned): New function.
1082 (s390x_emit_ref): New function.
1083 (s390x_emit_if_goto): New function.
1084 (s390x_emit_const): New function.
1085 (s390x_emit_call): New function.
1086 (s390x_emit_reg): New function.
1087 (s390x_emit_pop): New function.
1088 (s390x_emit_stack_flush): New function.
1089 (s390x_emit_zero_ext): New function.
1090 (s390x_emit_swap): New function.
1091 (s390x_emit_stack_adjust): New function.
1092 (s390x_emit_int_call_1): New function.
1093 (s390x_emit_void_call_2): New function.
1094 (s390x_emit_eq_goto): New function.
1095 (s390x_emit_ne_goto): New function.
1096 (s390x_emit_lt_goto): New function.
1097 (s390x_emit_le_goto): New function.
1098 (s390x_emit_gt_goto): New function.
1099 (s390x_emit_ge_goto): New function.
1100 (s390_emit_ops): New function.
1101 (struct linux_target_ops): Fill in emit_ops hook.
1102
1103 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
1104
1105 PR 18377
1106 * Makefile.in: Add s390 IPA files.
1107 * configure.srv: Build IPA for s390.
1108 * linux-s390-ipa.c: New file.
1109 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
1110 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
1111 (tdesc_s390_linux32): Likewise.
1112 (init_registers_s390_linux32v1): Likewise.
1113 (tdesc_s390_linux32v1): Likewise.
1114 (init_registers_s390_linux32v2): Likewise.
1115 (tdesc_s390_linux32v2): Likewise.
1116 (init_registers_s390_linux64): Likewise.
1117 (tdesc_s390_linux64): Likewise.
1118 (init_registers_s390_linux64v1): Likewise.
1119 (tdesc_s390_linux64v1): Likewise.
1120 (init_registers_s390_linux64v2): Likewise.
1121 (tdesc_s390_linux64v2): Likewise.
1122 (init_registers_s390_te_linux64): Likewise.
1123 (tdesc_s390_te_linux64): Likewise.
1124 (init_registers_s390_vx_linux64): Likewise.
1125 (tdesc_s390_vx_linux64): Likewise.
1126 (init_registers_s390_tevx_linux64): Likewise.
1127 (tdesc_s390_tevx_linux64): Likewise.
1128 (init_registers_s390x_linux64): Likewise.
1129 (tdesc_s390x_linux64): Likewise.
1130 (init_registers_s390x_linux64v1): Likewise.
1131 (tdesc_s390x_linux64v1): Likewise.
1132 (init_registers_s390x_linux64v2): Likewise.
1133 (tdesc_s390x_linux64v2): Likewise.
1134 (init_registers_s390x_te_linux64): Likewise.
1135 (tdesc_s390x_te_linux64): Likewise.
1136 (init_registers_s390x_vx_linux64): Likewise.
1137 (tdesc_s390x_vx_linux64): Likewise.
1138 (init_registers_s390x_tevx_linux64): Likewise.
1139 (tdesc_s390x_tevx_linux64): Likewise.
1140 (have_hwcap_s390_vx): New static variable.
1141 (s390_arch_setup): Fill have_hwcap_s390_vx.
1142 (s390_get_thread_area): New function.
1143 (s390_ft_entry_gpr_esa): New const.
1144 (s390_ft_entry_gpr_zarch): New const.
1145 (s390_ft_entry_misc): New const.
1146 (s390_ft_entry_fr): New const.
1147 (s390_ft_entry_vr): New const.
1148 (s390_ft_main_31): New const.
1149 (s390_ft_main_64): New const.
1150 (s390_ft_exit_fr): New const.
1151 (s390_ft_exit_vr): New const.
1152 (s390_ft_exit_misc): New const.
1153 (s390_ft_exit_gpr_esa): New const.
1154 (s390_ft_exit_gpr_zarch): New const.
1155 (append_insns): New function.
1156 (s390_relocate_instruction): New function.
1157 (s390_install_fast_tracepoint_jump_pad): New function.
1158 (s390_get_min_fast_tracepoint_insn_len): New function.
1159 (s390_get_ipa_tdesc_idx): New function.
1160 (struct linux_target_ops): Wire in the above functions.
1161 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
1162 * linux-s390-tdesc.h: New file.
1163
1164 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
1165
1166 * linux-s390-low.c (s390_supports_tracepoints): New function.
1167 (struct linux_target_ops): Fill supports_tracepoints hook.
1168
1169 2016-03-18 Yao Qi <yao.qi@linaro.org>
1170
1171 * linux-low.c (lwp_signal_can_be_delivered): New function.
1172 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
1173
1174 2016-03-18 Yao Qi <yao.qi@linaro.org>
1175
1176 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
1177 0 if signal is enqueued. Remove 'signal' from one debugging
1178 message. Move one debugging message to some lines below.
1179 Remove code setting 'signal' to 0.
1180
1181 2016-03-18 Yao Qi <yao.qi@linaro.org>
1182
1183 * linux-low.c (linux_low_filter_event): Remove redundant
1184 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
1185
1186 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
1187
1188 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
1189 (struct linux_target_ops): Wire in the above.
1190
1191 2016-03-03 Yao Qi <yao.qi@linaro.org>
1192
1193 * linux-low.c: Update comments to start_step_over.
1194
1195 2016-03-03 Yao Qi <yao.qi@linaro.org>
1196
1197 PR server/19736
1198 * linux-low.c (handle_extended_wait): Set child suspended
1199 if event_lwp->bp_reinsert isn't zero.
1200
1201 2016-03-02 Yao Qi <yao.qi@linaro.org>
1202
1203 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
1204 enqueue_pending_signal.
1205
1206 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
1207
1208 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
1209 is actually loaded.
1210
1211 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
1212
1213 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
1214 (s390_regmap_3264) [!__s390x__]: New global.
1215 (s390_collect_ptrace_register): Skip map entries containing -1.
1216 (s390_supply_ptrace_register): Ditto.
1217 (s390_fill_gprs_high): New function.
1218 (s390_store_gprs_high): New function.
1219 (s390_regsets): Add NT_S390_HIGH_GPRS.
1220 (s390_get_hwcap): Enable on 31-bit.
1221 (have_hwcap_s390_high_gprs): Enable on 31-bit.
1222 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
1223 Detect NT_S390_HIGH_GPRS.
1224 (s390_usrregs_info_3264): Enable on 31-bit.
1225 (s390_regs_info): Enable regs_info_3264 on 31-bit.
1226 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
1227
1228 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
1229
1230 PR gdb/13808
1231 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
1232 * configure.srv: Ditto.
1233 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
1234 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
1235 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
1236 (init_registers_amd64_linux): Remove prototype.
1237 (tdesc_amd64_linux): Remove declaration.
1238 (get_ipa_tdesc): New function.
1239 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
1240 initialize remaining tdescs.
1241 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
1242 (init_registers_i386_linux): Remove prototype.
1243 (tdesc_i386_linux): Remove declaration.
1244 (get_ipa_tdesc): New function.
1245 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
1246 initialize remaining tdescs.
1247 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
1248 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
1249 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
1250 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
1251 (x86_get_ipa_tdesc_idx): New function.
1252 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
1253 * linux-x86-tdesc.h: New file.
1254 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
1255 (target_get_ipa_tdesc_idx): New macro.
1256 * tracepoint.c (ipa_tdesc_idx): New macro.
1257 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
1258 (symbol_list): Add ipa_tdesc_idx.
1259 (cmd_qtstart): Write ipa_tdesc_idx in the target.
1260 (ipa_tdesc): Remove.
1261 (ipa_tdesc_idx): New variable.
1262 (get_context_regcache): Use get_ipa_tdesc.
1263 (gdb_collect): Ditto.
1264 (gdb_probe): Ditto.
1265 * tracepoint.h (get_ipa_tdesc): New prototype.
1266 (ipa_tdesc): Remove.
1267
1268 2016-02-24 Pedro Alves <palves@redhat.com>
1269
1270 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
1271 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
1272 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
1273 Factor out common code between the USE_SIGTRAP_SIGINFO and
1274 !USE_SIGTRAP_SIGINFO blocks.
1275 (linux_low_filter_event): Call save_stop_reason instead of
1276 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
1277 Update comments.
1278 (linux_wait_1): Update comments.
1279
1280 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
1281
1282 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
1283 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
1284 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
1285 ppc_insert_point, ppc_remove_point.
1286
1287 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
1288
1289 * linux-s390-low.c (s390_supports_z_point_type): New function.
1290 (struct linux_target_ops): Wire s390_supports_z_point_type in.
1291
1292 2016-02-16 Yao Qi <yao.qi@linaro.org>
1293
1294 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
1295 PC. Get pc from regcache_read_pc.
1296
1297 2016-02-12 Yao Qi <yao.qi@linaro.org>
1298
1299 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
1300 or linux_get_pc_32bit.
1301 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
1302
1303 2016-02-12 Yao Qi <yao.qi@linaro.org>
1304
1305 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
1306 arm_linux_get_next_pcs_fixup.
1307
1308 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
1309
1310 * tracepoint.c (x_tracepoint_action_download): Change
1311 write_inferior_data_ptr to write_inferior_data_pointer.
1312 (cmd_qtstart): Likewise.
1313 (write_inferior_data_ptr): Remove.
1314 (download_agent_expr): Change write_inferior_data_ptr to
1315 write_inferior_data_pointer.
1316 (download_tracepoint_1): Likewise.
1317 (download_tracepoint): Likewise.
1318 (download_trace_state_variables): Likewise.
1319
1320 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
1321 Marcin Kościelnicki <koriakin@0x04.net>
1322
1323 * tracepoint.c (struct tracepoint_action_ops): Remove.
1324 (struct tracepoint_action): Remove ops.
1325 (m_tracepoint_action_download, r_tracepoint_action_download)
1326 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
1327 size and offset accordingly.
1328 (m_tracepoint_action_ops, r_tracepoint_action_ops)
1329 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
1330 (tracepoint_action_send, tracepoint_action_download): New functions.
1331 Helpers for trace action handlers.
1332 (add_tracepoint_action): Remove setup actions ops.
1333 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
1334
1335 2016-02-10 Yao Qi <yao.qi@linaro.org>
1336
1337 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
1338
1339 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
1340
1341 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
1342 to AC_OUTPUT.
1343 * configure: Regenerate.
1344
1345 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
1346
1347 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
1348 void * to gdb_byte *.
1349 * linux-low.c (siginfo_fixup): Likewise.
1350 (linux_xfer_siginfo): Likewise.
1351 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
1352 Likewise.
1353 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
1354
1355 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
1356
1357 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
1358 to srv_tgtobj.
1359 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
1360 to srv_tgtobj.
1361 * linux-x86-low.c [__x86_64__]: Include
1362 "nat/amd64-linux-siginfo.h".
1363 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
1364 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
1365 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
1366 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
1367 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
1368 (cpt_si_fd, si_timerid, si_overrun): Move from
1369 nat/amd64-linux-siginfo.c.
1370 * Makefile.in (amd64-linux-siginfo.o:): New rule.
1371
1372 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
1373
1374 * server.c (skip_to_semicolon): Remove.
1375 (process_point_options): Use strchrnul instead of
1376 skip_to_semicolon.
1377
1378 2016-01-26 Yao Qi <yao.qi@linaro.org>
1379
1380 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
1381 * linux-low.c (install_software_single_step_breakpoints): Don't
1382 call regcache_read_pc.
1383 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
1384 argument pc.
1385
1386 2016-01-26 Yao Qi <yao.qi@linaro.org>
1387
1388 * linux-low.c (install_software_single_step_breakpoints): Call
1389 regcache_read_pc instead of get_pc.
1390
1391 2016-01-26 Yao Qi <yao.qi@linaro.org>
1392
1393 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
1394 (unblock_async_io): Rename to ...
1395 (block_unblock_async_io): ... it. New function.
1396 (enable_async_io): Don't install SIGIO handler. Unblock it
1397 instead.
1398 (disable_async_io): Don't ignore SIGIO. Block it instead.
1399 (initialize_async_io): Install SIGIO handler. Don't call
1400 unblock_async_io.
1401
1402 2016-01-26 Yao Qi <yao.qi@linaro.org>
1403
1404 * remote-utils.c (getpkt): If the buffer isn't empty, and the
1405 first character is '\003', call *the_target->request_interrupt.
1406
1407 2016-01-25 Yao Qi <yao.qi@linaro.org>
1408
1409 * remote-utils.c (new_thread_notify): Remove.
1410 (dead_thread_notify): Likewise.
1411 * remote-utils.h (new_thread_notify): Remove declaration.
1412 (dead_thread_notify): Likewise.
1413
1414 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
1415
1416 * gdb.trace/pending.exp: Fix expected message on continue.
1417
1418 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
1419
1420 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
1421 it works properly on big-endian machines where sizeof (CORE_ADDR)
1422 != sizeof (void *).
1423
1424 2016-01-21 Pedro Alves <palves@redhat.com>
1425
1426 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
1427 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
1428 * configure: Regenerate.
1429
1430 2016-01-21 Yao Qi <yao.qi@linaro.org>
1431
1432 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
1433 is_thumb and set it according to CPSR saved on the stack.
1434 (get_next_pcs_syscall_next_pc): Pass is_thumb to
1435 arm_sigreturn_next_pc.
1436
1437 2016-01-18 Yao Qi <yao.qi@linaro.org>
1438
1439 * linux-low.c (linux_set_pc_64bit): New function.
1440 (linux_get_pc_64bit): New function.
1441 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
1442 Declare.
1443 * linux-sparc-low.c (debug_threads): Remove declaration.
1444 (sparc_get_pc): Remove.
1445 (the_low_target): Use linux_get_pc_64bit instead of
1446 sparc_get_pc.
1447 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
1448 (the_low_target): Use linux_get_pc_64bit and
1449 linux_set_pc_64bit.
1450
1451 2016-01-18 Yao Qi <yao.qi@linaro.org>
1452
1453 * linux-arm-low.c (debug_threads): Remove declaration.
1454 (arm_get_pc, arm_set_pc): Remove.
1455 (the_low_target): Use linux_get_pc_32bit and
1456 linux_set_pc_32bit.
1457 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
1458 (the_low_target): Use linux_get_pc_32bit and
1459 linux_set_pc_32bit.
1460 * linux-cris-low.c (debug_threads): Remove declaration.
1461 (cris_get_pc, cris_set_pc,): Remove.
1462 (the_low_target): Use linux_get_pc_32bit and
1463 linux_set_pc_32bit.
1464 * linux-crisv32-low.c (debug_threads): Remove declaration.
1465 (cris_get_pc, cris_set_pc): Remove.
1466 (the_low_target): Use linux_get_pc_32bit and
1467 linux_set_pc_32bit.
1468 * linux-low.c: Include inttypes.h.
1469 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
1470 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
1471 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
1472 (the_low_target): Use linux_get_pc_32bit and
1473 linux_set_pc_32bit.
1474 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
1475 (the_low_target): Use linux_get_pc_32bit and
1476 linux_set_pc_32bit.
1477 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
1478 (the_low_target): Use linux_get_pc_32bit and
1479 linux_set_pc_32bit.
1480 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
1481 (the_low_target): Use linux_get_pc_32bit and
1482 linux_set_pc_32bit.
1483 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
1484 (the_low_target): Use linux_get_pc_32bit and
1485 linux_set_pc_32bit.
1486
1487 2016-01-18 Gary Benson <gbenson@redhat.com>
1488
1489 * configure.ac (AC_FUNC_FORK): New check.
1490 * config.in: Regenerate.
1491 * configure: Likewise.
1492
1493 2016-01-14 Yao Qi <yao.qi@linaro.org>
1494
1495 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
1496 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
1497 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
1498 arm_get_next_pcs_ctor.
1499
1500 2016-01-12 Josh Stone <jistone@redhat.com>
1501 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1502
1503 * inferiors.h: Include "gdb_vecs.h".
1504 (struct process_info): Add syscalls_to_catch.
1505 * inferiors.c (remove_process): Free syscalls_to_catch.
1506 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
1507 syscall_return stops.
1508 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
1509 * server.c (handle_general_set): Handle QCatchSyscalls.
1510 (handle_query): Report support for QCatchSyscalls.
1511 * target.h (struct target_ops): Add supports_catch_syscall.
1512 (target_supports_catch_syscall): New macro.
1513 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
1514 (struct lwp_info): Add syscall_state.
1515 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
1516 Maintain syscall_state and syscalls_to_catch across exec.
1517 (get_syscall_trapinfo): New function, proxy to the_low_target.
1518 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
1519 (linux_low_filter_event): Toggle syscall_state entry/return for
1520 syscall traps, and set it ignored for all others.
1521 (gdb_catching_syscalls_p): New function.
1522 (gdb_catch_this_syscall_p): New function.
1523 (linux_wait_1): Handle SYSCALL_SIGTRAP.
1524 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
1525 (linux_supports_catch_syscall): New function.
1526 (linux_target_ops): Install it.
1527 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
1528 (the_low_target): Install it.
1529
1530 2016-01-12 Mike Frysinger <vapier@gentoo.org>
1531
1532 * acinclude.m4: Include new ../warning.m4 file.
1533 * configure: Regenerated.
1534 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
1535
1536 2016-01-12 Mike Frysinger <vapier@gentoo.org>
1537
1538 * ax.c (is_goto_target): Mark static.
1539 * linux-low.c (register_addr): Likewise.
1540 (linux_fetch_registers, linux_store_registers): Likewise.
1541 * mem-break.c (any_persistent_commands): Fix old prototype.
1542 (add_commands_to_breakpoint): Mark static.
1543 * regcache.c (find_register_by_name): Delete unused func.
1544 * remote-utils.c (hex_or_minus_one): Mark static.
1545 * server.c (monitor_show_help): Mark static.
1546 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
1547 handle_v_requests): Likewise.
1548
1549 2016-01-12 Pedro Alves <palves@redhat.com>
1550
1551 Remove use of the registered trademark symbol throughout.
1552
1553 2016-01-08 Yao Qi <yao.qi@linaro.org>
1554
1555 * remote-utils.c (getpkt): If c is '\003', call target hook
1556 request_interrupt.
1557
1558 2016-01-06 Yao Qi <yao.qi@linaro.org>
1559
1560 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
1561 linux-aarch32-low.c.
1562 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
1563 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
1564 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
1565 (thumb2_breakpoint): Declare.
1566 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
1567 linux-aarch32-low.h.
1568 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
1569 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
1570 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
1571
1572 2016-01-01 Joel Brobecker <brobecker@adacore.com>
1573
1574 * gdbreplay.c (gdbreplay_version): Change copyright year in
1575 version message.
1576 * server.c (gdbserver_version): Likewise.
1577
1578 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
1579
1580 * server.c (crc32_table): Delete.
1581 (crc32): Use libiberty's xcrc32 function.
1582
1583 2015-12-22 Joel Brobecker <brobecker@adacore.com>
1584
1585 * lynx-low.c (lynx_delete_thread_callback): New function.
1586 (lynx_mourn): Properly delete our process and all of its
1587 threads. Remove call to clear_inferiors.
1588
1589 2015-12-22 Joel Brobecker <brobecker@adacore.com>
1590
1591 * target.c (thread_search_callback): Add check that
1592 the thread_stopped target callback is not NULL before
1593 calling it.
1594
1595 2015-12-21 Yao Qi <yao.qi@linaro.org>
1596
1597 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
1598 arm breakpoint.
1599
1600 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
1601
1602 * server.c (handle_query): Call target_supports_software_single_step.
1603
1604 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
1605
1606 * linux-low.c (single_step): New function.
1607 (linux_resume_one_lwp_throw): Call single_step.
1608 (start_step_over): Likewise.
1609
1610 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
1611
1612 * Makefile.in (SFILES): Append arch/arm-linux.c,
1613 arch/arm-get-next-pcs.c.
1614 (arm-linux.o): New rule.
1615 (arm-get-next-pcs.o): New rule.
1616 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
1617 arm-linux.o.
1618 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
1619 to linux-aarch32-low.c.
1620 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
1621 (arm_breakpoint_len, thumb_breakpoint): Likewise.
1622 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
1623 (thumb2_breakpoint_len): Likewise.
1624 (arm_is_thumb_mode): Make non-static.
1625 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
1626 from linux-aarch32-low.c.
1627 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
1628 (arm_breakpoint_len, thumb_breakpoint): Likewise.
1629 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
1630 (thumb2_breakpoint_len): Likewise.
1631 (arm_is_thumb_mode): New declaration.
1632 * linux-arm-low.c: Include arch/arm-linux.h
1633 aarch/arm-get-next-pcs.h, sys/syscall.h.
1634 (get_next_pcs_ops): New struct.
1635 (get_next_pcs_addr_bits_remove): New function.
1636 (get_next_pcs_is_thumb): New function.
1637 (get_next_pcs_read_memory_unsigned_integer): Likewise.
1638 (arm_sigreturn_next_pc): Likewise.
1639 (get_next_pcs_syscall_next_pc): Likewise.
1640 (arm_gdbserver_get_next_pcs): Likewise.
1641 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
1642 Initialize.
1643 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
1644 * server.h: Include gdb_vecs.h.
1645
1646 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
1647
1648 * Makefile.in (SFILES): Append common/common-regcache.c.
1649 (OBS): Append common-regcache.o.
1650 (common-regcache.o): New rule.
1651 * regcache.c (init_register_cache): Initialize cache to
1652 REG_UNAVAILABLE.
1653 (regcache_raw_read_unsigned): New function.
1654 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
1655 register_status enum.
1656
1657 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
1658
1659 * linux-aarch64-low.c (the_low_targets): Rename
1660 breakpoint_reinsert_addr to get_next_pcs.
1661 * linux-arm-low.c (the_low_targets): Likewise.
1662 * linux-bfin-low.c (the_low_targets): Likewise.
1663 * linux-cris-low.c (the_low_targets): Likewise.
1664 * linux-crisv32-low.c (the_low_targets): Likewise.
1665 * linux-low.c (can_software_single_step): Likewise.
1666 (install_software_single_step_breakpoints): New function.
1667 (start_step_over): Use install_software_single_step_breakpoints.
1668 * linux-low.h: New CORE_ADDR vector.
1669 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
1670 get_next_pcs.
1671 * linux-mips-low.c (the_low_targets): Likewise.
1672 * linux-nios2-low.c (the_low_targets): Likewise.
1673 * linux-sparc-low.c (the_low_targets): Likewise.
1674
1675 2015-12-17 Pedro Alves <palves@redhat.com>
1676
1677 * linux-low.c (linux_kill_one_lwp): Remove references to
1678 LinuxThreads.
1679 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
1680 to 'kill'.
1681 (linux_init_signals): Delete.
1682 (initialize_low): Adjust.
1683 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
1684
1685 2015-12-16 Pedro Alves <palves@redhat.com>
1686
1687 * configure.ac (compiler warning flags): When testing a
1688 -Wno-foo option, check whether -Wfoo works instead.
1689 * configure: Regenerate.
1690
1691 2015-12-11 Don Breazeal <donb@codesourcery.com>
1692
1693 * server.c (process_serial_event): Don't exit from gdbserver
1694 in remote mode if there are still active inferiors.
1695
1696 2015-12-11 Yao Qi <yao.qi@linaro.org>
1697
1698 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
1699 arm_breakpoint_at if the process is 32-bit.
1700
1701 2015-12-11 Yao Qi <yao.qi@linaro.org>
1702
1703 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
1704 arm breakpoint.
1705
1706 2015-12-07 Yao Qi <yao.qi@linaro.org>
1707
1708 * configure.srv: Append arm.o to srv_tgtobj for
1709 aarch64*-*-linux* target.
1710 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
1711 from linux-arm-low.c.
1712 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
1713 (arm_breakpoint_len, thumb_breakpoint): Likewise.
1714 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
1715 (thumb2_breakpoint_len): Likewise.
1716 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
1717 (arm_breakpoint_kinds): Likewise.
1718 (arm_breakpoint_kind_from_pc): Likewise.
1719 (arm_sw_breakpoint_from_kind): Likewise.
1720 (arm_breakpoint_kind_from_current_state): Likewise.
1721 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
1722 (arm_sw_breakpoint_from_kind): Declare.
1723 (arm_breakpoint_kind_from_current_state): Declare.
1724 (arm_breakpoint_at): Declare.
1725 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
1726 arm_sw_breakpoint_from_kind if process is 32-bit.
1727 (aarch64_breakpoint_kind_from_pc): New function.
1728 (aarch64_breakpoint_kind_from_current_state): New function.
1729 (the_low_target): Initialize fields breakpoint_kind_from_pc
1730 and breakpoint_kind_from_current_state.
1731 * linux-arm-low.c (arm_breakpoint_kinds): Move to
1732 linux-aarch32-low.c.
1733 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
1734 (arm_breakpoint, arm_breakpoint_len): Likewise.
1735 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
1736 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
1737 (arm_is_thumb_mode): Likewise.
1738 (arm_breakpoint_at): Likewise.
1739 (arm_breakpoint_kind_from_pc): Likewise.
1740 (arm_sw_breakpoint_from_kind): Likewise.
1741 (arm_breakpoint_kind_from_current_state): Likewise.
1742
1743 Revert:
1744 2015-08-04 Yao Qi <yao.qi@linaro.org>
1745
1746 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
1747 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
1748 * server.c (extended_protocol): Remove "static".
1749 * server.h (extended_protocol): Declare it.
1750
1751 2015-12-04 Josh Stone <jistone@redhat.com>
1752
1753 * target.h (struct target_ops) <arch_setup>: Rename to ...
1754 (struct target_ops) <post_create_inferior>: ... this.
1755 (target_arch_setup): Rename to ...
1756 (target_post_create_inferior): ... this, calling post_create_inferior.
1757 * server.c (start_inferior): Update target_arch_setup calls to
1758 target_post_create_inferior.
1759 * linux-low.c (linux_low_ptrace_options): Forward declare.
1760 (linux_arch_setup): Update its comment for general use.
1761 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
1762 (struct linux_target_ops): Use linux_post_create_inferior.
1763 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
1764 to post_create_inferior.
1765 * nto-low.c (struct nto_target_ops): Likewise.
1766 * spu-low.c (struct spu_target_ops): Likewise.
1767 * win32-low.c (struct win32_target_ops): Likewise.
1768
1769 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
1770
1771 * linux-arm-low.c: Remove duplicate arch/arm.h include.
1772
1773 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
1774
1775 * linux-arm-low.c (arm_reinsert_addr): Remove function.
1776 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
1777 * linux-cris-low.c (cris_reinsert_addr> Remove function.
1778 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
1779 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
1780 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
1781 * linux-mips-low.c (mips_reinsert_addr): Remove function.
1782 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
1783 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
1784 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
1785 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
1786 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
1787
1788 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
1789
1790 * linux-low.c (linux_look_up_symbols): Don't call
1791 linux_supports_traceclone.
1792 * linux-low.h (thread_db_init): Remove use_events argument.
1793 * thread-db.c (thread_db_use_event): Remove global variable.
1794 (struct thread_db) <td_thr_event_enable_p>: Remove field.
1795 (struct thread_db) <td_create_bp>: Remove field.
1796 (thread_db_create_event): Remove function.
1797 (thread_db_enable_reporting): Likewise.
1798 (find_one_thread): Don't check for thread_db_use_events.
1799 (attach_thread): Likewise.
1800 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
1801 (try_thread_db_load_1): Don't check for thread_db_use_events.
1802 (thread_db_init): Remove use_events argument and thread events
1803 handling.
1804 (remove_thread_event_breakpoints): Remove function.
1805 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
1806
1807 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
1808
1809 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
1810 New function.
1811 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
1812 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
1813 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
1814 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
1815 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
1816 Initialize.
1817 * linux-crisv32-low.c (cris_supports_hardware_single_step):
1818 New function.
1819 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
1820 * linux-low.c (can_hardware_single_step): Use
1821 supports_hardware_single_step.
1822 (can_software_single_step): New function.
1823 (start_step_over): Call can_software_single_step.
1824 (linux_supports_hardware_single_step): New function.
1825 (struct target_ops) <supports_software_single_step>: Initialize.
1826 * linux-low.h (struct linux_target_ops)
1827 <supports_hardware_single_step>: Initialize.
1828 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
1829 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
1830 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
1831 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
1832 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
1833 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
1834 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
1835 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
1836 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
1837 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
1838 Initialize.
1839 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
1840 (struct linux_target_ops) <tile_supports_hardware_single_step>:
1841 Initialize.
1842 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
1843 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
1844 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
1845 New function.
1846 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
1847 * target.h (struct target_ops): <supports_software_single_step>:
1848 New field.
1849 (target_supports_software_single_step): New macro.
1850
1851 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
1852
1853 * linux-low.c (linux_wait_1): Fix pc advance condition.
1854 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
1855 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
1856
1857 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
1858
1859 * linux-arm-low.c (arm_is_thumb_mode): New function.
1860 (arm_breakpoint_at): Use arm_is_thumb_mode.
1861 (arm_breakpoint_kind_from_current_state): New function.
1862 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
1863 Initialize.
1864 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
1865 (linux_breakpoint_kind_from_current_state): New function.
1866 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
1867 * linux-low.h (struct linux_target_ops)
1868 <breakpoint_kind_from_current_state>: New field.
1869 * target.h (struct target_ops): Likewise.
1870 (target_breakpoint_kind_from_current_state): New macro.
1871
1872 2015-11-30 Pedro Alves <palves@redhat.com>
1873
1874 * linux-low.c (linux_resume): Wake up the event loop before
1875 returning.
1876
1877 2015-11-30 Pedro Alves <palves@redhat.com>
1878
1879 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
1880 check.
1881 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
1882 to -1.
1883 * target.c (struct thread_search): New structure.
1884 (thread_search_callback): New function.
1885 (prev_general_thread): New global.
1886 (prepare_to_access_memory, done_accessing_memory): New functions.
1887 * target.h (prepare_to_access_memory, done_accessing_memory):
1888 Replace macros with function declarations.
1889
1890 2015-11-30 Pedro Alves <palves@redhat.com>
1891
1892 PR 14618
1893 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
1894 report TARGET_WAITKIND_NO_RESUMED.
1895 * remote-utils.c (prepare_resume_reply): Handle
1896 TARGET_WAITKIND_NO_RESUMED.
1897 * server.c (report_no_resumed): New global.
1898 (handle_query) <qSupported>: Handle "no-resumed+". Report
1899 "no-resumed+" support.
1900 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
1901 return error if the client doesn't support no-resumed events.
1902 (push_stop_notification): New function.
1903 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
1904 events if the client supports them.
1905
1906 2015-11-30 Pedro Alves <palves@redhat.com>
1907
1908 * linux-low.c (thread_still_has_status_pending_p): Don't check
1909 vCont;t here.
1910 (lwp_resumed): New function.
1911 (status_pending_p_callback): Return early if the LWP is not
1912 supposed to be resumed.
1913
1914 2015-11-30 Pedro Alves <palves@redhat.com>
1915
1916 * linux-low.c (handle_extended_wait): Assert that the LWP's
1917 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
1918 thread create events, leave the new child's status pending.
1919 (linux_low_filter_event): If GDB wants to hear about thread exit
1920 events, leave the LWP marked dead and don't delete it.
1921 (linux_wait_for_event_filtered): Don't check for thread exit.
1922 (filter_exit_event): New function.
1923 (linux_wait_1): Use it, when returning an exit event.
1924 (linux_resume_one_lwp_throw): Assert that the LWP's
1925 waitstatus is TARGET_WAITKIND_IGNORE.
1926 * remote-utils.c (prepare_resume_reply): Handle
1927 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
1928 * server.c (report_thread_events): New global.
1929 (handle_general_set): Handle QThreadEvents.
1930 (handle_query) <qSupported>: Handle and report QThreadEvents+;
1931 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
1932 TARGET_WAITKIND_THREAD_EXITED.
1933 * server.h (report_thread_events): Declare.
1934
1935 2015-11-30 Pedro Alves <palves@redhat.com>
1936
1937 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
1938 the thread's last_resume_kind was resume_stop.
1939
1940 2015-11-30 Pedro Alves <palves@redhat.com>
1941
1942 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
1943 before returning.
1944
1945 2015-11-30 Pedro Alves <palves@redhat.com>
1946
1947 * server.c (handle_v_requests): Handle vCtrlC.
1948
1949 2015-11-30 Pedro Alves <palves@redhat.com>
1950
1951 * gdbthread.h (find_any_thread_of_pid): Declare.
1952 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
1953 functions.
1954 * server.c (handle_query): If current_thread is NULL, look for
1955 another thread of the selected process.
1956
1957 2015-11-26 Daniel Colascione <dancol@dancol.org>
1958 Simon Marchi <simon.marchi@ericsson.com>
1959
1960 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
1961 * server.c (handle_qxfer_threads_worker): Refactor to include thread
1962 name in reply.
1963 * target.h (struct target_ops) <thread_name>: New field.
1964 (target_thread_name): New macro.
1965
1966 2015-11-23 Joel Brobecker <brobecker@adacore.com>
1967
1968 * regcache.h (regcache_invalidate_pid): Add declaration.
1969 * regcache.c (regcache_invalidate_pid): New function, extracted
1970 from regcache_invalidate.
1971 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
1972 Add trivial documentation comment.
1973 * lynx-low.c: Use regcache_invalidate_pid instead of
1974 regcache_invalidate.
1975
1976 2015-11-23 Joel Brobecker <brobecker@adacore.com>
1977
1978 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
1979 and Elf64_auxv_t if the target is Android.
1980
1981 2015-11-22 Doug Evans <xdje42@gmail.com>
1982
1983 * target.h: #include <sys/types.h>.
1984
1985 2015-11-19 Pedro Alves <palves@redhat.com>
1986
1987 * linux-low.c (linux_process_qsupported): Change prototype.
1988 Adjust.
1989 * linux-low.h (struct linux_target_ops) <process_qsupported>:
1990 Change prototype.
1991 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
1992 and adjust to loop over all features.
1993 * server.c (handle_query) <qSupported>: Adjust to call
1994 target_process_qsupported once, passing it a vector of unprocessed
1995 features.
1996 * target.h (struct target_ops) <process_qsupported>: Change
1997 prototype.
1998 (target_process_qsupported): Adjust.
1999
2000 2015-11-19 Pedro Alves <palves@redhat.com>
2001
2002 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
2003 mode.
2004 * configure: Regenerate.
2005
2006 2015-11-19 Pedro Alves <palves@redhat.com>
2007
2008 * configure: Regenerate.
2009
2010 2015-11-19 Yao Qi <yao.qi@linaro.org>
2011
2012 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
2013 type to uint32_t.
2014
2015 2015-11-19 Yao Qi <yao.qi@linaro.org>
2016
2017 * linux-aarch64-low.c (enum aarch64_operand_type): New.
2018 (struct aarch64_operand): Move enum out.
2019
2020 2015-11-19 Yao Qi <yao.qi@linaro.org>
2021
2022 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
2023 struct user_fpsimd_state *.
2024 (aarch64_store_fpregset): Likewise.
2025
2026 2015-11-19 Yao Qi <yao.qi@linaro.org>
2027
2028 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
2029 struct user_pt_regs *.
2030 (aarch64_store_gregset): Likewise.
2031
2032 2015-11-18 Pedro Alves <palves@redhat.com>
2033
2034 * Makefile.in (all_object_files): Add $IPA_OBJS.
2035
2036 2015-11-17 Pedro Alves <palves@redhat.com>
2037
2038 * win32-low.c (win32_resume): Use gdb_signal_from_host,
2039 GDB_SIGNAL_0 and gdb_signal_to_string.
2040
2041 2015-11-17 Pedro Alves <palves@redhat.com>
2042
2043 * win32-low.c (handle_output_debug_string): Remove parameter.
2044 (win32_kill): Remove our_status local and adjust call to
2045 handle_output_debug_string.
2046 (get_child_debug_event): Adjust call to
2047 handle_output_debug_string.
2048
2049 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
2050
2051 * linux-mips-low.c (mips_fill_gregset): Add cast.
2052 (mips_store_gregset): Likewise.
2053 (mips_fill_fpregset): Likewise.
2054 (mips_store_fpregset): Likewise.
2055
2056 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
2057
2058 * linux-mips-low.c (mips_add_watchpoint): Rename private to
2059 priv.
2060
2061 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
2062
2063 * linux-mips-low.c (mips_linux_new_thread): Change type of
2064 watch_type to enum target_hw_bp_type.
2065
2066 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
2067
2068 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
2069 Change return type to arm_hwbp_type.
2070
2071 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
2072
2073 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
2074 (arm_store_gregset): Likewise.
2075 * linux-arm-low.c (arm_get_hwcap): Likewise.
2076 (arm_read_description): Likewise.
2077
2078 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
2079
2080 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
2081
2082 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
2083
2084 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
2085 (ppc_fill_vsxregset): Likewise.
2086 (ppc_store_vsxregset): Likewise.
2087 (ppc_fill_vrregset): Likewise.
2088 (ppc_store_vrregset): Likewise.
2089 (ppc_fill_evrregset): Likewise.
2090 (ppc_store_evrregset): Likewise.
2091
2092 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
2093
2094 * linux-ppc-low.c (ppc_usrregs_info): Remove
2095 forward-declaration.
2096 (ppc_arch_setup): Move lower in file.
2097
2098 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
2099
2100 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
2101 (ps_pdwrite): Likewise.
2102
2103 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
2104
2105 * linux-arm-low.c (arm_new_thread): Move pointer dereference
2106 to after assert checks.
2107
2108 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
2109
2110 * proc-service.c (ps_pdread): Add/adjust casts.
2111 (ps_pdwrite): Add/adjust casts.
2112
2113 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2114
2115 * server.c (handle_search_memory_1): Cast return value of
2116 memmem.
2117
2118 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2119
2120 * server.c (write_qxfer_response): Change type of data to
2121 gdb_byte *.
2122
2123 2015-10-29 Pedro Alves <palves@redhat.com>
2124
2125 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
2126
2127 2015-10-29 Pedro Alves <palves@redhat.com>
2128
2129 * tracepoint.c (clear_installed_tracepoints): Add casts.
2130
2131 2015-10-29 Pedro Alves <palves@redhat.com>
2132
2133 * server.c (handle_v_cont, process_serial_event): Add enum
2134 gdb_signal casts to signal parsing code.
2135
2136 2015-10-29 Pedro Alves <palves@redhat.com>
2137
2138 * linux-low.h (NULL_REGSET): Define.
2139 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
2140 * linux-arm-low.c (arm_regsets): Likewise.
2141 * linux-crisv32-low.c (cris_regsets): Likewise.
2142 * linux-m68k-low.c (m68k_regsets): Likewise.
2143 * linux-mips-low.c (mips_regsets): Likewise.
2144 * linux-nios2-low.c (nios2_regsets): Likewise.
2145 * linux-ppc-low.c (ppc_regsets): Likewise.
2146 * linux-s390-low.c (s390_regsets): Likewise.
2147 * linux-sh-low.c (sh_regsets): Likewise.
2148 * linux-sparc-low.c (sparc_regsets): Likewise.
2149 * linux-tic6x-low.c (tic6x_regsets): Likewise.
2150 * linux-tile-low.c (tile_regsets): Likewise.
2151 * linux-x86-low.c (x86_regsets): Likewise.
2152 * linux-xtensa-low.c (xtensa_regsets): Likewise.
2153
2154 2015-10-29 Pedro Alves <palves@redhat.com>
2155
2156 * linux-low.h (NULL_REGSET): Define.
2157 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
2158 * linux-arm-low.c (arm_regsets): Likewise.
2159 * linux-crisv32-low.c (cris_regsets): Likewise.
2160 * linux-m68k-low.c (m68k_regsets): Likewise.
2161 * linux-mips-low.c (mips_regsets): Likewise.
2162 * linux-nios2-low.c (nios2_regsets): Likewise.
2163 * linux-ppc-low.c (ppc_regsets): Likewise.
2164 * linux-s390-low.c (s390_regsets): Likewise.
2165 * linux-sh-low.c (sh_regsets): Likewise.
2166 * linux-sparc-low.c (sparc_regsets): Likewise.
2167 * linux-tic6x-low.c (tic6x_regsets): Likewise.
2168 * linux-tile-low.c (tile_regsets): Likewise.
2169 * linux-x86-low.c (x86_regsets): Likewise.
2170 * linux-xtensa-low.c (xtensa_regsets): Likewise.
2171
2172 2015-10-26 Doug Evans <dje@google.com>
2173
2174 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
2175
2176 2015-10-26 Doug Evans <dje@google.com>
2177
2178 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
2179
2180 2015-10-26 Doug Evans <dje@google.com>
2181
2182 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
2183 for debug_printf.
2184 (attach_thread, find_new_threads_callback): Ditto.
2185
2186 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
2187
2188 * mem-break.h (set_breakpoint_data): Remove.
2189
2190 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
2191
2192 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
2193 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
2194 (initialize_low): Remove set_breakpoint_data call.
2195 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
2196 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
2197 (initialize_low): Remove set_breakpoint_data call.
2198 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
2199 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
2200 (initialize_low): Remove set_breakpoint_data call.
2201
2202 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
2203
2204 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
2205 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
2206 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
2207 * target.h (target_breakpoint_kind_from_pc): New macro.
2208
2209 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
2210
2211 * linux-low.c (default_breakpoint_kind_from_pc): New function.
2212 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
2213 the default breakpoint kind.
2214
2215 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
2216
2217 * linux-arm-low.c (arm_supports_z_point_type): Add software
2218 breakpoint support.
2219
2220 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
2221
2222 * linux-arm-low.c: Refactor breakpoint definitions.
2223 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
2224 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
2225
2226 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
2227
2228 * Makefile.in: Add arm.c/o.
2229 * configure.srv: Likewise.
2230 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
2231 (arm_breakpoint_kind_from_pc): New function.
2232 (arm_sw_breakpoint_from_kind): Return proper kind.
2233 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
2234
2235 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
2236
2237 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
2238 removal.
2239 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
2240 (struct raw_breakpoint) <size>: Remove.
2241 (struct raw_breakpoint) <kind>: Add.
2242 (bp_size): New function.
2243 (bp_opcode): Likewise.
2244 (find_raw_breakpoint_at): Adjust for kind.
2245 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
2246 (remove_memory_breakpoint): Adjust for kind call bp_size.
2247 (set_raw_breakpoint_at): Adjust for kind.
2248 (set_breakpoint): Likewise.
2249 (set_breakpoint_at): Call breakpoint_kind_from_pc.
2250 (delete_raw_breakpoint): Adjust for kind.
2251 (delete_breakpoint): Likewise.
2252 (find_gdb_breakpoint): Likewise.
2253 (set_gdb_breakpoint_1): Likewise.
2254 (set_gdb_breakpoint): Likewise.
2255 (delete_gdb_breakpoint_1): Likewise.
2256 (delete_gdb_breakpoint): Likewise.
2257 (uninsert_raw_breakpoint): Likewise.
2258 (reinsert_raw_breakpoint): Likewise.
2259 (set_breakpoint_data): Remove.
2260 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
2261 (check_mem_read): Adjust for kind call bp_size.
2262 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
2263 (clone_one_breakpoint): Adjust for kind.
2264 * mem-break.h (set_gdb_breakpoint): Likewise.
2265 (delete_gdb_breakpoint): Likewise.
2266 * server.c (process_serial_event): Likewise.
2267
2268 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
2269
2270 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
2271 (struct linux_target_ops) <breakpoint>: Remove.
2272 (struct linux_target_ops) <breakpoint_len>: Remove.
2273 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
2274 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
2275 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
2276 (arm_sw_breakpoint_from_kind): New function.
2277 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
2278 (struct linux_target_ops) <breakpoint>: Remove.
2279 (struct linux_target_ops) <breakpoint_len>: Remove.
2280 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
2281 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
2282 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
2283 (struct linux_target_ops) <breakpoint>: Remove.
2284 (struct linux_target_ops) <breakpoint_len>: Remove.
2285 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
2286 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
2287 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
2288 (struct linux_target_ops) <breakpoint>: Remove.
2289 (struct linux_target_ops) <breakpoint_len>: Remove.
2290 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
2291 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
2292 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
2293 and sw_breakpoint_from_kind to increment the pc.
2294 (linux_breakpoint_kind_from_pc): New function.
2295 (linux_sw_breakpoint_from_kind): New function.
2296 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
2297 (initialize_low): Call breakpoint_kind_from_pc and
2298 sw_breakpoint_from_kind to replace breakpoint_data/len.
2299 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
2300 New field.
2301 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
2302 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
2303 (struct linux_target_ops) <breakpoint>: Remove.
2304 (struct linux_target_ops) <breakpoint_len>: Remove.
2305 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
2306 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
2307 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
2308 (struct linux_target_ops) <breakpoint>: Remove.
2309 (struct linux_target_ops) <breakpoint_len>: Remove.
2310 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
2311 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
2312 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
2313 (struct linux_target_ops) <breakpoint>: Remove.
2314 (struct linux_target_ops) <breakpoint_len>: Remove.
2315 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
2316 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
2317 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
2318 (struct linux_target_ops) <breakpoint>: Remove.
2319 (struct linux_target_ops) <breakpoint_len>: Remove.
2320 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
2321 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
2322 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
2323 (struct linux_target_ops) <breakpoint>: Remove.
2324 (struct linux_target_ops) <breakpoint_len>: Remove.
2325 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
2326 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
2327 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
2328 (struct linux_target_ops) <breakpoint>: Remove.
2329 (struct linux_target_ops) <breakpoint_len>: Remove.
2330 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
2331 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
2332 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
2333 (struct linux_target_ops) <breakpoint>: Remove.
2334 (struct linux_target_ops) <breakpoint_len>: Remove.
2335 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
2336 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
2337 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
2338 (struct linux_target_ops) <breakpoint>: Remove.
2339 (struct linux_target_ops) <breakpoint_len>: Remove.
2340 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
2341 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
2342 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
2343 (struct linux_target_ops) <breakpoint>: Remove.
2344 (struct linux_target_ops) <breakpoint_len>: Remove.
2345 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
2346 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
2347 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
2348 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
2349 (struct linux_target_ops) <breakpoint>: Remove.
2350 (struct linux_target_ops) <breakpoint_len>: Remove.
2351 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
2352 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
2353 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
2354 (struct linux_target_ops) <breakpoint>: Remove.
2355 (struct linux_target_ops) <breakpoint_len>: Remove.
2356 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
2357 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
2358
2359 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
2360
2361 * linux-cris-low.c (cris_get_pc): Remove void arg.
2362
2363 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
2364
2365 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
2366 variable name.
2367
2368 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
2369
2370 * inferiors.c (thread_pid_matches_callback): New function.
2371 (find_thread_process): New function.
2372 (remove_thread): Reset current_thread.
2373 (remove_process): Assert threads have been removed first.
2374
2375 2015-10-15 Yao Qi <yao.qi@linaro.org>
2376
2377 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
2378 if it is 3.
2379 (aarch64_remove_point): Likewise.
2380 * regcache.c (regcache_register_size): New function.
2381
2382 2015-10-12 Yao Qi <yao.qi@linaro.org>
2383
2384 * linux-aarch64-low.c: Update all callers as emit_load_store
2385 is renamed to aarch64_emit_load_store.
2386
2387 2015-10-12 Yao Qi <yao.qi@linaro.org>
2388
2389 * linux-aarch64-low.c: Update all callers of function renaming
2390 from emit_insn to aarch64_emit_insn.
2391
2392 2015-10-12 Yao Qi <yao.qi@linaro.org>
2393
2394 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
2395 arch/aarch64-insn.h.
2396 (struct aarch64_memory_operand): Likewise.
2397 (ENCODE): Likewise.
2398 (emit_insn): Move to arch/aarch64-insn.c.
2399 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
2400 (emit_load_store): Move to arch/aarch64-insn.c.
2401 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
2402 (can_encode_int32): Remove.
2403
2404 2015-10-12 Yao Qi <yao.qi@linaro.org>
2405
2406 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
2407 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
2408 (aarch64_relocate_instruction): Likewise.
2409 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
2410 (struct aarch64_insn_visitor): Likewise.
2411
2412 2015-10-12 Yao Qi <yao.qi@linaro.org>
2413
2414 * linux-aarch64-low.c (struct aarch64_insn_data): New.
2415 (struct aarch64_insn_visitor): New.
2416 (struct aarch64_insn_relocation_data): New.
2417 (aarch64_ftrace_insn_reloc_b): New function.
2418 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
2419 (aarch64_ftrace_insn_reloc_cb): Likewise.
2420 (aarch64_ftrace_insn_reloc_tb): Likewise.
2421 (aarch64_ftrace_insn_reloc_adr): Likewise.
2422 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
2423 (aarch64_ftrace_insn_reloc_others): Likewise.
2424 (visitor): New.
2425 (aarch64_relocate_instruction): Use visitor.
2426
2427 2015-10-12 Yao Qi <yao.qi@linaro.org>
2428
2429 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
2430 int. Add argument buf.
2431 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
2432 aarch64_relocate_instruction.
2433
2434 2015-10-12 Yao Qi <yao.qi@linaro.org>
2435
2436 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
2437 argument insn. Remove local variable insn. Don't call
2438 target_read_uint32.
2439 (aarch64_install_fast_tracepoint_jump_pad): Call
2440 target_read_uint32.
2441
2442 2015-09-30 Yao Qi <yao.qi@linaro.org>
2443
2444 * linux-aarch64-low.c (emit_movk): Shorten a long line.
2445 (emit_load_store_pair): Likewise.
2446
2447 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2448
2449 * dll.c (match_dll): Add cast(s).
2450 (unloaded_dll): Likewise.
2451 * linux-low.c (second_thread_of_pid_p): Likewise.
2452 (delete_lwp_callback): Likewise.
2453 (count_events_callback): Likewise.
2454 (select_event_lwp_callback): Likewise.
2455 (linux_set_resume_request): Likewise.
2456 * server.c (accumulate_file_name_length): Likewise.
2457 (emit_dll_description): Likewise.
2458 (handle_qxfer_threads_worker): Likewise.
2459 (visit_actioned_threads): Likewise.
2460 * thread-db.c (any_thread_of): Likewise.
2461 * tracepoint.c (same_process_p): Likewise.
2462 (match_blocktype): Likewise.
2463 (build_traceframe_info_xml): Likewise.
2464
2465 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2466
2467 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
2468 assignment.
2469 (gdb_unparse_agent_expr): Likewise.
2470 * hostio.c (require_data): Likewise.
2471 (handle_pread): Likewise.
2472 * linux-low.c (disable_regset): Likewise.
2473 (fetch_register): Likewise.
2474 (store_register): Likewise.
2475 (get_dynamic): Likewise.
2476 (linux_qxfer_libraries_svr4): Likewise.
2477 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
2478 (set_fast_tracepoint_jump): Likewise.
2479 (uninsert_fast_tracepoint_jumps_at): Likewise.
2480 (reinsert_fast_tracepoint_jumps_at): Likewise.
2481 (validate_inserted_breakpoint): Likewise.
2482 (clone_agent_expr): Likewise.
2483 * regcache.c (init_register_cache): Likewise.
2484 * remote-utils.c (putpkt_binary_1): Likewise.
2485 (decode_M_packet): Likewise.
2486 (decode_X_packet): Likewise.
2487 (look_up_one_symbol): Likewise.
2488 (relocate_instruction): Likewise.
2489 (monitor_output): Likewise.
2490 * server.c (handle_search_memory): Likewise.
2491 (handle_qxfer_exec_file): Likewise.
2492 (handle_qxfer_libraries): Likewise.
2493 (handle_qxfer): Likewise.
2494 (handle_query): Likewise.
2495 (handle_v_cont): Likewise.
2496 (handle_v_run): Likewise.
2497 (captured_main): Likewise.
2498 * target.c (write_inferior_memory): Likewise.
2499 * thread-db.c (try_thread_db_load_from_dir): Likewise.
2500 * tracepoint.c (init_trace_buffer): Likewise.
2501 (add_tracepoint_action): Likewise.
2502 (add_traceframe): Likewise.
2503 (add_traceframe_block): Likewise.
2504 (cmd_qtdpsrc): Likewise.
2505 (cmd_qtdv): Likewise.
2506 (cmd_qtstatus): Likewise.
2507 (response_source): Likewise.
2508 (response_tsv): Likewise.
2509 (cmd_qtnotes): Likewise.
2510 (gdb_collect): Likewise.
2511 (initialize_tracepoint): Likewise.
2512
2513 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2514
2515 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
2516 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
2517 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
2518 <NOP>: New.
2519 (enum aarch64_condition_codes): New enum.
2520 (w0): New static global.
2521 (fp): Likewise.
2522 (lr): Likewise.
2523 (struct aarch64_memory_operand) <type>: New
2524 MEMORY_OPERAND_POSTINDEX type.
2525 (postindex_memory_operand): New helper function.
2526 (emit_ret): New function.
2527 (emit_load_store_pair): New function, factored out of emit_stp
2528 with support for MEMORY_OPERAND_POSTINDEX.
2529 (emit_stp): Rewrite using emit_load_store_pair.
2530 (emit_ldp): New function.
2531 (emit_load_store): Likewise.
2532 (emit_ldr): Mention post-index instruction in comment.
2533 (emit_ldrh): New function.
2534 (emit_ldrb): New function.
2535 (emit_ldrsw): Mention post-index instruction in comment.
2536 (emit_str): Likewise.
2537 (emit_subs): New function.
2538 (emit_cmp): Likewise.
2539 (emit_and): Likewise.
2540 (emit_orr): Likewise.
2541 (emit_orn): Likewise.
2542 (emit_eor): Likewise.
2543 (emit_mvn): Likewise.
2544 (emit_lslv): Likewise.
2545 (emit_lsrv): Likewise.
2546 (emit_asrv): Likewise.
2547 (emit_mul): Likewise.
2548 (emit_sbfm): Likewise.
2549 (emit_sbfx): Likewise.
2550 (emit_ubfm): Likewise.
2551 (emit_ubfx): Likewise.
2552 (emit_csinc): Likewise.
2553 (emit_cset): Likewise.
2554 (emit_nop): Likewise.
2555 (emit_ops_insns): New helper function.
2556 (emit_pop): Likewise.
2557 (emit_push): Likewise.
2558 (aarch64_emit_prologue): New function.
2559 (aarch64_emit_epilogue): Likewise.
2560 (aarch64_emit_add): Likewise.
2561 (aarch64_emit_sub): Likewise.
2562 (aarch64_emit_mul): Likewise.
2563 (aarch64_emit_lsh): Likewise.
2564 (aarch64_emit_rsh_signed): Likewise.
2565 (aarch64_emit_rsh_unsigned): Likewise.
2566 (aarch64_emit_ext): Likewise.
2567 (aarch64_emit_log_not): Likewise.
2568 (aarch64_emit_bit_and): Likewise.
2569 (aarch64_emit_bit_or): Likewise.
2570 (aarch64_emit_bit_xor): Likewise.
2571 (aarch64_emit_bit_not): Likewise.
2572 (aarch64_emit_equal): Likewise.
2573 (aarch64_emit_less_signed): Likewise.
2574 (aarch64_emit_less_unsigned): Likewise.
2575 (aarch64_emit_ref): Likewise.
2576 (aarch64_emit_if_goto): Likewise.
2577 (aarch64_emit_goto): Likewise.
2578 (aarch64_write_goto_address): Likewise.
2579 (aarch64_emit_const): Likewise.
2580 (aarch64_emit_call): Likewise.
2581 (aarch64_emit_reg): Likewise.
2582 (aarch64_emit_pop): Likewise.
2583 (aarch64_emit_stack_flush): Likewise.
2584 (aarch64_emit_zero_ext): Likewise.
2585 (aarch64_emit_swap): Likewise.
2586 (aarch64_emit_stack_adjust): Likewise.
2587 (aarch64_emit_int_call_1): Likewise.
2588 (aarch64_emit_void_call_2): Likewise.
2589 (aarch64_emit_eq_goto): Likewise.
2590 (aarch64_emit_ne_goto): Likewise.
2591 (aarch64_emit_lt_goto): Likewise.
2592 (aarch64_emit_le_goto): Likewise.
2593 (aarch64_emit_gt_goto): Likewise.
2594 (aarch64_emit_ge_got): Likewise.
2595 (aarch64_emit_ops_impl): New static global variable.
2596 (aarch64_emit_ops): New target function, return
2597 &aarch64_emit_ops_impl.
2598 (struct linux_target_ops): Install it.
2599
2600 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2601
2602 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
2603 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
2604 aarch64-ipa.o.
2605 * linux-aarch64-ipa.c: New file.
2606 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
2607 and endian.h.
2608 (aarch64_get_thread_area): New target method.
2609 (extract_signed_bitfield): New helper function.
2610 (aarch64_decode_ldr_literal): New function.
2611 (enum aarch64_opcodes): New enum.
2612 (struct aarch64_register): New struct.
2613 (struct aarch64_operand): New struct.
2614 (x0): New static global.
2615 (x1): Likewise.
2616 (x2): Likewise.
2617 (x3): Likewise.
2618 (x4): Likewise.
2619 (w2): Likewise.
2620 (ip0): Likewise.
2621 (sp): Likewise.
2622 (xzr): Likewise.
2623 (aarch64_register): New helper function.
2624 (register_operand): Likewise.
2625 (immediate_operand): Likewise.
2626 (struct aarch64_memory_operand): New struct.
2627 (offset_memory_operand): New helper function.
2628 (preindex_memory_operand): Likewise.
2629 (enum aarch64_system_control_registers): New enum.
2630 (ENCODE): New macro.
2631 (emit_insn): New helper function.
2632 (emit_b): New function.
2633 (emit_bcond): Likewise.
2634 (emit_cb): Likewise.
2635 (emit_tb): Likewise.
2636 (emit_blr): Likewise.
2637 (emit_stp): Likewise.
2638 (emit_ldp_q_offset): Likewise.
2639 (emit_stp_q_offset): Likewise.
2640 (emit_load_store): Likewise.
2641 (emit_ldr): Likewise.
2642 (emit_ldrsw): Likewise.
2643 (emit_str): Likewise.
2644 (emit_ldaxr): Likewise.
2645 (emit_stxr): Likewise.
2646 (emit_stlr): Likewise.
2647 (emit_data_processing_reg): Likewise.
2648 (emit_data_processing): Likewise.
2649 (emit_add): Likewise.
2650 (emit_sub): Likewise.
2651 (emit_mov): Likewise.
2652 (emit_movk): Likewise.
2653 (emit_mov_addr): Likewise.
2654 (emit_mrs): Likewise.
2655 (emit_msr): Likewise.
2656 (emit_sevl): Likewise.
2657 (emit_wfe): Likewise.
2658 (append_insns): Likewise.
2659 (can_encode_int32_in): New helper function.
2660 (aarch64_relocate_instruction): New function.
2661 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
2662 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
2663 (struct linux_target_ops): Install aarch64_get_thread_area,
2664 aarch64_install_fast_tracepoint_jump_pad and
2665 aarch64_get_min_fast_tracepoint_insn_len.
2666
2667 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2668
2669 * Makefile.in (aarch64-insn.o): New rule.
2670 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
2671
2672 2015-09-21 Yao Qi <yao.qi@linaro.org>
2673
2674 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
2675
2676 2015-09-21 Yao Qi <yao.qi@linaro.org>
2677
2678 * tracepoint.c (max_jump_pad_size): Remove.
2679
2680 2015-09-18 Yao Qi <yao.qi@linaro.org>
2681
2682 * linux-aarch64-low.c: Don't include sys/uio.h.
2683 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
2684
2685 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
2686
2687 * tracepoint.c (eval_result_type): Change prototype.
2688 (condition_true_at_tracepoint): Fix argument to compiled_cond.
2689
2690 2015-09-15 Pedro Alves <palves@redhat.com>
2691
2692 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
2693 Check whether to report exec events instead of checking whether
2694 multiprocess is enabled.
2695
2696 2015-09-15 Pedro Alves <palves@redhat.com>
2697
2698 PR remote/18965
2699 * remote-utils.c (prepare_resume_reply): Merge
2700 TARGET_WAITKIND_VFORK_DONE switch case with the
2701 TARGET_WAITKIND_FORKED case.
2702
2703 2015-09-15 Yao Qi <yao.qi@linaro.org>
2704
2705 * server.c (handle_query): Check string comparison using
2706 "else if" instead of "if".
2707
2708 2015-09-15 Yao Qi <yao.qi@linaro.org>
2709
2710 * server.c (vCont_supported): New global variable.
2711 (handle_query): Set vCont_supported to 1 if "vContSupported+"
2712 matches. Append ";vContSupported+" to own_buf.
2713 (handle_v_requests): Append ";s;S" to own_buf if target supports
2714 hardware single step or vCont_supported is false.
2715 (capture_main): Set vCont_supported to zero.
2716
2717 2015-09-15 Yao Qi <yao.qi@linaro.org>
2718
2719 * linux-low.c (linux_supports_conditional_breakpoints): Rename
2720 it to ...
2721 (linux_supports_hardware_single_step): ... New function.
2722 (linux_target_ops): Update.
2723 * lynx-low.c (lynx_target_ops): Set field
2724 supports_hardware_single_step to target_can_do_hardware_single_step.
2725 * nto-low.c (nto_target_ops): Likewise.
2726 * spu-low.c (spu_target_ops): Likewise.
2727 * win32-low.c (win32_target_ops): Likewise.
2728 * target.c (target_can_do_hardware_single_step): New function.
2729 * target.h (struct target_ops) <supports_conditional_breakpoints>:
2730 Remove. <supports_hardware_single_step>: New field.
2731 (target_supports_conditional_breakpoints): Remove.
2732 (target_supports_hardware_single_step): New macro.
2733 (target_can_do_hardware_single_step): Declare.
2734 * server.c (handle_query): Use target_supports_hardware_single_step
2735 instead of target_supports_conditional_breakpoints.
2736
2737 2015-09-15 Yao Qi <yao.qi@linaro.org>
2738
2739 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
2740 function.
2741 (struct linux_target_ops the_low_target): Install
2742 aarch64_linux_siginfo_fixup.
2743
2744 2015-09-11 Don Breazeal <donb@codesourcery.com>
2745 Luis Machado <lgustavo@codesourcery.com>
2746
2747 * linux-low.c (linux_mourn): Static declaration.
2748 (linux_arch_setup): Move in front of
2749 handle_extended_wait.
2750 (linux_arch_setup_thread): New function.
2751 (handle_extended_wait): Handle exec events. Call
2752 linux_arch_setup_thread. Make event_lwp argument a
2753 pointer-to-a-pointer.
2754 (check_zombie_leaders): Do not check stopped threads.
2755 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
2756 (linux_low_filter_event): Add lwp and thread for exec'ing
2757 non-leader thread if leader thread has been deleted.
2758 Refactor code into linux_arch_setup_thread and call it.
2759 Pass child lwp pointer by reference to handle_extended_wait.
2760 (linux_wait_for_event_filtered): Update comment.
2761 (linux_wait_1): Prevent clobbering exec event status.
2762 (linux_supports_exec_events): New function.
2763 (linux_target_ops) <supports_exec_events>: Initialize new member.
2764 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
2765 new member.
2766 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
2767 * server.c (report_exec_events): New global variable.
2768 (handle_query): Handle qSupported query for exec-events feature.
2769 (captured_main): Initialize report_exec_events.
2770 * server.h (report_exec_events): Declare new global variable.
2771 * target.h (struct target_ops) <supports_exec_events>: New
2772 member.
2773 (target_supports_exec_events): New macro.
2774 * win32-low.c (win32_target_ops) <supports_exec_events>:
2775 Initialize new member.
2776
2777 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2778
2779 * linux-low.c (linux_low_enable_btrace): Remove.
2780 (linux_target_ops): Replace linux_low_enable_btrace with
2781 linux_enable_btrace.
2782
2783 2015-09-03 Yao Qi <yao.qi@linaro.org>
2784
2785 * linux-aarch64-low.c (aarch64_insert_point): Call
2786 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
2787 returns true.
2788
2789 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2790
2791 * linux-low.c (check_stopped_by_breakpoint): Use
2792 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2793
2794 2015-08-27 Pedro Alves <palves@redhat.com>
2795
2796 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
2797
2798 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2799
2800 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
2801 the XNEW-family equivalent.
2802 (compile_bytecodes): Likewise.
2803 * dll.c (loaded_dll): Likewise.
2804 * event-loop.c (append_callback_event): Likewise.
2805 (create_file_handler): Likewise.
2806 (create_file_event): Likewise.
2807 * hostio.c (handle_open): Likewise.
2808 * inferiors.c (add_thread): Likewise.
2809 (add_process): Likewise.
2810 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
2811 * linux-arm-low.c (arm_new_process): Likewise.
2812 (arm_new_thread): Likewise.
2813 * linux-low.c (add_to_pid_list): Likewise.
2814 (linux_add_process): Likewise.
2815 (handle_extended_wait): Likewise.
2816 (add_lwp): Likewise.
2817 (enqueue_one_deferred_signal): Likewise.
2818 (enqueue_pending_signal): Likewise.
2819 (linux_resume_one_lwp_throw): Likewise.
2820 (linux_resume_one_thread): Likewise.
2821 (linux_read_memory): Likewise.
2822 (linux_write_memory): Likewise.
2823 * linux-mips-low.c (mips_linux_new_process): Likewise.
2824 (mips_linux_new_thread): Likewise.
2825 (mips_add_watchpoint): Likewise.
2826 * linux-x86-low.c (initialize_low_arch): Likewise.
2827 * lynx-low.c (lynx_add_process): Likewise.
2828 * mem-break.c (set_raw_breakpoint_at): Likewise.
2829 (set_breakpoint): Likewise.
2830 (add_condition_to_breakpoint): Likewise.
2831 (add_commands_to_breakpoint): Likewise.
2832 (clone_agent_expr): Likewise.
2833 (clone_one_breakpoint): Likewise.
2834 * regcache.c (new_register_cache): Likewise.
2835 * remote-utils.c (look_up_one_symbol): Likewise.
2836 * server.c (queue_stop_reply): Likewise.
2837 (start_inferior): Likewise.
2838 (queue_stop_reply_callback): Likewise.
2839 (handle_target_event): Likewise.
2840 * spu-low.c (fetch_ppc_memory): Likewise.
2841 (store_ppc_memory): Likewise.
2842 * target.c (set_target_ops): Likewise.
2843 * thread-db.c (thread_db_load_search): Likewise.
2844 (try_thread_db_load_1): Likewise.
2845 * tracepoint.c (add_tracepoint): Likewise.
2846 (add_tracepoint_action): Likewise.
2847 (create_trace_state_variable): Likewise.
2848 (cmd_qtdpsrc): Likewise.
2849 (cmd_qtro): Likewise.
2850 (add_while_stepping_state): Likewise.
2851 * win32-low.c (child_add_thread): Likewise.
2852 (get_image_name): Likewise.
2853
2854 2015-08-25 Yao Qi <yao.qi@linaro.org>
2855
2856 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
2857
2858 2015-08-25 Yao Qi <yao.qi@linaro.org>
2859
2860 * Makefile.in (aarch64-linux.o): New rule.
2861 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
2862 srv_tgtobj.
2863 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
2864 (aarch64_init_debug_reg_state): Make it extern.
2865 (aarch64_linux_prepare_to_resume): Remove.
2866
2867 2015-08-25 Yao Qi <yao.qi@linaro.org>
2868
2869 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
2870 lwp_arch_private_info and ptid_of_lwp.
2871
2872 2015-08-25 Yao Qi <yao.qi@linaro.org>
2873
2874 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
2875 Find proc_info by find_process_pid. All callers updated.
2876
2877 2015-08-25 Yao Qi <yao.qi@linaro.org>
2878
2879 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
2880 Remove.
2881 (debug_reg_change_callback): Remove.
2882 (aarch64_notify_debug_reg_change): Remove.
2883
2884 2015-08-25 Yao Qi <yao.qi@linaro.org>
2885
2886 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
2887 Call current_lwp_ptid.
2888
2889 2015-08-25 Yao Qi <yao.qi@linaro.org>
2890
2891 * linux-aarch64-low.c (debug_reg_change_callback): Use
2892 debug_printf.
2893
2894 2015-08-25 Yao Qi <yao.qi@linaro.org>
2895
2896 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
2897
2898 2015-08-25 Yao Qi <yao.qi@linaro.org>
2899
2900 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
2901
2902 2015-08-25 Yao Qi <yao.qi@linaro.org>
2903
2904 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
2905 the code.
2906
2907 2015-08-25 Yao Qi <yao.qi@linaro.org>
2908
2909 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
2910 Remove.
2911 (debug_reg_change_callback): Remove argument entry and add argument
2912 lwp. Remove local variable thread. Don't print thread id in the
2913 debugging output. Don't check whether pid of thread equals to pid.
2914 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
2915 iterate_over_lwps instead find_inferior.
2916
2917 2015-08-24 Pedro Alves <palves@redhat.com>
2918
2919 * inferiors.c (get_first_process): New function.
2920 * inferiors.h (get_first_process): New declaration.
2921 * remote-utils.c (read_ptid): Default to the first process in the
2922 list, instead of to the current thread's process.
2923
2924 2015-08-24 Pedro Alves <palves@redhat.com>
2925
2926 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
2927 * event-loop.c: Likewise.
2928 * remote-utils.c: Likewise.
2929 * tracepoint.c: Likewise.
2930
2931 2015-08-24 Pedro Alves <palves@redhat.com>
2932
2933 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
2934 ptid_get_lwp.
2935
2936 2015-08-21 Pedro Alves <palves@redhat.com>
2937
2938 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
2939 instead of literal 1.
2940
2941 2015-08-21 Pedro Alves <palves@redhat.com>
2942
2943 * tdesc.c (default_description): Explicitly zero-initialize.
2944
2945 2015-08-21 Pedro Alves <palves@redhat.com>
2946
2947 PR gdb/18749
2948 * inferiors.c (remove_thread): Discard any pending stop reply for
2949 this thread.
2950 * server.c (remove_all_on_match_pid): Rename to ...
2951 (remove_all_on_match_ptid): ... this. Work with a filter ptid
2952 instead of a pid.
2953 (discard_queued_stop_replies): Change parameter to a ptid. Now
2954 extern.
2955 (handle_v_kill, kill_inferior_callback, captured_main)
2956 (process_serial_event): Adjust.
2957 * server.h (discard_queued_stop_replies): Declare.
2958
2959 2015-08-21 Pedro Alves <palves@redhat.com>
2960
2961 * linux-low.c (wait_for_sigstop): Always switch to no thread
2962 selected if the previously current thread dies.
2963 * lynx-low.c (lynx_request_interrupt): Use the first thread's
2964 process instead of the current thread's.
2965 * remote-utils.c (input_interrupt): Don't check if there's no
2966 current thread.
2967 * server.c (gdb_read_memory, gdb_write_memory): If setting the
2968 current thread to the general thread fails, error out.
2969 (handle_qxfer_auxv, handle_qxfer_libraries)
2970 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
2971 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
2972 (handle_query): Check if there's a thread selected instead of
2973 checking whether there's any thread in the thread list.
2974 (handle_qxfer_threads, handle_qxfer_btrace)
2975 (handle_qxfer_btrace_conf): Don't error out early if there's no
2976 thread in the thread list.
2977 (handle_v_cont, myresume): Don't set the current thread to the
2978 continue thread.
2979 (process_serial_event) <Hg handling>: Also set thread_id if the
2980 previous general thread is still alive.
2981 (process_serial_event) <g/G handling>: If setting the current
2982 thread to the general thread fails, error out.
2983 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
2984 thread's lwp instead of the current thread's.
2985 * target.c (set_desired_thread): If the desired thread was not
2986 found, leave the current thread pointing to NULL. Return an int
2987 (boolean) indicating success.
2988 * target.h (set_desired_thread): Change return type to int.
2989
2990 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
2991
2992 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
2993 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
2994 #includes.
2995 (ps_get_thread_area): New function.
2996
2997 2015-08-19 Gary Benson <gbenson@redhat.com>
2998
2999 * hostio.c (handle_pread): Do not attempt to read more data
3000 than hostio_reply_with_data can fit in a packet.
3001
3002 2015-08-18 Joel Brobecker <brobecker@adacore.com>
3003
3004 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
3005
3006 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3007
3008 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
3009
3010 2015-08-06 Pedro Alves <palves@redhat.com>
3011
3012 * tracepoint.c (expr_eval_result): Now an int.
3013
3014 2015-08-06 Pedro Alves <palves@redhat.com>
3015
3016 * gdbthread.h (struct regcache): Forward declare.
3017 (struct thread_info) <regcache_data>: Now a struct regcache
3018 pointer.
3019 * inferiors.c (inferior_regcache_data)
3020 (set_inferior_regcache_data): Now work with struct regcache
3021 pointers.
3022 * inferiors.h (struct regcache): Forward declare.
3023 (inferior_regcache_data, set_inferior_regcache_data): Now work
3024 with struct regcache pointers.
3025 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
3026 (free_register_cache_thread): Remove struct regcache pointer
3027 casts.
3028
3029 2015-08-06 Pedro Alves <palves@redhat.com>
3030
3031 * server.c (captured_main): On error, print the exception message
3032 to stderr, and if run_once is set, throw a quit.
3033
3034 2015-08-06 Pedro Alves <palves@redhat.com>
3035
3036 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
3037 the current thread.
3038
3039 2015-08-06 Pedro Alves <palves@redhat.com>
3040
3041 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
3042 reading beyond the passed in buffer length.
3043
3044 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
3045
3046 * tracepoint.c (symbol_list) <required>: Remove.
3047
3048 2015-08-06 Pedro Alves <palves@redhat.com>
3049
3050 * linux-low.c (handle_extended_wait): Set the fork child's suspend
3051 count if stopping and suspending threads.
3052 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
3053 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
3054 (linux_detach): Complete an ongoing step-over.
3055 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
3056 throughout.
3057 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
3058 (linux_wait_1): If passing a signal to the inferior after
3059 finishing a step-over, unsuspend and re-resume all lwps. If we
3060 see a single-step event but the thread should be continuing, don't
3061 pass the trap to gdb.
3062 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
3063 internal_error instead of gdb_assert.
3064 (enqueue_pending_signal): New function.
3065 (check_ptrace_stopped_lwp_gone): Add debug output.
3066 (start_step_over): Use internal_error instead of gdb_assert.
3067 (complete_ongoing_step_over): New function.
3068 (linux_resume_one_thread): Don't resume a suspended thread.
3069 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
3070 it stepping.
3071
3072 2015-08-06 Pedro Alves <palves@redhat.com>
3073
3074 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
3075 (linux_thread_alive): Use lwp_is_marked_dead.
3076 (extended_event_reported): Delete.
3077 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
3078 instead of extended_event_reported.
3079 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
3080 as well.
3081 (lwp_is_marked_dead): New function.
3082 (lwp_running): Use lwp_is_marked_dead.
3083 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
3084 comment.
3085
3086 2015-08-06 Pedro Alves <palves@redhat.com>
3087
3088 * linux-low.c (linux_wait_1): Move fork event output out of the
3089 !report_to_gdb check. Pass event_child->waitstatus to
3090 target_waitstatus_to_string instead of ourstatus.
3091
3092 2015-08-04 Yao Qi <yao.qi@linaro.org>
3093
3094 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
3095 if current_thread is 32 bit.
3096
3097 2015-08-04 Yao Qi <yao.qi@linaro.org>
3098
3099 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
3100 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
3101 * server.c (extended_protocol): Remove "static".
3102 * server.h (extended_protocol): Declare it.
3103
3104 2015-08-04 Yao Qi <yao.qi@linaro.org>
3105
3106 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
3107 both aarch64 and aarch32.
3108 (aarch64_set_pc): Likewise.
3109
3110 2015-08-04 Yao Qi <yao.qi@linaro.org>
3111
3112 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
3113 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
3114 arm-with-neon.xml to srv_xmlfiles.
3115 * linux-aarch64-low.c: Include linux-aarch32-low.h.
3116 (is_64bit_tdesc): New function.
3117 (aarch64_linux_read_description): New function.
3118 (aarch64_arch_setup): Call aarch64_linux_read_description.
3119 (regs_info): Rename to regs_info_aarch64.
3120 (aarch64_regs_info): Return right regs_info.
3121 (initialize_low_arch): Call initialize_low_arch_aarch32.
3122
3123 2015-08-04 Yao Qi <yao.qi@linaro.org>
3124
3125 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
3126 * linux-aarch32-low.c: New file.
3127 * linux-aarch32-low.h: New file.
3128 * linux-arm-low.c (arm_fill_gregset): Move it to
3129 linux-aarch32-low.c.
3130 (arm_store_gregset): Likewise.
3131 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
3132 (arm_store_vfpregset): Call arm_store_vfpregset_num.
3133 (arm_arch_setup): Check if PTRACE_GETREGSET works.
3134 (regs_info): Rename to regs_info_arm.
3135 (arm_regs_info): Return regs_info_aarch32 if
3136 have_ptrace_getregset is 1 and target description is
3137 arm_with_neon or arm_with_vfpv3.
3138 (initialize_low_arch): Don't call init_registers_arm_with_neon.
3139 Call initialize_low_arch_aarch32 instead.
3140
3141 2015-08-04 Yao Qi <yao.qi@linaro.org>
3142
3143 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
3144 * linux-low.c: ... here.
3145 * linux-low.h (have_ptrace_getregset): Declare it.
3146
3147 2015-08-04 Pedro Alves <palves@redhat.com>
3148
3149 * thread-db.c (struct thread_db): Use new typedefs.
3150 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
3151 CHK calls.
3152 (disable_thread_event_reporting): Cast result of dlsym to
3153 destination function pointer type.
3154 (thread_db_mourn): Use td_ta_delete_ftype.
3155
3156 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
3157
3158 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
3159 arch variant.
3160 (CDX_BREAKPOINT): Define for R2.
3161 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
3162 (the_low_target): Add comments.
3163
3164 2015-07-30 Yao Qi <yao.qi@linaro.org>
3165
3166 * linux-arm-low.c (arm_hwcap): Remove it.
3167 (arm_read_description): New local variable arm_hwcap. Don't
3168 set arm_hwcap to zero.
3169
3170 2015-07-30 Yao Qi <yao.qi@linaro.org>
3171
3172 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
3173 Use regcache->tdesc instead.
3174 (arm_store_wmmxregset): Likewise.
3175 (arm_fill_vfpregset): Likewise.
3176 (arm_store_vfpregset): Likewise.
3177
3178 2015-07-30 Yao Qi <yao.qi@linaro.org>
3179
3180 * linux-arm-low.c: Include arch/arm.h.
3181 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
3182 (arm_store_gregset): Likewise.
3183
3184 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
3185
3186 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
3187 ptrace's 4th parameter.
3188
3189 2015-07-27 Yao Qi <yao.qi@linaro.org>
3190
3191 * configure.srv (case aarch64*-*-linux*): Don't set
3192 srv_linux_usrregs.
3193
3194 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
3195
3196 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
3197 sys/ptrace.h.
3198 * linux-arm-low.c: Likewise.
3199 * linux-cris-low.c: Likewise.
3200 * linux-crisv32-low.c: Likewise.
3201 * linux-low.c: Likewise.
3202 * linux-m68k-low.c: Likewise.
3203 * linux-mips-low.c: Likewise.
3204 * linux-nios2-low.c: Likewise.
3205 * linux-s390-low.c: Likewise.
3206 * linux-sparc-low.c: Likewise.
3207 * linux-tic6x-low.c: Likewise.
3208 * linux-tile-low.c: Likewise.
3209 * linux-x86-low.c: Likewise.
3210
3211 2015-07-24 Pedro Alves <palves@redhat.com>
3212
3213 * config.in: Regenerate.
3214 * configure: Regenerate.
3215
3216 2015-07-24 Pedro Alves <palves@redhat.com>
3217
3218 * acinclude.m4: Include ../ptrace.m4.
3219 * configure.ac: Call GDB_AC_PTRACE.
3220 * config.in, configure: Regenerate.
3221
3222 2015-07-24 Yao Qi <yao.qi@linaro.org>
3223
3224 * linux-low.c (linux_create_inferior): Remove setting to
3225 proc->priv->new_inferior.
3226 (linux_attach): Likewise.
3227 (linux_low_filter_event): Likewise.
3228 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
3229
3230 2015-07-24 Yao Qi <yao.qi@linaro.org>
3231
3232 * linux-low.c (linux_arch_setup): New function.
3233 (linux_low_filter_event): If proc->tdesc is NULL and
3234 proc->attached is true, call the_low_target.arch_setup.
3235 Otherwise, keep status pending, and return.
3236 (linux_resume_one_lwp_throw): Don't call get_pc if
3237 thread->while_stepping isn't NULL. Don't call
3238 get_thread_regcache if proc->tdesc is NULL.
3239 (need_step_over_p): Return 0 if proc->tdesc is NULL.
3240 (linux_target_ops): Install arch_setup.
3241 * server.c (start_inferior): Call the_target->arch_setup.
3242 * target.h (struct target_ops) <arch_setup>: New field.
3243 (target_arch_setup): New marco.
3244 * lynx-low.c (lynx_target_ops): Update.
3245 * nto-low.c (nto_target_ops): Update.
3246 * spu-low.c (spu_target_ops): Update.
3247 * win32-low.c (win32_target_ops): Update.
3248
3249 2015-07-24 Yao Qi <yao.qi@linaro.org>
3250
3251 * linux-low.c (linux_add_process): Don't set
3252 proc->priv->new_inferior.
3253 (linux_create_inferior): Set proc->priv->new_inferior to 1.
3254 (linux_attach): Likewise.
3255
3256 2015-07-24 Yao Qi <yao.qi@linaro.org>
3257
3258 * server.c (start_inferior): Code refactor.
3259
3260 2015-07-24 Yao Qi <yao.qi@linaro.org>
3261
3262 * server.c (process_serial_event): Set general_thread.
3263
3264 2015-07-21 Yao Qi <yao.qi@linaro.org>
3265
3266 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
3267 aarch64_linux_get_debug_reg_capacity.
3268
3269 2015-07-17 Yao Qi <yao.qi@linaro.org>
3270
3271 * Makefile.in (aarch64-linux-hw-point.o): New rule.
3272 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
3273 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
3274 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
3275 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
3276 (AARCH64_HWP_ALIGNMENT): Likewise.
3277 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
3278 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
3279 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
3280 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
3281 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
3282 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
3283 (struct aarch64_debug_reg_state): Likewise.
3284 (struct arch_lwp_info): Likewise.
3285 (aarch64_align_watchpoint): Likewise.
3286 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
3287 (aarch64_watchpoint_length): Likewise.
3288 (aarch64_point_encode_ctrl_reg): Likewise
3289 (aarch64_point_is_aligned): Likewise.
3290 (aarch64_align_watchpoint): Likewise.
3291 (aarch64_linux_set_debug_regs):
3292 (aarch64_dr_state_insert_one_point): Likewise.
3293 (aarch64_dr_state_remove_one_point): Likewise.
3294 (aarch64_handle_breakpoint): Likewise.
3295 (aarch64_handle_aligned_watchpoint): Likewise.
3296 (aarch64_handle_unaligned_watchpoint): Likewise.
3297 (aarch64_handle_watchpoint): Likewise.
3298
3299 2015-07-17 Yao Qi <yao.qi@linaro.org>
3300
3301 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
3302 and don't aarch64_get_debug_reg_state. All callers update.
3303 (aarch64_handle_aligned_watchpoint): Likewise.
3304 (aarch64_handle_unaligned_watchpoint): Likewise.
3305 (aarch64_handle_watchpoint): Likewise.
3306 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
3307 (aarch64_remove_point): Likewise.
3308
3309 2015-07-17 Yao Qi <yao.qi@linaro.org>
3310
3311 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
3312 debug_printf.
3313 (aarch64_handle_unaligned_watchpoint): Likewise.
3314
3315 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3316
3317 Revert the previous 3 commits:
3318 Move gdb_regex* to common/
3319 Move linux_find_memory_regions_full & co.
3320 gdbserver build-id attribute generator
3321
3322 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3323 Jan Kratochvil <jan.kratochvil@redhat.com>
3324
3325 gdbserver build-id attribute generator.
3326 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
3327 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
3328 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
3329 (find_phdr): New.
3330 (get_dynamic): Use find_pdhr to traverse program headers.
3331 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
3332 (compare_mapping_entry_range, struct find_memory_region_callback_data)
3333 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
3334 (get_hex_build_id): New.
3335 (linux_qxfer_libraries_svr4): Add optional build-id attribute
3336 to reply XML document.
3337
3338 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3339 Jan Kratochvil <jan.kratochvil@redhat.com>
3340
3341 * target.c: Include target/target-utils.h and fcntl.h.
3342 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
3343 (target_fileio_read_stralloc): New functions.
3344
3345 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3346
3347 * Makefile.in (OBS): Add gdb_regex.o.
3348 (gdb_regex.o): New.
3349 * config.in: Rebuilt.
3350 * configure: Rebuilt.
3351
3352 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3353 Jan Kratochvil <jan.kratochvil@redhat.com>
3354
3355 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
3356 * Makefile.in (OBS): Add target-utils.o.
3357 (linux-maps.o, target-utils.o): New.
3358 * configure.srv (srv_linux_obj): Add linux-maps.o.
3359
3360 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
3361
3362 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
3363 function, return 1.
3364 (the_low_target): Install it.
3365
3366 2015-07-14 Pedro Alves <palves@redhat.com>
3367
3368 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
3369 Instead, ignore ECHILD, and throw an error for other errnos.
3370
3371 2015-07-10 Pedro Alves <palves@redhat.com>
3372
3373 * event-loop.c (struct callback_event) <data>: Change type to
3374 gdb_client_data instance instead of gdb_client_data pointer.
3375 (append_callback_event): Adjust.
3376
3377 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
3378
3379 * linux-aarch64-low.c: Add comments for each linux_target_ops
3380 method. Remove comments already covered in target_ops and
3381 linux_target_ops definitions.
3382 (the_low_target): Add comments for each unimplemented method.
3383
3384 2015-07-09 Yao Qi <yao.qi@linaro.org>
3385
3386 * linux-aarch64-low.c (aarch64_regmap): Remove.
3387 (aarch64_usrregs_info): Remove.
3388 (regs_info): Set field usrregs to NULL.
3389
3390 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
3391
3392 * linux-low.c: Include "rsp-low.h"
3393 (linux_low_encode_pt_config, linux_low_encode_raw): New.
3394 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
3395 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
3396 (handle_btrace_enable_pt): New.
3397 (handle_btrace_general_set): Support "pt".
3398 (handle_btrace_conf_general_set): Support "pt:size".
3399
3400 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
3401
3402 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
3403 Z_PACKET_SW_BP.
3404
3405 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
3406
3407 * linux-aarch64-low.c: Remove comment about endianness.
3408 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
3409 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
3410 memcmp.
3411
3412 2015-06-24 Gary Benson <gbenson@redhat.com>
3413
3414 * linux-i386-ipa.c (stdint.h): Do not include.
3415 * lynx-i386-low.c (stdint.h): Likewise.
3416 * lynx-ppc-low.c (stdint.h): Likewise.
3417 * mem-break.c (stdint.h): Likewise.
3418 * thread-db.c (stdint.h): Likewise.
3419 * tracepoint.c (stdint.h): Likewise.
3420 * win32-low.c (stdint.h): Likewise.
3421
3422 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
3423
3424 * server.c (write_qxfer_response): Update call to
3425 remote_escape_output.
3426
3427 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
3428 Jan Kratochvil <jan.kratochvil@redhat.com>
3429
3430 Merge multiple hex conversions.
3431 * gdbreplay.c (tohex): Rename to 'fromhex'.
3432 (logchar): Use fromhex.
3433
3434 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3435
3436 * server.c (handle_qxfer_libraries): Set `version' attribute for
3437 <library-list>.
3438
3439 2015-06-10 Gary Benson <gbenson@redhat.com>
3440
3441 * target.h (struct target_ops) <multifs_open>: New field.
3442 <multifs_unlink>: Likewise.
3443 <multifs_readlink>: Likewise.
3444 * linux-low.c (nat/linux-namespaces.h): New include.
3445 (linux_target_ops): Initialize the_target->multifs_open,
3446 the_target->multifs_unlink and the_target->multifs_readlink.
3447 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
3448 * hostio.c (hostio_fs_pid): New static variable.
3449 (hostio_handle_new_gdb_connection): New function.
3450 (handle_setfs): Likewise.
3451 (handle_open): Use the_target->multifs_open as appropriate.
3452 (handle_unlink): Use the_target->multifs_unlink as appropriate.
3453 (handle_readlink): Use the_target->multifs_readlink as
3454 appropriate.
3455 (handle_vFile): Handle vFile:setfs packets.
3456 * server.c (handle_query): Call hostio_handle_new_gdb_connection
3457 after target_handle_new_gdb_connection.
3458
3459 2015-06-10 Gary Benson <gbenson@redhat.com>
3460
3461 * configure.ac (AC_CHECK_FUNCS): Add setns.
3462 * config.in: Regenerate.
3463 * configure: Likewise.
3464 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
3465 (linux-namespaces.o): New rule.
3466 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
3467
3468 2015-06-09 Gary Benson <gbenson@redhat.com>
3469
3470 * hostio.c (handle_open): Process mode argument with
3471 fileio_to_host_mode.
3472
3473 2015-06-01 Yao Qi <yao.qi@linaro.org>
3474
3475 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
3476 * linux-x86-low.c: Likewise.
3477
3478 2015-05-28 Don Breazeal <donb@codesourcery.com>
3479
3480 * linux-low.c (handle_extended_wait): Initialize
3481 thread_info.last_resume_kind for new fork children.
3482
3483 2015-05-15 Pedro Alves <palves@redhat.com>
3484
3485 * target.h (target_handle_new_gdb_connection): Rewrite using if
3486 wrapped in do/while.
3487
3488 2015-05-14 Joel Brobecker <brobecker@adacore.com>
3489
3490 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
3491 * configure, config.in: Regenerate.
3492 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
3493 Declare typedef.
3494
3495 2015-05-12 Don Breazeal <donb@codesourcery.com>
3496
3497 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
3498 PTRACE_EVENT_VFORK_DONE.
3499 (linux_low_ptrace_options, extended_event_reported): Add vfork
3500 events.
3501 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
3502 and "vforkdone" for RSP 'T' Stop Reply Packet.
3503 * server.h (report_vfork_events): Declare
3504 global variable.
3505
3506 2015-05-12 Don Breazeal <donb@codesourcery.com>
3507
3508 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
3509 (the_low_target) <new_fork>: Initialize new member.
3510 * linux-arm-low.c (arm_new_fork): New function.
3511 (the_low_target) <new_fork>: Initialize new member.
3512 * linux-low.c (handle_extended_wait): Call new target function
3513 new_fork.
3514 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
3515 * linux-mips-low.c (mips_add_watchpoint): New function
3516 extracted from mips_insert_point.
3517 (the_low_target) <new_fork>: Initialize new member.
3518 (mips_linux_new_fork): New function.
3519 (mips_insert_point): Call mips_add_watchpoint.
3520 * linux-x86-low.c (x86_linux_new_fork): New function.
3521 (the_low_target) <new_fork>: Initialize new member.
3522
3523 2015-05-12 Don Breazeal <donb@codesourcery.com>
3524
3525 * linux-low.c (handle_extended_wait): Implement return value,
3526 rename argument 'event_child' to 'event_lwp', handle
3527 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
3528 (linux_low_ptrace_options): New function.
3529 (linux_low_filter_event): Call linux_low_ptrace_options,
3530 use different argument fo linux_enable_event_reporting,
3531 use return value from handle_extended_wait.
3532 (extended_event_reported): New function.
3533 (linux_wait_1): Call extended_event_reported and set
3534 status to report fork events.
3535 (linux_write_memory): Add pid to debug message.
3536 (reset_lwp_ptrace_options_callback): New function.
3537 (linux_handle_new_gdb_connection): New function.
3538 (linux_target_ops): Initialize new structure member.
3539 * linux-low.h (struct lwp_info) <waitstatus>: New member.
3540 * lynx-low.c: Initialize new structure member.
3541 * remote-utils.c (prepare_resume_reply): Implement stop reason
3542 "fork" for "T" stop message.
3543 * server.c (handle_query): Call handle_new_gdb_connection.
3544 * server.h (report_fork_events): Declare global flag.
3545 * target.h (struct target_ops) <handle_new_gdb_connection>:
3546 New member.
3547 (target_handle_new_gdb_connection): New macro.
3548 * win32-low.c: Initialize new structure member.
3549
3550 2015-05-12 Don Breazeal <donb@codesourcery.com>
3551
3552 * mem-break.c (APPEND_TO_LIST): Define macro.
3553 (clone_agent_expr): New function.
3554 (clone_one_breakpoint): New function.
3555 (clone_all_breakpoints): New function.
3556 * mem-break.h: Declare new functions.
3557
3558 2015-05-12 Don Breazeal <donb@codesourcery.com>
3559
3560 * linux-low.c (linux_supports_fork_events): New function.
3561 (linux_supports_vfork_events): New function.
3562 (linux_target_ops): Initialize new structure members.
3563 (initialize_low): Call linux_check_ptrace_features.
3564 * lynx-low.c (lynx_target_ops): Initialize new structure
3565 members.
3566 * server.c (report_fork_events, report_vfork_events):
3567 New global flags.
3568 (handle_query): Add new features to qSupported packet and
3569 response.
3570 (captured_main): Initialize new global variables.
3571 * target.h (struct target_ops) <supports_fork_events>:
3572 New member.
3573 <supports_vfork_events>: New member.
3574 (target_supports_fork_events): New macro.
3575 (target_supports_vfork_events): New macro.
3576 * win32-low.c (win32_target_ops): Initialize new structure
3577 members.
3578
3579 2015-05-12 Gary Benson <gbenson@redhat.com>
3580
3581 * server.c (handle_qxfer_exec_file): Use current process
3582 if annex is empty.
3583
3584 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
3585
3586 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
3587 Remove HAVE_PTRACE_GETREGS conditionals.
3588 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
3589 instead of PTRACE_GETREGS and PTRACE_SETREGS.
3590
3591 2015-05-08 Yao Qi <yao.qi@linaro.org>
3592
3593 * linux-low.c (linux_supports_conditional_breakpoints): New
3594 function.
3595 (linux_target_ops): Install new target method.
3596 * lynx-low.c (lynx_target_ops): Install NULL hook for
3597 supports_conditional_breakpoints.
3598 * nto-low.c (nto_target_ops): Likewise.
3599 * spu-low.c (spu_target_ops): Likewise.
3600 * win32-low.c (win32_target_ops): Likewise.
3601 * server.c (handle_query): Check
3602 target_supports_conditional_breakpoints.
3603 * target.h (struct target_ops) <supports_conditional_breakpoints>:
3604 New field.
3605 (target_supports_conditional_breakpoints): New macro.
3606
3607 2015-05-06 Pedro Alves <palves@redhat.com>
3608
3609 PR server/18081
3610 * server.c (start_inferior): If the process exits, mourn it.
3611
3612 2015-04-21 Gary Benson <gbenson@redhat.com>
3613
3614 * hostio.c (fileio_open_flags_to_host): Factored out to
3615 fileio_to_host_openflags in common/fileio.c. Single use
3616 updated.
3617
3618 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
3619
3620 * linux-xtensa-low.c (xtensa_fill_gregset)
3621 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
3622 XCHAL_HAVE_LOOP.
3623
3624 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
3625
3626 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
3627 (regs_info): Replace usrregs pointer with NULL.
3628
3629 2015-04-17 Gary Benson <gbenson@redhat.com>
3630
3631 * target.h (struct target_ops) <pid_to_exec_file>: New field.
3632 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
3633 * server.c (handle_qxfer_exec_file): New function.
3634 (qxfer_packets): Add exec-file entry.
3635 (handle_query): Report qXfer:exec-file:read as supported packet.
3636
3637 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
3638
3639 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
3640
3641 2015-04-09 Gary Benson <gbenson@redhat.com>
3642
3643 * hostio-errno.c (errno_to_fileio_error): Remove function.
3644 Update caller to use remote_fileio_to_fio_error.
3645
3646 2015-04-09 Yao Qi <yao.qi@linaro.org>
3647
3648 * linux-low.c (linux_insert_point): Call
3649 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
3650 (linux_remove_point): Call remove_memory_breakpoint if type is
3651 raw_bkpt_type_sw.
3652 * linux-x86-low.c (x86_insert_point): Don't call
3653 insert_memory_breakpoint.
3654 (x86_remove_point): Don't call remove_memory_breakpoint.
3655
3656 2015-04-01 Pedro Alves <palves@redhat.com>
3657 Cleber Rosa <crosa@redhat.com>
3658
3659 * server.c (gdbserver_usage): Reorganize and extend the usage
3660 message.
3661
3662 2015-03-24 Pedro Alves <palves@redhat.com>
3663
3664 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
3665 output. Also dump TRAP_TRACE.
3666 (linux_low_filter_event): In debug output, distinguish a
3667 resume_stop SIGSTOP from a delayed SIGSTOP.
3668
3669 2015-03-24 Gary Benson <gbenson@redhat.com>
3670
3671 * linux-x86-low.c (x86_linux_new_thread): Moved to
3672 nat/x86-linux.c.
3673 (x86_linux_prepare_to_resume): Likewise.
3674
3675 2015-03-24 Gary Benson <gbenson@redhat.com>
3676
3677 * Makefile.in (x86-linux-dregs.o): New rule.
3678 * configure.srv: Add x86-linux-dregs.o to relevant targets.
3679 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
3680 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
3681 (x86_linux_dr_get): Likewise.
3682 (x86_linux_dr_set): Likewise.
3683 (update_debug_registers_callback): Likewise.
3684 (x86_linux_dr_set_addr): Likewise.
3685 (x86_linux_dr_get_addr): Likewise.
3686 (x86_linux_dr_set_control): Likewise.
3687 (x86_linux_dr_get_control): Likewise.
3688 (x86_linux_dr_get_status): Likewise.
3689 (x86_linux_update_debug_registers): Likewise.
3690
3691 2015-03-24 Gary Benson <gbenson@redhat.com>
3692
3693 * linux-x86-low.c (x86_linux_update_debug_registers):
3694 New function, factored out from...
3695 (x86_linux_prepare_to_resume): ...this.
3696
3697 2015-03-24 Gary Benson <gbenson@redhat.com>
3698
3699 * linux-x86-low.c (x86_linux_dr_get): Update comments.
3700 (x86_linux_dr_set): Likewise.
3701 (update_debug_registers_callback): Likewise.
3702 (x86_linux_dr_set_addr): Likewise.
3703 (x86_linux_dr_get_addr): Likewise.
3704 (x86_linux_dr_set_control): Likewise.
3705 (x86_linux_dr_get_control): Likewise.
3706 (x86_linux_dr_get_status): Likewise.
3707 (x86_linux_prepare_to_resume): Likewise.
3708
3709 2015-03-24 Gary Benson <gbenson@redhat.com>
3710
3711 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
3712 Use perror_with_name. Pass string through gettext.
3713 (x86_linux_dr_set): Likewise.
3714
3715 2015-03-24 Gary Benson <gbenson@redhat.com>
3716
3717 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
3718 (x86_linux_dr_set_addr): ...this.
3719 (x86_dr_low_get_addr): Rename to...
3720 (x86_linux_dr_get_addr): ...this.
3721 (x86_dr_low_set_control): Rename to...
3722 (x86_linux_dr_set_control): ...this.
3723 (x86_dr_low_get_control): Rename to...
3724 (x86_linux_dr_get_control): ...this.
3725 (x86_dr_low_get_status): Rename to...
3726 (x86_linux_dr_get_status): ...this.
3727 (x86_dr_low): Update with new function names.
3728
3729 2015-03-24 Gary Benson <gbenson@redhat.com>
3730
3731 * Makefile.in (x86-linux.o): New rule.
3732 * configure.srv: Add x86-linux.o to relevant targets.
3733 * linux-low.c (lwp_set_arch_private_info): New function.
3734 (lwp_arch_private_info): Likewise.
3735 * linux-x86-low.c: Include nat/x86-linux.h.
3736 (arch_lwp_info): Removed structure.
3737 (update_debug_registers_callback):
3738 Use lwp_set_debug_registers_changed.
3739 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
3740 and lwp_set_debug_registers_changed.
3741 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
3742
3743 2015-03-24 Gary Benson <gbenson@redhat.com>
3744
3745 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
3746 * linux-arm-low.c (arm_new_thread): Likewise.
3747 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
3748 * linux-mips-low.c (mips_linux_new_thread): Likewise.
3749 * linux-x86-low.c (x86_linux_new_thread): Likewise.
3750 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
3751
3752 2015-03-24 Gary Benson <gbenson@redhat.com>
3753
3754 * linux-low.c (ptid_of_lwp): New function.
3755 (lwp_is_stopped): Likewise.
3756 (lwp_stop_reason): Likewise.
3757 * linux-x86-low.c (update_debug_registers_callback):
3758 Use lwp_is_stopped.
3759 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
3760 lwp_stop_reason.
3761
3762 2015-03-24 Gary Benson <gbenson@redhat.com>
3763
3764 * linux-low.h (linux_stop_lwp): Remove declaration.
3765
3766 2015-03-24 Gary Benson <gbenson@redhat.com>
3767
3768 * linux-low.h: Include nat/linux-nat.h.
3769 * linux-low.c (iterate_over_lwps_args): New structure.
3770 (iterate_over_lwps_filter): New function.
3771 (iterate_over_lwps): Likewise.
3772 * linux-x86-low.c (update_debug_registers_callback):
3773 Update signature to what iterate_over_lwps expects.
3774 Remove PID check that iterate_over_lwps now performs.
3775 (x86_dr_low_set_addr): Use iterate_over_lwps.
3776 (x86_dr_low_set_control): Likewise.
3777
3778 2015-03-24 Gary Benson <gbenson@redhat.com>
3779
3780 * linux-x86-low.c (x86_debug_reg_state): New function.
3781 (x86_linux_prepare_to_resume): Use the above.
3782
3783 2015-03-24 Gary Benson <gbenson@redhat.com>
3784
3785 * linux-low.c (current_lwp_ptid): New function.
3786 * linux-x86-low.c: Include nat/linux-nat.h.
3787 (x86_dr_low_get_addr): Use current_lwp_ptid.
3788 (x86_dr_low_get_control): Likewise.
3789 (x86_dr_low_get_status): Likewise.
3790
3791 2015-03-20 Pedro Alves <palves@redhat.com>
3792
3793 * tracepoint.c (cmd_qtstatus): Make "str" const.
3794
3795 2015-03-20 Pedro Alves <palves@redhat.com>
3796
3797 * server.c (handle_general_set): Make "req_str" const.
3798
3799 2015-03-19 Pedro Alves <palves@redhat.com>
3800
3801 * linux-low.c (linux_resume_one_lwp): Rename to ...
3802 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
3803 instead call perror_with_name.
3804 (check_ptrace_stopped_lwp_gone): New function.
3805 (linux_resume_one_lwp): Reimplement as wrapper around
3806 linux_resume_one_lwp_throw that swallows errors if the LWP is
3807 gone.
3808
3809 2015-03-19 Pedro Alves <palves@redhat.com>
3810
3811 * linux-low.c (count_events_callback, select_event_lwp_callback):
3812 No longer check whether the thread has resume_stop as last resume
3813 kind.
3814
3815 2015-03-19 Pedro Alves <palves@redhat.com>
3816
3817 * linux-low.c (count_events_callback, select_event_lwp_callback):
3818 Use the lwp's status_pending_p field, not the thread's.
3819
3820 2015-03-19 Pedro Alves <palves@redhat.com>
3821
3822 * linux-low.c (select_event_lwp_callback): Update comments to
3823 no longer mention SIGTRAP.
3824
3825 2015-03-18 Gary Benson <gbenson@redhat.com>
3826
3827 * server.c (handle_query): Do not report vFile:fstat as supported.
3828
3829 2015-03-11 Gary Benson <gbenson@redhat.com>
3830
3831 * hostio.c (sys/types.h): New include.
3832 (sys/stat.h): Likewise.
3833 (common-remote-fileio.h): Likewise.
3834 (handle_fstat): New function.
3835 (handle_vFile): Handle vFile:fstat packets.
3836
3837 2015-03-11 Gary Benson <gbenson@redhat.com>
3838
3839 * configure.ac (AC_CHECK_MEMBERS): Add checks for
3840 struct stat.st_blocks and struct stat.st_blksize.
3841 * configure: Regenerate.
3842 * config.in: Likewise.
3843 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
3844 (OBS): Add common-remote-fileio.o.
3845 (common-remote-fileio.o): New rule.
3846
3847 2015-03-09 Pedro Alves <palves@redhat.com>
3848
3849 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
3850 'struct sockaddr' pointer in 'accept' call.
3851
3852 2015-03-09 Pedro Alves <palves@redhat.com>
3853
3854 Revert:
3855 2015-03-07 Pedro Alves <palves@redhat.com>
3856 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
3857 or <winsock2.h> here. Instead include "gdb_socket.h".
3858 (remote_open): Use union gdb_sockaddr_u.
3859 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
3860 or <winsock2.h> here. Instead include "gdb_socket.h".
3861 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
3862 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
3863 or <sys/un.h>.
3864 (init_named_socket, gdb_agent_helper_thread): Use union
3865 gdb_sockaddr_u.
3866
3867 2015-03-07 Pedro Alves <palves@redhat.com>
3868
3869 * configure.ac (build_warnings): Move
3870 -Wdeclaration-after-statement to the C-specific set.
3871 * configure: Regenerate.
3872
3873 2015-03-07 Pedro Alves <palves@redhat.com>
3874
3875 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
3876 or <winsock2.h> here. Instead include "gdb_socket.h".
3877 (remote_open): Use union gdb_sockaddr_u.
3878 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
3879 or <winsock2.h> here. Instead include "gdb_socket.h".
3880 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
3881 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
3882 or <sys/un.h>.
3883 (init_named_socket, gdb_agent_helper_thread): Use union
3884 gdb_sockaddr_u.
3885
3886 2015-03-07 Pedro Alves <palves@redhat.com>
3887
3888 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
3889 instead.
3890
3891 2015-03-06 Yao Qi <yao.qi@linaro.org>
3892
3893 * linux-aarch64-low.c (aarch64_insert_point): Use
3894 show_debug_regs as a boolean.
3895 (aarch64_remove_point): Likewise.
3896
3897 2015-03-05 Pedro Alves <palves@redhat.com>
3898
3899 * lynx-low.c (lynx_target_ops): Install NULL hooks for
3900 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
3901 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
3902 * nto-low.c (nto_target_ops): Likewise.
3903 * spu-low.c (spu_target_ops): Likewise.
3904 * win32-low.c (win32_target_ops): Likewise.
3905
3906 2015-03-04 Pedro Alves <palves@redhat.com>
3907
3908 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3909 Decide whether a breakpoint triggered based on the SIGTRAP's
3910 siginfo.si_code.
3911 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
3912 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3913 (linux_low_filter_event): Check for breakpoints before checking
3914 watchpoints.
3915 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
3916 siginfo.si_code.
3917 (linux_stopped_by_sw_breakpoint)
3918 (linux_supports_stopped_by_sw_breakpoint)
3919 (linux_stopped_by_hw_breakpoint)
3920 (linux_supports_stopped_by_hw_breakpoint): New functions.
3921 (linux_target_ops): Install new target methods.
3922
3923 2015-03-04 Pedro Alves <palves@redhat.com>
3924
3925 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
3926 * server.c (swbreak_feature, hwbreak_feature): New globals.
3927 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
3928 (captured_main): Clear swbreak_feature and hwbreak_feature.
3929 * server.h (swbreak_feature, hwbreak_feature): Declare.
3930 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
3931 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
3932 supports_stopped_by_hw_breakpoint>: New fields.
3933 (target_supports_stopped_by_sw_breakpoint)
3934 (target_stopped_by_sw_breakpoint)
3935 (target_supports_stopped_by_hw_breakpoint)
3936 (target_stopped_by_hw_breakpoint): Declare.
3937
3938 2015-03-04 Pedro Alves <palves@redhat.com>
3939
3940 enum lwp_stop_reason -> enum target_stop_reason
3941 * linux-low.c (check_stopped_by_breakpoint): Adjust.
3942 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
3943 (linux_wait_1, stuck_in_jump_pad_callback)
3944 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
3945 (linux_stopped_by_watchpoint):
3946 * linux-low.h (enum lwp_stop_reason): Delete.
3947 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
3948 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
3949
3950 2015-03-04 Yao Qi <yao.qi@linaro.org>
3951
3952 * Makefile.in (SFILES): Add linux-aarch64-low.c.
3953
3954 2015-03-03 Gary Benson <gbenson@redhat.com>
3955
3956 * hostio.c (handle_vFile): Fix prefix lengths.
3957
3958 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
3959
3960 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
3961 ptr_bits.
3962
3963 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
3964
3965 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
3966 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
3967 (clean): Add "rm -f" for above C files.
3968 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
3969 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
3970 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
3971 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
3972 * linux-s390-low.c (HWCAP_S390_VX): New macro.
3973 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
3974 (init_registers_s390x_vx_linux64)
3975 (init_registers_s390x_tevx_linux64)
3976 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
3977 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
3978 declarations.
3979 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
3980 (s390_store_vxrs_high): New functions.
3981 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
3982 NT_S390_VXRS_HIGH.
3983 (s390_arch_setup): Add logic for selecting one of the new target
3984 descriptions. Activate the new vector regsets if applicable.
3985 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
3986 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
3987 and init_registers_s390x_tevx_linux64.
3988
3989 2015-03-01 Pedro Alves <palves@redhat.com>
3990
3991 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
3992 parameter.
3993
3994 2015-02-27 Pedro Alves <palves@redhat.com>
3995
3996 * linux-x86-low.c (u_debugreg_offset): New function.
3997 (x86_linux_dr_get, x86_linux_dr_set): Use it.
3998
3999 2015-02-27 Pedro Alves <palves@redhat.com>
4000
4001 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
4002 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
4003 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
4004 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4005 (ps_lsetfpregs, ps_getpid)
4006 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
4007 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
4008 (ps_lsetxregs, ps_plog): Declare.
4009
4010 2015-02-27 Pedro Alves <palves@redhat.com>
4011
4012 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
4013 IP_AGENT_EXPORT_FUNC.
4014 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
4015 IP_AGENT_EXPORT_FUNC.
4016 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
4017 (IP_AGENT_EXPORT): Delete.
4018 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
4019 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
4020 (gdb_trampoline_buffer_error, collecting, gdb_collect)
4021 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
4022 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
4023 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
4024 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
4025 (traceframe_read_count, traceframe_write_count)
4026 (traceframes_created, trace_state_variables, get_raw_reg)
4027 (get_trace_state_variable_value, set_trace_state_variable_value)
4028 (ust_loaded, helper_thread_id, cmd_buf): Use
4029 IPA_SYM_EXPORTED_NAME.
4030 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
4031 (tracepoints) Use IP_AGENT_EXPORT_VAR.
4032 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
4033 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
4034 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
4035 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
4036 EXTERN_C_PUSH/EXTERN_C_POP.
4037 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
4038 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
4039 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
4040 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
4041 (traceframe_write_count, traceframe_read_count)
4042 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
4043 (about_to_request_buffer_space, get_trace_state_variable_value)
4044 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
4045 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
4046 EXTERN_C_PUSH/EXTERN_C_POP.
4047 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
4048 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
4049 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
4050 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
4051 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
4052 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
4053 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
4054 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
4055 Define.
4056 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
4057 (IP_AGENT_EXPORT_VAR_DECL): Define.
4058 (tracing): Declare.
4059 (gdb_agent_get_raw_reg): Declare.
4060
4061 2015-02-27 Tom Tromey <tromey@redhat.com>
4062 Pedro Alves <palves@redhat.com>
4063
4064 Rename symbols whose names are reserved C++ keywords throughout.
4065
4066 2015-02-27 Pedro Alves <palves@redhat.com>
4067
4068 * Makefile.in (COMPILER): New, get it from autoconf.
4069 (CXX): Get from autoconf instead.
4070 (COMPILE.pre): Use COMPILER.
4071 (CC-LD): Rename to ...
4072 (CC_LD): ... this. Use COMPILER.
4073 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
4074 (CXX_FOR_TARGET): Default to g++ instead of gcc.
4075 * acinclude.m4: Include build-with-cxx.m4.
4076 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
4077 Disable -Werror by default if building in C++ mode.
4078 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
4079 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
4080 the C++ compiler. Save/restore CXXFLAGS too.
4081 * configure: Regenerate.
4082
4083 2015-02-27 Pedro Alves <palves@redhat.com>
4084
4085 * acinclude.m4: Include libiberty.m4.
4086 * configure.ac: Call libiberty_INIT.
4087 * config.in, configure: Regenerate.
4088
4089 2015-02-26 Pedro Alves <palves@redhat.com>
4090
4091 * linux-low.c (linux_wait_1): When incrementing the PC past a
4092 program breakpoint always use the_low_target.breakpoint_len as
4093 increment, rather than the maximum between that and
4094 the_low_target.decr_pc_after_break.
4095
4096 2015-02-23 Pedro Alves <palves@redhat.com>
4097
4098 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
4099 thread was doing a step-over; always adjust the PC if
4100 we stepped over a permanent breakpoint.
4101 (linux_wait_1): If we stepped over breakpoint that was on top of a
4102 permanent breakpoint, manually advance the PC past it.
4103
4104 2015-02-23 Pedro Alves <palves@redhat.com>
4105
4106 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
4107 modes.
4108 (x86_fill_gregset, x86_store_gregset): Use it when handling
4109 $orig_eax.
4110
4111 2015-02-20 Pedro Alves <palves@redhat.com>
4112
4113 * thread-db.c: Include "nat/linux-procfs.h".
4114 (thread_db_init): Skip listing new threads if the kernel supports
4115 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
4116
4117 2015-02-20 Pedro Alves <palves@redhat.com>
4118
4119 * linux-low.c (status_pending_p_callback): Use ptid_match.
4120
4121 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
4122
4123 PR breakpoints/16812
4124 * linux-low.c (wstatus_maybe_breakpoint): Remove.
4125 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
4126 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
4127
4128 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
4129
4130 PR breakpoints/15956
4131 * tracepoint.c (cmd_qtinit): Add check for current_thread.
4132
4133 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
4134
4135 * linux-low.c (linux_low_btrace_conf): Print size.
4136 * server.c (handle_btrace_conf_general_set): New.
4137 (hanle_general_set): Call handle_btrace_conf_general_set.
4138 (handle_query): Report Qbtrace-conf:bts:size as supported.
4139
4140 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
4141
4142 * linux-low.c (linux_low_enable_btrace): Update parameters.
4143 (linux_low_btrace_conf): New.
4144 (linux_target_ops)<to_btrace_conf>: Initialize.
4145 * server.c (current_btrace_conf): New.
4146 (handle_btrace_enable): Rename to ...
4147 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
4148 to target_enable_btrace. Update comment. Update users.
4149 (handle_qxfer_btrace_conf): New.
4150 (qxfer_packets): Add btrace-conf entry.
4151 (handle_query): Report qXfer:btrace-conf:read as supported packet.
4152 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
4153 (target_ops)<read_btrace_conf>: New.
4154 (target_enable_btrace): Update parameters.
4155 (target_read_btrace_conf): New.
4156
4157 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
4158
4159 * server.c (handle_btrace_general_set): Remove call to
4160 target_supports_btrace.
4161 (supported_btrace_packets): New.
4162 (handle_query): Call supported_btrace_packets.
4163 * target.h: include btrace-common.h.
4164 (btrace_target_info): Removed.
4165 (supports_btrace, target_supports_btrace): Update parameters.
4166
4167 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
4168
4169 * Makefile.in (SFILES): Add common/btrace-common.c.
4170 (OBS): Add common/btrace-common.o.
4171 (btrace-common.o): Add build rules.
4172 * linux-low: Include btrace-common.h.
4173 (linux_low_read_btrace): Use struct btrace_data. Call
4174 btrace_data_init and btrace_data_fini.
4175
4176 2015-02-06 Pedro Alves <palves@redhat.com>
4177
4178 * thread-db.c (find_new_threads_callback): Add debug output.
4179
4180 2015-02-04 Pedro Alves <palves@redhat.com>
4181
4182 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
4183 (resume_stopped_resumed_lwps): New function.
4184 (linux_wait_for_event_filtered): Use it.
4185
4186 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
4187
4188 * Makefile.in (SFILES): Add linux-personality.c.
4189 (linux-personality.o): New rule.
4190 * configure.srv (srv_linux_obj): Add linux-personality.o to the
4191 list of objects to be built.
4192 * linux-low.c: Include nat/linux-personality.h.
4193 (linux_create_inferior): Remove code to disable address space
4194 randomization (moved to ../nat/linux-personality.c). Create
4195 cleanup to disable address space randomization.
4196
4197 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
4198
4199 * Makefile.in (posix-strerror.o): New rule.
4200 (mingw-strerror.o): Likewise.
4201 * configure: Regenerated.
4202 * configure.ac: Source file ../common/common.host. Initialize new
4203 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
4204
4205 2015-01-14 Yao Qi <yao@codesourcery.com>
4206
4207 * Makefile.in (SFILES): Add nat/ppc-linux.c.
4208 (ppc-linux.o): New rule.
4209 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
4210 * configure.ac: AC_CHECK_FUNCS(getauxval).
4211 * config.in: Re-generated.
4212 * configure: Re-generated.
4213 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
4214 ppc64_64bit_inferior_p
4215
4216 2015-01-14 Yao Qi <yao@codesourcery.com>
4217
4218 * linux-ppc-low.c: Include "nat/ppc-linux.h".
4219 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
4220 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
4221 (PT_ORIG_R3, PT_TRAP): Likewise.
4222 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
4223 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
4224 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
4225
4226 2015-01-10 Joel Brobecker <brobecker@adacore.com>
4227
4228 * i387-fp.c (i387_cache_to_xsave): In look over
4229 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
4230 zmmh_low_space field by use of zmmh_high_space.
4231
4232 2015-01-09 Pedro Alves <palves@redhat.com>
4233
4234 * linux-low.c (step_over_bkpt): Move higher up in the file.
4235 (handle_extended_wait): Don't store the stop_pc here.
4236 (get_stop_pc): Adjust comments and rename to ...
4237 (check_stopped_by_breakpoint): ... this. Record whether the LWP
4238 stopped for a software breakpoint or hardware breakpoint.
4239 (thread_still_has_status_pending_p): New function.
4240 (status_pending_p_callback): Use
4241 thread_still_has_status_pending_p. If the event is no longer
4242 interesting, resume the LWP.
4243 (handle_tracepoints): Add assert.
4244 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
4245 (wstatus_maybe_breakpoint): New function.
4246 (cancel_breakpoint): Delete function.
4247 (check_stopped_by_watchpoint): New function, factored out from
4248 linux_low_filter_event.
4249 (lp_status_maybe_breakpoint): Delete function.
4250 (linux_low_filter_event): Remove filter_ptid argument.
4251 Leave thread group exits pending here. Store the LWP's stop PC.
4252 Always leave events pending.
4253 (linux_wait_for_event_filtered): Pull all events out of the
4254 kernel, and leave them all pending.
4255 (count_events_callback, select_event_lwp_callback): Consider all
4256 events.
4257 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
4258 (select_event_lwp): Only give preference to the stepping LWP in
4259 all-stop mode. Adjust comments.
4260 (ignore_event): New function.
4261 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
4262 references to cancel_breakpoints. Adjust to renames. Also give
4263 equal priority to all LWPs that have had events in non-stop mode.
4264 If reporting a software breakpoint event, unadjust the LWP's PC.
4265 (linux_wait): If linux_wait_1 returned an ignored event, retry.
4266 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
4267 Adjust.
4268 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
4269 (resume_status_pending_p): Use thread_still_has_status_pending_p.
4270 (linux_stopped_by_watchpoint): Adjust.
4271 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
4272 * linux-low.h (enum lwp_stop_reason): New.
4273 (struct lwp_info) <stop_pc>: Adjust comment.
4274 <stopped_by_watchpoint>: Delete field.
4275 <stop_reason>: New field.
4276 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
4277 * mem-break.c (software_breakpoint_inserted_here)
4278 (hardware_breakpoint_inserted_here): New function.
4279 * mem-break.h (software_breakpoint_inserted_here)
4280 (hardware_breakpoint_inserted_here): Declare.
4281 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
4282 (cancel_breakpoints): Delete.
4283 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
4284 (upload_fast_traceframes): Remove references to
4285 cancel_breakpoints.
4286
4287 2015-01-09 Pedro Alves <palves@redhat.com>
4288
4289 * thread-db.c (find_new_threads_callback): Ignore thread if the
4290 kernel thread ID is -1.
4291
4292 2015-01-09 Pedro Alves <palves@redhat.com>
4293
4294 * linux-low.c (linux_attach_fail_reason_string): Move to
4295 nat/linux-ptrace.c, and rename.
4296 (linux_attach_lwp): Update comment.
4297 (attach_proc_task_lwp_callback): New function.
4298 (linux_attach): Adjust to rename and use
4299 linux_proc_attach_tgid_threads.
4300 (linux_attach_fail_reason_string): Delete declaration.
4301
4302 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4303
4304 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
4305 * server.c (gdbserver_version): Likewise.
4306
4307 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
4308
4309 * remote-utils.c: Include ctype.h.
4310 (input_interrupt): Explicitly handle the case when the char
4311 received is the NUL byte. Improve the printing of non-ASCII
4312 characters.
4313
4314 2014-12-16 Joel Brobecker <brobecker@adacore.com>
4315
4316 * linux-low.c (linux_low_filter_event): Update call to
4317 linux_enable_event_reporting following the addition of
4318 a new parameter to that function.
4319
4320 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
4321
4322 PR server/17457
4323 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
4324 (AARCH64_FPCR_REGNO): Likewise.
4325 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
4326 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
4327 (aarch64_store_fpregset): Likewise.
4328
4329 2014-12-15 Joel Brobecker <brobecker@adacore.com>
4330
4331 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
4332 Remove FIXME comment about assumption about N.
4333
4334 2014-12-13 Joel Brobecker <brobecker@adacore.com>
4335
4336 * configure.ac: If large-file support is disabled in GDBserver,
4337 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
4338 * configure: Regenerate.
4339
4340 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
4341
4342 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
4343 warning upon ENODATA from ptrace.
4344 * linux-s390-low.c (s390_store_tdb): New.
4345 (s390_regsets): Add regset for NT_S390_TDB.
4346
4347 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
4348
4349 * linux-low.c (regsets_store_inferior_registers): Skip regsets
4350 without a fill_function.
4351 * linux-s390-low.c (s390_fill_last_break): Remove.
4352 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
4353 (s390_arch_setup): Use regset's size instead of fill_function for
4354 loop end condition.
4355
4356 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
4357
4358 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
4359 the regset's store function when ptrace returned an error.
4360 * regcache.c (get_thread_regcache): Invalidate register cache
4361 before fetching inferior's registers.
4362
4363 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
4364
4365 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
4366 while-loop as for-loop.
4367 (regsets_store_inferior_registers): Likewise.
4368
4369 2014-11-28 Yao Qi <yao@codesourcery.com>
4370
4371 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
4372 * config.in, configure: Re-generate.
4373 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
4374 is defined.
4375
4376 2014-11-21 Yao Qi <yao@codesourcery.com>
4377
4378 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
4379 (AC_CHECK_HEADERS): Remove malloc.h.
4380 * configure: Re-generated.
4381 * config.in: Re-generated.
4382 * server.h: Don't include alloca.h and malloc.h.
4383 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
4384 Don't include malloc.h.
4385
4386 2014-11-17 Joel Brobecker <brobecker@adacore.com>
4387
4388 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
4389 corresponding ERRNO check in same block.
4390
4391 2014-11-12 Pedro Alves <palves@redhat.com>
4392
4393 * server.c (cont_thread): Update comment.
4394 (start_inferior, attach_inferior): No longer clear cont_thread.
4395 (handle_v_cont): No longer set cont_thread.
4396 (captured_main): Clear cont_thread each time a GDB connects.
4397
4398 2014-11-12 Pedro Alves <palves@redhat.com>
4399
4400 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
4401 thread, and don't resume all threads if the Hc thread has exited.
4402
4403 2014-11-12 Pedro Alves <palves@redhat.com>
4404
4405 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
4406 the process group instead of to a specific LWP.
4407
4408 2014-10-15 Pedro Alves <palves@redhat.com>
4409
4410 PR server/17487
4411 * win32-arm-low.c (arm_set_thread_context): Remove current_event
4412 parameter.
4413 (arm_set_thread_context): Delete.
4414 (the_low_target): Adjust.
4415 * win32-i386-low.c (debug_registers_changed)
4416 (debug_registers_used): Delete.
4417 (update_debug_registers_callback): New function.
4418 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
4419 needing to update their debug registers.
4420 (win32_get_current_dr): New function.
4421 (x86_dr_low_get_addr, x86_dr_low_get_control)
4422 (x86_dr_low_get_status): Fetch the debug register from the thread
4423 record's context.
4424 (i386_initial_stuff): Adjust.
4425 (i386_get_thread_context): Remove current_event parameter. Don't
4426 clear debug_registers_changed nor copy DR values to
4427 debug_reg_state.
4428 (i386_set_thread_context): Delete.
4429 (i386_prepare_to_resume): New function.
4430 (i386_thread_added): Mark the thread as needing to update irs
4431 debug registers.
4432 (the_low_target): Remove i386_set_thread_context and install
4433 i386_prepare_to_resume.
4434 * win32-low.c (win32_get_thread_context): Adjust.
4435 (win32_set_thread_context): Use SetThreadContext
4436 directly.
4437 (win32_prepare_to_resume): New function.
4438 (win32_require_context): New function, factored out from ...
4439 (thread_rec): ... this.
4440 (continue_one_thread): Call win32_prepare_to_resume on each thread
4441 we're about to continue.
4442 (win32_resume): Call win32_prepare_to_resume on the event thread.
4443 * win32-low.h (struct win32_thread_info)
4444 <debug_registers_changed>: New field.
4445 (struct win32_target_ops): Change prototype of set_thread_context,
4446 delete set_thread_context and add prepare_to_resume.
4447 (win32_require_context): New declaration.
4448
4449 2014-10-08 Gary Benson <gbenson@redhat.com>
4450
4451 * server.h: Do not include common-exceptions.h.
4452
4453 2014-10-08 Gary Benson <gbenson@redhat.com>
4454
4455 * server.h: Do not include cleanups.h.
4456
4457 2014-09-30 James Hogan <james.hogan@imgtec.com>
4458
4459 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
4460 mips64-dsp-linux.c.
4461
4462 2014-09-23 Yao Qi <yao@codesourcery.com>
4463
4464 * linux-low.c (lp_status_maybe_breakpoint): New function.
4465 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
4466 (count_events_callback): Likewise.
4467 (select_event_lwp_callback): Likewise.
4468 (cancel_breakpoints_callback): Likewise.
4469
4470 2014-09-19 Don Breazeal <donb@codesourcery.com>
4471
4472 * linux-low.c (handle_extended_wait): Call
4473 linux_ptrace_get_extended_event.
4474 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
4475 linux_is_extended_waitstatus.
4476
4477 2014-09-16 Joel Brobecker <brobecker@adacore.com>
4478
4479 * Makefile.in (CPPFLAGS): Define.
4480 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
4481 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
4482
4483 2014-09-16 Gary Benson <gbenson@redhat.com>
4484
4485 * inferiors.h (current_inferior): Renamed as...
4486 (current_thread): New variable. All uses updated.
4487 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
4488 (maybe_move_out_of_jump_pad): Likewise.
4489 (cancel_breakpoint): Likewise.
4490 (linux_low_filter_event): Likewise.
4491 (wait_for_sigstop): Likewise.
4492 (linux_resume_one_lwp): Likewise.
4493 (need_step_over_p): Likewise.
4494 (start_step_over): Likewise.
4495 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
4496 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
4497 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
4498 and save_inferior as saved_thread.
4499 * regcache.c (get_thread_regcache): Renamed saved_inferior as
4500 saved_thread.
4501 (regcache_invalidate_thread): Likewise.
4502 * remote-utils.c (prepare_resume_reply): Likewise.
4503 * thread-db.c (thread_db_get_tls_address): Likewise.
4504 (disable_thread_event_reporting): Likewise.
4505 (remove_thread_event_breakpoints): Likewise.
4506 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
4507 as saved_thread.
4508 * target.h (set_desired_inferior): Renamed as...
4509 (set_desired_thread): New declaration. All uses updated.
4510 * server.c (myresume): Updated comment to reference thread instead
4511 of inferior.
4512 (handle_serial_event): Likewise.
4513 (handle_target_event): Likewise.
4514
4515 2014-09-12 Tom Tromey <tromey@redhat.com>
4516 Gary Benson <gbenson@redhat.com>
4517
4518 * regcache.h: Include common-regcache.h.
4519 (regcache_read_pc): Don't declare.
4520 * regcache.c (get_thread_regcache_for_ptid): New function.
4521
4522 2014-09-11 Tom Tromey <tromey@redhat.com>
4523 Gary Benson <gbenson@redhat.com>
4524
4525 * symbol.c: New file.
4526 * Makefile.in (SFILES): Add symbol.c.
4527 (OBS): Add symbol.o.
4528
4529 2014-09-11 Gary Benson <gbenson@redhat.com>
4530
4531 * target.c (target_stop_ptid, target_continue_ptid): New
4532 functions.
4533
4534 2014-09-11 Tom Tromey <tromey@redhat.com>
4535 Gary Benson <gbenson@redhat.com>
4536
4537 * target.h: Include target/target.h.
4538 * target.c (target_read_memory, target_read_uint32)
4539 (target_write_memory): New functions.
4540
4541 2014-09-11 Gary Benson <gbenson@redhat.com>
4542
4543 * server.h (debug_hw_points): Don't declare.
4544 * server.c (debug_hw_points): Don't define. Replace all uses
4545 with show_debug_regs.
4546 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
4547 all uses with show_debug_regs.
4548
4549 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4550
4551 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
4552 endianness into account.
4553 (ppc_supply_ptrace_register): Likewise.
4554
4555 2014-09-03 James Hogan <james.hogan@imgtec.com>
4556
4557 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
4558 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
4559
4560 2014-09-03 Gary Benson <gbenson@redhat.com>
4561
4562 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
4563 ALL_DEBUG_ADDRESS_REGISTERS.
4564
4565 2014-09-02 Gary Benson <gbenson@redhat.com>
4566
4567 * i386-low.h: Renamed as...
4568 * x86-low.h: New file. All type, function and variable name
4569 prefixes changed from "i386_" to "x86_". All references updated.
4570 * i386-low.c: Renamed as...
4571 * x86-low.c: New file. All type, function and variable name
4572 prefixes changed from "i386_" to "x86_". All references updated.
4573
4574 2014-09-02 Gary Benson <gbenson@redhat.com>
4575
4576 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
4577 (x86_linux_new_thread): Likewise.
4578
4579 2014-08-29 Gary Benson <gbenson@redhat.com>
4580
4581 * server.h (setjmp.h): Do not include.
4582 (toplevel): Do not declare.
4583 (common-exceptions.h): Include.
4584 (cleanups.h): Likewise.
4585 * server.c (toplevel): Do not define.
4586 (exit_code): New static global.
4587 (detach_or_kill_for_exit_cleanup): New function.
4588 (main): New function. Original main renamed to...
4589 (captured_main): New function.
4590 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
4591
4592 2014-08-29 Gary Benson <gbenson@redhat.com>
4593
4594 * Makefile.in (SFILES): Add common/common-exceptions.c.
4595 (OBS): Add common-exceptions.o.
4596 (common-exceptions.o): New rule.
4597 * utils.c (prepare_to_throw_exception): New function.
4598
4599 2014-08-29 Gary Benson <gbenson@redhat.com>
4600
4601 * config.in: Regenerate.
4602 * configure: Likewise.
4603
4604 2014-08-29 Gary Benson <gbenson@redhat.com>
4605
4606 * Makefile.in (SFILES): Add common/cleanups.c.
4607 (OBS): cleanups.o.
4608 (cleanups.o): New rule.
4609
4610 2014-08-29 Gary Benson <gbenson@redhat.com>
4611
4612 * utils.c (internal_vwarning): New function.
4613
4614 2014-08-28 Gary Benson <gbenson@redhat.com>
4615
4616 * utils.h (fatal): Remove declaration.
4617 * utils.c (fatal): Remove function.
4618
4619 2014-08-28 Gary Benson <gbenson@redhat.com>
4620
4621 * tracepoint.c (gdb_agent_init): Replace fatal with
4622 perror_with_name.
4623 (initialize_tracepoint): Likewise.
4624
4625 2014-08-28 Gary Benson <gbenson@redhat.com>
4626
4627 * remote-utils.c (remote_prepare): Replace fatal with error.
4628
4629 2014-08-28 Gary Benson <gbenson@redhat.com>
4630
4631 * linux-low.c (linux_async): Replace fatal with warning.
4632 Tidy up and return.
4633 (linux_start_non_stop): Return -1 if linux_async failed.
4634
4635 2014-08-28 Gary Benson <gbenson@redhat.com>
4636
4637 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
4638 gdb_assert.
4639 (i386_dr_low_get_addr): Remove vague comment.
4640 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
4641 gdb_assert.
4642
4643 2014-08-28 Gary Benson <gbenson@redhat.com>
4644
4645 * inferiors.c (get_thread_process): Replace check with gdb_assert.
4646 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
4647 internal_error.
4648 (linux_resume_one_lwp): Likewise.
4649 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
4650 gdb_assert.
4651 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
4652 with internal_error.
4653 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
4654 (init_register_cache): Replace fatal with gdb_assert_not_reached.
4655 (find_register_by_name): Replace fatal with internal_error.
4656 (find_regno): Likewise.
4657 * tdesc.c (init_target_desc): Replace check with gdb_assert.
4658 * thread-db.c (thread_db_create_event): Likewise.
4659 (thread_db_load_search): Likewise.
4660 (try_thread_db_load_1): Likewise.
4661 * tracepoint.c (get_jump_space_head): Replace fatal with
4662 internal_error.
4663 (claim_trampoline_space): Likewise.
4664 (have_fast_tracepoint_trampoline_buffer): Likewise.
4665 (cmd_qtstart): Likewise.
4666 (stop_tracing): Likewise.
4667 (fast_tracepoint_collecting): Likewise.
4668 (target_malloc): Likewise.
4669 (download_tracepoint): Likewise.
4670 (download_trace_state_variables): Replace check with gdb_assert.
4671 (upload_fast_traceframes): Replace fatal with internal_error.
4672
4673 2014-08-19 Tom Tromey <tromey@redhat.com>
4674 Gary Benson <gbenson@redhat.com>
4675
4676 * Makefile.in (SFILES): Add common/common-debug.c.
4677 (OBS): Add common-debug.o.
4678 (common-debug.o): New rule.
4679 * debug.h (debug_printf): Don't declare.
4680 * debug.c (debug_printf): Renamed and rewritten as...
4681 (debug_vprintf): New function.
4682
4683 2014-08-19 Gary Benson <gbenson@redhat.com>
4684
4685 * utils.h: Do not include print-utils.h.
4686
4687 2014-08-19 Tom Tromey <tromey@redhat.com>
4688 Gary Benson <gbenson@redhat.com>
4689
4690 * server.h: Add static assertion.
4691 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
4692
4693 2014-08-19 Tom Tromey <tromey@redhat.com>
4694 Gary Benson <gbenson@redhat.com>
4695
4696 * Makefile.in (SFILES): Add common/errors.c.
4697 (OBS): Add errors.o.
4698 (IPA_OBS): Add errors-ipa.o.
4699 (errors.o): New rule.
4700 (errors-ipa.o): Likewise.
4701 * utils.h (perror_with_name, error, warning): Don't declare.
4702 * utils.c (warning): Renamed and rewritten as...
4703 (vwarning): New function.
4704 (error): Renamed and rewritten as...
4705 (verror): New function.
4706 (internal_error): Renamed and rewritten as...
4707 (internal_verror): New function.
4708
4709 2014-08-07 Gary Benson <gbenson@redhat.com>
4710
4711 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
4712 * configure: Regenerate.
4713 * config.in: Likewise.
4714 * server.h: Do not include errno.h.
4715 * event-loop.c: Likewise.
4716 * hostio-errno.c: Likewise.
4717 * linux-low.c: Likewise.
4718 * remote-utils.c: Likewise.
4719 * spu-low.c: Likewise.
4720 * utils.c: Likewise.
4721 * gdbreplay.c: Unconditionally include errno.h.
4722
4723 2014-08-07 Gary Benson <gbenson@redhat.com>
4724
4725 * server.h: Do not include string.h.
4726 * event-loop.c: Likewise.
4727 * linux-low.c: Likewise.
4728 * regcache.c: Likewise.
4729 * remote-utils.c: Likewise.
4730 * spu-low.c: Likewise.
4731 * utils.c: Likewise.
4732
4733 2014-08-07 Gary Benson <gbenson@redhat.com>
4734
4735 * server.h: Do not include gdb_assert.h.
4736
4737 2014-08-07 Gary Benson <gbenson@redhat.com>
4738
4739 * server.h: Do not include common-utils.h.
4740
4741 2014-08-07 Gary Benson <gbenson@redhat.com>
4742
4743 * server.h: Do not include ptid.h.
4744 * notif.h: Likewise.
4745
4746 2014-08-07 Gary Benson <gbenson@redhat.com>
4747
4748 * server.h: Do not include gdb_locale.h.
4749
4750 2014-08-07 Gary Benson <gbenson@redhat.com>
4751
4752 * server.h: Do not include gdb/signals.h.
4753 * win32-low.c: Likewise.
4754
4755 2014-08-07 Gary Benson <gbenson@redhat.com>
4756
4757 * server.h: Do not include pathmax.h.
4758
4759 2014-08-07 Gary Benson <gbenson@redhat.com>
4760
4761 * server.h: Do not include libiberty.h.
4762 * linux-bfin-low.c: Likewise.
4763
4764 2014-08-07 Gary Benson <gbenson@redhat.com>
4765
4766 * server.h: Do not include ansidecl.h.
4767
4768 2014-08-07 Gary Benson <gbenson@redhat.com>
4769
4770 * linux-x86-low.c: Do not include stddef.h.
4771 * lynx-ppc-low.c: Likewise.
4772 * tracepoint.c: Likewise.
4773
4774 2014-08-07 Gary Benson <gbenson@redhat.com>
4775
4776 * server.h: Do not include stdarg.h.
4777 * nto-low.c: Likewise.
4778
4779 2014-08-07 Gary Benson <gbenson@redhat.com>
4780
4781 * server.h: Do not include stdlib.h.
4782 * inferiors.c: Likewise.
4783 * linux-low.c: Likewise.
4784 * regcache.c: Likewise.
4785 * spu-low.c: Likewise.
4786 * tracepoint.c: Likewise.
4787 * utils.c: Likewise.
4788
4789 2014-08-07 Gary Benson <gbenson@redhat.com>
4790
4791 * server.h: Do not include stdio.h.
4792 * linux-low.c: Likewise.
4793 * remote-utils.c: Likewise.
4794 * spu-low.c: Likewise.
4795 * utils.c: Likewise.
4796 * wincecompat.c: Likewise.
4797
4798 2014-08-06 Gary Benson <gbenson@redhat.com>
4799
4800 * regcache.c (init_register_cache): Move conditionals inside if.
4801
4802 2014-08-06 Gary Benson <gbenson@redhat.com>
4803
4804 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
4805
4806 2014-07-31 Gary Benson <gbenson@redhat.com>
4807
4808 * ax.h: Do not include server.h.
4809 * gdbthread.h: Likewise.
4810 * lynx-low.h: Likewise.
4811 * notif.h: Likewise.
4812
4813 2014-07-30 Gary Benson <gbenson@redhat.com>
4814
4815 * server.h: Include common-defs.h.
4816 Do not include config.h or build-gnulib-gdbserver/config.h.
4817
4818 2014-07-30 Gary Benson <gbenson@redhat.com>
4819
4820 * hostio-errno.c: Move server.h to top of includes list.
4821 * inferiors.c: Likewise.
4822 * linux-x86-low.c: Likewise.
4823 * notif.c: Include server.h.
4824
4825 2014-07-24 Tom Tromey <tromey@redhat.com>
4826 Gary Benson <gbenson@redhat.com>
4827
4828 * server.h (CORE_ADDR): Now unsigned.
4829
4830 2014-07-16 Pedro Alves <palves@redhat.com>
4831
4832 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
4833
4834 2014-07-15 Pedro Alves <palves@redhat.com>
4835
4836 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
4837 copy.
4838
4839 2014-07-11 Pedro Alves <palves@redhat.com>
4840
4841 * linux-low.c (kill_wait_lwp): New function, based on
4842 kill_one_lwp_callback, but use my_waitpid directly.
4843 (kill_one_lwp_callback, linux_kill): Use it.
4844
4845 2014-06-23 Pedro Alves <palves@redhat.com>
4846
4847 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
4848 before setting DR0..DR3.
4849
4850 2014-06-20 Gary Benson <gbenson@redhat.com>
4851
4852 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
4853 * configure: Regenerated.
4854 * config.in: Likewise.
4855
4856 2014-06-20 Gary Benson <gbenson@redhat.com>
4857
4858 * Makefile.in (SFILES): Update locations for files moved
4859 from common to nat.
4860 (object file files): Reordered.
4861
4862 2014-06-20 Gary Benson <gbenson@redhat.com>
4863
4864 * i386-low.h (i386_dr_low_can_set_addr): Removed.
4865 (i386_dr_low_set_addr): Likewise.
4866 (i386_dr_low_get_addr): Likewise.
4867 (i386_dr_low_can_set_control): Likewise.
4868 (i386_dr_low_set_control): Likewise.
4869 (i386_dr_low_get_control): Likewise.
4870 (i386_dr_low_get_status): Likewise.
4871 (i386_get_debug_register_length): Likewise.
4872 * linux-x86-low.c (i386_dr_low_set_addr):
4873 Changed signature. Made static.
4874 (i386_dr_low_get_addr): Likewise.
4875 (i386_dr_low_set_control): Likewise.
4876 (i386_dr_low_get_control): Likewise.
4877 (i386_dr_low_get_status): Likewise.
4878 (i386_dr_low): New global variable.
4879 * win32-i386-low.c (i386_dr_low_set_addr):
4880 Changed signature. Made static.
4881 (i386_dr_low_get_addr): Likewise.
4882 (i386_dr_low_set_control): Likewise.
4883 (i386_dr_low_get_control): Likewise.
4884 (i386_dr_low_get_status): Likewise.
4885 (i386_dr_low): New global variable.
4886
4887 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
4888
4889 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
4890 * Makefile.in (AR, AR_FLAGS): Define.
4891 * configure: Regenerate.
4892
4893 2014-06-19 Gary Benson <gbenson@redhat.com>
4894
4895 * Makefile.in (i386-dregs.o): New rule.
4896 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
4897 * i386-low.c (target.h): Remove include.
4898 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
4899 (DR_CONTROL_SHIFT): Likewise.
4900 (DR_CONTROL_SIZE): Likewise.
4901 (DR_RW_EXECUTE): Likewise.
4902 (DR_RW_WRITE): Likewise.
4903 (DR_RW_READ): Likewise.
4904 (DR_RW_IORW): Likewise.
4905 (DR_LEN_1): Likewise.
4906 (DR_LEN_2): Likewise.
4907 (DR_LEN_4): Likewise.
4908 (DR_LEN_8): Likewise.
4909 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4910 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4911 (DR_ENABLE_SIZE): Likewise.
4912 (DR_LOCAL_SLOWDOWN): Likewise.
4913 (DR_GLOBAL_SLOWDOWN): Likewise.
4914 (DR_CONTROL_RESERVED): Likewise.
4915 (I386_DR_CONTROL_MASK): Likewise.
4916 (I386_DR_VACANT): Likewise.
4917 (I386_DR_LOCAL_ENABLE): Likewise.
4918 (I386_DR_GLOBAL_ENABLE): Likewise.
4919 (I386_DR_DISABLE): Likewise.
4920 (I386_DR_SET_RW_LEN): Likewise.
4921 (I386_DR_GET_RW_LEN): Likewise.
4922 (I386_DR_WATCH_HIT): Likewise.
4923 (i386_wp_op_t): Likewise.
4924 (i386_show_dr): Likewise.
4925 (i386_length_and_rw_bits): Likewise.
4926 (i386_insert_aligned_watchpoint): Likewise.
4927 (i386_remove_aligned_watchpoint): Likewise.
4928 (i386_handle_nonaligned_watchpoint): Likewise.
4929 i386_update_inferior_debug_regs(): Likewise.
4930 (i386_dr_insert_watchpoint): Likewise.
4931 (i386_dr_remove_watchpoint): Likewise.
4932 (i386_dr_region_ok_for_watchpoint): Likewise.
4933 (i386_dr_stopped_data_address): Likewise.
4934 (i386_dr_stopped_by_watchpoint): Likewise.
4935
4936 2014-06-19 Gary Benson <gbenson@redhat.com>
4937
4938 * i386-low.c (i386_dr_show): Renamed to
4939 i386_show_dr and made static. All uses updated.
4940 (i386_dr_length_and_rw_bits): Renamed to
4941 i386_length_and_rw_bits and made static.
4942 All uses updated.
4943 (i386_dr_insert_aligned_watchpoint): Renamed to
4944 i386_insert_aligned_watchpoint and made static.
4945 All uses updated.
4946 (i386_dr_remove_aligned_watchpoint): Renamed to
4947 i386_remove_aligned_watchpoint and made static.
4948 All uses updated.
4949 (i386_dr_update_inferior_debug_regs): Renamed to
4950 i386_update_inferior_debug_regs and made static.
4951 All uses updated.
4952
4953 2014-06-18 Gary Benson <gbenson@redhat.com>
4954
4955 * i386-low.h (i386_dr_low_can_set_addr): New macro.
4956 (i386_dr_low_can_set_control): Likewise.
4957 (i386_get_debug_register_length): Likewise.
4958 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
4959 (i386_dr_low_can_set_control): Likewise.
4960 (i386_get_debug_register_length): Likewise.
4961
4962 2014-06-17 Gary Benson <gbenson@redhat.com>
4963
4964 * i386-low.h (i386-dregs.h): New include.
4965 (DR_FIRSTADDR): Now in i386-dregs.h.
4966 (DR_LASTADDR): Likewise.
4967 (DR_NADDR): Likewise.
4968 (DR_STATUS): Likewise.
4969 (DR_CONTROL): Likewise.
4970 (i386_debug_reg_state): Likewise.
4971 (i386_dr_insert_watchpoint): Likewise.
4972 (i386_dr_remove_watchpoint): Likewise.
4973 (i386_dr_region_ok_for_watchpoint): Likewise.
4974 (i386_dr_stopped_data_address): Likewise.
4975 (i386_dr_stopped_by_watchpoint): Likewise.
4976 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
4977
4978 2014-06-18 Gary Benson <gbenson@redhat.com>
4979
4980 * i386-low.h (i386_low_insert_watchpoint): Renamed to
4981 i386_dr_insert_watchpoint.
4982 (i386_low_remove_watchpoint): Renamed to
4983 i386_dr_remove_watchpoint.
4984 (i386_low_region_ok_for_watchpoint): Renamed to
4985 i386_dr_region_ok_for_watchpoint.
4986 (i386_low_stopped_data_address): Renamed to
4987 i386_dr_stopped_data_address.
4988 (i386_low_stopped_by_watchpoint): Renamed to
4989 i386_dr_stopped_by_watchpoint.
4990 * i386-low.c (i386_show_dr): Renamed to
4991 i386_dr_show and made nonstatic. All uses updated.
4992 (i386_length_and_rw_bits): Renamed to
4993 i386_dr_length_and_rw_bits and made nonstatic.
4994 All uses updated.
4995 (i386_insert_aligned_watchpoint): Renamed to
4996 i386_dr_insert_aligned_watchpoint and made nonstatic.
4997 All uses updated.
4998 (i386_remove_aligned_watchpoint): Renamed to
4999 i386_dr_remove_aligned_watchpoint and made nonstatic.
5000 All uses updated.
5001 (i386_update_inferior_debug_regs): Renamed to
5002 i386_dr_update_inferior_debug_regs and made nonstatic.
5003 All uses updated.
5004 (i386_low_insert_watchpoint): Renamed to
5005 i386_dr_insert_watchpoint. All uses updated.
5006 (i386_low_remove_watchpoint): Renamed to
5007 i386_dr_remove_watchpoint. All uses updated.
5008 (i386_low_region_ok_for_watchpoint): Renamed to
5009 i386_dr_region_ok_for_watchpoint. All uses updated.
5010 (i386_low_stopped_data_address): Renamed to
5011 i386_dr_stopped_data_address. All uses updated.
5012 (i386_low_stopped_by_watchpoint): Renamed to
5013 i386_dr_stopped_by_watchpoint. All uses updated.
5014
5015 2014-06-18 Gary Benson <gbenson@redhat.com>
5016
5017 * i386-low.c (i386_dr_low_can_set_addr): New macro.
5018 (i386_dr_low_can_set_control): Likewise.
5019 (i386_insert_aligned_watchpoint): New check.
5020
5021 2014-06-18 Gary Benson <gbenson@redhat.com>
5022
5023 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
5024 Renamed to state.
5025
5026 2014-06-18 Gary Benson <gbenson@redhat.com>
5027
5028 * i386-low.c (i386_length_and_rw_bits): Use internal_error
5029 instead of fatal and error.
5030 (i386_handle_nonaligned_watchpoint): Likewise.
5031
5032 2014-06-18 Gary Benson <gbenson@redhat.com>
5033
5034 * i386-low.c (i386_get_debug_register_length): New macro.
5035 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
5036 (i386_show_dr): Use debug_printf instead of fprintf. Use
5037 phex to format values.
5038
5039 2014-06-18 Gary Benson <gbenson@redhat.com>
5040
5041 * i386-low.h: Comment changes.
5042 * i386-low.c: Likewise.
5043
5044 2014-06-18 Gary Benson <gbenson@redhat.com>
5045
5046 * i386-low.c: Whitespace changes.
5047
5048 2014-06-12 Tom Tromey <tromey@redhat.com>
5049
5050 * utils.c (freeargv): Remove.
5051
5052 2014-06-12 Tom Tromey <tromey@redhat.com>
5053
5054 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
5055 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
5056 (parse_debug_format_options): Likewise.
5057 (gdbserver_usage): Likewise.
5058 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
5059 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
5060 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
5061 against libiberty.
5062 ($(LIBGNU)): Depend on libiberty.
5063 (all-lib): Recurse into all subdirs.
5064 (install-only): Invoke "install" target in subdirs.
5065 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
5066 targets.
5067 * configure: Rebuild.
5068 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
5069 for vasprintf, vsnprintf, or gettimeofday.
5070 * configure.srv: Don't add safe-ctype.o or lbasename.o to
5071 srv_tgtobj.
5072
5073 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5074
5075 * development.sh: Delete.
5076 * Makefile.in (config.status): Adjust dependency on development.sh.
5077 * configure.ac: Adjust development.sh source call.
5078 * configure: Regenerate.
5079
5080 2014-06-02 Pedro Alves <palves@redhat.com>
5081
5082 * ax.c (gdb_free_agent_expr): New function.
5083 * ax.h (gdb_free_agent_expr): New declaration.
5084 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
5085 list.
5086 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
5087 static.
5088 (clear_breakpoint_conditions_and_commands): New function.
5089 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
5090 (clear_breakpoint_conditions_and_commands): New declaration.
5091
5092 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5093
5094 * linux-aarch64-low.c (asm/ptrace.h): Include.
5095
5096 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5097
5098 Fix TLS access for -static -pthread.
5099 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
5100 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
5101 (thread_db_load_search, try_thread_db_load_1): Initialize it.
5102
5103 2014-05-20 Pedro Alves <palves@redhat.com>
5104
5105 * linux-aarch64-low.c (aarch64_insert_point)
5106 (aarch64_remove_point): No longer check whether the type is
5107 supported here. Adjust to new interface.
5108 (the_low_target): Install aarch64_supports_z_point_type as
5109 supports_z_point_type method.
5110 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
5111 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
5112 instead of a Z packet char. Adjust.
5113 (arm_supports_z_point_type): New function.
5114 (arm_insert_point, arm_remove_point): Adjust to new interface.
5115 (the_low_target): Install arm_supports_z_point_type.
5116 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
5117 (cris_insert_point, cris_remove_point): Adjust to new interface.
5118 Don't check whether the type is supported here.
5119 (the_low_target): Install cris_supports_z_point_type.
5120 * linux-low.c (linux_supports_z_point_type): New function.
5121 (linux_insert_point, linux_remove_point): Adjust to new interface.
5122 * linux-low.h (struct linux_target_ops) <insert_point,
5123 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
5124 raw_breakpoint pointer parameter.
5125 <supports_z_point_type>: New method.
5126 * linux-mips-low.c (mips_supports_z_point_type): New function.
5127 (mips_insert_point, mips_remove_point): Adjust to new interface.
5128 Use mips_supports_z_point_type.
5129 (the_low_target): Install mips_supports_z_point_type.
5130 * linux-ppc-low.c (the_low_target): Install NULL as
5131 supports_z_point_type method.
5132 * linux-s390-low.c (the_low_target): Install NULL as
5133 supports_z_point_type method.
5134 * linux-sparc-low.c (the_low_target): Install NULL as
5135 supports_z_point_type method.
5136 * linux-x86-low.c (x86_supports_z_point_type): New function.
5137 (x86_insert_point): Adjust to new insert_point interface. Use
5138 insert_memory_breakpoint. Adjust to new
5139 i386_low_insert_watchpoint interface.
5140 (x86_remove_point): Adjust to remove_point interface. Use
5141 remove_memory_breakpoint. Adjust to new
5142 i386_low_remove_watchpoint interface.
5143 (the_low_target): Install x86_supports_z_point_type.
5144 * lynx-low.c (lynx_target_ops): Install NULL as
5145 supports_z_point_type callback.
5146 * nto-low.c (nto_supports_z_point_type): New.
5147 (nto_insert_point, nto_remove_point): Adjust to new interface.
5148 (nto_target_ops): Install nto_supports_z_point_type.
5149 * mem-break.c: Adjust intro comment.
5150 (struct raw_breakpoint) <raw_type, size>: New fields.
5151 <inserted>: Update comment.
5152 <shlib_disabled>: Delete field.
5153 (enum bkpt_type) <gdb_breakpoint>: Delete value.
5154 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
5155 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
5156 (raw_bkpt_type_to_target_hw_bp_type): New function.
5157 (find_enabled_raw_code_breakpoint_at): New function.
5158 (find_raw_breakpoint_at): New type and size parameters. Use them.
5159 (insert_memory_breakpoint): New function, based off
5160 set_raw_breakpoint_at.
5161 (remove_memory_breakpoint): New function.
5162 (set_raw_breakpoint_at): Reimplement.
5163 (set_breakpoint): New, based on set_breakpoint_at.
5164 (set_breakpoint_at): Reimplement.
5165 (delete_raw_breakpoint): Go through the_target->remove_point
5166 instead of assuming memory breakpoints.
5167 (find_gdb_breakpoint_at): Delete.
5168 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
5169 (find_gdb_breakpoint): New function.
5170 (set_gdb_breakpoint_at): Delete.
5171 (z_type_supported): New function.
5172 (set_gdb_breakpoint_1): New function, loosely based off
5173 set_gdb_breakpoint_at.
5174 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
5175 (delete_gdb_breakpoint_at): Delete.
5176 (delete_gdb_breakpoint_1): New function, loosely based off
5177 delete_gdb_breakpoint_at.
5178 (delete_gdb_breakpoint): New function.
5179 (clear_gdb_breakpoint_conditions): Rename to ...
5180 (clear_breakpoint_conditions): ... this. Don't handle a NULL
5181 breakpoint.
5182 (add_condition_to_breakpoint): Make static.
5183 (add_breakpoint_condition): Take a struct breakpoint pointer
5184 instead of an address. Adjust.
5185 (gdb_condition_true_at_breakpoint): Rename to ...
5186 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
5187 z_type parameter.
5188 (gdb_condition_true_at_breakpoint): Reimplement.
5189 (add_breakpoint_commands): Take a struct breakpoint pointer
5190 instead of an address. Adjust.
5191 (gdb_no_commands_at_breakpoint): Rename to ...
5192 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
5193 parameter. Return true if no breakpoint was found. Change debug
5194 output.
5195 (gdb_no_commands_at_breakpoint): Reimplement.
5196 (run_breakpoint_commands): Rename to ...
5197 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
5198 and change return type to boolean.
5199 (run_breakpoint_commands): New function.
5200 (gdb_breakpoint_here): Also check for Z1 breakpoints.
5201 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
5202 breakpoint. Go through the_target->remove_point instead of
5203 assuming memory breakpoint.
5204 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
5205 software and hardware breakpoints.
5206 (reinsert_raw_breakpoint): Go through the_target->insert_point
5207 instead of assuming memory breakpoint.
5208 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
5209 software and hardware breakpoints.
5210 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
5211 Check both software and hardware breakpoints.
5212 (validate_inserted_breakpoint): Assert the breakpoint is a
5213 software breakpoint. Set the inserted flag to -1 instead of
5214 setting shlib_disabled.
5215 (delete_disabled_breakpoints): Adjust.
5216 (validate_breakpoints): Only validate software breakpoints.
5217 Adjust to inserted flag change.
5218 (check_mem_read, check_mem_write): Skip breakpoint types other
5219 than software breakpoints. Adjust to inserted flag change.
5220 * mem-break.h (enum raw_bkpt_type): New enum.
5221 (raw_breakpoint, struct process_info): Forward declare.
5222 (Z_packet_to_target_hw_bp_type): Delete declaration.
5223 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
5224 (set_gdb_breakpoint, delete_gdb_breakpoint)
5225 (clear_breakpoint_conditions): New declarations.
5226 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
5227 (breakpoint_inserted_here): Update comment.
5228 (add_breakpoint_condition, add_breakpoint_commands): Replace
5229 address parameter with a breakpoint pointer parameter.
5230 (gdb_breakpoint_here): Update comment.
5231 (delete_gdb_breakpoint_at): Delete.
5232 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
5233 * server.c (process_point_options): Take a struct breakpoint
5234 pointer instead of an address. Adjust.
5235 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
5236 delete_gdb_breakpoint.
5237 * spu-low.c (spu_target_ops): Install NULL as
5238 supports_z_point_type method.
5239 * target.h: Include mem-break.h.
5240 (struct target_ops) <prepare_to_access_memory>: Update comment.
5241 <supports_z_point_type>: New field.
5242 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
5243 instead of a char. Also take a raw breakpoint pointer.
5244 * win32-arm-low.c (the_low_target): Install NULL as
5245 supports_z_point_type.
5246 * win32-i386-low.c (i386_supports_z_point_type): New function.
5247 (i386_insert_point, i386_remove_point): Adjust to new interface.
5248 (the_low_target): Install i386_supports_z_point_type.
5249 * win32-low.c (win32_supports_z_point_type): New function.
5250 (win32_insert_point, win32_remove_point): Adjust to new interface.
5251 (win32_target_ops): Install win32_supports_z_point_type.
5252 * win32-low.h (struct win32_target_ops):
5253 <supports_z_point_type>: New method.
5254 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
5255 instead of a char. Also take a raw breakpoint pointer.
5256
5257 2014-05-20 Pedro Alves <palves@redhat.com>
5258
5259 * mem-break.h: Include break-common.h.
5260 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
5261 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
5262 (Z_packet_to_target_hw_bp_type): New declaration.
5263 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
5264 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
5265 (Z_PACKET_ACCESS_WP): Delete macros.
5266 (Z_packet_to_hw_type): Delete function.
5267 * i386-low.h: Don't include break-common.h here.
5268 (Z_packet_to_hw_type): Delete declaration.
5269 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
5270 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
5271 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
5272 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
5273 * linux-aarch64-low.c: Don't include break-common.h here.
5274 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
5275 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
5276 (Z_packet_to_target_hw_bp_type): Delete function.
5277 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
5278 function.
5279 (mips_insert_point, mips_remove_point): Use
5280 Z_packet_to_target_hw_bp_type.
5281
5282 2014-05-20 Pedro Alves <palves@redhat.com>
5283
5284 * linux-aarch64-low.c: Include break-common.h.
5285 (enum target_point_type): Delete.
5286 (Z_packet_to_point_type): Rename to ...
5287 (Z_packet_to_target_hw_bp_type): ... this, and return a
5288 target_hw_bp_type instead.
5289 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
5290 instead of an enum target_point_type.
5291 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
5292 breakpoint type.
5293 (aarch64_dr_state_insert_one_point)
5294 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
5295 (aarch64_handle_aligned_watchpoint)
5296 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
5297 Take an enum target_hw_bp_type instead of an enum
5298 target_point_type.
5299 (aarch64_supports_z_point_type): New function.
5300 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
5301 use Z_packet_to_target_hw_bp_type.
5302
5303 2014-05-20 Joel Brobecker <brobecker@adacore.com>
5304
5305 * configure.ac: Only use -Werror by default when DEVELOPMENT
5306 is true.
5307 * configure: Regenerate.
5308
5309 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5310
5311 Fix gdbserver qGetTLSAddr for x86_64 -m32.
5312 * linux-x86-low.c (X86_64_USER_REGS): New.
5313 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
5314
5315 2014-04-28 Yao Qi <yao@codesourcery.com>
5316
5317 * Makefile.in (i386-avx512.c): Fix the typo of generated file
5318 name.
5319
5320 2014-04-25 Pedro Alves <palves@redhat.com>
5321
5322 PR server/16255
5323 * linux-low.c (linux_attach_fail_reason_string): New function.
5324 (linux_attach_lwp): Delete.
5325 (linux_attach_lwp_1): Rename to ...
5326 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
5327 argument. Remove "initial" parameter. Return int instead of
5328 void. Don't error or warn here.
5329 (linux_attach): Adjust to call linux_attach_lwp. Call error on
5330 failure to attach to the tgid. Call warning when failing to
5331 attach to an lwp.
5332 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
5333 argument. Remove "initial" parameter. Return int instead of
5334 void. Don't error or warn here.
5335 (linux_attach_fail_reason_string): New declaration.
5336 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
5337 interface change. Use linux_attach_fail_reason_string.
5338
5339 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5340 Walfred Tedeschi <walfred.tedeschi@intel.com>
5341
5342 * Makefile.in: Added rules to handle new files
5343 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
5344 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
5345 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
5346 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
5347 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
5348 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
5349 x32-avx512-linux.o.
5350 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
5351 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
5352 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
5353 i386/x32-avx512.xml.
5354 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
5355 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
5356 i386/x32-avx512-linux.xml.
5357 * i387-fp.c (num_avx512_k_registers): New constant for number
5358 of K registers.
5359 (num_avx512_zmmh_low_registers): New constant for number of
5360 lower ZMM registers (0-15).
5361 (num_avx512_zmmh_high_registers): New constant for number of
5362 higher ZMM registers (16-31).
5363 (num_avx512_ymmh_registers): New contant for number of higher
5364 YMM registers (ymm16-31 added by avx521 on x86_64).
5365 (num_avx512_xmm_registers): New constant for number of higher
5366 XMM registers (xmm16-31 added by AVX512 on x86_64).
5367 (struct i387_xsave): Add space for AVX512 registers.
5368 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
5369 Add code to handle AVX512 registers.
5370 (i387_xsave_to_cache): Add code to handle AVX512 registers.
5371 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
5372 prototypei from generated file.
5373 (tdesc_amd64_avx512_linux): Likewise.
5374 (init_registers_x32_avx512_linux): Likewise.
5375 (tdesc_x32_avx512_linux): Likewise.
5376 (init_registers_i386_avx512_linux): Likewise.
5377 (tdesc_i386_avx512_linux): Likewise.
5378 (x86_64_regmap): Add AVX512 registers.
5379 (x86_linux_read_description): Add code to handle AVX512 XSTATE
5380 mask.
5381 (initialize_low_arch): Add code to initialize AVX512 registers.
5382
5383 2014-04-23 Pedro Alves <palves@redhat.com>
5384
5385 * mem-break.c (find_gdb_breakpoint_at): Make static.
5386 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
5387
5388 2014-04-23 Pedro Alves <palves@redhat.com>
5389
5390 * i386-low.c: Don't include break-common.h here.
5391 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
5392 prototype to take target_hw_bp_type as argument instead of a Z
5393 packet char.
5394 * i386-low.h: Include break-common.h here.
5395 (Z_packet_to_hw_type): Declare.
5396 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
5397 prototypes.
5398 * linux-x86-low.c (x86_insert_point): Convert the packet number to
5399 a target_hw_bp_type before calling i386_low_insert_watchpoint.
5400 (x86_remove_point): Convert the packet number to a
5401 target_hw_bp_type before calling i386_low_remove_watchpoint.
5402 * win32-i386-low.c (i386_insert_point): Convert the packet number
5403 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
5404 (i386_remove_point): Convert the packet number to a
5405 target_hw_bp_type before calling i386_low_remove_watchpoint.
5406
5407 2014-04-23 Pedro Alves <palves@redhat.com>
5408
5409 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
5410
5411 2014-04-10 Pedro Alves <palves@redhat.com>
5412
5413 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5414 Check if the condition or command is NULL before checking if the
5415 breakpoint is known. On success, return true.
5416 * mem-break.h (add_breakpoint_condition): Document return.
5417 (add_breakpoint_commands): Add describing comment.
5418 * server.c (skip_to_semicolon): New function.
5419 (process_point_options): Use it.
5420
5421 2014-04-09 Pedro Alves <palves@redhat.com>
5422
5423 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
5424 to lwpid_of.
5425
5426 2014-02-27 Pedro Alves <palves@redhat.com>
5427
5428 PR 12702
5429 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
5430 macros.
5431 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
5432 output.
5433 (last_thread_of_process_p): Take a PID argument instead of a
5434 thread pointer.
5435 (linux_wait_for_lwp): Delete.
5436 (num_lwps, check_zombie_leaders, not_stopped_callback): New
5437 functions.
5438 (linux_low_filter_event): New function, party factored out from
5439 linux_wait_for_event.
5440 (linux_wait_for_event): Rename to ...
5441 (linux_wait_for_event_filtered): ... this. Add new filter ptid
5442 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
5443 sigsuspend. Check for zombie leaders.
5444 (linux_wait_for_event): Reimplement as wrapper around
5445 linux_wait_for_event_filtered.
5446 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
5447 a normal or signal exit is seen, it's the whole process exiting.
5448 (wait_for_sigstop): No longer a for_each_inferior callback.
5449 Rewrite on top of linux_wait_for_event_filtered.
5450 (stop_all_lwps): Call wait_for_sigstop directly.
5451 * server.c (resume, handle_target_event): Handle
5452 TARGET_WAITKIND_NO_RESUMED.
5453
5454 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5455
5456 * win32-low.c (psapi_get_dll_name,
5457 * win32_CreateToolhelp32Snapshot): Delete.
5458 (win32_CreateToolhelp32Snapshot, win32_Module32First)
5459 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
5460 Delete.
5461 (handle_load_dll): Add function description.
5462 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
5463
5464 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5465
5466 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
5467 Add comment.
5468 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
5469 base address when calling win32_add_one_solib.
5470 (handle_load_dll): Delete local variable load_addr.
5471 Remove 0x1000 offset applied to DLL base address when calling
5472 win32_add_one_solib.
5473 (handle_unload_dll): Add comment.
5474
5475 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5476
5477 * win32-low.c (win32_add_all_dlls): Renames
5478 win32_ensure_ntdll_loaded. Rewrite function documentation.
5479 Adjust implementation to always load all DLLs.
5480 Add 0x1000 offset to DLL base address when calling
5481 win32_add_one_solib.
5482 (child_initialization_done): New static global.
5483 (do_initial_child_stuff): Set child_initialization_done to
5484 zero during child initialization, and 1 after. Replace call
5485 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
5486 Add comment.
5487 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
5488 (handle_unload_dll): Add function documentation.
5489 (get_child_debug_event): Ignore load and unload DLL events
5490 during child initialization.
5491
5492 2014-02-20 Doug Evans <dje@google.com>
5493
5494 Remove global all_lwps.
5495 * inferiors.h (ptid_of): Move here from linux-low.h.
5496 (pid_of, lwpid_of): Ditto.
5497 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
5498 parameter is a struct thread_info * now.
5499 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
5500 directly. Pass &all_threads to find_inferior instead of &all_lwps.
5501 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
5502 directly.
5503 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
5504 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
5505 * linux-arm-low.c (update_registers_callback): Update, "entry"
5506 parameter is a struct thread_info * now.
5507 Fetch lwpid from current_inferior directly.
5508 (arm_insert_point): Pass &all_threads to find_inferior instead of
5509 &all_lwps.
5510 (arm_remove_point): Ditto.
5511 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
5512 (arm_prepare_to_resume): Fetch pid from thread.
5513 (arm_read_description): Fetch lwpid from current_inferior directly.
5514 * linux-low.c (all_lwps): Delete.
5515 (delete_lwp): Delete call to remove_inferior.
5516 (handle_extended_wait): Fetch lwpid from thread.
5517 (add_lwp): Don't set lwp->entry.id. Remove call to
5518 add_inferior_to_list.
5519 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
5520 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
5521 (kill_one_lwp_callback): Ditto.
5522 (linux_kill): Don't dereference NULL pointer.
5523 Fetch ptid,lwpid from thread.
5524 (get_detach_signal): Fetch ptid from thread.
5525 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
5526 Simplify call to regcache_invalidate_thread.
5527 (delete_lwp_callback): Update, "entry" parameter is a
5528 struct thread_info * now. Fetch pid from thread.
5529 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
5530 (status_pending_p_callback): Update, "entry" parameter is a
5531 struct thread_info * now. Fetch ptid from thread.
5532 (find_lwp_pid): Update, "entry" parameter is a
5533 struct thread_info * now.
5534 (linux_wait_for_lwp): Fetch pid from thread.
5535 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
5536 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
5537 (enqueue_one_deferred_signal): Fetch lwpid from thread.
5538 (dequeue_one_deferred_signal): Ditto.
5539 (cancel_breakpoint): Fetch ptid from current_inferior.
5540 (linux_wait_for_event): Pass &all_threads to find_inferior,
5541 not &all_lwps. Fetch ptid, lwpid from thread.
5542 (count_events_callback): Update, "entry" parameter is a
5543 struct thread_info * now.
5544 (select_singlestep_lwp_callback): Ditto.
5545 (select_event_lwp_callback): Ditto.
5546 (cancel_breakpoints_callback): Ditto.
5547 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
5548 not &all_lwps.
5549 (select_event_lwp): Ditto. Fetch ptid from event_thread.
5550 (unsuspend_one_lwp): Update, "entry" parameter is a
5551 struct thread_info * now.
5552 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
5553 not &all_lwps.
5554 (linux_stabilize_threads): Ditto. And for for_each_inferior.
5555 Fetch lwpid from thread, not lwp.
5556 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
5557 Pass &all_threads to find_inferior, not &all_lwps.
5558 (send_sigstop): Fetch lwpid from thread, not lwp.
5559 (send_sigstop_callback): Update, "entry" parameter is a
5560 struct thread_info * now.
5561 (suspend_and_send_sigstop_callback): Ditto.
5562 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
5563 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
5564 struct thread_info * now.
5565 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
5566 from thread, lwp.
5567 (lwp_running): Update, "entry" parameter is a
5568 struct thread_info * now.
5569 (stop_all_lwps): Fetch ptid from thread.
5570 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
5571 (linux_resume_one_lwp): Fetch lwpid from thread.
5572 (linux_set_resume_request): Update, "entry" parameter is a
5573 struct thread_info * now. Fetch pid, lwpid from thread.
5574 (resume_status_pending_p): Update, "entry" parameter is a
5575 struct thread_info * now.
5576 (need_step_over_p): Ditto. Fetch lwpid from thread.
5577 (start_step_over): Fetch lwpid from thread.
5578 (linux_resume_one_thread): Update, "entry" parameter is a
5579 struct thread_info * now. Fetch lwpid from thread.
5580 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
5581 (proceed_one_lwp): Update, "entry" parameter is a
5582 struct thread_info * now. Fetch lwpid from thread.
5583 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
5584 struct thread_info * now.
5585 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
5586 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
5587 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
5588 directly.
5589 (regsets_store_inferior_registers): Ditto.
5590 (fetch_register, store_register): Ditto.
5591 (linux_read_memory, linux_write_memory): Ditto.
5592 (linux_request_interrupt): Ditto.
5593 (linux_read_auxv): Ditto.
5594 (linux_xfer_siginfo): Ditto.
5595 (linux_qxfer_spu): Ditto.
5596 (linux_qxfer_libraries_svr4): Ditto.
5597 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
5598 moved to inferiors.h.
5599 (get_lwp): Delete.
5600 (get_thread_lwp): Update.
5601 (struct lwp_info): Delete member "entry". Simplify comment for
5602 member "thread".
5603 (all_lwps): Delete.
5604 * linux-mips-low.c (mips_read_description): Fetch lwpid from
5605 current_inferior directly.
5606 (update_watch_registers_callback): Update, "entry" parameter is a
5607 struct thread_info * now. Fetch pid from thread.
5608 (mips_linux_prepare_to_resume): Fetch ptid from thread.
5609 (mips_insert_point): Fetch lwpid from current_inferior.
5610 Pass &all_threads to find_inferior, not &all_lwps.
5611 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
5612 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
5613 directly.
5614 (mips_stopped_data_address): Ditto.
5615 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
5616 directly.
5617 * linux-tile-low.c (tile_arch_setup): Ditto.
5618 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
5619 (update_debug_registers_callback): Update, "entry" parameter is a
5620 struct thread_info * now. Fetch pid from thread.
5621 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
5622 Pass &all_threads to find_inferior, not &all_lwps.
5623 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
5624 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
5625 Pass &all_threads to find_inferior, not &all_lwps.
5626 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
5627 (i386_dr_low_get_status): Ditto.
5628 (x86_linux_prepare_to_resume): Fetch ptid from thread.
5629 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
5630 (x86_linux_read_description): Ditto.
5631 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
5632
5633 2014-02-20 Doug Evans <dje@google.com>
5634
5635 * inferiors.c (get_first_inferior): Fix buglet.
5636
5637 2014-02-19 Doug Evans <dje@google.com>
5638
5639 * gdbthread.h (add_thread): Change result type to struct thread_info *.
5640 * inferiors.c (add_thread): Change result type to struct thread_info *.
5641 All callers updated.
5642 (add_lwp): Call add_thread here instead of in callers.
5643 All callers updated.
5644 * linux-low.h (get_lwp_thread): Rewrite.
5645 (struct lwp_info): New member "thread".
5646
5647 2014-02-19 Doug Evans <dje@google.com>
5648
5649 * linux-low.c (add_lwp): Change result to struct lwp_info *.
5650 All callers updated.
5651
5652 2014-02-19 Doug Evans <dje@google.com>
5653
5654 * inferiors.c (add_thread): Fix whitespace.
5655
5656 2014-02-19 Doug Evans <dje@google.com>
5657
5658 * dll.c (clear_dlls): Replace accessing list implemention details
5659 with API function.
5660 * gdbthread.h (get_first_thread): Declare.
5661 * inferiors.c (for_each_inferior_with_data): New function.
5662 (get_first_thread): New function.
5663 (find_thread_ptid): Simplify.
5664 (get_first_inferior): New function.
5665 (clear_list): Delete.
5666 (one_inferior_p): New function.
5667 (clear_inferior_list): New function.
5668 (clear_inferiors): Update.
5669 * inferiors.h (for_each_inferior_with_data): Declare.
5670 (clear_inferior_list): Declare.
5671 (one_inferior_p): Declare.
5672 (get_first_inferior): Declare.
5673 * linux-low.c (linux_wait_for_event): Replace accessing list
5674 implemention details with API function.
5675 * server.c (target_running): Ditto.
5676 (accumulate_file_name_length): New function.
5677 (emit_dll_description): New function.
5678 (handle_qxfer_libraries): Replace accessing list implemention
5679 details with API function.
5680 (handle_qxfer_threads_worker): New function.
5681 (handle_qxfer_threads_proper): Replace accessing list implemention
5682 details with API function.
5683 (handle_query): Ditto.
5684 (visit_actioned_threads_callback_ftype): New typedef.
5685 (visit_actioned_threads_data): New struct.
5686 (visit_actioned_threads): Rewrite to be find_inferior callback.
5687 (resume): Call find_inferior.
5688 (handle_status): Replace accessing list implemention
5689 details with API function.
5690 (process_serial_event): Replace accessing list implemention details
5691 with API function.
5692 * target.c (set_desired_inferior): Replace accessing list implemention
5693 details with API function.
5694 * tracepoint.c (same_process_p): New function.
5695 (gdb_agent_about_to_close): Replace accessing list implemention
5696 details with API function.
5697 * win32-low.c (child_delete_thread): Replace accessing list
5698 implemention details with API function.
5699 (match_dll_by_basename): New function.
5700 (dll_is_loaded_by_basename): New function.
5701 (win32_ensure_ntdll_loaded): Replace accessing list implemention
5702 details call to dll_is_loaded_by_basename.
5703
5704 2014-02-19 Doug Evans <dje@google.com>
5705
5706 * dll.h (struct dll_info): Add comment.
5707 * gdbthread.h (struct thread_info): Add comment.
5708 (current_ptid): Simplify.
5709 * inferiors.c (add_process): Update.
5710 (remove_process): Update.
5711 * inferiors.h (struct process_info): Rename member "head" to "entry".
5712 * linux-low.c (delete_lwp): Update.
5713 (add_lwp): Update.
5714 (last_thread_of_process_p): Update.
5715 (kill_one_lwp_callback, linux_kill): Update.
5716 (status_pending_p_callback): Update.
5717 (wait_for_sigstop): Update. Simplify read of ptid.
5718 (start_step_over): Update.
5719 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
5720 (get_lwp_thread): Update.
5721 (struct lwp_info): Rename member "head" to "entry".
5722 * regcache.h (inferior_list_entry): Delete.
5723 * server.c (kill_inferior_callback): Update.
5724 (detach_or_kill_inferior_callback): Update.
5725 (print_started_pid): Update.
5726 (print_attached_pid): Update.
5727 (process_serial_event): Simplify read of ptid.
5728 * thread-db.c (thread_db_create_event): Update.
5729 (thread_db_get_tls_address): Update.
5730 * win32-low.c (current_inferior_ptid): Simplify.
5731
5732 2014-02-19 Tom Tromey <tromey@redhat.com>
5733
5734 * target.h (struct target_ops) <supports_btrace>: Add target_ops
5735 argument.
5736 (target_supports_btrace): Update.
5737
5738 2014-02-14 Yao Qi <yao@codesourcery.com>
5739
5740 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
5741 (rsp-low-ipa.o): New target.
5742
5743 2014-02-12 Tom Tromey <tromey@redhat.com>
5744
5745 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
5746 convert_ascii_to_int.
5747 * regcache.c (registers_to_string): Likewise.
5748 * remote-utils.c (decode_M_packet): Likewise.
5749 * server.c (process_serial_event): Likewise.
5750
5751 2014-02-12 Tom Tromey <tromey@redhat.com>
5752
5753 * server.c (handle_query, handle_v_run): Use hex2bin, not
5754 unhexify.
5755 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
5756
5757 2014-02-12 Tom Tromey <tromey@redhat.com>
5758
5759 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
5760 convert_int_to_ascii.
5761 * regcache.c (registers_to_string, collect_register_as_string):
5762 Likewise.
5763 * remote-utils.c (look_up_one_symbol, relocate_instruction):
5764 Likewise.
5765 * server.c (process_serial_event): Likewise.
5766 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
5767 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
5768
5769 2014-02-12 Tom Tromey <tromey@redhat.com>
5770
5771 * remote-utils.c (look_up_one_symbol, monitor_output): Use
5772 bin2hex, not hexify.
5773 * tracepoint.c (cmd_qtstatus): Likewise.
5774
5775 2014-02-12 Tom Tromey <tromey@redhat.com>
5776
5777 * remote-utils.c (monitor_output): Pass explicit length to
5778 hexify.
5779
5780 2014-02-12 Tom Tromey <tromey@redhat.com>
5781
5782 * tracepoint.c: Include rsp-low.h.
5783 * server.c: Include rsp-low.h.
5784 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
5785 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
5786 declare.
5787 * remote-utils.c: Include rsp-low.h.
5788 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
5789 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
5790 (convert_int_to_ascii, convert_ascii_to_int): Move to
5791 common/rsp-low.c.
5792 * regcache.c: Include rsp-low.h.
5793 * ax.c: Include rsp-low.h.
5794 * Makefile.in (SFILES): Add common/rsp-low.c.
5795 (OBS): Add rsp-low.o.
5796 (rsp-low.o): New target.
5797
5798 2014-02-12 Tom Tromey <tromey@redhat.com>
5799
5800 * utils.h (pulongest, plongest, phex_nz): Don't declare.
5801 Include print-utils.h.
5802 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
5803 (plongest, thirty_two, phex_nz): Remove.
5804 * Makefile.in (SFILES): Add common/print-utils.c.
5805 (OBS): Add print-utils.o.
5806 (print-utils-ipa.o): New target.
5807 (print-utils.o): New target.
5808 (IPA_OBJS): Add print-utils-ipa.o.
5809
5810 2014-02-06 Tom Tromey <tromey@redhat.com>
5811
5812 * Makefile.in (SFILES): Fix indentation.
5813
5814 2014-02-05 Doug Evans <dje@google.com>
5815
5816 * linux-low.c (linux_wait_for_event): Improve comment.
5817 (linux_wait_1): Keep current_inferior in sync with event_child.
5818
5819 2014-01-22 Doug Evans <dje@google.com>
5820
5821 * gdbthread.h (gdb_id_to_thread): Delete, unused.
5822
5823 2014-01-22 Doug Evans <dje@google.com>
5824
5825 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
5826 * configure: Regenerate.
5827 * config.in: Regenerate.
5828 * Makefile.in (SFILES): Add debug.c.
5829 (OBS): Add debug.o.
5830 * debug.c: New file.
5831 * debug.h: New file.
5832 * linux-aarch64-low.c (*): Update all debugging printfs to use
5833 debug_printf instead of fprintf.
5834 * linux-arm-low.c (*): Ditto.
5835 * linux-cris-low.c (*): Ditto.
5836 * linux-crisv32-low.c (*): Ditto.
5837 * linux-m32r-low.c (*): Ditto.
5838 * linux-sparc-low.c (*): Ditto.
5839 * linux-x86.c (*): Ditto.
5840 * linux-low.c (*): Ditto.
5841 (linux_wait_1): Add calls to debug_enter, debug_exit.
5842 (linux_wait): Remove redundant debugging printf.
5843 (stop_all_lwps): Add calls to debug_enter, debug_exit.
5844 (linux_resume, unstop_all_lwps): Ditto.
5845 * mem-break.c (*): Update all debugging printfs to use
5846 debug_printf instead of fprintf.
5847 * remote-utils.c (*): Ditto.
5848 * thread-db.c (*): Ditto.
5849 * server.c #include <ctype.h>, "gdb_vecs.h".
5850 (debug_threads): Moved to debug.c.
5851 (*): Update all debugging printfs to use debug_printf instead of
5852 fprintf.
5853 (start_inferior): Replace call to fflush with call to debug_flush.
5854 (monitor_show_help): Mention set debug-format.
5855 (parse_debug_format_options): New function.
5856 (handle_monitor_command): Handle "monitor set debug-format".
5857 (gdbserver_usage): Mention --debug-format.
5858 (main): Parse --debug-format.
5859 * server.h (debug_threads): Declaration moved to debug.h.
5860 #include "debug.h".
5861 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
5862 trace_debug_1 that uses debug_printf.
5863 (tracepoint_look_up_symbols): Update all debugging printfs to use
5864 debug_printf instead of fprintf.
5865
5866 2014-01-20 Baruch Siach <baruch@tkos.co.il>
5867
5868 * linux-xtensa-low.c: Include asm/ptrace.h instead of
5869 sys/ptrace.h.
5870
5871 2014-01-17 Pedro Alves <palves@redhat.com>
5872
5873 PR build/16445
5874 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
5875 defined after including gdb_proc_service.h.
5876
5877 2014-01-16 Doug Evans <dje@google.com>
5878
5879 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
5880 (match_dll): Use it.
5881
5882 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5883
5884 * target.h (target_ops) <read_btrace>: Change parameters and
5885 return type to allow error reporting.
5886 * server.c (handle_qxfer_btrace): Support delta reads. Pass
5887 trace reading errors on.
5888 * linux-low.c (linux_low_read_btrace): Pass trace reading
5889 errors on.
5890 (linux_low_disable_btrace): New.
5891
5892 2014-01-15 Doug Evans <dje@google.com>
5893
5894 * inferiors.c (thread_id_to_gdb_id): Delete.
5895 * inferiors.h (thread_id_to_gdb_id): Delete.
5896
5897 2014-01-13 Eli Zaretskii <eliz@gnu.org>
5898
5899 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
5900 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
5901 versions.
5902
5903 2014-01-08 Pedro Alves <palves@redhat.com>
5904
5905 * server.c (handle_status): Don't discard previous queued stop
5906 replies or thread's pending status here.
5907 (main) <disconnection>: Do it here instead.
5908
5909 2014-01-08 Pedro Alves <palves@redhat.com>
5910
5911 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
5912 * server.c (visit_actioned_threads, handle_pending_status): New
5913 function.
5914 (handle_v_cont): Factor out parts to ...
5915 (resume): ... this new function. If in all-stop, and a thread
5916 being resumed has a pending status, report it without actually
5917 resuming.
5918 (myresume): Adjust to use the new 'resume' function.
5919 (clear_pending_status_callback, set_pending_status_callback)
5920 (find_status_pending_thread_callback): New functions.
5921 (handle_status): Handle the case of multiple threads having
5922 interesting statuses to report. Report threads' real last signal
5923 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
5924 with an interesting thread to report the status for, instead of
5925 always reporting the status of the first thread.
5926
5927 2014-01-01 Joel Brobecker <brobecker@adacore.com>
5928
5929 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
5930 * gdbreplay.c (gdbreplay_version): Likewise.
5931
5932 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
5933
5934 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
5935 iov.iov_len with the real length in use.
5936
5937 2013-12-13 Joel Brobecker <brobecker@adacore.com>
5938
5939 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
5940 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
5941 for all targets that use win32-low.c.
5942 * win32-low.c (win32_ensure_ntdll_loaded): New function.
5943 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
5944
5945 2013-12-13 Pedro Alves <palves@redhat.com>
5946
5947 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
5948 if equal to TARGET_WAITKIND_LOADED.
5949 * win32-low.c (cached_status): New static global.
5950 (win32_wait): Add declaration.
5951 (do_initial_child_stuff): Flush all initial pending debug events
5952 up to the initial breakpoint.
5953 (win32_wait): If CACHED_STATUS was set, return that instead
5954 of doing a real wait. Remove the code resuming the execution
5955 of the inferior after receiving a TARGET_WAITKIND_LOADED event
5956 during the initial phase. Also remove the code changing
5957 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
5958 TARGET_WAITKIND_STOPPED.
5959
5960 2013-12-11 Yao Qi <yao@codesourcery.com>
5961
5962 * notif.c (handle_notif_ack): Return 0 if no notification
5963 matches.
5964
5965 2013-11-20 Doug Evans <dje@google.com>
5966
5967 * linux-low.c (linux_set_resume_request): Fix comment.
5968
5969 2013-11-20 Doug Evans <dje@google.com>
5970
5971 * linux-low.c (resume_status_pending_p): Tweak comment.
5972
5973 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
5974
5975 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
5976 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
5977 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
5978 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
5979 (srv_amd64_regobj): Add amd64-mpx.o.
5980 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
5981 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
5982 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
5983 * i387-fp.c (num_pl_bnd_register) Added constant.
5984 (num_pl_bnd_cfg_registers) Added constant.
5985 (struct i387_xsave) Added reserved area and MPX fields.
5986 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
5987 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
5988 function.
5989 (tdesc_i386_mpx_linux): Add MPX amd64 target.
5990 (init_registers_amd64_mpx_linux): Declare new function.
5991 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
5992 (x86_64_regmap): Add MPX registers.
5993 (x86_linux_read_description): Add MPX case.
5994 (initialize_low_arch): Initialize MPX targets.
5995
5996 2013-11-18 Tom Tromey <tromey@redhat.com>
5997
5998 * configure: Rebuild.
5999 * configure.ac: Don't check for stdlib.h.
6000 * gdbreplay.c: Unconditionally include stdlib.h.
6001
6002 2013-11-18 Tom Tromey <tromey@redhat.com>
6003
6004 * config.in: Rebuild.
6005 * configure: Rebuild.
6006 * configure.ac: Don't use AC_HEADER_DIRENT.
6007
6008 2013-11-18 Tom Tromey <tromey@redhat.com>
6009
6010 * server.h: Don't check HAVE_STRING_H.
6011 * gdbreplay.c: Don't check HAVE_STRING_H.
6012 * configure: Rebuild.
6013
6014 2013-11-18 Tom Tromey <tromey@redhat.com>
6015
6016 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
6017 LIBGNU.
6018
6019 2013-11-08 Tom Tromey <tromey@redhat.com>
6020
6021 * configure, config.in: Rebuild.
6022 * configure.ac: Remove unused configury.
6023
6024 2013-11-08 Tom Tromey <tromey@redhat.com>
6025
6026 * acinclude.m4: Include common.m4, codeset.m4.
6027 * configure, config.in: Rebuild.
6028 * configure.ac: Use GDB_AC_COMMON.
6029
6030 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
6031
6032 * linux-s390-low.c (HWCAP_S390_TE): New define.
6033 (s390_arch_setup): Consider the TE field in the HWCAP for
6034 determining 'have_regset_tdb'.
6035
6036 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
6037
6038 PR gdb/16014
6039 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
6040 call to sizeof.
6041
6042 2013-10-02 Pedro Alves <palves@redhat.com>
6043
6044 * server.c (process_serial_event): Don't output "GDBserver
6045 exiting" if GDB is connected through stdio.
6046 * target.c (mywait): Likewise, be silent if GDB is connected
6047 through stdio.
6048
6049 2013-10-01 Joel Brobecker <brobecker@adacore.com>
6050
6051 * lynx-low.c (lynx_add_threads_after_attach): New function.
6052 (lynx_attach): Remove call to add_thread. Add call to
6053 lynx_add_threads_after_attach instead.
6054
6055 2013-09-28 Mike Frysinger <vapier@gentoo.org>
6056
6057 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
6058 * config.in, configure: Regenerated.
6059
6060 2013-09-18 Yao Qi <yao@codesourcery.com>
6061
6062 PR server/15959
6063 * server.c (start_inferior): Clear 'resume_info'.
6064
6065 2013-09-16 Jiong Wang <jiwang@tilera.com>
6066
6067 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
6068 for each register.
6069
6070 2013-09-16 Jiong Wang <jiwang@tilera.com>
6071
6072 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
6073 linux-tile-low.o to srv_tgtobj.
6074
6075 2013-09-16 Will Newton <will.newton@linaro.org>
6076
6077 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
6078 out regs.
6079
6080 2013-09-06 Pedro Alves <palves@redhat.com>
6081
6082 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
6083 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
6084 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
6085 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
6086 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
6087 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
6088
6089 2013-09-06 Pedro Alves <palves@redhat.com>
6090
6091 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
6092 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
6093
6094 2013-09-06 Pedro Alves <palves@redhat.com>
6095
6096 * linux-amd64-ipa.c: Include tracepoint.h.
6097 * linux-i386-ipa.c: Include tracepoint.h.
6098
6099 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
6100
6101 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
6102 (ps_get_thread_area): New function.
6103
6104 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
6105
6106 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
6107 (initialize_low_arch): Call init_registers_crisv32 rather than
6108 init_register_crisv32.
6109
6110 2013-09-05 Pedro Alves <palves@redhat.com>
6111
6112 * server.h (handle_vFile, hostio_last_error_from_errno): Move
6113 to ...
6114 * hostio.h: ... this new file.
6115 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
6116 win32-low.c: Include hostio.h.
6117
6118 2013-09-05 Pedro Alves <palves@redhat.com>
6119
6120 * server.h (gdb_client_data, handler_func, callback_handler_func)
6121 (delete_file_handler, add_file_handler, append_callback_event)
6122 (delete_callback_event, start_event_loop, initialize_event_loop):
6123 Move to event-loop.h and include it.
6124 * event-loop.h: New file.
6125
6126 2013-09-05 Pedro Alves <palves@redhat.com>
6127
6128 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
6129 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
6130 (loaded_dll, unloaded_dll): Move to ...
6131 * dll.h: ... this new file.
6132 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
6133
6134 2013-09-05 Pedro Alves <palves@redhat.com>
6135
6136 * server.h (current_process, get_thread_process, all_processes)
6137 (add_inferior_to_list, for_each_inferior, current_inferior)
6138 (remove_inferior, add_process, remove_process, find_process_pid)
6139 (have_started_inferiors_p, have_attached_inferiors_p)
6140 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
6141 (clear_inferiors, find_inferior, find_inferior_id)
6142 (inferior_target_data, set_inferior_target_data)
6143 (inferior_regcache_data, set_inferior_regcache_data): Move to
6144 inferiors.h, and include it.
6145 * inferiors.h: New file.
6146
6147 2013-09-05 Pedro Alves <palves@redhat.com>
6148
6149 * server.h (struct emit_ops, current_insn_ptr, emit_error):
6150 Move ...
6151 * ax.h: ... here.
6152
6153 2013-09-05 Pedro Alves <palves@redhat.com>
6154
6155 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
6156 tracepoint.h.
6157 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
6158 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
6159 (handle_tracepoint_general_set, handle_tracepoint_query)
6160 (tracepoint_finished_step, tracepoint_was_hit)
6161 (release_while_stepping_state_list, current_traceframe)
6162 (in_readonly_region, traceframe_read_mem)
6163 (fetch_traceframe_registers, traceframe_read_sdata)
6164 (traceframe_read_info, struct fast_tpoint_collect_status)
6165 (fast_tracepoint_collecting, force_unlock_trace_buffer)
6166 (handle_tracepoit_bkpts, initialize_low_tracepoint)
6167 (supply_fast_tracepoint_registers)
6168 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
6169 (ipa_tdesc, claim_trampoline_space)
6170 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
6171 (agent_mem_read, agent_get_trace_state_variable_value)
6172 (agent_set_trace_state_variable_value, agent_tsv_read)
6173 (agent_mem_read_string, get_raw_reg_func_addr)
6174 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
6175 * tracepoint.h: ... this new file.
6176
6177 2013-09-05 Pedro Alves <palves@redhat.com>
6178
6179 * server.h (perror_with_name, error, fatal, warning, paddress)
6180 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
6181 include it.
6182 * utils.h: New file.
6183
6184 2013-09-05 Pedro Alves <palves@redhat.com>
6185
6186 * server.h (remote_debug, noack_mode, transport_is_reliable)
6187 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
6188 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
6189 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
6190 (write_enn, initialize_async_io, enable_async_io)
6191 (disable_async_io, check_remote_input_interrupt_request)
6192 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
6193 (dead_thread_notify, prepare_resume_reply)
6194 (decode_address_to_semicolon, decode_address, decode_m_packet)
6195 (decode_M_packet, decode_X_packet, decode_xfer_write)
6196 (decode_search_memory_packet, unhexify, hexify)
6197 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
6198 (look_up_one_symbol, relocate_instruction)
6199 (monitor_output): Move to remote-utils.h, and include it.
6200 * remote-utils.h: New file.
6201
6202 2013-09-05 Pedro Alves <palves@redhat.com>
6203
6204 * server.h (_): Delete.
6205
6206 2013-09-02 Pedro Alves <palves@redhat.com>
6207
6208 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
6209 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
6210 allocated.
6211 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
6212
6213 2013-09-02 Pierre Muller <muller@sourceware.org>
6214
6215 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
6216 or WriteProcessMemory complete successfully and handle
6217 ERROR_PARTIAL_COPY error.
6218
6219 2013-09-02 Pedro Alves <palves@redhat.com>
6220
6221 * server.c (gdb_read_memory): Return -1 on traceframe memory read
6222 error instead of EIO.
6223
6224 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6225
6226 PR server/15604
6227 * linux-low.c: Include filestuff.h.
6228 (linux_create_inferior) <pid == 0>: Call close_most_fds.
6229 * lynx-low.c: Include filestuff.h.
6230 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
6231 * server.c: Include filestuff.h.
6232 (main): Call notice_open_fds.
6233 * spu-low.c: Include filestuff.h.
6234 (spu_create_inferior) <pid == 0>: Call close_most_fds.
6235
6236 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
6237
6238 * Makefile.in: Explain why ../target and ../nat are not
6239 listed as include file search paths.
6240 (linux-waitpid.o): New object file rule.
6241 * configure.srv (srv_native_linux_obj): New variable.
6242 Replace all occurrences of linux native object files with
6243 $srv_native_linux_obj.
6244 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
6245 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
6246 (linux_enable_event_reporting): Remove declaration.
6247 (my_waitpid): Moved to common/linux-waitpid.c.
6248 (linux_wait_for_event): Pass ptid when calling
6249 linux_enable_event_reporting.
6250 (linux_supports_tracefork_flag): Remove.
6251 (linux_enable_event_reporting): Likewise.
6252 (linux_tracefork_grandchild): Remove.
6253 (STACK_SIZE): Moved to common/linux-ptrace.c.
6254 (linux_tracefork_child): Remove.
6255 (linux_test_for_tracefork): Remove.
6256 (linux_look_up_symbols): Call linux_supports_traceclone.
6257 (initialize_low): Remove call to linux_test_for_tracefork.
6258 * linux-low.h (PTRACE_TYPE_ARG3): Move to
6259 common/linux-ptrace.h.
6260 (PTRACE_TYPE_ARG4): Likewise.
6261 Include linux-ptrace.h.
6262
6263 2013-08-21 Pedro Alves <palves@redhat.com>
6264
6265 * config.in: Renegerate.
6266
6267 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
6268
6269 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
6270 (SFILES): Remove $(srcdir)/common/target-common.c and
6271 add $(srcdir)/target/waitstatus.c.
6272 (OBS): Remove target-common.o and add waitstatus.o.
6273 (server_h): Remove $(srcdir)/../common/target-common.h and
6274 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
6275 and $(srcdir)/../target/waitstatus.h.
6276 (target-common.o): Remove.
6277 (waitstatus.o): New target object file.
6278 * target.h: Do not include target-common.h and
6279 include target/resume.h, target/wait.h and
6280 target/waitstatus.h.
6281
6282 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
6283
6284 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
6285 to PTRACE_TYPE_ARG3.
6286 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
6287 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
6288 PTRACE_TYPE_ARG4.
6289 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
6290 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
6291
6292 2013-07-27 Jie Zhang <jie@codesourcery.com>
6293 Daniel Jacobowitz <dan@codesourcery.com>
6294 Yao Qi <yao@codesourcery.com>
6295
6296 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
6297 (mips-linux-watch.o): New rule.
6298 (mips_linux_watch_h): New variable.
6299 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
6300 srv_tgtobj.
6301 * linux-mips-low.c: Include mips-linux-watch.h.
6302 (struct arch_process_info, struct arch_lwp_info): New.
6303 (update_watch_registers_callback): New function.
6304 (mips_linux_new_process, mips_linux_new_thread) New functions.
6305 (mips_linux_prepare_to_resume, mips_insert_point): New
6306 functions.
6307 (mips_remove_point, mips_stopped_by_watchpoint): New
6308 functions.
6309 (rsp_bp_type_to_target_hw_bp_type): New function.
6310 (mips_stopped_data_address): New function.
6311 (the_low_target): Add watchpoint support functions.
6312
6313 2013-07-27 Yao Qi <yao@codesourcery.com>
6314
6315 * i386-low.c: Include break-common.h.
6316 (enum target_hw_bp_type): Remove.
6317
6318 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
6319
6320 * Makefile.in (SFILES): /common/target-common.c.
6321 (OBS): Add target-common.o.
6322 (server_h): Add $(srcdir)/../common/target-common.h.
6323 (target-common.o): New target.
6324 * server.c (queue_stop_reply_callback): Free
6325 status string after use.
6326 * target.c (target_waitstatus_to_string): Remove.
6327 * target.h: Include target-common.h.
6328 (resume_kind): Likewise.
6329 (target_waitkind): Likewise.
6330 (target_waitstatus): Likewise.
6331 (TARGET_WNOHANG): Likewise.
6332
6333 2013-07-04 Yao Qi <yao@codesourcery.com>
6334
6335 * Makefile.in (host_alias): Use @host_noncanonical@.
6336 (target_alias): Use @target_noncanonical@.
6337 * configure.ac: Use ACX_NONCANONICAL_TARGET and
6338 ACX_NONCANONICAL_HOST.
6339 * configure: Regenerated.
6340
6341 Revert:
6342 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
6343
6344 * configure.ac (version_host, version_target): Set and AC_SUBST them.
6345 * configure: Rebuild.
6346 * Makefile.in (version_host, version_target): Get from configure.
6347 (version.c): Use $(version_host) and $(version_target).
6348
6349 2013-07-03 Pedro Alves <palves@redhat.com>
6350
6351 * Makefile.in (config.status): Depend on development.sh.
6352 * acinclude.m4: Include libmcheck.m4.
6353 * configure: Regenerate.
6354
6355 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
6356
6357 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
6358 attribute inside the parentheses.
6359 (winapi_DebugSetProcessKillOnExit): Ditto.
6360 (winapi_DebugBreakProcess): Ditto.
6361 (winapi_GenerateConsoleCtrlEvent): Ditto.
6362
6363 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
6364
6365 * notif.h (notif_event): Add a dummy member to avoid compiler
6366 errors.
6367
6368 2013-07-01 Pedro Alves <palves@redhat.com>
6369
6370 * hostio.c (HOSTIO_PATH_MAX): Define.
6371 (require_filename, handle_open, handle_unlink, handle_readlink):
6372 Use it.
6373
6374 2013-07-01 Pedro Alves <palves@redhat.com>
6375
6376 * server.h: Include "pathmax.h".
6377 * linux-low.c: Don't include sys/param.h.
6378 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
6379 MAXPATHLEN.
6380 * win32-low.c: Don't include sys/param.h.
6381 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
6382
6383 2013-07-01 Pedro Alves <palves@redhat.com>
6384
6385 * event-loop.c: Don't check HAVE_UNISTD_H before including
6386 <unistd.h>.
6387 * gdbreplay.c: Likewise.
6388 * remote-utils.c: Likewise.
6389 * server.c: Likewise.
6390 * configure.ac: Don't check for unistd.h.
6391 * configure: Regenerate.
6392
6393 2013-06-28 Tom Tromey <tromey@redhat.com>
6394
6395 * Makefile.in (version.c): Use version.in, not
6396 common/version.in.
6397
6398 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
6399
6400 * configure.ac (version_host, version_target): Set and AC_SUBST them.
6401 * configure: Rebuild.
6402 * Makefile.in (version_host, version_target): Get from configure.
6403 (version.c): Use $(version_host) and $(version_target).
6404
6405 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
6406
6407 Fix trace-status to output user name without trailing colon.
6408 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
6409
6410 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
6411
6412 Fix trace-status to output proper start-time and stop-time.
6413 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
6414 output start time and stop time in hex as gdb expects.
6415
6416 2013-06-26 Pedro Alves <pedro@codesourcery.com>
6417
6418 * tracepoint.c (build_traceframe_info_xml): Output trace state
6419 variables present in the trace buffer.
6420
6421 2013-06-24 Tom Tromey <tromey@redhat.com>
6422
6423 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
6424 create-version.sh.
6425 (version.o): Remove.
6426 * gdbreplay.c: Include version.h.
6427 (version, host_name): Don't declare.
6428 * server.h: Include version.h.
6429 (version, host_name): Don't declare.
6430
6431 2013-06-12 Pedro Alves <palves@redhat.com>
6432
6433 * linux-x86-low.c (linux_is_elf64): Delete global.
6434 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
6435 with local linux_pid_exe_is_elf_64_file use.
6436
6437 2013-06-11 Pedro Alves <palves@redhat.com>
6438
6439 * linux-low.c (regset_disabled, disable_regset): New functions.
6440 (regsets_fetch_inferior_registers)
6441 (regsets_store_inferior_registers): Use them.
6442 (initialize_regsets_info); Don't allocate the disabled_regsets
6443 array here.
6444 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
6445 comment.
6446
6447 2013-06-11 Pedro Alves <palves@redhat.com>
6448
6449 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
6450 xmalloc.
6451
6452 2013-06-11 Pedro Alves <palves@redhat.com>
6453
6454 * linux-x86-low.c (initialize_low_arch): Call
6455 init_registers_x32_avx_linux.
6456
6457 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6458
6459 Fix compatibility with Android Bionic.
6460 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
6461 it is not empty.
6462
6463 2013-06-07 Pedro Alves <palves@redhat.com>
6464
6465 PR server/14823
6466 * Makefile.in (OBS): Add tdesc.o.
6467 (IPA_OBJS): Add tdesc-ipa.o.
6468 (tdesc-ipa.o): New rule.
6469 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
6470 interface.
6471 * linux-low.c (new_inferior): Delete.
6472 (disabled_regsets, num_regsets): Delete.
6473 (linux_add_process): Adjust to set the new per-process
6474 new_inferior flag.
6475 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
6476 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
6477 was a stop. When calling arch_setup, switch the current inferior
6478 to the thread that got an event.
6479 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
6480 (regsets_fetch_inferior_registers)
6481 (regsets_store_inferior_registers): New regsets_info parameter.
6482 Adjust to use it.
6483 (linux_register_in_regsets): New regs_info parameter. Adjust to
6484 use it.
6485 (register_addr, fetch_register, store_register): New usrregs_info
6486 parameter. Adjust to use it.
6487 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
6488 parameter regs_info. Adjust to use it.
6489 (linux_fetch_registers): Get the current inferior's regs_info, and
6490 adjust to use it.
6491 (linux_store_registers): Ditto.
6492 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
6493 (initialize_low): Don't initialize the target_regsets here. Call
6494 initialize_low_arch.
6495 * linux-low.h (target_regsets): Delete declaration.
6496 (struct regsets_info): New.
6497 (struct usrregs_info): New.
6498 (struct regs_info): New.
6499 (struct process_info_private) <new_inferior>: New field.
6500 (struct linux_target_ops): Delete the num_regs, regmap, and
6501 regset_bitmap fields. New field regs_info.
6502 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
6503 * i387-fp.c (num_xmm_registers): Delete.
6504 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
6505 calls to new interface.
6506 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
6507 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
6508 Infer the number of xmm registers from the regcache's target
6509 description.
6510 * i387-fp.h (num_xmm_registers): Delete.
6511 * inferiors.c (add_thread): Don't install the thread's regcache
6512 here.
6513 * proc-service.c (gregset_info): Fetch the current inferior's
6514 regs_info. Adjust to use it.
6515 * regcache.c: Include tdesc.h.
6516 (register_bytes, reg_defs, num_registers)
6517 (gdbserver_expedite_regs): Delete.
6518 (get_thread_regcache): If the thread doesn't have a regcache yet,
6519 create one, instead of aborting gdbserver.
6520 (regcache_invalidate_one): Rename to ...
6521 (regcache_invalidate_thread): ... this.
6522 (regcache_invalidate_one): New.
6523 (regcache_invalidate): Only invalidate registers of the current
6524 process.
6525 (init_register_cache): Add target_desc parameter, and use it.
6526 (new_register_cache): Ditto. Assert the target description has a
6527 non zero registers_size.
6528 (regcache_cpy): Add assertions. Adjust.
6529 (realloc_register_cache, set_register_cache): Delete.
6530 (registers_to_string, registers_from_string): Adjust.
6531 (find_register_by_name, find_regno, find_register_by_number)
6532 (register_cache_size): Add target_desc parameter, and use it.
6533 (free_register_cache_thread, free_register_cache_thread_one)
6534 (regcache_release, register_cache_size): New.
6535 (register_size): Add target_desc parameter, and use it.
6536 (register_data, supply_register, supply_register_zeroed)
6537 (supply_regblock, supply_register_by_name, collect_register)
6538 (collect_register_as_string, collect_register_by_name): Adjust.
6539 * regcache.h (struct target_desc): Forward declare.
6540 (struct regcache) <tdesc>: New field.
6541 (init_register_cache, new_register_cache): Add target_desc
6542 parameter.
6543 (regcache_invalidate_thread): Declare.
6544 (regcache_invalidate_one): Delete declaration.
6545 (regcache_release): Declare.
6546 (find_register_by_number, register_cache_size, register_size)
6547 (find_regno): Add target_desc parameter.
6548 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
6549 declarations.
6550 * remote-utils.c: Include tdesc.h.
6551 (outreg, prepare_resume_reply): Adjust.
6552 * server.c: Include tdesc.h.
6553 (gdbserver_xmltarget): Delete declaration.
6554 (get_features_xml, process_serial_event): Adjust.
6555 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
6556 declare.
6557 (struct process_info) <tdesc>: New field.
6558 (ipa_tdesc): Declare.
6559 * tdesc.c: New file.
6560 * tdesc.h: New file.
6561 * tracepoint.c: Include tdesc.h.
6562 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
6563 (get_context_regcache): Adjust to pass ipa_tdesc down.
6564 (do_action_at_tracepoint): Adjust to get the register cache size
6565 from the context regcache's description.
6566 (traceframe_walk_blocks): Adjust to get the register cache size
6567 from the current trace frame's description.
6568 (traceframe_get_pc): Adjust to get current trace frame's
6569 description and pass it down.
6570 (gdb_collect): Adjust to get the register cache size from the
6571 IPA's description.
6572 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
6573 (gdbserver_xmltarget): Delete.
6574 (initialize_low_tracepoint): Set the ipa's target description.
6575 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
6576 (initialize_low_tracepoint): Set the ipa's target description.
6577 * linux-x86-low.c: Include tdesc.h.
6578 [__x86_64__] (is_64bit_tdesc): New.
6579 (ps_get_thread_area, x86_get_thread_area): Use it.
6580 (i386_cannot_store_register): Rename to ...
6581 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
6582 (i386_cannot_fetch_register): Rename to ...
6583 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
6584 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
6585 to new interface.
6586 (target_regsets): Rename to ...
6587 (x86_regsets): ... this.
6588 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
6589 interface.
6590 (x86_siginfo_fixup): Use is_64bit_tdesc.
6591 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
6592 (tdesc_x32_avx_linux, tdesc_x32_linux)
6593 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
6594 Declare.
6595 (x86_linux_update_xmltarget): Delete.
6596 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
6597 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
6598 (AMD64_LINUX_USER64_CS): New.
6599 (x86_linux_read_description): New, based on
6600 x86_linux_update_xmltarget.
6601 (same_process_callback): New.
6602 (x86_arch_setup_process_callback): New.
6603 (x86_linux_update_xmltarget): New.
6604 (x86_regsets_info): New.
6605 (amd64_linux_regs_info): New.
6606 (i386_linux_usrregs_info): New.
6607 (i386_linux_regs_info): New.
6608 (x86_linux_regs_info): New.
6609 (x86_arch_setup): Reimplement.
6610 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
6611 (x86_emit_ops): Ditto.
6612 (the_low_target): Adjust. Install x86_linux_regs_info,
6613 x86_cannot_fetch_register, and x86_cannot_store_register.
6614 (initialize_low_arch): New.
6615 * linux-ia64-low.c (tdesc_ia64): Declare.
6616 (ia64_fetch_register): Adjust.
6617 (ia64_usrregs_info, regs_info): New globals.
6618 (ia64_regs_info): New function.
6619 (the_low_target): Adjust.
6620 (initialize_low_arch): New function.
6621 * linux-sparc-low.c (tdesc_sparc64): Declare.
6622 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
6623 Adjust.
6624 (sparc_arch_setup): New function.
6625 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
6626 (the_low_target): Adjust.
6627 (initialize_low_arch): New function.
6628 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
6629 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
6630 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
6631 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
6632 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
6633 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
6634 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
6635 (tdesc_powerpc_isa205_vsx64l): Declare.
6636 (ppc_cannot_store_register, ppc_collect_ptrace_register)
6637 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
6638 (ppc_set_pc, ppc_get_hwcap): Adjust.
6639 (ppc_usrregs_info): Forward declare.
6640 (!__powerpc64__) ppc_regmap_adjusted: New global.
6641 (ppc_arch_setup): Adjust to the current process'es target
6642 description.
6643 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
6644 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
6645 (ppc_store_evrregset): Adjust.
6646 (target_regsets): Rename to ...
6647 (ppc_regsets): ... this, and make static.
6648 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
6649 (ppc_regs_info): New function.
6650 (the_low_target): Adjust.
6651 (initialize_low_arch): New function.
6652 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
6653 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
6654 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
6655 (tdesc_s390x_linux64v2): Declare.
6656 (s390_collect_ptrace_register, s390_supply_ptrace_register)
6657 (s390_fill_gregset, s390_store_last_break): Adjust.
6658 (target_regsets): Rename to ...
6659 (s390_regsets): ... this, and make static.
6660 (s390_get_pc, s390_set_pc): Adjust.
6661 (s390_get_hwcap): New target_desc parameter, and use it.
6662 [__s390x__] (have_hwcap_s390_high_gprs): New global.
6663 (s390_arch_setup): Adjust to set the current process'es target
6664 description. Don't adjust the regmap.
6665 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
6666 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
6667 (regs_info_3264): New globals.
6668 (s390_regs_info): New function.
6669 (the_low_target): Adjust.
6670 (initialize_low_arch): New function.
6671 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
6672 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
6673 [__mips64] (init_registers_mips_linux)
6674 (init_registers_mips_dsp_linux): Delete defines.
6675 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
6676 (have_dsp): New global.
6677 (mips_read_description): New, based on mips_arch_setup.
6678 (mips_arch_setup): Reimplement.
6679 (get_usrregs_info): New function.
6680 (mips_cannot_fetch_register, mips_cannot_store_register)
6681 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
6682 (mips_fill_fpregset, mips_store_fpregset): Adjust.
6683 (target_regsets): Rename to ...
6684 (mips_regsets): ... this, and make static.
6685 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
6686 (dsp_regs_info, regs_info): New globals.
6687 (mips_regs_info): New function.
6688 (the_low_target): Adjust.
6689 (initialize_low_arch): New function.
6690 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
6691 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
6692 Declare.
6693 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
6694 (arm_read_description): New, with bits factored from
6695 arm_arch_setup.
6696 (arm_arch_setup): Reimplement.
6697 (target_regsets): Rename to ...
6698 (arm_regsets): ... this, and make static.
6699 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
6700 (arm_regs_info): New function.
6701 (the_low_target): Adjust.
6702 (initialize_low_arch): New function.
6703 * linux-m68k-low.c (tdesc_m68k): Declare.
6704 (target_regsets): Rename to ...
6705 (m68k_regsets): ... this, and make static.
6706 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
6707 (m68k_regs_info): New function.
6708 (m68k_arch_setup): New function.
6709 (the_low_target): Adjust.
6710 (initialize_low_arch): New function.
6711 * linux-sh-low.c (tdesc_sharch): Declare.
6712 (target_regsets): Rename to ...
6713 (sh_regsets): ... this, and make static.
6714 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
6715 (sh_regs_info, sh_arch_setup): New functions.
6716 (the_low_target): Adjust.
6717 (initialize_low_arch): New function.
6718 * linux-bfin-low.c (tdesc_bfin): Declare.
6719 (bfin_arch_setup): New function.
6720 (bfin_usrregs_info, regs_info): New globals.
6721 (bfin_regs_info): New function.
6722 (the_low_target): Adjust.
6723 (initialize_low_arch): New function.
6724 * linux-cris-low.c (tdesc_cris): Declare.
6725 (cris_arch_setup): New function.
6726 (cris_usrregs_info, regs_info): New globals.
6727 (cris_regs_info): New function.
6728 (the_low_target): Adjust.
6729 (initialize_low_arch): New function.
6730 * linux-cris-low.c (tdesc_crisv32): Declare.
6731 (cris_arch_setup): New function.
6732 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
6733 (cris_regs_info): New function.
6734 (the_low_target): Adjust.
6735 (initialize_low_arch): New function.
6736 * linux-m32r-low.c (tdesc_m32r): Declare.
6737 (m32r_arch_setup): New function.
6738 (m32r_usrregs_info, regs_info): New globals.
6739 (m32r_regs_info): Adjust.
6740 (initialize_low_arch): New function.
6741 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
6742 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
6743 (tic6x_usrregs_info): Forward declare.
6744 (tic6x_read_description): New function, based on ...
6745 (tic6x_arch_setup): ... this. Reimplement.
6746 (target_regsets): Rename to ...
6747 (tic6x_regsets): ... this, and make static.
6748 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
6749 (tic6x_regs_info): New function.
6750 (the_low_target): Adjust.
6751 (initialize_low_arch): New function.
6752 * linux-xtensa-low.c (tdesc_xtensa): Declare.
6753 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
6754 (target_regsets): Rename to ...
6755 (xtensa_regsets): ... this, and make static.
6756 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
6757 globals.
6758 (xtensa_arch_setup, xtensa_regs_info): New functions.
6759 (the_low_target): Adjust.
6760 (initialize_low_arch): New function.
6761 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
6762 (nios2_arch_setup): Set the current process'es tdesc.
6763 (target_regsets): Rename to ...
6764 (nios2_regsets): ... this.
6765 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
6766 (nios2_regs_info): New function.
6767 (the_low_target): Adjust.
6768 (initialize_low_arch): New function.
6769 * linux-aarch64-low.c (tdesc_aarch64): Declare.
6770 (aarch64_arch_setup): Set the current process'es tdesc.
6771 (target_regsets): Rename to ...
6772 (aarch64_regsets): ... this.
6773 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
6774 (aarch64_regs_info): New function.
6775 (the_low_target): Adjust.
6776 (initialize_low_arch): New function.
6777 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
6778 globals.
6779 (target_regsets): Rename to ...
6780 (tile_regsets): ... this.
6781 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
6782 (tile_regs_info): New function.
6783 (tile_arch_setup): Set the current process'es tdesc.
6784 (the_low_target): Adjust.
6785 (initialize_low_arch): New function.
6786 * spu-low.c (tdesc_spu): Declare.
6787 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
6788 * win32-arm-low.c (tdesc_arm): Declare.
6789 (arm_arch_setup): New function.
6790 (the_low_target): Install arm_arch_setup instead of
6791 init_registers_arm.
6792 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
6793 (init_windows_x86): Rename to ...
6794 (i386_arch_setup): ... this. Set `win32_tdesc'.
6795 (the_low_target): Adjust.
6796 * win32-low.c (win32_tdesc): New global.
6797 (child_add_thread): Don't create the thread cache here.
6798 (do_initial_child_stuff): Set the new process'es tdesc.
6799 * win32-low.h (struct target_desc): Forward declare.
6800 (win32_tdesc): Declare.
6801 * lynx-i386-low.c (tdesc_i386): Declare global.
6802 (lynx_i386_arch_setup): Set `lynx_tdesc'.
6803 * lynx-low.c (lynx_tdesc): New global.
6804 (lynx_add_process): Set the new process'es tdesc.
6805 * lynx-low.h (struct target_desc): Forward declare.
6806 (lynx_tdesc): Declare global.
6807 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
6808 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
6809 * nto-low.c (nto_tdesc): New global.
6810 (do_attach): Set the new process'es tdesc.
6811 * nto-low.h (struct target_desc): Forward declare.
6812 (nto_tdesc): Declare.
6813 * nto-x86-low.c (tdesc_i386): Declare.
6814 (nto_x86_arch_setup): Set `nto_tdesc'.
6815
6816 2013-06-04 Gary Benson <gbenson@redhat.com>
6817
6818 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
6819 to qSupported response when appropriate.
6820 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
6821 with nonzero-length annex.
6822 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
6823 arguments supplied in annex.
6824
6825 2013-05-31 Doug Evans <dje@google.com>
6826
6827 PR server/15594
6828 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
6829 64 bits in 64-cross-32 environment.
6830
6831 2013-05-28 Pedro Alves <palves@redhat.com>
6832
6833 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
6834 (aarch64-without-fpu.c): Delete rule.
6835 * configure.srv (aarch64*-*-linux*): Remove references to
6836 aarch64-without-fpu.o and aarch64-without-fpu.xml.
6837 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
6838 declaration.
6839
6840 2013-05-24 Pedro Alves <palves@redhat.com>
6841
6842 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
6843 instead of strchr/decode_address. Error if the range isn't split
6844 with a ','. Don't assume there's be a ':' in the action.
6845
6846 2013-05-23 Yao Qi <yao@codesourcery.com>
6847 Pedro Alves <palves@redhat.com>
6848
6849 * linux-low.c (lwp_in_step_range): New function.
6850 (linux_wait_1): If the thread was range stepping and stopped
6851 outside the stepping range, report the stop to GDB. Otherwise,
6852 continue stepping. Add range stepping debug output.
6853 (linux_set_resume_request): Copy the step range from the resume
6854 request to the lwp.
6855 (linux_supports_range_stepping): New.
6856 (linux_target_ops) <supports_range_stepping>: Set to
6857 linux_supports_range_stepping.
6858 * linux-low.h (struct linux_target_ops)
6859 <supports_range_stepping>: New field.
6860 (struct lwp_info) <step_range_start, step_range_end>: New fields.
6861 * linux-x86-low.c (x86_supports_range_stepping): New.
6862 (the_low_target) <supports_range_stepping>: Set to
6863 x86_supports_range_stepping.
6864 * server.c (handle_v_cont): Handle 'r' action.
6865 (handle_v_requests): Append ";r" if the target supports range
6866 stepping.
6867 * target.h (struct thread_resume) <step_range_start,
6868 step_range_end>: New fields.
6869 (struct target_ops) <supports_range_stepping>:
6870 New field.
6871 (target_supports_range_stepping): New macro.
6872
6873 2013-05-17 Joel Brobecker <brobecker@adacore.com>
6874
6875 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
6876 confusion in comment.
6877
6878 2013-05-17 Joel Brobecker <brobecker@adacore.com>
6879
6880 * lynx-low.c (struct process_info_private): New type.
6881 (lynx_add_process): New function.
6882 (lynx_create_inferior, lynx_attach): Replace calls to
6883 add_process by calls to lynx_add_process.
6884 (lynx_resume): If PTID is null, then try using
6885 current_process()->private->last_wait_event_ptid.
6886 Add comments.
6887 (lynx_clear_inferiors): Delete. The contents of that function
6888 has been inlined in lynx_mourn;
6889 (lynx_wait_1): Save the ptid in the process's private data.
6890 (lynx_mourn): Free the process' private data. Replace call
6891 to lynx_clear_inferiors by call to clear_inferiors.
6892
6893 2013-05-17 Yao Qi <yao@codesourcery.com>
6894
6895 * i386-low.c (i386_length_and_rw_bits): Move the comment to
6896 the right place.
6897
6898 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
6899
6900 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
6901 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
6902 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
6903 PT_TEXT_END_ADDR guards. Update comments.
6904 (linux_target_op) <read_offsets>: Conditionally define to
6905 linux_read_offsets if the target is UCLIBC and if it defines
6906 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
6907
6908 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6909 Andrew Jenner <andrew@codesourcery.com>
6910
6911 * Makefile.in (SFILES): Add linux-nios2-low.c.
6912 (clean): Add action to delete nios2-linux.c.
6913 (nios2-linux.c): New rule.
6914 * configure.srv: Add nios2*-*-linux*.
6915 * linux-nios2-low.c: New.
6916
6917 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
6918
6919 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
6920
6921 2013-04-25 Hui Zhu <hui@codesourcery.com>
6922
6923 PR gdb/15186
6924 * ax.c (ax_printf): Add fflush.
6925
6926 2013-04-22 Tom Tromey <tromey@redhat.com>
6927
6928 * Makefile.in (SFILES): Add filestuff.c.
6929 (OBS): Add filestuff.o.
6930 (filestuff.o): New target.
6931 * config.in, configure: Rebuild.
6932 * configure.ac: Check for fdwalk, pipe2.
6933
6934 2013-04-17 Pedro Alves <palves@redhat.com>
6935
6936 * configure.ac (USE_THREAD_DB): Delete variable.
6937 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
6938 Don't AC_SUBST USE_THREAD_DB.
6939 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
6940 * config.in, configure: Regenerate.
6941
6942 2013-04-16 Pedro Alves <palves@redhat.com>
6943
6944 * linux-low.h (struct lwp_info) <thread_known>: Move under
6945 the USE_THREAD_DB #ifdef.
6946
6947 2013-04-16 Pedro Alves <palves@redhat.com>
6948
6949 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
6950 (linux-low.o): Delete rule.
6951 * linux-low.h: Always include "gdb_thread_db.h" instead of
6952 conditionally including thread_db.h.
6953 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
6954 HAVE_THREAD_DB_H.
6955
6956 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6957
6958 * Makefile.in (install-only): Fix make install regression.
6959
6960 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6961
6962 Convert man pages to texinfo, new gdbinit.5 texinfo page.
6963 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
6964 installation.
6965 * gdbserver.1: Remove.
6966
6967 2013-03-22 Pedro Alves <palves@redhat.com>
6968
6969 * linux-low.c (handle_extended_wait): Don't call
6970 linux_enable_event_reporting.
6971
6972 2013-03-15 Tony Theodore <tonyt@logyst.com>
6973
6974 PR build/9098:
6975 * Makefile.in (SHELL): Use @SHELL@.
6976
6977 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
6978
6979 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
6980 compiler warning.
6981
6982 2013-03-13 Joel Brobecker <brobecker@adacore.com>
6983
6984 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
6985 Remove extraneous NULL element.
6986
6987 2013-03-13 Yao Qi <yao@codesourcery.com>
6988
6989 * tracepoint.c (traceframe_read_tsv): Look for the last matched
6990 'V' block in trace frame.
6991
6992 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6993
6994 * target.h (struct target_ops): Add btrace ops.
6995 (target_supports_btrace): New macro.
6996 (target_enable_btrace): New macro.
6997 (target_disable_btrace): New macro.
6998 (target_read_btrace): New macro.
6999 * gdbthread.h (struct thread_info): Add btrace field.
7000 * server.c: Include btrace-common.h.
7001 (handle_btrace_general_set): New function.
7002 (handle_btrace_enable): New function.
7003 (handle_btrace_disable): New function.
7004 (handle_general_set): Call handle_btrace_general_set.
7005 (handle_qxfer_btrace): New function.
7006 (struct qxfer qxfer_packets[]): Add btrace entry.
7007 * inferiors.c (remove_thread): Disable btrace.
7008 * linux-low: Include linux-btrace.h.
7009 (linux_low_enable_btrace): New function.
7010 (linux_low_read_btrace): New function.
7011 (linux_target_ops): Add btrace ops.
7012 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
7013 Add srv_linux_btrace=yes.
7014 (x86_64-*-linux*): Add linux-btrace.o.
7015 Add srv_linux_btrace=yes.
7016 * configure.ac: Define HAVE_LINUX_BTRACE.
7017 * config.in: Regenerated.
7018 * configure: Regenerated.
7019
7020 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7021
7022 * server.c (handle_qxfer): Preserve error message if -3 is
7023 returned.
7024 (qxfer): Document the -3 return value.
7025
7026 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7027
7028 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
7029 (linux_btrace_h): New variable.
7030 (linux-btrace.o): New rule.
7031
7032 2013-03-08 Stan Shebs <stan@codesourcery.com>
7033 Hafiz Abid Qadeer <abidh@codesourcery.com>
7034
7035 * tracepoint.c (trace_buffer_size): New global.
7036 (DEFAULT_TRACE_BUFFER_SIZE): New define.
7037 (init_trace_buffer): Change to one-argument function. Allocate
7038 trace buffer memory.
7039 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
7040 handle QTBuffer:size packet.
7041 (cmd_bigqtbuffer_size): New function.
7042 (initialize_tracepoint): Call init_trace_buffer with
7043 DEFAULT_TRACE_BUFFER_SIZE.
7044 * server.c (handle_query): Add QTBuffer:size in the
7045 supported packets.
7046
7047 2013-03-07 Yao Qi <yao@codesourcery.com>
7048
7049 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
7050 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
7051 of -1.
7052 (cmd_qtsp): Adjust condition. Do post increment.
7053 Set cur_action and cur_step_action back to 0.
7054
7055 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
7056
7057 PR server/15236
7058 * linux-low.c (linux_write_memory): Return early success if LEN is
7059 zero.
7060
7061 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
7062
7063 * configure.srv: Add x86_64-*-cygwin* as target.
7064
7065 2013-02-28 Tom Tromey <tromey@redhat.com>
7066
7067 * configure.ac: Invoke AC_SYS_LARGEFILE.
7068 * configure, config.in: Rebuild.
7069
7070 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
7071
7072 * win32-low.c: Throughout, fix format strings and casts of
7073 printf-like functions to avoid type related warnings on all
7074 platforms.
7075 (get_child_debug_event): Print dwDebugEventCode as hex since
7076 that's how it's usually documented.
7077
7078 2013-02-28 Yao Qi <yao@codesourcery.com>
7079
7080 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
7081 pulongest.
7082
7083 2013-02-27 Jiong Wang <jiwang@tilera.com>
7084
7085 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
7086 (reg-tilegx32.c): New rule.
7087 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
7088 * linux-tile-low.c (tile_arch_setup): New function. Invoke
7089 different register info initializer according to elf class.
7090 (init_registers_tilgx32): New function. The tilegx32 register info
7091 initializer.
7092 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
7093 (tile_store_gregset): Likewise.
7094
7095 2013-02-27 Yao Qi <yao@codesourcery.com>
7096
7097 * server.c (process_point_options): Print debug message when
7098 debug_threads is true.
7099
7100 2013-02-26 Yao Qi <yao@codesourcery.com>
7101
7102 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
7103
7104 2013-02-19 Pedro Alves <palves@redhat.com>
7105 Kai Tietz <ktietz@redhat.com>
7106
7107 PR gdb/15161
7108
7109 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
7110 instead of strtoul to extract address from packet.
7111 (process_serial_event) <'z'>: Likewise.
7112
7113 2013-02-18 Yao Qi <yao@codesourcery.com>
7114
7115 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
7116
7117 2013-02-14 Pedro Alves <palves@redhat.com>
7118
7119 Plug memory leak.
7120
7121 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
7122 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
7123
7124 2013-02-14 Pedro Alves <palves@redhat.com>
7125
7126 * tracepoint.c (cmd_qtdpsrc): Use savestring.
7127
7128 2013-02-14 Pedro Alves <palves@redhat.com>
7129
7130 * tracepoint.c (save_string): Delete.
7131 (add_tracepoint_action): Use savestring instead of save_string.
7132
7133 2013-02-12 Pedro Alves <palves@redhat.com>
7134
7135 * linux-xtensa-low.c: Ditto.
7136 * xtensa-xtregs.c: Ditto.
7137
7138 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7139
7140 * thread-db.c (thread_db_get_tls_address): NULL pointer check
7141 thread_db.
7142
7143 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
7144
7145 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
7146 aarch64_num_wp_regs and aarch64_num_bp_regs to
7147 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
7148
7149 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
7150
7151 * linux-aarch64-low.c (ps_get_thread_area): Replace
7152 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
7153
7154 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
7155 Marcus Shawcroft <marcus.shawcroft@arm.com>
7156 Nigel Stephens <nigel.stephens@arm.com>
7157 Yufeng Zhang <yufeng.zhang@arm.com>
7158
7159 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
7160 (aarch64.c, aarch64-without-fpu.c): New targets.
7161 * configure.srv (aarch64*-*-linux*): New.
7162 * linux-aarch64-low.c: New file.
7163
7164 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
7165
7166 * linux-low.c (handle_extended_wait, linux_create_inferior)
7167 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
7168 (dequeue_one_deferred_signal, linux_resume_one_thread)
7169 (fetch_register, linux_write_memory, linux_enable_event_reporting)
7170 (linux_tracefork_grandchild, linux_test_for_tracefork)
7171 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
7172 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
7173 where the argument is 0.
7174
7175 2013-01-25 Yao Qi <yao@codesourcery.com>
7176
7177 * event-loop.c: Include "queue.h".
7178 (gdb_event_p): New typedef.
7179 (struct gdb_event) <next_event>: Remove.
7180 (event_queue): Change to QUEUE(gdb_event_p).
7181 (async_queue_event): Remove.
7182 (gdb_event_xfree): New.
7183 (initialize_event_loop): New.
7184 (process_event): Use API from QUEUE.
7185 (wait_for_event): Likewise.
7186 * server.c (main): Call initialize_event_loop.
7187 * server.h (initialize_event_loop): Declare.
7188
7189 2013-01-18 Yao Qi <yao@codesourcery.com>
7190
7191 * ax.h (struct eval_agent_expr_context): New.
7192 (gdb_eval_agent_expr): Update declaration.
7193 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
7194 TFRAME. Add new argument CTX.
7195 * server.h (struct eval_agent_expr_context): Declare.
7196 (agent_mem_read, agent_tsv_read): Update declaration.
7197 (agent_mem_read_string): Likewise.
7198 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
7199 (add_traceframe_block): Add new argument TPOINT.
7200 Increase TPOINT->traceframe_usage.
7201 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
7202 eval_tracepoint_agent_expr.
7203 (condition_true_at_tracepoint): Likewise.
7204 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
7205 (agent_mem_read_string, agent_tsv_read): Likewise.
7206
7207 2013-01-16 Yao Qi <yao@codesourcery.com>
7208
7209 * linux-low.c (linux_resume_one_lwp): Don't check
7210 'lwp->bp_reinsert != 0'.
7211
7212 2013-01-07 Joel Brobecker <brobecker@adacore.com>
7213 Pedro Alves <palves@redhat.com>
7214
7215 * lynx-low.c (ptrace_request_to_str): Define a temporary
7216 macro and use it to simplify this function's implementation.
7217
7218 2013-01-07 Joel Brobecker <brobecker@adacore.com>
7219
7220 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
7221 sets errno.
7222
7223 2013-01-07 Joel Brobecker <brobecker@adacore.com>
7224
7225 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
7226
7227 2013-01-07 Joel Brobecker <brobecker@adacore.com>
7228
7229 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
7230
7231 2013-01-07 Joel Brobecker <brobecker@adacore.com>
7232
7233 * lynx-low.c (lynx_resume): Use the resume_info parameter
7234 to determine the ptid for the lynx_ptrace call, unless
7235 it is equal to minus_one_ptid, in which case we use the
7236 ptid of the current_inferior.
7237 (lynx_wait_1): After having received a thread create/exit
7238 event, resume the inferior's execution using the signaling
7239 thread's ptid, rather than the old ptid.
7240
7241 2013-01-07 Joel Brobecker <brobecker@adacore.com>
7242
7243 * lynx-low.c (lynx_resume): Delete variable ret.
7244
7245 2013-01-01 Joel Brobecker <brobecker@adacore.com>
7246
7247 * gdbreplay.c (gdbreplay_version): Update copyright year.
7248 * server.c (gdbserver_version): Likewise.
7249
7250 2012-12-17 Joel Brobecker <brobecker@adacore.com>
7251
7252 * lynx-low.c (lynx_wait_1): Add debug trace before adding
7253 new thread.
7254
7255 2012-12-17 Joel Brobecker <brobecker@adacore.com>
7256
7257 * lynx-low.c (ptrace_request_to_str): Add handling for
7258 PTRACE_GETTRACESIG.
7259
7260 2012-12-17 Joel Brobecker <brobecker@adacore.com>
7261
7262 * lynx-low.c (lynx_attach): Delete variable new_process.
7263
7264 2012-12-17 Joel Brobecker <brobecker@adacore.com>
7265
7266 * lynx-low.c (lynx_create_inferior): Delete variable
7267 new_process.
7268
7269 2012-12-17 Joel Brobecker <brobecker@adacore.com>
7270
7271 * lynx-low.c (ptrace_request_to_str): Do not handle
7272 PTRACE_GETTHREADLIST if this macro does not exist.
7273
7274 2012-12-15 Yao Qi <yao@codesourcery.com>
7275
7276 * Makefile.in (OBS): Add notif.o.
7277 * notif.c, notif.h: New.
7278 * server.c: Include "notif.h".
7279 (struct vstop_notif) <next>: Remove.
7280 <base>: New field.
7281 (queue_stop_reply): Update.
7282 (push_event, send_next_stop_reply): Remove.
7283 (discard_queued_stop_replies): Update.
7284 (notif_stop): New variable.
7285 (handle_v_stopped): Remove.
7286 (handle_v_requests): Don't call handle_v_stopped. Call
7287 handle_ack_notif instead.
7288 (queue_stop_reply_callback): Call notif_event_enque instead
7289 of queue_stop_reply.
7290 (handle_status): Don't call send_next_stop_reply, call
7291 notif_write_event instead.
7292 (kill_inferior_callback): Likewise.
7293 (detach_or_kill_inferior_callback): Likewise.
7294 (main): Call initialize_notif.
7295 (process_serial_event): Call QUEUE_is_empty.
7296 (handle_target_event): Call notif_push instead of push event.
7297 * server.h (push_event): Remove declaration.
7298
7299 2012-12-10 Tom Tromey <tromey@redhat.com>
7300
7301 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
7302 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
7303 macros.
7304 (.c.o): Rewrite.
7305 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
7306 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
7307 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
7308 (amd64-linux-ipa.o, ax.o): Rewrite.
7309 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
7310 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
7311 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
7312 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
7313 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
7314 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
7315 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
7316 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
7317 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
7318 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
7319 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
7320 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
7321 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
7322 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
7323 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
7324 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
7325 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
7326 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
7327 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
7328 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
7329 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
7330 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
7331 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
7332 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
7333 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
7334 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
7335 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
7336 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
7337 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
7338 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
7339 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
7340 (reg-tilegx.o): Remove.
7341 (all_object_files): New macro.
7342 Include .deps files.
7343 * aclocal.m4, configure: Rebuild.
7344 * acinclude.m4: Include depstand.m4, lead-dot.m4.
7345 * configure.ac: Invoke ZW_CREATE_DEPDIR,
7346 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
7347
7348 2012-12-05 Tom Tromey <tromey@redhat.com>
7349
7350 PR gdb/14917:
7351 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
7352
7353 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
7354
7355 * configure.ac: Check for linux/perf_event.h.
7356 * config.in: Regenerated.
7357 * configure: Regenerated.
7358
7359 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
7360
7361 * hostio.c (handle_readlink): Decrease buffer size
7362 parameter passed to readlink by one byte.
7363
7364 2012-11-26 Yao Qi <yao@codesourcery.com>
7365
7366 * configure.ac (build_warnings): Append '-Wempty-body'.
7367 * configure: Regenerated.
7368 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
7369 body.
7370
7371 2012-11-15 Pierre Muller <muller@sourceware.org>
7372
7373 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
7374 * config.in: Regenerate.
7375 * configure: Regenerate.
7376 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
7377 Use "gdb_wait.h" header instead of <sys/wait.h> header.
7378 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
7379 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
7380 header.
7381 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
7382 instead of <sys/wait.h> header.
7383 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
7384
7385 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
7386
7387 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
7388 (various make rules): Remove -DGDBSERVER
7389
7390 2012-11-09 Yao Qi <yao@codesourcery.com>
7391
7392 * spu-low.c (current_ptid): Move it to ..
7393 * gdbthread.h: ... here. New.
7394 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
7395 * server.c (myresume, process_serial_event): Likewise.
7396 * thread-db.c (thread_db_find_new_threads): Likewise.
7397 * tracepoint.c (run_inferior_command): Likewise.
7398
7399 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
7400
7401 * server.c (handle_search_memory_1): Include access length in
7402 warning message.
7403
7404 2012-09-05 Michael Brandt <michael.brandt@axis.com>
7405
7406 * linux-crisv32-low.c: Fix compile errors.
7407
7408 2012-09-04 Yao Qi <yao@codesourcery.com>
7409
7410 * tracepoint.c (cmd_qtsv): Adjust debug message.
7411 Don't check CUR_TPOINT.
7412
7413 2012-08-28 Yao Qi <yao@codesourcery.com>
7414
7415 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
7416 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
7417 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
7418 Remove declarations of xmalloc, xreallloc, xstrdup and
7419 freeargv.
7420 * Makefile.in (libiberty_h): New.
7421 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
7422 (linux-bfin-low.o): Append dependency 'libiberty.h'.
7423
7424 2012-08-23 Yao Qi <yao@codesourcery.com>
7425
7426 * server.h: Remove declaration of 'xsnprintf'.
7427
7428 2012-08-22 Keith Seitz <keiths@redhat.com>
7429
7430 * server.h: Include build-gnulib-gbserver/config.h.
7431 * gdbreplay.c: Likewise.
7432
7433 2012-08-08 Doug Evans <dje@google.com>
7434
7435 * Makefile.in (SFILES): Add gdb_vecs.c.
7436 (OBS): Add gdb_vecs.o.
7437 (gdb_vecs_h, host_defs_h): New variables.
7438 (thread-db.o): Add $(gdb_vecs_h) dependency.
7439 (gdb_vecs.o): New rule.
7440 * thread-db.c: #include "gdb_vecs.h".
7441 (thread_db_load_search): Use a vector to iterate over path elements.
7442 Handle text appearing after "$pdir".
7443
7444 * configure.ac: Add check for strstr.
7445 * config.in: Regenerate.
7446 * configure: Regenerate.
7447
7448 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7449
7450 * hostio.c (handle_pread): If pread fails, fall back to attempting
7451 lseek/read.
7452 (handle_pwrite): Likewise for pwrite.
7453
7454 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7455
7456 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
7457 between unsupported TYPE and unimplementable ADDR/LEN combination.
7458 (arm_insert_point): Act on new return value.
7459
7460 2012-07-31 Pedro Alves <palves@redhat.com>
7461
7462 * server.c (process_point_options): Only skip tokens if we find
7463 one that is unrecognized. Don't treat 'X' specially while
7464 skipping unrecognized tokens.
7465
7466 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
7467
7468 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
7469 to 4-byte-align HW breakpoint addresses for Thumb.
7470
7471 2012-07-27 Yao Qi <yao@codesourcery.com>
7472
7473 PR remote/14161.
7474
7475 * server.h: Declare gdb_agent_about_to_close.
7476 * target.c (kill_inferior): Include "agent.h".
7477 New. Send command 'kill'.
7478 * target.h (kill_inferior): Removed macro.
7479 * tracepoint.c (gdb_agent_about_to_close): New.
7480 (gdb_agent_helper_thread): Handle command 'close'.
7481 Wait endlessly until the inferior stops.
7482 Install gdb_agent_remove_socket to atexit hook.
7483 (agent_socket_name): New static variable.
7484 (gdb_agent_socket_init): Replace local variable 'name' with
7485 'agent_socket_name'.
7486 (gdb_agent_remove_socket): New.
7487
7488 2012-07-27 Yao Qi <yao@codesourcery.com>
7489
7490 * server.c (process_point_options): Stop at 'X' when parsing.
7491
7492 2012-07-19 Michael Eager <eager@eagercon.com>
7493
7494 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
7495 to hw_execute.
7496 * linux-x86-low.c (x86_insert_point, x86_remove_point):
7497 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
7498 hardware breakpoint.
7499
7500 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7501
7502 * gdbserver/linux-low.c (initialize_low): Call
7503 linux_ptrace_init_warnings.
7504
7505 2012-07-02 Doug Evans <dje@google.com>
7506
7507 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
7508 pointer to int.
7509
7510 2012-07-02 Stan Shebs <stan@codesourcery.com>
7511
7512 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
7513 (ax.o): Add it to build rule.
7514 (ax-ipa.o): Ditto.
7515 (OBS): Add format.o.
7516 (IPA_OBS): Add format.o.
7517 * server.c (handle_query): Claim support for breakpoint commands.
7518 (process_point_options): Add command case.
7519 (process_serial_event): Leave running if there are printfs in
7520 effect.
7521 * mem-break.h (any_persistent_commands): Declare.
7522 (add_breakpoint_commands): Declare.
7523 (gdb_no_commands_at_breakpoint): Declare.
7524 (run_breakpoint_commands): Declare.
7525 * mem-break.c (struct point_command_list): New struct.
7526 (struct breakpoint): New field command_list.
7527 (any_persistent_commands): New function.
7528 (add_commands_to_breakpoint): New function.
7529 (add_breakpoint_commands): New function.
7530 (gdb_no_commands_at_breakpoint): New function.
7531 (run_breakpoint_commands): New function.
7532 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
7533 locally.
7534 * ax.c: Include format.h.
7535 (ax_printf): New function.
7536 (gdb_eval_agent_expr): Add printf opcode.
7537
7538 2012-06-13 Yao Qi <yao@codesourcery.com>
7539
7540 * server.c (start_inferior): Remove duplicated writes to fields
7541 'last_resume_kind' and 'last_status' of 'current_inferior'.
7542
7543 2012-06-12 Yao Qi <yao@codesourcery.com>
7544 Pedro Alves <palves@redhat.com>
7545
7546 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
7547 comment.
7548 * server.c (handle_v_cont): Extend comment.
7549
7550 2012-06-11 Yao Qi <yao@codesourcery.com>
7551
7552 * linux-low.c (linux_attach): Add 'static'.
7553
7554 2012-06-06 Yao Qi <yao@codesourcery.com>
7555
7556 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
7557
7558 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7559
7560 Fix gcc -flto compilation warning.
7561 * server.c (main): Make variable multi_mode and attach volatile.
7562
7563 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
7564
7565 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
7566 if the platform doesn't know about it.
7567
7568 2012-05-30 Jeff Kenton <jkenton@tilera.com>
7569
7570 * Makefile.in (SFILES): Add linux-tile-low.c.
7571 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
7572 * configure.srv: Handle tilegx-*-linux*.
7573 * linux-tile-low.c: New file.
7574
7575 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7576
7577 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
7578
7579 2012-05-24 Pedro Alves <palves@redhat.com>
7580
7581 PR gdb/7205
7582
7583 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
7584
7585 2012-05-24 Pedro Alves <palves@redhat.com>
7586
7587 PR gdb/7205
7588
7589 Replace target_signal with gdb_signal throughout.
7590
7591 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
7592
7593 * linux-low.c (linux_store_registers): Avoid the copying sequence
7594 when no data has been retrieved by ptrace.
7595
7596 2012-05-22 Will Deacon <will.deacon@arm.com>
7597
7598 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
7599 Include asm/ptrace.h.
7600 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
7601 already defined.
7602
7603 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
7604
7605 * linux-low.c (linux_store_registers): Don't re-retrieve data
7606 with ptrace that has already been obtained from /proc. Always
7607 copy any data retrieved with ptrace to the buffer supplied.
7608
7609 2012-05-11 Yao Qi <yao@codesourcery.com>
7610 Pedro Alves <palves@redhat.com>
7611
7612 * linux-low.c (enum stopping_threads_kind): New.
7613 (stopping_threads): Change type to `enum stopping_threads_kind'.
7614 (handle_extended_wait): If stopping and suspending threads, leave
7615 the new_lwp suspended too.
7616 (linux_wait_for_event): Adjust.
7617 (stop_all_lwps): Set `stopping_threads' to
7618 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
7619 whether we're suspending threads or just stopping them. Assert no
7620 recursion happens.
7621
7622 2012-04-29 Yao Qi <yao@codesourcery.com>
7623
7624 * server.h: Move some code to ...
7625 * gdbthread.h: ... here. New.
7626 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
7627 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
7628 (nto-low.o, win32-low.o): Likewise.
7629 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
7630 * regcache.c, remote-utils.c, server.c: Likewise.
7631 * target.c, tracepoint.c, win32-low.c: Likewise.
7632
7633 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
7634
7635 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
7636 (PTRACE_ARG4_TYPE): Likewise.
7637 (PTRACE_XFER_TYPE): Likewise.
7638 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
7639 ptrace to PTRACE_ARG3_TYPE.
7640 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
7641 (PTRACE_ARG4_TYPE): Likewise.
7642 (PTRACE_XFER_TYPE): Likewise.
7643 (linux_detach_one_lwp): Cast fourth argument of
7644 ptrace to long then PTRACE_ARG4_TYPE.
7645 (regsets_fetch_inferior_registers): Cast third argument of
7646 ptrace to long then PTRACE_ARG3_TYPE.
7647 (regsets_store_inferior_registers): Likewise.
7648
7649 2012-04-20 Pedro Alves <palves@redhat.com>
7650
7651 * configure: Regenerate.
7652
7653 2012-04-19 Pedro Alves <palves@redhat.com>
7654
7655 * Makefile.in (GNULIB_BUILDDIR): New.
7656 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7657 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
7658 (all, install-only, uninstall, clean-info, all-lib, clean): No
7659 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
7660 (maintainer-clean realclean distclean): Use subdir_do.
7661 (subdir_do): New.
7662 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
7663 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
7664 * acinclude.m4: Include acx_configure_dir.m4.
7665 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
7666 calls. Call AC_PROG_RANLIB. Configure gnulib using
7667 ACX_CONFIGURE_DIR.
7668 (GNULIB): New.
7669 (GNULIB_STDINT_H): Adjust.
7670 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
7671 * gdbreplay.c: Include build-gnulib/config.h.
7672 * server.h: Likewise.
7673 * aclocal.m4: Regenerate.
7674 * config.in: Regenerate.
7675 * configure: Regenerate.
7676
7677 2012-04-19 Pedro Alves <palves@redhat.com>
7678
7679 * Makefile.in (LIBGNU, INCGNU): Adjust.
7680 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
7681 (all, install-only, uninstall, clean-info, all-lib, clean)
7682 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
7683 * configure.ac: Adjust AC_OUTPUT output.
7684 * aclocal.m4: Regenerate.
7685 * configure: Regenerate.
7686
7687 2012-04-19 Pedro Alves <palves@redhat.com>
7688
7689 * Makefile.in (generated_files): New.
7690 (server_h): Remove the explicit dependency on config.h, and depend
7691 on $generated_files.
7692
7693 2012-04-19 Pedro Alves <palves@redhat.com>
7694
7695 * Makefile.in (INCGNU): Add -Ignulib.
7696
7697 2012-04-19 Pedro Alves <palves@redhat.com>
7698
7699 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
7700 (INCGNU): ... this, and spell out -I here.
7701 (GNULIB_LIB): Rename to ...
7702 (LIBGNU): ... this.
7703 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
7704
7705 2012-04-19 Pedro Alves <palves@redhat.com>
7706
7707 * config.in: Regenerate.
7708
7709 2012-04-19 Pedro Alves <palves@redhat.com>
7710
7711 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
7712 * server.h (memmem): Remove declaration.
7713 * config.in: Regenerate.
7714 * configure: Regenerate.
7715
7716 2012-04-19 Yao Qi <yao@codesourcery.com>
7717
7718 * Makefile.in (SFILES): Add common/vec.c.
7719 (OBS): Add vec.o.
7720 (vec.o): New rule.
7721
7722 2012-04-19 Yao Qi <yao@codesourcery.com>
7723
7724 * remote-utils.c (prepare_resume_reply): Replace with macro
7725 target_core_of_thread.
7726 * server.c (handle_qxfer_threads_proper): Likewise.
7727 * target.h (traget_core_of_thread): New macro.
7728
7729 2012-04-18 Pedro Alves <palves@redhat.com>
7730
7731 * aclocal.m4: Regenerate.
7732 * configure: Regenerate.
7733
7734 2012-04-16 Yao Qi <yao@codesourcery.com>
7735
7736 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
7737 duplicated on address.
7738
7739 2012-04-16 Yao Qi <yao@codesourcery.com>
7740
7741 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
7742 (struct tracepoint_action_ops) <send>: New field.
7743 (m_tracepoint_action_send, r_tracepoint_action_send): New.
7744 (agent_expr_send, x_tracepoint_action_send): New.
7745 (l_tracepoint_action_send): New.
7746 (cmd_qtdp): Download and install tracepoint
7747 according to `use_agent'.
7748 (run_inferior_command): Add one more parameter `len'.
7749 Update callers.
7750 (tracepoint_send_agent): New.
7751 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
7752
7753 2012-04-16 Yao Qi <yao@codesourcery.com>
7754
7755 * tracepoint.c (download_tracepoints): Moved to ...
7756 (cmd_qtstart): ... here.
7757
7758 2012-04-14 Yao Qi <yao@codesourcery.com>
7759
7760 * tracepoint.c: Include inttypes.h.
7761 (struct collect_memory_action): Use sized types.
7762 (struct tracepoint): Likewise.
7763 (cmd_qtdp, stop_tracing): Update print specifiers.
7764 (cmd_qtp, response_tracepoint): Likewise.
7765 (collect_data_at_tracepoint): Likewise.
7766 (collect_data_at_step): Likewise.
7767
7768 2012-04-14 Yao Qi <yao@codesourcery.com>
7769
7770 Import gnulib module inttypes.
7771 * aclocal.m4, config.in, configure: Regenerated.
7772
7773 2012-04-14 Yao Qi <yao@codesourcery.com>
7774
7775 * Makefile.in (maintainer-clean, realclean, distclean): Remove
7776 Makefile and config.status at last.
7777
7778 2012-04-13 Yao Qi <yao@codesourcery.com>
7779
7780 * tracepoint.c: Include stdint.h unconditionally.
7781
7782 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
7783
7784 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
7785 on BFD_HAVE_SYS_PROCFS_TYPE.
7786 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
7787 * configure: Regenerate.
7788 * config.in: Likewise.
7789
7790 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
7791
7792 * Makefile.in (clean): Also remove x32.c x32-linux.c
7793 x32-avx.c x32-avx-linux.c.
7794 (x32.o): New target.
7795 (x32.c): Likewise.
7796 (x32-linux.o): Likewise.
7797 (x32-linux.c): Likewise.
7798 (x32-avx.o): Likewise.
7799 (x32-avx.c): Likewise.
7800 (x32-avx-linux.o): Likewise.
7801 (x32-avx-linux.c): Likewise.
7802
7803 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
7804 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
7805 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
7806 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
7807 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
7808 i386/x32-avx-linux.xml.
7809
7810 * linux-x86-low.c (init_registers_x32_linux): New prototype.
7811 (init_registers_x32_avx_linux): Likwise.
7812 (x86_linux_update_xmltarget): Call init_registers_x32_linux
7813 or init_registers_x32_avx_linux if linux_is_elf64 is false.
7814
7815 2012-04-13 Pedro Alves <palves@redhat.com>
7816
7817 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
7818 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
7819 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
7820 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
7821 the sub-make.
7822
7823 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
7824
7825 * linux-x86-low.c (compat_x32_clock_t): New.
7826 (compat_x32_siginfo_t): Likewise.
7827 (compat_x32_siginfo_from_siginfo): Likewise.
7828 (siginfo_from_compat_x32_siginfo): Likewise.
7829 (linux_is_elf64): Likewise.
7830 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
7831 and siginfo_from_compat_x32_siginfo for x32.
7832 (x86_arch_setup): Set linux_is_elf64.
7833
7834 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
7835
7836 PR gdb/13969
7837 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
7838 e_machine field.
7839 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
7840 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
7841 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
7842 compatible with process.
7843
7844 2012-04-12 Yao Qi <yao@codesourcery.com>
7845
7846 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
7847 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
7848 (install-only, install-info, clean): Handle sub dir gnulib.
7849 (all-lib, am--refresh): New targets.
7850 (memmem.o): Remove target.
7851 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
7852 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
7853 (AC_REPLACE_FUNCS): Remove memmem.
7854 Invoke gl_INIT and AM_INIT_AUTOMAKE.
7855 (AC_OUTPUT): Generate Makefile in gnulib/.
7856 * aclocal.m4, config.in, configure: Regenerated.
7857
7858 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7859
7860 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
7861
7862 2012-04-05 Pedro Alves <palves@redhat.com>
7863
7864 -Werror=strict-aliasing
7865
7866 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
7867 pointer.
7868
7869 2012-04-04 Pedro Alves <palves@redhat.com>
7870
7871 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
7872 (sparc_store_gregset_from_stack, sparc_store_gregset)
7873 (sparc_breakpoint_at): Fix formatting.
7874
7875 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
7876
7877 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
7878 are available.
7879 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
7880 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
7881 * config.in: Regenerate.
7882 * configure: Likewise.
7883
7884 2012-03-29 Pedro Alves <palves@redhat.com>
7885
7886 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
7887 Correct ptrace arguments.
7888
7889 2012-03-28 Pedro Alves <palves@redhat.com>
7890
7891 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
7892 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
7893 (IA64_FR1_REGNUM): New defines.
7894 (ia64_fetch_register): New.
7895 (the_low_target): Install it.
7896 * linux-low.h (struct linux_target_ops) <fetch_register>: New
7897 field.
7898 * linux-low.c (linux_fetch_registers): Try the
7899 the_low_target.fetch_register hook first.
7900
7901 * linux-arm-low.c (the_low_target): Adjust.
7902 * linux-bfin-low.c (the_low_target): Adjust.
7903 * linux-cris-low.c (the_low_target): Adjust.
7904 * linux-crisv32-low.c (the_low_target): Adjust.
7905 * linux-m32r-low.c (the_low_target): Adjust.
7906 * linux-m68k-low.c (the_low_target): Adjust.
7907 * linux-mips-low.c (the_low_target): Adjust.
7908 * linux-ppc-low.c (the_low_target): Adjust.
7909 * linux-s390-low.c (the_low_target): Adjust.
7910 * linux-sh-low.c (the_low_target): Adjust.
7911 * linux-sparc-low.c (the_low_target): Adjust.
7912 * linux-tic6x-low.c (the_low_target): Adjust.
7913 * linux-x86-low.c (the_low_target): Adjust.
7914 * linux-xtensa-low.c (the_low_target): Adjust.
7915
7916 2012-03-26 Pedro Alves <palves@redhat.com>
7917
7918 * server.c (handle_qxfer_libraries): Don't bail early if
7919 the_target->qxfer_libraries_svr4 is not NULL.
7920
7921 2012-03-26 Pedro Alves <palves@redhat.com>
7922
7923 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
7924
7925 2012-03-23 Pedro Alves <palves@redhat.com>
7926
7927 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
7928 "library-list-svr4" element's start tag when the the DSO list is
7929 empty.
7930
7931 2012-03-23 Pedro Alves <palves@redhat.com>
7932
7933 * linux-low.c (read_one_ptr): Read the inferior's pointer through
7934 a variable whose type size is the same as the inferior's pointer
7935 size.
7936
7937 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7938
7939 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
7940 struct siginfo.
7941 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
7942 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
7943 * linux-low.h: Include <signal.h>.
7944 (struct siginfo): Remove forward declaration.
7945 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
7946 struct siginfo.
7947
7948 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7949
7950 * .gitignore: Ignore more files.
7951
7952 2012-03-19 Pedro Alves <palves@redhat.com>
7953 Jan Kratochvil <jan.kratochvil@redhat.com>
7954
7955 * server.c (cont_thread, general_thread): Add describing comments.
7956 (start_inferior): Clear `cont_thread'.
7957 (handle_v_cont): Don't set `cont_thread' if resuming all threads
7958 of a process.
7959
7960 2012-03-15 Yao Qi <yao@codesourcery.com>
7961
7962 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
7963 handling to ...
7964 (cmd_qtdp): ... here.
7965
7966 2012-03-15 Yao Qi <yao@codesourcery.com>
7967
7968 * tracepoint.c (struct tracepoint_action_ops): New.
7969 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
7970 (m_tracepoint_action_download): New.
7971 (r_tracepoint_action_download): New.
7972 (x_tracepoint_action_download): New.
7973 (l_tracepoint_action_download): New.
7974 (add_tracepoint_action): Install `action->ops' according type.
7975 (download_tracepoint_1): Move code `download' function pointer
7976 of various tracepoint_action_ops.
7977
7978 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7979
7980 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
7981 linux_ptrace_attach_warnings.
7982
7983 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7984
7985 * Makefile.in (linux-ptrace.o): New.
7986 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
7987 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
7988 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
7989 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
7990 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
7991 of these targets.
7992 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
7993
7994 2012-03-08 Yao Qi <yao@codesourcery.com>
7995 Pedro Alves <palves@redhat.com>
7996
7997 Fix PR server/13392.
7998 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
7999 offset of JMP insn.
8000 * tracepoint.c (remove_tracepoint): New.
8001 (cmd_qtdp): Call remove_tracepoint when failed to install.
8002
8003 2012-03-07 Pedro Alves <palves@redhat.com>
8004
8005 * linux-low.c (get_detach_signal): New.
8006 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
8007 Pass on pending signals to PTRACE_DETACH. Check the result of the
8008 ptrace call.
8009 * server.c (program_signals, program_signals_p): New.
8010 (handle_general_set): Handle QProgramSignals.
8011 * server.h (program_signals, program_signals_p): Declare.
8012
8013 2012-03-05 Pedro Alves <palves@redhat.com>
8014 Jan Kratochvil <jan.kratochvil@redhat.com>
8015
8016 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
8017 New comment why.
8018
8019 2012-03-03 Yao Qi <yao@codesourcery.com>
8020
8021 * tracepoint.c (tracepoint_look_up_symbols): Update call to
8022 agent_look_up_symbols.
8023
8024 2012-03-03 Yao Qi <yao@codesourcery.com>
8025
8026 * Makefile.in (linux-low.o): Keep dependence on agent.h.
8027 (linux-x86-low.o): Likewise.
8028 * server.h: Remove in_process_agent_loaded.
8029 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
8030 common/agent.c.
8031 Update callers.
8032
8033 2012-03-03 Yao Qi <yao@codesourcery.com>
8034
8035 * tracepoint.c (gdb_agent_capability): New global.
8036 (in_process_agent_loaded_ust): Renamed to
8037 `in_process_agent_supports_ust'.
8038 Update callers.
8039 (in_process_agent_supports_ust): Call agent_capability_check.
8040 (clear_installed_tracepoints): Assert that agent supports
8041 agent.
8042
8043 2012-03-03 Yao Qi <yao@codesourcery.com>
8044
8045 * linux-low.c (linux_supports_agent): New.
8046 (linux_target_ops): Initialize field `supports_agent' with
8047 linux_supports_agent.
8048 * target.h (struct target_ops) <supports_agent>: New.
8049 (target_supports_agent): New macro.
8050 * server.c (handle_general_set): Handle packet 'QAgent'.
8051 (handle_query): Send `QAgent+'.
8052 * Makefile.in (server.o): Depends on agent.h.
8053
8054 2012-03-03 Yao Qi <yao@codesourcery.com>
8055
8056 * Makefile.in (OBS): Add agent.o.
8057 Add new rule for agent.o.
8058 Track dependence of tracepoint.c on agent.h.
8059 * tracepoint.c (run_inferior_command_1):
8060 (run_inferior_command): Call agent_run_command.
8061 (gdb_ust_connect_sync_socket): Deleted. Move it to
8062 common/agent.c.
8063 (resume_thread, stop_thread): Likewise.
8064 (gdb_ust_socket_init): Renamed to ...
8065 (gdb_agent_socket_init): ... New.
8066 (gdb_ust_thread): Renamed to ...
8067 (gdb_agent_helper_thread): ... New.
8068 (gdb_ust_init): Move some code to ...
8069 (gdb_agent_init): ... here. New.
8070 [HAVE_UST]: Call gdb_ust_init.
8071 (initialize_tracepoint_ftlib): Call gdb_agent_init.
8072 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
8073 * config.in, configure: Regenerated.
8074
8075 2012-03-02 Pedro Alves <palves@redhat.com>
8076
8077 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
8078 * linux-low.c (struct simple_pid_list): New.
8079 (stopped_pids): New a struct simple_pid_list pointer.
8080 (add_to_pid_list, pull_pid_from_list): New.
8081 (handle_extended_wait): Don't assume the first signal new children
8082 report is SIGSTOP. Adjust call to pull_pid_from_list.
8083 (linux_wait_for_lwp): Adjust.
8084
8085 2012-03-02 Yao Qi <yao@codesourcery.com>
8086
8087 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
8088 debug log.
8089
8090 2012-03-02 Yao Qi <yao@codesourcery.com>
8091
8092 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
8093 `stop_pc' and `tpoint'. Update caller.
8094
8095 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8096
8097 * linux-low.h (linux_target_ops): Add regset_bitmap member.
8098 * linux-low.c (use_linux_regsets): New macro.
8099 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
8100 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
8101 (linux_register_in_regsets): New function.
8102 (usr_fetch_inferior_registers): Skip registers covered by
8103 regsets.
8104 (usr_store_inferior_registers): Likewise.
8105 (usr_fetch_inferior_registers): New macro.
8106 (usr_store_inferior_registers): Likewise.
8107 (linux_fetch_registers): Handle mixed regset/non-regset targets.
8108 (linux_store_registers): Likewise.
8109 * linux-mips-low.c (init_registers_mips_dsp_linux): New
8110 prototype.
8111 (init_registers_mips64_dsp_linux): Likewise.
8112 (init_registers_mips_linux): New macro.
8113 (init_registers_mips_dsp_linux): Likewise.
8114 (mips_dsp_num_regs): Likewise.
8115 (DSP_BASE, DSP_CONTROL): New fallback macros.
8116 (mips_base_regs): New macro.
8117 (mips_regmap): Use it. Fix the size.
8118 (mips_dsp_regmap): New variable.
8119 (mips_dsp_regset_bitmap): Likewise.
8120 (mips_arch_setup): New function.
8121 (mips_cannot_fetch_register): Use the_low_target.regmap rather
8122 than mips_regmap.
8123 (mips_cannot_store_register): Likewise.
8124 (the_low_target): Update .arch_setup, .num_regs and .regmap
8125 initializers. Add .regset_bitmap initializer.
8126 * linux-arm-low.c (the_low_target): Add .regset_bitmap
8127 initializer.
8128 * linux-bfin-low.c (the_low_target): Likewise.
8129 * linux-cris-low.c (the_low_target): Likewise.
8130 * linux-crisv32-low.c (the_low_target): Likewise.
8131 * linux-ia64-low.c (the_low_target): Likewise.
8132 * linux-m32r-low.c (the_low_target): Likewise.
8133 * linux-m68k-low.c (the_low_target): Likewise.
8134 * linux-ppc-low.c (the_low_target): Likewise.
8135 * linux-s390-low.c (the_low_target): Likewise.
8136 * linux-sh-low.c (the_low_target): Likewise.
8137 * linux-sparc-low.c (the_low_target): Likewise.
8138 * linux-tic6x-low.c (the_low_target): Likewise.
8139 * linux-x86-low.c (the_low_target): Likewise.
8140 * linux-xtensa-low.c (the_low_target): Likewise.
8141 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
8142 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
8143 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
8144 srv_xmlfiles.
8145 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
8146 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
8147
8148 2012-02-29 Yao Qi <yao@codesourcery.com>
8149 Pedro Alves <palves@redhat.com>
8150
8151 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
8152 `step_over_finished' is true.
8153
8154 2012-02-27 Pedro Alves <palves@redhat.com>
8155
8156 * linux-low.c (pid_is_stopped): Delete, moved to common/.
8157 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
8158
8159 2012-02-27 Pedro Alves <palves@redhat.com>
8160
8161 PR server/9684
8162 * linux-low.c (pid_is_stopped): New.
8163 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
8164
8165 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
8166
8167 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
8168 of conditions.
8169
8170 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8171
8172 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
8173
8174 2012-02-24 Luis Machado <lgustavo@codesourcery>
8175
8176 * server.c (handle_query): Advertise support for target-side
8177 breakpoint condition evaluation.
8178 (process_point_options): New function.
8179 (process_serial_event): When inserting a breakpoint, check for
8180 a target-side condition that should be evaluated.
8181
8182 * mem-break.c: Include regcache.h and ax.h.
8183 (point_cond_list_t): New data structure.
8184 (breakpoint) <cond_list>: New field.
8185 (find_gdb_breakpoint_at): Make non-static.
8186 (delete_gdb_breakpoint_at): Clear any target-side
8187 conditions.
8188 (clear_gdb_breakpoint_conditions): New function.
8189 (add_condition_to_breakpoint): Likewise.
8190 (add_breakpoint_condition): Likewise.
8191 (gdb_condition_true_at_breakpoint): Likewise.
8192 (gdb_breakpoint_here): Return result directly instead
8193 of going through a local variable.
8194
8195 * mem-break.h (find_gdb_breakpoint_at): New prototype.
8196 (clear_gdb_breakpoint_conditions): Likewise.
8197 (add_breakpoint_condition): Likewise.
8198 (gdb_condition_true_at_breakpoint): Likewise.
8199
8200 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
8201 (need_step_over_p): Take target-side breakpoint condition into
8202 consideration.
8203
8204 2012-02-24 Luis Machado <lgustavo@codesourcery>
8205
8206 * server.h: Include tracepoint.h.
8207 (agent_mem_read, agent_get_trace_state_variable_value,
8208 agent_set_trace_state_variable_value,
8209 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
8210 get_set_tsv_func_addr): New prototypes.
8211
8212 * ax.h: New include file.
8213 * ax.c: New source file.
8214
8215 * tracepoint.c: Include ax.h.
8216 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
8217 agent_expr, eval_result_type): Move to ax.h.
8218 (parse_agent_expr): Rename to ...
8219 (gdb_parse_agent_expr): ... this, make it non-static and move
8220 to ax.h.
8221 (unparse_agent_expr) Rename to ...
8222 (gdb_unparse_agent_expr): ... this, make it non-static and move
8223 to ax.h.
8224 (eval_agent_expr): Rename to ...
8225 (eval_tracepoint_agent_expr): ... this.
8226 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
8227 forward declarations.
8228 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
8229 (agent_get_trace_state_variable_value): New function.
8230 (agent_set_trace_state_variable_value): New function.
8231 (cmd_qtdp): Call gdb_parse_agent_expr (...).
8232 (response_tracepoint): Call gdb_unparse_agent_expr (...).
8233 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
8234 (condition_true_at_tracepoint): Likewise.
8235 (parse_agent_expr): Rename to ...
8236 (gdb_parse_agent_expr): ... this and move to ax.c.
8237 (unparse_agent_expr): Rename to ...
8238 (gdb_unparse_agent_expr): ... this and move to ax.c.
8239 (gdb_agent_op_name): Move to ax.c.
8240 (eval_agent_expr): Rename to ...
8241 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
8242 and move to ax.c.
8243 (eval_tracepoint_agent_expr): New function.
8244 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
8245 non-static.
8246 (current_insn_ptr, emit_error, struct bytecode_address): Move to
8247 ax.c.
8248 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
8249 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
8250 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
8251 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
8252 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
8253 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
8254 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
8255 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
8256 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
8257 (compile_bytecodes): Remove forward declaration.
8258 (is_goto_target): Move to ax.c.
8259 (compile_bytecodes): Move to ax.c and call
8260 agent_get_trace_state_variable_value (...) and
8261 agent_set_trace_state_variable_value (...).
8262
8263 * Makefile.in: Update ax.c and IPA dependencies.
8264
8265 2012-02-24 Pedro Alves <palves@redhat.com>
8266
8267 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
8268 (cmd_bigqtbuffer_circular): ... this. Only handle
8269 'QTBuffer:circular:'.
8270 (handle_tracepoint_general_set): Adjust.
8271
8272 2012-02-16 Yao Qi <yao@codesourcery.com>
8273
8274 * inferiors.c: Move code to ...
8275 * dll.c: .... here. New.
8276 * server.h: Declare clear_dlls.
8277 * Makefile.in (SFILES): Add dll.c.
8278 (OBS): Add dll.o
8279 (dll.o): New rule.
8280
8281 2012-02-11 Yao Qi <yao@codesourcery.com>
8282
8283 * server.c: (handle_monitor_command): Add a new parameter
8284 `own_buf'.
8285 (handle_query): Update caller.
8286
8287 2012-02-09 Joel Brobecker <brobecker@adacore.com>
8288
8289 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
8290 * configure, config.in: Regenerate.
8291 * hostio.c: Provide an alternate implementation if HAVE_READLINK
8292 is not defined.
8293
8294 2012-02-02 Pedro Alves <palves@redhat.com>
8295
8296 Try SIGKILL first, then PTRACE_KILL.
8297 * linux-low.c (linux_kill_one_lwp): New.
8298 (linux_kill_one_lwp): Rename to ...
8299 (kill_one_lwp_callback): ... this. Use the new
8300 linux_kill_one_lwp.
8301
8302 2012-02-02 Pedro Alves <palves@redhat.com>
8303
8304 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
8305 inferior.
8306
8307 2012-01-27 Pedro Alves <palves@redhat.com>
8308
8309 * linux-low.c (linux_child_pid_to_exec_file): Delete.
8310 (elf_64_file_p): Make static.
8311 (linux_pid_exe_is_elf_64_file): New.
8312 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
8313 Delete declarations.
8314 (linux_pid_exe_is_elf_64_file): Declare.
8315 * linux-x86-low.c (x86_arch_setup): Use
8316 linux_pid_exe_is_elf_64_file.
8317
8318 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8319
8320 * linux-low.c (linux_wait_for_event_1): Rename to ...
8321 (linux_wait_for_event): ... here and merge it with former
8322 linux_wait_for_event - new variable wait_ptid, use it.
8323 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
8324
8325 2012-01-23 Pedro Alves <palves@redhat.com>
8326
8327 * server.c (main): Avoid yet another case of infinite loop while
8328 detaching/killing after a longjmp.
8329
8330 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8331
8332 Code cleanup.
8333 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
8334
8335 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8336
8337 * hostio.c (handle_readlink): New function.
8338 (handle_vFile): Call it to handle "vFile:readlink" packets.
8339
8340 2012-01-20 Pedro Alves <palves@redhat.com>
8341 Ulrich Weigand <ulrich.weigand@linaro.org>
8342
8343 * server.c (handle_v_requests): Only support vAttach and vRun to
8344 start multiple processes when in extended protocol mode.
8345
8346 2012-01-17 Pedro Alves <palves@redhat.com>
8347
8348 * tracepoint.c (initialize_tracepoint): Use mmap instead of
8349 memalign plus mprotect to allocate the scratch buffer.
8350
8351 2012-01-13 Pedro Alves <palves@redhat.com>
8352
8353 * server.c (attach_inferior): Clear `cont_thread'.
8354
8355 2012-01-13 Pedro Alves <palves@redhat.com>
8356
8357 * server.c (main): Avoid infinite loop while detaching/killing
8358 after a longjmp.
8359
8360 2012-01-09 Doug Evans <dje@google.com>
8361
8362 * server.c (start_inferior): Set last_ptid in --wrapper case.
8363
8364 2012-01-06 Yao Qi <yao@codesourcery.com>
8365
8366 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
8367 defined.
8368 [IN_PROCESS_AGENT] (debug_agent): New global variable.
8369
8370 2012-01-04 Yao Qi <yao@codesourcery.com>
8371
8372 * tracepoint.c (cmd_qtdp): Print debug message
8373 for static tracepoint.
8374
8375 2012-01-04 Yao Qi <yao@codesourcery.com>
8376
8377 * tracepoint.c (trace_vdebug): Differentiate debug message
8378 between gdbserver and IPA.
8379
8380 2012-01-03 Yao Qi <yao@codesourcery.com>
8381
8382 * tracepoint.c (tracepoint_was_hit): Don't collect for
8383 static tracepoint.
8384
8385 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8386
8387 * terminal.h: Reformat copyright header.
8388
8389 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8390
8391 * server.c (gdbserver_version): Update copyright year.
8392 * gdbreplay.c (gdbreplay_version): Likewise.
8393
8394 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8395
8396 * linux-low.c (linux_create_inferior): Put empty if clause for write.
8397
8398 Revert:
8399 2011-12-18 Hui Zhu <teawater@gmail.com>
8400 * linux-low.c (linux_create_inferior): Save return value to ret.
8401
8402 2011-12-18 Hui Zhu <teawater@gmail.com>
8403
8404 * linux-low.c (linux_create_inferior): Save return value to ret.
8405
8406 2011-12-16 Doug Evans <dje@google.com>
8407
8408 * linux-low.c (linux_create_inferior): If stdio connection,
8409 redirect stdin from /dev/null, stdout to stderr.
8410 * remote-utils.c (remote_is_stdio): New static global.
8411 (remote_connection_is_stdio): New function.
8412 (remote_prepare): Handle stdio connection.
8413 (remote_open): Ditto.
8414 (remote_close): Don't close stdin for stdio connections.
8415 (read_prim,write_prim): New functions. Replace all calls to
8416 read/write to these.
8417 * server.c (main): Watch for "-" argument. Move call to
8418 remote_prepare before start_inferior.
8419 * server.h (STDIO_CONNECTION_NAME): New macro.
8420 (remote_connection_is_stdio): Declare.
8421
8422 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
8423 in debugging output.
8424
8425 2011-12-15 Yao Qi <yao@codesourcery.com>
8426
8427 * tracepoint.c: Include sys/syscall.h.
8428 (gdb_ust_thread): Remove preprocessor conditional.
8429
8430 2011-12-14 Pedro Alves <pedro@codesourcery.com>
8431
8432 * linux-low.c (linux_detach_one_lwp): Call
8433 the_low_target.prepare_to_resume before detaching.
8434
8435 2011-12-14 Yao Qi <yao@codesourcery.com>
8436
8437 * tracepoint.c (gdb_ust_thread): Don't ignore return value
8438 of write.
8439
8440 2011-12-14 Yao Qi <yao@codesourcery.com>
8441
8442 * i386-low.c (i386_low_stopped_data_address): Initialize local
8443 variable `control'.
8444
8445 2011-12-13 Pedro Alves <pedro@codesourcery.com>
8446
8447 PR remote/13492
8448
8449 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
8450 DR_CONTROL unless necessary. Extend comments.
8451 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
8452 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
8453
8454 2011-12-13 Yao Qi <yao@codesourcery.com>
8455
8456 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
8457 macros.
8458 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
8459
8460 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8461
8462 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
8463 Print new debug message for such case.
8464
8465 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8466
8467 Fix overlapping memcpy.
8468 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
8469 the read_inferior_memory transfer.
8470 (delete_fast_tracepoint_jump): New variable buf. Use it for the
8471 write_inferior_memory transfer.
8472 (set_fast_tracepoint_jump): New variable buf. Use it for the
8473 read_inferior_memory and write_inferior_memory transfers.
8474 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
8475 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
8476 Use it for the write_inferior_memory transfer.
8477 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
8478 buffers.
8479
8480 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
8481
8482 * linux-low.c (fetch_register, store_register): Make code
8483 consistent, fix formatting.
8484
8485 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
8486
8487 * linux-low.c (usr_store_inferior_registers): Factor out code
8488 to handle individual registers into...
8489 (store_register): ... this new function.
8490
8491 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
8492
8493 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
8494 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
8495 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
8496 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
8497 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
8498 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
8499 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
8500 (srv_xmlfiles): Add new XML files.
8501
8502 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
8503 and <sys/uio.h>.
8504 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
8505 (init_registers_s390_linux32v1): Add prototype.
8506 (init_registers_s390_linux32v2): Likewise.
8507 (init_registers_s390_linux64v1): Likewise.
8508 (init_registers_s390_linux64v2): Likewise.
8509 (init_registers_s390x_linux64v1): Likewise.
8510 (init_registers_s390x_linux64v2): Likewise.
8511 (s390_num_regs): Increment to 52.
8512 (s390_regmap): Add orig_r2 register.
8513 (s390_num_regs_3264): Increment to 68.
8514 (s390_regmap_3264): Add orig_r2 register.
8515 (s390_collect_ptrace_register): Handle orig_r2 register.
8516 (s390_supply_ptrace_register): Likewise.
8517 (s390_fill_last_break): New function.
8518 (s390_store_last_break): Likewise.
8519 (s390_fill_system_call): New function.
8520 (s390_store_system_call): Likewise.
8521 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
8522 register sets.
8523 (s390_check_regset): New function.
8524 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
8525 NT_S390_SYSTEM_CALL regsets and use appropriate description.
8526 Update target_regsets for available register sets.
8527
8528 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
8529 Jan Kratochvil <jan.kratochvil@redhat.com>
8530
8531 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
8532 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
8533 New.
8534 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
8535 * linux-low.h (struct process_info_private): New member r_debug.
8536 * server.c (handle_qxfer_libraries): Call
8537 the_target->qxfer_libraries_svr4.
8538 (handle_qxfer_libraries_svr4): New function.
8539 (qxfer_packets): New entry "libraries-svr4".
8540 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
8541 * target.h (struct target_ops): New member qxfer_libraries_svr4.
8542 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
8543 PACKET_qXfer_libraries_svr4.
8544
8545 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
8546
8547 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
8548 PSW address/mask between 8-byte and 16-byte formats.
8549 (s390_supply_ptrace_register): Likewise.
8550 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
8551 basic addressing mode bit.
8552
8553 2011-11-24 Stan Shebs <stan@codesourcery.com>
8554
8555 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
8556
8557 2011-11-17 Stan Shebs <stan@codesourcery.com>
8558
8559 * tracepoint.c (struct tracepoint): New field traceframe_usage.
8560 (tracing_start_time): New global.
8561 (tracing_stop_time): New global.
8562 (tracing_user_name): New global.
8563 (tracing_notes): New global.
8564 (tracing_stop_note): New global.
8565 (cmd_qtstart): Set traceframe_usage, start_time.
8566 (stop_tracing): Set stop_time.
8567 (cmd_qtstatus): Report additional status.
8568 (cmd_qtp): New function.
8569 (handle_tracepoint_query): Call it.
8570 (cmd_qtnotes): New function.
8571 (handle_tracepoint_general_set): Call it.
8572 (get_timestamp): Rename from tsv_get_timestamp.
8573
8574 2011-11-14 Stan Shebs <stan@codesourcery.com>
8575 Kwok Cheung Yeung <kcy@codesourcery.com>
8576
8577 * linux-x86-low.c (small_jump_insn): New.
8578 (i386_install_fast_tracepoint_jump_pad): Add arguments for
8579 trampoline and error message, build a trampoline and issue a small
8580 jump instruction to it.
8581 (x86_install_fast_tracepoint_jump_pad): Add arguments for
8582 trampoline and error message.
8583 (x86_get_min_fast_tracepoint_insn_len): New.
8584 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
8585 * linux-low.h (struct linux_target_ops): Add arguments to
8586 install_fast_tracepoint_jump_pad operation, add new operation.
8587 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
8588 arguments.
8589 (linux_get_min_fast_tracepoint_insn_len): New function.
8590 (linux_target_op): Add new operation.
8591 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
8592 (gdb_trampoline_buffer_end): Ditto.
8593 (gdb_trampoline_buffer_error): Ditto.
8594 (struct ipa_sym_addresses): Add fields for new IPA variables.
8595 (symbol_list): Add entries for new IPA variables.
8596 (struct tracepoint): Add fields to hold the address range of the
8597 trampoline used by the tracepoint.
8598 (trampoline_buffer_head): New static variable.
8599 (trampoline_buffer_tail): Ditto.
8600 (claim_trampoline_space): New function.
8601 (have_fast_tracepoint_trampoline_buffer): New function.
8602 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
8603 structure.
8604 (install_fast_tracepoint): Ditto, also add error buffer argument.
8605 (cmd_qtminftpilen): New function.
8606 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
8607 (fast_tracepoint_from_trampoline_address): New function.
8608 (fast_tracepoint_collecting): Handle trampoline as part of jump
8609 pad space.
8610 (set_trampoline_buffer_space): New function.
8611 (initialize_tracepoint): Initialize new IPA variables.
8612 * target.h (struct target_ops): Add arguments to
8613 install_fast_tracepoint_jump_pad operation, add new
8614 get_min_fast_tracepoint_insn_len operation.
8615 (target_get_min_fast_tracepoint_insn_len): New.
8616 (install_fast_tracepoint_jump_pad): Add arguments.
8617 * server.h (IPA_BUFSIZ): Define.
8618 * linux-i386-ipa.c: Include extra header files.
8619 (initialize_fast_tracepoint_trampoline_buffer): New function.
8620 (initialize_low_tracepoint): Call it.
8621 * server.h (set_trampoline_buffer_space): Declare.
8622 (claim_trampoline_space): Ditto.
8623 (have_fast_tracepoint_trampoline_buffer): Ditto.
8624
8625 2011-11-14 Yao Qi <yao@codesourcery.com>
8626
8627 * server.c (handle_query): Handle InstallInTrace for qSupported.
8628 * tracepoint.c (add_tracepoint): Sort list.
8629 (install_tracepoint, download_tracepoint): New.
8630 (cmd_qtdp): Call them to install and download tracepoints.
8631 (sort_tracepoints): Removed.
8632 (cmd_qtstart): Update.
8633
8634 2011-11-14 Yao Qi <yao@codesourcery.com>
8635
8636 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
8637 * mem-break.h: Declare.
8638 * tracepoint.c (cmd_qtstart): Move some code to ...
8639 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
8640 New.
8641 (download_tracepoints): Move some code to ...
8642 (download_tracepoint_1): ... here. New.
8643
8644 2011-11-08 Yao Qi <yao@codesourcery.com>
8645
8646 * remote-utils.c (relocate_instruction): A comment fix.
8647
8648 2011-11-07 Joel Brobecker <brobecker@adacore.com>
8649
8650 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
8651 (i386_dr_low_get_control, i386_dr_low_get_status): Use
8652 dr_status_mirror and dr_control_mirror from debug_reg_state.
8653 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
8654 (i386_initial_stuff): Remove use of deleted globals.
8655 (i386_get_thread_context, i386_set_thread_context,
8656 i386_thread_added): Use dr_status_mirror and dr_control_mirror
8657 from debug_reg_state.
8658
8659 2011-11-05 Yao Qi <yao@codesourcery.com>
8660
8661 * tracepoint.c (gdb_collect): Loop over tracepoints of same
8662 address as TPOINT's.
8663
8664 2011-11-02 Stan Shebs <stan@codesourcery.com>
8665
8666 * tracepoint.c (agent_mem_read_string): New function.
8667 (eval_agent_expr): Call it for tracenz.
8668 * server.c (handle_query): Report support for tracenz.
8669
8670 2011-11-02 Yao Qi <yao@codesourcery.com>
8671
8672 * tracepoint.c (cmd_qtstart): Remove unused local variables.
8673
8674 2011-11-02 Yao Qi <yao@codesourcery.com>
8675
8676 * target.h: Fix a typo in comment.
8677
8678 2011-10-31 Pedro Alves <pedro@codesourcery.com>
8679
8680 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
8681 clobber the breakpoints' shadows with fast tracepoint jumps.
8682 * mem-break.h (check_mem_write): Add `myaddr' parameter.
8683 * target.c (write_inferior_memory): Also pass MYADDR down to
8684 check_mem_write.
8685
8686 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
8687
8688 * configure.ac: Check support for personality routine.
8689 * configure: Regenerate.
8690 * config.in: Likewise.
8691 * linux-low.c: Include <sys/personality.h>.
8692 Define ADDR_NO_RANDOMIZE if necessary.
8693 (linux_create_inferior): Disable address space randomization when
8694 forking inferior, if requested.
8695 (linux_supports_disable_randomization): New function.
8696 (linux_target_ops): Install it.
8697 * server.h (disable_randomization): Declare.
8698 * server.c (disable_randomization): New global variable.
8699 (handle_general_set): Handle QDisableRandomization.
8700 (handle_query): Likewise for qSupported.
8701 (main): Support --disable-randomization and --no-disable-randomization
8702 command line arguments.
8703 * target.h (struct target_ops): Add supports_disable_randomization.
8704 (target_supports_disable_randomization): New macro.
8705
8706 2011-09-29 Mike Frysinger <vapier@gentoo.org>
8707
8708 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
8709 ifdef check.
8710 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
8711 [!PT_GETDSBT] (target_loadmap): New definition.
8712 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
8713 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
8714 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
8715 and PT_GETDSBT to LINUX_LOADMAP.
8716 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
8717 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
8718
8719 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8720
8721 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
8722 (arm_linux_hwbp_cap): New static variable.
8723 (arm_linux_get_hwbp_cap): Replace by ...
8724 (arm_linux_init_hwbp_cap): ... this new function.
8725 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
8726 (arm_linux_get_hw_watchpoint_count): Likewise.
8727 (arm_linux_get_hw_watchpoint_max_length): Likewise.
8728 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
8729 (arm_prepare_to_resume): Use perror_with_name instead of error.
8730
8731 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8732
8733 * linux-arm-low.c: Include <signal.h>.
8734 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
8735 (struct arm_linux_hwbp_cap): New data type.
8736 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
8737 (struct arm_linux_hw_breakpoint): New data type.
8738 (MAX_BPTS, MAX_WPTS): Define.
8739 (struct arch_process_info, struct arch_lwp_info): New data types.
8740 (arm_linux_get_hwbp_cap): New function.
8741 (arm_linux_get_hw_breakpoint_count): Likewise.
8742 (arm_linux_get_hw_watchpoint_count): Likewise.
8743 (arm_linux_get_hw_watchpoint_max_length): Likewise.
8744 (arm_hwbp_control_initialize): Likewise.
8745 (arm_hwbp_control_is_enabled): Likewise.
8746 (arm_hwbp_control_is_initialized): Likewise.
8747 (arm_hwbp_control_disable): Likewise.
8748 (arm_linux_hw_breakpoint_equal): Likewise.
8749 (arm_linux_hw_point_initialize): Likewise.
8750 (struct update_registers_data): New data structure.
8751 (update_registers_callback: New function.
8752 (arm_insert_point): Likewise.
8753 (arm_remove_point): Likewise.
8754 (arm_stopped_by_watchpoint): Likewise.
8755 (arm_stopped_data_address): Likewise.
8756 (arm_new_process): Likewise.
8757 (arm_new_thread): Likewise.
8758 (arm_prepare_to_resume): Likewise.
8759 (the_low_target): Register arm_insert_point, arm_remove_point,
8760 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
8761 arm_new_thread, and arm_prepare_to_resume.
8762
8763 2011-09-15 Stan Shebs <stan@codesourcery.com>
8764
8765 * server.h (struct emit_ops): Add compare-goto fields.
8766 * tracepoint.c (gdb_agent_op_sizes): New table.
8767 (emit_eq_goto): New function.
8768 (emit_ne_goto): New function.
8769 (emit_lt_goto): New function.
8770 (emit_le_goto): New function.
8771 (emit_gt_goto): New function.
8772 (emit_ge_goto): New function.
8773 (is_goto_target): New function.
8774 (compile_bytecodes): Recognize special cases of compare-goto
8775 combinations and call specialized emitters for them.
8776 * linux-x86-low.c (amd64_emit_eq_goto): New function.
8777 (amd64_emit_ne_goto): New function.
8778 (amd64_emit_lt_goto): New function.
8779 (amd64_emit_le_goto): New function.
8780 (amd64_emit_gt_goto): New function.
8781 (amd64_emit_ge_goto): New function.
8782 (amd64_emit_ops): Add the new functions.
8783 (i386_emit_eq_goto): New function.
8784 (i386_emit_ne_goto): New function.
8785 (i386_emit_lt_goto): New function.
8786 (i386_emit_le_goto): New function.
8787 (i386_emit_gt_goto): New function.
8788 (i386_emit_ge_goto): New function.
8789 (i386_emit_ops): Add the new functions.
8790
8791 2011-09-08 Stan Shebs <stan@codesourcery.com>
8792
8793 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
8794 (i386_emit_epilogue): Restore %ebx.
8795
8796 2011-08-31 Jie Zhang <jzhang918@gmail.com>
8797
8798 * server.c (step_thread): Remove definition.
8799 (process_serial_event): Don't handle Hs.
8800 * server.h (step_thread): Remove declaration.
8801 * target.c (set_desired_inferior): Remove use of step_thread.
8802
8803 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
8804
8805 * linux-low.c: Include linux-procfs.h.
8806 (linux_attach_lwp_1): Update comments.
8807 (linux_attach): Scan for existing threads when attaching to a
8808 process that is the tgid.
8809 * Makefile.in: Update dependencies.
8810
8811 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
8812
8813 * configure.srv: Add linux-procfs.o dependencies.
8814
8815 2011-08-14 Yao Qi <yao@codesourcery.com>
8816
8817 * target.h (struct target_ops): Fix indent.
8818 * win32-low.c (win32_target_ops): Fix comment.
8819
8820 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
8821 Yao Qi <yao@codesourcery.com>
8822
8823 * Makefile.in (clean): Remove tic6x-*.c files.
8824 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
8825 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
8826 (tic6x-c64xp-linux.c): Likewise.
8827 * configure.srv: Add support for tic6x-*-uclinux.
8828 * linux-tic6x-low.c: New.
8829 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
8830
8831 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
8832 Yao Qi <yao@codesourcery.com>
8833
8834 * target.h (struct target_ops): Add read_loadmap.
8835 * linux-low.c (struct target_loadseg): New type.
8836 (struct target_loadmap): New type.
8837 (linux_read_loadmap): New function.
8838 (linux_target_ops): Add linux_read_loadmap.
8839 * server.c (handle_query): Support qXfer:fdpic:read packet.
8840 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
8841 to NULL.
8842
8843 2011-08-05 Eli Zaretskii <eliz@gnu.org>
8844
8845 * win32-low.c: Include <stdint.h>.
8846
8847 2011-07-22 Pedro Alves <pedro@codesourcery.com>
8848
8849 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
8850 to the inferior here.
8851 (i386_remove_aligned_watchpoint): Ditto.
8852 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
8853 fit part of the watchpoint in the debug registers.
8854 (i386_update_inferior_debug_regs): New.
8855 (i386_low_insert_watchpoint): Work on a local mirror of the debug
8856 registers, and only update the inferior on success.
8857 (i386_low_remove_watchpoint): Ditto.
8858
8859 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
8860
8861 * linux-low.c (compare_ints, unique, list_threads, show_process,
8862 linux_core_of_thread): Delete.
8863 (linux_target_ops): Change linux_core_of_thread to
8864 linux_common_core_of_thread.
8865 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
8866 * utils.c (malloc_failure): Change type of argument.
8867 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
8868 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
8869 common/linux-osdata.c, common/ptid.c and common/buffer.c.
8870 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
8871 (IPA_OBJS): Add common-utils-ipa.o.
8872 (ptid_h, linux_osdata_h): New macros.
8873 (server_h): Add common/common-utils.h, common/xml-utils.h,
8874 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
8875 common/ptid.h.
8876 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
8877 ptid.o, buffer.o): New rules.
8878 (linux-low.o): Add common/linux-osdata.h as a dependency.
8879 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
8880 * configure.ac: Add AC_HEADER_DIRENT check.
8881 * config.in: Regenerate.
8882 * configure: Regenerate.
8883 * remote-utils.c (xml_escape_text): Delete.
8884 (buffer_grow, buffer_free, buffer_init, buffer_finish,
8885 buffer_xml_printf): Move to common/buffer.c.
8886 * server.c (main): Remove call to initialize_inferiors.
8887 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
8888 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
8889 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
8890 internal_error, gdb_assert, gdb_assert_fail): Delete.
8891 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
8892 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
8893 common/buffer.h.
8894 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
8895 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
8896 initialize_inferiors): Delete.
8897
8898 2011-07-20 Pedro Alves <pedro@codesourcery.com>
8899
8900 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
8901 symbol error.
8902
8903 2011-05-31 Pedro Alves <pedro@codesourcery.com>
8904
8905 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
8906 assertion.
8907 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
8908
8909 2011-05-26 Yao Qi <yao@codesourcery.com>
8910
8911 * Makefile.in (thread-db.o): Track dependence to
8912 common/gdb_thread_db.h.
8913 * thread-db.c: include gdb_thread_db.h from right place.
8914
8915 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
8916
8917 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
8918 __FILE__ and __LINE__ to internal_error.
8919
8920 2011-05-13 Doug Evans <dje@google.com>
8921
8922 * thread-db.c (try_thread_db_load_from_sdir): New function.
8923 (try_thread_db_load_from_dir): New function.
8924 (thread_db_load_search): Handle $sdir, ignore $pdir.
8925 Remove trying of system directories if search of
8926 libthread-db-search-path fails, that is now done via $sdir.
8927
8928 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
8929
8930 * server.c (handle_query): Add EnableDisableTracepoints to the list
8931 of supported features.
8932 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
8933 tracepoints.
8934 (cmd_qtenable_disable): New.
8935 (cmd_qtstart): Install tracepoints even if disabled.
8936 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
8937 receiving a QTEnable or QTDisable packet.
8938 (gdb_collect): Skip data collection if fast tracepoint is disabled.
8939 (ust_marker_to_static_tracepoint): Do not ignore disabled static
8940 tracepoints.
8941 (gdb_probe): Skip data collection if static tracepoint is disabled.
8942
8943 2011-05-10 Doug Evans <dje@google.com>
8944
8945 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
8946
8947 2011-05-04 Doug Evans <dje@google.com>
8948
8949 * linux-low.c (linux_join): Skip process lookup.
8950 * spu-low.c (spu_join): Ditto.
8951 * server.c (join_inferiors_callback): Delete.
8952 (process_serial_event): For 'D' packet (detach) call join_inferior
8953 directly.
8954
8955 2011-05-04 Joseph Myers <joseph@codesourcery.com>
8956
8957 * README: Don't mention xscale*-*-linux*.
8958 * configure.srv (xscale*-*-linux*): Don't handle target.
8959
8960 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
8961
8962 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
8963 casting pointers.
8964 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
8965 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
8966 (i386_emit_void_call_2): Likewise.
8967
8968 2011-04-26 Yao Qi <yao@codesourcery.com>
8969
8970 * linux-low.c: Move common macros to linux-ptrace.h.
8971 Include linux-ptrace.h.
8972 * Makefile.in (linux_ptrace_h): New.
8973 (linux-low.o): Depends on linux-ptrace.h.
8974
8975 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8976
8977 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
8978 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
8979 (remote_prepare): New function with most of the TCP code from ...
8980 (remote_open): ... here. Detect PORT here unconditionally. Move also
8981 setting transport_is_reliable.
8982 * server.c (run_once): New variable.
8983 (gdbserver_usage): Document it.
8984 (main): Set run_once for `--once'. Call remote_prepare. Exit after
8985 the first run if RUN_ONCE.
8986 * server.h (run_once, remote_prepare): New declarations.
8987
8988 2011-04-19 Tom Tromey <tromey@redhat.com>
8989
8990 * win32-low.c (handle_load_dll): Remove duplicate "the".
8991
8992 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
8993
8994 Remove support for old Cygwin 1.5 versions.
8995 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
8996 function to avoid warning.
8997 (win32_add_one_solib): Use cygwin_conv_path function to avoid
8998 warning.
8999
9000 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
9001
9002 * gdbserver/server.h (Macro _): Define it if not available.
9003
9004 2011-03-14 Michael Snyder <msnyder@vmware.com>
9005
9006 * hostio.c (handle_close): Remove unnecessary null test.
9007
9008 2011-03-10 Joel Brobecker <brobecker@adacore.com>
9009
9010 * Makefile.in (maintainer-clean realclean distclean): Remove
9011 "make ... subdir_do" command.
9012
9013 2011-03-10 Michael Snyder <msnyder@vmware.com>
9014
9015 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
9016
9017 * server.c (handle_v_run): Free alloced buffer on early return.
9018
9019 2011-03-09 Yao Qi <yao@codesourcery.com>
9020
9021 Revert:
9022 2011-03-04 Yao Qi <yao@codesourcery.com>
9023
9024 * Makefile.in: Remove GNU make feature --directory.
9025
9026 2011-03-05 Yao Qi <yao@codesourcery.com>
9027
9028 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
9029 (subdir_do): New make target. Copied from gdb/Makefile.
9030 (maintainer-clean, realclean, distclean, clean): Call corresponding
9031 make targets in common/Makefile.
9032
9033 2011-02-11 Yao Qi <yao@codesourcery.com>
9034
9035 * configure.ac: Call AC_PROG_RANLIB.
9036 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
9037 * configure: Regenerate.
9038
9039 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
9040
9041 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
9042
9043 2011-03-06 Yao Qi <yao@codesourcery.com>
9044
9045 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
9046
9047 2011-03-05 Yao Qi <yao@codesourcery.com>
9048
9049 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
9050 (subdir_do): New make target. Copied from gdb/Makefile.
9051 (maintainer-clean, realclean, distclean, clean): Call corresponding
9052 make targets in common/Makefile.
9053
9054 2011-03-04 Yao Qi <yao@codesourcery.com>
9055
9056 * Makefile.in: Remove GNU make feature --directory.
9057
9058 2011-03-04 Michael Snyder <msnyder@vmware.com>
9059
9060 * server.c (queue_stop_reply): Call xmalloc not malloc.
9061
9062 2011-03-02 Michael Snyder <msnyder@vmware.com>
9063
9064 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
9065
9066 2011-02-28 Michael Snyder <msnyder@vmware.com>
9067
9068 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
9069 (cmd_qtframe): Ditto.
9070 (cmd_qtbuffer): Ditto.
9071 (cmd_bigqtbuffer): Ditto.
9072
9073 * utils.c (decimal2str): Initialize 'width' to nine, then
9074 don't mess with it.
9075
9076 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9077
9078 * hostio.c (require_data): Free *data, not data.
9079
9080 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9081
9082 * hostio.c (require_data): Use free, not xfree.
9083
9084 2011-02-27 Michael Snyder <msnyder@vmware.com>
9085
9086 * server.c (handle_query): Discard unused value.
9087
9088 * hostio.c (require_data): Free malloc memory before returning
9089 error.
9090
9091 2011-02-26 Michael Snyder <msnyder@vmware.com>
9092
9093 * linux-low.c (list_threads): Call closedir for dirent.
9094
9095 2011-02-27 Michael Snyder <msnyder@vmware.com>
9096
9097 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
9098 a case statement falls through.
9099
9100 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
9101
9102 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
9103 in comparison.
9104
9105 2011-02-26 Michael Snyder <msnyder@vmware.com>
9106
9107 * utils.c (decimal2str): Eliminate dead code and dead param.
9108 (pulongest): Drop dead param from call to decimal2str.
9109 (plongest): Ditto.
9110
9111 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9112
9113 Revert the following patch (not approved yet):
9114 2011-02-21 Hui Zhu <teawater@gmail.com>
9115 * tracepoint.c (tp_printf): New function.
9116 (eval_agent_expr): Handle gdb_agent_op_printf.
9117
9118 2011-02-21 Hui Zhu <teawater@gmail.com>
9119
9120 * tracepoint.c (tp_printf): New function.
9121 (eval_agent_expr): Handle gdb_agent_op_printf.
9122
9123 2011-02-18 Tom Tromey <tromey@redhat.com>
9124
9125 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
9126 (tracepoint.o): Likewise.
9127 * tracepoint.c (enum gdb_agent_op): Use ax.def.
9128 (gdb_agent_op_names): Likewise.
9129
9130 2011-02-18 Tom Tromey <tromey@redhat.com>
9131
9132 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
9133 gdb_agent_op_rot>: New constants.
9134 (gdb_agent_op_names): Add pick and roll.
9135 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
9136 cases.
9137
9138 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9139
9140 * aclocal.m4: Regenerated with aclocal-1.11.1.
9141
9142 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9143
9144 * server.c (handle_qxfer_traceframe_info): New.
9145 (qxfer_packets): Register "traceframe-info".
9146 (handle_query): Report support for qXfer:traceframe-info:read+.
9147 * tracepoint.c (match_blocktype): New.
9148 (traceframe_find_block_type): Rename to ...
9149 (traceframe_walk_blocks): ... this. Add callback filter argument,
9150 and use it.
9151 (traceframe_find_block_type): New, reimplemented on top of
9152 traceframe_walk_blocks.
9153 (build_traceframe_info_xml): New.
9154 (traceframe_read_info): New.
9155 * server.h (traceframe_read_info): Declare.
9156
9157 2011-02-11 Yao Qi <yao@codesourcery.com>
9158
9159 * configure.ac: Call AC_PROG_RANLIB.
9160 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
9161 * configure: Regenerate.
9162
9163 2011-02-07 Pedro Alves <pedro@codesourcery.com>
9164
9165 * server.c (gdb_read_memory): Change return semantics to allow
9166 partial transfers.
9167 (handle_search_memory_1): Adjust.
9168 (process_serial_event) <'m' packet>: Handle partial transfers.
9169 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
9170
9171 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9172
9173 * regcache.c (init_register_cache): Initialize
9174 regcache->register_status.
9175 (free_register_cache): Release regcache->register_status.
9176 (regcache_cpy): Copy register_status.
9177 (registers_to_string): Print 'x's for unavailable registers.
9178 (supply_register): Mark the register's status valid or
9179 unavailable, depending on whether a buffer was passed in or not.
9180 (supply_register_zeroed): New.
9181 (supply_regblock): Mark the registers' status valid or
9182 unavailable, depending on whether a buffer was passed in or not.
9183 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
9184 (struct regcache): New `register_status' field.
9185 (supply_register_zeroed): Declare.
9186 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
9187 supply_register_zeroed, rather than passing a NULL buffer to
9188 supply_register.
9189 * tracepoint.c (fetch_traceframe_registers): Update comment.
9190
9191 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9192
9193 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
9194 buffer explicit.
9195
9196 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9197
9198 * server.h (decode_xfer_write): Change prototype.
9199 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
9200 and don't extract the annex here.
9201 * server.c (decode_xfer_read): Remove `annex' parameter,
9202 and don't extract the annex here.
9203 (decode_xfer): New.
9204 (struct qxfer): New.
9205 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
9206 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
9207 (handle_qxfer_statictrace): New functions, abstracted out from
9208 handle_query, and made to use the struct qxfer interface.
9209 (handle_threads_qxfer_proper): Rename to ...
9210 (handle_qxfer_threads_proper): ... this.
9211 (handle_threads_qxfer): Rename to ...
9212 (handle_qxfer_threads): ... this. Adjust.
9213 (qxfer_packets): New array.
9214 (handle_qxfer): New function.
9215 (handle_query): Use handle_qxfer.
9216
9217 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9218
9219 * gdbreplay.c: Shorten lines of >= 80 columns.
9220 * linux-low.c: Ditto.
9221 * linux-ppc-low.c: Ditto.
9222 * linux-s390-low.c: Ditto.
9223 * linux-sparc-low.c: Ditto.
9224 * linux-x86-low.c: Ditto.
9225 * linux-xtensa-low.c: Ditto.
9226 * mem-break.c: Ditto.
9227 * nto-low.c: Ditto.
9228 * regcache.h: Ditto.
9229 * remote-utils.c: Ditto.
9230 * server.c: Ditto.
9231 * server.h: Ditto.
9232 * thread-db.c: Ditto.
9233 * tracepoint.c: Ditto.
9234 * utils.c: Ditto.
9235 * win32-low.h: Ditto.
9236
9237 2011-01-05 Joel Brobecker <brobecker@adacore.com>
9238
9239 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
9240 update.
9241
9242 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9243
9244 * server.c (gdbserver_version): Update copyright year in version
9245 output.
9246 * gdbreplay.c (gdbreplay_version): Ditto.
9247
9248 2010-12-29 Jie Zhang <jie.zhang@analog.com>
9249
9250 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
9251 * linux-bfin-low.c: New file.
9252 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
9253 PT_DATA_ADDR for BFIN targets.
9254 * Makefile.in (SFILES): Add linux-bfin-low.c.
9255 (clean): Remove reg-bfin.c.
9256 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
9257 * README: Mention supported Blackfin targets.
9258
9259 2010-12-23 Mike Frysinger <vapier@gentoo.org>
9260
9261 * .gitignore: New file.
9262
9263 2010-11-16 Mike Frysinger <vapier@gentoo.org>
9264
9265 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
9266
9267 2010-10-22 Jie Zhang <jie@codesourcery.com>
9268
9269 * Makefile.in: Add FLAGS_TO_PASS variable.
9270 (install): Remove dependency of install-only and recursively
9271 invoke make for install-only.
9272
9273 2010-10-04 Doug Evans <dje@google.com>
9274
9275 * Makefile.in (uninstall): Use $(DESTDIR).
9276
9277 2010-09-24 Pedro Alves <pedro@codesourcery.com>
9278
9279 PR gdb/11842
9280
9281 * linux-x86-low.c (compat_siginfo_from_siginfo)
9282 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
9283 si_code is < 0. Check for si_code == SI_TIMER before checking for
9284 si_code < 0.
9285
9286 2010-09-13 Joel Brobecker <brobecker@adacore.com>
9287
9288 * lynx-i386-low.c: New file.
9289 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
9290
9291 2010-09-13 Joel Brobecker <brobecker@adacore.com>
9292
9293 * lynx-low.c (ptrace_request_to_str): Remove handling for
9294 request values that have been removed in LynxOS 5.x.
9295
9296 2010-09-13 Joel Brobecker <brobecker@adacore.com>
9297
9298 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
9299 <ptrace.h>
9300
9301 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
9302
9303 * configure.ac: Add --enable-inprocess-agent option.
9304 * configure: Rebuilt.
9305
9306 2010-09-06 Yao Qi <yao@codesourcery.com>
9307
9308 * linux-low.c (linux_kill): Remove unused variable.
9309 (linux_stabilize_threads): Likewise.
9310 * server.c (start_inferior): Likewise.
9311 (queue_stop_reply_callback): Likewise.
9312 * tracepoint.c (do_action_at_tracepoint): Likewise.
9313
9314 2010-09-06 Yao Qi <yao@codesourcery.com>
9315
9316 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
9317 on return.
9318
9319 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9320
9321 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
9322
9323 2010-09-06 Pedro Alves <pedro@codesourcery.com>
9324
9325 * Makefile.in (install-only): Replace $IPA_DEPFILES with
9326 "$(IPA_DEPFILES)".
9327
9328 2010-09-01 Joel Brobecker <brobecker@adacore.com>
9329
9330 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
9331 gdbserver/lynx-ppc-low.c: New files.
9332 * Makefile.in (lynx_low_h): New variable.
9333 (lynx-low.o, lynx-ppc-low.o): New rules.
9334 * configure.ac: On LynxOS, link with -lnetinet.
9335 * configure.srv: Add handling of powerpc-*-lynxos* targets.
9336 * configure: regenerate.
9337
9338 2010-09-01 Joel Brobecker <brobecker@adacore.com>
9339
9340 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
9341 * configure.ac: Add check for vasprintf and vsnprintf.
9342 * configure, config.in: Regenerate.
9343 * server.h (vasprintf, vsnprintf): Add conditional declarations.
9344
9345 2010-09-01 Joel Brobecker <brobecker@adacore.com>
9346
9347 * gdbreplay.c: Move include of alloca.h up, next to include of
9348 malloc.h.
9349 * server.h: Add include of malloc.h.
9350 * mem-break.c: Remove include of malloc.h.
9351 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
9352
9353 2010-09-01 Joel Brobecker <brobecker@adacore.com>
9354
9355 * Makefile.in (memmem.o): Build with -Wno-error.
9356
9357 2010-09-01 Joel Brobecker <brobecker@adacore.com>
9358
9359 * utils.c (xsnprintf): Make non-static.
9360 * server.h: Add xsnprintf declaration.
9361 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
9362 replace calls to snprintf by calls to xsnprintf throughout.
9363
9364 2010-09-01 Joel Brobecker <brobecker@adacore.com>
9365
9366 * configure.ac: Add configure check for alloca.
9367 * configure, config.in: Regenerate.
9368 * server.h: Include alloca.h if it exists.
9369 * gdbreplay.c: Include alloca.h if it exists.
9370
9371 2010-08-28 Pedro Alves <pedro@codesourcery.com>
9372
9373 * linux-low.c (__SIGRTMIN): Define if not already defined.
9374 (linux_create_inferior): Check for __ANDROID__ rather than
9375 __SIGRTMIN.
9376 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
9377 are already deferred.
9378 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
9379 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
9380 stopped and already has a pending signal to report.
9381 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
9382 a pending signal to report or is moving out of a jump pad.
9383 (linux_init_signals): Check for __ANDROID__ rather than
9384 __SIGRTMIN.
9385
9386 2010-08-28 Pedro Alves <pedro@codesourcery.com>
9387
9388 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
9389 debug_threads check. Avoid a linear search when not doing debug
9390 output.
9391
9392 2010-08-27 Pedro Alves <pedro@codesourcery.com>
9393
9394 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
9395 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
9396 (struct file_handler) <fd>: Change type to gdb_fildes_t.
9397 (process_event): Change local fd's type to gdb_fildes_t.
9398 (create_file_handler): Adjust prototype.
9399 (delete_file_handler): Adjust prototype.
9400 (handle_file_event): Adjust prototype. Use pfildes.
9401 (create_file_event): Adjsut prototype.
9402 * remote-utils.c (remote_desc, listen_desc): Change type to
9403 gdb_fildes_t.
9404 * server.h: New gdb_fildes_t typedef.
9405 [USE_WIN32API]: Include winsock2.h.
9406 (delete_file_handler, add_file_handler): Adjust prototypes.
9407 (pfildes): Declare.
9408 * utils.c (pfildes): New.
9409
9410 2010-08-27 Pedro Alves <pedro@codesourcery.com>
9411
9412 * configure.ac (build_warnings): Add -Wno-char-subscripts.
9413 * configure: Regenerate.
9414
9415 2010-08-27 Pedro Alves <pedro@codesourcery.com>
9416
9417 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
9418 (linux_done_accessing_memory): ... this.
9419 (linux_target_ops): Adjust.
9420 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
9421 * nto-low.c (nto_target_ops): Adjust comment.
9422 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
9423 * spu-low.c (spu_target_ops): Adjust comment.
9424 * target.h (target_ops): Rename unprepare_to_access_memory field
9425 to done_accessing_memory.
9426 (unprepare_to_access_memory): Rename to ...
9427 (done_accessing_memory): ... this.
9428
9429 2010-08-26 Pedro Alves <pedro@codesourcery.com>
9430
9431 * linux-low.c (linux_prepare_to_access_memory): New.
9432 (linux_unprepare_to_access_memory): New.
9433 (linux_target_ops): Install them.
9434 * server.c (read_memory): Rename to ...
9435 (gdb_read_memory): ... this. Use
9436 prepare_to_access_memory/prepare_to_access_memory.
9437 (write_memory): Rename to ...
9438 (gdb_write_memory): ... this. Use
9439 prepare_to_access_memory/prepare_to_access_memory.
9440 (handle_search_memory_1): Adjust.
9441 (process_serial_event): Adjust.
9442 * target.h (struct target_ops): New fields
9443 prepare_to_access_memory and unprepare_to_access_memory.
9444 (prepare_to_access_memory, unprepare_to_access_memory): New.
9445 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
9446 prepare_to_access_memory/prepare_to_access_memory.
9447 * nto-low.c (nto_target_ops): Adjust.
9448 * spu-low.c (spu_target_ops): Adjust.
9449 * win32-low.c (win32_target_ops): Adjust.
9450
9451 2010-08-26 Pedro Alves <pedro@codesourcery.com>
9452
9453 * Makefile.in (WARN_CFLAGS): Get it from configure.
9454 (WERROR_CFLAGS): New.
9455 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
9456 * configure.ac: Introduce --enable-werror, which adds -Werror to
9457 the compiler command line. Enabled by default. Disable with
9458 --disable-werror. Add -Wdeclaration-after-statement
9459 Wpointer-arith and -Wformat-nonliteral to warning flags.
9460 * configure: Regenerate.
9461
9462 2010-08-26 Pedro Alves <pedro@codesourcery.com>
9463
9464 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
9465
9466 2010-08-26 Pedro Alves <pedro@codesourcery.com>
9467
9468 * gdbreplay.c (remote_error): New.
9469 (gdbchar): New.
9470 (expect): Use gdbchar. Check for error reading from GDB.
9471 Clarify sync error output.
9472 (play): Check for errors writing to GDB.
9473 * linux-low.c (sigchld_handler): Really ignore `write' errors.
9474 * remote-utils.c (getpkt): Check for errors writing to the remote
9475 descriptor.
9476
9477 2010-08-25 Pedro Alves <pedro@codesourcery.com>
9478
9479 * linux-low.c (linux_wait_1): Move non-debugging code out of
9480 `debug_threads' control.
9481
9482 2010-08-25 Pedro Alves <pedro@codesourcery.com>
9483
9484 * linux-low.c (linux_wait_1): Don't set last_status here.
9485 * server.c (push_event, queue_stop_reply_callback): Assert we're
9486 not pushing a TARGET_WAITKIND_IGNORE event.
9487 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
9488 (myresume, handle_target_event): Set the thread's last_resume_kind
9489 and last_status from the target returned status.
9490
9491 2010-08-25 Pedro Alves <pedro@codesourcery.com>
9492
9493 PR threads/10729
9494
9495 * linux-x86-low.c (update_debug_registers_callback): New.
9496 (i386_dr_low_set_addr): Use it.
9497 (i386_dr_low_get_addr): New.
9498 (i386_dr_low_set_control): Use update_debug_registers_callback.
9499 (i386_dr_low_get_control): New.
9500 (i386_dr_low_get_status): Adjust.
9501 * linux-low.c (linux_stop_lwp): New.
9502 * linux-low.h (linux_stop_lwp): Declare.
9503
9504 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
9505 argument instead of a i386_debug_reg_state.
9506 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
9507 a i386_debug_reg_state.
9508 (i386_insert_aligned_watchpoint): Adjust.
9509 (i386_remove_aligned_watchpoint): Adjust.
9510 (i386_low_stopped_data_address): Read the debug registers from the
9511 inferior instead of from the mirrors.
9512 * i386-low.h (struct i386_debug_reg_state): Extend comment.
9513 (i386_dr_low_get_addr): Declare.
9514 (i386_dr_low_get_control): Declare.
9515 (i386_dr_low_get_status): Change prototype.
9516
9517 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
9518 (i386_dr_low_get_addr): New.
9519 (i386_dr_low_get_control): New.
9520 (i386_dr_low_get_status): Adjust prototype. Return
9521 dr_status_mirror.
9522 (i386_initial_stuff): Clear dr_status_mirror and
9523 dr_control_mirror.
9524 (i386_get_thread_context): Adjust.
9525 (i386_set_thread_context): Adjust.
9526 (i386_thread_added): Adjust.
9527
9528 2010-08-24 Pedro Alves <pedro@codesourcery.com>
9529
9530 * linux-low.h (linux_thread_area): Delete declaration.
9531
9532 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
9533
9534 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
9535 after its termination.
9536
9537 2010-08-09 Pedro Alves <pedro@codesourcery.com>
9538
9539 * linux-low.c (gdb_wants_lwp_stopped): Delete.
9540 (gdb_wants_all_stopped): Delete.
9541 (linux_wait_1): Don't call them.
9542 * server.c (handle_v_cont): Tag all threads as want-stopped.
9543 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
9544 stopped as "client-wants-stopped".
9545
9546 2010-07-31 Pedro Alves <pedro@codesourcery.com>
9547
9548 * Makefile.in (signals_h): New.
9549 (server_h): Depend on it.
9550 (server.o): Don't depend on $(signals_def).
9551 (signals.o): Depend on $(signals_def).
9552
9553 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
9554
9555 * Makefile.in (signals_def): New.
9556 (server_h): Append include/gdb/signals.h and signals_def.
9557 (server.o): Append signals_def.
9558
9559 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9560
9561 * server.c (handle_target_event): Use target_signal_to_host for
9562 resume_info.sig initialization.
9563 * target.h (struct thread_resume) <sig>: New comment.
9564
9565 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
9566
9567 * server.c (handle_query): strcpy() the returned string from paddress()
9568 instead of sprintf().
9569 * utils.c (paddress): Return phex_nz().
9570
9571 2010-07-07 Joel Brobecker <brobecker@adacore.com>
9572
9573 * server.c (handle_v_cont): Call mourn_inferior if process
9574 just exited.
9575 (myresume): Likewise.
9576
9577 2010-07-01 Pedro Alves <pedro@codesourcery.com>
9578
9579 Static tracepoints, and integration with UST.
9580
9581 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
9582 * mem-break.c (uninsert_all_breakpoints)
9583 (reinsert_all_breakpoints): New.
9584 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
9585 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
9586 (gdb_agent_ust_loaded, helper_thread_id)
9587 (gdb_agent_helper_thread_id): New macros.
9588 (struct ipa_sym_addresses): Add addr_ust_loaded,
9589 addr_helper_thread_id, addr_cmd_buf.
9590 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
9591 (in_process_agent_loaded_ust): New.
9592 (write_e_ust_not_loaded): New.
9593 (maybe_write_ipa_ust_not_loaded): New.
9594 (struct collect_static_trace_data_action): New.
9595 (enum tracepoint_type) <static_tracepoint>: New.
9596 (struct tracepoint) <handle>: Mention static tracepoints.
9597 (struct static_tracepoint_ctx): New.
9598 (CMD_BUF_SIZE): New.
9599 (add_tracepoint_action): Handle static tracepoint actions.
9600 (unprobe_marker_at): New.
9601 (clear_installed_tracepoints): Handle static tracepoints.
9602 (cmd_qtdp): Handle static tracepoints.
9603 (probe_marker_at): New.
9604 (cmd_qtstart): Handle static tracepoints.
9605 (response_tracepoint): Handle static tracepoints.
9606 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
9607 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
9608 (get_context_regcache): Handle static tracepoints.
9609 (do_action_at_tracepoint): Handle static tracepoint actions.
9610 (traceframe_find_block_type): Handle static trace data blocks.
9611 (traceframe_read_sdata): New.
9612 (download_tracepoints): Download static tracepoint actions.
9613 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
9614 (GDB_PROBE_NAME): New.
9615 (ust_ops): New.
9616 (GET_UST_SYM): New.
9617 (USTF): New.
9618 (dlsym_ust): New.
9619 (ust_marker_to_static_tracepoint): New.
9620 (gdb_probe): New.
9621 (collect_ust_data_at_tracepoint): New.
9622 (gdb_ust_probe): New.
9623 (UNIX_PATH_MAX, SOCK_DIR): New.
9624 (gdb_ust_connect_sync_socket): New.
9625 (resume_thread, stop_thread): New.
9626 (run_inferior_command): New.
9627 (init_named_socket): New.
9628 (gdb_ust_socket_init): New.
9629 (cstr_to_hexstr): New.
9630 (next_st): New.
9631 (first_marker, next_marker): New.
9632 (response_ust_marker): New.
9633 (cmd_qtfstm, cmd_qtsstm): New.
9634 (unprobe_marker_at, probe_marker_at): New.
9635 (cmd_qtstmat, gdb_ust_thread): New.
9636 (gdb_ust_init): New.
9637 (initialize_tracepoint_ftlib): Call gdb_ust_init.
9638 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
9639 (ST_REGENTRY): New.
9640 (x86_64_st_collect_regmap): New.
9641 (X86_64_NUM_ST_COLLECT_GREGS): New.
9642 (AMD64_RIP_REGNUM): New.
9643 (supply_static_tracepoint_registers): New.
9644 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
9645 (ST_REGENTRY): New.
9646 (i386_st_collect_regmap): New.
9647 (i386_NUM_ST_COLLECT_GREGS): New.
9648 (supply_static_tracepoint_registers): New.
9649 * server.c (handle_query): Handle qXfer:statictrace:read.
9650 <qSupported>: Report support for StaticTracepoints, and
9651 qXfer:statictrace:read features.
9652 * server.h (traceframe_read_sdata)
9653 (supply_static_tracepoint_registers): Declare.
9654 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
9655 (unpack_varlen_hex): Include in IPA build.
9656 * Makefile.in (ustlibs, ustinc): New.
9657 (IPA_OBJS): Add remote-utils-ipa.o.
9658 ($(IPA_LIB)): Link -ldl and -lpthread.
9659 (UST_CFLAGS): New.
9660 (IPAGENT_CFLAGS): Add UST_CFLAGS.
9661 * config.in, configure: Regenerate.
9662
9663 2010-06-20 Ian Lance Taylor <iant@google.com>
9664 Pedro Alves <pedro@codesourcery.com>
9665
9666 * linux-x86-low.c (always_true): Delete.
9667 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
9668 trying to fool the compiler with always_true.
9669
9670 2010-06-20 Pedro Alves <pedro@codesourcery.com>
9671
9672 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
9673 conditions in gdbserver.
9674
9675 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
9676
9677 * spu-low.c (spu_read_memory): Wrap around local store limit.
9678 (spu_write_memory): Likewise.
9679
9680 2010-06-15 Pedro Alves <pedro@codesourcery.com>
9681
9682 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
9683 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
9684 LONGEST uses.
9685 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
9686 uses.
9687 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
9688 uses with LONGEST uses.
9689
9690 2010-06-14 Stan Shebs <stan@codesourcery.com>
9691 Pedro Alves <pedro@codesourcery.com>
9692
9693 Bytecode compiler.
9694
9695 * linux-x86-low.c: Include limits.h.
9696 (add_insns): New.
9697 (always_true): New.
9698 (EMIT_ASM): New.
9699 (EMIT_ASM32): New.
9700 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
9701 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
9702 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
9703 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
9704 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
9705 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
9706 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
9707 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
9708 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
9709 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
9710 (amd64_emit_void_call_2): New.
9711 (amd64_emit_ops): New.
9712 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
9713 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
9714 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
9715 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
9716 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
9717 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
9718 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
9719 (i386_emit_call, i386_emit_reg, i386_emit_pop)
9720 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
9721 (i386_emit_stack_adjust, i386_emit_int_call_1)
9722 (i386_emit_void_call_2): New.
9723 (i386_emit_ops): New.
9724 (x86_emit_ops): New.
9725 (the_low_target): Install x86_emit_ops.
9726 * server.h (struct emit_ops): New.
9727 (get_raw_reg_func_addr): Declare.
9728 (current_insn_ptr, emit_error): Declare.
9729 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
9730 (set_trace_state_variable_value): New defines.
9731 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
9732 addr_get_trace_state_variable_value and
9733 addr_set_trace_state_variable_value.
9734 (symbol_list): New fields for get_raw_reg,
9735 get_trace_state_variable_value and set_trace_state_variable_value.
9736 (condfn): New typedef.
9737 (struct tracepoint): New field `compiled_cond'.
9738 (do_action_at_tracepoint): Clear compiled_cond.
9739 (get_trace_state_variable_value, set_trace_state_variable_value):
9740 Export in the IPA.
9741 (condition_true_at_tracepoint): If there's a compiled condition,
9742 run that.
9743 (current_insn_ptr, emit_error): New globals.
9744 (struct bytecode_address): New.
9745 (get_raw_reg_func_addr): New.
9746 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
9747 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
9748 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
9749 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
9750 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
9751 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
9752 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
9753 (compile_tracepoint_condition, compile_bytecodes): New.
9754 * target.h (emit_ops): Forward declare.
9755 (struct target_ops): New field emit_ops.
9756 (target_emit_ops): New.
9757 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
9758 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
9759 * linux-low.c (linux_emit_ops): New.
9760 (linux_target_ops): Install it.
9761 * linux-low.h (struct linux_target_ops): New field emit_ops.
9762
9763 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
9764
9765 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
9766 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
9767
9768 2010-06-01 Pedro Alves <pedro@codesourcery.com>
9769 Stan Shebs <stan@codesourcery.com>
9770
9771 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
9772 (all): Depend on $(extra_libraries).
9773 (install-only): Install the IPA.
9774 (IPA_OBJS, IPA_LIB): New.
9775 (clean): Remove the IPA lib.
9776 (IPAGENT_CFLAGS): New.
9777 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
9778 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
9779 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
9780 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
9781 * configure.ac: Check for atomic builtins support in the compiler.
9782 (IPA_DEPFILES, extra_libraries): Define.
9783 * configure.srv (ipa_obj): Add description.
9784 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
9785 (i[34567]86-*-linux*): Set ipa_obj.
9786 (x86_64-*-linux*): Set ipa_obj.
9787 * linux-low.c (stabilizing_threads): New.
9788 (supports_fast_tracepoints): New.
9789 (linux_detach): Stabilize threads before detaching.
9790 (handle_tracepoints): Handle internal tracing breakpoints. Assert
9791 the lwp is either not stabilizing, or is moving out of a jump pad.
9792 (linux_fast_tracepoint_collecting): New.
9793 (maybe_move_out_of_jump_pad): New.
9794 (enqueue_one_deferred_signal): New.
9795 (dequeue_one_deferred_signal): New.
9796 (linux_wait_for_event_1): If moving out of a jump pad, defer
9797 pending signals to later.
9798 (linux_stabilize_threads): New.
9799 (linux_wait_1): Check if threads need moving out of jump pads, and
9800 do it if so.
9801 (stuck_in_jump_pad_callback): New.
9802 (move_out_of_jump_pad_callback): New.
9803 (lwp_running): New.
9804 (linux_resume_one_lwp): Handle moving out of jump pads.
9805 (linux_set_resume_request): Dequeue deferred signals.
9806 (need_step_over_p): Also step over fast tracepoint jumps.
9807 (start_step_over): Also uninsert fast tracepoint jumps.
9808 (finish_step_over): Also reinsert fast tracepoint jumps.
9809 (linux_install_fast_tracepoint_jump): New.
9810 (linux_target_ops): Install linux_stabilize_threads and
9811 linux_install_fast_tracepoint_jump_pad.
9812 * linux-low.h (linux_target_ops) <get_thread_area,
9813 install_fast_tracepoint_jump_pad>: New fields.
9814 (struct lwp_info) <collecting_fast_tracepoint,
9815 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
9816 (linux_get_thread_area): Declare.
9817 * linux-x86-low.c (jump_insn): New.
9818 (x86_get_thread_area): New.
9819 (append_insns): New.
9820 (push_opcode): New.
9821 (amd64_install_fast_tracepoint_jump_pad): New.
9822 (i386_install_fast_tracepoint_jump_pad): New.
9823 (x86_install_fast_tracepoint_jump_pad): New.
9824 (the_low_target): Install x86_get_thread_area and
9825 x86_install_fast_tracepoint_jump_pad.
9826 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
9827 (struct fast_tracepoint_jump): New.
9828 (fast_tracepoint_jump_insn): New.
9829 (fast_tracepoint_jump_shadow): New.
9830 (find_fast_tracepoint_jump_at): New.
9831 (fast_tracepoint_jump_here): New.
9832 (delete_fast_tracepoint_jump): New.
9833 (set_fast_tracepoint_jump): New.
9834 (uninsert_fast_tracepoint_jumps_at): New.
9835 (reinsert_fast_tracepoint_jumps_at): New.
9836 (set_breakpoint_at): Use write_inferior_memory.
9837 (uninsert_raw_breakpoint): Use write_inferior_memory.
9838 (check_mem_read): Mask out fast tracepoint jumps.
9839 (check_mem_write): Mask out fast tracepoint jumps.
9840 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
9841 (set_fast_tracepoint_jump): Declare.
9842 (delete_fast_tracepoint_jump)
9843 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
9844 (reinsert_fast_tracepoint_jumps_at): Declare.
9845 * regcache.c: Don't compile many functions when building the
9846 in-process agent library.
9847 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
9848 the register buffer in the heap.
9849 (free_register_cache): If the register buffer isn't owned by the
9850 regcache, don't free it.
9851 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
9852 pre-existing register caches.
9853 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
9854 type.
9855 (convert_ascii_to_int): : Constify `from' parameter type.
9856 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
9857 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
9858 the needed buffer in-place.
9859 (relocate_instruction): New.
9860 * server.c (handle_query) <qSymbols>: If the target supports
9861 tracepoints, give it a chance of looking up symbols. Report
9862 support for fast tracepoints.
9863 (handle_status): Stabilize threads.
9864 (process_serial_event): Adjust.
9865 * server.h (struct fast_tracepoint_jump): Forward declare.
9866 (struct process_info) <fast_tracepoint_jumps>: New field.
9867 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
9868 (decode_X_packet, decode_M_packet): Adjust.
9869 (relocate_instruction): Declare.
9870 (in_process_agent_loaded): Declare.
9871 (tracepoint_look_up_symbols): Declare.
9872 (struct fast_tpoint_collect_status): Declare.
9873 (fast_tracepoint_collecting): Declare.
9874 (force_unlock_trace_buffer): Declare.
9875 (handle_tracepoint_bkpts): Declare.
9876 (initialize_low_tracepoint)
9877 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
9878 * target.h (struct target_ops) <stabilize_threads,
9879 install_fast_tracepoint_jump_pad>: New fields.
9880 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
9881 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
9882 [HAVE_STDINT_H]: Include stdint.h.
9883 (trace_debug_1): Rename to ...
9884 (trace_vdebug): ... this.
9885 (trace_debug): Rename to ...
9886 (trace_debug_1): ... this. Add `level' parameter.
9887 (trace_debug): New.
9888 (ATTR_USED, ATTR_NOINLINE): New.
9889 (IP_AGENT_EXPORT): New.
9890 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9891 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
9892 (about_to_request_buffer_space, trace_buffer_is_full)
9893 (stopping_tracepoint, expr_eval_result, error_tracepoint)
9894 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
9895 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
9896 (traceframe_write_count, traceframes_created)
9897 (trace_state_variables)
9898 New renaming defines.
9899 (struct ipa_sym_addresses): New.
9900 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
9901 (symbol_list): New.
9902 (ipa_sym_addrs): New.
9903 (all_tracepoint_symbols_looked_up): New.
9904 (in_process_agent_loaded): New.
9905 (write_e_ipa_not_loaded): New.
9906 (maybe_write_ipa_not_loaded): New.
9907 (tracepoint_look_up_symbols): New.
9908 (debug_threads) [IN_PROCESS_AGENT]: New.
9909 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
9910 (UNKNOWN_SIDE_EFFECTS): New.
9911 (stop_tracing): New.
9912 (flush_trace_buffer): New.
9913 (stop_tracing_bkpt): New.
9914 (flush_trace_buffer_bkpt): New.
9915 (read_inferior_integer): New.
9916 (read_inferior_uinteger): New.
9917 (read_inferior_data_pointer): New.
9918 (write_inferior_data_pointer): New.
9919 (write_inferior_integer): New.
9920 (write_inferior_uinteger): New.
9921 (struct collect_static_trace_data_action): Delete.
9922 (enum tracepoint_type): New.
9923 (struct tracepoint) <type>: New field `type'.
9924 <actions_str, step_actions, step_actions_str>: Only include in
9925 GDBserver.
9926 <orig_size, obj_addr_on_target, adjusted_insn_addr>
9927 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
9928 (tracepoints): Use IP_AGENT_EXPORT.
9929 (last_tracepoint): Don't include in the IPA.
9930 (stopping_tracepoint): Use IP_AGENT_EXPORT.
9931 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
9932 (alloced_trace_state_variables): New.
9933 (trace_state_variables): Use IP_AGENT_EXPORT.
9934 (traceframe_t): Delete unused variable.
9935 (circular_trace_buffer): Don't include in the IPA.
9936 (trace_buffer_start): Delete.
9937 (struct trace_buffer_control): New.
9938 (trace_buffer_free): Delete.
9939 (struct ipa_trace_buffer_control): New.
9940 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
9941 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
9942 New.
9943 (trace_buffer_ctrl): New.
9944 (TRACE_BUFFER_CTRL_CURR): New.
9945 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
9946 Reimplement as macros.
9947 (trace_buffer_wrap): Delete.
9948 (traceframe_write_count, traceframe_read_count)
9949 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
9950 (struct tracepoint_hit_ctx) <type>: New field.
9951 (struct fast_tracepoint_ctx): New.
9952 (memory_barrier): New.
9953 (cmpxchg): New.
9954 (record_tracepoint_error): Update atomically in the IPA.
9955 (clear_inferior_trace_buffer): New.
9956 (about_to_request_buffer_space): New.
9957 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
9958 updating the same buffer.
9959 (add_tracepoint): Default the tracepoint's type to trap
9960 tracepoint, and orig_size to -1.
9961 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
9962 internal variables.
9963 (create_trace_state_variable): New parameter `gdb'. Handle it.
9964 (clear_installed_tracepoints): Clear fast tracepoint jumps.
9965 (cmd_qtdp): Handle fast tracepoints.
9966 (cmd_qtdv): Adjust.
9967 (max_jump_pad_size): New.
9968 (gdb_jump_pad_head): New.
9969 (get_jump_space_head): New.
9970 (claim_jump_space): New.
9971 (sort_tracepoints): New.
9972 (MAX_JUMP_SIZE): New.
9973 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
9974 IPA.
9975 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
9976 support. Upload fast traceframes, and delete internal IPA
9977 breakpoints.
9978 (stop_tracing_handler): New.
9979 (flush_trace_buffer_handler): New.
9980 (cmd_qtstop): Upload fast tracepoints.
9981 (response_tracepoint): Handle fast tracepoints.
9982 (tracepoint_finished_step): Upload fast traceframes. Set the
9983 tracepoint hit context's tracepoint type.
9984 (handle_tracepoint_bkpts): New.
9985 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
9986 type. Add comment about fast tracepoints.
9987 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
9988 non-existing action_str field.
9989 (get_context_regcache): Handle fast tracepoints.
9990 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
9991 to the regcache.
9992 (fast_tracepoint_from_jump_pad_address): New.
9993 (fast_tracepoint_from_ipa_tpoint_address): New.
9994 (collecting_t): New.
9995 (force_unlock_trace_buffer): New.
9996 (fast_tracepoint_collecting): New.
9997 (collecting): New.
9998 (gdb_collect): New.
9999 (write_inferior_data_ptr): New.
10000 (target_tp_heap): New.
10001 (target_malloc): New.
10002 (download_agent_expr): New.
10003 (UALIGN): New.
10004 (download_tracepoints): New.
10005 (download_trace_state_variables): New.
10006 (upload_fast_traceframes): New.
10007 (IPA_FIRST_TRACEFRAME): New.
10008 (IPA_NEXT_TRACEFRAME_1): New.
10009 (IPA_NEXT_TRACEFRAME): New.
10010 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
10011 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
10012 (gdb_jump_pad_buffer_end): New.
10013 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
10014 (initialize_tracepoint): Adjust.
10015 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
10016 buffer. Initialize the low module.
10017 * utils.c (PREFIX, TOOLNAME): New.
10018 (malloc_failure): Use PREFIX.
10019 (error): In the IPA, an error causes an exit.
10020 (fatal, warning): Use PREFIX.
10021 (internal_error): Use TOOLNAME.
10022 (NUMCELLS): Increase to 10.
10023 * configure, config.in: Regenerate.
10024
10025 2010-06-01 Pedro Alves <pedro@codesourcery.com>
10026
10027 * server.c (handle_query) <qSupported>: Do two passes over the
10028 qSupported string to avoid nesting strtok.
10029
10030 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10031
10032 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
10033 (CDEPS): New.
10034 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
10035 -Wl,--dynamic-list.
10036 * configure: Regenerate.
10037 * proc-service.list: New.
10038
10039 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10040
10041 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
10042 New comment.
10043
10044 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
10045
10046 * gdbreplay.c (remote_open): Check error return from socket() call by
10047 its equality to -1 not by it being negative.
10048 * remote-utils.c (remote_open): Likewise.
10049
10050 2010-05-23 Pedro Alves <pedro@codesourcery.com>
10051
10052 * config.h: Regenerate.
10053
10054 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
10055
10056 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
10057 doesn't provide PTRACE_GET_THREAD_AREA.
10058
10059 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
10060
10061 * linux-m68k-low.c: Include <asm/ptrace.h>
10062 (ps_get_thread_area): Implement.
10063
10064 2010-05-03 Doug Evans <dje@google.com>
10065
10066 * event-loop.c (struct callback_event): New struct.
10067 (callback_list): New global.
10068 (append_callback_event, delete_callback_event): New functions.
10069 (process_callback): New function.
10070 (start_event_loop): Call it.
10071 * remote-utils.c (NOT_SCHEDULED): Define.
10072 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
10073 moved out of readchar.
10074 (readchar): Rewrite. Call reschedule before returning.
10075 (reset_readchar): New function.
10076 (remote_close): Call it.
10077 (process_remaining, reschedule): New functions.
10078 * server.h (callback_handler_func): New typedef.
10079 (append_callback_event, delete_callback_event): Declare.
10080
10081 2010-05-03 Pedro Alves <pedro@codesourcery.com>
10082
10083 * proc-service.c (ps_pglobal_lookup): Use
10084 thread_db_look_up_one_symbol.
10085 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
10086 parameter. Use it instead of all_symbols_looked_up.
10087 * server.h (struct process_info) <all_symbols_looked_up>: Delete
10088 field.
10089 (all_symbols_looked_up): Don't declare.
10090 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
10091 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
10092 field.
10093 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
10094 Set all_symbols_looked_up here.
10095 (thread_db_look_up_one_symbol): New.
10096 (thread_db_get_tls_address): Adjust.
10097 (thread_db_load_search, try_thread_db_load_1): Always allocate the
10098 thread_db object on the heap, and tentatively set it in the
10099 process structure.
10100 (thread_db_init): Don't set all_symbols_looked_up here.
10101 * linux-low.h (thread_db_look_up_one_symbol): Declare.
10102
10103 2010-05-03 Pedro Alves <pedro@codesourcery.com>
10104
10105 * linux-low.c (linux_kill, linux_detach): Adjust.
10106 (status_pending_p_callback): Remove redundant statement. Check
10107 for !TARGET_WAITIKIND_IGNORE, instead of
10108 TARGET_WAITKIND_STOPPED.
10109 (handle_tracepoints): Make sure LWP is locked. Adjust.
10110 (linux_wait_for_event_1): Adjust.
10111 (linux_cancel_breakpoints): New.
10112 (unsuspend_one_lwp): New.
10113 (unsuspend_all_lwps): New.
10114 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
10115 (send_sigstop_callback): Change return type to int, add new
10116 `except' parameter and handle it.
10117 (suspend_and_send_sigstop_callback): New.
10118 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
10119 pass them down. If SUSPEND, also increment the lwp's suspend
10120 count.
10121 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
10122 (need_step_over_p): Don't consider suspended LWPs.
10123 (start_step_over): Adjust.
10124 (proceed_one_lwp): Change return type to int, add new `except'
10125 parameter and handle it.
10126 (unsuspend_and_proceed_one_lwp): New.
10127 (proceed_all_lwps): Use find_inferior instead of
10128 for_each_inferior.
10129 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
10130 also decrement the suspend count of LWPs. Pass `except' down,
10131 instead of hacking its suspend count.
10132 (linux_pause_all): Add `freeze' parameter. Adjust.
10133 (linux_unpause_all): New.
10134 (linux_target_ops): Install linux_unpause_all.
10135 * server.c (handle_status): Adjust.
10136 * target.h (struct target_ops): New fields `unpause_all' and
10137 `cancel_breakpoints'. Add new parameter to `pause_all'.
10138 (pause_all): Add new `freeze' parameter.
10139 (unpause_all): New.
10140 (cancel_breakpoints): New.
10141 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
10142 cancel breakpoints.
10143 (cmd_qtstart): Pause threads.
10144 (stop_tracing): Pause threads, and cancel breakpoints.
10145 * win32-low.c (win32_target_ops): Adjust.
10146
10147 2010-05-03 Pedro Alves <pedro@codesourcery.com>
10148
10149 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
10150 the inferior right away from here...
10151 (linux_wait_1): ... to here, and adjust to check the thread's
10152 last_resume_kind instead of the lwp's step or stop_expected flags.
10153
10154 2010-05-02 Pedro Alves <pedro@codesourcery.com>
10155
10156 * README: Use consistent `GDB' and `GDBserver' spellings.
10157
10158 2010-05-02 Pedro Alves <pedro@codesourcery.com>
10159
10160 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
10161 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
10162 (linux_detach_one_lwp): Assume the lwp is stopped.
10163 (any_thread_of): Delete.
10164 (linux_detach): Stop all lwps here. Don't blindly delete all
10165 breakpoints.
10166 (delete_lwp_callback): New.
10167 (linux_mourn): Delete all lwps of the process that is gone.
10168 (linux_wait_1): Don't delete the last lwp of the process here.
10169 * mem-break.h (mark_breakpoints_out): Declare.
10170 * mem-break.c (mark_breakpoints_out): New.
10171 (free_all_breakpoints): Use it.
10172 * server.c (handle_target_event): If the process is gone, mark
10173 breakpoints out.
10174 * thread-db.c (struct thread_db) <create_bp>: New field.
10175 (thread_db_enable_reporting): Fix prototype. Store a thread event
10176 breakpoint reference in the thread_db struct.
10177 (thread_db_load_search): Clear the thread_db object.
10178 (try_thread_db_load_1): Ditto.
10179 (switch_to_process): New.
10180 (disable_thread_event_reporting): Use it.
10181 (remove_thread_event_breakpoints): New.
10182 (thread_db_detach, thread_db_mourn): Use it.
10183
10184 2010-05-01 Pedro Alves <pedro@codesourcery.com>
10185
10186 * linux-low.c (linux_enable_event_reporting): New.
10187 (linux_wait_for_event_1, handle_extended_wait): Use it.
10188
10189 2010-04-30 Pedro Alves <pedro@codesourcery.com>
10190
10191 * linux-low.c (linux_kill_one_lwp, linux_kill)
10192 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
10193 (send_sigstop): Take an lwp_info as parameter instead. Queue a
10194 SIGSTOP even if the LWP is stopped.
10195 (send_sigstop_callback): New.
10196 (stop_all_lwps): Use send_sigstop_callback instead.
10197 (linux_resume_one_thread): Adjust.
10198 (proceed_one_lwp): Still proceed an LWP that the client has
10199 requested to stop, if we haven't reported it as stopped yet. Make
10200 sure that LWPs the client want stopped, have a pending SIGSTOP.
10201
10202 2010-04-26 Doug Evans <dje@google.com>
10203
10204 * server.c (handle_general_set): Make static.
10205
10206 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
10207 Print received char after testing for error/eof instead of before.
10208 (input_interrupt): Tweak comment.
10209
10210 2010-04-23 Doug Evans <dje@google.com>
10211
10212 * server.c (start_inferior): Print inferior argv if --debug.
10213
10214 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
10215
10216 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
10217 * nto-x86-low.c: Include server.h
10218
10219 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
10220
10221 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
10222 be consistent with other sources of this directory.
10223 (init_registers_amd64): Correct name of source file of this function
10224 in the comment.
10225
10226 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
10227
10228 * configure.srv (x86_64-*-mingw*): New configuration for Windows
10229 64-bit executables.
10230
10231 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
10232
10233 * win32-i386-low.c: Add 64-bit support.
10234 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
10235 (init_registers_amd64): Declare.
10236 (mappings): Add 64-bit version of array.
10237 (init_windows_x86): New function.
10238 (the_low_target): Change init_arch field to init_windows_x86.
10239
10240 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
10241
10242 * win32-low.c: Adapt to support also 64-bit architecture.
10243 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
10244 (get_image_name): Use SIZE_T type for local variable `done'.
10245 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
10246 (toolhelp_get_dll_name): Idem.
10247 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
10248 Use uintptr_t typecast to avoid warning.
10249 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
10250 (handle_exception): Use phex_nz to avoid warning.
10251 (win32_wait): Remove unused local variable `process'.
10252
10253 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
10254
10255 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
10256 `amd64-avx.o'.
10257
10258 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
10259
10260 * configure.ac: Use `ws2_32' library for srv_mingw.
10261 * configure: Regenerate.
10262 * gdbreplay.c: Include winsock2.h instead of winsock.h.
10263 * remote-utils.c: Likewise.
10264
10265 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
10266
10267 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
10268 if __x86_64__ is defined.
10269
10270 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
10271
10272 * configure: Regenerate.
10273
10274 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
10275
10276 * server.c (handle_query): Handle 'qGetTIBAddr' query.
10277 * target.h (target_ops): New get_tib_address field.
10278 * win32-low.h (win32_thread_info): Add thread_local_base field.
10279 * win32-low.c (child_add_thread): Add tlb argument.
10280 Set thread_local_base field to TLB.
10281 (get_child_debug_event): Adapt to child_add_thread change.
10282 (win32_get_tib_address): New function.
10283 (win32_target_ops): Set get_tib_address field to
10284 win32_get_tib_address.
10285 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
10286
10287 2010-04-12 Pedro Alves <pedro@codesourcery.com>
10288
10289 * linux-low.c (linux_mourn): Also remove the process.
10290 * server.c (handle_target_event): Don't remove the process here.
10291 * nto-low.c (nto_mourn): New.
10292 (nto_target_ops): Install it.
10293 * spu-low.c (spu_mourn): New.
10294 (spu_target_ops): Install it.
10295 * win32-low.c (win32_mourn): New.
10296 (win32_target_ops): Install it.
10297
10298 2010-04-12 Pedro Alves <pedro@codesourcery.com>
10299
10300 * server.h (buffer_xml_printf): Remove redundant `;'.
10301
10302 2010-04-12 Pedro Alves <pedro@codesourcery.com>
10303
10304 * regcache.c (set_register_cache): Invalidate regcaches before
10305 changing the register cache layout.
10306 (regcache_invalidate_one): Allow a NULL regcache.
10307 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
10308 regcaches before changing the register cache layout or the target
10309 regsets.
10310
10311 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
10312
10313 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
10314 variable warning on Linux/x86-64.
10315
10316 2010-04-11 Pedro Alves <pedro@codesourcery.com>
10317
10318 GDBserver disconnected tracing support.
10319
10320 * linux-low.c (linux_remove_process): Delete.
10321 (add_lwp): Don't set last_resume_kind here.
10322 (linux_kill): Use `mourn'.
10323 (linux_detach): Use `thread_db_detach', and `mourn'.
10324 (linux_mourn): New.
10325 (linux_attach_lwp_1): Adjust comment.
10326 (linux_attach): last_resume_kind moved the thread_info; adjust.
10327 (status_pending_p_callback): Adjust.
10328 (linux_wait_for_event_1): Adjust.
10329 (count_events_callback, select_singlestep_lwp_callback)
10330 (select_event_lwp_callback, cancel_breakpoints_callback)
10331 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
10332 (proceed_one_lwp): Adjust.
10333 (linux_async): Add debug output.
10334 (linux_thread_stopped): New.
10335 (linux_pause_all): New.
10336 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
10337 linux_pause_all.
10338 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
10339 (thread_db_free): Delete declaration.
10340 (thread_db_detach, thread_db_mourn): Declare.
10341 * thread-db.c (thread_db_init): Use thread_db_mourn.
10342 (thread_db_free): Delete, split in two.
10343 (disable_thread_event_reporting): New.
10344 (thread_db_detach): New.
10345 (thread_db_mourn): New.
10346
10347 * server.h (struct thread_info) <last_resume_kind>: New field.
10348 <attached>: Add comment.
10349 <gdb_detached>: New field.
10350 (handler_func): Change return type to int.
10351 (handle_serial_event, handle_target_event): Ditto.
10352 (gdb_connected): Declare.
10353 (tracing): Delete.
10354 (disconnected_tracing): Declare.
10355 (stop_tracing): Declare.
10356
10357 * server.c (handle_query) <qSupported>: Report support for
10358 disconnected tracing.
10359 (queue_stop_reply_callback): Account for running threads.
10360 (gdb_wants_thread_stopped): New.
10361 (gdb_wants_all_threads_stopped): New.
10362 (gdb_reattached_process): New.
10363 (handle_status): Clear the `gdb_detached' flag of all processes.
10364 In all-stop, stop all threads.
10365 (main): Be sure to leave tfind mode. Handle disconnected tracing.
10366 (process_serial_event): If the remote connection breaks, or if an
10367 exit was forced with "monitor exit", force an event loop exit.
10368 Handle disconnected tracing on detach.
10369 (handle_serial_event): Adjust.
10370 (handle_target_event): If GDB isn't connected, forward events back
10371 to the inferior, unless the last process exited, in which case,
10372 exit gdbserver. Adjust interface.
10373
10374 * remote-utils.c (remote_open): Don't block in accept. Instead
10375 register an event loop source on the listen socket file
10376 descriptor. Refactor bits into ...
10377 (listen_desc): ... this new global.
10378 (gdb_connected): ... this new function.
10379 (enable_async_notification): ... this new function.
10380 (handle_accept_event): ... this new function.
10381 (remote_close): Clear remote_desc.
10382
10383 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
10384
10385 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
10386 New fields.
10387 (mourn_inferior): Define.
10388 (target_process_qsupported): Avoid the dangling else problem.
10389 (thread_stopped): Define.
10390 (pause_all): Define.
10391 (target_waitstatus_to_string): Declare.
10392 * target.c (target_waitstatus_to_string): New.
10393
10394 * tracepoint.c (tracing): Make extern.
10395 (disconnected_tracing): New.
10396 (stop_tracing): Make extern. Handle tracing stops due to GDB
10397 disconnecting.
10398 (cmd_qtdisconnected): New.
10399 (cmd_qtstatus): Report disconnected tracing status in trace reply.
10400 (handle_tracepoint_general_set): Handle QTDisconnected.
10401
10402 * event-loop.c (event_handler_func): Change return type to int.
10403 (process_event): Bail out if the event handler wants the event
10404 loop to stop.
10405 (handle_file_event): Ditto.
10406 (start_event_loop): Bail out if the event handler wants the event
10407 loop to stop.
10408
10409 * nto-low.c (nto_target_ops): Adjust.
10410 * spu-low.c (spu_wait): Don't remove the process here.
10411 (spu_target_ops): Adjust.
10412 * win32-low.c (win32_wait): Don't remove the process here.
10413 (win32_target_ops): Adjust.
10414
10415 2010-04-11 Pedro Alves <pedro@codesourcery.com>
10416
10417 * regcache.c (realloc_register_cache): Invalidate inferior's
10418 regcache before recreating it.
10419
10420 2010-04-09 Pedro Alves <pedro@codesourcery.com>
10421
10422 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
10423
10424 2010-04-09 Stan Shebs <stan@codesourcery.com>
10425 Pedro Alves <pedro@codesourcery.com>
10426
10427 * server.h (LONGEST): New.
10428 (struct thread_info) <while_stepping>: New field.
10429 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
10430 Declare.
10431 (initialize_tracepoint, handle_tracepoint_general_set)
10432 (handle_tracepoint_query, tracepoint_finished_step)
10433 (tracepoint_was_hit, release_while_stepping_state_list):
10434 (current_traceframe): Declare.
10435 * server.c (handle_general_set): Handle tracepoint packets.
10436 (read_memory): New.
10437 (write_memory): New.
10438 (handle_search_memory_1): Use read_memory.
10439 (handle_query): Report support for conditional tracepoints, trace
10440 state variables, and tracepoint sources. Handle tracepoint
10441 queries.
10442 (main): Initialize the tracepoints module.
10443 (process_serial_event): Handle traceframe reads/writes.
10444
10445 * linux-low.c (handle_tracepoints): New.
10446 (linux_wait_1): Call it.
10447 (linux_resume_one_lwp): Handle while-stepping.
10448 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
10449 (linux_target_ops): Install them.
10450 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
10451 New field.
10452 * linux-x86-low.c (x86_supports_tracepoints): New.
10453 (the_low_target). Install it.
10454
10455 * mem-break.h (delete_breakpoint): Declare.
10456 * mem-break.c (delete_breakpoint): Make external.
10457
10458 * target.h (struct target_ops): Add `supports_tracepoints',
10459 `read_pc', and `write_pc' fields.
10460 (target_supports_tracepoints): Define.
10461 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
10462 (phex_nz): New.
10463
10464 * regcache.h (struct regcache) <registers_owned>: New field.
10465 (init_register_cache, regcache_cpy): Declare.
10466 (regcache_read_pc, regcache_write_pc): Declare.
10467 (register_cache_size): Declare.
10468 (supply_regblock): Declare.
10469 * regcache.c (init_register_cache): New.
10470 (new_register_cache): Use it.
10471 (regcache_cpy): New.
10472 (register_cache_size): New.
10473 (supply_regblock): New.
10474 (regcache_read_pc, regcache_write_pc): New.
10475
10476 * tracepoint.c: New.
10477
10478 * Makefile.in (OBS): Add tracepoint.o.
10479 (tracepoint.o): New rule.
10480
10481 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
10482
10483 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
10484 (i386-mmx.o): New.
10485 (i386-mmx.c): Likewise.
10486 (i386-mmx-linux.o): Likewise.
10487 (i386-mmx-linux.c): Likewise.
10488
10489 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
10490 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
10491 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
10492 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
10493
10494 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
10495 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
10496 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
10497
10498 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
10499
10500 * Makefile.in (clean): Updated.
10501 (i386-avx.o): New.
10502 (i386-avx.c): Likewise.
10503 (i386-avx-linux.o): Likewise.
10504 (i386-avx-linux.c): Likewise.
10505 (amd64-avx.o): Likewise.
10506 (amd64-avx.c): Likewise.
10507 (amd64-avx-linux.o): Likewise.
10508 (amd64-avx-linux.c): Likewise.
10509
10510 * configure.srv (srv_i386_regobj): Add i386-avx.o.
10511 (srv_i386_linux_regobj): Add i386-avx-linux.o.
10512 (srv_amd64_regobj): Add amd64-avx.o.
10513 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
10514 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
10515 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
10516 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
10517 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
10518 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
10519 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
10520
10521 * i387-fp.c: Include "i386-xstate.h".
10522 (i387_xsave): New.
10523 (i387_cache_to_xsave): Likewise.
10524 (i387_xsave_to_cache): Likewise.
10525 (x86_xcr0): Likewise.
10526
10527 * i387-fp.h (i387_cache_to_xsave): Likewise.
10528 (i387_xsave_to_cache): Likewise.
10529 (x86_xcr0): Likewise.
10530
10531 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
10532 * linux-crisv32-low.c (target_regsets): Likewise.
10533 * linux-m68k-low.c (target_regsets): Likewise.
10534 * linux-mips-low.c (target_regsets): Likewise.
10535 * linux-ppc-low.c (target_regsets): Likewise.
10536 * linux-s390-low.c (target_regsets): Likewise.
10537 * linux-sh-low.c (target_regsets): Likewise.
10538 * linux-sparc-low.c (target_regsets): Likewise.
10539 * linux-xtensa-low.c (target_regsets): Likewise.
10540
10541 * linux-low.c: Include <sys/uio.h>.
10542 (regsets_fetch_inferior_registers): Support nt_type.
10543 (regsets_store_inferior_registers): Likewise.
10544 (linux_process_qsupported): New.
10545 (linux_target_ops): Add linux_process_qsupported.
10546
10547 * linux-low.h (regset_info): Add nt_type.
10548 (linux_target_ops): Add process_qsupported.
10549
10550 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
10551 and <sys/uio.h>.
10552 (init_registers_i386_avx_linux): New.
10553 (init_registers_amd64_avx_linux): Likewise.
10554 (xmltarget_i386_linux_no_xml): Likewise.
10555 (xmltarget_amd64_linux_no_xml): Likewise.
10556 (PTRACE_GETREGSET): Likewise.
10557 (PTRACE_SETREGSET): Likewise.
10558 (x86_fill_xstateregset): Likewise.
10559 (x86_store_xstateregset): Likewise.
10560 (use_xml): Likewise.
10561 (x86_linux_update_xmltarget): Likewise.
10562 (x86_linux_process_qsupported): Likewise.
10563 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
10564 (x86_arch_setup): Don't call init_registers_amd64_linux nor
10565 init_registers_i386_linux here. Call
10566 x86_linux_update_xmltarget.
10567 (the_low_target): Add x86_linux_process_qsupported.
10568
10569 * server.c (handle_query): Call target_process_qsupported.
10570
10571 * target.h (target_ops): Add process_qsupported.
10572 (target_process_qsupported): New.
10573
10574 2010-04-03 Pedro Alves <pedro@codesourcery.com>
10575
10576 * inferiors.c (add_thread): Set last_status kind to
10577 TARGET_WAITKIND_IGNORE.
10578 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
10579 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
10580 (linux_wait_1): Move `thread' local definition to block that uses
10581 it. Don't NULL initialize `event_child'.
10582 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
10583 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
10584 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
10585
10586 2010-04-01 Pedro Alves <pedro@codesourcery.com>
10587
10588 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
10589 an extended waitstatus, or by a watchpoint.
10590 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
10591 thread was stepping or has been stopped by a watchpoint.
10592
10593 2010-04-01 Pedro Alves <pedro@codesourcery.com>
10594
10595 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
10596 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
10597 of another, then delete the previous, and validate all
10598 breakpoints.
10599 (validate_inserted_breakpoint): New.
10600 (delete_disabled_breakpoints): New.
10601 (validate_breakpoints): New.
10602 (check_mem_read): Validate breakpoints before trusting their
10603 shadow. Delete disabled breakpoints.
10604 (check_mem_write): Validate breakpoints before trusting they
10605 should be inserted. Delete disabled breakpoints.
10606 * mem-break.h (validate_breakpoints):
10607 * server.c (handle_query): Validate breakpoints when we see a
10608 qSymbol query.
10609
10610 2010-04-01 Pedro Alves <pedro@codesourcery.com>
10611
10612 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
10613 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
10614 if we could tell there's a GDB breakpoint at stop_pc.
10615 (need_step_over_p): Don't do a step over if we find a GDB
10616 breakpoint at the resume PC.
10617
10618 * mem-break.c (struct raw_breakpoint): New.
10619 (enum bkpt_type): New type `gdb_breakpoint'.
10620 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
10621 fields. New field `raw'.
10622 (find_raw_breakpoint_at): New.
10623 (set_raw_breakpoint_at): Handle refcounting. Create a raw
10624 breakpoint instead.
10625 (set_breakpoint_at): Adjust.
10626 (delete_raw_breakpoint): New.
10627 (release_breakpoint): New.
10628 (delete_breakpoint): Rename to...
10629 (delete_breakpoint_1): ... this. Add proc parameter. Use
10630 release_breakpoint. Return ENOENT.
10631 (delete_breakpoint): Reimplement.
10632 (find_breakpoint_at): Delete.
10633 (find_gdb_breakpoint_at): New.
10634 (delete_breakpoint_at): Delete.
10635 (set_gdb_breakpoint_at): New.
10636 (delete_gdb_breakpoint_at): New.
10637 (gdb_breakpoint_here): New.
10638 (set_reinsert_breakpoint): Use release_breakpoint.
10639 (uninsert_breakpoint): Rename to ...
10640 (uninsert_raw_breakpoint): ... this.
10641 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
10642 (reinsert_raw_breakpoint): Change parameter type to
10643 raw_breakpoint.
10644 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
10645 instead.
10646 (check_breakpoints): Adjust. Use release_breakpoint.
10647 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
10648 (breakpoint_inserted_here): Ditto.
10649 (check_mem_read): Adjust to iterate over raw breakpoints instead.
10650 Don't trust the breakpoint's shadow if it is not inserted.
10651 (check_mem_write): Adjust to iterate over raw breakpoints instead.
10652 (delete_all_breakpoints): Adjust.
10653 (free_all_breakpoints): Mark all breakpoints as uninserted, and
10654 use delete_breakpoint_1.
10655
10656 * mem-break.h (breakpoints_supported): Delete declaration.
10657 (set_gdb_breakpoint_at): Declare.
10658 (gdb_breakpoint_here): Declare.
10659 (delete_breakpoint_at): Delete.
10660 (delete_gdb_breakpoint_at): Declare.
10661
10662 * server.h (struct raw_breakpoint): Forward declare.
10663 (struct process_info): New field `raw_breakpoints'.
10664
10665 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
10666 breakpoints.
10667
10668 2010-03-24 Pedro Alves <pedro@codesourcery.com>
10669
10670 * linux-low.c (status_pending_p_callback): Fix comment.
10671 (linux_wait_for_event_1): Move most of the internal breakpoint
10672 handling from here...
10673 (linux_wait_1): ... to here.
10674 (count_events_callback): New.
10675 (select_singlestep_lwp_callback): New.
10676 (select_event_lwp_callback): New.
10677 (cancel_breakpoints_callback): New.
10678 (select_event_lwp): New.
10679 (linux_wait_1): Simplify internal breakpoint handling. Give equal
10680 priority to all LWPs that have had events that should be reported
10681 to the client. Cancel breakpoints when about to reporting the
10682 event to the client, not while stopping lwps. No longer cancel
10683 finished single-steps here.
10684 (cancel_finished_single_step): Delete.
10685 (cancel_finished_single_steps): Delete.
10686
10687 2010-03-24 Pedro Alves <pedro@codesourcery.com>
10688
10689 * mem-break.c (enum bkpt_type): New.
10690 (struct breakpoint): New field `type'.
10691 (set_breakpoint_at): Change return type to struct breakpoint
10692 pointer. Set type to `other_breakpoint' by default.
10693 (delete_breakpoint): Rewrite, supporting more than one breakpoint
10694 in the breakpoint list.
10695 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
10696 (reinsert_breakpoint): Rename to ...
10697 (reinsert_raw_breakpoint): ... this.
10698 (reinsert_breakpoints_at): Adjust.
10699 * mem-break.h (struct breakpoint): Declare.
10700 (set_breakpoint_at): Change return type to struct breakpoint
10701 pointer.
10702
10703 2010-03-24 Pedro Alves <pedro@codesourcery.com>
10704
10705 * server.c (handle_query): Assign, not compare.
10706
10707 2010-03-24 Pedro Alves <pedro@codesourcery.com>
10708
10709 Teach linux gdbserver to step-over-breakpoints.
10710
10711 * linux-low.c (can_hardware_single_step): New.
10712 (supports_breakpoints): New.
10713 (handle_extended_wait): If stopping threads, read the stop pc of
10714 the new cloned LWP.
10715 (get_pc): New.
10716 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
10717 low target doesn't support retrieving the PC.
10718 (add_lwp): Set last_resume_kind to resume_continue.
10719 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
10720 (linux_attach): Don't clear stop_expected. Set the lwp's
10721 last_resume_kind to resume_stop.
10722 (linux_detach_one_lwp): Don't check for removed breakpoints.
10723 (check_removed_breakpoint): Delete.
10724 (status_pending_p): Rename to ...
10725 (status_pending_p_callback): ... this. Don't check for removed
10726 breakpoints. Don't consider threads that are stopped from GDB's
10727 perspective.
10728 (linux_wait_for_lwp): Always read the stop_pc here.
10729 (cancel_breakpoint): New.
10730 (step_over_bkpt): New global.
10731 (linux_wait_for_event_1): Implement stepping over breakpoints.
10732 (gdb_wants_lwp_stopped): New.
10733 (gdb_wants_all_stopped): New.
10734 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
10735 single-step traps here. Store the thread's last reported target
10736 wait status.
10737 (send_sigstop): Don't clear stop_expected. Always set it,
10738 instead.
10739 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
10740 (cancel_finished_single_step): New.
10741 (cancel_finished_single_steps): New.
10742 (wait_for_sigstop): Don't cancel finished single-step traps here.
10743 (linux_resume_one_lwp): Don't check for removed breakpoints.
10744 Don't set `step' on non-hardware step archs.
10745 (linux_set_resume_request): Ignore resume_stop requests if already
10746 stopping or stopped. Set the lwp's last_resume_kind.
10747 (resume_status_pending_p): Don't check for removed breakpoints.
10748 (need_step_over_p): New.
10749 (start_step_over): New.
10750 (finish_step_over): New.
10751 (linux_resume_one_thread): Always queue a sigstop for resume_stop
10752 requests. Clear the thread's last reported target waitstatus.
10753 Don't use the `suspended' flag. Don't consider pending breakpoints.
10754 (linux_resume): Start a step-over if necessary.
10755 (proceed_one_lwp): New.
10756 (proceed_all_lwps): New.
10757 (unstop_all_lwps): New.
10758 * linux-low.h (struct lwp_info): Rewrite comment for the
10759 `suspended' flag. Add the `stop_pc' field. Delete the
10760 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
10761 Add `'last_resume_kind' and `need_step_over' fields.
10762 * inferiors.c (struct thread_info): Delete, moved elsewhere.
10763 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
10764 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
10765 (set_raw_breakpoint_at): New.
10766 (set_breakpoint_at): Rewrite to use it.
10767 (reinsert_breakpoint_handler): Delete.
10768 (set_reinsert_breakpoint): New.
10769 (reinsert_breakpoint_by_bp): Delete.
10770 (delete_reinsert_breakpoints): New.
10771 (uninsert_breakpoint): Rewrite.
10772 (uninsert_breakpoints_at): New.
10773 (reinsert_breakpoint): Rewrite.
10774 (reinsert_breakpoints_at): New.
10775 (check_breakpoints): Rewrite.
10776 (breakpoint_here): New.
10777 (breakpoint_inserted_here): New.
10778 (check_mem_read): Adjust.
10779 * mem-break.h (breakpoints_supported, breakpoint_here)
10780 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
10781 (reinsert_breakpoint_by_bp): Delete declaration.
10782 (delete_reinsert_breakpoints): Declare.
10783 (reinsert_breakpoint): Delete declaration.
10784 (reinsert_breakpoints_at): Declare.
10785 (uninsert_breakpoint): Delete declaration.
10786 (uninsert_breakpoints_at): Declare.
10787 (check_breakpoints): Adjust prototype.
10788 * server.h: Adjust include order.
10789 (struct thread_info): Declare here. Add a `last_status' field.
10790
10791 2010-03-23 Michael Snyder <msnyder@vmware.com>
10792
10793 * server.c (crc32): New function.
10794 (handle_query): Add handling for 'qCRC:' request.
10795
10796 2010-03-23 Pedro Alves <pedro@codesourcery.com>
10797
10798 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
10799 lwp had been stopped by a watchpoint.
10800
10801 2010-03-16 Pedro Alves <pedro@codesourcery.com>
10802
10803 * server.h (internal_error): Declare.
10804 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
10805 * utils.c (internal_error): New function.
10806
10807 2010-03-15 Andreas Schwab <schwab@redhat.com>
10808
10809 * configure.srv: Fix typo setting srv_regobj.
10810
10811 2010-03-15 Pedro Alves <pedro@codesourcery.com>
10812
10813 * linux-low.c (fetch_register): Avoid passing a non string literal
10814 format to `error'.
10815 (usr_store_inferior_registers): Ditto.
10816
10817 2010-03-14 Pedro Alves <pedro@codesourcery.com>
10818
10819 * linux-low.c (linux_write_memory): Bail out early if peeking
10820 memory failed.
10821
10822 2010-03-14 Pedro Alves <pedro@codesourcery.com>
10823
10824 * linux-low.h (struct lwp_info): New fields
10825 `stopped_by_watchpoint' and `stopped_data_address'.
10826 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
10827 here, and cache them in the lwp object.
10828 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
10829 directly.
10830 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
10831 field.
10832 (linux_stopped_by_watchpoint): Rewrite.
10833 (linux_stopped_data_address): Rewrite.
10834
10835 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
10836
10837 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
10838 switching the current inferior, not before.
10839
10840 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
10841
10842 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
10843 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
10844 i386-linux.c and amd64-linux.c.
10845 (reg-i386.o): Removed.
10846 (reg-i386.c): Likewise.
10847 (reg-i386-linux.o): Likewise.
10848 (reg-i386-linux.c): Likewise.
10849 (reg-x86-64.o): Likewise.
10850 (reg-x86-64.c): Likewise.
10851 (reg-x86-64-linux.o): Likewise.
10852 (reg-x86-64-linux.c): Likewise.
10853 (i386.o): New.
10854 (i386.c): Likewise.
10855 (i386-linux.o): Likewise.
10856 (i386-linux.c): Likewise.
10857 (amd64.o): Likewise.
10858 (amd64.c): Likewise.
10859 (amd64-linux.o): Likewise.
10860 (amd64-linux.c): Likewise.
10861
10862 * configure.srv (srv_i386_regobj): New.
10863 (srv_i386_linux_regobj): Likewise.
10864 (srv_amd64_regobj): Likewise.
10865 (srv_amd64_linux_regobj): Likewise.
10866 (srv_i386_32bit_xmlfiles): Likewise.
10867 (srv_i386_64bit_xmlfiles): Likewise.
10868 (srv_i386_xmlfiles): Likewise.
10869 (srv_amd64_xmlfiles): Likewise.
10870 (srv_i386_linux_xmlfiles): Likewise.
10871 (srv_amd64_linux_xmlfiles): Likewise.
10872 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
10873 srv_xmlfiles to $srv_i386_xmlfiles.
10874 (i[34567]86-*-mingw32ce*): Likewise.
10875 (i[34567]86-*-mingw*): Likewise.
10876 (i[34567]86-*-nto*): Likewise.
10877 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
10878 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
10879 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
10880 (x86_64-*-linux*): Likewise.
10881
10882 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
10883 (init_registers_amd64_linux): New.
10884 (x86_arch_setup): Replace init_registers_x86_64_linux with
10885 init_registers_amd64_linux.
10886
10887 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
10888
10889 * configure.ac: Check for libdl. If it is not available link against
10890 static libthread_db.
10891 * configure: Regenerate.
10892
10893 2010-02-22 Pedro Alves <pedro@codesourcery.com>
10894
10895 PR9605
10896
10897 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
10898 handing a read watchpoint.
10899 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
10900
10901 2010-02-12 Doug Evans <dje@google.com>
10902
10903 * linux-low.c (linux_supports_tracefork_flag): Document.
10904 (linux_look_up_symbols): Add comment.
10905
10906 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10907
10908 * regcache.c (supply_register): Clear regcache if buf is NULL.
10909
10910 2010-02-02 Nicolas Roche <roche@sourceware.org>
10911 Joel Brobecker <brobecker@adacore.com>
10912
10913 * inferiors.c (find_inferior): Add function documentation.
10914 (unloaded_dll): Handle the case where the unloaded dll has not
10915 been previously registered in the dll list.
10916
10917 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10918
10919 * linux-arm-low.c (thumb_breakpoint_len): Delete.
10920 (thumb2_breakpoint): New.
10921 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
10922
10923 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10924
10925 * linux-low.c (get_stop_pc): Check for SIGTRAP.
10926 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
10927 breakpoints.
10928
10929 2010-01-21 Pedro Alves <pedro@codesourcery.com>
10930
10931 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
10932
10933 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10934
10935 * linux-s390-low.c (s390_collect_ptrace_register)
10936 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
10937
10938 2010-01-21 Doug Evans <dje@google.com>
10939
10940 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
10941 (PTRACE_ARG4_TYPE): New macro.
10942 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
10943 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
10944 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
10945 (usr_store_inferior_registers): Ditto.
10946 (linux_read_memory, linux_write_memory): Ditto.
10947 (linux_test_for_tracefork): Ditto.
10948
10949 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
10950 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
10951
10952 2010-01-21 Pedro Alves <pedro@codesourcery.com>
10953
10954 * proc-service.c (ps_lgetregs): Don't refetch registers from the
10955 target.
10956
10957 2010-01-21 Pedro Alves <pedro@codesourcery.com>
10958
10959 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
10960 prototype to take a regcache. Adjust.
10961
10962 2010-01-20 Pedro Alves <pedro@codesourcery.com>
10963
10964 * regcache.h (struct thread_info): Forward declare.
10965 (struct regcache): New.
10966 (new_register_cache): Adjust prototype.
10967 (get_thread_regcache): Declare.
10968 (free_register_cache): Adjust prototype.
10969 (registers_to_string, registers_from_string): Ditto.
10970 (supply_register, supply_register_by_name, collect_register)
10971 (collect_register_as_string, collect_register_by_name): Ditto.
10972 * regcache.c (struct inferior_regcache_data): Delete.
10973 (get_regcache): Rename to ...
10974 (get_thread_regcache): ... this. Adjust. Switch inferior before
10975 fetching registers.
10976 (regcache_invalidate_one): Adjust.
10977 (regcache_invalidate): Fix prototype.
10978 (new_register_cache): Return the new register cache.
10979 (free_register_cache): Change prototype.
10980 (realloc_register_cache): Adjust.
10981 (registers_to_string): Change prototype to take a regcache. Adjust.
10982 (registers_from_string): Ditto.
10983 (register_data): Ditto.
10984 (supply_register): Ditto.
10985 (supply_register_by_name): Ditto.
10986 (collect_register): Ditto.
10987 (collect_register_as_string): Ditto.
10988 (collect_register_by_name): Ditto.
10989 * server.c (process_serial_event): Adjust.
10990 * linux-low.h (regset_fill_func, regset_store_func): Change
10991 prototype.
10992 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
10993 Change prototype.
10994 * linux-low.c (get_stop_pc): Adjust.
10995 (check_removed_breakpoint): Adjust.
10996 (linux_wait_for_event): Adjust.
10997 (linux_resume_one_lwp): Adjust.
10998 (fetch_register): Add regcache parameter. Adjust.
10999 (usr_store_inferior_registers): Ditto.
11000 (regsets_fetch_inferior_registers): Ditto.
11001 (regsets_store_inferior_registers): Ditto.
11002 (linux_fetch_registers, linux_store_registers): Ditto.
11003 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
11004 regcache. Adjust.
11005 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
11006 Ditto.
11007 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
11008 prototype to take a regcache.
11009 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
11010 * remote-utils.c (convert_ascii_to_int, outreg)
11011 (prepare_resume_reply): Change prototype to take a regcache.
11012 Adjust.
11013 * target.h (struct target_ops) <fetch_registers, store_registers>:
11014 Change prototype to take a regcache.
11015 (fetch_inferior_registers, store_inferior_registers): Change
11016 prototype to take a regcache. Adjust.
11017 * proc-service.c (ps_lgetregs): Adjust.
11018 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
11019 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
11020 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
11021 take a regcache. Adjust.
11022 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
11023 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
11024 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
11025 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
11026 * linux-cris-low.c (cris_get_pc, cris_set_pc)
11027 (cris_cannot_fetch_register):
11028 (cris_breakpoint_at): Change prototype to take a regcache.
11029 Adjust.
11030 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
11031 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
11032 to take a regcache. Adjust.
11033 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
11034 Adjust.
11035 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
11036 take a regcache. Adjust.
11037 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
11038 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
11039 (m68k_set_pc): Change prototype to take a regcache. Adjust.
11040 * linux-mips-low.c (mips_get_pc):
11041 (mips_set_pc): Change prototype to take a regcache. Adjust.
11042 (mips_reinsert_addr): Adjust.
11043 (mips_collect_register): Change prototype to take a regcache.
11044 Adjust.
11045 (mips_supply_register):
11046 (mips_collect_register_32bit, mips_supply_register_32bit)
11047 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
11048 (mips_store_fpregset): Ditto.
11049 * linux-ppc-low.c (ppc_supply_ptrace_register)
11050 (ppc_supply_ptrace_register): Ditto.
11051 (parse_spufs_run): Adjust.
11052 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
11053 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
11054 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
11055 take a regcache. Adjust.
11056 * linux-s390-low.c (s390_collect_ptrace_register)
11057 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
11058 (s390_set_pc): Change prototype to take a regcache. Adjust.
11059 (s390_arch_setup): Adjust.
11060 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
11061 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
11062 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
11063 (sparc_fill_gregset, sparc_store_gregset_from_stack)
11064 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
11065 regcache. Adjust.
11066 (sparc_breakpoint_at): Adjust.
11067 * linux-xtensa-low.c (xtensa_fill_gregset):
11068 (xtensa_store_gregset):
11069 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
11070 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
11071 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
11072 prototype to take a regcache. Adjust.
11073 * win32-arm-low.c (arm_fetch_inferior_register)
11074 (arm_store_inferior_register): Change prototype to take a
11075 regcache. Adjust.
11076 * win32-i386-low.c (i386_fetch_inferior_register)
11077 (i386_store_inferior_register): Change prototype to take a
11078 regcache. Adjust.
11079 * win32-low.c (child_fetch_inferior_registers)
11080 (child_store_inferior_registers): Change prototype to take a
11081 regcache. Adjust.
11082 (win32_wait): Adjust.
11083 (win32_fetch_inferior_registers): Change prototype to take a
11084 regcache. Adjust.
11085 (win32_store_inferior_registers): Adjust.
11086 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
11087 store_inferior_register>: Change prototype to take a regcache.
11088
11089 2010-01-20 Doug Evans <dje@google.com>
11090
11091 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
11092 #ifdef.
11093 (linux_wait_for_event1, linux_init_signals): Ditto.
11094 (W_STOPCODE): Provide definition if missing.
11095
11096 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
11097
11098 * linux-low.c (linux_core_of_thread): New.
11099 (compare_ints, show_process, list_threads): New.
11100 (linux_qxfer_osdata): Report threads and cores.
11101 (linux_target_op): Register linux_core_of_thread.
11102 * remote-utils.c (prepare_resume_reply): Report the core.
11103 (buffer_xml_printf): Support %d specifier.
11104 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
11105 New.
11106 (handle_query): Handle qXfer:threads. Announce availability
11107 thereof.
11108 * target.h (struct target_ops): New field core_of_thread.
11109
11110 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11111
11112 * Makefile.in (clean): Remove new generated files.
11113 (reg-s390.o, reg-s390.c): Remove rules.
11114 (reg-s390x.o, reg-s390x.c): Likewise.
11115 (s390-linux32.o, s390-linux32.c): Add rules.
11116 (s390-linux64.o, s390-linux64.c): Likewise.
11117 (s390x-linux64.o, s390x-linux64.c): Likewise.
11118 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
11119 * linux-s390-low.c: Include <elf.h>.
11120 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11121 (init_registers_s390): Remove prototype.
11122 (init_registers_s390x): Likewise.
11123 (init_registers_s390_linux32): Add prototype.
11124 (init_registers_s390_linux64): Likewise.
11125 (init_registers_s390x_linux64): Likewise.
11126 (s390_num_regs_3264): New define.
11127 (s390_regmap_3264): New global variable.
11128 (s390_cannot_fetch_register): Remove obsolete check.
11129 (s390_cannot_store_register): Likewise.
11130 (s390_collect_ptrace_register): Handle upper/lower register halves.
11131 (s390_supply_ptrace_register): Likewise.
11132 (s390_fill_gregset): Update to register number changes.
11133 (s390_get_hwcap): New routine.
11134 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
11135 Install appropriate regmap and register set.
11136
11137 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11138
11139 * server.c (gdbserver_version): Update copyright year to 2010.
11140 * gdbreplay.c (gdbreplay_version): Likewise.
11141
11142 2009-12-28 Doug Evans <dje@google.com>
11143
11144 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
11145 elf/external.h. Include <elf.h> instead but only if necessary.
11146
11147 2009-12-28 Pedro Alves <pedro@codesourcery.com>
11148
11149 * linux-low.c (linux_remove_process): Remove `detaching'
11150 parameter. Don't release/detach from thread_db here.
11151 (linux_kill): Release/detach from thread_db here, ...
11152 (linux_detach): ... and here, before actually detaching.
11153 (linux_wait_1): ... and here, when a process exits.
11154 * thread-db.c (any_thread_of): New.
11155 (thread_db_free): Switch the current inferior to a thread of the
11156 passed in process.
11157
11158 2009-12-21 Doug Evans <dje@google.com>
11159
11160 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
11161
11162 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
11163 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
11164 warning ifndef __NR_tkill. Move setting of errno there too.
11165 Delete unnecessary resetting of errno after syscall.
11166 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
11167
11168 * configure.ac: Check for dladdr.
11169 * config.in: Regenerate.
11170 * configure: Regenerate.
11171 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
11172 (try_thread_db_load): Update.
11173
11174 * linux-low.c (my_waitpid): Delete unnecessary prototype.
11175
11176 2009-12-18 Doug Evans <dje@google.com>
11177
11178 * event-loop.c: Include unistd.h if it exists.
11179
11180 * linux-low.c (my_waitpid): Move definition away from being in
11181 between linux_tracefork_child/linux_test_for_tracefork.
11182
11183 * gdb_proc_service.h (psaddr_t): Fix type.
11184 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
11185 signature to match glibc.
11186
11187 2009-12-16 Doug Evans <dje@google.com>
11188
11189 * linux-low.c (linux_read_memory): Fix argument to read.
11190
11191 2009-11-26 Pedro Alves <pedro@codesourcery.com>
11192
11193 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
11194 events, don't leave current_inferior pointing at null.
11195
11196 2009-11-26 Pedro Alves <pedro@codesourcery.com>
11197
11198 * win32-low.c (LOG): Delete.
11199 (OUTMSG): Output to stderr.
11200 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
11201 on compile time LOG macro.
11202 (win32_wait): Fix debug output.
11203
11204 2009-11-26 Pedro Alves <pedro@codesourcery.com>
11205
11206 * win32-low.c (win32_add_one_solib): If the dll name is
11207 "ntdll.dll", prepend the system directory to the dll path.
11208
11209 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
11210
11211 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
11212
11213 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
11214 Vladimir Prus <vladimir@codesourcery.com>
11215
11216 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
11217 * configure.ac: Check for __mcoldfire__ and set
11218 gdb_cv_m68k_is_coldfire.
11219 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
11220 reg-cf.o and reg-m68k.o.
11221 * configure: Regenerated.
11222
11223 2009-11-16 Pedro Alves <pedro@codesourcery.com>
11224
11225 * linux-low.c (linux_remove_process): Add `detaching' parameter.
11226 Pass it to thread_db_free.
11227 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
11228 proper `detaching' argument to linux_remove_process.
11229 * linux-low.h (thread_db_free): Add `detaching' parameter.
11230 * thread-db.c (thread_db_init): Pass false as `detaching' argument
11231 to thread_db_free.
11232 (thread_db_free): Add `detaching' parameter. Only
11233 call td_ta_clear_event if detaching from process.
11234
11235 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
11236
11237 * thread-db.c (thread_db_free): Fix typo.
11238
11239 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
11240
11241 PR gdb/10838
11242 * thread-db.c (thread_db_free): Call td_ta_clear_event.
11243
11244 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
11245
11246 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
11247 with an i686 compiler.
11248 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
11249 needed.
11250 * configure: Rebuilt.
11251
11252 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
11253
11254 PR gdb/10783
11255
11256 * server.c (handle_search_memory_1): Correct read_addr initialization
11257 in loop for searching subsequent chunks.
11258
11259 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
11260
11261 * configure.ac: New --with-libthread-db option.
11262 * thread-db.c: Allow direct dependence on libthread_db.
11263 (thread_db_free): Adjust.
11264 * config.in: Regenerate.
11265 * configure: Likewise.
11266
11267 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
11268
11269 PR gdb/10757
11270 * thread-db.c (attach_thread): New function.
11271 (maybe_attach_thread): Return success/failure.
11272 (find_new_threads_callback): Adjust.
11273 (thread_db_find_new_threads): Loop until no new threads.
11274
11275 2009-10-13 Pedro Alves <pedro@codesourcery.com>
11276
11277 * proc-service.c (ps_lgetregs): Formatting.
11278
11279 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
11280
11281 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
11282 * configure.ac: Adjust.
11283 * linux-low.h (struct process_info_private): Move members to struct
11284 thread_db.
11285 (thread_db_free, thread_db_handle_monitor_command): New prototype.
11286 * linux-low.c (linux_remove_process): Adjust.
11287 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
11288 * server.c (handle_query): Move code ...
11289 (handle_monitor_command): ... here. New function.
11290 * target.h (struct target_ops): New member.
11291 * thread-db.c (struct thread_db): New.
11292 (libthread_db_search_path): New variable.
11293 (thread_db_create_event, thread_db_enable_reporting)
11294 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
11295 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
11296 (try_thread_db_load_1, dladdr_to_soname): New functions.
11297 (try_thread_db_load, thread_db_load_search): New functions.
11298 (thread_db_init): Search for libthread_db.
11299 (thread_db_free): New function.
11300 (thread_db_handle_monitor_command): Likewise.
11301 * config.in: Regenerate.
11302 * configure: Regenerate.
11303
11304 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
11305
11306 * spu-low.c (spu_kill): Wait for inferior to terminate.
11307 Call clear_inferiors.
11308 (spu_detach): Call clear_inferiors.
11309
11310 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11311
11312 * aclocal.m4: Regenerate.
11313 * config.in: Likewise.
11314 * configure: Likewise.
11315
11316 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
11317
11318 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
11319 (parse_spufs_run): New function.
11320 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
11321 (ppc_breakpoint_at): Handle SPU breakpoints.
11322
11323 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
11324
11325 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
11326 (SPUFS_MAGIC): Define.
11327 (spu_enumerate_spu_ids): New function.
11328 (linux_qxfer_spu): New function.
11329 (linux_target_ops): Install linux_qxfer_spu.
11330
11331 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
11332
11333 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
11334 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
11335 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
11336 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
11337 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
11338 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
11339 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
11340 (init_registers_powerpc_cell32l): Add prototype.
11341 (init_registers_powerpc_cell64l): Likewise.
11342 (ppc_arch_setup): Detect Cell/B.E. architecture.
11343
11344 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11345
11346 * Makefile.in (datarootdir): New variable.
11347
11348 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
11349
11350 * linux-low.c (linux_write_memory): Update debugging output.
11351 * Makefile.in (clean): Add new descriptions.
11352 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
11353 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
11354 * configure.srv: Add new files for arm*-*-linux*.
11355 * linux-arm-low.c: Add new declarations.
11356 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
11357 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
11358 (HWCAP_VFPv3D16): New.
11359 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
11360 instead of __IWMMXT__.
11361 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
11362 (arm_arch_setup): New.
11363 (target_regsets): Remove #ifdef. Add VFP regset.
11364 (the_low_target): Use arm_arch_setup.
11365
11366 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
11367
11368 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
11369 the main thread again.
11370
11371 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
11372
11373 Adding Neutrino gdbserver.
11374 * configure: Regenerated.
11375 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
11376 * configure.srv (i[34567]86-*-nto*): New target.
11377 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
11378 * remote-utils.c [__QNX__]: Include sys/iomgr.h
11379 (nto_comctrl) [__QNX__]: New function.
11380 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
11381
11382 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
11383
11384 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
11385 srv_tgtobj.
11386
11387 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
11388 Pedro Alves <pedro@codesourcery.com>
11389
11390 * win32-i386-low.c (i386_get_thread_context): Handle systems that
11391 don't support CONTEXT_EXTENDED_REGISTERS.
11392 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
11393 (the_low_target): Install them.
11394 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
11395 failing with ERROR_PIPE_NOT_CONNECTED.
11396
11397 2009-06-30 Doug Evans <dje@google.com>
11398 Pierre Muller <muller@ics.u-strasbg.fr>
11399
11400 Add h/w watchpoint support to x86-linux, win32-i386.
11401 * Makefile.in (SFILES): Add i386-low.c
11402 (i386_low_h): Define.
11403 (i386-low.o): Add dependencies.
11404 (linux-x86-low.o): Add i386-low.h dependency.
11405 (win32-i386-low.o): Ditto.
11406 * i386-low.c: New file.
11407 * i386-low.h: New file.
11408 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
11409 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
11410 * linux-low.c (linux_add_process): Initialize arch_private.
11411 (linux_remove_process): Free arch_private.
11412 (add_lwp): Initialize arch_private.
11413 (delete_lwp): Free arch_private.
11414 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
11415 provided.
11416 * linux-low.h (process_info_private): New member arch_private.
11417 (lwp_info): New member arch_private.
11418 (linux_target_ops): New members new_process, new_thread,
11419 prepare_to_resume.
11420 (ptid_of): New macro.
11421 * linux-x86-low.c: Include stddef.h, i386-low.h.
11422 (arch_process_info): New struct.
11423 (arch_lwp_info): New struct.
11424 (x86_linux_dr_get, x86_linux_dr_set): New functions.
11425 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
11426 (i386_dr_low_get_status): New function.
11427 (x86_insert_point, x86_remove_point): New functions.
11428 (x86_stopped_by_watchpoint): New function.
11429 (x86_stopped_data_address): New function.
11430 (x86_linux_new_process, x86_linux_new_thread): New functions.
11431 (x86_linux_prepare_to_resume): New function.
11432 (the_low_target): Add entries for insert_point, remove_point,
11433 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
11434 prepare_to_resume.
11435 * server.c (debug_hw_points): New global.
11436 (monitor_show_help): Document set debug-hw-points.
11437 (handle_query): Process "set debug-hw-points".
11438 * server.h (debug_hw_points): Declare.
11439 (paddress): Declare.
11440 * utils.c (NUMCELLS, CELLSIZE): New macros.
11441 (get_sell, xsnprintf, paddress): New functions.
11442 * win32-arm-low.c (the_low_target): Add entries for insert_point,
11443 remove_point, stopped_by_watchpoint, stopped_data_address.
11444 * win32-i386-low.c: Include i386-low.h.
11445 (debug_reg_state): Replaces dr.
11446 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
11447 (i386_dr_low_get_status): New function.
11448 (i386_insert_point, i386_remove_point): New functions.
11449 (i386_stopped_by_watchpoint): New function.
11450 (i386_stopped_data_address): New function.
11451 (i386_initial_stuff): Update.
11452 (get_thread_context,set_thread_context,i386_thread_added): Update.
11453 (the_low_target): Add entries for insert_point,
11454 remove_point, stopped_by_watchpoint, stopped_data_address.
11455 * win32-low.c (win32_insert_watchpoint): New function.
11456 (win32_remove_watchpoint): New function.
11457 (win32_stopped_by_watchpoint): New function.
11458 (win32_stopped_data_address): New function.
11459 (win32_target_ops): Add entries for insert_watchpoint,
11460 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
11461 * win32-low.h (win32_target_ops): New members insert_point,
11462 remove_point, stopped_by_watchpoint, stopped_data_address.
11463
11464 2009-06-25 Pedro Alves <pedro@codesourcery.com>
11465
11466 * server.c (process_serial_event): Re-return unsupported, not
11467 error, if the type isn't recognized. Re-allow supporting only
11468 insert or remove packets. Also call require_running for
11469 breakpoints. Add missing break statement to default case. Tidy.
11470 * target.h (struct target_ops): Rename insert_watchpoint to
11471 insert_point, and remove_watchpoint to remove_point.
11472
11473 * linux-low.h (struct linux_target_ops): Likewise.
11474 * linux-low.c (linux_insert_watchpoint): Rename to ...
11475 (linux_insert_point): ... this. Adjust.
11476 (linux_remove_watchpoint): Rename to ...
11477 (linux_remove_point): ... this. Adjust.
11478 (linux_target_ops): Adjust.
11479 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
11480 (cris_insert_point): ... this.
11481 (cris_remove_watchpoint): Rename to ...
11482 (cris_remove_point): ... this.
11483 (the_low_target): Adjust.
11484
11485 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
11486
11487 * server.c (handle_v_kill): Pass signal_pid to
11488 kill_inferior if multi_process is zero.
11489
11490 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
11491
11492 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
11493 * target.h (target_ops): Comment for *_watchpoint to make it clear
11494 the functions can get types '0' and '1'.
11495
11496 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
11497
11498 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
11499 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
11500 * regcache.c (get_regcache): Likewise.
11501 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
11502 * win32-low.c (child_fetch_inferior_registers): Remove check for
11503 regno 0.
11504
11505 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
11506 Pedro Alves <pedro@codesourcery.com>
11507
11508 * target.h (struct target_ops) <supports_multi_process>: New
11509 callback.
11510 (target_supports_multi_process): New.
11511 * server.c (handle_query): Even if GDB reports support, only
11512 enable multi-process if the target also supports it. Report
11513 multi-process support only if the target backend supports it.
11514 * linux-low.c (linux_supports_multi_process): New function.
11515 (linux_target_ops): Install it as target_supports_multi_process
11516 callback.
11517
11518 2009-05-24 Doug Evans <dje@google.com>
11519
11520 Global renaming of find_thread_pid to find_thread_ptid.
11521 * server.h (find_thread_ptid): Renamed from find_thread_pid.
11522 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
11523 All callers updated.
11524
11525 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
11526 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
11527 directly.
11528
11529 * linux-low.c (get_stop_pc): Print pc if debug_threads.
11530 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
11531 (linux_resume_one_lwp): Ditto.
11532
11533 2009-05-23 Doug Evans <dje@google.com>
11534
11535 * linux-low.c (linux_resume_one_lwp): Change type of first arg
11536 from struct inferior_list_entry * to struct lwp_info *.
11537 All callers updated.
11538
11539 2009-05-13 Doug Evans <dje@google.com>
11540
11541 * linux-x86-low.c: Don't include assert.h.
11542 (x86_siginfo_fixup): Use fatal, not assert.
11543 (x86_arch_setup): Fix comment.
11544
11545 2009-05-12 Doug Evans <dje@google.com>
11546
11547 Biarch support for i386/amd64 gdbserver.
11548 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
11549 Add linux-x86-low.c.
11550 (linux-i386-low.o, linux-x86-64-low.o): Delete.
11551 (linux-x86-low.o): Add.
11552 * linux-x86-64-low.c: Delete.
11553 * linux-i386-low.c: Delete.
11554 * linux-x86-low.c: New file.
11555 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
11556 linux-x86-low.o.
11557 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
11558 linux-x86-low.o.
11559 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
11560 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
11561 (linux_child_pid_to_exec_file): New function.
11562 (elf_64_header_p, elf_64_file_p): New functions.
11563 (siginfo_fixup): New function.
11564 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
11565 give target a chance to convert layout.
11566 * linux-low.h (linux_target_ops): New member siginfo_fixup.
11567 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
11568
11569 2009-05-07 Doug Evans <dje@google.com>
11570
11571 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
11572 (regsets_store_inferior_registers): Ditto.
11573
11574 2009-05-06 Pedro Alves <pedro@codesourcery.com>
11575
11576 PR server/10048
11577
11578 * linux-low.c (must_set_ptrace_flags): Delete.
11579 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
11580 of the global.
11581 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
11582 `lwp->must_set_ptrace_flags' instead.
11583 (linux_wait_for_event_1): Set ptrace options here.
11584 (linux_wait_1): ... not here.
11585
11586 2009-04-30 Doug Evans <dje@google.com>
11587
11588 * inferiors.c (started_inferior_callback): New function.
11589 (attached_inferior_callback): New function.
11590 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
11591 * server.c (print_started_pid, print_attached_pid): New functions.
11592 (detach_or_kill_for_exit): New function.
11593 (main): Call it instead of for_each_inferior (kill_inferior_callback).
11594 * server.h (have_started_inferiors_p): Declare.
11595 (have_attached_inferiors_p): Declare.
11596
11597 * inferiors.c (remove_process): Fix memory leak, free process.
11598 * linux-low.c (linux_remove_process): New function.
11599 (linux_kill): Call it instead of remove_process.
11600 (linux_detach, linux_wait_1): Ditto.
11601
11602 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
11603
11604 * configure.srv: Add x86 Windows CE target.
11605
11606 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
11607
11608 * inferiors.c (get_thread_process): Make global.
11609 * server.h (get_thread_process): Add prototype.
11610 * thread-db.c (find_one_thread): Use get_thread_process
11611 instead of current_process.
11612 (thread_db_get_tls_address): Do not crash if called when
11613 thread layer is not yet initialized.
11614
11615 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
11616
11617 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
11618 * spu-low.c (current_tid): Rename to ...
11619 (current_ptid): ... this.
11620 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
11621 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
11622 ptid_get_lwp (current_ptid) instead of current_tid.
11623 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
11624 instead of current_tid. Use find_process_pid to verify pid
11625 argument is valid. Pass proper argument to remove_process.
11626 (spu_thread_alive): Compare current_ptid instead of current_tid.
11627 (spu_resume): Likewise.
11628
11629 2009-04-02 Pedro Alves <pedro@codesourcery.com>
11630
11631 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
11632 variable.
11633
11634 2009-04-01 Pedro Alves <pedro@codesourcery.com>
11635
11636 Implement the multiprocess extensions, and add linux multiprocess
11637 support.
11638
11639 * server.h (ULONGEST): Declare.
11640 (struct ptid, ptid_t): New.
11641 (minus_one_ptid, null_ptid): Declare.
11642 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
11643 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
11644 (struct inferior_list_entry): Change `id' type from unsigned from
11645 to ptid_t.
11646 (struct sym_cache, struct breakpoint, struct
11647 process_info_private): Forward declare.
11648 (struct process_info): Declare.
11649 (current_process): Declare.
11650 (all_processes): Declare.
11651 (initialize_inferiors): Declare.
11652 (add_thread): Adjust to use ptid_t.
11653 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
11654 (add_process, remove_process, find_thread_pid): Declare.
11655 (find_inferior_id): Adjust to use ptid_t.
11656 (cont_thread, general_thread, step_thread): Change type to ptid_t.
11657 (multi_process): Declare.
11658 (push_event): Adjust to use ptid_t.
11659 (read_ptid, write_ptid): Declare.
11660 (prepare_resume_reply): Adjust to use ptid_t.
11661 (clear_symbol_cache): Declare.
11662 * inferiors.c (all_processes): New.
11663 (null_ptid, minus_one_ptid): New.
11664 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
11665 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
11666 (add_thread): Change unsigned long to ptid. Remove gdb_id
11667 parameter. Adjust.
11668 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
11669 (gdb_id_to_thread): Rename to ...
11670 (find_thread_pid): ... this. Change unsigned long to ptid.
11671 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
11672 (loaded_dll, pull_pid_from_list): Adjust.
11673 (add_process, remove_process, find_process_pid)
11674 (get_thread_process, current_process, initialize_inferiors): New.
11675 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
11676 (struct target_waitstatus) <related_pid>: Ditto.
11677 (struct target_ops) <kill, detach>: Add `pid' argument. Change
11678 return type to int.
11679 (struct target_ops) <join>: Add `pid' argument.
11680 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
11681 (struct target_ops) <wait>: Add `ptid' field. Change return type
11682 to ptid.
11683 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
11684 (mywait): Add `ptid' argument. Change return type to ptid_t.
11685 (target_pid_to_str): Declare.
11686 * target.c (set_desired_inferior): Adjust to use ptids.
11687 (mywait): Add new `ptid' argument. Adjust.
11688 (target_pid_to_str): New.
11689 * mem-break.h (free_all_breakpoints): Declare.
11690 * mem-break.c (breakpoints): Delelete.
11691 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
11692 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
11693 to use per-process breakpoint list.
11694 (free_all_breakpoints): New.
11695 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
11696 (symbol_cache, all_symbols_looked_up): Delete.
11697 (hexchars): New.
11698 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
11699 read_ptid): New.
11700 (prepare_resume_reply): Change ptid argument's type from unsigned
11701 long to ptid_t. Adjust. Implement W;process and X;process.
11702 (free_sym_cache, clear_symbol_cache): New.
11703 (look_up_one_symbol): Adjust to per-process symbol cache. *
11704 * server.c (cont_thread, general_thread, step_thread): Change type
11705 to ptid_t.
11706 (attached): Delete.
11707 (multi_process): New.
11708 (last_ptid): Change type to ptid_t.
11709 (struct vstop_notif) <ptid>: Change type to ptid_t.
11710 (queue_stop_reply, push_event): Change `ptid' argument's type to
11711 ptid_t.
11712 (discard_queued_stop_replies): Add `pid' argument.
11713 (start_inferior): Adjust to use ptids. Adjust to mywait interface
11714 changes. Don't reference the `attached' global.
11715 (attach_inferior): Adjust to mywait interface changes.
11716 (handle_query): Adjust to use ptids. Parse GDB's qSupported
11717 features. Handle and report "multiprocess+". Handle
11718 "qAttached:PID".
11719 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
11720 changes.
11721 (handle_v_kill): New.
11722 (handle_v_stopped): Adjust to use target_pid_to_str.
11723 (handle_v_requests): Allow multiple attaches and runs when
11724 multiprocess extensions are in effect. Handle "vKill".
11725 (myresume): Adjust to use ptids.
11726 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
11727 (handle_status): Adjust to discard_queued_stop_replies interface
11728 change.
11729 (first_thread_of, kill_inferior_callback)
11730 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
11731 (main): Call initialize_inferiors. Adjust to use ptids, killing
11732 and detaching from all inferiors. Handle multiprocess packet
11733 variants.
11734 * linux-low.h: Include gdb_proc_service.h.
11735 (struct process_info_private): New.
11736 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
11737 <lwpid_of>: Use ptid_get_lwp.
11738 (get_lwp_thread): Adjust.
11739 (struct lwp_info): Add `dead' member.
11740 (find_lwp_pid): Declare.
11741 * linux-low.c (thread_db_active): Delete.
11742 (new_inferior): Adjust comment.
11743 (inferior_pid): Delete.
11744 (linux_add_process): New.
11745 (handle_extended_wait): Adjust.
11746 (add_lwp): Change unsigned long to ptid.
11747 (linux_create_inferior): Add process to processes table. Adjust
11748 to use ptids. Don't set new_inferior here.
11749 (linux_attach_lwp): Rename to ...
11750 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
11751 it. Adjust to use ptids.
11752 (linux_attach_lwp): New.
11753 (linux_attach): Add process to processes table. Don't set
11754 new_inferior here.
11755 (struct counter): New.
11756 (second_thread_of_pid_p, last_thread_of_process_p): New.
11757 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
11758 multiple processes.
11759 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
11760 processes. Remove process from process table.
11761 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
11762 to multiple processes.
11763 (any_thread_of): New.
11764 (linux_detach): Add `pid' argument, and handle it. Remove process
11765 from processes table.
11766 (linux_join): Add `pid' argument. Handle it.
11767 (linux_thread_alive): Change unsighed long argument to ptid_t.
11768 Consider dead lwps as not being alive.
11769 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
11770 threads we're not interested in.
11771 (same_lwp, find_lwp_pid): New.
11772 (linux_wait_for_lwp): Change `pid' argument's type from int to
11773 ptid_t. Adjust.
11774 (linux_wait_for_event): Rename to ...
11775 (linux_wait_for_event_1): ... this. Change `pid' argument's type
11776 from int to ptid_t. Adjust.
11777 (linux_wait_for_event): New.
11778 (linux_wait_1): Add `ptid' argument. Change return type to
11779 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
11780 that exit from the process table.
11781 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
11782 Adjust.
11783 (mark_lwp_dead): New.
11784 (wait_for_sigstop): Adjust to use ptids. If a process exits while
11785 stopping all threads, mark its main lwp as dead.
11786 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
11787 ptids.
11788 (fetch_register, usr_store_inferior_registers)
11789 (regsets_fetch_inferior_registers)
11790 (regsets_store_inferior_registers, linux_read_memory)
11791 (linux_write_memory): Inline `inferior_pid'.
11792 (linux_look_up_symbols): Adjust to use per-process
11793 `thread_db_active'.
11794 (linux_request_interrupt): Adjust to use ptids.
11795 (linux_read_auxv): Inline `inferior_pid'.
11796 (initialize_low): Don't reference thread_db_active.
11797 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
11798 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
11799 (ps_getpid): Return the pid of the current inferior.
11800 * thread-db.c (proc_handle, thread_agent): Delete.
11801 (thread_db_create_event, thread_db_enable_reporting): Adjust to
11802 per-process data.
11803 (find_one_thread): Change argument type to ptid_t. Adjust to
11804 per-process data.
11805 (maybe_attach_thread): Adjust to per-process data and ptids.
11806 (thread_db_find_new_threads): Ditto.
11807 (thread_db_init): Ditto.
11808 * spu-low.c (spu_create_inferior, spu_attach): Add process to
11809 processes table. Adjust to use ptids.
11810 (spu_kill, spu_detach): Adjust interface. Remove process from
11811 processes table.
11812 (spu_join, spu_thread_alive): Adjust interface.
11813 (spu_wait): Adjust interface. Remove process from processes
11814 table. Adjust to use ptids.
11815 * win32-low.c (current_inferior_tid): Delete.
11816 (current_inferior_ptid): New.
11817 (debug_event_ptid): New.
11818 (thread_rec): Take a ptid. Adjust.
11819 (child_add_thread): Add `pid' argument. Adjust to use ptids.
11820 (child_delete_thread): Ditto.
11821 (do_initial_child_stuff): Add `attached' argument. Add process to
11822 processes table.
11823 (child_fetch_inferior_registers, child_store_inferior_registers):
11824 Adjust.
11825 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
11826 (win32_attach): Pass 1 to do_initial_child_stuff.
11827 (win32_kill): Adjust interface. Remove process from processes
11828 table.
11829 (win32_detach): Ditto.
11830 (win32_join): Adjust interface.
11831 (win32_thread_alive): Take a ptid.
11832 (win32_resume): Adjust to use ptids.
11833 (get_child_debug_event): Ditto.
11834 (win32_wait): Adjust interface. Remove exiting process from
11835 processes table.
11836
11837 2009-04-01 Pedro Alves <pedro@codesourcery.com>
11838
11839 Non-stop mode support.
11840
11841 * server.h (non_stop): Declare.
11842 (gdb_client_data, handler_func): Declare.
11843 (delete_file_handler, add_file_handler, start_event_loop):
11844 Declare.
11845 (handle_serial_event, handle_target_event, push_event)
11846 (putpkt_notif): Declare.
11847 * target.h (enum resume_kind): New.
11848 (struct thread_resume): Replace `step' field by `kind' field.
11849 (TARGET_WNOHANG): Define.
11850 (struct target_ops) <wait>: Add `options' argument.
11851 <supports_non_stop, async, start_non_stop>: New fields.
11852 (target_supports_non_stop, target_async): New.
11853 (start_non_stop): Declare.
11854 (mywait): Add `options' argument.
11855 * target.c (mywait): Add `options' argument. Print child exit
11856 notifications here.
11857 (start_non_stop): New.
11858 * server.c (non_stop, own_buf, mem_buf): New globals.
11859 (struct vstop_notif): New.
11860 (notif_queue): New global.
11861 (queue_stop_reply, push_event, discard_queued_stop_replies)
11862 (send_next_stop_reply): New.
11863 (start_inferior): Adjust to use resume_kind. Adjust to mywait
11864 interface changes.
11865 (attach_inferior): In non-stop mode, don't wait for the target
11866 here.
11867 (handle_general_set): Handle QNonStop.
11868 (handle_query): When handling qC, return the current general
11869 thread, instead of the first thread of the list.
11870 (handle_query): If the backend supports non-stop mode, include
11871 QNonStop+ in the qSupported query response.
11872 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
11873 and non-stop mode.
11874 (handle_v_attach, handle_v_run): Handle non-stop mode.
11875 (handle_v_stopped): New.
11876 (handle_v_requests): Report support for vCont;t. Handle vStopped.
11877 (myresume): Adjust to use resume_kind. Handle non-stop.
11878 (queue_stop_reply_callback): New.
11879 (handle_status): Handle non-stop mode.
11880 (main): Clear non_stop flag on reconnection. Use the event-loop.
11881 Refactor serial protocol handling from here ...
11882 (process_serial_event): ... to this new function. When GDB
11883 selects any thread, select one here. In non-stop mode, wait until
11884 GDB acks all pending events before exiting.
11885 (handle_serial_event, handle_target_event): New.
11886 * remote-utils.c (remote_open): Install remote_desc in the event
11887 loop.
11888 (remote_close): Remove remote_desc from the event loop.
11889 (putpkt_binary): Rename to...
11890 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
11891 (putpkt_binary): New as wrapper around putpkt_binary_1.
11892 (putpkt_notif): New.
11893 (prepare_resume_reply): In non-stop mode, don't change the
11894 general_thread.
11895 * event-loop.c: New.
11896 * Makefile.in (OBJ): Add event-loop.o.
11897 (event-loop.o): New rule.
11898
11899 * linux-low.h (pid_of): Moved here.
11900 (lwpid_of): New.
11901 (get_lwp_thread): Use lwpid_of.
11902 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
11903 * linux-low.c (pid_of): Delete.
11904 (inferior_pid): Use lwpid_of.
11905 (linux_event_pipe): New.
11906 (target_is_async_p): New.
11907 (delete_lwp): New.
11908 (handle_extended_wait): Use lwpid_of.
11909 (add_lwp): Don't set lwpid field.
11910 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
11911 (linux_kill_one_lwp): If killing a running lwp, stop it first.
11912 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
11913 (linux_detach_one_lwp): If detaching from a running lwp, stop it
11914 first. Adjust to linux_wait_for_event interface changes. Use
11915 lwpid_of.
11916 (linux_detach): Don't delete the main lwp here.
11917 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
11918 (status_pending_p): Don't consider explicitly suspended lwps.
11919 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
11920 pointer. Add OPTIONS argument. Change return type to int. Use
11921 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
11922 (linux_wait_for_event): Take an integer pid instead of a lwp_info
11923 pointer. Add status pointer argument. Return a pid instead of a
11924 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
11925 changes. In non-stop mode, don't switch to a random thread.
11926 (linux_wait): Rename to...
11927 (linux_wait_1): ... this. Add target_options argument, and handle
11928 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
11929 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
11930 clean exit and signal exit code. Don't stop all threads in
11931 non-stop mode. In all-stop mode, only stop all threads when
11932 reporting a stop to GDB. Handle explicit thread stop requests.
11933 (async_file_flush, async_file_mark): New.
11934 (linux_wait): New.
11935 (send_sigstop): Use lwpid_of.
11936 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
11937 interface changes. In non-stop mode, don't switch to a random
11938 thread.
11939 (linux_resume_one_lwp): Use lwpid_of.
11940 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
11941 (linux_resume_one_thread): ... this. Handle resume_stop. In
11942 non-stop mode, don't look for pending flag in all threads.
11943 (resume_status_pending_p): Don't consider explicitly suspended
11944 threads.
11945 (my_waitpid): Reimplement. Emulate __WALL.
11946 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
11947 Use lwpid_of.
11948 (sigchld_handler, linux_supports_non_stop, linux_async)
11949 (linux_start_non_stop): New.
11950 (linux_target_ops): Register linux_supports_non_stop, linux_async
11951 and linux_start_non_stop.
11952 (initialize_low): Install SIGCHLD handler.
11953 * thread-db.c (thread_db_create_event, find_one_thread)
11954 (thread_db_get_tls_address): Use lwpid_of.
11955 * win32-low.c (win32_detach): Adjust to use resume_kind.
11956 (win32_wait): Add `options' argument.
11957 * spu-low.c (spu_resume): Adjust to use resume_kind.
11958 (spu_wait): Add `options' argument.
11959
11960 2009-04-01 Pedro Alves <pedro@codesourcery.com>
11961
11962 Decouple target code from remote protocol.
11963
11964 * target.h (enum target_waitkind): New.
11965 (struct target_waitstatus): New.
11966 (struct target_ops) <wait>: Return an unsigned long. Take a
11967 target_waitstatus pointer instead of a char pointer.
11968 (mywait): Likewise.
11969 * target.c (mywait): Change prototype to return an unsigned long.
11970 Take a target_waitstatus pointer instead of a char pointer. Adjust.
11971 * server.h (thread_from_wait, old_thread_from_wait): Delete
11972 declarations.
11973 (prepare_resume_reply): Change prototype to take a
11974 target_waitstatus.
11975 * server.c (thread_from_wait, old_thread_from_wait): Delete.
11976 (last_status, last_ptid): New.
11977 (start_inferior): Remove "statusptr" argument. Adjust. Return a
11978 pid instead of a signal.
11979 (attach_inferior): Remove "status" and "signal" parameters.
11980 Adjust.
11981 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
11982 not as an address.
11983 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
11984 (handle_v_requests, myresume): Remove "status" and "signal"
11985 parameters. Adjust.
11986 (handle_status): New.
11987 (main): Delete local `status'. Adjust.
11988 * remote-utils.c: Include target.h.
11989 (prepare_resume_reply): Change prototype to take a
11990 target_waitstatus. Adjust.
11991
11992 * linux-low.c (linux_wait): Adjust to new target_ops->wait
11993 interface.
11994 * spu-low.c (spu_wait): Adjust.
11995 * win32-low.c (enum target_waitkind, struct target_waitstatus):
11996 Delete.
11997 (win32_wait): Adjust.
11998
11999 2009-04-01 Pedro Alves <pedro@codesourcery.com>
12000
12001 * target.h (struct thread_resume): Delete leave_stopped member.
12002 (struct target_ops): Add a `n' argument to the `resume' callback.
12003 * server.c (start_inferior): Adjust.
12004 (handle_v_cont, myresume): Adjust.
12005 * linux-low.c (check_removed_breakpoint): Adjust to resume
12006 interface change, and to removed leave_stopped field.
12007 (resume_ptr): Delete.
12008 (struct thread_resume_array): New.
12009 (linux_set_resume_request): Add new `arg' parameter. Adjust to
12010 resume interface change.
12011 (linux_continue_one_thread, linux_queue_one_thread)
12012 (resume_status_pending_p): Check if the resume field is NULL
12013 instead of checking the leave_stopped member.
12014 (linux_resume): Adjust to the target resume interface change.
12015 * spu-low.c (spu_resume): Adjust to the target resume interface
12016 change.
12017 * win32-low.c (win32_detach, win32_resume): Ditto.
12018
12019 2009-04-01 Pedro Alves <pedro@codesourcery.com>
12020
12021 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
12022 flag.
12023 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
12024 pending.
12025 (linux_continue_one_thread): Only preserve the stepping flag if
12026 there's a pending breakpoint.
12027
12028 2009-03-31 Pedro Alves <pedro@codesourcery.com>
12029
12030 * server.c (main): After the inferior having exited, call
12031 remote_close before exiting gdbserver.
12032
12033 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
12034
12035 Fix size of FPSCR in Power 7 processors.
12036 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
12037 (PPC_FEATURE_HAS_DFP): New #define.
12038 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
12039 size of the FPSCR.
12040
12041 2009-03-23 Pedro Alves <pedro@codesourcery.com>
12042
12043 * server.c (handle_query) Whitespace and formatting.
12044
12045 2009-03-22 Pedro Alves <pedro@codesourcery.com>
12046
12047 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
12048 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
12049 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
12050 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
12051 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
12052 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
12053 Makefile.in, configure.ac: Fix whitespace throughout.
12054 * configure: Regenerate.
12055
12056 2009-03-22 Pedro Alves <pedro@codesourcery.com>
12057
12058 * inferiors.c (find_inferior): Make it safe for the callback
12059 function to delete the currently iterated inferior.
12060
12061 2009-03-22 Pedro Alves <pedro@codesourcery.com>
12062
12063 * Makefile.in (linuw_low_h): Move higher.
12064 (thread-db.o): Depend on $(linux_low_h).
12065
12066 2009-03-17 Pedro Alves <pedro@codesourcery.com>
12067
12068 Rename "process" to "lwp" throughout.
12069
12070 * linux-low.c (all_processes): Rename to...
12071 (all_lwps): ... this.
12072 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
12073 (add_process): Rename to ...
12074 (add_lwp): ... this. Adjust.
12075 (linux_create_inferior): Adjust.
12076 (linux_attach_lwp): Adjust.
12077 (linux_attach): Adjust.
12078 (linux_kill_one_process): Rename to ...
12079 (linux_kill_one_lwp): ... this. Adjust.
12080 (linux_kill): Adjust.
12081 (linux_detach_one_process): Rename to ...
12082 (linux_detach_one_lwp): ... this. Adjust.
12083 (linux_detach): Adjust.
12084 (check_removed_breakpoint): Adjust.
12085 (status_pending_p): Adjust.
12086 (linux_wait_for_process): Rename to ...
12087 (linux_wait_for_lwp): ... this. Adjust.
12088 (linux_wait_for_event): Adjust.
12089 (send_sigstop): Adjust.
12090 (wait_for_sigstop): Adjust.
12091 (stop_all_processes): Rename to ...
12092 (stop_all_lwps): ... this.
12093 (linux_resume_one_process): Rename to ...
12094 (linux_resume_one_lwp): ... this. Adjust.
12095 (linux_set_resume_request, linux_continue_one_thread)
12096 (linux_queue_one_thread, resume_status_pending_p)
12097 (usr_store_inferior_registers, regsets_store_inferior_registers)
12098 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
12099 Adjust.
12100 * linux-low.h (get_process): Rename to ...
12101 (get_lwp): ... this. Adjust.
12102 (get_thread_process): Rename to ...
12103 (get_thread_lwp): ... this. Adjust.
12104 (get_process_thread): Rename to ...
12105 (get_lwp_thread): ... this. Adjust.
12106 (struct process_info): Rename to ...
12107 (struct lwp_info): ... this.
12108 (all_processes): Rename to ...
12109 (all_lwps): ... this.
12110 * proc-service.c (ps_lgetregs): Adjust.
12111 * thread-db.c (thread_db_create_event, find_one_thread)
12112 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
12113
12114 2009-03-14 Pedro Alves <pedro@codesourcery.com>
12115
12116 * server.c (handle_query): Handle "qAttached".
12117
12118 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
12119
12120 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
12121 GPLv3, update license URL.
12122
12123 2009-03-01 Doug Evans <dje@google.com>
12124
12125 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
12126 (server_h): Add gdb_signals.h.
12127 (signals.o): Update.
12128 * server.h (target_signal_from_host,target_signal_to_host_p)
12129 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
12130
12131 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12132
12133 * remote-utils.c (getpkt): Also generate remote-debug
12134 information if noack_mode is set.
12135
12136 2009-02-06 Pedro Alves <pedro@codesourcery.com>
12137
12138 * server.c (handle_query): Report qXfer:siginfo:read and
12139 qXfer:siginfo:write as supported and handle them.
12140 * target.h (struct target_ops) <qxfer_siginfo>: New field.
12141 * linux-low.c (linux_xfer_siginfo): New.
12142 (linux_target_ops): Set it.
12143
12144 2009-01-26 Pedro Alves <pedro@codesourcery.com>
12145
12146 * server.c (gdbserver_usage): Mention --remote-debug.
12147 (main): Accept '--remote-debug' switch.
12148
12149 2009-01-18 Doug Evans <dje@google.com>
12150
12151 * regcache.c (new_register_cache): No need to check result of xcalloc.
12152 * server.c (handle_search_memory): Back out calls to xmalloc,
12153 result is checked and error is returned to user upon failure.
12154 (handle_query): Ditto. Add more checks for result of malloc.
12155 (handle_v_cont): Check result of malloc, report error back to
12156 user upon failure.
12157 (handle_v_run): Ditto. Call freeargv.
12158 * server.h (freeargv): Declare.
12159 * utils.c (freeargv): New fn.
12160
12161 2009-01-15 Doug Evans <dje@google.com>
12162
12163 * gdbreplay.c (perror_with_name): Make arg const char *.
12164 * server.h (target_signal_to_name): Make return type const char *.
12165 * thread-db.c (thread_db_err_str): Make return type const char *.
12166 * utils.c (perror_with_name): Make arg const char *.
12167
12168 2009-01-14 Pedro Alves <pedro@codesourcery.com>
12169
12170 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
12171 when handling a EXIT_PROCESS_DEBUG_EVENT.
12172
12173 2009-01-06 Joel Brobecker <brobecker@adacore.com>
12174
12175 * gdbreplay.c (gdbreplay_version): Update copyright year.
12176 * server.c (gdbserver_version): Likewise.
12177
12178 2009-01-05 Doug Evans <dje@google.com>
12179
12180 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
12181 (handle_extended_wait): Improve comment.
12182
12183 2008-12-13 Doug Evans <dje@google.com>
12184
12185 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
12186 * server.h (ATTR_MALLOC): New macro.
12187 (xmalloc,xcalloc,xstrdup): Declare.
12188 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
12189 * inferiors.c: Ditto.
12190 * linux-low.c: Ditto.
12191 * mem-break.c: Ditto.
12192 * regcache.c: Ditto.
12193 * remote-utils.c: Ditto.
12194 * server.c: Ditto.
12195 * target.c: Ditto.
12196 * win32-low.c: Ditto.
12197
12198 2008-12-12 Doug Evans <dje@google.com>
12199
12200 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
12201 in debugging printf.
12202
12203 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
12204
12205 2008-12-09 Doug Evans <dje@google.com>
12206
12207 * linux-low.h (struct process_info): Delete member tid, unused.
12208 * thread-db.c (find_one_thread): Update.
12209 (maybe_attach_thread): Update.
12210
12211 2008-12-02 Pedro Alves <pedro@codesourcery.com>
12212
12213 * target.h (struct target_ops): Add qxfer_osdata member.
12214 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
12215 and dirent.h.
12216 (linux_qxfer_osdata): New functions.
12217 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
12218 callback.
12219 * server.c (handle_query): Handle "qXfer:osdata:read:".
12220 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
12221 (buffer_xml_printf): New functions.
12222 * server.h (struct buffer): New.
12223 (buffer_grow_str, buffer_grow_str0): New macros.
12224 (buffer_grow, buffer_free, buffer_init, buffer_finish)
12225 (buffer_xml_printf): Declare.
12226
12227 2008-11-24 Doug Evans <dje@google.com>
12228
12229 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
12230
12231 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
12232
12233 * server.c (handle_v_run): Always use the supplied argument list.
12234
12235 2008-11-19 Bob Wilson <bob.wilson@acm.org>
12236
12237 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
12238 (xtensa_regmap_table): Add entry for scompare1.
12239
12240 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
12241
12242 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
12243 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
12244 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
12245 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
12246 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
12247 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
12248 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
12249 XML target descriptions.
12250 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
12251 when inferior is running on an ISA 2.05 or later processor. Add
12252 special case to return offset for full 64-bit slot of FPSCR when
12253 in 32-bits.
12254
12255 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
12256
12257 * Makefile.in (SFILES, clean): Added sparc64 files.
12258 (reg-sparc64.o, reg-sparc64.c): New.
12259 * configure.srv (sparc*-*-linux*): New configuration.
12260 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
12261 syscall arguments for SPARC.
12262 (regsets_store_inferior_registers): Likewise.
12263 * linux-sparc-low.c: New file.
12264
12265 2008-10-21 Doug Evans <dje@google.com>
12266
12267 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
12268 (READLINE_DIR,READLINE_DEP): Delete.
12269 (INTERNAL_CFLAGS): Update.
12270 (LINTFLAGS): Update.
12271
12272 2008-10-10 Pedro Alves <pedro@codesourcery.com>
12273
12274 * server.c (handle_v_run): If GDB didn't specify an argv, use the
12275 whole argv from the last run, not just argv[0].
12276
12277 2008-09-08 Pedro Alves <pedro@codesourcery.com>
12278
12279 * regcache.c (new_register_cache): Return NULL if the register
12280 cache size isn't known yet.
12281 (free_register_cache): Avoid dereferencing a NULL regcache.
12282
12283 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
12284
12285 * configure.srv: Merge MIPS and MIPS64.
12286
12287 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
12288
12289 * Makefile.in (uninstall): Apply $(EXEEXT) too.
12290
12291 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
12292
12293 * Makefile.in: Add required vsx dependencies.
12294
12295 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
12296 Declare init_registers_powerpc_vsx32l.
12297 Declare init_registers_powerpc_vsx64l.
12298 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
12299 (ppc_arch_setup): Check for VSX in hwcap.
12300 (ppc_fill_vsxregset): New function.
12301 (ppc_store_vsxregset): New function.
12302 Add new VSX entry in regset_info target_regsets.
12303
12304 * configure.srv: Add new VSX dependencies.
12305
12306 2008-08-12 Pedro Alves <pedro@codesourcery.com>
12307
12308 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
12309 (remote_open): Set or clear transport_is_reliable.
12310 (putpkt_binary): Don't expect acks in noack mode.
12311 (getpkt): Don't send ack/nac in noack mode.
12312 * server.c (handle_general_set): Handle QStartNoAckMode.
12313 (handle_query): If connected by tcp pass QStartNoAckMode+ in
12314 qSupported.
12315 (main): Reset noack_mode on every connection.
12316 * server.h (noack_mode): Declare.
12317
12318 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12319
12320 * Makefile.in (GDBREPLAY_OBS): New variable.
12321 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
12322
12323 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
12324 Daniel Jacobowitz <dan@codesourcery.com>
12325
12326 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
12327 (usr_store_inferior_registers): Likewise.
12328 (regsets_store_inferior_registers): Likewise.
12329
12330 2008-07-31 Rolf Jansen <rj@surtec.com>
12331 Pedro Alves <pedro@codesourcery.com>
12332
12333 * configure.ac: Check for memmem declaration.
12334 * server.c [HAVE_MALLOC_H]: Include malloc.h.
12335 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
12336 (disable_packet_qfThreadInfo): Unconditionally compile.
12337 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
12338 * configure, config.in: Regenerate.
12339
12340 2008-07-28 Doug Kwan <dougkwan@google.com>
12341
12342 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
12343 (linux_write_memory): Remove declaration of errno.
12344
12345 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
12346
12347 * linux-low.c (handle_extended_wait): Do not use "status"
12348 variable uninitialized.
12349
12350 2008-07-07 Pedro Alves <pedro@codesourcery.com>
12351
12352 * server.c (handle_v_attach): Inhibit reporting dll changes.
12353
12354 2008-06-27 Pedro Alves <pedro@codesourcery.com>
12355
12356 * remote-utils.c (prepare_resume_reply): If requested, don't
12357 output "thread:TID" in the T stop reply.
12358
12359 * server.c (disable_packet_vCont, disable_packet_Tthread)
12360 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
12361 (handle_query): If requested, disable support for qC, qfThreadInfo
12362 and qsThreadInfo.
12363 (handle_v_requests): If requested, disable support for vCont.
12364 (gdbserver_show_disableable): New.
12365 (main): Handle --disable-packet and --disable-packet=LIST.
12366
12367 * server.h (disable_packet_vCont, disable_packet_Tthread)
12368 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
12369
12370 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
12371
12372 * server.c (gdbserver_usage): Mention --version.
12373
12374 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
12375
12376 * Makefile.in (gdbreplay.o): New rule.
12377
12378 2008-06-06 Joseph Myers <joseph@codesourcery.com>
12379
12380 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
12381 message, not gdbserver.
12382
12383 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
12384 Nathan Sidwell <nathan@codesourcery.com>
12385 Joseph Myers <joseph@codesourcery.com>
12386
12387 * acinclude.m4: Include ../../config/acx.m4.
12388 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
12389 * configure, config.in: Regenerate.
12390 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
12391 * server.c (gdbserver_version): Print PKGVERSION.
12392 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
12393 (main): Adjust gdbserver_usage calls.
12394 * gdbreplay.c (version, host_name): Add declarations.
12395 (gdbreplay_version, gdbreplay_usage): New.
12396 (main): Accept --version and --help options.
12397
12398 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
12399
12400 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
12401 (arm_breakpoint_at): Handle Thumb.
12402 (the_low_target): Add comment.
12403
12404 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
12405
12406 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
12407
12408 2008-05-09 Doug Evans <dje@google.com>
12409
12410 * server.h (decode_search_memory_packet): Declare.
12411 * remote-utils.c (decode_search_memory_packet): New fn.
12412 * server.c (handle_search_memory_1): New fn.
12413 (handle_search_memory): New fn.
12414 (handle_query): Process qSearch:memory packets.
12415
12416 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
12417
12418 * regcache.c (registers_length): Remove.
12419 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
12420 full register packet.
12421 * regcache.h (registers_length): Remove prototype.
12422 * server.h (PBUFSIZ): Define to 16384.
12423
12424 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
12425
12426 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
12427 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
12428 powerpc-64l.o, and powerpc-altivec64l.o.
12429 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
12430 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
12431 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
12432 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
12433 rs6000/power-linux.xml, and rs6000/power64-linux.xml
12434 to srv_xmlfiles.
12435
12436 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
12437 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
12438 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
12439 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
12440 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
12441 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
12442 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
12443 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
12444 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
12445 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
12446 (clean): Update.
12447
12448 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
12449 (init_registers_powerpc_32l): ... this new prototype.
12450 (init_registers_powerpc_32): Remove, replace by ...
12451 (init_registers_powerpc_altivec32l): ... this new prototype.
12452 (init_registers_powerpc_e500): Remove, replace by ...
12453 (init_registers_powerpc_e500l): ... this new prototype.
12454 (init_registers_ppc64): Remove, replace by ...
12455 (init_registers_powerpc_64l): ... this new prototype.
12456 (init_registers_powerpc_64): Remove, replace by ...
12457 (init_registers_powerpc_altivec64l): ... this new prototype.
12458 (ppc_num_regs): Set to 73.
12459 (PT_ORIG_R3, PT_TRAP): Define if necessary.
12460 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
12461 (ppc_cannot_store_register): Handle orig_r3 and trap.
12462 (ppc_arch_setup): Update init_registers_... calls.
12463 (ppc_fill_gregset): Handle orig_r3 and trap.
12464
12465 * inferiors.c (clear_inferiors): Reset current_inferior.
12466
12467 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
12468
12469 * acinclude.m4: Add override.m4.
12470 * configure: Regenerate.
12471
12472 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
12473
12474 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
12475 initial call to init_register_ppc64.
12476
12477 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
12478
12479 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
12480 single powerpc*-*-linux* case.
12481 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
12482
12483 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
12484
12485 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
12486 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
12487 from reg_xmlfiles.
12488 * linux-ppc-low.c: Include <elf.h>.
12489 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
12490 (ppc_hwcap): New global variable.
12491 (ppc_regmap): Remove __SPE__ #ifdef sections.
12492 (ppc_regmap_e500): New global variable.
12493 (ppc_cannot_store_register): Update __SPE__ special case.
12494 (ppc_get_hwcap): New function.
12495 (ppc_arch_setup): Use it to determine whether inferior supports
12496 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
12497 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
12498 Do not access registers if target does not support AltiVec.
12499 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
12500 Do not access registers if target does not support SPE.
12501 (target_regsets): Unconditionally include AltiVec and SPE regsets.
12502
12503 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
12504
12505 * linux-low.c (disabled_regsets, num_regsets): New.
12506 (use_regsets_p): Delete.
12507 (linux_wait_for_process): Clear disabled_regsets.
12508 (regsets_fetch_inferior_registers): Check and set it.
12509 (regsets_store_inferior_registers): Likewise.
12510 (linux_fetch_registers, linux_store_registers): Do not use
12511 use_regsets_p.
12512 (initialize_low): Allocate disabled_regsets.
12513
12514 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
12515
12516 * Makefile.in (LIBOBJS): New.
12517 (OBS): Use LIBOBJS.
12518 (memmem.o): New rule.
12519 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
12520 * configure: Regenerated.
12521
12522 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
12523
12524 * server.c (handle_query): Never return "unsupported" for
12525 qXfer:features:read queries.
12526
12527 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
12528
12529 * server.c (get_features_xml): Fix inverted condition.
12530 (handle_query): Always support qXfer:feature:read.
12531
12532 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
12533
12534 * server.c (wrapper_argv): New.
12535 (start_inferior): Handle wrapper_argv. If set, expect an extra
12536 trap.
12537 (gdbserver_usage): Document --wrapper.
12538 (main): Parse --wrapper.
12539
12540 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
12541
12542 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
12543 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
12544 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
12545 (ppc_set_pc): Likewise.
12546 (ppc_arch_setup): New function.
12547 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
12548 of collect_register.
12549 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
12550
12551 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
12552
12553 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
12554 instead of linux-ppc64-low.o.
12555 * linux-ppc64-low.c: Remove file.
12556 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
12557 (linux-ppc64-low.o): Remove rule.
12558
12559 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
12560 (init_registers_powerpc_64): Likewise.
12561 (ppc_regmap): Conditionally define depending on __powerpc64__.
12562 (ppc_cannot_store_register): Do not special-case "fpscr" when
12563 compiled on __powerpc64__.
12564 (ppc_collect_ptrace_register): New function.
12565 (ppc_supply_ptrace_register): New function.
12566 (ppc_breakpoint): Change type to "unsigned int".
12567 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
12568 (the_low_target): Conditionally provide initializers for the
12569 arch_setup member depending on __powerpc64__. Install
12570 collect_ptrace_register and supply_ptrace_register members.
12571
12572 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
12573
12574 * regcache.h (gdbserver_xmltarget): Add extern declaration.
12575 * server.c (gdbserver_xmltarget): Define.
12576 (get_features_xml): Use it to replace "target.xml" and arch_string.
12577
12578 * configure.srv: Remove srv_xmltarget. Add XML files that were
12579 mentioned there to srv_xmlfiles instead. Remove conditional tests
12580 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
12581 srv_xmlfiles and srv_regobj to include all possible choices.
12582 * configure.ac (srv_xmltarget): Remove.
12583 (srv_xmlfiles): Do not add "target.xml".
12584 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
12585 checks for supplementary target information.
12586 * configure: Regenerate.
12587 * Makefile.in (XML_TARGET): Remove.
12588 (target.xml): Remove rule.
12589 (clean): Do not clean up target.xml.
12590 (.PRECIOUS): Do not mention target.xml.
12591
12592 * target.h (struct target_ops): Remove arch_string member.
12593 * linux-low.c (linux_arch_string): Remove.
12594 (linux_target_ops): Remove arch_string initializer.
12595 * linux-low.h (struct linux_target_ops): Remove arch_string member.
12596 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
12597 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
12598 * spu-low.c (spu_arch_string): Remove.
12599 (spu_target_ops): Remove arch_string initializer.
12600 * win32-low.c (win32_arch_string): Remove.
12601 (win32_target_ops): Remove arch_string initializer.
12602 * win32-low.h (struct win32_target_ops): Remove arch_string member.
12603 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
12604 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
12605
12606 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
12607
12608 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
12609 by collect_ptrace_register and supply_ptrace_register hooks.
12610 * linux-low.c (fetch_register): Use supply_ptrace_register callback
12611 instead of checking for the_low_target.left_pad_xfer.
12612 (usr_store_inferior_registers): Use collect_ptrace_register callback
12613 instead of checking for the_low_target.left_pad_xfer.
12614
12615 * linux-s390-low.c (s390_collect_ptrace_register): New function.
12616 (s390_supply_ptrace_register): Likewise.
12617 (s390_fill_gregset): Call s390_collect_ptrace_register.
12618 (the_low_target): Update.
12619
12620 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
12621 (ppc_supply_ptrace_register): Likewise.
12622 (the_low_target): Update.
12623
12624 * linux-i386-low.c (the_low_target): Update.
12625 * linux-x86-64-low.c (the_low_target): Update.
12626
12627 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
12628
12629 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
12630 reg-s390.o and reg-s390x.o.
12631
12632 * linux-low.c (new_inferior): New global variable.
12633 (linux_create_inferior, linux_attach): Set it.
12634 (linux_wait_for_process): Call the_low_target.arch_setup after the
12635 target has stopped for the first time.
12636 (initialize_low): Do not call the_low_target.arch_setup.
12637
12638 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
12639 (s390_set_pc): Likewise.
12640 (s390_arch_setup): New function.
12641 (the_low_target): Use s390_arch_setup as arch_setup routine.
12642
12643 * regcache.c (realloc_register_cache): New function.
12644 (set_register_cache): Call it for each existing regcache.
12645
12646 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
12647
12648 * server.h (init_registers): Remove prototype.
12649
12650 * linux-low.h (struct linux_target_ops): Add arch_setup field.
12651 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
12652 instead of init_registers ().
12653 * linux-arm-low.c (init_registers_arm): Add prototype.
12654 (init_registers_arm_with_iwmmxt): Likewise.
12655 (the_low_target): Add initializer for arch_setup field.
12656 * linux-cris-low.c (init_registers_cris): Add prototype.
12657 (the_low_target): Add initializer for arch_setup field.
12658 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
12659 (the_low_target): Add initializer for arch_setup field.
12660 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
12661 (the_low_target): Add initializer for arch_setup field.
12662 * linux-ia64-low.c (init_registers_ia64): Add prototype.
12663 (the_low_target): Add initializer for arch_setup field.
12664 * linux-m32r-low.c (init_registers_m32r): Add prototype.
12665 (the_low_target): Add initializer for arch_setup field.
12666 * linux-m68k-low.c (init_registers_m68k): Add prototype.
12667 (the_low_target): Add initializer for arch_setup field.
12668 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
12669 (init_registers_mips64_linux): Likewise.
12670 (the_low_target): Add initializer for arch_setup field.
12671 * linux-ppc-low.c (init_registers_ppc): Add prototype.
12672 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
12673 (the_low_target): Add initializer for arch_setup field.
12674 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
12675 (init_registers_powerpc_64): Likewise.
12676 (the_low_target): Add initializer for arch_setup field.
12677 * linux-s390-low.c (init_registers_s390): Add prototype.
12678 (init_registers_s390x): Likewise.
12679 (the_low_target): Add initializer for arch_setup field.
12680 * linux-sh-low.c (init_registers_sh): Add prototype.
12681 (the_low_target): Add initializer for arch_setup field.
12682 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
12683 (the_low_target): Add initializer for arch_setup field.
12684 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
12685 (the_low_target): Add initializer for arch_setup field.
12686
12687 * win32-low.h (struct win32_target_ops): Add arch_setup field.
12688 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
12689 instead of init_registers ().
12690 * win32-arm-low.c (init_registers_arm): Add prototype.
12691 (the_low_target): Add initializer for arch_setup field.
12692 * win32-i386-low.c (init_registers_i386): Add prototype.
12693 (the_low_target): Add initializer for arch_setup field.
12694
12695 * spu-low.c (init_registers_spu): Add prototype.
12696 (initialize_low): Call initialie_registers_spu () instead of
12697 initialize_registers ().
12698
12699 2008-02-19 Pedro Alves <pedro@codesourcery.com>
12700
12701 * server.c (handle_v_requests): When handling the vRun and vAttach
12702 packets, if already debugging a process, don't kill it. Return an
12703 error instead.
12704
12705 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
12706
12707 * server.c (handle_query): Correct length check.
12708
12709 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
12710
12711 * win32-low.c (do_initial_child_stuff): Add process handle
12712 parameter. Set current_process_handle and current_process_id from the
12713 parameters. Clear globals.
12714 (win32_create_inferior): Don't set current_process_handle and
12715 current_process_id here. Instead pass them on the call to
12716 do_initial_child_stuff.
12717 (win32_attach): Likewise.
12718 (win32_clear_inferiors): New.
12719 (win32_kill): Don't close the current process handle or the
12720 current thread handle here. Instead call win32_clear_inferiors.
12721 (win32_detach): Don't open a new handle to the process. Call
12722 win32_clear_inferiors.
12723 (win32_join): Don't rely on current_process_handle; open a new
12724 handle using the process id.
12725 (win32_wait): Call win32_clear_inferiors when the inferior process
12726 has exited.
12727
12728 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
12729
12730 * server.c (monitor_show_help): Add "exit".
12731
12732 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
12733
12734 * Makefile.in (SFILES): Add linux-xtensa-low.c.
12735 (clean): Add reg-xtensa.c.
12736 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
12737 * configure.srv (xtensa*-*-linux*) New target.
12738 * linux-xtensa-low.c: New.
12739 * xtensa-xtregs.c: New.
12740
12741 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
12742
12743 * hostio.c: Don't include errno.h.
12744 (errno_to_fileio_errno): Move to hostio-errno.
12745 * hostio.c: (hostio_error): Remove the error parameter. Defer the
12746 error number outputting to the target->hostio_last_error callback.
12747 (hostio_packet_error): Use FILEIO_EINVAL directly.
12748 (handle_open, handle_pread, hostio_error, handle_unlink): Update
12749 calls to hostio_error.
12750 * hostio-errno.c: New.
12751 * server.h (hostio_last_error_from_errno): Declare.
12752 * target.h (target_ops): Add hostio_last_error member.
12753 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
12754 as hostio_last_error handler.
12755 * spu-low.c (spu_target_ops): Likewise.
12756 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
12757 (wince_hostio_last_error): New functions.
12758 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
12759 as hostio_last_error handler.
12760 (win32_target_ops) [!_WIN32_WCE]: Register
12761 hostio_last_error_from_errno as hostio_last_error handler.
12762 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
12763 (hostio-errno.o): New rule.
12764 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
12765 * configure.srv (srv_hostio_err_objs): New variable. Default to
12766 hostio-errno.o.
12767 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
12768 * configure: Regenerate.
12769
12770 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
12771
12772 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
12773 (linux_kill, linux_detach): Clean up the process list.
12774 * remote-utils.c (remote_open): Improve port number parsing.
12775 (putpkt_binary, input_interrupt): Only send interrupts if the target
12776 is running.
12777 * server.c (extended_protocol): Make static.
12778 (attached): Define earlier.
12779 (exit_requested, response_needed, program_argv): New variables.
12780 (target_running): New.
12781 (start_inferior): Clear attached here.
12782 (attach_inferior): Set attached here.
12783 (require_running): Define.
12784 (handle_query): Use require_running and target_running. Implement
12785 "monitor exit".
12786 (handle_v_attach, handle_v_run): New.
12787 (handle_v_requests): Use require_running. Handle vAttach and vRun.
12788 (gdbserver_usage): Update.
12789 (main): Redo argument parsing. Handle --debug and --multi. Handle
12790 --attach along with other options or after the port. Save
12791 program_argv. Support no initial program. Resynchronize
12792 communication with GDB after an error. Handle "monitor exit".
12793 Use require_running and target_running. Always allow the extended
12794 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
12795 restart in extended mode.
12796 * README: Refer to the GDB manual. Update --attach usage.
12797
12798 2007-12-20 Andreas Schwab <schwab@suse.de>
12799
12800 * linux-low.c (STACK_SIZE): Define.
12801 (linux_tracefork_child): Use it. Use __clone2 on ia64.
12802 (linux_test_for_tracefork): Likewise.
12803
12804 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
12805
12806 * linux-low.c (linux_wait_for_event): Update messages. Do not
12807 reinsert auto-delete breakpoints.
12808 * mem-break.c (struct breakpoint): Change return type of handler to
12809 int.
12810 (set_breakpoint_at): Update handler type.
12811 (reinsert_breakpoint_handler): Return 1 instead of calling
12812 delete_breakpoint.
12813 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
12814 setting a new one.
12815 (check_breakpoints): Delete auto-delete breakpoints and return 2.
12816 * mem-break.h (set_breakpoint_at): Update handler type.
12817 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
12818 * win32-low.c (auto_delete_breakpoint): New.
12819 (get_child_debug_event): Use it.
12820
12821 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
12822
12823 * configure.ac: Check for pread and pwrite.
12824 * hostio.c (handle_pread): Fall back to lseek and read.
12825 (handle_pwrite): Fall back to lseek and write.
12826 * config.in, configure: Regenerated.
12827
12828 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
12829
12830 * server.c (myresume): Add own_buf argument.
12831 (main): Update calls.
12832
12833 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
12834
12835 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
12836 * remote-utils.c (remote_open): Do not call disable_async_io.
12837 (block_async_io): Delete.
12838 (unblock_async_io): Make static.
12839 (initialize_async_io): New.
12840 * server.c (handle_v_cont): Handle async I/O here.
12841 (myresume): Likewise. Move other common resume tasks here...
12842 (main): ... from here. Call initialize_async_io. Disable async
12843 I/O before the main loop.
12844 * server.h (initialize_async_io): Declare.
12845 (block_async_io, unblock_async_io): Delete prototypes.
12846 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
12847
12848 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
12849
12850 * remote-utils.c (readchar): Allow binary data in received messages.
12851
12852 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
12853
12854 * win32-low.c (attaching): New global.
12855 (win32_create_inferior): Clear the `attaching' global.
12856 (win32_attach): Set the `attaching' global.
12857 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
12858 attaching. Only set a breakpoint at the entry point if not
12859 attaching.
12860
12861 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
12862
12863 * server.c (main): Don't report dll events on the initial
12864 connection on attaches.
12865
12866 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
12867
12868 * server.c (main): Relax numerical bases supported for the pid of
12869 the --attach command line argument.
12870
12871 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
12872
12873 * win32-low.c (win32_attach): Call OpenProcess before
12874 DebugActiveProcess, not after. Add last error output to error
12875 call.
12876
12877 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
12878
12879 * win32-low.c (win32_get_thread_context)
12880 (win32_set_thread_context): New functions.
12881 (thread_rec): Use win32_get_thread_context.
12882 (continue_one_thread, win32_resume): Use win32_set_thread_context.
12883 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
12884 field.
12885
12886 2007-12-03 Leo Zayas
12887 Pedro Alves <pedro_alves@portugalmail.pt>
12888
12889 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
12890 global variables.
12891 (child_add_thread): Minor cleanup.
12892 (child_continue): Resume artificially suspended threads before
12893 calling ContinueDebugEvent.
12894 (suspend_one_thread): New.
12895 (fake_breakpoint_event): New.
12896 (get_child_debug_event): Change return type to int. Check here if
12897 gdb sent an interrupt request. If a soft interrupt was requested,
12898 fake a breakpoint event. Return 0 if there is no event to handle,
12899 and 1 otherwise.
12900 (win32_wait): Don't check here if gdb sent an interrupt request.
12901 Ensure there is a valid event to handle.
12902 (win32_request_interrupt): Add soft interruption method as last
12903 resort.
12904
12905 2007-12-03 Leo Zayas
12906 Pedro Alves <pedro_alves@portugalmail.pt>
12907
12908 * win32-low.h (win32_thread_info): Add descriptions to the
12909 structure members. Replace `suspend_count' counter by a
12910 `suspended' flag.
12911 * win32-low.c (thread_rec): Update condition of when to get the
12912 context from the inferior. Rely on ContextFlags being set if it
12913 has already been retrieved. Only suspend the inferior thread if
12914 we haven't already. Warn if that fails.
12915 (continue_one_thread): s/suspend_count/suspended/. Only call
12916 ResumeThread once. Warn if that fails.
12917
12918 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
12919
12920 * win32-low.c (win32_wait): Don't read from the inferior when it
12921 has already exited.
12922
12923 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
12924
12925 * Makefile.in (win32_low_h): New variable.
12926 (win32-low.o): Add dependency on $(win32_low_h).
12927 (win32-arm-low.o, win32-i386-low.o): New rules.
12928
12929 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
12930
12931 * hostio.c: Correct copyright year.
12932
12933 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
12934
12935 * Makefile.in (OBS): Add hostio.o.
12936 (hostio.o): New rule.
12937 * server.h (handle_vFile): Declare.
12938 * hostio.c: New file.
12939 * server.c (handle_v_requests): Take packet_len and new_packet_len
12940 for binary packets. Call handle_vFile.
12941 (main): Update call to handle_v_requests.
12942
12943 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
12944
12945 * linux-low.c: Include <sched.h>.
12946
12947 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
12948
12949 * linux-low.c (linux_tracefork_grandchild): New.
12950 (linux_tracefork_child): Use clone.
12951 (linux_test_for_tracefork): Use clone; allocate and free a stack.
12952
12953 2007-10-31 Joel Brobecker <brobecker@adacore.com>
12954
12955 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
12956
12957 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
12958
12959 * linux-low.c (handle_extended_wait): Handle unexpected signals.
12960
12961 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
12962
12963 * inferiors.c (change_inferior_id): Delete.
12964 (add_pid_to_list, pull_pid_from_list): New.
12965 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
12966 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
12967 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
12968 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
12969 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
12970 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
12971 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
12972 (using_threads): Always set to 1.
12973 (handle_extended_wait): New.
12974 (add_process): Do not set TID.
12975 (linux_create_inferior): Set must_set_ptrace_flags.
12976 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
12977 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
12978 (linux_thread_alive): Rename TID argument to LWPID.
12979 (linux_wait_for_process): Handle unknown processes. Do not use TID.
12980 (linux_wait_for_event): Do not use TID or check using_threads. Update
12981 call to dead_thread_notify. Call handle_extended_wait.
12982 (linux_create_inferior): Use PTRACE_SETOPTIONS.
12983 (send_sigstop): Delete sigstop_sent.
12984 (wait_for_sigstop): Avoid TID.
12985 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
12986 (linux_test_for_tracefork): New.
12987 (linux_lookup_signals): Use thread_db_active and
12988 linux_supports_tracefork_flag.
12989 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
12990 * linux-low.h (get_process_thread): Avoid TID.
12991 (struct process_ifo): Move thread_known and tid to the end. Remove
12992 sigstop_sent.
12993 (linux_attach_lwp, thread_db_init): Update prototypes.
12994 * server.h (change_inferior_id): Delete prototype.
12995 (add_pid_to_list, pull_pid_from_list): New prototypes.
12996 * thread-db.c (thread_db_use_events): New.
12997 (find_first_thread): Rename to...
12998 (find_one_thread): ...this. Update callers and messages. Do not
12999 call fatal. Check thread_db_use_events. Do not call
13000 change_inferior_id or new_thread_notify.
13001 (maybe_attach_thread): Update. Do not call new_thread_notify.
13002 (thread_db_init): Set thread_db_use_events. Check use_events.
13003 * utils.c (fatal, warning): Correct message prefix.
13004
13005 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
13006
13007 * Makefile.in (clean): Remove new files.
13008 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
13009 (powerpc-64.o, powerpc-64.c): New rules.
13010 * configure.srv: Use alternate register sets for powerpc64-*-linux*
13011 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
13012 with SPE.
13013 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
13014 SPE targets.
13015 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
13016 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
13017 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
13018 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
13019 (target_regsets): Add AltiVec and SPE register sets.
13020 * configure.ac: Check for AltiVec and SPE.
13021 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
13022 (ppc_fill_vrregset, ppc_store_vrregset): New.
13023 (target_regsets): Add AltiVec register set.
13024 * configure: Regenerated.
13025
13026 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
13027
13028 * linux-low.c (O_LARGEFILE): Define.
13029 (linux_read_memory): Use /proc/PID/mem.
13030 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
13031 * configure, config.in: Regenerated.
13032
13033 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
13034
13035 * linux-low.c (linux_wait_for_event): Do not pass signals while
13036 single-stepping.
13037
13038 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
13039
13040 * win32-low.c (create_process): New.
13041 (win32_create_inferior): Use create_process instead of
13042 CreateProcess. If create_process failed retry appending an ".exe"
13043 suffix. Store the GetLastError result immediatelly after
13044 create_process calls and use it on the call to error.
13045
13046 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
13047
13048 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
13049
13050 2007-08-23 Joel Brobecker <brobecker@adacore.com>
13051
13052 * configure.ac: Switch license to GPLv3.
13053
13054 2007-08-01 Michael Snyder <msnyder@access-company.com>
13055
13056 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
13057
13058 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
13059
13060 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
13061 typedef.
13062 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
13063 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
13064 CloseToolhelp32Snapshot.
13065 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
13066 CloseToolhelp32Snapshot.
13067
13068 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
13069
13070 * server.c (main): Check for inferior exit before main loop.
13071
13072 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
13073
13074 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
13075 instead of on tmp_desc.
13076
13077 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
13078 Daniel Jacobowitz <dan@codesourcery.com>
13079
13080 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
13081 (add_thread): Minor cleanups.
13082 (clear_inferiors): Move lower in the file. Clear the DLL
13083 list.
13084 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
13085 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
13086 (xml_escape_text): New.
13087 * server.c (handle_query): Handle qXfer:libraries:read. Report it
13088 for qSupported.
13089 (handle_v_cont): Report errors.
13090 (gdbserver_version): Update.
13091 (main): Correct size of own_buf. Do not report initial DLL events.
13092 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
13093 (unloaded_dll, xml_escape_text): New.
13094 * win32-low.c (enum target_waitkind): Update comments.
13095 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
13096 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
13097 (win32_EnumProcessModules, win32_GetModuleInformation)
13098 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
13099 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
13100 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
13101 (win32_Module32First, win32_Module32Next, load_toolhelp)
13102 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
13103 (get_child_debug_event): Handle DLL events.
13104 (win32_wait): Likewise.
13105
13106 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
13107
13108 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
13109 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
13110
13111 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
13112
13113 * win32-low.c (handle_output_debug_string): Ignore event if not
13114 waiting.
13115
13116 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
13117
13118 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
13119
13120 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
13121
13122 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
13123
13124 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
13125
13126 * inferiors.c (change_inferior_id): Add comment.
13127 * linux-low.c (check_removed_breakpoint): Add an early
13128 prototype. Improve debug output.
13129 (linux_attach): Doc update.
13130 (linux_detach_one_process, linux_detach): Clean up before releasing
13131 each process.
13132 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
13133 * linux-low.h (struct process_info): Doc improvement.
13134 * mem-break.c (delete_all_breakpoints): New.
13135 * mem-break.h (delete_all_breakpoints): New prototype.
13136 * thread-db.c (find_first_thread): New.
13137 (thread_db_create_event): Call it instead of
13138 thread_db_find_new_threads. Clean up unused variables.
13139 (maybe_attach_thread): Remove first thread handling.
13140 (thread_db_find_new_threads): Use find_first_thread.
13141 (thread_db_get_tls_address): Likewise.
13142
13143 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
13144
13145 * thread-db.c (thread_db_find_new_threads): Add prototype.
13146 (thread_db_create_event): Check for the main thread before adding
13147 a new thread.
13148 (maybe_attach_thread): Only enable event reporting if TID == 0.
13149 (thread_db_get_tls_address): Check for new threads.
13150
13151 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
13152
13153 * linux-low.c (linux_create_inferior): Try execv before execvp.
13154 * spu-low.c (spu_create_inferior): Likewise.
13155
13156 2007-06-13 Mike Frysinger <vapier@gentoo.org>
13157
13158 * linux-low.c (linux_create_inferior): Change execv to execvp.
13159 * spu-low.c (spu_create_inferior): Likewies.
13160
13161 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
13162
13163 * Makefile.in (clean): Clean new files instead of deleted ones.
13164 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
13165 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
13166 rules.
13167 * configure.srv: Specify XML files and new regformats for MIPS and
13168 MIPS64 GNU/Linux.
13169 * linux-mips-low.c (mips_num_regs): Set to only used registers.
13170 (mips_regmap): Do not fetch $0. Remove unused registers. Add
13171 an entry for the restart register.
13172 (mips_cannot_fetch_register, mips_cannot_store_register)
13173 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
13174 register names to match the XML descriptions.
13175 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
13176 restart register instead of $0.
13177
13178 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
13179 Markus Deuling <deuling@de.ibm.com>
13180
13181 * remote-utils.c (decode_xfer_write): New function.
13182 * server.h (decode_xfer_write): Add prototype.
13183 * server.c (handle_query): Add PACKET_LEN argument. Support
13184 qXfer:spu:read and qXfer:spu:write packets.
13185 (main): Pass packet_len to handle_query.
13186 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
13187 * target.h (target_ops): Add qxfer_spu.
13188
13189 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
13190
13191 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
13192 accessing non-seekable spufs files.
13193
13194 2007-05-16 Markus Deuling <deuling@de.ibm.com>
13195
13196 * server.c (handle_query): Add reply for qC packet.
13197
13198 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
13199 Leo Zayas <lerele@champenstudios@com>
13200
13201 * server.h (check_remote_input_interrupt_request): New function.
13202 * remote_utils.c (INVALID_DESCRIPTOR): New define.
13203 (remote_desc): Initialize with INVALID_DESCRIPTOR.
13204 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
13205 (check_remote_input_interrupt_request): New function.
13206 * server.h (check_remote_input_interrupt_request): Declare.
13207 * win32-low.c (winapi_DebugBreakProcess,
13208 winapi_GenerateConsoleCtrlEvent): New typedefs.
13209 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
13210 to 250 ms.
13211 (win32_wait): Check for remote interrupt request
13212 with check_remote_input_interrupt_request.
13213 (win32_request_interrupt): New function.
13214 (win32_target_op): Set request_interrupt to win32_request_interrupt.
13215
13216 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
13217
13218 * win32-low.c (debug_registers_changed,
13219 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
13220 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
13221 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
13222 (thread_rec): Get context using the low target.
13223 (child_add_thread): Call thread_added on the low target,
13224 which does the same thing.
13225 (regptr): Delete.
13226 (do_initial_child_stuff): Remove debug registers references.
13227 Set context using the low target. Resume threads after
13228 setting the contexts.
13229 (child_continue): Remove dead variable. Remove debug
13230 registers references.
13231 (child_fetch_inferior_registers): Go through the low target.
13232 (do_child_store_inferior_registers): Remove.
13233 (child_store_inferior_registers): Go through the low target.
13234 (win32_resume): Remove debug registers references.
13235 Set context using the low target.
13236 (handle_exception): Change return type to void. Don't record
13237 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
13238 first chance exception.
13239 (get_child_debug_event): Change return type to void. Remove
13240 goto loop. Always return after waiting for debug event.
13241 (win32_wait): Convert to switch statement. Handle spurious
13242 events.
13243
13244 * win32-i386-low.c (debug_registers_changed,
13245 debug_registers_used): New.
13246 (initial_stuff): Rename to ...
13247 (i386_initial_stuff): ... this. Clear debug registers
13248 state variables.
13249 (store_debug_registers): Delete.
13250 (i386_get_thread_context): New.
13251 (load_debug_registers): Delete.
13252 (i386_set_thread_context): New.
13253 (i386_thread_added): New.
13254 (single_step): Rename to ...
13255 (i386_single_step): ... this.
13256 (do_fetch_inferior_registers): Rename to ...
13257 (i386_fetch_inferior_register): ... this.
13258 (i386_store_inferior_register): New.
13259 (the_low_target): Adapt to new interface.
13260
13261 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
13262 (arm_get_thread_context): New.
13263 (arm_set_thread_context): New.
13264 (regptr): New.
13265 (do_fetch_inferior_registers): Rename to ...
13266 (arm_fetch_inferior_register): ... this.
13267 (arm_store_inferior_register): New.
13268 (arm_wince_breakpoint): Reimplement as unsigned long.
13269 (arm_wince_breakpoint_len): Define.
13270 (the_low_target): Adapt to new interface.
13271
13272 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
13273 load_debug_registers. Add get_thread_context, set_thread_context,
13274 thread_added and store_inferior_register. Rename
13275 fetch_inferior_registers to fetch_inferior_register.
13276 (regptr): Remove declaration.
13277
13278 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
13279
13280 * linux-low.c (linux_detach): Change return type to int. Return 0.
13281 * spu-low.c (spu_detach): Likewise.
13282
13283 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
13284
13285 * target.h (target_ops): Change return type of detach to int.
13286 Add join.
13287 (join_inferior): New.
13288 * server.c (main): Don't skip detach support on mingw32.
13289 If the inferior doesn't support detaching return error.
13290 Call join_inferior instead of using waitpid.
13291 * linux-low.c (linux_join): New.
13292 (linux_target_op): Add linux_join.
13293 * spu-low.c (spu_join): New.
13294 (spu_target_ops): Add spu_join.
13295 * win32-low.c (win32_detach): Adapt to new interface.
13296 Reopen current_process_handle before detaching. Issue a child
13297 resume before detaching.
13298 (win32_join): New.
13299 (win32_target_op): Add win32_join.
13300
13301 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
13302
13303 * win32-low.c (win32-attach): Fix return value.
13304 * target.h (target_ops): Describe ATTACH return values.
13305
13306 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
13307
13308 * win32-low.c (GETPROCADDRESS): Define.
13309 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
13310 (winapi_DebugSetProcessKillOnExit): Likewise.
13311 (win32_create_inferior): Force usage of ansi CreateProcessA.
13312 (win32_attach): Use GETPROCADDRESS.
13313 (win32_detach): Likewise.
13314
13315 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
13316
13317 * win32-low.c (win32_wait): Don't use WSTOPSIG.
13318
13319 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
13320
13321 * win32-low.c: Commit leftover changes from 2007-03-29.
13322
13323 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
13324
13325 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
13326 fields short instead of int. Add explicit padding.
13327 (i387_cache_to_fsave): Remove unnecessary casts.
13328 (i387_fsave_to_cache): Doc fix.
13329 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
13330
13331 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
13332
13333 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
13334 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
13335
13336 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
13337
13338 * configure.srv (arm*-*-mingw32ce*): Move near the other
13339 arm targets.
13340
13341 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
13342
13343 * configure.ac: Add errno checking.
13344 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
13345 sys/file.h and malloc.h.
13346 (AC_CHECK_DECLS): Add perror.
13347 (srv_mingwce): Handle.
13348 * configure.srv (i[34567]86-*-cygwin*): Add
13349 win32-i386-low.o to srv_tgtobj.
13350 (i[34567]86-*-mingw*): Likewise.
13351 (arm*-*-mingw32ce*): Add case.
13352 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
13353 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
13354 [__MINGW32CE__] (strerror): New function.
13355 [__MINGW32CE__] (errno): Define to GetLastError.
13356 [__MINGW32CE__] (COUNTOF): New macro.
13357 (remote_open): Remove extra close call.
13358 * mem-break.c (delete_breakpoint_at): New function.
13359 * mem-break.h (delete_breakpoint_at): Declare.
13360 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
13361 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
13362 [USE_WIN32API] (read, write): Add char* casts.
13363 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
13364 * server.h: Include wincecompat.h on Windows CE.
13365 [HAVE_ERRNO_H]: Check.
13366 (perror): Declare if not declared.
13367 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
13368 (perror_with_name): Remove errno declaration.
13369 * wincecompat.h: New.
13370 * wincecompat.c: New.
13371 * win32-low.h: New.
13372 * win32-arm-low.c: New.
13373 * win32-i386-low.c: New.
13374 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
13375 (OUTMSG2): Make it safe.
13376 (_T): New macro.
13377 (COUNTOF): New macro.
13378 (NUM_REGS): Get it from the low target.
13379 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
13380 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
13381 (thread_rec): Let low target handle debug registers.
13382 (child_add_thread): Likewise.
13383 (child_init_thread_list): Likewise.
13384 (continue_one_thread): Likewise.
13385 (regptr): New.
13386 (do_child_fetch_inferior_registers): Move to ...
13387 * win32-i386-low.c: ... here, and rename to ...
13388 (do_fetch_inferior_registers): ... this.
13389 * win32-low.c (child_fetch_inferior_registers):
13390 Go through the low target.
13391 (do_child_store_inferior_registers): Use regptr.
13392 (strwinerror): New function.
13393 (win32_create_inferior): Handle Windows CE.
13394 Use strwinerror instead of strerror on Windows error
13395 codes. Add program to the error output.
13396 Don't close the main thread handle on Windows CE.
13397 (win32_attach): Use coredll.dll on Windows CE.
13398 (win32_kill): Close current process and current
13399 thread handles.
13400 (win32_detach): Use coredll.dll on Windows CE.
13401 (win32_resume): Let low target handle debug registers, and
13402 step request.
13403 (handle_exception): Add/Remove initial breakpoint. Avoid
13404 non-existant WSTOPSIG on Windows CE.
13405 (win32_read_inferior_memory): Cast to remove warning.
13406 (win32_arch_string): Go through the low target.
13407 (initialize_low): Call set_breakpoint_data with the low
13408 target's breakpoint.
13409 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
13410 FOP_REGNUM, mappings): Move to ...
13411 * win32-i386-low.c: ... here.
13412 * win32-low.c (win32_thread_info): Move to ...
13413 * win32-low.h: ... here.
13414 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
13415 win32-arm-low.c and wincecompat.c.
13416 (all:): Add $EXEEXT.
13417 (install-only:): Likewise.
13418 (gdbserver:): Likewise.
13419 (gdbreplay:): Likewise.
13420 * config.in: Regenerate.
13421 * configure: Regenerate.
13422
13423 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
13424
13425 * win32-low.c: Rename typedef thread_info to
13426 win32_thread_info throughout.
13427
13428 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
13429
13430 * win32-i386-low.c: Rename to ...
13431 * win32-low.c: ... this.
13432 * configure.srv: Replace win32-i386-low.o with win32-low.o.
13433 * Makefile.in: Likewise.
13434
13435 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
13436
13437 * remote-utils.c (monitor_output): Constify msg parameter.
13438 * server.h (monitor_output): Likewise.
13439 * win32-i386-low.c (handle_output_debug_string): New.
13440 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
13441 handle_output_debug_string.
13442 (get_child_debug_event): Likewise.
13443
13444 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
13445
13446 * server.c (main): Correct strtoul check.
13447
13448 2007-03-27 Jon Ringle <jon@ringle.org>
13449
13450 * linux-low.c: Check __ARCH_HAS_MMU__ also.
13451
13452 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
13453
13454 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
13455
13456 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
13457
13458 * terminal.h: Check HAVE_SGTTY_H.
13459
13460 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
13461
13462 * remote-utils.c (remote_open): Print out the assigned port number.
13463
13464 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
13465
13466 * remote-utils.c (monitor_output): New function.
13467 * server.c (debug_threads): Define here.
13468 (monitor_show_help): New function.
13469 (handle_query): Handle qRcmd.
13470 (main): Do not handle 'd' packet.
13471 * server.h (debug_threads, remote_debug, monitor_output): Declare.
13472 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
13473 of debug_threads.
13474
13475 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
13476
13477 * Makefile.in (EXEEXT): New.
13478 (clean): Use $(EXEEXT).
13479
13480 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
13481
13482 * target.h (target_ops): Rename send_signal to request_interrupt,
13483 and remove enum target_signal parameter.
13484 * linux-low.c (linux_request_interrupt): Rename from
13485 linux_send_signal, and always send SIGINT.
13486 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
13487 and always send SIGINT.
13488 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
13489 of send_signal.
13490 (input_interrupt): Likewise.
13491
13492 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
13493
13494 * server.c (get_features_xml): Check if target implemented
13495 arch_string.
13496 * win32-i386-low.c (win32_arch_string): New.
13497 (win32_target_ops): Add win32_arch_string as arch_string member.
13498
13499 2007-02-22 Markus Deuling <deuling@de.ibm.com>
13500
13501 * spu-low.c (spu_arch_string): New.
13502 (spu_target_ops): Add spu_arch_string.
13503
13504 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
13505
13506 * remote-utils.c: Remove HAVE_TERMINAL_H check.
13507 * configure.ac: Do not check for terminal.h.
13508 * configure, config.in: Regenerated.
13509
13510 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
13511
13512 * Makefile.in (OBS): Add $(XML_BUILTIN).
13513 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
13514 (clean): Update.
13515 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
13516 (arm-with-iwmmxt.c): New.
13517 * config.in, configure: Regenerate.
13518 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
13519 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
13520 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
13521 (arm*-*-linux*): Add iWMMXt and regset support.
13522 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
13523 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
13524 (arm_store_wmmxregset, target_regsets): New.
13525 * server.c (get_features_xml): Take annex argument. Check builtin
13526 XML documents.
13527 (handle_query): Handle multiple annexes.
13528
13529 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
13530
13531 * remote-utils.c [USE_WIN32API] (read, write): Define.
13532 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
13533 write.
13534
13535 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
13536
13537 * linux-i386-low.c (the_low_target): Set arch_string.
13538 * linux-x86-64-low.c (the_low_target): Likewise.
13539 * linux-low.c (linux_arch_string): New.
13540 (linux_target_ops): Add it.
13541 * linux-low.h (struct linux_target_ops): Add arch_string.
13542 * server.c (write_qxfer_response): Use const void * for DATA.
13543 (get_features_xml): New.
13544 (handle_query): Handle qXfer:features:read. Report it for qSupported.
13545 * target.h (struct target_ops): Add arch_string method.
13546
13547 2007-01-03 Denis Pilat <denis.pilat@st.com>
13548 Daniel Jacobowitz <dan@codesourcery.com>
13549
13550 * linux-low.c (linux_kill): Handle being called with no threads.
13551 * win32-i386-low.c (win32_kill): Likewise.
13552 (get_child_debug_event): Clear current_process_handle.
13553
13554 2006-12-30 Denis PILAT <denis.pilat@st.com>
13555 Daniel Jacobowitz <dan@codesourcery.com>
13556
13557 * remote-utils.c (remote_open): Check the type of specified
13558 serial port devices before opening them.
13559 * server.c (main): Kill the inferior if an error occurs during
13560 the first remote_open.
13561
13562 2006-12-05 Markus Deuling <deuling@de.ibm.com>
13563
13564 * README: Update supported targets.
13565
13566 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
13567
13568 * Makefile.in (clean): Remove reg-mips64.c.
13569 (reg-mips64.c, reg-mips64.o): New rules.
13570 * configure.srv: Handle mips64. Include regset support for mips.
13571 * linux-mips-low.c (union mips_register): New.
13572 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
13573 (mips_breakpoint, mips_breakpoint_at): Use int.
13574 (mips_collect_register, mips_supply_register)
13575 (mips_collect_register_32bit, mips_supply_register_32bit)
13576 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
13577 (mips_store_fpregset, target_regsets): New.
13578 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
13579
13580 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
13581
13582 * configure.srv: Add target "spu*-*-*".
13583 * Makefile.in (clean): Remove reg-spu.c.
13584 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
13585 * spu-low.c: New file.
13586
13587 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
13588
13589 * configure.ac: Correct td_thr_tls_get_addr test.
13590 * configure: Regenerated.
13591
13592 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
13593
13594 * linux-low.c (linux_wait_for_event): Reformat. Use the
13595 pass_signals array.
13596 * remote-utils.c (decode_address_to_semicolon): New.
13597 * server.c (pass_signals, handle_general_set): New.
13598 (handle_query): Mention QPassSignals for qSupported.
13599 (main): Call handle_general_set.
13600 * server.h (pass_signals, decode_address_to_semicolon): New.
13601
13602 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
13603
13604 * server.c (handle_query): Correct error handling for read_auxv.
13605
13606 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
13607
13608 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
13609 and srv_linux_thread_db to yes.
13610 * linux-s390-low.c (s390_fill_gregset): New function.
13611 (target_regsets): Define data structure.
13612
13613 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
13614
13615 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
13616 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
13617 * config.in, configure: Regenerated.
13618 * inferiors.c (gdb_id_to_thread): New function.
13619 (gdb_id_to_thread_id): Use it.
13620 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
13621 * linux-low.h (struct process_info): Add th member.
13622 (thread_db_get_tls_address): New prototype.
13623 * remote-utils.c (decode_address): Make non-static.
13624 * server.c (handle_query): Handle qGetTLSAddr.
13625 * server.h (gdb_id_to_thread, decode_address): New prototypes.
13626 * target.h (struct target_ops): Add get_tls_address.
13627 * thread-db.c (maybe_attach_thread): Save the thread handle.
13628 (thread_db_get_tls_address): New.
13629
13630 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
13631
13632 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13633 (linux_resume_one_process): Take a siginfo_t *. Update all
13634 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
13635 (struct pending_signals): Add a siginfo_t.
13636 (linux_wait_for_process): Always set last_status.
13637 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
13638 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
13639 * linux-low.h (struct process_info): Add last_status.
13640
13641 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
13642
13643 * remote-utils.c (try_rle): New function.
13644 (putpkt_binary): Use it.
13645
13646 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
13647
13648 * Makefile.in (clean): Clean reg-x86-64-linux.c.
13649 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
13650 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
13651 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
13652 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
13653 point registers.
13654
13655 2006-08-08 Richard Sandiford <richard@codesourcery.com>
13656
13657 * server.c (terminal_fd): New variable.
13658 (old_foreground_pgrp): Likewise.
13659 (restore_old_foreground_pgrp): New function.
13660 (start_inferior): Record the terminal file descriptor in terminal_fd
13661 and its original foreground group in old_foreground_pgrp. Register
13662 restore_old_foreground_pgrp with atexit().
13663
13664 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
13665
13666 * server.c (handle_query): Correct qPart to qXfer.
13667
13668 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
13669
13670 * configure.ac: Check for more headers which are missing on
13671 Windows. Automatically supply -lwsock32 and USE_WIN32API.
13672 * configure.srv: Add Cygwin and mingw32.
13673 * remote-utils.c: Don't include headers unconditionally which
13674 are missing on mingw32. Include <winsock.h> for mingw32.
13675 (remote_open): Adjust for mingw32 support. Flush
13676 standard error after writing to it.
13677 (remote_close, putpkt_binary, input_interrupt, block_async_io)
13678 (unblock_async_io, enable_async_io, disable_async_io)
13679 (readchar, getpkt): Update for Winsock support.
13680 (prepare_resume_reply): Expect a protocol signal number.
13681 * server.c: Disable <sys/wait.h> on mingw32.
13682 (start_inferior): Adjust for mingw32 support. Flush
13683 standard error after writing to it.
13684 (attach_inferior): Likewise. Use protocol signal
13685 numbers.
13686 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
13687 and names.
13688 * win32-i386-low.c: New file.
13689 * Makefile.in (XM_CLIBS): Set.
13690 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
13691 (win32-i386-low.o): New dependency rule.
13692 * linux-low.c (linux_wait): Use target signal numbers.
13693 * target.h (struct target_ops): Doc fix.
13694 * server.h (target_signal_to_name): New prototype.
13695 * gdbreplay.c: Don't include headers unconditionally which
13696 are missing on mingw32. Include <winsock.h> for mingw32.
13697 (remote_close, remote_open): Adjust for Winsock support.
13698 * configure, config.in: Regenerated.
13699
13700 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
13701
13702 * server.c (decode_xfer_read, write_qxfer_response): New.
13703 (handle_query): Take a packet length argument. Handle
13704 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
13705 the qSupported response.
13706 (main): Update call to handle_query.
13707
13708 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
13709
13710 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
13711 (putpkt_binary): Renamed from putpkt and adjusted for binary
13712 data.
13713 (putpkt): New wrapper for putpkt_binary.
13714 (readchar): Don't mask off the high bit.
13715 (decode_X_packet): New function.
13716 * server.c (main): Call putpkt_binary if a handler sets the packet
13717 length. Save the length of the incoming packet. Handle 'X'.
13718 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
13719
13720 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
13721
13722 * server.c (handle_query): Handle qSupported.
13723
13724 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
13725
13726 * remote-utils.c (all_symbols_looked_up): New variable.
13727 (look_up_one_symbol): Check it.
13728 * server.h (look_up_one_symbol): New declaration.
13729 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
13730
13731 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
13732
13733 * Makefile.in (linux-arm-low.o): Update dependencies.
13734 * linux-arm-low.c: Include "gdb_proc_service.h".
13735 (PTRACE_GET_THREAD_AREA): Define.
13736 (ps_get_thread_area): New function.
13737
13738 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
13739
13740 * configure.srv (m68k*-*-uclinux*): New target.
13741 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
13742 (linux_resume_one_process): Remove extraneous cast.
13743 (linux_read_offsets): New.
13744 (linux_target_op): Add linux_read_offsets on mmuless systems.
13745 * server.c (handle_query): Add qOffsets logic.
13746 * target.h (struct target_ops): Add read_offsets.
13747
13748 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
13749
13750 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
13751 (PTRACE_GET_THREAD_AREA): Define.
13752 (ps_get_thread_area): New function.
13753 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
13754 (linux-x86-64-low.o): Update.
13755
13756 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
13757
13758 * configure.ac: Remove checks for prfpregset_t.
13759 * gdb_proc_service.h: New file.
13760 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
13761 new "gdb_proc_service.h".
13762 * proc-service.c: Likewise.
13763 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
13764 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
13765 * Makefile.in (gdb_proc_service_h): Updated.
13766 * configure, config.in: Regenerated.
13767
13768 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
13769
13770 * remote-utils.c (prepare_resume_reply): Move declaration
13771 of gdb_id_from_wait to the top of the block.
13772
13773 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
13774
13775 * linux-low.c (regsets_store_inferior_registers): Read the regset
13776 from the target before filling it.
13777
13778 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
13779
13780 * server.c (attach_inferior): Return SIGTRAP for a successful
13781 attach.
13782
13783 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
13784
13785 * Makefile.in (OBS): Add version.o.
13786 (STAGESTUFF): Delete.
13787 (version.o): Add dependencies.
13788 (version.c): Replace rule.
13789 (clean): Remove version.c.
13790 * server.c (gdbserver_version): New.
13791 (gdbserver_usage): Use printf.
13792 (main): Handle --version and --help.
13793 * server.h (version, host_name): Add declarations.
13794
13795 2005-12-23 Eli Zaretskii <eliz@gnu.org>
13796
13797 * linux-arm-low.c:
13798 * linux-arm-low.c:
13799 * inferiors.c:
13800 * i387-fp.h:
13801 * i387-fp.c:
13802 * gdbreplay.c:
13803 * regcache.c:
13804 * proc-service.c:
13805 * mem-break.h:
13806 * mem-break.c:
13807 * linux-x86-64-low.c:
13808 * linux-sh-low.c:
13809 * linux-s390-low.c:
13810 * linux-ppc64-low.c:
13811 * linux-ppc-low.c:
13812 * linux-mips-low.c:
13813 * linux-m68k-low.c:
13814 * linux-m32r-low.c:
13815 * linux-low.h:
13816 * linux-low.c:
13817 * linux-ia64-low.c:
13818 * linux-i386-low.c:
13819 * linux-crisv32-low.c:
13820 * thread-db.c:
13821 * terminal.h:
13822 * target.h:
13823 * target.c:
13824 * server.h:
13825 * server.c:
13826 * remote-utils.c:
13827 * regcache.h:
13828 * utils.c:
13829 * Makefile.in:
13830 * configure.ac:
13831 * gdbserver.1: Add (C) after Copyright. Update the FSF
13832 address.
13833
13834 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
13835
13836 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
13837 (arm_breakpoint_at): Recognize both breakpoints.
13838 (the_low_target): Use the correct breakpoint instruction.
13839
13840 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
13841
13842 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
13843 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
13844 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
13845 (the_low_target): Update.
13846
13847 2005-10-25 Andreas Schwab <schwab@suse.de>
13848
13849 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
13850
13851 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
13852 (ia64_num_regs): Reduce to 462.
13853
13854 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
13855
13856 * acinclude.m4: Correct quoting.
13857 * aclocal.m4: Regenerated.
13858
13859 Suggested by SZOKOVACS Robert <szo@ies.hu>:
13860 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
13861 (thread_db_init): Call thread_db_err_str.
13862 * configure.ac: Check for TD_VERSION.
13863 * config.in, configure: Regenerated.
13864
13865 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13866
13867 * server.h (error, fatal, warning): Add ATTR_FORMAT.
13868
13869 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
13870
13871 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
13872 is not available. Define HAVE_PTRACE_GETREGS if it is.
13873 * config.in, configure: Regenerated.
13874 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
13875 * linux-i386-low.c, linux-m68k-low.c: Update to use
13876 HAVE_PTRACE_GETREGS.
13877 * linux-low.c (regsets_fetch_inferior_registers)
13878 (regsets_store_inferior_registers): Only return 0 if we processed
13879 GENERAL_REGS.
13880 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
13881 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
13882
13883 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
13884
13885 * inferiors.c (struct thread_info): Add gdb_id.
13886 (add_thread): Add gdb_id argument.
13887 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
13888 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
13889 calls to add_thread.
13890 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
13891 * server.c (handle_query): Use thread_to_gdb_id.
13892 (handle_v_cont, main): Use gdb_id_to_thread_id.
13893 * server.h (add_thread): Update prototype.
13894 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
13895 prototypes.
13896
13897 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
13898
13899 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
13900 left-padded registers.
13901 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
13902 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
13903
13904 2005-07-01 Steve Ellcey <sje@cup.hp.com>
13905
13906 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
13907 * configure: Regenerate.
13908 * config.in: Regenerate.
13909 * server.h (NEED_DECLARATION_STRERROR):
13910 Replace with !HAVE_DECL_STRERROR.
13911
13912 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
13913
13914 * linux-low.c (linux_wait, linux_send_signal): Don't test
13915 an unsigned long variable for > 0 if it could be MAX_ULONG.
13916 * server.c (myresume): Likewise.
13917 * target.c (set_desired_inferior): Likewise.
13918
13919 2005-06-13 Mark Kettenis <kettenis@gnu.org>
13920
13921 * configure.ac: Simplify and improve check for socklen_t.
13922 * configure, config.in: Regenerate.
13923
13924 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
13925
13926 * acconfig.h: Remove.
13927 * configure.ac: Add a test for socklen_t. Use three-argument
13928 AC_DEFINE throughout.
13929 * config.in: Regenerated using autoheader 2.59.
13930 * configure: Regenerated.
13931
13932 * gdbreplay.c (socklen_t): Provide a default.
13933 (remote_open): Use socklen_t.
13934 * remote-utils.c (socklen_t): Provide a default.
13935 (remote_open): Use socklen_t.
13936 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
13937 unsigned char.
13938
13939 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
13940 char for buffers.
13941 * linux-low.c (linux_read_memory, linux_write_memory)
13942 (linux_read_auxv): Likewise.
13943 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
13944 (check_mem_write): Likewise.
13945 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
13946 Likewise.
13947 * regcache.c (struct inferior_rgcache_data, registers_to_string)
13948 (registers_from_string, register_data): Likewise.
13949 * server.c (handle_query, main): Likewise.
13950 * server.h (convert_ascii_to_int, convert_int_to_ascii)
13951 (decode_M_packet): Likewise.
13952 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
13953 * target.h (struct target_ops): Update read_memory, write_memory,
13954 and read_auxv.
13955 (read_inferior_memory, write_inferior_memory): Update.
13956 * linux-low.h (struct linux_target_ops): Change type of breakpoint
13957 to unsigned char *.
13958 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
13959 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
13960 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
13961 linux-s390-low.c, linux-sh-low.c: Update for changes in
13962 read_inferior_memory and the_low_target->breakpoint.
13963
13964 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
13965
13966 * Makefile.in (SFILES): Add linux-ppc64-low.c.
13967 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
13968 * configure.srv: Add powerpc64-*-linux*.
13969 * linux-ppc64-low.c: New file.
13970
13971 2005-05-23 Orjan Friberg <orjanf@axis.com>
13972
13973 * linux-cris-low.c: New file with support for CRIS.
13974 * linux-crisv32-low.c: Ditto for CRISv32.
13975 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
13976 (clean): Add reg-cris.c and reg-crisv32.c.
13977 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
13978 reg-crisv32.o, and reg-crisv32.c to make rules.
13979 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
13980 recognized targets.
13981
13982 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
13983
13984 * linux-low.c (fetch_register): Ensure buffer size is a multiple
13985 of sizeof (PTRACE_XFER_TYPE).
13986 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
13987
13988 2005-05-12 Orjan Friberg <orjanf@axis.com>
13989
13990 * target.h (struct target_ops): Add insert_watchpoint,
13991 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
13992 pointers for hardware watchpoint support.
13993 * linux-low.h (struct linux_target_ops): Ditto.
13994 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
13995 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
13996 to linux_target_ops.
13997 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
13998 reply packet.
13999 * server.c (main): Recognize 'Z' and 'z' packets.
14000
14001 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
14002
14003 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
14004 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
14005 (the_low_target): Add new members.
14006
14007 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
14008
14009 * proc-service.c (ps_lgetregs): Search all_processes instead of
14010 all_threads.
14011
14012 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
14013
14014 * server.c (start_inferior): Change return type to int.
14015 (attach_inferior): Change sigptr to int *.
14016 (handle_v_cont, handle_v_requests): Change signal to int *.
14017 (main): Change signal to int.
14018
14019 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
14020
14021 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
14022 * configure.srv: Add m32r*-*-linux*.
14023 * linux-m32r-low.c: New file.
14024
14025 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
14026
14027 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
14028
14029 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
14030
14031 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
14032 Take unsigned long arguments for PIDs.
14033 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
14034 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
14035 (wait_for_sigstop, linux_resume_one_process)
14036 (regsets_fetch_inferior_registers, linux_send_signal)
14037 (linux_read_auxv): Likewise. Update the types of variables holding
14038 PIDs. Update format string specifiers.
14039 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
14040 * remote-utils.c (prepare_resume_reply): Likewise.
14041 * server.c (cont_thread, general_thread, step_thread)
14042 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
14043 unsigned long.
14044 (handle_query): Update format specifiers.
14045 (handle_v_cont, main): Use strtoul for thread IDs.
14046 * server.h (struct inferior_list_entry): Use unsigned long for ID.
14047 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
14048 (general_thread, step_thread, thread_from_wait)
14049 (old_thread_from_wait): Update.
14050 * target.h (struct thread_resume): Use unsigned long for THREAD.
14051 (struct target_ops): Use unsigned long for arguments to attach and
14052 thread_alive.
14053
14054 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
14055
14056 * acinclude.m4: Include bfd/bfd.m4 directly.
14057 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
14058 <agriffis@toolchain.org>.
14059 * aclocal.m4, configure: Regenerated.
14060
14061 2005-01-07 Andrew Cagney <cagney@gnu.org>
14062
14063 * configure.ac: Rename configure.in, require autoconf 2.59.
14064 * configure: Re-generate.
14065
14066 2004-12-08 Daniel Jacobowitz <dan@debian.org>
14067
14068 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
14069 LIBS when finished.
14070 * aclocal.m4: Regenerated.
14071 * configure: Regenerated.
14072
14073 2004-11-21 Andreas Schwab <schwab@suse.de>
14074
14075 * linux-m68k-low.c (m68k_num_gregs): Define.
14076 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
14077 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
14078 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
14079 (m68k_breakpoint_at): New. Add to the_low_target.
14080
14081 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
14082 srv_linux_thread_db to yes.
14083
14084 2004-10-20 Joel Brobecker <brobecker@gnat.com>
14085
14086 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
14087 (ARCH_SET_FS): Likewise.
14088 (ARCH_GET_FS): Likewise.
14089 (ARCH_GET_GS): Likewise.
14090
14091 2004-10-16 Daniel Jacobowitz <dan@debian.org>
14092
14093 * linux-i386-low.c (ps_get_thread_area): New.
14094 * linux-x86-64-low.c (ps_get_thread_area): New.
14095 * linux-low.c: Include <sys/syscall.h>.
14096 (linux_kill_one_process): Don't kill the first thread here.
14097 (linux_kill): Kill the first thread here.
14098 (kill_lwp): New function.
14099 (send_sigstop, linux_send_signal): Use it.
14100 * proc-service.c: Clean up #ifdefs.
14101 (fpregset_info): Delete.
14102 (ps_lgetregs): Update and enable implementation.
14103 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
14104 implementations.
14105 * remote-utils.c (struct sym_cache, symbol_cache): New.
14106 (input_interrupt): Print a clearer message.
14107 (async_io_enabled): New variable.
14108 (enable_async_io, disable_async_io): Use it. Update comments.
14109 (look_up_one_symbol): Use the symbol cache.
14110 * thread-db.c (thread_db_look_up_symbols): New function.
14111 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
14112
14113 2004-10-16 Daniel Jacobowitz <dan@debian.org>
14114
14115 * configure.in: Test for -rdynamic.
14116 * configure: Regenerated.
14117 * Makefile (INTERNAL_LDFLAGS): New.
14118 (gdbserver, gdbreplay): Use it.
14119
14120 2004-09-02 Andrew Cagney <cagney@gnu.org>
14121
14122 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
14123
14124 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
14125
14126 * linux-low.c (linux_wait): Clear all_processes list also.
14127
14128 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
14129
14130 * linux-low.c: Include <errno.h>. Remove extern declaration of
14131 errno.
14132
14133 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
14134
14135 * gdbreplay.c, server.h, utils.c: Update copyright years.
14136
14137 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
14138
14139 * server.c (main): Print child status or termination signal from
14140 variable 'signal', not 'sig'.
14141
14142 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
14143
14144 * linux-low.c (linux_read_memory): Change return type to
14145 int. Check for and return error from ptrace().
14146 * target.c (read_inferior_memory): Change return type to int. Pass
14147 back return status from the_target->read_memory().
14148 * target.h (struct target_ops): Adapt *read_memory() prototype.
14149 Update comment.
14150 (read_inferior_memory): Adapt prototype.
14151 * server.c (main): Return an error packet if
14152 read_inferior_memory() returns an error.
14153
14154 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
14155
14156 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
14157 Unify with other clean targets.
14158
14159 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
14160
14161 * server.c (handle_v_cont): Call set_desired_inferior.
14162
14163 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
14164
14165 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
14166
14167 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
14168
14169 * linux-low.c (linux_wait): Unblock async I/O.
14170 (linux_resume): Block and enable async I/O.
14171 * remote-utils.c (block_async_io, unblock_async_io): New functions.
14172 * server.h (block_async_io, unblock_async_io): Add prototypes.
14173
14174 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
14175
14176 * remote-utils.c (remote_open): Print a status notice after
14177 opening a TCP port.
14178 * server.c (attach_inferior): Print a status notice after
14179 attaching.
14180
14181 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
14182
14183 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
14184
14185 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
14186
14187 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
14188 error packet.
14189 * server.c, target.h: Update copyright years.
14190
14191 2004-02-25 Roland McGrath <roland@redhat.com>
14192
14193 * target.h (struct target_ops): New member `read_auxv'.
14194 * server.c (handle_query): Handle qPart:auxv:read: query using that.
14195 * linux-low.c (linux_read_auxv): New function.
14196 (linux_target_ops): Initialize `read_auxv' member to that.
14197
14198 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14199
14200 Committed by Jim Blandy <jimb@redhat.com>.
14201
14202 * linux-s390-low.c (s390_num_regs): Update.
14203 (s390_regmap): Remove control registers. Use __s390x__ predefine
14204 instead of GPR_SIZE to distiguish s390 and s390x targets.
14205
14206 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
14207
14208 * linux-low.c: Update copyright year.
14209 (check_removed_breakpoint): Clear pending_is_breakpoint.
14210 (linux_set_resume_request, linux_queue_one_thread)
14211 (resume_status_pending_p): New functions.
14212 (linux_continue_one_thread): Use process->resume.
14213 (linux_resume): Only resume threads if there are no pending events.
14214 * linux-low.h (struct process_info): Add resume request
14215 pointer.
14216
14217 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
14218
14219 * regcache.c (new_register_cache): Clear the allocated register
14220 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
14221
14222 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
14223
14224 * linux-low.c (linux_resume): Take a struct thread_resume *
14225 argument.
14226 (linux_wait): Update call.
14227 (resume_ptr): New static variable.
14228 (linux_continue_one_thread): Renamed from
14229 linux_continue_one_process. Use resume_ptr.
14230 (linux_resume): Use linux_continue_one_thread.
14231 * server.c (handle_v_cont, handle_v_requests): New functions.
14232 (myresume): New function.
14233 (main): Handle 'v' case.
14234 * target.h (struct thread_resume): New type.
14235 (struct target_ops): Change argument of "resume" to struct
14236 thread_resume *.
14237 (myresume): Delete macro.
14238
14239 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
14240
14241 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
14242 (uninstall): Support DESTDIR.
14243
14244 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
14245
14246 * configure.srv: Add xscale*linux copy of arm*linux entry.
14247
14248 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
14249
14250 * linux-arm-low.c (arm_reinsert_addr): New function.
14251 (the_low_target): Add arm_reinsert_addr.
14252
14253 2003-07-08 Mark Kettenis <kettenis@gnu.org>
14254
14255 * mem-break.c: Remove whitespace at end of file.
14256
14257 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
14258
14259 * configure.in: Check whether we need to prototype strerror.
14260 * server.h: Optionally prototype strerror.
14261 * gdbreplay.c (perror_with_name): Use strerror.
14262 * linux-low.c (linux_attach_lwp): Use strerror.
14263 * utils.c (perror_with_name): Use strerror.
14264 * config.in, configure: Regenerated.
14265
14266 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
14267
14268 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
14269 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
14270
14271 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
14272
14273 * Makefile.in (SFILES): Update.
14274 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
14275 low-sun3.c: Remove files.
14276
14277 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
14278
14279 * linux-low.c: Move comment to linux_thread_alive where it belonged.
14280 (linux_detach_one_process, linux_detach): New functions.
14281 (linux_target_ops): Add linux_detach.
14282 * server.c (main): Handle 'D' packet.
14283 * target.h (struct target_ops): Add "detach" member.
14284 (detach_inferior): Define.
14285
14286 2003-06-13 Mark Kettenis <kettenis@gnu.org>
14287
14288 From Kelley Cook <kelleycook@wideopenwest.com>:
14289 * configure.srv: Accept i[34567]86 variants.
14290
14291 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
14292
14293 * linux-low.c (linux_wait_for_event): Correct comment typos.
14294 (linux_resume_one_process): Call check_removed_breakpoint.
14295 (linux_send_signal): New function.
14296 (linux_target_ops): Add linux_send_signal.
14297 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
14298 of kill.
14299 * target.h (struct target_ops): Add send_signal.
14300
14301 2003-05-29 Jim Blandy <jimb@redhat.com>
14302
14303 * linux-low.c (usr_store_inferior_registers): Transfer buf in
14304 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
14305 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
14306 away part of the register's value.
14307
14308 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
14309
14310 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
14311 (linux_wait_for_event, linux_init_signals): Likewise.
14312
14313 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
14314
14315 * configure.in: Check for stdlib.h.
14316 * configure: Regenerated.
14317 * config.in: Regenerated.
14318
14319 2003-01-04 Andreas Schwab <schwab@suse.de>
14320
14321 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
14322
14323 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14324
14325 * Makefile.in: Remove obsolete code.
14326
14327 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
14328
14329 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
14330 defined(PT_FPR0_HI).
14331
14332 2002-11-17 Stuart Hughes <seh@zee2.com>
14333
14334 * linux-arm-low.c (arm_num_regs): Increase.
14335 (arm_regmap): Include status register.
14336
14337 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
14338
14339 * linux-low.c (register_addr): Remove incorrect -1 check.
14340
14341 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
14342
14343 * linux-low.c (linux_create_inferior): Call setpgid. Return
14344 the new PID.
14345 (unstopped_p, linux_signal_pid): Remove.
14346 (linux_target_ops): Remove linux_signal_pid.
14347 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
14348 global instead of target method.
14349 * target.h (struct target_ops): Remove signal_pid. Update comment
14350 for create_inferior.
14351 * server.c (signal_pid): New variable.
14352 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
14353 gdbserver. Set the child to be the foreground process group.
14354 (attach_inferior): Set signal_pid.
14355
14356 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
14357
14358 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
14359
14360 2002-08-20 Jim Blandy <jimb@redhat.com>
14361
14362 * Makefile.in (LDFLAGS): Allow the configure script to establish a
14363 default for this.
14364
14365 2002-08-01 Andrew Cagney <cagney@redhat.com>
14366
14367 * Makefile.in: Make chill references obsolete.
14368
14369 2002-07-24 Kevin Buettner <kevinb@redhat.com>
14370
14371 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
14372 * configure: Regenerate.
14373 * config.in: Regenerate.
14374
14375 2002-07-09 David O'Brien <obrien@FreeBSD.org>
14376
14377 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
14378 (perror_with_name, remote_close, remote_open, expect, play): Static.
14379
14380 2002-07-04 Michal Ludvig <mludvig@suse.cz>
14381
14382 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
14383 byte offsets instead of an array of indexes.
14384 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
14385
14386 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
14387
14388 * regcache.c: Add comment.
14389
14390 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
14391
14392 * thread-db.c: New file.
14393 * proc-service.c: New file.
14394 * acinclude.m4: New file.
14395 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
14396 proc-service.o, and thread-db.o.
14397 (linux-low.o): Add USE_THREAD_DB.
14398 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
14399 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
14400 * aclocal.m4: Regenerated.
14401 * config.in: Regenerated.
14402 * configure: Regenerated.
14403 * configure.in: Check for proc_service.h, sys/procfs.h,
14404 thread_db.h, and linux/elf.h headrs.
14405 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
14406 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
14407 Check for -lthread_db and thread support.
14408 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
14409 PowerPC, and SuperH.
14410 * i387-fp.c: Constify arguments.
14411 * i387-fp.h: Likewise.
14412 * inferiors.c: (struct thread_info): Renamed from
14413 `struct inferior_info'. Remove PID member. Use generic inferior
14414 list header. All uses updated.
14415 (inferiors, signal_pid): Removed.
14416 (all_threads): New variable.
14417 (get_thread): Define.
14418 (add_inferior_to_list): New function.
14419 (for_each_inferior): New function.
14420 (change_inferior_id): New function.
14421 (add_inferior): Removed.
14422 (remove_inferior): New function.
14423 (add_thread): New function.
14424 (free_one_thread): New function.
14425 (remove_thread): New function.
14426 (clear_inferiors): Use for_each_inferior and free_one_thread.
14427 (find_inferior): New function.
14428 (find_inferior_id): New function.
14429 (inferior_target_data): Update argument type.
14430 (set_inferior_target_data): Likewise.
14431 (inferior_regcache_data): Likewise.
14432 (set_inferior_regcache_data): Likewise.
14433 * linux-low.c (linux_bp_reinsert): Remove.
14434 (all_processes, stopping_threads, using_thrads)
14435 (struct pending_signals, debug_threads, pid_of): New.
14436 (inferior_pid): Replace with macro.
14437 (struct inferior_linux_data): Remove.
14438 (get_stop_pc, add_process): New functions.
14439 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
14440 Use add_process and add_thread.
14441 (linux_attach_lwp): New function, based on old linux_attach. Use
14442 add_process and add_thread. Set stop_expected for new threads.
14443 (linux_attach): New function.
14444 (linux_kill_one_process): New function.
14445 (linux_kill): Kill all LWPs.
14446 (linux_thread_alive): Use find_inferior_id.
14447 (check_removed_breakpoints, status_pending_p): New functions.
14448 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
14449 Update. Use WNOHANG. Wait for cloned processes also. Update process
14450 struct for the found process.
14451 (linux_wait_for_event): New function.
14452 (linux_wait): Use it. Support LWPs.
14453 (send_sigstop, wait_for_sigstop, stop_all_processes)
14454 (linux_resume_one_process, linux_continue_one_process): New functions.
14455 (linux_resume): Support LWPs.
14456 (REGISTER_RAW_SIZE): Remove.
14457 (fetch_register): Use register_size instead. Call supply_register.
14458 (usr_store_inferior_registers): Likewise. Call collect_register.
14459 Fix recursive case.
14460 (regsets_fetch_inferior_registers): Improve error message.
14461 (regsets_store_inferior_registers): Add debugging.
14462 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
14463 (unstopped_p, linux_signal_pid): New functions.
14464 (linux_target_ops): Add linux_signal_pid.
14465 (linux_init_signals): New function.
14466 (initialize_low): Call it. Initialize using_threads.
14467 * regcache.c (inferior_regcache_data): Add valid
14468 flag.
14469 (get_regcache): Fetch registers lazily. Add fetch argument
14470 and update all callers.
14471 (regcache_invalidate_one, regcache_invalidate): New
14472 functions.
14473 (new_register_cache): Renamed from create_register_cache.
14474 Return the new regcache.
14475 (free_register_cache): Change argument to a void *.
14476 (registers_to_string, registers_from_string): Call get_regcache
14477 with fetch flag set.
14478 (register_data): Make static. Pass fetch flag to get_regcache.
14479 (supply_register): Call get_regcache with fetch flag clear.
14480 (collect_register): Call get_regcache with fetch flag set.
14481 (collect_register_as_string): New function.
14482 * regcache.h: Update.
14483 * remote-utils.c (putpkt): Flush after debug output and use
14484 stderr.
14485 Handle input interrupts while waiting for an ACK.
14486 (input_interrupt): Use signal_pid method.
14487 (getpkt): Flush after debug output and use stderr.
14488 (outreg): Use collect_register_as_string.
14489 (new_thread_notify, dead_thread_notify): New functions.
14490 (prepare_resume_reply): Check using_threads. Set thread_from_wait
14491 and general_thread.
14492 (look_up_one_symbol): Flush after debug output.
14493 * server.c (step_thread, server_waiting): New variables.
14494 (start_inferior): Don't use signal_pid. Update call to mywait.
14495 (attach_inferior): Update call to mywait.
14496 (handle_query): Handle qfThreadInfo and qsThreadInfo.
14497 (main): Don't fetch/store registers explicitly. Use
14498 set_desired_inferior. Support proposed ``Hs'' packet. Update
14499 calls to mywait.
14500 * server.h: Update.
14501 (struct inferior_list, struct_inferior_list_entry): New.
14502 * target.c (set_desired_inferior): New.
14503 (write_inferior_memory): Constify.
14504 (mywait): New function.
14505 * target.h: Update.
14506 (struct target_ops): New signal_pid method.
14507 (mywait): Removed macro, added prototype.
14508
14509 * linux-low.h (regset_func): Removed.
14510 (regset_fill_func, regset_store_func): New.
14511 (enum regset_type): New.
14512 (struct regset_info): Add type field. Use new operation types.
14513 (struct linux_target_ops): stop_pc renamed to get_pc.
14514 Add decr_pc_after_break and breakpoint_at.
14515 (get_process, get_thread_proess, get_process_thread)
14516 (strut process_info, all_processes, linux_attach_lwp)
14517 (thread_db_init): New.
14518
14519 * linux-arm-low.c (arm_get_pc, arm_set_pc,
14520 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
14521 (the_low_target): Add new members.
14522 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
14523 (i386_store_fpxregset): Constify.
14524 (target_regsets): Add new kind identifier.
14525 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
14526 (i386_set_pc): Add debugging.
14527 (i386_breakpoint_at): New function.
14528 (the_low_target): Add new members.
14529 * linux-mips-low.c (mips_get_pc, mips_set_pc)
14530 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
14531 (mips_breakpoint_at): New.
14532 (the_low_target): Add new members.
14533 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
14534 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
14535 (the_low_target): Add new members.
14536 * linux-sh-low.c (sh_get_pc, sh_set_pc)
14537 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
14538 (the_low_target): Add new members.
14539 * linux-x86-64-low.c (target_regsets): Add new kind
14540 identifier.
14541
14542 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
14543
14544 From Martin Pool <mbp@samba.org>:
14545 * server.c (gdbserver_usage): New function.
14546 (main): Call it.
14547
14548 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
14549
14550 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
14551 stop_at -> stop_pc.
14552
14553 2002-05-04 Andrew Cagney <ac131313@redhat.com>
14554
14555 * Makefile.in: Remove obsolete code.
14556
14557 2002-04-24 Michal Ludvig <mludvig@suse.cz>
14558
14559 * linux-low.c (regsets_fetch_inferior_registers),
14560 (regsets_store_inferior_registers): Removed cast to int from
14561 ptrace() calls.
14562 * regcache.h: Added declaration of struct inferior_info.
14563
14564 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
14565
14566 * inferiors.c (struct inferior_info): Add regcache_data.
14567 (add_inferior): Call create_register_cache.
14568 (clear_inferiors): Call free_register_cache.
14569 (inferior_regcache_data, set_inferior_regcache_data): New functions.
14570 * regcache.c (struct inferior_regcache_data): New.
14571 (registers): Remove.
14572 (get_regcache): New function.
14573 (create_register_cache, free_register_cache): New functions.
14574 (set_register_cache): Don't initialize the register cache here.
14575 (registers_to_string, registers_from_string, register_data): Call
14576 get_regcache.
14577 * regcache.h: Add prototypes.
14578 * server.h: Likewise.
14579
14580 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
14581
14582 * mem-break.c: New file.
14583 * mem-break.h: New file.
14584 * Makefile.in: Add mem-break.o rule; update server.h
14585 dependencies.
14586 * inferiors.c (struct inferior_info): Add target_data
14587 member.
14588 (clear_inferiors): Free target_data member if set.
14589 (inferior_target_data, set_inferior_target_data): New functions.
14590 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
14591 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
14592 * linux-low.c (linux_bp_reinsert): New variable.
14593 (struct inferior_linux_data): New.
14594 (linux_create_inferior): Use set_inferior_target_data.
14595 (linux_attach): Likewise. Call add_inferior.
14596 (linux_wait_for_one_inferior): New function.
14597 (linux_wait): Call it.
14598 (linux_write_memory): Add const.
14599 (initialize_low): Call set_breakpoint_data.
14600 * linux-low.h (struct linux_target_ops): Add breakpoint
14601 handling members.
14602 * server.c (attach_inferior): Remove extra add_inferior
14603 call.
14604 * server.h: Include mem-break.h. Update inferior.c
14605 prototypes.
14606 * target.c (read_inferior_memory)
14607 (write_inferior_memory): New functions.
14608 * target.h (read_inferior_memory)
14609 (write_inferior_memory): Change macros to prototypes.
14610 (struct target_ops): Update comments. Add const to write_memory
14611 definition.
14612
14613 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
14614
14615 * linux-low.c (usr_store_inferior_registers): Support
14616 registers which are allowed to fail to store.
14617 * linux-low.h (linux_target_ops): Likewise.
14618 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
14619 (ppc_cannot_store_register): FPSCR may not be storable.
14620
14621 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
14622
14623 * server.h: Include <string.h> if HAVE_STRING_H.
14624 * ChangeLog: Correct paths in last ChangeLog entry.
14625
14626 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
14627
14628 * linux-low.h: Remove obsolete prototypes.
14629 (struct linux_target_ops): New.
14630 (extern the_low_target): New.
14631 * linux-low.c (num_regs, regmap): Remove declarations.
14632 (register_addr): Use the_low_target explicitly.
14633 (fetch_register): Likewise.
14634 (usr_fetch_inferior_registers): Likewise.
14635 (usr_store_inferior_registers): Likewise.
14636 * linux-arm-low.c (num_regs): Remove.
14637 (arm_num_regs): Define.
14638 (arm_regmap): Renamed from regmap, made static.
14639 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
14640 made static.
14641 (arm_cannot_store_register): Renamed from cannot_store_register,
14642 made static.
14643 (the_low_target): New.
14644 * linux-i386-low.c (num_regs): Remove.
14645 (i386_num_regs): Define.
14646 (i386_regmap): Renamed from regmap, made static.
14647 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
14648 made static.
14649 (i386_cannot_store_register): Renamed from cannot_store_register,
14650 made static.
14651 (the_low_target): New.
14652 * linux-ia64-low.c (num_regs): Remove.
14653 (ia64_num_regs): Define.
14654 (ia64_regmap): Renamed from regmap, made static.
14655 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
14656 made static.
14657 (ia64_cannot_store_register): Renamed from cannot_store_register,
14658 made static.
14659 (the_low_target): New.
14660 * linux-m68k-low.c (num_regs): Remove.
14661 (m68k_num_regs): Define.
14662 (m68k_regmap): Renamed from regmap, made static.
14663 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
14664 made static.
14665 (m68k_cannot_store_register): Renamed from cannot_store_register,
14666 made static.
14667 (the_low_target): New.
14668 * linux-mips-low.c (num_regs): Remove.
14669 (mips_num_regs): Define.
14670 (mips_regmap): Renamed from regmap, made static.
14671 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
14672 made static.
14673 (mips_cannot_store_register): Renamed from cannot_store_register,
14674 made static.
14675 (the_low_target): New.
14676 * linux-ppc-low.c (num_regs): Remove.
14677 (ppc_num_regs): Define.
14678 (ppc_regmap): Renamed from regmap, made static.
14679 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
14680 made static.
14681 (ppc_cannot_store_register): Renamed from cannot_store_register,
14682 made static.
14683 (the_low_target): New.
14684 * linux-s390-low.c (num_regs): Remove.
14685 (s390_num_regs): Define.
14686 (s390_regmap): Renamed from regmap, made static.
14687 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
14688 made static.
14689 (s390_cannot_store_register): Renamed from cannot_store_register,
14690 made static.
14691 (the_low_target): New.
14692 * linux-sh-low.c (num_regs): Remove.
14693 (sh_num_regs): Define.
14694 (sh_regmap): Renamed from regmap, made static.
14695 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
14696 made static.
14697 (sh_cannot_store_register): Renamed from cannot_store_register,
14698 made static.
14699 (the_low_target): New.
14700 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
14701 (the_low_target): New.
14702
14703 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
14704
14705 * Makefile.in: Add stamp-h target.
14706 * configure.in: Create stamp-h.
14707 * configure: Regenerated.
14708
14709 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
14710
14711 * inferiors.c: New file.
14712 * target.c: New file.
14713 * target.h: New file.
14714 * Makefile.in: Add target.o and inferiors.o. Update
14715 dependencies.
14716 * linux-low.c (inferior_pid): New static variable,
14717 moved from server.c.
14718 (linux_create_inferior): Renamed from create_inferior.
14719 Call add_inferior. Return 0 on success instead of a PID.
14720 (linux_attach): Renamed from myattach.
14721 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
14722 (linux_thread_alive): Renamed from mythread_alive.
14723 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
14724 child dies.
14725 (linux_resume): Renamed from myresume. Add missing ``return 0''.
14726 (regsets_store_inferior_registers): Correct error message.
14727 Add missing ``return 0''.
14728 (linux_fetch_registers): Renamed from fetch_inferior_registers.
14729 (linux_store_registers): Renamed from store_inferior_registers.
14730 (linux_read_memory): Renamed from read_inferior_memory.
14731 (linux_write_memory): Renamed from write_inferior_memory.
14732 (linux_target_ops): New structure.
14733 (initialize_low): Call set_target_ops ().
14734 * remote-utils.c (unhexify): New function.
14735 (hexify): New function.
14736 (input_interrupt): Send signals to ``signal_pid''.
14737 * server.c (inferior_pid): Remove.
14738 (start_inferior): Update create_inferior call.
14739 (attach_inferior): Call add_inferior.
14740 (handle_query): New function.
14741 (main): Call handle_query for `q' packets.
14742 * server.h: Include "target.h". Remove obsolete prototypes.
14743 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
14744
14745 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
14746
14747 * Makefile.in: Add WARN_CFLAGS. Update configury
14748 dependencies.
14749 * configure.in: Check for <string.h>
14750 * configure: Regenerate.
14751 * config.in: Regenerate.
14752 * gdbreplay.c: Include needed system headers.
14753 (remote_open): Remove strchr prototype.
14754 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
14755 * regcache.c (supply_register): Change buf argument to const void *.
14756 (supply_register_by_name): Likewise.
14757 (collect_register): Change buf argument to void *.
14758 (collect_register_by_name): Likewise.
14759 * regcache.h: Add missing prototypes.
14760 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
14761 * server.c (handle_query): New function.
14762 (attached): New static variable, moved out of main.
14763 (main): Quiet longjmp clobber warnings.
14764 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
14765 * utils.c (error): Remove NORETURN.
14766 (fatal): Likewise.
This page took 0.347293 seconds and 4 git commands to generate.