1 2020-04-13 Tom Tromey <tom@tromey.com>
3 * server.c (invoke_async_signal_handlers)
4 (check_async_event_handlers, flush_streams, gdb_select): New
7 2020-04-13 Tom Tromey <tom@tromey.com>
12 2020-04-08 Tom Tromey <tromey@adacore.com>
15 * win32-low.c (child_continue): Call matching_pending_stop.
16 (get_child_debug_event): Call fetch_pending_stop. Push pending
19 2020-04-08 Tom Tromey <tromey@adacore.com>
21 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
22 (win32_process_target::supports_stopped_by_sw_breakpoint):
24 * win32-low.c (win32_supports_z_point_type): Always handle
26 (win32_insert_point): Call insert_memory_breakpoint when needed.
27 (win32_remove_point): Call remove_memory_breakpoint when needed.
28 (win32_process_target::stopped_by_sw_breakpoint)
29 (win32_process_target::supports_stopped_by_sw_breakpoint): New
31 (win32_target_ops): Update.
32 (maybe_adjust_pc): New function.
33 (win32_wait): Call maybe_adjust_pc.
35 2020-04-08 Tom Tromey <tromey@adacore.com>
37 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
39 * win32-i386-low.c (the_low_target): Update.
40 * win32-arm-low.c (the_low_target): Update.
42 2020-04-08 Tom Tromey <tromey@adacore.com>
44 * win32-low.h (win32_process_target::read_pc)
45 (win32_process_target::write_pc): Declare.
46 * win32-low.c (win32_process_target::read_pc)
47 (win32_process_target::write_pc): New methods.
48 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
50 (the_low_target): Update.
51 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
53 (the_low_target): Update.
55 2020-04-08 Tom Tromey <tromey@adacore.com>
57 * win32-low.c (win32_kill, get_child_debug_event): Use
60 2020-04-08 Tom Tromey <tromey@adacore.com>
62 * win32-low.c (child_continue): Call continue_last_debug_event.
64 2020-04-08 Tom Tromey <tromey@adacore.com>
66 * win32-low.c (handle_exception): Remove.
67 (windows_nat::handle_ms_vc_exception): New function.
68 (get_child_debug_event): Add "continue_status" parameter.
72 2020-04-08 Tom Tromey <tromey@adacore.com>
74 * win32-low.c (windows_nat::handle_load_dll): Rename from
75 handle_load_dll. No longer static.
76 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
79 2020-04-08 Tom Tromey <tromey@adacore.com>
81 * win32-low.c (handle_output_debug_string): Add parameter. Change
83 (win32_kill, get_child_debug_event): Update.
85 2020-04-08 Tom Tromey <tromey@adacore.com>
87 * win32-low.c (current_process_handle, current_process_id)
88 (main_thread_id, last_sig, current_event, siginfo_er): Move to
91 2020-04-08 Tom Tromey <tromey@adacore.com>
93 * win32-low.c (get_image_name): Remove.
94 (handle_load_dll): Update.
96 2020-04-08 Tom Tromey <tromey@adacore.com>
98 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
99 No longer static. Change parameters.
100 (child_add_thread, child_fetch_inferior_registers)
101 (child_store_inferior_registers, win32_resume)
102 (win32_get_tib_address): Update.
104 2020-04-08 Tom Tromey <tromey@adacore.com>
106 * win32-low.h (struct win32_target_ops): Use qualified names where
108 * win32-i386-low.c: Add "using namespace".
109 * win32-low.c: Add "using namespace".
110 * win32-arm-low.c: Add "using namespace".
112 2020-04-08 Tom Tromey <tromey@adacore.com>
114 * win32-low.c (delete_thread_info): Don't call CloseHandle.
116 2020-04-08 Tom Tromey <tromey@adacore.com>
118 * win32-low.c (win32_require_context, suspend_one_thread): Use
119 windows_thread_info::suspend.
120 (continue_one_thread): Use windows_thread_info::resume.
121 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
123 2020-04-08 Tom Tromey <tromey@adacore.com>
125 * win32-i386-low.c (update_debug_registers)
126 (i386_prepare_to_resume, i386_thread_added): Update.
128 2020-04-08 Tom Tromey <tromey@adacore.com>
130 * win32-low.c (child_add_thread): Use new.
131 (delete_thread_info): Use delete.
133 2020-04-08 Tom Tromey <tromey@adacore.com>
135 * win32-low.h (struct windows_thread_info): Remove.
137 2020-04-08 Tom Tromey <tromey@adacore.com>
139 * win32-low.h (struct windows_thread_info): Rename from
140 win32_thread_info. Remove typedef.
141 (struct win32_target_ops, win32_require_context): Update.
142 * win32-low.c (win32_get_thread_context)
143 (win32_set_thread_context, win32_prepare_to_resume)
144 (win32_require_context, thread_rec, child_add_thread)
145 (delete_thread_info, continue_one_thread)
146 (child_fetch_inferior_registers, child_store_inferior_registers)
147 (win32_resume, suspend_one_thread, win32_get_tib_address):
149 * win32-i386-low.c (update_debug_registers)
150 (win32_get_current_dr, i386_get_thread_context)
151 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
152 (i386_fetch_inferior_register, i386_store_inferior_register):
154 * win32-arm-low.c (arm_get_thread_context)
155 (arm_fetch_inferior_register, arm_store_inferior_register):
158 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
160 * linux-low.h (struct linux_target_ops): Remove.
161 (the_low_target): Remove.
162 * linux-x86-low.cc (the_low_target): Remove.
163 * linux-aarch64-low.cc (the_low_target): Ditto.
164 * linux-arm-low.cc (the_low_target): Ditto.
165 * linux-bfin-low.cc (the_low_target): Ditto.
166 * linux-cris-low.cc (the_low_target): Ditto.
167 * linux-crisv32-low.cc (the_low_target): Ditto.
168 * linux-ia64-low.cc (the_low_target): Ditto.
169 * linux-m32r-low.cc (the_low_target): Ditto.
170 * linux-m68k-low.cc (the_low_target): Ditto.
171 * linux-mips-low.cc (the_low_target): Ditto.
172 * linux-nios2-low.cc (the_low_target): Ditto.
173 * linux-ppc-low.cc (the_low_target): Ditto.
174 * linux-riscv-low.cc (the_low_target): Ditto.
175 * linux-s390-low.cc (the_low_target): Ditto.
176 * linux-sh-low.cc (the_low_target): Ditto.
177 * linux-sparc-low.cc (the_low_target): Ditto.
178 * linux-tic6x-low.cc (the_low_target): Ditto.
179 * linux-tile-low.cc (the_low_target): Ditto.
180 * linux-xtensa-low.cc (the_low_target): Ditto.
182 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
184 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
185 linux target define the op by overriding the declaration in
186 process_stratum_target.
188 * linux-low.h (struct linux_target_ops): Remove the op.
189 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
190 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
191 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
192 (x86_get_ipa_tdesc_idx): Turn into...
193 (x86_target::get_ipa_tdesc_idx): ...this.
194 (the_low_target): Remove the op field.
195 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
196 (ppc_get_ipa_tdesc_idx): Turn into...
197 (ppc_target::get_ipa_tdesc_idx): ...this.
198 (the_low_target): Remove the op field.
199 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
200 (s390_get_ipa_tdesc_idx): Turn into...
201 (s390_target::get_ipa_tdesc_idx): ...this.
202 (the_low_target): Remove the op field.
204 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
206 Turn the 'get_syscall_trapinfo' linux target op into a method
207 of process_stratum_target.
209 * linux-low.h (struct linux_target_ops): Remove the op.
210 (class linux_process_target) <get_syscall_trapinfo>
211 <gdb_catch_this_syscall>
212 <low_supports_catch_syscall>
213 <low_get_syscall_trapinfo>: Declare.
214 * linux-low.cc (get_syscall_trapinfo): Turn into...
215 (linux_process_target::get_syscall_trapinfo): ...this.
216 (linux_process_target::low_get_syscall_trapinfo): Define.
217 (gdb_catch_this_syscall_p): Turn into...
218 (linux_process_target::gdb_catch_this_syscall): ...this.
219 (linux_process_target::low_supports_catch_syscall): Define.
221 Update the callers below.
223 (linux_process_target::wait_1)
224 (linux_process_target::supports_catch_syscall)
226 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
227 <low_get_syscall_trapinfo>: Declare.
228 (x86_target::low_supports_catch_syscall): Define.
229 (x86_get_syscall_trapinfo): Turn into...
230 (x86_target::low_get_syscall_trapinfo): ...this.
231 (the_low_target): Remove the op field.
232 * linux-aarch64-low.cc (class aarch64_target)
233 <low_supports_catch_syscall>
234 <low_get_syscall_trapinfo>: Declare.
235 (aarch64_target::low_supports_catch_syscall): Define.
236 (aarch64_get_syscall_trapinfo): Turn into...
237 (aarch64_target::low_get_syscall_trapinfo): ...this.
238 (the_low_target): Remove the op field.
239 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
240 <low_get_syscall_trapinfo>: Declare.
241 (arm_target::low_supports_catch_syscall): Define.
242 (arm_get_syscall_trapinfo): Turn into...
243 (arm_target::low_get_syscall_trapinfo): ...this.
244 (the_low_target): Remove the op field.
245 * linux-ppc-low.cc (the_low_target): Remove the op field.
246 * linux-s390-low.cc (the_low_target): Remove the op field.
248 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
250 Remove the 'supports_hardware_single_step' linux target op and
251 override the process_stratum_target's op definition in
252 linux_process_target to return true.
254 * linux-low.h (struct linux_target_ops): Remove the op.
255 (class linux_process_target) <finish_step_over>
256 <maybe_hw_step>: Declare.
257 * linux-low.cc (can_hardware_single_step): Remove.
258 (maybe_hw_step): Turn into...
259 (linux_process_target::maybe_hw_step): ...this.
260 (finish_step_over): Turn into...
261 (linux_process_target::finish_step_over): ...this.
262 (linux_process_target::supports_hardware_single_step): Update
265 Update the callers below.
267 (linux_process_target::single_step)
268 (linux_process_target::resume_one_lwp_throw)
270 * linux-arm-low.cc (class arm_target)
271 <supports_hardware_single_step>: Declare.
272 (arm_supports_hardware_single_step): Turn into...
273 (arm_target::supports_hardware_single_step): ...this.
274 (the_low_target): Remove the op field.
275 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
276 (the_low_target): Remove the op field.
277 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
279 (the_low_target): Remove the op field.
280 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
281 (the_low_target): Remove the op field.
282 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
283 (the_low_target): Remove the op field.
284 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
285 (the_low_target): Remove the op field.
286 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
287 (the_low_target): Remove the op field.
288 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
289 (the_low_target): Remove the op field.
290 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
291 (the_low_target): Remove the op field.
292 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
293 (the_low_target): Remove the op field.
294 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
295 (the_low_target): Remove the op field.
296 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
297 (the_low_target): Remove the op field.
298 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
300 (the_low_target): Remove the op field.
302 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
304 Turn the 'supports_range_stepping' linux target op into a method
305 of linux_process_target.
307 * linux-low.h (struct linux_target_ops): Remove the op.
308 (class linux_process_target) <low_supports_range_stepping>: Declare.
309 * linux-low.cc (linux_process_target::low_supports_range_stepping):
311 (linux_process_target::supports_range_stepping): Update the call
313 * linux-x86-low.cc (class x86_target)
314 <low_supports_range_stepping>: Declare.
315 (x86_supports_range_stepping): Turn into...
316 (x86_target::low_supports_range_stepping): ...this.
317 (the_low_target): Remove the op field.
318 * linux-aarch64-low.cc (class aarch64_target)
319 <low_supports_range_stepping>: Declare.
320 (aarch64_supports_range_stepping): Turn into...
321 (aarch64_target::low_supports_range_stepping): ...this.
322 (the_low_target): Remove the op field.
323 * linux-arm-low.cc (the_low_target): Remove the op field.
324 * linux-bfin-low.cc (the_low_target): Ditto.
325 * linux-crisv32-low.cc (the_low_target): Ditto.
326 * linux-m32r-low.cc (the_low_target): Ditto.
327 * linux-m68k-low.cc (the_low_target): Ditto.
328 * linux-ppc-low.cc (the_low_target): Ditto.
329 * linux-s390-low.cc (the_low_target): Ditto.
330 * linux-sh-low.cc (the_low_target): Ditto.
331 * linux-tic6x-low.cc (the_low_target): Ditto.
332 * linux-tile-low.cc (the_low_target): Ditto.
333 * linux-xtensa-low.cc (the_low_target): Ditto.
335 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
337 Remove the 'emit_ops' linux target ops and let the concrete
338 linux target define the op by overriding the declaration of
339 process_stratum_target.
341 * linux-low.h (struct linux_target_ops): Remove the op.
342 (class linux_process_target) <emit_ops>: Remove.
343 * linux-low.cc (linux_process_target::emit_ops): Remove.
344 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
345 (x86_emit_ops): Turn into...
346 (x86_target::emit_ops): ...this.
347 (the_low_target): Remove the op field.
348 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
349 (aarch64_emit_ops): Turn into...
350 (aarch64_target::emit_ops): ...this.
351 (the_low_target): Remove the op field.
352 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
353 (ppc_emit_ops): Turn into...
354 (ppc_target::emit_ops): ...this.
355 (the_low_target): Remove the op field.
356 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
357 (s390_emit_ops): Turn into...
358 (s390_target::emit_ops): ...this.
359 (the_low_target): Remove the op field.
360 * linux-arm-low.cc (the_low_target): Remove the op field.
361 * linux-bfin-low.cc (the_low_target): Ditto.
362 * linux-crisv32-low.cc (the_low_target): Ditto.
363 * linux-m32r-low.cc (the_low_target): Ditto.
364 * linux-m68k-low.cc (the_low_target): Ditto.
365 * linux-sh-low.cc (the_low_target): Ditto.
366 * linux-tic6x-low.cc (the_low_target): Ditto.
367 * linux-tile-low.cc (the_low_target): Ditto.
368 * linux-xtensa-low.cc (the_low_target): Ditto.
370 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
372 Remove the 'install_fast_tracepoint_jump_pad' and
373 'get_min_fast_tracepoint_insn_len' linux target ops to let the
374 concrete linux target define the ops by overriding the declarations
375 of process_stratum_target.
377 * linux-low.h (struct linux_target_ops): Remove the ops.
378 (class linux_process_target) <supports_fast_tracepoints>
379 <install_fast_tracepoint_jump_pad>
380 <get_min_fast_tracepoint_insn_len>: Remove.
381 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
382 (linux_process_target::install_fast_tracepoint_jump_pad)
383 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
384 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
385 <install_fast_tracepoint_jump_pad>
386 <get_min_fast_tracepoint_insn_len>: Declare.
387 (x86_target::supports_fast_tracepoints): Define.
388 (x86_install_fast_tracepoint_jump_pad): Turn into...
389 (x86_target::install_fast_tracepoint_jump_pad): ...this.
390 (x86_get_min_fast_tracepoint_insn_len): Turn into...
391 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
392 (the_low_target): Remove the op fields.
393 * linux-aarch64-low.cc (class aarch64_target)
394 <supports_fast_tracepoints>
395 <install_fast_tracepoint_jump_pad>
396 <get_min_fast_tracepoint_insn_len>: Declare.
397 (aarch64_target::supports_fast_tracepoints): Define.
398 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
399 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
400 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
401 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
402 (the_low_target): Remove the op fields.
403 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
404 <install_fast_tracepoint_jump_pad>
405 <get_min_fast_tracepoint_insn_len>: Declare.
406 (ppc_target::supports_fast_tracepoints): Define.
407 (ppc_install_fast_tracepoint_jump_pad): Turn into...
408 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
409 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
410 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
411 (the_low_target): Remove the op fields.
412 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
413 <install_fast_tracepoint_jump_pad>
414 <get_min_fast_tracepoint_insn_len>: Declare.
415 (s390_target::supports_fast_tracepoints): Define.
416 (s390_install_fast_tracepoint_jump_pad): Turn into...
417 (s390_target::install_fast_tracepoint_jump_pad): ...this.
418 (s390_get_min_fast_tracepoint_insn_len): Turn into...
419 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
420 (the_low_target): Remove the op fields.
421 * linux-arm-low.cc (the_low_target): Remove the op fields.
422 * linux-bfin-low.cc (the_low_target): Ditto.
423 * linux-crisv32-low.cc (the_low_target): Ditto.
424 * linux-m32r-low.cc (the_low_target): Ditto.
425 * linux-m68k-low.cc (the_low_target): Ditto.
426 * linux-sh-low.cc (the_low_target): Ditto.
427 * linux-tic6x-low.cc (the_low_target): Ditto.
428 * linux-tile-low.cc (the_low_target): Ditto.
429 * linux-xtensa-low.cc (the_low_target): Ditto.
431 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
433 Turn the 'get_thread_area' linux target op into a method of
434 process_stratum_target.
436 * linux-low.h (struct linux_target_ops): Remove the op.
437 (class linux_process_target) <stuck_in_jump_pad>
438 <linux_fast_tracepoint_collecting>
439 <low_get_thread_area>: Declare.
440 * linux-low.cc (supports_fast_tracepoints): Remove.
441 (linux_fast_tracepoint_collecting): Turn into...
442 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
443 (linux_process_target::low_get_thread_area): Define.
444 (stuck_in_jump_pad_callback): Turn into...
445 (linux_process_target::stuck_in_jump_pad): ...this.
447 Update the caller below.
449 (linux_process_target::stabilize_threads)
451 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
453 (x86_get_thread_area): Turn into...
454 (x86_target::low_get_thread_area): ...this.
455 (the_low_target): Remove the op field.
456 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
458 (aarch64_get_thread_area): Turn into...
459 (aarch64_target::low_get_thread_area): ...this.
460 (the_low_target): Remove the op field.
461 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
463 (ppc_get_thread_area): Turn into...
464 (ppc_target::low_get_thread_area): ...this.
465 (the_low_target): Remove the op field.
466 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
468 (s390_get_thread_area): Turn into...
469 (s390_target::low_get_thread_area): ...this.
470 (the_low_target): Remove the op field.
471 * linux-arm-low.cc (the_low_target): Remove the op field.
472 * linux-bfin-low.cc (the_low_target): Ditto.
473 * linux-crisv32-low.cc (the_low_target): Ditto.
474 * linux-m32r-low.cc (the_low_target): Ditto.
475 * linux-m68k-low.cc (the_low_target): Ditto.
476 * linux-sh-low.cc (the_low_target): Ditto.
477 * linux-tic6x-low.cc (the_low_target): Ditto.
478 * linux-tile-low.cc (the_low_target): Ditto.
479 * linux-xtensa-low.cc (the_low_target): Ditto.
481 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
483 Remote the 'supports_tracepoints' linux target op and let the
484 concrete linux target define it by overriding the op declared in
485 process_stratum_target.
487 * linux-low.h (struct linux_target_ops): Remove the op.
488 (class linux_process_target) <supports_tracepoints>: Remove.
489 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
490 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
492 (x86_supports_tracepoints): Turn into...
493 (x86_target::supports_tracepoints): ...this.
494 (the_low_target): Remove the op field.
495 * linux-aarch64-low.cc (class aarch64_target)
496 <supports_tracepoints>: Declare.
497 (aarch64_supports_tracepoints): Turn into...
498 (aarch64_target::supports_tracepoints): ...this.
499 (the_low_target): Remove the op field.
500 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
502 (ppc_supports_tracepoints): Turn into...
503 (ppc_target::supports_tracepoints): ...this.
504 (the_low_target): Remove the op field.
505 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
507 (s390_supports_tracepoints): Turn into...
508 (s390_target::supports_tracepoints): ...this.
509 (the_low_target): Remove the op field.
510 * linux-arm-low.cc (the_low_target): Remove the op field.
511 * linux-bfin-low.cc (the_low_target): Ditto.
512 * linux-crisv32-low.cc (the_low_target): Ditto.
513 * linux-m32r-low.cc (the_low_target): Ditto.
514 * linux-m68k-low.cc (the_low_target): Ditto.
515 * linux-sh-low.cc (the_low_target): Ditto.
516 * linux-tic6x-low.cc (the_low_target): Ditto.
517 * linux-tile-low.cc (the_low_target): Ditto.
518 * linux-xtensa-low.cc (the_low_target): Ditto.
520 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
522 Remove the 'process_qsupported' linux target op and let a concrete
523 linux target define the op by overriding the op declaration in
524 process_stratum_target.
526 * linux-low.h (struct linux_target_ops): Remove the op.
527 (class linux_process_target) <process_qsupported>: Remove.
528 * linux-low.cc (linux_process_target::process_qsupported): Remove.
529 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
530 (x86_linux_process_qsupported): Turn into...
531 (x86_target::process_qsupported): ...this.
532 (the_low_target): Remove the op field.
533 * linux-aarch64-low.cc (the_low_target): Remove the op
535 * linux-arm-low.cc (the_low_target): Ditto.
536 * linux-bfin-low.cc (the_low_target): Ditto.
537 * linux-crisv32-low.cc (the_low_target): Ditto.
538 * linux-m32r-low.cc (the_low_target): Ditto.
539 * linux-m68k-low.cc (the_low_target): Ditto.
540 * linux-ppc-low.cc (the_low_target): Ditto.
541 * linux-s390-low.cc (the_low_target): Ditto.
542 * linux-sh-low.cc (the_low_target): Ditto.
543 * linux-tic6x-low.cc (the_low_target): Ditto.
544 * linux-tile-low.cc (the_low_target): Ditto.
545 * linux-xtensa-low.cc (the_low_target): Ditto.
547 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
549 Turn the 'prepare_to_resume' linux target op into a method of
550 linux_process_target.
552 * linux-low.h (struct linux_target_ops): Remove the op.
553 (class linux_process_target) <low_prepare_to_resume>: Declare.
554 * linux-low.cc (linux_process_target::low_prepare_to_resume):
557 Update the callers below:
559 (linux_process_target::resume_one_lwp_throw)
560 (linux_process_target::low_prepare_to_resume)
562 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
564 (x86_target::low_prepare_to_resume): Define.
565 (the_low_target): Remove the op field.
566 * linux-aarch64-low.cc (class aarch64_target)
567 <low_prepare_to_resume>: Declare.
568 (aarch64_target::low_prepare_to_resume): Define.
569 (the_low_target): Remove the op field.
570 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
572 (arm_prepare_to_resume): Turn into...
573 (arm_target::low_prepare_to_resume): ...this.
574 (the_low_target): Remove the op field.
575 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
577 (mips_linux_prepare_to_resume): Turn into...
578 (mips_target::low_prepare_to_resume): ...this.
579 (the_low_target): Remove the op field.
580 * linux-bfin-low.cc (the_low_target): Remove the op field.
581 * linux-crisv32-low.cc (the_low_target): Ditto.
582 * linux-m32r-low.cc (the_low_target): Ditto.
583 * linux-m68k-low.cc (the_low_target): Ditto.
584 * linux-ppc-low.cc (the_low_target): Ditto.
585 * linux-s390-low.cc (the_low_target): Ditto.
586 * linux-sh-low.cc (the_low_target): Ditto.
587 * linux-tic6x-low.cc (the_low_target): Ditto.
588 * linux-tile-low.cc (the_low_target): Ditto.
589 * linux-xtensa-low.cc (the_low_target): Ditto.
591 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
593 Turn the 'new_process', 'delete_process', 'new_thread',
594 'delete_thread', and 'new_fork' linux target ops into methods
595 of linux_process_target.
597 * linux-low.h (struct linux_target_ops): Remove the ops.
598 (class linux_process_target) <add_linux_process>
603 <check_zombie_leaders>
609 <low_new_fork>: Declare.
610 * linux-low.cc (delete_lwp): Turn into...
611 (linux_process_target::delete_lwp): ...this.
612 (linux_process_target::low_delete_thread): Define.
613 (linux_add_process): Turn into...
614 (linux_process_target::add_linux_process): ...this.
615 (linux_process_target::low_new_process): Define.
616 (linux_process_target::low_delete_process): Define.
617 (linux_process_target::low_new_fork): Define.
618 (add_lwp): Turn into...
619 (linux_process_target::add_lwp): ...this.
620 (linux_process_target::low_new_thread): Define.
621 (linux_attach_lwp): Turn into...
622 (linux_process_target::attach_lwp): ...this.
623 (linux_detach_one_lwp): Turn into...
624 (linux_process_target::detach_one_lwp): ...this.
625 (linux_detach_lwp_callback): Remove and inline...
626 (linux_process_target::detach): ...here.
627 (check_zombie_leaders): Turn into...
628 (linux_process_target::check_zombie_leaders): ...this.
629 (filter_exit_event): Turn into...
630 (linux_process_target::filter_exit_event): ...this.
632 Update the callers below.
634 (linux_process_target::handle_extended_wait)
635 (linux_process_target::create_inferior)
636 (attach_proc_task_lwp_callback)
637 (linux_process_target::attach)
638 (linux_process_target::detach)
639 (linux_process_target::mourn)
640 * thread-db.cc (attach_thread)
642 * linux-x86-low.cc (class x86_target) <low_new_process>
646 <low_new_fork>: Declare.
647 (x86_linux_new_process): Turn into...
648 (x86_target::low_new_process): ...this.
649 (x86_linux_delete_process): Turn into...
650 (x86_target::low_delete_process): ...this.
651 (x86_target::low_new_thread): Define.
652 (x86_target::low_delete_thread): Define.
653 (x86_linux_new_fork): Turn into...
654 (x86_target::low_new_fork): ...this.
655 (the_low_target): Remove the op fields.
656 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
660 <low_new_fork>: Declare.
661 (aarch64_linux_new_process): Turn into...
662 (aarch64_target::low_new_process): ...this.
663 (aarch64_linux_delete_process): Turn into...
664 (aarch64_target::low_delete_process): ...this.
665 (aarch64_target::low_new_thread): Define.
666 (aarch64_target::low_delete_thread): Define.
667 (aarch64_linux_new_fork): Turn into...
668 (aarch64_target::low_new_fork): ...this.
669 (the_low_target): Remove the op fields.
670 * linux-arm-low.cc (class arm_target) <low_new_process>
674 <low_new_fork>: Declare.
675 (arm_new_process): Turn into...
676 (arm_target::low_new_process): ...this.
677 (arm_delete_process): Turn into...
678 (arm_target::low_delete_process): ...this.
679 (arm_new_thread): Turn into...
680 (arm_target::low_new_thread): ...this.
681 (arm_delete_thread): Turn into...
682 (arm_target::low_delete_thread): ...this.
683 (arm_new_fork): Turn into...
684 (arm_target::low_new_fork): ...this.
685 (the_low_target): Remove the op fields.
686 * linux-mips-low.cc (class mips_target) <low_new_process>
690 <low_new_fork>: Declare.
691 (mips_linux_new_process): Turn into...
692 (mips_target::low_new_process): ...this.
693 (mips_linux_delete_process): Turn into...
694 (mips_target::low_delete_process): ...this.
695 (mips_linux_new_thread): Turn into...
696 (mips_target::low_new_thread): ...this.
697 (mips_linux_delete_thread): Turn into...
698 (mips_target::low_delete_thread): ...this.
699 (mips_linux_new_fork): Turn into...
700 (mips_target::low_new_fork): ...this.
701 (the_low_target): Remove the op fields.
702 * linux-bfin-low.cc (the_low_target): Remove the op fields.
703 * linux-crisv32-low.cc (the_low_target): Ditto.
704 * linux-m32r-low.cc (the_low_target): Ditto.
705 * linux-m68k-low.cc (the_low_target): Ditto.
706 * linux-ppc-low.cc (the_low_target): Ditto.
707 * linux-s390-low.cc (the_low_target): Ditto.
708 * linux-sh-low.cc (the_low_target): Ditto.
709 * linux-tic6x-low.cc (the_low_target): Ditto.
710 * linux-tile-low.cc (the_low_target): Ditto.
711 * linux-xtensa-low.cc (the_low_target): Ditto.
713 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
715 Turn the 'siginfo_fixup' linux target op into a method of
716 linux_process_target.
718 * linux-low.h (struct linux_target_ops): Remove the op.
719 (class linux_process_target) <siginfo_fixup>
720 <low_siginfo_fixup>: Declare.
721 * linux-low.cc (siginfo_fixup): Turn into...
722 (linux_process_target::siginfo_fixup): ...this.
723 (linux_process_target::low_siginfo_fixup): Define.
724 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
725 (x86_siginfo_fixup): Turn into...
726 (x86_target::low_siginfo_fixup): ...this.
727 (the_low_target): Remove the op field.
728 * linux-aarch64-low.cc (class aarch64_target):
729 <low_siginfo_fixup>: Declare.
730 (aarch64_linux_siginfo_fixup): Turn into...
731 (aarch64_target::low_siginfo_fixup): ...this.
732 (the_low_target): Remove the op field.
733 * linux-arm-low.cc (the_low_target): Remove the op field.
734 * linux-bfin-low.cc (the_low_target): Ditto.
735 * linux-crisv32-low.cc (the_low_target): Ditto.
736 * linux-m32r-low.cc (the_low_target): Ditto.
737 * linux-m68k-low.cc (the_low_target): Ditto.
738 * linux-mips-low.cc (the_low_target): Ditto.
739 * linux-ppc-low.cc (the_low_target): Ditto.
740 * linux-s390-low.cc (the_low_target): Ditto.
741 * linux-sh-low.cc (the_low_target): Ditto.
742 * linux-tic6x-low.cc (the_low_target): Ditto.
743 * linux-tile-low.cc (the_low_target): Ditto.
744 * linux-xtensa-low.cc (the_low_target): Ditto.
746 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
748 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
749 linux target ops into methods of linux_process_target.
751 * linux-low.h (struct linux_target_ops): Remove the ops.
752 (class linux_process_target) <low_collect_ptrace_register>
753 <low_store_ptrace_register>: Declare.
754 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
755 (linux_process_target::low_supply_ptrace_register): Define.
757 Update the callers below.
759 (linux_process_target::fetch_register)
760 (linux_process_target::store_register)
762 * linux-x86-low.cc (the_low_target): Remove the op fields.
763 * linux-aarch64-low.cc (the_low_target): Ditto.
764 * linux-arm-low.cc (the_low_target): Ditto.
765 * linux-bfin-low.cc (the_low_target): Ditto.
766 * linux-crisv32-low.cc (the_low_target): Ditto.
767 * linux-m32r-low.cc (the_low_target): Ditto.
768 * linux-m68k-low.cc (the_low_target): Ditto.
769 * linux-sh-low.cc (the_low_target): Ditto.
770 * linux-sparc-low.cc (the_low_target): Ditto.
771 * linux-tic6x-low.cc (the_low_target): Ditto.
772 * linux-tile-low.cc (the_low_target): Ditto.
773 * linux-xtensa-low.cc (the_low_target): Ditto.
774 * linux-mips-low.cc (class mips_target)
775 <low_collect_ptrace_register>
776 <low_supply_ptrace_register>: Declare.
777 (mips_collect_ptrace_register): Turn into ...
778 (mips_target::low_collect_ptrace_register): ...this.
779 (mips_supply_ptrace_register): Turn into...
780 (mips_target::low_supply_ptrace_register): ...this.
781 (the_low_target): Remove the op fields.
782 * linux-ppc-low.cc (class ppc_target)
783 <low_collect_ptrace_register>
784 <low_supply_ptrace_register>: Declare.
785 (ppc_collect_ptrace_register): Turn into ...
786 (ppc_target::low_collect_ptrace_register): ...this.
787 (ppc_supply_ptrace_register): Turn into ...
788 (ppc_target::low_supply_ptrace_register): ...this.
789 (ppc_fill_gregset): Update for the calls to
790 low_collect_ptrace_register.
791 (the_low_target): Remove the op fields.
792 * linux-s390-low.cc (class s390_target)
793 <low_collect_ptrace_register>
794 <low_supply_ptrace_register>: Declare.
795 (s390_collect_ptrace_register): Turn into ...
796 (s390_target::low_collect_ptrace_register): ...this.
797 (s390_supply_ptrace_register): Turn into ...
798 (s390_target::low_supply_ptrace_register): ...this.
799 (s390_fill_gregset): Update for the calls to
800 low_collect_ptrace_register.
801 (the_low_target): Remove the op fields.
803 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
805 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
806 target ops into methods of linux_process_target.
808 * linux-low.h (struct linux_target_ops): Remove the ops.
809 (class linux_process_target) <check_stopped_by_watchpoint>
810 <low_stopped_by_watchpoint>
811 <low_stopped_data_address>: Declare.
812 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
813 (linux_process_target::check_stopped_by_watchpoint): ...this.
814 (linux_process_target::low_stopped_by_watchpoint): Define.
815 (linux_process_target::low_stopped_data_address): Define.
816 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
817 <low_stopped_data_address>: Declare.
818 (x86_stopped_by_watchpoint): Turn into...
819 (x86_target::low_stopped_by_watchpoint): ...this.
820 (x86_stopped_data_address): Turn into...
821 (x86_target::low_stopped_data_address): ...this.
822 (the_low_target): Remove the op fields.
823 * linux-aarch64-low.cc (class aarch64_target)
824 <low_stopped_by_watchpoint>
825 <low_stopped_data_address>: Declare.
826 (aarch64_stopped_by_watchpoint): Turn into...
827 (aarch64_target::low_stopped_by_watchpoint): ...this.
828 (aarch64_stopped_data_address): Turn into...
829 (aarch64_target::low_stopped_data_address): ...this.
830 (the_low_target): Remove the op fields.
831 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
832 <low_stopped_data_address>: Declare.
833 (arm_stopped_by_watchpoint): Turn into...
834 (arm_target::low_stopped_by_watchpoint): ...this.
835 (arm_stopped_data_address): Turn into...
836 (arm_target::low_stopped_data_address): ...this.
837 (the_low_target): Remove the op fields.
838 * linux-crisv32-low.cc (class crisv32_target)
839 <low_stopped_by_watchpoint>
840 <low_stopped_data_address>: Declare.
841 (cris_stopped_by_watchpoint): Turn into...
842 (crisv32_target::low_stopped_by_watchpoint): ...this.
843 (cris_stopped_data_address): Turn into...
844 (crisv32_target::low_stopped_data_address): ...this.
845 (the_low_target): Remove the op fields.
846 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
847 <low_stopped_data_address>: Declare.
848 (mips_stopped_by_watchpoint): Turn into...
849 (mips_target::low_stopped_by_watchpoint): ...this.
850 (mips_stopped_data_address): Turn into...
851 (mips_target::low_stopped_data_address): ...this.
852 (the_low_target): Remove the op fields.
853 * linux-bfin-low.cc (the_low_target): Remove the op fields.
854 * linux-m32r-low.cc (the_low_target): Ditto.
855 * linux-m68k-low.cc (the_low_target): Ditto.
856 * linux-ppc-low.cc (the_low_target): Ditto.
857 * linux-s390-low.cc (the_low_target): Ditto.
858 * linux-sh-low.cc (the_low_target): Ditto.
859 * linux-sparc-low.cc (the_low_target): Ditto.
860 * linux-tic6x-low.cc (the_low_target): Ditto.
861 * linux-tile-low.cc (the_low_target): Ditto.
862 * linux-xtensa-low.cc (the_low_target): Ditto.
864 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
866 Turn the 'insert_point' and 'remove_point' linux target ops into
867 methods of linux_process_target.
869 * linux-low.h (struct linux_target_ops): Remove the ops.
870 (class linux_process_target) <low_insert_point>
871 <low_remove_point>: Declare.
872 * linux-low.cc (linux_process_target::low_insert_point)
873 (linux_process_target::low_remove_point): Define.
874 (linux_process_target::insert_point)
875 (linux_process_target::remove_point): Update for calls to
876 low_insert_point and low_remove_point.
877 * linux-x86-low.cc (class x86_target) <low_insert_point>
878 <low_remove_point>: Declare.
879 (x86_insert_point): Turn into...
880 (x86_target::low_insert_point): ...this.
881 (x86_remove_point): Turn into...
882 (x86_target::low_remove_point): ...this.
883 (the_low_target): Remove the op fields.
884 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
885 <low_remove_point>: Declare.
886 (aarch64_insert_point): Turn into...
887 (aarch64_target::low_insert_point): ...this.
888 (aarch64_remove_point): Turn into...
889 (aarch64_target::low_remove_point): ...this.
890 (the_low_target): Remove the op fields.
891 * linux-arm-low.cc (class arm_target) <low_insert_point>
892 <low_remove_point>: Declare.
893 (arm_insert_point): Turn into...
894 (arm_target::low_insert_point): ...this.
895 (arm_remove_point): Turn into...
896 (arm_target::low_remove_point): ...this.
897 (the_low_target): Remove the op fields.
898 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
899 <low_remove_point>: Declare.
900 (crisv32_insert_point): Turn into...
901 (crisv32_target::low_insert_point): ...this.
902 (crisv32_remove_point): Turn into...
903 (crisv32_target::low_remove_point): ...this.
904 (the_low_target): Remove the op fields.
905 * linux-mips-low.cc (class mips_target) <low_insert_point>
906 <low_remove_point>: Declare.
907 (mips_insert_point): Turn into...
908 (mips_target::low_insert_point): ...this.
909 (mips_remove_point): Turn into...
910 (mips_target::low_remove_point): ...this.
911 (the_low_target): Remove the op fields.
912 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
913 <low_remove_point>: Declare.
914 (ppc_insert_point): Turn into...
915 (ppc_target::low_insert_point): ...this.
916 (ppc_remove_point): Turn into...
917 (ppc_target::low_remove_point): ...this.
918 (the_low_target): Remove the op fields.
919 * linux-bfin-low.cc (the_low_target): Remove the op fields.
920 * linux-m32r-low.cc (the_low_target): Ditto.
921 * linux-m68k-low.cc (the_low_target): Ditto.
922 * linux-s390-low.cc (the_low_target): Ditto.
923 * linux-sh-low.cc (the_low_target): Ditto.
924 * linux-sparc-low.cc (the_low_target): Ditto.
925 * linux-tic6x-low.cc (the_low_target): Ditto.
926 * linux-tile-low.cc (the_low_target): Ditto.
927 * linux-xtensa-low.cc (the_low_target): Ditto.
929 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
931 Remove the 'supports_z_point_type' linux target op and let the
932 concrete linux target define it by overriding the op declared in
933 process_stratum_target.
935 * linux-low.cc (linux_process_target::supports_z_point_type):
937 * linux-low.h (struct linux_target_ops): Remove the op.
938 (class linux_process_target) <supports_z_point_type>: Remove.
939 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
941 (x86_supports_z_point_type): Turn into...
942 (x86_target::supports_z_point_type): ...this.
943 (the_low_target): Remove the op field.
944 * linux-aarch64-low.cc (class aarch64_target)
945 <supports_z_point_type>: Declare.
946 (aarch64_supports_z_point_type): Turn into...
947 (aarch64_target::supports_z_point_type): ...this.
948 (the_low_target): Remove the op field.
949 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
951 (arm_supports_z_point_type): Turn into...
952 (arm_target::supports_z_point_type): ...this.
953 (the_low_target): Remove the op field.
954 * linux-crisv32-low.cc (class crisv32_target)
955 <supports_z_point_type>: Declare.
956 (cris_supports_z_point_type): Turn into...
957 (crisv32_target::supports_z_point_type): ...this.
958 (the_low_target): Remove the op field.
959 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
961 (mips_supports_z_point_type): Turn into...
962 (mips_target::supports_z_point_type): ...this.
963 (the_low_target): Remove the op field.
964 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
966 (ppc_supports_z_point_type): Turn into...
967 (ppc_target::supports_z_point_type): ...this.
968 (the_low_target): Remove the op field.
969 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
971 (s390_supports_z_point_type): Turn into...
972 (s390_target::supports_z_point_type): ...this.
973 (the_low_target): Remove the op field.
974 * linux-bfin-low.cc (the_low_target): Remove the op field.
975 * linux-m32r-low.cc (the_low_target): Ditto.
976 * linux-m68k-low.cc (the_low_target): Ditto.
977 * linux-sh-low.cc (the_low_target): Ditto.
978 * linux-sparc-low.cc (the_low_target): Ditto.
979 * linux-tic6x-low.cc (the_low_target): Ditto.
980 * linux-tile-low.cc (the_low_target): Ditto.
981 * linux-xtensa-low.cc (the_low_target): Ditto.
983 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
985 Turn the 'breakpoint_at' linux target op into a method of
986 linux_process_target.
988 * linux-low.h (struct linux_target_ops): Remove the op.
989 (class linux_process_target) <low_breakpoint_at>: Declare.
991 Update the callers below:
993 * linux-low.cc (linux_process_target::save_stop_reason)
994 (linux_process_target::thread_still_has_status_pending)
995 (linux_process_target::wait_1)
997 * linux-x86-low.cc (class x86_target)
998 <low_breakpoint_at>: Declare.
999 (x86_breakpoint_at): Turn into...
1000 (x86_target::low_breakpoint_at): ...this.
1001 (the_low_target): Remove the op field.
1002 * linux-aarch64-low.cc (class aarch64_target)
1003 <low_breakpoint_at>: Declare.
1004 (aarch64_breakpoint_at): Turn into...
1005 (aarch64_target::low_breakpoint_at): ...this.
1006 (the_low_target): Remove the op field.
1007 * linux-arm-low.cc (class arm_target)
1008 <low_breakpoint_at>: Declare.
1009 (arm_target::low_breakpoint_at): Define.
1010 (the_low_target): Remove the op field.
1011 * linux-bfin-low.cc (class bfin_target)
1012 <low_breakpoint_at>: Declare.
1013 (bfin_breakpoint_at): Turn into...
1014 (bfin_target::low_breakpoint_at): ...this.
1015 (the_low_target): Remove the op field.
1016 * linux-cris-low.cc (class cris_target)
1017 <low_breakpoint_at>: Declare.
1018 (cris_breakpoint_at): Turn into...
1019 (cris_target::low_breakpoint_at): ...this.
1020 (the_low_target): Remove the op field.
1021 * linux-crisv32-low.cc (class crisv32_target)
1022 <low_breakpoint_at>: Declare.
1023 (crisv32_breakpoint_at): Turn into...
1024 (crisv32_target::low_breakpoint_at): ...this.
1025 (the_low_target): Remove the op field.
1026 * linux-ia64-low.cc (class ia64_target)
1027 <low_breakpoint_at>: Declare.
1028 (ia64_target::low_breakpoint_at): Define.
1029 * linux-m32r-low.cc (class m32r_target)
1030 <low_breakpoint_at>: Declare.
1031 (m32r_breakpoint_at): Turn into...
1032 (m32r_target::low_breakpoint_at): ...this.
1033 (the_low_target): Remove the op field.
1034 * linux-m68k-low.cc (class m68k_target)
1035 <low_breakpoint_at>: Declare.
1036 (m68k_breakpoint_at): Turn into...
1037 (m68k_target::low_breakpoint_at): ...this.
1038 (the_low_target): Remove the op field.
1039 * linux-mips-low.cc (class mips_target)
1040 <low_breakpoint_at>: Declare.
1041 (mips_breakpoint_at): Turn into...
1042 (mips_target::low_breakpoint_at): ...this.
1043 (the_low_target): Remove the op field.
1044 * linux-nios2-low.cc (class nios2_target)
1045 <low_breakpoint_at>: Declare.
1046 (nios2_breakpoint_at): Turn into...
1047 (nios2_target::low_breakpoint_at): ...this.
1048 (the_low_target): Remove the op field.
1049 * linux-ppc-low.cc (class ppc_target)
1050 <low_breakpoint_at>: Declare.
1051 (ppc_breakpoint_at): Turn into...
1052 (ppc_target::low_breakpoint_at): ...this.
1053 (the_low_target): Remove the op field.
1054 * linux-riscv-low.cc (class riscv_target)
1055 <low_breakpoint_at>: Declare.
1056 (riscv_breakpoint_at): Turn into...
1057 (riscv_target::low_breakpoint_at): ...this.
1058 (the_low_target): Remove the op field.
1059 * linux-s390-low.cc (class s390_target)
1060 <low_breakpoint_at>: Declare.
1061 (s390_breakpoint_at): Turn into...
1062 (s390_target::low_breakpoint_at): ...this.
1063 (the_low_target): Remove the op field.
1064 * linux-sh-low.cc (class sh_target)
1065 <low_breakpoint_at>: Declare.
1066 (sh_breakpoint_at): Turn into...
1067 (sh_target::low_breakpoint_at): ...this.
1068 (the_low_target): Remove the op field.
1069 * linux-sparc-low.cc (class sparc_target)
1070 <low_breakpoint_at>: Declare.
1071 (sparc_breakpoint_at): Turn into...
1072 (sparc_target::low_breakpoint_at): ...this.
1073 (the_low_target): Remove the op field.
1074 * linux-tic6x-low.cc (class tic6x_target)
1075 <low_breakpoint_at>: Declare.
1076 (tic6x_breakpoint_at): Turn into...
1077 (tic6x_target::low_breakpoint_at): ...this.
1078 (the_low_target): Remove the op field.
1079 * linux-tile-low.cc (class tile_target)
1080 <low_breakpoint_at>: Declare.
1081 (tile_breakpoint_at): Turn into...
1082 (tile_target::low_breakpoint_at): ...this.
1083 (the_low_target): Remove the op field.
1084 * linux-xtensa-low.cc (class xtensa_target)
1085 <low_breakpoint_at>: Declare.
1086 (xtensa_breakpoint_at): Turn into...
1087 (xtensa_target::low_breakpoint_at): ...this.
1088 (the_low_target): Remove the op field.
1090 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1092 Turn the 'decr_pc_after_break' linux_target_ops field into
1093 a method of linux_process_target.
1095 * linux-low.h (struct linux_target_ops)
1096 <decr_pc_after_break>: Remove.
1097 (class linux_process_target) <low_decr_pc_after_break>: New method
1099 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1100 New method implementation.
1102 Update the users below.
1104 (linux_process_target::save_stop_reason)
1105 (linux_process_target::wait_1)
1106 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1108 (x86_target::low_decr_pc_after_break): New method implementation.
1109 (the_low_target): Remove the field.
1110 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1112 (bfin_target::low_decr_pc_after_break): New method implementation.
1113 (the_low_target): Remove the field.
1114 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1116 (m68k_target::low_decr_pc_after_break): New method implementation.
1117 (the_low_target): Remove the field.
1118 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1120 (s390_target::low_decr_pc_after_break): New method implementation.
1121 (the_low_target): Remove the field.
1122 * linux-aarch64-low.cc (the_low_target): Remove the field.
1123 * linux-arm-low.cc (the_low_target): Remove the field.
1124 * linux-cris-low.cc (the_low_target): Remove the field.
1125 * linux-crisv32-low.cc (the_low_target): Remove the field.
1126 * linux-m32r-low.cc (the_low_target): Remove the field.
1127 * linux-mips-low.cc (the_low_target): Remove the field.
1128 * linux-nios2-low.cc (the_low_target): Remove the field.
1129 * linux-ppc-low.cc (the_low_target): Remove the field.
1130 * linux-riscv-low.cc (the_low_target): Remove the field.
1131 * linux-sh-low.cc (the_low_target): Remove the field.
1132 * linux-sparc-low.cc (the_low_target): Remove the field.
1133 * linux-tic6x-low.cc (the_low_target): Remove the field.
1134 * linux-tile-low.cc (the_low_target): Remove the field.
1135 * linux-xtensa-low.cc (the_low_target): Remove the field.
1137 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1139 Remove the 'supports_software_single_step' linux target op and let
1140 the concrete linux target define it by overriding the op in
1141 process_stratum_target.
1142 Turn the 'get_next_pcs' linux target op into a method of
1143 linux_process_target.
1145 * linux-low.h (struct linux_target_ops): Remove the ops.
1146 (class linux_process_target) <supports_software_single_step>:
1148 <low_get_next_pcs>: Declare.
1149 * linux-low.cc (can_software_single_step): Remove.
1150 (linux_process_target::low_get_next_pcs): Define.
1151 (linux_process_target::supports_software_single_step): Remove.
1153 Update the callers below.
1155 (linux_process_target::handle_extended_wait)
1156 (linux_process_target::wait_1)
1157 (linux_process_target::install_software_single_step_breakpoints)
1158 (linux_process_target::single_step)
1159 (linux_process_target::thread_needs_step_over)
1160 (linux_process_target::proceed_one_lwp)
1161 (linux_process_target::supports_range_stepping)
1163 * linux-x86-low.cc (the_low_target): Remove the op field.
1164 * linux-aarch64-low.cc (the_low_target): Ditto.
1165 * linux-bfin-low.cc (the_low_target): Ditto.
1166 * linux-cris-low.cc (the_low_target): Ditto.
1167 * linux-crisv32-low.cc (the_low_target): Ditto.
1168 * linux-m32r-low.cc (the_low_target): Ditto.
1169 * linux-m68k-low.cc (the_low_target): Ditto.
1170 * linux-mips-low.cc (the_low_target): Ditto.
1171 * linux-nios2-low.cc (the_low_target): Ditto.
1172 * linux-ppc-low.cc (the_low_target): Ditto.
1173 * linux-riscv-low.cc (the_low_target): Ditto.
1174 * linux-s390-low.cc (the_low_target): Ditto.
1175 * linux-sh-low.cc (the_low_target): Ditto.
1176 * linux-sparc-low.cc (the_low_target): Ditto.
1177 * linux-tic6x-low.cc (the_low_target): Ditto.
1178 * linux-tile-low.cc (the_low_target): Ditto.
1179 * linux-xtensa-low.cc (the_low_target): Ditto.
1180 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1181 <supports_software_single_step>: Declare.
1182 (arm_target::supports_software_single_step): Define.
1183 (arm_gdbserver_get_next_pcs): Turn into...
1184 (arm_target::low_get_next_pcs): ...this.
1185 (the_low_target): Remove the op field.
1187 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1189 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1190 the concrete linux target define it by overriding the op
1191 in process_stratum_target.
1193 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1195 * linux-low.h (struct linux_target_ops): Remove the op.
1196 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1197 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1199 (x86_sw_breakpoint_from_kind): Turn into...
1200 (x86_target::sw_breakpoint_from_kind): ...this.
1201 (the_low_target): Remove the op field.
1202 * linux-aarch64-low.cc (class aarch64_target)
1203 <sw_breakpoint_from_kind>: Declare.
1204 (aarch64_sw_breakpoint_from_kind): Turn into...
1205 (aarch64_target::sw_breakpoint_from_kind): ...this.
1206 (the_low_target): Remove the op field.
1207 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1209 (arm_target::sw_breakpoint_from_kind): Define.
1210 (the_low_target): Remove the op field.
1211 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1213 (bfin_sw_breakpoint_from_kind): Turn into...
1214 (bfin_target::sw_breakpoint_from_kind): ...this.
1215 (the_low_target): Remove the op field.
1216 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1218 (cris_sw_breakpoint_from_kind): Turn into...
1219 (cris_target::sw_breakpoint_from_kind): ...this.
1220 (the_low_target): Remove the op field.
1221 * linux-crisv32-low.cc (class crisv32_target)
1222 <sw_breakpoint_from_kind>: Declare.
1223 (cris_sw_breakpoint_from_kind): Turn into...
1224 (crisv32_target::sw_breakpoint_from_kind): ...this.
1225 (the_low_target): Remove the op field.
1226 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1228 (ia64_target::sw_breakpoint_from_kind): Define.
1229 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1231 (m32r_sw_breakpoint_from_kind): Turn into...
1232 (m32r_target::sw_breakpoint_from_kind): ...this.
1233 (the_low_target): Remove the op field.
1234 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1236 (m68k_sw_breakpoint_from_kind): Turn into...
1237 (m68k_target::sw_breakpoint_from_kind): ...this.
1238 (the_low_target): Remove the op field.
1239 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1241 (mips_sw_breakpoint_from_kind): Turn into...
1242 (mips_target::sw_breakpoint_from_kind): ...this.
1243 (the_low_target): Remove the op field.
1244 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1246 (nios2_sw_breakpoint_from_kind): Turn into...
1247 (nios2_target::sw_breakpoint_from_kind): ...this.
1248 (the_low_target): Remove the op field.
1249 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1251 (ppc_sw_breakpoint_from_kind): Turn into...
1252 (ppc_target::sw_breakpoint_from_kind): ...this.
1253 (the_low_target): Remove the op field.
1254 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1256 (riscv_sw_breakpoint_from_kind): Turn into...
1257 (riscv_target::sw_breakpoint_from_kind): ...this.
1258 (the_low_target): Remove the op field.
1259 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1261 (s390_sw_breakpoint_from_kind): Turn into...
1262 (s390_target::sw_breakpoint_from_kind): ...this.
1263 (the_low_target): Remove the op field.
1264 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1266 (sh_sw_breakpoint_from_kind): Turn into...
1267 (sh_target::sw_breakpoint_from_kind): ...this.
1268 (the_low_target): Remove the op field.
1269 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1271 (sparc_sw_breakpoint_from_kind): Turn into...
1272 (sparc_target::sw_breakpoint_from_kind): ...this.
1273 (the_low_target): Remove the op field.
1274 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1276 (tic6x_sw_breakpoint_from_kind): Turn into...
1277 (tic6x_target::sw_breakpoint_from_kind): ...this.
1278 (the_low_target): Remove the op field.
1279 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1281 (tile_sw_breakpoint_from_kind): Turn into...
1282 (tile_target::sw_breakpoint_from_kind): ...this.
1283 (the_low_target): Remove the op field.
1284 * linux-xtensa-low.cc (class xtensa_target)
1285 <sw_breakpoint_from_kind>: Declare.
1286 (xtensa_sw_breakpoint_from_kind): Turn into...
1287 (xtensa_target::sw_breakpoint_from_kind): ...this.
1288 (the_low_target): Remove the op field.
1290 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1292 Remove the 'breakpoint_kind_from_pc' and
1293 'breakpoint_kind_from_current_state' linux target ops, and let the
1294 concrete linux target define them by overriding the ops of
1295 process_stratum_target.
1297 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1299 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1300 * linux-low.h (struct linux_target_ops): Remove ops.
1301 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1302 <breakpoint_kind_from_current_state>: Remove.
1303 * linux-x86-low.cc (the_low_target): Remove the op fields.
1304 * linux-bfin-low.cc (the_low_target): Ditto.
1305 * linux-cris-low.cc (the_low_target): Ditto.
1306 * linux-crisv32-low.cc (the_low_target): Ditto.
1307 * linux-m32r-low.cc (the_low_target): Ditto.
1308 * linux-m68k-low.cc (the_low_target): Ditto.
1309 * linux-mips-low.cc (the_low_target): Ditto.
1310 * linux-nios2-low.cc (the_low_target): Ditto.
1311 * linux-ppc-low.cc (the_low_target): Ditto.
1312 * linux-s390-low.cc (the_low_target): Ditto.
1313 * linux-sh-low.cc (the_low_target): Ditto.
1314 * linux-sparc-low.cc (the_low_target): Ditto.
1315 * linux-tic6x-low.cc (the_low_target): Ditto.
1316 * linux-tile-low.cc (the_low_target): Ditto.
1317 * linux-xtensa-low.cc (the_low_target): Ditto.
1318 * linux-aarch64-low.cc (class aarch64_target)
1319 <breakpoint_kind_from_pc>
1320 <breakpoint_kind_from_current_state>: Declare.
1321 (aarch64_breakpoint_kind_from_pc): Turn into...
1322 (aarch64_target::breakpoint_kind_from_pc): ...this.
1323 (aarch64_breakpoint_kind_from_current_state): Turn into...
1324 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1325 (the_low_target): Remove the op fields.
1326 * linux-arm-low.cc (class arm_target):
1327 <breakpoint_kind_from_pc>
1328 <breakpoint_kind_from_current_state>: Declare.
1329 (arm_target::breakpoint_kind_from_pc): Define.
1330 (arm_target::breakpoint_kind_from_current_state): Define.
1331 (the_low_target): Remove the op fields.
1332 * linux-riscv-low.cc (class riscv_target):
1333 <breakpoint_kind_from_pc>: Declare.
1334 (riscv_breakpoint_kind_from_pc): Turn into...
1335 (riscv_target::breakpoint_kind_from_pc): ...this.
1336 (the_low_target): Remove the op fields.
1338 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1340 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1341 of linux_process_target.
1343 * linux-low.h (struct linux_target_ops): Remove the ops.
1344 (class linux_process_target) <low_supports_breakpoints>
1346 <low_set_pc>: Declare.
1347 * linux-low.cc (supports_breakpoints): Turn into...
1348 (linux_process_target::low_supports_breakpoints): ...this.
1349 (linux_process_target::low_get_pc): Define.
1350 (linux_process_target::low_set_pc): Define.
1352 Update the callers below.
1354 (linux_process_target::get_pc)
1355 (linux_process_target::save_stop_reason)
1356 (linux_process_target::maybe_move_out_of_jump_pad)
1357 (linux_process_target::wait_1)
1358 (linux_process_target::resume_one_lwp_throw)
1359 (linux_process_target::resume)
1360 (linux_process_target::proceed_all_lwps)
1361 (linux_process_target::read_pc)
1362 (linux_process_target::write_pc)
1364 * linux-x86-low.cc (class linux_process_target)
1365 <low_supports_breakpoints>
1367 <low_set_pc>: Declare.
1368 (x86_target::low_supports_breakpoints): Define.
1369 (x86_get_pc): Turn into...
1370 (x86_target::low_get_pc): ...this.
1371 (x86_set_pc): Turn into...
1372 (x86_target::low_set_pc): ...this.
1373 (the_low_target): Remove the op fields.
1374 * linux-arm-low.cc (class arm_target)
1375 <low_supports_breakpoints>
1377 <low_set_pc>: Declare.
1378 (arm_target::low_supports_breakpoints)
1379 (arm_target::low_get_pc)
1380 (arm_target::low_set_pc): Define.
1381 (the_low_target): Remove the op fields.
1382 * linux-bfin-low.cc (class bfin_target)
1383 <low_supports_breakpoints>
1385 <low_set_pc>: Declare.
1386 (bfin_target::low_supports_breakpoints)
1387 (bfin_target::low_get_pc)
1388 (bfin_target::low_set_pc): Define.
1389 (the_low_target): Remove the op fields.
1390 * linux-cris-low.cc (class cris_target)
1391 <low_supports_breakpoints>
1393 <low_set_pc>: Declare.
1394 (cris_target::low_supports_breakpoints)
1395 (cris_target::low_get_pc)
1396 (cris_target::low_set_pc): Define.
1397 (the_low_target): Remove the op fields.
1398 * linux-crisv32-low.cc (class crisv32_target)
1399 <low_supports_breakpoints>
1401 <low_set_pc>: Declare.
1402 (crisv32_target::low_supports_breakpoints)
1403 (crisv32_target::low_get_pc)
1404 (crisv32_target::low_set_pc): Define.
1405 (the_low_target): Remove the op fields.
1406 * linux-m32r-low.cc (class m32r_target)
1407 <low_supports_breakpoints>
1409 <low_set_pc>: Declare.
1410 (m32r_target::low_supports_breakpoints)
1411 (m32r_target::low_get_pc)
1412 (m32r_target::low_set_pc): Define.
1413 (the_low_target): Remove the op fields.
1414 * linux-m68k-low.cc (class m68k_target)
1415 <low_supports_breakpoints>
1417 <low_set_pc>: Declare.
1418 (m68k_target::low_supports_breakpoints)
1419 (m68k_target::low_get_pc)
1420 (m68k_target::low_set_pc): Define.
1421 (the_low_target): Remove the op fields.
1422 * linux-nios2-low.cc (class nios2_target)
1423 <low_supports_breakpoints>
1425 <low_set_pc>: Declare.
1426 (nios2_target::low_supports_breakpoints)
1427 (nios2_target::low_get_pc)
1428 (nios2_target::low_set_pc): Define.
1429 (the_low_target): Remove the op fields.
1430 * linux-sh-low.cc (class sh_target)
1431 <low_supports_breakpoints>
1433 <low_set_pc>: Declare.
1434 (sh_target::low_supports_breakpoints)
1435 (sh_target::low_get_pc)
1436 (sh_target::low_set_pc): Define.
1437 (the_low_target): Remove the op fields.
1438 * linux-xtensa-low.cc (class xtensa_target)
1439 <low_supports_breakpoints>
1441 <low_set_pc>: Declare.
1442 (xtensa_target::low_supports_breakpoints)
1443 (xtensa_target::low_get_pc)
1444 (xtensa_target::low_set_pc): Define.
1445 (the_low_target): Remove the op fields.
1446 * linux-sparc-low.cc (class sparc_target)
1447 <low_supports_breakpoints>
1448 <low_get_pc>: Declare.
1449 (sparc_target::low_supports_breakpoints)
1450 (sparc_target::low_get_pc): Define.
1451 (the_low_target): Remove the op fields.
1452 * linux-tile-low.cc (class tile_target)
1453 <low_supports_breakpoints>
1455 <low_set_pc>: Declare.
1456 (tile_target::low_supports_breakpoints)
1457 (tile_target::low_get_pc)
1458 (tile_target::low_set_pc): Define.
1459 (the_low_target): Remove the op fields.
1460 * linux-aarch64-low.cc (class aarch64_target)
1461 <low_supports_breakpoints>
1463 <low_set_pc>: Declare.
1464 (aarch64_target::low_supports_breakpoints): Define.
1465 (aarch64_get_pc): Turn into...
1466 (aarch64_target::low_get_pc): ...this.
1467 (aarch64_set_pc): Turn into...
1468 (aarch64_target::low_set_pc): ...this.
1469 (the_low_target): Remove the op fields.
1470 * linux-mips-low.cc (class mips_target)
1471 <low_supports_breakpoints>
1473 <low_set_pc>: Declare.
1474 (mips_target::low_supports_breakpoints): Define.
1475 (mips_get_pc): Turn into...
1476 (mips_target::low_get_pc): ...this.
1477 (mips_set_pc): Turn into...
1478 (mips_target::low_set_pc): ...this.
1479 (the_low_target): Remove the op fields.
1480 * linux-ppc-low.cc (class ppc_target)
1481 <low_supports_breakpoints>
1483 <low_set_pc>: Declare.
1484 (ppc_target::low_supports_breakpoints): Define.
1485 (ppc_get_pc): Turn into...
1486 (ppc_target::low_get_pc): ...this.
1487 (ppc_set_pc): Turn into...
1488 (ppc_target::low_set_pc): ...this.
1489 (the_low_target): Remove the op fields.
1490 * linux-riscv-low.cc (class riscv_target)
1491 <low_supports_breakpoints>
1493 <low_set_pc>: Declare.
1494 (riscv_target::low_supports_breakpoints): Define.
1495 (riscv_get_pc): Turn into...
1496 (riscv_target::low_get_pc): ...this.
1497 (riscv_set_pc): Turn into...
1498 (riscv_target::low_set_pc): ...this.
1499 (the_low_target): Remove the op fields.
1500 * linux-s390-low.cc (class s390_target)
1501 <low_supports_breakpoints>
1503 <low_set_pc>: Declare.
1504 (s390_target::low_supports_breakpoints): Define.
1505 (s390_get_pc): Turn into...
1506 (s390_target::low_get_pc): ...this.
1507 (s390_set_pc): Turn into...
1508 (s390_target::low_set_pc): ...this.
1509 (the_low_target): Remove the op fields.
1510 * linux-tic6x-low.cc (class tic6x_target)
1511 <low_supports_breakpoints>
1513 <low_set_pc>: Declare.
1514 (tic6x_target::low_supports_breakpoints): Define.
1515 (tic6x_get_pc): Turn into...
1516 (tic6x_target::low_get_pc): ...this.
1517 (tic6x_set_pc): Turn into...
1518 (tic6x_target::low_set_pc): ...this.
1519 (the_low_target): Remove the op fields.
1521 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1523 Turn some more static methods in linux-low into private methods
1524 of linux_process_target.
1526 * linux-low.cc (get_pc): Turn into...
1527 (linux_process_target::get_pc): ...this.
1528 (save_stop_reason): Turn into...
1529 (linux_process_target::save_stop_reason): ...this.
1530 (thread_still_has_status_pending_p): Turn into...
1531 (linux_process_target::thread_still_has_status_pending): ...this.
1532 (status_pending_p_callback): Turn into...
1533 (linux_process_target::status_pending_p_callback): ...this.
1534 (resume_stopped_resumed_lwps): Turn into...
1535 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1536 (install_software_single_step_breakpoints): Turn into...
1537 (linux_process_target::install_software_single_step_breakpoints):
1539 (single_step): Turn into...
1540 (linux_process_target::single_step): ...this.
1541 (linux_resume_one_lwp_throw): Turn into...
1542 (linux_process_target::resume_one_lwp_throw): ...this.
1543 (linux_resume_one_lwp): Turn into...
1544 (linux_process_target::resume_one_lwp): ...this.
1545 (resume_status_pending_p): Turn into...
1546 (linux_process_target::resume_status_pending): ...this.
1547 (need_step_over_p): Turn into...
1548 (linux_process_target::thread_needs_step_over): ...this.
1549 (linux_resume_one_thread): Turn into...
1550 (linux_process_target::resume_one_thread): ...this.
1551 (proceed_one_lwp): Turn into...
1552 (linux_process_target::proceed_one_lwp): ...this.
1553 (unsuspend_and_proceed_one_lwp): Turn into...
1554 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1556 Update the calls/references to the above functions below.
1558 (linux_process_target::handle_extended_wait)
1559 (linux_process_target::filter_event)
1560 (linux_process_target::wait_for_event_filtered)
1561 (linux_process_target::wait_1)
1562 (linux_process_target::move_out_of_jump_pad)
1563 (linux_process_target::start_step_over)
1564 (linux_process_target::resume)
1565 (linux_process_target::proceed_all_lwps)
1566 (regsets_store_inferior_registers)
1567 (linux_process_target::store_register)
1569 * linux-low.h (class linux_process_target)
1572 <thread_still_has_status_pending>
1573 <status_pending_p_callback>
1574 <resume_stopped_resumed_lwps>
1575 <install_software_single_step_breakpoints>
1577 <resume_one_lwp_throw>
1579 <resume_status_pending>
1580 <thread_needs_step_over>
1583 <unsuspend_and_proceed_one_lwp>: Declare.
1585 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1587 Turn the 'fetch_register' linux target op into a method of
1588 linux_process_target.
1590 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1591 (class linux_process_target) <low_fetch_register>: Declare.
1592 * linux-x86-low.cc (the_low_target)
1593 * linux-aarch64-low.cc (the_low_target)
1594 * linux-arm-low.cc (the_low_target)
1595 * linux-bfin-low.cc (the_low_target)
1596 * linux-cris-low.cc (the_low_target)
1597 * linux-crisv32-low.cc (the_low_target)
1598 * linux-m32r-low.cc (the_low_target)
1599 * linux-m68k-low.cc (the_low_target)
1600 * linux-nios2-low.cc (the_low_target)
1601 * linux-ppc-low.cc (the_low_target)
1602 * linux-s390-low.cc (the_low_target)
1603 * linux-sh-low.cc (the_low_target)
1604 * linux-sparc-low.cc (the_low_target)
1605 * linux-tic6x-low.cc (the_low_target)
1606 * linux-tile-low.cc (the_low_target)
1607 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1608 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1610 (ia64_fetch_register): Turn into...
1611 (ia64_target::low_fetch_register): ...this.
1612 (the_low_target): Remove the op field.
1613 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1615 (mips_fetch_register): Turn into...
1616 (mips_target::low_fetch_register): ...this.
1617 (the_low_target): Remove the op field.
1618 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1620 (riscv_fetch_register): Turn into...
1621 (riscv_target::low_fetch_register): ...this.
1622 (the_low_target): Remove the op field.
1624 Update the callers below.
1626 * linux-low.cc (linux_process_target::fetch_registers)
1627 (linux_process_target::low_fetch_register)
1629 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1631 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1632 linux target ops into methods of linux_process_target.
1634 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1635 (class linux_process_target) <fetch_register>
1637 <usr_fetch_inferior_registers>
1638 <usr_store_inferior_registers>
1639 <low_cannot_fetch_register>
1640 <low_cannot_fetch_register> Declare.
1641 * linux-low.cc (fetch_register): Turn into...
1642 (linux_process_target::fetch_register): ...this.
1643 (store_register): Turn into ...
1644 (linux_process_target::store_register): ...this.
1645 (usr_fetch_inferior_registers): Turn into...
1646 (linux_process_target::usr_fetch_inferior_registers): ...this.
1647 (usr_store_inferior_registers): Turn into...
1648 (linux_process_target::usr_store_inferior_registers): ...this.
1649 * linux-x86-low.cc (class x86_target)
1650 <low_cannot_fetch_register>
1651 <low_cannot_store_register>: Declare.
1652 (x86_cannot_store_register): Turn into...
1653 (x86_target::low_cannot_store_register): ...this.
1654 (x86_cannot_fetch_register): Turn into...
1655 (x86_target::low_cannot_fetch_register): ...this.
1656 (the_low_target): Remove the target op fields.
1657 * linux-aarch64-low.cc (class aarch64_target)
1658 <low_cannot_fetch_register>
1659 <low_cannot_store_register>: Declare.
1660 (aarch64_target::low_cannot_fetch_register)
1661 (aarch64_target::low_cannot_store_register): Define.
1662 (the_low_target): Remove the op fields.
1663 * linux-arm-low.cc (class arm_target)
1664 <low_cannot_fetch_register>
1665 <low_cannot_store_register>: Declare.
1666 (arm_cannot_fetch_register): Turn into...
1667 (arm_target::low_cannot_fetch_register): ...this.
1668 (arm_cannot_store_register): Turn into...
1669 (arm_target::low_cannot_store_register): ...this.
1670 (the_low_target): Remove the op fields.
1671 * linux-bfin-low.cc (class bfin_target)
1672 <low_cannot_fetch_register>
1673 <low_cannot_store_register>: Declare.
1674 (bfin_cannot_fetch_register): Turn into...
1675 (bfin_target::low_cannot_fetch_register): ...this.
1676 (bfin_cannot_store_register): Turn into...
1677 (bfin_target::low_cannot_store_register): ...this.
1678 (the_low_target): Remove the op fields.
1679 * linux-cris-low.cc (class cris_target)
1680 <low_cannot_fetch_register>
1681 <low_cannot_store_register>: Declare.
1682 (cris_cannot_fetch_register): Turn into...
1683 (cris_target::low_cannot_fetch_register): ...this.
1684 (cris_cannot_store_register): Turn into...
1685 (cris_target::low_cannot_store_register): ...this.
1686 (the_low_target): Remove the op fields.
1687 * linux-crisv32-low.cc (class crisv32_target)
1688 <low_cannot_fetch_register>
1689 <low_cannot_store_register>: Declare.
1690 (crisv32_target::low_cannot_fetch_register)
1691 (crisv32_target::low_cannot_store_register): Define.
1692 (the_low_target): Remove the op fields.
1693 * linux-ia64-low.cc (class ia64_target)
1694 <low_cannot_fetch_register>
1695 <low_cannot_store_register>: Declare.
1696 (ia64_cannot_fetch_register): Turn into...
1697 (ia64_target::low_cannot_fetch_register): ...this.
1698 (ia64_cannot_store_register): Turn into...
1699 (ia64_target::low_cannot_store_register): ...this.
1700 (the_low_target): Remove the op fields.
1701 * linux-m32r-low.cc (class m32r_target)
1702 <low_cannot_fetch_register>
1703 <low_cannot_store_register>: Declare.
1704 (m32r_cannot_fetch_register): Turn into...
1705 (m32r_target::low_cannot_fetch_register): ...this.
1706 (m32r_cannot_store_register): Turn into...
1707 (m32r_target::low_cannot_store_register): ...this.
1708 (the_low_target): Remove the op fields.
1709 * linux-m68k-low.cc (class m68k_target)
1710 <low_cannot_fetch_register>
1711 <low_cannot_store_register>: Declare.
1712 (m68k_cannot_fetch_register): Turn into...
1713 (m68k_target::low_cannot_fetch_register): ...this.
1714 (m68k_cannot_store_register): Turn into...
1715 (m68k_target::low_cannot_store_register): ...this.
1716 (the_low_target): Remove the op fields.
1717 * linux-mips-low.cc (class mips_target)
1718 <low_cannot_fetch_register>
1719 <low_cannot_store_register>: Declare.
1720 (mips_cannot_fetch_register): Turn into...
1721 (mips_target::low_cannot_fetch_register): ...this.
1722 (mips_cannot_store_register): Turn into...
1723 (mips_target::low_cannot_store_register): ...this.
1724 (get_usrregs_info): Inline at the call sites in
1725 low_cannot_fetch_register and low_cannot_store_register,
1727 (the_low_target): Remove the op fields.
1728 * linux-nios2-low.cc (class nios2_target)
1729 <low_cannot_fetch_register>
1730 <low_cannot_store_register>: Declare.
1731 (nios2_cannot_fetch_register): Turn into...
1732 (nios2_target::low_cannot_fetch_register): ...this.
1733 (nios2_cannot_store_register): Turn into...
1734 (nios2_target::low_cannot_store_register): ...this.
1735 (the_low_target): Remove the op fields.
1736 * linux-ppc-low.cc (class ppc_target)
1737 <low_cannot_fetch_register>
1738 <low_cannot_store_register>: Declare.
1739 (ppc_cannot_fetch_register): Turn into...
1740 (ppc_target::low_cannot_fetch_register): ...this.
1741 (ppc_cannot_store_register): Turn into...
1742 (ppc_target::low_cannot_store_register): ...this.
1743 (the_low_target): Remove the op fields.
1744 * linux-riscv-low.cc (class riscv_target)
1745 <low_cannot_fetch_register>
1746 <low_cannot_store_register>: Declare.
1747 (riscv_target::low_cannot_fetch_register)
1748 (riscv_target::low_cannot_store_register): Define.
1749 (the_low_target): Remove the op fields.
1750 * linux-s390-low.cc (class s390_target)
1751 <low_cannot_fetch_register>
1752 <low_cannot_store_register>: Declare.
1753 (s390_cannot_fetch_register): Turn into...
1754 (s390_target::low_cannot_fetch_register): ...this.
1755 (s390_cannot_store_register): Turn into...
1756 (s390_target::low_cannot_store_register): ...this.
1757 (the_low_target): Remove the op fields.
1758 * linux-sh-low.cc (class sh_target)
1759 <low_cannot_fetch_register>
1760 <low_cannot_store_register>: Declare.
1761 (sh_cannot_fetch_register): Turn into...
1762 (sh_target::low_cannot_fetch_register): ...this.
1763 (sh_cannot_store_register): Turn into...
1764 (sh_target::low_cannot_store_register): ...this.
1765 (the_low_target): Remove the op fields.
1766 * linux-sparc-low.cc (class sparc_target)
1767 <low_cannot_fetch_register>
1768 <low_cannot_store_register>: Declare.
1769 (sparc_cannot_fetch_register): Turn into...
1770 (sparc_target::low_cannot_fetch_register): ...this.
1771 (sparc_cannot_store_register): Turn into...
1772 (sparc_target::low_cannot_store_register): ...this.
1773 (the_low_target): Remove the op fields.
1774 * linux-tic6x-low.cc (class tic6x_target)
1775 <low_cannot_fetch_register>
1776 <low_cannot_store_register>: Declare.
1777 (tic6x_cannot_fetch_register): Turn into...
1778 (tic6x_target::low_cannot_fetch_register): ...this.
1779 (tic6x_cannot_store_register): Turn into...
1780 (tic6x_target::low_cannot_store_register): ...this.
1781 (the_low_target): Remove the op fields.
1782 * linux-tile-low.cc (class tile_target)
1783 <low_cannot_fetch_register>
1784 <low_cannot_store_register>: Declare.
1785 (tile_cannot_fetch_register): Turn into...
1786 (tile_target::low_cannot_fetch_register): ...this.
1787 (tile_cannot_store_register): Turn into...
1788 (tile_target::low_cannot_store_register): ...this.
1789 (the_low_target): Remove the op fields.
1790 * linux-xtensa-low.cc (class xtensa_target)
1791 <low_cannot_fetch_register>
1792 <low_cannot_store_register>: Declare.
1793 (xtensa_target::low_cannot_fetch_register)
1794 (xtensa_target::low_cannot_store_register): Define.
1795 (the_low_target): Remove the op fields.
1797 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1799 Turn the 'regs_info' linux target op into a method of
1800 linux_process_target.
1802 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1803 (class linux_process_target) <get_regs_info>: Define.
1805 Update the callers below.
1807 * linux-low.cc (linux_process_target::fetch_registers)
1808 (linux_process_target::store_registers)
1809 * proc-service.cc (gregset_info)
1811 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1812 (x86_linux_regs_info): Turn into ...
1813 (x86_target::get_regs_info): ...this.
1814 (the_low_target): Remove the op field.
1815 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1817 (aarch64_regs_info): Turn into ...
1818 (aarch64_target::get_regs_info): ...this.
1819 (the_low_target): Remove the op field.
1820 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1821 (arm_regs_info): Turn into ...
1822 (arm_target::get_regs_info): ...this.
1823 (the_low_target): Remove the op field.
1824 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1825 (bfin_regs_info): Turn into ...
1826 (bfin_target::get_regs_info): ...this.
1827 (the_low_target): Remove the op field.
1828 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1829 (cris_regs_info): Turn into ...
1830 (cris_target::get_regs_info): ...this.
1831 (the_low_target): Remove the op field.
1832 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1834 (crisv32_regs_info): Turn into ...
1835 (crisv32_target::get_regs_info): ...this.
1836 (the_low_target): Remove the op field.
1837 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1838 (ia64_regs_info): Turn into ...
1839 (ia64_target::get_regs_info): ...this.
1840 (the_low_target): Remove the op field.
1841 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1842 (m32r_regs_info): Turn into ...
1843 (m32r_target::get_regs_info): ...this.
1844 (the_low_target): Remove the op field.
1845 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1846 (m68k_regs_info): Turn into ...
1847 (m68k_target::get_regs_info): ...this.
1848 (the_low_target): Remove the op field.
1849 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1850 (mips_regs_info): Turn into ...
1851 (mips_target::get_regs_info): ...this.
1852 (the_low_target): Remove the op field.
1853 (get_usrregs_info): Update the call to the op.
1854 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1855 (nios2_regs_info): Turn into ...
1856 (nios2_target::get_regs_info): ...this.
1857 (the_low_target): Remove the op field.
1858 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1859 (ppc_regs_info): Turn into ...
1860 (ppc_target::get_regs_info): ...this.
1861 (the_low_target): Remove the op field.
1862 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1863 (riscv_regs_info): Turn into ...
1864 (riscv_target::get_regs_info): ...this.
1865 (the_low_target): Remove the op field.
1866 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1867 (s390_regs_info): Turn into ...
1868 (s390_target::get_regs_info): ...this.
1869 (the_low_target): Remove the op field.
1870 (s390_collect_ptrace_register)
1871 (s390_supply_ptrace_register)
1872 (s390_fill_gregset): Update the call to the op.
1873 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1874 (sh_regs_info): Turn into ...
1875 (sh_target::get_regs_info): ...this.
1876 (the_low_target): Remove the op field.
1877 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1878 (sparc_regs_info): Turn into ...
1879 (sparc_target::get_regs_info): ...this.
1880 (the_low_target): Remove the op field.
1881 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1882 (tic6x_regs_info): Turn into ...
1883 (tic6x_target::get_regs_info): ...this.
1884 (the_low_target): Remove the op field.
1885 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1886 (tile_regs_info): Turn into ...
1887 (tile_target::get_regs_info): ...this.
1888 (the_low_target): Remove the op field.
1889 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1891 (xtensa_regs_info): Turn into ...
1892 (xtensa_target::get_regs_info): ...this.
1893 (the_low_target): Remove the op field.
1895 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1897 Turn the 'arch_setup' linux target op into a method of
1898 linux_process_target.
1900 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1901 (class linux_process_target) <arch_setup_thread>
1902 <low_arch_setup>: New declarations.
1903 * linux-low.cc (linux_arch_setup): Delete.
1904 (linux_arch_setup_thread): Turn into...
1905 (linux_process_target::arch_setup_thread): ... this.
1907 Update the callers below.
1909 (linux_process_target::handle_extended_wait)
1910 (linux_process_target::post_create_inferior)
1911 (linux_process_target::filter_event)
1913 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1915 (x86_linux_update_xmltarget): Turn into...
1916 (x86_target::update_xmltarget): ...this.
1917 (x86_linux_process_qsupported): Update the call to
1918 x86_linux_update_xmltarget.
1919 (x86_arch_setup): Turn into ...
1920 (x86_target::low_arch_setup): ...this.
1921 (the_low_target): Remove the op field.
1922 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1924 (aarch64_arch_setup): Turn into ...
1925 (aarch64_target::low_arch_setup): ...this.
1926 (the_low_target): Remove the op field.
1927 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1929 (arm_arch_setup): Turn into ...
1930 (arm_target::low_arch_setup): ...this.
1931 (the_low_target): Remove the op field.
1932 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1934 (bfin_arch_setup): Turn into ...
1935 (bfin_target::low_arch_setup): ...this.
1936 (the_low_target): Remove the op field.
1937 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1939 (cris_arch_setup): Turn into ...
1940 (cris_target::low_arch_setup): ...this.
1941 (the_low_target): Remove the op field.
1942 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1944 (crisv32_arch_setup): Turn into ...
1945 (crisv32_target::low_arch_setup): ...this.
1946 (the_low_target): Remove the op field.
1947 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1949 (ia64_arch_setup): Turn into ...
1950 (ia64_target::low_arch_setup): ...this.
1951 (the_low_target): Remove the op field.
1952 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1954 (m32r_arch_setup): Turn into ...
1955 (m32r_target::low_arch_setup): ...this.
1956 (the_low_target): Remove the op field.
1957 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1959 (m68k_arch_setup): Turn into ...
1960 (m68k_target::low_arch_setup): ...this.
1961 (the_low_target): Remove the op field.
1962 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1964 (mips_arch_setup): Turn into ...
1965 (mips_target::low_arch_setup): ...this.
1966 (the_low_target): Remove the op field.
1967 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1969 (nios2_arch_setup): Turn into ...
1970 (nios2_target::low_arch_setup): ...this.
1971 (the_low_target): Remove the op field.
1972 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1974 (ppc_arch_setup): Turn into ...
1975 (ppc_target::low_arch_setup): ...this.
1976 (the_low_target): Remove the op field.
1977 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1979 (riscv_arch_setup): Turn into ...
1980 (riscv_target::low_arch_setup): ...this.
1981 (the_low_target): Remove the op field.
1982 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1984 (s390_arch_setup): Turn into ...
1985 (s390_target::low_arch_setup): ...this.
1986 (the_low_target): Remove the op field.
1987 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1989 (sh_arch_setup): Turn into ...
1990 (sh_target::low_arch_setup): ...this.
1991 (the_low_target): Remove the op field.
1992 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1994 (sparc_arch_setup): Turn into ...
1995 (sparc_target::low_arch_setup): ...this.
1996 (the_low_target): Remove the op field.
1997 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1999 (tic6x_arch_setup): Turn into ...
2000 (tic6x_target::low_arch_setup): ...this.
2001 (the_low_target): Remove the op field.
2002 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2004 (tile_arch_setup): Turn into ...
2005 (tile_target::low_arch_setup): ...this.
2006 (the_low_target): Remove the op field.
2007 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2009 (xtensa_arch_setup): Turn into ...
2010 (xtensa_target::low_arch_setup): ...this.
2011 (the_low_target): Remove the op field.
2013 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2015 * linux-low.h (the_linux_target): New extern declaration.
2016 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2018 (the_linux_target): Remove.
2019 * linux-x86-low.cc (class x86_target): New class.
2020 (the_x86_target): New static object.
2021 (the_linux_target): Define as pointer to the_x86_target.
2022 * linux-aarch64-low.cc (class aarch64_target): New class.
2023 (the_aarch64_target): New static object.
2024 (the_linux_target): Define as pointer to the_aarch64_target.
2025 * linux-arm-low.cc (class arm_target): New class.
2026 (the_arm_target): New static object.
2027 (the_linux_target): Define as pointer to the_arm_target.
2028 * linux-bfin-low.cc (class bfin_target): New class.
2029 (the_bfin_target): New static object.
2030 (the_linux_target): Define as pointer to the_bfin_target.
2031 * linux-cris-low.cc (class cris_target): New class.
2032 (the_cris_target): New static object.
2033 (the_linux_target): Define as pointer to the_cris_target.
2034 * linux-crisv32-low.cc (class crisv32_target): New class.
2035 (the_crisv32_target): New static object.
2036 (the_linux_target): Define as pointer to the_crisv32_target.
2037 * linux-ia64-low.cc (class ia64_target): New class.
2038 (the_ia64_target): New static object.
2039 (the_linux_target): Define as pointer to the_ia64_target.
2040 * linux-m32r-low.cc (class m32r_target): New class.
2041 (the_m32r_target): New static object.
2042 (the_linux_target): Define as pointer to the_m32r_target.
2043 * linux-m68k-low.cc (class m68k_target): New class.
2044 (the_m68k_target): New static object.
2045 (the_linux_target): Define as pointer to the_m68k_target.
2046 * linux-mips-low.cc (class mips_target): New class.
2047 (the_mips_target): New static object.
2048 (the_linux_target): Define as pointer to the_mips_target.
2049 * linux-nios2-low.cc (class nios2_target): New class.
2050 (the_nios2_target): New static object.
2051 (the_linux_target): Define as pointer to the_nios2_target.
2052 * linux-ppc-low.cc (class ppc_target): New class.
2053 (the_ppc_target): New static object.
2054 (the_linux_target): Define as pointer to the_ppc_target.
2055 * linux-riscv-low.cc (class riscv_target): New class.
2056 (the_riscv_target): New static object.
2057 (the_linux_target): Define as pointer to the_riscv_target.
2058 * linux-s390-low.cc (class s390_target): New class.
2059 (the_s390_target): New static object.
2060 (the_linux_target): Define as pointer to the_s390_target.
2061 * linux-sh-low.cc (class sh_target): New class.
2062 (the_sh_target): New static object.
2063 (the_linux_target): Define as pointer to the_sh_target.
2064 * linux-sparc-low.cc (class sparc_target): New class.
2065 (the_sparc_target): New static object.
2066 (the_linux_target): Define as pointer to the_sparc_target.
2067 * linux-tic6x-low.cc (class tic6x_target): New class.
2068 (the_tic6x_target): New static object.
2069 (the_linux_target): Define as pointer to the_tic6x_target.
2070 * linux-tile-low.cc (class tile_target): New class.
2071 (the_tile_target): New static object.
2072 (the_linux_target): Define as pointer to the_tile_target.
2073 * linux-xtensa-low.cc (class xtensa_target): New class.
2074 (the_xtensa_target): New static object.
2075 (the_linux_target): Define as pointer to the_xtensa_target.
2077 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2079 Turn some static functions in linux-low.cc into private methods of
2080 linux_process_target.
2082 * linux-low.cc (handle_extended_wait): Turn into ...
2083 (linux_process_target::handle_extended_wait): ...this. Call
2084 'mourn' on 'this' object instead of 'the_target'.
2085 (maybe_move_out_of_jump_pad): Turn into...
2086 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2087 (linux_low_filter_event): Turn into...
2088 (linux_process_target::filter_event): ...this.
2089 (linux_wait_for_event_filtered): Turn into...
2090 (linux_process_target::wait_for_event_filtered): ...this.
2091 (linux_wait_for_event): Turn into...
2092 (linux_process_target::wait_for_event): ...this.
2093 (linux_wait_1): Turn into...
2094 (linux_process_target::wait_1): ...this.
2095 (wait_for_sigstop): Turn into...
2096 (linux_process_target::wait_for_sigstop): ...this.
2097 (move_out_of_jump_pad_callback): Turn into...
2098 (linux_process_target::move_out_of_jump_pad): ...this.
2099 (stop_all_lwps): Turn into...
2100 (linux_process_target::stop_all_lwps): ...this.
2101 (start_step_over): Turn into...
2102 (linux_process_target::start_step_over): ...this.
2103 (complete_ongoing_step_over): Turn into...
2104 (linux_process_target::complete_ongoing_step_over): ...this.
2105 (proceed_all_lwps): Turn into...
2106 (linux_process_target::proceed_all_lwps): ...this.
2107 (unstop_all_lwps): Turn into...
2108 (linux_process_target::unstop_all_lwps): ...this.
2110 * linux-low.h (class linux_process_target)
2111 <handle_extended_wait>
2112 <maybe_move_out_of_jump_pad>
2114 <wait_for_event_filtered>
2118 <move_out_of_jump_pad>
2121 <complete_ongoing_step_over>
2123 <unstop_all_lwps>: Declare.
2125 Update the callers below.
2127 * linux-low.cc (linux_process_target::attach): Update.
2128 (linux_process_target::stabilize_threads): Ditto.
2129 (linux_process_target::wait): Ditto.
2131 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2133 * linux-low.h (struct linux_target_ops): Update the comment for
2134 'cannot_store_register' to return 0 or 1.
2135 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2138 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2140 * config.in: Re-generate.
2141 * configure: Re-generate.
2143 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2145 * regcache.cc (find_register_by_number): Update.
2146 * tdesc.cc (init_target_desc): Likewise.
2147 * tdesc.h (target_desc::reg_defs): Likewise.
2149 2020-03-12 Tom Tromey <tom@tromey.com>
2151 * configure: Rebuild.
2152 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2153 (WIN32APILIBS): New subst.
2154 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2156 (gdbsupport/%.o): Remove target.
2157 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2158 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2159 (WIN32APILIBS): New variable.
2160 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2161 (gdbreplay$(EXEEXT)): Likewise.
2163 2020-03-12 Tom Tromey <tom@tromey.com>
2165 * config.in, configure: Rebuild.
2166 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2167 * acinclude.m4: Include gettext-sister.m4.
2168 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2170 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2171 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2173 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2175 * acinclude.m4: Update path to selftest.m4.
2177 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2179 * configure.ac: Don't source bfd/development.sh, move
2180 GDB_AC_COMMON higher.
2181 * configure: Re-generate.
2183 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2185 * configure: Re-generate.
2187 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2189 * configure: Re-generate.
2191 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2193 * .dir-locals.el: New file.
2195 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2197 * .gitattributes: New file.
2199 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2201 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2202 reply into an S reply.
2203 * server.cc (disable_packet_T): New global.
2204 (captured_main): Set new global when appropriate.
2205 * server.h (disable_packet_T): Declare.
2207 2020-02-21 Tom Tromey <tom@tromey.com>
2209 * Makefile.in (mostlyclean): New target.
2211 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2213 * target.h (struct process_stratum_target): Remove.
2214 (class process_target): Rename to ...
2215 (class process_stratum_target): ... this.
2216 * linux-low.h (class linux_process_target): Derive from
2217 'process_stratum_target'.
2218 * linux-low.cc (linux_target_ops): Remove.
2219 (initialize_low): Set the_target to the singleton instance of
2220 linux_process_target.
2221 * lynx-low.h (class lynx_process_target): Derive from
2222 'process_stratum_target'.
2223 * lynx-low.cc (lynx_target_ops): Remove.
2224 (initialize_low): Set the_target to the singleton instance of
2225 lynx_process_target.
2226 * nto-low.h (class nto_process_target): Derive from
2227 'process_stratum_target'.
2228 * nto-low.cc (nto_target_ops): Remove.
2229 (initialize_low): Set the_target to the singleton instance of
2231 * win32-low.h (class win32_process_target): Derive from
2232 'process_stratum_target'.
2233 * win32-low.cc (win32_target_ops): Remove.
2234 (initialize_low): Set the_target to the singleton instance of
2235 win32_process_target.
2237 Replace 'the_target->pt' with 'the_target' in the uses below.
2239 * hostio.cc (hostio_error)
2244 * linux-aarch32-low.cc (arm_breakpoint_at)
2245 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2246 * linux-arm-low.cc (arm_sigreturn_next_pc)
2248 (arm_get_syscall_trapinfo)
2249 * linux-cris-low.cc (cris_breakpoint_at)
2250 * linux-crisv32-low.cc (cris_breakpoint_at)
2251 * linux-low.cc (handle_extended_wait)
2254 (linux_process_target::breakpoint_kind_from_pc)
2256 * linux-m32r-low.cc (m32r_breakpoint_at)
2257 * linux-mips-low.cc (mips_breakpoint_at)
2258 * linux-nios2-low.cc (nios2_breakpoint_at)
2259 * linux-ppc-low.cc (ppc_breakpoint_at)
2260 * linux-s390-low.cc (s390_get_hwcap)
2261 * linux-sh-low.cc (sh_breakpoint_at)
2262 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2263 (sparc_store_gregset_from_stack)
2264 (sparc_breakpoint_at)
2265 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2266 * linux-tile-low.cc (tile_breakpoint_at)
2267 * linux-x86-low.cc (x86_breakpoint_at)
2268 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2269 * mem-break.cc (bp_size)
2271 (insert_memory_breakpoint)
2272 (set_raw_breakpoint_at)
2273 (delete_raw_breakpoint)
2275 (uninsert_raw_breakpoint)
2276 (reinsert_raw_breakpoint)
2277 (validate_inserted_breakpoint)
2278 * regcache.cc (regcache_read_pc)
2280 * remote-utils.cc (putpkt_binary_1)
2283 (prepare_resume_reply)
2284 * server.cc (handle_general_set)
2287 (handle_qxfer_exec_file)
2288 (handle_qxfer_libraries_svr4)
2289 (handle_qxfer_osdata)
2290 (handle_qxfer_siginfo)
2291 (handle_qxfer_fdpic)
2295 (queue_stop_reply_callback)
2297 * target.cc (prepare_to_access_memory)
2298 (done_accessing_memory)
2299 (read_inferior_memory)
2300 (target_write_memory)
2301 (target_stop_and_wait)
2303 (target_mourn_inferior)
2304 (target_continue_no_signal)
2306 (target_supports_multi_process)
2309 (target_create_inferior)
2310 (target_post_create_inferior)
2312 (target_supports_fork_events)
2313 (target_supports_vfork_events)
2314 (target_supports_exec_events)
2315 (target_handle_new_gdb_connection)
2318 (fetch_inferior_registers)
2319 (store_inferior_registers)
2321 (target_supports_non_stop)
2323 (target_process_qsupported)
2324 (target_supports_catch_syscall)
2325 (target_get_ipa_tdesc_idx)
2326 (target_supports_tracepoints)
2327 (target_supports_fast_tracepoints)
2328 (target_get_min_fast_tracepoint_insn_len)
2329 (target_thread_stopped)
2331 (target_unpause_all)
2332 (target_stabilize_threads)
2333 (target_install_fast_tracepoint_jump_pad)
2335 (target_supports_disable_randomization)
2336 (target_supports_agent)
2337 (target_enable_btrace)
2338 (target_disable_btrace)
2339 (target_read_btrace)
2340 (target_read_btrace_conf)
2341 (target_supports_range_stepping)
2342 (target_supports_stopped_by_sw_breakpoint)
2343 (target_stopped_by_sw_breakpoint)
2344 (target_supports_stopped_by_hw_breakpoint)
2345 (target_supports_hardware_single_step)
2346 (target_stopped_by_hw_breakpoint)
2347 (target_breakpoint_kind_from_pc)
2348 (target_breakpoint_kind_from_current_state)
2349 (target_supports_software_single_step)
2350 (target_core_of_thread)
2351 (target_thread_name)
2352 (target_thread_handle)
2353 * win32-low.cc (do_initial_child_stuff)
2355 Rename target op default definitions listed below.
2357 * target.cc (process_target::post_create_inferior): Rename as ...
2358 (process_stratum_target::post_create_inferior): ... this.
2359 (process_target::prepare_to_access_memory): Rename as ...
2360 (process_stratum_target::prepare_to_access_memory): ... this.
2361 (process_target::done_accessing_memory): Rename as ...
2362 (process_stratum_target::done_accessing_memory): ... this.
2363 (process_target::look_up_symbols): Rename as ...
2364 (process_stratum_target::look_up_symbols): ... this.
2365 (process_target::supports_read_auxv): Rename as ...
2366 (process_stratum_target::supports_read_auxv): ... this.
2367 (process_target::read_auxv): Rename as ...
2368 (process_stratum_target::read_auxv): ... this.
2369 (process_target::supports_z_point_type): Rename as ...
2370 (process_stratum_target::supports_z_point_type): ... this.
2371 (process_target::insert_point): Rename as ...
2372 (process_stratum_target::insert_point): ... this.
2373 (process_target::remove_point): Rename as ...
2374 (process_stratum_target::remove_point): ... this.
2375 (process_target::stopped_by_sw_breakpoint): Rename as ...
2376 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2377 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2378 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2379 (process_target::stopped_by_hw_breakpoint): Rename as ...
2380 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2381 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2382 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2383 (process_target::supports_hardware_single_step): Rename as ...
2384 (process_stratum_target::supports_hardware_single_step): ... this.
2385 (process_target::stopped_by_watchpoint): Rename as ...
2386 (process_stratum_target::stopped_by_watchpoint): ... this.
2387 (process_target::stopped_data_address): Rename as ...
2388 (process_stratum_target::stopped_data_address): ... this.
2389 (process_target::supports_read_offsets): Rename as ...
2390 (process_stratum_target::supports_read_offsets): ... this.
2391 (process_target::read_offsets): Rename as ...
2392 (process_stratum_target::read_offsets): ... this.
2393 (process_target::supports_get_tls_address): Rename as ...
2394 (process_stratum_target::supports_get_tls_address): ... this.
2395 (process_target::get_tls_address): Rename as ...
2396 (process_stratum_target::get_tls_address): ... this.
2397 (process_target::hostio_last_error): Rename as ...
2398 (process_stratum_target::hostio_last_error): ... this.
2399 (process_target::supports_qxfer_osdata): Rename as ...
2400 (process_stratum_target::supports_qxfer_osdata): ... this.
2401 (process_target::qxfer_osdata): Rename as ...
2402 (process_stratum_target::qxfer_osdata): ... this.
2403 (process_target::supports_qxfer_siginfo): Rename as ...
2404 (process_stratum_target::supports_qxfer_siginfo): ... this.
2405 (process_target::qxfer_siginfo): Rename as ...
2406 (process_stratum_target::qxfer_siginfo): ... this.
2407 (process_target::supports_non_stop): Rename as ...
2408 (process_stratum_target::supports_non_stop): ... this.
2409 (process_target::async): Rename as ...
2410 (process_stratum_target::async): ... this.
2411 (process_target::start_non_stop): Rename as ...
2412 (process_stratum_target::start_non_stop): ... this.
2413 (process_target::supports_multi_process): Rename as ...
2414 (process_stratum_target::supports_multi_process): ... this.
2415 (process_target::supports_fork_events): Rename as ...
2416 (process_stratum_target::supports_fork_events): ... this.
2417 (process_target::supports_vfork_events): Rename as ...
2418 (process_stratum_target::supports_vfork_events): ... this.
2419 (process_target::supports_exec_events): Rename as ...
2420 (process_stratum_target::supports_exec_events): ... this.
2421 (process_target::handle_new_gdb_connection): Rename as ...
2422 (process_stratum_target::handle_new_gdb_connection): ... this.
2423 (process_target::handle_monitor_command): Rename as ...
2424 (process_stratum_target::handle_monitor_command): ... this.
2425 (process_target::core_of_thread): Rename as ...
2426 (process_stratum_target::core_of_thread): ... this.
2427 (process_target::supports_read_loadmap): Rename as ...
2428 (process_stratum_target::supports_read_loadmap): ... this.
2429 (process_target::read_loadmap): Rename as ...
2430 (process_stratum_target::read_loadmap): ... this.
2431 (process_target::process_qsupported): Rename as ...
2432 (process_stratum_target::process_qsupported): ... this.
2433 (process_target::supports_tracepoints): Rename as ...
2434 (process_stratum_target::supports_tracepoints): ... this.
2435 (process_target::read_pc): Rename as ...
2436 (process_stratum_target::read_pc): ... this.
2437 (process_target::write_pc): Rename as ...
2438 (process_stratum_target::write_pc): ... this.
2439 (process_target::supports_thread_stopped): Rename as ...
2440 (process_stratum_target::supports_thread_stopped): ... this.
2441 (process_target::thread_stopped): Rename as ...
2442 (process_stratum_target::thread_stopped): ... this.
2443 (process_target::supports_get_tib_address): Rename as ...
2444 (process_stratum_target::supports_get_tib_address): ... this.
2445 (process_target::get_tib_address): Rename as ...
2446 (process_stratum_target::get_tib_address): ... this.
2447 (process_target::pause_all): Rename as ...
2448 (process_stratum_target::pause_all): ... this.
2449 (process_target::unpause_all): Rename as ...
2450 (process_stratum_target::unpause_all): ... this.
2451 (process_target::stabilize_threads): Rename as ...
2452 (process_stratum_target::stabilize_threads): ... this.
2453 (process_target::supports_fast_tracepoints): Rename as ...
2454 (process_stratum_target::supports_fast_tracepoints): ... this.
2455 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2456 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2457 (process_target::emit_ops): Rename as ...
2458 (process_stratum_target::emit_ops): ... this.
2459 (process_target::supports_disable_randomization): Rename as ...
2460 (process_stratum_target::supports_disable_randomization): ... this.
2461 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2462 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2463 (process_target::qxfer_libraries_svr4): Rename as ...
2464 (process_stratum_target::qxfer_libraries_svr4): ... this.
2465 (process_target::supports_agent): Rename as ...
2466 (process_stratum_target::supports_agent): ... this.
2467 (process_target::enable_btrace): Rename as ...
2468 (process_stratum_target::enable_btrace): ... this.
2469 (process_target::disable_btrace): Rename as ...
2470 (process_stratum_target::disable_btrace): ... this.
2471 (process_target::read_btrace): Rename as ...
2472 (process_stratum_target::read_btrace): ... this.
2473 (process_target::read_btrace_conf): Rename as ...
2474 (process_stratum_target::read_btrace_conf): ... this.
2475 (process_target::supports_range_stepping): Rename as ...
2476 (process_stratum_target::supports_range_stepping): ... this.
2477 (process_target::supports_pid_to_exec_file): Rename as ...
2478 (process_stratum_target::supports_pid_to_exec_file): ... this.
2479 (process_target::pid_to_exec_file): Rename as ...
2480 (process_stratum_target::pid_to_exec_file): ... this.
2481 (process_target::supports_multifs): Rename as ...
2482 (process_stratum_target::supports_multifs): ... this.
2483 (process_target::multifs_open): Rename as ...
2484 (process_stratum_target::multifs_open): ... this.
2485 (process_target::multifs_unlink): Rename as ...
2486 (process_stratum_target::multifs_unlink): ... this.
2487 (process_target::multifs_readlink): Rename as ...
2488 (process_stratum_target::multifs_readlink): ... this.
2489 (process_target::breakpoint_kind_from_pc): Rename as ...
2490 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2491 (process_target::breakpoint_kind_from_current_state): Rename as ...
2492 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2493 (process_target::thread_name): Rename as ...
2494 (process_stratum_target::thread_name): ... this.
2495 (process_target::thread_handle): Rename as ...
2496 (process_stratum_target::thread_handle): ... this.
2497 (process_target::supports_software_single_step): Rename as ...
2498 (process_stratum_target::supports_software_single_step): ... this.
2499 (process_target::supports_catch_syscall): Rename as ...
2500 (process_stratum_target::supports_catch_syscall): ... this.
2501 (process_target::get_ipa_tdesc_idx): Rename as ...
2502 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2504 2020-02-20 Pedro Alves <palves@redhat.com>
2506 * target.cc (set_target_ops): Simply copy the given target pointer
2507 instead of creating a copy of the pointed object.
2509 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2511 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2514 * target.h (struct process_stratum_target): Remove the target op.
2515 (class process_target): Add the target op.
2516 (target_get_ipa_tdesc_idx): Update the macro.
2517 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2519 Update the derived classes and callers below.
2521 * linux-low.cc (linux_target_ops): Update.
2522 (linux_get_ipa_tdesc_idx): Turn into ...
2523 (linux_process_target::get_ipa_tdesc_idx): ... this.
2524 * linux-low.h (class linux_process_target): Update.
2525 * lynx-low.cc (lynx_target_ops): Update.
2526 * nto-low.cc (nto_target_ops): Update.
2527 * win32-low.cc (win32_target_ops): Update.
2529 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2531 Turn process_stratum_target's supports_catch_syscall op into a
2532 method of process_target.
2534 * target.h (struct process_stratum_target): Remove the target op.
2535 (class process_target): Add the target op.
2536 (target_supports_catch_syscall): Update the macro.
2537 * target.cc (process_target::supports_catch_syscall): Define.
2539 Update the derived classes and callers below.
2541 * linux-low.cc (linux_target_ops): Update.
2542 (linux_supports_catch_syscall): Turn into ...
2543 (linux_process_target::supports_catch_syscall): ... this.
2544 * linux-low.h (class linux_process_target): Update.
2545 * lynx-low.cc (lynx_target_ops): Update.
2546 * nto-low.cc (nto_target_ops): Update.
2547 * win32-low.cc (win32_target_ops): Update.
2549 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2551 Turn process_stratum_target's supports_software_single_step op
2552 into a method of process_target.
2554 * target.h (struct process_stratum_target): Remove the target op.
2555 (class process_target): Add the target op.
2556 (target_supports_software_single_step): Update the macro.
2557 * target.cc (process_target::supports_software_single_step): Define.
2559 Update the derived classes and callers below.
2561 * linux-low.cc (linux_target_ops): Update.
2562 (linux_supports_software_single_step): Turn into ...
2563 (linux_process_target::supports_software_single_step): ... this.
2564 * linux-low.h (class linux_process_target): Update.
2565 * lynx-low.cc (lynx_target_ops): Update.
2566 * nto-low.cc (nto_target_ops): Update.
2567 * win32-low.cc (win32_target_ops): Update.
2569 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2571 Turn process_stratum_target's thread_name and thread_handle ops
2572 into methods of process_target.
2574 * target.h (struct process_stratum_target): Remove the target ops.
2575 (class process_target): Add the target ops.
2576 (target_thread_name): Update the macro.
2577 (target_thread_handle): Update the macro.
2578 * target.cc (process_target::thread_name): Define.
2579 (process_target::thread_handle): Define.
2581 Update the derived classes and callers below.
2583 * linux-low.cc (linux_target_ops): Update.
2584 (linux_process_target::thread_name): Define.
2585 (linux_process_target::thread_handle): Define.
2586 * linux-low.h (class linux_process_target): Update.
2587 * lynx-low.cc (lynx_target_ops): Update.
2588 * nto-low.cc (nto_target_ops): Update.
2589 * win32-low.cc (win32_target_ops): Update.
2591 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2593 Turn process_stratum_target's breakpoint_kind_from_pc,
2594 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2595 ops into methods of process_target.
2597 * target.h (struct process_stratum_target): Remove the target op.
2598 (class process_target): Add the target op.
2599 (target_breakpoint_kind_from_pc): Update the macro.
2600 (target_breakpoint_kind_from_current_state): Update the macro.
2601 (default_breakpoint_kind_from_pc): Remove declaration.
2602 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2603 (process_target::breakpoint_kind_from_pc): ... this.
2604 (process_target::breakpoint_kind_from_current_state): Define.
2606 Update the derived classes and callers below.
2608 * mem-break.cc (bp_size): Update.
2609 (bp_opcode): Update.
2610 * linux-low.cc (linux_target_ops): Update.
2611 (linux_wait_1): Update.
2612 (linux_breakpoint_kind_from_pc): Turn into ...
2613 (linux_process_target::breakpoint_kind_from_pc): ... this.
2614 (linux_sw_breakpoint_from_kind): Turn into ...
2615 (linux_process_target::sw_breakpoint_from_kind): ... this.
2616 (linux_breakpoint_kind_from_current_state): Turn into ...
2617 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2618 * linux-low.h (class linux_process_target): Update.
2619 * lynx-low.cc (lynx_target_ops): Update.
2620 (lynx_process_target::sw_breakpoint_from_kind): Define.
2621 * lynx-low.h (class lynx_process_target): Update.
2622 * nto-low.cc (nto_target_ops): Update.
2623 (nto_sw_breakpoint_from_kind): Turn into ...
2624 (nto_process_target::sw_breakpoint_from_kind): ... this.
2625 * nto-low.h (class nto_process_target): Update.
2626 * win32-low.cc (win32_target_ops): Update.
2627 (win32_sw_breakpoint_from_kind): Turn into ...
2628 (win32_process_target::sw_breakpoint_from_kind): ... this.
2629 * win32-low.h (class win32_process_target): Update.
2631 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2633 Turn process_stratum_target's multifs_open, multifs_readlink,
2634 multifs_unlink ops into methods of process_target.
2636 * target.h (struct process_stratum_target): Remove the target ops.
2637 (class process_target): Add the target ops. Also add
2639 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2641 (process_target::supports_multifs): Define.
2642 (process_target::multifs_open): Define.
2643 (process_target::multifs_readlink): Define.
2644 (process_target::multifs_unlink): Define.
2646 Update the derived classes and callers below.
2648 * hostio.cc (handle_setfs): Update.
2649 (handle_open): Update.
2650 (handle_unlink): Update.
2651 (handle_readlink): Update.
2652 * linux-low.cc (linux_target_ops): Update.
2653 (linux_process_target::supports_multifs): Define.
2654 (linux_process_target::multifs_open): Define.
2655 (linux_process_target::multifs_readlink): Define.
2656 (linux_process_target::multifs_unlink): Define.
2657 * linux-low.h (class linux_process_target): Update.
2658 * lynx-low.cc (lynx_target_ops): Update.
2659 * nto-low.cc (nto_target_ops): Update.
2660 * win32-low.cc (win32_target_ops): Update.
2662 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2664 Turn process_stratum_target's pid_to_exec_file op into a method
2667 * target.h (struct process_stratum_target): Remove the target op.
2668 (class process_target): Add the target op. Also add
2669 'supports_pid_to_exec_file'.
2670 * target.cc (process_target::pid_to_exec_file): Define.
2671 (process_target::supports_pid_to_exec_file): Define.
2673 Update the derived classes and callers below.
2675 * server.cc (handle_qxfer_exec_file): Update.
2676 (handle_query): Update.
2677 * linux-low.cc (linux_target_ops): Update.
2678 (linux_process_target::supports_pid_to_exec_file): Define.
2679 (linux_process_target::pid_to_exec_file): Define.
2680 * linux-low.h (class linux_process_target): Update.
2681 * lynx-low.cc (lynx_target_ops): Update.
2682 * nto-low.cc (nto_target_ops): Update.
2683 * win32-low.cc (win32_target_ops): Update.
2685 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2687 Turn process_stratum_target's supports_range_stepping op into a
2688 method of process_target.
2690 * target.h (struct process_stratum_target): Remove the target op.
2691 (class process_target): Add the target op.
2692 (target_supports_range_stepping): Update the macro.
2693 * target.cc (process_target::supports_range_stepping): Define.
2695 Update the derived classes and callers below.
2697 * linux-low.cc (linux_target_ops): Update.
2698 (linux_supports_range_stepping): Turn into ...
2699 (linux_process_target::supports_range_stepping): ... this.
2700 * linux-low.h (class linux_process_target): Update.
2701 * lynx-low.cc (lynx_target_ops): Update.
2702 * nto-low.cc (nto_target_ops): Update.
2703 * win32-low.cc (win32_target_ops): Update.
2705 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2707 Turn process_stratum_target's btrace-related ops (enable_btrace,
2708 disable_btrace, read_btrace, read_btrace_conf) into methods of
2711 * target.h (struct process_stratum_target): Remove the target ops.
2712 (class process_target): Add the target ops.
2713 (target_enable_btrace): Update.
2714 (target_disable_btrace): Update.
2715 (target_read_btrace): Update.
2716 (target_read_btrace_conf): Update.
2717 * target.cc (process_target::enable_btrace): Define.
2718 (process_target::disable_btrace): Define.
2719 (process_target::read_btrace): Define.
2720 (process_target::read_btrace_conf): Define.
2722 Update the derived classes and callers below.
2724 * linux-low.cc (linux_target_ops): Update.
2725 (linux_process_target:enable_btrace): Define as a wrapper around
2726 linux_enable_btrace.
2727 (linux_low_disable_btrace): Turn into ...
2728 (linux_process_target::disable_btrace): ... this.
2729 (linux_low_read_btrace): Turn into ...
2730 (linux_process_target::read_btrace): ... this.
2731 (linux_low_btrace_conf): Turn into ...
2732 (linux_process_target::read_btrace_conf): ... this.
2733 * linux-low.h (class linux_process_target): Update.
2734 * lynx-low.cc (lynx_target_ops): Update.
2735 * nto-low.cc (nto_target_ops): Update.
2736 * win32-low.cc (win32_target_ops): Update.
2738 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2740 Turn process_stratum_target's supports_agent op into a method of
2743 * target.h (struct process_stratum_target): Remove the target op.
2744 (class process_target): Add the target op.
2745 (target_supports_agent): Update the macro.
2746 * target.cc (process_target::supports_agent): Define.
2748 Update the derived classes and callers below.
2750 * linux-low.cc (linux_target_ops): Update.
2751 (linux_supports_agent): Turn into ...
2752 (linux_process_target::supports_agent): ... this.
2753 * linux-low.h (class linux_process_target): Update.
2754 * lynx-low.cc (lynx_target_ops): Update.
2755 * nto-low.cc (nto_target_ops): Update.
2756 * win32-low.cc (win32_target_ops): Update.
2758 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2760 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2761 method of process_target.
2763 * target.h (struct process_stratum_target): Remove the target op.
2764 (class process_target): Add the target op. Also add
2765 'supports_qxfer_libraries_svr4'.
2766 * target.cc (process_target::qxfer_libraries_svr4): Define.
2767 (process_target::supports_qxfer_libraries_svr4): Define.
2769 Update the derived classes and callers below.
2771 * server.cc (handle_qxfer_libraries_svr4): Update.
2772 (handle_query): Update.
2773 * linux-low.cc (linux_target_ops): Update.
2774 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2775 (linux_qxfer_libraries_svr4): Turn into ...
2776 (linux_process_target::qxfer_libraries_svr4): ... this.
2777 * linux-low.h (class linux_process_target): Update.
2778 * lynx-low.cc (lynx_target_ops): Update.
2779 * nto-low.cc (nto_target_ops): Update.
2780 * win32-low.cc (win32_target_ops): Update.
2782 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2784 Turn process_stratum_target's supports_disable_randomization op
2785 into a method of process_target.
2787 * target.h (struct process_stratum_target): Remove the target op.
2788 (class process_target): Add the target op.
2789 (target_supports_disable_randomization): Update the macro.
2790 * target.cc (process_target::supports_disable_randomization): Define.
2792 Update the derived classes and callers below.
2794 * linux-low.cc (linux_target_ops): Update.
2795 (linux_supports_disable_randomization): Turn into ...
2796 (linux_process_target::supports_disable_randomization): ... this.
2797 * linux-low.h (class linux_process_target): Update.
2798 * lynx-low.cc (lynx_target_ops): Update.
2799 * nto-low.cc (nto_target_ops): Update.
2800 * win32-low.cc (win32_target_ops): Update.
2802 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2804 Turn process_stratum_target's emit_ops op into a method of
2807 * target.h (struct process_stratum_target): Remove the target op.
2808 (class process_target): Add the target op.
2809 (target_emit_ops): Update the macro.
2810 * target.cc (process_target::emit_ops): Define.
2812 Update the derived classes and callers below.
2814 * linux-low.cc (linux_target_ops): Update.
2815 (linux_emit_ops): Turn into ...
2816 (linux_process_target::emit_ops): ... this.
2817 * linux-low.h (class linux_process_target): Update.
2818 * lynx-low.cc (lynx_target_ops): Update.
2819 * nto-low.cc (nto_target_ops): Update.
2820 * win32-low.cc (win32_target_ops): Update.
2822 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2824 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2825 and get_min_fast_tracepoint_insn_len ops into methods of
2828 * target.h (struct process_stratum_target): Remove the target ops.
2829 (class process_target): Add the target ops. Also add
2830 'supports_fast_tracepoints'.
2831 (target_supports_fast_tracepoints): Update the macro.
2832 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2833 (install_fast_tracepoint_jump_pad): Update and rename the macro
2835 (target_install_fast_tracepoint_jump_pad): ... this.
2836 * target.cc (process_target::supports_fast_tracepoints): Define.
2837 (process_target::install_fast_tracepoint_jump_pad): Define.
2838 (process_target::get_min_fast_tracepoint_insn_len): Define.
2840 Update the derived classes and callers below.
2842 * tracepoint.cc (install_fast_tracepoint): Update.
2843 * linux-low.cc (linux_target_ops): Update.
2844 (linux_process_target::supports_fast_tracepoints): Define.
2845 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2846 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2847 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2848 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2849 * linux-low.h (class linux_process_target): Update.
2850 * lynx-low.cc (lynx_target_ops): Update.
2851 * nto-low.cc (nto_target_ops): Update.
2852 * win32-low.cc (win32_target_ops): Update.
2854 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2856 Turn process_stratum_target's stabilize_threads op into a
2857 method of process_target.
2859 * target.h (struct process_stratum_target): Remove the target op.
2860 (class process_target): Add the target op.
2861 (target_stabilize_threads): Update the macro.
2862 * target.cc (process_target::stabilize_threads): Define.
2864 Update the derived classes and callers below.
2866 * server.cc (handle_status): Update.
2867 * tracepoint.cc (cmd_qtdp): Update.
2868 (cmd_qtstart): Update.
2869 * linux-low.cc (linux_target_ops): Update.
2870 (linux_stabilize_threads): Turn into ...
2871 (linux_process_target::stabilize_threads): ... this.
2872 (linux_wait_1): Update.
2873 * linux-low.h (class linux_process_target): Update.
2874 * lynx-low.cc (lynx_target_ops): Update.
2875 * nto-low.cc (nto_target_ops): Update.
2876 * win32-low.cc (win32_target_ops): Update.
2878 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2880 Turn process_stratum_target's pause_all and unpause_all ops
2881 into methods of process_target.
2883 * target.h (struct process_stratum_target): Remove the target ops.
2884 (class process_target): Add the target ops.
2885 (pause_all): Update the macro and rename to...
2886 (target_pause_all): ... this.
2887 (unpause_all): Update the macro and rename to...
2888 (target_unpause_all): ... this.
2889 * target.cc (process_target::pause_all): Define.
2890 (process_target::unpause_all): Define.
2892 Update the derived classes and callers below.
2894 * server.cc (handle_status): Update.
2895 * tracepoint.cc (clear_installed_tracepoints): Update.
2897 (cmd_qtstart): Update.
2898 (stop_tracing): Update.
2899 (cmd_qtstatus): Update.
2900 (upload_fast_traceframes): Update.
2901 (run_inferior_command): Update.
2902 * linux-low.cc (linux_target_ops): Update.
2903 (linux_pause_all): Turn into ...
2904 (linux_process_target::pause_all): ... this.
2905 (linux_unpause_all): Turn into ...
2906 (linux_process_target::unpause_all): ... this.
2907 (linux_process_target::prepare_to_access_memory): Update.
2908 (linux_process_target::done_accessing_memory): Update.
2909 * linux-low.h (class linux_process_target): Update.
2910 * lynx-low.cc (lynx_target_ops): Update.
2911 * nto-low.cc (nto_target_ops): Update.
2912 * win32-low.cc (win32_target_ops): Update.
2914 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2916 Turn process_stratum_target's get_tib_address op into a method of
2919 * target.h (struct process_stratum_target): Remove the target op.
2920 (class process_target): Add the target op. Also add
2921 'supports_get_tib_address'.
2922 * target.cc (process_target::get_tib_address): Define.
2923 (process_target::supports_get_tib_address): Define.
2925 Update the derived classes and callers below.
2927 * server.cc (handle_query): Update.
2928 * linux-low.cc (win32_target_ops): Update.
2929 * lynx-low.cc (lynx_target_ops): Update.
2930 * nto-low.cc (nto_target_ops): Update.
2931 * win32-low.cc (win32_target_ops): Update.
2932 (win32_process_target::supports_get_tib_address): Define.
2933 (win32_get_tib_address): Turn into ...
2934 (win32_process_target::get_tib_address): ... this.
2935 * win32-low.h (class win32_process_target): Update.
2937 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2939 Turn process_stratum_target's thread_stopped op into a method of
2942 * target.h (struct process_stratum_target): Remove the target op.
2943 (class process_target): Add the target op. Also add
2944 'supports_thread_stopped'.
2945 (target_thread_stopped): Update the macro.
2946 * target.cc (process_target::thread_stopped): Define.
2947 (process_target::supports_thread_stopped): Define.
2948 (prepare_to_access_memory): Update.
2950 Update the derived classes and callers below.
2952 * server.cc (queue_stop_reply_callback): Update.
2953 * linux-low.cc (linux_target_ops): Update.
2954 (linux_process_target::supports_thread_stopped): Define.
2955 (linux_thread_stopped): Turn into ...
2956 (linux_process_target::thread_stopped): ... this.
2957 * linux-low.h (class linux_process_target): Update.
2958 * lynx-low.cc (lynx_target_ops): Update.
2959 * nto-low.cc (nto_target_ops): Update.
2960 * win32-low.cc (win32_target_ops): Update.
2962 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2964 Turn process_stratum_target's read_pc and write_pc ops into
2965 methods of process_target.
2967 * target.h (struct process_stratum_target): Remove the target ops.
2968 (class process_target): Add the target ops.
2969 * target.cc (process_target::read_pc): Define.
2970 (process_target::write_pc): Define.
2972 Update the derived classes and callers below.
2974 * regcache.cc (regcache_read_pc): Update.
2975 (regcache_write_pc): Update.
2976 * linux-low.cc (linux_target_ops): Update.
2977 (linux_read_pc): Turn into ...
2978 (linux_process_target::read_pc): ... this.
2979 (linux_write_pc): Turn into ...
2980 (linux_process_target::write_pc): ... this.
2981 * linux-low.h (class linux_process_target): Update.
2982 * lynx-low.cc (lynx_target_ops): Update.
2983 * nto-low.cc (nto_target_ops): Update.
2984 * win32-low.cc (win32_target_ops): Update.
2986 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2988 Turn process_stratum_target's supports_tracepoints op into a
2989 method of process_target.
2991 * target.h (struct process_stratum_target): Remove the target op.
2992 (class process_target): Add the target op.
2993 (target_supports_tracepoints): Update the macro.
2994 * target.cc (process_target::supports_tracepoints): Define.
2996 Update the derived classes and callers below.
2998 * linux-low.cc (linux_target_ops): Update.
2999 (linux_supports_tracepoints): Turn into ...
3000 (linux_process_target::supports_tracepoints): ... this.
3001 * linux-low.h (class linux_process_target): Update.
3002 * lynx-low.cc (lynx_target_ops): Update.
3003 * nto-low.cc (nto_target_ops): Update.
3004 * win32-low.cc (win32_target_ops): Update.
3006 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3008 Turn process_stratum_target's process_qsupported op into a method
3011 * target.h (struct process_stratum_target): Remove the target op.
3012 (class process_target): Add the target op.
3013 (target_process_qsupported): Update the macro.
3014 * target.cc (process_target::process_qsupported): Define.
3016 Update the derived classes and callers below.
3018 * linux-low.cc (linux_target_ops): Update.
3019 (linux_process_qsupported): Turn into ...
3020 (linux_process_target::process_qsupported): ... this.
3021 * linux-low.h (class linux_process_target): Update.
3022 * lynx-low.cc (lynx_target_ops): Update.
3023 * nto-low.cc (nto_target_ops): Update.
3024 * win32-low.cc (win32_target_ops): Update.
3026 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3028 Turn process_stratum_target's read_loadmap op into a method of
3031 * target.h (struct process_stratum_target): Remove the target op.
3032 (class process_target): Add the target op. Also add
3033 'supports_read_loadmap'.
3034 * target.cc (process_target::read_loadmap): Define.
3035 (process_target::supports_read_loadmap): Define.
3037 Update the derived classes and callers below.
3039 * server.cc (handle_qxfer_fdpic): Update.
3040 (handle_query): Update.
3041 * linux-low.cc (linux_target_ops): Update.
3042 (linux_process_target::supports_read_loadmap): Define.
3043 (linux_read_loadmap): Turn into ...
3044 (linux_process_target::read_loadmap): ... this.
3045 * linux-low.h (class linux_process_target): Update.
3046 * lynx-low.cc (lynx_target_ops): Update.
3047 * nto-low.cc (nto_target_ops): Update.
3048 * win32-low.cc (win32_target_ops): Update.
3050 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3052 Turn process_stratum_target's core_of_thread op into a method of
3055 * target.h (struct process_stratum_target): Remove the target op.
3056 (class process_target): Add the target op.
3057 (target_core_of_thread): Update the macro.
3058 * target.cc (process_target::core_of_thread): Define.
3060 Update the derived classes and callers below.
3062 * linux-low.cc (linux_target_ops): Update.
3063 (linux_process_target::core_of_thread): Define.
3064 * linux-low.h (class linux_process_target): Update.
3065 * lynx-low.cc (lynx_target_ops): Update.
3066 * nto-low.cc (nto_target_ops): Update.
3067 * win32-low.cc (win32_target_ops): Update.
3069 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3071 Turn process_stratum_target's handle_monitor_command op into a
3072 method of process_target.
3074 * target.h (struct process_stratum_target): Remove the target op.
3075 (class process_target): Add the target op.
3076 (target_handle_monitor_command): Update the macro.
3077 * target.cc (process_target::handle_monitor_command): Define.
3079 Update the derived classes and callers below.
3081 * server.cc (handle_query): Update.
3082 * linux-low.cc (linux_target_ops): Update.
3083 (linux_process_target::handle_monitor_command): Define.
3084 * linux-low.h (class linux_process_target): Update.
3085 * lynx-low.cc (lynx_target_ops): Update.
3086 * nto-low.cc (nto_target_ops): Update.
3087 * win32-low.cc (win32_target_ops): Update.
3089 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3091 Turn process_stratum_target's handle_new_gdb_connection op into a
3092 method of process_target.
3094 * target.h (struct process_stratum_target): Remove the target op.
3095 (class process_target): Add the target op.
3096 (target_handle_new_gdb_connection): Update the macro.
3097 * target.cc (process_target::handle_new_gdb_connection): Define.
3099 Update the derived classes and callers below.
3101 * linux-low.cc (linux_target_ops): Update.
3102 (linux_handle_new_gdb_connection): Turn into ...
3103 (linux_process_target::handle_new_gdb_connection): ... this.
3104 * linux-low.h (class linux_process_target): Update.
3105 * lynx-low.cc (lynx_target_ops): Update.
3106 * nto-low.cc (nto_target_ops): Update.
3107 * win32-low.cc (win32_target_ops): Update.
3109 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3111 Turn process_stratum_target's supports_fork_events,
3112 supports_vfork_events, and supports_exec_events ops into methods
3115 * target.h (struct process_stratum_target): Remove the target ops.
3116 (class process_target): Add the target ops.
3117 (target_supports_fork_events): Update the macro.
3118 (target_supports_vfork_events): Update the macro.
3119 (target_supports_exec_events): Update the macro.
3120 * target.cc (process_target::supports_fork_events): Define.
3121 (process_target::supports_vfork_events): Define.
3122 (process_target::supports_exec_events): Define.
3124 Update the derived classes and callers below.
3126 * linux-low.cc (linux_target_ops): Update.
3127 (linux_supports_fork_events): Turn into ...
3128 (linux_process_target::supports_fork_events): ... this.
3129 (linux_supports_vfork_events): Turn into ...
3130 (linux_process_target::supports_vfork_events): ... this.
3131 (linux_supports_exec_events): Turn into ...
3132 (linux_process_target::supports_exec_events): ... this.
3133 * linux-low.h (class linux_process_target): Update.
3134 * lynx-low.cc (lynx_target_ops): Update.
3135 * nto-low.cc (nto_target_ops): Update.
3136 * win32-low.cc (win32_target_ops): Update.
3138 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3140 Turn process_stratum_target's supports_multi_process op into a
3141 method of process_target.
3143 * target.h (struct process_stratum_target): Remove the target op.
3144 (class process_target): Add the target op.
3145 * target.cc (process_target::supports_multi_process): Define.
3146 (target_supports_multi_process): Update.
3148 Update the derived classes and callers below.
3150 * linux-low.cc (linux_target_ops): Update.
3151 (linux_supports_multi_process): Turn into ...
3152 (linux_process_target::supports_multi_process): ... this.
3153 * linux-low.h (class linux_process_target): Update.
3154 * lynx-low.cc (lynx_target_ops): Update.
3155 * nto-low.cc (nto_target_ops): Update.
3156 * win32-low.cc (win32_target_ops): Update.
3158 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3160 Turn process_stratum_target's supports_non_stop, async, and
3161 start_non_stop ops into methods of process_target.
3163 * target.h (struct process_stratum_target): Remove the target ops.
3164 (class process_target): Add the target ops.
3165 (target_supports_non_stop): Update the macro.
3166 (target_async): Update the macro.
3167 (start_non_stop): Remove declaration.
3168 * target.cc (process_target::supports_non_stop): Define.
3169 (process_target::async): Define.
3170 (process_target::start_non_stop): Define.
3171 (start_non_stop): Remove.
3173 Update the derived classes and callers below.
3175 * server.cc (handle_qxfer_siginfo): Update.
3176 (handle_query): Update.
3177 * linux-low.cc (linux_target_ops): Update.
3178 (linux_supports_non_stop): Turn into ...
3179 (linux_process_target::supports_non_stop): ... this.
3180 (linux_async): Turn into ...
3181 (linux_process_target::async): ... this.
3182 (linux_start_non_stop): Turn into ...
3183 (linux_process_target::start_non_stop): ... this.
3184 * linux-low.h (class linux_process_target): Update.
3185 * lynx-low.cc (lynx_target_ops): Update.
3186 * nto-low.cc (nto_target_ops): Update.
3187 (nto_supports_non_stop): Remove; rely on the default behavior
3189 * win32-low.cc (win32_target_ops): Update.
3191 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3193 Turn process_stratum_target's qxfer_siginfo op into a method of
3196 * target.h (struct process_stratum_target): Remove the target op.
3197 (class process_target): Add the target op. Also add
3198 'supports_qxfer_siginfo'.
3199 * target.cc (process_target::qxfer_siginfo): Define.
3200 (process_target::supports_qxfer_siginfo): Define.
3202 Update the derived classes and callers below.
3204 * server.cc (handle_qxfer_siginfo): Update.
3205 (handle_query): Update.
3206 * linux-low.cc (linux_target_ops): Update.
3207 (linux_process_target::supports_qxfer_siginfo): Define.
3208 (linux_xfer_siginfo): Turn into ...
3209 (linux_process_target::qxfer_siginfo): ... this.
3210 * linux-low.h (class linux_process_target): Update.
3211 * lynx-low.cc (lynx_target_ops): Update.
3212 * nto-low.cc (nto_target_ops): Update.
3213 * win32-low.cc (win32_target_ops): Update.
3215 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3217 Turn process_stratum_target's qxfer_osdata op into a method of
3220 * target.h (struct process_stratum_target): Remove the target op.
3221 (class process_target): Add the target op. Also add
3222 'supports_qxfer_osdata'.
3223 * target.cc (process_target::qxfer_osdata): Define.
3224 (process_target::supports_qxfer_osdata): Define.
3226 Update the derived classes and callers below.
3228 * server.cc (handle_qxfer_osdata): Update.
3229 (handle_query): Update.
3230 * linux-low.cc (linux_target_ops): Update.
3231 (linux_process_target::supports_qxfer_osdata): Define.
3232 (linux_qxfer_osdata): Turn into ...
3233 (linux_process_target::qxfer_osdata): ... this.
3234 * linux-low.h (class linux_process_target): Update.
3235 * lynx-low.cc (lynx_target_ops): Update.
3236 * nto-low.cc (nto_target_ops): Update.
3237 * win32-low.cc (win32_target_ops): Update.
3239 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3241 Turn process_stratum_target's hostio_last_error op into a
3242 method of process_target.
3244 * target.h (struct process_stratum_target): Remove the target op.
3245 (class process_target): Add the target op.
3246 * target.cc: Add "hostio.h" to includes.
3247 (process_target::hostio_last_error): Define.
3249 Update the derived classes and callers below.
3251 * hostio.cc (hostio_error): Update.
3252 * linux-low.cc: Remove "hostio.h" from includes.
3253 (linux_target_ops): Update.
3254 * lynx-low.cc (lynx_target_ops): Update.
3255 * nto-low.cc (nto_target_ops): Update.
3256 * win32-low.h (class win32_process_target): Update.
3257 * win32-low.cc (win32_target_ops): Update.
3258 (wince_hostio_last_error): Turn into ...
3259 (win32_process_target::hostio_last_error): ... this.
3261 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3263 Turn process_stratum_target's get_tls_address op into a method of
3266 * target.h (struct process_stratum_target): Remove the target op.
3267 (class process_target): Add the target op. Also add
3268 'supports_get_tls_address'.
3269 * target.cc (process_target::get_tls_address): Define.
3270 (process_target::supports_get_tls_address): Define.
3272 Update the derived classes and callers below.
3274 * server.cc (handle_query): Update.
3275 * linux-low.cc (linux_target_ops): Update.
3276 (linux_process_target::supports_get_tls_address): Define.
3277 (linux_process_target::get_tls_address): Define.
3278 * linux-low.h (class linux_process_target): Update.
3279 * lynx-low.cc (lynx_target_ops): Update.
3280 * nto-low.cc (nto_target_ops): Update.
3281 * win32-low.cc (win32_target_ops): Update.
3283 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3285 Turn process_stratum_target's read_offsets op into a method of
3288 * target.h (struct process_stratum_target): Remove the target op.
3289 (class process_target): Add the target op. Also add
3290 'supports_read_offsets'.
3291 * target.cc (process_target::read_offsets): Define.
3292 (process_target::supports_read_offsets): Define.
3294 Update the derived classes and callers below.
3296 * server.cc (handle_query): Update.
3297 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3298 (linux_target_ops): Update.
3299 (linux_process_target::supports_read_offsets): Define.
3300 (linux_read_offsets): Turn into ...
3301 (linux_process_target::read_offsets): ... this.
3302 * linux-low.h (class linux_process_target): Update.
3303 * lynx-low.cc (lynx_target_ops): Update.
3304 * nto-low.cc (nto_target_ops): Update.
3305 * win32-low.cc (win32_target_ops): Update.
3307 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3309 Turn process_stratum_target's stopped_by_watchpoint and
3310 stopped_data_address ops into methods of process_target.
3312 * target.h (struct process_stratum_target): Remove the target ops.
3313 (class process_target): Add the target ops.
3314 * target.cc (process_target::stopped_by_watchpoint): Define.
3315 (process_target::stopped_data_address): Define.
3317 Update the derived classes and callers below.
3319 * remote-utils.cc (prepare_resume_reply): Update.
3320 * linux-low.cc (linux_target_ops): Update.
3321 (linux_stopped_by_watchpoint): Turn into ...
3322 (linux_process_target::stopped_by_watchpoint): ... this.
3323 (linux_stopped_data_address): Turn into ...
3324 (linux_process_target::stopped_data_address): ... this.
3325 * linux-low.h (class linux_process_target): Update.
3326 * lynx-low.cc (lynx_target_ops): Update.
3327 * nto-low.cc (nto_target_ops): Update.
3328 (nto_stopped_by_watchpoint): Turn into ...
3329 (nto_process_target::stopped_by_watchpoint): ... this.
3330 (nto_stopped_data_address): Turn into ...
3331 (nto_process_target::stopped_data_address): ... this.
3332 * nto-low.h (class nto_process_target): Update.
3333 * win32-low.cc (win32_target_ops): Update.
3334 (win32_stopped_by_watchpoint): Turn into ...
3335 (win32_process_target::stopped_by_watchpoint): ... this.
3336 (win32_stopped_data_address): Turn into ...
3337 (win32_process_target::stopped_data_address): ... this.
3338 * win32-low.h (class win32_process_target): Update.
3340 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3342 Turn process_stratum_target's supports_hardware_single_step op into
3343 a method of process_target.
3345 * target.h (struct process_stratum_target): Remove the target op.
3346 (class process_target): Add the target op.
3347 (target_supports_hardware_single_step): Update the macro.
3348 (target_can_do_hardware_single_step): Remove declaration.
3349 * target.cc (process_target::supports_hardware_single_step): Define.
3350 (target_can_do_hardware_single_step): Remove.
3352 Update the derived classes and callers below.
3354 * linux-low.h (class linux_process_target): Update.
3355 * linux-low.cc (linux_target_ops): Update.
3356 (linux_supports_hardware_single_step): Turn into ...
3357 (linux_process_target::supports_hardware_single_step): ... this.
3358 * lynx-low.h (class lynx_process_target): Update.
3359 * lynx-low.cc (lynx_target_ops): Update.
3360 (lynx_process_target::supports_hardware_single_step): Define.
3361 * nto-low.h (class nto_process_target): Update.
3362 * nto-low.cc (nto_target_ops): Update.
3363 (nto_process_target::supports_hardware_single_step): Define.
3364 * win32-low.h (class win32_process_target): Update.
3365 * win32-low.cc (win32_target_ops): Update.
3366 (win32_process_target::supports_hardware_single_step): Define.
3368 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3370 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3371 ops into methods of process_target.
3373 * target.h (struct process_stratum_target): Remove the target ops.
3374 (class process_target): Add the target ops.
3375 (target_stopped_by_hw_breakpoint): Update the macro.
3376 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3377 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3378 (process_target::supports_stopped_by_hw_breakpoint): Define.
3380 Update the derived classes and callers below.
3382 * linux-low.cc (linux_target_ops): Update.
3383 (linux_stopped_by_hw_breakpoint): Turn into ...
3384 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3385 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3386 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3387 * linux-low.h (class linux_process_target): Update.
3388 * lynx-low.cc (lynx_target_ops): Update.
3389 * nto-low.cc (nto_target_ops): Update.
3390 * win32-low.cc (win32_target_ops): Update.
3392 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3394 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3395 ops into methods of process_target.
3397 * target.h (struct process_stratum_target): Remove the target ops.
3398 (class process_target): Add the target ops.
3399 (target_stopped_by_sw_breakpoint): Update the macro.
3400 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3401 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3402 (process_target::supports_stopped_by_sw_breakpoint): Define.
3404 Update the derived classes and callers below.
3406 * linux-low.cc (linux_target_ops): Update.
3407 (linux_stopped_by_sw_breakpoint): Turn into ...
3408 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3409 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3410 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3411 * linux-low.h (class linux_process_target): Update.
3412 * lynx-low.cc (lynx_target_ops): Update.
3413 * nto-low.cc (nto_target_ops): Update.
3414 * win32-low.cc (win32_target_ops): Update.
3416 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3418 Turn process_stratum_target's insert_point and remove_point ops
3419 into methods of process_target.
3421 * target.h (struct process_stratum_target): Remove the target ops.
3422 (class process_target): Add the target ops.
3423 * target.cc (process_target::insert_point): Define.
3424 (process_target::remove_point): Define.
3426 Update the derived classes and callers below.
3428 * mem-break.cc (set_raw_breakpoint_at): Update.
3429 (delete_raw_breakpoint): Update.
3430 (uninsert_raw_breakpoint): Update.
3431 (reinsert_raw_breakpoint): Update.
3432 * linux-low.cc (linux_target_ops): Update.
3433 (linux_insert_point): Turn into ...
3434 (linux_process_target::insert_point): ... this.
3435 (linux_remove_point): Turn into ...
3436 (linux_process_target::remove_point): ... this.
3437 * linux-low.h (class linux_process_target): Update.
3438 * lynx-low.cc (lynx_target_ops): Update.
3439 * nto-low.cc (nto_target_ops): Update.
3440 (nto_insert_point): Turn into ...
3441 (nto_process_target::insert_point): ... this.
3442 (nto_remove_point): Turn into ...
3443 (nto_process_target::remove_point): ... this.
3444 * nto-low.h (class nto_process_target): Update.
3445 * win32-low.cc (win32_target_ops): Update.
3446 (win32_insert_point): Turn into ...
3447 (win32_process_target::insert_point): ... this.
3448 (win32_remove_point): Turn into ...
3449 (win32_process_target::remove_point): ... this.
3450 * win32-low.h (class win32_process_target): Update.
3452 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3454 Turn process_stratum_target's supports_z_point_type op into a
3455 method of process_target.
3457 * target.h (struct process_stratum_target): Remove the target op.
3458 (class process_target): Add the target op.
3459 * target.cc (process_target::supports_z_point_type): Define.
3461 Update the derived classes and callers below.
3463 * mem-break.cc (z_type_supported): Update.
3464 * linux-low.cc (linux_target_ops): Update.
3465 (linux_supports_z_point_type): Turn into ...
3466 (linux_process_target::supports_z_point_type): ... this.
3467 * linux-low.h (class linux_process_target): Update.
3468 * lynx-low.cc (lynx_target_ops): Update.
3469 * nto-low.cc (nto_target_ops): Update.
3470 (nto_supports_z_point_type): Turn into ...
3471 (nto_process_target::supports_z_point_type): ... this.
3472 * nto-low.h (class nto_process_target): Update.
3473 * win32-low.cc (win32_target_ops): Update.
3474 (win32_supports_z_point_type): Turn into ...
3475 (win32_process_target::supports_z_point_type): ... this.
3476 * win32-low.h (class win32_process_target): Update.
3478 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3480 Turn process_stratum_target's read_auxv op into a method of
3483 * target.h (class process_stratum_target): Remove the target op.
3484 (struct process_target): Add the target op. Also add
3485 'supports_read_auxv'.
3486 * target.cc (process_target::read_auxv): Define.
3487 (process_target::supports_read_auxv): Define.
3489 Update the derived classes and callers below.
3491 * server.cc (handle_qxfer_auxv): Update.
3492 (handle_query): Update.
3493 * linux-low.cc (linux_target_ops): Update.
3494 (linux_process_target::supports_read_auxv): Define.
3495 (linux_read_auxv): Turn into ...
3496 (linux_process_target::read_auxv): ... this.
3497 * linux-low.h (class linux_process_target): Update.
3498 * lynx-low.cc (lynx_target_ops): Update.
3499 * nto-low.cc (nto_target_ops): Update.
3500 (nto_process_target::supports_read_auxv): Define.
3501 (nto_read_auxv): Turn into ...
3502 (nto_process_target::read_auxv): ... this.
3503 * nto-low.h (class nto_process_target): Update.
3504 * win32-low.cc (win32_target_ops): Update.
3506 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3508 Turn process_stratum_target's request_interrupt op into a method of
3511 * target.h (struct process_stratum_target): Remove the target op.
3512 (class process_target): Add the target op.
3514 Update the derived classes and callers below.
3516 * remote-utils.cc (putpkt_binary_1): Update.
3517 (input_interrupt): Update.
3519 * server.cc (handle_v_requests): Update.
3520 * linux-low.cc (linux_target_ops): Update.
3521 (linux_request_interrupt): Turn into ...
3522 (linux_process_target::request_interrupt): ... this.
3523 * linux-low.h (class linux_process_target): Update.
3524 * lynx-low.cc (lynx_target_ops): Update.
3525 (lynx_request_interrupt): Turn into ...
3526 (lynx_process_target::request_interrupt): ... this.
3527 * lynx-low.h (class lynx_process_target): Update.
3528 * nto-low.cc (nto_target_ops): Update.
3529 (nto_request_interrupt): Turn into ...
3530 (nto_process_target::request_interrupt): ... this.
3531 * nto-low.h (class nto_process_target): Update.
3532 * win32-low.cc (win32_target_ops): Update.
3533 (win32_request_interrupt): Turn into ...
3534 (win32_process_target::request_interrupt): ... this.
3535 * win32-low.h (class win32_process_target): Update.
3537 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3539 Turn process_stratum_target's look_up_symbols op into a method of
3542 * target.h (struct process_stratum_target): Remove the target op.
3543 (class process_target): Add the target op.
3544 * target.cc (process_target::look_up_symbols): Define.
3546 Update the derived classes and callers below.
3548 * server.cc (handle_query): Update.
3549 * linux-low.cc (linux_target_ops): Update.
3550 (linux_look_up_symbols): Turn into ...
3551 (linux_process_target::look_up_symbols): ... this.
3552 * linux-low.h (class linux_process_target): Update.
3553 * lynx-low.cc (lynx_target_ops): Update.
3554 * nto-low.cc (nto_target_ops): Update.
3555 * win32-low.cc (win32_target_ops): Update.
3557 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3559 Turn process_stratum_target's read_memory and write_memory
3560 ops into methods of process_target.
3562 * target.h (struct process_stratum_target): Remove the target ops.
3563 (class process_target): Add the target ops.
3565 Update the derived classes and callers below.
3567 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3568 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3569 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3570 (arm_get_syscall_trapinfo): Update.
3571 * linux-cris-low.cc (cris_breakpoint_at): Update.
3572 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3573 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3574 * linux-mips-low.cc (mips_breakpoint_at): Update.
3575 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3576 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3577 * linux-sh-low.cc (sh_breakpoint_at): Update.
3578 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3579 (sparc_store_gregset_from_stack): Update.
3580 (sparc_breakpoint_at): Update.
3581 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3582 * linux-tile-low.cc (tile_breakpoint_at): Update.
3583 * linux-x86-low.cc (x86_breakpoint_at): Update.
3584 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3585 * mem-brea.cc (insert_memory_breakpoint): Update.
3586 (validate_inserted_breakpoint): Update.
3587 * target.cc (read_inferior_memory): Update.
3588 (target_write_memory): Update.
3589 * linux-low.cc (linux_target_ops): Update.
3590 (linux_read_memory): Make a wrapper around the read_memory target
3592 (linux_process_target::read_memory): Rename from linux_read_memory.
3593 (linux_write_memory): Turn into ...
3594 (linux_process_target::write_memory): ... this.
3595 * linux-low.h (class linux_process_target): Update.
3596 * lynx-low.cc (lynx_target_ops): Update.
3597 (lynx_read_memory): Turn into ...
3598 (lynx_process_target::read_memory): ... this.
3599 (lynx_write_memory): Turn into ...
3600 (lynx_process_target::write_memory): ... this.
3601 * lynx-low.h (class lynx_process_target): Update.
3602 * nto-low.cc (nto_target_ops): Update.
3603 (nto_read_memory): Turn into ...
3604 (nto_process_target::read_memory): ... this.
3605 (nto_write_memory): Turn into ...
3606 (nto_process_target::write_memory): ... this.
3607 * nto-low.h (class nto_process_target): Update.
3608 * win32-low.cc (win32_target_ops): Update.
3609 (win32_read_inferior_memory): Turn into ...
3610 (win32_process_target::read_memory): ... this.
3611 (win32_write_inferior_memory): Turn into ...
3612 (win32_process_target::write_memory): ... this.
3613 * win32-low.h (class win32_process_target): Update.
3615 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3617 Turn process_stratum_target's prepare_to_access_memory and
3618 done_accessing_memory ops into methods of process_target.
3620 * target.h (struct process_stratum_target): Remove the target ops.
3621 (class process_target): Add the target ops.
3622 * target.cc (process_target::prepare_to_access_memory): Define.
3623 (process_target::done_accessing_memory): Define.
3624 (prepare_to_access_memory): Update.
3625 (done_accessing_memory): Update.
3627 Update the derived classes and callers below.
3629 * linux-low.cc (linux_target_ops): Update.
3630 (linux_prepare_to_access_memory): Turn into ...
3631 (linux_process_target::prepare_to_access_memory): ... this.
3632 (linux_done_accessing_memory): Turn into ...
3633 (linux_process_target::done_accessing_memory): ... this.
3634 * linux-low.h (class linux_process_target): Update.
3635 * lynx-low.cc (lynx_target_ops): Update.
3636 * nto-low.cc (nto_target_ops): Update.
3637 * win32-low.cc (win32_target_ops): Update.
3639 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3641 Turn process_stratum_target's fetch_registers and store_registers
3642 ops into methods of process_target.
3644 * target.h (struct process_stratum_target): Remove the target ops.
3645 (class process_target): Add the target ops.
3646 (fetch_inferior_registers): Update the macro.
3647 (store_inferior_registers): Update the macro.
3649 Update the derived classes and callers below.
3651 * linux-low.cc (linux_target_ops): Update.
3652 (linux_fetch_registers): Turn into ...
3653 (linux_process_target::fetch_registers): ... this.
3654 (linux_store_registers): Turn into ...
3655 (linux_process_target::store_registers): ... this.
3656 * linux-low.h (class linux_process_target): Update.
3657 * lynx-low.cc (lynx_target_ops): Update.
3658 (lynx_fetch_registers): Turn into ...
3659 (lynx_process_target::fetch_registers): ... this.
3660 (lynx_store_registers): Turn into ...
3661 (lynx_process_target::store_registers): ... this.
3662 * lynx-low.h (class lynx_process_target): Update.
3663 * nto-low.cc (nto_target_ops): Update.
3664 (nto_fetch_registers): Turn into ...
3665 (nto_process_target::fetch_registers): ... this.
3666 (nto_store_registers): Turn into ...
3667 (nto_process_target::store_registers): ... this.
3668 * nto-low.h (class nto_process_target): Update.
3669 * win32-low.cc (win32_target_ops): Update.
3670 (win32_fetch_inferior_registers): Turn into ...
3671 (win32_process_target::fetch_registers): ... this.
3672 (win32_store_inferior_registers): Turn into ...
3673 (win32_process_target::store_registers): ... this.
3674 * win32-low.h (class win32_process_target): Update.
3676 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3678 Turn process_stratum_target's wait op into a method of
3681 * target.h (struct process_stratum_target): Remove the target op.
3682 (class process_target): Add the target op.
3684 Update the derived classes and callers below.
3686 * target.cc (target_wait): Update.
3687 * linux-low.cc (linux_target_ops): Update.
3688 (linux_wait): Turn into ...
3689 (linux_process_target::wait): ... this.
3690 * linux-low.h (class linux_process_target): Update.
3691 * lynx-low.cc (lynx_target_ops): Update.
3692 (lynx_wait): Turn into ...
3693 (lynx_process_target::wait): ... this.
3694 * lynx-low.h (class lynx_process_target): Update.
3695 * nto-low.cc (nto_target_ops): Update.
3696 (nto_wait): Turn into ...
3697 (nto_process_target::wait): ... this.
3698 * nto-low.h (class nto_process_target): Update.
3699 * win32-low.cc (win32_target_ops): Update.
3700 (win32_wait): Turn into ...
3701 (win32_process_target::wait): ... this.
3702 (do_initial_child_stuff): Update.
3703 * win32-low.h (class win32_process_target): Update.
3705 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3707 Turn process_stratum_target's resume op into a method of
3710 * target.h (struct process_stratum_target): Remove the target op.
3711 (class process_target): Add the target op.
3713 Update the derived classes and callers below.
3715 * server.cc (resume): Update.
3716 * target.cc (target_stop_and_wait): Update.
3717 (target_continue_no_signal): Update.
3718 (target_continue): Update.
3719 * linux-low.cc (linux_target_ops): Update.
3720 (linux_resume): Turn into ...
3721 (linux_process_target::resume): ... this.
3722 * linux-low.h (class linux_process_target): Update.
3723 * lynx-low.cc (lynx_target_ops): Update.
3724 (lynx_resume): Turn into ...
3725 (lynx_process_target::resume): ... this.
3726 * lynx-low.h (class lynx_process_target): Update.
3727 * nto-low.cc (nto_target_ops): Update.
3728 (nto_resume): Turn into ...
3729 (nto_process_target::resume): ... this.
3730 * nto-low.h (class nto_process_target): Update.
3731 * win32-low.cc (win32_target_ops): Update.
3732 (win32_resume): Turn into ...
3733 (win32_process_target::resume): ... this.
3734 (win32_process_target::detach): Update.
3735 (do_initial_child_stuff): Update.
3736 * win32-low.h (class win32_process_target): Update.
3738 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3740 Turn process_stratum_target's thread_alive op into a method of
3743 * target.h (struct process_stratum_target): Remove the target op.
3744 (class process_target): Add the target op.
3745 (mythread_alive): Update the macro.
3747 Update the derived classes and callers below.
3749 * linux-low.cc (linux_target_ops): Update.
3750 (linux_thread_alive): Turn into ...
3751 (linux_process_target::thread_alive): ... this.
3752 (wait_for_sigstop): Update.
3753 * linux-low.h (class linux_process_target): Update.
3754 * lynx-low.cc (lynx_target_ops): Update.
3755 (lynx_thread_alive): Turn into ...
3756 (lynx_process_target::thread_alive): ... this.
3757 * lynx-low.h (class lynx_process_target): Update.
3758 * nto-low.cc (nto_target_ops): Update.
3759 (nto_thread_alive): Turn into ...
3760 (nto_process_target::thread_alive): ... this.
3761 * nto-low.h (class nto_process_target): Update.
3762 * win32-low.cc (win32_target_ops): Update.
3763 (win32_thread_alive): Turn into ...
3764 (win32_process_target::thread_alive): ... this.
3765 * win32-low.h (class win32_process_target): Update.
3767 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3769 Turn process_stratum_target's join op into a method of
3772 * target.h (struct process_stratum_target): Remove the target op.
3773 (class process_target): Add the target op.
3774 (join_inferior): Update the macro.
3776 Update the derived classes and callers below.
3778 * linux-low.cc (linux_target_ops): Update.
3779 (linux_join): Turn into ...
3780 (linux_process_target::join): ... this.
3781 * linux-low.h (class linux_process_target): Update.
3782 * lynx-low.cc (lynx_target_ops): Update.
3783 (lynx_join): Turn into ...
3784 (lynx_process_target::join): ... this.
3785 * lynx-low.h (class lynx_process_target): Update.
3786 * nto-low.cc (nto_target_ops): Update.
3787 (nto_process_target::join): Define.
3788 * nto-low.h (class nto_process_target): Update.
3789 * win32-low.cc (win32_target_ops): Update.
3790 (win32_join): Turn into ...
3791 (win32_process_target::join): ... this.
3792 * win32-low.h (class win32_process_target): Update.
3794 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3796 Turn process_stratum_target's mourn op into a method of
3799 * target.h (struct process_stratum_target): Remove the target op.
3800 (class process_target): Add the target op.
3802 Update the derived classes and callers below.
3804 * target.cc (target_mourn_inferior): Update.
3805 * linux-low.cc (linux_target_ops): Update.
3806 (linux_mourn): Turn into ...
3807 (linux_process_target::mourn): ... this.
3808 (handle_extended_wait): Update.
3809 (linux_process_target::kill): Update.
3810 (linux_process_target::detach): Update.
3811 * linux-low.h (class linux_process_target): Update.
3812 * lynx-low.cc (lynx_target_ops): Update.
3813 (lynx_mourn): Turn into ...
3814 (lynx_process_target::mourn): ... this.
3815 * lynx-low.h (class lynx_process_target): Update.
3816 * nto-low.cc (nto_target_ops): Update.
3817 (nto_mourn): Turn into ...
3818 (nto_process_target::mourn): ... this.
3819 * nto-low.h (class nto_process_target): Update.
3820 * win32-low.cc (win32_target_ops): Update.
3821 (win32_mourn): Turn into ...
3822 (win32_process_target::mourn): ... this.
3823 * win32-low.h (class win32_process_target): Update.
3825 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3827 Turn process_stratum_target's detach op into a method of
3830 * target.h (struct process_stratum_target): Remove the target op.
3831 (class process_target): Add the target op.
3832 (detach_inferior): Update the macro.
3834 Update the derived classes and callers below.
3836 * linux-low.cc (linux_target_ops): Update.
3837 (linux_detach): Turn into ...
3838 (linux_process_target::detach): ... this.
3839 * linux-low.h (class linux_process_target): Update.
3840 * lynx-low.cc (lynx_target_ops): Update.
3841 (lynx_detach): Turn into ...
3842 (lynx_process_target::detach): ... this.
3843 * lynx-low.h (class lynx_process_target): Update.
3844 * nto-low.cc (nto_target_ops): Update.
3845 (nto_detach): Turn into ...
3846 (nto_process_target::detach): ... this.
3847 * nto-low.h (class nto_process_target): Update.
3848 * win32-low.cc (win32_target_ops): Update.
3849 (win32_detach): Turn into ...
3850 (win32_process_target::detach): ... this.
3851 * win32-low.h (class win32_process_target): Update.
3853 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3855 Turn process_stratum_target's kill op into a method of
3858 * target.h (struct process_stratum_target): Remove the target op.
3859 (class process_target): Add the target op.
3861 Update the derived classes and callers below.
3863 * target.cc (kill_inferior): Update.
3864 * linux-low.cc (linux_target_ops): Update.
3865 (linux_kill): Turn into ...
3866 (linux_process_target::kill): ... this.
3867 * linux-low.h (class linux_process_target): Update.
3868 * lynx-low.cc (lynx_target_ops): Update.
3869 (lynx_kill): Turn into ...
3870 (lynx_process_target::kill): ... this.
3871 * lynx-low.h (class lynx_process_target): Update.
3872 * nto-low.cc (nto_target_ops): Update.
3873 (nto_kill): Turn into ...
3874 (nto_process_target::kill): ... this.
3875 * nto-low.h (class nto_process_target): Update.
3876 * win32-low.cc (win32_target_ops): Update.
3877 (win32_kill): Turn into ...
3878 (win32_process_target::kill): ... this.
3879 * win32-low.h (class win32_process_target): Update.
3881 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3883 Turn process_stratum_target's attach op into a method of
3886 * target.h (struct process_stratum_target): Remove the target op.
3887 (class process_target): Add the target op.
3888 (myattach): Update the macro.
3890 Update the derived classes and callers below.
3892 * linux-low.cc (linux_target_ops): Update.
3893 (linux_attach): Turn into ...
3894 (linux_process_target::attach): ... this.
3895 * linux-low.h (class linux_process_target): Update.
3896 * lynx-low.cc (lynx_target_ops): Update.
3897 (lynx_attach): Turn into ...
3898 (lynx_process_target::attach): ... this.
3899 * lynx-low.h (class lynx_process_target): Update.
3900 * nto-low.cc (nto_target_ops): Update.
3901 (nto_attach): Turn into ...
3902 (nto_process_target::attach): ... this.
3903 * nto-low.h (class nto_process_target): Update.
3904 * win32-low.cc (win32_target_ops): Update.
3905 (win32_attach): Turn into ...
3906 (win32_process_target::attach): ... this.
3907 * win32-low.h (class win32_process_target): Update.
3909 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3911 Turn process_stratum_target's post_create_inferior op into a method
3914 * target.h (struct process_stratum_target): Remove the target op.
3915 (class process_target): Add the target op.
3916 (target_post_create_inferior): Update the macro.
3917 * target.cc (process_target::post_create_inferior): Define.
3919 Update the derived classes and callers below.
3921 * linux-low.cc (linux_target_ops): Update.
3922 (linux_post_create_inferior): Turn into ...
3923 (linux_process_target::post_create_inferior): ... this.
3924 * linux-low.h (class linux_process_target): Update.
3925 * lynx-low.cc (lynx_target_ops): Update.
3926 * nto-low.cc (nto_target_ops): Update.
3927 * win32-low.cc (win32_target_ops): Update.
3929 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3931 Turn process_stratum_target's create_inferior op into a method of
3934 * target.h (struct process_stratum_target): Remove the target op.
3935 (class process_target): Add the target op.
3936 (create_inferior): Rename the macro to ...
3937 (target_create_inferior): ... this.
3939 Update the derived classes and callers below.
3941 * server.cc (handle_v_run): Update.
3942 (captured_main): Update.
3943 (process_serial_event): Update.
3944 * linux-low.cc (linux_target_ops): Update.
3945 (linux_create_inferior): Turn into ...
3946 (linux_process_target::create_inferior): ... this.
3947 * linux-low.h (class linux_process_target): Update.
3948 * lynx-low.cc (lynx_target_ops): Update.
3949 (lynx_create_inferior): Turn into ...
3950 (lynx_process_target::create_inferior): ... this.
3951 * lynx-low.h (class lynx_process_target): Update.
3952 * nto-low.cc (nto_target_ops): Update.
3953 (nto_create_inferior): Turn into ...
3954 (nto_process_target::create_inferior): ... this.
3955 * nto-low.h (class nto_process_target): Update.
3956 * win32-low.cc (win32_target_ops): Update.
3957 (win32_create_inferior): Turn into ...
3958 (win32_process_target::create_inferior): ... this.
3959 * win32-low.h (class win32_process_target): Update.
3961 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3963 * target.h (class process_target): New class definition.
3964 (struct process_stratum_target) <pt>: New field with type
3966 * linux-low.h (class linux_process_target): Define as a derived
3967 class of 'process_target'.
3968 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3970 * lynx-low.h (class lynx_process_target): Define as a derived
3971 class of 'process_target'.
3972 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3974 * nto-low.h (class nto_process_target): Define as a derived
3975 class of 'process_target'.
3976 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3978 * win32-low.h (class win32_process_target): Define as a derived
3979 class of 'process_target'.
3980 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3983 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3985 * configure: Regenerate.
3987 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
3988 Andrew Burgess <andrew.burgess@embecosm.com>
3990 * linux-riscv-low.cc: New file.
3991 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3992 and nat/riscv-linux-tdesc.c.
3993 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3994 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3997 2020-02-14 Tom Tromey <tom@tromey.com>
3999 * acinclude.m4: Don't include acx_configure_dir.m4.
4000 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4001 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4002 (all, install-only, uninstall, clean-info, clean)
4003 (maintainer-clean): Don't recurse.
4004 (subdir_do, all-lib): Remove.
4005 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4007 (generated_files): Update.
4008 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4009 * configure: Rebuild.
4010 * configure.ac: Don't configure gnulib or libiberty.
4013 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4015 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4016 preparing the command line for CreateProcess.
4017 (win32_create_inferior): Reflect the program name in debugging
4018 output that shows the process and its command line.
4020 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4022 * Makefile.in: Rename source files from .c to .cc.
4023 * %.c: Rename to %.cc.
4024 * configure.ac: Rename server.c to server.cc.
4025 * configure: Re-generate.
4027 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4029 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4031 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4033 * win32-low.c (win32_create_inferior): Set signal_pid.
4035 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4036 Pedro Alves <palves@redhat.com>
4038 Skip building gdbserver in a cross-configuration.
4039 * configure.srv: Set $gdbserver_host depending on whether $target
4040 is $host. Use $gdbserver_host instead of $host.
4042 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4044 * configure: Re-generate.
4046 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4048 * configure: Re-generate.
4050 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4052 * acinclude.m4: Update warning.m4 path.
4054 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4056 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4057 (handle_exception): Set siginfo_er.
4058 (win32_xfer_siginfo): New function.
4060 2020-02-07 Tom Tromey <tom@tromey.com>
4061 Pedro Alves <palves@redhat.com>
4063 * README: Update build documentation.
4064 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4066 * configure.ac: Update paths.
4067 * configure: Rebuild.
4068 * acinclude.m4: Update paths.
4069 * Makefile.in: Update include paths.
4070 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4071 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4072 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4073 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4074 (%-generated.c): Update paths.
4075 * Move entire directory from ../gdb/gdbserver.
4077 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4079 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4081 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4083 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4084 assignment instead of srv_linux_obj.
4086 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4088 * server.c (handle_qxfer_libraries): Write segment-address with
4091 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4093 * Makefile.in (install-strip): New target.
4094 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4095 * aclocal.m4: Regenerate.
4096 * configure: Regenerate.
4097 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4099 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4101 * Makefile.in (SFILES): Adjust paths to point to real files.
4102 (OBS): Move waitstatus.o to target/waitstatus.o.
4103 (TAGS): Transform paths appropriately.
4105 (nat/%.o): ... this pattern rule.
4107 (target/%.o): ... this pattern rule.
4108 * configure.srv: Adjust paths throughout to include nat/ prefix
4109 with the revant files.
4110 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4111 * configure: Regenerate.
4113 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4115 * Makefile.in (TAGS): Remove config files from the recipe.
4117 2020-01-14 Tom Tromey <tom@tromey.com>
4119 * configure: Rebuild.
4120 * configure.ac: Remove any checks that were added to common.m4.
4121 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4124 2020-01-14 Tom Tromey <tom@tromey.com>
4126 * server.h: Include config.h.
4127 * gdbreplay.c: Include config.h.
4128 * configure: Rebuild.
4129 * configure.ac: Don't source common.host.
4130 * acinclude.m4: Update path.
4131 * Makefile.in (INCSUPPORT): New variable.
4132 (INCLUDE_CFLAGS): Add INCSUPPORT.
4133 (SFILES): Update paths.
4134 (version-generated.c): Update path to create-version.sh.
4135 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4137 2020-01-14 Tom Tromey <tom@tromey.com>
4139 * configure.ac (LIBS): Use WIN32APILIBS.
4140 (USE_WIN32API): Don't define.
4141 * configure: Rebuild.
4143 2020-01-14 Tom Tromey <tom@tromey.com>
4145 * configure: Rebuild.
4147 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4149 * Makefile.in (%-generated.c): Remove rule for files from
4152 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4154 * configure: Re-generate.
4156 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4158 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4160 * tracepoint.c (stop_tracing, flush_trace_buffer,
4161 about_to_request_buffer_space, get_trace_state_variable_value,
4162 set_trace_state_variable_value, gdb_collect): Add declaration.
4164 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4166 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4167 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4168 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4169 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4170 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4173 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4175 * inferiors.c: Include gdbsupport/common-inferior.h.
4177 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4179 * hostio-errno.c: Include hostio.h.
4181 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4183 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4186 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4188 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4189 * linux-arm-tdesc.h: Include arch/arm.h.
4191 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4193 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4195 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4197 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4198 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4200 2020-01-10 Pedro Alves <palves@redhat.com>
4202 * fork-child.c (post_fork_inferior): Pass target down to
4204 * inferiors.c (switch_to_thread): Add process_stratum_target
4206 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4207 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4208 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4209 * remote-utils.c (prepare_resume_reply): Pass the target to
4211 * target.c (the_target): Now a process_stratum_target.
4212 (done_accessing_memory): Pass the target to switch_to_thread.
4213 (set_target_ops): Ajust to use process_stratum_target.
4214 * target.h (struct target_ops): Rename to ...
4215 (struct process_stratum_target): ... this.
4216 (the_target, set_target_ops): Adjust.
4217 (prepare_to_access_memory): Adjust comment.
4218 * win32-low.c (child_xfer_memory): Adjust to use
4219 process_stratum_target.
4220 (win32_target_ops): Now a process_stratum_target.
4222 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4223 Pedro Alves <palves@redhat.com>
4225 * win32-low.c (get_child_debug_event): Extract the fatal exception
4226 from the exit status and convert to the equivalent Posix signal
4228 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4229 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4231 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4233 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4235 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4237 * server.c (gdbserver_version): Change copyright year to 2020.
4238 * gdbreplay.c (gdbreplay_version): Likewise.
4240 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4242 * configure: Regenerate.
4243 * configure.ac: Quote variable arguments of test.
4245 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4247 * Makefile.in: Fix build with GNU Make 3.81
4249 2019-12-16 Tom Tromey <tromey@adacore.com>
4251 * server.c (get_exec_file): Constify result.
4253 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4255 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4256 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4257 * config.in: Regenerate.
4258 * configure: Regenerate.
4259 * configure.ac: Don't check for strerror.
4260 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4261 Call safe_strerror instead of strerror.
4262 * server.h (strerror): Remove this now-unnecessary declaration.
4263 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4265 (gdb_agent_helper_thread): Likewise.
4266 * utils.c (perror_with_name): Likewise.
4268 2019-11-26 Tom Tromey <tom@tromey.com>
4270 * configure, config.in: Rebuild.
4272 2019-11-26 Tom Tromey <tom@tromey.com>
4274 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4275 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4277 * configure, config.in: Rebuild.
4279 2019-11-26 Tom Tromey <tom@tromey.com>
4281 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4282 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4283 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4284 * acinclude.m4: Include ax_pthread.m4.
4285 * config.in, configure: Rebuild.
4287 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4289 * debug.c (debug_set_output): Call safe_strerror instead of
4291 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4292 (linux_kill_one_lwp): Likewise.
4293 (linux_detach_one_lwp): Likewise.
4294 (linux_wait_for_event_filtered): Likewise.
4295 (store_register): Likewise.
4296 * lynx-low.c (lynx_attach): Likewise.
4297 * mem-break.c (insert_memory_breakpoint): Likewise.
4298 (remove_memory_breakpoint): Likewise.
4299 (delete_fast_tracepoint_jump): Likewise.
4300 (set_fast_tracepoint_jump): Likewise.
4301 (uninsert_fast_tracepoint_jumps_at): Likewise.
4302 (reinsert_fast_tracepoint_jumps_at): Likewise.
4303 * nto-low.c (nto_xfer_memory): Likewise.
4304 (nto_resume): Likewise.
4306 2019-11-20 Luis Machado <luis.machado@linaro.org>
4308 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4309 instead of register count.
4310 * tdesc.c (tdesc_contains_feature): New function.
4311 * tdesc.h (tdesc_contains_feature): New prototype.
4313 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4315 * Makefile.in: Add safe-strerror.c.
4316 * configure: Regenerate.
4317 * configure.ac: Don't source common.host.
4319 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4321 * config.in: Regenerate.
4322 * configure: Regenerate.
4324 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4326 * ax.c (ax_printf): Handle size_t_arg.
4328 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4330 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4331 * mi/mi-main.c (output_cores): Likewise.
4332 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4333 (linux_xfer_osdata_modules): Likewise.
4334 * remote.c (register_remote_support_xml): Likewise.
4335 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4336 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4338 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4340 * configure: Regenerate.
4341 * configure.ac: Remove check for strerror_r.
4343 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4345 * config.in: Regenerate.
4346 * configure: Regenerate.
4347 * configure.ac: Also check for strerror_r.
4349 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4351 * ax.h (debug_agent): Remove duplicate declaration.
4353 2019-10-26 Tom de Vries <tdevries@suse.de>
4355 * linux-aarch64-low.c: Fix typos in comments.
4356 * linux-arm-low.c: Same.
4357 * linux-low.c: Same.
4358 * linux-ppc-low.c: Same.
4359 * proc-service.c: Same.
4362 * tracepoint.c: Same.
4363 * win32-low.c: Same.
4365 2019-10-25 Tom Tromey <tromey@adacore.com>
4367 * utils.c (xstrdup): Remove.
4369 2019-10-23 Tom Tromey <tom@tromey.com>
4371 * configure, config.in: Rebuild.
4373 2019-10-23 Tom Tromey <tom@tromey.com>
4375 * configure: Rebuild.
4376 * acinclude.m4: Use m4_include, not sinclude.
4378 2019-10-17 Tom Tromey <tromey@adacore.com>
4380 * configure: Rebuild.
4381 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4382 in AC_CONFIG_FILES invocation.
4383 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4386 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4388 * server.c: Include xml-builtin.h.
4389 (get_xml_features): Don't declare xml_builtins here.
4391 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4393 * Makefile.in: Remove references to vec-ipa.o.
4395 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4397 * Makefile.in: Remove references to vec.c.
4399 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4401 * server.c (server_waiting): Change to bool.
4402 (extended_protocol): Likewise.
4403 (response_needed): Likewise.
4404 (exit_requested): Likewise.
4405 (run_once): Likewise.
4406 (report_no_resumed): Likewise.
4407 (non_stop): Likewise.
4408 (disable_packet_vCont): Likewise.
4409 (disable_packet_Tthread): Likewise.
4410 (disable_packet_qC): Likewise.
4411 (disable_packet_qfThreadInfo): Likewise.
4412 (handle_general_set): Update.
4413 (handle_detach): Update.
4414 (handle_monitor_command): Update.
4415 (handle_query): Update.
4416 (captured_main): Update.
4417 (process_serial_event): Update.
4418 * server.h (server_waiting): Change to bool.
4419 (disable_packet_vCont): Likewise.
4420 (disable_packet_Tthread): Likewise.
4421 (disable_packet_qC): Likewise.
4422 (disable_packet_qfThreadInfo): Likewise.
4423 (run_once): Likewise.
4424 (non_stop): Likewise.
4425 * target.c (target_stop_and_wait): Update.
4427 2019-10-02 Tom Tromey <tromey@adacore.com>
4429 * Makefile.in (SFILES): Add common-inferior.c.
4430 (OBS): Add common-inferior.o.
4431 * server.c (startup_with_shell): Don't define.
4433 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4435 * linux-low.c (linux_low_read_btrace): Update for change to
4438 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4440 * debug.c (debug_threads): Remove comment in favor of the header.
4441 * debug.h (using_threads): Add declaration.
4442 (debug_threads): Add comment.
4443 * linux-aarch64-low.c: Include debug.h and remove declaration of
4445 * nto-low.c: Likewise.
4446 * remote-utils.c: Likewise.
4447 * thread-db.c: Likewise.
4449 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4451 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4452 and powerpc-cell64l-ipa.o.
4453 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4454 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4455 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4458 * spu-low.c: Remove file.
4460 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4461 (parse_spufs_run): Remove.
4462 (ppc_get_pc): Remove Cell/B.E. support.
4463 (ppc_set_pc): Likewise.
4464 (ppc_breakpoint_at): Likewise.
4465 (ppc_arch_setup): Likewise.
4466 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4467 tdesc_powerpc_cell32l.
4468 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4469 or init_registers_powerpc_cell32l.
4470 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4471 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4472 or init_registers_powerpc_cell32l.
4473 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4474 (init_registers_powerpc_cell32l): Remove prototype.
4475 (init_registers_powerpc_cell64l): Likewise.
4477 * target.h (struct target_ops): Remove qxfer_spu member.
4478 * server.c (handle_qxfer_spu): Remove.
4479 (qxfer_packets): Remove entry for "spu".
4480 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4481 * linux-low.c (SPUFS_MAGIC): Remove.
4482 (spu_enumerate_spu_ids): Remove.
4483 (linux_qxfer_spu): Remove.
4484 (linux_target_ops): Remove qxfer_spu member.
4485 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4486 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4487 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4489 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4491 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4492 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4493 * config.in: Regenerate.
4494 * configure: Regenerate.
4496 2019-08-15 Tom Tromey <tromey@adacore.com>
4498 * target.c (target_write_memory): Use gdb::byte_vector.
4500 2019-08-15 Tom Tromey <tromey@adacore.com>
4502 * tracepoint.c (write_inferior_data_pointer)
4503 (write_inferior_integer, write_inferior_int8)
4504 (write_inferior_uinteger, m_tracepoint_action_download)
4505 (r_tracepoint_action_download, x_tracepoint_action_download)
4506 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4507 (download_agent_expr, download_tracepoint_1)
4508 (download_trace_state_variables, upload_fast_traceframes): Update.
4509 * server.c (gdb_write_memory): Update.
4510 * remote-utils.c (relocate_instruction): Update.
4511 * proc-service.c (ps_pdwrite): Update.
4512 * mem-break.c (remove_memory_breakpoint)
4513 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4514 (uninsert_fast_tracepoint_jumps_at)
4515 (reinsert_fast_tracepoint_jumps_at): Update.
4516 * linux-x86-low.c (append_insns)
4517 (i386_install_fast_tracepoint_jump_pad)
4518 (amd64_write_goto_address, i386_write_goto_address): Update.
4519 * linux-s390-low.c (append_insns, s390_write_goto_address):
4521 * linux-ppc-low.c (ppc_relocate_instruction)
4522 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4523 (ppc_write_goto_address): Update.
4524 * linux-aarch64-low.c (append_insns): Update.
4525 * target.h (struct target_ops): Update.
4526 (write_inferior_memory): Don't declare.
4527 * target.c (target_write_memory): Rename from
4528 write_inferior_memory. Remove old target_write_memory.
4530 2019-08-15 Tom Tromey <tromey@adacore.com>
4532 * target.c (write_inferior_memory): Use std::vector.
4534 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4537 * configure.ac: Drop enable-libmcheck support.
4538 * configure, config.in: Rebuild.
4539 * acinclude.m4: Don't include it.
4541 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4543 * configure.srv: Remove Arm xml files.
4545 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4547 * configure.srv: Add new files. Remove xml generated files.
4548 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4550 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4551 * linux-aarch32-tdesc.c: New file.
4552 * linux-aarch32-tdesc.h: New file.
4553 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4554 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4555 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4556 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4557 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4558 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4559 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4560 (arm_read_description): Call arm_linux_read_description.
4561 (initialize_low_arch): Don't init registers.
4562 * linux-arm-tdesc.c: New file.
4563 * linux-arm-tdesc.h: New file.
4565 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4567 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4568 Move counter inside for.
4569 (arm_read_description): Check ptrace earlier.
4570 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4572 2019-07-09 Tom Tromey <tom@tromey.com>
4574 * configure: Rebuild.
4575 * configure.ac: Change common to gdbsupport.
4576 * acinclude.m4: Change common to gdbsupport.
4577 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4578 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4579 common to gdbsupport.
4580 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4581 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4582 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4583 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4584 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4585 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4586 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4587 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4588 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4589 common to gdbsupport.
4591 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4593 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4595 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4597 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4599 * configure.srv: Remove legacy xml.
4600 * linux-aarch64-low.c (initialize_low_arch): Remove
4601 initialize_low_tdesc call.
4602 * linux-aarch64-tdesc-selftest.c: Remove file.
4603 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4604 * linux-x86-low.c (initialize_low_arch): Remove
4605 initialize_low_tdesc call.
4606 * linux-x86-tdesc-selftest.c: Remove file.
4607 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4609 2019-06-20 Tom de Vries <tdevries@suse.de>
4611 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4612 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4614 2019-06-19 Tom de Vries <tdevries@suse.de>
4616 * debug.h (debug_write): Change return type to ssize_t.
4617 * debug.c (debug_write): Same.
4619 2019-06-14 Tom Tromey <tom@tromey.com>
4621 * configure.ac: Use new path to gnulib.
4622 * configure: Rebuild.
4623 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4626 2019-06-11 Tom Tromey <tom@tromey.com>
4628 * Makefile.in (SFILES): Add alloc.c.
4630 (IPA_OBJS): Add alloc-ipa.o.
4631 (alloc-ipa.o): New target.
4632 (%.o: ../%.c): New pattern rule.
4634 2019-06-10 Tom Tromey <tromey@adacore.com>
4636 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4637 end warning with a newline.
4638 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4640 * thread-db.c (attach_thread): Don't end warning with a newline.
4641 (thread_db_notice_clone): Likewise.
4642 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4644 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4645 end warning with a newline.
4647 2019-06-04 Pedro Alves <palves@redhat.com>
4649 * server.c (captured_main): Use make_unique_xstrdup.
4651 2019-06-02 Tom Tromey <tom@tromey.com>
4653 * gdbreplay.c (fromhex): Remove.
4654 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4656 2019-05-29 Tom Tromey <tromey@adacore.com>
4658 * configure: Rebuild.
4660 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4662 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4663 sign extension code on 32-bit builds.
4665 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4668 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4670 2019-04-19 Tom Tromey <tom@tromey.com>
4672 * server.c (struct vstop_notif): Derive from notif_event.
4674 (queue_stop_reply): Update.
4675 (remove_all_on_match_ptid): Change type. Rewrite.
4676 (discard_queued_stop_replies): Rewrite.
4677 (in_queued_stop_replies_ptid): Change type.
4678 (in_queued_stop_replies): Rewrite.
4679 (notif_stop): Update.
4680 (queue_stop_reply_callback): Update.
4681 (captured_main): Don't call initialize_notif.
4682 (push_stop_notification): Update.
4683 * notif.c (notif_write_event, handle_notif_ack)
4684 (notif_event_enque, notif_push): Update.
4685 (notif_event_xfree, initialize_notif): Remove.
4686 * notif.h (struct notif_event): Include <list>, not
4688 (struct notif_server) <queue>: Now a std::list.
4689 (notif_event_p): Remove typedef.
4690 (initialize_notif): Don't declare.
4691 (struct notif_event): Add virtual destructor.
4693 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4695 * ax.c (ax_vdebug): Call debug_printf.
4696 * debug.c (debug_write): New function.
4697 * debug.h (debug_write): New declaration.
4698 * linux-low.c (sigchld_handler): Call debug_write.
4700 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4702 * debug.c (debug_set_output): New function.
4703 (debug_vprintf): Send output to debug_file.
4704 (debug_flush): Likewise.
4705 * debug.h (debug_set_output): New declaration.
4706 * server.c (handle_monitor_command): Add debug-file option.
4707 (captured_main): Likewise.
4709 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4711 * debug.c (remote_debug): Add definition.
4712 * debug.h (remote_debug): Add declaration.
4713 * hostio.c (remote_debug): Remove declaration.
4714 * remote-utils.c (struct ui_file): Likewise.
4715 (remote_debug): Likewise.
4716 * remote-utils.h (remote_debug): Likewise,
4717 * server.c (remote_debug): Remove definition.
4719 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4721 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4722 when using a 64-bit gdbserver.
4724 2019-04-09 Tom Tromey <tromey@adacore.com>
4726 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4728 2019-04-08 Tom Tromey <tom@tromey.com>
4730 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4732 (linux_resume_one_lwp): Likewise.
4734 2019-04-08 Tom Tromey <tom@tromey.com>
4736 * gdbreplay.c: Update.
4737 * linux-low.c: Update.
4740 2019-04-08 Tom Tromey <tom@tromey.com>
4742 * server.c: Use C++ exception handling.
4743 * linux-low.c: Use C++ exception handling.
4744 * gdbreplay.c: Use C++ exception handling.
4746 2019-04-08 Tom Tromey <tom@tromey.com>
4748 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4749 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4750 (captured_main, main): Update.
4751 * gdbreplay.c (main): Update.
4753 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4755 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4756 value in argument pointer, return 1 if the entry is found and 0
4757 otherwise. Move comment.
4758 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4759 * linux-low.h (linux_get_auxv): Declare.
4760 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4762 2019-04-05 Tom Tromey <tromey@adacore.com>
4764 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4767 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4769 * linux-low.c (AT_HWCAP2): Add define if not already included.
4771 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4773 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4774 (aarch64_arch_setup): Call linux_get_hwcap.
4775 * linux-arm-low.c (arm_get_hwcap): Remove function.
4776 (arm_read_description): Call linux_get_hwcap.
4777 * linux-low.c (linux_get_auxv): New function.
4778 (linux_get_hwcap): Likewise.
4779 (linux_get_hwcap2): Likewise.
4780 * linux-low.h (linux_get_hwcap): New declaration.
4781 (linux_get_hwcap2): Likewise.
4782 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4783 (ppc_arch_setup): Call linux_get_hwcap.
4784 * linux-s390-low.c (s390_get_hwcap): Remove function.
4785 (s390_arch_setup): Call linux_get_hwcap.
4787 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4788 Jiong Wang <jiong.wang@arm.com>
4790 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4791 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4793 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4795 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4796 Jiong Wang <jiong.wang@arm.com>
4798 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4799 (aarch64_get_hwcap): New function.
4800 (aarch64_arch_setup): Read APIA hwcap.
4802 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4803 Jiong Wang <jiong.wang@arm.com>
4805 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4806 (initialize_low_tracepoint): Likewise.
4807 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4808 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4809 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4810 (aarch64_linux_read_description): Likewise.
4811 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4813 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4815 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4816 i386_create_target_description for 'segments' parameter.
4817 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4818 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4819 * win32-i386-low.c (i386_arch_setup): Likewise.
4821 2019-03-12 Tom Tromey <tromey@adacore.com>
4823 * linux-low.c (iterate_over_lwps): Update.
4825 2019-03-06 Tom Tromey <tom@tromey.com>
4827 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4828 (captured_main): Use SCOPE_EXIT.
4830 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4832 * configure.srv: Use '$enable_unittest' instead of '$development'
4833 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4836 2019-02-27 Tom Tromey <tromey@adacore.com>
4838 * gdbreplay.c (logchar): Handle \r\n.
4840 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4842 * linux-low.c (linux_attach): Add process before lwp.
4843 * server.c (attach_inferior): Check if already attached.
4845 2019-02-07 Tom Tromey <tom@tromey.com>
4847 * x86-tdesc.h: Rename include guard.
4848 * x86-low.h: Add include guard.
4849 * wincecompat.h: Rename include guard.
4850 * win32-low.h: Add include guard.
4851 * utils.h: Rename include guard.
4852 * tracepoint.h: Rename include guard.
4853 * tdesc.h: Rename include guard.
4854 * target.h: Rename include guard.
4855 * server.h: Rename include guard.
4856 * remote-utils.h: Rename include guard.
4857 * regcache.h: Rename include guard.
4858 * nto-low.h: Rename include guard.
4859 * notif.h: Add include guard.
4860 * mem-break.h: Rename include guard.
4861 * lynx-low.h: Add include guard.
4862 * linux-x86-tdesc.h: Add include guard.
4863 * linux-s390-tdesc.h: Add include guard.
4864 * linux-ppc-tdesc-init.h: Add include guard.
4865 * linux-low.h: Add include guard.
4866 * linux-aarch64-tdesc.h: Add include guard.
4867 * linux-aarch32-low.h: Add include guard.
4868 * inferiors.h: Rename include guard.
4869 * i387-fp.h: Rename include guard.
4870 * hostio.h: Rename include guard.
4871 * gdbthread.h: Rename include guard.
4872 * gdb_proc_service.h: Rename include guard.
4873 * event-loop.h: Rename include guard.
4874 * dll.h: Rename include guard.
4875 * debug.h: Rename include guard.
4876 * ax.h: Rename include guard.
4878 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4881 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4882 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4884 2019-01-25 Tom Tromey <tom@tromey.com>
4886 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4888 2019-01-25 Tom Tromey <tom@tromey.com>
4890 * win32-low.c: Fix common/ includes.
4891 * win32-i386-low.c: Fix common/ includes.
4892 * tracepoint.c: Fix common/ includes.
4893 * thread-db.c: Fix common/ includes.
4894 * target.h: Fix common/ includes.
4895 * symbol.c: Fix common/ includes.
4896 * spu-low.c: Fix common/ includes.
4897 * server.h: Fix common/ includes.
4898 * server.c: Fix common/ includes.
4899 * remote-utils.c: Fix common/ includes.
4900 * regcache.h: Fix common/ includes.
4901 * regcache.c: Fix common/ includes.
4902 * nto-x86-low.c: Fix common/ includes.
4903 * notif.h: Fix common/ includes.
4904 * mem-break.h: Fix common/ includes.
4905 * lynx-low.c: Fix common/ includes.
4906 * lynx-i386-low.c: Fix common/ includes.
4907 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4908 * linux-x86-low.c: Fix common/ includes.
4909 * linux-low.c: Fix common/ includes.
4910 * inferiors.h: Fix common/ includes.
4911 * i387-fp.c: Fix common/ includes.
4912 * hostio.c: Fix common/ includes.
4913 * hostio-errno.c: Fix common/ includes.
4914 * gdbthread.h: Fix common/ includes.
4915 * gdbreplay.c: Fix common/ includes.
4916 * fork-child.c: Fix common/ includes.
4917 * event-loop.c: Fix common/ includes.
4919 (enum gdb_agent_op): Fix common/ includes.
4921 2019-01-21 Tom Tromey <tom@tromey.com>
4923 * tracepoint.c: Fix includes.
4924 * remote-utils.c: Fix includes.
4925 * linux-x86-low.c: Fix includes.
4927 2019-01-01 Joel Brobecker <brobecker@adacore.com>
4929 * gdbreplay.c (gdbreplay_version): Update copyright year in
4931 * server.c (gdbserver_version): Likewise.
4933 2018-12-05 Alan Hayward <alan.hayward@arm.com>
4935 * linux-low.c (add_lwp): Switch ordering.
4937 2018-11-29 Tom Tromey <tom@tromey.com>
4939 * win32-low.c (win32_join): Take pid, not process.
4940 * target.h (struct target_ops) <join>: Change argument type.
4941 (join_inferior): Change argument name.
4942 * spu-low.c (spu_join): Take pid, not process.
4943 * server.c (handle_detach): Preserve pid before destroying
4945 * lynx-low.c (lynx_join): Take pid, not process.
4946 * linux-low.c (linux_join): Take pid, not process.
4948 2018-11-23 Alan Hayward <alan.hayward@arm.com>
4950 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4951 (aarch64_cannot_fetch_register): Likewise.
4952 (struct linux_target_ops): Update references.
4954 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4956 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4958 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4960 * configure.srv (ipa_ppc_linux_regobj): Add
4961 powerpc-isa207-htm-vsx32l-ipa.o and
4962 powerpc-isa207-htm-vsx64l-ipa.o.
4963 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4964 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4965 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4966 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4967 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4968 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4969 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4970 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4971 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4972 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4973 (init_registers_powerpc_isa207_htm_vsx32l)
4974 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4975 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4976 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4977 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4978 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4979 (ppc_store_tm_ctarregset): New functions.
4980 (ppc_regsets): Add entries for HTM regsets.
4981 (ppc_arch_setup): Set htm in features struct when needed. Set
4982 sizes for the HTM regsets.
4983 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4984 (initialize_low_arch): Call
4985 init_registers_powerpc_isa207_htm_vsx32l and
4986 init_registers_powerpc_isa207_htm_vsx64l.
4987 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4988 PPC_TDESC_ISA207_HTM_VSX.
4989 (initialize_low_tracepoint): Call
4990 init_registers_powerpc_isa207_htm_vsx32l and
4991 init_registers_powerpc_isa207_htm_vsx64l.
4993 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4995 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4996 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4997 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4998 (ppc_store_pmuregset): New functions.
4999 (ppc_regsets): Add entries for ebb and pmu regsets.
5000 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5001 pmu regsets are available. Set sizes for these regsets.
5003 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5005 * configure.srv (ipa_ppc_linux_regobj): Add
5006 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5007 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5008 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5009 rs6000/powerpc-isa207-vsx32l.xml, and
5010 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5011 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5012 <PPC_TDESC_ISA207_VSX>: New enum value.
5013 (init_registers_powerpc_isa207_vsx32l): Declare.
5014 (init_registers_powerpc_isa207_vsx64l): Declare.
5015 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5016 (ppc_store_tarregset): New function.
5017 (ppc_regsets): Add entry for the TAR regset.
5018 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5019 size for the TAR regsets.
5020 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5021 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5022 and init_registers_powerpc_isa207_vsx64l.
5023 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5024 (initialize_low_tracepoint): Call
5025 init_registers_powerpc_isa207_vsx32l and
5026 init_registers_powerpc_isa207_vsx64l.
5028 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5029 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5031 * configure.srv (ipa_ppc_linux_regobj): Add
5032 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5033 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5034 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5035 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5036 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5037 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5038 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5039 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5040 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5041 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5042 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5043 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5044 (ppc_hwcap): Add comment.
5045 (ppc_hwcap2): New global.
5046 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5047 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5048 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5049 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5050 when needed. Set sizes for the the DSCR and PPR regsets.
5051 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5052 (initialize_low_arch): Call
5053 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5054 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5055 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5056 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5057 (initialize_low_tracepoint): Call
5058 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5059 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5061 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5063 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5065 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5066 Simon Marchi <simark@simark.ca>
5068 * acinclude.m4: Include "../selftest.m4".
5069 * configure: Regenerate.
5070 * configure.ac: Use "GDB_AC_SELFTEST".
5071 * configure.srv: Use "$enable_unittests" instead of
5072 "$development" when checking whether unit tests have been
5074 * server.c (captured_main): Update message informing that
5075 selftests have been disabled.
5077 2018-10-04 Tom Tromey <tom@tromey.com>
5079 * configure: Rebuild.
5081 2018-10-04 Tom Tromey <tom@tromey.com>
5083 * server.c (handle_status): Rename inner "thread".
5084 (process_serial_event): Declare "res" in 'm' case.
5085 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5086 (iterate_over_lwps): Rename inner "thread".
5087 (linux_qxfer_libraries_svr4): Rename inner "len".
5088 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5090 2018-10-01 Gary Benson <gbenson@redhat.com>
5092 * gdb_proc_service.h: Moved common code to
5093 common/gdb_proc_service.h.
5095 2018-10-01 Gary Benson <gbenson@redhat.com>
5097 * gdb_proc_service.h: Synchronize comments and whitespace with
5098 GDB's version of this file.
5100 2018-09-25 Tom Tromey <tom@tromey.com>
5102 * configure: Rebuild.
5103 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5105 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5107 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5108 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5109 ($(IPA_LIB)): Sort IPA_OBJS.
5111 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5113 * Makefile.in: Remove references to $(ADD_DEPS).
5115 2018-09-16 Tom Tromey <tom@tromey.com>
5117 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5119 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5122 2018-09-05 Tom Tromey <tom@tromey.com>
5124 * configure: Rebuild.
5126 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5129 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5131 2018-08-27 Tom Tromey <tom@tromey.com>
5134 * configure: Rebuild.
5136 2018-08-27 Tom Tromey <tom@tromey.com>
5138 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5139 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5140 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5141 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5142 (s390x_emit_stack_adjust): Add casts to unsigned char.
5144 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5148 * server.h (struct client_state) <disable_randomization>:
5151 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5153 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5155 (mips_supply_ptrace_register): Likewise.
5157 2018-07-22 Tom Tromey <tom@tromey.com>
5159 * configure: Rebuild.
5161 2018-07-22 Tom Tromey <tom@tromey.com>
5163 * win32-low.c (win32_create_inferior): Remove unused variables.
5164 * gdbreplay.c (remote_open): Remove unused variable.
5165 * remote-utils.c (remote_prepare): Remove unused variable.
5166 * x86-tdesc.h (X86_TDESC_H): Define.
5167 (amd64_expedite_regs): Define conditionally.
5168 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5169 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5170 * remote-utils.c (readchar): Remove unused variable.
5172 2018-07-13 Pedro Alves <palves@redhat.com>
5174 * linux-low.c (linux_kill): Change parameter to process_info
5175 pointer instead of pid. Adjust.
5176 * lynx-low.c (lynx_kill): Likewise.
5177 * nto-low.c (nto_kill): Likewise.
5178 * spu-low.c (spu_kill): Likewise.
5179 * win32-low.c (win32_kill): Likewise.
5180 * server.c (handle_v_kill, kill_inferior_callback)
5181 (detach_or_kill_for_exit): Adjust.
5182 * target.c (kill_inferior): Change parameter to process_info
5183 pointer instead of pid. Adjust.
5184 * target.h (struct target_ops) <kill>: Change parameter to
5185 process_info pointer instead of pid. Adjust all implementations
5187 (kill_inferior): Likewise.
5189 2018-07-13 Pedro Alves <palves@redhat.com>
5191 * linux-low.c (linux_detach, linux_join): Change parameter to
5192 process_info pointer instead of pid. Adjust.
5193 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5194 * nto-low.c (nto_detach): Likewise.
5195 * spu-low.c (spu_detach, spu_join): Likewise.
5196 * win32-low.c (win32_detach, win32_join): Likewise.
5197 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5198 * target.h (struct target_ops) <detach, join>: Change parameter to
5199 process_info pointer instead of pid. Adjust all implementations
5201 (detach_inferior, join_inferior): Rename 'pid' parameter to
5204 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5205 Jan Kratochvil <jan.kratochvil@redhat.com>
5206 Paul Fertser <fercerpav@gmail.com>
5207 Tsutomu Seki <sekiriki@gmail.com>
5209 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5210 (OBS): Add 'common/netstuff.o'.
5211 (GDBREPLAY_OBS): Likewise.
5212 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5213 (remote_open): Implement support for IPv6
5215 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5217 (handle_accept_event): Accept connections from IPv6 sources.
5218 (remote_prepare): Handle IPv6-style hostnames; implement
5219 support for IPv6 connections.
5220 (remote_open): Implement support for printing connections from
5223 2018-07-11 Pedro Alves <palves@redhat.com>
5226 * mem-break.c (any_persistent_commands): Add process_info
5227 parameter and use it instead of relying on the current process.
5228 Change return type to bool.
5229 * mem-break.h (any_persistent_commands): Add process_info
5230 parameter and change return type to bool.
5231 * server.c (handle_detach): Remove require_running_or_return call.
5232 Look up the process_info for the process we're about to detach.
5233 If not found, return back error to GDB. Adjust
5234 any_persistent_commands call to pass down a process pointer.
5236 2018-07-11 Pedro Alves <palves@redhat.com>
5238 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5239 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5240 instead of collect_register_by_name.
5241 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5242 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5244 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5245 Pedro Alves <palves@redhat.com>
5247 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5249 2018-07-03 Tom Tromey <tom@tromey.com>
5251 * linux-low.c: Update.
5252 * lynx-low.c: Update.
5253 * mem-break.c: Update.
5254 * nto-low.c: Update.
5255 * remote-utils.c: Update.
5257 * spu-low.c: Update.
5259 * win32-low.c: Update.
5261 2018-07-03 Tom Tromey <tom@tromey.com>
5265 2018-07-03 Tom Tromey <tom@tromey.com>
5267 * linux-low.c: Update.
5269 2018-07-03 Tom Tromey <tom@tromey.com>
5273 2018-07-03 Tom Tromey <tom@tromey.com>
5275 * linux-low.c: Update.
5276 * linux-mips-low.c: Update.
5277 * lynx-low.c: Update.
5278 * nto-low.c: Update.
5279 * remote-utils.c: Update.
5281 * spu-low.c: Update.
5283 * thread-db.c: Update.
5285 2018-07-03 Tom Tromey <tom@tromey.com>
5287 * linux-low.c: Update.
5288 * linux-mips-low.c: Update.
5289 * lynx-low.c: Update.
5290 * mem-break.c: Update.
5291 * nto-low.c: Update.
5292 * remote-utils.c: Update.
5294 * spu-low.c: Update.
5296 * tracepoint.c: Update.
5298 2018-07-03 Tom Tromey <tom@tromey.com>
5300 * linux-low.c: Update.
5301 * linux-ppc-low.c: Update.
5302 * linux-x86-low.c: Update.
5303 * proc-service.c: Update.
5305 * spu-low.c: Update.
5306 * thread-db.c: Update.
5307 * win32-low.c: Update.
5309 2018-07-03 Tom Tromey <tom@tromey.com>
5311 * linux-low.c: Update.
5312 * lynx-low.c: Update.
5313 * nto-low.c: Update.
5314 * remote-utils.c: Update.
5315 * spu-low.c: Update.
5316 * thread-db.c: Update.
5317 * win32-low.c: Update.
5319 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5321 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5322 parameter in call to 'amd64_create_target_description'.
5324 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5326 * x86-tdesc.h: Remove executable permission flag.
5328 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5330 * configure.ac: Remove AC_PREREQ, add missing quoting.
5331 * configure: Re-generate.
5332 * config.in: Re-generate.
5333 * aclocal.m4: Re-generate.
5335 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5337 * tracepoint.h (current_traceframe): Remove declaration.
5339 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5341 * linux-aarch64-low.c (is_sve_tdesc): New function.
5342 (aarch64_sve_regs_copy_to_regcache): Likewise.
5343 (aarch64_sve_regs_copy_from_regcache): Likewise.
5344 (aarch64_regs_info): Add SVE checks.
5345 (initialize_low_arch): Initialize SVE.
5347 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5349 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5351 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5353 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5354 (initialize_low_tracepoint): Likewise
5355 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5356 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5358 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5360 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5362 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5364 * server.h (PBUFSIZ): Increase size
5366 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5368 * regcache.c (regcache::raw_compare): New function.
5369 * regcache.h (regcache::raw_compare): New declaration.
5371 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5373 * regcache.c (new_register_cache): Use new.
5374 (free_register_cache): Use delete.
5375 (register_data): Use const.
5376 (supply_register): Move body inside regcache.
5377 (regcache::raw_supply): New override function.
5378 (collect_register): Move body inside regcache.
5379 (regcache::raw_collect): New override function.
5380 (regcache::get_register_status): New override function.
5381 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5383 2018-06-09 Tom Tromey <tom@tromey.com>
5385 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5387 (event_queue): Use std::queue.
5388 (gdb_event_xfree): Remove.
5389 (initialize_event_loop, process_event, wait_for_event): Update.
5391 2018-06-08 Stan Cox <scox@redhat.com>
5393 * win32-low.c (win32_create_inferior): last_ptid and last_status
5394 moved to client_state.
5396 2018-06-08 Pedro Alves <palves@redhat.com>
5398 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5399 common/common-exceptions.o, common/common-utils.o,
5400 common/errors.o, common/print-utils.o and utils.o.
5401 * gdbreplay.c: Include "common-defs.h" instead of the two
5402 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5403 string.h or alloca.h.
5404 (perror_with_name): Delete.
5405 (remote_open): Use xstrdup instead of strdup.
5406 (main): Rename to ...
5407 (captured_main): ... this.
5410 2018-06-08 Tom Tromey <tom@tromey.com>
5412 * linux-low.c (linux_low_read_btrace): Update.
5414 2018-06-04 Stan Cox <scox@redhat.com>
5416 * server.h (struct client_state): New.
5417 * server.c (cont_thread, general_thread, multi_process)
5418 (report_fork_events, report_vfork_events, report_exec_events)
5419 (report_thread_events, swbreak_feature, hwbreak_feature)
5420 (vCont_supported, disable_randomization, pass_signals)
5421 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5422 Moved to client_state.
5423 * remote-utils.c (remote_debug, noack_mode)
5424 (transport_is_reliable): Moved to client_state.
5425 * tracepoint.c (current_traceframe): Moved to client_state.
5428 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5429 linux-low.c, remote-utils.h, target.c: Use client_state.
5431 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5433 * configure.srv: Add new c/h file.
5435 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5437 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5440 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5442 * gdb.arch/mips-fpregset-core.exp: New test.
5443 * gdb.arch/mips-fpregset-core.c: New test source.
5445 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5448 * hostio.c (require_int): Do not report overflow for integers
5449 between 0xfffffff and 0x7fffffff.
5451 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5453 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5454 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5455 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5457 (the_low_target): Wire them.
5459 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5461 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5462 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5463 mode. Call collect_register_by_name with vscr using
5464 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5465 (ppc_store_vrregset): Add and set vscr_offset variable as in
5466 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5469 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5471 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5472 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5473 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5475 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5477 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5478 (ppc_store_vsxregset): Likewise.
5479 (ppc_fill_vrregset): Likewise.
5480 (ppc_store_vrregset): Likewise.
5481 (ppc_fill_evrregset): Likewise.
5482 (ppc_store_evrregset): Likewise.
5483 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5484 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5487 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5489 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5490 wordsize of the inferior. Call ppc_linux_target_wordsize.
5492 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5494 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5495 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5496 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5497 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5498 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5499 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5500 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5501 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5502 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5503 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5504 (tdesc_powerpc_e500l): Remove.
5505 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5506 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5507 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5508 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5510 (ppc_arch_setup): Remove target description matching code. Fill a
5511 ppc_linux_features struct and call ppc_linux_match_description
5514 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5516 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5517 width of the requested register exceeds the width of the
5519 (mips_cannot_store_register): Likewise.
5521 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5523 * linux-mips-low.c (mips_fetch_register): New function. Update
5525 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5526 (the_low_target): Wire `mips_fetch_register'.
5528 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5530 * lynx-i386-low.c (LYNXOS_178): New macro.
5531 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5532 the layout on LynxOS-178.
5533 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5534 handle floating point registers that are not supported by
5537 2018-05-10 Tom Tromey <tom@tromey.com>
5539 * configure: Rebuild.
5541 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5544 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5545 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5546 Use it to set the expedite_regs field in the given tdesc.
5547 * x86-tdesc.h: New file.
5548 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5549 Adjust following the addition of the new expedite_regs parameter
5550 to init_target_desc.
5551 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5552 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5553 (i386_linux_read_description, amd64_linux_read_description):
5554 Adjust following the addition of the new expedite_regs parameter
5555 to init_target_desc.
5556 * lynx-i386-low.c: #include "x86-tdesc.h".
5557 (lynx_i386_arch_setup): Adjust following the addition of the new
5558 expedite_regs parameter to init_target_desc.
5559 * nto-x86-low.c: #include "x86-tdesc.h".
5560 (nto_x86_arch_setup): Adjust following the addition of the new
5561 expedite_regs parameter to init_target_desc.
5562 * win32-i386-low.c: #include "x86-tdesc.h".
5563 (i386_arch_setup): Adjust following the addition of the new
5564 expedite_regs parameter to init_target_desc.
5566 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5569 * win32-low.c (win32_create_inferior): Add call to my_wait
5570 setting last_status global.
5572 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5575 * win32-low.c (create_process): Only call gdb_tilde_expand if
5576 inferior_cwd is not NULL.
5578 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5580 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5581 registers to the cache if their values have changed.
5582 (i387_xsave_to_cache): Provide default values for x87 control
5583 registers when these features are available, but disabled.
5584 * regcache.c (supply_register_by_name_zeroed): New function.
5585 * regcache.h (supply_register_by_name_zeroed): Declare new
5588 2018-05-07 Tom Tromey <tom@tromey.com>
5590 * configure: Rebuild.
5592 2018-05-04 Tom Tromey <tom@tromey.com>
5594 * configure: Rebuild.
5596 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5597 Pedro Alves <palves@redhat.com>
5599 * linux-aarch64-low.c (aarch64_stopped_data_address):
5602 2018-04-27 Tom Tromey <tom@tromey.com>
5604 * configure: Rebuild.
5606 2018-04-23 Tom Tromey <tom@tromey.com>
5608 * configure: Rebuild.
5610 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5612 * Makefile.in (depcomp): Add "..".
5613 (all_deps_files): New and use it.
5615 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5617 * configure.srv (aarch64*-*-linux*): Don't include xml.
5618 (i[34567]86-*-cygwin*): Likewise.
5619 (i[34567]86-*-linux*): Likewise.
5620 (i[34567]86-*-lynxos*): Likewise.
5621 (i[34567]86-*-mingw32ce*): Likewise.
5622 (i[34567]86-*-mingw*): Likewise.
5623 (i[34567]86-*-nto*): Likewise.
5624 (tic6x-*-uclinux): Likewise.
5625 (x86_64-*-linux*): Likewise.
5626 (x86_64-*-mingw*): Likewise.
5627 (x86_64-*-cygwin*): Likewise.
5629 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5631 * tdesc.c: Remove xml parameter.
5633 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5635 * server.c (get_features_xml): Remove cast.
5636 * tdesc.c (void target_desc::accept): Fill in function.
5637 (tdesc_get_features_xml): Remove old xml creation.
5638 (print_xml_feature::visit_pre): Add xml vistor.
5639 * tdesc.h (struct target_desc): Make xmltarget mutable.
5640 (tdesc_get_features_xml): Remove declaration.
5642 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5644 * tdesc.c (tdesc_architecture_name): Add new function.
5645 (tdesc_osabi_name): Likewise.
5646 (tdesc_get_features_xml): Use new functions.
5648 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5650 * tdesc.c (tdesc_create_flags): Remove.
5651 (tdesc_add_flag): Likewise.
5652 (tdesc_named_type): Likewise.
5653 (tdesc_create_union): Likewise.
5654 (tdesc_create_struct): Likewise.
5655 (tdesc_create_vector): Likewise.
5656 (tdesc_add_bitfield): Likewise.
5657 (tdesc_add_field): Likewise.
5658 (tdesc_set_struct_size): Likewise.
5660 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5662 * tdesc.c (~target_desc): Remove implictly deleted items.
5663 (init_target_desc): Iterate all features.
5664 (tdesc_get_features_xml): Use vector.
5665 (tdesc_create_feature): Create feature.
5666 * tdesc.h (tdesc_feature) Remove
5667 (target_desc): Add features.
5669 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5671 * Makefile.in: Add common/tdesc.c
5672 * tdesc.c (init_target_desc): init all reg_defs from register
5674 (tdesc_create_reg): Create tdesc_reg.
5675 * tdesc.h (tdesc_feature): Add register vector.
5677 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5679 * tdesc.h (struct target_desc) <features>: Change type to
5680 std::vector<std::string>.
5681 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5683 (tdesc_get_features_xml): Likewise.
5684 (tdesc_create_feature): Likewise.
5686 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5688 * regcache.c (find_register_by_number): Return a ref.
5689 (find_regno): Use references.
5690 (register_size): Likewise.
5691 (register_data): Likewise.
5692 * tdesc.c (target_desc::~target_desc): Remove free calls.
5693 (target_desc::operator==): Use std::vector compare.
5694 (init_target_desc): Use reference.
5695 (tdesc_create_reg): Use reg constructors.
5696 * tdesc.h (struct target_desc): Replace pointer with object.
5698 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5700 * regcache.c (find_register_by_number): Make static.
5701 (find_regno): Use find_register_by_number
5702 * regcache.h (struct reg): Remove declaration.
5704 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5706 * tdesc.c (target_desc::~target_desc): Move to here.
5707 (target_desc::operator==): Likewise.
5708 * tdesc.h (target_desc::~target_desc): Move from here.
5709 (target_desc::operator==): Likewise.
5711 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5713 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5715 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5717 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5719 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5720 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5721 and init_registers_s390_gs_linux64.
5723 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5725 * linux-s390-low.c (s390_fill_gs): Remove function.
5726 (s390_fill_gsbc): Remove function.
5727 (s390_regsets): Set fill functions for the guarded storage regsets
5730 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5732 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5733 the word size. Add comment.
5734 (s390_get_wordsize): New function.
5735 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5736 pswm with it. Instead, use s390_get_wordsize to determine the
5737 word size first and derive the correct tdesc from that directly.
5739 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5741 * Makefile.in: Include silent-rules.mk.
5742 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5743 (COMPILE): Add ECHO_CXX.
5744 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5745 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5746 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5747 (version-generated.c): Add ECHO_GEN.
5748 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5749 (IPAGENT_COMPILE): Add ECHO_CXX.
5750 (%-generated.c): Add ECHO_REGDAT.
5752 2018-03-14 Tom Tromey <tom@tromey.com>
5755 * ax.c (ax_printf): Special case for NULL.
5757 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5759 * linux-low.c (linux_qxfer_libraries_svr4): Use
5760 xml_escape_text_append.
5762 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5764 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5766 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5768 * server.c (handle_general_set): Remove unnecessary xstrdup.
5770 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5772 * server.c (parse_debug_format_options): Adjust to
5773 delim_string_to_char_ptr_vec changes.
5774 * thread-db.c (thread_db_load_search): Adjust to
5775 dirnames_to_char_ptr_vec changes.
5777 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5779 * target.h (target_enable_btrace, target_disable_btrace)
5780 (target_read_btrace, target_read_btrace_conf): Turn macro into
5781 inline function. Throw error if target method is not defined.
5782 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5783 check for btrace target method. Be prepared to handle exceptions
5784 from btrace target methods.
5786 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5788 * server.c (captured_main): Change order of error message printed
5789 when the current working directory cannot be found.
5791 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5793 * server.c: Include "filenames.h" and "pathstuff.h".
5794 (program_name): Delete variable.
5795 (program_path): New anonymous class.
5796 (get_exec_wrapper): Use "program_path" instead of
5798 (handle_v_run): Likewise.
5799 (captured_main): Likewise.
5800 (process_serial_event): Likewise.
5802 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5804 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5805 (OBJS): Add "pathstuff.o".
5806 * server.c (current_directory): New global variable.
5807 (captured_main): Initialize "current_directory".
5809 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5811 * tdesc.c: Use common/tdesc.h.
5812 * tdesc.h: Likewise.
5814 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5815 Simon Marchi <simon.marchi@ericsson.com>
5817 * Makefile.in: Switch order of make rules.
5819 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5821 * Makefile.in: Add common directory in build.
5822 * configure.ac: Add common reference.
5823 * configure: Regenerate.
5825 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5827 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5828 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5829 * spu-low.c (spu_target_ops): Likewise.
5830 * win32-low.c (win32_target_ops): Likewise.
5831 * server.c (supported_btrace_packets): Report packets unconditionally.
5832 * target.h (target_ops) <supports_btrace>: Remove.
5833 (target_supports_btrace): Remove.
5835 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5837 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5838 (handle_btrace_disable): Change return type to void. Use exceptions
5840 (handle_btrace_general_set): Catch exception and copy message to
5843 2018-02-08 Tom Tromey <tom@tromey.com>
5845 * linux-low.c (install_software_single_step_breakpoints): Use
5846 make_scoped_restore.
5847 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5848 (do_restore_current_thread_cleanup): Remove.
5849 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5852 2018-02-08 Tom Tromey <tom@tromey.com>
5854 * mem-break.c (set_raw_breakpoint_at): Use
5855 gdb::unique_xmalloc_ptr.
5857 2018-01-30 Pedro Alves <palves@redhat.com>
5860 * target.c (target_terminal::terminal_state): Rename to ...
5861 (target_terminal::m_terminal_state): ... this.
5863 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5865 * linux-low.c (handle_extended_wait): Surround call to
5866 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5868 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5870 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5871 linux_ptrace_attach_fail_reason_string now returning an
5873 (linux_attach): Likewise.
5874 * thread-db.c (attach_thread): Likewise.
5876 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5879 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5880 checking for fs_base/gs_base fields in struct user_regs_struct.
5881 * configure: Regenerate.
5883 2018-01-16 Yao Qi <yao.qi@linaro.org>
5886 * linux-low.c (fetch_register): Call supply_register instead of
5889 2018-01-08 Yao Qi <yao.qi@linaro.org>
5890 Simon Marchi <simon.marchi@ericsson.com>
5892 * Makefile.in (OBS): Remove selftest.o.
5893 * configure.ac: Set srv_selftest_objs if $development is true.
5894 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5895 * configure: Re-generated.
5896 * server.c (captured_main): Wrap variable selftest_filter with
5899 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5901 * server.c (parse_debug_format_options): Return std::string.
5902 (handle_monitor_command, captured_main): Adjust.
5904 2018-01-05 Pedro Alves <palves@redhat.com>
5907 * server.c (captured_main): Pass quiet=false to
5908 save_original_signals_state.
5910 2018-01-01 Joel Brobecker <brobecker@adacore.com>
5912 * gdbreplay.c (gdbreplay_version): Update copyright year in
5914 * server.c (gdbserver_version): Likewise.
5916 2017-12-08 Tom Tromey <tom@tromey.com>
5918 * ax.c (ax_printf): Update.
5920 2017-12-07 Yao Qi <yao.qi@linaro.org>
5922 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5923 aarch64_linux_read_description.
5924 * linux-amd64-ipa.c (idx2mask): New array.
5925 (get_ipa_tdesc): Move idx2mask out.
5926 (initialize_low_tracepoint): Initialize target descriptions.
5927 * linux-i386-ipa.c (idx2mask): New array.
5928 (get_ipa_tdesc): Move idx2mask out.
5929 (initialize_low_tracepoint): Initialize target descriptions.
5931 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5933 * tdesc.c (struct tdesc_type): Change return type.
5934 (tdesc_add_flag): Change parameter type.
5935 (tdesc_add_bitfield): Likewise.
5936 (tdesc_add_field): Likewise.
5937 (tdesc_set_struct_size): Likewise.
5939 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5941 * regcache.c (registers_to_string): Remove unused variable.
5943 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5945 * inferiors.c (for_each_inferior_with_data): Remove.
5946 * inferiors.h (for_each_inferior_with_data): Remove.
5947 * server.c (handle_qxfer_threads_worker): Change parameter type.
5948 (handle_qxfer_threads_proper): Use for_each_thread.
5950 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5952 * inferiors.c (for_each_inferior): Remove.
5953 (clear_inferiors): Use for_each_thread.
5954 * inferiors.h (for_each_inferior): Remove.
5955 * linux-low.c (linux_wait_for_event_filtered): Use
5957 (linux_stabilize_threads): Likewise.
5958 * regcache.c (regcache_release): Likewise.
5959 * server.c (gdb_wants_all_threads_stopped): Likewise.
5960 (clear_pending_status_callback): Remove.
5961 (handle_status): Use for_each_thread.
5962 (captured_main): Likewise.
5963 * win32-low.c (child_init_thread_list): Likewise.
5964 (win32_clear_inferiors): Likewise.
5965 (fake_breakpoint_event): Likewise.
5967 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5969 * inferiors.h (find_inferior): Remove.
5970 * inferiors.c (find_inferior): Remove.
5972 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5974 * linux-low.c (resume_status_pending_p): Update comment.
5975 (need_step_over_p): Update comment.
5977 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5979 * linux-low.c (proceed_one_lwp): Return void, change parameter
5981 (unsuspend_and_proceed_one_lwp): Likewise.
5982 (proceed_all_lwps): Use for_each_thread.
5983 (unstop_all_lwps): Likewise.
5985 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5987 * linux-low.c (linux_resume_one_thread): Return void, take
5989 (linux_resume): Use for_each_thread.
5991 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5993 * linux-low.c (send_sigstop_callback): Return void, change
5994 parameter type. Rename to...
5995 (send_sigstop): ... this.
5996 (suspend_and_send_sigstop_callback): Return void, change parameter
5998 (suspend_and_send_sigstop): ... this.
5999 (stop_all_lwps): Use for_each_thread.
6001 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6003 * linux-low.c (lwp_running): Return bool, remove unused
6005 (linux_stabilize_threads): Use find_thread.
6007 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6009 * linux-low.c (select_singlestep_lwp_callback): Remove.
6010 (count_events_callback): Remove.
6011 (select_event_lwp_callback): Remove.
6012 (select_event_lwp): Use find_thread/for_each_thread.
6014 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6016 * linux-low.c (not_stopped_callback): Return bool, take filter
6018 (linux_wait_for_event_filtered): Use find_thread.
6019 (linux_wait_1): Likewise.
6021 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6023 * linux-low.c (same_lwp): Remove.
6024 (find_lwp_pid): Use find_thread.
6026 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6028 * linux-low.c (delete_lwp_callback): Remove.
6029 (linux_mourn): Use for_each_thread.
6031 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6033 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6034 args parameter, don't check for pid.
6035 (linux_detach): Use for_each_thread.
6037 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6039 * linux-low.c (struct counter): Remove.
6040 (second_thread_of_pid_p): Remove.
6041 (last_thread_of_process_p): Use find_thread.
6043 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6045 * inferiors.c (find_inferior_in_random): Remove.
6046 * inferiors.h (find_inferior_in_random): Remove.
6047 * linux-low.c (status_pending_p_callback): Return bool, accept
6048 parameter ptid directly.
6049 (linux_wait_for_event_filtered): Use find_thread_in_random.
6050 (linux_wait_1): Likewise.
6052 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6054 * inferiors.c (find_inferior_id): Remove.
6055 (find_thread_ptid): Move implemention from find_inferior_id to
6057 * inferiors.h (find_inferior_id): Remove.
6058 * server.c (handle_status): Use find_thread_ptid.
6059 (process_serial_event): Likewise.
6060 * thread-db.c (find_one_thread): Likewise.
6061 (thread_db_thread_handle): Likewise.
6062 * win32-low.c (thread_rec): Likewise.
6063 (child_delete_thread): Likewise.
6064 (win32_thread_alive): Likewise.
6065 (get_child_debug_event): Likewise.
6067 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6069 * linux-mips-low.c (update_watch_registers_callback): Return
6070 void, remove pid_p parameter, don't check for pid.
6071 (mips_insert_point, mips_remove_point): Use for_each_thread.
6073 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6075 * lynx.low (lynx_delete_thread_callback): Remove.
6076 (lynx_mourn): Use for_each_thread.
6078 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6080 * regcache.c (regcache_invalidate_one): Remove.
6081 (regcache_invalidate_pid): use for_each_thread.
6083 2017-11-26 Tom Tromey <tom@tromey.com>
6085 * linux-low.c (linux_create_inferior): Update.
6087 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6089 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6091 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6093 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6094 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6095 * linux-aarch64-tdesc-selftest.c: New file.
6096 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6098 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6100 * configure.srv: Add new file.
6101 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6102 * linux-aarch64-tdesc-selftest.c: New file.
6103 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6105 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6107 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6108 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6109 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6111 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6113 * configure.srv: Add new files.
6114 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6115 aarch64_linux_read_description.
6116 * linux-aarch64-low.c (aarch64_linux_read_description):
6117 Merge with aarch64_arch_setup.
6118 (aarch64_arch_setup): Call aarch64_linux_read_description.
6119 * linux-aarch64-tdesc.c: New file.
6120 * linux-aarch64-tdesc.h: New file.
6122 2017-11-24 Yao Qi <yao.qi@linaro.org>
6124 * configure.srv: Set $srv_regobj for tic6x-linux.
6125 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6126 (tic6x_read_description): Move some code to tic6x_arch_setup.
6127 (tic6x_tdesc_test): New function.
6128 (initialize_low_arch): Call selftests::register_test.
6130 2017-11-22 Yao Qi <yao.qi@linaro.org>
6132 * remote-utils.c (prepare_resume_reply): Use memcpy.
6134 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6136 * linux-low.c (kill_one_lwp_callback): Return void, take
6137 argument directly, don't filter on pid.
6138 (linux_kill): Use for_each_thread.
6140 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6142 * linux-low.c (need_step_over_p): Return bool, remove dummy
6144 (linux_resume, proceed_all_lwps): Use find_thread.
6146 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6148 * linux-low.c (resume_status_pending_p): Return bool, remove
6150 (linux_resume): Use find_thread.
6152 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6154 * linux-low.c (struct thread_resume_array): Remove.
6155 (linux_set_resume_request): Return void, take arguments
6157 (linux_resume): Use for_each_thread.
6159 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6161 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6162 return bool, remove data argument.
6163 (linux_stabilize_threads): Use find_thread.
6165 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6167 * linux-low.c (unsuspend_one_lwp): Remove.
6168 (unsuspend_all_lwps): Use for_each_thread, inline code from
6171 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6173 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6174 * linux-low.c (struct iterate_over_lwps_args): Remove.
6175 (iterate_over_lwps_filter): Remove.
6176 (iterate_over_lwps): Use find_thread.
6178 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6180 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6181 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6182 code from reset_lwp_ptrace_options_callback.
6184 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6186 * linux-arm-low.c (struct update_registers_data): Remove.
6187 (update_registers_callback): Return void, take arguments
6188 directly, don't check thread's pid.
6189 (arm_insert_point, arm_remove_point): Use for_each_thread.
6191 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6193 * win32-low.c (continue_one_thread): Return void, take argument
6195 (child_continue): Use for_each_thread.
6197 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6199 * win32-i386-low.c (update_debug_registers_callback): Rename
6201 (update_debug_registers): ... this, return void, remove pid_p arg.
6202 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6204 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6206 * inferiors.h (struct process_info): Add constructor, initialize
6208 <syscalls_to_catch>: Change type to std::vector<int>.
6209 * inferiors.c (add_process): Allocate process_info with new.
6210 (remove_process): Free process_info with delete.
6211 * linux-low.c (handle_extended_wait): Adjust.
6212 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6213 * server.c (handle_general_set): Adjust.
6215 2017-11-16 Pedro Alves <palves@redhat.com>
6217 * remote-utils.c (remote_close): Block SIGIO signals instead of
6218 uninstalling the SIGIO handler.
6220 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6222 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6224 2017-11-16 Yao Qi <yao.qi@linaro.org>
6226 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6227 (tic6x_store_gregset): Likewise.
6228 (tic6x_usrregs_info): Move it up.
6230 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6232 * Makefile.in: Update arch rules.
6233 * configure.srv: Explicitly mark arch/ files.
6235 2017-11-13 Andreas Schwab <schwab@suse.de>
6237 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6239 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6241 2017-11-06 Pedro Alves <palves@redhat.com>
6243 * config.in, configure: Regenerate.
6245 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6247 * target.c (struct thread_search): Remove.
6248 (thread_search_callback): Remove.
6249 (prepare_to_access_memory): Use for_each_thread instead of
6250 find_inferior. Inline code from thread_search_callback.
6252 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6254 * server.c (struct visit_actioned_threads_data): Remove.
6255 (visit_actioned_threads): Change prototype to take arguments
6257 (resume): Use find_thread instead of find_inferior.
6259 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6261 * server.c (queue_stop_reply_callback): Change prototype, return
6263 (find_status_pending_thread_callback): Remove.
6264 (handle_status): Replace find_inferior with find_thread and
6267 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6269 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6271 (aarch64_store_gregset): Likewise.
6272 (aarch64_fill_fpregset): Likewise.
6273 (aarch64_store_fpregset): Likewise.
6275 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6277 * gdbthread.h (find_thread, for_each_thread): New functions.
6278 * inferiors.c (thread_of_pid): Remove.
6279 (find_any_thread_of_pid): Use find_thread.
6280 * linux-low.c (num_lwps): Use for_each_thread.
6282 2017-10-17 Yao Qi <yao.qi@linaro.org>
6284 * Makefile.in: Remove one rule.
6285 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6287 2017-10-17 Yao Qi <yao.qi@linaro.org>
6289 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6290 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6292 2017-10-17 Yao Qi <yao.qi@linaro.org>
6294 * configure.srv: Rename arm.o with arch/arm.o.
6296 2017-10-17 Yao Qi <yao.qi@linaro.org>
6298 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6299 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6300 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6301 (arch-i386.o, arch-amd64.o): Remove rules.
6302 (arch/%.o): New rule.
6303 Update POSTCOMPILE and COMPILE.pre.
6304 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6305 * configure: Re-generated.
6306 * configure.srv: Replace arch-i386.o with arch/i386.o.
6307 Replace arch-amd64.o with arch/amd64.o.
6309 2017-10-16 Yao Qi <yao.qi@linaro.org>
6311 * configure: Regenerated.
6313 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6315 * inferiors.h: (struct inferior_list): Remove.
6316 (struct inferior_list_entry); Remove.
6317 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6318 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6319 get_first_inferior): Remove.
6320 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6321 find_inferior_id, find_inferior_in_random): Change signature.
6322 * inferiors.c (all_threads): Change type to
6323 std::list<thread_info *>.
6324 (get_thread): Remove macro.
6325 (find_inferior, find_inferior_id): Change signature, implement
6327 (find_inferior_in_random): Change signature, implement using
6328 find_thread_in_random.
6329 (for_each_inferior, for_each_inferior_with_data): Change
6330 signature, implement using for_each_thread.
6331 (add_inferior_to_list, remove_inferior): Remove.
6332 (add_thread, get_first_thread, thread_of_pid,
6333 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6334 (get_first_inferior, one_inferior_p, clear_inferior_list):
6336 (clear_inferiors, get_thread_process): Update.
6337 * gdbthread.h: Include <list>.
6338 (struct thread_info) <entry>: Remove field.
6340 (all_threads): Change type to std::list<thread_info *>.
6341 (get_first_inferior): Add doc.
6342 (find_thread, for_each_thread, find_thread_in_random): New
6344 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6345 * linux-arm-low.c (update_registers_callback): Update.
6346 * linux-low.c (second_thread_of_pid_p): Update.
6347 (kill_one_lwp_callback, linux_detach_lwp_callback,
6348 delete_lwp_callback, status_pending_p_callback, same_lwp,
6349 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6350 iterate_over_lwps, not_stopped_callback,
6351 resume_stopped_resumed_lwps, count_events_callback,
6352 select_singlestep_lwp_callback, select_event_lwp_callback,
6353 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6354 suspend_and_send_sigstop_callback, wait_for_sigstop,
6355 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6356 lwp_running, linux_set_resume_request, resume_status_pending_p,
6357 need_step_over_p, start_step_over, linux_resume_one_thread,
6358 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6359 reset_lwp_ptrace_options_callback): Update.
6360 * linux-mips-low.c (update_watch_registers_callback): Update.
6361 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6363 (free_register_cache_thread_one): Remove.
6364 (regcache_release): Update.
6365 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6366 handle_qxfer_threads_worker): Update.
6367 (handle_query): Update, use list iterator.
6368 (visit_actioned_threads, handle_pending_status,
6369 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6370 clear_pending_status_callback, set_pending_status_callback,
6371 find_status_pending_thread_callback, handle_status,
6372 process_serial_event): Update.
6373 * target.c (thread_search_callback): Update.
6374 * thread-db.c (thread_db_get_tls_address): Update.
6375 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6377 * win32-i386-low.c (update_debug_registers_callback): Update.
6378 * win32-low.c (delete_thread_info, child_delete_thread,
6379 continue_one_thread, suspend_one_thread,
6380 get_child_debug_event): Adjust.
6382 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6384 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6385 * inferiors.h: Include <list>.
6386 (struct process_info) <entry>: Remove field.
6388 (pid_of): Change macro to function.
6389 (ptid_of, lwpid_of): Remove macro.
6390 (all_processes): Change type to std::list<process_info *>.
6391 (ALL_PROCESSES): Remove macro.
6392 (for_each_process, find_process): New function.
6393 * inferiors.c (all_processes): Change type to
6394 std::list<process_info *>.
6395 (find_thread_process): Adjust.
6396 (add_process): Likewise.
6397 (remove_process): Likewise.
6398 (find_process_pid): Likewise.
6399 (get_first_process): Likewise.
6400 (started_inferior_callback): Remove.
6401 (have_started_inferiors_p): Adjust.
6402 (attached_inferior_callback): Remove.
6403 (have_attached_inferiors_p): Adjust.
6404 * linux-low.c (check_zombie_leaders): Likewise.
6405 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6406 (x86_linux_update_xmltarget): Adjust.
6407 * server.c (handle_query): Likewise.
6408 (gdb_reattached_process): Remove.
6409 (handle_status): Adjust.
6410 (kill_inferior_callback): Likewise.
6411 (detach_or_kill_inferior): Remove.
6412 (print_started_pid): Likewise.
6413 (print_attached_pid): Likewise.
6414 (detach_or_kill_for_exit): Update.
6415 (process_serial_event): Likewise.
6416 * linux-arm-low.c (arm_new_fork): Likewise.
6418 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6420 * dll.h: Include <list>.
6421 (struct dll_info): Add constructor.
6422 <entry>: Remove field.
6423 (all_dlls): Change type to std::list<dll_info>.
6424 * dll.c: Include <algorithm>.
6425 (get_dll): Remove macro.
6426 (all_dlls): Change type to std::list<dll_info *>.
6427 (free_one_dll): Remove.
6428 (match_dll): Likewise.
6429 (loaded_dll): Adjust.
6430 (unloaded_dll): Adjust to all_dlls type change, use
6431 std::find_if. Inline code from match_dll.
6432 (clear_dlls): Adjust to all_dlls type change.
6433 * server.c (emit_dll_description): Remove.
6434 (handle_qxfer_libraries): Adjust to all_dlls type change,
6435 integrate emit_dll_description's functionality.
6437 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6439 * linux-low.h (struct linux_target_ops) <delete_process>: New
6441 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6442 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6443 (struct linux_target_ops): Add delete_process callback.
6444 * linux-arm-low.c (arm_delete_process): New.
6445 (struct linux_target_ops): Add delete_process callback.
6446 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6447 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6448 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6449 * linux-mips-low.c (mips_linux_delete_process): New.
6450 (struct linux_target_ops): Add delete_process callback.
6451 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6452 * linux-s390-low.c (struct linux_target_ops): Likewise.
6453 * linux-sh-low.c (struct linux_target_ops): Likewise.
6454 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6455 * linux-tile-low.c (struct linux_target_ops): Likewise.
6456 * linux-x86-low.c (x86_linux_delete_process): New.
6457 (struct linux_target_ops): Add delete_process callback.
6458 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6460 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6462 * linux-aarch64-low.c (the_low_target): Add thread delete
6464 * linux-arm-low.c (arm_delete_thread): New function.
6465 (the_low_target): Add thread delete callback.
6466 * linux-bfin-low.c (the_low_target): Likewise.
6467 * linux-crisv32-low.c (the_low_target): Likewise.
6468 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6470 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6472 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6473 * linux-mips-low.c (mips_linux_delete_thread): New function.
6474 (the_low_target): Add thread delete callback.
6475 * linux-ppc-low.c (the_low_target): Likewise.
6476 * linux-s390-low.c (the_low_target): Likewise.
6477 * linux-sh-low.c (the_low_target): Likewise.
6478 * linux-tic6x-low.c (the_low_target): Likewise.
6479 * linux-tile-low.c (the_low_target): Likewise.
6480 * linux-x86-low.c (the_low_target): Likewise.
6481 * linux-xtensa-low.c (the_low_target): Likewise.
6483 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6485 * win32-low.c: Include "common-inferior.h".
6487 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6489 * inferiors.c (set_inferior_cwd): New function.
6490 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6491 (handle_query): Inform that QSetWorkingDir is supported.
6492 * win32-low.c (create_process): Pass the inferior's cwd to
6495 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6497 * inferiors.c (current_inferior_cwd): New global variable.
6498 (get_inferior_cwd): New function.
6499 * inferiors.h (struct process_info) <cwd>: New field.
6501 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6503 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6504 (OBS): Add gdb_tilde_expand.o.
6506 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6508 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6509 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6511 2017-09-29 Pedro Alves <palves@redhat.com>
6513 * ax.c (gdb_parse_agent_expr): Constify.
6514 * ax.h (gdb_parse_agent_expr): Constify.
6515 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6517 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6518 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6519 * remote-utils.h (read_ptid): Constify.
6520 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6521 (process_point_options, process_serial_event): Constify.
6522 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6523 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6524 (cmd_qtbuffer): Constify.
6526 2017-09-29 Pedro Alves <palves@redhat.com>
6528 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6531 2017-09-29 Pedro Alves <palves@redhat.com>
6533 * linux-low.c (handle_extended_wait): Pass parent thread instead
6534 of process to thread_db_notice_clone.
6535 * linux-low.h (thread_db_notice_clone): Replace parent process
6536 parameter with parent thread parameter.
6537 * thread-db.c (find_one_thread): Add comment.
6538 (thread_db_notice_clone): Replace parent process parameter with
6539 parent thread parameter. Temporarily switch to the parent thread.
6541 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6543 * gdbthread.h: Include "common-gdbthread.h".
6544 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6545 "if" when validating the ptid.
6546 * remote-utils.c: Include "gdbthread.h".
6547 (prepare_resume_reply): Use "switch_to_thread".
6548 * target.c (done_accessing_memory): Likewise.
6550 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6552 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6553 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6554 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6555 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6556 s390x-gs-linux64-ipa.o to ipa_obj.
6557 * linux-s390-low.c (HWCAP_S390_GS): New define.
6558 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6560 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6561 (s390_arch_setup): Check for guarded-storage support and choose
6563 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6564 init_registers_s390x_gs_linux64.
6565 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6567 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6568 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6570 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6572 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6574 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6576 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6577 (thread_db_thread_handle): Declare.
6578 * linux-low.c (linux_target_ops): Initialize thread_handle.
6579 * server.c (handle_qxfer_threads_worker): Add support for
6581 * target.h (struct target_ops): Add new function pointer,
6583 (target_thread_handle): Define.
6584 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6586 (thread_db_thread_handle): New function.
6588 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6590 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6591 * linux-low.h (thread_db_notice_clone): Declare.
6592 * thread-db.c (thread_db_notice_clone): New function.
6594 2017-09-21 Pedro Alves <palves@redhat.com>
6596 * server.c (gdb_read_memory, handle_status, process_serial_event)
6597 (handle_serial_event, handle_target_event): Adjust to
6598 set_desired_thread prototype change.
6599 * target.c (set_desired_thread): Remove 'use_general' parameter
6601 * target.h (set_desired_thread): Remove 'use_general' parameter.
6603 2017-09-20 Tom Tromey <tom@tromey.com>
6605 * target.c (target_terminal::terminal_state): Define.
6606 (target_terminal::init): Rename from target_terminal_init.
6607 (target_terminal::inferior): Rename from
6608 target_terminal_inferior.
6609 (target_terminal::ours): Rename from target_terminal_ours.
6610 (target_terminal::ours_for_output, target_terminal::info): New.
6612 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6614 * server.c (accumulate_file_name_length): Remove.
6615 (emit_dll_description): Adjust to std::string change.
6616 (handle_qxfer_libraries): Use std::string to hold document.
6618 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6620 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6621 return type of xml_escape_text.
6622 * server.c (emit_dll_description): Likewise.
6624 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6626 * server.c (captured_main): Accept argument for --selftest.
6627 Update run_tests call.
6628 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6629 when registering selftests.
6631 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6633 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6634 instead of "VEC" for "target_desc.reg_defs".
6635 (regcache_cpy): Likewise.
6636 (registers_to_string): Likewise.
6637 (registers_from_string): Likewise.
6638 (find_regno): Likewise.
6639 (supply_regblock): Likewise.
6640 (regcache_raw_read_unsigned): Likewise.
6641 * tdesc.c (init_target_desc): Likewise.
6642 (tdesc_create_reg): Likewise.
6643 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6644 (struct target_desc) <reg_defs>: Convert to "std::vector".
6645 (target_desc): Do not initialize "reg_defs".
6646 (~target_desc): Update code to use "std::vector" instead of "VEC"
6647 for "target_desc.reg_defs".
6648 (operator==): Likewise.
6650 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6652 * inferiors.h (thread_to_gdb_id): Remove.
6653 * inferiors.c (thread_to_gdb_id): Remove.
6654 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6655 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6656 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6658 * nto-low.c (nto_fetch_registers, nto_store_registers,
6659 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6661 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6663 * inferiors.h (gdb_id_to_thread_id): Remove.
6664 * inferiors.c (gdb_id_to_thread_id): Remove.
6665 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6666 removal. Move pid declaration closer to where it's used.
6668 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6670 * server.c (handle_detach): New function.
6671 (process_serial_event): Move code out, call handle_detach.
6673 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6675 * server.c (require_running): Rename to ...
6676 (require_running_or_return): ... this ...
6677 (require_running_or_break): ... and this.
6678 (handle_query, process_serial_event): Adjust.
6680 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6682 * linux-low.c (linux_set_resume_request): Remove unused
6685 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6687 * server.c (first_thread_of): Remove.
6688 (process_serial_event): Replace usage of first_thread_of with
6689 find_any_thread_of_pid.
6690 * tracepoint.c (same_process_p): Remove.
6691 (gdb_agent_about_to_close): Replace usage of same_process_p with
6692 find_any_thread_of_pid.
6693 * linux-x86-low.c (same_process_callback): Remove.
6694 (x86_arch_setup_process_callback): Replace usage of
6695 same_process_callback with find_any_thread_of_pid.
6696 * thread-db.c (any_thread_of): Remove.
6697 (switch_to_process): Replace usage of any_thread_of with
6698 find_any_thread_of_pid.
6699 * inferiors.c (thread_pid_matches_callback): Remove.
6700 (find_thread_process): Adjust to use find_any_thread_of_pid.
6702 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6704 * regcache.c (get_thread_regcache): Guard calls to "memset"
6707 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6709 * linux-low.c (handle_extended_wait): Use
6710 "allocate_target_description" instead of "XNEW".
6711 * linux-x86-low.c (initialize_low_arch): Likewise.
6713 2017-09-05 Yao Qi <yao.qi@linaro.org>
6715 * configure.srv (srv_i386_regobj): Remove.
6716 (srv_amd64_regobj): Remove.
6717 (srv_regobj): Set it to "" for x86 non-linux targets.
6718 * linux-x86-tdesc.c (i386_linux_read_description):
6719 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6720 (init_registers_i386): Remove the declaration.
6721 (tdesc_i386): Remove the declaration.
6722 (lynx_i386_arch_setup): Call i386_create_target_description.
6723 * nto-x86-low.c: Likewise.
6724 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6725 [!__x86_64__]: include arch/i386.h.
6726 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6728 2017-09-05 Yao Qi <yao.qi@linaro.org>
6730 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6731 i386/amd64-XXX-linux from it.
6733 2017-09-05 Yao Qi <yao.qi@linaro.org>
6735 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6737 (ipa_amd64_linux_regobj): Remove.
6738 (ipa_x32_linux_regobj): Remove.
6740 2017-09-05 Yao Qi <yao.qi@linaro.org>
6742 * Makefile.in (arch-amd64.o): New rule.
6743 * configure.srv: Append arch-amd64.o.
6744 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6745 (get_ipa_tdesc): Call amd64_linux_read_description.
6746 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6747 and init_registers_amd64_XXX.
6748 * linux-x86-low.c (x86_linux_read_description): Call
6749 amd64_linux_read_description.
6750 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6751 (initialize_low_arch): Don't call init_registers_x32_XXX and
6752 init_registers_amd64_XXX.
6753 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6754 and tdesc_amd64_XXX.
6755 [__x86_64__] (amd64_tdesc_test): New function.
6756 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6757 and init_registers_amd64_XXX.
6758 * linux-x86-tdesc.c: Include arch/amd64.h.
6759 (xcr0_to_tdesc_idx): New function.
6760 (i386_linux_read_description): New function.
6761 (amd64_get_ipa_tdesc_idx): New function.
6762 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6763 (amd64_get_ipa_tdesc): Declare.
6765 2017-09-05 Yao Qi <yao.qi@linaro.org>
6767 * configure.srv (srv_i386_linux_xmlfiles): Remove
6768 i386/i386-XXX-linux.xml from it.
6770 2017-09-05 Yao Qi <yao.qi@linaro.org>
6772 * configure.srv: Set srv_i386_linux_regobj empty if $development
6774 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6775 initialize_low_tdesc.
6776 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6777 with #if initialize_low_tdesc.
6778 * linux-x86-tdesc-selftest.c: New file.
6779 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6781 2017-09-05 Yao Qi <yao.qi@linaro.org>
6783 * Makefile.in (arch-i386.o): New rule.
6784 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6785 (x86_64-*-linux*): Likewise.
6786 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6787 include arch/i386.h.
6788 (i386_linux_read_description): Remove code and call
6789 i386_create_target_description.
6790 * tdesc.c (allocate_target_description): New function.
6791 * tdesc.h (set_tdesc_architecture): Remove declaration.
6792 (set_tdesc_osabi): Likewise.
6794 2017-09-05 Yao Qi <yao.qi@linaro.org>
6796 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6797 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6798 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6800 * server.c (get_features_xml): Call tdesc_get_features_xml.
6801 * tdesc.c (set_tdesc_architecture): New function.
6802 (set_tdesc_osabi): New function.
6803 (tdesc_get_features_xml): New function.
6804 (tdesc_create_feature): Add an argument.
6805 * tdesc.h (struct target_desc) <features>: New field.
6806 <arch, osabi>: New field.
6807 (~target_desc): xfree features, arch, and osabi.
6808 (target_desc::oerator==): Don't compare .xmltarget.
6809 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6810 (set_tdesc_osabi): Likewise.
6811 (tdesc_get_features_xml): Likewise.
6813 2017-09-05 Yao Qi <yao.qi@linaro.org>
6815 * linux-x86-tdesc.c: Include selftest.h.
6816 (i386_tdesc_test): New function.
6817 (initialize_low_tdesc): Call selftests::register_test.
6818 * tdesc.h: Include regdef.h.
6819 (target_desc): Override operator == and !=.
6821 2017-09-05 Yao Qi <yao.qi@linaro.org>
6823 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6824 (ipa_obj): Likewise.
6825 * linux-i386-ipa.c: Include common/x86-xstate.h
6826 (get_ipa_tdesc): Call i386_linux_read_description.
6827 (initialize_low_tracepoint): Don't call init_registers_XXX
6828 functions, call initialize_low_tdesc instead.
6829 * linux-x86-low.c (x86_linux_read_description): Call
6830 i386_linux_read_description.
6831 (initialize_low_arch): Don't call init_registers_i386_XXX
6832 functions, call initialize_low_tdesc.
6833 * linux-x86-tdesc.c: New file.
6834 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6835 (i386_get_ipa_tdesc_idx): Declare.
6836 (i386_get_ipa_tdesc): Declare.
6837 (initialize_low_tdesc): Declare.
6839 2017-09-05 Yao Qi <yao.qi@linaro.org>
6841 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6844 2017-09-05 Yao Qi <yao.qi@linaro.org>
6846 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6847 * regcache.c (get_thread_regcache): Use VEC_length.
6848 (init_register_cache): Likewise.
6849 (regcache_cpy): Likewise.
6850 (registers_to_string): Iterate reg_defs via VEC_iterate.
6851 (find_regno): Likewise.
6852 (find_register_by_number): Use VEC_index.
6853 (register_size): Call find_register_by_number.
6854 (register_data): Call find_register_by_number.
6855 (supply_regblock): Use VEC_length.
6856 (regcache_raw_read_unsigned): Likewise.
6857 * tdesc.c (init_target_desc): Iterate reg_defs via
6859 (default_description): Update initializer.
6860 (copy_target_description): Don't update field num_registers.
6861 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6862 <num_registers>: Remove.
6864 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6866 * Makefile.in (.SECONDARY): Define target.
6868 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6870 * linux-low.c (linux_wait_1): Adjust.
6871 * server.c (queue_stop_reply_callback): Adjust.
6873 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6875 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6876 QEnvironmentUnset and QEnvironmentReset packets.
6877 (handle_query): Inform remote that QEnvironmentHexEncoded,
6878 QEnvironmentUnset and QEnvironmentReset are supported.
6880 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6882 * inferiors.h (inferior_target_data): Rename to ...
6883 (thread_target_data): ... this.
6884 (inferior_regcache_data): Rename to ...
6885 (thread_regcache_data): ... this.
6886 (set_inferior_regcache_data): Rename to ...
6887 (set_thread_regcache_data): ... this.
6888 * inferiors.c (inferior_target_data): Rename to ...
6889 (thread_target_data): ... this.
6890 (inferior_regcache_data): Rename to ...
6891 (thread_regcache_data): ... this.
6892 (set_inferior_regcache_data): Rename to ...
6893 (set_thread_regcache_data): ... this.
6894 (free_one_thread): Update.
6895 * linux-low.h (get_thread_lwp): Update.
6896 * regcache.c (get_thread_regcache): Update.
6897 (regcache_invalidate_thread): Update.
6898 (free_register_cache_thread): Update.
6899 * win32-i386-low.c (update_debug_registers_callback): Update.
6900 (win32_get_current_dr): Update.
6901 * win32-low.c (thread_rec): Update.
6902 (delete_thread_info): Update.
6903 (continue_one_thread): Update.
6904 (suspend_one_thread): Update.
6906 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6908 * inferiors.c (set_inferior_target_data): Remove.
6909 * inferiors.h (set_inferior_target_data): Remove.
6911 2017-08-18 Yao Qi <yao.qi@linaro.org>
6913 * Makefile.in (OBS): Add selftest.o.
6914 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6915 * configure, config.in: Re-generated.
6916 * server.c: Include common/sefltest.h.
6917 (captured_main): Handle option --selftest.
6919 2017-08-09 Yao Qi <yao.qi@linaro.org>
6921 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6922 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6923 i386-avx-mpx.o and i386-mmx.o.
6924 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6925 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6926 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6927 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6928 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6929 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6930 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6931 i386/amd64-avx-mpx.xml.
6933 2017-08-09 Yao Qi <yao.qi@linaro.org>
6935 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6936 and x32-avx-avx512.o.
6937 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6938 i386/x32-avx-avx512.xml.
6940 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6942 * tracepoint.h (enum class fast_tpoint_collect_result): New
6944 (fast_tracepoint_collecting): Change return type to
6945 fast_tpoint_collect_result.
6946 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6947 * linux-low.h: Include tracepoint.h.
6948 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6949 fast_tpoint_collect_result.
6950 * linux-low.c (handle_tracepoints): Adjust.
6951 (linux_fast_tracepoint_collecting): Change return type to
6952 fast_tpoint_collect_result.
6953 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6954 linux_wait_1, stuck_in_jump_pad_callback,
6955 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6956 proceed_one_lwp): Adjust to type change.
6958 2017-07-10 Yao Qi <yao.qi@linaro.org>
6960 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6962 2017-06-29 Yao Qi <yao.qi@linaro.org>
6964 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6966 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6968 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6970 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6972 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6974 * linux-low.c (linux_create_inferior): Adjust code to access the
6975 environment information via 'gdb_environ' class.
6976 * lynx-low.c (lynx_create_inferior): Likewise.
6977 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6978 (get_environ): Return a pointer to 'our_environ'.
6979 (captured_main): Initialize 'our_environ'.
6980 * server.h (get_environ): Adjust prototype.
6981 * spu-low.c (spu_create_inferior): Adjust code to access the
6982 environment information via 'gdb_environ' class.
6984 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6986 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6987 usage of "register" keyword.
6989 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6991 * configure: Re-generate.
6993 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6995 * configure: Re-generate.
6997 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6999 * Makefile.in (COMPILE.pre): Add "-x c++".
7001 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7003 * fork-child.c: Conditionally include <signal.h>.
7005 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7007 * server.c (handle_general_set): Handle new packet
7008 "QStartupWithShell".
7009 (handle_query): Add "QStartupWithShell" to the list of supported
7011 (gdbserver_usage): Add help text explaining the
7012 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7014 (captured_main): Recognize and act upon the presence of the new
7017 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7018 Pedro Alves <palves@redhat.com>
7020 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7021 * configure: Regenerate.
7022 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7024 (i[34567]86-*-lynxos*): Likewise.
7025 (spu*-*-*): Likewise.
7026 * fork-child.c: New file.
7027 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7029 (linux_ptrace_fun): New function.
7030 (linux_create_inferior): Adjust function prototype to reflect
7031 change on "target.h". Adjust function code to use
7033 (linux_request_interrupt): Delete "signal_pid".
7034 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7035 (lynx_ptrace_fun): New function.
7036 (lynx_create_inferior): Adjust function prototype to reflect
7037 change on "target.h". Adjust function code to use
7039 * nto-low.c (nto_create_inferior): Adjust function prototype and
7040 code to reflect change on "target.h". Update comments.
7041 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7042 "common-terminal.h" and "environ.h".
7043 (terminal_fd): Moved to fork-child.c.
7044 (old_foreground_pgrp): Likewise.
7045 (restore_old_foreground_pgrp): Likewise.
7046 (last_status): Make it global.
7047 (last_ptid): Likewise.
7048 (our_environ): New variable.
7049 (startup_with_shell): Likewise.
7050 (program_name): Likewise.
7051 (program_argv): Rename to...
7052 (program_args): ...this.
7053 (wrapper_argv): New variable.
7054 (start_inferior): Delete function.
7055 (get_exec_wrapper): New function.
7056 (get_exec_file): Likewise.
7057 (get_environ): Likewise.
7058 (prefork_hook): Likewise.
7059 (post_fork_inferior): Likewise.
7060 (postfork_hook): Likewise.
7061 (postfork_child_hook): Likewise.
7062 (handle_v_run): Update code to deal with arguments coming from the
7063 remote host. Update calls from "start_inferior" to
7065 (captured_main): Likewise. Initialize environment variable. Call
7067 * server.h (post_fork_inferior): New prototype.
7068 (get_environ): Likewise.
7069 (last_status): Declare.
7070 (last_ptid): Likewise.
7071 (signal_pid): Likewise.
7072 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7073 (spu_ptrace_fun): New function.
7074 (spu_create_inferior): Adjust function prototype to reflect change
7075 on "target.h". Adjust function code to use "fork_inferior".
7076 * target.c (target_terminal_init): New function.
7077 (target_terminal_inferior): Likewise.
7078 (target_terminal_ours): Likewise.
7079 * target.h: Include <vector>.
7080 (struct target_ops) <create_inferior>: Update prototype.
7081 (create_inferior): Update macro.
7082 * utils.c (gdb_flush_out_err): New function.
7083 * win32-low.c (win32_create_inferior): Adjust function prototype
7084 and code to reflect change on "target.h".
7086 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7088 * inferiors.c (switch_to_thread): New function.
7090 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7092 * Makefile.in (SFILE): Add "common/job-control.c".
7093 (OBS): Add "job-control.o".
7095 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7097 * Makefile: Remove "@host_makefile_frag@".
7099 2017-05-05 Pedro Alves <palves@redhat.com>
7101 * configure: Regenerate.
7103 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7105 * configure: Regenerate.
7107 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7109 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7110 software_single_step change of return type to
7111 std::vector<CORE_ADDR>.
7112 * linux-low.c (install_software_single_step_breakpoints):
7114 * linux-low.h (install_software_single_step_breakpoints):
7117 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7119 * remote-utils.c: Include "gdb_termios.h" instead of
7121 * terminal.h: Delete file.
7123 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7125 * server.c: Include <vector>.
7126 <program_argv, wrapper_argv>: Convert to std::vector.
7127 (start_inferior): Rewrite function to use C++.
7128 (handle_v_run): Likewise. Update code that calculates the argv
7129 based on the vRun packet; use C++.
7130 (captured_main): Likewise.
7132 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7134 * server.c (handle_v_cont): Initialize thread_resume::thread
7137 2017-04-05 Pedro Alves <palves@redhat.com>
7139 * configure: Regenerate.
7141 2017-04-05 Pedro Alves <palves@redhat.com>
7143 * gdbreplay.c (sync_error): Constify.
7144 * linux-x86-low.c (push_opcode): Constify.
7146 2017-04-05 Pedro Alves <palves@redhat.com>
7148 * win32-low.c (get_child_debug_event)
7149 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7150 Report TARGET_WAITKIND_SPURIOUS instead.
7152 2017-04-05 Pedro Alves <palves@redhat.com>
7154 * remote-utils.c (remote_prepare, remote_open): Constify.
7155 * remote-utils.h (remote_prepare, remote_open): Constify.
7156 * server.c (captured_main): Constify 'port' handling.
7158 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7160 * Makefile.in (clean): Clear .deps.
7162 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7164 * .gitignore: Remove generated files, replace with wildcard.
7165 * (clean): Replace removal of generated files with wildcard.
7166 (version.c): Replace with...
7167 (version-generated.c): ...this.
7168 (xml-builtin.c): Replace with...
7169 (xml-builtin-generated.c): ...this.
7170 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7171 (%.c: *regformats*): Replace with...
7172 (%-generated.c: *regformats*): ...this.
7174 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7176 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7177 (xtensa_fill_gregset): Call collect_register_by_name for
7179 (xtensa_store_gregset): Call supply_register_by_name for
7182 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7184 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7185 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7186 (xtensa_store_gregset): Call supply_register for all registers in
7187 a0_regnum..a0_regnum + C0_NREGS range.
7189 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7191 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7192 (ax-ipa.o: ax.c): Remove.
7193 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7194 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7195 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7196 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7197 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7199 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7201 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7202 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7203 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7204 (errors-ipa.o: ../common/errors.c): Remove.
7205 (format-ipa.o: ../common/format.c): Remove.
7206 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7208 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7210 * Makefile.in (%-ipa.o: %.c): New rule.
7211 (tracepoint-ipa.o: tracepoint.c): Remove.
7212 (utils-ipa.o: utils.c): Remove.
7213 (remote-utils-ipa.o: remote-utils.c): Remove.
7214 (regcache-ipa.o: regcache.c): Remove.
7215 (i386-linux-ipa.o: i386-linux.c): Remove.
7216 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7217 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7218 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7219 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7220 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7221 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7222 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7223 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7224 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7225 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7226 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7227 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7228 (aarch64-ipa.o: aarch64.c): Remove.
7229 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7230 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7231 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7232 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7233 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7234 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7235 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7236 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7237 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7238 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7239 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7240 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7241 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7242 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7243 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7244 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7245 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7246 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7247 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7248 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7249 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7250 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7251 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7252 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7253 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7254 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7255 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7256 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7257 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7258 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7259 (tdesc-ipa.o: tdesc.c): Remove.
7260 (x32-linux-ipa.o: x32-linux.c): Remove.
7261 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7262 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7264 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7266 * Makefile.in (%.o: ../arch/%.c): New rule.
7267 (arm.o: ../arch/arm.c): Remove.
7268 (arm-linux.o: ../arch/arm-linux.c): Remove.
7269 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7270 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7272 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7274 * Makefile.in (%.o: ../nat/%.c): New rule.
7275 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7276 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7277 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7278 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7279 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7280 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7281 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7282 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7283 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7284 (linux-personality.o: ../nat/linux-personality.c): Remove.
7285 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7286 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7287 (x86-linux.o: ../nat/x86-linux.c): Remove.
7288 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7289 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7291 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7293 * Makefile.in (%.o: ../common/%.c): New rule.
7294 (signals.o: ../common/signals.c): Remove.
7295 (print-utils.o: ../common/print-utils.c): Remove.
7296 (rsp-low.o: ../common/rsp-low.c): Remove.
7297 (common-utils.o: ../common/common-utils.c): Remove.
7298 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7299 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7300 (vec.o: ../common/vec.c): Remove.
7301 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7302 (xml-utils.o: ../common/xml-utils.c): Remove.
7303 (ptid.o: ../common/ptid.c): Remove.
7304 (buffer.o: ../common/buffer.c): Remove.
7305 (format.o: ../common/format.c): Remove.
7306 (filestuff.o: ../common/filestuff.c): Remove.
7307 (agent.o: ../common/agent.c): Remove.
7308 (errors.o: ../common/errors.c): Remove.
7309 (environ.o: ../common/environ.c): Remove.
7310 (common-debug.o: ../common/common-debug.c): Remove.
7311 (cleanups.o: ../common/cleanups.c): Remove.
7312 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7313 (fileio.o: ../common/fileio.c): Remove.
7314 (common-regcache.o: ../common/common-regcache.c): Remove.
7315 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7316 (new-op.o: ../common/new-op.c): Remove.
7317 (btrace-common.o: ../common/btrace-common.c): Remove.
7319 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7321 * Makefile.in (%.o: ../target/%.c): New rule.
7322 (waitstatus.o: ../target/waitstatus.c): Remove.
7324 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7327 (%.c: ../regformats/%.dat,
7328 (%.c: ../regformats/arm/%.dat,
7329 (%.c: ../regformats/i386/%.dat,
7330 (%.c: ../regformats/rs6000/%.dat): New rules.
7331 (aarch64.c): Remove.
7332 (reg-arm.c): Remove.
7333 (arm-with-iwmmxt.c): Remove.
7334 (arm-with-vfpv2.c): Remove.
7335 (arm-with-vfpv3.c): Remove.
7336 (arm-with-neon.c): Remove.
7337 (reg-bfin.c): Remove.
7338 (reg-cris.c): Remove.
7339 (reg-crisv32.c): Remove.
7341 (i386-linux.c): Remove.
7342 (i386-avx.c): Remove.
7343 (i386-avx-linux.c): Remove.
7344 (i386-avx-avx512.c): Remove.
7345 (i386-avx-avx512-linux.c): Remove.
7346 (i386-mpx.c): Remove.
7347 (i386-mpx-linux.c): Remove.
7348 (i386-avx-mpx-avx512-pku.c): Remove.
7349 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7350 (i386-avx-mpx.c): Remove.
7351 (i386-avx-mpx-linux.c): Remove.
7352 (i386-mmx.c): Remove.
7353 (i386-mmx-linux.c): Remove.
7354 (reg-ia64.c): Remove.
7355 (reg-m32r.c): Remove.
7356 (reg-m68k.c): Remove.
7358 (mips-linux.c): Remove.
7359 (mips-dsp-linux.c): Remove.
7360 (mips64-linux.c): Remove.
7361 (mips64-dsp-linux.c): Remove.
7362 (nios2-linux.c): Remove.
7363 (powerpc-32.c): Remove.
7364 (powerpc-32l.c): Remove.
7365 (powerpc-altivec32l.c): Remove.
7366 (powerpc-cell32l.c): Remove.
7367 (powerpc-vsx32l.c): Remove.
7368 (powerpc-isa205-32l.c): Remove.
7369 (powerpc-isa205-altivec32l.c): Remove.
7370 (powerpc-isa205-vsx32l.c): Remove.
7371 (powerpc-e500l.c): Remove.
7372 (powerpc-64l.c): Remove.
7373 (powerpc-altivec64l.c): Remove.
7374 (powerpc-cell64l.c): Remove.
7375 (powerpc-vsx64l.c): Remove.
7376 (powerpc-isa205-64l.c): Remove.
7377 (powerpc-isa205-altivec64l.c): Remove.
7378 (powerpc-isa205-vsx64l.c): Remove.
7379 (s390-linux32.c): Remove.
7380 (s390-linux32v1.c): Remove.
7381 (s390-linux32v2.c): Remove.
7382 (s390-linux64.c): Remove.
7383 (s390-linux64v1.c): Remove.
7384 (s390-linux64v2.c): Remove.
7385 (s390-te-linux64.c): Remove.
7386 (s390-vx-linux64.c): Remove.
7387 (s390-tevx-linux64.c): Remove.
7388 (s390x-linux64.c): Remove.
7389 (s390x-linux64v1.c): Remove.
7390 (s390x-linux64v2.c): Remove.
7391 (s390x-te-linux64.c): Remove.
7392 (s390x-vx-linux64.c): Remove.
7393 (s390x-tevx-linux64.c): Remove.
7394 (tic6x-c64xp-linux.c): Remove.
7395 (tic6x-c64x-linux.c): Remove.
7396 (tic6x-c62x-linux.c): Remove.
7398 (reg-sparc64.c): Remove.
7399 (reg-spu.c): Remove.
7401 (amd64-linux.c): Remove.
7402 (amd64-avx.c): Remove.
7403 (amd64-avx-linux.c): Remove.
7404 (amd64-avx-avx512.c): Remove.
7405 (amd64-avx-avx512-linux.c): Remove.
7406 (amd64-mpx.c): Remove.
7407 (amd64-mpx-linux.c): Remove.
7408 (amd64-avx-mpx-avx512-pku.c): Remove.
7409 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7410 (amd64-avx-mpx.c): Remove.
7411 (amd64-avx-mpx-linux.c): Remove.
7413 (x32-linux.c): Remove.
7414 (x32-avx.c): Remove.
7415 (x32-avx-linux.c): Remove.
7416 (x32-avx-avx512.c): Remove.
7417 (x32-avx-avx512-linux.c): Remove.
7418 (reg-xtensa.c): Remove.
7419 (reg-tilegx.c): Remove.
7420 (reg-tilegx32.c): Remove.
7422 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7424 * Makefile.in (SFILES): Add "common/environ.c".
7425 (OBJS): Add "common/environ.h".
7427 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7429 * configure.ac: Check if the fs_base and gs_base members of
7430 `struct user_regs_struct' exist.
7431 * config.in: Regenerated.
7432 * configure: Likewise.
7434 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7436 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7438 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7439 (get_next_pcs_syscall_next_pc): Likewise.
7441 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7443 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7444 * nto-x86-low.c: Likewise.
7446 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7448 * Makefile.in: Include disable-implicit-rules.mk.
7450 2016-11-23 Pedro Alves <palves@redhat.com>
7452 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7453 (debug_vprintf): Use std::chrono::steady_clock instead of
7454 gettimeofday. Use '.' instead of ':'.
7455 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7456 (get_timestamp): Use std::chrono::steady_clock instead of
7459 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7461 * Makefile.in: Fix whitespace formatting.
7463 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7465 * Makefile.in (SFILES, OBS): Flatten list and order
7468 2016-11-23 Pedro Alves <palves@redhat.com>
7470 * event-loop.c (handle_file_event): Use warning.
7471 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7472 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7475 2016-11-23 Pedro Alves <palves@redhat.com>
7477 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7479 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7480 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7481 debug_printf and debug_flush for debug output.
7482 * server.c (handle_general_set): Likewise.
7483 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7486 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7488 * Makefile.in (.c.o): Replace rule with ...
7489 (%.o: %.c): ... this one.
7491 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7493 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7494 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7496 * configure.ac: Remove checks for the make program.
7497 * configure: Re-generate.
7499 2016-10-28 Pedro Alves <palves@redhat.com>
7501 * Makefile.in (CXX_DIALECT): Get from configure.
7502 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7503 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7504 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7505 * config.in: Regenerate.
7506 * configure: Regenerate.
7508 2016-10-27 Yao Qi <yao.qi@linaro.org>
7510 * linux-low.c (linux_supports_range_stepping): Return true if
7511 can_software_single_step return true.
7513 2016-10-27 Yao Qi <yao.qi@linaro.org>
7515 * inferiors.c (find_inferior_in_random): New function.
7516 * inferiors.h (find_inferior_in_random): Declare.
7517 * linux-low.c (linux_wait_for_event_filtered): Call
7518 find_inferior_in_random instead of find_inferior.
7520 2016-10-27 Yao Qi <yao.qi@linaro.org>
7522 * linux-low.c (linux_wait_1): If single-step breakpoints are
7523 inserted, remove them.
7525 2016-10-26 Pedro Alves <palves@redhat.com>
7527 * linux-low.c (handle_extended_wait): Link parent/child fork
7529 (linux_wait_1): Unlink them.
7530 (linux_set_resume_request): Ignore resume requests for
7531 already-resumed and unhandled fork child threads.
7532 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7533 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7535 (handle_v_requests) <vCont>: Don't call require_running.
7536 * server.h (in_queued_stop_replies): New declaration.
7538 2016-10-24 Yao Qi <yao.qi@linaro.org>
7541 * linux-aarch64-low.c (append_insns): Cast the return value to
7544 2016-10-10 Yao Qi <yao.qi@linaro.org>
7546 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7548 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7550 * target.c (target_supports_multi_process): New function, moved
7552 * target.h (target_supports_multi_process): ... here. Remove
7555 2016-10-05 Tom Tromey <tom@tromey.com>
7558 * tracepoint.c (handle_tracepoint_bkpts): Check
7559 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7561 2016-10-05 Yao Qi <yao.qi@linaro.org>
7563 * configure.srv: Update the path of arm-*.xml files.
7565 2016-10-05 Terry Guo <terry.guo@arm.com>
7566 Yao Qi <yao.qi@linaro.org>
7568 * Makefile.in: Adjust the path of rules.
7569 * configure.srv: Update the path of xml files.
7570 * regformats/arm-with-iwmmxt.dat: Regenerated.
7571 * regformats/arm-with-neon.dat: Likewise.
7572 * regformats/arm-with-vfpv2.dat: Likewise.
7573 * regformats/arm-with-vfpv3.dat Likewise.
7575 2016-09-30 Yao Qi <yao.qi@linaro.org>
7578 * target.c (target_stop_and_wait): Don't call
7579 target_continue_no_signal, use resume_stop instead.
7581 2016-09-26 Yao Qi <yao.qi@linaro.org>
7583 * linux-low.c (linux_wait_1): Call debug_exit.
7585 2016-09-23 Pedro Alves <palves@redhat.com>
7587 * Makefile.in (SFILES): Add common/new-op.c.
7588 (OBS): Add common/new-op.o.
7589 (new-op.o): New rule.
7591 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7593 * .gitinore: Ignore more files.
7595 2016-09-21 Yao Qi <yao.qi@linaro.org>
7597 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7600 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7602 * server.c (start_inferior): Call target_mourn_inferior instead of
7603 mourn_inferior; pass ptid_t argument to it.
7605 (handle_target_event): Likewise.
7606 * target.c (target_mourn_inferior): New function.
7607 * target.h (mourn_inferior): Delete macro.
7609 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7611 * linux-low.c (lwp_is_stepping): New function.
7613 2016-09-06 Carl Love <cel@us.ibm.com>
7615 * server.c (start_inferior): Fixed comment, requested comment change
7616 didn't get updated correctly. Removed reference to ptrace () call as
7617 it is only true on Linux systems.
7619 2016-09-06 Carl Love <cel@us.ibm.com>
7621 * server.c (start_inferior): Do not call
7622 function target_post_create_inferior () if the
7623 inferior process has already exited.
7625 2016-09-05 Pedro Alves <palves@redhat.com>
7627 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7628 (COMPILE.pre, CC_LD): Use CXX directly.
7629 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7630 * acinclude.m4: Don't include build-with-cxx.m4.
7631 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7632 * configure: Regenerate.
7634 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7637 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7638 call writing data to own_buf.
7640 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7642 * target.c (mywait): Call target_wait instead of
7644 (target_wait): New function.
7646 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7648 * server.c (start_inferior): New variable 'ptid'. Replace calls
7649 to the_target->resume by target_continue{,_no_signal}, depending
7651 * target.c (target_stop_and_wait): Call target_continue_no_signal
7652 instead of the_target->resume.
7653 (target_continue): New function.
7655 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7657 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7659 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7662 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7664 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7665 * linux-arm-low.c (ps_get_thread_area): Likewise.
7666 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7667 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7668 * linux-mips-low.c (ps_get_thread_area): Likewise.
7669 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7670 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7671 * linux-x86-low.c (ps_get_thread_area): Likewise.
7672 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7674 2016-08-19 Pedro Alves <palves@redhat.com>
7676 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7678 2016-08-19 Pedro Alves <palves@redhat.com>
7680 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7681 comment. Use memcpy instead of casting through unsigned long.
7683 2016-08-19 Pedro Alves <palves@redhat.com>
7685 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7686 allocating around 0x80000000.
7688 2016-08-19 Pedro Alves <palves@redhat.com>
7691 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7692 (x32-avx512-linux-ipa.o): New rules.
7693 * configure.ac (x86_64-*-linux*): New x32 check.
7694 * configure.srv (ipa_x32_linux_regobj): New.
7695 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7696 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7698 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7700 * configure: Regenerate.
7702 2016-08-09 Pedro Alves <palves@redhat.com>
7705 * Makefile.in (OBS): Add signals-state-save-restore.o.
7706 (signals-state-save-restore.o): New rule.
7707 * config.in: Regenerate.
7708 * configure: Regenerate.
7709 * linux-low.c: Include "signals-state-save-restore.h".
7710 (linux_create_inferior): Call
7711 restore_original_signals_state.
7712 * server.c: Include "dispositions-save-restore.h".
7713 (captured_main): Call save_original_signals_state.
7715 2016-08-05 Pedro Alves <palves@redhat.com>
7717 * configure: Regenerate.
7719 2016-08-04 Yao Qi <yao.qi@linaro.org>
7721 * linux-low.c (regsets_fetch_inferior_registers): Check
7722 errno is ESRCH or not.
7724 2016-08-02 Yao Qi <yao.qi@linaro.org>
7726 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7727 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7728 (thread_db_load_search): Update.
7729 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7730 td_ta_set_event and td_ta_event_getmsg.
7732 2016-07-26 Pedro Alves <palves@redhat.com>
7735 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7736 of unsigned long for 64-bit registers and use uint32_t instead of
7737 unsigned int for 32-bit registers.
7739 2016-07-26 Pedro Alves <palves@redhat.com>
7741 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7744 2016-07-21 Tom Tromey <tom@tromey.com>
7746 * configure: Rebuild.
7748 2016-07-21 Yao Qi <yao.qi@linaro.org>
7750 * mem-break.c (find_gdb_breakpoint): Cast bp to
7751 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7753 2016-07-21 Yao Qi <yao.qi@linaro.org>
7755 * server.c (handle_v_requests): Support s and S actions
7756 if target_supports_software_single_step return true.
7758 2016-07-21 Yao Qi <yao.qi@linaro.org>
7760 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7761 is resume_step, call maybe_hw_step.
7762 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7764 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7766 (proceed_one_lwp): If resume request is resume_step, install
7767 reinsert breakpoints and call maybe_hw_step.
7769 2016-07-21 Yao Qi <yao.qi@linaro.org>
7771 * linux-low.c (proceed_one_lwp): Declare.
7772 (linux_resume_one_thread): Remove local variable 'step'.
7773 Lift code enqueue signal. Call proceed_one_lwp instead of
7774 linux_resume_one_lwp.
7776 2016-07-21 Yao Qi <yao.qi@linaro.org>
7778 * linux-low.c (linux_resume_one_thread): Call
7779 enqueue_pending_signal.
7781 2016-07-21 Yao Qi <yao.qi@linaro.org>
7783 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7784 * inferiors.c (do_restore_current_thread_cleanup): New function.
7785 (make_cleanup_restore_current_thread): Likewise.
7786 * linux-low.c (install_software_single_step_breakpoints): Call
7787 make_cleanup_restore_current_thread. Switch current_thread to
7790 2016-07-21 Yao Qi <yao.qi@linaro.org>
7792 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7793 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7794 (clone_one_breakpoint): Likewise.
7795 (delete_reinsert_breakpoints): Change parameter to thread.
7797 (has_reinsert_breakpoints): Likewise.
7798 (uninsert_reinsert_breakpoints): Likewise.
7799 (reinsert_reinsert_breakpoints): Likewise.
7800 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7801 (delete_reinsert_breakpoints): Likewise.
7802 (reinsert_reinsert_breakpoints): Likewise.
7803 (uninsert_reinsert_breakpoints): Likewise.
7804 (has_reinsert_breakpoints): Likewise.
7806 2016-07-21 Yao Qi <yao.qi@linaro.org>
7808 * inferiors.c (get_thread_process): Make parameter const.
7809 * inferiors.h (get_thread_process): Update declaration.
7810 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7811 Add new parameters child_thread and parent_thread. Callers
7813 * mem-break.h (clone_all_breakpoints): Update declaration.
7815 2016-07-21 Yao Qi <yao.qi@linaro.org>
7817 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7818 <command_list, handler>: Remove.
7819 (struct gdb_breakpoint): New.
7820 (struct other_breakpoint): New.
7821 (struct reinsert_breakpoint): New.
7822 (is_gdb_breakpoint): New function.
7823 (any_persistent_commands): Update command_list if
7824 is_gdb_breakpoint returns true.
7825 (set_breakpoint): Create breakpoints according to their types.
7826 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7827 (set_gdb_breakpoint_1): Likewise.
7828 (set_gdb_breakpoint): Likewise.
7829 (clear_breakpoint_conditions): Change parameter type to
7830 'struct gdb_breakpoint *'.
7831 (clear_breakpoint_commands): Likewise.
7832 (clear_breakpoint_conditions_and_commands): Likewise.
7833 (add_condition_to_breakpoint): Likewise.
7834 (add_breakpoint_condition): Likewise.
7835 (add_commands_to_breakpoint): Likewise.
7836 (check_breakpoints): Check other_breakpoint.
7837 (clone_one_breakpoint): Clone breakpopint according to its type.
7838 * mem-break.h (struct gdb_breakpoint): Declare.
7839 (set_gdb_breakpoint): Update declaration.
7840 (clear_breakpoint_conditions_and_commands): Likewise.
7841 (add_breakpoint_condition): Likewise.
7842 (add_breakpoint_commands): Likewise.
7843 * server.c (process_point_options): Change parameter type to
7844 'struct gdb_breakpoint *'.
7846 2016-07-21 Yao Qi <yao.qi@linaro.org>
7848 * mem-break.c (set_breakpoint_at): Rename it to ...
7849 (set_breakpoint_type_at): ... it.
7850 (set_breakpoint_at): Call set_breakpoint_type_at.
7851 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7852 * mem-break.h (set_breakpoint_at): Update comments.
7854 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7856 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7858 (nios2_store_gregset): Likewise.
7860 2016-07-01 Pedro Alves <palves@redhat.com>
7861 Antoine Tremblay <antoine.tremblay@ericsson.com>
7863 * linux-low.c: Change interface to take the target lwp_info
7864 pointer directly and return void. Handle detaching from a zombie
7866 (linux_detach_lwp_callback): New function.
7867 (linux_detach): Detach from the leader thread after detaching from
7870 2016-06-28 Yao Qi <yao.qi@linaro.org>
7872 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7873 for variable new_offset.
7874 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7875 (aarch64_ftrace_insn_reloc_cb): Likewise.
7876 (aarch64_ftrace_insn_reloc_tb): Likewise.
7877 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7878 PRIx64 instead of PRIx32.
7880 2016-06-28 Yao Qi <yao.qi@linaro.org>
7882 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7883 (the_low_target): Install arm_get_syscall_trapinfo.
7885 2016-06-28 Yao Qi <yao.qi@linaro.org>
7887 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7889 (the_low_target): Install aarch64_get_syscall_trapinfo.
7891 2016-06-28 Yao Qi <yao.qi@linaro.org>
7893 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7895 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7896 Remove parameter sysno.
7897 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7900 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7902 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7903 (s390_emit_ne_goto): Likewise.
7904 (s390_emit_lt_goto): Likewise.
7905 (s390_emit_le_goto): Likewise.
7906 (s390_emit_gt_goto): Likewise.
7907 (s390_emit_ge_goto): Likewise.
7908 (s390x_emit_eq_goto): Likewise.
7909 (s390x_emit_ne_goto): Likewise.
7910 (s390x_emit_lt_goto): Likewise.
7911 (s390x_emit_le_goto): Likewise.
7912 (s390x_emit_gt_goto): Likewise.
7913 (s390x_emit_ge_goto): Likewise.
7914 (s390_emit_ops_impl): Mark variable static.
7915 (s390x_emit_ops): Likewise.
7917 2016-06-17 Yao Qi <yao.qi@linaro.org>
7919 * linux-low.c (handle_extended_wait): Call
7920 uninsert_reinsert_breakpoints for the parent process. Remove
7921 reinsert breakpoints from the child process. Reinsert them to
7922 the parent process when vfork is done.
7923 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7924 (reinsert_reinsert_breakpoints): New function.
7925 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7926 (reinsert_reinsert_breakpoints): Declare.
7928 2016-06-17 Yao Qi <yao.qi@linaro.org>
7930 * linux-low.c (handle_extended_wait): If the parent is doing
7931 step-over, remove the reinsert breakpoints from the forked child.
7933 2016-06-17 Yao Qi <yao.qi@linaro.org>
7935 * linux-low.c (unsuspend_all_lwps): Declare.
7936 (linux_low_filter_event): If thread exited, call finish_step_over.
7937 If step-over is finished, unsuspend other threads.
7939 2016-06-17 Yao Qi <yao.qi@linaro.org>
7941 * linux-low.c (linux_resume_one_lwp_throw): Assert
7942 has_reinsert_breakpoints returns false.
7943 * mem-break.c (delete_disabled_breakpoints): Assert
7944 bp type isn't reinsert_breakpoint.
7946 2016-06-17 Yao Qi <yao.qi@linaro.org>
7948 * linux-low.c (maybe_hw_step): New function.
7949 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7950 (finish_step_over): Switch current_thread to lwp temporarily,
7951 and assert has_reinsert_breakpoints returns true.
7952 (proceed_one_lwp): Call maybe_hw_step.
7953 * mem-break.c (has_reinsert_breakpoints): New function.
7954 * mem-break.h (has_reinsert_breakpoints): Declare.
7956 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7958 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7960 2016-05-17 Yao Qi <yao.qi@linaro.org>
7962 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7963 instead of find_inferior.
7965 2016-05-05 Yao Qi <yao.qi@linaro.org>
7967 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7968 Initialize res to zero.
7970 2016-05-05 Yao Qi <yao.qi@linaro.org>
7972 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7975 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7977 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7978 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7979 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7981 2016-04-28 Par Olsson <par.olsson@windriver.com>
7982 Simon Marchi <simon.marchi@ericsson.com>
7984 * tracepoint.c (write_inferior_int8): New function.
7985 (cmd_qtenable_disable): Write enable flag using
7986 write_inferior_int8.
7988 2016-04-25 Yao Qi <yao.qi@linaro.org>
7990 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7991 (need_step_over_p): Return zero if the LWP has pending signals
7992 can be delivered on software single step target.
7994 2016-04-25 Yao Qi <yao.qi@linaro.org>
7996 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7997 return instead of error.
7999 2016-04-22 Yao Qi <yao.qi@linaro.org>
8001 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8004 2016-04-22 Yao Qi <yao.qi@linaro.org>
8006 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8007 signal when stepping over breakpoint with software single
8010 2016-04-21 Pedro Alves <palves@redhat.com>
8012 * linux-s390-low.c (s390_collect_ptrace_register)
8013 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8015 (s390_check_regset): Use void * instead of gdb_byte *.
8017 2016-04-20 Pedro Alves <palves@redhat.com>
8019 * configure: Renegerate.
8021 2016-04-20 Yao Qi <yao.qi@linaro.org>
8023 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8024 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8026 (arm_store_gregset): Likewise.
8028 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8030 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8031 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8032 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8033 (amd64-avx-mpx-linux.c): New rules.
8034 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8035 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8036 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8037 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8038 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8039 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8040 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8041 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8042 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8043 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8044 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8045 * linux-x86-low.c (x86_linux_read_description): Add case for
8046 X86_XSTATE_AVX_MPX_MASK.
8047 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8048 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8049 init_registers_i386_avx_mpx_linux.
8050 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8051 (initialize_low_tracepoint): Call
8052 init_registers_i386_avx_mpx_linux.
8053 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8054 (initialize_low_tracepoint): Call
8055 init_registers_amd64_avx_mpx_linux.
8056 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8057 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8058 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8061 2016-04-18 Pedro Alves <palves@redhat.com>
8063 * configure: Regenerate.
8065 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8067 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8068 (aarch64_emit_sub): Likewise.
8070 2016-04-12 Pedro Alves <palves@redhat.com>
8072 * utils.c (prepare_to_throw_exception): Delete.
8074 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8076 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8078 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8080 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8082 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8084 * linux-aarch64-ipa.c: Add <elf.h> include.
8085 * linux-ppc-ipa.c: Add <elf.h> include.
8086 * linux-s390-ipa.c: Add <elf.h> include.
8088 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8090 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8091 (get_raw_reg_ptr): Likewise.
8092 (get_trace_state_variable_value_ptr): Likewise.
8093 (set_trace_state_variable_value_ptr): Likewise.
8094 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8097 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8098 Marcin Kościelnicki <koriakin@0x04.net>
8101 * linux-ppc-low.c (emit_insns): New function.
8102 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8103 (ppc_emit_prologue): New function.
8104 (ppc_emit_epilogue): New function.
8105 (ppc_emit_add): New function.
8106 (ppc_emit_sub): New function.
8107 (ppc_emit_mul): New function.
8108 (ppc_emit_lsh): New function.
8109 (ppc_emit_rsh_signed): New function.
8110 (ppc_emit_rsh_unsigned): New function.
8111 (ppc_emit_ext): New function.
8112 (ppc_emit_zero_ext): New function.
8113 (ppc_emit_log_not): New function.
8114 (ppc_emit_bit_and): New function.
8115 (ppc_emit_bit_or): New function.
8116 (ppc_emit_bit_xor): New function.
8117 (ppc_emit_bit_not): New function.
8118 (ppc_emit_equal): New function.
8119 (ppc_emit_less_signed): New function.
8120 (ppc_emit_less_unsigned): New function.
8121 (ppc_emit_ref): New function.
8122 (ppc_emit_const): New function.
8123 (ppc_emit_reg): New function.
8124 (ppc_emit_pop): New function.
8125 (ppc_emit_stack_flush): New function.
8126 (ppc_emit_swap): New function.
8127 (ppc_emit_stack_adjust): New function.
8128 (ppc_emit_call): New function.
8129 (ppc_emit_int_call_1): New function.
8130 (ppc_emit_void_call_2): New function.
8131 (ppc_emit_if_goto): New function.
8132 (ppc_emit_goto): New function.
8133 (ppc_emit_eq_goto): New function.
8134 (ppc_emit_ne_goto): New function.
8135 (ppc_emit_lt_goto): New function.
8136 (ppc_emit_le_goto): New function.
8137 (ppc_emit_gt_goto): New function.
8138 (ppc_emit_ge_goto): New function.
8139 (ppc_write_goto_address): New function.
8140 (ppc_emit_ops_impl): New static variable.
8141 (ppc64v1_emit_prologue): New function.
8142 (ppc64v2_emit_prologue): New function.
8143 (ppc64_emit_epilogue): New function.
8144 (ppc64_emit_add): New function.
8145 (ppc64_emit_sub): New function.
8146 (ppc64_emit_mul): New function.
8147 (ppc64_emit_lsh): New function.
8148 (ppc64_emit_rsh_signed): New function.
8149 (ppc64_emit_rsh_unsigned): New function.
8150 (ppc64_emit_ext): New function.
8151 (ppc64_emit_zero_ext): New function.
8152 (ppc64_emit_log_not): New function.
8153 (ppc64_emit_bit_and): New function.
8154 (ppc64_emit_bit_or): New function.
8155 (ppc64_emit_bit_xor): New function.
8156 (ppc64_emit_bit_not): New function.
8157 (ppc64_emit_equal): New function.
8158 (ppc64_emit_less_signed): New function.
8159 (ppc64_emit_less_unsigned): New function.
8160 (ppc64_emit_ref): New function.
8161 (ppc64_emit_const): New function.
8162 (ppc64v1_emit_reg): New function.
8163 (ppc64v2_emit_reg): New function.
8164 (ppc64_emit_pop): New function.
8165 (ppc64_emit_stack_flush): New function.
8166 (ppc64_emit_swap): New function.
8167 (ppc64v1_emit_call): New function.
8168 (ppc64v2_emit_call): New function.
8169 (ppc64v1_emit_int_call_1): New function.
8170 (ppc64v2_emit_int_call_1): New function.
8171 (ppc64v1_emit_void_call_2): New function.
8172 (ppc64v2_emit_void_call_2): New function.
8173 (ppc64_emit_if_goto): New function.
8174 (ppc64_emit_eq_goto): New function.
8175 (ppc64_emit_ne_goto): New function.
8176 (ppc64_emit_lt_goto): New function.
8177 (ppc64_emit_le_goto): New function.
8178 (ppc64_emit_gt_goto): New function.
8179 (ppc64_emit_ge_goto): New function.
8180 (ppc64v1_emit_ops_impl): New static variable.
8181 (ppc64v2_emit_ops_impl): New static variable.
8182 (ppc_emit_ops): New function.
8183 (linux_low_target): Wire in ppc_emit_ops.
8185 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8186 Marcin Kościelnicki <koriakin@0x04.net>
8189 * Makefile.in: Add powerpc-*-ipa.o
8190 * configure.srv: Add ipa_obj for powerpc*-linux.
8191 * linux-ppc-ipa.c: New file.
8192 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8194 (PPC_FIELD): New macro.
8195 (PPC_SEXT): New macro.
8196 (PPC_OP6): New macro.
8197 (PPC_BO): New macro.
8198 (PPC_LI): New macro.
8199 (PPC_BD): New macro.
8200 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8201 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8202 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8203 (ppc_get_thread_area): New function.
8204 (is_elfv2_inferior): New function.
8205 (gen_ds_form): New function.
8206 (GEN_STD): New macro.
8207 (GEN_STDU): New macro.
8208 (GEN_LD): New macro.
8209 (GEN_LDU): New macro.
8210 (gen_d_form): New function.
8211 (GEN_ADDI): New macro.
8212 (GEN_ADDIS): New macro.
8213 (GEN_LI): New macro.
8214 (GEN_LIS): New macro.
8215 (GEN_ORI): New macro.
8216 (GEN_ORIS): New macro.
8217 (GEN_LWZ): New macro.
8218 (GEN_STW): New macro.
8219 (GEN_STWU): New macro.
8220 (gen_xfx_form): New function.
8221 (GEN_MFSPR): New macro.
8222 (GEN_MTSPR): New macro.
8223 (GEN_MFCR): New macro.
8224 (GEN_MTCR): New macro.
8225 (GEN_SYNC): New macro.
8226 (GEN_LWSYNC): New macro.
8227 (gen_x_form): New function.
8228 (GEN_OR): New macro.
8229 (GEN_MR): New macro.
8230 (GEN_LWARX): New macro.
8231 (GEN_STWCX): New macro.
8232 (GEN_CMPW): New macro.
8233 (gen_md_form): New function.
8234 (GEN_RLDICL): New macro.
8235 (GEN_RLDICR): New macro.
8236 (gen_i_form): New function.
8238 (GEN_BL): New macro.
8239 (gen_b_form): New function.
8240 (GEN_BNE): New macro.
8241 (GEN_LOAD): New macro.
8242 (GEN_STORE): New macro.
8243 (gen_limm): New function.
8244 (gen_atomic_xchg): New function.
8245 (gen_call): New function.
8246 (ppc_relocate_instruction): New function.
8247 (ppc_install_fast_tracepoint_jump_pad): New function.
8248 (ppc_get_min_fast_tracepoint_insn_len): New function.
8249 (ppc_get_ipa_tdesc_idx): New function.
8250 (the_low_target): Wire in the new functions.
8251 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8253 * linux-ppc-tdesc.h: New file.
8255 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8257 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8258 (alloc_jump_pad_buffer): New function.
8259 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8260 (alloc_jump_pad_buffer): New function.
8261 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8262 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8263 (alloc_jump_pad_buffer): New function.
8264 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8265 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8266 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8267 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8269 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8271 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8272 * linux-amd64-ipa.c: Likewise.
8273 * linux-i386-ipa.c: Likewise.
8274 * linux-s390-ipa.c: Likewise.
8275 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8276 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8277 set_trace_state_variable_value_ptr.
8278 (struct ipa_sym_addresses): Likewise.
8279 (symbol_list): Likewise.
8280 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8281 accessing gdb_collect directly.
8282 (gdb_collect_ptr_type): New typedef.
8283 (get_raw_reg_ptr_type): New typedef.
8284 (get_trace_state_variable_value_ptr_type): New typedef.
8285 (set_trace_state_variable_value_ptr_type): New typedef.
8286 (gdb_collect_ptr): New global.
8287 (get_raw_reg_ptr): New global.
8288 (get_trace_state_variable_value_ptr): New global.
8289 (set_trace_state_variable_value_ptr): New global.
8290 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8291 accessing get_raw_reg directly.
8292 (get_get_tsv_func_addr): Likewise for
8293 get_trace_state_variable_value_ptr.
8294 (get_set_tsv_func_addr): Likewise for
8295 set_trace_state_variable_value_ptr.
8296 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8298 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8300 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8302 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8304 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8306 (relocate_instruction): Remove own_buf.
8307 * server.c (own_buf): Make global.
8308 (handle_v_requests): Make global.
8309 * server.h (own_buf): New declaration.
8310 (handle_v_requests): New prototype.
8312 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8315 * linux-s390-low.c (add_insns): New function.
8316 (s390_emit_prologue): New function.
8317 (s390_emit_epilogue): New function.
8318 (s390_emit_add): New function.
8319 (s390_emit_sub): New function.
8320 (s390_emit_mul): New function.
8321 (s390_emit_lsh): New function.
8322 (s390_emit_rsh_signed): New function.
8323 (s390_emit_rsh_unsigned): New function.
8324 (s390_emit_ext): New function.
8325 (s390_emit_log_not): New function.
8326 (s390_emit_bit_and): New function.
8327 (s390_emit_bit_or): New function.
8328 (s390_emit_bit_xor): New function.
8329 (s390_emit_bit_not): New function.
8330 (s390_emit_equal): New function.
8331 (s390_emit_less_signed): New function.
8332 (s390_emit_less_unsigned): New function.
8333 (s390_emit_ref): New function.
8334 (s390_emit_if_goto): New function.
8335 (s390_emit_goto): New function.
8336 (s390_write_goto_address): New function.
8337 (s390_emit_litpool): New function.
8338 (s390_emit_const): New function.
8339 (s390_emit_call): New function.
8340 (s390_emit_reg): New function.
8341 (s390_emit_pop): New function.
8342 (s390_emit_stack_flush): New function.
8343 (s390_emit_zero_ext): New function.
8344 (s390_emit_swap): New function.
8345 (s390_emit_stack_adjust): New function.
8346 (s390_emit_set_r2): New function.
8347 (s390_emit_int_call_1): New function.
8348 (s390_emit_void_call_2): New function.
8349 (s390_emit_eq_goto): New function.
8350 (s390_emit_ne_goto): New function.
8351 (s390_emit_lt_goto): New function.
8352 (s390_emit_le_goto): New function.
8353 (s390_emit_gt_goto): New function.
8354 (s390_emit_ge_goto): New function.
8355 (s390x_emit_prologue): New function.
8356 (s390x_emit_epilogue): New function.
8357 (s390x_emit_add): New function.
8358 (s390x_emit_sub): New function.
8359 (s390x_emit_mul): New function.
8360 (s390x_emit_lsh): New function.
8361 (s390x_emit_rsh_signed): New function.
8362 (s390x_emit_rsh_unsigned): New function.
8363 (s390x_emit_ext): New function.
8364 (s390x_emit_log_not): New function.
8365 (s390x_emit_bit_and): New function.
8366 (s390x_emit_bit_or): New function.
8367 (s390x_emit_bit_xor): New function.
8368 (s390x_emit_bit_not): New function.
8369 (s390x_emit_equal): New function.
8370 (s390x_emit_less_signed): New function.
8371 (s390x_emit_less_unsigned): New function.
8372 (s390x_emit_ref): New function.
8373 (s390x_emit_if_goto): New function.
8374 (s390x_emit_const): New function.
8375 (s390x_emit_call): New function.
8376 (s390x_emit_reg): New function.
8377 (s390x_emit_pop): New function.
8378 (s390x_emit_stack_flush): New function.
8379 (s390x_emit_zero_ext): New function.
8380 (s390x_emit_swap): New function.
8381 (s390x_emit_stack_adjust): New function.
8382 (s390x_emit_int_call_1): New function.
8383 (s390x_emit_void_call_2): New function.
8384 (s390x_emit_eq_goto): New function.
8385 (s390x_emit_ne_goto): New function.
8386 (s390x_emit_lt_goto): New function.
8387 (s390x_emit_le_goto): New function.
8388 (s390x_emit_gt_goto): New function.
8389 (s390x_emit_ge_goto): New function.
8390 (s390_emit_ops): New function.
8391 (struct linux_target_ops): Fill in emit_ops hook.
8393 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8396 * Makefile.in: Add s390 IPA files.
8397 * configure.srv: Build IPA for s390.
8398 * linux-s390-ipa.c: New file.
8399 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8400 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8401 (tdesc_s390_linux32): Likewise.
8402 (init_registers_s390_linux32v1): Likewise.
8403 (tdesc_s390_linux32v1): Likewise.
8404 (init_registers_s390_linux32v2): Likewise.
8405 (tdesc_s390_linux32v2): Likewise.
8406 (init_registers_s390_linux64): Likewise.
8407 (tdesc_s390_linux64): Likewise.
8408 (init_registers_s390_linux64v1): Likewise.
8409 (tdesc_s390_linux64v1): Likewise.
8410 (init_registers_s390_linux64v2): Likewise.
8411 (tdesc_s390_linux64v2): Likewise.
8412 (init_registers_s390_te_linux64): Likewise.
8413 (tdesc_s390_te_linux64): Likewise.
8414 (init_registers_s390_vx_linux64): Likewise.
8415 (tdesc_s390_vx_linux64): Likewise.
8416 (init_registers_s390_tevx_linux64): Likewise.
8417 (tdesc_s390_tevx_linux64): Likewise.
8418 (init_registers_s390x_linux64): Likewise.
8419 (tdesc_s390x_linux64): Likewise.
8420 (init_registers_s390x_linux64v1): Likewise.
8421 (tdesc_s390x_linux64v1): Likewise.
8422 (init_registers_s390x_linux64v2): Likewise.
8423 (tdesc_s390x_linux64v2): Likewise.
8424 (init_registers_s390x_te_linux64): Likewise.
8425 (tdesc_s390x_te_linux64): Likewise.
8426 (init_registers_s390x_vx_linux64): Likewise.
8427 (tdesc_s390x_vx_linux64): Likewise.
8428 (init_registers_s390x_tevx_linux64): Likewise.
8429 (tdesc_s390x_tevx_linux64): Likewise.
8430 (have_hwcap_s390_vx): New static variable.
8431 (s390_arch_setup): Fill have_hwcap_s390_vx.
8432 (s390_get_thread_area): New function.
8433 (s390_ft_entry_gpr_esa): New const.
8434 (s390_ft_entry_gpr_zarch): New const.
8435 (s390_ft_entry_misc): New const.
8436 (s390_ft_entry_fr): New const.
8437 (s390_ft_entry_vr): New const.
8438 (s390_ft_main_31): New const.
8439 (s390_ft_main_64): New const.
8440 (s390_ft_exit_fr): New const.
8441 (s390_ft_exit_vr): New const.
8442 (s390_ft_exit_misc): New const.
8443 (s390_ft_exit_gpr_esa): New const.
8444 (s390_ft_exit_gpr_zarch): New const.
8445 (append_insns): New function.
8446 (s390_relocate_instruction): New function.
8447 (s390_install_fast_tracepoint_jump_pad): New function.
8448 (s390_get_min_fast_tracepoint_insn_len): New function.
8449 (s390_get_ipa_tdesc_idx): New function.
8450 (struct linux_target_ops): Wire in the above functions.
8451 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8452 * linux-s390-tdesc.h: New file.
8454 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8456 * linux-s390-low.c (s390_supports_tracepoints): New function.
8457 (struct linux_target_ops): Fill supports_tracepoints hook.
8459 2016-03-18 Yao Qi <yao.qi@linaro.org>
8461 * linux-low.c (lwp_signal_can_be_delivered): New function.
8462 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8464 2016-03-18 Yao Qi <yao.qi@linaro.org>
8466 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8467 0 if signal is enqueued. Remove 'signal' from one debugging
8468 message. Move one debugging message to some lines below.
8469 Remove code setting 'signal' to 0.
8471 2016-03-18 Yao Qi <yao.qi@linaro.org>
8473 * linux-low.c (linux_low_filter_event): Remove redundant
8474 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8476 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8478 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8479 (struct linux_target_ops): Wire in the above.
8481 2016-03-03 Yao Qi <yao.qi@linaro.org>
8483 * linux-low.c: Update comments to start_step_over.
8485 2016-03-03 Yao Qi <yao.qi@linaro.org>
8488 * linux-low.c (handle_extended_wait): Set child suspended
8489 if event_lwp->bp_reinsert isn't zero.
8491 2016-03-02 Yao Qi <yao.qi@linaro.org>
8493 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8494 enqueue_pending_signal.
8496 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8498 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8501 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8503 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8504 (s390_regmap_3264) [!__s390x__]: New global.
8505 (s390_collect_ptrace_register): Skip map entries containing -1.
8506 (s390_supply_ptrace_register): Ditto.
8507 (s390_fill_gprs_high): New function.
8508 (s390_store_gprs_high): New function.
8509 (s390_regsets): Add NT_S390_HIGH_GPRS.
8510 (s390_get_hwcap): Enable on 31-bit.
8511 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8512 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8513 Detect NT_S390_HIGH_GPRS.
8514 (s390_usrregs_info_3264): Enable on 31-bit.
8515 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8516 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8518 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8521 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8522 * configure.srv: Ditto.
8523 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8524 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8525 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8526 (init_registers_amd64_linux): Remove prototype.
8527 (tdesc_amd64_linux): Remove declaration.
8528 (get_ipa_tdesc): New function.
8529 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8530 initialize remaining tdescs.
8531 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8532 (init_registers_i386_linux): Remove prototype.
8533 (tdesc_i386_linux): Remove declaration.
8534 (get_ipa_tdesc): New function.
8535 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8536 initialize remaining tdescs.
8537 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8538 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8539 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8540 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8541 (x86_get_ipa_tdesc_idx): New function.
8542 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8543 * linux-x86-tdesc.h: New file.
8544 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8545 (target_get_ipa_tdesc_idx): New macro.
8546 * tracepoint.c (ipa_tdesc_idx): New macro.
8547 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8548 (symbol_list): Add ipa_tdesc_idx.
8549 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8550 (ipa_tdesc): Remove.
8551 (ipa_tdesc_idx): New variable.
8552 (get_context_regcache): Use get_ipa_tdesc.
8553 (gdb_collect): Ditto.
8555 * tracepoint.h (get_ipa_tdesc): New prototype.
8556 (ipa_tdesc): Remove.
8558 2016-02-24 Pedro Alves <palves@redhat.com>
8560 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8561 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8562 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8563 Factor out common code between the USE_SIGTRAP_SIGINFO and
8564 !USE_SIGTRAP_SIGINFO blocks.
8565 (linux_low_filter_event): Call save_stop_reason instead of
8566 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8568 (linux_wait_1): Update comments.
8570 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8572 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8573 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8574 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8575 ppc_insert_point, ppc_remove_point.
8577 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8579 * linux-s390-low.c (s390_supports_z_point_type): New function.
8580 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8582 2016-02-16 Yao Qi <yao.qi@linaro.org>
8584 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8585 PC. Get pc from regcache_read_pc.
8587 2016-02-12 Yao Qi <yao.qi@linaro.org>
8589 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8590 or linux_get_pc_32bit.
8591 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8593 2016-02-12 Yao Qi <yao.qi@linaro.org>
8595 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8596 arm_linux_get_next_pcs_fixup.
8598 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8600 * tracepoint.c (x_tracepoint_action_download): Change
8601 write_inferior_data_ptr to write_inferior_data_pointer.
8602 (cmd_qtstart): Likewise.
8603 (write_inferior_data_ptr): Remove.
8604 (download_agent_expr): Change write_inferior_data_ptr to
8605 write_inferior_data_pointer.
8606 (download_tracepoint_1): Likewise.
8607 (download_tracepoint): Likewise.
8608 (download_trace_state_variables): Likewise.
8610 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8611 Marcin Kościelnicki <koriakin@0x04.net>
8613 * tracepoint.c (struct tracepoint_action_ops): Remove.
8614 (struct tracepoint_action): Remove ops.
8615 (m_tracepoint_action_download, r_tracepoint_action_download)
8616 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8617 size and offset accordingly.
8618 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8619 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8620 (tracepoint_action_send, tracepoint_action_download): New functions.
8621 Helpers for trace action handlers.
8622 (add_tracepoint_action): Remove setup actions ops.
8623 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8625 2016-02-10 Yao Qi <yao.qi@linaro.org>
8627 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8629 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8631 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8633 * configure: Regenerate.
8635 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8637 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8638 void * to gdb_byte *.
8639 * linux-low.c (siginfo_fixup): Likewise.
8640 (linux_xfer_siginfo): Likewise.
8641 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8643 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8645 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8647 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8649 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8651 * linux-x86-low.c [__x86_64__]: Include
8652 "nat/amd64-linux-siginfo.h".
8653 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8654 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8655 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8656 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8657 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8658 (cpt_si_fd, si_timerid, si_overrun): Move from
8659 nat/amd64-linux-siginfo.c.
8660 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8662 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8664 * server.c (skip_to_semicolon): Remove.
8665 (process_point_options): Use strchrnul instead of
8668 2016-01-26 Yao Qi <yao.qi@linaro.org>
8670 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8671 * linux-low.c (install_software_single_step_breakpoints): Don't
8672 call regcache_read_pc.
8673 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8676 2016-01-26 Yao Qi <yao.qi@linaro.org>
8678 * linux-low.c (install_software_single_step_breakpoints): Call
8679 regcache_read_pc instead of get_pc.
8681 2016-01-26 Yao Qi <yao.qi@linaro.org>
8683 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8684 (unblock_async_io): Rename to ...
8685 (block_unblock_async_io): ... it. New function.
8686 (enable_async_io): Don't install SIGIO handler. Unblock it
8688 (disable_async_io): Don't ignore SIGIO. Block it instead.
8689 (initialize_async_io): Install SIGIO handler. Don't call
8692 2016-01-26 Yao Qi <yao.qi@linaro.org>
8694 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8695 first character is '\003', call *the_target->request_interrupt.
8697 2016-01-25 Yao Qi <yao.qi@linaro.org>
8699 * remote-utils.c (new_thread_notify): Remove.
8700 (dead_thread_notify): Likewise.
8701 * remote-utils.h (new_thread_notify): Remove declaration.
8702 (dead_thread_notify): Likewise.
8704 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8706 * gdb.trace/pending.exp: Fix expected message on continue.
8708 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8710 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8711 it works properly on big-endian machines where sizeof (CORE_ADDR)
8714 2016-01-21 Pedro Alves <palves@redhat.com>
8716 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8717 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8718 * configure: Regenerate.
8720 2016-01-21 Yao Qi <yao.qi@linaro.org>
8722 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8723 is_thumb and set it according to CPSR saved on the stack.
8724 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8725 arm_sigreturn_next_pc.
8727 2016-01-18 Yao Qi <yao.qi@linaro.org>
8729 * linux-low.c (linux_set_pc_64bit): New function.
8730 (linux_get_pc_64bit): New function.
8731 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8733 * linux-sparc-low.c (debug_threads): Remove declaration.
8734 (sparc_get_pc): Remove.
8735 (the_low_target): Use linux_get_pc_64bit instead of
8737 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8738 (the_low_target): Use linux_get_pc_64bit and
8741 2016-01-18 Yao Qi <yao.qi@linaro.org>
8743 * linux-arm-low.c (debug_threads): Remove declaration.
8744 (arm_get_pc, arm_set_pc): Remove.
8745 (the_low_target): Use linux_get_pc_32bit and
8747 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8748 (the_low_target): Use linux_get_pc_32bit and
8750 * linux-cris-low.c (debug_threads): Remove declaration.
8751 (cris_get_pc, cris_set_pc,): Remove.
8752 (the_low_target): Use linux_get_pc_32bit and
8754 * linux-crisv32-low.c (debug_threads): Remove declaration.
8755 (cris_get_pc, cris_set_pc): Remove.
8756 (the_low_target): Use linux_get_pc_32bit and
8758 * linux-low.c: Include inttypes.h.
8759 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8760 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8761 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8762 (the_low_target): Use linux_get_pc_32bit and
8764 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8765 (the_low_target): Use linux_get_pc_32bit and
8767 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8768 (the_low_target): Use linux_get_pc_32bit and
8770 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8771 (the_low_target): Use linux_get_pc_32bit and
8773 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8774 (the_low_target): Use linux_get_pc_32bit and
8777 2016-01-18 Gary Benson <gbenson@redhat.com>
8779 * configure.ac (AC_FUNC_FORK): New check.
8780 * config.in: Regenerate.
8781 * configure: Likewise.
8783 2016-01-14 Yao Qi <yao.qi@linaro.org>
8785 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8786 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8787 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8788 arm_get_next_pcs_ctor.
8790 2016-01-12 Josh Stone <jistone@redhat.com>
8791 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8793 * inferiors.h: Include "gdb_vecs.h".
8794 (struct process_info): Add syscalls_to_catch.
8795 * inferiors.c (remove_process): Free syscalls_to_catch.
8796 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8797 syscall_return stops.
8798 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8799 * server.c (handle_general_set): Handle QCatchSyscalls.
8800 (handle_query): Report support for QCatchSyscalls.
8801 * target.h (struct target_ops): Add supports_catch_syscall.
8802 (target_supports_catch_syscall): New macro.
8803 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8804 (struct lwp_info): Add syscall_state.
8805 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8806 Maintain syscall_state and syscalls_to_catch across exec.
8807 (get_syscall_trapinfo): New function, proxy to the_low_target.
8808 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8809 (linux_low_filter_event): Toggle syscall_state entry/return for
8810 syscall traps, and set it ignored for all others.
8811 (gdb_catching_syscalls_p): New function.
8812 (gdb_catch_this_syscall_p): New function.
8813 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8814 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8815 (linux_supports_catch_syscall): New function.
8816 (linux_target_ops): Install it.
8817 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8818 (the_low_target): Install it.
8820 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8822 * acinclude.m4: Include new ../warning.m4 file.
8823 * configure: Regenerated.
8824 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8826 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8828 * ax.c (is_goto_target): Mark static.
8829 * linux-low.c (register_addr): Likewise.
8830 (linux_fetch_registers, linux_store_registers): Likewise.
8831 * mem-break.c (any_persistent_commands): Fix old prototype.
8832 (add_commands_to_breakpoint): Mark static.
8833 * regcache.c (find_register_by_name): Delete unused func.
8834 * remote-utils.c (hex_or_minus_one): Mark static.
8835 * server.c (monitor_show_help): Mark static.
8836 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8837 handle_v_requests): Likewise.
8839 2016-01-12 Pedro Alves <palves@redhat.com>
8841 Remove use of the registered trademark symbol throughout.
8843 2016-01-08 Yao Qi <yao.qi@linaro.org>
8845 * remote-utils.c (getpkt): If c is '\003', call target hook
8848 2016-01-06 Yao Qi <yao.qi@linaro.org>
8850 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8851 linux-aarch32-low.c.
8852 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8853 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8854 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8855 (thumb2_breakpoint): Declare.
8856 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8857 linux-aarch32-low.h.
8858 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8859 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8860 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8862 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8864 * gdbreplay.c (gdbreplay_version): Change copyright year in
8866 * server.c (gdbserver_version): Likewise.
8868 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8870 * server.c (crc32_table): Delete.
8871 (crc32): Use libiberty's xcrc32 function.
8873 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8875 * lynx-low.c (lynx_delete_thread_callback): New function.
8876 (lynx_mourn): Properly delete our process and all of its
8877 threads. Remove call to clear_inferiors.
8879 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8881 * target.c (thread_search_callback): Add check that
8882 the thread_stopped target callback is not NULL before
8885 2015-12-21 Yao Qi <yao.qi@linaro.org>
8887 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8890 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8892 * server.c (handle_query): Call target_supports_software_single_step.
8894 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8896 * linux-low.c (single_step): New function.
8897 (linux_resume_one_lwp_throw): Call single_step.
8898 (start_step_over): Likewise.
8900 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8902 * Makefile.in (SFILES): Append arch/arm-linux.c,
8903 arch/arm-get-next-pcs.c.
8904 (arm-linux.o): New rule.
8905 (arm-get-next-pcs.o): New rule.
8906 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8908 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8909 to linux-aarch32-low.c.
8910 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8911 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8912 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8913 (thumb2_breakpoint_len): Likewise.
8914 (arm_is_thumb_mode): Make non-static.
8915 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8916 from linux-aarch32-low.c.
8917 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8918 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8919 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8920 (thumb2_breakpoint_len): Likewise.
8921 (arm_is_thumb_mode): New declaration.
8922 * linux-arm-low.c: Include arch/arm-linux.h
8923 aarch/arm-get-next-pcs.h, sys/syscall.h.
8924 (get_next_pcs_ops): New struct.
8925 (get_next_pcs_addr_bits_remove): New function.
8926 (get_next_pcs_is_thumb): New function.
8927 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8928 (arm_sigreturn_next_pc): Likewise.
8929 (get_next_pcs_syscall_next_pc): Likewise.
8930 (arm_gdbserver_get_next_pcs): Likewise.
8931 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8933 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8934 * server.h: Include gdb_vecs.h.
8936 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8938 * Makefile.in (SFILES): Append common/common-regcache.c.
8939 (OBS): Append common-regcache.o.
8940 (common-regcache.o): New rule.
8941 * regcache.c (init_register_cache): Initialize cache to
8943 (regcache_raw_read_unsigned): New function.
8944 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8945 register_status enum.
8947 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8949 * linux-aarch64-low.c (the_low_targets): Rename
8950 breakpoint_reinsert_addr to get_next_pcs.
8951 * linux-arm-low.c (the_low_targets): Likewise.
8952 * linux-bfin-low.c (the_low_targets): Likewise.
8953 * linux-cris-low.c (the_low_targets): Likewise.
8954 * linux-crisv32-low.c (the_low_targets): Likewise.
8955 * linux-low.c (can_software_single_step): Likewise.
8956 (install_software_single_step_breakpoints): New function.
8957 (start_step_over): Use install_software_single_step_breakpoints.
8958 * linux-low.h: New CORE_ADDR vector.
8959 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8961 * linux-mips-low.c (the_low_targets): Likewise.
8962 * linux-nios2-low.c (the_low_targets): Likewise.
8963 * linux-sparc-low.c (the_low_targets): Likewise.
8965 2015-12-17 Pedro Alves <palves@redhat.com>
8967 * linux-low.c (linux_kill_one_lwp): Remove references to
8969 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8971 (linux_init_signals): Delete.
8972 (initialize_low): Adjust.
8973 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8975 2015-12-16 Pedro Alves <palves@redhat.com>
8977 * configure.ac (compiler warning flags): When testing a
8978 -Wno-foo option, check whether -Wfoo works instead.
8979 * configure: Regenerate.
8981 2015-12-11 Don Breazeal <donb@codesourcery.com>
8983 * server.c (process_serial_event): Don't exit from gdbserver
8984 in remote mode if there are still active inferiors.
8986 2015-12-11 Yao Qi <yao.qi@linaro.org>
8988 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8989 arm_breakpoint_at if the process is 32-bit.
8991 2015-12-11 Yao Qi <yao.qi@linaro.org>
8993 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8996 2015-12-07 Yao Qi <yao.qi@linaro.org>
8998 * configure.srv: Append arm.o to srv_tgtobj for
8999 aarch64*-*-linux* target.
9000 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9001 from linux-arm-low.c.
9002 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9003 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9004 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9005 (thumb2_breakpoint_len): Likewise.
9006 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9007 (arm_breakpoint_kinds): Likewise.
9008 (arm_breakpoint_kind_from_pc): Likewise.
9009 (arm_sw_breakpoint_from_kind): Likewise.
9010 (arm_breakpoint_kind_from_current_state): Likewise.
9011 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9012 (arm_sw_breakpoint_from_kind): Declare.
9013 (arm_breakpoint_kind_from_current_state): Declare.
9014 (arm_breakpoint_at): Declare.
9015 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9016 arm_sw_breakpoint_from_kind if process is 32-bit.
9017 (aarch64_breakpoint_kind_from_pc): New function.
9018 (aarch64_breakpoint_kind_from_current_state): New function.
9019 (the_low_target): Initialize fields breakpoint_kind_from_pc
9020 and breakpoint_kind_from_current_state.
9021 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9022 linux-aarch32-low.c.
9023 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9024 (arm_breakpoint, arm_breakpoint_len): Likewise.
9025 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9026 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9027 (arm_is_thumb_mode): Likewise.
9028 (arm_breakpoint_at): Likewise.
9029 (arm_breakpoint_kind_from_pc): Likewise.
9030 (arm_sw_breakpoint_from_kind): Likewise.
9031 (arm_breakpoint_kind_from_current_state): Likewise.
9034 2015-08-04 Yao Qi <yao.qi@linaro.org>
9036 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9037 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9038 * server.c (extended_protocol): Remove "static".
9039 * server.h (extended_protocol): Declare it.
9041 2015-12-04 Josh Stone <jistone@redhat.com>
9043 * target.h (struct target_ops) <arch_setup>: Rename to ...
9044 (struct target_ops) <post_create_inferior>: ... this.
9045 (target_arch_setup): Rename to ...
9046 (target_post_create_inferior): ... this, calling post_create_inferior.
9047 * server.c (start_inferior): Update target_arch_setup calls to
9048 target_post_create_inferior.
9049 * linux-low.c (linux_low_ptrace_options): Forward declare.
9050 (linux_arch_setup): Update its comment for general use.
9051 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9052 (struct linux_target_ops): Use linux_post_create_inferior.
9053 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9054 to post_create_inferior.
9055 * nto-low.c (struct nto_target_ops): Likewise.
9056 * spu-low.c (struct spu_target_ops): Likewise.
9057 * win32-low.c (struct win32_target_ops): Likewise.
9059 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9061 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9063 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9065 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9066 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9067 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9068 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9069 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9070 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9071 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9072 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9073 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9074 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9075 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9076 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9078 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9080 * linux-low.c (linux_look_up_symbols): Don't call
9081 linux_supports_traceclone.
9082 * linux-low.h (thread_db_init): Remove use_events argument.
9083 * thread-db.c (thread_db_use_event): Remove global variable.
9084 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9085 (struct thread_db) <td_create_bp>: Remove field.
9086 (thread_db_create_event): Remove function.
9087 (thread_db_enable_reporting): Likewise.
9088 (find_one_thread): Don't check for thread_db_use_events.
9089 (attach_thread): Likewise.
9090 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9091 (try_thread_db_load_1): Don't check for thread_db_use_events.
9092 (thread_db_init): Remove use_events argument and thread events
9094 (remove_thread_event_breakpoints): Remove function.
9095 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9097 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9099 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9101 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9102 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9103 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9104 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9105 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9107 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9109 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9110 * linux-low.c (can_hardware_single_step): Use
9111 supports_hardware_single_step.
9112 (can_software_single_step): New function.
9113 (start_step_over): Call can_software_single_step.
9114 (linux_supports_hardware_single_step): New function.
9115 (struct target_ops) <supports_software_single_step>: Initialize.
9116 * linux-low.h (struct linux_target_ops)
9117 <supports_hardware_single_step>: Initialize.
9118 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9119 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9120 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9121 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9122 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9123 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9124 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9125 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9126 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9127 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9129 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9130 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9132 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9133 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9134 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9136 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9137 * target.h (struct target_ops): <supports_software_single_step>:
9139 (target_supports_software_single_step): New macro.
9141 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9143 * linux-low.c (linux_wait_1): Fix pc advance condition.
9144 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9145 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9147 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9149 * linux-arm-low.c (arm_is_thumb_mode): New function.
9150 (arm_breakpoint_at): Use arm_is_thumb_mode.
9151 (arm_breakpoint_kind_from_current_state): New function.
9152 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9154 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9155 (linux_breakpoint_kind_from_current_state): New function.
9156 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9157 * linux-low.h (struct linux_target_ops)
9158 <breakpoint_kind_from_current_state>: New field.
9159 * target.h (struct target_ops): Likewise.
9160 (target_breakpoint_kind_from_current_state): New macro.
9162 2015-11-30 Pedro Alves <palves@redhat.com>
9164 * linux-low.c (linux_resume): Wake up the event loop before
9167 2015-11-30 Pedro Alves <palves@redhat.com>
9169 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9171 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9173 * target.c (struct thread_search): New structure.
9174 (thread_search_callback): New function.
9175 (prev_general_thread): New global.
9176 (prepare_to_access_memory, done_accessing_memory): New functions.
9177 * target.h (prepare_to_access_memory, done_accessing_memory):
9178 Replace macros with function declarations.
9180 2015-11-30 Pedro Alves <palves@redhat.com>
9183 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9184 report TARGET_WAITKIND_NO_RESUMED.
9185 * remote-utils.c (prepare_resume_reply): Handle
9186 TARGET_WAITKIND_NO_RESUMED.
9187 * server.c (report_no_resumed): New global.
9188 (handle_query) <qSupported>: Handle "no-resumed+". Report
9189 "no-resumed+" support.
9190 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9191 return error if the client doesn't support no-resumed events.
9192 (push_stop_notification): New function.
9193 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9194 events if the client supports them.
9196 2015-11-30 Pedro Alves <palves@redhat.com>
9198 * linux-low.c (thread_still_has_status_pending_p): Don't check
9200 (lwp_resumed): New function.
9201 (status_pending_p_callback): Return early if the LWP is not
9202 supposed to be resumed.
9204 2015-11-30 Pedro Alves <palves@redhat.com>
9206 * linux-low.c (handle_extended_wait): Assert that the LWP's
9207 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9208 thread create events, leave the new child's status pending.
9209 (linux_low_filter_event): If GDB wants to hear about thread exit
9210 events, leave the LWP marked dead and don't delete it.
9211 (linux_wait_for_event_filtered): Don't check for thread exit.
9212 (filter_exit_event): New function.
9213 (linux_wait_1): Use it, when returning an exit event.
9214 (linux_resume_one_lwp_throw): Assert that the LWP's
9215 waitstatus is TARGET_WAITKIND_IGNORE.
9216 * remote-utils.c (prepare_resume_reply): Handle
9217 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9218 * server.c (report_thread_events): New global.
9219 (handle_general_set): Handle QThreadEvents.
9220 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9221 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9222 TARGET_WAITKIND_THREAD_EXITED.
9223 * server.h (report_thread_events): Declare.
9225 2015-11-30 Pedro Alves <palves@redhat.com>
9227 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9228 the thread's last_resume_kind was resume_stop.
9230 2015-11-30 Pedro Alves <palves@redhat.com>
9232 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9235 2015-11-30 Pedro Alves <palves@redhat.com>
9237 * server.c (handle_v_requests): Handle vCtrlC.
9239 2015-11-30 Pedro Alves <palves@redhat.com>
9241 * gdbthread.h (find_any_thread_of_pid): Declare.
9242 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9244 * server.c (handle_query): If current_thread is NULL, look for
9245 another thread of the selected process.
9247 2015-11-26 Daniel Colascione <dancol@dancol.org>
9248 Simon Marchi <simon.marchi@ericsson.com>
9250 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9251 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9253 * target.h (struct target_ops) <thread_name>: New field.
9254 (target_thread_name): New macro.
9256 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9258 * regcache.h (regcache_invalidate_pid): Add declaration.
9259 * regcache.c (regcache_invalidate_pid): New function, extracted
9260 from regcache_invalidate.
9261 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9262 Add trivial documentation comment.
9263 * lynx-low.c: Use regcache_invalidate_pid instead of
9264 regcache_invalidate.
9266 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9268 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9269 and Elf64_auxv_t if the target is Android.
9271 2015-11-22 Doug Evans <xdje42@gmail.com>
9273 * target.h: #include <sys/types.h>.
9275 2015-11-19 Pedro Alves <palves@redhat.com>
9277 * linux-low.c (linux_process_qsupported): Change prototype.
9279 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9281 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9282 and adjust to loop over all features.
9283 * server.c (handle_query) <qSupported>: Adjust to call
9284 target_process_qsupported once, passing it a vector of unprocessed
9286 * target.h (struct target_ops) <process_qsupported>: Change
9288 (target_process_qsupported): Adjust.
9290 2015-11-19 Pedro Alves <palves@redhat.com>
9292 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9294 * configure: Regenerate.
9296 2015-11-19 Pedro Alves <palves@redhat.com>
9298 * configure: Regenerate.
9300 2015-11-19 Yao Qi <yao.qi@linaro.org>
9302 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9305 2015-11-19 Yao Qi <yao.qi@linaro.org>
9307 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9308 (struct aarch64_operand): Move enum out.
9310 2015-11-19 Yao Qi <yao.qi@linaro.org>
9312 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9313 struct user_fpsimd_state *.
9314 (aarch64_store_fpregset): Likewise.
9316 2015-11-19 Yao Qi <yao.qi@linaro.org>
9318 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9319 struct user_pt_regs *.
9320 (aarch64_store_gregset): Likewise.
9322 2015-11-18 Pedro Alves <palves@redhat.com>
9324 * Makefile.in (all_object_files): Add $IPA_OBJS.
9326 2015-11-17 Pedro Alves <palves@redhat.com>
9328 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9329 GDB_SIGNAL_0 and gdb_signal_to_string.
9331 2015-11-17 Pedro Alves <palves@redhat.com>
9333 * win32-low.c (handle_output_debug_string): Remove parameter.
9334 (win32_kill): Remove our_status local and adjust call to
9335 handle_output_debug_string.
9336 (get_child_debug_event): Adjust call to
9337 handle_output_debug_string.
9339 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9341 * linux-mips-low.c (mips_fill_gregset): Add cast.
9342 (mips_store_gregset): Likewise.
9343 (mips_fill_fpregset): Likewise.
9344 (mips_store_fpregset): Likewise.
9346 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9348 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9351 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9353 * linux-mips-low.c (mips_linux_new_thread): Change type of
9354 watch_type to enum target_hw_bp_type.
9356 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9358 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9359 Change return type to arm_hwbp_type.
9361 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9363 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9364 (arm_store_gregset): Likewise.
9365 * linux-arm-low.c (arm_get_hwcap): Likewise.
9366 (arm_read_description): Likewise.
9368 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9370 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9372 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9374 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9375 (ppc_fill_vsxregset): Likewise.
9376 (ppc_store_vsxregset): Likewise.
9377 (ppc_fill_vrregset): Likewise.
9378 (ppc_store_vrregset): Likewise.
9379 (ppc_fill_evrregset): Likewise.
9380 (ppc_store_evrregset): Likewise.
9382 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9384 * linux-ppc-low.c (ppc_usrregs_info): Remove
9385 forward-declaration.
9386 (ppc_arch_setup): Move lower in file.
9388 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9390 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9391 (ps_pdwrite): Likewise.
9393 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9395 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9396 to after assert checks.
9398 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9400 * proc-service.c (ps_pdread): Add/adjust casts.
9401 (ps_pdwrite): Add/adjust casts.
9403 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9405 * server.c (handle_search_memory_1): Cast return value of
9408 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9410 * server.c (write_qxfer_response): Change type of data to
9413 2015-10-29 Pedro Alves <palves@redhat.com>
9415 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9417 2015-10-29 Pedro Alves <palves@redhat.com>
9419 * tracepoint.c (clear_installed_tracepoints): Add casts.
9421 2015-10-29 Pedro Alves <palves@redhat.com>
9423 * server.c (handle_v_cont, process_serial_event): Add enum
9424 gdb_signal casts to signal parsing code.
9426 2015-10-29 Pedro Alves <palves@redhat.com>
9428 * linux-low.h (NULL_REGSET): Define.
9429 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9430 * linux-arm-low.c (arm_regsets): Likewise.
9431 * linux-crisv32-low.c (cris_regsets): Likewise.
9432 * linux-m68k-low.c (m68k_regsets): Likewise.
9433 * linux-mips-low.c (mips_regsets): Likewise.
9434 * linux-nios2-low.c (nios2_regsets): Likewise.
9435 * linux-ppc-low.c (ppc_regsets): Likewise.
9436 * linux-s390-low.c (s390_regsets): Likewise.
9437 * linux-sh-low.c (sh_regsets): Likewise.
9438 * linux-sparc-low.c (sparc_regsets): Likewise.
9439 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9440 * linux-tile-low.c (tile_regsets): Likewise.
9441 * linux-x86-low.c (x86_regsets): Likewise.
9442 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9444 2015-10-29 Pedro Alves <palves@redhat.com>
9446 * linux-low.h (NULL_REGSET): Define.
9447 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9448 * linux-arm-low.c (arm_regsets): Likewise.
9449 * linux-crisv32-low.c (cris_regsets): Likewise.
9450 * linux-m68k-low.c (m68k_regsets): Likewise.
9451 * linux-mips-low.c (mips_regsets): Likewise.
9452 * linux-nios2-low.c (nios2_regsets): Likewise.
9453 * linux-ppc-low.c (ppc_regsets): Likewise.
9454 * linux-s390-low.c (s390_regsets): Likewise.
9455 * linux-sh-low.c (sh_regsets): Likewise.
9456 * linux-sparc-low.c (sparc_regsets): Likewise.
9457 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9458 * linux-tile-low.c (tile_regsets): Likewise.
9459 * linux-x86-low.c (x86_regsets): Likewise.
9460 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9462 2015-10-26 Doug Evans <dje@google.com>
9464 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9466 2015-10-26 Doug Evans <dje@google.com>
9468 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9470 2015-10-26 Doug Evans <dje@google.com>
9472 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9474 (attach_thread, find_new_threads_callback): Ditto.
9476 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9478 * mem-break.h (set_breakpoint_data): Remove.
9480 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9482 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9483 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9484 (initialize_low): Remove set_breakpoint_data call.
9485 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9486 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9487 (initialize_low): Remove set_breakpoint_data call.
9488 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9489 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9490 (initialize_low): Remove set_breakpoint_data call.
9492 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9494 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9495 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9496 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9497 * target.h (target_breakpoint_kind_from_pc): New macro.
9499 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9501 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9502 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9503 the default breakpoint kind.
9505 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9507 * linux-arm-low.c (arm_supports_z_point_type): Add software
9510 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9512 * linux-arm-low.c: Refactor breakpoint definitions.
9513 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9514 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9516 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9518 * Makefile.in: Add arm.c/o.
9519 * configure.srv: Likewise.
9520 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9521 (arm_breakpoint_kind_from_pc): New function.
9522 (arm_sw_breakpoint_from_kind): Return proper kind.
9523 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9525 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9527 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9529 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9530 (struct raw_breakpoint) <size>: Remove.
9531 (struct raw_breakpoint) <kind>: Add.
9532 (bp_size): New function.
9533 (bp_opcode): Likewise.
9534 (find_raw_breakpoint_at): Adjust for kind.
9535 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9536 (remove_memory_breakpoint): Adjust for kind call bp_size.
9537 (set_raw_breakpoint_at): Adjust for kind.
9538 (set_breakpoint): Likewise.
9539 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9540 (delete_raw_breakpoint): Adjust for kind.
9541 (delete_breakpoint): Likewise.
9542 (find_gdb_breakpoint): Likewise.
9543 (set_gdb_breakpoint_1): Likewise.
9544 (set_gdb_breakpoint): Likewise.
9545 (delete_gdb_breakpoint_1): Likewise.
9546 (delete_gdb_breakpoint): Likewise.
9547 (uninsert_raw_breakpoint): Likewise.
9548 (reinsert_raw_breakpoint): Likewise.
9549 (set_breakpoint_data): Remove.
9550 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9551 (check_mem_read): Adjust for kind call bp_size.
9552 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9553 (clone_one_breakpoint): Adjust for kind.
9554 * mem-break.h (set_gdb_breakpoint): Likewise.
9555 (delete_gdb_breakpoint): Likewise.
9556 * server.c (process_serial_event): Likewise.
9558 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9560 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9561 (struct linux_target_ops) <breakpoint>: Remove.
9562 (struct linux_target_ops) <breakpoint_len>: Remove.
9563 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9564 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9565 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9566 (arm_sw_breakpoint_from_kind): New function.
9567 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9568 (struct linux_target_ops) <breakpoint>: Remove.
9569 (struct linux_target_ops) <breakpoint_len>: Remove.
9570 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9571 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9572 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9573 (struct linux_target_ops) <breakpoint>: Remove.
9574 (struct linux_target_ops) <breakpoint_len>: Remove.
9575 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9576 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9577 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9578 (struct linux_target_ops) <breakpoint>: Remove.
9579 (struct linux_target_ops) <breakpoint_len>: Remove.
9580 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9581 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9582 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9583 and sw_breakpoint_from_kind to increment the pc.
9584 (linux_breakpoint_kind_from_pc): New function.
9585 (linux_sw_breakpoint_from_kind): New function.
9586 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9587 (initialize_low): Call breakpoint_kind_from_pc and
9588 sw_breakpoint_from_kind to replace breakpoint_data/len.
9589 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9591 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9592 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9593 (struct linux_target_ops) <breakpoint>: Remove.
9594 (struct linux_target_ops) <breakpoint_len>: Remove.
9595 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9596 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9597 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9598 (struct linux_target_ops) <breakpoint>: Remove.
9599 (struct linux_target_ops) <breakpoint_len>: Remove.
9600 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9601 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9602 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9603 (struct linux_target_ops) <breakpoint>: Remove.
9604 (struct linux_target_ops) <breakpoint_len>: Remove.
9605 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9606 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9607 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9608 (struct linux_target_ops) <breakpoint>: Remove.
9609 (struct linux_target_ops) <breakpoint_len>: Remove.
9610 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9611 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9612 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9613 (struct linux_target_ops) <breakpoint>: Remove.
9614 (struct linux_target_ops) <breakpoint_len>: Remove.
9615 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9616 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9617 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9618 (struct linux_target_ops) <breakpoint>: Remove.
9619 (struct linux_target_ops) <breakpoint_len>: Remove.
9620 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9621 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9622 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9623 (struct linux_target_ops) <breakpoint>: Remove.
9624 (struct linux_target_ops) <breakpoint_len>: Remove.
9625 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9626 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9627 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9628 (struct linux_target_ops) <breakpoint>: Remove.
9629 (struct linux_target_ops) <breakpoint_len>: Remove.
9630 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9631 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9632 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9633 (struct linux_target_ops) <breakpoint>: Remove.
9634 (struct linux_target_ops) <breakpoint_len>: Remove.
9635 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9636 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9637 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9638 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9639 (struct linux_target_ops) <breakpoint>: Remove.
9640 (struct linux_target_ops) <breakpoint_len>: Remove.
9641 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9642 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9643 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9644 (struct linux_target_ops) <breakpoint>: Remove.
9645 (struct linux_target_ops) <breakpoint_len>: Remove.
9646 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9647 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9649 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9651 * linux-cris-low.c (cris_get_pc): Remove void arg.
9653 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9655 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9658 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9660 * inferiors.c (thread_pid_matches_callback): New function.
9661 (find_thread_process): New function.
9662 (remove_thread): Reset current_thread.
9663 (remove_process): Assert threads have been removed first.
9665 2015-10-15 Yao Qi <yao.qi@linaro.org>
9667 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9669 (aarch64_remove_point): Likewise.
9670 * regcache.c (regcache_register_size): New function.
9672 2015-10-12 Yao Qi <yao.qi@linaro.org>
9674 * linux-aarch64-low.c: Update all callers as emit_load_store
9675 is renamed to aarch64_emit_load_store.
9677 2015-10-12 Yao Qi <yao.qi@linaro.org>
9679 * linux-aarch64-low.c: Update all callers of function renaming
9680 from emit_insn to aarch64_emit_insn.
9682 2015-10-12 Yao Qi <yao.qi@linaro.org>
9684 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9685 arch/aarch64-insn.h.
9686 (struct aarch64_memory_operand): Likewise.
9688 (emit_insn): Move to arch/aarch64-insn.c.
9689 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9690 (emit_load_store): Move to arch/aarch64-insn.c.
9691 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9692 (can_encode_int32): Remove.
9694 2015-10-12 Yao Qi <yao.qi@linaro.org>
9696 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9697 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9698 (aarch64_relocate_instruction): Likewise.
9699 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9700 (struct aarch64_insn_visitor): Likewise.
9702 2015-10-12 Yao Qi <yao.qi@linaro.org>
9704 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9705 (struct aarch64_insn_visitor): New.
9706 (struct aarch64_insn_relocation_data): New.
9707 (aarch64_ftrace_insn_reloc_b): New function.
9708 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9709 (aarch64_ftrace_insn_reloc_cb): Likewise.
9710 (aarch64_ftrace_insn_reloc_tb): Likewise.
9711 (aarch64_ftrace_insn_reloc_adr): Likewise.
9712 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9713 (aarch64_ftrace_insn_reloc_others): Likewise.
9715 (aarch64_relocate_instruction): Use visitor.
9717 2015-10-12 Yao Qi <yao.qi@linaro.org>
9719 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9720 int. Add argument buf.
9721 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9722 aarch64_relocate_instruction.
9724 2015-10-12 Yao Qi <yao.qi@linaro.org>
9726 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9727 argument insn. Remove local variable insn. Don't call
9729 (aarch64_install_fast_tracepoint_jump_pad): Call
9732 2015-09-30 Yao Qi <yao.qi@linaro.org>
9734 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9735 (emit_load_store_pair): Likewise.
9737 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9739 * dll.c (match_dll): Add cast(s).
9740 (unloaded_dll): Likewise.
9741 * linux-low.c (second_thread_of_pid_p): Likewise.
9742 (delete_lwp_callback): Likewise.
9743 (count_events_callback): Likewise.
9744 (select_event_lwp_callback): Likewise.
9745 (linux_set_resume_request): Likewise.
9746 * server.c (accumulate_file_name_length): Likewise.
9747 (emit_dll_description): Likewise.
9748 (handle_qxfer_threads_worker): Likewise.
9749 (visit_actioned_threads): Likewise.
9750 * thread-db.c (any_thread_of): Likewise.
9751 * tracepoint.c (same_process_p): Likewise.
9752 (match_blocktype): Likewise.
9753 (build_traceframe_info_xml): Likewise.
9755 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9757 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9759 (gdb_unparse_agent_expr): Likewise.
9760 * hostio.c (require_data): Likewise.
9761 (handle_pread): Likewise.
9762 * linux-low.c (disable_regset): Likewise.
9763 (fetch_register): Likewise.
9764 (store_register): Likewise.
9765 (get_dynamic): Likewise.
9766 (linux_qxfer_libraries_svr4): Likewise.
9767 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9768 (set_fast_tracepoint_jump): Likewise.
9769 (uninsert_fast_tracepoint_jumps_at): Likewise.
9770 (reinsert_fast_tracepoint_jumps_at): Likewise.
9771 (validate_inserted_breakpoint): Likewise.
9772 (clone_agent_expr): Likewise.
9773 * regcache.c (init_register_cache): Likewise.
9774 * remote-utils.c (putpkt_binary_1): Likewise.
9775 (decode_M_packet): Likewise.
9776 (decode_X_packet): Likewise.
9777 (look_up_one_symbol): Likewise.
9778 (relocate_instruction): Likewise.
9779 (monitor_output): Likewise.
9780 * server.c (handle_search_memory): Likewise.
9781 (handle_qxfer_exec_file): Likewise.
9782 (handle_qxfer_libraries): Likewise.
9783 (handle_qxfer): Likewise.
9784 (handle_query): Likewise.
9785 (handle_v_cont): Likewise.
9786 (handle_v_run): Likewise.
9787 (captured_main): Likewise.
9788 * target.c (write_inferior_memory): Likewise.
9789 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9790 * tracepoint.c (init_trace_buffer): Likewise.
9791 (add_tracepoint_action): Likewise.
9792 (add_traceframe): Likewise.
9793 (add_traceframe_block): Likewise.
9794 (cmd_qtdpsrc): Likewise.
9795 (cmd_qtdv): Likewise.
9796 (cmd_qtstatus): Likewise.
9797 (response_source): Likewise.
9798 (response_tsv): Likewise.
9799 (cmd_qtnotes): Likewise.
9800 (gdb_collect): Likewise.
9801 (initialize_tracepoint): Likewise.
9803 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9805 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9806 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9807 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9809 (enum aarch64_condition_codes): New enum.
9810 (w0): New static global.
9813 (struct aarch64_memory_operand) <type>: New
9814 MEMORY_OPERAND_POSTINDEX type.
9815 (postindex_memory_operand): New helper function.
9816 (emit_ret): New function.
9817 (emit_load_store_pair): New function, factored out of emit_stp
9818 with support for MEMORY_OPERAND_POSTINDEX.
9819 (emit_stp): Rewrite using emit_load_store_pair.
9820 (emit_ldp): New function.
9821 (emit_load_store): Likewise.
9822 (emit_ldr): Mention post-index instruction in comment.
9823 (emit_ldrh): New function.
9824 (emit_ldrb): New function.
9825 (emit_ldrsw): Mention post-index instruction in comment.
9826 (emit_str): Likewise.
9827 (emit_subs): New function.
9828 (emit_cmp): Likewise.
9829 (emit_and): Likewise.
9830 (emit_orr): Likewise.
9831 (emit_orn): Likewise.
9832 (emit_eor): Likewise.
9833 (emit_mvn): Likewise.
9834 (emit_lslv): Likewise.
9835 (emit_lsrv): Likewise.
9836 (emit_asrv): Likewise.
9837 (emit_mul): Likewise.
9838 (emit_sbfm): Likewise.
9839 (emit_sbfx): Likewise.
9840 (emit_ubfm): Likewise.
9841 (emit_ubfx): Likewise.
9842 (emit_csinc): Likewise.
9843 (emit_cset): Likewise.
9844 (emit_nop): Likewise.
9845 (emit_ops_insns): New helper function.
9846 (emit_pop): Likewise.
9847 (emit_push): Likewise.
9848 (aarch64_emit_prologue): New function.
9849 (aarch64_emit_epilogue): Likewise.
9850 (aarch64_emit_add): Likewise.
9851 (aarch64_emit_sub): Likewise.
9852 (aarch64_emit_mul): Likewise.
9853 (aarch64_emit_lsh): Likewise.
9854 (aarch64_emit_rsh_signed): Likewise.
9855 (aarch64_emit_rsh_unsigned): Likewise.
9856 (aarch64_emit_ext): Likewise.
9857 (aarch64_emit_log_not): Likewise.
9858 (aarch64_emit_bit_and): Likewise.
9859 (aarch64_emit_bit_or): Likewise.
9860 (aarch64_emit_bit_xor): Likewise.
9861 (aarch64_emit_bit_not): Likewise.
9862 (aarch64_emit_equal): Likewise.
9863 (aarch64_emit_less_signed): Likewise.
9864 (aarch64_emit_less_unsigned): Likewise.
9865 (aarch64_emit_ref): Likewise.
9866 (aarch64_emit_if_goto): Likewise.
9867 (aarch64_emit_goto): Likewise.
9868 (aarch64_write_goto_address): Likewise.
9869 (aarch64_emit_const): Likewise.
9870 (aarch64_emit_call): Likewise.
9871 (aarch64_emit_reg): Likewise.
9872 (aarch64_emit_pop): Likewise.
9873 (aarch64_emit_stack_flush): Likewise.
9874 (aarch64_emit_zero_ext): Likewise.
9875 (aarch64_emit_swap): Likewise.
9876 (aarch64_emit_stack_adjust): Likewise.
9877 (aarch64_emit_int_call_1): Likewise.
9878 (aarch64_emit_void_call_2): Likewise.
9879 (aarch64_emit_eq_goto): Likewise.
9880 (aarch64_emit_ne_goto): Likewise.
9881 (aarch64_emit_lt_goto): Likewise.
9882 (aarch64_emit_le_goto): Likewise.
9883 (aarch64_emit_gt_goto): Likewise.
9884 (aarch64_emit_ge_got): Likewise.
9885 (aarch64_emit_ops_impl): New static global variable.
9886 (aarch64_emit_ops): New target function, return
9887 &aarch64_emit_ops_impl.
9888 (struct linux_target_ops): Install it.
9890 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9892 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9893 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9895 * linux-aarch64-ipa.c: New file.
9896 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9898 (aarch64_get_thread_area): New target method.
9899 (extract_signed_bitfield): New helper function.
9900 (aarch64_decode_ldr_literal): New function.
9901 (enum aarch64_opcodes): New enum.
9902 (struct aarch64_register): New struct.
9903 (struct aarch64_operand): New struct.
9904 (x0): New static global.
9913 (aarch64_register): New helper function.
9914 (register_operand): Likewise.
9915 (immediate_operand): Likewise.
9916 (struct aarch64_memory_operand): New struct.
9917 (offset_memory_operand): New helper function.
9918 (preindex_memory_operand): Likewise.
9919 (enum aarch64_system_control_registers): New enum.
9920 (ENCODE): New macro.
9921 (emit_insn): New helper function.
9922 (emit_b): New function.
9923 (emit_bcond): Likewise.
9924 (emit_cb): Likewise.
9925 (emit_tb): Likewise.
9926 (emit_blr): Likewise.
9927 (emit_stp): Likewise.
9928 (emit_ldp_q_offset): Likewise.
9929 (emit_stp_q_offset): Likewise.
9930 (emit_load_store): Likewise.
9931 (emit_ldr): Likewise.
9932 (emit_ldrsw): Likewise.
9933 (emit_str): Likewise.
9934 (emit_ldaxr): Likewise.
9935 (emit_stxr): Likewise.
9936 (emit_stlr): Likewise.
9937 (emit_data_processing_reg): Likewise.
9938 (emit_data_processing): Likewise.
9939 (emit_add): Likewise.
9940 (emit_sub): Likewise.
9941 (emit_mov): Likewise.
9942 (emit_movk): Likewise.
9943 (emit_mov_addr): Likewise.
9944 (emit_mrs): Likewise.
9945 (emit_msr): Likewise.
9946 (emit_sevl): Likewise.
9947 (emit_wfe): Likewise.
9948 (append_insns): Likewise.
9949 (can_encode_int32_in): New helper function.
9950 (aarch64_relocate_instruction): New function.
9951 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9952 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9953 (struct linux_target_ops): Install aarch64_get_thread_area,
9954 aarch64_install_fast_tracepoint_jump_pad and
9955 aarch64_get_min_fast_tracepoint_insn_len.
9957 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9959 * Makefile.in (aarch64-insn.o): New rule.
9960 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9962 2015-09-21 Yao Qi <yao.qi@linaro.org>
9964 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9966 2015-09-21 Yao Qi <yao.qi@linaro.org>
9968 * tracepoint.c (max_jump_pad_size): Remove.
9970 2015-09-18 Yao Qi <yao.qi@linaro.org>
9972 * linux-aarch64-low.c: Don't include sys/uio.h.
9973 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9975 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
9977 * tracepoint.c (eval_result_type): Change prototype.
9978 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9980 2015-09-15 Pedro Alves <palves@redhat.com>
9982 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9983 Check whether to report exec events instead of checking whether
9984 multiprocess is enabled.
9986 2015-09-15 Pedro Alves <palves@redhat.com>
9989 * remote-utils.c (prepare_resume_reply): Merge
9990 TARGET_WAITKIND_VFORK_DONE switch case with the
9991 TARGET_WAITKIND_FORKED case.
9993 2015-09-15 Yao Qi <yao.qi@linaro.org>
9995 * server.c (handle_query): Check string comparison using
9996 "else if" instead of "if".
9998 2015-09-15 Yao Qi <yao.qi@linaro.org>
10000 * server.c (vCont_supported): New global variable.
10001 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10002 matches. Append ";vContSupported+" to own_buf.
10003 (handle_v_requests): Append ";s;S" to own_buf if target supports
10004 hardware single step or vCont_supported is false.
10005 (capture_main): Set vCont_supported to zero.
10007 2015-09-15 Yao Qi <yao.qi@linaro.org>
10009 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10011 (linux_supports_hardware_single_step): ... New function.
10012 (linux_target_ops): Update.
10013 * lynx-low.c (lynx_target_ops): Set field
10014 supports_hardware_single_step to target_can_do_hardware_single_step.
10015 * nto-low.c (nto_target_ops): Likewise.
10016 * spu-low.c (spu_target_ops): Likewise.
10017 * win32-low.c (win32_target_ops): Likewise.
10018 * target.c (target_can_do_hardware_single_step): New function.
10019 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10020 Remove. <supports_hardware_single_step>: New field.
10021 (target_supports_conditional_breakpoints): Remove.
10022 (target_supports_hardware_single_step): New macro.
10023 (target_can_do_hardware_single_step): Declare.
10024 * server.c (handle_query): Use target_supports_hardware_single_step
10025 instead of target_supports_conditional_breakpoints.
10027 2015-09-15 Yao Qi <yao.qi@linaro.org>
10029 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10031 (struct linux_target_ops the_low_target): Install
10032 aarch64_linux_siginfo_fixup.
10034 2015-09-11 Don Breazeal <donb@codesourcery.com>
10035 Luis Machado <lgustavo@codesourcery.com>
10037 * linux-low.c (linux_mourn): Static declaration.
10038 (linux_arch_setup): Move in front of
10039 handle_extended_wait.
10040 (linux_arch_setup_thread): New function.
10041 (handle_extended_wait): Handle exec events. Call
10042 linux_arch_setup_thread. Make event_lwp argument a
10043 pointer-to-a-pointer.
10044 (check_zombie_leaders): Do not check stopped threads.
10045 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10046 (linux_low_filter_event): Add lwp and thread for exec'ing
10047 non-leader thread if leader thread has been deleted.
10048 Refactor code into linux_arch_setup_thread and call it.
10049 Pass child lwp pointer by reference to handle_extended_wait.
10050 (linux_wait_for_event_filtered): Update comment.
10051 (linux_wait_1): Prevent clobbering exec event status.
10052 (linux_supports_exec_events): New function.
10053 (linux_target_ops) <supports_exec_events>: Initialize new member.
10054 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10056 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10057 * server.c (report_exec_events): New global variable.
10058 (handle_query): Handle qSupported query for exec-events feature.
10059 (captured_main): Initialize report_exec_events.
10060 * server.h (report_exec_events): Declare new global variable.
10061 * target.h (struct target_ops) <supports_exec_events>: New
10063 (target_supports_exec_events): New macro.
10064 * win32-low.c (win32_target_ops) <supports_exec_events>:
10065 Initialize new member.
10067 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10069 * linux-low.c (linux_low_enable_btrace): Remove.
10070 (linux_target_ops): Replace linux_low_enable_btrace with
10071 linux_enable_btrace.
10073 2015-09-03 Yao Qi <yao.qi@linaro.org>
10075 * linux-aarch64-low.c (aarch64_insert_point): Call
10076 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10079 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10081 * linux-low.c (check_stopped_by_breakpoint): Use
10082 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10084 2015-08-27 Pedro Alves <palves@redhat.com>
10086 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10088 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10090 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10091 the XNEW-family equivalent.
10092 (compile_bytecodes): Likewise.
10093 * dll.c (loaded_dll): Likewise.
10094 * event-loop.c (append_callback_event): Likewise.
10095 (create_file_handler): Likewise.
10096 (create_file_event): Likewise.
10097 * hostio.c (handle_open): Likewise.
10098 * inferiors.c (add_thread): Likewise.
10099 (add_process): Likewise.
10100 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10101 * linux-arm-low.c (arm_new_process): Likewise.
10102 (arm_new_thread): Likewise.
10103 * linux-low.c (add_to_pid_list): Likewise.
10104 (linux_add_process): Likewise.
10105 (handle_extended_wait): Likewise.
10106 (add_lwp): Likewise.
10107 (enqueue_one_deferred_signal): Likewise.
10108 (enqueue_pending_signal): Likewise.
10109 (linux_resume_one_lwp_throw): Likewise.
10110 (linux_resume_one_thread): Likewise.
10111 (linux_read_memory): Likewise.
10112 (linux_write_memory): Likewise.
10113 * linux-mips-low.c (mips_linux_new_process): Likewise.
10114 (mips_linux_new_thread): Likewise.
10115 (mips_add_watchpoint): Likewise.
10116 * linux-x86-low.c (initialize_low_arch): Likewise.
10117 * lynx-low.c (lynx_add_process): Likewise.
10118 * mem-break.c (set_raw_breakpoint_at): Likewise.
10119 (set_breakpoint): Likewise.
10120 (add_condition_to_breakpoint): Likewise.
10121 (add_commands_to_breakpoint): Likewise.
10122 (clone_agent_expr): Likewise.
10123 (clone_one_breakpoint): Likewise.
10124 * regcache.c (new_register_cache): Likewise.
10125 * remote-utils.c (look_up_one_symbol): Likewise.
10126 * server.c (queue_stop_reply): Likewise.
10127 (start_inferior): Likewise.
10128 (queue_stop_reply_callback): Likewise.
10129 (handle_target_event): Likewise.
10130 * spu-low.c (fetch_ppc_memory): Likewise.
10131 (store_ppc_memory): Likewise.
10132 * target.c (set_target_ops): Likewise.
10133 * thread-db.c (thread_db_load_search): Likewise.
10134 (try_thread_db_load_1): Likewise.
10135 * tracepoint.c (add_tracepoint): Likewise.
10136 (add_tracepoint_action): Likewise.
10137 (create_trace_state_variable): Likewise.
10138 (cmd_qtdpsrc): Likewise.
10139 (cmd_qtro): Likewise.
10140 (add_while_stepping_state): Likewise.
10141 * win32-low.c (child_add_thread): Likewise.
10142 (get_image_name): Likewise.
10144 2015-08-25 Yao Qi <yao.qi@linaro.org>
10146 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10148 2015-08-25 Yao Qi <yao.qi@linaro.org>
10150 * Makefile.in (aarch64-linux.o): New rule.
10151 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10153 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10154 (aarch64_init_debug_reg_state): Make it extern.
10155 (aarch64_linux_prepare_to_resume): Remove.
10157 2015-08-25 Yao Qi <yao.qi@linaro.org>
10159 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10160 lwp_arch_private_info and ptid_of_lwp.
10162 2015-08-25 Yao Qi <yao.qi@linaro.org>
10164 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10165 Find proc_info by find_process_pid. All callers updated.
10167 2015-08-25 Yao Qi <yao.qi@linaro.org>
10169 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10171 (debug_reg_change_callback): Remove.
10172 (aarch64_notify_debug_reg_change): Remove.
10174 2015-08-25 Yao Qi <yao.qi@linaro.org>
10176 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10177 Call current_lwp_ptid.
10179 2015-08-25 Yao Qi <yao.qi@linaro.org>
10181 * linux-aarch64-low.c (debug_reg_change_callback): Use
10184 2015-08-25 Yao Qi <yao.qi@linaro.org>
10186 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10188 2015-08-25 Yao Qi <yao.qi@linaro.org>
10190 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10192 2015-08-25 Yao Qi <yao.qi@linaro.org>
10194 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10197 2015-08-25 Yao Qi <yao.qi@linaro.org>
10199 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10201 (debug_reg_change_callback): Remove argument entry and add argument
10202 lwp. Remove local variable thread. Don't print thread id in the
10203 debugging output. Don't check whether pid of thread equals to pid.
10204 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10205 iterate_over_lwps instead find_inferior.
10207 2015-08-24 Pedro Alves <palves@redhat.com>
10209 * inferiors.c (get_first_process): New function.
10210 * inferiors.h (get_first_process): New declaration.
10211 * remote-utils.c (read_ptid): Default to the first process in the
10212 list, instead of to the current thread's process.
10214 2015-08-24 Pedro Alves <palves@redhat.com>
10216 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10217 * event-loop.c: Likewise.
10218 * remote-utils.c: Likewise.
10219 * tracepoint.c: Likewise.
10221 2015-08-24 Pedro Alves <palves@redhat.com>
10223 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10226 2015-08-21 Pedro Alves <palves@redhat.com>
10228 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10229 instead of literal 1.
10231 2015-08-21 Pedro Alves <palves@redhat.com>
10233 * tdesc.c (default_description): Explicitly zero-initialize.
10235 2015-08-21 Pedro Alves <palves@redhat.com>
10238 * inferiors.c (remove_thread): Discard any pending stop reply for
10240 * server.c (remove_all_on_match_pid): Rename to ...
10241 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10243 (discard_queued_stop_replies): Change parameter to a ptid. Now
10245 (handle_v_kill, kill_inferior_callback, captured_main)
10246 (process_serial_event): Adjust.
10247 * server.h (discard_queued_stop_replies): Declare.
10249 2015-08-21 Pedro Alves <palves@redhat.com>
10251 * linux-low.c (wait_for_sigstop): Always switch to no thread
10252 selected if the previously current thread dies.
10253 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10254 process instead of the current thread's.
10255 * remote-utils.c (input_interrupt): Don't check if there's no
10257 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10258 current thread to the general thread fails, error out.
10259 (handle_qxfer_auxv, handle_qxfer_libraries)
10260 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10261 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10262 (handle_query): Check if there's a thread selected instead of
10263 checking whether there's any thread in the thread list.
10264 (handle_qxfer_threads, handle_qxfer_btrace)
10265 (handle_qxfer_btrace_conf): Don't error out early if there's no
10266 thread in the thread list.
10267 (handle_v_cont, myresume): Don't set the current thread to the
10269 (process_serial_event) <Hg handling>: Also set thread_id if the
10270 previous general thread is still alive.
10271 (process_serial_event) <g/G handling>: If setting the current
10272 thread to the general thread fails, error out.
10273 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10274 thread's lwp instead of the current thread's.
10275 * target.c (set_desired_thread): If the desired thread was not
10276 found, leave the current thread pointing to NULL. Return an int
10277 (boolean) indicating success.
10278 * target.h (set_desired_thread): Change return type to int.
10280 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10282 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10283 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10285 (ps_get_thread_area): New function.
10287 2015-08-19 Gary Benson <gbenson@redhat.com>
10289 * hostio.c (handle_pread): Do not attempt to read more data
10290 than hostio_reply_with_data can fit in a packet.
10292 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10294 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10296 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10298 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10300 2015-08-06 Pedro Alves <palves@redhat.com>
10302 * tracepoint.c (expr_eval_result): Now an int.
10304 2015-08-06 Pedro Alves <palves@redhat.com>
10306 * gdbthread.h (struct regcache): Forward declare.
10307 (struct thread_info) <regcache_data>: Now a struct regcache
10309 * inferiors.c (inferior_regcache_data)
10310 (set_inferior_regcache_data): Now work with struct regcache
10312 * inferiors.h (struct regcache): Forward declare.
10313 (inferior_regcache_data, set_inferior_regcache_data): Now work
10314 with struct regcache pointers.
10315 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10316 (free_register_cache_thread): Remove struct regcache pointer
10319 2015-08-06 Pedro Alves <palves@redhat.com>
10321 * server.c (captured_main): On error, print the exception message
10322 to stderr, and if run_once is set, throw a quit.
10324 2015-08-06 Pedro Alves <palves@redhat.com>
10326 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10327 the current thread.
10329 2015-08-06 Pedro Alves <palves@redhat.com>
10331 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10332 reading beyond the passed in buffer length.
10334 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10336 * tracepoint.c (symbol_list) <required>: Remove.
10338 2015-08-06 Pedro Alves <palves@redhat.com>
10340 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10341 count if stopping and suspending threads.
10342 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10343 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10344 (linux_detach): Complete an ongoing step-over.
10345 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10347 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10348 (linux_wait_1): If passing a signal to the inferior after
10349 finishing a step-over, unsuspend and re-resume all lwps. If we
10350 see a single-step event but the thread should be continuing, don't
10351 pass the trap to gdb.
10352 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10353 internal_error instead of gdb_assert.
10354 (enqueue_pending_signal): New function.
10355 (check_ptrace_stopped_lwp_gone): Add debug output.
10356 (start_step_over): Use internal_error instead of gdb_assert.
10357 (complete_ongoing_step_over): New function.
10358 (linux_resume_one_thread): Don't resume a suspended thread.
10359 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10362 2015-08-06 Pedro Alves <palves@redhat.com>
10364 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10365 (linux_thread_alive): Use lwp_is_marked_dead.
10366 (extended_event_reported): Delete.
10367 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10368 instead of extended_event_reported.
10369 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10371 (lwp_is_marked_dead): New function.
10372 (lwp_running): Use lwp_is_marked_dead.
10373 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10376 2015-08-06 Pedro Alves <palves@redhat.com>
10378 * linux-low.c (linux_wait_1): Move fork event output out of the
10379 !report_to_gdb check. Pass event_child->waitstatus to
10380 target_waitstatus_to_string instead of ourstatus.
10382 2015-08-04 Yao Qi <yao.qi@linaro.org>
10384 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10385 if current_thread is 32 bit.
10387 2015-08-04 Yao Qi <yao.qi@linaro.org>
10389 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10390 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10391 * server.c (extended_protocol): Remove "static".
10392 * server.h (extended_protocol): Declare it.
10394 2015-08-04 Yao Qi <yao.qi@linaro.org>
10396 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10397 both aarch64 and aarch32.
10398 (aarch64_set_pc): Likewise.
10400 2015-08-04 Yao Qi <yao.qi@linaro.org>
10402 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10403 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10404 arm-with-neon.xml to srv_xmlfiles.
10405 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10406 (is_64bit_tdesc): New function.
10407 (aarch64_linux_read_description): New function.
10408 (aarch64_arch_setup): Call aarch64_linux_read_description.
10409 (regs_info): Rename to regs_info_aarch64.
10410 (aarch64_regs_info): Return right regs_info.
10411 (initialize_low_arch): Call initialize_low_arch_aarch32.
10413 2015-08-04 Yao Qi <yao.qi@linaro.org>
10415 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10416 * linux-aarch32-low.c: New file.
10417 * linux-aarch32-low.h: New file.
10418 * linux-arm-low.c (arm_fill_gregset): Move it to
10419 linux-aarch32-low.c.
10420 (arm_store_gregset): Likewise.
10421 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10422 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10423 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10424 (regs_info): Rename to regs_info_arm.
10425 (arm_regs_info): Return regs_info_aarch32 if
10426 have_ptrace_getregset is 1 and target description is
10427 arm_with_neon or arm_with_vfpv3.
10428 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10429 Call initialize_low_arch_aarch32 instead.
10431 2015-08-04 Yao Qi <yao.qi@linaro.org>
10433 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10434 * linux-low.c: ... here.
10435 * linux-low.h (have_ptrace_getregset): Declare it.
10437 2015-08-04 Pedro Alves <palves@redhat.com>
10439 * thread-db.c (struct thread_db): Use new typedefs.
10440 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10442 (disable_thread_event_reporting): Cast result of dlsym to
10443 destination function pointer type.
10444 (thread_db_mourn): Use td_ta_delete_ftype.
10446 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10448 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10450 (CDX_BREAKPOINT): Define for R2.
10451 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10452 (the_low_target): Add comments.
10454 2015-07-30 Yao Qi <yao.qi@linaro.org>
10456 * linux-arm-low.c (arm_hwcap): Remove it.
10457 (arm_read_description): New local variable arm_hwcap. Don't
10458 set arm_hwcap to zero.
10460 2015-07-30 Yao Qi <yao.qi@linaro.org>
10462 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10463 Use regcache->tdesc instead.
10464 (arm_store_wmmxregset): Likewise.
10465 (arm_fill_vfpregset): Likewise.
10466 (arm_store_vfpregset): Likewise.
10468 2015-07-30 Yao Qi <yao.qi@linaro.org>
10470 * linux-arm-low.c: Include arch/arm.h.
10471 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10472 (arm_store_gregset): Likewise.
10474 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10476 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10477 ptrace's 4th parameter.
10479 2015-07-27 Yao Qi <yao.qi@linaro.org>
10481 * configure.srv (case aarch64*-*-linux*): Don't set
10484 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10486 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10488 * linux-arm-low.c: Likewise.
10489 * linux-cris-low.c: Likewise.
10490 * linux-crisv32-low.c: Likewise.
10491 * linux-low.c: Likewise.
10492 * linux-m68k-low.c: Likewise.
10493 * linux-mips-low.c: Likewise.
10494 * linux-nios2-low.c: Likewise.
10495 * linux-s390-low.c: Likewise.
10496 * linux-sparc-low.c: Likewise.
10497 * linux-tic6x-low.c: Likewise.
10498 * linux-tile-low.c: Likewise.
10499 * linux-x86-low.c: Likewise.
10501 2015-07-24 Pedro Alves <palves@redhat.com>
10503 * config.in: Regenerate.
10504 * configure: Regenerate.
10506 2015-07-24 Pedro Alves <palves@redhat.com>
10508 * acinclude.m4: Include ../ptrace.m4.
10509 * configure.ac: Call GDB_AC_PTRACE.
10510 * config.in, configure: Regenerate.
10512 2015-07-24 Yao Qi <yao.qi@linaro.org>
10514 * linux-low.c (linux_create_inferior): Remove setting to
10515 proc->priv->new_inferior.
10516 (linux_attach): Likewise.
10517 (linux_low_filter_event): Likewise.
10518 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10520 2015-07-24 Yao Qi <yao.qi@linaro.org>
10522 * linux-low.c (linux_arch_setup): New function.
10523 (linux_low_filter_event): If proc->tdesc is NULL and
10524 proc->attached is true, call the_low_target.arch_setup.
10525 Otherwise, keep status pending, and return.
10526 (linux_resume_one_lwp_throw): Don't call get_pc if
10527 thread->while_stepping isn't NULL. Don't call
10528 get_thread_regcache if proc->tdesc is NULL.
10529 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10530 (linux_target_ops): Install arch_setup.
10531 * server.c (start_inferior): Call the_target->arch_setup.
10532 * target.h (struct target_ops) <arch_setup>: New field.
10533 (target_arch_setup): New marco.
10534 * lynx-low.c (lynx_target_ops): Update.
10535 * nto-low.c (nto_target_ops): Update.
10536 * spu-low.c (spu_target_ops): Update.
10537 * win32-low.c (win32_target_ops): Update.
10539 2015-07-24 Yao Qi <yao.qi@linaro.org>
10541 * linux-low.c (linux_add_process): Don't set
10542 proc->priv->new_inferior.
10543 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10544 (linux_attach): Likewise.
10546 2015-07-24 Yao Qi <yao.qi@linaro.org>
10548 * server.c (start_inferior): Code refactor.
10550 2015-07-24 Yao Qi <yao.qi@linaro.org>
10552 * server.c (process_serial_event): Set general_thread.
10554 2015-07-21 Yao Qi <yao.qi@linaro.org>
10556 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10557 aarch64_linux_get_debug_reg_capacity.
10559 2015-07-17 Yao Qi <yao.qi@linaro.org>
10561 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10562 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10563 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10564 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10565 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10566 (AARCH64_HWP_ALIGNMENT): Likewise.
10567 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10568 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10569 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10570 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10571 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10572 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10573 (struct aarch64_debug_reg_state): Likewise.
10574 (struct arch_lwp_info): Likewise.
10575 (aarch64_align_watchpoint): Likewise.
10576 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10577 (aarch64_watchpoint_length): Likewise.
10578 (aarch64_point_encode_ctrl_reg): Likewise
10579 (aarch64_point_is_aligned): Likewise.
10580 (aarch64_align_watchpoint): Likewise.
10581 (aarch64_linux_set_debug_regs):
10582 (aarch64_dr_state_insert_one_point): Likewise.
10583 (aarch64_dr_state_remove_one_point): Likewise.
10584 (aarch64_handle_breakpoint): Likewise.
10585 (aarch64_handle_aligned_watchpoint): Likewise.
10586 (aarch64_handle_unaligned_watchpoint): Likewise.
10587 (aarch64_handle_watchpoint): Likewise.
10589 2015-07-17 Yao Qi <yao.qi@linaro.org>
10591 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10592 and don't aarch64_get_debug_reg_state. All callers update.
10593 (aarch64_handle_aligned_watchpoint): Likewise.
10594 (aarch64_handle_unaligned_watchpoint): Likewise.
10595 (aarch64_handle_watchpoint): Likewise.
10596 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10597 (aarch64_remove_point): Likewise.
10599 2015-07-17 Yao Qi <yao.qi@linaro.org>
10601 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10603 (aarch64_handle_unaligned_watchpoint): Likewise.
10605 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10607 Revert the previous 3 commits:
10608 Move gdb_regex* to common/
10609 Move linux_find_memory_regions_full & co.
10610 gdbserver build-id attribute generator
10612 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10613 Jan Kratochvil <jan.kratochvil@redhat.com>
10615 gdbserver build-id attribute generator.
10616 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10617 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10618 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10620 (get_dynamic): Use find_pdhr to traverse program headers.
10621 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10622 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10623 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10624 (get_hex_build_id): New.
10625 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10626 to reply XML document.
10628 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10629 Jan Kratochvil <jan.kratochvil@redhat.com>
10631 * target.c: Include target/target-utils.h and fcntl.h.
10632 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10633 (target_fileio_read_stralloc): New functions.
10635 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10637 * Makefile.in (OBS): Add gdb_regex.o.
10638 (gdb_regex.o): New.
10639 * config.in: Rebuilt.
10640 * configure: Rebuilt.
10642 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10643 Jan Kratochvil <jan.kratochvil@redhat.com>
10645 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10646 * Makefile.in (OBS): Add target-utils.o.
10647 (linux-maps.o, target-utils.o): New.
10648 * configure.srv (srv_linux_obj): Add linux-maps.o.
10650 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10652 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10653 function, return 1.
10654 (the_low_target): Install it.
10656 2015-07-14 Pedro Alves <palves@redhat.com>
10658 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10659 Instead, ignore ECHILD, and throw an error for other errnos.
10661 2015-07-10 Pedro Alves <palves@redhat.com>
10663 * event-loop.c (struct callback_event) <data>: Change type to
10664 gdb_client_data instance instead of gdb_client_data pointer.
10665 (append_callback_event): Adjust.
10667 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10669 * linux-aarch64-low.c: Add comments for each linux_target_ops
10670 method. Remove comments already covered in target_ops and
10671 linux_target_ops definitions.
10672 (the_low_target): Add comments for each unimplemented method.
10674 2015-07-09 Yao Qi <yao.qi@linaro.org>
10676 * linux-aarch64-low.c (aarch64_regmap): Remove.
10677 (aarch64_usrregs_info): Remove.
10678 (regs_info): Set field usrregs to NULL.
10680 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10682 * linux-low.c: Include "rsp-low.h"
10683 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10684 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10685 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10686 (handle_btrace_enable_pt): New.
10687 (handle_btrace_general_set): Support "pt".
10688 (handle_btrace_conf_general_set): Support "pt:size".
10690 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10692 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10695 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10697 * linux-aarch64-low.c: Remove comment about endianness.
10698 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10699 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10702 2015-06-24 Gary Benson <gbenson@redhat.com>
10704 * linux-i386-ipa.c (stdint.h): Do not include.
10705 * lynx-i386-low.c (stdint.h): Likewise.
10706 * lynx-ppc-low.c (stdint.h): Likewise.
10707 * mem-break.c (stdint.h): Likewise.
10708 * thread-db.c (stdint.h): Likewise.
10709 * tracepoint.c (stdint.h): Likewise.
10710 * win32-low.c (stdint.h): Likewise.
10712 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10714 * server.c (write_qxfer_response): Update call to
10715 remote_escape_output.
10717 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10718 Jan Kratochvil <jan.kratochvil@redhat.com>
10720 Merge multiple hex conversions.
10721 * gdbreplay.c (tohex): Rename to 'fromhex'.
10722 (logchar): Use fromhex.
10724 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10726 * server.c (handle_qxfer_libraries): Set `version' attribute for
10729 2015-06-10 Gary Benson <gbenson@redhat.com>
10731 * target.h (struct target_ops) <multifs_open>: New field.
10732 <multifs_unlink>: Likewise.
10733 <multifs_readlink>: Likewise.
10734 * linux-low.c (nat/linux-namespaces.h): New include.
10735 (linux_target_ops): Initialize the_target->multifs_open,
10736 the_target->multifs_unlink and the_target->multifs_readlink.
10737 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10738 * hostio.c (hostio_fs_pid): New static variable.
10739 (hostio_handle_new_gdb_connection): New function.
10740 (handle_setfs): Likewise.
10741 (handle_open): Use the_target->multifs_open as appropriate.
10742 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10743 (handle_readlink): Use the_target->multifs_readlink as
10745 (handle_vFile): Handle vFile:setfs packets.
10746 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10747 after target_handle_new_gdb_connection.
10749 2015-06-10 Gary Benson <gbenson@redhat.com>
10751 * configure.ac (AC_CHECK_FUNCS): Add setns.
10752 * config.in: Regenerate.
10753 * configure: Likewise.
10754 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10755 (linux-namespaces.o): New rule.
10756 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10758 2015-06-09 Gary Benson <gbenson@redhat.com>
10760 * hostio.c (handle_open): Process mode argument with
10761 fileio_to_host_mode.
10763 2015-06-01 Yao Qi <yao.qi@linaro.org>
10765 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10766 * linux-x86-low.c: Likewise.
10768 2015-05-28 Don Breazeal <donb@codesourcery.com>
10770 * linux-low.c (handle_extended_wait): Initialize
10771 thread_info.last_resume_kind for new fork children.
10773 2015-05-15 Pedro Alves <palves@redhat.com>
10775 * target.h (target_handle_new_gdb_connection): Rewrite using if
10776 wrapped in do/while.
10778 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10780 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10781 * configure, config.in: Regenerate.
10782 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10785 2015-05-12 Don Breazeal <donb@codesourcery.com>
10787 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10788 PTRACE_EVENT_VFORK_DONE.
10789 (linux_low_ptrace_options, extended_event_reported): Add vfork
10791 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10792 and "vforkdone" for RSP 'T' Stop Reply Packet.
10793 * server.h (report_vfork_events): Declare
10796 2015-05-12 Don Breazeal <donb@codesourcery.com>
10798 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10799 (the_low_target) <new_fork>: Initialize new member.
10800 * linux-arm-low.c (arm_new_fork): New function.
10801 (the_low_target) <new_fork>: Initialize new member.
10802 * linux-low.c (handle_extended_wait): Call new target function
10804 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10805 * linux-mips-low.c (mips_add_watchpoint): New function
10806 extracted from mips_insert_point.
10807 (the_low_target) <new_fork>: Initialize new member.
10808 (mips_linux_new_fork): New function.
10809 (mips_insert_point): Call mips_add_watchpoint.
10810 * linux-x86-low.c (x86_linux_new_fork): New function.
10811 (the_low_target) <new_fork>: Initialize new member.
10813 2015-05-12 Don Breazeal <donb@codesourcery.com>
10815 * linux-low.c (handle_extended_wait): Implement return value,
10816 rename argument 'event_child' to 'event_lwp', handle
10817 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10818 (linux_low_ptrace_options): New function.
10819 (linux_low_filter_event): Call linux_low_ptrace_options,
10820 use different argument fo linux_enable_event_reporting,
10821 use return value from handle_extended_wait.
10822 (extended_event_reported): New function.
10823 (linux_wait_1): Call extended_event_reported and set
10824 status to report fork events.
10825 (linux_write_memory): Add pid to debug message.
10826 (reset_lwp_ptrace_options_callback): New function.
10827 (linux_handle_new_gdb_connection): New function.
10828 (linux_target_ops): Initialize new structure member.
10829 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10830 * lynx-low.c: Initialize new structure member.
10831 * remote-utils.c (prepare_resume_reply): Implement stop reason
10832 "fork" for "T" stop message.
10833 * server.c (handle_query): Call handle_new_gdb_connection.
10834 * server.h (report_fork_events): Declare global flag.
10835 * target.h (struct target_ops) <handle_new_gdb_connection>:
10837 (target_handle_new_gdb_connection): New macro.
10838 * win32-low.c: Initialize new structure member.
10840 2015-05-12 Don Breazeal <donb@codesourcery.com>
10842 * mem-break.c (APPEND_TO_LIST): Define macro.
10843 (clone_agent_expr): New function.
10844 (clone_one_breakpoint): New function.
10845 (clone_all_breakpoints): New function.
10846 * mem-break.h: Declare new functions.
10848 2015-05-12 Don Breazeal <donb@codesourcery.com>
10850 * linux-low.c (linux_supports_fork_events): New function.
10851 (linux_supports_vfork_events): New function.
10852 (linux_target_ops): Initialize new structure members.
10853 (initialize_low): Call linux_check_ptrace_features.
10854 * lynx-low.c (lynx_target_ops): Initialize new structure
10856 * server.c (report_fork_events, report_vfork_events):
10858 (handle_query): Add new features to qSupported packet and
10860 (captured_main): Initialize new global variables.
10861 * target.h (struct target_ops) <supports_fork_events>:
10863 <supports_vfork_events>: New member.
10864 (target_supports_fork_events): New macro.
10865 (target_supports_vfork_events): New macro.
10866 * win32-low.c (win32_target_ops): Initialize new structure
10869 2015-05-12 Gary Benson <gbenson@redhat.com>
10871 * server.c (handle_qxfer_exec_file): Use current process
10874 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10876 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10877 Remove HAVE_PTRACE_GETREGS conditionals.
10878 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10879 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10881 2015-05-08 Yao Qi <yao.qi@linaro.org>
10883 * linux-low.c (linux_supports_conditional_breakpoints): New
10885 (linux_target_ops): Install new target method.
10886 * lynx-low.c (lynx_target_ops): Install NULL hook for
10887 supports_conditional_breakpoints.
10888 * nto-low.c (nto_target_ops): Likewise.
10889 * spu-low.c (spu_target_ops): Likewise.
10890 * win32-low.c (win32_target_ops): Likewise.
10891 * server.c (handle_query): Check
10892 target_supports_conditional_breakpoints.
10893 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10895 (target_supports_conditional_breakpoints): New macro.
10897 2015-05-06 Pedro Alves <palves@redhat.com>
10900 * server.c (start_inferior): If the process exits, mourn it.
10902 2015-04-21 Gary Benson <gbenson@redhat.com>
10904 * hostio.c (fileio_open_flags_to_host): Factored out to
10905 fileio_to_host_openflags in common/fileio.c. Single use
10908 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10910 * linux-xtensa-low.c (xtensa_fill_gregset)
10911 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10914 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10916 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10917 (regs_info): Replace usrregs pointer with NULL.
10919 2015-04-17 Gary Benson <gbenson@redhat.com>
10921 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10922 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10923 * server.c (handle_qxfer_exec_file): New function.
10924 (qxfer_packets): Add exec-file entry.
10925 (handle_query): Report qXfer:exec-file:read as supported packet.
10927 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10929 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10931 2015-04-09 Gary Benson <gbenson@redhat.com>
10933 * hostio-errno.c (errno_to_fileio_error): Remove function.
10934 Update caller to use remote_fileio_to_fio_error.
10936 2015-04-09 Yao Qi <yao.qi@linaro.org>
10938 * linux-low.c (linux_insert_point): Call
10939 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10940 (linux_remove_point): Call remove_memory_breakpoint if type is
10942 * linux-x86-low.c (x86_insert_point): Don't call
10943 insert_memory_breakpoint.
10944 (x86_remove_point): Don't call remove_memory_breakpoint.
10946 2015-04-01 Pedro Alves <palves@redhat.com>
10947 Cleber Rosa <crosa@redhat.com>
10949 * server.c (gdbserver_usage): Reorganize and extend the usage
10952 2015-03-24 Pedro Alves <palves@redhat.com>
10954 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10955 output. Also dump TRAP_TRACE.
10956 (linux_low_filter_event): In debug output, distinguish a
10957 resume_stop SIGSTOP from a delayed SIGSTOP.
10959 2015-03-24 Gary Benson <gbenson@redhat.com>
10961 * linux-x86-low.c (x86_linux_new_thread): Moved to
10963 (x86_linux_prepare_to_resume): Likewise.
10965 2015-03-24 Gary Benson <gbenson@redhat.com>
10967 * Makefile.in (x86-linux-dregs.o): New rule.
10968 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10969 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10970 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10971 (x86_linux_dr_get): Likewise.
10972 (x86_linux_dr_set): Likewise.
10973 (update_debug_registers_callback): Likewise.
10974 (x86_linux_dr_set_addr): Likewise.
10975 (x86_linux_dr_get_addr): Likewise.
10976 (x86_linux_dr_set_control): Likewise.
10977 (x86_linux_dr_get_control): Likewise.
10978 (x86_linux_dr_get_status): Likewise.
10979 (x86_linux_update_debug_registers): Likewise.
10981 2015-03-24 Gary Benson <gbenson@redhat.com>
10983 * linux-x86-low.c (x86_linux_update_debug_registers):
10984 New function, factored out from...
10985 (x86_linux_prepare_to_resume): ...this.
10987 2015-03-24 Gary Benson <gbenson@redhat.com>
10989 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10990 (x86_linux_dr_set): Likewise.
10991 (update_debug_registers_callback): Likewise.
10992 (x86_linux_dr_set_addr): Likewise.
10993 (x86_linux_dr_get_addr): Likewise.
10994 (x86_linux_dr_set_control): Likewise.
10995 (x86_linux_dr_get_control): Likewise.
10996 (x86_linux_dr_get_status): Likewise.
10997 (x86_linux_prepare_to_resume): Likewise.
10999 2015-03-24 Gary Benson <gbenson@redhat.com>
11001 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11002 Use perror_with_name. Pass string through gettext.
11003 (x86_linux_dr_set): Likewise.
11005 2015-03-24 Gary Benson <gbenson@redhat.com>
11007 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11008 (x86_linux_dr_set_addr): ...this.
11009 (x86_dr_low_get_addr): Rename to...
11010 (x86_linux_dr_get_addr): ...this.
11011 (x86_dr_low_set_control): Rename to...
11012 (x86_linux_dr_set_control): ...this.
11013 (x86_dr_low_get_control): Rename to...
11014 (x86_linux_dr_get_control): ...this.
11015 (x86_dr_low_get_status): Rename to...
11016 (x86_linux_dr_get_status): ...this.
11017 (x86_dr_low): Update with new function names.
11019 2015-03-24 Gary Benson <gbenson@redhat.com>
11021 * Makefile.in (x86-linux.o): New rule.
11022 * configure.srv: Add x86-linux.o to relevant targets.
11023 * linux-low.c (lwp_set_arch_private_info): New function.
11024 (lwp_arch_private_info): Likewise.
11025 * linux-x86-low.c: Include nat/x86-linux.h.
11026 (arch_lwp_info): Removed structure.
11027 (update_debug_registers_callback):
11028 Use lwp_set_debug_registers_changed.
11029 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11030 and lwp_set_debug_registers_changed.
11031 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11033 2015-03-24 Gary Benson <gbenson@redhat.com>
11035 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11036 * linux-arm-low.c (arm_new_thread): Likewise.
11037 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11038 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11039 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11040 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11042 2015-03-24 Gary Benson <gbenson@redhat.com>
11044 * linux-low.c (ptid_of_lwp): New function.
11045 (lwp_is_stopped): Likewise.
11046 (lwp_stop_reason): Likewise.
11047 * linux-x86-low.c (update_debug_registers_callback):
11048 Use lwp_is_stopped.
11049 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11052 2015-03-24 Gary Benson <gbenson@redhat.com>
11054 * linux-low.h (linux_stop_lwp): Remove declaration.
11056 2015-03-24 Gary Benson <gbenson@redhat.com>
11058 * linux-low.h: Include nat/linux-nat.h.
11059 * linux-low.c (iterate_over_lwps_args): New structure.
11060 (iterate_over_lwps_filter): New function.
11061 (iterate_over_lwps): Likewise.
11062 * linux-x86-low.c (update_debug_registers_callback):
11063 Update signature to what iterate_over_lwps expects.
11064 Remove PID check that iterate_over_lwps now performs.
11065 (x86_dr_low_set_addr): Use iterate_over_lwps.
11066 (x86_dr_low_set_control): Likewise.
11068 2015-03-24 Gary Benson <gbenson@redhat.com>
11070 * linux-x86-low.c (x86_debug_reg_state): New function.
11071 (x86_linux_prepare_to_resume): Use the above.
11073 2015-03-24 Gary Benson <gbenson@redhat.com>
11075 * linux-low.c (current_lwp_ptid): New function.
11076 * linux-x86-low.c: Include nat/linux-nat.h.
11077 (x86_dr_low_get_addr): Use current_lwp_ptid.
11078 (x86_dr_low_get_control): Likewise.
11079 (x86_dr_low_get_status): Likewise.
11081 2015-03-20 Pedro Alves <palves@redhat.com>
11083 * tracepoint.c (cmd_qtstatus): Make "str" const.
11085 2015-03-20 Pedro Alves <palves@redhat.com>
11087 * server.c (handle_general_set): Make "req_str" const.
11089 2015-03-19 Pedro Alves <palves@redhat.com>
11091 * linux-low.c (linux_resume_one_lwp): Rename to ...
11092 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11093 instead call perror_with_name.
11094 (check_ptrace_stopped_lwp_gone): New function.
11095 (linux_resume_one_lwp): Reimplement as wrapper around
11096 linux_resume_one_lwp_throw that swallows errors if the LWP is
11099 2015-03-19 Pedro Alves <palves@redhat.com>
11101 * linux-low.c (count_events_callback, select_event_lwp_callback):
11102 No longer check whether the thread has resume_stop as last resume
11105 2015-03-19 Pedro Alves <palves@redhat.com>
11107 * linux-low.c (count_events_callback, select_event_lwp_callback):
11108 Use the lwp's status_pending_p field, not the thread's.
11110 2015-03-19 Pedro Alves <palves@redhat.com>
11112 * linux-low.c (select_event_lwp_callback): Update comments to
11113 no longer mention SIGTRAP.
11115 2015-03-18 Gary Benson <gbenson@redhat.com>
11117 * server.c (handle_query): Do not report vFile:fstat as supported.
11119 2015-03-11 Gary Benson <gbenson@redhat.com>
11121 * hostio.c (sys/types.h): New include.
11122 (sys/stat.h): Likewise.
11123 (common-remote-fileio.h): Likewise.
11124 (handle_fstat): New function.
11125 (handle_vFile): Handle vFile:fstat packets.
11127 2015-03-11 Gary Benson <gbenson@redhat.com>
11129 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11130 struct stat.st_blocks and struct stat.st_blksize.
11131 * configure: Regenerate.
11132 * config.in: Likewise.
11133 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11134 (OBS): Add common-remote-fileio.o.
11135 (common-remote-fileio.o): New rule.
11137 2015-03-09 Pedro Alves <palves@redhat.com>
11139 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11140 'struct sockaddr' pointer in 'accept' call.
11142 2015-03-09 Pedro Alves <palves@redhat.com>
11145 2015-03-07 Pedro Alves <palves@redhat.com>
11146 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11147 or <winsock2.h> here. Instead include "gdb_socket.h".
11148 (remote_open): Use union gdb_sockaddr_u.
11149 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11150 or <winsock2.h> here. Instead include "gdb_socket.h".
11151 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11152 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11154 (init_named_socket, gdb_agent_helper_thread): Use union
11157 2015-03-07 Pedro Alves <palves@redhat.com>
11159 * configure.ac (build_warnings): Move
11160 -Wdeclaration-after-statement to the C-specific set.
11161 * configure: Regenerate.
11163 2015-03-07 Pedro Alves <palves@redhat.com>
11165 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11166 or <winsock2.h> here. Instead include "gdb_socket.h".
11167 (remote_open): Use union gdb_sockaddr_u.
11168 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11169 or <winsock2.h> here. Instead include "gdb_socket.h".
11170 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11171 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11173 (init_named_socket, gdb_agent_helper_thread): Use union
11176 2015-03-07 Pedro Alves <palves@redhat.com>
11178 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11181 2015-03-06 Yao Qi <yao.qi@linaro.org>
11183 * linux-aarch64-low.c (aarch64_insert_point): Use
11184 show_debug_regs as a boolean.
11185 (aarch64_remove_point): Likewise.
11187 2015-03-05 Pedro Alves <palves@redhat.com>
11189 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11190 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11191 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11192 * nto-low.c (nto_target_ops): Likewise.
11193 * spu-low.c (spu_target_ops): Likewise.
11194 * win32-low.c (win32_target_ops): Likewise.
11196 2015-03-04 Pedro Alves <palves@redhat.com>
11198 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11199 Decide whether a breakpoint triggered based on the SIGTRAP's
11201 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11202 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11203 (linux_low_filter_event): Check for breakpoints before checking
11205 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11207 (linux_stopped_by_sw_breakpoint)
11208 (linux_supports_stopped_by_sw_breakpoint)
11209 (linux_stopped_by_hw_breakpoint)
11210 (linux_supports_stopped_by_hw_breakpoint): New functions.
11211 (linux_target_ops): Install new target methods.
11213 2015-03-04 Pedro Alves <palves@redhat.com>
11215 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11216 * server.c (swbreak_feature, hwbreak_feature): New globals.
11217 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11218 (captured_main): Clear swbreak_feature and hwbreak_feature.
11219 * server.h (swbreak_feature, hwbreak_feature): Declare.
11220 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11221 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11222 supports_stopped_by_hw_breakpoint>: New fields.
11223 (target_supports_stopped_by_sw_breakpoint)
11224 (target_stopped_by_sw_breakpoint)
11225 (target_supports_stopped_by_hw_breakpoint)
11226 (target_stopped_by_hw_breakpoint): Declare.
11228 2015-03-04 Pedro Alves <palves@redhat.com>
11230 enum lwp_stop_reason -> enum target_stop_reason
11231 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11232 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11233 (linux_wait_1, stuck_in_jump_pad_callback)
11234 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11235 (linux_stopped_by_watchpoint):
11236 * linux-low.h (enum lwp_stop_reason): Delete.
11237 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11238 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11240 2015-03-04 Yao Qi <yao.qi@linaro.org>
11242 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11244 2015-03-03 Gary Benson <gbenson@redhat.com>
11246 * hostio.c (handle_vFile): Fix prefix lengths.
11248 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11250 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11253 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11255 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11256 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11257 (clean): Add "rm -f" for above C files.
11258 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11259 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11260 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11261 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11262 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11263 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11264 (init_registers_s390x_vx_linux64)
11265 (init_registers_s390x_tevx_linux64)
11266 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11267 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11269 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11270 (s390_store_vxrs_high): New functions.
11271 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11273 (s390_arch_setup): Add logic for selecting one of the new target
11274 descriptions. Activate the new vector regsets if applicable.
11275 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11276 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11277 and init_registers_s390x_tevx_linux64.
11279 2015-03-01 Pedro Alves <palves@redhat.com>
11281 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11284 2015-02-27 Pedro Alves <palves@redhat.com>
11286 * linux-x86-low.c (u_debugreg_offset): New function.
11287 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11289 2015-02-27 Pedro Alves <palves@redhat.com>
11291 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11292 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11293 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11294 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11295 (ps_lsetfpregs, ps_getpid)
11296 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11297 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11298 (ps_lsetxregs, ps_plog): Declare.
11300 2015-02-27 Pedro Alves <palves@redhat.com>
11302 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11303 IP_AGENT_EXPORT_FUNC.
11304 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11305 IP_AGENT_EXPORT_FUNC.
11306 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11307 (IP_AGENT_EXPORT): Delete.
11308 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11309 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11310 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11311 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11312 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11313 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11314 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11315 (traceframe_read_count, traceframe_write_count)
11316 (traceframes_created, trace_state_variables, get_raw_reg)
11317 (get_trace_state_variable_value, set_trace_state_variable_value)
11318 (ust_loaded, helper_thread_id, cmd_buf): Use
11319 IPA_SYM_EXPORTED_NAME.
11320 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11321 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11322 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11323 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11324 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11325 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11326 EXTERN_C_PUSH/EXTERN_C_POP.
11327 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11328 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11329 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11330 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11331 (traceframe_write_count, traceframe_read_count)
11332 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11333 (about_to_request_buffer_space, get_trace_state_variable_value)
11334 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11335 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11336 EXTERN_C_PUSH/EXTERN_C_POP.
11337 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11338 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11339 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11340 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11341 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11342 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11343 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11344 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11346 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11347 (IP_AGENT_EXPORT_VAR_DECL): Define.
11348 (tracing): Declare.
11349 (gdb_agent_get_raw_reg): Declare.
11351 2015-02-27 Tom Tromey <tromey@redhat.com>
11352 Pedro Alves <palves@redhat.com>
11354 Rename symbols whose names are reserved C++ keywords throughout.
11356 2015-02-27 Pedro Alves <palves@redhat.com>
11358 * Makefile.in (COMPILER): New, get it from autoconf.
11359 (CXX): Get from autoconf instead.
11360 (COMPILE.pre): Use COMPILER.
11361 (CC-LD): Rename to ...
11362 (CC_LD): ... this. Use COMPILER.
11363 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11364 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11365 * acinclude.m4: Include build-with-cxx.m4.
11366 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11367 Disable -Werror by default if building in C++ mode.
11368 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11369 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11370 the C++ compiler. Save/restore CXXFLAGS too.
11371 * configure: Regenerate.
11373 2015-02-27 Pedro Alves <palves@redhat.com>
11375 * acinclude.m4: Include libiberty.m4.
11376 * configure.ac: Call libiberty_INIT.
11377 * config.in, configure: Regenerate.
11379 2015-02-26 Pedro Alves <palves@redhat.com>
11381 * linux-low.c (linux_wait_1): When incrementing the PC past a
11382 program breakpoint always use the_low_target.breakpoint_len as
11383 increment, rather than the maximum between that and
11384 the_low_target.decr_pc_after_break.
11386 2015-02-23 Pedro Alves <palves@redhat.com>
11388 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11389 thread was doing a step-over; always adjust the PC if
11390 we stepped over a permanent breakpoint.
11391 (linux_wait_1): If we stepped over breakpoint that was on top of a
11392 permanent breakpoint, manually advance the PC past it.
11394 2015-02-23 Pedro Alves <palves@redhat.com>
11396 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11398 (x86_fill_gregset, x86_store_gregset): Use it when handling
11401 2015-02-20 Pedro Alves <palves@redhat.com>
11403 * thread-db.c: Include "nat/linux-procfs.h".
11404 (thread_db_init): Skip listing new threads if the kernel supports
11405 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11407 2015-02-20 Pedro Alves <palves@redhat.com>
11409 * linux-low.c (status_pending_p_callback): Use ptid_match.
11411 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11413 PR breakpoints/16812
11414 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11415 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11416 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11418 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11420 PR breakpoints/15956
11421 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11423 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11425 * linux-low.c (linux_low_btrace_conf): Print size.
11426 * server.c (handle_btrace_conf_general_set): New.
11427 (hanle_general_set): Call handle_btrace_conf_general_set.
11428 (handle_query): Report Qbtrace-conf:bts:size as supported.
11430 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11432 * linux-low.c (linux_low_enable_btrace): Update parameters.
11433 (linux_low_btrace_conf): New.
11434 (linux_target_ops)<to_btrace_conf>: Initialize.
11435 * server.c (current_btrace_conf): New.
11436 (handle_btrace_enable): Rename to ...
11437 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11438 to target_enable_btrace. Update comment. Update users.
11439 (handle_qxfer_btrace_conf): New.
11440 (qxfer_packets): Add btrace-conf entry.
11441 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11442 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11443 (target_ops)<read_btrace_conf>: New.
11444 (target_enable_btrace): Update parameters.
11445 (target_read_btrace_conf): New.
11447 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11449 * server.c (handle_btrace_general_set): Remove call to
11450 target_supports_btrace.
11451 (supported_btrace_packets): New.
11452 (handle_query): Call supported_btrace_packets.
11453 * target.h: include btrace-common.h.
11454 (btrace_target_info): Removed.
11455 (supports_btrace, target_supports_btrace): Update parameters.
11457 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11459 * Makefile.in (SFILES): Add common/btrace-common.c.
11460 (OBS): Add common/btrace-common.o.
11461 (btrace-common.o): Add build rules.
11462 * linux-low: Include btrace-common.h.
11463 (linux_low_read_btrace): Use struct btrace_data. Call
11464 btrace_data_init and btrace_data_fini.
11466 2015-02-06 Pedro Alves <palves@redhat.com>
11468 * thread-db.c (find_new_threads_callback): Add debug output.
11470 2015-02-04 Pedro Alves <palves@redhat.com>
11472 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11473 (resume_stopped_resumed_lwps): New function.
11474 (linux_wait_for_event_filtered): Use it.
11476 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11478 * Makefile.in (SFILES): Add linux-personality.c.
11479 (linux-personality.o): New rule.
11480 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11481 list of objects to be built.
11482 * linux-low.c: Include nat/linux-personality.h.
11483 (linux_create_inferior): Remove code to disable address space
11484 randomization (moved to ../nat/linux-personality.c). Create
11485 cleanup to disable address space randomization.
11487 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11489 * Makefile.in (posix-strerror.o): New rule.
11490 (mingw-strerror.o): Likewise.
11491 * configure: Regenerated.
11492 * configure.ac: Source file ../common/common.host. Initialize new
11493 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11495 2015-01-14 Yao Qi <yao@codesourcery.com>
11497 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11498 (ppc-linux.o): New rule.
11499 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11500 * configure.ac: AC_CHECK_FUNCS(getauxval).
11501 * config.in: Re-generated.
11502 * configure: Re-generated.
11503 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11504 ppc64_64bit_inferior_p
11506 2015-01-14 Yao Qi <yao@codesourcery.com>
11508 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11509 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11510 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11511 (PT_ORIG_R3, PT_TRAP): Likewise.
11512 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11513 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11514 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11516 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11518 * i387-fp.c (i387_cache_to_xsave): In look over
11519 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11520 zmmh_low_space field by use of zmmh_high_space.
11522 2015-01-09 Pedro Alves <palves@redhat.com>
11524 * linux-low.c (step_over_bkpt): Move higher up in the file.
11525 (handle_extended_wait): Don't store the stop_pc here.
11526 (get_stop_pc): Adjust comments and rename to ...
11527 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11528 stopped for a software breakpoint or hardware breakpoint.
11529 (thread_still_has_status_pending_p): New function.
11530 (status_pending_p_callback): Use
11531 thread_still_has_status_pending_p. If the event is no longer
11532 interesting, resume the LWP.
11533 (handle_tracepoints): Add assert.
11534 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11535 (wstatus_maybe_breakpoint): New function.
11536 (cancel_breakpoint): Delete function.
11537 (check_stopped_by_watchpoint): New function, factored out from
11538 linux_low_filter_event.
11539 (lp_status_maybe_breakpoint): Delete function.
11540 (linux_low_filter_event): Remove filter_ptid argument.
11541 Leave thread group exits pending here. Store the LWP's stop PC.
11542 Always leave events pending.
11543 (linux_wait_for_event_filtered): Pull all events out of the
11544 kernel, and leave them all pending.
11545 (count_events_callback, select_event_lwp_callback): Consider all
11547 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11548 (select_event_lwp): Only give preference to the stepping LWP in
11549 all-stop mode. Adjust comments.
11550 (ignore_event): New function.
11551 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11552 references to cancel_breakpoints. Adjust to renames. Also give
11553 equal priority to all LWPs that have had events in non-stop mode.
11554 If reporting a software breakpoint event, unadjust the LWP's PC.
11555 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11556 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11558 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11559 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11560 (linux_stopped_by_watchpoint): Adjust.
11561 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11562 * linux-low.h (enum lwp_stop_reason): New.
11563 (struct lwp_info) <stop_pc>: Adjust comment.
11564 <stopped_by_watchpoint>: Delete field.
11565 <stop_reason>: New field.
11566 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11567 * mem-break.c (software_breakpoint_inserted_here)
11568 (hardware_breakpoint_inserted_here): New function.
11569 * mem-break.h (software_breakpoint_inserted_here)
11570 (hardware_breakpoint_inserted_here): Declare.
11571 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11572 (cancel_breakpoints): Delete.
11573 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11574 (upload_fast_traceframes): Remove references to
11575 cancel_breakpoints.
11577 2015-01-09 Pedro Alves <palves@redhat.com>
11579 * thread-db.c (find_new_threads_callback): Ignore thread if the
11580 kernel thread ID is -1.
11582 2015-01-09 Pedro Alves <palves@redhat.com>
11584 * linux-low.c (linux_attach_fail_reason_string): Move to
11585 nat/linux-ptrace.c, and rename.
11586 (linux_attach_lwp): Update comment.
11587 (attach_proc_task_lwp_callback): New function.
11588 (linux_attach): Adjust to rename and use
11589 linux_proc_attach_tgid_threads.
11590 (linux_attach_fail_reason_string): Delete declaration.
11592 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11594 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11595 * server.c (gdbserver_version): Likewise.
11597 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11599 * remote-utils.c: Include ctype.h.
11600 (input_interrupt): Explicitly handle the case when the char
11601 received is the NUL byte. Improve the printing of non-ASCII
11604 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11606 * linux-low.c (linux_low_filter_event): Update call to
11607 linux_enable_event_reporting following the addition of
11608 a new parameter to that function.
11610 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11613 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11614 (AARCH64_FPCR_REGNO): Likewise.
11615 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11616 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11617 (aarch64_store_fpregset): Likewise.
11619 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11621 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11622 Remove FIXME comment about assumption about N.
11624 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11626 * configure.ac: If large-file support is disabled in GDBserver,
11627 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11628 * configure: Regenerate.
11630 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11632 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11633 warning upon ENODATA from ptrace.
11634 * linux-s390-low.c (s390_store_tdb): New.
11635 (s390_regsets): Add regset for NT_S390_TDB.
11637 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11639 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11640 without a fill_function.
11641 * linux-s390-low.c (s390_fill_last_break): Remove.
11642 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11643 (s390_arch_setup): Use regset's size instead of fill_function for
11644 loop end condition.
11646 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11648 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11649 the regset's store function when ptrace returned an error.
11650 * regcache.c (get_thread_regcache): Invalidate register cache
11651 before fetching inferior's registers.
11653 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11655 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11656 while-loop as for-loop.
11657 (regsets_store_inferior_registers): Likewise.
11659 2014-11-28 Yao Qi <yao@codesourcery.com>
11661 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11662 * config.in, configure: Re-generate.
11663 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11666 2014-11-21 Yao Qi <yao@codesourcery.com>
11668 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11669 (AC_CHECK_HEADERS): Remove malloc.h.
11670 * configure: Re-generated.
11671 * config.in: Re-generated.
11672 * server.h: Don't include alloca.h and malloc.h.
11673 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11674 Don't include malloc.h.
11676 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11678 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11679 corresponding ERRNO check in same block.
11681 2014-11-12 Pedro Alves <palves@redhat.com>
11683 * server.c (cont_thread): Update comment.
11684 (start_inferior, attach_inferior): No longer clear cont_thread.
11685 (handle_v_cont): No longer set cont_thread.
11686 (captured_main): Clear cont_thread each time a GDB connects.
11688 2014-11-12 Pedro Alves <palves@redhat.com>
11690 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11691 thread, and don't resume all threads if the Hc thread has exited.
11693 2014-11-12 Pedro Alves <palves@redhat.com>
11695 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11696 the process group instead of to a specific LWP.
11698 2014-10-15 Pedro Alves <palves@redhat.com>
11701 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11703 (arm_set_thread_context): Delete.
11704 (the_low_target): Adjust.
11705 * win32-i386-low.c (debug_registers_changed)
11706 (debug_registers_used): Delete.
11707 (update_debug_registers_callback): New function.
11708 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11709 needing to update their debug registers.
11710 (win32_get_current_dr): New function.
11711 (x86_dr_low_get_addr, x86_dr_low_get_control)
11712 (x86_dr_low_get_status): Fetch the debug register from the thread
11714 (i386_initial_stuff): Adjust.
11715 (i386_get_thread_context): Remove current_event parameter. Don't
11716 clear debug_registers_changed nor copy DR values to
11718 (i386_set_thread_context): Delete.
11719 (i386_prepare_to_resume): New function.
11720 (i386_thread_added): Mark the thread as needing to update irs
11722 (the_low_target): Remove i386_set_thread_context and install
11723 i386_prepare_to_resume.
11724 * win32-low.c (win32_get_thread_context): Adjust.
11725 (win32_set_thread_context): Use SetThreadContext
11727 (win32_prepare_to_resume): New function.
11728 (win32_require_context): New function, factored out from ...
11729 (thread_rec): ... this.
11730 (continue_one_thread): Call win32_prepare_to_resume on each thread
11731 we're about to continue.
11732 (win32_resume): Call win32_prepare_to_resume on the event thread.
11733 * win32-low.h (struct win32_thread_info)
11734 <debug_registers_changed>: New field.
11735 (struct win32_target_ops): Change prototype of set_thread_context,
11736 delete set_thread_context and add prepare_to_resume.
11737 (win32_require_context): New declaration.
11739 2014-10-08 Gary Benson <gbenson@redhat.com>
11741 * server.h: Do not include common-exceptions.h.
11743 2014-10-08 Gary Benson <gbenson@redhat.com>
11745 * server.h: Do not include cleanups.h.
11747 2014-09-30 James Hogan <james.hogan@imgtec.com>
11749 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11750 mips64-dsp-linux.c.
11752 2014-09-23 Yao Qi <yao@codesourcery.com>
11754 * linux-low.c (lp_status_maybe_breakpoint): New function.
11755 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11756 (count_events_callback): Likewise.
11757 (select_event_lwp_callback): Likewise.
11758 (cancel_breakpoints_callback): Likewise.
11760 2014-09-19 Don Breazeal <donb@codesourcery.com>
11762 * linux-low.c (handle_extended_wait): Call
11763 linux_ptrace_get_extended_event.
11764 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11765 linux_is_extended_waitstatus.
11767 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11769 * Makefile.in (CPPFLAGS): Define.
11770 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11771 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11773 2014-09-16 Gary Benson <gbenson@redhat.com>
11775 * inferiors.h (current_inferior): Renamed as...
11776 (current_thread): New variable. All uses updated.
11777 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11778 (maybe_move_out_of_jump_pad): Likewise.
11779 (cancel_breakpoint): Likewise.
11780 (linux_low_filter_event): Likewise.
11781 (wait_for_sigstop): Likewise.
11782 (linux_resume_one_lwp): Likewise.
11783 (need_step_over_p): Likewise.
11784 (start_step_over): Likewise.
11785 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11786 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11787 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11788 and save_inferior as saved_thread.
11789 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11791 (regcache_invalidate_thread): Likewise.
11792 * remote-utils.c (prepare_resume_reply): Likewise.
11793 * thread-db.c (thread_db_get_tls_address): Likewise.
11794 (disable_thread_event_reporting): Likewise.
11795 (remove_thread_event_breakpoints): Likewise.
11796 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11798 * target.h (set_desired_inferior): Renamed as...
11799 (set_desired_thread): New declaration. All uses updated.
11800 * server.c (myresume): Updated comment to reference thread instead
11802 (handle_serial_event): Likewise.
11803 (handle_target_event): Likewise.
11805 2014-09-12 Tom Tromey <tromey@redhat.com>
11806 Gary Benson <gbenson@redhat.com>
11808 * regcache.h: Include common-regcache.h.
11809 (regcache_read_pc): Don't declare.
11810 * regcache.c (get_thread_regcache_for_ptid): New function.
11812 2014-09-11 Tom Tromey <tromey@redhat.com>
11813 Gary Benson <gbenson@redhat.com>
11815 * symbol.c: New file.
11816 * Makefile.in (SFILES): Add symbol.c.
11817 (OBS): Add symbol.o.
11819 2014-09-11 Gary Benson <gbenson@redhat.com>
11821 * target.c (target_stop_ptid, target_continue_ptid): New
11824 2014-09-11 Tom Tromey <tromey@redhat.com>
11825 Gary Benson <gbenson@redhat.com>
11827 * target.h: Include target/target.h.
11828 * target.c (target_read_memory, target_read_uint32)
11829 (target_write_memory): New functions.
11831 2014-09-11 Gary Benson <gbenson@redhat.com>
11833 * server.h (debug_hw_points): Don't declare.
11834 * server.c (debug_hw_points): Don't define. Replace all uses
11835 with show_debug_regs.
11836 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11837 all uses with show_debug_regs.
11839 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11841 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11842 endianness into account.
11843 (ppc_supply_ptrace_register): Likewise.
11845 2014-09-03 James Hogan <james.hogan@imgtec.com>
11847 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11848 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11850 2014-09-03 Gary Benson <gbenson@redhat.com>
11852 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11853 ALL_DEBUG_ADDRESS_REGISTERS.
11855 2014-09-02 Gary Benson <gbenson@redhat.com>
11857 * i386-low.h: Renamed as...
11858 * x86-low.h: New file. All type, function and variable name
11859 prefixes changed from "i386_" to "x86_". All references updated.
11860 * i386-low.c: Renamed as...
11861 * x86-low.c: New file. All type, function and variable name
11862 prefixes changed from "i386_" to "x86_". All references updated.
11864 2014-09-02 Gary Benson <gbenson@redhat.com>
11866 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11867 (x86_linux_new_thread): Likewise.
11869 2014-08-29 Gary Benson <gbenson@redhat.com>
11871 * server.h (setjmp.h): Do not include.
11872 (toplevel): Do not declare.
11873 (common-exceptions.h): Include.
11874 (cleanups.h): Likewise.
11875 * server.c (toplevel): Do not define.
11876 (exit_code): New static global.
11877 (detach_or_kill_for_exit_cleanup): New function.
11878 (main): New function. Original main renamed to...
11879 (captured_main): New function.
11880 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11882 2014-08-29 Gary Benson <gbenson@redhat.com>
11884 * Makefile.in (SFILES): Add common/common-exceptions.c.
11885 (OBS): Add common-exceptions.o.
11886 (common-exceptions.o): New rule.
11887 * utils.c (prepare_to_throw_exception): New function.
11889 2014-08-29 Gary Benson <gbenson@redhat.com>
11891 * config.in: Regenerate.
11892 * configure: Likewise.
11894 2014-08-29 Gary Benson <gbenson@redhat.com>
11896 * Makefile.in (SFILES): Add common/cleanups.c.
11898 (cleanups.o): New rule.
11900 2014-08-29 Gary Benson <gbenson@redhat.com>
11902 * utils.c (internal_vwarning): New function.
11904 2014-08-28 Gary Benson <gbenson@redhat.com>
11906 * utils.h (fatal): Remove declaration.
11907 * utils.c (fatal): Remove function.
11909 2014-08-28 Gary Benson <gbenson@redhat.com>
11911 * tracepoint.c (gdb_agent_init): Replace fatal with
11913 (initialize_tracepoint): Likewise.
11915 2014-08-28 Gary Benson <gbenson@redhat.com>
11917 * remote-utils.c (remote_prepare): Replace fatal with error.
11919 2014-08-28 Gary Benson <gbenson@redhat.com>
11921 * linux-low.c (linux_async): Replace fatal with warning.
11922 Tidy up and return.
11923 (linux_start_non_stop): Return -1 if linux_async failed.
11925 2014-08-28 Gary Benson <gbenson@redhat.com>
11927 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11929 (i386_dr_low_get_addr): Remove vague comment.
11930 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11933 2014-08-28 Gary Benson <gbenson@redhat.com>
11935 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11936 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11938 (linux_resume_one_lwp): Likewise.
11939 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11941 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11942 with internal_error.
11943 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11944 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11945 (find_register_by_name): Replace fatal with internal_error.
11946 (find_regno): Likewise.
11947 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11948 * thread-db.c (thread_db_create_event): Likewise.
11949 (thread_db_load_search): Likewise.
11950 (try_thread_db_load_1): Likewise.
11951 * tracepoint.c (get_jump_space_head): Replace fatal with
11953 (claim_trampoline_space): Likewise.
11954 (have_fast_tracepoint_trampoline_buffer): Likewise.
11955 (cmd_qtstart): Likewise.
11956 (stop_tracing): Likewise.
11957 (fast_tracepoint_collecting): Likewise.
11958 (target_malloc): Likewise.
11959 (download_tracepoint): Likewise.
11960 (download_trace_state_variables): Replace check with gdb_assert.
11961 (upload_fast_traceframes): Replace fatal with internal_error.
11963 2014-08-19 Tom Tromey <tromey@redhat.com>
11964 Gary Benson <gbenson@redhat.com>
11966 * Makefile.in (SFILES): Add common/common-debug.c.
11967 (OBS): Add common-debug.o.
11968 (common-debug.o): New rule.
11969 * debug.h (debug_printf): Don't declare.
11970 * debug.c (debug_printf): Renamed and rewritten as...
11971 (debug_vprintf): New function.
11973 2014-08-19 Gary Benson <gbenson@redhat.com>
11975 * utils.h: Do not include print-utils.h.
11977 2014-08-19 Tom Tromey <tromey@redhat.com>
11978 Gary Benson <gbenson@redhat.com>
11980 * server.h: Add static assertion.
11981 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11983 2014-08-19 Tom Tromey <tromey@redhat.com>
11984 Gary Benson <gbenson@redhat.com>
11986 * Makefile.in (SFILES): Add common/errors.c.
11987 (OBS): Add errors.o.
11988 (IPA_OBS): Add errors-ipa.o.
11989 (errors.o): New rule.
11990 (errors-ipa.o): Likewise.
11991 * utils.h (perror_with_name, error, warning): Don't declare.
11992 * utils.c (warning): Renamed and rewritten as...
11993 (vwarning): New function.
11994 (error): Renamed and rewritten as...
11995 (verror): New function.
11996 (internal_error): Renamed and rewritten as...
11997 (internal_verror): New function.
11999 2014-08-07 Gary Benson <gbenson@redhat.com>
12001 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12002 * configure: Regenerate.
12003 * config.in: Likewise.
12004 * server.h: Do not include errno.h.
12005 * event-loop.c: Likewise.
12006 * hostio-errno.c: Likewise.
12007 * linux-low.c: Likewise.
12008 * remote-utils.c: Likewise.
12009 * spu-low.c: Likewise.
12010 * utils.c: Likewise.
12011 * gdbreplay.c: Unconditionally include errno.h.
12013 2014-08-07 Gary Benson <gbenson@redhat.com>
12015 * server.h: Do not include string.h.
12016 * event-loop.c: Likewise.
12017 * linux-low.c: Likewise.
12018 * regcache.c: Likewise.
12019 * remote-utils.c: Likewise.
12020 * spu-low.c: Likewise.
12021 * utils.c: Likewise.
12023 2014-08-07 Gary Benson <gbenson@redhat.com>
12025 * server.h: Do not include gdb_assert.h.
12027 2014-08-07 Gary Benson <gbenson@redhat.com>
12029 * server.h: Do not include common-utils.h.
12031 2014-08-07 Gary Benson <gbenson@redhat.com>
12033 * server.h: Do not include ptid.h.
12034 * notif.h: Likewise.
12036 2014-08-07 Gary Benson <gbenson@redhat.com>
12038 * server.h: Do not include gdb_locale.h.
12040 2014-08-07 Gary Benson <gbenson@redhat.com>
12042 * server.h: Do not include gdb/signals.h.
12043 * win32-low.c: Likewise.
12045 2014-08-07 Gary Benson <gbenson@redhat.com>
12047 * server.h: Do not include pathmax.h.
12049 2014-08-07 Gary Benson <gbenson@redhat.com>
12051 * server.h: Do not include libiberty.h.
12052 * linux-bfin-low.c: Likewise.
12054 2014-08-07 Gary Benson <gbenson@redhat.com>
12056 * server.h: Do not include ansidecl.h.
12058 2014-08-07 Gary Benson <gbenson@redhat.com>
12060 * linux-x86-low.c: Do not include stddef.h.
12061 * lynx-ppc-low.c: Likewise.
12062 * tracepoint.c: Likewise.
12064 2014-08-07 Gary Benson <gbenson@redhat.com>
12066 * server.h: Do not include stdarg.h.
12067 * nto-low.c: Likewise.
12069 2014-08-07 Gary Benson <gbenson@redhat.com>
12071 * server.h: Do not include stdlib.h.
12072 * inferiors.c: Likewise.
12073 * linux-low.c: Likewise.
12074 * regcache.c: Likewise.
12075 * spu-low.c: Likewise.
12076 * tracepoint.c: Likewise.
12077 * utils.c: Likewise.
12079 2014-08-07 Gary Benson <gbenson@redhat.com>
12081 * server.h: Do not include stdio.h.
12082 * linux-low.c: Likewise.
12083 * remote-utils.c: Likewise.
12084 * spu-low.c: Likewise.
12085 * utils.c: Likewise.
12086 * wincecompat.c: Likewise.
12088 2014-08-06 Gary Benson <gbenson@redhat.com>
12090 * regcache.c (init_register_cache): Move conditionals inside if.
12092 2014-08-06 Gary Benson <gbenson@redhat.com>
12094 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12096 2014-07-31 Gary Benson <gbenson@redhat.com>
12098 * ax.h: Do not include server.h.
12099 * gdbthread.h: Likewise.
12100 * lynx-low.h: Likewise.
12101 * notif.h: Likewise.
12103 2014-07-30 Gary Benson <gbenson@redhat.com>
12105 * server.h: Include common-defs.h.
12106 Do not include config.h or build-gnulib-gdbserver/config.h.
12108 2014-07-30 Gary Benson <gbenson@redhat.com>
12110 * hostio-errno.c: Move server.h to top of includes list.
12111 * inferiors.c: Likewise.
12112 * linux-x86-low.c: Likewise.
12113 * notif.c: Include server.h.
12115 2014-07-24 Tom Tromey <tromey@redhat.com>
12116 Gary Benson <gbenson@redhat.com>
12118 * server.h (CORE_ADDR): Now unsigned.
12120 2014-07-16 Pedro Alves <palves@redhat.com>
12122 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12124 2014-07-15 Pedro Alves <palves@redhat.com>
12126 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12129 2014-07-11 Pedro Alves <palves@redhat.com>
12131 * linux-low.c (kill_wait_lwp): New function, based on
12132 kill_one_lwp_callback, but use my_waitpid directly.
12133 (kill_one_lwp_callback, linux_kill): Use it.
12135 2014-06-23 Pedro Alves <palves@redhat.com>
12137 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12138 before setting DR0..DR3.
12140 2014-06-20 Gary Benson <gbenson@redhat.com>
12142 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12143 * configure: Regenerated.
12144 * config.in: Likewise.
12146 2014-06-20 Gary Benson <gbenson@redhat.com>
12148 * Makefile.in (SFILES): Update locations for files moved
12149 from common to nat.
12150 (object file files): Reordered.
12152 2014-06-20 Gary Benson <gbenson@redhat.com>
12154 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12155 (i386_dr_low_set_addr): Likewise.
12156 (i386_dr_low_get_addr): Likewise.
12157 (i386_dr_low_can_set_control): Likewise.
12158 (i386_dr_low_set_control): Likewise.
12159 (i386_dr_low_get_control): Likewise.
12160 (i386_dr_low_get_status): Likewise.
12161 (i386_get_debug_register_length): Likewise.
12162 * linux-x86-low.c (i386_dr_low_set_addr):
12163 Changed signature. Made static.
12164 (i386_dr_low_get_addr): Likewise.
12165 (i386_dr_low_set_control): Likewise.
12166 (i386_dr_low_get_control): Likewise.
12167 (i386_dr_low_get_status): Likewise.
12168 (i386_dr_low): New global variable.
12169 * win32-i386-low.c (i386_dr_low_set_addr):
12170 Changed signature. Made static.
12171 (i386_dr_low_get_addr): Likewise.
12172 (i386_dr_low_set_control): Likewise.
12173 (i386_dr_low_get_control): Likewise.
12174 (i386_dr_low_get_status): Likewise.
12175 (i386_dr_low): New global variable.
12177 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12179 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12180 * Makefile.in (AR, AR_FLAGS): Define.
12181 * configure: Regenerate.
12183 2014-06-19 Gary Benson <gbenson@redhat.com>
12185 * Makefile.in (i386-dregs.o): New rule.
12186 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12187 * i386-low.c (target.h): Remove include.
12188 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12189 (DR_CONTROL_SHIFT): Likewise.
12190 (DR_CONTROL_SIZE): Likewise.
12191 (DR_RW_EXECUTE): Likewise.
12192 (DR_RW_WRITE): Likewise.
12193 (DR_RW_READ): Likewise.
12194 (DR_RW_IORW): Likewise.
12195 (DR_LEN_1): Likewise.
12196 (DR_LEN_2): Likewise.
12197 (DR_LEN_4): Likewise.
12198 (DR_LEN_8): Likewise.
12199 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12200 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12201 (DR_ENABLE_SIZE): Likewise.
12202 (DR_LOCAL_SLOWDOWN): Likewise.
12203 (DR_GLOBAL_SLOWDOWN): Likewise.
12204 (DR_CONTROL_RESERVED): Likewise.
12205 (I386_DR_CONTROL_MASK): Likewise.
12206 (I386_DR_VACANT): Likewise.
12207 (I386_DR_LOCAL_ENABLE): Likewise.
12208 (I386_DR_GLOBAL_ENABLE): Likewise.
12209 (I386_DR_DISABLE): Likewise.
12210 (I386_DR_SET_RW_LEN): Likewise.
12211 (I386_DR_GET_RW_LEN): Likewise.
12212 (I386_DR_WATCH_HIT): Likewise.
12213 (i386_wp_op_t): Likewise.
12214 (i386_show_dr): Likewise.
12215 (i386_length_and_rw_bits): Likewise.
12216 (i386_insert_aligned_watchpoint): Likewise.
12217 (i386_remove_aligned_watchpoint): Likewise.
12218 (i386_handle_nonaligned_watchpoint): Likewise.
12219 i386_update_inferior_debug_regs(): Likewise.
12220 (i386_dr_insert_watchpoint): Likewise.
12221 (i386_dr_remove_watchpoint): Likewise.
12222 (i386_dr_region_ok_for_watchpoint): Likewise.
12223 (i386_dr_stopped_data_address): Likewise.
12224 (i386_dr_stopped_by_watchpoint): Likewise.
12226 2014-06-19 Gary Benson <gbenson@redhat.com>
12228 * i386-low.c (i386_dr_show): Renamed to
12229 i386_show_dr and made static. All uses updated.
12230 (i386_dr_length_and_rw_bits): Renamed to
12231 i386_length_and_rw_bits and made static.
12233 (i386_dr_insert_aligned_watchpoint): Renamed to
12234 i386_insert_aligned_watchpoint and made static.
12236 (i386_dr_remove_aligned_watchpoint): Renamed to
12237 i386_remove_aligned_watchpoint and made static.
12239 (i386_dr_update_inferior_debug_regs): Renamed to
12240 i386_update_inferior_debug_regs and made static.
12243 2014-06-18 Gary Benson <gbenson@redhat.com>
12245 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12246 (i386_dr_low_can_set_control): Likewise.
12247 (i386_get_debug_register_length): Likewise.
12248 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12249 (i386_dr_low_can_set_control): Likewise.
12250 (i386_get_debug_register_length): Likewise.
12252 2014-06-17 Gary Benson <gbenson@redhat.com>
12254 * i386-low.h (i386-dregs.h): New include.
12255 (DR_FIRSTADDR): Now in i386-dregs.h.
12256 (DR_LASTADDR): Likewise.
12257 (DR_NADDR): Likewise.
12258 (DR_STATUS): Likewise.
12259 (DR_CONTROL): Likewise.
12260 (i386_debug_reg_state): Likewise.
12261 (i386_dr_insert_watchpoint): Likewise.
12262 (i386_dr_remove_watchpoint): Likewise.
12263 (i386_dr_region_ok_for_watchpoint): Likewise.
12264 (i386_dr_stopped_data_address): Likewise.
12265 (i386_dr_stopped_by_watchpoint): Likewise.
12266 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12268 2014-06-18 Gary Benson <gbenson@redhat.com>
12270 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12271 i386_dr_insert_watchpoint.
12272 (i386_low_remove_watchpoint): Renamed to
12273 i386_dr_remove_watchpoint.
12274 (i386_low_region_ok_for_watchpoint): Renamed to
12275 i386_dr_region_ok_for_watchpoint.
12276 (i386_low_stopped_data_address): Renamed to
12277 i386_dr_stopped_data_address.
12278 (i386_low_stopped_by_watchpoint): Renamed to
12279 i386_dr_stopped_by_watchpoint.
12280 * i386-low.c (i386_show_dr): Renamed to
12281 i386_dr_show and made nonstatic. All uses updated.
12282 (i386_length_and_rw_bits): Renamed to
12283 i386_dr_length_and_rw_bits and made nonstatic.
12285 (i386_insert_aligned_watchpoint): Renamed to
12286 i386_dr_insert_aligned_watchpoint and made nonstatic.
12288 (i386_remove_aligned_watchpoint): Renamed to
12289 i386_dr_remove_aligned_watchpoint and made nonstatic.
12291 (i386_update_inferior_debug_regs): Renamed to
12292 i386_dr_update_inferior_debug_regs and made nonstatic.
12294 (i386_low_insert_watchpoint): Renamed to
12295 i386_dr_insert_watchpoint. All uses updated.
12296 (i386_low_remove_watchpoint): Renamed to
12297 i386_dr_remove_watchpoint. All uses updated.
12298 (i386_low_region_ok_for_watchpoint): Renamed to
12299 i386_dr_region_ok_for_watchpoint. All uses updated.
12300 (i386_low_stopped_data_address): Renamed to
12301 i386_dr_stopped_data_address. All uses updated.
12302 (i386_low_stopped_by_watchpoint): Renamed to
12303 i386_dr_stopped_by_watchpoint. All uses updated.
12305 2014-06-18 Gary Benson <gbenson@redhat.com>
12307 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12308 (i386_dr_low_can_set_control): Likewise.
12309 (i386_insert_aligned_watchpoint): New check.
12311 2014-06-18 Gary Benson <gbenson@redhat.com>
12313 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12316 2014-06-18 Gary Benson <gbenson@redhat.com>
12318 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12319 instead of fatal and error.
12320 (i386_handle_nonaligned_watchpoint): Likewise.
12322 2014-06-18 Gary Benson <gbenson@redhat.com>
12324 * i386-low.c (i386_get_debug_register_length): New macro.
12325 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12326 (i386_show_dr): Use debug_printf instead of fprintf. Use
12327 phex to format values.
12329 2014-06-18 Gary Benson <gbenson@redhat.com>
12331 * i386-low.h: Comment changes.
12332 * i386-low.c: Likewise.
12334 2014-06-18 Gary Benson <gbenson@redhat.com>
12336 * i386-low.c: Whitespace changes.
12338 2014-06-12 Tom Tromey <tromey@redhat.com>
12340 * utils.c (freeargv): Remove.
12342 2014-06-12 Tom Tromey <tromey@redhat.com>
12344 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12345 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12346 (parse_debug_format_options): Likewise.
12347 (gdbserver_usage): Likewise.
12348 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12349 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12350 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12352 ($(LIBGNU)): Depend on libiberty.
12353 (all-lib): Recurse into all subdirs.
12354 (install-only): Invoke "install" target in subdirs.
12355 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12357 * configure: Rebuild.
12358 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12359 for vasprintf, vsnprintf, or gettimeofday.
12360 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12363 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12365 * development.sh: Delete.
12366 * Makefile.in (config.status): Adjust dependency on development.sh.
12367 * configure.ac: Adjust development.sh source call.
12368 * configure: Regenerate.
12370 2014-06-02 Pedro Alves <palves@redhat.com>
12372 * ax.c (gdb_free_agent_expr): New function.
12373 * ax.h (gdb_free_agent_expr): New declaration.
12374 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12376 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12378 (clear_breakpoint_conditions_and_commands): New function.
12379 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12380 (clear_breakpoint_conditions_and_commands): New declaration.
12382 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12384 * linux-aarch64-low.c (asm/ptrace.h): Include.
12386 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12388 Fix TLS access for -static -pthread.
12389 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12390 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12391 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12393 2014-05-20 Pedro Alves <palves@redhat.com>
12395 * linux-aarch64-low.c (aarch64_insert_point)
12396 (aarch64_remove_point): No longer check whether the type is
12397 supported here. Adjust to new interface.
12398 (the_low_target): Install aarch64_supports_z_point_type as
12399 supports_z_point_type method.
12400 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12401 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12402 instead of a Z packet char. Adjust.
12403 (arm_supports_z_point_type): New function.
12404 (arm_insert_point, arm_remove_point): Adjust to new interface.
12405 (the_low_target): Install arm_supports_z_point_type.
12406 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12407 (cris_insert_point, cris_remove_point): Adjust to new interface.
12408 Don't check whether the type is supported here.
12409 (the_low_target): Install cris_supports_z_point_type.
12410 * linux-low.c (linux_supports_z_point_type): New function.
12411 (linux_insert_point, linux_remove_point): Adjust to new interface.
12412 * linux-low.h (struct linux_target_ops) <insert_point,
12413 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12414 raw_breakpoint pointer parameter.
12415 <supports_z_point_type>: New method.
12416 * linux-mips-low.c (mips_supports_z_point_type): New function.
12417 (mips_insert_point, mips_remove_point): Adjust to new interface.
12418 Use mips_supports_z_point_type.
12419 (the_low_target): Install mips_supports_z_point_type.
12420 * linux-ppc-low.c (the_low_target): Install NULL as
12421 supports_z_point_type method.
12422 * linux-s390-low.c (the_low_target): Install NULL as
12423 supports_z_point_type method.
12424 * linux-sparc-low.c (the_low_target): Install NULL as
12425 supports_z_point_type method.
12426 * linux-x86-low.c (x86_supports_z_point_type): New function.
12427 (x86_insert_point): Adjust to new insert_point interface. Use
12428 insert_memory_breakpoint. Adjust to new
12429 i386_low_insert_watchpoint interface.
12430 (x86_remove_point): Adjust to remove_point interface. Use
12431 remove_memory_breakpoint. Adjust to new
12432 i386_low_remove_watchpoint interface.
12433 (the_low_target): Install x86_supports_z_point_type.
12434 * lynx-low.c (lynx_target_ops): Install NULL as
12435 supports_z_point_type callback.
12436 * nto-low.c (nto_supports_z_point_type): New.
12437 (nto_insert_point, nto_remove_point): Adjust to new interface.
12438 (nto_target_ops): Install nto_supports_z_point_type.
12439 * mem-break.c: Adjust intro comment.
12440 (struct raw_breakpoint) <raw_type, size>: New fields.
12441 <inserted>: Update comment.
12442 <shlib_disabled>: Delete field.
12443 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12444 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12445 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12446 (raw_bkpt_type_to_target_hw_bp_type): New function.
12447 (find_enabled_raw_code_breakpoint_at): New function.
12448 (find_raw_breakpoint_at): New type and size parameters. Use them.
12449 (insert_memory_breakpoint): New function, based off
12450 set_raw_breakpoint_at.
12451 (remove_memory_breakpoint): New function.
12452 (set_raw_breakpoint_at): Reimplement.
12453 (set_breakpoint): New, based on set_breakpoint_at.
12454 (set_breakpoint_at): Reimplement.
12455 (delete_raw_breakpoint): Go through the_target->remove_point
12456 instead of assuming memory breakpoints.
12457 (find_gdb_breakpoint_at): Delete.
12458 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12459 (find_gdb_breakpoint): New function.
12460 (set_gdb_breakpoint_at): Delete.
12461 (z_type_supported): New function.
12462 (set_gdb_breakpoint_1): New function, loosely based off
12463 set_gdb_breakpoint_at.
12464 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12465 (delete_gdb_breakpoint_at): Delete.
12466 (delete_gdb_breakpoint_1): New function, loosely based off
12467 delete_gdb_breakpoint_at.
12468 (delete_gdb_breakpoint): New function.
12469 (clear_gdb_breakpoint_conditions): Rename to ...
12470 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12472 (add_condition_to_breakpoint): Make static.
12473 (add_breakpoint_condition): Take a struct breakpoint pointer
12474 instead of an address. Adjust.
12475 (gdb_condition_true_at_breakpoint): Rename to ...
12476 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12478 (gdb_condition_true_at_breakpoint): Reimplement.
12479 (add_breakpoint_commands): Take a struct breakpoint pointer
12480 instead of an address. Adjust.
12481 (gdb_no_commands_at_breakpoint): Rename to ...
12482 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12483 parameter. Return true if no breakpoint was found. Change debug
12485 (gdb_no_commands_at_breakpoint): Reimplement.
12486 (run_breakpoint_commands): Rename to ...
12487 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12488 and change return type to boolean.
12489 (run_breakpoint_commands): New function.
12490 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12491 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12492 breakpoint. Go through the_target->remove_point instead of
12493 assuming memory breakpoint.
12494 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12495 software and hardware breakpoints.
12496 (reinsert_raw_breakpoint): Go through the_target->insert_point
12497 instead of assuming memory breakpoint.
12498 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12499 software and hardware breakpoints.
12500 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12501 Check both software and hardware breakpoints.
12502 (validate_inserted_breakpoint): Assert the breakpoint is a
12503 software breakpoint. Set the inserted flag to -1 instead of
12504 setting shlib_disabled.
12505 (delete_disabled_breakpoints): Adjust.
12506 (validate_breakpoints): Only validate software breakpoints.
12507 Adjust to inserted flag change.
12508 (check_mem_read, check_mem_write): Skip breakpoint types other
12509 than software breakpoints. Adjust to inserted flag change.
12510 * mem-break.h (enum raw_bkpt_type): New enum.
12511 (raw_breakpoint, struct process_info): Forward declare.
12512 (Z_packet_to_target_hw_bp_type): Delete declaration.
12513 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12514 (set_gdb_breakpoint, delete_gdb_breakpoint)
12515 (clear_breakpoint_conditions): New declarations.
12516 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12517 (breakpoint_inserted_here): Update comment.
12518 (add_breakpoint_condition, add_breakpoint_commands): Replace
12519 address parameter with a breakpoint pointer parameter.
12520 (gdb_breakpoint_here): Update comment.
12521 (delete_gdb_breakpoint_at): Delete.
12522 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12523 * server.c (process_point_options): Take a struct breakpoint
12524 pointer instead of an address. Adjust.
12525 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12526 delete_gdb_breakpoint.
12527 * spu-low.c (spu_target_ops): Install NULL as
12528 supports_z_point_type method.
12529 * target.h: Include mem-break.h.
12530 (struct target_ops) <prepare_to_access_memory>: Update comment.
12531 <supports_z_point_type>: New field.
12532 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12533 instead of a char. Also take a raw breakpoint pointer.
12534 * win32-arm-low.c (the_low_target): Install NULL as
12535 supports_z_point_type.
12536 * win32-i386-low.c (i386_supports_z_point_type): New function.
12537 (i386_insert_point, i386_remove_point): Adjust to new interface.
12538 (the_low_target): Install i386_supports_z_point_type.
12539 * win32-low.c (win32_supports_z_point_type): New function.
12540 (win32_insert_point, win32_remove_point): Adjust to new interface.
12541 (win32_target_ops): Install win32_supports_z_point_type.
12542 * win32-low.h (struct win32_target_ops):
12543 <supports_z_point_type>: New method.
12544 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12545 instead of a char. Also take a raw breakpoint pointer.
12547 2014-05-20 Pedro Alves <palves@redhat.com>
12549 * mem-break.h: Include break-common.h.
12550 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12551 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12552 (Z_packet_to_target_hw_bp_type): New declaration.
12553 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12554 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12555 (Z_PACKET_ACCESS_WP): Delete macros.
12556 (Z_packet_to_hw_type): Delete function.
12557 * i386-low.h: Don't include break-common.h here.
12558 (Z_packet_to_hw_type): Delete declaration.
12559 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12560 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12561 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12562 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12563 * linux-aarch64-low.c: Don't include break-common.h here.
12564 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12565 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12566 (Z_packet_to_target_hw_bp_type): Delete function.
12567 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12569 (mips_insert_point, mips_remove_point): Use
12570 Z_packet_to_target_hw_bp_type.
12572 2014-05-20 Pedro Alves <palves@redhat.com>
12574 * linux-aarch64-low.c: Include break-common.h.
12575 (enum target_point_type): Delete.
12576 (Z_packet_to_point_type): Rename to ...
12577 (Z_packet_to_target_hw_bp_type): ... this, and return a
12578 target_hw_bp_type instead.
12579 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12580 instead of an enum target_point_type.
12581 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12583 (aarch64_dr_state_insert_one_point)
12584 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12585 (aarch64_handle_aligned_watchpoint)
12586 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12587 Take an enum target_hw_bp_type instead of an enum
12589 (aarch64_supports_z_point_type): New function.
12590 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12591 use Z_packet_to_target_hw_bp_type.
12593 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12595 * configure.ac: Only use -Werror by default when DEVELOPMENT
12597 * configure: Regenerate.
12599 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12601 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12602 * linux-x86-low.c (X86_64_USER_REGS): New.
12603 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12605 2014-04-28 Yao Qi <yao@codesourcery.com>
12607 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12610 2014-04-25 Pedro Alves <palves@redhat.com>
12613 * linux-low.c (linux_attach_fail_reason_string): New function.
12614 (linux_attach_lwp): Delete.
12615 (linux_attach_lwp_1): Rename to ...
12616 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12617 argument. Remove "initial" parameter. Return int instead of
12618 void. Don't error or warn here.
12619 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12620 failure to attach to the tgid. Call warning when failing to
12622 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12623 argument. Remove "initial" parameter. Return int instead of
12624 void. Don't error or warn here.
12625 (linux_attach_fail_reason_string): New declaration.
12626 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12627 interface change. Use linux_attach_fail_reason_string.
12629 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12630 Walfred Tedeschi <walfred.tedeschi@intel.com>
12632 * Makefile.in: Added rules to handle new files
12633 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12634 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12635 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12636 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12637 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12638 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12639 x32-avx512-linux.o.
12640 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12641 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12642 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12643 i386/x32-avx512.xml.
12644 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12645 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12646 i386/x32-avx512-linux.xml.
12647 * i387-fp.c (num_avx512_k_registers): New constant for number
12649 (num_avx512_zmmh_low_registers): New constant for number of
12650 lower ZMM registers (0-15).
12651 (num_avx512_zmmh_high_registers): New constant for number of
12652 higher ZMM registers (16-31).
12653 (num_avx512_ymmh_registers): New contant for number of higher
12654 YMM registers (ymm16-31 added by avx521 on x86_64).
12655 (num_avx512_xmm_registers): New constant for number of higher
12656 XMM registers (xmm16-31 added by AVX512 on x86_64).
12657 (struct i387_xsave): Add space for AVX512 registers.
12658 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12659 Add code to handle AVX512 registers.
12660 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12661 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12662 prototypei from generated file.
12663 (tdesc_amd64_avx512_linux): Likewise.
12664 (init_registers_x32_avx512_linux): Likewise.
12665 (tdesc_x32_avx512_linux): Likewise.
12666 (init_registers_i386_avx512_linux): Likewise.
12667 (tdesc_i386_avx512_linux): Likewise.
12668 (x86_64_regmap): Add AVX512 registers.
12669 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12671 (initialize_low_arch): Add code to initialize AVX512 registers.
12673 2014-04-23 Pedro Alves <palves@redhat.com>
12675 * mem-break.c (find_gdb_breakpoint_at): Make static.
12676 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12678 2014-04-23 Pedro Alves <palves@redhat.com>
12680 * i386-low.c: Don't include break-common.h here.
12681 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12682 prototype to take target_hw_bp_type as argument instead of a Z
12684 * i386-low.h: Include break-common.h here.
12685 (Z_packet_to_hw_type): Declare.
12686 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12688 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12689 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12690 (x86_remove_point): Convert the packet number to a
12691 target_hw_bp_type before calling i386_low_remove_watchpoint.
12692 * win32-i386-low.c (i386_insert_point): Convert the packet number
12693 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12694 (i386_remove_point): Convert the packet number to a
12695 target_hw_bp_type before calling i386_low_remove_watchpoint.
12697 2014-04-23 Pedro Alves <palves@redhat.com>
12699 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12701 2014-04-10 Pedro Alves <palves@redhat.com>
12703 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12704 Check if the condition or command is NULL before checking if the
12705 breakpoint is known. On success, return true.
12706 * mem-break.h (add_breakpoint_condition): Document return.
12707 (add_breakpoint_commands): Add describing comment.
12708 * server.c (skip_to_semicolon): New function.
12709 (process_point_options): Use it.
12711 2014-04-09 Pedro Alves <palves@redhat.com>
12713 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12716 2014-02-27 Pedro Alves <palves@redhat.com>
12719 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12721 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12723 (last_thread_of_process_p): Take a PID argument instead of a
12725 (linux_wait_for_lwp): Delete.
12726 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12728 (linux_low_filter_event): New function, party factored out from
12729 linux_wait_for_event.
12730 (linux_wait_for_event): Rename to ...
12731 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12732 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12733 sigsuspend. Check for zombie leaders.
12734 (linux_wait_for_event): Reimplement as wrapper around
12735 linux_wait_for_event_filtered.
12736 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12737 a normal or signal exit is seen, it's the whole process exiting.
12738 (wait_for_sigstop): No longer a for_each_inferior callback.
12739 Rewrite on top of linux_wait_for_event_filtered.
12740 (stop_all_lwps): Call wait_for_sigstop directly.
12741 * server.c (resume, handle_target_event): Handle
12742 TARGET_WAITKIND_NO_RESUMED.
12744 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12746 * win32-low.c (psapi_get_dll_name,
12747 * win32_CreateToolhelp32Snapshot): Delete.
12748 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12749 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12751 (handle_load_dll): Add function description.
12752 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12754 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12756 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12758 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12759 base address when calling win32_add_one_solib.
12760 (handle_load_dll): Delete local variable load_addr.
12761 Remove 0x1000 offset applied to DLL base address when calling
12762 win32_add_one_solib.
12763 (handle_unload_dll): Add comment.
12765 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12767 * win32-low.c (win32_add_all_dlls): Renames
12768 win32_ensure_ntdll_loaded. Rewrite function documentation.
12769 Adjust implementation to always load all DLLs.
12770 Add 0x1000 offset to DLL base address when calling
12771 win32_add_one_solib.
12772 (child_initialization_done): New static global.
12773 (do_initial_child_stuff): Set child_initialization_done to
12774 zero during child initialization, and 1 after. Replace call
12775 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12777 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12778 (handle_unload_dll): Add function documentation.
12779 (get_child_debug_event): Ignore load and unload DLL events
12780 during child initialization.
12782 2014-02-20 Doug Evans <dje@google.com>
12784 Remove global all_lwps.
12785 * inferiors.h (ptid_of): Move here from linux-low.h.
12786 (pid_of, lwpid_of): Ditto.
12787 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12788 parameter is a struct thread_info * now.
12789 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12790 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12791 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12793 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12794 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12795 * linux-arm-low.c (update_registers_callback): Update, "entry"
12796 parameter is a struct thread_info * now.
12797 Fetch lwpid from current_inferior directly.
12798 (arm_insert_point): Pass &all_threads to find_inferior instead of
12800 (arm_remove_point): Ditto.
12801 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12802 (arm_prepare_to_resume): Fetch pid from thread.
12803 (arm_read_description): Fetch lwpid from current_inferior directly.
12804 * linux-low.c (all_lwps): Delete.
12805 (delete_lwp): Delete call to remove_inferior.
12806 (handle_extended_wait): Fetch lwpid from thread.
12807 (add_lwp): Don't set lwp->entry.id. Remove call to
12808 add_inferior_to_list.
12809 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12810 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12811 (kill_one_lwp_callback): Ditto.
12812 (linux_kill): Don't dereference NULL pointer.
12813 Fetch ptid,lwpid from thread.
12814 (get_detach_signal): Fetch ptid from thread.
12815 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12816 Simplify call to regcache_invalidate_thread.
12817 (delete_lwp_callback): Update, "entry" parameter is a
12818 struct thread_info * now. Fetch pid from thread.
12819 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12820 (status_pending_p_callback): Update, "entry" parameter is a
12821 struct thread_info * now. Fetch ptid from thread.
12822 (find_lwp_pid): Update, "entry" parameter is a
12823 struct thread_info * now.
12824 (linux_wait_for_lwp): Fetch pid from thread.
12825 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12826 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12827 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12828 (dequeue_one_deferred_signal): Ditto.
12829 (cancel_breakpoint): Fetch ptid from current_inferior.
12830 (linux_wait_for_event): Pass &all_threads to find_inferior,
12831 not &all_lwps. Fetch ptid, lwpid from thread.
12832 (count_events_callback): Update, "entry" parameter is a
12833 struct thread_info * now.
12834 (select_singlestep_lwp_callback): Ditto.
12835 (select_event_lwp_callback): Ditto.
12836 (cancel_breakpoints_callback): Ditto.
12837 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12839 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12840 (unsuspend_one_lwp): Update, "entry" parameter is a
12841 struct thread_info * now.
12842 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12844 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12845 Fetch lwpid from thread, not lwp.
12846 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12847 Pass &all_threads to find_inferior, not &all_lwps.
12848 (send_sigstop): Fetch lwpid from thread, not lwp.
12849 (send_sigstop_callback): Update, "entry" parameter is a
12850 struct thread_info * now.
12851 (suspend_and_send_sigstop_callback): Ditto.
12852 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12853 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12854 struct thread_info * now.
12855 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12857 (lwp_running): Update, "entry" parameter is a
12858 struct thread_info * now.
12859 (stop_all_lwps): Fetch ptid from thread.
12860 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12861 (linux_resume_one_lwp): Fetch lwpid from thread.
12862 (linux_set_resume_request): Update, "entry" parameter is a
12863 struct thread_info * now. Fetch pid, lwpid from thread.
12864 (resume_status_pending_p): Update, "entry" parameter is a
12865 struct thread_info * now.
12866 (need_step_over_p): Ditto. Fetch lwpid from thread.
12867 (start_step_over): Fetch lwpid from thread.
12868 (linux_resume_one_thread): Update, "entry" parameter is a
12869 struct thread_info * now. Fetch lwpid from thread.
12870 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12871 (proceed_one_lwp): Update, "entry" parameter is a
12872 struct thread_info * now. Fetch lwpid from thread.
12873 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12874 struct thread_info * now.
12875 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12876 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12877 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12879 (regsets_store_inferior_registers): Ditto.
12880 (fetch_register, store_register): Ditto.
12881 (linux_read_memory, linux_write_memory): Ditto.
12882 (linux_request_interrupt): Ditto.
12883 (linux_read_auxv): Ditto.
12884 (linux_xfer_siginfo): Ditto.
12885 (linux_qxfer_spu): Ditto.
12886 (linux_qxfer_libraries_svr4): Ditto.
12887 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12888 moved to inferiors.h.
12890 (get_thread_lwp): Update.
12891 (struct lwp_info): Delete member "entry". Simplify comment for
12893 (all_lwps): Delete.
12894 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12895 current_inferior directly.
12896 (update_watch_registers_callback): Update, "entry" parameter is a
12897 struct thread_info * now. Fetch pid from thread.
12898 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12899 (mips_insert_point): Fetch lwpid from current_inferior.
12900 Pass &all_threads to find_inferior, not &all_lwps.
12901 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12902 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12904 (mips_stopped_data_address): Ditto.
12905 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12907 * linux-tile-low.c (tile_arch_setup): Ditto.
12908 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12909 (update_debug_registers_callback): Update, "entry" parameter is a
12910 struct thread_info * now. Fetch pid from thread.
12911 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12912 Pass &all_threads to find_inferior, not &all_lwps.
12913 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12914 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12915 Pass &all_threads to find_inferior, not &all_lwps.
12916 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12917 (i386_dr_low_get_status): Ditto.
12918 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12919 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12920 (x86_linux_read_description): Ditto.
12921 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12923 2014-02-20 Doug Evans <dje@google.com>
12925 * inferiors.c (get_first_inferior): Fix buglet.
12927 2014-02-19 Doug Evans <dje@google.com>
12929 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12930 * inferiors.c (add_thread): Change result type to struct thread_info *.
12931 All callers updated.
12932 (add_lwp): Call add_thread here instead of in callers.
12933 All callers updated.
12934 * linux-low.h (get_lwp_thread): Rewrite.
12935 (struct lwp_info): New member "thread".
12937 2014-02-19 Doug Evans <dje@google.com>
12939 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12940 All callers updated.
12942 2014-02-19 Doug Evans <dje@google.com>
12944 * inferiors.c (add_thread): Fix whitespace.
12946 2014-02-19 Doug Evans <dje@google.com>
12948 * dll.c (clear_dlls): Replace accessing list implemention details
12950 * gdbthread.h (get_first_thread): Declare.
12951 * inferiors.c (for_each_inferior_with_data): New function.
12952 (get_first_thread): New function.
12953 (find_thread_ptid): Simplify.
12954 (get_first_inferior): New function.
12955 (clear_list): Delete.
12956 (one_inferior_p): New function.
12957 (clear_inferior_list): New function.
12958 (clear_inferiors): Update.
12959 * inferiors.h (for_each_inferior_with_data): Declare.
12960 (clear_inferior_list): Declare.
12961 (one_inferior_p): Declare.
12962 (get_first_inferior): Declare.
12963 * linux-low.c (linux_wait_for_event): Replace accessing list
12964 implemention details with API function.
12965 * server.c (target_running): Ditto.
12966 (accumulate_file_name_length): New function.
12967 (emit_dll_description): New function.
12968 (handle_qxfer_libraries): Replace accessing list implemention
12969 details with API function.
12970 (handle_qxfer_threads_worker): New function.
12971 (handle_qxfer_threads_proper): Replace accessing list implemention
12972 details with API function.
12973 (handle_query): Ditto.
12974 (visit_actioned_threads_callback_ftype): New typedef.
12975 (visit_actioned_threads_data): New struct.
12976 (visit_actioned_threads): Rewrite to be find_inferior callback.
12977 (resume): Call find_inferior.
12978 (handle_status): Replace accessing list implemention
12979 details with API function.
12980 (process_serial_event): Replace accessing list implemention details
12982 * target.c (set_desired_inferior): Replace accessing list implemention
12983 details with API function.
12984 * tracepoint.c (same_process_p): New function.
12985 (gdb_agent_about_to_close): Replace accessing list implemention
12986 details with API function.
12987 * win32-low.c (child_delete_thread): Replace accessing list
12988 implemention details with API function.
12989 (match_dll_by_basename): New function.
12990 (dll_is_loaded_by_basename): New function.
12991 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12992 details call to dll_is_loaded_by_basename.
12994 2014-02-19 Doug Evans <dje@google.com>
12996 * dll.h (struct dll_info): Add comment.
12997 * gdbthread.h (struct thread_info): Add comment.
12998 (current_ptid): Simplify.
12999 * inferiors.c (add_process): Update.
13000 (remove_process): Update.
13001 * inferiors.h (struct process_info): Rename member "head" to "entry".
13002 * linux-low.c (delete_lwp): Update.
13004 (last_thread_of_process_p): Update.
13005 (kill_one_lwp_callback, linux_kill): Update.
13006 (status_pending_p_callback): Update.
13007 (wait_for_sigstop): Update. Simplify read of ptid.
13008 (start_step_over): Update.
13009 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13010 (get_lwp_thread): Update.
13011 (struct lwp_info): Rename member "head" to "entry".
13012 * regcache.h (inferior_list_entry): Delete.
13013 * server.c (kill_inferior_callback): Update.
13014 (detach_or_kill_inferior_callback): Update.
13015 (print_started_pid): Update.
13016 (print_attached_pid): Update.
13017 (process_serial_event): Simplify read of ptid.
13018 * thread-db.c (thread_db_create_event): Update.
13019 (thread_db_get_tls_address): Update.
13020 * win32-low.c (current_inferior_ptid): Simplify.
13022 2014-02-19 Tom Tromey <tromey@redhat.com>
13024 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13026 (target_supports_btrace): Update.
13028 2014-02-14 Yao Qi <yao@codesourcery.com>
13030 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13031 (rsp-low-ipa.o): New target.
13033 2014-02-12 Tom Tromey <tromey@redhat.com>
13035 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13036 convert_ascii_to_int.
13037 * regcache.c (registers_to_string): Likewise.
13038 * remote-utils.c (decode_M_packet): Likewise.
13039 * server.c (process_serial_event): Likewise.
13041 2014-02-12 Tom Tromey <tromey@redhat.com>
13043 * server.c (handle_query, handle_v_run): Use hex2bin, not
13045 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13047 2014-02-12 Tom Tromey <tromey@redhat.com>
13049 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13050 convert_int_to_ascii.
13051 * regcache.c (registers_to_string, collect_register_as_string):
13053 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13055 * server.c (process_serial_event): Likewise.
13056 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13057 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13059 2014-02-12 Tom Tromey <tromey@redhat.com>
13061 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13062 bin2hex, not hexify.
13063 * tracepoint.c (cmd_qtstatus): Likewise.
13065 2014-02-12 Tom Tromey <tromey@redhat.com>
13067 * remote-utils.c (monitor_output): Pass explicit length to
13070 2014-02-12 Tom Tromey <tromey@redhat.com>
13072 * tracepoint.c: Include rsp-low.h.
13073 * server.c: Include rsp-low.h.
13074 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13075 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13077 * remote-utils.c: Include rsp-low.h.
13078 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13079 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13080 (convert_int_to_ascii, convert_ascii_to_int): Move to
13082 * regcache.c: Include rsp-low.h.
13083 * ax.c: Include rsp-low.h.
13084 * Makefile.in (SFILES): Add common/rsp-low.c.
13085 (OBS): Add rsp-low.o.
13086 (rsp-low.o): New target.
13088 2014-02-12 Tom Tromey <tromey@redhat.com>
13090 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13091 Include print-utils.h.
13092 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13093 (plongest, thirty_two, phex_nz): Remove.
13094 * Makefile.in (SFILES): Add common/print-utils.c.
13095 (OBS): Add print-utils.o.
13096 (print-utils-ipa.o): New target.
13097 (print-utils.o): New target.
13098 (IPA_OBJS): Add print-utils-ipa.o.
13100 2014-02-06 Tom Tromey <tromey@redhat.com>
13102 * Makefile.in (SFILES): Fix indentation.
13104 2014-02-05 Doug Evans <dje@google.com>
13106 * linux-low.c (linux_wait_for_event): Improve comment.
13107 (linux_wait_1): Keep current_inferior in sync with event_child.
13109 2014-01-22 Doug Evans <dje@google.com>
13111 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13113 2014-01-22 Doug Evans <dje@google.com>
13115 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13116 * configure: Regenerate.
13117 * config.in: Regenerate.
13118 * Makefile.in (SFILES): Add debug.c.
13119 (OBS): Add debug.o.
13120 * debug.c: New file.
13121 * debug.h: New file.
13122 * linux-aarch64-low.c (*): Update all debugging printfs to use
13123 debug_printf instead of fprintf.
13124 * linux-arm-low.c (*): Ditto.
13125 * linux-cris-low.c (*): Ditto.
13126 * linux-crisv32-low.c (*): Ditto.
13127 * linux-m32r-low.c (*): Ditto.
13128 * linux-sparc-low.c (*): Ditto.
13129 * linux-x86.c (*): Ditto.
13130 * linux-low.c (*): Ditto.
13131 (linux_wait_1): Add calls to debug_enter, debug_exit.
13132 (linux_wait): Remove redundant debugging printf.
13133 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13134 (linux_resume, unstop_all_lwps): Ditto.
13135 * mem-break.c (*): Update all debugging printfs to use
13136 debug_printf instead of fprintf.
13137 * remote-utils.c (*): Ditto.
13138 * thread-db.c (*): Ditto.
13139 * server.c #include <ctype.h>, "gdb_vecs.h".
13140 (debug_threads): Moved to debug.c.
13141 (*): Update all debugging printfs to use debug_printf instead of
13143 (start_inferior): Replace call to fflush with call to debug_flush.
13144 (monitor_show_help): Mention set debug-format.
13145 (parse_debug_format_options): New function.
13146 (handle_monitor_command): Handle "monitor set debug-format".
13147 (gdbserver_usage): Mention --debug-format.
13148 (main): Parse --debug-format.
13149 * server.h (debug_threads): Declaration moved to debug.h.
13150 #include "debug.h".
13151 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13152 trace_debug_1 that uses debug_printf.
13153 (tracepoint_look_up_symbols): Update all debugging printfs to use
13154 debug_printf instead of fprintf.
13156 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13158 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13161 2014-01-17 Pedro Alves <palves@redhat.com>
13164 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13165 defined after including gdb_proc_service.h.
13167 2014-01-16 Doug Evans <dje@google.com>
13169 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13170 (match_dll): Use it.
13172 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13174 * target.h (target_ops) <read_btrace>: Change parameters and
13175 return type to allow error reporting.
13176 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13177 trace reading errors on.
13178 * linux-low.c (linux_low_read_btrace): Pass trace reading
13180 (linux_low_disable_btrace): New.
13182 2014-01-15 Doug Evans <dje@google.com>
13184 * inferiors.c (thread_id_to_gdb_id): Delete.
13185 * inferiors.h (thread_id_to_gdb_id): Delete.
13187 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13189 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13190 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13193 2014-01-08 Pedro Alves <palves@redhat.com>
13195 * server.c (handle_status): Don't discard previous queued stop
13196 replies or thread's pending status here.
13197 (main) <disconnection>: Do it here instead.
13199 2014-01-08 Pedro Alves <palves@redhat.com>
13201 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13202 * server.c (visit_actioned_threads, handle_pending_status): New
13204 (handle_v_cont): Factor out parts to ...
13205 (resume): ... this new function. If in all-stop, and a thread
13206 being resumed has a pending status, report it without actually
13208 (myresume): Adjust to use the new 'resume' function.
13209 (clear_pending_status_callback, set_pending_status_callback)
13210 (find_status_pending_thread_callback): New functions.
13211 (handle_status): Handle the case of multiple threads having
13212 interesting statuses to report. Report threads' real last signal
13213 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13214 with an interesting thread to report the status for, instead of
13215 always reporting the status of the first thread.
13217 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13219 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13220 * gdbreplay.c (gdbreplay_version): Likewise.
13222 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13224 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13225 iov.iov_len with the real length in use.
13227 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13229 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13230 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13231 for all targets that use win32-low.c.
13232 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13233 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13235 2013-12-13 Pedro Alves <palves@redhat.com>
13237 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13238 if equal to TARGET_WAITKIND_LOADED.
13239 * win32-low.c (cached_status): New static global.
13240 (win32_wait): Add declaration.
13241 (do_initial_child_stuff): Flush all initial pending debug events
13242 up to the initial breakpoint.
13243 (win32_wait): If CACHED_STATUS was set, return that instead
13244 of doing a real wait. Remove the code resuming the execution
13245 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13246 during the initial phase. Also remove the code changing
13247 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13248 TARGET_WAITKIND_STOPPED.
13250 2013-12-11 Yao Qi <yao@codesourcery.com>
13252 * notif.c (handle_notif_ack): Return 0 if no notification
13255 2013-11-20 Doug Evans <dje@google.com>
13257 * linux-low.c (linux_set_resume_request): Fix comment.
13259 2013-11-20 Doug Evans <dje@google.com>
13261 * linux-low.c (resume_status_pending_p): Tweak comment.
13263 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13265 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13266 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13267 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13268 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13269 (srv_amd64_regobj): Add amd64-mpx.o.
13270 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13271 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13272 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13273 * i387-fp.c (num_pl_bnd_register) Added constant.
13274 (num_pl_bnd_cfg_registers) Added constant.
13275 (struct i387_xsave) Added reserved area and MPX fields.
13276 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13277 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13279 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13280 (init_registers_amd64_mpx_linux): Declare new function.
13281 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13282 (x86_64_regmap): Add MPX registers.
13283 (x86_linux_read_description): Add MPX case.
13284 (initialize_low_arch): Initialize MPX targets.
13286 2013-11-18 Tom Tromey <tromey@redhat.com>
13288 * configure: Rebuild.
13289 * configure.ac: Don't check for stdlib.h.
13290 * gdbreplay.c: Unconditionally include stdlib.h.
13292 2013-11-18 Tom Tromey <tromey@redhat.com>
13294 * config.in: Rebuild.
13295 * configure: Rebuild.
13296 * configure.ac: Don't use AC_HEADER_DIRENT.
13298 2013-11-18 Tom Tromey <tromey@redhat.com>
13300 * server.h: Don't check HAVE_STRING_H.
13301 * gdbreplay.c: Don't check HAVE_STRING_H.
13302 * configure: Rebuild.
13304 2013-11-18 Tom Tromey <tromey@redhat.com>
13306 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13309 2013-11-08 Tom Tromey <tromey@redhat.com>
13311 * configure, config.in: Rebuild.
13312 * configure.ac: Remove unused configury.
13314 2013-11-08 Tom Tromey <tromey@redhat.com>
13316 * acinclude.m4: Include common.m4, codeset.m4.
13317 * configure, config.in: Rebuild.
13318 * configure.ac: Use GDB_AC_COMMON.
13320 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13322 * linux-s390-low.c (HWCAP_S390_TE): New define.
13323 (s390_arch_setup): Consider the TE field in the HWCAP for
13324 determining 'have_regset_tdb'.
13326 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13329 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13332 2013-10-02 Pedro Alves <palves@redhat.com>
13334 * server.c (process_serial_event): Don't output "GDBserver
13335 exiting" if GDB is connected through stdio.
13336 * target.c (mywait): Likewise, be silent if GDB is connected
13339 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13341 * lynx-low.c (lynx_add_threads_after_attach): New function.
13342 (lynx_attach): Remove call to add_thread. Add call to
13343 lynx_add_threads_after_attach instead.
13345 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13347 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13348 * config.in, configure: Regenerated.
13350 2013-09-18 Yao Qi <yao@codesourcery.com>
13353 * server.c (start_inferior): Clear 'resume_info'.
13355 2013-09-16 Jiong Wang <jiwang@tilera.com>
13357 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13360 2013-09-16 Jiong Wang <jiwang@tilera.com>
13362 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13363 linux-tile-low.o to srv_tgtobj.
13365 2013-09-16 Will Newton <will.newton@linaro.org>
13367 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13370 2013-09-06 Pedro Alves <palves@redhat.com>
13372 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13373 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13374 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13375 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13376 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13377 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13379 2013-09-06 Pedro Alves <palves@redhat.com>
13381 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13382 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13384 2013-09-06 Pedro Alves <palves@redhat.com>
13386 * linux-amd64-ipa.c: Include tracepoint.h.
13387 * linux-i386-ipa.c: Include tracepoint.h.
13389 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13391 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13392 (ps_get_thread_area): New function.
13394 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13396 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13397 (initialize_low_arch): Call init_registers_crisv32 rather than
13398 init_register_crisv32.
13400 2013-09-05 Pedro Alves <palves@redhat.com>
13402 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13404 * hostio.h: ... this new file.
13405 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13406 win32-low.c: Include hostio.h.
13408 2013-09-05 Pedro Alves <palves@redhat.com>
13410 * server.h (gdb_client_data, handler_func, callback_handler_func)
13411 (delete_file_handler, add_file_handler, append_callback_event)
13412 (delete_callback_event, start_event_loop, initialize_event_loop):
13413 Move to event-loop.h and include it.
13414 * event-loop.h: New file.
13416 2013-09-05 Pedro Alves <palves@redhat.com>
13418 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13419 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13420 (loaded_dll, unloaded_dll): Move to ...
13421 * dll.h: ... this new file.
13422 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13424 2013-09-05 Pedro Alves <palves@redhat.com>
13426 * server.h (current_process, get_thread_process, all_processes)
13427 (add_inferior_to_list, for_each_inferior, current_inferior)
13428 (remove_inferior, add_process, remove_process, find_process_pid)
13429 (have_started_inferiors_p, have_attached_inferiors_p)
13430 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13431 (clear_inferiors, find_inferior, find_inferior_id)
13432 (inferior_target_data, set_inferior_target_data)
13433 (inferior_regcache_data, set_inferior_regcache_data): Move to
13434 inferiors.h, and include it.
13435 * inferiors.h: New file.
13437 2013-09-05 Pedro Alves <palves@redhat.com>
13439 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13443 2013-09-05 Pedro Alves <palves@redhat.com>
13445 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13447 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13448 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13449 (handle_tracepoint_general_set, handle_tracepoint_query)
13450 (tracepoint_finished_step, tracepoint_was_hit)
13451 (release_while_stepping_state_list, current_traceframe)
13452 (in_readonly_region, traceframe_read_mem)
13453 (fetch_traceframe_registers, traceframe_read_sdata)
13454 (traceframe_read_info, struct fast_tpoint_collect_status)
13455 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13456 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13457 (supply_fast_tracepoint_registers)
13458 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13459 (ipa_tdesc, claim_trampoline_space)
13460 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13461 (agent_mem_read, agent_get_trace_state_variable_value)
13462 (agent_set_trace_state_variable_value, agent_tsv_read)
13463 (agent_mem_read_string, get_raw_reg_func_addr)
13464 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13465 * tracepoint.h: ... this new file.
13467 2013-09-05 Pedro Alves <palves@redhat.com>
13469 * server.h (perror_with_name, error, fatal, warning, paddress)
13470 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13472 * utils.h: New file.
13474 2013-09-05 Pedro Alves <palves@redhat.com>
13476 * server.h (remote_debug, noack_mode, transport_is_reliable)
13477 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13478 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13479 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13480 (write_enn, initialize_async_io, enable_async_io)
13481 (disable_async_io, check_remote_input_interrupt_request)
13482 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13483 (dead_thread_notify, prepare_resume_reply)
13484 (decode_address_to_semicolon, decode_address, decode_m_packet)
13485 (decode_M_packet, decode_X_packet, decode_xfer_write)
13486 (decode_search_memory_packet, unhexify, hexify)
13487 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13488 (look_up_one_symbol, relocate_instruction)
13489 (monitor_output): Move to remote-utils.h, and include it.
13490 * remote-utils.h: New file.
13492 2013-09-05 Pedro Alves <palves@redhat.com>
13494 * server.h (_): Delete.
13496 2013-09-02 Pedro Alves <palves@redhat.com>
13498 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13499 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13501 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13503 2013-09-02 Pierre Muller <muller@sourceware.org>
13505 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13506 or WriteProcessMemory complete successfully and handle
13507 ERROR_PARTIAL_COPY error.
13509 2013-09-02 Pedro Alves <palves@redhat.com>
13511 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13512 error instead of EIO.
13514 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13517 * linux-low.c: Include filestuff.h.
13518 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13519 * lynx-low.c: Include filestuff.h.
13520 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13521 * server.c: Include filestuff.h.
13522 (main): Call notice_open_fds.
13523 * spu-low.c: Include filestuff.h.
13524 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13526 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13528 * Makefile.in: Explain why ../target and ../nat are not
13529 listed as include file search paths.
13530 (linux-waitpid.o): New object file rule.
13531 * configure.srv (srv_native_linux_obj): New variable.
13532 Replace all occurrences of linux native object files with
13533 $srv_native_linux_obj.
13534 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13535 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13536 (linux_enable_event_reporting): Remove declaration.
13537 (my_waitpid): Moved to common/linux-waitpid.c.
13538 (linux_wait_for_event): Pass ptid when calling
13539 linux_enable_event_reporting.
13540 (linux_supports_tracefork_flag): Remove.
13541 (linux_enable_event_reporting): Likewise.
13542 (linux_tracefork_grandchild): Remove.
13543 (STACK_SIZE): Moved to common/linux-ptrace.c.
13544 (linux_tracefork_child): Remove.
13545 (linux_test_for_tracefork): Remove.
13546 (linux_look_up_symbols): Call linux_supports_traceclone.
13547 (initialize_low): Remove call to linux_test_for_tracefork.
13548 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13549 common/linux-ptrace.h.
13550 (PTRACE_TYPE_ARG4): Likewise.
13551 Include linux-ptrace.h.
13553 2013-08-21 Pedro Alves <palves@redhat.com>
13555 * config.in: Renegerate.
13557 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13559 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13560 (SFILES): Remove $(srcdir)/common/target-common.c and
13561 add $(srcdir)/target/waitstatus.c.
13562 (OBS): Remove target-common.o and add waitstatus.o.
13563 (server_h): Remove $(srcdir)/../common/target-common.h and
13564 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13565 and $(srcdir)/../target/waitstatus.h.
13566 (target-common.o): Remove.
13567 (waitstatus.o): New target object file.
13568 * target.h: Do not include target-common.h and
13569 include target/resume.h, target/wait.h and
13570 target/waitstatus.h.
13572 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13574 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13575 to PTRACE_TYPE_ARG3.
13576 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13577 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13579 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13580 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13582 2013-07-27 Jie Zhang <jie@codesourcery.com>
13583 Daniel Jacobowitz <dan@codesourcery.com>
13584 Yao Qi <yao@codesourcery.com>
13586 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13587 (mips-linux-watch.o): New rule.
13588 (mips_linux_watch_h): New variable.
13589 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13591 * linux-mips-low.c: Include mips-linux-watch.h.
13592 (struct arch_process_info, struct arch_lwp_info): New.
13593 (update_watch_registers_callback): New function.
13594 (mips_linux_new_process, mips_linux_new_thread) New functions.
13595 (mips_linux_prepare_to_resume, mips_insert_point): New
13597 (mips_remove_point, mips_stopped_by_watchpoint): New
13599 (rsp_bp_type_to_target_hw_bp_type): New function.
13600 (mips_stopped_data_address): New function.
13601 (the_low_target): Add watchpoint support functions.
13603 2013-07-27 Yao Qi <yao@codesourcery.com>
13605 * i386-low.c: Include break-common.h.
13606 (enum target_hw_bp_type): Remove.
13608 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13610 * Makefile.in (SFILES): /common/target-common.c.
13611 (OBS): Add target-common.o.
13612 (server_h): Add $(srcdir)/../common/target-common.h.
13613 (target-common.o): New target.
13614 * server.c (queue_stop_reply_callback): Free
13615 status string after use.
13616 * target.c (target_waitstatus_to_string): Remove.
13617 * target.h: Include target-common.h.
13618 (resume_kind): Likewise.
13619 (target_waitkind): Likewise.
13620 (target_waitstatus): Likewise.
13621 (TARGET_WNOHANG): Likewise.
13623 2013-07-04 Yao Qi <yao@codesourcery.com>
13625 * Makefile.in (host_alias): Use @host_noncanonical@.
13626 (target_alias): Use @target_noncanonical@.
13627 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13628 ACX_NONCANONICAL_HOST.
13629 * configure: Regenerated.
13632 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13634 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13635 * configure: Rebuild.
13636 * Makefile.in (version_host, version_target): Get from configure.
13637 (version.c): Use $(version_host) and $(version_target).
13639 2013-07-03 Pedro Alves <palves@redhat.com>
13641 * Makefile.in (config.status): Depend on development.sh.
13642 * acinclude.m4: Include libmcheck.m4.
13643 * configure: Regenerate.
13645 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13647 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13648 attribute inside the parentheses.
13649 (winapi_DebugSetProcessKillOnExit): Ditto.
13650 (winapi_DebugBreakProcess): Ditto.
13651 (winapi_GenerateConsoleCtrlEvent): Ditto.
13653 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13655 * notif.h (notif_event): Add a dummy member to avoid compiler
13658 2013-07-01 Pedro Alves <palves@redhat.com>
13660 * hostio.c (HOSTIO_PATH_MAX): Define.
13661 (require_filename, handle_open, handle_unlink, handle_readlink):
13664 2013-07-01 Pedro Alves <palves@redhat.com>
13666 * server.h: Include "pathmax.h".
13667 * linux-low.c: Don't include sys/param.h.
13668 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13670 * win32-low.c: Don't include sys/param.h.
13671 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13673 2013-07-01 Pedro Alves <palves@redhat.com>
13675 * event-loop.c: Don't check HAVE_UNISTD_H before including
13677 * gdbreplay.c: Likewise.
13678 * remote-utils.c: Likewise.
13679 * server.c: Likewise.
13680 * configure.ac: Don't check for unistd.h.
13681 * configure: Regenerate.
13683 2013-06-28 Tom Tromey <tromey@redhat.com>
13685 * Makefile.in (version.c): Use version.in, not
13688 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13690 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13691 * configure: Rebuild.
13692 * Makefile.in (version_host, version_target): Get from configure.
13693 (version.c): Use $(version_host) and $(version_target).
13695 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13697 Fix trace-status to output user name without trailing colon.
13698 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13700 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13702 Fix trace-status to output proper start-time and stop-time.
13703 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13704 output start time and stop time in hex as gdb expects.
13706 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13708 * tracepoint.c (build_traceframe_info_xml): Output trace state
13709 variables present in the trace buffer.
13711 2013-06-24 Tom Tromey <tromey@redhat.com>
13713 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13715 (version.o): Remove.
13716 * gdbreplay.c: Include version.h.
13717 (version, host_name): Don't declare.
13718 * server.h: Include version.h.
13719 (version, host_name): Don't declare.
13721 2013-06-12 Pedro Alves <palves@redhat.com>
13723 * linux-x86-low.c (linux_is_elf64): Delete global.
13724 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13725 with local linux_pid_exe_is_elf_64_file use.
13727 2013-06-11 Pedro Alves <palves@redhat.com>
13729 * linux-low.c (regset_disabled, disable_regset): New functions.
13730 (regsets_fetch_inferior_registers)
13731 (regsets_store_inferior_registers): Use them.
13732 (initialize_regsets_info); Don't allocate the disabled_regsets
13734 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13737 2013-06-11 Pedro Alves <palves@redhat.com>
13739 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13742 2013-06-11 Pedro Alves <palves@redhat.com>
13744 * linux-x86-low.c (initialize_low_arch): Call
13745 init_registers_x32_avx_linux.
13747 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13749 Fix compatibility with Android Bionic.
13750 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13753 2013-06-07 Pedro Alves <palves@redhat.com>
13756 * Makefile.in (OBS): Add tdesc.o.
13757 (IPA_OBJS): Add tdesc-ipa.o.
13758 (tdesc-ipa.o): New rule.
13759 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13761 * linux-low.c (new_inferior): Delete.
13762 (disabled_regsets, num_regsets): Delete.
13763 (linux_add_process): Adjust to set the new per-process
13765 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13766 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13767 was a stop. When calling arch_setup, switch the current inferior
13768 to the thread that got an event.
13769 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13770 (regsets_fetch_inferior_registers)
13771 (regsets_store_inferior_registers): New regsets_info parameter.
13773 (linux_register_in_regsets): New regs_info parameter. Adjust to
13775 (register_addr, fetch_register, store_register): New usrregs_info
13776 parameter. Adjust to use it.
13777 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13778 parameter regs_info. Adjust to use it.
13779 (linux_fetch_registers): Get the current inferior's regs_info, and
13781 (linux_store_registers): Ditto.
13782 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13783 (initialize_low): Don't initialize the target_regsets here. Call
13784 initialize_low_arch.
13785 * linux-low.h (target_regsets): Delete declaration.
13786 (struct regsets_info): New.
13787 (struct usrregs_info): New.
13788 (struct regs_info): New.
13789 (struct process_info_private) <new_inferior>: New field.
13790 (struct linux_target_ops): Delete the num_regs, regmap, and
13791 regset_bitmap fields. New field regs_info.
13792 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13793 * i387-fp.c (num_xmm_registers): Delete.
13794 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13795 calls to new interface.
13796 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13797 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13798 Infer the number of xmm registers from the regcache's target
13800 * i387-fp.h (num_xmm_registers): Delete.
13801 * inferiors.c (add_thread): Don't install the thread's regcache
13803 * proc-service.c (gregset_info): Fetch the current inferior's
13804 regs_info. Adjust to use it.
13805 * regcache.c: Include tdesc.h.
13806 (register_bytes, reg_defs, num_registers)
13807 (gdbserver_expedite_regs): Delete.
13808 (get_thread_regcache): If the thread doesn't have a regcache yet,
13809 create one, instead of aborting gdbserver.
13810 (regcache_invalidate_one): Rename to ...
13811 (regcache_invalidate_thread): ... this.
13812 (regcache_invalidate_one): New.
13813 (regcache_invalidate): Only invalidate registers of the current
13815 (init_register_cache): Add target_desc parameter, and use it.
13816 (new_register_cache): Ditto. Assert the target description has a
13817 non zero registers_size.
13818 (regcache_cpy): Add assertions. Adjust.
13819 (realloc_register_cache, set_register_cache): Delete.
13820 (registers_to_string, registers_from_string): Adjust.
13821 (find_register_by_name, find_regno, find_register_by_number)
13822 (register_cache_size): Add target_desc parameter, and use it.
13823 (free_register_cache_thread, free_register_cache_thread_one)
13824 (regcache_release, register_cache_size): New.
13825 (register_size): Add target_desc parameter, and use it.
13826 (register_data, supply_register, supply_register_zeroed)
13827 (supply_regblock, supply_register_by_name, collect_register)
13828 (collect_register_as_string, collect_register_by_name): Adjust.
13829 * regcache.h (struct target_desc): Forward declare.
13830 (struct regcache) <tdesc>: New field.
13831 (init_register_cache, new_register_cache): Add target_desc
13833 (regcache_invalidate_thread): Declare.
13834 (regcache_invalidate_one): Delete declaration.
13835 (regcache_release): Declare.
13836 (find_register_by_number, register_cache_size, register_size)
13837 (find_regno): Add target_desc parameter.
13838 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13840 * remote-utils.c: Include tdesc.h.
13841 (outreg, prepare_resume_reply): Adjust.
13842 * server.c: Include tdesc.h.
13843 (gdbserver_xmltarget): Delete declaration.
13844 (get_features_xml, process_serial_event): Adjust.
13845 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13847 (struct process_info) <tdesc>: New field.
13848 (ipa_tdesc): Declare.
13849 * tdesc.c: New file.
13850 * tdesc.h: New file.
13851 * tracepoint.c: Include tdesc.h.
13852 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13853 (get_context_regcache): Adjust to pass ipa_tdesc down.
13854 (do_action_at_tracepoint): Adjust to get the register cache size
13855 from the context regcache's description.
13856 (traceframe_walk_blocks): Adjust to get the register cache size
13857 from the current trace frame's description.
13858 (traceframe_get_pc): Adjust to get current trace frame's
13859 description and pass it down.
13860 (gdb_collect): Adjust to get the register cache size from the
13862 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13863 (gdbserver_xmltarget): Delete.
13864 (initialize_low_tracepoint): Set the ipa's target description.
13865 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13866 (initialize_low_tracepoint): Set the ipa's target description.
13867 * linux-x86-low.c: Include tdesc.h.
13868 [__x86_64__] (is_64bit_tdesc): New.
13869 (ps_get_thread_area, x86_get_thread_area): Use it.
13870 (i386_cannot_store_register): Rename to ...
13871 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13872 (i386_cannot_fetch_register): Rename to ...
13873 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13874 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13876 (target_regsets): Rename to ...
13877 (x86_regsets): ... this.
13878 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13880 (x86_siginfo_fixup): Use is_64bit_tdesc.
13881 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13882 (tdesc_x32_avx_linux, tdesc_x32_linux)
13883 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13885 (x86_linux_update_xmltarget): Delete.
13886 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13887 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13888 (AMD64_LINUX_USER64_CS): New.
13889 (x86_linux_read_description): New, based on
13890 x86_linux_update_xmltarget.
13891 (same_process_callback): New.
13892 (x86_arch_setup_process_callback): New.
13893 (x86_linux_update_xmltarget): New.
13894 (x86_regsets_info): New.
13895 (amd64_linux_regs_info): New.
13896 (i386_linux_usrregs_info): New.
13897 (i386_linux_regs_info): New.
13898 (x86_linux_regs_info): New.
13899 (x86_arch_setup): Reimplement.
13900 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13901 (x86_emit_ops): Ditto.
13902 (the_low_target): Adjust. Install x86_linux_regs_info,
13903 x86_cannot_fetch_register, and x86_cannot_store_register.
13904 (initialize_low_arch): New.
13905 * linux-ia64-low.c (tdesc_ia64): Declare.
13906 (ia64_fetch_register): Adjust.
13907 (ia64_usrregs_info, regs_info): New globals.
13908 (ia64_regs_info): New function.
13909 (the_low_target): Adjust.
13910 (initialize_low_arch): New function.
13911 * linux-sparc-low.c (tdesc_sparc64): Declare.
13912 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13914 (sparc_arch_setup): New function.
13915 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13916 (the_low_target): Adjust.
13917 (initialize_low_arch): New function.
13918 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13919 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13920 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13921 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13922 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13923 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13924 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13925 (tdesc_powerpc_isa205_vsx64l): Declare.
13926 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13927 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13928 (ppc_set_pc, ppc_get_hwcap): Adjust.
13929 (ppc_usrregs_info): Forward declare.
13930 (!__powerpc64__) ppc_regmap_adjusted: New global.
13931 (ppc_arch_setup): Adjust to the current process'es target
13933 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13934 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13935 (ppc_store_evrregset): Adjust.
13936 (target_regsets): Rename to ...
13937 (ppc_regsets): ... this, and make static.
13938 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13939 (ppc_regs_info): New function.
13940 (the_low_target): Adjust.
13941 (initialize_low_arch): New function.
13942 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13943 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13944 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13945 (tdesc_s390x_linux64v2): Declare.
13946 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13947 (s390_fill_gregset, s390_store_last_break): Adjust.
13948 (target_regsets): Rename to ...
13949 (s390_regsets): ... this, and make static.
13950 (s390_get_pc, s390_set_pc): Adjust.
13951 (s390_get_hwcap): New target_desc parameter, and use it.
13952 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13953 (s390_arch_setup): Adjust to set the current process'es target
13954 description. Don't adjust the regmap.
13955 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13956 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13957 (regs_info_3264): New globals.
13958 (s390_regs_info): New function.
13959 (the_low_target): Adjust.
13960 (initialize_low_arch): New function.
13961 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13962 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13963 [__mips64] (init_registers_mips_linux)
13964 (init_registers_mips_dsp_linux): Delete defines.
13965 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13966 (have_dsp): New global.
13967 (mips_read_description): New, based on mips_arch_setup.
13968 (mips_arch_setup): Reimplement.
13969 (get_usrregs_info): New function.
13970 (mips_cannot_fetch_register, mips_cannot_store_register)
13971 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13972 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13973 (target_regsets): Rename to ...
13974 (mips_regsets): ... this, and make static.
13975 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13976 (dsp_regs_info, regs_info): New globals.
13977 (mips_regs_info): New function.
13978 (the_low_target): Adjust.
13979 (initialize_low_arch): New function.
13980 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13981 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13983 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13984 (arm_read_description): New, with bits factored from
13986 (arm_arch_setup): Reimplement.
13987 (target_regsets): Rename to ...
13988 (arm_regsets): ... this, and make static.
13989 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13990 (arm_regs_info): New function.
13991 (the_low_target): Adjust.
13992 (initialize_low_arch): New function.
13993 * linux-m68k-low.c (tdesc_m68k): Declare.
13994 (target_regsets): Rename to ...
13995 (m68k_regsets): ... this, and make static.
13996 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13997 (m68k_regs_info): New function.
13998 (m68k_arch_setup): New function.
13999 (the_low_target): Adjust.
14000 (initialize_low_arch): New function.
14001 * linux-sh-low.c (tdesc_sharch): Declare.
14002 (target_regsets): Rename to ...
14003 (sh_regsets): ... this, and make static.
14004 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14005 (sh_regs_info, sh_arch_setup): New functions.
14006 (the_low_target): Adjust.
14007 (initialize_low_arch): New function.
14008 * linux-bfin-low.c (tdesc_bfin): Declare.
14009 (bfin_arch_setup): New function.
14010 (bfin_usrregs_info, regs_info): New globals.
14011 (bfin_regs_info): New function.
14012 (the_low_target): Adjust.
14013 (initialize_low_arch): New function.
14014 * linux-cris-low.c (tdesc_cris): Declare.
14015 (cris_arch_setup): New function.
14016 (cris_usrregs_info, regs_info): New globals.
14017 (cris_regs_info): New function.
14018 (the_low_target): Adjust.
14019 (initialize_low_arch): New function.
14020 * linux-cris-low.c (tdesc_crisv32): Declare.
14021 (cris_arch_setup): New function.
14022 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14023 (cris_regs_info): New function.
14024 (the_low_target): Adjust.
14025 (initialize_low_arch): New function.
14026 * linux-m32r-low.c (tdesc_m32r): Declare.
14027 (m32r_arch_setup): New function.
14028 (m32r_usrregs_info, regs_info): New globals.
14029 (m32r_regs_info): Adjust.
14030 (initialize_low_arch): New function.
14031 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14032 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14033 (tic6x_usrregs_info): Forward declare.
14034 (tic6x_read_description): New function, based on ...
14035 (tic6x_arch_setup): ... this. Reimplement.
14036 (target_regsets): Rename to ...
14037 (tic6x_regsets): ... this, and make static.
14038 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14039 (tic6x_regs_info): New function.
14040 (the_low_target): Adjust.
14041 (initialize_low_arch): New function.
14042 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14043 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14044 (target_regsets): Rename to ...
14045 (xtensa_regsets): ... this, and make static.
14046 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14048 (xtensa_arch_setup, xtensa_regs_info): New functions.
14049 (the_low_target): Adjust.
14050 (initialize_low_arch): New function.
14051 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14052 (nios2_arch_setup): Set the current process'es tdesc.
14053 (target_regsets): Rename to ...
14054 (nios2_regsets): ... this.
14055 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14056 (nios2_regs_info): New function.
14057 (the_low_target): Adjust.
14058 (initialize_low_arch): New function.
14059 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14060 (aarch64_arch_setup): Set the current process'es tdesc.
14061 (target_regsets): Rename to ...
14062 (aarch64_regsets): ... this.
14063 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14064 (aarch64_regs_info): New function.
14065 (the_low_target): Adjust.
14066 (initialize_low_arch): New function.
14067 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14069 (target_regsets): Rename to ...
14070 (tile_regsets): ... this.
14071 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14072 (tile_regs_info): New function.
14073 (tile_arch_setup): Set the current process'es tdesc.
14074 (the_low_target): Adjust.
14075 (initialize_low_arch): New function.
14076 * spu-low.c (tdesc_spu): Declare.
14077 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14078 * win32-arm-low.c (tdesc_arm): Declare.
14079 (arm_arch_setup): New function.
14080 (the_low_target): Install arm_arch_setup instead of
14081 init_registers_arm.
14082 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14083 (init_windows_x86): Rename to ...
14084 (i386_arch_setup): ... this. Set `win32_tdesc'.
14085 (the_low_target): Adjust.
14086 * win32-low.c (win32_tdesc): New global.
14087 (child_add_thread): Don't create the thread cache here.
14088 (do_initial_child_stuff): Set the new process'es tdesc.
14089 * win32-low.h (struct target_desc): Forward declare.
14090 (win32_tdesc): Declare.
14091 * lynx-i386-low.c (tdesc_i386): Declare global.
14092 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14093 * lynx-low.c (lynx_tdesc): New global.
14094 (lynx_add_process): Set the new process'es tdesc.
14095 * lynx-low.h (struct target_desc): Forward declare.
14096 (lynx_tdesc): Declare global.
14097 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14098 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14099 * nto-low.c (nto_tdesc): New global.
14100 (do_attach): Set the new process'es tdesc.
14101 * nto-low.h (struct target_desc): Forward declare.
14102 (nto_tdesc): Declare.
14103 * nto-x86-low.c (tdesc_i386): Declare.
14104 (nto_x86_arch_setup): Set `nto_tdesc'.
14106 2013-06-04 Gary Benson <gbenson@redhat.com>
14108 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14109 to qSupported response when appropriate.
14110 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14111 with nonzero-length annex.
14112 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14113 arguments supplied in annex.
14115 2013-05-31 Doug Evans <dje@google.com>
14118 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14119 64 bits in 64-cross-32 environment.
14121 2013-05-28 Pedro Alves <palves@redhat.com>
14123 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14124 (aarch64-without-fpu.c): Delete rule.
14125 * configure.srv (aarch64*-*-linux*): Remove references to
14126 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14127 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14130 2013-05-24 Pedro Alves <palves@redhat.com>
14132 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14133 instead of strchr/decode_address. Error if the range isn't split
14134 with a ','. Don't assume there's be a ':' in the action.
14136 2013-05-23 Yao Qi <yao@codesourcery.com>
14137 Pedro Alves <palves@redhat.com>
14139 * linux-low.c (lwp_in_step_range): New function.
14140 (linux_wait_1): If the thread was range stepping and stopped
14141 outside the stepping range, report the stop to GDB. Otherwise,
14142 continue stepping. Add range stepping debug output.
14143 (linux_set_resume_request): Copy the step range from the resume
14144 request to the lwp.
14145 (linux_supports_range_stepping): New.
14146 (linux_target_ops) <supports_range_stepping>: Set to
14147 linux_supports_range_stepping.
14148 * linux-low.h (struct linux_target_ops)
14149 <supports_range_stepping>: New field.
14150 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14151 * linux-x86-low.c (x86_supports_range_stepping): New.
14152 (the_low_target) <supports_range_stepping>: Set to
14153 x86_supports_range_stepping.
14154 * server.c (handle_v_cont): Handle 'r' action.
14155 (handle_v_requests): Append ";r" if the target supports range
14157 * target.h (struct thread_resume) <step_range_start,
14158 step_range_end>: New fields.
14159 (struct target_ops) <supports_range_stepping>:
14161 (target_supports_range_stepping): New macro.
14163 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14165 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14166 confusion in comment.
14168 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14170 * lynx-low.c (struct process_info_private): New type.
14171 (lynx_add_process): New function.
14172 (lynx_create_inferior, lynx_attach): Replace calls to
14173 add_process by calls to lynx_add_process.
14174 (lynx_resume): If PTID is null, then try using
14175 current_process()->private->last_wait_event_ptid.
14177 (lynx_clear_inferiors): Delete. The contents of that function
14178 has been inlined in lynx_mourn;
14179 (lynx_wait_1): Save the ptid in the process's private data.
14180 (lynx_mourn): Free the process' private data. Replace call
14181 to lynx_clear_inferiors by call to clear_inferiors.
14183 2013-05-17 Yao Qi <yao@codesourcery.com>
14185 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14188 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14190 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14191 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14192 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14193 PT_TEXT_END_ADDR guards. Update comments.
14194 (linux_target_op) <read_offsets>: Conditionally define to
14195 linux_read_offsets if the target is UCLIBC and if it defines
14196 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14198 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14199 Andrew Jenner <andrew@codesourcery.com>
14201 * Makefile.in (SFILES): Add linux-nios2-low.c.
14202 (clean): Add action to delete nios2-linux.c.
14203 (nios2-linux.c): New rule.
14204 * configure.srv: Add nios2*-*-linux*.
14205 * linux-nios2-low.c: New.
14207 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14209 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14211 2013-04-25 Hui Zhu <hui@codesourcery.com>
14214 * ax.c (ax_printf): Add fflush.
14216 2013-04-22 Tom Tromey <tromey@redhat.com>
14218 * Makefile.in (SFILES): Add filestuff.c.
14219 (OBS): Add filestuff.o.
14220 (filestuff.o): New target.
14221 * config.in, configure: Rebuild.
14222 * configure.ac: Check for fdwalk, pipe2.
14224 2013-04-17 Pedro Alves <palves@redhat.com>
14226 * configure.ac (USE_THREAD_DB): Delete variable.
14227 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14228 Don't AC_SUBST USE_THREAD_DB.
14229 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14230 * config.in, configure: Regenerate.
14232 2013-04-16 Pedro Alves <palves@redhat.com>
14234 * linux-low.h (struct lwp_info) <thread_known>: Move under
14235 the USE_THREAD_DB #ifdef.
14237 2013-04-16 Pedro Alves <palves@redhat.com>
14239 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14240 (linux-low.o): Delete rule.
14241 * linux-low.h: Always include "gdb_thread_db.h" instead of
14242 conditionally including thread_db.h.
14243 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14246 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14248 * Makefile.in (install-only): Fix make install regression.
14250 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14252 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14253 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14255 * gdbserver.1: Remove.
14257 2013-03-22 Pedro Alves <palves@redhat.com>
14259 * linux-low.c (handle_extended_wait): Don't call
14260 linux_enable_event_reporting.
14262 2013-03-15 Tony Theodore <tonyt@logyst.com>
14265 * Makefile.in (SHELL): Use @SHELL@.
14267 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14269 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14272 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14274 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14275 Remove extraneous NULL element.
14277 2013-03-13 Yao Qi <yao@codesourcery.com>
14279 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14280 'V' block in trace frame.
14282 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14284 * target.h (struct target_ops): Add btrace ops.
14285 (target_supports_btrace): New macro.
14286 (target_enable_btrace): New macro.
14287 (target_disable_btrace): New macro.
14288 (target_read_btrace): New macro.
14289 * gdbthread.h (struct thread_info): Add btrace field.
14290 * server.c: Include btrace-common.h.
14291 (handle_btrace_general_set): New function.
14292 (handle_btrace_enable): New function.
14293 (handle_btrace_disable): New function.
14294 (handle_general_set): Call handle_btrace_general_set.
14295 (handle_qxfer_btrace): New function.
14296 (struct qxfer qxfer_packets[]): Add btrace entry.
14297 * inferiors.c (remove_thread): Disable btrace.
14298 * linux-low: Include linux-btrace.h.
14299 (linux_low_enable_btrace): New function.
14300 (linux_low_read_btrace): New function.
14301 (linux_target_ops): Add btrace ops.
14302 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14303 Add srv_linux_btrace=yes.
14304 (x86_64-*-linux*): Add linux-btrace.o.
14305 Add srv_linux_btrace=yes.
14306 * configure.ac: Define HAVE_LINUX_BTRACE.
14307 * config.in: Regenerated.
14308 * configure: Regenerated.
14310 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14312 * server.c (handle_qxfer): Preserve error message if -3 is
14314 (qxfer): Document the -3 return value.
14316 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14318 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14319 (linux_btrace_h): New variable.
14320 (linux-btrace.o): New rule.
14322 2013-03-08 Stan Shebs <stan@codesourcery.com>
14323 Hafiz Abid Qadeer <abidh@codesourcery.com>
14325 * tracepoint.c (trace_buffer_size): New global.
14326 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14327 (init_trace_buffer): Change to one-argument function. Allocate
14328 trace buffer memory.
14329 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14330 handle QTBuffer:size packet.
14331 (cmd_bigqtbuffer_size): New function.
14332 (initialize_tracepoint): Call init_trace_buffer with
14333 DEFAULT_TRACE_BUFFER_SIZE.
14334 * server.c (handle_query): Add QTBuffer:size in the
14337 2013-03-07 Yao Qi <yao@codesourcery.com>
14339 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14340 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14342 (cmd_qtsp): Adjust condition. Do post increment.
14343 Set cur_action and cur_step_action back to 0.
14345 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14348 * linux-low.c (linux_write_memory): Return early success if LEN is
14351 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14353 * configure.srv: Add x86_64-*-cygwin* as target.
14355 2013-02-28 Tom Tromey <tromey@redhat.com>
14357 * configure.ac: Invoke AC_SYS_LARGEFILE.
14358 * configure, config.in: Rebuild.
14360 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14362 * win32-low.c: Throughout, fix format strings and casts of
14363 printf-like functions to avoid type related warnings on all
14365 (get_child_debug_event): Print dwDebugEventCode as hex since
14366 that's how it's usually documented.
14368 2013-02-28 Yao Qi <yao@codesourcery.com>
14370 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14373 2013-02-27 Jiong Wang <jiwang@tilera.com>
14375 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14376 (reg-tilegx32.c): New rule.
14377 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14378 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14379 different register info initializer according to elf class.
14380 (init_registers_tilgx32): New function. The tilegx32 register info
14382 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14383 (tile_store_gregset): Likewise.
14385 2013-02-27 Yao Qi <yao@codesourcery.com>
14387 * server.c (process_point_options): Print debug message when
14388 debug_threads is true.
14390 2013-02-26 Yao Qi <yao@codesourcery.com>
14392 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14394 2013-02-19 Pedro Alves <palves@redhat.com>
14395 Kai Tietz <ktietz@redhat.com>
14399 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14400 instead of strtoul to extract address from packet.
14401 (process_serial_event) <'z'>: Likewise.
14403 2013-02-18 Yao Qi <yao@codesourcery.com>
14405 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14407 2013-02-14 Pedro Alves <palves@redhat.com>
14411 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14412 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14414 2013-02-14 Pedro Alves <palves@redhat.com>
14416 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14418 2013-02-14 Pedro Alves <palves@redhat.com>
14420 * tracepoint.c (save_string): Delete.
14421 (add_tracepoint_action): Use savestring instead of save_string.
14423 2013-02-12 Pedro Alves <palves@redhat.com>
14425 * linux-xtensa-low.c: Ditto.
14426 * xtensa-xtregs.c: Ditto.
14428 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14430 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14433 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14435 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14436 aarch64_num_wp_regs and aarch64_num_bp_regs to
14437 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14439 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14441 * linux-aarch64-low.c (ps_get_thread_area): Replace
14442 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14444 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14445 Marcus Shawcroft <marcus.shawcroft@arm.com>
14446 Nigel Stephens <nigel.stephens@arm.com>
14447 Yufeng Zhang <yufeng.zhang@arm.com>
14449 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14450 (aarch64.c, aarch64-without-fpu.c): New targets.
14451 * configure.srv (aarch64*-*-linux*): New.
14452 * linux-aarch64-low.c: New file.
14454 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14456 * linux-low.c (handle_extended_wait, linux_create_inferior)
14457 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14458 (dequeue_one_deferred_signal, linux_resume_one_thread)
14459 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14460 (linux_tracefork_grandchild, linux_test_for_tracefork)
14461 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14462 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14463 where the argument is 0.
14465 2013-01-25 Yao Qi <yao@codesourcery.com>
14467 * event-loop.c: Include "queue.h".
14468 (gdb_event_p): New typedef.
14469 (struct gdb_event) <next_event>: Remove.
14470 (event_queue): Change to QUEUE(gdb_event_p).
14471 (async_queue_event): Remove.
14472 (gdb_event_xfree): New.
14473 (initialize_event_loop): New.
14474 (process_event): Use API from QUEUE.
14475 (wait_for_event): Likewise.
14476 * server.c (main): Call initialize_event_loop.
14477 * server.h (initialize_event_loop): Declare.
14479 2013-01-18 Yao Qi <yao@codesourcery.com>
14481 * ax.h (struct eval_agent_expr_context): New.
14482 (gdb_eval_agent_expr): Update declaration.
14483 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14484 TFRAME. Add new argument CTX.
14485 * server.h (struct eval_agent_expr_context): Declare.
14486 (agent_mem_read, agent_tsv_read): Update declaration.
14487 (agent_mem_read_string): Likewise.
14488 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14489 (add_traceframe_block): Add new argument TPOINT.
14490 Increase TPOINT->traceframe_usage.
14491 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14492 eval_tracepoint_agent_expr.
14493 (condition_true_at_tracepoint): Likewise.
14494 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14495 (agent_mem_read_string, agent_tsv_read): Likewise.
14497 2013-01-16 Yao Qi <yao@codesourcery.com>
14499 * linux-low.c (linux_resume_one_lwp): Don't check
14500 'lwp->bp_reinsert != 0'.
14502 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14503 Pedro Alves <palves@redhat.com>
14505 * lynx-low.c (ptrace_request_to_str): Define a temporary
14506 macro and use it to simplify this function's implementation.
14508 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14510 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14513 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14515 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14517 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14519 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14521 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14523 * lynx-low.c (lynx_resume): Use the resume_info parameter
14524 to determine the ptid for the lynx_ptrace call, unless
14525 it is equal to minus_one_ptid, in which case we use the
14526 ptid of the current_inferior.
14527 (lynx_wait_1): After having received a thread create/exit
14528 event, resume the inferior's execution using the signaling
14529 thread's ptid, rather than the old ptid.
14531 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14533 * lynx-low.c (lynx_resume): Delete variable ret.
14535 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14537 * gdbreplay.c (gdbreplay_version): Update copyright year.
14538 * server.c (gdbserver_version): Likewise.
14540 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14542 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14545 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14547 * lynx-low.c (ptrace_request_to_str): Add handling for
14548 PTRACE_GETTRACESIG.
14550 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14552 * lynx-low.c (lynx_attach): Delete variable new_process.
14554 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14556 * lynx-low.c (lynx_create_inferior): Delete variable
14559 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14561 * lynx-low.c (ptrace_request_to_str): Do not handle
14562 PTRACE_GETTHREADLIST if this macro does not exist.
14564 2012-12-15 Yao Qi <yao@codesourcery.com>
14566 * Makefile.in (OBS): Add notif.o.
14567 * notif.c, notif.h: New.
14568 * server.c: Include "notif.h".
14569 (struct vstop_notif) <next>: Remove.
14571 (queue_stop_reply): Update.
14572 (push_event, send_next_stop_reply): Remove.
14573 (discard_queued_stop_replies): Update.
14574 (notif_stop): New variable.
14575 (handle_v_stopped): Remove.
14576 (handle_v_requests): Don't call handle_v_stopped. Call
14577 handle_ack_notif instead.
14578 (queue_stop_reply_callback): Call notif_event_enque instead
14579 of queue_stop_reply.
14580 (handle_status): Don't call send_next_stop_reply, call
14581 notif_write_event instead.
14582 (kill_inferior_callback): Likewise.
14583 (detach_or_kill_inferior_callback): Likewise.
14584 (main): Call initialize_notif.
14585 (process_serial_event): Call QUEUE_is_empty.
14586 (handle_target_event): Call notif_push instead of push event.
14587 * server.h (push_event): Remove declaration.
14589 2012-12-10 Tom Tromey <tromey@redhat.com>
14591 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14592 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14595 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14596 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14597 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14598 (amd64-linux-ipa.o, ax.o): Rewrite.
14599 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14600 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14601 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14602 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14603 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14604 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14605 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14606 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14607 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14608 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14609 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14610 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14611 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14612 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14613 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14614 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14615 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14616 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14617 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14618 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14619 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14620 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14621 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14622 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14623 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14624 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14625 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14626 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14627 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14628 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14629 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14630 (reg-tilegx.o): Remove.
14631 (all_object_files): New macro.
14632 Include .deps files.
14633 * aclocal.m4, configure: Rebuild.
14634 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14635 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14636 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14638 2012-12-05 Tom Tromey <tromey@redhat.com>
14641 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14643 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14645 * configure.ac: Check for linux/perf_event.h.
14646 * config.in: Regenerated.
14647 * configure: Regenerated.
14649 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14651 * hostio.c (handle_readlink): Decrease buffer size
14652 parameter passed to readlink by one byte.
14654 2012-11-26 Yao Qi <yao@codesourcery.com>
14656 * configure.ac (build_warnings): Append '-Wempty-body'.
14657 * configure: Regenerated.
14658 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14661 2012-11-15 Pierre Muller <muller@sourceware.org>
14663 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14664 * config.in: Regenerate.
14665 * configure: Regenerate.
14666 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14667 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14668 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14669 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14671 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14672 instead of <sys/wait.h> header.
14673 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14675 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14677 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14678 (various make rules): Remove -DGDBSERVER
14680 2012-11-09 Yao Qi <yao@codesourcery.com>
14682 * spu-low.c (current_ptid): Move it to ..
14683 * gdbthread.h: ... here. New.
14684 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14685 * server.c (myresume, process_serial_event): Likewise.
14686 * thread-db.c (thread_db_find_new_threads): Likewise.
14687 * tracepoint.c (run_inferior_command): Likewise.
14689 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14691 * server.c (handle_search_memory_1): Include access length in
14694 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14696 * linux-crisv32-low.c: Fix compile errors.
14698 2012-09-04 Yao Qi <yao@codesourcery.com>
14700 * tracepoint.c (cmd_qtsv): Adjust debug message.
14701 Don't check CUR_TPOINT.
14703 2012-08-28 Yao Qi <yao@codesourcery.com>
14705 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14706 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14707 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14708 Remove declarations of xmalloc, xreallloc, xstrdup and
14710 * Makefile.in (libiberty_h): New.
14711 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14712 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14714 2012-08-23 Yao Qi <yao@codesourcery.com>
14716 * server.h: Remove declaration of 'xsnprintf'.
14718 2012-08-22 Keith Seitz <keiths@redhat.com>
14720 * server.h: Include build-gnulib-gbserver/config.h.
14721 * gdbreplay.c: Likewise.
14723 2012-08-08 Doug Evans <dje@google.com>
14725 * Makefile.in (SFILES): Add gdb_vecs.c.
14726 (OBS): Add gdb_vecs.o.
14727 (gdb_vecs_h, host_defs_h): New variables.
14728 (thread-db.o): Add $(gdb_vecs_h) dependency.
14729 (gdb_vecs.o): New rule.
14730 * thread-db.c: #include "gdb_vecs.h".
14731 (thread_db_load_search): Use a vector to iterate over path elements.
14732 Handle text appearing after "$pdir".
14734 * configure.ac: Add check for strstr.
14735 * config.in: Regenerate.
14736 * configure: Regenerate.
14738 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14740 * hostio.c (handle_pread): If pread fails, fall back to attempting
14742 (handle_pwrite): Likewise for pwrite.
14744 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14746 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14747 between unsupported TYPE and unimplementable ADDR/LEN combination.
14748 (arm_insert_point): Act on new return value.
14750 2012-07-31 Pedro Alves <palves@redhat.com>
14752 * server.c (process_point_options): Only skip tokens if we find
14753 one that is unrecognized. Don't treat 'X' specially while
14754 skipping unrecognized tokens.
14756 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14758 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14759 to 4-byte-align HW breakpoint addresses for Thumb.
14761 2012-07-27 Yao Qi <yao@codesourcery.com>
14765 * server.h: Declare gdb_agent_about_to_close.
14766 * target.c (kill_inferior): Include "agent.h".
14767 New. Send command 'kill'.
14768 * target.h (kill_inferior): Removed macro.
14769 * tracepoint.c (gdb_agent_about_to_close): New.
14770 (gdb_agent_helper_thread): Handle command 'close'.
14771 Wait endlessly until the inferior stops.
14772 Install gdb_agent_remove_socket to atexit hook.
14773 (agent_socket_name): New static variable.
14774 (gdb_agent_socket_init): Replace local variable 'name' with
14775 'agent_socket_name'.
14776 (gdb_agent_remove_socket): New.
14778 2012-07-27 Yao Qi <yao@codesourcery.com>
14780 * server.c (process_point_options): Stop at 'X' when parsing.
14782 2012-07-19 Michael Eager <eager@eagercon.com>
14784 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14786 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14787 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14788 hardware breakpoint.
14790 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14792 * gdbserver/linux-low.c (initialize_low): Call
14793 linux_ptrace_init_warnings.
14795 2012-07-02 Doug Evans <dje@google.com>
14797 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14800 2012-07-02 Stan Shebs <stan@codesourcery.com>
14802 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14803 (ax.o): Add it to build rule.
14805 (OBS): Add format.o.
14806 (IPA_OBS): Add format.o.
14807 * server.c (handle_query): Claim support for breakpoint commands.
14808 (process_point_options): Add command case.
14809 (process_serial_event): Leave running if there are printfs in
14811 * mem-break.h (any_persistent_commands): Declare.
14812 (add_breakpoint_commands): Declare.
14813 (gdb_no_commands_at_breakpoint): Declare.
14814 (run_breakpoint_commands): Declare.
14815 * mem-break.c (struct point_command_list): New struct.
14816 (struct breakpoint): New field command_list.
14817 (any_persistent_commands): New function.
14818 (add_commands_to_breakpoint): New function.
14819 (add_breakpoint_commands): New function.
14820 (gdb_no_commands_at_breakpoint): New function.
14821 (run_breakpoint_commands): New function.
14822 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14824 * ax.c: Include format.h.
14825 (ax_printf): New function.
14826 (gdb_eval_agent_expr): Add printf opcode.
14828 2012-06-13 Yao Qi <yao@codesourcery.com>
14830 * server.c (start_inferior): Remove duplicated writes to fields
14831 'last_resume_kind' and 'last_status' of 'current_inferior'.
14833 2012-06-12 Yao Qi <yao@codesourcery.com>
14834 Pedro Alves <palves@redhat.com>
14836 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14838 * server.c (handle_v_cont): Extend comment.
14840 2012-06-11 Yao Qi <yao@codesourcery.com>
14842 * linux-low.c (linux_attach): Add 'static'.
14844 2012-06-06 Yao Qi <yao@codesourcery.com>
14846 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14848 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14850 Fix gcc -flto compilation warning.
14851 * server.c (main): Make variable multi_mode and attach volatile.
14853 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14855 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14856 if the platform doesn't know about it.
14858 2012-05-30 Jeff Kenton <jkenton@tilera.com>
14860 * Makefile.in (SFILES): Add linux-tile-low.c.
14861 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14862 * configure.srv: Handle tilegx-*-linux*.
14863 * linux-tile-low.c: New file.
14865 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14867 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14869 2012-05-24 Pedro Alves <palves@redhat.com>
14873 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14875 2012-05-24 Pedro Alves <palves@redhat.com>
14879 Replace target_signal with gdb_signal throughout.
14881 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14883 * linux-low.c (linux_store_registers): Avoid the copying sequence
14884 when no data has been retrieved by ptrace.
14886 2012-05-22 Will Deacon <will.deacon@arm.com>
14888 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14889 Include asm/ptrace.h.
14890 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14893 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14895 * linux-low.c (linux_store_registers): Don't re-retrieve data
14896 with ptrace that has already been obtained from /proc. Always
14897 copy any data retrieved with ptrace to the buffer supplied.
14899 2012-05-11 Yao Qi <yao@codesourcery.com>
14900 Pedro Alves <palves@redhat.com>
14902 * linux-low.c (enum stopping_threads_kind): New.
14903 (stopping_threads): Change type to `enum stopping_threads_kind'.
14904 (handle_extended_wait): If stopping and suspending threads, leave
14905 the new_lwp suspended too.
14906 (linux_wait_for_event): Adjust.
14907 (stop_all_lwps): Set `stopping_threads' to
14908 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14909 whether we're suspending threads or just stopping them. Assert no
14912 2012-04-29 Yao Qi <yao@codesourcery.com>
14914 * server.h: Move some code to ...
14915 * gdbthread.h: ... here. New.
14916 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14917 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14918 (nto-low.o, win32-low.o): Likewise.
14919 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14920 * regcache.c, remote-utils.c, server.c: Likewise.
14921 * target.c, tracepoint.c, win32-low.c: Likewise.
14923 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14925 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14926 (PTRACE_ARG4_TYPE): Likewise.
14927 (PTRACE_XFER_TYPE): Likewise.
14928 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14929 ptrace to PTRACE_ARG3_TYPE.
14930 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14931 (PTRACE_ARG4_TYPE): Likewise.
14932 (PTRACE_XFER_TYPE): Likewise.
14933 (linux_detach_one_lwp): Cast fourth argument of
14934 ptrace to long then PTRACE_ARG4_TYPE.
14935 (regsets_fetch_inferior_registers): Cast third argument of
14936 ptrace to long then PTRACE_ARG3_TYPE.
14937 (regsets_store_inferior_registers): Likewise.
14939 2012-04-20 Pedro Alves <palves@redhat.com>
14941 * configure: Regenerate.
14943 2012-04-19 Pedro Alves <palves@redhat.com>
14945 * Makefile.in (GNULIB_BUILDDIR): New.
14946 (LIBGNU, INCGNU, GNULIB_H): Adjust.
14947 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14948 (all, install-only, uninstall, clean-info, all-lib, clean): No
14949 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14950 (maintainer-clean realclean distclean): Use subdir_do.
14952 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
14953 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
14954 * acinclude.m4: Include acx_configure_dir.m4.
14955 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14956 calls. Call AC_PROG_RANLIB. Configure gnulib using
14959 (GNULIB_STDINT_H): Adjust.
14960 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14961 * gdbreplay.c: Include build-gnulib/config.h.
14962 * server.h: Likewise.
14963 * aclocal.m4: Regenerate.
14964 * config.in: Regenerate.
14965 * configure: Regenerate.
14967 2012-04-19 Pedro Alves <palves@redhat.com>
14969 * Makefile.in (LIBGNU, INCGNU): Adjust.
14970 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14971 (all, install-only, uninstall, clean-info, all-lib, clean)
14972 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14973 * configure.ac: Adjust AC_OUTPUT output.
14974 * aclocal.m4: Regenerate.
14975 * configure: Regenerate.
14977 2012-04-19 Pedro Alves <palves@redhat.com>
14979 * Makefile.in (generated_files): New.
14980 (server_h): Remove the explicit dependency on config.h, and depend
14981 on $generated_files.
14983 2012-04-19 Pedro Alves <palves@redhat.com>
14985 * Makefile.in (INCGNU): Add -Ignulib.
14987 2012-04-19 Pedro Alves <palves@redhat.com>
14989 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14990 (INCGNU): ... this, and spell out -I here.
14991 (GNULIB_LIB): Rename to ...
14992 (LIBGNU): ... this.
14993 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14995 2012-04-19 Pedro Alves <palves@redhat.com>
14997 * config.in: Regenerate.
14999 2012-04-19 Pedro Alves <palves@redhat.com>
15001 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15002 * server.h (memmem): Remove declaration.
15003 * config.in: Regenerate.
15004 * configure: Regenerate.
15006 2012-04-19 Yao Qi <yao@codesourcery.com>
15008 * Makefile.in (SFILES): Add common/vec.c.
15012 2012-04-19 Yao Qi <yao@codesourcery.com>
15014 * remote-utils.c (prepare_resume_reply): Replace with macro
15015 target_core_of_thread.
15016 * server.c (handle_qxfer_threads_proper): Likewise.
15017 * target.h (traget_core_of_thread): New macro.
15019 2012-04-18 Pedro Alves <palves@redhat.com>
15021 * aclocal.m4: Regenerate.
15022 * configure: Regenerate.
15024 2012-04-16 Yao Qi <yao@codesourcery.com>
15026 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15027 duplicated on address.
15029 2012-04-16 Yao Qi <yao@codesourcery.com>
15031 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15032 (struct tracepoint_action_ops) <send>: New field.
15033 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15034 (agent_expr_send, x_tracepoint_action_send): New.
15035 (l_tracepoint_action_send): New.
15036 (cmd_qtdp): Download and install tracepoint
15037 according to `use_agent'.
15038 (run_inferior_command): Add one more parameter `len'.
15040 (tracepoint_send_agent): New.
15041 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15043 2012-04-16 Yao Qi <yao@codesourcery.com>
15045 * tracepoint.c (download_tracepoints): Moved to ...
15046 (cmd_qtstart): ... here.
15048 2012-04-14 Yao Qi <yao@codesourcery.com>
15050 * tracepoint.c: Include inttypes.h.
15051 (struct collect_memory_action): Use sized types.
15052 (struct tracepoint): Likewise.
15053 (cmd_qtdp, stop_tracing): Update print specifiers.
15054 (cmd_qtp, response_tracepoint): Likewise.
15055 (collect_data_at_tracepoint): Likewise.
15056 (collect_data_at_step): Likewise.
15058 2012-04-14 Yao Qi <yao@codesourcery.com>
15060 Import gnulib module inttypes.
15061 * aclocal.m4, config.in, configure: Regenerated.
15063 2012-04-14 Yao Qi <yao@codesourcery.com>
15065 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15066 Makefile and config.status at last.
15068 2012-04-13 Yao Qi <yao@codesourcery.com>
15070 * tracepoint.c: Include stdint.h unconditionally.
15072 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15074 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15075 on BFD_HAVE_SYS_PROCFS_TYPE.
15076 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15077 * configure: Regenerate.
15078 * config.in: Likewise.
15080 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15082 * Makefile.in (clean): Also remove x32.c x32-linux.c
15083 x32-avx.c x32-avx-linux.c.
15084 (x32.o): New target.
15086 (x32-linux.o): Likewise.
15087 (x32-linux.c): Likewise.
15088 (x32-avx.o): Likewise.
15089 (x32-avx.c): Likewise.
15090 (x32-avx-linux.o): Likewise.
15091 (x32-avx-linux.c): Likewise.
15093 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15094 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15095 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15096 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15097 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15098 i386/x32-avx-linux.xml.
15100 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15101 (init_registers_x32_avx_linux): Likwise.
15102 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15103 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15105 2012-04-13 Pedro Alves <palves@redhat.com>
15107 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15108 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15109 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15110 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15113 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15115 * linux-x86-low.c (compat_x32_clock_t): New.
15116 (compat_x32_siginfo_t): Likewise.
15117 (compat_x32_siginfo_from_siginfo): Likewise.
15118 (siginfo_from_compat_x32_siginfo): Likewise.
15119 (linux_is_elf64): Likewise.
15120 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15121 and siginfo_from_compat_x32_siginfo for x32.
15122 (x86_arch_setup): Set linux_is_elf64.
15124 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15127 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15129 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15130 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15131 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15132 compatible with process.
15134 2012-04-12 Yao Qi <yao@codesourcery.com>
15136 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15137 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15138 (install-only, install-info, clean): Handle sub dir gnulib.
15139 (all-lib, am--refresh): New targets.
15140 (memmem.o): Remove target.
15141 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15142 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15143 (AC_REPLACE_FUNCS): Remove memmem.
15144 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15145 (AC_OUTPUT): Generate Makefile in gnulib/.
15146 * aclocal.m4, config.in, configure: Regenerated.
15148 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15150 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15152 2012-04-05 Pedro Alves <palves@redhat.com>
15154 -Werror=strict-aliasing
15156 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15159 2012-04-04 Pedro Alves <palves@redhat.com>
15161 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15162 (sparc_store_gregset_from_stack, sparc_store_gregset)
15163 (sparc_breakpoint_at): Fix formatting.
15165 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15167 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15169 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15170 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15171 * config.in: Regenerate.
15172 * configure: Likewise.
15174 2012-03-29 Pedro Alves <palves@redhat.com>
15176 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15177 Correct ptrace arguments.
15179 2012-03-28 Pedro Alves <palves@redhat.com>
15181 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15182 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15183 (IA64_FR1_REGNUM): New defines.
15184 (ia64_fetch_register): New.
15185 (the_low_target): Install it.
15186 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15188 * linux-low.c (linux_fetch_registers): Try the
15189 the_low_target.fetch_register hook first.
15191 * linux-arm-low.c (the_low_target): Adjust.
15192 * linux-bfin-low.c (the_low_target): Adjust.
15193 * linux-cris-low.c (the_low_target): Adjust.
15194 * linux-crisv32-low.c (the_low_target): Adjust.
15195 * linux-m32r-low.c (the_low_target): Adjust.
15196 * linux-m68k-low.c (the_low_target): Adjust.
15197 * linux-mips-low.c (the_low_target): Adjust.
15198 * linux-ppc-low.c (the_low_target): Adjust.
15199 * linux-s390-low.c (the_low_target): Adjust.
15200 * linux-sh-low.c (the_low_target): Adjust.
15201 * linux-sparc-low.c (the_low_target): Adjust.
15202 * linux-tic6x-low.c (the_low_target): Adjust.
15203 * linux-x86-low.c (the_low_target): Adjust.
15204 * linux-xtensa-low.c (the_low_target): Adjust.
15206 2012-03-26 Pedro Alves <palves@redhat.com>
15208 * server.c (handle_qxfer_libraries): Don't bail early if
15209 the_target->qxfer_libraries_svr4 is not NULL.
15211 2012-03-26 Pedro Alves <palves@redhat.com>
15213 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15215 2012-03-23 Pedro Alves <palves@redhat.com>
15217 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15218 "library-list-svr4" element's start tag when the the DSO list is
15221 2012-03-23 Pedro Alves <palves@redhat.com>
15223 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15224 a variable whose type size is the same as the inferior's pointer
15227 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15229 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15231 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15232 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15233 * linux-low.h: Include <signal.h>.
15234 (struct siginfo): Remove forward declaration.
15235 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15238 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15240 * .gitignore: Ignore more files.
15242 2012-03-19 Pedro Alves <palves@redhat.com>
15243 Jan Kratochvil <jan.kratochvil@redhat.com>
15245 * server.c (cont_thread, general_thread): Add describing comments.
15246 (start_inferior): Clear `cont_thread'.
15247 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15250 2012-03-15 Yao Qi <yao@codesourcery.com>
15252 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15254 (cmd_qtdp): ... here.
15256 2012-03-15 Yao Qi <yao@codesourcery.com>
15258 * tracepoint.c (struct tracepoint_action_ops): New.
15259 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15260 (m_tracepoint_action_download): New.
15261 (r_tracepoint_action_download): New.
15262 (x_tracepoint_action_download): New.
15263 (l_tracepoint_action_download): New.
15264 (add_tracepoint_action): Install `action->ops' according type.
15265 (download_tracepoint_1): Move code `download' function pointer
15266 of various tracepoint_action_ops.
15268 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15270 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15271 linux_ptrace_attach_warnings.
15273 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15275 * Makefile.in (linux-ptrace.o): New.
15276 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15277 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15278 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15279 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15280 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15282 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15284 2012-03-08 Yao Qi <yao@codesourcery.com>
15285 Pedro Alves <palves@redhat.com>
15287 Fix PR server/13392.
15288 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15289 offset of JMP insn.
15290 * tracepoint.c (remove_tracepoint): New.
15291 (cmd_qtdp): Call remove_tracepoint when failed to install.
15293 2012-03-07 Pedro Alves <palves@redhat.com>
15295 * linux-low.c (get_detach_signal): New.
15296 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15297 Pass on pending signals to PTRACE_DETACH. Check the result of the
15299 * server.c (program_signals, program_signals_p): New.
15300 (handle_general_set): Handle QProgramSignals.
15301 * server.h (program_signals, program_signals_p): Declare.
15303 2012-03-05 Pedro Alves <palves@redhat.com>
15304 Jan Kratochvil <jan.kratochvil@redhat.com>
15306 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15309 2012-03-03 Yao Qi <yao@codesourcery.com>
15311 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15312 agent_look_up_symbols.
15314 2012-03-03 Yao Qi <yao@codesourcery.com>
15316 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15317 (linux-x86-low.o): Likewise.
15318 * server.h: Remove in_process_agent_loaded.
15319 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15323 2012-03-03 Yao Qi <yao@codesourcery.com>
15325 * tracepoint.c (gdb_agent_capability): New global.
15326 (in_process_agent_loaded_ust): Renamed to
15327 `in_process_agent_supports_ust'.
15329 (in_process_agent_supports_ust): Call agent_capability_check.
15330 (clear_installed_tracepoints): Assert that agent supports
15333 2012-03-03 Yao Qi <yao@codesourcery.com>
15335 * linux-low.c (linux_supports_agent): New.
15336 (linux_target_ops): Initialize field `supports_agent' with
15337 linux_supports_agent.
15338 * target.h (struct target_ops) <supports_agent>: New.
15339 (target_supports_agent): New macro.
15340 * server.c (handle_general_set): Handle packet 'QAgent'.
15341 (handle_query): Send `QAgent+'.
15342 * Makefile.in (server.o): Depends on agent.h.
15344 2012-03-03 Yao Qi <yao@codesourcery.com>
15346 * Makefile.in (OBS): Add agent.o.
15347 Add new rule for agent.o.
15348 Track dependence of tracepoint.c on agent.h.
15349 * tracepoint.c (run_inferior_command_1):
15350 (run_inferior_command): Call agent_run_command.
15351 (gdb_ust_connect_sync_socket): Deleted. Move it to
15353 (resume_thread, stop_thread): Likewise.
15354 (gdb_ust_socket_init): Renamed to ...
15355 (gdb_agent_socket_init): ... New.
15356 (gdb_ust_thread): Renamed to ...
15357 (gdb_agent_helper_thread): ... New.
15358 (gdb_ust_init): Move some code to ...
15359 (gdb_agent_init): ... here. New.
15360 [HAVE_UST]: Call gdb_ust_init.
15361 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15362 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15363 * config.in, configure: Regenerated.
15365 2012-03-02 Pedro Alves <palves@redhat.com>
15367 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15368 * linux-low.c (struct simple_pid_list): New.
15369 (stopped_pids): New a struct simple_pid_list pointer.
15370 (add_to_pid_list, pull_pid_from_list): New.
15371 (handle_extended_wait): Don't assume the first signal new children
15372 report is SIGSTOP. Adjust call to pull_pid_from_list.
15373 (linux_wait_for_lwp): Adjust.
15375 2012-03-02 Yao Qi <yao@codesourcery.com>
15377 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15380 2012-03-02 Yao Qi <yao@codesourcery.com>
15382 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15383 `stop_pc' and `tpoint'. Update caller.
15385 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15387 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15388 * linux-low.c (use_linux_regsets): New macro.
15389 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15390 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15391 (linux_register_in_regsets): New function.
15392 (usr_fetch_inferior_registers): Skip registers covered by
15394 (usr_store_inferior_registers): Likewise.
15395 (usr_fetch_inferior_registers): New macro.
15396 (usr_store_inferior_registers): Likewise.
15397 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15398 (linux_store_registers): Likewise.
15399 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15401 (init_registers_mips64_dsp_linux): Likewise.
15402 (init_registers_mips_linux): New macro.
15403 (init_registers_mips_dsp_linux): Likewise.
15404 (mips_dsp_num_regs): Likewise.
15405 (DSP_BASE, DSP_CONTROL): New fallback macros.
15406 (mips_base_regs): New macro.
15407 (mips_regmap): Use it. Fix the size.
15408 (mips_dsp_regmap): New variable.
15409 (mips_dsp_regset_bitmap): Likewise.
15410 (mips_arch_setup): New function.
15411 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15413 (mips_cannot_store_register): Likewise.
15414 (the_low_target): Update .arch_setup, .num_regs and .regmap
15415 initializers. Add .regset_bitmap initializer.
15416 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15418 * linux-bfin-low.c (the_low_target): Likewise.
15419 * linux-cris-low.c (the_low_target): Likewise.
15420 * linux-crisv32-low.c (the_low_target): Likewise.
15421 * linux-ia64-low.c (the_low_target): Likewise.
15422 * linux-m32r-low.c (the_low_target): Likewise.
15423 * linux-m68k-low.c (the_low_target): Likewise.
15424 * linux-ppc-low.c (the_low_target): Likewise.
15425 * linux-s390-low.c (the_low_target): Likewise.
15426 * linux-sh-low.c (the_low_target): Likewise.
15427 * linux-sparc-low.c (the_low_target): Likewise.
15428 * linux-tic6x-low.c (the_low_target): Likewise.
15429 * linux-x86-low.c (the_low_target): Likewise.
15430 * linux-xtensa-low.c (the_low_target): Likewise.
15431 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15432 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15433 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15435 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15436 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15438 2012-02-29 Yao Qi <yao@codesourcery.com>
15439 Pedro Alves <palves@redhat.com>
15441 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15442 `step_over_finished' is true.
15444 2012-02-27 Pedro Alves <palves@redhat.com>
15446 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15447 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15449 2012-02-27 Pedro Alves <palves@redhat.com>
15452 * linux-low.c (pid_is_stopped): New.
15453 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15455 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15457 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15460 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15462 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15464 2012-02-24 Luis Machado <lgustavo@codesourcery>
15466 * server.c (handle_query): Advertise support for target-side
15467 breakpoint condition evaluation.
15468 (process_point_options): New function.
15469 (process_serial_event): When inserting a breakpoint, check for
15470 a target-side condition that should be evaluated.
15472 * mem-break.c: Include regcache.h and ax.h.
15473 (point_cond_list_t): New data structure.
15474 (breakpoint) <cond_list>: New field.
15475 (find_gdb_breakpoint_at): Make non-static.
15476 (delete_gdb_breakpoint_at): Clear any target-side
15478 (clear_gdb_breakpoint_conditions): New function.
15479 (add_condition_to_breakpoint): Likewise.
15480 (add_breakpoint_condition): Likewise.
15481 (gdb_condition_true_at_breakpoint): Likewise.
15482 (gdb_breakpoint_here): Return result directly instead
15483 of going through a local variable.
15485 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15486 (clear_gdb_breakpoint_conditions): Likewise.
15487 (add_breakpoint_condition): Likewise.
15488 (gdb_condition_true_at_breakpoint): Likewise.
15490 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15491 (need_step_over_p): Take target-side breakpoint condition into
15494 2012-02-24 Luis Machado <lgustavo@codesourcery>
15496 * server.h: Include tracepoint.h.
15497 (agent_mem_read, agent_get_trace_state_variable_value,
15498 agent_set_trace_state_variable_value,
15499 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15500 get_set_tsv_func_addr): New prototypes.
15502 * ax.h: New include file.
15503 * ax.c: New source file.
15505 * tracepoint.c: Include ax.h.
15506 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15507 agent_expr, eval_result_type): Move to ax.h.
15508 (parse_agent_expr): Rename to ...
15509 (gdb_parse_agent_expr): ... this, make it non-static and move
15511 (unparse_agent_expr) Rename to ...
15512 (gdb_unparse_agent_expr): ... this, make it non-static and move
15514 (eval_agent_expr): Rename to ...
15515 (eval_tracepoint_agent_expr): ... this.
15516 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15517 forward declarations.
15518 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15519 (agent_get_trace_state_variable_value): New function.
15520 (agent_set_trace_state_variable_value): New function.
15521 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15522 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15523 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15524 (condition_true_at_tracepoint): Likewise.
15525 (parse_agent_expr): Rename to ...
15526 (gdb_parse_agent_expr): ... this and move to ax.c.
15527 (unparse_agent_expr): Rename to ...
15528 (gdb_unparse_agent_expr): ... this and move to ax.c.
15529 (gdb_agent_op_name): Move to ax.c.
15530 (eval_agent_expr): Rename to ...
15531 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15533 (eval_tracepoint_agent_expr): New function.
15534 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15536 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15538 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15539 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15540 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15541 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15542 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15543 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15544 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15545 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15546 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15547 (compile_bytecodes): Remove forward declaration.
15548 (is_goto_target): Move to ax.c.
15549 (compile_bytecodes): Move to ax.c and call
15550 agent_get_trace_state_variable_value (...) and
15551 agent_set_trace_state_variable_value (...).
15553 * Makefile.in: Update ax.c and IPA dependencies.
15555 2012-02-24 Pedro Alves <palves@redhat.com>
15557 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15558 (cmd_bigqtbuffer_circular): ... this. Only handle
15559 'QTBuffer:circular:'.
15560 (handle_tracepoint_general_set): Adjust.
15562 2012-02-16 Yao Qi <yao@codesourcery.com>
15564 * inferiors.c: Move code to ...
15565 * dll.c: .... here. New.
15566 * server.h: Declare clear_dlls.
15567 * Makefile.in (SFILES): Add dll.c.
15571 2012-02-11 Yao Qi <yao@codesourcery.com>
15573 * server.c: (handle_monitor_command): Add a new parameter
15575 (handle_query): Update caller.
15577 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15579 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15580 * configure, config.in: Regenerate.
15581 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15584 2012-02-02 Pedro Alves <palves@redhat.com>
15586 Try SIGKILL first, then PTRACE_KILL.
15587 * linux-low.c (linux_kill_one_lwp): New.
15588 (linux_kill_one_lwp): Rename to ...
15589 (kill_one_lwp_callback): ... this. Use the new
15590 linux_kill_one_lwp.
15592 2012-02-02 Pedro Alves <palves@redhat.com>
15594 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15597 2012-01-27 Pedro Alves <palves@redhat.com>
15599 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15600 (elf_64_file_p): Make static.
15601 (linux_pid_exe_is_elf_64_file): New.
15602 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15603 Delete declarations.
15604 (linux_pid_exe_is_elf_64_file): Declare.
15605 * linux-x86-low.c (x86_arch_setup): Use
15606 linux_pid_exe_is_elf_64_file.
15608 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15610 * linux-low.c (linux_wait_for_event_1): Rename to ...
15611 (linux_wait_for_event): ... here and merge it with former
15612 linux_wait_for_event - new variable wait_ptid, use it.
15613 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15615 2012-01-23 Pedro Alves <palves@redhat.com>
15617 * server.c (main): Avoid yet another case of infinite loop while
15618 detaching/killing after a longjmp.
15620 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15623 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15625 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15627 * hostio.c (handle_readlink): New function.
15628 (handle_vFile): Call it to handle "vFile:readlink" packets.
15630 2012-01-20 Pedro Alves <palves@redhat.com>
15631 Ulrich Weigand <ulrich.weigand@linaro.org>
15633 * server.c (handle_v_requests): Only support vAttach and vRun to
15634 start multiple processes when in extended protocol mode.
15636 2012-01-17 Pedro Alves <palves@redhat.com>
15638 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15639 memalign plus mprotect to allocate the scratch buffer.
15641 2012-01-13 Pedro Alves <palves@redhat.com>
15643 * server.c (attach_inferior): Clear `cont_thread'.
15645 2012-01-13 Pedro Alves <palves@redhat.com>
15647 * server.c (main): Avoid infinite loop while detaching/killing
15650 2012-01-09 Doug Evans <dje@google.com>
15652 * server.c (start_inferior): Set last_ptid in --wrapper case.
15654 2012-01-06 Yao Qi <yao@codesourcery.com>
15656 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15658 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15660 2012-01-04 Yao Qi <yao@codesourcery.com>
15662 * tracepoint.c (cmd_qtdp): Print debug message
15663 for static tracepoint.
15665 2012-01-04 Yao Qi <yao@codesourcery.com>
15667 * tracepoint.c (trace_vdebug): Differentiate debug message
15668 between gdbserver and IPA.
15670 2012-01-03 Yao Qi <yao@codesourcery.com>
15672 * tracepoint.c (tracepoint_was_hit): Don't collect for
15675 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15677 * terminal.h: Reformat copyright header.
15679 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15681 * server.c (gdbserver_version): Update copyright year.
15682 * gdbreplay.c (gdbreplay_version): Likewise.
15684 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15686 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15689 2011-12-18 Hui Zhu <teawater@gmail.com>
15690 * linux-low.c (linux_create_inferior): Save return value to ret.
15692 2011-12-18 Hui Zhu <teawater@gmail.com>
15694 * linux-low.c (linux_create_inferior): Save return value to ret.
15696 2011-12-16 Doug Evans <dje@google.com>
15698 * linux-low.c (linux_create_inferior): If stdio connection,
15699 redirect stdin from /dev/null, stdout to stderr.
15700 * remote-utils.c (remote_is_stdio): New static global.
15701 (remote_connection_is_stdio): New function.
15702 (remote_prepare): Handle stdio connection.
15703 (remote_open): Ditto.
15704 (remote_close): Don't close stdin for stdio connections.
15705 (read_prim,write_prim): New functions. Replace all calls to
15706 read/write to these.
15707 * server.c (main): Watch for "-" argument. Move call to
15708 remote_prepare before start_inferior.
15709 * server.h (STDIO_CONNECTION_NAME): New macro.
15710 (remote_connection_is_stdio): Declare.
15712 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15713 in debugging output.
15715 2011-12-15 Yao Qi <yao@codesourcery.com>
15717 * tracepoint.c: Include sys/syscall.h.
15718 (gdb_ust_thread): Remove preprocessor conditional.
15720 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15722 * linux-low.c (linux_detach_one_lwp): Call
15723 the_low_target.prepare_to_resume before detaching.
15725 2011-12-14 Yao Qi <yao@codesourcery.com>
15727 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15730 2011-12-14 Yao Qi <yao@codesourcery.com>
15732 * i386-low.c (i386_low_stopped_data_address): Initialize local
15733 variable `control'.
15735 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15739 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15740 DR_CONTROL unless necessary. Extend comments.
15741 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15742 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15744 2011-12-13 Yao Qi <yao@codesourcery.com>
15746 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15748 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15750 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15752 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15753 Print new debug message for such case.
15755 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15757 Fix overlapping memcpy.
15758 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15759 the read_inferior_memory transfer.
15760 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15761 write_inferior_memory transfer.
15762 (set_fast_tracepoint_jump): New variable buf. Use it for the
15763 read_inferior_memory and write_inferior_memory transfers.
15764 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15765 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15766 Use it for the write_inferior_memory transfer.
15767 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15770 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15772 * linux-low.c (fetch_register, store_register): Make code
15773 consistent, fix formatting.
15775 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15777 * linux-low.c (usr_store_inferior_registers): Factor out code
15778 to handle individual registers into...
15779 (store_register): ... this new function.
15781 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15783 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15784 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15785 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15786 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15787 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15788 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15789 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15790 (srv_xmlfiles): Add new XML files.
15792 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15794 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15795 (init_registers_s390_linux32v1): Add prototype.
15796 (init_registers_s390_linux32v2): Likewise.
15797 (init_registers_s390_linux64v1): Likewise.
15798 (init_registers_s390_linux64v2): Likewise.
15799 (init_registers_s390x_linux64v1): Likewise.
15800 (init_registers_s390x_linux64v2): Likewise.
15801 (s390_num_regs): Increment to 52.
15802 (s390_regmap): Add orig_r2 register.
15803 (s390_num_regs_3264): Increment to 68.
15804 (s390_regmap_3264): Add orig_r2 register.
15805 (s390_collect_ptrace_register): Handle orig_r2 register.
15806 (s390_supply_ptrace_register): Likewise.
15807 (s390_fill_last_break): New function.
15808 (s390_store_last_break): Likewise.
15809 (s390_fill_system_call): New function.
15810 (s390_store_system_call): Likewise.
15811 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15813 (s390_check_regset): New function.
15814 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15815 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15816 Update target_regsets for available register sets.
15818 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15819 Jan Kratochvil <jan.kratochvil@redhat.com>
15821 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15822 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15824 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15825 * linux-low.h (struct process_info_private): New member r_debug.
15826 * server.c (handle_qxfer_libraries): Call
15827 the_target->qxfer_libraries_svr4.
15828 (handle_qxfer_libraries_svr4): New function.
15829 (qxfer_packets): New entry "libraries-svr4".
15830 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15831 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15832 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15833 PACKET_qXfer_libraries_svr4.
15835 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15837 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15838 PSW address/mask between 8-byte and 16-byte formats.
15839 (s390_supply_ptrace_register): Likewise.
15840 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15841 basic addressing mode bit.
15843 2011-11-24 Stan Shebs <stan@codesourcery.com>
15845 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15847 2011-11-17 Stan Shebs <stan@codesourcery.com>
15849 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15850 (tracing_start_time): New global.
15851 (tracing_stop_time): New global.
15852 (tracing_user_name): New global.
15853 (tracing_notes): New global.
15854 (tracing_stop_note): New global.
15855 (cmd_qtstart): Set traceframe_usage, start_time.
15856 (stop_tracing): Set stop_time.
15857 (cmd_qtstatus): Report additional status.
15858 (cmd_qtp): New function.
15859 (handle_tracepoint_query): Call it.
15860 (cmd_qtnotes): New function.
15861 (handle_tracepoint_general_set): Call it.
15862 (get_timestamp): Rename from tsv_get_timestamp.
15864 2011-11-14 Stan Shebs <stan@codesourcery.com>
15865 Kwok Cheung Yeung <kcy@codesourcery.com>
15867 * linux-x86-low.c (small_jump_insn): New.
15868 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15869 trampoline and error message, build a trampoline and issue a small
15870 jump instruction to it.
15871 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15872 trampoline and error message.
15873 (x86_get_min_fast_tracepoint_insn_len): New.
15874 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15875 * linux-low.h (struct linux_target_ops): Add arguments to
15876 install_fast_tracepoint_jump_pad operation, add new operation.
15877 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15879 (linux_get_min_fast_tracepoint_insn_len): New function.
15880 (linux_target_op): Add new operation.
15881 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15882 (gdb_trampoline_buffer_end): Ditto.
15883 (gdb_trampoline_buffer_error): Ditto.
15884 (struct ipa_sym_addresses): Add fields for new IPA variables.
15885 (symbol_list): Add entries for new IPA variables.
15886 (struct tracepoint): Add fields to hold the address range of the
15887 trampoline used by the tracepoint.
15888 (trampoline_buffer_head): New static variable.
15889 (trampoline_buffer_tail): Ditto.
15890 (claim_trampoline_space): New function.
15891 (have_fast_tracepoint_trampoline_buffer): New function.
15892 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15894 (install_fast_tracepoint): Ditto, also add error buffer argument.
15895 (cmd_qtminftpilen): New function.
15896 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15897 (fast_tracepoint_from_trampoline_address): New function.
15898 (fast_tracepoint_collecting): Handle trampoline as part of jump
15900 (set_trampoline_buffer_space): New function.
15901 (initialize_tracepoint): Initialize new IPA variables.
15902 * target.h (struct target_ops): Add arguments to
15903 install_fast_tracepoint_jump_pad operation, add new
15904 get_min_fast_tracepoint_insn_len operation.
15905 (target_get_min_fast_tracepoint_insn_len): New.
15906 (install_fast_tracepoint_jump_pad): Add arguments.
15907 * server.h (IPA_BUFSIZ): Define.
15908 * linux-i386-ipa.c: Include extra header files.
15909 (initialize_fast_tracepoint_trampoline_buffer): New function.
15910 (initialize_low_tracepoint): Call it.
15911 * server.h (set_trampoline_buffer_space): Declare.
15912 (claim_trampoline_space): Ditto.
15913 (have_fast_tracepoint_trampoline_buffer): Ditto.
15915 2011-11-14 Yao Qi <yao@codesourcery.com>
15917 * server.c (handle_query): Handle InstallInTrace for qSupported.
15918 * tracepoint.c (add_tracepoint): Sort list.
15919 (install_tracepoint, download_tracepoint): New.
15920 (cmd_qtdp): Call them to install and download tracepoints.
15921 (sort_tracepoints): Removed.
15922 (cmd_qtstart): Update.
15924 2011-11-14 Yao Qi <yao@codesourcery.com>
15926 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15927 * mem-break.h: Declare.
15928 * tracepoint.c (cmd_qtstart): Move some code to ...
15929 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15931 (download_tracepoints): Move some code to ...
15932 (download_tracepoint_1): ... here. New.
15934 2011-11-08 Yao Qi <yao@codesourcery.com>
15936 * remote-utils.c (relocate_instruction): A comment fix.
15938 2011-11-07 Joel Brobecker <brobecker@adacore.com>
15940 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15941 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15942 dr_status_mirror and dr_control_mirror from debug_reg_state.
15943 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15944 (i386_initial_stuff): Remove use of deleted globals.
15945 (i386_get_thread_context, i386_set_thread_context,
15946 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15947 from debug_reg_state.
15949 2011-11-05 Yao Qi <yao@codesourcery.com>
15951 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15952 address as TPOINT's.
15954 2011-11-02 Stan Shebs <stan@codesourcery.com>
15956 * tracepoint.c (agent_mem_read_string): New function.
15957 (eval_agent_expr): Call it for tracenz.
15958 * server.c (handle_query): Report support for tracenz.
15960 2011-11-02 Yao Qi <yao@codesourcery.com>
15962 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15964 2011-11-02 Yao Qi <yao@codesourcery.com>
15966 * target.h: Fix a typo in comment.
15968 2011-10-31 Pedro Alves <pedro@codesourcery.com>
15970 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15971 clobber the breakpoints' shadows with fast tracepoint jumps.
15972 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15973 * target.c (write_inferior_memory): Also pass MYADDR down to
15976 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15978 * configure.ac: Check support for personality routine.
15979 * configure: Regenerate.
15980 * config.in: Likewise.
15981 * linux-low.c: Include <sys/personality.h>.
15982 Define ADDR_NO_RANDOMIZE if necessary.
15983 (linux_create_inferior): Disable address space randomization when
15984 forking inferior, if requested.
15985 (linux_supports_disable_randomization): New function.
15986 (linux_target_ops): Install it.
15987 * server.h (disable_randomization): Declare.
15988 * server.c (disable_randomization): New global variable.
15989 (handle_general_set): Handle QDisableRandomization.
15990 (handle_query): Likewise for qSupported.
15991 (main): Support --disable-randomization and --no-disable-randomization
15992 command line arguments.
15993 * target.h (struct target_ops): Add supports_disable_randomization.
15994 (target_supports_disable_randomization): New macro.
15996 2011-09-29 Mike Frysinger <vapier@gentoo.org>
15998 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16000 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16001 [!PT_GETDSBT] (target_loadmap): New definition.
16002 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16003 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16004 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16005 and PT_GETDSBT to LINUX_LOADMAP.
16006 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16007 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16009 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16011 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16012 (arm_linux_hwbp_cap): New static variable.
16013 (arm_linux_get_hwbp_cap): Replace by ...
16014 (arm_linux_init_hwbp_cap): ... this new function.
16015 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16016 (arm_linux_get_hw_watchpoint_count): Likewise.
16017 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16018 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16019 (arm_prepare_to_resume): Use perror_with_name instead of error.
16021 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16023 * linux-arm-low.c: Include <signal.h>.
16024 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16025 (struct arm_linux_hwbp_cap): New data type.
16026 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16027 (struct arm_linux_hw_breakpoint): New data type.
16028 (MAX_BPTS, MAX_WPTS): Define.
16029 (struct arch_process_info, struct arch_lwp_info): New data types.
16030 (arm_linux_get_hwbp_cap): New function.
16031 (arm_linux_get_hw_breakpoint_count): Likewise.
16032 (arm_linux_get_hw_watchpoint_count): Likewise.
16033 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16034 (arm_hwbp_control_initialize): Likewise.
16035 (arm_hwbp_control_is_enabled): Likewise.
16036 (arm_hwbp_control_is_initialized): Likewise.
16037 (arm_hwbp_control_disable): Likewise.
16038 (arm_linux_hw_breakpoint_equal): Likewise.
16039 (arm_linux_hw_point_initialize): Likewise.
16040 (struct update_registers_data): New data structure.
16041 (update_registers_callback: New function.
16042 (arm_insert_point): Likewise.
16043 (arm_remove_point): Likewise.
16044 (arm_stopped_by_watchpoint): Likewise.
16045 (arm_stopped_data_address): Likewise.
16046 (arm_new_process): Likewise.
16047 (arm_new_thread): Likewise.
16048 (arm_prepare_to_resume): Likewise.
16049 (the_low_target): Register arm_insert_point, arm_remove_point,
16050 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16051 arm_new_thread, and arm_prepare_to_resume.
16053 2011-09-15 Stan Shebs <stan@codesourcery.com>
16055 * server.h (struct emit_ops): Add compare-goto fields.
16056 * tracepoint.c (gdb_agent_op_sizes): New table.
16057 (emit_eq_goto): New function.
16058 (emit_ne_goto): New function.
16059 (emit_lt_goto): New function.
16060 (emit_le_goto): New function.
16061 (emit_gt_goto): New function.
16062 (emit_ge_goto): New function.
16063 (is_goto_target): New function.
16064 (compile_bytecodes): Recognize special cases of compare-goto
16065 combinations and call specialized emitters for them.
16066 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16067 (amd64_emit_ne_goto): New function.
16068 (amd64_emit_lt_goto): New function.
16069 (amd64_emit_le_goto): New function.
16070 (amd64_emit_gt_goto): New function.
16071 (amd64_emit_ge_goto): New function.
16072 (amd64_emit_ops): Add the new functions.
16073 (i386_emit_eq_goto): New function.
16074 (i386_emit_ne_goto): New function.
16075 (i386_emit_lt_goto): New function.
16076 (i386_emit_le_goto): New function.
16077 (i386_emit_gt_goto): New function.
16078 (i386_emit_ge_goto): New function.
16079 (i386_emit_ops): Add the new functions.
16081 2011-09-08 Stan Shebs <stan@codesourcery.com>
16083 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16084 (i386_emit_epilogue): Restore %ebx.
16086 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16088 * server.c (step_thread): Remove definition.
16089 (process_serial_event): Don't handle Hs.
16090 * server.h (step_thread): Remove declaration.
16091 * target.c (set_desired_inferior): Remove use of step_thread.
16093 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16095 * linux-low.c: Include linux-procfs.h.
16096 (linux_attach_lwp_1): Update comments.
16097 (linux_attach): Scan for existing threads when attaching to a
16098 process that is the tgid.
16099 * Makefile.in: Update dependencies.
16101 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16103 * configure.srv: Add linux-procfs.o dependencies.
16105 2011-08-14 Yao Qi <yao@codesourcery.com>
16107 * target.h (struct target_ops): Fix indent.
16108 * win32-low.c (win32_target_ops): Fix comment.
16110 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16111 Yao Qi <yao@codesourcery.com>
16113 * Makefile.in (clean): Remove tic6x-*.c files.
16114 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16115 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16116 (tic6x-c64xp-linux.c): Likewise.
16117 * configure.srv: Add support for tic6x-*-uclinux.
16118 * linux-tic6x-low.c: New.
16119 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16121 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16122 Yao Qi <yao@codesourcery.com>
16124 * target.h (struct target_ops): Add read_loadmap.
16125 * linux-low.c (struct target_loadseg): New type.
16126 (struct target_loadmap): New type.
16127 (linux_read_loadmap): New function.
16128 (linux_target_ops): Add linux_read_loadmap.
16129 * server.c (handle_query): Support qXfer:fdpic:read packet.
16130 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16133 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16135 * win32-low.c: Include <stdint.h>.
16137 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16139 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16140 to the inferior here.
16141 (i386_remove_aligned_watchpoint): Ditto.
16142 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16143 fit part of the watchpoint in the debug registers.
16144 (i386_update_inferior_debug_regs): New.
16145 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16146 registers, and only update the inferior on success.
16147 (i386_low_remove_watchpoint): Ditto.
16149 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16151 * linux-low.c (compare_ints, unique, list_threads, show_process,
16152 linux_core_of_thread): Delete.
16153 (linux_target_ops): Change linux_core_of_thread to
16154 linux_common_core_of_thread.
16155 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16156 * utils.c (malloc_failure): Change type of argument.
16157 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16158 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16159 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16160 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16161 (IPA_OBJS): Add common-utils-ipa.o.
16162 (ptid_h, linux_osdata_h): New macros.
16163 (server_h): Add common/common-utils.h, common/xml-utils.h,
16164 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16166 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16167 ptid.o, buffer.o): New rules.
16168 (linux-low.o): Add common/linux-osdata.h as a dependency.
16169 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16170 * configure.ac: Add AC_HEADER_DIRENT check.
16171 * config.in: Regenerate.
16172 * configure: Regenerate.
16173 * remote-utils.c (xml_escape_text): Delete.
16174 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16175 buffer_xml_printf): Move to common/buffer.c.
16176 * server.c (main): Remove call to initialize_inferiors.
16177 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16178 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16179 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16180 internal_error, gdb_assert, gdb_assert_fail): Delete.
16181 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16182 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16184 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16185 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16186 initialize_inferiors): Delete.
16188 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16190 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16193 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16195 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16197 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16199 2011-05-26 Yao Qi <yao@codesourcery.com>
16201 * Makefile.in (thread-db.o): Track dependence to
16202 common/gdb_thread_db.h.
16203 * thread-db.c: include gdb_thread_db.h from right place.
16205 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16207 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16208 __FILE__ and __LINE__ to internal_error.
16210 2011-05-13 Doug Evans <dje@google.com>
16212 * thread-db.c (try_thread_db_load_from_sdir): New function.
16213 (try_thread_db_load_from_dir): New function.
16214 (thread_db_load_search): Handle $sdir, ignore $pdir.
16215 Remove trying of system directories if search of
16216 libthread-db-search-path fails, that is now done via $sdir.
16218 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16220 * server.c (handle_query): Add EnableDisableTracepoints to the list
16221 of supported features.
16222 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16224 (cmd_qtenable_disable): New.
16225 (cmd_qtstart): Install tracepoints even if disabled.
16226 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16227 receiving a QTEnable or QTDisable packet.
16228 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16229 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16231 (gdb_probe): Skip data collection if static tracepoint is disabled.
16233 2011-05-10 Doug Evans <dje@google.com>
16235 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16237 2011-05-04 Doug Evans <dje@google.com>
16239 * linux-low.c (linux_join): Skip process lookup.
16240 * spu-low.c (spu_join): Ditto.
16241 * server.c (join_inferiors_callback): Delete.
16242 (process_serial_event): For 'D' packet (detach) call join_inferior
16245 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16247 * README: Don't mention xscale*-*-linux*.
16248 * configure.srv (xscale*-*-linux*): Don't handle target.
16250 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16252 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16254 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16255 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16256 (i386_emit_void_call_2): Likewise.
16258 2011-04-26 Yao Qi <yao@codesourcery.com>
16260 * linux-low.c: Move common macros to linux-ptrace.h.
16261 Include linux-ptrace.h.
16262 * Makefile.in (linux_ptrace_h): New.
16263 (linux-low.o): Depends on linux-ptrace.h.
16265 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16267 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16268 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16269 (remote_prepare): New function with most of the TCP code from ...
16270 (remote_open): ... here. Detect PORT here unconditionally. Move also
16271 setting transport_is_reliable.
16272 * server.c (run_once): New variable.
16273 (gdbserver_usage): Document it.
16274 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16275 the first run if RUN_ONCE.
16276 * server.h (run_once, remote_prepare): New declarations.
16278 2011-04-19 Tom Tromey <tromey@redhat.com>
16280 * win32-low.c (handle_load_dll): Remove duplicate "the".
16282 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16284 Remove support for old Cygwin 1.5 versions.
16285 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16286 function to avoid warning.
16287 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16290 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16292 * gdbserver/server.h (Macro _): Define it if not available.
16294 2011-03-14 Michael Snyder <msnyder@vmware.com>
16296 * hostio.c (handle_close): Remove unnecessary null test.
16298 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16300 * Makefile.in (maintainer-clean realclean distclean): Remove
16301 "make ... subdir_do" command.
16303 2011-03-10 Michael Snyder <msnyder@vmware.com>
16305 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16307 * server.c (handle_v_run): Free alloced buffer on early return.
16309 2011-03-09 Yao Qi <yao@codesourcery.com>
16312 2011-03-04 Yao Qi <yao@codesourcery.com>
16314 * Makefile.in: Remove GNU make feature --directory.
16316 2011-03-05 Yao Qi <yao@codesourcery.com>
16318 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16319 (subdir_do): New make target. Copied from gdb/Makefile.
16320 (maintainer-clean, realclean, distclean, clean): Call corresponding
16321 make targets in common/Makefile.
16323 2011-02-11 Yao Qi <yao@codesourcery.com>
16325 * configure.ac: Call AC_PROG_RANLIB.
16326 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16327 * configure: Regenerate.
16329 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16331 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16333 2011-03-06 Yao Qi <yao@codesourcery.com>
16335 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16337 2011-03-05 Yao Qi <yao@codesourcery.com>
16339 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16340 (subdir_do): New make target. Copied from gdb/Makefile.
16341 (maintainer-clean, realclean, distclean, clean): Call corresponding
16342 make targets in common/Makefile.
16344 2011-03-04 Yao Qi <yao@codesourcery.com>
16346 * Makefile.in: Remove GNU make feature --directory.
16348 2011-03-04 Michael Snyder <msnyder@vmware.com>
16350 * server.c (queue_stop_reply): Call xmalloc not malloc.
16352 2011-03-02 Michael Snyder <msnyder@vmware.com>
16354 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16356 2011-02-28 Michael Snyder <msnyder@vmware.com>
16358 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16359 (cmd_qtframe): Ditto.
16360 (cmd_qtbuffer): Ditto.
16361 (cmd_bigqtbuffer): Ditto.
16363 * utils.c (decimal2str): Initialize 'width' to nine, then
16364 don't mess with it.
16366 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16368 * hostio.c (require_data): Free *data, not data.
16370 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16372 * hostio.c (require_data): Use free, not xfree.
16374 2011-02-27 Michael Snyder <msnyder@vmware.com>
16376 * server.c (handle_query): Discard unused value.
16378 * hostio.c (require_data): Free malloc memory before returning
16381 2011-02-26 Michael Snyder <msnyder@vmware.com>
16383 * linux-low.c (list_threads): Call closedir for dirent.
16385 2011-02-27 Michael Snyder <msnyder@vmware.com>
16387 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16388 a case statement falls through.
16390 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16392 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16395 2011-02-26 Michael Snyder <msnyder@vmware.com>
16397 * utils.c (decimal2str): Eliminate dead code and dead param.
16398 (pulongest): Drop dead param from call to decimal2str.
16401 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16403 Revert the following patch (not approved yet):
16404 2011-02-21 Hui Zhu <teawater@gmail.com>
16405 * tracepoint.c (tp_printf): New function.
16406 (eval_agent_expr): Handle gdb_agent_op_printf.
16408 2011-02-21 Hui Zhu <teawater@gmail.com>
16410 * tracepoint.c (tp_printf): New function.
16411 (eval_agent_expr): Handle gdb_agent_op_printf.
16413 2011-02-18 Tom Tromey <tromey@redhat.com>
16415 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16416 (tracepoint.o): Likewise.
16417 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16418 (gdb_agent_op_names): Likewise.
16420 2011-02-18 Tom Tromey <tromey@redhat.com>
16422 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16423 gdb_agent_op_rot>: New constants.
16424 (gdb_agent_op_names): Add pick and roll.
16425 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16428 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16430 * aclocal.m4: Regenerated with aclocal-1.11.1.
16432 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16434 * server.c (handle_qxfer_traceframe_info): New.
16435 (qxfer_packets): Register "traceframe-info".
16436 (handle_query): Report support for qXfer:traceframe-info:read+.
16437 * tracepoint.c (match_blocktype): New.
16438 (traceframe_find_block_type): Rename to ...
16439 (traceframe_walk_blocks): ... this. Add callback filter argument,
16441 (traceframe_find_block_type): New, reimplemented on top of
16442 traceframe_walk_blocks.
16443 (build_traceframe_info_xml): New.
16444 (traceframe_read_info): New.
16445 * server.h (traceframe_read_info): Declare.
16447 2011-02-11 Yao Qi <yao@codesourcery.com>
16449 * configure.ac: Call AC_PROG_RANLIB.
16450 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16451 * configure: Regenerate.
16453 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16455 * server.c (gdb_read_memory): Change return semantics to allow
16457 (handle_search_memory_1): Adjust.
16458 (process_serial_event) <'m' packet>: Handle partial transfers.
16459 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16461 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16463 * regcache.c (init_register_cache): Initialize
16464 regcache->register_status.
16465 (free_register_cache): Release regcache->register_status.
16466 (regcache_cpy): Copy register_status.
16467 (registers_to_string): Print 'x's for unavailable registers.
16468 (supply_register): Mark the register's status valid or
16469 unavailable, depending on whether a buffer was passed in or not.
16470 (supply_register_zeroed): New.
16471 (supply_regblock): Mark the registers' status valid or
16472 unavailable, depending on whether a buffer was passed in or not.
16473 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16474 (struct regcache): New `register_status' field.
16475 (supply_register_zeroed): Declare.
16476 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16477 supply_register_zeroed, rather than passing a NULL buffer to
16479 * tracepoint.c (fetch_traceframe_registers): Update comment.
16481 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16483 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16486 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16488 * server.h (decode_xfer_write): Change prototype.
16489 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16490 and don't extract the annex here.
16491 * server.c (decode_xfer_read): Remove `annex' parameter,
16492 and don't extract the annex here.
16493 (decode_xfer): New.
16494 (struct qxfer): New.
16495 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16496 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16497 (handle_qxfer_statictrace): New functions, abstracted out from
16498 handle_query, and made to use the struct qxfer interface.
16499 (handle_threads_qxfer_proper): Rename to ...
16500 (handle_qxfer_threads_proper): ... this.
16501 (handle_threads_qxfer): Rename to ...
16502 (handle_qxfer_threads): ... this. Adjust.
16503 (qxfer_packets): New array.
16504 (handle_qxfer): New function.
16505 (handle_query): Use handle_qxfer.
16507 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16509 * gdbreplay.c: Shorten lines of >= 80 columns.
16510 * linux-low.c: Ditto.
16511 * linux-ppc-low.c: Ditto.
16512 * linux-s390-low.c: Ditto.
16513 * linux-sparc-low.c: Ditto.
16514 * linux-x86-low.c: Ditto.
16515 * linux-xtensa-low.c: Ditto.
16516 * mem-break.c: Ditto.
16517 * nto-low.c: Ditto.
16518 * regcache.h: Ditto.
16519 * remote-utils.c: Ditto.
16522 * thread-db.c: Ditto.
16523 * tracepoint.c: Ditto.
16525 * win32-low.h: Ditto.
16527 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16529 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16532 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16534 * server.c (gdbserver_version): Update copyright year in version
16536 * gdbreplay.c (gdbreplay_version): Ditto.
16538 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16540 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16541 * linux-bfin-low.c: New file.
16542 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16543 PT_DATA_ADDR for BFIN targets.
16544 * Makefile.in (SFILES): Add linux-bfin-low.c.
16545 (clean): Remove reg-bfin.c.
16546 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16547 * README: Mention supported Blackfin targets.
16549 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16551 * .gitignore: New file.
16553 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16555 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16557 2010-10-22 Jie Zhang <jie@codesourcery.com>
16559 * Makefile.in: Add FLAGS_TO_PASS variable.
16560 (install): Remove dependency of install-only and recursively
16561 invoke make for install-only.
16563 2010-10-04 Doug Evans <dje@google.com>
16565 * Makefile.in (uninstall): Use $(DESTDIR).
16567 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16571 * linux-x86-low.c (compat_siginfo_from_siginfo)
16572 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16573 si_code is < 0. Check for si_code == SI_TIMER before checking for
16576 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16578 * lynx-i386-low.c: New file.
16579 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16581 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16583 * lynx-low.c (ptrace_request_to_str): Remove handling for
16584 request values that have been removed in LynxOS 5.x.
16586 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16588 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16591 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16593 * configure.ac: Add --enable-inprocess-agent option.
16594 * configure: Rebuilt.
16596 2010-09-06 Yao Qi <yao@codesourcery.com>
16598 * linux-low.c (linux_kill): Remove unused variable.
16599 (linux_stabilize_threads): Likewise.
16600 * server.c (start_inferior): Likewise.
16601 (queue_stop_reply_callback): Likewise.
16602 * tracepoint.c (do_action_at_tracepoint): Likewise.
16604 2010-09-06 Yao Qi <yao@codesourcery.com>
16606 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16609 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16611 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16613 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16615 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16618 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16620 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16621 gdbserver/lynx-ppc-low.c: New files.
16622 * Makefile.in (lynx_low_h): New variable.
16623 (lynx-low.o, lynx-ppc-low.o): New rules.
16624 * configure.ac: On LynxOS, link with -lnetinet.
16625 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16626 * configure: regenerate.
16628 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16630 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16631 * configure.ac: Add check for vasprintf and vsnprintf.
16632 * configure, config.in: Regenerate.
16633 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16635 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16637 * gdbreplay.c: Move include of alloca.h up, next to include of
16639 * server.h: Add include of malloc.h.
16640 * mem-break.c: Remove include of malloc.h.
16641 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16643 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16645 * Makefile.in (memmem.o): Build with -Wno-error.
16647 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16649 * utils.c (xsnprintf): Make non-static.
16650 * server.h: Add xsnprintf declaration.
16651 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16652 replace calls to snprintf by calls to xsnprintf throughout.
16654 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16656 * configure.ac: Add configure check for alloca.
16657 * configure, config.in: Regenerate.
16658 * server.h: Include alloca.h if it exists.
16659 * gdbreplay.c: Include alloca.h if it exists.
16661 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16663 * linux-low.c (__SIGRTMIN): Define if not already defined.
16664 (linux_create_inferior): Check for __ANDROID__ rather than
16666 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16667 are already deferred.
16668 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16669 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16670 stopped and already has a pending signal to report.
16671 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16672 a pending signal to report or is moving out of a jump pad.
16673 (linux_init_signals): Check for __ANDROID__ rather than
16676 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16678 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16679 debug_threads check. Avoid a linear search when not doing debug
16682 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16684 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16685 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16686 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16687 (process_event): Change local fd's type to gdb_fildes_t.
16688 (create_file_handler): Adjust prototype.
16689 (delete_file_handler): Adjust prototype.
16690 (handle_file_event): Adjust prototype. Use pfildes.
16691 (create_file_event): Adjsut prototype.
16692 * remote-utils.c (remote_desc, listen_desc): Change type to
16694 * server.h: New gdb_fildes_t typedef.
16695 [USE_WIN32API]: Include winsock2.h.
16696 (delete_file_handler, add_file_handler): Adjust prototypes.
16697 (pfildes): Declare.
16698 * utils.c (pfildes): New.
16700 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16702 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16703 * configure: Regenerate.
16705 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16707 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16708 (linux_done_accessing_memory): ... this.
16709 (linux_target_ops): Adjust.
16710 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16711 * nto-low.c (nto_target_ops): Adjust comment.
16712 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16713 * spu-low.c (spu_target_ops): Adjust comment.
16714 * target.h (target_ops): Rename unprepare_to_access_memory field
16715 to done_accessing_memory.
16716 (unprepare_to_access_memory): Rename to ...
16717 (done_accessing_memory): ... this.
16719 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16721 * linux-low.c (linux_prepare_to_access_memory): New.
16722 (linux_unprepare_to_access_memory): New.
16723 (linux_target_ops): Install them.
16724 * server.c (read_memory): Rename to ...
16725 (gdb_read_memory): ... this. Use
16726 prepare_to_access_memory/prepare_to_access_memory.
16727 (write_memory): Rename to ...
16728 (gdb_write_memory): ... this. Use
16729 prepare_to_access_memory/prepare_to_access_memory.
16730 (handle_search_memory_1): Adjust.
16731 (process_serial_event): Adjust.
16732 * target.h (struct target_ops): New fields
16733 prepare_to_access_memory and unprepare_to_access_memory.
16734 (prepare_to_access_memory, unprepare_to_access_memory): New.
16735 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16736 prepare_to_access_memory/prepare_to_access_memory.
16737 * nto-low.c (nto_target_ops): Adjust.
16738 * spu-low.c (spu_target_ops): Adjust.
16739 * win32-low.c (win32_target_ops): Adjust.
16741 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16743 * Makefile.in (WARN_CFLAGS): Get it from configure.
16744 (WERROR_CFLAGS): New.
16745 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16746 * configure.ac: Introduce --enable-werror, which adds -Werror to
16747 the compiler command line. Enabled by default. Disable with
16748 --disable-werror. Add -Wdeclaration-after-statement
16749 Wpointer-arith and -Wformat-nonliteral to warning flags.
16750 * configure: Regenerate.
16752 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16754 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16756 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16758 * gdbreplay.c (remote_error): New.
16760 (expect): Use gdbchar. Check for error reading from GDB.
16761 Clarify sync error output.
16762 (play): Check for errors writing to GDB.
16763 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16764 * remote-utils.c (getpkt): Check for errors writing to the remote
16767 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16769 * linux-low.c (linux_wait_1): Move non-debugging code out of
16770 `debug_threads' control.
16772 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16774 * linux-low.c (linux_wait_1): Don't set last_status here.
16775 * server.c (push_event, queue_stop_reply_callback): Assert we're
16776 not pushing a TARGET_WAITKIND_IGNORE event.
16777 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16778 (myresume, handle_target_event): Set the thread's last_resume_kind
16779 and last_status from the target returned status.
16781 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16785 * linux-x86-low.c (update_debug_registers_callback): New.
16786 (i386_dr_low_set_addr): Use it.
16787 (i386_dr_low_get_addr): New.
16788 (i386_dr_low_set_control): Use update_debug_registers_callback.
16789 (i386_dr_low_get_control): New.
16790 (i386_dr_low_get_status): Adjust.
16791 * linux-low.c (linux_stop_lwp): New.
16792 * linux-low.h (linux_stop_lwp): Declare.
16794 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16795 argument instead of a i386_debug_reg_state.
16796 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16797 a i386_debug_reg_state.
16798 (i386_insert_aligned_watchpoint): Adjust.
16799 (i386_remove_aligned_watchpoint): Adjust.
16800 (i386_low_stopped_data_address): Read the debug registers from the
16801 inferior instead of from the mirrors.
16802 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16803 (i386_dr_low_get_addr): Declare.
16804 (i386_dr_low_get_control): Declare.
16805 (i386_dr_low_get_status): Change prototype.
16807 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16808 (i386_dr_low_get_addr): New.
16809 (i386_dr_low_get_control): New.
16810 (i386_dr_low_get_status): Adjust prototype. Return
16812 (i386_initial_stuff): Clear dr_status_mirror and
16814 (i386_get_thread_context): Adjust.
16815 (i386_set_thread_context): Adjust.
16816 (i386_thread_added): Adjust.
16818 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16820 * linux-low.h (linux_thread_area): Delete declaration.
16822 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16824 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16825 after its termination.
16827 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16829 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16830 (gdb_wants_all_stopped): Delete.
16831 (linux_wait_1): Don't call them.
16832 * server.c (handle_v_cont): Tag all threads as want-stopped.
16833 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16834 stopped as "client-wants-stopped".
16836 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16838 * Makefile.in (signals_h): New.
16839 (server_h): Depend on it.
16840 (server.o): Don't depend on $(signals_def).
16841 (signals.o): Depend on $(signals_def).
16843 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16845 * Makefile.in (signals_def): New.
16846 (server_h): Append include/gdb/signals.h and signals_def.
16847 (server.o): Append signals_def.
16849 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16851 * server.c (handle_target_event): Use target_signal_to_host for
16852 resume_info.sig initialization.
16853 * target.h (struct thread_resume) <sig>: New comment.
16855 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16857 * server.c (handle_query): strcpy() the returned string from paddress()
16858 instead of sprintf().
16859 * utils.c (paddress): Return phex_nz().
16861 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16863 * server.c (handle_v_cont): Call mourn_inferior if process
16865 (myresume): Likewise.
16867 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16869 Static tracepoints, and integration with UST.
16871 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16872 * mem-break.c (uninsert_all_breakpoints)
16873 (reinsert_all_breakpoints): New.
16874 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16875 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16876 (gdb_agent_ust_loaded, helper_thread_id)
16877 (gdb_agent_helper_thread_id): New macros.
16878 (struct ipa_sym_addresses): Add addr_ust_loaded,
16879 addr_helper_thread_id, addr_cmd_buf.
16880 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16881 (in_process_agent_loaded_ust): New.
16882 (write_e_ust_not_loaded): New.
16883 (maybe_write_ipa_ust_not_loaded): New.
16884 (struct collect_static_trace_data_action): New.
16885 (enum tracepoint_type) <static_tracepoint>: New.
16886 (struct tracepoint) <handle>: Mention static tracepoints.
16887 (struct static_tracepoint_ctx): New.
16888 (CMD_BUF_SIZE): New.
16889 (add_tracepoint_action): Handle static tracepoint actions.
16890 (unprobe_marker_at): New.
16891 (clear_installed_tracepoints): Handle static tracepoints.
16892 (cmd_qtdp): Handle static tracepoints.
16893 (probe_marker_at): New.
16894 (cmd_qtstart): Handle static tracepoints.
16895 (response_tracepoint): Handle static tracepoints.
16896 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16897 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16898 (get_context_regcache): Handle static tracepoints.
16899 (do_action_at_tracepoint): Handle static tracepoint actions.
16900 (traceframe_find_block_type): Handle static trace data blocks.
16901 (traceframe_read_sdata): New.
16902 (download_tracepoints): Download static tracepoint actions.
16903 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16904 (GDB_PROBE_NAME): New.
16906 (GET_UST_SYM): New.
16909 (ust_marker_to_static_tracepoint): New.
16911 (collect_ust_data_at_tracepoint): New.
16912 (gdb_ust_probe): New.
16913 (UNIX_PATH_MAX, SOCK_DIR): New.
16914 (gdb_ust_connect_sync_socket): New.
16915 (resume_thread, stop_thread): New.
16916 (run_inferior_command): New.
16917 (init_named_socket): New.
16918 (gdb_ust_socket_init): New.
16919 (cstr_to_hexstr): New.
16921 (first_marker, next_marker): New.
16922 (response_ust_marker): New.
16923 (cmd_qtfstm, cmd_qtsstm): New.
16924 (unprobe_marker_at, probe_marker_at): New.
16925 (cmd_qtstmat, gdb_ust_thread): New.
16926 (gdb_ust_init): New.
16927 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16928 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16929 (ST_REGENTRY): New.
16930 (x86_64_st_collect_regmap): New.
16931 (X86_64_NUM_ST_COLLECT_GREGS): New.
16932 (AMD64_RIP_REGNUM): New.
16933 (supply_static_tracepoint_registers): New.
16934 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16935 (ST_REGENTRY): New.
16936 (i386_st_collect_regmap): New.
16937 (i386_NUM_ST_COLLECT_GREGS): New.
16938 (supply_static_tracepoint_registers): New.
16939 * server.c (handle_query): Handle qXfer:statictrace:read.
16940 <qSupported>: Report support for StaticTracepoints, and
16941 qXfer:statictrace:read features.
16942 * server.h (traceframe_read_sdata)
16943 (supply_static_tracepoint_registers): Declare.
16944 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16945 (unpack_varlen_hex): Include in IPA build.
16946 * Makefile.in (ustlibs, ustinc): New.
16947 (IPA_OBJS): Add remote-utils-ipa.o.
16948 ($(IPA_LIB)): Link -ldl and -lpthread.
16950 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16951 * config.in, configure: Regenerate.
16953 2010-06-20 Ian Lance Taylor <iant@google.com>
16954 Pedro Alves <pedro@codesourcery.com>
16956 * linux-x86-low.c (always_true): Delete.
16957 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16958 trying to fool the compiler with always_true.
16960 2010-06-20 Pedro Alves <pedro@codesourcery.com>
16962 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16963 conditions in gdbserver.
16965 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16967 * spu-low.c (spu_read_memory): Wrap around local store limit.
16968 (spu_write_memory): Likewise.
16970 2010-06-15 Pedro Alves <pedro@codesourcery.com>
16972 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16973 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16975 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16977 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16978 uses with LONGEST uses.
16980 2010-06-14 Stan Shebs <stan@codesourcery.com>
16981 Pedro Alves <pedro@codesourcery.com>
16985 * linux-x86-low.c: Include limits.h.
16987 (always_true): New.
16990 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16991 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16992 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16993 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16994 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16995 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16996 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16997 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16998 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16999 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17000 (amd64_emit_void_call_2): New.
17001 (amd64_emit_ops): New.
17002 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17003 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17004 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17005 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17006 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17007 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17008 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17009 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17010 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17011 (i386_emit_stack_adjust, i386_emit_int_call_1)
17012 (i386_emit_void_call_2): New.
17013 (i386_emit_ops): New.
17014 (x86_emit_ops): New.
17015 (the_low_target): Install x86_emit_ops.
17016 * server.h (struct emit_ops): New.
17017 (get_raw_reg_func_addr): Declare.
17018 (current_insn_ptr, emit_error): Declare.
17019 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17020 (set_trace_state_variable_value): New defines.
17021 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17022 addr_get_trace_state_variable_value and
17023 addr_set_trace_state_variable_value.
17024 (symbol_list): New fields for get_raw_reg,
17025 get_trace_state_variable_value and set_trace_state_variable_value.
17026 (condfn): New typedef.
17027 (struct tracepoint): New field `compiled_cond'.
17028 (do_action_at_tracepoint): Clear compiled_cond.
17029 (get_trace_state_variable_value, set_trace_state_variable_value):
17031 (condition_true_at_tracepoint): If there's a compiled condition,
17033 (current_insn_ptr, emit_error): New globals.
17034 (struct bytecode_address): New.
17035 (get_raw_reg_func_addr): New.
17036 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17037 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17038 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17039 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17040 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17041 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17042 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17043 (compile_tracepoint_condition, compile_bytecodes): New.
17044 * target.h (emit_ops): Forward declare.
17045 (struct target_ops): New field emit_ops.
17046 (target_emit_ops): New.
17047 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17048 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17049 * linux-low.c (linux_emit_ops): New.
17050 (linux_target_ops): Install it.
17051 * linux-low.h (struct linux_target_ops): New field emit_ops.
17053 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17055 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17056 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17058 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17059 Stan Shebs <stan@codesourcery.com>
17061 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17062 (all): Depend on $(extra_libraries).
17063 (install-only): Install the IPA.
17064 (IPA_OBJS, IPA_LIB): New.
17065 (clean): Remove the IPA lib.
17066 (IPAGENT_CFLAGS): New.
17067 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17068 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17069 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17070 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17071 * configure.ac: Check for atomic builtins support in the compiler.
17072 (IPA_DEPFILES, extra_libraries): Define.
17073 * configure.srv (ipa_obj): Add description.
17074 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17075 (i[34567]86-*-linux*): Set ipa_obj.
17076 (x86_64-*-linux*): Set ipa_obj.
17077 * linux-low.c (stabilizing_threads): New.
17078 (supports_fast_tracepoints): New.
17079 (linux_detach): Stabilize threads before detaching.
17080 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17081 the lwp is either not stabilizing, or is moving out of a jump pad.
17082 (linux_fast_tracepoint_collecting): New.
17083 (maybe_move_out_of_jump_pad): New.
17084 (enqueue_one_deferred_signal): New.
17085 (dequeue_one_deferred_signal): New.
17086 (linux_wait_for_event_1): If moving out of a jump pad, defer
17087 pending signals to later.
17088 (linux_stabilize_threads): New.
17089 (linux_wait_1): Check if threads need moving out of jump pads, and
17091 (stuck_in_jump_pad_callback): New.
17092 (move_out_of_jump_pad_callback): New.
17093 (lwp_running): New.
17094 (linux_resume_one_lwp): Handle moving out of jump pads.
17095 (linux_set_resume_request): Dequeue deferred signals.
17096 (need_step_over_p): Also step over fast tracepoint jumps.
17097 (start_step_over): Also uninsert fast tracepoint jumps.
17098 (finish_step_over): Also reinsert fast tracepoint jumps.
17099 (linux_install_fast_tracepoint_jump): New.
17100 (linux_target_ops): Install linux_stabilize_threads and
17101 linux_install_fast_tracepoint_jump_pad.
17102 * linux-low.h (linux_target_ops) <get_thread_area,
17103 install_fast_tracepoint_jump_pad>: New fields.
17104 (struct lwp_info) <collecting_fast_tracepoint,
17105 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17106 (linux_get_thread_area): Declare.
17107 * linux-x86-low.c (jump_insn): New.
17108 (x86_get_thread_area): New.
17109 (append_insns): New.
17110 (push_opcode): New.
17111 (amd64_install_fast_tracepoint_jump_pad): New.
17112 (i386_install_fast_tracepoint_jump_pad): New.
17113 (x86_install_fast_tracepoint_jump_pad): New.
17114 (the_low_target): Install x86_get_thread_area and
17115 x86_install_fast_tracepoint_jump_pad.
17116 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17117 (struct fast_tracepoint_jump): New.
17118 (fast_tracepoint_jump_insn): New.
17119 (fast_tracepoint_jump_shadow): New.
17120 (find_fast_tracepoint_jump_at): New.
17121 (fast_tracepoint_jump_here): New.
17122 (delete_fast_tracepoint_jump): New.
17123 (set_fast_tracepoint_jump): New.
17124 (uninsert_fast_tracepoint_jumps_at): New.
17125 (reinsert_fast_tracepoint_jumps_at): New.
17126 (set_breakpoint_at): Use write_inferior_memory.
17127 (uninsert_raw_breakpoint): Use write_inferior_memory.
17128 (check_mem_read): Mask out fast tracepoint jumps.
17129 (check_mem_write): Mask out fast tracepoint jumps.
17130 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17131 (set_fast_tracepoint_jump): Declare.
17132 (delete_fast_tracepoint_jump)
17133 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17134 (reinsert_fast_tracepoint_jumps_at): Declare.
17135 * regcache.c: Don't compile many functions when building the
17136 in-process agent library.
17137 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17138 the register buffer in the heap.
17139 (free_register_cache): If the register buffer isn't owned by the
17140 regcache, don't free it.
17141 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17142 pre-existing register caches.
17143 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17145 (convert_ascii_to_int): : Constify `from' parameter type.
17146 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17147 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17148 the needed buffer in-place.
17149 (relocate_instruction): New.
17150 * server.c (handle_query) <qSymbols>: If the target supports
17151 tracepoints, give it a chance of looking up symbols. Report
17152 support for fast tracepoints.
17153 (handle_status): Stabilize threads.
17154 (process_serial_event): Adjust.
17155 * server.h (struct fast_tracepoint_jump): Forward declare.
17156 (struct process_info) <fast_tracepoint_jumps>: New field.
17157 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17158 (decode_X_packet, decode_M_packet): Adjust.
17159 (relocate_instruction): Declare.
17160 (in_process_agent_loaded): Declare.
17161 (tracepoint_look_up_symbols): Declare.
17162 (struct fast_tpoint_collect_status): Declare.
17163 (fast_tracepoint_collecting): Declare.
17164 (force_unlock_trace_buffer): Declare.
17165 (handle_tracepoint_bkpts): Declare.
17166 (initialize_low_tracepoint)
17167 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17168 * target.h (struct target_ops) <stabilize_threads,
17169 install_fast_tracepoint_jump_pad>: New fields.
17170 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17171 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17172 [HAVE_STDINT_H]: Include stdint.h.
17173 (trace_debug_1): Rename to ...
17174 (trace_vdebug): ... this.
17175 (trace_debug): Rename to ...
17176 (trace_debug_1): ... this. Add `level' parameter.
17177 (trace_debug): New.
17178 (ATTR_USED, ATTR_NOINLINE): New.
17179 (IP_AGENT_EXPORT): New.
17180 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17181 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17182 (about_to_request_buffer_space, trace_buffer_is_full)
17183 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17184 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17185 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17186 (traceframe_write_count, traceframes_created)
17187 (trace_state_variables)
17188 New renaming defines.
17189 (struct ipa_sym_addresses): New.
17190 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17191 (symbol_list): New.
17192 (ipa_sym_addrs): New.
17193 (all_tracepoint_symbols_looked_up): New.
17194 (in_process_agent_loaded): New.
17195 (write_e_ipa_not_loaded): New.
17196 (maybe_write_ipa_not_loaded): New.
17197 (tracepoint_look_up_symbols): New.
17198 (debug_threads) [IN_PROCESS_AGENT]: New.
17199 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17200 (UNKNOWN_SIDE_EFFECTS): New.
17201 (stop_tracing): New.
17202 (flush_trace_buffer): New.
17203 (stop_tracing_bkpt): New.
17204 (flush_trace_buffer_bkpt): New.
17205 (read_inferior_integer): New.
17206 (read_inferior_uinteger): New.
17207 (read_inferior_data_pointer): New.
17208 (write_inferior_data_pointer): New.
17209 (write_inferior_integer): New.
17210 (write_inferior_uinteger): New.
17211 (struct collect_static_trace_data_action): Delete.
17212 (enum tracepoint_type): New.
17213 (struct tracepoint) <type>: New field `type'.
17214 <actions_str, step_actions, step_actions_str>: Only include in
17216 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17217 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17218 (tracepoints): Use IP_AGENT_EXPORT.
17219 (last_tracepoint): Don't include in the IPA.
17220 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17221 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17222 (alloced_trace_state_variables): New.
17223 (trace_state_variables): Use IP_AGENT_EXPORT.
17224 (traceframe_t): Delete unused variable.
17225 (circular_trace_buffer): Don't include in the IPA.
17226 (trace_buffer_start): Delete.
17227 (struct trace_buffer_control): New.
17228 (trace_buffer_free): Delete.
17229 (struct ipa_trace_buffer_control): New.
17230 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17231 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17233 (trace_buffer_ctrl): New.
17234 (TRACE_BUFFER_CTRL_CURR): New.
17235 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17236 Reimplement as macros.
17237 (trace_buffer_wrap): Delete.
17238 (traceframe_write_count, traceframe_read_count)
17239 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17240 (struct tracepoint_hit_ctx) <type>: New field.
17241 (struct fast_tracepoint_ctx): New.
17242 (memory_barrier): New.
17244 (record_tracepoint_error): Update atomically in the IPA.
17245 (clear_inferior_trace_buffer): New.
17246 (about_to_request_buffer_space): New.
17247 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17248 updating the same buffer.
17249 (add_tracepoint): Default the tracepoint's type to trap
17250 tracepoint, and orig_size to -1.
17251 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17252 internal variables.
17253 (create_trace_state_variable): New parameter `gdb'. Handle it.
17254 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17255 (cmd_qtdp): Handle fast tracepoints.
17256 (cmd_qtdv): Adjust.
17257 (max_jump_pad_size): New.
17258 (gdb_jump_pad_head): New.
17259 (get_jump_space_head): New.
17260 (claim_jump_space): New.
17261 (sort_tracepoints): New.
17262 (MAX_JUMP_SIZE): New.
17263 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17265 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17266 support. Upload fast traceframes, and delete internal IPA
17268 (stop_tracing_handler): New.
17269 (flush_trace_buffer_handler): New.
17270 (cmd_qtstop): Upload fast tracepoints.
17271 (response_tracepoint): Handle fast tracepoints.
17272 (tracepoint_finished_step): Upload fast traceframes. Set the
17273 tracepoint hit context's tracepoint type.
17274 (handle_tracepoint_bkpts): New.
17275 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17276 type. Add comment about fast tracepoints.
17277 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17278 non-existing action_str field.
17279 (get_context_regcache): Handle fast tracepoints.
17280 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17282 (fast_tracepoint_from_jump_pad_address): New.
17283 (fast_tracepoint_from_ipa_tpoint_address): New.
17284 (collecting_t): New.
17285 (force_unlock_trace_buffer): New.
17286 (fast_tracepoint_collecting): New.
17288 (gdb_collect): New.
17289 (write_inferior_data_ptr): New.
17290 (target_tp_heap): New.
17291 (target_malloc): New.
17292 (download_agent_expr): New.
17294 (download_tracepoints): New.
17295 (download_trace_state_variables): New.
17296 (upload_fast_traceframes): New.
17297 (IPA_FIRST_TRACEFRAME): New.
17298 (IPA_NEXT_TRACEFRAME_1): New.
17299 (IPA_NEXT_TRACEFRAME): New.
17300 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17301 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17302 (gdb_jump_pad_buffer_end): New.
17303 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17304 (initialize_tracepoint): Adjust.
17305 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17306 buffer. Initialize the low module.
17307 * utils.c (PREFIX, TOOLNAME): New.
17308 (malloc_failure): Use PREFIX.
17309 (error): In the IPA, an error causes an exit.
17310 (fatal, warning): Use PREFIX.
17311 (internal_error): Use TOOLNAME.
17312 (NUMCELLS): Increase to 10.
17313 * configure, config.in: Regenerate.
17315 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17317 * server.c (handle_query) <qSupported>: Do two passes over the
17318 qSupported string to avoid nesting strtok.
17320 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17322 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17324 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17325 -Wl,--dynamic-list.
17326 * configure: Regenerate.
17327 * proc-service.list: New.
17329 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17331 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17334 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17336 * gdbreplay.c (remote_open): Check error return from socket() call by
17337 its equality to -1 not by it being negative.
17338 * remote-utils.c (remote_open): Likewise.
17340 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17342 * config.h: Regenerate.
17344 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17346 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17347 doesn't provide PTRACE_GET_THREAD_AREA.
17349 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17351 * linux-m68k-low.c: Include <asm/ptrace.h>
17352 (ps_get_thread_area): Implement.
17354 2010-05-03 Doug Evans <dje@google.com>
17356 * event-loop.c (struct callback_event): New struct.
17357 (callback_list): New global.
17358 (append_callback_event, delete_callback_event): New functions.
17359 (process_callback): New function.
17360 (start_event_loop): Call it.
17361 * remote-utils.c (NOT_SCHEDULED): Define.
17362 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17363 moved out of readchar.
17364 (readchar): Rewrite. Call reschedule before returning.
17365 (reset_readchar): New function.
17366 (remote_close): Call it.
17367 (process_remaining, reschedule): New functions.
17368 * server.h (callback_handler_func): New typedef.
17369 (append_callback_event, delete_callback_event): Declare.
17371 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17373 * proc-service.c (ps_pglobal_lookup): Use
17374 thread_db_look_up_one_symbol.
17375 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17376 parameter. Use it instead of all_symbols_looked_up.
17377 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17379 (all_symbols_looked_up): Don't declare.
17380 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17381 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17383 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17384 Set all_symbols_looked_up here.
17385 (thread_db_look_up_one_symbol): New.
17386 (thread_db_get_tls_address): Adjust.
17387 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17388 thread_db object on the heap, and tentatively set it in the
17390 (thread_db_init): Don't set all_symbols_looked_up here.
17391 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17393 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17395 * linux-low.c (linux_kill, linux_detach): Adjust.
17396 (status_pending_p_callback): Remove redundant statement. Check
17397 for !TARGET_WAITIKIND_IGNORE, instead of
17398 TARGET_WAITKIND_STOPPED.
17399 (handle_tracepoints): Make sure LWP is locked. Adjust.
17400 (linux_wait_for_event_1): Adjust.
17401 (linux_cancel_breakpoints): New.
17402 (unsuspend_one_lwp): New.
17403 (unsuspend_all_lwps): New.
17404 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17405 (send_sigstop_callback): Change return type to int, add new
17406 `except' parameter and handle it.
17407 (suspend_and_send_sigstop_callback): New.
17408 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17409 pass them down. If SUSPEND, also increment the lwp's suspend
17411 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17412 (need_step_over_p): Don't consider suspended LWPs.
17413 (start_step_over): Adjust.
17414 (proceed_one_lwp): Change return type to int, add new `except'
17415 parameter and handle it.
17416 (unsuspend_and_proceed_one_lwp): New.
17417 (proceed_all_lwps): Use find_inferior instead of
17419 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17420 also decrement the suspend count of LWPs. Pass `except' down,
17421 instead of hacking its suspend count.
17422 (linux_pause_all): Add `freeze' parameter. Adjust.
17423 (linux_unpause_all): New.
17424 (linux_target_ops): Install linux_unpause_all.
17425 * server.c (handle_status): Adjust.
17426 * target.h (struct target_ops): New fields `unpause_all' and
17427 `cancel_breakpoints'. Add new parameter to `pause_all'.
17428 (pause_all): Add new `freeze' parameter.
17429 (unpause_all): New.
17430 (cancel_breakpoints): New.
17431 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17432 cancel breakpoints.
17433 (cmd_qtstart): Pause threads.
17434 (stop_tracing): Pause threads, and cancel breakpoints.
17435 * win32-low.c (win32_target_ops): Adjust.
17437 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17439 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17440 the inferior right away from here...
17441 (linux_wait_1): ... to here, and adjust to check the thread's
17442 last_resume_kind instead of the lwp's step or stop_expected flags.
17444 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17446 * README: Use consistent `GDB' and `GDBserver' spellings.
17448 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17450 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17451 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17452 (linux_detach_one_lwp): Assume the lwp is stopped.
17453 (any_thread_of): Delete.
17454 (linux_detach): Stop all lwps here. Don't blindly delete all
17456 (delete_lwp_callback): New.
17457 (linux_mourn): Delete all lwps of the process that is gone.
17458 (linux_wait_1): Don't delete the last lwp of the process here.
17459 * mem-break.h (mark_breakpoints_out): Declare.
17460 * mem-break.c (mark_breakpoints_out): New.
17461 (free_all_breakpoints): Use it.
17462 * server.c (handle_target_event): If the process is gone, mark
17464 * thread-db.c (struct thread_db) <create_bp>: New field.
17465 (thread_db_enable_reporting): Fix prototype. Store a thread event
17466 breakpoint reference in the thread_db struct.
17467 (thread_db_load_search): Clear the thread_db object.
17468 (try_thread_db_load_1): Ditto.
17469 (switch_to_process): New.
17470 (disable_thread_event_reporting): Use it.
17471 (remove_thread_event_breakpoints): New.
17472 (thread_db_detach, thread_db_mourn): Use it.
17474 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17476 * linux-low.c (linux_enable_event_reporting): New.
17477 (linux_wait_for_event_1, handle_extended_wait): Use it.
17479 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17481 * linux-low.c (linux_kill_one_lwp, linux_kill)
17482 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17483 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17484 SIGSTOP even if the LWP is stopped.
17485 (send_sigstop_callback): New.
17486 (stop_all_lwps): Use send_sigstop_callback instead.
17487 (linux_resume_one_thread): Adjust.
17488 (proceed_one_lwp): Still proceed an LWP that the client has
17489 requested to stop, if we haven't reported it as stopped yet. Make
17490 sure that LWPs the client want stopped, have a pending SIGSTOP.
17492 2010-04-26 Doug Evans <dje@google.com>
17494 * server.c (handle_general_set): Make static.
17496 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17497 Print received char after testing for error/eof instead of before.
17498 (input_interrupt): Tweak comment.
17500 2010-04-23 Doug Evans <dje@google.com>
17502 * server.c (start_inferior): Print inferior argv if --debug.
17504 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17506 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17507 * nto-x86-low.c: Include server.h
17509 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17511 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17512 be consistent with other sources of this directory.
17513 (init_registers_amd64): Correct name of source file of this function
17516 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17518 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17519 64-bit executables.
17521 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17523 * win32-i386-low.c: Add 64-bit support.
17524 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17525 (init_registers_amd64): Declare.
17526 (mappings): Add 64-bit version of array.
17527 (init_windows_x86): New function.
17528 (the_low_target): Change init_arch field to init_windows_x86.
17530 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17532 * win32-low.c: Adapt to support also 64-bit architecture.
17533 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17534 (get_image_name): Use SIZE_T type for local variable `done'.
17535 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17536 (toolhelp_get_dll_name): Idem.
17537 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17538 Use uintptr_t typecast to avoid warning.
17539 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17540 (handle_exception): Use phex_nz to avoid warning.
17541 (win32_wait): Remove unused local variable `process'.
17543 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17545 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17548 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17550 * configure.ac: Use `ws2_32' library for srv_mingw.
17551 * configure: Regenerate.
17552 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17553 * remote-utils.c: Likewise.
17555 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17557 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17558 if __x86_64__ is defined.
17560 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17562 * configure: Regenerate.
17564 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17566 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17567 * target.h (target_ops): New get_tib_address field.
17568 * win32-low.h (win32_thread_info): Add thread_local_base field.
17569 * win32-low.c (child_add_thread): Add tlb argument.
17570 Set thread_local_base field to TLB.
17571 (get_child_debug_event): Adapt to child_add_thread change.
17572 (win32_get_tib_address): New function.
17573 (win32_target_ops): Set get_tib_address field to
17574 win32_get_tib_address.
17575 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17577 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17579 * linux-low.c (linux_mourn): Also remove the process.
17580 * server.c (handle_target_event): Don't remove the process here.
17581 * nto-low.c (nto_mourn): New.
17582 (nto_target_ops): Install it.
17583 * spu-low.c (spu_mourn): New.
17584 (spu_target_ops): Install it.
17585 * win32-low.c (win32_mourn): New.
17586 (win32_target_ops): Install it.
17588 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17590 * server.h (buffer_xml_printf): Remove redundant `;'.
17592 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17594 * regcache.c (set_register_cache): Invalidate regcaches before
17595 changing the register cache layout.
17596 (regcache_invalidate_one): Allow a NULL regcache.
17597 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17598 regcaches before changing the register cache layout or the target
17601 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17603 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17604 variable warning on Linux/x86-64.
17606 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17608 GDBserver disconnected tracing support.
17610 * linux-low.c (linux_remove_process): Delete.
17611 (add_lwp): Don't set last_resume_kind here.
17612 (linux_kill): Use `mourn'.
17613 (linux_detach): Use `thread_db_detach', and `mourn'.
17614 (linux_mourn): New.
17615 (linux_attach_lwp_1): Adjust comment.
17616 (linux_attach): last_resume_kind moved the thread_info; adjust.
17617 (status_pending_p_callback): Adjust.
17618 (linux_wait_for_event_1): Adjust.
17619 (count_events_callback, select_singlestep_lwp_callback)
17620 (select_event_lwp_callback, cancel_breakpoints_callback)
17621 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17622 (proceed_one_lwp): Adjust.
17623 (linux_async): Add debug output.
17624 (linux_thread_stopped): New.
17625 (linux_pause_all): New.
17626 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17628 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17629 (thread_db_free): Delete declaration.
17630 (thread_db_detach, thread_db_mourn): Declare.
17631 * thread-db.c (thread_db_init): Use thread_db_mourn.
17632 (thread_db_free): Delete, split in two.
17633 (disable_thread_event_reporting): New.
17634 (thread_db_detach): New.
17635 (thread_db_mourn): New.
17637 * server.h (struct thread_info) <last_resume_kind>: New field.
17638 <attached>: Add comment.
17639 <gdb_detached>: New field.
17640 (handler_func): Change return type to int.
17641 (handle_serial_event, handle_target_event): Ditto.
17642 (gdb_connected): Declare.
17644 (disconnected_tracing): Declare.
17645 (stop_tracing): Declare.
17647 * server.c (handle_query) <qSupported>: Report support for
17648 disconnected tracing.
17649 (queue_stop_reply_callback): Account for running threads.
17650 (gdb_wants_thread_stopped): New.
17651 (gdb_wants_all_threads_stopped): New.
17652 (gdb_reattached_process): New.
17653 (handle_status): Clear the `gdb_detached' flag of all processes.
17654 In all-stop, stop all threads.
17655 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17656 (process_serial_event): If the remote connection breaks, or if an
17657 exit was forced with "monitor exit", force an event loop exit.
17658 Handle disconnected tracing on detach.
17659 (handle_serial_event): Adjust.
17660 (handle_target_event): If GDB isn't connected, forward events back
17661 to the inferior, unless the last process exited, in which case,
17662 exit gdbserver. Adjust interface.
17664 * remote-utils.c (remote_open): Don't block in accept. Instead
17665 register an event loop source on the listen socket file
17666 descriptor. Refactor bits into ...
17667 (listen_desc): ... this new global.
17668 (gdb_connected): ... this new function.
17669 (enable_async_notification): ... this new function.
17670 (handle_accept_event): ... this new function.
17671 (remote_close): Clear remote_desc.
17673 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17675 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17677 (mourn_inferior): Define.
17678 (target_process_qsupported): Avoid the dangling else problem.
17679 (thread_stopped): Define.
17680 (pause_all): Define.
17681 (target_waitstatus_to_string): Declare.
17682 * target.c (target_waitstatus_to_string): New.
17684 * tracepoint.c (tracing): Make extern.
17685 (disconnected_tracing): New.
17686 (stop_tracing): Make extern. Handle tracing stops due to GDB
17688 (cmd_qtdisconnected): New.
17689 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17690 (handle_tracepoint_general_set): Handle QTDisconnected.
17692 * event-loop.c (event_handler_func): Change return type to int.
17693 (process_event): Bail out if the event handler wants the event
17695 (handle_file_event): Ditto.
17696 (start_event_loop): Bail out if the event handler wants the event
17699 * nto-low.c (nto_target_ops): Adjust.
17700 * spu-low.c (spu_wait): Don't remove the process here.
17701 (spu_target_ops): Adjust.
17702 * win32-low.c (win32_wait): Don't remove the process here.
17703 (win32_target_ops): Adjust.
17705 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17707 * regcache.c (realloc_register_cache): Invalidate inferior's
17708 regcache before recreating it.
17710 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17712 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17714 2010-04-09 Stan Shebs <stan@codesourcery.com>
17715 Pedro Alves <pedro@codesourcery.com>
17717 * server.h (LONGEST): New.
17718 (struct thread_info) <while_stepping>: New field.
17719 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17721 (initialize_tracepoint, handle_tracepoint_general_set)
17722 (handle_tracepoint_query, tracepoint_finished_step)
17723 (tracepoint_was_hit, release_while_stepping_state_list):
17724 (current_traceframe): Declare.
17725 * server.c (handle_general_set): Handle tracepoint packets.
17726 (read_memory): New.
17727 (write_memory): New.
17728 (handle_search_memory_1): Use read_memory.
17729 (handle_query): Report support for conditional tracepoints, trace
17730 state variables, and tracepoint sources. Handle tracepoint
17732 (main): Initialize the tracepoints module.
17733 (process_serial_event): Handle traceframe reads/writes.
17735 * linux-low.c (handle_tracepoints): New.
17736 (linux_wait_1): Call it.
17737 (linux_resume_one_lwp): Handle while-stepping.
17738 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17739 (linux_target_ops): Install them.
17740 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17742 * linux-x86-low.c (x86_supports_tracepoints): New.
17743 (the_low_target). Install it.
17745 * mem-break.h (delete_breakpoint): Declare.
17746 * mem-break.c (delete_breakpoint): Make external.
17748 * target.h (struct target_ops): Add `supports_tracepoints',
17749 `read_pc', and `write_pc' fields.
17750 (target_supports_tracepoints): Define.
17751 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17754 * regcache.h (struct regcache) <registers_owned>: New field.
17755 (init_register_cache, regcache_cpy): Declare.
17756 (regcache_read_pc, regcache_write_pc): Declare.
17757 (register_cache_size): Declare.
17758 (supply_regblock): Declare.
17759 * regcache.c (init_register_cache): New.
17760 (new_register_cache): Use it.
17761 (regcache_cpy): New.
17762 (register_cache_size): New.
17763 (supply_regblock): New.
17764 (regcache_read_pc, regcache_write_pc): New.
17766 * tracepoint.c: New.
17768 * Makefile.in (OBS): Add tracepoint.o.
17769 (tracepoint.o): New rule.
17771 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17773 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17775 (i386-mmx.c): Likewise.
17776 (i386-mmx-linux.o): Likewise.
17777 (i386-mmx-linux.c): Likewise.
17779 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17780 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17781 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17782 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17784 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17785 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17786 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17788 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17790 * Makefile.in (clean): Updated.
17792 (i386-avx.c): Likewise.
17793 (i386-avx-linux.o): Likewise.
17794 (i386-avx-linux.c): Likewise.
17795 (amd64-avx.o): Likewise.
17796 (amd64-avx.c): Likewise.
17797 (amd64-avx-linux.o): Likewise.
17798 (amd64-avx-linux.c): Likewise.
17800 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17801 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17802 (srv_amd64_regobj): Add amd64-avx.o.
17803 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17804 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17805 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17806 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17807 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17808 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17809 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17811 * i387-fp.c: Include "i386-xstate.h".
17813 (i387_cache_to_xsave): Likewise.
17814 (i387_xsave_to_cache): Likewise.
17815 (x86_xcr0): Likewise.
17817 * i387-fp.h (i387_cache_to_xsave): Likewise.
17818 (i387_xsave_to_cache): Likewise.
17819 (x86_xcr0): Likewise.
17821 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17822 * linux-crisv32-low.c (target_regsets): Likewise.
17823 * linux-m68k-low.c (target_regsets): Likewise.
17824 * linux-mips-low.c (target_regsets): Likewise.
17825 * linux-ppc-low.c (target_regsets): Likewise.
17826 * linux-s390-low.c (target_regsets): Likewise.
17827 * linux-sh-low.c (target_regsets): Likewise.
17828 * linux-sparc-low.c (target_regsets): Likewise.
17829 * linux-xtensa-low.c (target_regsets): Likewise.
17831 * linux-low.c: Include <sys/uio.h>.
17832 (regsets_fetch_inferior_registers): Support nt_type.
17833 (regsets_store_inferior_registers): Likewise.
17834 (linux_process_qsupported): New.
17835 (linux_target_ops): Add linux_process_qsupported.
17837 * linux-low.h (regset_info): Add nt_type.
17838 (linux_target_ops): Add process_qsupported.
17840 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17842 (init_registers_i386_avx_linux): New.
17843 (init_registers_amd64_avx_linux): Likewise.
17844 (xmltarget_i386_linux_no_xml): Likewise.
17845 (xmltarget_amd64_linux_no_xml): Likewise.
17846 (PTRACE_GETREGSET): Likewise.
17847 (PTRACE_SETREGSET): Likewise.
17848 (x86_fill_xstateregset): Likewise.
17849 (x86_store_xstateregset): Likewise.
17850 (use_xml): Likewise.
17851 (x86_linux_update_xmltarget): Likewise.
17852 (x86_linux_process_qsupported): Likewise.
17853 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17854 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17855 init_registers_i386_linux here. Call
17856 x86_linux_update_xmltarget.
17857 (the_low_target): Add x86_linux_process_qsupported.
17859 * server.c (handle_query): Call target_process_qsupported.
17861 * target.h (target_ops): Add process_qsupported.
17862 (target_process_qsupported): New.
17864 2010-04-03 Pedro Alves <pedro@codesourcery.com>
17866 * inferiors.c (add_thread): Set last_status kind to
17867 TARGET_WAITKIND_IGNORE.
17868 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17869 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17870 (linux_wait_1): Move `thread' local definition to block that uses
17871 it. Don't NULL initialize `event_child'.
17872 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17873 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17874 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17876 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17878 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17879 an extended waitstatus, or by a watchpoint.
17880 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17881 thread was stepping or has been stopped by a watchpoint.
17883 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17885 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17886 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17887 of another, then delete the previous, and validate all
17889 (validate_inserted_breakpoint): New.
17890 (delete_disabled_breakpoints): New.
17891 (validate_breakpoints): New.
17892 (check_mem_read): Validate breakpoints before trusting their
17893 shadow. Delete disabled breakpoints.
17894 (check_mem_write): Validate breakpoints before trusting they
17895 should be inserted. Delete disabled breakpoints.
17896 * mem-break.h (validate_breakpoints):
17897 * server.c (handle_query): Validate breakpoints when we see a
17900 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17902 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17903 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17904 if we could tell there's a GDB breakpoint at stop_pc.
17905 (need_step_over_p): Don't do a step over if we find a GDB
17906 breakpoint at the resume PC.
17908 * mem-break.c (struct raw_breakpoint): New.
17909 (enum bkpt_type): New type `gdb_breakpoint'.
17910 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17911 fields. New field `raw'.
17912 (find_raw_breakpoint_at): New.
17913 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17914 breakpoint instead.
17915 (set_breakpoint_at): Adjust.
17916 (delete_raw_breakpoint): New.
17917 (release_breakpoint): New.
17918 (delete_breakpoint): Rename to...
17919 (delete_breakpoint_1): ... this. Add proc parameter. Use
17920 release_breakpoint. Return ENOENT.
17921 (delete_breakpoint): Reimplement.
17922 (find_breakpoint_at): Delete.
17923 (find_gdb_breakpoint_at): New.
17924 (delete_breakpoint_at): Delete.
17925 (set_gdb_breakpoint_at): New.
17926 (delete_gdb_breakpoint_at): New.
17927 (gdb_breakpoint_here): New.
17928 (set_reinsert_breakpoint): Use release_breakpoint.
17929 (uninsert_breakpoint): Rename to ...
17930 (uninsert_raw_breakpoint): ... this.
17931 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17932 (reinsert_raw_breakpoint): Change parameter type to
17934 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17936 (check_breakpoints): Adjust. Use release_breakpoint.
17937 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17938 (breakpoint_inserted_here): Ditto.
17939 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17940 Don't trust the breakpoint's shadow if it is not inserted.
17941 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17942 (delete_all_breakpoints): Adjust.
17943 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17944 use delete_breakpoint_1.
17946 * mem-break.h (breakpoints_supported): Delete declaration.
17947 (set_gdb_breakpoint_at): Declare.
17948 (gdb_breakpoint_here): Declare.
17949 (delete_breakpoint_at): Delete.
17950 (delete_gdb_breakpoint_at): Declare.
17952 * server.h (struct raw_breakpoint): Forward declare.
17953 (struct process_info): New field `raw_breakpoints'.
17955 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17958 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17960 * linux-low.c (status_pending_p_callback): Fix comment.
17961 (linux_wait_for_event_1): Move most of the internal breakpoint
17962 handling from here...
17963 (linux_wait_1): ... to here.
17964 (count_events_callback): New.
17965 (select_singlestep_lwp_callback): New.
17966 (select_event_lwp_callback): New.
17967 (cancel_breakpoints_callback): New.
17968 (select_event_lwp): New.
17969 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17970 priority to all LWPs that have had events that should be reported
17971 to the client. Cancel breakpoints when about to reporting the
17972 event to the client, not while stopping lwps. No longer cancel
17973 finished single-steps here.
17974 (cancel_finished_single_step): Delete.
17975 (cancel_finished_single_steps): Delete.
17977 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17979 * mem-break.c (enum bkpt_type): New.
17980 (struct breakpoint): New field `type'.
17981 (set_breakpoint_at): Change return type to struct breakpoint
17982 pointer. Set type to `other_breakpoint' by default.
17983 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17984 in the breakpoint list.
17985 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17986 (reinsert_breakpoint): Rename to ...
17987 (reinsert_raw_breakpoint): ... this.
17988 (reinsert_breakpoints_at): Adjust.
17989 * mem-break.h (struct breakpoint): Declare.
17990 (set_breakpoint_at): Change return type to struct breakpoint
17993 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17995 * server.c (handle_query): Assign, not compare.
17997 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17999 Teach linux gdbserver to step-over-breakpoints.
18001 * linux-low.c (can_hardware_single_step): New.
18002 (supports_breakpoints): New.
18003 (handle_extended_wait): If stopping threads, read the stop pc of
18004 the new cloned LWP.
18006 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18007 low target doesn't support retrieving the PC.
18008 (add_lwp): Set last_resume_kind to resume_continue.
18009 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18010 (linux_attach): Don't clear stop_expected. Set the lwp's
18011 last_resume_kind to resume_stop.
18012 (linux_detach_one_lwp): Don't check for removed breakpoints.
18013 (check_removed_breakpoint): Delete.
18014 (status_pending_p): Rename to ...
18015 (status_pending_p_callback): ... this. Don't check for removed
18016 breakpoints. Don't consider threads that are stopped from GDB's
18018 (linux_wait_for_lwp): Always read the stop_pc here.
18019 (cancel_breakpoint): New.
18020 (step_over_bkpt): New global.
18021 (linux_wait_for_event_1): Implement stepping over breakpoints.
18022 (gdb_wants_lwp_stopped): New.
18023 (gdb_wants_all_stopped): New.
18024 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18025 single-step traps here. Store the thread's last reported target
18027 (send_sigstop): Don't clear stop_expected. Always set it,
18029 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18030 (cancel_finished_single_step): New.
18031 (cancel_finished_single_steps): New.
18032 (wait_for_sigstop): Don't cancel finished single-step traps here.
18033 (linux_resume_one_lwp): Don't check for removed breakpoints.
18034 Don't set `step' on non-hardware step archs.
18035 (linux_set_resume_request): Ignore resume_stop requests if already
18036 stopping or stopped. Set the lwp's last_resume_kind.
18037 (resume_status_pending_p): Don't check for removed breakpoints.
18038 (need_step_over_p): New.
18039 (start_step_over): New.
18040 (finish_step_over): New.
18041 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18042 requests. Clear the thread's last reported target waitstatus.
18043 Don't use the `suspended' flag. Don't consider pending breakpoints.
18044 (linux_resume): Start a step-over if necessary.
18045 (proceed_one_lwp): New.
18046 (proceed_all_lwps): New.
18047 (unstop_all_lwps): New.
18048 * linux-low.h (struct lwp_info): Rewrite comment for the
18049 `suspended' flag. Add the `stop_pc' field. Delete the
18050 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18051 Add `'last_resume_kind' and `need_step_over' fields.
18052 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18053 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18054 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18055 (set_raw_breakpoint_at): New.
18056 (set_breakpoint_at): Rewrite to use it.
18057 (reinsert_breakpoint_handler): Delete.
18058 (set_reinsert_breakpoint): New.
18059 (reinsert_breakpoint_by_bp): Delete.
18060 (delete_reinsert_breakpoints): New.
18061 (uninsert_breakpoint): Rewrite.
18062 (uninsert_breakpoints_at): New.
18063 (reinsert_breakpoint): Rewrite.
18064 (reinsert_breakpoints_at): New.
18065 (check_breakpoints): Rewrite.
18066 (breakpoint_here): New.
18067 (breakpoint_inserted_here): New.
18068 (check_mem_read): Adjust.
18069 * mem-break.h (breakpoints_supported, breakpoint_here)
18070 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18071 (reinsert_breakpoint_by_bp): Delete declaration.
18072 (delete_reinsert_breakpoints): Declare.
18073 (reinsert_breakpoint): Delete declaration.
18074 (reinsert_breakpoints_at): Declare.
18075 (uninsert_breakpoint): Delete declaration.
18076 (uninsert_breakpoints_at): Declare.
18077 (check_breakpoints): Adjust prototype.
18078 * server.h: Adjust include order.
18079 (struct thread_info): Declare here. Add a `last_status' field.
18081 2010-03-23 Michael Snyder <msnyder@vmware.com>
18083 * server.c (crc32): New function.
18084 (handle_query): Add handling for 'qCRC:' request.
18086 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18088 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18089 lwp had been stopped by a watchpoint.
18091 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18093 * server.h (internal_error): Declare.
18094 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18095 * utils.c (internal_error): New function.
18097 2010-03-15 Andreas Schwab <schwab@redhat.com>
18099 * configure.srv: Fix typo setting srv_regobj.
18101 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18103 * linux-low.c (fetch_register): Avoid passing a non string literal
18105 (usr_store_inferior_registers): Ditto.
18107 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18109 * linux-low.c (linux_write_memory): Bail out early if peeking
18112 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18114 * linux-low.h (struct lwp_info): New fields
18115 `stopped_by_watchpoint' and `stopped_data_address'.
18116 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18117 here, and cache them in the lwp object.
18118 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18120 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18122 (linux_stopped_by_watchpoint): Rewrite.
18123 (linux_stopped_data_address): Rewrite.
18125 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18127 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18128 switching the current inferior, not before.
18130 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18132 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18133 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18134 i386-linux.c and amd64-linux.c.
18135 (reg-i386.o): Removed.
18136 (reg-i386.c): Likewise.
18137 (reg-i386-linux.o): Likewise.
18138 (reg-i386-linux.c): Likewise.
18139 (reg-x86-64.o): Likewise.
18140 (reg-x86-64.c): Likewise.
18141 (reg-x86-64-linux.o): Likewise.
18142 (reg-x86-64-linux.c): Likewise.
18144 (i386.c): Likewise.
18145 (i386-linux.o): Likewise.
18146 (i386-linux.c): Likewise.
18147 (amd64.o): Likewise.
18148 (amd64.c): Likewise.
18149 (amd64-linux.o): Likewise.
18150 (amd64-linux.c): Likewise.
18152 * configure.srv (srv_i386_regobj): New.
18153 (srv_i386_linux_regobj): Likewise.
18154 (srv_amd64_regobj): Likewise.
18155 (srv_amd64_linux_regobj): Likewise.
18156 (srv_i386_32bit_xmlfiles): Likewise.
18157 (srv_i386_64bit_xmlfiles): Likewise.
18158 (srv_i386_xmlfiles): Likewise.
18159 (srv_amd64_xmlfiles): Likewise.
18160 (srv_i386_linux_xmlfiles): Likewise.
18161 (srv_amd64_linux_xmlfiles): Likewise.
18162 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18163 srv_xmlfiles to $srv_i386_xmlfiles.
18164 (i[34567]86-*-mingw32ce*): Likewise.
18165 (i[34567]86-*-mingw*): Likewise.
18166 (i[34567]86-*-nto*): Likewise.
18167 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18168 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18169 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18170 (x86_64-*-linux*): Likewise.
18172 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18173 (init_registers_amd64_linux): New.
18174 (x86_arch_setup): Replace init_registers_x86_64_linux with
18175 init_registers_amd64_linux.
18177 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18179 * configure.ac: Check for libdl. If it is not available link against
18180 static libthread_db.
18181 * configure: Regenerate.
18183 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18187 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18188 handing a read watchpoint.
18189 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18191 2010-02-12 Doug Evans <dje@google.com>
18193 * linux-low.c (linux_supports_tracefork_flag): Document.
18194 (linux_look_up_symbols): Add comment.
18196 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18198 * regcache.c (supply_register): Clear regcache if buf is NULL.
18200 2010-02-02 Nicolas Roche <roche@sourceware.org>
18201 Joel Brobecker <brobecker@adacore.com>
18203 * inferiors.c (find_inferior): Add function documentation.
18204 (unloaded_dll): Handle the case where the unloaded dll has not
18205 been previously registered in the dll list.
18207 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18209 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18210 (thumb2_breakpoint): New.
18211 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18213 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18215 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18216 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18219 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18221 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18223 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18225 * linux-s390-low.c (s390_collect_ptrace_register)
18226 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18228 2010-01-21 Doug Evans <dje@google.com>
18230 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18231 (PTRACE_ARG4_TYPE): New macro.
18232 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18233 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18234 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18235 (usr_store_inferior_registers): Ditto.
18236 (linux_read_memory, linux_write_memory): Ditto.
18237 (linux_test_for_tracefork): Ditto.
18239 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18240 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18242 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18244 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18247 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18249 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18250 prototype to take a regcache. Adjust.
18252 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18254 * regcache.h (struct thread_info): Forward declare.
18255 (struct regcache): New.
18256 (new_register_cache): Adjust prototype.
18257 (get_thread_regcache): Declare.
18258 (free_register_cache): Adjust prototype.
18259 (registers_to_string, registers_from_string): Ditto.
18260 (supply_register, supply_register_by_name, collect_register)
18261 (collect_register_as_string, collect_register_by_name): Ditto.
18262 * regcache.c (struct inferior_regcache_data): Delete.
18263 (get_regcache): Rename to ...
18264 (get_thread_regcache): ... this. Adjust. Switch inferior before
18265 fetching registers.
18266 (regcache_invalidate_one): Adjust.
18267 (regcache_invalidate): Fix prototype.
18268 (new_register_cache): Return the new register cache.
18269 (free_register_cache): Change prototype.
18270 (realloc_register_cache): Adjust.
18271 (registers_to_string): Change prototype to take a regcache. Adjust.
18272 (registers_from_string): Ditto.
18273 (register_data): Ditto.
18274 (supply_register): Ditto.
18275 (supply_register_by_name): Ditto.
18276 (collect_register): Ditto.
18277 (collect_register_as_string): Ditto.
18278 (collect_register_by_name): Ditto.
18279 * server.c (process_serial_event): Adjust.
18280 * linux-low.h (regset_fill_func, regset_store_func): Change
18282 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18284 * linux-low.c (get_stop_pc): Adjust.
18285 (check_removed_breakpoint): Adjust.
18286 (linux_wait_for_event): Adjust.
18287 (linux_resume_one_lwp): Adjust.
18288 (fetch_register): Add regcache parameter. Adjust.
18289 (usr_store_inferior_registers): Ditto.
18290 (regsets_fetch_inferior_registers): Ditto.
18291 (regsets_store_inferior_registers): Ditto.
18292 (linux_fetch_registers, linux_store_registers): Ditto.
18293 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18295 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18297 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18298 prototype to take a regcache.
18299 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18300 * remote-utils.c (convert_ascii_to_int, outreg)
18301 (prepare_resume_reply): Change prototype to take a regcache.
18303 * target.h (struct target_ops) <fetch_registers, store_registers>:
18304 Change prototype to take a regcache.
18305 (fetch_inferior_registers, store_inferior_registers): Change
18306 prototype to take a regcache. Adjust.
18307 * proc-service.c (ps_lgetregs): Adjust.
18308 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18309 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18310 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18311 take a regcache. Adjust.
18312 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18313 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18314 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18315 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18316 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18317 (cris_cannot_fetch_register):
18318 (cris_breakpoint_at): Change prototype to take a regcache.
18320 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18321 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18322 to take a regcache. Adjust.
18323 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18325 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18326 take a regcache. Adjust.
18327 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18328 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18329 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18330 * linux-mips-low.c (mips_get_pc):
18331 (mips_set_pc): Change prototype to take a regcache. Adjust.
18332 (mips_reinsert_addr): Adjust.
18333 (mips_collect_register): Change prototype to take a regcache.
18335 (mips_supply_register):
18336 (mips_collect_register_32bit, mips_supply_register_32bit)
18337 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18338 (mips_store_fpregset): Ditto.
18339 * linux-ppc-low.c (ppc_supply_ptrace_register)
18340 (ppc_supply_ptrace_register): Ditto.
18341 (parse_spufs_run): Adjust.
18342 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18343 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18344 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18345 take a regcache. Adjust.
18346 * linux-s390-low.c (s390_collect_ptrace_register)
18347 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18348 (s390_set_pc): Change prototype to take a regcache. Adjust.
18349 (s390_arch_setup): Adjust.
18350 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18351 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18352 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18353 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18354 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18356 (sparc_breakpoint_at): Adjust.
18357 * linux-xtensa-low.c (xtensa_fill_gregset):
18358 (xtensa_store_gregset):
18359 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18360 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18361 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18362 prototype to take a regcache. Adjust.
18363 * win32-arm-low.c (arm_fetch_inferior_register)
18364 (arm_store_inferior_register): Change prototype to take a
18366 * win32-i386-low.c (i386_fetch_inferior_register)
18367 (i386_store_inferior_register): Change prototype to take a
18369 * win32-low.c (child_fetch_inferior_registers)
18370 (child_store_inferior_registers): Change prototype to take a
18372 (win32_wait): Adjust.
18373 (win32_fetch_inferior_registers): Change prototype to take a
18375 (win32_store_inferior_registers): Adjust.
18376 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18377 store_inferior_register>: Change prototype to take a regcache.
18379 2010-01-20 Doug Evans <dje@google.com>
18381 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18383 (linux_wait_for_event1, linux_init_signals): Ditto.
18384 (W_STOPCODE): Provide definition if missing.
18386 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18388 * linux-low.c (linux_core_of_thread): New.
18389 (compare_ints, show_process, list_threads): New.
18390 (linux_qxfer_osdata): Report threads and cores.
18391 (linux_target_op): Register linux_core_of_thread.
18392 * remote-utils.c (prepare_resume_reply): Report the core.
18393 (buffer_xml_printf): Support %d specifier.
18394 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18396 (handle_query): Handle qXfer:threads. Announce availability
18398 * target.h (struct target_ops): New field core_of_thread.
18400 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18402 * Makefile.in (clean): Remove new generated files.
18403 (reg-s390.o, reg-s390.c): Remove rules.
18404 (reg-s390x.o, reg-s390x.c): Likewise.
18405 (s390-linux32.o, s390-linux32.c): Add rules.
18406 (s390-linux64.o, s390-linux64.c): Likewise.
18407 (s390x-linux64.o, s390x-linux64.c): Likewise.
18408 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18409 * linux-s390-low.c: Include <elf.h>.
18410 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18411 (init_registers_s390): Remove prototype.
18412 (init_registers_s390x): Likewise.
18413 (init_registers_s390_linux32): Add prototype.
18414 (init_registers_s390_linux64): Likewise.
18415 (init_registers_s390x_linux64): Likewise.
18416 (s390_num_regs_3264): New define.
18417 (s390_regmap_3264): New global variable.
18418 (s390_cannot_fetch_register): Remove obsolete check.
18419 (s390_cannot_store_register): Likewise.
18420 (s390_collect_ptrace_register): Handle upper/lower register halves.
18421 (s390_supply_ptrace_register): Likewise.
18422 (s390_fill_gregset): Update to register number changes.
18423 (s390_get_hwcap): New routine.
18424 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18425 Install appropriate regmap and register set.
18427 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18429 * server.c (gdbserver_version): Update copyright year to 2010.
18430 * gdbreplay.c (gdbreplay_version): Likewise.
18432 2009-12-28 Doug Evans <dje@google.com>
18434 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18435 elf/external.h. Include <elf.h> instead but only if necessary.
18437 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18439 * linux-low.c (linux_remove_process): Remove `detaching'
18440 parameter. Don't release/detach from thread_db here.
18441 (linux_kill): Release/detach from thread_db here, ...
18442 (linux_detach): ... and here, before actually detaching.
18443 (linux_wait_1): ... and here, when a process exits.
18444 * thread-db.c (any_thread_of): New.
18445 (thread_db_free): Switch the current inferior to a thread of the
18448 2009-12-21 Doug Evans <dje@google.com>
18450 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18452 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18453 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18454 warning ifndef __NR_tkill. Move setting of errno there too.
18455 Delete unnecessary resetting of errno after syscall.
18456 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18458 * configure.ac: Check for dladdr.
18459 * config.in: Regenerate.
18460 * configure: Regenerate.
18461 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18462 (try_thread_db_load): Update.
18464 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18466 2009-12-18 Doug Evans <dje@google.com>
18468 * event-loop.c: Include unistd.h if it exists.
18470 * linux-low.c (my_waitpid): Move definition away from being in
18471 between linux_tracefork_child/linux_test_for_tracefork.
18473 * gdb_proc_service.h (psaddr_t): Fix type.
18474 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18475 signature to match glibc.
18477 2009-12-16 Doug Evans <dje@google.com>
18479 * linux-low.c (linux_read_memory): Fix argument to read.
18481 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18483 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18484 events, don't leave current_inferior pointing at null.
18486 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18488 * win32-low.c (LOG): Delete.
18489 (OUTMSG): Output to stderr.
18490 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18491 on compile time LOG macro.
18492 (win32_wait): Fix debug output.
18494 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18496 * win32-low.c (win32_add_one_solib): If the dll name is
18497 "ntdll.dll", prepend the system directory to the dll path.
18499 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18501 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18503 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18504 Vladimir Prus <vladimir@codesourcery.com>
18506 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18507 * configure.ac: Check for __mcoldfire__ and set
18508 gdb_cv_m68k_is_coldfire.
18509 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18510 reg-cf.o and reg-m68k.o.
18511 * configure: Regenerated.
18513 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18515 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18516 Pass it to thread_db_free.
18517 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18518 proper `detaching' argument to linux_remove_process.
18519 * linux-low.h (thread_db_free): Add `detaching' parameter.
18520 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18522 (thread_db_free): Add `detaching' parameter. Only
18523 call td_ta_clear_event if detaching from process.
18525 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18527 * thread-db.c (thread_db_free): Fix typo.
18529 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18532 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18534 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18536 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18537 with an i686 compiler.
18538 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18540 * configure: Rebuilt.
18542 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18546 * server.c (handle_search_memory_1): Correct read_addr initialization
18547 in loop for searching subsequent chunks.
18549 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18551 * configure.ac: New --with-libthread-db option.
18552 * thread-db.c: Allow direct dependence on libthread_db.
18553 (thread_db_free): Adjust.
18554 * config.in: Regenerate.
18555 * configure: Likewise.
18557 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18560 * thread-db.c (attach_thread): New function.
18561 (maybe_attach_thread): Return success/failure.
18562 (find_new_threads_callback): Adjust.
18563 (thread_db_find_new_threads): Loop until no new threads.
18565 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18567 * proc-service.c (ps_lgetregs): Formatting.
18569 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18571 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18572 * configure.ac: Adjust.
18573 * linux-low.h (struct process_info_private): Move members to struct
18575 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18576 * linux-low.c (linux_remove_process): Adjust.
18577 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18578 * server.c (handle_query): Move code ...
18579 (handle_monitor_command): ... here. New function.
18580 * target.h (struct target_ops): New member.
18581 * thread-db.c (struct thread_db): New.
18582 (libthread_db_search_path): New variable.
18583 (thread_db_create_event, thread_db_enable_reporting)
18584 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18585 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18586 (try_thread_db_load_1, dladdr_to_soname): New functions.
18587 (try_thread_db_load, thread_db_load_search): New functions.
18588 (thread_db_init): Search for libthread_db.
18589 (thread_db_free): New function.
18590 (thread_db_handle_monitor_command): Likewise.
18591 * config.in: Regenerate.
18592 * configure: Regenerate.
18594 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18596 * spu-low.c (spu_kill): Wait for inferior to terminate.
18597 Call clear_inferiors.
18598 (spu_detach): Call clear_inferiors.
18600 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18602 * aclocal.m4: Regenerate.
18603 * config.in: Likewise.
18604 * configure: Likewise.
18606 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18608 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18609 (parse_spufs_run): New function.
18610 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18611 (ppc_breakpoint_at): Handle SPU breakpoints.
18613 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18615 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18616 (SPUFS_MAGIC): Define.
18617 (spu_enumerate_spu_ids): New function.
18618 (linux_qxfer_spu): New function.
18619 (linux_target_ops): Install linux_qxfer_spu.
18621 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18623 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18624 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18625 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18626 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18627 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18628 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18629 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18630 (init_registers_powerpc_cell32l): Add prototype.
18631 (init_registers_powerpc_cell64l): Likewise.
18632 (ppc_arch_setup): Detect Cell/B.E. architecture.
18634 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18636 * Makefile.in (datarootdir): New variable.
18638 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18640 * linux-low.c (linux_write_memory): Update debugging output.
18641 * Makefile.in (clean): Add new descriptions.
18642 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18643 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18644 * configure.srv: Add new files for arm*-*-linux*.
18645 * linux-arm-low.c: Add new declarations.
18646 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18647 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18648 (HWCAP_VFPv3D16): New.
18649 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18650 instead of __IWMMXT__.
18651 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18652 (arm_arch_setup): New.
18653 (target_regsets): Remove #ifdef. Add VFP regset.
18654 (the_low_target): Use arm_arch_setup.
18656 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18658 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18659 the main thread again.
18661 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18663 Adding Neutrino gdbserver.
18664 * configure: Regenerated.
18665 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18666 * configure.srv (i[34567]86-*-nto*): New target.
18667 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18668 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18669 (nto_comctrl) [__QNX__]: New function.
18670 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18672 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18674 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18677 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18678 Pedro Alves <pedro@codesourcery.com>
18680 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18681 don't support CONTEXT_EXTENDED_REGISTERS.
18682 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18683 (the_low_target): Install them.
18684 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18685 failing with ERROR_PIPE_NOT_CONNECTED.
18687 2009-06-30 Doug Evans <dje@google.com>
18688 Pierre Muller <muller@ics.u-strasbg.fr>
18690 Add h/w watchpoint support to x86-linux, win32-i386.
18691 * Makefile.in (SFILES): Add i386-low.c
18692 (i386_low_h): Define.
18693 (i386-low.o): Add dependencies.
18694 (linux-x86-low.o): Add i386-low.h dependency.
18695 (win32-i386-low.o): Ditto.
18696 * i386-low.c: New file.
18697 * i386-low.h: New file.
18698 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18699 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18700 * linux-low.c (linux_add_process): Initialize arch_private.
18701 (linux_remove_process): Free arch_private.
18702 (add_lwp): Initialize arch_private.
18703 (delete_lwp): Free arch_private.
18704 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18706 * linux-low.h (process_info_private): New member arch_private.
18707 (lwp_info): New member arch_private.
18708 (linux_target_ops): New members new_process, new_thread,
18710 (ptid_of): New macro.
18711 * linux-x86-low.c: Include stddef.h, i386-low.h.
18712 (arch_process_info): New struct.
18713 (arch_lwp_info): New struct.
18714 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18715 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18716 (i386_dr_low_get_status): New function.
18717 (x86_insert_point, x86_remove_point): New functions.
18718 (x86_stopped_by_watchpoint): New function.
18719 (x86_stopped_data_address): New function.
18720 (x86_linux_new_process, x86_linux_new_thread): New functions.
18721 (x86_linux_prepare_to_resume): New function.
18722 (the_low_target): Add entries for insert_point, remove_point,
18723 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18725 * server.c (debug_hw_points): New global.
18726 (monitor_show_help): Document set debug-hw-points.
18727 (handle_query): Process "set debug-hw-points".
18728 * server.h (debug_hw_points): Declare.
18729 (paddress): Declare.
18730 * utils.c (NUMCELLS, CELLSIZE): New macros.
18731 (get_sell, xsnprintf, paddress): New functions.
18732 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18733 remove_point, stopped_by_watchpoint, stopped_data_address.
18734 * win32-i386-low.c: Include i386-low.h.
18735 (debug_reg_state): Replaces dr.
18736 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18737 (i386_dr_low_get_status): New function.
18738 (i386_insert_point, i386_remove_point): New functions.
18739 (i386_stopped_by_watchpoint): New function.
18740 (i386_stopped_data_address): New function.
18741 (i386_initial_stuff): Update.
18742 (get_thread_context,set_thread_context,i386_thread_added): Update.
18743 (the_low_target): Add entries for insert_point,
18744 remove_point, stopped_by_watchpoint, stopped_data_address.
18745 * win32-low.c (win32_insert_watchpoint): New function.
18746 (win32_remove_watchpoint): New function.
18747 (win32_stopped_by_watchpoint): New function.
18748 (win32_stopped_data_address): New function.
18749 (win32_target_ops): Add entries for insert_watchpoint,
18750 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18751 * win32-low.h (win32_target_ops): New members insert_point,
18752 remove_point, stopped_by_watchpoint, stopped_data_address.
18754 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18756 * server.c (process_serial_event): Re-return unsupported, not
18757 error, if the type isn't recognized. Re-allow supporting only
18758 insert or remove packets. Also call require_running for
18759 breakpoints. Add missing break statement to default case. Tidy.
18760 * target.h (struct target_ops): Rename insert_watchpoint to
18761 insert_point, and remove_watchpoint to remove_point.
18763 * linux-low.h (struct linux_target_ops): Likewise.
18764 * linux-low.c (linux_insert_watchpoint): Rename to ...
18765 (linux_insert_point): ... this. Adjust.
18766 (linux_remove_watchpoint): Rename to ...
18767 (linux_remove_point): ... this. Adjust.
18768 (linux_target_ops): Adjust.
18769 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18770 (cris_insert_point): ... this.
18771 (cris_remove_watchpoint): Rename to ...
18772 (cris_remove_point): ... this.
18773 (the_low_target): Adjust.
18775 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18777 * server.c (handle_v_kill): Pass signal_pid to
18778 kill_inferior if multi_process is zero.
18780 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18782 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18783 * target.h (target_ops): Comment for *_watchpoint to make it clear
18784 the functions can get types '0' and '1'.
18786 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18788 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18789 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18790 * regcache.c (get_regcache): Likewise.
18791 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18792 * win32-low.c (child_fetch_inferior_registers): Remove check for
18795 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18796 Pedro Alves <pedro@codesourcery.com>
18798 * target.h (struct target_ops) <supports_multi_process>: New
18800 (target_supports_multi_process): New.
18801 * server.c (handle_query): Even if GDB reports support, only
18802 enable multi-process if the target also supports it. Report
18803 multi-process support only if the target backend supports it.
18804 * linux-low.c (linux_supports_multi_process): New function.
18805 (linux_target_ops): Install it as target_supports_multi_process
18808 2009-05-24 Doug Evans <dje@google.com>
18810 Global renaming of find_thread_pid to find_thread_ptid.
18811 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18812 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18813 All callers updated.
18815 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18816 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18819 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18820 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18821 (linux_resume_one_lwp): Ditto.
18823 2009-05-23 Doug Evans <dje@google.com>
18825 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18826 from struct inferior_list_entry * to struct lwp_info *.
18827 All callers updated.
18829 2009-05-13 Doug Evans <dje@google.com>
18831 * linux-x86-low.c: Don't include assert.h.
18832 (x86_siginfo_fixup): Use fatal, not assert.
18833 (x86_arch_setup): Fix comment.
18835 2009-05-12 Doug Evans <dje@google.com>
18837 Biarch support for i386/amd64 gdbserver.
18838 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18839 Add linux-x86-low.c.
18840 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18841 (linux-x86-low.o): Add.
18842 * linux-x86-64-low.c: Delete.
18843 * linux-i386-low.c: Delete.
18844 * linux-x86-low.c: New file.
18845 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18847 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18849 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18850 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18851 (linux_child_pid_to_exec_file): New function.
18852 (elf_64_header_p, elf_64_file_p): New functions.
18853 (siginfo_fixup): New function.
18854 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18855 give target a chance to convert layout.
18856 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18857 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18859 2009-05-07 Doug Evans <dje@google.com>
18861 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18862 (regsets_store_inferior_registers): Ditto.
18864 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18868 * linux-low.c (must_set_ptrace_flags): Delete.
18869 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18871 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18872 `lwp->must_set_ptrace_flags' instead.
18873 (linux_wait_for_event_1): Set ptrace options here.
18874 (linux_wait_1): ... not here.
18876 2009-04-30 Doug Evans <dje@google.com>
18878 * inferiors.c (started_inferior_callback): New function.
18879 (attached_inferior_callback): New function.
18880 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18881 * server.c (print_started_pid, print_attached_pid): New functions.
18882 (detach_or_kill_for_exit): New function.
18883 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18884 * server.h (have_started_inferiors_p): Declare.
18885 (have_attached_inferiors_p): Declare.
18887 * inferiors.c (remove_process): Fix memory leak, free process.
18888 * linux-low.c (linux_remove_process): New function.
18889 (linux_kill): Call it instead of remove_process.
18890 (linux_detach, linux_wait_1): Ditto.
18892 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18894 * configure.srv: Add x86 Windows CE target.
18896 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18898 * inferiors.c (get_thread_process): Make global.
18899 * server.h (get_thread_process): Add prototype.
18900 * thread-db.c (find_one_thread): Use get_thread_process
18901 instead of current_process.
18902 (thread_db_get_tls_address): Do not crash if called when
18903 thread layer is not yet initialized.
18905 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18907 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18908 * spu-low.c (current_tid): Rename to ...
18909 (current_ptid): ... this.
18910 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18911 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18912 ptid_get_lwp (current_ptid) instead of current_tid.
18913 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18914 instead of current_tid. Use find_process_pid to verify pid
18915 argument is valid. Pass proper argument to remove_process.
18916 (spu_thread_alive): Compare current_ptid instead of current_tid.
18917 (spu_resume): Likewise.
18919 2009-04-02 Pedro Alves <pedro@codesourcery.com>
18921 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18924 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18926 Implement the multiprocess extensions, and add linux multiprocess
18929 * server.h (ULONGEST): Declare.
18930 (struct ptid, ptid_t): New.
18931 (minus_one_ptid, null_ptid): Declare.
18932 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18933 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18934 (struct inferior_list_entry): Change `id' type from unsigned from
18936 (struct sym_cache, struct breakpoint, struct
18937 process_info_private): Forward declare.
18938 (struct process_info): Declare.
18939 (current_process): Declare.
18940 (all_processes): Declare.
18941 (initialize_inferiors): Declare.
18942 (add_thread): Adjust to use ptid_t.
18943 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18944 (add_process, remove_process, find_thread_pid): Declare.
18945 (find_inferior_id): Adjust to use ptid_t.
18946 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18947 (multi_process): Declare.
18948 (push_event): Adjust to use ptid_t.
18949 (read_ptid, write_ptid): Declare.
18950 (prepare_resume_reply): Adjust to use ptid_t.
18951 (clear_symbol_cache): Declare.
18952 * inferiors.c (all_processes): New.
18953 (null_ptid, minus_one_ptid): New.
18954 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18955 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18956 (add_thread): Change unsigned long to ptid. Remove gdb_id
18958 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18959 (gdb_id_to_thread): Rename to ...
18960 (find_thread_pid): ... this. Change unsigned long to ptid.
18961 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18962 (loaded_dll, pull_pid_from_list): Adjust.
18963 (add_process, remove_process, find_process_pid)
18964 (get_thread_process, current_process, initialize_inferiors): New.
18965 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18966 (struct target_waitstatus) <related_pid>: Ditto.
18967 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18968 return type to int.
18969 (struct target_ops) <join>: Add `pid' argument.
18970 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18971 (struct target_ops) <wait>: Add `ptid' field. Change return type
18973 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18974 (mywait): Add `ptid' argument. Change return type to ptid_t.
18975 (target_pid_to_str): Declare.
18976 * target.c (set_desired_inferior): Adjust to use ptids.
18977 (mywait): Add new `ptid' argument. Adjust.
18978 (target_pid_to_str): New.
18979 * mem-break.h (free_all_breakpoints): Declare.
18980 * mem-break.c (breakpoints): Delelete.
18981 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18982 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18983 to use per-process breakpoint list.
18984 (free_all_breakpoints): New.
18985 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18986 (symbol_cache, all_symbols_looked_up): Delete.
18988 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18990 (prepare_resume_reply): Change ptid argument's type from unsigned
18991 long to ptid_t. Adjust. Implement W;process and X;process.
18992 (free_sym_cache, clear_symbol_cache): New.
18993 (look_up_one_symbol): Adjust to per-process symbol cache. *
18994 * server.c (cont_thread, general_thread, step_thread): Change type
18996 (attached): Delete.
18997 (multi_process): New.
18998 (last_ptid): Change type to ptid_t.
18999 (struct vstop_notif) <ptid>: Change type to ptid_t.
19000 (queue_stop_reply, push_event): Change `ptid' argument's type to
19002 (discard_queued_stop_replies): Add `pid' argument.
19003 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19004 changes. Don't reference the `attached' global.
19005 (attach_inferior): Adjust to mywait interface changes.
19006 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19007 features. Handle and report "multiprocess+". Handle
19009 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19011 (handle_v_kill): New.
19012 (handle_v_stopped): Adjust to use target_pid_to_str.
19013 (handle_v_requests): Allow multiple attaches and runs when
19014 multiprocess extensions are in effect. Handle "vKill".
19015 (myresume): Adjust to use ptids.
19016 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19017 (handle_status): Adjust to discard_queued_stop_replies interface
19019 (first_thread_of, kill_inferior_callback)
19020 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19021 (main): Call initialize_inferiors. Adjust to use ptids, killing
19022 and detaching from all inferiors. Handle multiprocess packet
19024 * linux-low.h: Include gdb_proc_service.h.
19025 (struct process_info_private): New.
19026 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19027 <lwpid_of>: Use ptid_get_lwp.
19028 (get_lwp_thread): Adjust.
19029 (struct lwp_info): Add `dead' member.
19030 (find_lwp_pid): Declare.
19031 * linux-low.c (thread_db_active): Delete.
19032 (new_inferior): Adjust comment.
19033 (inferior_pid): Delete.
19034 (linux_add_process): New.
19035 (handle_extended_wait): Adjust.
19036 (add_lwp): Change unsigned long to ptid.
19037 (linux_create_inferior): Add process to processes table. Adjust
19038 to use ptids. Don't set new_inferior here.
19039 (linux_attach_lwp): Rename to ...
19040 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19041 it. Adjust to use ptids.
19042 (linux_attach_lwp): New.
19043 (linux_attach): Add process to processes table. Don't set
19045 (struct counter): New.
19046 (second_thread_of_pid_p, last_thread_of_process_p): New.
19047 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19048 multiple processes.
19049 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19050 processes. Remove process from process table.
19051 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19052 to multiple processes.
19053 (any_thread_of): New.
19054 (linux_detach): Add `pid' argument, and handle it. Remove process
19055 from processes table.
19056 (linux_join): Add `pid' argument. Handle it.
19057 (linux_thread_alive): Change unsighed long argument to ptid_t.
19058 Consider dead lwps as not being alive.
19059 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19060 threads we're not interested in.
19061 (same_lwp, find_lwp_pid): New.
19062 (linux_wait_for_lwp): Change `pid' argument's type from int to
19064 (linux_wait_for_event): Rename to ...
19065 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19066 from int to ptid_t. Adjust.
19067 (linux_wait_for_event): New.
19068 (linux_wait_1): Add `ptid' argument. Change return type to
19069 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19070 that exit from the process table.
19071 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19073 (mark_lwp_dead): New.
19074 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19075 stopping all threads, mark its main lwp as dead.
19076 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19078 (fetch_register, usr_store_inferior_registers)
19079 (regsets_fetch_inferior_registers)
19080 (regsets_store_inferior_registers, linux_read_memory)
19081 (linux_write_memory): Inline `inferior_pid'.
19082 (linux_look_up_symbols): Adjust to use per-process
19083 `thread_db_active'.
19084 (linux_request_interrupt): Adjust to use ptids.
19085 (linux_read_auxv): Inline `inferior_pid'.
19086 (initialize_low): Don't reference thread_db_active.
19087 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19088 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19089 (ps_getpid): Return the pid of the current inferior.
19090 * thread-db.c (proc_handle, thread_agent): Delete.
19091 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19093 (find_one_thread): Change argument type to ptid_t. Adjust to
19095 (maybe_attach_thread): Adjust to per-process data and ptids.
19096 (thread_db_find_new_threads): Ditto.
19097 (thread_db_init): Ditto.
19098 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19099 processes table. Adjust to use ptids.
19100 (spu_kill, spu_detach): Adjust interface. Remove process from
19102 (spu_join, spu_thread_alive): Adjust interface.
19103 (spu_wait): Adjust interface. Remove process from processes
19104 table. Adjust to use ptids.
19105 * win32-low.c (current_inferior_tid): Delete.
19106 (current_inferior_ptid): New.
19107 (debug_event_ptid): New.
19108 (thread_rec): Take a ptid. Adjust.
19109 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19110 (child_delete_thread): Ditto.
19111 (do_initial_child_stuff): Add `attached' argument. Add process to
19113 (child_fetch_inferior_registers, child_store_inferior_registers):
19115 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19116 (win32_attach): Pass 1 to do_initial_child_stuff.
19117 (win32_kill): Adjust interface. Remove process from processes
19119 (win32_detach): Ditto.
19120 (win32_join): Adjust interface.
19121 (win32_thread_alive): Take a ptid.
19122 (win32_resume): Adjust to use ptids.
19123 (get_child_debug_event): Ditto.
19124 (win32_wait): Adjust interface. Remove exiting process from
19127 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19129 Non-stop mode support.
19131 * server.h (non_stop): Declare.
19132 (gdb_client_data, handler_func): Declare.
19133 (delete_file_handler, add_file_handler, start_event_loop):
19135 (handle_serial_event, handle_target_event, push_event)
19136 (putpkt_notif): Declare.
19137 * target.h (enum resume_kind): New.
19138 (struct thread_resume): Replace `step' field by `kind' field.
19139 (TARGET_WNOHANG): Define.
19140 (struct target_ops) <wait>: Add `options' argument.
19141 <supports_non_stop, async, start_non_stop>: New fields.
19142 (target_supports_non_stop, target_async): New.
19143 (start_non_stop): Declare.
19144 (mywait): Add `options' argument.
19145 * target.c (mywait): Add `options' argument. Print child exit
19146 notifications here.
19147 (start_non_stop): New.
19148 * server.c (non_stop, own_buf, mem_buf): New globals.
19149 (struct vstop_notif): New.
19150 (notif_queue): New global.
19151 (queue_stop_reply, push_event, discard_queued_stop_replies)
19152 (send_next_stop_reply): New.
19153 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19155 (attach_inferior): In non-stop mode, don't wait for the target
19157 (handle_general_set): Handle QNonStop.
19158 (handle_query): When handling qC, return the current general
19159 thread, instead of the first thread of the list.
19160 (handle_query): If the backend supports non-stop mode, include
19161 QNonStop+ in the qSupported query response.
19162 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19164 (handle_v_attach, handle_v_run): Handle non-stop mode.
19165 (handle_v_stopped): New.
19166 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19167 (myresume): Adjust to use resume_kind. Handle non-stop.
19168 (queue_stop_reply_callback): New.
19169 (handle_status): Handle non-stop mode.
19170 (main): Clear non_stop flag on reconnection. Use the event-loop.
19171 Refactor serial protocol handling from here ...
19172 (process_serial_event): ... to this new function. When GDB
19173 selects any thread, select one here. In non-stop mode, wait until
19174 GDB acks all pending events before exiting.
19175 (handle_serial_event, handle_target_event): New.
19176 * remote-utils.c (remote_open): Install remote_desc in the event
19178 (remote_close): Remove remote_desc from the event loop.
19179 (putpkt_binary): Rename to...
19180 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19181 (putpkt_binary): New as wrapper around putpkt_binary_1.
19182 (putpkt_notif): New.
19183 (prepare_resume_reply): In non-stop mode, don't change the
19185 * event-loop.c: New.
19186 * Makefile.in (OBJ): Add event-loop.o.
19187 (event-loop.o): New rule.
19189 * linux-low.h (pid_of): Moved here.
19191 (get_lwp_thread): Use lwpid_of.
19192 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19193 * linux-low.c (pid_of): Delete.
19194 (inferior_pid): Use lwpid_of.
19195 (linux_event_pipe): New.
19196 (target_is_async_p): New.
19198 (handle_extended_wait): Use lwpid_of.
19199 (add_lwp): Don't set lwpid field.
19200 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19201 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19202 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19203 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19204 first. Adjust to linux_wait_for_event interface changes. Use
19206 (linux_detach): Don't delete the main lwp here.
19207 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19208 (status_pending_p): Don't consider explicitly suspended lwps.
19209 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19210 pointer. Add OPTIONS argument. Change return type to int. Use
19211 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19212 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19213 pointer. Add status pointer argument. Return a pid instead of a
19214 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19215 changes. In non-stop mode, don't switch to a random thread.
19216 (linux_wait): Rename to...
19217 (linux_wait_1): ... this. Add target_options argument, and handle
19218 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19219 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19220 clean exit and signal exit code. Don't stop all threads in
19221 non-stop mode. In all-stop mode, only stop all threads when
19222 reporting a stop to GDB. Handle explicit thread stop requests.
19223 (async_file_flush, async_file_mark): New.
19225 (send_sigstop): Use lwpid_of.
19226 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19227 interface changes. In non-stop mode, don't switch to a random
19229 (linux_resume_one_lwp): Use lwpid_of.
19230 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19231 (linux_resume_one_thread): ... this. Handle resume_stop. In
19232 non-stop mode, don't look for pending flag in all threads.
19233 (resume_status_pending_p): Don't consider explicitly suspended
19235 (my_waitpid): Reimplement. Emulate __WALL.
19236 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19238 (sigchld_handler, linux_supports_non_stop, linux_async)
19239 (linux_start_non_stop): New.
19240 (linux_target_ops): Register linux_supports_non_stop, linux_async
19241 and linux_start_non_stop.
19242 (initialize_low): Install SIGCHLD handler.
19243 * thread-db.c (thread_db_create_event, find_one_thread)
19244 (thread_db_get_tls_address): Use lwpid_of.
19245 * win32-low.c (win32_detach): Adjust to use resume_kind.
19246 (win32_wait): Add `options' argument.
19247 * spu-low.c (spu_resume): Adjust to use resume_kind.
19248 (spu_wait): Add `options' argument.
19250 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19252 Decouple target code from remote protocol.
19254 * target.h (enum target_waitkind): New.
19255 (struct target_waitstatus): New.
19256 (struct target_ops) <wait>: Return an unsigned long. Take a
19257 target_waitstatus pointer instead of a char pointer.
19258 (mywait): Likewise.
19259 * target.c (mywait): Change prototype to return an unsigned long.
19260 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19261 * server.h (thread_from_wait, old_thread_from_wait): Delete
19263 (prepare_resume_reply): Change prototype to take a
19265 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19266 (last_status, last_ptid): New.
19267 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19268 pid instead of a signal.
19269 (attach_inferior): Remove "status" and "signal" parameters.
19271 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19273 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19274 (handle_v_requests, myresume): Remove "status" and "signal"
19275 parameters. Adjust.
19276 (handle_status): New.
19277 (main): Delete local `status'. Adjust.
19278 * remote-utils.c: Include target.h.
19279 (prepare_resume_reply): Change prototype to take a
19280 target_waitstatus. Adjust.
19282 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19284 * spu-low.c (spu_wait): Adjust.
19285 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19287 (win32_wait): Adjust.
19289 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19291 * target.h (struct thread_resume): Delete leave_stopped member.
19292 (struct target_ops): Add a `n' argument to the `resume' callback.
19293 * server.c (start_inferior): Adjust.
19294 (handle_v_cont, myresume): Adjust.
19295 * linux-low.c (check_removed_breakpoint): Adjust to resume
19296 interface change, and to removed leave_stopped field.
19297 (resume_ptr): Delete.
19298 (struct thread_resume_array): New.
19299 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19300 resume interface change.
19301 (linux_continue_one_thread, linux_queue_one_thread)
19302 (resume_status_pending_p): Check if the resume field is NULL
19303 instead of checking the leave_stopped member.
19304 (linux_resume): Adjust to the target resume interface change.
19305 * spu-low.c (spu_resume): Adjust to the target resume interface
19307 * win32-low.c (win32_detach, win32_resume): Ditto.
19309 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19311 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19313 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19315 (linux_continue_one_thread): Only preserve the stepping flag if
19316 there's a pending breakpoint.
19318 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19320 * server.c (main): After the inferior having exited, call
19321 remote_close before exiting gdbserver.
19323 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19325 Fix size of FPSCR in Power 7 processors.
19326 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19327 (PPC_FEATURE_HAS_DFP): New #define.
19328 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19331 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19333 * server.c (handle_query) Whitespace and formatting.
19335 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19337 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19338 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19339 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19340 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19341 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19342 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19343 Makefile.in, configure.ac: Fix whitespace throughout.
19344 * configure: Regenerate.
19346 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19348 * inferiors.c (find_inferior): Make it safe for the callback
19349 function to delete the currently iterated inferior.
19351 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19353 * Makefile.in (linuw_low_h): Move higher.
19354 (thread-db.o): Depend on $(linux_low_h).
19356 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19358 Rename "process" to "lwp" throughout.
19360 * linux-low.c (all_processes): Rename to...
19361 (all_lwps): ... this.
19362 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19363 (add_process): Rename to ...
19364 (add_lwp): ... this. Adjust.
19365 (linux_create_inferior): Adjust.
19366 (linux_attach_lwp): Adjust.
19367 (linux_attach): Adjust.
19368 (linux_kill_one_process): Rename to ...
19369 (linux_kill_one_lwp): ... this. Adjust.
19370 (linux_kill): Adjust.
19371 (linux_detach_one_process): Rename to ...
19372 (linux_detach_one_lwp): ... this. Adjust.
19373 (linux_detach): Adjust.
19374 (check_removed_breakpoint): Adjust.
19375 (status_pending_p): Adjust.
19376 (linux_wait_for_process): Rename to ...
19377 (linux_wait_for_lwp): ... this. Adjust.
19378 (linux_wait_for_event): Adjust.
19379 (send_sigstop): Adjust.
19380 (wait_for_sigstop): Adjust.
19381 (stop_all_processes): Rename to ...
19382 (stop_all_lwps): ... this.
19383 (linux_resume_one_process): Rename to ...
19384 (linux_resume_one_lwp): ... this. Adjust.
19385 (linux_set_resume_request, linux_continue_one_thread)
19386 (linux_queue_one_thread, resume_status_pending_p)
19387 (usr_store_inferior_registers, regsets_store_inferior_registers)
19388 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19390 * linux-low.h (get_process): Rename to ...
19391 (get_lwp): ... this. Adjust.
19392 (get_thread_process): Rename to ...
19393 (get_thread_lwp): ... this. Adjust.
19394 (get_process_thread): Rename to ...
19395 (get_lwp_thread): ... this. Adjust.
19396 (struct process_info): Rename to ...
19397 (struct lwp_info): ... this.
19398 (all_processes): Rename to ...
19399 (all_lwps): ... this.
19400 * proc-service.c (ps_lgetregs): Adjust.
19401 * thread-db.c (thread_db_create_event, find_one_thread)
19402 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19404 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19406 * server.c (handle_query): Handle "qAttached".
19408 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19410 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19411 GPLv3, update license URL.
19413 2009-03-01 Doug Evans <dje@google.com>
19415 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19416 (server_h): Add gdb_signals.h.
19417 (signals.o): Update.
19418 * server.h (target_signal_from_host,target_signal_to_host_p)
19419 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19421 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19423 * remote-utils.c (getpkt): Also generate remote-debug
19424 information if noack_mode is set.
19426 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19428 * server.c (handle_query): Report qXfer:siginfo:read and
19429 qXfer:siginfo:write as supported and handle them.
19430 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19431 * linux-low.c (linux_xfer_siginfo): New.
19432 (linux_target_ops): Set it.
19434 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19436 * server.c (gdbserver_usage): Mention --remote-debug.
19437 (main): Accept '--remote-debug' switch.
19439 2009-01-18 Doug Evans <dje@google.com>
19441 * regcache.c (new_register_cache): No need to check result of xcalloc.
19442 * server.c (handle_search_memory): Back out calls to xmalloc,
19443 result is checked and error is returned to user upon failure.
19444 (handle_query): Ditto. Add more checks for result of malloc.
19445 (handle_v_cont): Check result of malloc, report error back to
19447 (handle_v_run): Ditto. Call freeargv.
19448 * server.h (freeargv): Declare.
19449 * utils.c (freeargv): New fn.
19451 2009-01-15 Doug Evans <dje@google.com>
19453 * gdbreplay.c (perror_with_name): Make arg const char *.
19454 * server.h (target_signal_to_name): Make return type const char *.
19455 * thread-db.c (thread_db_err_str): Make return type const char *.
19456 * utils.c (perror_with_name): Make arg const char *.
19458 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19460 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19461 when handling a EXIT_PROCESS_DEBUG_EVENT.
19463 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19465 * gdbreplay.c (gdbreplay_version): Update copyright year.
19466 * server.c (gdbserver_version): Likewise.
19468 2009-01-05 Doug Evans <dje@google.com>
19470 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19471 (handle_extended_wait): Improve comment.
19473 2008-12-13 Doug Evans <dje@google.com>
19475 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19476 * server.h (ATTR_MALLOC): New macro.
19477 (xmalloc,xcalloc,xstrdup): Declare.
19478 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19479 * inferiors.c: Ditto.
19480 * linux-low.c: Ditto.
19481 * mem-break.c: Ditto.
19482 * regcache.c: Ditto.
19483 * remote-utils.c: Ditto.
19486 * win32-low.c: Ditto.
19488 2008-12-12 Doug Evans <dje@google.com>
19490 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19491 in debugging printf.
19493 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19495 2008-12-09 Doug Evans <dje@google.com>
19497 * linux-low.h (struct process_info): Delete member tid, unused.
19498 * thread-db.c (find_one_thread): Update.
19499 (maybe_attach_thread): Update.
19501 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19503 * target.h (struct target_ops): Add qxfer_osdata member.
19504 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19506 (linux_qxfer_osdata): New functions.
19507 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19509 * server.c (handle_query): Handle "qXfer:osdata:read:".
19510 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19511 (buffer_xml_printf): New functions.
19512 * server.h (struct buffer): New.
19513 (buffer_grow_str, buffer_grow_str0): New macros.
19514 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19515 (buffer_xml_printf): Declare.
19517 2008-11-24 Doug Evans <dje@google.com>
19519 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19521 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19523 * server.c (handle_v_run): Always use the supplied argument list.
19525 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19527 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19528 (xtensa_regmap_table): Add entry for scompare1.
19530 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19532 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19533 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19534 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19535 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19536 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19537 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19538 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19539 XML target descriptions.
19540 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19541 when inferior is running on an ISA 2.05 or later processor. Add
19542 special case to return offset for full 64-bit slot of FPSCR when
19545 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19547 * Makefile.in (SFILES, clean): Added sparc64 files.
19548 (reg-sparc64.o, reg-sparc64.c): New.
19549 * configure.srv (sparc*-*-linux*): New configuration.
19550 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19551 syscall arguments for SPARC.
19552 (regsets_store_inferior_registers): Likewise.
19553 * linux-sparc-low.c: New file.
19555 2008-10-21 Doug Evans <dje@google.com>
19557 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19558 (READLINE_DIR,READLINE_DEP): Delete.
19559 (INTERNAL_CFLAGS): Update.
19560 (LINTFLAGS): Update.
19562 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19564 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19565 whole argv from the last run, not just argv[0].
19567 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19569 * regcache.c (new_register_cache): Return NULL if the register
19570 cache size isn't known yet.
19571 (free_register_cache): Avoid dereferencing a NULL regcache.
19573 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19575 * configure.srv: Merge MIPS and MIPS64.
19577 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19579 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19581 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19583 * Makefile.in: Add required vsx dependencies.
19585 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19586 Declare init_registers_powerpc_vsx32l.
19587 Declare init_registers_powerpc_vsx64l.
19588 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19589 (ppc_arch_setup): Check for VSX in hwcap.
19590 (ppc_fill_vsxregset): New function.
19591 (ppc_store_vsxregset): New function.
19592 Add new VSX entry in regset_info target_regsets.
19594 * configure.srv: Add new VSX dependencies.
19596 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19598 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19599 (remote_open): Set or clear transport_is_reliable.
19600 (putpkt_binary): Don't expect acks in noack mode.
19601 (getpkt): Don't send ack/nac in noack mode.
19602 * server.c (handle_general_set): Handle QStartNoAckMode.
19603 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19605 (main): Reset noack_mode on every connection.
19606 * server.h (noack_mode): Declare.
19608 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19610 * Makefile.in (GDBREPLAY_OBS): New variable.
19611 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19613 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19614 Daniel Jacobowitz <dan@codesourcery.com>
19616 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19617 (usr_store_inferior_registers): Likewise.
19618 (regsets_store_inferior_registers): Likewise.
19620 2008-07-31 Rolf Jansen <rj@surtec.com>
19621 Pedro Alves <pedro@codesourcery.com>
19623 * configure.ac: Check for memmem declaration.
19624 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19625 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19626 (disable_packet_qfThreadInfo): Unconditionally compile.
19627 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19628 * configure, config.in: Regenerate.
19630 2008-07-28 Doug Kwan <dougkwan@google.com>
19632 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19633 (linux_write_memory): Remove declaration of errno.
19635 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19637 * linux-low.c (handle_extended_wait): Do not use "status"
19638 variable uninitialized.
19640 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19642 * server.c (handle_v_attach): Inhibit reporting dll changes.
19644 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19646 * remote-utils.c (prepare_resume_reply): If requested, don't
19647 output "thread:TID" in the T stop reply.
19649 * server.c (disable_packet_vCont, disable_packet_Tthread)
19650 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19651 (handle_query): If requested, disable support for qC, qfThreadInfo
19653 (handle_v_requests): If requested, disable support for vCont.
19654 (gdbserver_show_disableable): New.
19655 (main): Handle --disable-packet and --disable-packet=LIST.
19657 * server.h (disable_packet_vCont, disable_packet_Tthread)
19658 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19660 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19662 * server.c (gdbserver_usage): Mention --version.
19664 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19666 * Makefile.in (gdbreplay.o): New rule.
19668 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19670 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19671 message, not gdbserver.
19673 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19674 Nathan Sidwell <nathan@codesourcery.com>
19675 Joseph Myers <joseph@codesourcery.com>
19677 * acinclude.m4: Include ../../config/acx.m4.
19678 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19679 * configure, config.in: Regenerate.
19680 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19681 * server.c (gdbserver_version): Print PKGVERSION.
19682 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19683 (main): Adjust gdbserver_usage calls.
19684 * gdbreplay.c (version, host_name): Add declarations.
19685 (gdbreplay_version, gdbreplay_usage): New.
19686 (main): Accept --version and --help options.
19688 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19690 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19691 (arm_breakpoint_at): Handle Thumb.
19692 (the_low_target): Add comment.
19694 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19696 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19698 2008-05-09 Doug Evans <dje@google.com>
19700 * server.h (decode_search_memory_packet): Declare.
19701 * remote-utils.c (decode_search_memory_packet): New fn.
19702 * server.c (handle_search_memory_1): New fn.
19703 (handle_search_memory): New fn.
19704 (handle_query): Process qSearch:memory packets.
19706 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19708 * regcache.c (registers_length): Remove.
19709 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19710 full register packet.
19711 * regcache.h (registers_length): Remove prototype.
19712 * server.h (PBUFSIZ): Define to 16384.
19714 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19716 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19717 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19718 powerpc-64l.o, and powerpc-altivec64l.o.
19719 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19720 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19721 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19722 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19723 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19726 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19727 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19728 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19729 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19730 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19731 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19732 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19733 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19734 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19735 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19738 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19739 (init_registers_powerpc_32l): ... this new prototype.
19740 (init_registers_powerpc_32): Remove, replace by ...
19741 (init_registers_powerpc_altivec32l): ... this new prototype.
19742 (init_registers_powerpc_e500): Remove, replace by ...
19743 (init_registers_powerpc_e500l): ... this new prototype.
19744 (init_registers_ppc64): Remove, replace by ...
19745 (init_registers_powerpc_64l): ... this new prototype.
19746 (init_registers_powerpc_64): Remove, replace by ...
19747 (init_registers_powerpc_altivec64l): ... this new prototype.
19748 (ppc_num_regs): Set to 73.
19749 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19750 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19751 (ppc_cannot_store_register): Handle orig_r3 and trap.
19752 (ppc_arch_setup): Update init_registers_... calls.
19753 (ppc_fill_gregset): Handle orig_r3 and trap.
19755 * inferiors.c (clear_inferiors): Reset current_inferior.
19757 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19759 * acinclude.m4: Add override.m4.
19760 * configure: Regenerate.
19762 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19764 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19765 initial call to init_register_ppc64.
19767 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19769 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19770 single powerpc*-*-linux* case.
19771 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19773 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19775 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19776 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19778 * linux-ppc-low.c: Include <elf.h>.
19779 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19780 (ppc_hwcap): New global variable.
19781 (ppc_regmap): Remove __SPE__ #ifdef sections.
19782 (ppc_regmap_e500): New global variable.
19783 (ppc_cannot_store_register): Update __SPE__ special case.
19784 (ppc_get_hwcap): New function.
19785 (ppc_arch_setup): Use it to determine whether inferior supports
19786 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19787 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19788 Do not access registers if target does not support AltiVec.
19789 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19790 Do not access registers if target does not support SPE.
19791 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19793 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19795 * linux-low.c (disabled_regsets, num_regsets): New.
19796 (use_regsets_p): Delete.
19797 (linux_wait_for_process): Clear disabled_regsets.
19798 (regsets_fetch_inferior_registers): Check and set it.
19799 (regsets_store_inferior_registers): Likewise.
19800 (linux_fetch_registers, linux_store_registers): Do not use
19802 (initialize_low): Allocate disabled_regsets.
19804 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19806 * Makefile.in (LIBOBJS): New.
19807 (OBS): Use LIBOBJS.
19808 (memmem.o): New rule.
19809 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19810 * configure: Regenerated.
19812 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19814 * server.c (handle_query): Never return "unsupported" for
19815 qXfer:features:read queries.
19817 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19819 * server.c (get_features_xml): Fix inverted condition.
19820 (handle_query): Always support qXfer:feature:read.
19822 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19824 * server.c (wrapper_argv): New.
19825 (start_inferior): Handle wrapper_argv. If set, expect an extra
19827 (gdbserver_usage): Document --wrapper.
19828 (main): Parse --wrapper.
19830 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19832 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19833 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19834 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19835 (ppc_set_pc): Likewise.
19836 (ppc_arch_setup): New function.
19837 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19838 of collect_register.
19839 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19841 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19843 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19844 instead of linux-ppc64-low.o.
19845 * linux-ppc64-low.c: Remove file.
19846 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19847 (linux-ppc64-low.o): Remove rule.
19849 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19850 (init_registers_powerpc_64): Likewise.
19851 (ppc_regmap): Conditionally define depending on __powerpc64__.
19852 (ppc_cannot_store_register): Do not special-case "fpscr" when
19853 compiled on __powerpc64__.
19854 (ppc_collect_ptrace_register): New function.
19855 (ppc_supply_ptrace_register): New function.
19856 (ppc_breakpoint): Change type to "unsigned int".
19857 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19858 (the_low_target): Conditionally provide initializers for the
19859 arch_setup member depending on __powerpc64__. Install
19860 collect_ptrace_register and supply_ptrace_register members.
19862 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19864 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19865 * server.c (gdbserver_xmltarget): Define.
19866 (get_features_xml): Use it to replace "target.xml" and arch_string.
19868 * configure.srv: Remove srv_xmltarget. Add XML files that were
19869 mentioned there to srv_xmlfiles instead. Remove conditional tests
19870 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19871 srv_xmlfiles and srv_regobj to include all possible choices.
19872 * configure.ac (srv_xmltarget): Remove.
19873 (srv_xmlfiles): Do not add "target.xml".
19874 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19875 checks for supplementary target information.
19876 * configure: Regenerate.
19877 * Makefile.in (XML_TARGET): Remove.
19878 (target.xml): Remove rule.
19879 (clean): Do not clean up target.xml.
19880 (.PRECIOUS): Do not mention target.xml.
19882 * target.h (struct target_ops): Remove arch_string member.
19883 * linux-low.c (linux_arch_string): Remove.
19884 (linux_target_ops): Remove arch_string initializer.
19885 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19886 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19887 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19888 * spu-low.c (spu_arch_string): Remove.
19889 (spu_target_ops): Remove arch_string initializer.
19890 * win32-low.c (win32_arch_string): Remove.
19891 (win32_target_ops): Remove arch_string initializer.
19892 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19893 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19894 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19896 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19898 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19899 by collect_ptrace_register and supply_ptrace_register hooks.
19900 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19901 instead of checking for the_low_target.left_pad_xfer.
19902 (usr_store_inferior_registers): Use collect_ptrace_register callback
19903 instead of checking for the_low_target.left_pad_xfer.
19905 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19906 (s390_supply_ptrace_register): Likewise.
19907 (s390_fill_gregset): Call s390_collect_ptrace_register.
19908 (the_low_target): Update.
19910 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19911 (ppc_supply_ptrace_register): Likewise.
19912 (the_low_target): Update.
19914 * linux-i386-low.c (the_low_target): Update.
19915 * linux-x86-64-low.c (the_low_target): Update.
19917 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19919 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19920 reg-s390.o and reg-s390x.o.
19922 * linux-low.c (new_inferior): New global variable.
19923 (linux_create_inferior, linux_attach): Set it.
19924 (linux_wait_for_process): Call the_low_target.arch_setup after the
19925 target has stopped for the first time.
19926 (initialize_low): Do not call the_low_target.arch_setup.
19928 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19929 (s390_set_pc): Likewise.
19930 (s390_arch_setup): New function.
19931 (the_low_target): Use s390_arch_setup as arch_setup routine.
19933 * regcache.c (realloc_register_cache): New function.
19934 (set_register_cache): Call it for each existing regcache.
19936 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19938 * server.h (init_registers): Remove prototype.
19940 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19941 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19942 instead of init_registers ().
19943 * linux-arm-low.c (init_registers_arm): Add prototype.
19944 (init_registers_arm_with_iwmmxt): Likewise.
19945 (the_low_target): Add initializer for arch_setup field.
19946 * linux-cris-low.c (init_registers_cris): Add prototype.
19947 (the_low_target): Add initializer for arch_setup field.
19948 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19949 (the_low_target): Add initializer for arch_setup field.
19950 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19951 (the_low_target): Add initializer for arch_setup field.
19952 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19953 (the_low_target): Add initializer for arch_setup field.
19954 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19955 (the_low_target): Add initializer for arch_setup field.
19956 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19957 (the_low_target): Add initializer for arch_setup field.
19958 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19959 (init_registers_mips64_linux): Likewise.
19960 (the_low_target): Add initializer for arch_setup field.
19961 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19962 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19963 (the_low_target): Add initializer for arch_setup field.
19964 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19965 (init_registers_powerpc_64): Likewise.
19966 (the_low_target): Add initializer for arch_setup field.
19967 * linux-s390-low.c (init_registers_s390): Add prototype.
19968 (init_registers_s390x): Likewise.
19969 (the_low_target): Add initializer for arch_setup field.
19970 * linux-sh-low.c (init_registers_sh): Add prototype.
19971 (the_low_target): Add initializer for arch_setup field.
19972 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19973 (the_low_target): Add initializer for arch_setup field.
19974 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19975 (the_low_target): Add initializer for arch_setup field.
19977 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19978 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19979 instead of init_registers ().
19980 * win32-arm-low.c (init_registers_arm): Add prototype.
19981 (the_low_target): Add initializer for arch_setup field.
19982 * win32-i386-low.c (init_registers_i386): Add prototype.
19983 (the_low_target): Add initializer for arch_setup field.
19985 * spu-low.c (init_registers_spu): Add prototype.
19986 (initialize_low): Call initialie_registers_spu () instead of
19987 initialize_registers ().
19989 2008-02-19 Pedro Alves <pedro@codesourcery.com>
19991 * server.c (handle_v_requests): When handling the vRun and vAttach
19992 packets, if already debugging a process, don't kill it. Return an
19995 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19997 * server.c (handle_query): Correct length check.
19999 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20001 * win32-low.c (do_initial_child_stuff): Add process handle
20002 parameter. Set current_process_handle and current_process_id from the
20003 parameters. Clear globals.
20004 (win32_create_inferior): Don't set current_process_handle and
20005 current_process_id here. Instead pass them on the call to
20006 do_initial_child_stuff.
20007 (win32_attach): Likewise.
20008 (win32_clear_inferiors): New.
20009 (win32_kill): Don't close the current process handle or the
20010 current thread handle here. Instead call win32_clear_inferiors.
20011 (win32_detach): Don't open a new handle to the process. Call
20012 win32_clear_inferiors.
20013 (win32_join): Don't rely on current_process_handle; open a new
20014 handle using the process id.
20015 (win32_wait): Call win32_clear_inferiors when the inferior process
20018 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20020 * server.c (monitor_show_help): Add "exit".
20022 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20024 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20025 (clean): Add reg-xtensa.c.
20026 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20027 * configure.srv (xtensa*-*-linux*) New target.
20028 * linux-xtensa-low.c: New.
20029 * xtensa-xtregs.c: New.
20031 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20033 * hostio.c: Don't include errno.h.
20034 (errno_to_fileio_errno): Move to hostio-errno.
20035 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20036 error number outputting to the target->hostio_last_error callback.
20037 (hostio_packet_error): Use FILEIO_EINVAL directly.
20038 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20039 calls to hostio_error.
20040 * hostio-errno.c: New.
20041 * server.h (hostio_last_error_from_errno): Declare.
20042 * target.h (target_ops): Add hostio_last_error member.
20043 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20044 as hostio_last_error handler.
20045 * spu-low.c (spu_target_ops): Likewise.
20046 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20047 (wince_hostio_last_error): New functions.
20048 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20049 as hostio_last_error handler.
20050 (win32_target_ops) [!_WIN32_WCE]: Register
20051 hostio_last_error_from_errno as hostio_last_error handler.
20052 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20053 (hostio-errno.o): New rule.
20054 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20055 * configure.srv (srv_hostio_err_objs): New variable. Default to
20057 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20058 * configure: Regenerate.
20060 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20062 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20063 (linux_kill, linux_detach): Clean up the process list.
20064 * remote-utils.c (remote_open): Improve port number parsing.
20065 (putpkt_binary, input_interrupt): Only send interrupts if the target
20067 * server.c (extended_protocol): Make static.
20068 (attached): Define earlier.
20069 (exit_requested, response_needed, program_argv): New variables.
20070 (target_running): New.
20071 (start_inferior): Clear attached here.
20072 (attach_inferior): Set attached here.
20073 (require_running): Define.
20074 (handle_query): Use require_running and target_running. Implement
20076 (handle_v_attach, handle_v_run): New.
20077 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20078 (gdbserver_usage): Update.
20079 (main): Redo argument parsing. Handle --debug and --multi. Handle
20080 --attach along with other options or after the port. Save
20081 program_argv. Support no initial program. Resynchronize
20082 communication with GDB after an error. Handle "monitor exit".
20083 Use require_running and target_running. Always allow the extended
20084 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20085 restart in extended mode.
20086 * README: Refer to the GDB manual. Update --attach usage.
20088 2007-12-20 Andreas Schwab <schwab@suse.de>
20090 * linux-low.c (STACK_SIZE): Define.
20091 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20092 (linux_test_for_tracefork): Likewise.
20094 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20096 * linux-low.c (linux_wait_for_event): Update messages. Do not
20097 reinsert auto-delete breakpoints.
20098 * mem-break.c (struct breakpoint): Change return type of handler to
20100 (set_breakpoint_at): Update handler type.
20101 (reinsert_breakpoint_handler): Return 1 instead of calling
20103 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20105 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20106 * mem-break.h (set_breakpoint_at): Update handler type.
20107 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20108 * win32-low.c (auto_delete_breakpoint): New.
20109 (get_child_debug_event): Use it.
20111 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20113 * configure.ac: Check for pread and pwrite.
20114 * hostio.c (handle_pread): Fall back to lseek and read.
20115 (handle_pwrite): Fall back to lseek and write.
20116 * config.in, configure: Regenerated.
20118 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20120 * server.c (myresume): Add own_buf argument.
20121 (main): Update calls.
20123 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20125 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20126 * remote-utils.c (remote_open): Do not call disable_async_io.
20127 (block_async_io): Delete.
20128 (unblock_async_io): Make static.
20129 (initialize_async_io): New.
20130 * server.c (handle_v_cont): Handle async I/O here.
20131 (myresume): Likewise. Move other common resume tasks here...
20132 (main): ... from here. Call initialize_async_io. Disable async
20133 I/O before the main loop.
20134 * server.h (initialize_async_io): Declare.
20135 (block_async_io, unblock_async_io): Delete prototypes.
20136 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20138 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20140 * remote-utils.c (readchar): Allow binary data in received messages.
20142 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20144 * win32-low.c (attaching): New global.
20145 (win32_create_inferior): Clear the `attaching' global.
20146 (win32_attach): Set the `attaching' global.
20147 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20148 attaching. Only set a breakpoint at the entry point if not
20151 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20153 * server.c (main): Don't report dll events on the initial
20154 connection on attaches.
20156 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20158 * server.c (main): Relax numerical bases supported for the pid of
20159 the --attach command line argument.
20161 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20163 * win32-low.c (win32_attach): Call OpenProcess before
20164 DebugActiveProcess, not after. Add last error output to error
20167 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20169 * win32-low.c (win32_get_thread_context)
20170 (win32_set_thread_context): New functions.
20171 (thread_rec): Use win32_get_thread_context.
20172 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20173 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20176 2007-12-03 Leo Zayas
20177 Pedro Alves <pedro_alves@portugalmail.pt>
20179 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20181 (child_add_thread): Minor cleanup.
20182 (child_continue): Resume artificially suspended threads before
20183 calling ContinueDebugEvent.
20184 (suspend_one_thread): New.
20185 (fake_breakpoint_event): New.
20186 (get_child_debug_event): Change return type to int. Check here if
20187 gdb sent an interrupt request. If a soft interrupt was requested,
20188 fake a breakpoint event. Return 0 if there is no event to handle,
20190 (win32_wait): Don't check here if gdb sent an interrupt request.
20191 Ensure there is a valid event to handle.
20192 (win32_request_interrupt): Add soft interruption method as last
20195 2007-12-03 Leo Zayas
20196 Pedro Alves <pedro_alves@portugalmail.pt>
20198 * win32-low.h (win32_thread_info): Add descriptions to the
20199 structure members. Replace `suspend_count' counter by a
20201 * win32-low.c (thread_rec): Update condition of when to get the
20202 context from the inferior. Rely on ContextFlags being set if it
20203 has already been retrieved. Only suspend the inferior thread if
20204 we haven't already. Warn if that fails.
20205 (continue_one_thread): s/suspend_count/suspended/. Only call
20206 ResumeThread once. Warn if that fails.
20208 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20210 * win32-low.c (win32_wait): Don't read from the inferior when it
20211 has already exited.
20213 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20215 * Makefile.in (win32_low_h): New variable.
20216 (win32-low.o): Add dependency on $(win32_low_h).
20217 (win32-arm-low.o, win32-i386-low.o): New rules.
20219 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20221 * hostio.c: Correct copyright year.
20223 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20225 * Makefile.in (OBS): Add hostio.o.
20226 (hostio.o): New rule.
20227 * server.h (handle_vFile): Declare.
20228 * hostio.c: New file.
20229 * server.c (handle_v_requests): Take packet_len and new_packet_len
20230 for binary packets. Call handle_vFile.
20231 (main): Update call to handle_v_requests.
20233 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20235 * linux-low.c: Include <sched.h>.
20237 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20239 * linux-low.c (linux_tracefork_grandchild): New.
20240 (linux_tracefork_child): Use clone.
20241 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20243 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20245 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20247 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20249 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20251 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20253 * inferiors.c (change_inferior_id): Delete.
20254 (add_pid_to_list, pull_pid_from_list): New.
20255 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20256 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20257 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20258 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20259 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20260 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20261 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20262 (using_threads): Always set to 1.
20263 (handle_extended_wait): New.
20264 (add_process): Do not set TID.
20265 (linux_create_inferior): Set must_set_ptrace_flags.
20266 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20267 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20268 (linux_thread_alive): Rename TID argument to LWPID.
20269 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20270 (linux_wait_for_event): Do not use TID or check using_threads. Update
20271 call to dead_thread_notify. Call handle_extended_wait.
20272 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20273 (send_sigstop): Delete sigstop_sent.
20274 (wait_for_sigstop): Avoid TID.
20275 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20276 (linux_test_for_tracefork): New.
20277 (linux_lookup_signals): Use thread_db_active and
20278 linux_supports_tracefork_flag.
20279 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20280 * linux-low.h (get_process_thread): Avoid TID.
20281 (struct process_ifo): Move thread_known and tid to the end. Remove
20283 (linux_attach_lwp, thread_db_init): Update prototypes.
20284 * server.h (change_inferior_id): Delete prototype.
20285 (add_pid_to_list, pull_pid_from_list): New prototypes.
20286 * thread-db.c (thread_db_use_events): New.
20287 (find_first_thread): Rename to...
20288 (find_one_thread): ...this. Update callers and messages. Do not
20289 call fatal. Check thread_db_use_events. Do not call
20290 change_inferior_id or new_thread_notify.
20291 (maybe_attach_thread): Update. Do not call new_thread_notify.
20292 (thread_db_init): Set thread_db_use_events. Check use_events.
20293 * utils.c (fatal, warning): Correct message prefix.
20295 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20297 * Makefile.in (clean): Remove new files.
20298 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20299 (powerpc-64.o, powerpc-64.c): New rules.
20300 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20301 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20303 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20305 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20306 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20307 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20308 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20309 (target_regsets): Add AltiVec and SPE register sets.
20310 * configure.ac: Check for AltiVec and SPE.
20311 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20312 (ppc_fill_vrregset, ppc_store_vrregset): New.
20313 (target_regsets): Add AltiVec register set.
20314 * configure: Regenerated.
20316 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20318 * linux-low.c (O_LARGEFILE): Define.
20319 (linux_read_memory): Use /proc/PID/mem.
20320 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20321 * configure, config.in: Regenerated.
20323 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20325 * linux-low.c (linux_wait_for_event): Do not pass signals while
20328 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20330 * win32-low.c (create_process): New.
20331 (win32_create_inferior): Use create_process instead of
20332 CreateProcess. If create_process failed retry appending an ".exe"
20333 suffix. Store the GetLastError result immediatelly after
20334 create_process calls and use it on the call to error.
20336 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20338 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20340 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20342 * configure.ac: Switch license to GPLv3.
20344 2007-08-01 Michael Snyder <msnyder@access-company.com>
20346 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20348 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20350 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20352 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20353 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20354 CloseToolhelp32Snapshot.
20355 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20356 CloseToolhelp32Snapshot.
20358 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20360 * server.c (main): Check for inferior exit before main loop.
20362 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20364 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20365 instead of on tmp_desc.
20367 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20368 Daniel Jacobowitz <dan@codesourcery.com>
20370 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20371 (add_thread): Minor cleanups.
20372 (clear_inferiors): Move lower in the file. Clear the DLL
20374 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20375 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20376 (xml_escape_text): New.
20377 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20379 (handle_v_cont): Report errors.
20380 (gdbserver_version): Update.
20381 (main): Correct size of own_buf. Do not report initial DLL events.
20382 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20383 (unloaded_dll, xml_escape_text): New.
20384 * win32-low.c (enum target_waitkind): Update comments.
20385 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20386 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20387 (win32_EnumProcessModules, win32_GetModuleInformation)
20388 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20389 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20390 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20391 (win32_Module32First, win32_Module32Next, load_toolhelp)
20392 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20393 (get_child_debug_event): Handle DLL events.
20394 (win32_wait): Likewise.
20396 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20398 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20399 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20401 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20403 * win32-low.c (handle_output_debug_string): Ignore event if not
20406 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20408 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20410 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20412 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20414 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20416 * inferiors.c (change_inferior_id): Add comment.
20417 * linux-low.c (check_removed_breakpoint): Add an early
20418 prototype. Improve debug output.
20419 (linux_attach): Doc update.
20420 (linux_detach_one_process, linux_detach): Clean up before releasing
20422 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20423 * linux-low.h (struct process_info): Doc improvement.
20424 * mem-break.c (delete_all_breakpoints): New.
20425 * mem-break.h (delete_all_breakpoints): New prototype.
20426 * thread-db.c (find_first_thread): New.
20427 (thread_db_create_event): Call it instead of
20428 thread_db_find_new_threads. Clean up unused variables.
20429 (maybe_attach_thread): Remove first thread handling.
20430 (thread_db_find_new_threads): Use find_first_thread.
20431 (thread_db_get_tls_address): Likewise.
20433 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20435 * thread-db.c (thread_db_find_new_threads): Add prototype.
20436 (thread_db_create_event): Check for the main thread before adding
20438 (maybe_attach_thread): Only enable event reporting if TID == 0.
20439 (thread_db_get_tls_address): Check for new threads.
20441 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20443 * linux-low.c (linux_create_inferior): Try execv before execvp.
20444 * spu-low.c (spu_create_inferior): Likewise.
20446 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20448 * linux-low.c (linux_create_inferior): Change execv to execvp.
20449 * spu-low.c (spu_create_inferior): Likewies.
20451 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20453 * Makefile.in (clean): Clean new files instead of deleted ones.
20454 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20455 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20457 * configure.srv: Specify XML files and new regformats for MIPS and
20459 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20460 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20461 an entry for the restart register.
20462 (mips_cannot_fetch_register, mips_cannot_store_register)
20463 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20464 register names to match the XML descriptions.
20465 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20466 restart register instead of $0.
20468 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20469 Markus Deuling <deuling@de.ibm.com>
20471 * remote-utils.c (decode_xfer_write): New function.
20472 * server.h (decode_xfer_write): Add prototype.
20473 * server.c (handle_query): Add PACKET_LEN argument. Support
20474 qXfer:spu:read and qXfer:spu:write packets.
20475 (main): Pass packet_len to handle_query.
20476 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20477 * target.h (target_ops): Add qxfer_spu.
20479 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20481 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20482 accessing non-seekable spufs files.
20484 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20486 * server.c (handle_query): Add reply for qC packet.
20488 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20489 Leo Zayas <lerele@champenstudios@com>
20491 * server.h (check_remote_input_interrupt_request): New function.
20492 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20493 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20494 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20495 (check_remote_input_interrupt_request): New function.
20496 * server.h (check_remote_input_interrupt_request): Declare.
20497 * win32-low.c (winapi_DebugBreakProcess,
20498 winapi_GenerateConsoleCtrlEvent): New typedefs.
20499 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20501 (win32_wait): Check for remote interrupt request
20502 with check_remote_input_interrupt_request.
20503 (win32_request_interrupt): New function.
20504 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20506 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20508 * win32-low.c (debug_registers_changed,
20509 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20510 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20511 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20512 (thread_rec): Get context using the low target.
20513 (child_add_thread): Call thread_added on the low target,
20514 which does the same thing.
20516 (do_initial_child_stuff): Remove debug registers references.
20517 Set context using the low target. Resume threads after
20518 setting the contexts.
20519 (child_continue): Remove dead variable. Remove debug
20520 registers references.
20521 (child_fetch_inferior_registers): Go through the low target.
20522 (do_child_store_inferior_registers): Remove.
20523 (child_store_inferior_registers): Go through the low target.
20524 (win32_resume): Remove debug registers references.
20525 Set context using the low target.
20526 (handle_exception): Change return type to void. Don't record
20527 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20528 first chance exception.
20529 (get_child_debug_event): Change return type to void. Remove
20530 goto loop. Always return after waiting for debug event.
20531 (win32_wait): Convert to switch statement. Handle spurious
20534 * win32-i386-low.c (debug_registers_changed,
20535 debug_registers_used): New.
20536 (initial_stuff): Rename to ...
20537 (i386_initial_stuff): ... this. Clear debug registers
20539 (store_debug_registers): Delete.
20540 (i386_get_thread_context): New.
20541 (load_debug_registers): Delete.
20542 (i386_set_thread_context): New.
20543 (i386_thread_added): New.
20544 (single_step): Rename to ...
20545 (i386_single_step): ... this.
20546 (do_fetch_inferior_registers): Rename to ...
20547 (i386_fetch_inferior_register): ... this.
20548 (i386_store_inferior_register): New.
20549 (the_low_target): Adapt to new interface.
20551 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20552 (arm_get_thread_context): New.
20553 (arm_set_thread_context): New.
20555 (do_fetch_inferior_registers): Rename to ...
20556 (arm_fetch_inferior_register): ... this.
20557 (arm_store_inferior_register): New.
20558 (arm_wince_breakpoint): Reimplement as unsigned long.
20559 (arm_wince_breakpoint_len): Define.
20560 (the_low_target): Adapt to new interface.
20562 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20563 load_debug_registers. Add get_thread_context, set_thread_context,
20564 thread_added and store_inferior_register. Rename
20565 fetch_inferior_registers to fetch_inferior_register.
20566 (regptr): Remove declaration.
20568 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20570 * linux-low.c (linux_detach): Change return type to int. Return 0.
20571 * spu-low.c (spu_detach): Likewise.
20573 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20575 * target.h (target_ops): Change return type of detach to int.
20577 (join_inferior): New.
20578 * server.c (main): Don't skip detach support on mingw32.
20579 If the inferior doesn't support detaching return error.
20580 Call join_inferior instead of using waitpid.
20581 * linux-low.c (linux_join): New.
20582 (linux_target_op): Add linux_join.
20583 * spu-low.c (spu_join): New.
20584 (spu_target_ops): Add spu_join.
20585 * win32-low.c (win32_detach): Adapt to new interface.
20586 Reopen current_process_handle before detaching. Issue a child
20587 resume before detaching.
20589 (win32_target_op): Add win32_join.
20591 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20593 * win32-low.c (win32-attach): Fix return value.
20594 * target.h (target_ops): Describe ATTACH return values.
20596 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20598 * win32-low.c (GETPROCADDRESS): Define.
20599 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20600 (winapi_DebugSetProcessKillOnExit): Likewise.
20601 (win32_create_inferior): Force usage of ansi CreateProcessA.
20602 (win32_attach): Use GETPROCADDRESS.
20603 (win32_detach): Likewise.
20605 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20607 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20609 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20611 * win32-low.c: Commit leftover changes from 2007-03-29.
20613 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20615 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20616 fields short instead of int. Add explicit padding.
20617 (i387_cache_to_fsave): Remove unnecessary casts.
20618 (i387_fsave_to_cache): Doc fix.
20619 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20621 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20623 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20624 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20626 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20628 * configure.srv (arm*-*-mingw32ce*): Move near the other
20631 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20633 * configure.ac: Add errno checking.
20634 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20635 sys/file.h and malloc.h.
20636 (AC_CHECK_DECLS): Add perror.
20637 (srv_mingwce): Handle.
20638 * configure.srv (i[34567]86-*-cygwin*): Add
20639 win32-i386-low.o to srv_tgtobj.
20640 (i[34567]86-*-mingw*): Likewise.
20641 (arm*-*-mingw32ce*): Add case.
20642 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20643 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20644 [__MINGW32CE__] (strerror): New function.
20645 [__MINGW32CE__] (errno): Define to GetLastError.
20646 [__MINGW32CE__] (COUNTOF): New macro.
20647 (remote_open): Remove extra close call.
20648 * mem-break.c (delete_breakpoint_at): New function.
20649 * mem-break.h (delete_breakpoint_at): Declare.
20650 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20651 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20652 [USE_WIN32API] (read, write): Add char* casts.
20653 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20654 * server.h: Include wincecompat.h on Windows CE.
20655 [HAVE_ERRNO_H]: Check.
20656 (perror): Declare if not declared.
20657 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20658 (perror_with_name): Remove errno declaration.
20659 * wincecompat.h: New.
20660 * wincecompat.c: New.
20661 * win32-low.h: New.
20662 * win32-arm-low.c: New.
20663 * win32-i386-low.c: New.
20664 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20665 (OUTMSG2): Make it safe.
20667 (COUNTOF): New macro.
20668 (NUM_REGS): Get it from the low target.
20669 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20670 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20671 (thread_rec): Let low target handle debug registers.
20672 (child_add_thread): Likewise.
20673 (child_init_thread_list): Likewise.
20674 (continue_one_thread): Likewise.
20676 (do_child_fetch_inferior_registers): Move to ...
20677 * win32-i386-low.c: ... here, and rename to ...
20678 (do_fetch_inferior_registers): ... this.
20679 * win32-low.c (child_fetch_inferior_registers):
20680 Go through the low target.
20681 (do_child_store_inferior_registers): Use regptr.
20682 (strwinerror): New function.
20683 (win32_create_inferior): Handle Windows CE.
20684 Use strwinerror instead of strerror on Windows error
20685 codes. Add program to the error output.
20686 Don't close the main thread handle on Windows CE.
20687 (win32_attach): Use coredll.dll on Windows CE.
20688 (win32_kill): Close current process and current
20690 (win32_detach): Use coredll.dll on Windows CE.
20691 (win32_resume): Let low target handle debug registers, and
20693 (handle_exception): Add/Remove initial breakpoint. Avoid
20694 non-existant WSTOPSIG on Windows CE.
20695 (win32_read_inferior_memory): Cast to remove warning.
20696 (win32_arch_string): Go through the low target.
20697 (initialize_low): Call set_breakpoint_data with the low
20698 target's breakpoint.
20699 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20700 FOP_REGNUM, mappings): Move to ...
20701 * win32-i386-low.c: ... here.
20702 * win32-low.c (win32_thread_info): Move to ...
20703 * win32-low.h: ... here.
20704 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20705 win32-arm-low.c and wincecompat.c.
20706 (all:): Add $EXEEXT.
20707 (install-only:): Likewise.
20708 (gdbserver:): Likewise.
20709 (gdbreplay:): Likewise.
20710 * config.in: Regenerate.
20711 * configure: Regenerate.
20713 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20715 * win32-low.c: Rename typedef thread_info to
20716 win32_thread_info throughout.
20718 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20720 * win32-i386-low.c: Rename to ...
20721 * win32-low.c: ... this.
20722 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20723 * Makefile.in: Likewise.
20725 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20727 * remote-utils.c (monitor_output): Constify msg parameter.
20728 * server.h (monitor_output): Likewise.
20729 * win32-i386-low.c (handle_output_debug_string): New.
20730 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20731 handle_output_debug_string.
20732 (get_child_debug_event): Likewise.
20734 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20736 * server.c (main): Correct strtoul check.
20738 2007-03-27 Jon Ringle <jon@ringle.org>
20740 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20742 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20744 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20746 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20748 * terminal.h: Check HAVE_SGTTY_H.
20750 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20752 * remote-utils.c (remote_open): Print out the assigned port number.
20754 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20756 * remote-utils.c (monitor_output): New function.
20757 * server.c (debug_threads): Define here.
20758 (monitor_show_help): New function.
20759 (handle_query): Handle qRcmd.
20760 (main): Do not handle 'd' packet.
20761 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20762 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20765 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20767 * Makefile.in (EXEEXT): New.
20768 (clean): Use $(EXEEXT).
20770 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20772 * target.h (target_ops): Rename send_signal to request_interrupt,
20773 and remove enum target_signal parameter.
20774 * linux-low.c (linux_request_interrupt): Rename from
20775 linux_send_signal, and always send SIGINT.
20776 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20777 and always send SIGINT.
20778 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20780 (input_interrupt): Likewise.
20782 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20784 * server.c (get_features_xml): Check if target implemented
20786 * win32-i386-low.c (win32_arch_string): New.
20787 (win32_target_ops): Add win32_arch_string as arch_string member.
20789 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20791 * spu-low.c (spu_arch_string): New.
20792 (spu_target_ops): Add spu_arch_string.
20794 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20796 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20797 * configure.ac: Do not check for terminal.h.
20798 * configure, config.in: Regenerated.
20800 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20802 * Makefile.in (OBS): Add $(XML_BUILTIN).
20803 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20805 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20806 (arm-with-iwmmxt.c): New.
20807 * config.in, configure: Regenerate.
20808 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20809 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20810 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20811 (arm*-*-linux*): Add iWMMXt and regset support.
20812 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20813 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20814 (arm_store_wmmxregset, target_regsets): New.
20815 * server.c (get_features_xml): Take annex argument. Check builtin
20817 (handle_query): Handle multiple annexes.
20819 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20821 * remote-utils.c [USE_WIN32API] (read, write): Define.
20822 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20825 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20827 * linux-i386-low.c (the_low_target): Set arch_string.
20828 * linux-x86-64-low.c (the_low_target): Likewise.
20829 * linux-low.c (linux_arch_string): New.
20830 (linux_target_ops): Add it.
20831 * linux-low.h (struct linux_target_ops): Add arch_string.
20832 * server.c (write_qxfer_response): Use const void * for DATA.
20833 (get_features_xml): New.
20834 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20835 * target.h (struct target_ops): Add arch_string method.
20837 2007-01-03 Denis Pilat <denis.pilat@st.com>
20838 Daniel Jacobowitz <dan@codesourcery.com>
20840 * linux-low.c (linux_kill): Handle being called with no threads.
20841 * win32-i386-low.c (win32_kill): Likewise.
20842 (get_child_debug_event): Clear current_process_handle.
20844 2006-12-30 Denis PILAT <denis.pilat@st.com>
20845 Daniel Jacobowitz <dan@codesourcery.com>
20847 * remote-utils.c (remote_open): Check the type of specified
20848 serial port devices before opening them.
20849 * server.c (main): Kill the inferior if an error occurs during
20850 the first remote_open.
20852 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20854 * README: Update supported targets.
20856 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20858 * Makefile.in (clean): Remove reg-mips64.c.
20859 (reg-mips64.c, reg-mips64.o): New rules.
20860 * configure.srv: Handle mips64. Include regset support for mips.
20861 * linux-mips-low.c (union mips_register): New.
20862 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20863 (mips_breakpoint, mips_breakpoint_at): Use int.
20864 (mips_collect_register, mips_supply_register)
20865 (mips_collect_register_32bit, mips_supply_register_32bit)
20866 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20867 (mips_store_fpregset, target_regsets): New.
20868 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20870 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20872 * configure.srv: Add target "spu*-*-*".
20873 * Makefile.in (clean): Remove reg-spu.c.
20874 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20875 * spu-low.c: New file.
20877 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20879 * configure.ac: Correct td_thr_tls_get_addr test.
20880 * configure: Regenerated.
20882 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20884 * linux-low.c (linux_wait_for_event): Reformat. Use the
20885 pass_signals array.
20886 * remote-utils.c (decode_address_to_semicolon): New.
20887 * server.c (pass_signals, handle_general_set): New.
20888 (handle_query): Mention QPassSignals for qSupported.
20889 (main): Call handle_general_set.
20890 * server.h (pass_signals, decode_address_to_semicolon): New.
20892 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20894 * server.c (handle_query): Correct error handling for read_auxv.
20896 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20898 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20899 and srv_linux_thread_db to yes.
20900 * linux-s390-low.c (s390_fill_gregset): New function.
20901 (target_regsets): Define data structure.
20903 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20905 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20906 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20907 * config.in, configure: Regenerated.
20908 * inferiors.c (gdb_id_to_thread): New function.
20909 (gdb_id_to_thread_id): Use it.
20910 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20911 * linux-low.h (struct process_info): Add th member.
20912 (thread_db_get_tls_address): New prototype.
20913 * remote-utils.c (decode_address): Make non-static.
20914 * server.c (handle_query): Handle qGetTLSAddr.
20915 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20916 * target.h (struct target_ops): Add get_tls_address.
20917 * thread-db.c (maybe_attach_thread): Save the thread handle.
20918 (thread_db_get_tls_address): New.
20920 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20922 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20923 (linux_resume_one_process): Take a siginfo_t *. Update all
20924 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20925 (struct pending_signals): Add a siginfo_t.
20926 (linux_wait_for_process): Always set last_status.
20927 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20928 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20929 * linux-low.h (struct process_info): Add last_status.
20931 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20933 * remote-utils.c (try_rle): New function.
20934 (putpkt_binary): Use it.
20936 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20938 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20939 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20940 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20941 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20942 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20945 2006-08-08 Richard Sandiford <richard@codesourcery.com>
20947 * server.c (terminal_fd): New variable.
20948 (old_foreground_pgrp): Likewise.
20949 (restore_old_foreground_pgrp): New function.
20950 (start_inferior): Record the terminal file descriptor in terminal_fd
20951 and its original foreground group in old_foreground_pgrp. Register
20952 restore_old_foreground_pgrp with atexit().
20954 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20956 * server.c (handle_query): Correct qPart to qXfer.
20958 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20960 * configure.ac: Check for more headers which are missing on
20961 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20962 * configure.srv: Add Cygwin and mingw32.
20963 * remote-utils.c: Don't include headers unconditionally which
20964 are missing on mingw32. Include <winsock.h> for mingw32.
20965 (remote_open): Adjust for mingw32 support. Flush
20966 standard error after writing to it.
20967 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20968 (unblock_async_io, enable_async_io, disable_async_io)
20969 (readchar, getpkt): Update for Winsock support.
20970 (prepare_resume_reply): Expect a protocol signal number.
20971 * server.c: Disable <sys/wait.h> on mingw32.
20972 (start_inferior): Adjust for mingw32 support. Flush
20973 standard error after writing to it.
20974 (attach_inferior): Likewise. Use protocol signal
20976 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20978 * win32-i386-low.c: New file.
20979 * Makefile.in (XM_CLIBS): Set.
20980 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20981 (win32-i386-low.o): New dependency rule.
20982 * linux-low.c (linux_wait): Use target signal numbers.
20983 * target.h (struct target_ops): Doc fix.
20984 * server.h (target_signal_to_name): New prototype.
20985 * gdbreplay.c: Don't include headers unconditionally which
20986 are missing on mingw32. Include <winsock.h> for mingw32.
20987 (remote_close, remote_open): Adjust for Winsock support.
20988 * configure, config.in: Regenerated.
20990 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20992 * server.c (decode_xfer_read, write_qxfer_response): New.
20993 (handle_query): Take a packet length argument. Handle
20994 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20995 the qSupported response.
20996 (main): Update call to handle_query.
20998 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21000 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21001 (putpkt_binary): Renamed from putpkt and adjusted for binary
21003 (putpkt): New wrapper for putpkt_binary.
21004 (readchar): Don't mask off the high bit.
21005 (decode_X_packet): New function.
21006 * server.c (main): Call putpkt_binary if a handler sets the packet
21007 length. Save the length of the incoming packet. Handle 'X'.
21008 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21010 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21012 * server.c (handle_query): Handle qSupported.
21014 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21016 * remote-utils.c (all_symbols_looked_up): New variable.
21017 (look_up_one_symbol): Check it.
21018 * server.h (look_up_one_symbol): New declaration.
21019 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21021 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21023 * Makefile.in (linux-arm-low.o): Update dependencies.
21024 * linux-arm-low.c: Include "gdb_proc_service.h".
21025 (PTRACE_GET_THREAD_AREA): Define.
21026 (ps_get_thread_area): New function.
21028 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21030 * configure.srv (m68k*-*-uclinux*): New target.
21031 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21032 (linux_resume_one_process): Remove extraneous cast.
21033 (linux_read_offsets): New.
21034 (linux_target_op): Add linux_read_offsets on mmuless systems.
21035 * server.c (handle_query): Add qOffsets logic.
21036 * target.h (struct target_ops): Add read_offsets.
21038 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21040 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21041 (PTRACE_GET_THREAD_AREA): Define.
21042 (ps_get_thread_area): New function.
21043 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21044 (linux-x86-64-low.o): Update.
21046 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21048 * configure.ac: Remove checks for prfpregset_t.
21049 * gdb_proc_service.h: New file.
21050 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21051 new "gdb_proc_service.h".
21052 * proc-service.c: Likewise.
21053 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21054 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21055 * Makefile.in (gdb_proc_service_h): Updated.
21056 * configure, config.in: Regenerated.
21058 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21060 * remote-utils.c (prepare_resume_reply): Move declaration
21061 of gdb_id_from_wait to the top of the block.
21063 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21065 * linux-low.c (regsets_store_inferior_registers): Read the regset
21066 from the target before filling it.
21068 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21070 * server.c (attach_inferior): Return SIGTRAP for a successful
21073 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21075 * Makefile.in (OBS): Add version.o.
21076 (STAGESTUFF): Delete.
21077 (version.o): Add dependencies.
21078 (version.c): Replace rule.
21079 (clean): Remove version.c.
21080 * server.c (gdbserver_version): New.
21081 (gdbserver_usage): Use printf.
21082 (main): Handle --version and --help.
21083 * server.h (version, host_name): Add declarations.
21085 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21097 * linux-x86-64-low.c:
21099 * linux-s390-low.c:
21100 * linux-ppc64-low.c:
21102 * linux-mips-low.c:
21103 * linux-m68k-low.c:
21104 * linux-m32r-low.c:
21107 * linux-ia64-low.c:
21108 * linux-i386-low.c:
21109 * linux-crisv32-low.c:
21121 * gdbserver.1: Add (C) after Copyright. Update the FSF
21124 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21126 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21127 (arm_breakpoint_at): Recognize both breakpoints.
21128 (the_low_target): Use the correct breakpoint instruction.
21130 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21132 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21133 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21134 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21135 (the_low_target): Update.
21137 2005-10-25 Andreas Schwab <schwab@suse.de>
21139 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21141 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21142 (ia64_num_regs): Reduce to 462.
21144 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21146 * acinclude.m4: Correct quoting.
21147 * aclocal.m4: Regenerated.
21149 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21150 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21151 (thread_db_init): Call thread_db_err_str.
21152 * configure.ac: Check for TD_VERSION.
21153 * config.in, configure: Regenerated.
21155 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21157 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21159 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21161 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21162 is not available. Define HAVE_PTRACE_GETREGS if it is.
21163 * config.in, configure: Regenerated.
21164 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21165 * linux-i386-low.c, linux-m68k-low.c: Update to use
21166 HAVE_PTRACE_GETREGS.
21167 * linux-low.c (regsets_fetch_inferior_registers)
21168 (regsets_store_inferior_registers): Only return 0 if we processed
21170 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21171 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21173 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21175 * inferiors.c (struct thread_info): Add gdb_id.
21176 (add_thread): Add gdb_id argument.
21177 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21178 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21179 calls to add_thread.
21180 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21181 * server.c (handle_query): Use thread_to_gdb_id.
21182 (handle_v_cont, main): Use gdb_id_to_thread_id.
21183 * server.h (add_thread): Update prototype.
21184 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21187 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21189 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21190 left-padded registers.
21191 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21192 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21194 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21196 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21197 * configure: Regenerate.
21198 * config.in: Regenerate.
21199 * server.h (NEED_DECLARATION_STRERROR):
21200 Replace with !HAVE_DECL_STRERROR.
21202 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21204 * linux-low.c (linux_wait, linux_send_signal): Don't test
21205 an unsigned long variable for > 0 if it could be MAX_ULONG.
21206 * server.c (myresume): Likewise.
21207 * target.c (set_desired_inferior): Likewise.
21209 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21211 * configure.ac: Simplify and improve check for socklen_t.
21212 * configure, config.in: Regenerate.
21214 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21216 * acconfig.h: Remove.
21217 * configure.ac: Add a test for socklen_t. Use three-argument
21218 AC_DEFINE throughout.
21219 * config.in: Regenerated using autoheader 2.59.
21220 * configure: Regenerated.
21222 * gdbreplay.c (socklen_t): Provide a default.
21223 (remote_open): Use socklen_t.
21224 * remote-utils.c (socklen_t): Provide a default.
21225 (remote_open): Use socklen_t.
21226 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21229 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21231 * linux-low.c (linux_read_memory, linux_write_memory)
21232 (linux_read_auxv): Likewise.
21233 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21234 (check_mem_write): Likewise.
21235 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21237 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21238 (registers_from_string, register_data): Likewise.
21239 * server.c (handle_query, main): Likewise.
21240 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21241 (decode_M_packet): Likewise.
21242 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21243 * target.h (struct target_ops): Update read_memory, write_memory,
21245 (read_inferior_memory, write_inferior_memory): Update.
21246 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21247 to unsigned char *.
21248 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21249 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21250 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21251 linux-s390-low.c, linux-sh-low.c: Update for changes in
21252 read_inferior_memory and the_low_target->breakpoint.
21254 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21256 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21257 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21258 * configure.srv: Add powerpc64-*-linux*.
21259 * linux-ppc64-low.c: New file.
21261 2005-05-23 Orjan Friberg <orjanf@axis.com>
21263 * linux-cris-low.c: New file with support for CRIS.
21264 * linux-crisv32-low.c: Ditto for CRISv32.
21265 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21266 (clean): Add reg-cris.c and reg-crisv32.c.
21267 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21268 reg-crisv32.o, and reg-crisv32.c to make rules.
21269 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21270 recognized targets.
21272 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21274 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21275 of sizeof (PTRACE_XFER_TYPE).
21276 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21278 2005-05-12 Orjan Friberg <orjanf@axis.com>
21280 * target.h (struct target_ops): Add insert_watchpoint,
21281 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21282 pointers for hardware watchpoint support.
21283 * linux-low.h (struct linux_target_ops): Ditto.
21284 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21285 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21286 to linux_target_ops.
21287 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21289 * server.c (main): Recognize 'Z' and 'z' packets.
21291 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21293 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21294 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21295 (the_low_target): Add new members.
21297 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21299 * proc-service.c (ps_lgetregs): Search all_processes instead of
21302 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21304 * server.c (start_inferior): Change return type to int.
21305 (attach_inferior): Change sigptr to int *.
21306 (handle_v_cont, handle_v_requests): Change signal to int *.
21307 (main): Change signal to int.
21309 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21311 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21312 * configure.srv: Add m32r*-*-linux*.
21313 * linux-m32r-low.c: New file.
21315 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21317 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21319 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21321 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21322 Take unsigned long arguments for PIDs.
21323 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21324 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21325 (wait_for_sigstop, linux_resume_one_process)
21326 (regsets_fetch_inferior_registers, linux_send_signal)
21327 (linux_read_auxv): Likewise. Update the types of variables holding
21328 PIDs. Update format string specifiers.
21329 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21330 * remote-utils.c (prepare_resume_reply): Likewise.
21331 * server.c (cont_thread, general_thread, step_thread)
21332 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21334 (handle_query): Update format specifiers.
21335 (handle_v_cont, main): Use strtoul for thread IDs.
21336 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21337 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21338 (general_thread, step_thread, thread_from_wait)
21339 (old_thread_from_wait): Update.
21340 * target.h (struct thread_resume): Use unsigned long for THREAD.
21341 (struct target_ops): Use unsigned long for arguments to attach and
21344 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21346 * acinclude.m4: Include bfd/bfd.m4 directly.
21347 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21348 <agriffis@toolchain.org>.
21349 * aclocal.m4, configure: Regenerated.
21351 2005-01-07 Andrew Cagney <cagney@gnu.org>
21353 * configure.ac: Rename configure.in, require autoconf 2.59.
21354 * configure: Re-generate.
21356 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21358 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21359 LIBS when finished.
21360 * aclocal.m4: Regenerated.
21361 * configure: Regenerated.
21363 2004-11-21 Andreas Schwab <schwab@suse.de>
21365 * linux-m68k-low.c (m68k_num_gregs): Define.
21366 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21367 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21368 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21369 (m68k_breakpoint_at): New. Add to the_low_target.
21371 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21372 srv_linux_thread_db to yes.
21374 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21376 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21377 (ARCH_SET_FS): Likewise.
21378 (ARCH_GET_FS): Likewise.
21379 (ARCH_GET_GS): Likewise.
21381 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21383 * linux-i386-low.c (ps_get_thread_area): New.
21384 * linux-x86-64-low.c (ps_get_thread_area): New.
21385 * linux-low.c: Include <sys/syscall.h>.
21386 (linux_kill_one_process): Don't kill the first thread here.
21387 (linux_kill): Kill the first thread here.
21388 (kill_lwp): New function.
21389 (send_sigstop, linux_send_signal): Use it.
21390 * proc-service.c: Clean up #ifdefs.
21391 (fpregset_info): Delete.
21392 (ps_lgetregs): Update and enable implementation.
21393 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21395 * remote-utils.c (struct sym_cache, symbol_cache): New.
21396 (input_interrupt): Print a clearer message.
21397 (async_io_enabled): New variable.
21398 (enable_async_io, disable_async_io): Use it. Update comments.
21399 (look_up_one_symbol): Use the symbol cache.
21400 * thread-db.c (thread_db_look_up_symbols): New function.
21401 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21403 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21405 * configure.in: Test for -rdynamic.
21406 * configure: Regenerated.
21407 * Makefile (INTERNAL_LDFLAGS): New.
21408 (gdbserver, gdbreplay): Use it.
21410 2004-09-02 Andrew Cagney <cagney@gnu.org>
21412 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21414 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21416 * linux-low.c (linux_wait): Clear all_processes list also.
21418 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21420 * linux-low.c: Include <errno.h>. Remove extern declaration of
21423 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21425 * gdbreplay.c, server.h, utils.c: Update copyright years.
21427 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21429 * server.c (main): Print child status or termination signal from
21430 variable 'signal', not 'sig'.
21432 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21434 * linux-low.c (linux_read_memory): Change return type to
21435 int. Check for and return error from ptrace().
21436 * target.c (read_inferior_memory): Change return type to int. Pass
21437 back return status from the_target->read_memory().
21438 * target.h (struct target_ops): Adapt *read_memory() prototype.
21440 (read_inferior_memory): Adapt prototype.
21441 * server.c (main): Return an error packet if
21442 read_inferior_memory() returns an error.
21444 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21446 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21447 Unify with other clean targets.
21449 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21451 * server.c (handle_v_cont): Call set_desired_inferior.
21453 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21455 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21457 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21459 * linux-low.c (linux_wait): Unblock async I/O.
21460 (linux_resume): Block and enable async I/O.
21461 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21462 * server.h (block_async_io, unblock_async_io): Add prototypes.
21464 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21466 * remote-utils.c (remote_open): Print a status notice after
21467 opening a TCP port.
21468 * server.c (attach_inferior): Print a status notice after
21471 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21473 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21475 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21477 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21479 * server.c, target.h: Update copyright years.
21481 2004-02-25 Roland McGrath <roland@redhat.com>
21483 * target.h (struct target_ops): New member `read_auxv'.
21484 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21485 * linux-low.c (linux_read_auxv): New function.
21486 (linux_target_ops): Initialize `read_auxv' member to that.
21488 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21490 Committed by Jim Blandy <jimb@redhat.com>.
21492 * linux-s390-low.c (s390_num_regs): Update.
21493 (s390_regmap): Remove control registers. Use __s390x__ predefine
21494 instead of GPR_SIZE to distiguish s390 and s390x targets.
21496 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21498 * linux-low.c: Update copyright year.
21499 (check_removed_breakpoint): Clear pending_is_breakpoint.
21500 (linux_set_resume_request, linux_queue_one_thread)
21501 (resume_status_pending_p): New functions.
21502 (linux_continue_one_thread): Use process->resume.
21503 (linux_resume): Only resume threads if there are no pending events.
21504 * linux-low.h (struct process_info): Add resume request
21507 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21509 * regcache.c (new_register_cache): Clear the allocated register
21510 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21512 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21514 * linux-low.c (linux_resume): Take a struct thread_resume *
21516 (linux_wait): Update call.
21517 (resume_ptr): New static variable.
21518 (linux_continue_one_thread): Renamed from
21519 linux_continue_one_process. Use resume_ptr.
21520 (linux_resume): Use linux_continue_one_thread.
21521 * server.c (handle_v_cont, handle_v_requests): New functions.
21522 (myresume): New function.
21523 (main): Handle 'v' case.
21524 * target.h (struct thread_resume): New type.
21525 (struct target_ops): Change argument of "resume" to struct
21527 (myresume): Delete macro.
21529 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21531 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21532 (uninstall): Support DESTDIR.
21534 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21536 * configure.srv: Add xscale*linux copy of arm*linux entry.
21538 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21540 * linux-arm-low.c (arm_reinsert_addr): New function.
21541 (the_low_target): Add arm_reinsert_addr.
21543 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21545 * mem-break.c: Remove whitespace at end of file.
21547 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21549 * configure.in: Check whether we need to prototype strerror.
21550 * server.h: Optionally prototype strerror.
21551 * gdbreplay.c (perror_with_name): Use strerror.
21552 * linux-low.c (linux_attach_lwp): Use strerror.
21553 * utils.c (perror_with_name): Use strerror.
21554 * config.in, configure: Regenerated.
21556 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21558 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21559 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21561 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21563 * Makefile.in (SFILES): Update.
21564 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21565 low-sun3.c: Remove files.
21567 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21569 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21570 (linux_detach_one_process, linux_detach): New functions.
21571 (linux_target_ops): Add linux_detach.
21572 * server.c (main): Handle 'D' packet.
21573 * target.h (struct target_ops): Add "detach" member.
21574 (detach_inferior): Define.
21576 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21578 From Kelley Cook <kelleycook@wideopenwest.com>:
21579 * configure.srv: Accept i[34567]86 variants.
21581 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21583 * linux-low.c (linux_wait_for_event): Correct comment typos.
21584 (linux_resume_one_process): Call check_removed_breakpoint.
21585 (linux_send_signal): New function.
21586 (linux_target_ops): Add linux_send_signal.
21587 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21589 * target.h (struct target_ops): Add send_signal.
21591 2003-05-29 Jim Blandy <jimb@redhat.com>
21593 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21594 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21595 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21596 away part of the register's value.
21598 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21600 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21601 (linux_wait_for_event, linux_init_signals): Likewise.
21603 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21605 * configure.in: Check for stdlib.h.
21606 * configure: Regenerated.
21607 * config.in: Regenerated.
21609 2003-01-04 Andreas Schwab <schwab@suse.de>
21611 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21613 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21615 * Makefile.in: Remove obsolete code.
21617 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21619 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21620 defined(PT_FPR0_HI).
21622 2002-11-17 Stuart Hughes <seh@zee2.com>
21624 * linux-arm-low.c (arm_num_regs): Increase.
21625 (arm_regmap): Include status register.
21627 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21629 * linux-low.c (register_addr): Remove incorrect -1 check.
21631 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21633 * linux-low.c (linux_create_inferior): Call setpgid. Return
21635 (unstopped_p, linux_signal_pid): Remove.
21636 (linux_target_ops): Remove linux_signal_pid.
21637 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21638 global instead of target method.
21639 * target.h (struct target_ops): Remove signal_pid. Update comment
21640 for create_inferior.
21641 * server.c (signal_pid): New variable.
21642 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21643 gdbserver. Set the child to be the foreground process group.
21644 (attach_inferior): Set signal_pid.
21646 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21648 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21650 2002-08-20 Jim Blandy <jimb@redhat.com>
21652 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21655 2002-08-01 Andrew Cagney <cagney@redhat.com>
21657 * Makefile.in: Make chill references obsolete.
21659 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21661 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21662 * configure: Regenerate.
21663 * config.in: Regenerate.
21665 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21667 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21668 (perror_with_name, remote_close, remote_open, expect, play): Static.
21670 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21672 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21673 byte offsets instead of an array of indexes.
21674 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21676 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21678 * regcache.c: Add comment.
21680 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21682 * thread-db.c: New file.
21683 * proc-service.c: New file.
21684 * acinclude.m4: New file.
21685 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21686 proc-service.o, and thread-db.o.
21687 (linux-low.o): Add USE_THREAD_DB.
21688 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21689 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21690 * aclocal.m4: Regenerated.
21691 * config.in: Regenerated.
21692 * configure: Regenerated.
21693 * configure.in: Check for proc_service.h, sys/procfs.h,
21694 thread_db.h, and linux/elf.h headrs.
21695 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21696 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21697 Check for -lthread_db and thread support.
21698 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21699 PowerPC, and SuperH.
21700 * i387-fp.c: Constify arguments.
21701 * i387-fp.h: Likewise.
21702 * inferiors.c: (struct thread_info): Renamed from
21703 `struct inferior_info'. Remove PID member. Use generic inferior
21704 list header. All uses updated.
21705 (inferiors, signal_pid): Removed.
21706 (all_threads): New variable.
21707 (get_thread): Define.
21708 (add_inferior_to_list): New function.
21709 (for_each_inferior): New function.
21710 (change_inferior_id): New function.
21711 (add_inferior): Removed.
21712 (remove_inferior): New function.
21713 (add_thread): New function.
21714 (free_one_thread): New function.
21715 (remove_thread): New function.
21716 (clear_inferiors): Use for_each_inferior and free_one_thread.
21717 (find_inferior): New function.
21718 (find_inferior_id): New function.
21719 (inferior_target_data): Update argument type.
21720 (set_inferior_target_data): Likewise.
21721 (inferior_regcache_data): Likewise.
21722 (set_inferior_regcache_data): Likewise.
21723 * linux-low.c (linux_bp_reinsert): Remove.
21724 (all_processes, stopping_threads, using_thrads)
21725 (struct pending_signals, debug_threads, pid_of): New.
21726 (inferior_pid): Replace with macro.
21727 (struct inferior_linux_data): Remove.
21728 (get_stop_pc, add_process): New functions.
21729 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21730 Use add_process and add_thread.
21731 (linux_attach_lwp): New function, based on old linux_attach. Use
21732 add_process and add_thread. Set stop_expected for new threads.
21733 (linux_attach): New function.
21734 (linux_kill_one_process): New function.
21735 (linux_kill): Kill all LWPs.
21736 (linux_thread_alive): Use find_inferior_id.
21737 (check_removed_breakpoints, status_pending_p): New functions.
21738 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21739 Update. Use WNOHANG. Wait for cloned processes also. Update process
21740 struct for the found process.
21741 (linux_wait_for_event): New function.
21742 (linux_wait): Use it. Support LWPs.
21743 (send_sigstop, wait_for_sigstop, stop_all_processes)
21744 (linux_resume_one_process, linux_continue_one_process): New functions.
21745 (linux_resume): Support LWPs.
21746 (REGISTER_RAW_SIZE): Remove.
21747 (fetch_register): Use register_size instead. Call supply_register.
21748 (usr_store_inferior_registers): Likewise. Call collect_register.
21749 Fix recursive case.
21750 (regsets_fetch_inferior_registers): Improve error message.
21751 (regsets_store_inferior_registers): Add debugging.
21752 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21753 (unstopped_p, linux_signal_pid): New functions.
21754 (linux_target_ops): Add linux_signal_pid.
21755 (linux_init_signals): New function.
21756 (initialize_low): Call it. Initialize using_threads.
21757 * regcache.c (inferior_regcache_data): Add valid
21759 (get_regcache): Fetch registers lazily. Add fetch argument
21760 and update all callers.
21761 (regcache_invalidate_one, regcache_invalidate): New
21763 (new_register_cache): Renamed from create_register_cache.
21764 Return the new regcache.
21765 (free_register_cache): Change argument to a void *.
21766 (registers_to_string, registers_from_string): Call get_regcache
21767 with fetch flag set.
21768 (register_data): Make static. Pass fetch flag to get_regcache.
21769 (supply_register): Call get_regcache with fetch flag clear.
21770 (collect_register): Call get_regcache with fetch flag set.
21771 (collect_register_as_string): New function.
21772 * regcache.h: Update.
21773 * remote-utils.c (putpkt): Flush after debug output and use
21775 Handle input interrupts while waiting for an ACK.
21776 (input_interrupt): Use signal_pid method.
21777 (getpkt): Flush after debug output and use stderr.
21778 (outreg): Use collect_register_as_string.
21779 (new_thread_notify, dead_thread_notify): New functions.
21780 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21781 and general_thread.
21782 (look_up_one_symbol): Flush after debug output.
21783 * server.c (step_thread, server_waiting): New variables.
21784 (start_inferior): Don't use signal_pid. Update call to mywait.
21785 (attach_inferior): Update call to mywait.
21786 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21787 (main): Don't fetch/store registers explicitly. Use
21788 set_desired_inferior. Support proposed ``Hs'' packet. Update
21790 * server.h: Update.
21791 (struct inferior_list, struct_inferior_list_entry): New.
21792 * target.c (set_desired_inferior): New.
21793 (write_inferior_memory): Constify.
21794 (mywait): New function.
21795 * target.h: Update.
21796 (struct target_ops): New signal_pid method.
21797 (mywait): Removed macro, added prototype.
21799 * linux-low.h (regset_func): Removed.
21800 (regset_fill_func, regset_store_func): New.
21801 (enum regset_type): New.
21802 (struct regset_info): Add type field. Use new operation types.
21803 (struct linux_target_ops): stop_pc renamed to get_pc.
21804 Add decr_pc_after_break and breakpoint_at.
21805 (get_process, get_thread_proess, get_process_thread)
21806 (strut process_info, all_processes, linux_attach_lwp)
21807 (thread_db_init): New.
21809 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21810 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21811 (the_low_target): Add new members.
21812 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21813 (i386_store_fpxregset): Constify.
21814 (target_regsets): Add new kind identifier.
21815 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21816 (i386_set_pc): Add debugging.
21817 (i386_breakpoint_at): New function.
21818 (the_low_target): Add new members.
21819 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21820 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21821 (mips_breakpoint_at): New.
21822 (the_low_target): Add new members.
21823 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21824 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21825 (the_low_target): Add new members.
21826 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21827 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21828 (the_low_target): Add new members.
21829 * linux-x86-64-low.c (target_regsets): Add new kind
21832 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21834 From Martin Pool <mbp@samba.org>:
21835 * server.c (gdbserver_usage): New function.
21838 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21840 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21841 stop_at -> stop_pc.
21843 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21845 * Makefile.in: Remove obsolete code.
21847 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21849 * linux-low.c (regsets_fetch_inferior_registers),
21850 (regsets_store_inferior_registers): Removed cast to int from
21852 * regcache.h: Added declaration of struct inferior_info.
21854 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21856 * inferiors.c (struct inferior_info): Add regcache_data.
21857 (add_inferior): Call create_register_cache.
21858 (clear_inferiors): Call free_register_cache.
21859 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21860 * regcache.c (struct inferior_regcache_data): New.
21861 (registers): Remove.
21862 (get_regcache): New function.
21863 (create_register_cache, free_register_cache): New functions.
21864 (set_register_cache): Don't initialize the register cache here.
21865 (registers_to_string, registers_from_string, register_data): Call
21867 * regcache.h: Add prototypes.
21868 * server.h: Likewise.
21870 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21872 * mem-break.c: New file.
21873 * mem-break.h: New file.
21874 * Makefile.in: Add mem-break.o rule; update server.h
21876 * inferiors.c (struct inferior_info): Add target_data
21878 (clear_inferiors): Free target_data member if set.
21879 (inferior_target_data, set_inferior_target_data): New functions.
21880 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21881 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21882 * linux-low.c (linux_bp_reinsert): New variable.
21883 (struct inferior_linux_data): New.
21884 (linux_create_inferior): Use set_inferior_target_data.
21885 (linux_attach): Likewise. Call add_inferior.
21886 (linux_wait_for_one_inferior): New function.
21887 (linux_wait): Call it.
21888 (linux_write_memory): Add const.
21889 (initialize_low): Call set_breakpoint_data.
21890 * linux-low.h (struct linux_target_ops): Add breakpoint
21892 * server.c (attach_inferior): Remove extra add_inferior
21894 * server.h: Include mem-break.h. Update inferior.c
21896 * target.c (read_inferior_memory)
21897 (write_inferior_memory): New functions.
21898 * target.h (read_inferior_memory)
21899 (write_inferior_memory): Change macros to prototypes.
21900 (struct target_ops): Update comments. Add const to write_memory
21903 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
21905 * linux-low.c (usr_store_inferior_registers): Support
21906 registers which are allowed to fail to store.
21907 * linux-low.h (linux_target_ops): Likewise.
21908 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21909 (ppc_cannot_store_register): FPSCR may not be storable.
21911 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21913 * server.h: Include <string.h> if HAVE_STRING_H.
21914 * ChangeLog: Correct paths in last ChangeLog entry.
21916 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21918 * linux-low.h: Remove obsolete prototypes.
21919 (struct linux_target_ops): New.
21920 (extern the_low_target): New.
21921 * linux-low.c (num_regs, regmap): Remove declarations.
21922 (register_addr): Use the_low_target explicitly.
21923 (fetch_register): Likewise.
21924 (usr_fetch_inferior_registers): Likewise.
21925 (usr_store_inferior_registers): Likewise.
21926 * linux-arm-low.c (num_regs): Remove.
21927 (arm_num_regs): Define.
21928 (arm_regmap): Renamed from regmap, made static.
21929 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21931 (arm_cannot_store_register): Renamed from cannot_store_register,
21933 (the_low_target): New.
21934 * linux-i386-low.c (num_regs): Remove.
21935 (i386_num_regs): Define.
21936 (i386_regmap): Renamed from regmap, made static.
21937 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21939 (i386_cannot_store_register): Renamed from cannot_store_register,
21941 (the_low_target): New.
21942 * linux-ia64-low.c (num_regs): Remove.
21943 (ia64_num_regs): Define.
21944 (ia64_regmap): Renamed from regmap, made static.
21945 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21947 (ia64_cannot_store_register): Renamed from cannot_store_register,
21949 (the_low_target): New.
21950 * linux-m68k-low.c (num_regs): Remove.
21951 (m68k_num_regs): Define.
21952 (m68k_regmap): Renamed from regmap, made static.
21953 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21955 (m68k_cannot_store_register): Renamed from cannot_store_register,
21957 (the_low_target): New.
21958 * linux-mips-low.c (num_regs): Remove.
21959 (mips_num_regs): Define.
21960 (mips_regmap): Renamed from regmap, made static.
21961 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21963 (mips_cannot_store_register): Renamed from cannot_store_register,
21965 (the_low_target): New.
21966 * linux-ppc-low.c (num_regs): Remove.
21967 (ppc_num_regs): Define.
21968 (ppc_regmap): Renamed from regmap, made static.
21969 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21971 (ppc_cannot_store_register): Renamed from cannot_store_register,
21973 (the_low_target): New.
21974 * linux-s390-low.c (num_regs): Remove.
21975 (s390_num_regs): Define.
21976 (s390_regmap): Renamed from regmap, made static.
21977 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21979 (s390_cannot_store_register): Renamed from cannot_store_register,
21981 (the_low_target): New.
21982 * linux-sh-low.c (num_regs): Remove.
21983 (sh_num_regs): Define.
21984 (sh_regmap): Renamed from regmap, made static.
21985 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21987 (sh_cannot_store_register): Renamed from cannot_store_register,
21989 (the_low_target): New.
21990 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21991 (the_low_target): New.
21993 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21995 * Makefile.in: Add stamp-h target.
21996 * configure.in: Create stamp-h.
21997 * configure: Regenerated.
21999 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22001 * inferiors.c: New file.
22002 * target.c: New file.
22003 * target.h: New file.
22004 * Makefile.in: Add target.o and inferiors.o. Update
22006 * linux-low.c (inferior_pid): New static variable,
22007 moved from server.c.
22008 (linux_create_inferior): Renamed from create_inferior.
22009 Call add_inferior. Return 0 on success instead of a PID.
22010 (linux_attach): Renamed from myattach.
22011 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22012 (linux_thread_alive): Renamed from mythread_alive.
22013 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22015 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22016 (regsets_store_inferior_registers): Correct error message.
22017 Add missing ``return 0''.
22018 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22019 (linux_store_registers): Renamed from store_inferior_registers.
22020 (linux_read_memory): Renamed from read_inferior_memory.
22021 (linux_write_memory): Renamed from write_inferior_memory.
22022 (linux_target_ops): New structure.
22023 (initialize_low): Call set_target_ops ().
22024 * remote-utils.c (unhexify): New function.
22025 (hexify): New function.
22026 (input_interrupt): Send signals to ``signal_pid''.
22027 * server.c (inferior_pid): Remove.
22028 (start_inferior): Update create_inferior call.
22029 (attach_inferior): Call add_inferior.
22030 (handle_query): New function.
22031 (main): Call handle_query for `q' packets.
22032 * server.h: Include "target.h". Remove obsolete prototypes.
22033 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22035 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22037 * Makefile.in: Add WARN_CFLAGS. Update configury
22039 * configure.in: Check for <string.h>
22040 * configure: Regenerate.
22041 * config.in: Regenerate.
22042 * gdbreplay.c: Include needed system headers.
22043 (remote_open): Remove strchr prototype.
22044 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22045 * regcache.c (supply_register): Change buf argument to const void *.
22046 (supply_register_by_name): Likewise.
22047 (collect_register): Change buf argument to void *.
22048 (collect_register_by_name): Likewise.
22049 * regcache.h: Add missing prototypes.
22050 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22051 * server.c (handle_query): New function.
22052 (attached): New static variable, moved out of main.
22053 (main): Quiet longjmp clobber warnings.
22054 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22055 * utils.c (error): Remove NORETURN.