1 2020-04-08 Tom Tromey <tromey@adacore.com>
3 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
4 (win32_process_target::supports_stopped_by_sw_breakpoint):
6 * win32-low.c (win32_supports_z_point_type): Always handle
8 (win32_insert_point): Call insert_memory_breakpoint when needed.
9 (win32_remove_point): Call remove_memory_breakpoint when needed.
10 (win32_process_target::stopped_by_sw_breakpoint)
11 (win32_process_target::supports_stopped_by_sw_breakpoint): New
13 (win32_target_ops): Update.
14 (maybe_adjust_pc): New function.
15 (win32_wait): Call maybe_adjust_pc.
17 2020-04-08 Tom Tromey <tromey@adacore.com>
19 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
21 * win32-i386-low.c (the_low_target): Update.
22 * win32-arm-low.c (the_low_target): Update.
24 2020-04-08 Tom Tromey <tromey@adacore.com>
26 * win32-low.h (win32_process_target::read_pc)
27 (win32_process_target::write_pc): Declare.
28 * win32-low.c (win32_process_target::read_pc)
29 (win32_process_target::write_pc): New methods.
30 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
32 (the_low_target): Update.
33 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
35 (the_low_target): Update.
37 2020-04-08 Tom Tromey <tromey@adacore.com>
39 * win32-low.c (win32_kill, get_child_debug_event): Use
42 2020-04-08 Tom Tromey <tromey@adacore.com>
44 * win32-low.c (child_continue): Call continue_last_debug_event.
46 2020-04-08 Tom Tromey <tromey@adacore.com>
48 * win32-low.c (handle_exception): Remove.
49 (windows_nat::handle_ms_vc_exception): New function.
50 (get_child_debug_event): Add "continue_status" parameter.
54 2020-04-08 Tom Tromey <tromey@adacore.com>
56 * win32-low.c (windows_nat::handle_load_dll): Rename from
57 handle_load_dll. No longer static.
58 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
61 2020-04-08 Tom Tromey <tromey@adacore.com>
63 * win32-low.c (handle_output_debug_string): Add parameter. Change
65 (win32_kill, get_child_debug_event): Update.
67 2020-04-08 Tom Tromey <tromey@adacore.com>
69 * win32-low.c (current_process_handle, current_process_id)
70 (main_thread_id, last_sig, current_event, siginfo_er): Move to
73 2020-04-08 Tom Tromey <tromey@adacore.com>
75 * win32-low.c (get_image_name): Remove.
76 (handle_load_dll): Update.
78 2020-04-08 Tom Tromey <tromey@adacore.com>
80 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
81 No longer static. Change parameters.
82 (child_add_thread, child_fetch_inferior_registers)
83 (child_store_inferior_registers, win32_resume)
84 (win32_get_tib_address): Update.
86 2020-04-08 Tom Tromey <tromey@adacore.com>
88 * win32-low.h (struct win32_target_ops): Use qualified names where
90 * win32-i386-low.c: Add "using namespace".
91 * win32-low.c: Add "using namespace".
92 * win32-arm-low.c: Add "using namespace".
94 2020-04-08 Tom Tromey <tromey@adacore.com>
96 * win32-low.c (delete_thread_info): Don't call CloseHandle.
98 2020-04-08 Tom Tromey <tromey@adacore.com>
100 * win32-low.c (win32_require_context, suspend_one_thread): Use
101 windows_thread_info::suspend.
102 (continue_one_thread): Use windows_thread_info::resume.
103 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
105 2020-04-08 Tom Tromey <tromey@adacore.com>
107 * win32-i386-low.c (update_debug_registers)
108 (i386_prepare_to_resume, i386_thread_added): Update.
110 2020-04-08 Tom Tromey <tromey@adacore.com>
112 * win32-low.c (child_add_thread): Use new.
113 (delete_thread_info): Use delete.
115 2020-04-08 Tom Tromey <tromey@adacore.com>
117 * win32-low.h (struct windows_thread_info): Remove.
119 2020-04-08 Tom Tromey <tromey@adacore.com>
121 * win32-low.h (struct windows_thread_info): Rename from
122 win32_thread_info. Remove typedef.
123 (struct win32_target_ops, win32_require_context): Update.
124 * win32-low.c (win32_get_thread_context)
125 (win32_set_thread_context, win32_prepare_to_resume)
126 (win32_require_context, thread_rec, child_add_thread)
127 (delete_thread_info, continue_one_thread)
128 (child_fetch_inferior_registers, child_store_inferior_registers)
129 (win32_resume, suspend_one_thread, win32_get_tib_address):
131 * win32-i386-low.c (update_debug_registers)
132 (win32_get_current_dr, i386_get_thread_context)
133 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
134 (i386_fetch_inferior_register, i386_store_inferior_register):
136 * win32-arm-low.c (arm_get_thread_context)
137 (arm_fetch_inferior_register, arm_store_inferior_register):
140 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
142 * linux-low.h (struct linux_target_ops): Remove.
143 (the_low_target): Remove.
144 * linux-x86-low.cc (the_low_target): Remove.
145 * linux-aarch64-low.cc (the_low_target): Ditto.
146 * linux-arm-low.cc (the_low_target): Ditto.
147 * linux-bfin-low.cc (the_low_target): Ditto.
148 * linux-cris-low.cc (the_low_target): Ditto.
149 * linux-crisv32-low.cc (the_low_target): Ditto.
150 * linux-ia64-low.cc (the_low_target): Ditto.
151 * linux-m32r-low.cc (the_low_target): Ditto.
152 * linux-m68k-low.cc (the_low_target): Ditto.
153 * linux-mips-low.cc (the_low_target): Ditto.
154 * linux-nios2-low.cc (the_low_target): Ditto.
155 * linux-ppc-low.cc (the_low_target): Ditto.
156 * linux-riscv-low.cc (the_low_target): Ditto.
157 * linux-s390-low.cc (the_low_target): Ditto.
158 * linux-sh-low.cc (the_low_target): Ditto.
159 * linux-sparc-low.cc (the_low_target): Ditto.
160 * linux-tic6x-low.cc (the_low_target): Ditto.
161 * linux-tile-low.cc (the_low_target): Ditto.
162 * linux-xtensa-low.cc (the_low_target): Ditto.
164 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
166 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
167 linux target define the op by overriding the declaration in
168 process_stratum_target.
170 * linux-low.h (struct linux_target_ops): Remove the op.
171 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
172 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
173 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
174 (x86_get_ipa_tdesc_idx): Turn into...
175 (x86_target::get_ipa_tdesc_idx): ...this.
176 (the_low_target): Remove the op field.
177 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
178 (ppc_get_ipa_tdesc_idx): Turn into...
179 (ppc_target::get_ipa_tdesc_idx): ...this.
180 (the_low_target): Remove the op field.
181 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
182 (s390_get_ipa_tdesc_idx): Turn into...
183 (s390_target::get_ipa_tdesc_idx): ...this.
184 (the_low_target): Remove the op field.
186 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
188 Turn the 'get_syscall_trapinfo' linux target op into a method
189 of process_stratum_target.
191 * linux-low.h (struct linux_target_ops): Remove the op.
192 (class linux_process_target) <get_syscall_trapinfo>
193 <gdb_catch_this_syscall>
194 <low_supports_catch_syscall>
195 <low_get_syscall_trapinfo>: Declare.
196 * linux-low.cc (get_syscall_trapinfo): Turn into...
197 (linux_process_target::get_syscall_trapinfo): ...this.
198 (linux_process_target::low_get_syscall_trapinfo): Define.
199 (gdb_catch_this_syscall_p): Turn into...
200 (linux_process_target::gdb_catch_this_syscall): ...this.
201 (linux_process_target::low_supports_catch_syscall): Define.
203 Update the callers below.
205 (linux_process_target::wait_1)
206 (linux_process_target::supports_catch_syscall)
208 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
209 <low_get_syscall_trapinfo>: Declare.
210 (x86_target::low_supports_catch_syscall): Define.
211 (x86_get_syscall_trapinfo): Turn into...
212 (x86_target::low_get_syscall_trapinfo): ...this.
213 (the_low_target): Remove the op field.
214 * linux-aarch64-low.cc (class aarch64_target)
215 <low_supports_catch_syscall>
216 <low_get_syscall_trapinfo>: Declare.
217 (aarch64_target::low_supports_catch_syscall): Define.
218 (aarch64_get_syscall_trapinfo): Turn into...
219 (aarch64_target::low_get_syscall_trapinfo): ...this.
220 (the_low_target): Remove the op field.
221 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
222 <low_get_syscall_trapinfo>: Declare.
223 (arm_target::low_supports_catch_syscall): Define.
224 (arm_get_syscall_trapinfo): Turn into...
225 (arm_target::low_get_syscall_trapinfo): ...this.
226 (the_low_target): Remove the op field.
227 * linux-ppc-low.cc (the_low_target): Remove the op field.
228 * linux-s390-low.cc (the_low_target): Remove the op field.
230 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
232 Remove the 'supports_hardware_single_step' linux target op and
233 override the process_stratum_target's op definition in
234 linux_process_target to return true.
236 * linux-low.h (struct linux_target_ops): Remove the op.
237 (class linux_process_target) <finish_step_over>
238 <maybe_hw_step>: Declare.
239 * linux-low.cc (can_hardware_single_step): Remove.
240 (maybe_hw_step): Turn into...
241 (linux_process_target::maybe_hw_step): ...this.
242 (finish_step_over): Turn into...
243 (linux_process_target::finish_step_over): ...this.
244 (linux_process_target::supports_hardware_single_step): Update
247 Update the callers below.
249 (linux_process_target::single_step)
250 (linux_process_target::resume_one_lwp_throw)
252 * linux-arm-low.cc (class arm_target)
253 <supports_hardware_single_step>: Declare.
254 (arm_supports_hardware_single_step): Turn into...
255 (arm_target::supports_hardware_single_step): ...this.
256 (the_low_target): Remove the op field.
257 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
258 (the_low_target): Remove the op field.
259 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
261 (the_low_target): Remove the op field.
262 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
263 (the_low_target): Remove the op field.
264 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
265 (the_low_target): Remove the op field.
266 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
267 (the_low_target): Remove the op field.
268 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
269 (the_low_target): Remove the op field.
270 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
271 (the_low_target): Remove the op field.
272 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
273 (the_low_target): Remove the op field.
274 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
275 (the_low_target): Remove the op field.
276 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
277 (the_low_target): Remove the op field.
278 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
279 (the_low_target): Remove the op field.
280 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
282 (the_low_target): Remove the op field.
284 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
286 Turn the 'supports_range_stepping' linux target op into a method
287 of linux_process_target.
289 * linux-low.h (struct linux_target_ops): Remove the op.
290 (class linux_process_target) <low_supports_range_stepping>: Declare.
291 * linux-low.cc (linux_process_target::low_supports_range_stepping):
293 (linux_process_target::supports_range_stepping): Update the call
295 * linux-x86-low.cc (class x86_target)
296 <low_supports_range_stepping>: Declare.
297 (x86_supports_range_stepping): Turn into...
298 (x86_target::low_supports_range_stepping): ...this.
299 (the_low_target): Remove the op field.
300 * linux-aarch64-low.cc (class aarch64_target)
301 <low_supports_range_stepping>: Declare.
302 (aarch64_supports_range_stepping): Turn into...
303 (aarch64_target::low_supports_range_stepping): ...this.
304 (the_low_target): Remove the op field.
305 * linux-arm-low.cc (the_low_target): Remove the op field.
306 * linux-bfin-low.cc (the_low_target): Ditto.
307 * linux-crisv32-low.cc (the_low_target): Ditto.
308 * linux-m32r-low.cc (the_low_target): Ditto.
309 * linux-m68k-low.cc (the_low_target): Ditto.
310 * linux-ppc-low.cc (the_low_target): Ditto.
311 * linux-s390-low.cc (the_low_target): Ditto.
312 * linux-sh-low.cc (the_low_target): Ditto.
313 * linux-tic6x-low.cc (the_low_target): Ditto.
314 * linux-tile-low.cc (the_low_target): Ditto.
315 * linux-xtensa-low.cc (the_low_target): Ditto.
317 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
319 Remove the 'emit_ops' linux target ops and let the concrete
320 linux target define the op by overriding the declaration of
321 process_stratum_target.
323 * linux-low.h (struct linux_target_ops): Remove the op.
324 (class linux_process_target) <emit_ops>: Remove.
325 * linux-low.cc (linux_process_target::emit_ops): Remove.
326 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
327 (x86_emit_ops): Turn into...
328 (x86_target::emit_ops): ...this.
329 (the_low_target): Remove the op field.
330 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
331 (aarch64_emit_ops): Turn into...
332 (aarch64_target::emit_ops): ...this.
333 (the_low_target): Remove the op field.
334 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
335 (ppc_emit_ops): Turn into...
336 (ppc_target::emit_ops): ...this.
337 (the_low_target): Remove the op field.
338 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
339 (s390_emit_ops): Turn into...
340 (s390_target::emit_ops): ...this.
341 (the_low_target): Remove the op field.
342 * linux-arm-low.cc (the_low_target): Remove the op field.
343 * linux-bfin-low.cc (the_low_target): Ditto.
344 * linux-crisv32-low.cc (the_low_target): Ditto.
345 * linux-m32r-low.cc (the_low_target): Ditto.
346 * linux-m68k-low.cc (the_low_target): Ditto.
347 * linux-sh-low.cc (the_low_target): Ditto.
348 * linux-tic6x-low.cc (the_low_target): Ditto.
349 * linux-tile-low.cc (the_low_target): Ditto.
350 * linux-xtensa-low.cc (the_low_target): Ditto.
352 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
354 Remove the 'install_fast_tracepoint_jump_pad' and
355 'get_min_fast_tracepoint_insn_len' linux target ops to let the
356 concrete linux target define the ops by overriding the declarations
357 of process_stratum_target.
359 * linux-low.h (struct linux_target_ops): Remove the ops.
360 (class linux_process_target) <supports_fast_tracepoints>
361 <install_fast_tracepoint_jump_pad>
362 <get_min_fast_tracepoint_insn_len>: Remove.
363 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
364 (linux_process_target::install_fast_tracepoint_jump_pad)
365 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
366 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
367 <install_fast_tracepoint_jump_pad>
368 <get_min_fast_tracepoint_insn_len>: Declare.
369 (x86_target::supports_fast_tracepoints): Define.
370 (x86_install_fast_tracepoint_jump_pad): Turn into...
371 (x86_target::install_fast_tracepoint_jump_pad): ...this.
372 (x86_get_min_fast_tracepoint_insn_len): Turn into...
373 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
374 (the_low_target): Remove the op fields.
375 * linux-aarch64-low.cc (class aarch64_target)
376 <supports_fast_tracepoints>
377 <install_fast_tracepoint_jump_pad>
378 <get_min_fast_tracepoint_insn_len>: Declare.
379 (aarch64_target::supports_fast_tracepoints): Define.
380 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
381 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
382 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
383 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
384 (the_low_target): Remove the op fields.
385 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
386 <install_fast_tracepoint_jump_pad>
387 <get_min_fast_tracepoint_insn_len>: Declare.
388 (ppc_target::supports_fast_tracepoints): Define.
389 (ppc_install_fast_tracepoint_jump_pad): Turn into...
390 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
391 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
392 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
393 (the_low_target): Remove the op fields.
394 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
395 <install_fast_tracepoint_jump_pad>
396 <get_min_fast_tracepoint_insn_len>: Declare.
397 (s390_target::supports_fast_tracepoints): Define.
398 (s390_install_fast_tracepoint_jump_pad): Turn into...
399 (s390_target::install_fast_tracepoint_jump_pad): ...this.
400 (s390_get_min_fast_tracepoint_insn_len): Turn into...
401 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
402 (the_low_target): Remove the op fields.
403 * linux-arm-low.cc (the_low_target): Remove the op fields.
404 * linux-bfin-low.cc (the_low_target): Ditto.
405 * linux-crisv32-low.cc (the_low_target): Ditto.
406 * linux-m32r-low.cc (the_low_target): Ditto.
407 * linux-m68k-low.cc (the_low_target): Ditto.
408 * linux-sh-low.cc (the_low_target): Ditto.
409 * linux-tic6x-low.cc (the_low_target): Ditto.
410 * linux-tile-low.cc (the_low_target): Ditto.
411 * linux-xtensa-low.cc (the_low_target): Ditto.
413 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
415 Turn the 'get_thread_area' linux target op into a method of
416 process_stratum_target.
418 * linux-low.h (struct linux_target_ops): Remove the op.
419 (class linux_process_target) <stuck_in_jump_pad>
420 <linux_fast_tracepoint_collecting>
421 <low_get_thread_area>: Declare.
422 * linux-low.cc (supports_fast_tracepoints): Remove.
423 (linux_fast_tracepoint_collecting): Turn into...
424 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
425 (linux_process_target::low_get_thread_area): Define.
426 (stuck_in_jump_pad_callback): Turn into...
427 (linux_process_target::stuck_in_jump_pad): ...this.
429 Update the caller below.
431 (linux_process_target::stabilize_threads)
433 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
435 (x86_get_thread_area): Turn into...
436 (x86_target::low_get_thread_area): ...this.
437 (the_low_target): Remove the op field.
438 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
440 (aarch64_get_thread_area): Turn into...
441 (aarch64_target::low_get_thread_area): ...this.
442 (the_low_target): Remove the op field.
443 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
445 (ppc_get_thread_area): Turn into...
446 (ppc_target::low_get_thread_area): ...this.
447 (the_low_target): Remove the op field.
448 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
450 (s390_get_thread_area): Turn into...
451 (s390_target::low_get_thread_area): ...this.
452 (the_low_target): Remove the op field.
453 * linux-arm-low.cc (the_low_target): Remove the op field.
454 * linux-bfin-low.cc (the_low_target): Ditto.
455 * linux-crisv32-low.cc (the_low_target): Ditto.
456 * linux-m32r-low.cc (the_low_target): Ditto.
457 * linux-m68k-low.cc (the_low_target): Ditto.
458 * linux-sh-low.cc (the_low_target): Ditto.
459 * linux-tic6x-low.cc (the_low_target): Ditto.
460 * linux-tile-low.cc (the_low_target): Ditto.
461 * linux-xtensa-low.cc (the_low_target): Ditto.
463 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
465 Remote the 'supports_tracepoints' linux target op and let the
466 concrete linux target define it by overriding the op declared in
467 process_stratum_target.
469 * linux-low.h (struct linux_target_ops): Remove the op.
470 (class linux_process_target) <supports_tracepoints>: Remove.
471 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
472 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
474 (x86_supports_tracepoints): Turn into...
475 (x86_target::supports_tracepoints): ...this.
476 (the_low_target): Remove the op field.
477 * linux-aarch64-low.cc (class aarch64_target)
478 <supports_tracepoints>: Declare.
479 (aarch64_supports_tracepoints): Turn into...
480 (aarch64_target::supports_tracepoints): ...this.
481 (the_low_target): Remove the op field.
482 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
484 (ppc_supports_tracepoints): Turn into...
485 (ppc_target::supports_tracepoints): ...this.
486 (the_low_target): Remove the op field.
487 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
489 (s390_supports_tracepoints): Turn into...
490 (s390_target::supports_tracepoints): ...this.
491 (the_low_target): Remove the op field.
492 * linux-arm-low.cc (the_low_target): Remove the op field.
493 * linux-bfin-low.cc (the_low_target): Ditto.
494 * linux-crisv32-low.cc (the_low_target): Ditto.
495 * linux-m32r-low.cc (the_low_target): Ditto.
496 * linux-m68k-low.cc (the_low_target): Ditto.
497 * linux-sh-low.cc (the_low_target): Ditto.
498 * linux-tic6x-low.cc (the_low_target): Ditto.
499 * linux-tile-low.cc (the_low_target): Ditto.
500 * linux-xtensa-low.cc (the_low_target): Ditto.
502 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
504 Remove the 'process_qsupported' linux target op and let a concrete
505 linux target define the op by overriding the op declaration in
506 process_stratum_target.
508 * linux-low.h (struct linux_target_ops): Remove the op.
509 (class linux_process_target) <process_qsupported>: Remove.
510 * linux-low.cc (linux_process_target::process_qsupported): Remove.
511 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
512 (x86_linux_process_qsupported): Turn into...
513 (x86_target::process_qsupported): ...this.
514 (the_low_target): Remove the op field.
515 * linux-aarch64-low.cc (the_low_target): Remove the op
517 * linux-arm-low.cc (the_low_target): Ditto.
518 * linux-bfin-low.cc (the_low_target): Ditto.
519 * linux-crisv32-low.cc (the_low_target): Ditto.
520 * linux-m32r-low.cc (the_low_target): Ditto.
521 * linux-m68k-low.cc (the_low_target): Ditto.
522 * linux-ppc-low.cc (the_low_target): Ditto.
523 * linux-s390-low.cc (the_low_target): Ditto.
524 * linux-sh-low.cc (the_low_target): Ditto.
525 * linux-tic6x-low.cc (the_low_target): Ditto.
526 * linux-tile-low.cc (the_low_target): Ditto.
527 * linux-xtensa-low.cc (the_low_target): Ditto.
529 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
531 Turn the 'prepare_to_resume' linux target op into a method of
532 linux_process_target.
534 * linux-low.h (struct linux_target_ops): Remove the op.
535 (class linux_process_target) <low_prepare_to_resume>: Declare.
536 * linux-low.cc (linux_process_target::low_prepare_to_resume):
539 Update the callers below:
541 (linux_process_target::resume_one_lwp_throw)
542 (linux_process_target::low_prepare_to_resume)
544 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
546 (x86_target::low_prepare_to_resume): Define.
547 (the_low_target): Remove the op field.
548 * linux-aarch64-low.cc (class aarch64_target)
549 <low_prepare_to_resume>: Declare.
550 (aarch64_target::low_prepare_to_resume): Define.
551 (the_low_target): Remove the op field.
552 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
554 (arm_prepare_to_resume): Turn into...
555 (arm_target::low_prepare_to_resume): ...this.
556 (the_low_target): Remove the op field.
557 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
559 (mips_linux_prepare_to_resume): Turn into...
560 (mips_target::low_prepare_to_resume): ...this.
561 (the_low_target): Remove the op field.
562 * linux-bfin-low.cc (the_low_target): Remove the op field.
563 * linux-crisv32-low.cc (the_low_target): Ditto.
564 * linux-m32r-low.cc (the_low_target): Ditto.
565 * linux-m68k-low.cc (the_low_target): Ditto.
566 * linux-ppc-low.cc (the_low_target): Ditto.
567 * linux-s390-low.cc (the_low_target): Ditto.
568 * linux-sh-low.cc (the_low_target): Ditto.
569 * linux-tic6x-low.cc (the_low_target): Ditto.
570 * linux-tile-low.cc (the_low_target): Ditto.
571 * linux-xtensa-low.cc (the_low_target): Ditto.
573 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
575 Turn the 'new_process', 'delete_process', 'new_thread',
576 'delete_thread', and 'new_fork' linux target ops into methods
577 of linux_process_target.
579 * linux-low.h (struct linux_target_ops): Remove the ops.
580 (class linux_process_target) <add_linux_process>
585 <check_zombie_leaders>
591 <low_new_fork>: Declare.
592 * linux-low.cc (delete_lwp): Turn into...
593 (linux_process_target::delete_lwp): ...this.
594 (linux_process_target::low_delete_thread): Define.
595 (linux_add_process): Turn into...
596 (linux_process_target::add_linux_process): ...this.
597 (linux_process_target::low_new_process): Define.
598 (linux_process_target::low_delete_process): Define.
599 (linux_process_target::low_new_fork): Define.
600 (add_lwp): Turn into...
601 (linux_process_target::add_lwp): ...this.
602 (linux_process_target::low_new_thread): Define.
603 (linux_attach_lwp): Turn into...
604 (linux_process_target::attach_lwp): ...this.
605 (linux_detach_one_lwp): Turn into...
606 (linux_process_target::detach_one_lwp): ...this.
607 (linux_detach_lwp_callback): Remove and inline...
608 (linux_process_target::detach): ...here.
609 (check_zombie_leaders): Turn into...
610 (linux_process_target::check_zombie_leaders): ...this.
611 (filter_exit_event): Turn into...
612 (linux_process_target::filter_exit_event): ...this.
614 Update the callers below.
616 (linux_process_target::handle_extended_wait)
617 (linux_process_target::create_inferior)
618 (attach_proc_task_lwp_callback)
619 (linux_process_target::attach)
620 (linux_process_target::detach)
621 (linux_process_target::mourn)
622 * thread-db.cc (attach_thread)
624 * linux-x86-low.cc (class x86_target) <low_new_process>
628 <low_new_fork>: Declare.
629 (x86_linux_new_process): Turn into...
630 (x86_target::low_new_process): ...this.
631 (x86_linux_delete_process): Turn into...
632 (x86_target::low_delete_process): ...this.
633 (x86_target::low_new_thread): Define.
634 (x86_target::low_delete_thread): Define.
635 (x86_linux_new_fork): Turn into...
636 (x86_target::low_new_fork): ...this.
637 (the_low_target): Remove the op fields.
638 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
642 <low_new_fork>: Declare.
643 (aarch64_linux_new_process): Turn into...
644 (aarch64_target::low_new_process): ...this.
645 (aarch64_linux_delete_process): Turn into...
646 (aarch64_target::low_delete_process): ...this.
647 (aarch64_target::low_new_thread): Define.
648 (aarch64_target::low_delete_thread): Define.
649 (aarch64_linux_new_fork): Turn into...
650 (aarch64_target::low_new_fork): ...this.
651 (the_low_target): Remove the op fields.
652 * linux-arm-low.cc (class arm_target) <low_new_process>
656 <low_new_fork>: Declare.
657 (arm_new_process): Turn into...
658 (arm_target::low_new_process): ...this.
659 (arm_delete_process): Turn into...
660 (arm_target::low_delete_process): ...this.
661 (arm_new_thread): Turn into...
662 (arm_target::low_new_thread): ...this.
663 (arm_delete_thread): Turn into...
664 (arm_target::low_delete_thread): ...this.
665 (arm_new_fork): Turn into...
666 (arm_target::low_new_fork): ...this.
667 (the_low_target): Remove the op fields.
668 * linux-mips-low.cc (class mips_target) <low_new_process>
672 <low_new_fork>: Declare.
673 (mips_linux_new_process): Turn into...
674 (mips_target::low_new_process): ...this.
675 (mips_linux_delete_process): Turn into...
676 (mips_target::low_delete_process): ...this.
677 (mips_linux_new_thread): Turn into...
678 (mips_target::low_new_thread): ...this.
679 (mips_linux_delete_thread): Turn into...
680 (mips_target::low_delete_thread): ...this.
681 (mips_linux_new_fork): Turn into...
682 (mips_target::low_new_fork): ...this.
683 (the_low_target): Remove the op fields.
684 * linux-bfin-low.cc (the_low_target): Remove the op fields.
685 * linux-crisv32-low.cc (the_low_target): Ditto.
686 * linux-m32r-low.cc (the_low_target): Ditto.
687 * linux-m68k-low.cc (the_low_target): Ditto.
688 * linux-ppc-low.cc (the_low_target): Ditto.
689 * linux-s390-low.cc (the_low_target): Ditto.
690 * linux-sh-low.cc (the_low_target): Ditto.
691 * linux-tic6x-low.cc (the_low_target): Ditto.
692 * linux-tile-low.cc (the_low_target): Ditto.
693 * linux-xtensa-low.cc (the_low_target): Ditto.
695 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
697 Turn the 'siginfo_fixup' linux target op into a method of
698 linux_process_target.
700 * linux-low.h (struct linux_target_ops): Remove the op.
701 (class linux_process_target) <siginfo_fixup>
702 <low_siginfo_fixup>: Declare.
703 * linux-low.cc (siginfo_fixup): Turn into...
704 (linux_process_target::siginfo_fixup): ...this.
705 (linux_process_target::low_siginfo_fixup): Define.
706 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
707 (x86_siginfo_fixup): Turn into...
708 (x86_target::low_siginfo_fixup): ...this.
709 (the_low_target): Remove the op field.
710 * linux-aarch64-low.cc (class aarch64_target):
711 <low_siginfo_fixup>: Declare.
712 (aarch64_linux_siginfo_fixup): Turn into...
713 (aarch64_target::low_siginfo_fixup): ...this.
714 (the_low_target): Remove the op field.
715 * linux-arm-low.cc (the_low_target): Remove the op field.
716 * linux-bfin-low.cc (the_low_target): Ditto.
717 * linux-crisv32-low.cc (the_low_target): Ditto.
718 * linux-m32r-low.cc (the_low_target): Ditto.
719 * linux-m68k-low.cc (the_low_target): Ditto.
720 * linux-mips-low.cc (the_low_target): Ditto.
721 * linux-ppc-low.cc (the_low_target): Ditto.
722 * linux-s390-low.cc (the_low_target): Ditto.
723 * linux-sh-low.cc (the_low_target): Ditto.
724 * linux-tic6x-low.cc (the_low_target): Ditto.
725 * linux-tile-low.cc (the_low_target): Ditto.
726 * linux-xtensa-low.cc (the_low_target): Ditto.
728 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
730 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
731 linux target ops into methods of linux_process_target.
733 * linux-low.h (struct linux_target_ops): Remove the ops.
734 (class linux_process_target) <low_collect_ptrace_register>
735 <low_store_ptrace_register>: Declare.
736 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
737 (linux_process_target::low_supply_ptrace_register): Define.
739 Update the callers below.
741 (linux_process_target::fetch_register)
742 (linux_process_target::store_register)
744 * linux-x86-low.cc (the_low_target): Remove the op fields.
745 * linux-aarch64-low.cc (the_low_target): Ditto.
746 * linux-arm-low.cc (the_low_target): Ditto.
747 * linux-bfin-low.cc (the_low_target): Ditto.
748 * linux-crisv32-low.cc (the_low_target): Ditto.
749 * linux-m32r-low.cc (the_low_target): Ditto.
750 * linux-m68k-low.cc (the_low_target): Ditto.
751 * linux-sh-low.cc (the_low_target): Ditto.
752 * linux-sparc-low.cc (the_low_target): Ditto.
753 * linux-tic6x-low.cc (the_low_target): Ditto.
754 * linux-tile-low.cc (the_low_target): Ditto.
755 * linux-xtensa-low.cc (the_low_target): Ditto.
756 * linux-mips-low.cc (class mips_target)
757 <low_collect_ptrace_register>
758 <low_supply_ptrace_register>: Declare.
759 (mips_collect_ptrace_register): Turn into ...
760 (mips_target::low_collect_ptrace_register): ...this.
761 (mips_supply_ptrace_register): Turn into...
762 (mips_target::low_supply_ptrace_register): ...this.
763 (the_low_target): Remove the op fields.
764 * linux-ppc-low.cc (class ppc_target)
765 <low_collect_ptrace_register>
766 <low_supply_ptrace_register>: Declare.
767 (ppc_collect_ptrace_register): Turn into ...
768 (ppc_target::low_collect_ptrace_register): ...this.
769 (ppc_supply_ptrace_register): Turn into ...
770 (ppc_target::low_supply_ptrace_register): ...this.
771 (ppc_fill_gregset): Update for the calls to
772 low_collect_ptrace_register.
773 (the_low_target): Remove the op fields.
774 * linux-s390-low.cc (class s390_target)
775 <low_collect_ptrace_register>
776 <low_supply_ptrace_register>: Declare.
777 (s390_collect_ptrace_register): Turn into ...
778 (s390_target::low_collect_ptrace_register): ...this.
779 (s390_supply_ptrace_register): Turn into ...
780 (s390_target::low_supply_ptrace_register): ...this.
781 (s390_fill_gregset): Update for the calls to
782 low_collect_ptrace_register.
783 (the_low_target): Remove the op fields.
785 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
787 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
788 target ops into methods of linux_process_target.
790 * linux-low.h (struct linux_target_ops): Remove the ops.
791 (class linux_process_target) <check_stopped_by_watchpoint>
792 <low_stopped_by_watchpoint>
793 <low_stopped_data_address>: Declare.
794 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
795 (linux_process_target::check_stopped_by_watchpoint): ...this.
796 (linux_process_target::low_stopped_by_watchpoint): Define.
797 (linux_process_target::low_stopped_data_address): Define.
798 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
799 <low_stopped_data_address>: Declare.
800 (x86_stopped_by_watchpoint): Turn into...
801 (x86_target::low_stopped_by_watchpoint): ...this.
802 (x86_stopped_data_address): Turn into...
803 (x86_target::low_stopped_data_address): ...this.
804 (the_low_target): Remove the op fields.
805 * linux-aarch64-low.cc (class aarch64_target)
806 <low_stopped_by_watchpoint>
807 <low_stopped_data_address>: Declare.
808 (aarch64_stopped_by_watchpoint): Turn into...
809 (aarch64_target::low_stopped_by_watchpoint): ...this.
810 (aarch64_stopped_data_address): Turn into...
811 (aarch64_target::low_stopped_data_address): ...this.
812 (the_low_target): Remove the op fields.
813 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
814 <low_stopped_data_address>: Declare.
815 (arm_stopped_by_watchpoint): Turn into...
816 (arm_target::low_stopped_by_watchpoint): ...this.
817 (arm_stopped_data_address): Turn into...
818 (arm_target::low_stopped_data_address): ...this.
819 (the_low_target): Remove the op fields.
820 * linux-crisv32-low.cc (class crisv32_target)
821 <low_stopped_by_watchpoint>
822 <low_stopped_data_address>: Declare.
823 (cris_stopped_by_watchpoint): Turn into...
824 (crisv32_target::low_stopped_by_watchpoint): ...this.
825 (cris_stopped_data_address): Turn into...
826 (crisv32_target::low_stopped_data_address): ...this.
827 (the_low_target): Remove the op fields.
828 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
829 <low_stopped_data_address>: Declare.
830 (mips_stopped_by_watchpoint): Turn into...
831 (mips_target::low_stopped_by_watchpoint): ...this.
832 (mips_stopped_data_address): Turn into...
833 (mips_target::low_stopped_data_address): ...this.
834 (the_low_target): Remove the op fields.
835 * linux-bfin-low.cc (the_low_target): Remove the op fields.
836 * linux-m32r-low.cc (the_low_target): Ditto.
837 * linux-m68k-low.cc (the_low_target): Ditto.
838 * linux-ppc-low.cc (the_low_target): Ditto.
839 * linux-s390-low.cc (the_low_target): Ditto.
840 * linux-sh-low.cc (the_low_target): Ditto.
841 * linux-sparc-low.cc (the_low_target): Ditto.
842 * linux-tic6x-low.cc (the_low_target): Ditto.
843 * linux-tile-low.cc (the_low_target): Ditto.
844 * linux-xtensa-low.cc (the_low_target): Ditto.
846 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
848 Turn the 'insert_point' and 'remove_point' linux target ops into
849 methods of linux_process_target.
851 * linux-low.h (struct linux_target_ops): Remove the ops.
852 (class linux_process_target) <low_insert_point>
853 <low_remove_point>: Declare.
854 * linux-low.cc (linux_process_target::low_insert_point)
855 (linux_process_target::low_remove_point): Define.
856 (linux_process_target::insert_point)
857 (linux_process_target::remove_point): Update for calls to
858 low_insert_point and low_remove_point.
859 * linux-x86-low.cc (class x86_target) <low_insert_point>
860 <low_remove_point>: Declare.
861 (x86_insert_point): Turn into...
862 (x86_target::low_insert_point): ...this.
863 (x86_remove_point): Turn into...
864 (x86_target::low_remove_point): ...this.
865 (the_low_target): Remove the op fields.
866 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
867 <low_remove_point>: Declare.
868 (aarch64_insert_point): Turn into...
869 (aarch64_target::low_insert_point): ...this.
870 (aarch64_remove_point): Turn into...
871 (aarch64_target::low_remove_point): ...this.
872 (the_low_target): Remove the op fields.
873 * linux-arm-low.cc (class arm_target) <low_insert_point>
874 <low_remove_point>: Declare.
875 (arm_insert_point): Turn into...
876 (arm_target::low_insert_point): ...this.
877 (arm_remove_point): Turn into...
878 (arm_target::low_remove_point): ...this.
879 (the_low_target): Remove the op fields.
880 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
881 <low_remove_point>: Declare.
882 (crisv32_insert_point): Turn into...
883 (crisv32_target::low_insert_point): ...this.
884 (crisv32_remove_point): Turn into...
885 (crisv32_target::low_remove_point): ...this.
886 (the_low_target): Remove the op fields.
887 * linux-mips-low.cc (class mips_target) <low_insert_point>
888 <low_remove_point>: Declare.
889 (mips_insert_point): Turn into...
890 (mips_target::low_insert_point): ...this.
891 (mips_remove_point): Turn into...
892 (mips_target::low_remove_point): ...this.
893 (the_low_target): Remove the op fields.
894 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
895 <low_remove_point>: Declare.
896 (ppc_insert_point): Turn into...
897 (ppc_target::low_insert_point): ...this.
898 (ppc_remove_point): Turn into...
899 (ppc_target::low_remove_point): ...this.
900 (the_low_target): Remove the op fields.
901 * linux-bfin-low.cc (the_low_target): Remove the op fields.
902 * linux-m32r-low.cc (the_low_target): Ditto.
903 * linux-m68k-low.cc (the_low_target): Ditto.
904 * linux-s390-low.cc (the_low_target): Ditto.
905 * linux-sh-low.cc (the_low_target): Ditto.
906 * linux-sparc-low.cc (the_low_target): Ditto.
907 * linux-tic6x-low.cc (the_low_target): Ditto.
908 * linux-tile-low.cc (the_low_target): Ditto.
909 * linux-xtensa-low.cc (the_low_target): Ditto.
911 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
913 Remove the 'supports_z_point_type' linux target op and let the
914 concrete linux target define it by overriding the op declared in
915 process_stratum_target.
917 * linux-low.cc (linux_process_target::supports_z_point_type):
919 * linux-low.h (struct linux_target_ops): Remove the op.
920 (class linux_process_target) <supports_z_point_type>: Remove.
921 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
923 (x86_supports_z_point_type): Turn into...
924 (x86_target::supports_z_point_type): ...this.
925 (the_low_target): Remove the op field.
926 * linux-aarch64-low.cc (class aarch64_target)
927 <supports_z_point_type>: Declare.
928 (aarch64_supports_z_point_type): Turn into...
929 (aarch64_target::supports_z_point_type): ...this.
930 (the_low_target): Remove the op field.
931 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
933 (arm_supports_z_point_type): Turn into...
934 (arm_target::supports_z_point_type): ...this.
935 (the_low_target): Remove the op field.
936 * linux-crisv32-low.cc (class crisv32_target)
937 <supports_z_point_type>: Declare.
938 (cris_supports_z_point_type): Turn into...
939 (crisv32_target::supports_z_point_type): ...this.
940 (the_low_target): Remove the op field.
941 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
943 (mips_supports_z_point_type): Turn into...
944 (mips_target::supports_z_point_type): ...this.
945 (the_low_target): Remove the op field.
946 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
948 (ppc_supports_z_point_type): Turn into...
949 (ppc_target::supports_z_point_type): ...this.
950 (the_low_target): Remove the op field.
951 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
953 (s390_supports_z_point_type): Turn into...
954 (s390_target::supports_z_point_type): ...this.
955 (the_low_target): Remove the op field.
956 * linux-bfin-low.cc (the_low_target): Remove the op field.
957 * linux-m32r-low.cc (the_low_target): Ditto.
958 * linux-m68k-low.cc (the_low_target): Ditto.
959 * linux-sh-low.cc (the_low_target): Ditto.
960 * linux-sparc-low.cc (the_low_target): Ditto.
961 * linux-tic6x-low.cc (the_low_target): Ditto.
962 * linux-tile-low.cc (the_low_target): Ditto.
963 * linux-xtensa-low.cc (the_low_target): Ditto.
965 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
967 Turn the 'breakpoint_at' linux target op into a method of
968 linux_process_target.
970 * linux-low.h (struct linux_target_ops): Remove the op.
971 (class linux_process_target) <low_breakpoint_at>: Declare.
973 Update the callers below:
975 * linux-low.cc (linux_process_target::save_stop_reason)
976 (linux_process_target::thread_still_has_status_pending)
977 (linux_process_target::wait_1)
979 * linux-x86-low.cc (class x86_target)
980 <low_breakpoint_at>: Declare.
981 (x86_breakpoint_at): Turn into...
982 (x86_target::low_breakpoint_at): ...this.
983 (the_low_target): Remove the op field.
984 * linux-aarch64-low.cc (class aarch64_target)
985 <low_breakpoint_at>: Declare.
986 (aarch64_breakpoint_at): Turn into...
987 (aarch64_target::low_breakpoint_at): ...this.
988 (the_low_target): Remove the op field.
989 * linux-arm-low.cc (class arm_target)
990 <low_breakpoint_at>: Declare.
991 (arm_target::low_breakpoint_at): Define.
992 (the_low_target): Remove the op field.
993 * linux-bfin-low.cc (class bfin_target)
994 <low_breakpoint_at>: Declare.
995 (bfin_breakpoint_at): Turn into...
996 (bfin_target::low_breakpoint_at): ...this.
997 (the_low_target): Remove the op field.
998 * linux-cris-low.cc (class cris_target)
999 <low_breakpoint_at>: Declare.
1000 (cris_breakpoint_at): Turn into...
1001 (cris_target::low_breakpoint_at): ...this.
1002 (the_low_target): Remove the op field.
1003 * linux-crisv32-low.cc (class crisv32_target)
1004 <low_breakpoint_at>: Declare.
1005 (crisv32_breakpoint_at): Turn into...
1006 (crisv32_target::low_breakpoint_at): ...this.
1007 (the_low_target): Remove the op field.
1008 * linux-ia64-low.cc (class ia64_target)
1009 <low_breakpoint_at>: Declare.
1010 (ia64_target::low_breakpoint_at): Define.
1011 * linux-m32r-low.cc (class m32r_target)
1012 <low_breakpoint_at>: Declare.
1013 (m32r_breakpoint_at): Turn into...
1014 (m32r_target::low_breakpoint_at): ...this.
1015 (the_low_target): Remove the op field.
1016 * linux-m68k-low.cc (class m68k_target)
1017 <low_breakpoint_at>: Declare.
1018 (m68k_breakpoint_at): Turn into...
1019 (m68k_target::low_breakpoint_at): ...this.
1020 (the_low_target): Remove the op field.
1021 * linux-mips-low.cc (class mips_target)
1022 <low_breakpoint_at>: Declare.
1023 (mips_breakpoint_at): Turn into...
1024 (mips_target::low_breakpoint_at): ...this.
1025 (the_low_target): Remove the op field.
1026 * linux-nios2-low.cc (class nios2_target)
1027 <low_breakpoint_at>: Declare.
1028 (nios2_breakpoint_at): Turn into...
1029 (nios2_target::low_breakpoint_at): ...this.
1030 (the_low_target): Remove the op field.
1031 * linux-ppc-low.cc (class ppc_target)
1032 <low_breakpoint_at>: Declare.
1033 (ppc_breakpoint_at): Turn into...
1034 (ppc_target::low_breakpoint_at): ...this.
1035 (the_low_target): Remove the op field.
1036 * linux-riscv-low.cc (class riscv_target)
1037 <low_breakpoint_at>: Declare.
1038 (riscv_breakpoint_at): Turn into...
1039 (riscv_target::low_breakpoint_at): ...this.
1040 (the_low_target): Remove the op field.
1041 * linux-s390-low.cc (class s390_target)
1042 <low_breakpoint_at>: Declare.
1043 (s390_breakpoint_at): Turn into...
1044 (s390_target::low_breakpoint_at): ...this.
1045 (the_low_target): Remove the op field.
1046 * linux-sh-low.cc (class sh_target)
1047 <low_breakpoint_at>: Declare.
1048 (sh_breakpoint_at): Turn into...
1049 (sh_target::low_breakpoint_at): ...this.
1050 (the_low_target): Remove the op field.
1051 * linux-sparc-low.cc (class sparc_target)
1052 <low_breakpoint_at>: Declare.
1053 (sparc_breakpoint_at): Turn into...
1054 (sparc_target::low_breakpoint_at): ...this.
1055 (the_low_target): Remove the op field.
1056 * linux-tic6x-low.cc (class tic6x_target)
1057 <low_breakpoint_at>: Declare.
1058 (tic6x_breakpoint_at): Turn into...
1059 (tic6x_target::low_breakpoint_at): ...this.
1060 (the_low_target): Remove the op field.
1061 * linux-tile-low.cc (class tile_target)
1062 <low_breakpoint_at>: Declare.
1063 (tile_breakpoint_at): Turn into...
1064 (tile_target::low_breakpoint_at): ...this.
1065 (the_low_target): Remove the op field.
1066 * linux-xtensa-low.cc (class xtensa_target)
1067 <low_breakpoint_at>: Declare.
1068 (xtensa_breakpoint_at): Turn into...
1069 (xtensa_target::low_breakpoint_at): ...this.
1070 (the_low_target): Remove the op field.
1072 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1074 Turn the 'decr_pc_after_break' linux_target_ops field into
1075 a method of linux_process_target.
1077 * linux-low.h (struct linux_target_ops)
1078 <decr_pc_after_break>: Remove.
1079 (class linux_process_target) <low_decr_pc_after_break>: New method
1081 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1082 New method implementation.
1084 Update the users below.
1086 (linux_process_target::save_stop_reason)
1087 (linux_process_target::wait_1)
1088 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1090 (x86_target::low_decr_pc_after_break): New method implementation.
1091 (the_low_target): Remove the field.
1092 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1094 (bfin_target::low_decr_pc_after_break): New method implementation.
1095 (the_low_target): Remove the field.
1096 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1098 (m68k_target::low_decr_pc_after_break): New method implementation.
1099 (the_low_target): Remove the field.
1100 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1102 (s390_target::low_decr_pc_after_break): New method implementation.
1103 (the_low_target): Remove the field.
1104 * linux-aarch64-low.cc (the_low_target): Remove the field.
1105 * linux-arm-low.cc (the_low_target): Remove the field.
1106 * linux-cris-low.cc (the_low_target): Remove the field.
1107 * linux-crisv32-low.cc (the_low_target): Remove the field.
1108 * linux-m32r-low.cc (the_low_target): Remove the field.
1109 * linux-mips-low.cc (the_low_target): Remove the field.
1110 * linux-nios2-low.cc (the_low_target): Remove the field.
1111 * linux-ppc-low.cc (the_low_target): Remove the field.
1112 * linux-riscv-low.cc (the_low_target): Remove the field.
1113 * linux-sh-low.cc (the_low_target): Remove the field.
1114 * linux-sparc-low.cc (the_low_target): Remove the field.
1115 * linux-tic6x-low.cc (the_low_target): Remove the field.
1116 * linux-tile-low.cc (the_low_target): Remove the field.
1117 * linux-xtensa-low.cc (the_low_target): Remove the field.
1119 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1121 Remove the 'supports_software_single_step' linux target op and let
1122 the concrete linux target define it by overriding the op in
1123 process_stratum_target.
1124 Turn the 'get_next_pcs' linux target op into a method of
1125 linux_process_target.
1127 * linux-low.h (struct linux_target_ops): Remove the ops.
1128 (class linux_process_target) <supports_software_single_step>:
1130 <low_get_next_pcs>: Declare.
1131 * linux-low.cc (can_software_single_step): Remove.
1132 (linux_process_target::low_get_next_pcs): Define.
1133 (linux_process_target::supports_software_single_step): Remove.
1135 Update the callers below.
1137 (linux_process_target::handle_extended_wait)
1138 (linux_process_target::wait_1)
1139 (linux_process_target::install_software_single_step_breakpoints)
1140 (linux_process_target::single_step)
1141 (linux_process_target::thread_needs_step_over)
1142 (linux_process_target::proceed_one_lwp)
1143 (linux_process_target::supports_range_stepping)
1145 * linux-x86-low.cc (the_low_target): Remove the op field.
1146 * linux-aarch64-low.cc (the_low_target): Ditto.
1147 * linux-bfin-low.cc (the_low_target): Ditto.
1148 * linux-cris-low.cc (the_low_target): Ditto.
1149 * linux-crisv32-low.cc (the_low_target): Ditto.
1150 * linux-m32r-low.cc (the_low_target): Ditto.
1151 * linux-m68k-low.cc (the_low_target): Ditto.
1152 * linux-mips-low.cc (the_low_target): Ditto.
1153 * linux-nios2-low.cc (the_low_target): Ditto.
1154 * linux-ppc-low.cc (the_low_target): Ditto.
1155 * linux-riscv-low.cc (the_low_target): Ditto.
1156 * linux-s390-low.cc (the_low_target): Ditto.
1157 * linux-sh-low.cc (the_low_target): Ditto.
1158 * linux-sparc-low.cc (the_low_target): Ditto.
1159 * linux-tic6x-low.cc (the_low_target): Ditto.
1160 * linux-tile-low.cc (the_low_target): Ditto.
1161 * linux-xtensa-low.cc (the_low_target): Ditto.
1162 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1163 <supports_software_single_step>: Declare.
1164 (arm_target::supports_software_single_step): Define.
1165 (arm_gdbserver_get_next_pcs): Turn into...
1166 (arm_target::low_get_next_pcs): ...this.
1167 (the_low_target): Remove the op field.
1169 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1171 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1172 the concrete linux target define it by overriding the op
1173 in process_stratum_target.
1175 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1177 * linux-low.h (struct linux_target_ops): Remove the op.
1178 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1179 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1181 (x86_sw_breakpoint_from_kind): Turn into...
1182 (x86_target::sw_breakpoint_from_kind): ...this.
1183 (the_low_target): Remove the op field.
1184 * linux-aarch64-low.cc (class aarch64_target)
1185 <sw_breakpoint_from_kind>: Declare.
1186 (aarch64_sw_breakpoint_from_kind): Turn into...
1187 (aarch64_target::sw_breakpoint_from_kind): ...this.
1188 (the_low_target): Remove the op field.
1189 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1191 (arm_target::sw_breakpoint_from_kind): Define.
1192 (the_low_target): Remove the op field.
1193 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1195 (bfin_sw_breakpoint_from_kind): Turn into...
1196 (bfin_target::sw_breakpoint_from_kind): ...this.
1197 (the_low_target): Remove the op field.
1198 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1200 (cris_sw_breakpoint_from_kind): Turn into...
1201 (cris_target::sw_breakpoint_from_kind): ...this.
1202 (the_low_target): Remove the op field.
1203 * linux-crisv32-low.cc (class crisv32_target)
1204 <sw_breakpoint_from_kind>: Declare.
1205 (cris_sw_breakpoint_from_kind): Turn into...
1206 (crisv32_target::sw_breakpoint_from_kind): ...this.
1207 (the_low_target): Remove the op field.
1208 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1210 (ia64_target::sw_breakpoint_from_kind): Define.
1211 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1213 (m32r_sw_breakpoint_from_kind): Turn into...
1214 (m32r_target::sw_breakpoint_from_kind): ...this.
1215 (the_low_target): Remove the op field.
1216 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1218 (m68k_sw_breakpoint_from_kind): Turn into...
1219 (m68k_target::sw_breakpoint_from_kind): ...this.
1220 (the_low_target): Remove the op field.
1221 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1223 (mips_sw_breakpoint_from_kind): Turn into...
1224 (mips_target::sw_breakpoint_from_kind): ...this.
1225 (the_low_target): Remove the op field.
1226 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1228 (nios2_sw_breakpoint_from_kind): Turn into...
1229 (nios2_target::sw_breakpoint_from_kind): ...this.
1230 (the_low_target): Remove the op field.
1231 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1233 (ppc_sw_breakpoint_from_kind): Turn into...
1234 (ppc_target::sw_breakpoint_from_kind): ...this.
1235 (the_low_target): Remove the op field.
1236 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1238 (riscv_sw_breakpoint_from_kind): Turn into...
1239 (riscv_target::sw_breakpoint_from_kind): ...this.
1240 (the_low_target): Remove the op field.
1241 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1243 (s390_sw_breakpoint_from_kind): Turn into...
1244 (s390_target::sw_breakpoint_from_kind): ...this.
1245 (the_low_target): Remove the op field.
1246 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1248 (sh_sw_breakpoint_from_kind): Turn into...
1249 (sh_target::sw_breakpoint_from_kind): ...this.
1250 (the_low_target): Remove the op field.
1251 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1253 (sparc_sw_breakpoint_from_kind): Turn into...
1254 (sparc_target::sw_breakpoint_from_kind): ...this.
1255 (the_low_target): Remove the op field.
1256 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1258 (tic6x_sw_breakpoint_from_kind): Turn into...
1259 (tic6x_target::sw_breakpoint_from_kind): ...this.
1260 (the_low_target): Remove the op field.
1261 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1263 (tile_sw_breakpoint_from_kind): Turn into...
1264 (tile_target::sw_breakpoint_from_kind): ...this.
1265 (the_low_target): Remove the op field.
1266 * linux-xtensa-low.cc (class xtensa_target)
1267 <sw_breakpoint_from_kind>: Declare.
1268 (xtensa_sw_breakpoint_from_kind): Turn into...
1269 (xtensa_target::sw_breakpoint_from_kind): ...this.
1270 (the_low_target): Remove the op field.
1272 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1274 Remove the 'breakpoint_kind_from_pc' and
1275 'breakpoint_kind_from_current_state' linux target ops, and let the
1276 concrete linux target define them by overriding the ops of
1277 process_stratum_target.
1279 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1281 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1282 * linux-low.h (struct linux_target_ops): Remove ops.
1283 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1284 <breakpoint_kind_from_current_state>: Remove.
1285 * linux-x86-low.cc (the_low_target): Remove the op fields.
1286 * linux-bfin-low.cc (the_low_target): Ditto.
1287 * linux-cris-low.cc (the_low_target): Ditto.
1288 * linux-crisv32-low.cc (the_low_target): Ditto.
1289 * linux-m32r-low.cc (the_low_target): Ditto.
1290 * linux-m68k-low.cc (the_low_target): Ditto.
1291 * linux-mips-low.cc (the_low_target): Ditto.
1292 * linux-nios2-low.cc (the_low_target): Ditto.
1293 * linux-ppc-low.cc (the_low_target): Ditto.
1294 * linux-s390-low.cc (the_low_target): Ditto.
1295 * linux-sh-low.cc (the_low_target): Ditto.
1296 * linux-sparc-low.cc (the_low_target): Ditto.
1297 * linux-tic6x-low.cc (the_low_target): Ditto.
1298 * linux-tile-low.cc (the_low_target): Ditto.
1299 * linux-xtensa-low.cc (the_low_target): Ditto.
1300 * linux-aarch64-low.cc (class aarch64_target)
1301 <breakpoint_kind_from_pc>
1302 <breakpoint_kind_from_current_state>: Declare.
1303 (aarch64_breakpoint_kind_from_pc): Turn into...
1304 (aarch64_target::breakpoint_kind_from_pc): ...this.
1305 (aarch64_breakpoint_kind_from_current_state): Turn into...
1306 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1307 (the_low_target): Remove the op fields.
1308 * linux-arm-low.cc (class arm_target):
1309 <breakpoint_kind_from_pc>
1310 <breakpoint_kind_from_current_state>: Declare.
1311 (arm_target::breakpoint_kind_from_pc): Define.
1312 (arm_target::breakpoint_kind_from_current_state): Define.
1313 (the_low_target): Remove the op fields.
1314 * linux-riscv-low.cc (class riscv_target):
1315 <breakpoint_kind_from_pc>: Declare.
1316 (riscv_breakpoint_kind_from_pc): Turn into...
1317 (riscv_target::breakpoint_kind_from_pc): ...this.
1318 (the_low_target): Remove the op fields.
1320 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1322 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1323 of linux_process_target.
1325 * linux-low.h (struct linux_target_ops): Remove the ops.
1326 (class linux_process_target) <low_supports_breakpoints>
1328 <low_set_pc>: Declare.
1329 * linux-low.cc (supports_breakpoints): Turn into...
1330 (linux_process_target::low_supports_breakpoints): ...this.
1331 (linux_process_target::low_get_pc): Define.
1332 (linux_process_target::low_set_pc): Define.
1334 Update the callers below.
1336 (linux_process_target::get_pc)
1337 (linux_process_target::save_stop_reason)
1338 (linux_process_target::maybe_move_out_of_jump_pad)
1339 (linux_process_target::wait_1)
1340 (linux_process_target::resume_one_lwp_throw)
1341 (linux_process_target::resume)
1342 (linux_process_target::proceed_all_lwps)
1343 (linux_process_target::read_pc)
1344 (linux_process_target::write_pc)
1346 * linux-x86-low.cc (class linux_process_target)
1347 <low_supports_breakpoints>
1349 <low_set_pc>: Declare.
1350 (x86_target::low_supports_breakpoints): Define.
1351 (x86_get_pc): Turn into...
1352 (x86_target::low_get_pc): ...this.
1353 (x86_set_pc): Turn into...
1354 (x86_target::low_set_pc): ...this.
1355 (the_low_target): Remove the op fields.
1356 * linux-arm-low.cc (class arm_target)
1357 <low_supports_breakpoints>
1359 <low_set_pc>: Declare.
1360 (arm_target::low_supports_breakpoints)
1361 (arm_target::low_get_pc)
1362 (arm_target::low_set_pc): Define.
1363 (the_low_target): Remove the op fields.
1364 * linux-bfin-low.cc (class bfin_target)
1365 <low_supports_breakpoints>
1367 <low_set_pc>: Declare.
1368 (bfin_target::low_supports_breakpoints)
1369 (bfin_target::low_get_pc)
1370 (bfin_target::low_set_pc): Define.
1371 (the_low_target): Remove the op fields.
1372 * linux-cris-low.cc (class cris_target)
1373 <low_supports_breakpoints>
1375 <low_set_pc>: Declare.
1376 (cris_target::low_supports_breakpoints)
1377 (cris_target::low_get_pc)
1378 (cris_target::low_set_pc): Define.
1379 (the_low_target): Remove the op fields.
1380 * linux-crisv32-low.cc (class crisv32_target)
1381 <low_supports_breakpoints>
1383 <low_set_pc>: Declare.
1384 (crisv32_target::low_supports_breakpoints)
1385 (crisv32_target::low_get_pc)
1386 (crisv32_target::low_set_pc): Define.
1387 (the_low_target): Remove the op fields.
1388 * linux-m32r-low.cc (class m32r_target)
1389 <low_supports_breakpoints>
1391 <low_set_pc>: Declare.
1392 (m32r_target::low_supports_breakpoints)
1393 (m32r_target::low_get_pc)
1394 (m32r_target::low_set_pc): Define.
1395 (the_low_target): Remove the op fields.
1396 * linux-m68k-low.cc (class m68k_target)
1397 <low_supports_breakpoints>
1399 <low_set_pc>: Declare.
1400 (m68k_target::low_supports_breakpoints)
1401 (m68k_target::low_get_pc)
1402 (m68k_target::low_set_pc): Define.
1403 (the_low_target): Remove the op fields.
1404 * linux-nios2-low.cc (class nios2_target)
1405 <low_supports_breakpoints>
1407 <low_set_pc>: Declare.
1408 (nios2_target::low_supports_breakpoints)
1409 (nios2_target::low_get_pc)
1410 (nios2_target::low_set_pc): Define.
1411 (the_low_target): Remove the op fields.
1412 * linux-sh-low.cc (class sh_target)
1413 <low_supports_breakpoints>
1415 <low_set_pc>: Declare.
1416 (sh_target::low_supports_breakpoints)
1417 (sh_target::low_get_pc)
1418 (sh_target::low_set_pc): Define.
1419 (the_low_target): Remove the op fields.
1420 * linux-xtensa-low.cc (class xtensa_target)
1421 <low_supports_breakpoints>
1423 <low_set_pc>: Declare.
1424 (xtensa_target::low_supports_breakpoints)
1425 (xtensa_target::low_get_pc)
1426 (xtensa_target::low_set_pc): Define.
1427 (the_low_target): Remove the op fields.
1428 * linux-sparc-low.cc (class sparc_target)
1429 <low_supports_breakpoints>
1430 <low_get_pc>: Declare.
1431 (sparc_target::low_supports_breakpoints)
1432 (sparc_target::low_get_pc): Define.
1433 (the_low_target): Remove the op fields.
1434 * linux-tile-low.cc (class tile_target)
1435 <low_supports_breakpoints>
1437 <low_set_pc>: Declare.
1438 (tile_target::low_supports_breakpoints)
1439 (tile_target::low_get_pc)
1440 (tile_target::low_set_pc): Define.
1441 (the_low_target): Remove the op fields.
1442 * linux-aarch64-low.cc (class aarch64_target)
1443 <low_supports_breakpoints>
1445 <low_set_pc>: Declare.
1446 (aarch64_target::low_supports_breakpoints): Define.
1447 (aarch64_get_pc): Turn into...
1448 (aarch64_target::low_get_pc): ...this.
1449 (aarch64_set_pc): Turn into...
1450 (aarch64_target::low_set_pc): ...this.
1451 (the_low_target): Remove the op fields.
1452 * linux-mips-low.cc (class mips_target)
1453 <low_supports_breakpoints>
1455 <low_set_pc>: Declare.
1456 (mips_target::low_supports_breakpoints): Define.
1457 (mips_get_pc): Turn into...
1458 (mips_target::low_get_pc): ...this.
1459 (mips_set_pc): Turn into...
1460 (mips_target::low_set_pc): ...this.
1461 (the_low_target): Remove the op fields.
1462 * linux-ppc-low.cc (class ppc_target)
1463 <low_supports_breakpoints>
1465 <low_set_pc>: Declare.
1466 (ppc_target::low_supports_breakpoints): Define.
1467 (ppc_get_pc): Turn into...
1468 (ppc_target::low_get_pc): ...this.
1469 (ppc_set_pc): Turn into...
1470 (ppc_target::low_set_pc): ...this.
1471 (the_low_target): Remove the op fields.
1472 * linux-riscv-low.cc (class riscv_target)
1473 <low_supports_breakpoints>
1475 <low_set_pc>: Declare.
1476 (riscv_target::low_supports_breakpoints): Define.
1477 (riscv_get_pc): Turn into...
1478 (riscv_target::low_get_pc): ...this.
1479 (riscv_set_pc): Turn into...
1480 (riscv_target::low_set_pc): ...this.
1481 (the_low_target): Remove the op fields.
1482 * linux-s390-low.cc (class s390_target)
1483 <low_supports_breakpoints>
1485 <low_set_pc>: Declare.
1486 (s390_target::low_supports_breakpoints): Define.
1487 (s390_get_pc): Turn into...
1488 (s390_target::low_get_pc): ...this.
1489 (s390_set_pc): Turn into...
1490 (s390_target::low_set_pc): ...this.
1491 (the_low_target): Remove the op fields.
1492 * linux-tic6x-low.cc (class tic6x_target)
1493 <low_supports_breakpoints>
1495 <low_set_pc>: Declare.
1496 (tic6x_target::low_supports_breakpoints): Define.
1497 (tic6x_get_pc): Turn into...
1498 (tic6x_target::low_get_pc): ...this.
1499 (tic6x_set_pc): Turn into...
1500 (tic6x_target::low_set_pc): ...this.
1501 (the_low_target): Remove the op fields.
1503 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1505 Turn some more static methods in linux-low into private methods
1506 of linux_process_target.
1508 * linux-low.cc (get_pc): Turn into...
1509 (linux_process_target::get_pc): ...this.
1510 (save_stop_reason): Turn into...
1511 (linux_process_target::save_stop_reason): ...this.
1512 (thread_still_has_status_pending_p): Turn into...
1513 (linux_process_target::thread_still_has_status_pending): ...this.
1514 (status_pending_p_callback): Turn into...
1515 (linux_process_target::status_pending_p_callback): ...this.
1516 (resume_stopped_resumed_lwps): Turn into...
1517 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1518 (install_software_single_step_breakpoints): Turn into...
1519 (linux_process_target::install_software_single_step_breakpoints):
1521 (single_step): Turn into...
1522 (linux_process_target::single_step): ...this.
1523 (linux_resume_one_lwp_throw): Turn into...
1524 (linux_process_target::resume_one_lwp_throw): ...this.
1525 (linux_resume_one_lwp): Turn into...
1526 (linux_process_target::resume_one_lwp): ...this.
1527 (resume_status_pending_p): Turn into...
1528 (linux_process_target::resume_status_pending): ...this.
1529 (need_step_over_p): Turn into...
1530 (linux_process_target::thread_needs_step_over): ...this.
1531 (linux_resume_one_thread): Turn into...
1532 (linux_process_target::resume_one_thread): ...this.
1533 (proceed_one_lwp): Turn into...
1534 (linux_process_target::proceed_one_lwp): ...this.
1535 (unsuspend_and_proceed_one_lwp): Turn into...
1536 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1538 Update the calls/references to the above functions below.
1540 (linux_process_target::handle_extended_wait)
1541 (linux_process_target::filter_event)
1542 (linux_process_target::wait_for_event_filtered)
1543 (linux_process_target::wait_1)
1544 (linux_process_target::move_out_of_jump_pad)
1545 (linux_process_target::start_step_over)
1546 (linux_process_target::resume)
1547 (linux_process_target::proceed_all_lwps)
1548 (regsets_store_inferior_registers)
1549 (linux_process_target::store_register)
1551 * linux-low.h (class linux_process_target)
1554 <thread_still_has_status_pending>
1555 <status_pending_p_callback>
1556 <resume_stopped_resumed_lwps>
1557 <install_software_single_step_breakpoints>
1559 <resume_one_lwp_throw>
1561 <resume_status_pending>
1562 <thread_needs_step_over>
1565 <unsuspend_and_proceed_one_lwp>: Declare.
1567 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1569 Turn the 'fetch_register' linux target op into a method of
1570 linux_process_target.
1572 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1573 (class linux_process_target) <low_fetch_register>: Declare.
1574 * linux-x86-low.cc (the_low_target)
1575 * linux-aarch64-low.cc (the_low_target)
1576 * linux-arm-low.cc (the_low_target)
1577 * linux-bfin-low.cc (the_low_target)
1578 * linux-cris-low.cc (the_low_target)
1579 * linux-crisv32-low.cc (the_low_target)
1580 * linux-m32r-low.cc (the_low_target)
1581 * linux-m68k-low.cc (the_low_target)
1582 * linux-nios2-low.cc (the_low_target)
1583 * linux-ppc-low.cc (the_low_target)
1584 * linux-s390-low.cc (the_low_target)
1585 * linux-sh-low.cc (the_low_target)
1586 * linux-sparc-low.cc (the_low_target)
1587 * linux-tic6x-low.cc (the_low_target)
1588 * linux-tile-low.cc (the_low_target)
1589 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1590 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1592 (ia64_fetch_register): Turn into...
1593 (ia64_target::low_fetch_register): ...this.
1594 (the_low_target): Remove the op field.
1595 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1597 (mips_fetch_register): Turn into...
1598 (mips_target::low_fetch_register): ...this.
1599 (the_low_target): Remove the op field.
1600 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1602 (riscv_fetch_register): Turn into...
1603 (riscv_target::low_fetch_register): ...this.
1604 (the_low_target): Remove the op field.
1606 Update the callers below.
1608 * linux-low.cc (linux_process_target::fetch_registers)
1609 (linux_process_target::low_fetch_register)
1611 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1613 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1614 linux target ops into methods of linux_process_target.
1616 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1617 (class linux_process_target) <fetch_register>
1619 <usr_fetch_inferior_registers>
1620 <usr_store_inferior_registers>
1621 <low_cannot_fetch_register>
1622 <low_cannot_fetch_register> Declare.
1623 * linux-low.cc (fetch_register): Turn into...
1624 (linux_process_target::fetch_register): ...this.
1625 (store_register): Turn into ...
1626 (linux_process_target::store_register): ...this.
1627 (usr_fetch_inferior_registers): Turn into...
1628 (linux_process_target::usr_fetch_inferior_registers): ...this.
1629 (usr_store_inferior_registers): Turn into...
1630 (linux_process_target::usr_store_inferior_registers): ...this.
1631 * linux-x86-low.cc (class x86_target)
1632 <low_cannot_fetch_register>
1633 <low_cannot_store_register>: Declare.
1634 (x86_cannot_store_register): Turn into...
1635 (x86_target::low_cannot_store_register): ...this.
1636 (x86_cannot_fetch_register): Turn into...
1637 (x86_target::low_cannot_fetch_register): ...this.
1638 (the_low_target): Remove the target op fields.
1639 * linux-aarch64-low.cc (class aarch64_target)
1640 <low_cannot_fetch_register>
1641 <low_cannot_store_register>: Declare.
1642 (aarch64_target::low_cannot_fetch_register)
1643 (aarch64_target::low_cannot_store_register): Define.
1644 (the_low_target): Remove the op fields.
1645 * linux-arm-low.cc (class arm_target)
1646 <low_cannot_fetch_register>
1647 <low_cannot_store_register>: Declare.
1648 (arm_cannot_fetch_register): Turn into...
1649 (arm_target::low_cannot_fetch_register): ...this.
1650 (arm_cannot_store_register): Turn into...
1651 (arm_target::low_cannot_store_register): ...this.
1652 (the_low_target): Remove the op fields.
1653 * linux-bfin-low.cc (class bfin_target)
1654 <low_cannot_fetch_register>
1655 <low_cannot_store_register>: Declare.
1656 (bfin_cannot_fetch_register): Turn into...
1657 (bfin_target::low_cannot_fetch_register): ...this.
1658 (bfin_cannot_store_register): Turn into...
1659 (bfin_target::low_cannot_store_register): ...this.
1660 (the_low_target): Remove the op fields.
1661 * linux-cris-low.cc (class cris_target)
1662 <low_cannot_fetch_register>
1663 <low_cannot_store_register>: Declare.
1664 (cris_cannot_fetch_register): Turn into...
1665 (cris_target::low_cannot_fetch_register): ...this.
1666 (cris_cannot_store_register): Turn into...
1667 (cris_target::low_cannot_store_register): ...this.
1668 (the_low_target): Remove the op fields.
1669 * linux-crisv32-low.cc (class crisv32_target)
1670 <low_cannot_fetch_register>
1671 <low_cannot_store_register>: Declare.
1672 (crisv32_target::low_cannot_fetch_register)
1673 (crisv32_target::low_cannot_store_register): Define.
1674 (the_low_target): Remove the op fields.
1675 * linux-ia64-low.cc (class ia64_target)
1676 <low_cannot_fetch_register>
1677 <low_cannot_store_register>: Declare.
1678 (ia64_cannot_fetch_register): Turn into...
1679 (ia64_target::low_cannot_fetch_register): ...this.
1680 (ia64_cannot_store_register): Turn into...
1681 (ia64_target::low_cannot_store_register): ...this.
1682 (the_low_target): Remove the op fields.
1683 * linux-m32r-low.cc (class m32r_target)
1684 <low_cannot_fetch_register>
1685 <low_cannot_store_register>: Declare.
1686 (m32r_cannot_fetch_register): Turn into...
1687 (m32r_target::low_cannot_fetch_register): ...this.
1688 (m32r_cannot_store_register): Turn into...
1689 (m32r_target::low_cannot_store_register): ...this.
1690 (the_low_target): Remove the op fields.
1691 * linux-m68k-low.cc (class m68k_target)
1692 <low_cannot_fetch_register>
1693 <low_cannot_store_register>: Declare.
1694 (m68k_cannot_fetch_register): Turn into...
1695 (m68k_target::low_cannot_fetch_register): ...this.
1696 (m68k_cannot_store_register): Turn into...
1697 (m68k_target::low_cannot_store_register): ...this.
1698 (the_low_target): Remove the op fields.
1699 * linux-mips-low.cc (class mips_target)
1700 <low_cannot_fetch_register>
1701 <low_cannot_store_register>: Declare.
1702 (mips_cannot_fetch_register): Turn into...
1703 (mips_target::low_cannot_fetch_register): ...this.
1704 (mips_cannot_store_register): Turn into...
1705 (mips_target::low_cannot_store_register): ...this.
1706 (get_usrregs_info): Inline at the call sites in
1707 low_cannot_fetch_register and low_cannot_store_register,
1709 (the_low_target): Remove the op fields.
1710 * linux-nios2-low.cc (class nios2_target)
1711 <low_cannot_fetch_register>
1712 <low_cannot_store_register>: Declare.
1713 (nios2_cannot_fetch_register): Turn into...
1714 (nios2_target::low_cannot_fetch_register): ...this.
1715 (nios2_cannot_store_register): Turn into...
1716 (nios2_target::low_cannot_store_register): ...this.
1717 (the_low_target): Remove the op fields.
1718 * linux-ppc-low.cc (class ppc_target)
1719 <low_cannot_fetch_register>
1720 <low_cannot_store_register>: Declare.
1721 (ppc_cannot_fetch_register): Turn into...
1722 (ppc_target::low_cannot_fetch_register): ...this.
1723 (ppc_cannot_store_register): Turn into...
1724 (ppc_target::low_cannot_store_register): ...this.
1725 (the_low_target): Remove the op fields.
1726 * linux-riscv-low.cc (class riscv_target)
1727 <low_cannot_fetch_register>
1728 <low_cannot_store_register>: Declare.
1729 (riscv_target::low_cannot_fetch_register)
1730 (riscv_target::low_cannot_store_register): Define.
1731 (the_low_target): Remove the op fields.
1732 * linux-s390-low.cc (class s390_target)
1733 <low_cannot_fetch_register>
1734 <low_cannot_store_register>: Declare.
1735 (s390_cannot_fetch_register): Turn into...
1736 (s390_target::low_cannot_fetch_register): ...this.
1737 (s390_cannot_store_register): Turn into...
1738 (s390_target::low_cannot_store_register): ...this.
1739 (the_low_target): Remove the op fields.
1740 * linux-sh-low.cc (class sh_target)
1741 <low_cannot_fetch_register>
1742 <low_cannot_store_register>: Declare.
1743 (sh_cannot_fetch_register): Turn into...
1744 (sh_target::low_cannot_fetch_register): ...this.
1745 (sh_cannot_store_register): Turn into...
1746 (sh_target::low_cannot_store_register): ...this.
1747 (the_low_target): Remove the op fields.
1748 * linux-sparc-low.cc (class sparc_target)
1749 <low_cannot_fetch_register>
1750 <low_cannot_store_register>: Declare.
1751 (sparc_cannot_fetch_register): Turn into...
1752 (sparc_target::low_cannot_fetch_register): ...this.
1753 (sparc_cannot_store_register): Turn into...
1754 (sparc_target::low_cannot_store_register): ...this.
1755 (the_low_target): Remove the op fields.
1756 * linux-tic6x-low.cc (class tic6x_target)
1757 <low_cannot_fetch_register>
1758 <low_cannot_store_register>: Declare.
1759 (tic6x_cannot_fetch_register): Turn into...
1760 (tic6x_target::low_cannot_fetch_register): ...this.
1761 (tic6x_cannot_store_register): Turn into...
1762 (tic6x_target::low_cannot_store_register): ...this.
1763 (the_low_target): Remove the op fields.
1764 * linux-tile-low.cc (class tile_target)
1765 <low_cannot_fetch_register>
1766 <low_cannot_store_register>: Declare.
1767 (tile_cannot_fetch_register): Turn into...
1768 (tile_target::low_cannot_fetch_register): ...this.
1769 (tile_cannot_store_register): Turn into...
1770 (tile_target::low_cannot_store_register): ...this.
1771 (the_low_target): Remove the op fields.
1772 * linux-xtensa-low.cc (class xtensa_target)
1773 <low_cannot_fetch_register>
1774 <low_cannot_store_register>: Declare.
1775 (xtensa_target::low_cannot_fetch_register)
1776 (xtensa_target::low_cannot_store_register): Define.
1777 (the_low_target): Remove the op fields.
1779 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1781 Turn the 'regs_info' linux target op into a method of
1782 linux_process_target.
1784 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1785 (class linux_process_target) <get_regs_info>: Define.
1787 Update the callers below.
1789 * linux-low.cc (linux_process_target::fetch_registers)
1790 (linux_process_target::store_registers)
1791 * proc-service.cc (gregset_info)
1793 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1794 (x86_linux_regs_info): Turn into ...
1795 (x86_target::get_regs_info): ...this.
1796 (the_low_target): Remove the op field.
1797 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1799 (aarch64_regs_info): Turn into ...
1800 (aarch64_target::get_regs_info): ...this.
1801 (the_low_target): Remove the op field.
1802 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1803 (arm_regs_info): Turn into ...
1804 (arm_target::get_regs_info): ...this.
1805 (the_low_target): Remove the op field.
1806 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1807 (bfin_regs_info): Turn into ...
1808 (bfin_target::get_regs_info): ...this.
1809 (the_low_target): Remove the op field.
1810 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1811 (cris_regs_info): Turn into ...
1812 (cris_target::get_regs_info): ...this.
1813 (the_low_target): Remove the op field.
1814 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1816 (crisv32_regs_info): Turn into ...
1817 (crisv32_target::get_regs_info): ...this.
1818 (the_low_target): Remove the op field.
1819 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1820 (ia64_regs_info): Turn into ...
1821 (ia64_target::get_regs_info): ...this.
1822 (the_low_target): Remove the op field.
1823 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1824 (m32r_regs_info): Turn into ...
1825 (m32r_target::get_regs_info): ...this.
1826 (the_low_target): Remove the op field.
1827 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1828 (m68k_regs_info): Turn into ...
1829 (m68k_target::get_regs_info): ...this.
1830 (the_low_target): Remove the op field.
1831 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1832 (mips_regs_info): Turn into ...
1833 (mips_target::get_regs_info): ...this.
1834 (the_low_target): Remove the op field.
1835 (get_usrregs_info): Update the call to the op.
1836 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1837 (nios2_regs_info): Turn into ...
1838 (nios2_target::get_regs_info): ...this.
1839 (the_low_target): Remove the op field.
1840 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1841 (ppc_regs_info): Turn into ...
1842 (ppc_target::get_regs_info): ...this.
1843 (the_low_target): Remove the op field.
1844 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1845 (riscv_regs_info): Turn into ...
1846 (riscv_target::get_regs_info): ...this.
1847 (the_low_target): Remove the op field.
1848 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1849 (s390_regs_info): Turn into ...
1850 (s390_target::get_regs_info): ...this.
1851 (the_low_target): Remove the op field.
1852 (s390_collect_ptrace_register)
1853 (s390_supply_ptrace_register)
1854 (s390_fill_gregset): Update the call to the op.
1855 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1856 (sh_regs_info): Turn into ...
1857 (sh_target::get_regs_info): ...this.
1858 (the_low_target): Remove the op field.
1859 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1860 (sparc_regs_info): Turn into ...
1861 (sparc_target::get_regs_info): ...this.
1862 (the_low_target): Remove the op field.
1863 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1864 (tic6x_regs_info): Turn into ...
1865 (tic6x_target::get_regs_info): ...this.
1866 (the_low_target): Remove the op field.
1867 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1868 (tile_regs_info): Turn into ...
1869 (tile_target::get_regs_info): ...this.
1870 (the_low_target): Remove the op field.
1871 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1873 (xtensa_regs_info): Turn into ...
1874 (xtensa_target::get_regs_info): ...this.
1875 (the_low_target): Remove the op field.
1877 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1879 Turn the 'arch_setup' linux target op into a method of
1880 linux_process_target.
1882 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1883 (class linux_process_target) <arch_setup_thread>
1884 <low_arch_setup>: New declarations.
1885 * linux-low.cc (linux_arch_setup): Delete.
1886 (linux_arch_setup_thread): Turn into...
1887 (linux_process_target::arch_setup_thread): ... this.
1889 Update the callers below.
1891 (linux_process_target::handle_extended_wait)
1892 (linux_process_target::post_create_inferior)
1893 (linux_process_target::filter_event)
1895 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1897 (x86_linux_update_xmltarget): Turn into...
1898 (x86_target::update_xmltarget): ...this.
1899 (x86_linux_process_qsupported): Update the call to
1900 x86_linux_update_xmltarget.
1901 (x86_arch_setup): Turn into ...
1902 (x86_target::low_arch_setup): ...this.
1903 (the_low_target): Remove the op field.
1904 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1906 (aarch64_arch_setup): Turn into ...
1907 (aarch64_target::low_arch_setup): ...this.
1908 (the_low_target): Remove the op field.
1909 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1911 (arm_arch_setup): Turn into ...
1912 (arm_target::low_arch_setup): ...this.
1913 (the_low_target): Remove the op field.
1914 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1916 (bfin_arch_setup): Turn into ...
1917 (bfin_target::low_arch_setup): ...this.
1918 (the_low_target): Remove the op field.
1919 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1921 (cris_arch_setup): Turn into ...
1922 (cris_target::low_arch_setup): ...this.
1923 (the_low_target): Remove the op field.
1924 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1926 (crisv32_arch_setup): Turn into ...
1927 (crisv32_target::low_arch_setup): ...this.
1928 (the_low_target): Remove the op field.
1929 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1931 (ia64_arch_setup): Turn into ...
1932 (ia64_target::low_arch_setup): ...this.
1933 (the_low_target): Remove the op field.
1934 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1936 (m32r_arch_setup): Turn into ...
1937 (m32r_target::low_arch_setup): ...this.
1938 (the_low_target): Remove the op field.
1939 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1941 (m68k_arch_setup): Turn into ...
1942 (m68k_target::low_arch_setup): ...this.
1943 (the_low_target): Remove the op field.
1944 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1946 (mips_arch_setup): Turn into ...
1947 (mips_target::low_arch_setup): ...this.
1948 (the_low_target): Remove the op field.
1949 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1951 (nios2_arch_setup): Turn into ...
1952 (nios2_target::low_arch_setup): ...this.
1953 (the_low_target): Remove the op field.
1954 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1956 (ppc_arch_setup): Turn into ...
1957 (ppc_target::low_arch_setup): ...this.
1958 (the_low_target): Remove the op field.
1959 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1961 (riscv_arch_setup): Turn into ...
1962 (riscv_target::low_arch_setup): ...this.
1963 (the_low_target): Remove the op field.
1964 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1966 (s390_arch_setup): Turn into ...
1967 (s390_target::low_arch_setup): ...this.
1968 (the_low_target): Remove the op field.
1969 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1971 (sh_arch_setup): Turn into ...
1972 (sh_target::low_arch_setup): ...this.
1973 (the_low_target): Remove the op field.
1974 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1976 (sparc_arch_setup): Turn into ...
1977 (sparc_target::low_arch_setup): ...this.
1978 (the_low_target): Remove the op field.
1979 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1981 (tic6x_arch_setup): Turn into ...
1982 (tic6x_target::low_arch_setup): ...this.
1983 (the_low_target): Remove the op field.
1984 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1986 (tile_arch_setup): Turn into ...
1987 (tile_target::low_arch_setup): ...this.
1988 (the_low_target): Remove the op field.
1989 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1991 (xtensa_arch_setup): Turn into ...
1992 (xtensa_target::low_arch_setup): ...this.
1993 (the_low_target): Remove the op field.
1995 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1997 * linux-low.h (the_linux_target): New extern declaration.
1998 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2000 (the_linux_target): Remove.
2001 * linux-x86-low.cc (class x86_target): New class.
2002 (the_x86_target): New static object.
2003 (the_linux_target): Define as pointer to the_x86_target.
2004 * linux-aarch64-low.cc (class aarch64_target): New class.
2005 (the_aarch64_target): New static object.
2006 (the_linux_target): Define as pointer to the_aarch64_target.
2007 * linux-arm-low.cc (class arm_target): New class.
2008 (the_arm_target): New static object.
2009 (the_linux_target): Define as pointer to the_arm_target.
2010 * linux-bfin-low.cc (class bfin_target): New class.
2011 (the_bfin_target): New static object.
2012 (the_linux_target): Define as pointer to the_bfin_target.
2013 * linux-cris-low.cc (class cris_target): New class.
2014 (the_cris_target): New static object.
2015 (the_linux_target): Define as pointer to the_cris_target.
2016 * linux-crisv32-low.cc (class crisv32_target): New class.
2017 (the_crisv32_target): New static object.
2018 (the_linux_target): Define as pointer to the_crisv32_target.
2019 * linux-ia64-low.cc (class ia64_target): New class.
2020 (the_ia64_target): New static object.
2021 (the_linux_target): Define as pointer to the_ia64_target.
2022 * linux-m32r-low.cc (class m32r_target): New class.
2023 (the_m32r_target): New static object.
2024 (the_linux_target): Define as pointer to the_m32r_target.
2025 * linux-m68k-low.cc (class m68k_target): New class.
2026 (the_m68k_target): New static object.
2027 (the_linux_target): Define as pointer to the_m68k_target.
2028 * linux-mips-low.cc (class mips_target): New class.
2029 (the_mips_target): New static object.
2030 (the_linux_target): Define as pointer to the_mips_target.
2031 * linux-nios2-low.cc (class nios2_target): New class.
2032 (the_nios2_target): New static object.
2033 (the_linux_target): Define as pointer to the_nios2_target.
2034 * linux-ppc-low.cc (class ppc_target): New class.
2035 (the_ppc_target): New static object.
2036 (the_linux_target): Define as pointer to the_ppc_target.
2037 * linux-riscv-low.cc (class riscv_target): New class.
2038 (the_riscv_target): New static object.
2039 (the_linux_target): Define as pointer to the_riscv_target.
2040 * linux-s390-low.cc (class s390_target): New class.
2041 (the_s390_target): New static object.
2042 (the_linux_target): Define as pointer to the_s390_target.
2043 * linux-sh-low.cc (class sh_target): New class.
2044 (the_sh_target): New static object.
2045 (the_linux_target): Define as pointer to the_sh_target.
2046 * linux-sparc-low.cc (class sparc_target): New class.
2047 (the_sparc_target): New static object.
2048 (the_linux_target): Define as pointer to the_sparc_target.
2049 * linux-tic6x-low.cc (class tic6x_target): New class.
2050 (the_tic6x_target): New static object.
2051 (the_linux_target): Define as pointer to the_tic6x_target.
2052 * linux-tile-low.cc (class tile_target): New class.
2053 (the_tile_target): New static object.
2054 (the_linux_target): Define as pointer to the_tile_target.
2055 * linux-xtensa-low.cc (class xtensa_target): New class.
2056 (the_xtensa_target): New static object.
2057 (the_linux_target): Define as pointer to the_xtensa_target.
2059 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2061 Turn some static functions in linux-low.cc into private methods of
2062 linux_process_target.
2064 * linux-low.cc (handle_extended_wait): Turn into ...
2065 (linux_process_target::handle_extended_wait): ...this. Call
2066 'mourn' on 'this' object instead of 'the_target'.
2067 (maybe_move_out_of_jump_pad): Turn into...
2068 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2069 (linux_low_filter_event): Turn into...
2070 (linux_process_target::filter_event): ...this.
2071 (linux_wait_for_event_filtered): Turn into...
2072 (linux_process_target::wait_for_event_filtered): ...this.
2073 (linux_wait_for_event): Turn into...
2074 (linux_process_target::wait_for_event): ...this.
2075 (linux_wait_1): Turn into...
2076 (linux_process_target::wait_1): ...this.
2077 (wait_for_sigstop): Turn into...
2078 (linux_process_target::wait_for_sigstop): ...this.
2079 (move_out_of_jump_pad_callback): Turn into...
2080 (linux_process_target::move_out_of_jump_pad): ...this.
2081 (stop_all_lwps): Turn into...
2082 (linux_process_target::stop_all_lwps): ...this.
2083 (start_step_over): Turn into...
2084 (linux_process_target::start_step_over): ...this.
2085 (complete_ongoing_step_over): Turn into...
2086 (linux_process_target::complete_ongoing_step_over): ...this.
2087 (proceed_all_lwps): Turn into...
2088 (linux_process_target::proceed_all_lwps): ...this.
2089 (unstop_all_lwps): Turn into...
2090 (linux_process_target::unstop_all_lwps): ...this.
2092 * linux-low.h (class linux_process_target)
2093 <handle_extended_wait>
2094 <maybe_move_out_of_jump_pad>
2096 <wait_for_event_filtered>
2100 <move_out_of_jump_pad>
2103 <complete_ongoing_step_over>
2105 <unstop_all_lwps>: Declare.
2107 Update the callers below.
2109 * linux-low.cc (linux_process_target::attach): Update.
2110 (linux_process_target::stabilize_threads): Ditto.
2111 (linux_process_target::wait): Ditto.
2113 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2115 * linux-low.h (struct linux_target_ops): Update the comment for
2116 'cannot_store_register' to return 0 or 1.
2117 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2120 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2122 * config.in: Re-generate.
2123 * configure: Re-generate.
2125 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2127 * regcache.cc (find_register_by_number): Update.
2128 * tdesc.cc (init_target_desc): Likewise.
2129 * tdesc.h (target_desc::reg_defs): Likewise.
2131 2020-03-12 Tom Tromey <tom@tromey.com>
2133 * configure: Rebuild.
2134 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2135 (WIN32APILIBS): New subst.
2136 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2138 (gdbsupport/%.o): Remove target.
2139 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2140 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2141 (WIN32APILIBS): New variable.
2142 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2143 (gdbreplay$(EXEEXT)): Likewise.
2145 2020-03-12 Tom Tromey <tom@tromey.com>
2147 * config.in, configure: Rebuild.
2148 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2149 * acinclude.m4: Include gettext-sister.m4.
2150 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2152 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2153 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2155 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2157 * acinclude.m4: Update path to selftest.m4.
2159 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2161 * configure.ac: Don't source bfd/development.sh, move
2162 GDB_AC_COMMON higher.
2163 * configure: Re-generate.
2165 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2167 * configure: Re-generate.
2169 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2171 * configure: Re-generate.
2173 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2175 * .dir-locals.el: New file.
2177 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2179 * .gitattributes: New file.
2181 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2183 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2184 reply into an S reply.
2185 * server.cc (disable_packet_T): New global.
2186 (captured_main): Set new global when appropriate.
2187 * server.h (disable_packet_T): Declare.
2189 2020-02-21 Tom Tromey <tom@tromey.com>
2191 * Makefile.in (mostlyclean): New target.
2193 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2195 * target.h (struct process_stratum_target): Remove.
2196 (class process_target): Rename to ...
2197 (class process_stratum_target): ... this.
2198 * linux-low.h (class linux_process_target): Derive from
2199 'process_stratum_target'.
2200 * linux-low.cc (linux_target_ops): Remove.
2201 (initialize_low): Set the_target to the singleton instance of
2202 linux_process_target.
2203 * lynx-low.h (class lynx_process_target): Derive from
2204 'process_stratum_target'.
2205 * lynx-low.cc (lynx_target_ops): Remove.
2206 (initialize_low): Set the_target to the singleton instance of
2207 lynx_process_target.
2208 * nto-low.h (class nto_process_target): Derive from
2209 'process_stratum_target'.
2210 * nto-low.cc (nto_target_ops): Remove.
2211 (initialize_low): Set the_target to the singleton instance of
2213 * win32-low.h (class win32_process_target): Derive from
2214 'process_stratum_target'.
2215 * win32-low.cc (win32_target_ops): Remove.
2216 (initialize_low): Set the_target to the singleton instance of
2217 win32_process_target.
2219 Replace 'the_target->pt' with 'the_target' in the uses below.
2221 * hostio.cc (hostio_error)
2226 * linux-aarch32-low.cc (arm_breakpoint_at)
2227 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2228 * linux-arm-low.cc (arm_sigreturn_next_pc)
2230 (arm_get_syscall_trapinfo)
2231 * linux-cris-low.cc (cris_breakpoint_at)
2232 * linux-crisv32-low.cc (cris_breakpoint_at)
2233 * linux-low.cc (handle_extended_wait)
2236 (linux_process_target::breakpoint_kind_from_pc)
2238 * linux-m32r-low.cc (m32r_breakpoint_at)
2239 * linux-mips-low.cc (mips_breakpoint_at)
2240 * linux-nios2-low.cc (nios2_breakpoint_at)
2241 * linux-ppc-low.cc (ppc_breakpoint_at)
2242 * linux-s390-low.cc (s390_get_hwcap)
2243 * linux-sh-low.cc (sh_breakpoint_at)
2244 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2245 (sparc_store_gregset_from_stack)
2246 (sparc_breakpoint_at)
2247 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2248 * linux-tile-low.cc (tile_breakpoint_at)
2249 * linux-x86-low.cc (x86_breakpoint_at)
2250 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2251 * mem-break.cc (bp_size)
2253 (insert_memory_breakpoint)
2254 (set_raw_breakpoint_at)
2255 (delete_raw_breakpoint)
2257 (uninsert_raw_breakpoint)
2258 (reinsert_raw_breakpoint)
2259 (validate_inserted_breakpoint)
2260 * regcache.cc (regcache_read_pc)
2262 * remote-utils.cc (putpkt_binary_1)
2265 (prepare_resume_reply)
2266 * server.cc (handle_general_set)
2269 (handle_qxfer_exec_file)
2270 (handle_qxfer_libraries_svr4)
2271 (handle_qxfer_osdata)
2272 (handle_qxfer_siginfo)
2273 (handle_qxfer_fdpic)
2277 (queue_stop_reply_callback)
2279 * target.cc (prepare_to_access_memory)
2280 (done_accessing_memory)
2281 (read_inferior_memory)
2282 (target_write_memory)
2283 (target_stop_and_wait)
2285 (target_mourn_inferior)
2286 (target_continue_no_signal)
2288 (target_supports_multi_process)
2291 (target_create_inferior)
2292 (target_post_create_inferior)
2294 (target_supports_fork_events)
2295 (target_supports_vfork_events)
2296 (target_supports_exec_events)
2297 (target_handle_new_gdb_connection)
2300 (fetch_inferior_registers)
2301 (store_inferior_registers)
2303 (target_supports_non_stop)
2305 (target_process_qsupported)
2306 (target_supports_catch_syscall)
2307 (target_get_ipa_tdesc_idx)
2308 (target_supports_tracepoints)
2309 (target_supports_fast_tracepoints)
2310 (target_get_min_fast_tracepoint_insn_len)
2311 (target_thread_stopped)
2313 (target_unpause_all)
2314 (target_stabilize_threads)
2315 (target_install_fast_tracepoint_jump_pad)
2317 (target_supports_disable_randomization)
2318 (target_supports_agent)
2319 (target_enable_btrace)
2320 (target_disable_btrace)
2321 (target_read_btrace)
2322 (target_read_btrace_conf)
2323 (target_supports_range_stepping)
2324 (target_supports_stopped_by_sw_breakpoint)
2325 (target_stopped_by_sw_breakpoint)
2326 (target_supports_stopped_by_hw_breakpoint)
2327 (target_supports_hardware_single_step)
2328 (target_stopped_by_hw_breakpoint)
2329 (target_breakpoint_kind_from_pc)
2330 (target_breakpoint_kind_from_current_state)
2331 (target_supports_software_single_step)
2332 (target_core_of_thread)
2333 (target_thread_name)
2334 (target_thread_handle)
2335 * win32-low.cc (do_initial_child_stuff)
2337 Rename target op default definitions listed below.
2339 * target.cc (process_target::post_create_inferior): Rename as ...
2340 (process_stratum_target::post_create_inferior): ... this.
2341 (process_target::prepare_to_access_memory): Rename as ...
2342 (process_stratum_target::prepare_to_access_memory): ... this.
2343 (process_target::done_accessing_memory): Rename as ...
2344 (process_stratum_target::done_accessing_memory): ... this.
2345 (process_target::look_up_symbols): Rename as ...
2346 (process_stratum_target::look_up_symbols): ... this.
2347 (process_target::supports_read_auxv): Rename as ...
2348 (process_stratum_target::supports_read_auxv): ... this.
2349 (process_target::read_auxv): Rename as ...
2350 (process_stratum_target::read_auxv): ... this.
2351 (process_target::supports_z_point_type): Rename as ...
2352 (process_stratum_target::supports_z_point_type): ... this.
2353 (process_target::insert_point): Rename as ...
2354 (process_stratum_target::insert_point): ... this.
2355 (process_target::remove_point): Rename as ...
2356 (process_stratum_target::remove_point): ... this.
2357 (process_target::stopped_by_sw_breakpoint): Rename as ...
2358 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2359 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2360 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2361 (process_target::stopped_by_hw_breakpoint): Rename as ...
2362 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2363 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2364 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2365 (process_target::supports_hardware_single_step): Rename as ...
2366 (process_stratum_target::supports_hardware_single_step): ... this.
2367 (process_target::stopped_by_watchpoint): Rename as ...
2368 (process_stratum_target::stopped_by_watchpoint): ... this.
2369 (process_target::stopped_data_address): Rename as ...
2370 (process_stratum_target::stopped_data_address): ... this.
2371 (process_target::supports_read_offsets): Rename as ...
2372 (process_stratum_target::supports_read_offsets): ... this.
2373 (process_target::read_offsets): Rename as ...
2374 (process_stratum_target::read_offsets): ... this.
2375 (process_target::supports_get_tls_address): Rename as ...
2376 (process_stratum_target::supports_get_tls_address): ... this.
2377 (process_target::get_tls_address): Rename as ...
2378 (process_stratum_target::get_tls_address): ... this.
2379 (process_target::hostio_last_error): Rename as ...
2380 (process_stratum_target::hostio_last_error): ... this.
2381 (process_target::supports_qxfer_osdata): Rename as ...
2382 (process_stratum_target::supports_qxfer_osdata): ... this.
2383 (process_target::qxfer_osdata): Rename as ...
2384 (process_stratum_target::qxfer_osdata): ... this.
2385 (process_target::supports_qxfer_siginfo): Rename as ...
2386 (process_stratum_target::supports_qxfer_siginfo): ... this.
2387 (process_target::qxfer_siginfo): Rename as ...
2388 (process_stratum_target::qxfer_siginfo): ... this.
2389 (process_target::supports_non_stop): Rename as ...
2390 (process_stratum_target::supports_non_stop): ... this.
2391 (process_target::async): Rename as ...
2392 (process_stratum_target::async): ... this.
2393 (process_target::start_non_stop): Rename as ...
2394 (process_stratum_target::start_non_stop): ... this.
2395 (process_target::supports_multi_process): Rename as ...
2396 (process_stratum_target::supports_multi_process): ... this.
2397 (process_target::supports_fork_events): Rename as ...
2398 (process_stratum_target::supports_fork_events): ... this.
2399 (process_target::supports_vfork_events): Rename as ...
2400 (process_stratum_target::supports_vfork_events): ... this.
2401 (process_target::supports_exec_events): Rename as ...
2402 (process_stratum_target::supports_exec_events): ... this.
2403 (process_target::handle_new_gdb_connection): Rename as ...
2404 (process_stratum_target::handle_new_gdb_connection): ... this.
2405 (process_target::handle_monitor_command): Rename as ...
2406 (process_stratum_target::handle_monitor_command): ... this.
2407 (process_target::core_of_thread): Rename as ...
2408 (process_stratum_target::core_of_thread): ... this.
2409 (process_target::supports_read_loadmap): Rename as ...
2410 (process_stratum_target::supports_read_loadmap): ... this.
2411 (process_target::read_loadmap): Rename as ...
2412 (process_stratum_target::read_loadmap): ... this.
2413 (process_target::process_qsupported): Rename as ...
2414 (process_stratum_target::process_qsupported): ... this.
2415 (process_target::supports_tracepoints): Rename as ...
2416 (process_stratum_target::supports_tracepoints): ... this.
2417 (process_target::read_pc): Rename as ...
2418 (process_stratum_target::read_pc): ... this.
2419 (process_target::write_pc): Rename as ...
2420 (process_stratum_target::write_pc): ... this.
2421 (process_target::supports_thread_stopped): Rename as ...
2422 (process_stratum_target::supports_thread_stopped): ... this.
2423 (process_target::thread_stopped): Rename as ...
2424 (process_stratum_target::thread_stopped): ... this.
2425 (process_target::supports_get_tib_address): Rename as ...
2426 (process_stratum_target::supports_get_tib_address): ... this.
2427 (process_target::get_tib_address): Rename as ...
2428 (process_stratum_target::get_tib_address): ... this.
2429 (process_target::pause_all): Rename as ...
2430 (process_stratum_target::pause_all): ... this.
2431 (process_target::unpause_all): Rename as ...
2432 (process_stratum_target::unpause_all): ... this.
2433 (process_target::stabilize_threads): Rename as ...
2434 (process_stratum_target::stabilize_threads): ... this.
2435 (process_target::supports_fast_tracepoints): Rename as ...
2436 (process_stratum_target::supports_fast_tracepoints): ... this.
2437 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2438 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2439 (process_target::emit_ops): Rename as ...
2440 (process_stratum_target::emit_ops): ... this.
2441 (process_target::supports_disable_randomization): Rename as ...
2442 (process_stratum_target::supports_disable_randomization): ... this.
2443 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2444 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2445 (process_target::qxfer_libraries_svr4): Rename as ...
2446 (process_stratum_target::qxfer_libraries_svr4): ... this.
2447 (process_target::supports_agent): Rename as ...
2448 (process_stratum_target::supports_agent): ... this.
2449 (process_target::enable_btrace): Rename as ...
2450 (process_stratum_target::enable_btrace): ... this.
2451 (process_target::disable_btrace): Rename as ...
2452 (process_stratum_target::disable_btrace): ... this.
2453 (process_target::read_btrace): Rename as ...
2454 (process_stratum_target::read_btrace): ... this.
2455 (process_target::read_btrace_conf): Rename as ...
2456 (process_stratum_target::read_btrace_conf): ... this.
2457 (process_target::supports_range_stepping): Rename as ...
2458 (process_stratum_target::supports_range_stepping): ... this.
2459 (process_target::supports_pid_to_exec_file): Rename as ...
2460 (process_stratum_target::supports_pid_to_exec_file): ... this.
2461 (process_target::pid_to_exec_file): Rename as ...
2462 (process_stratum_target::pid_to_exec_file): ... this.
2463 (process_target::supports_multifs): Rename as ...
2464 (process_stratum_target::supports_multifs): ... this.
2465 (process_target::multifs_open): Rename as ...
2466 (process_stratum_target::multifs_open): ... this.
2467 (process_target::multifs_unlink): Rename as ...
2468 (process_stratum_target::multifs_unlink): ... this.
2469 (process_target::multifs_readlink): Rename as ...
2470 (process_stratum_target::multifs_readlink): ... this.
2471 (process_target::breakpoint_kind_from_pc): Rename as ...
2472 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2473 (process_target::breakpoint_kind_from_current_state): Rename as ...
2474 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2475 (process_target::thread_name): Rename as ...
2476 (process_stratum_target::thread_name): ... this.
2477 (process_target::thread_handle): Rename as ...
2478 (process_stratum_target::thread_handle): ... this.
2479 (process_target::supports_software_single_step): Rename as ...
2480 (process_stratum_target::supports_software_single_step): ... this.
2481 (process_target::supports_catch_syscall): Rename as ...
2482 (process_stratum_target::supports_catch_syscall): ... this.
2483 (process_target::get_ipa_tdesc_idx): Rename as ...
2484 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2486 2020-02-20 Pedro Alves <palves@redhat.com>
2488 * target.cc (set_target_ops): Simply copy the given target pointer
2489 instead of creating a copy of the pointed object.
2491 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2493 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2496 * target.h (struct process_stratum_target): Remove the target op.
2497 (class process_target): Add the target op.
2498 (target_get_ipa_tdesc_idx): Update the macro.
2499 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2501 Update the derived classes and callers below.
2503 * linux-low.cc (linux_target_ops): Update.
2504 (linux_get_ipa_tdesc_idx): Turn into ...
2505 (linux_process_target::get_ipa_tdesc_idx): ... this.
2506 * linux-low.h (class linux_process_target): Update.
2507 * lynx-low.cc (lynx_target_ops): Update.
2508 * nto-low.cc (nto_target_ops): Update.
2509 * win32-low.cc (win32_target_ops): Update.
2511 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2513 Turn process_stratum_target's supports_catch_syscall op into a
2514 method of process_target.
2516 * target.h (struct process_stratum_target): Remove the target op.
2517 (class process_target): Add the target op.
2518 (target_supports_catch_syscall): Update the macro.
2519 * target.cc (process_target::supports_catch_syscall): Define.
2521 Update the derived classes and callers below.
2523 * linux-low.cc (linux_target_ops): Update.
2524 (linux_supports_catch_syscall): Turn into ...
2525 (linux_process_target::supports_catch_syscall): ... this.
2526 * linux-low.h (class linux_process_target): Update.
2527 * lynx-low.cc (lynx_target_ops): Update.
2528 * nto-low.cc (nto_target_ops): Update.
2529 * win32-low.cc (win32_target_ops): Update.
2531 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2533 Turn process_stratum_target's supports_software_single_step op
2534 into a method of process_target.
2536 * target.h (struct process_stratum_target): Remove the target op.
2537 (class process_target): Add the target op.
2538 (target_supports_software_single_step): Update the macro.
2539 * target.cc (process_target::supports_software_single_step): Define.
2541 Update the derived classes and callers below.
2543 * linux-low.cc (linux_target_ops): Update.
2544 (linux_supports_software_single_step): Turn into ...
2545 (linux_process_target::supports_software_single_step): ... this.
2546 * linux-low.h (class linux_process_target): Update.
2547 * lynx-low.cc (lynx_target_ops): Update.
2548 * nto-low.cc (nto_target_ops): Update.
2549 * win32-low.cc (win32_target_ops): Update.
2551 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2553 Turn process_stratum_target's thread_name and thread_handle ops
2554 into methods of process_target.
2556 * target.h (struct process_stratum_target): Remove the target ops.
2557 (class process_target): Add the target ops.
2558 (target_thread_name): Update the macro.
2559 (target_thread_handle): Update the macro.
2560 * target.cc (process_target::thread_name): Define.
2561 (process_target::thread_handle): Define.
2563 Update the derived classes and callers below.
2565 * linux-low.cc (linux_target_ops): Update.
2566 (linux_process_target::thread_name): Define.
2567 (linux_process_target::thread_handle): Define.
2568 * linux-low.h (class linux_process_target): Update.
2569 * lynx-low.cc (lynx_target_ops): Update.
2570 * nto-low.cc (nto_target_ops): Update.
2571 * win32-low.cc (win32_target_ops): Update.
2573 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2575 Turn process_stratum_target's breakpoint_kind_from_pc,
2576 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2577 ops into methods of process_target.
2579 * target.h (struct process_stratum_target): Remove the target op.
2580 (class process_target): Add the target op.
2581 (target_breakpoint_kind_from_pc): Update the macro.
2582 (target_breakpoint_kind_from_current_state): Update the macro.
2583 (default_breakpoint_kind_from_pc): Remove declaration.
2584 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2585 (process_target::breakpoint_kind_from_pc): ... this.
2586 (process_target::breakpoint_kind_from_current_state): Define.
2588 Update the derived classes and callers below.
2590 * mem-break.cc (bp_size): Update.
2591 (bp_opcode): Update.
2592 * linux-low.cc (linux_target_ops): Update.
2593 (linux_wait_1): Update.
2594 (linux_breakpoint_kind_from_pc): Turn into ...
2595 (linux_process_target::breakpoint_kind_from_pc): ... this.
2596 (linux_sw_breakpoint_from_kind): Turn into ...
2597 (linux_process_target::sw_breakpoint_from_kind): ... this.
2598 (linux_breakpoint_kind_from_current_state): Turn into ...
2599 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2600 * linux-low.h (class linux_process_target): Update.
2601 * lynx-low.cc (lynx_target_ops): Update.
2602 (lynx_process_target::sw_breakpoint_from_kind): Define.
2603 * lynx-low.h (class lynx_process_target): Update.
2604 * nto-low.cc (nto_target_ops): Update.
2605 (nto_sw_breakpoint_from_kind): Turn into ...
2606 (nto_process_target::sw_breakpoint_from_kind): ... this.
2607 * nto-low.h (class nto_process_target): Update.
2608 * win32-low.cc (win32_target_ops): Update.
2609 (win32_sw_breakpoint_from_kind): Turn into ...
2610 (win32_process_target::sw_breakpoint_from_kind): ... this.
2611 * win32-low.h (class win32_process_target): Update.
2613 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2615 Turn process_stratum_target's multifs_open, multifs_readlink,
2616 multifs_unlink ops into methods of process_target.
2618 * target.h (struct process_stratum_target): Remove the target ops.
2619 (class process_target): Add the target ops. Also add
2621 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2623 (process_target::supports_multifs): Define.
2624 (process_target::multifs_open): Define.
2625 (process_target::multifs_readlink): Define.
2626 (process_target::multifs_unlink): Define.
2628 Update the derived classes and callers below.
2630 * hostio.cc (handle_setfs): Update.
2631 (handle_open): Update.
2632 (handle_unlink): Update.
2633 (handle_readlink): Update.
2634 * linux-low.cc (linux_target_ops): Update.
2635 (linux_process_target::supports_multifs): Define.
2636 (linux_process_target::multifs_open): Define.
2637 (linux_process_target::multifs_readlink): Define.
2638 (linux_process_target::multifs_unlink): Define.
2639 * linux-low.h (class linux_process_target): Update.
2640 * lynx-low.cc (lynx_target_ops): Update.
2641 * nto-low.cc (nto_target_ops): Update.
2642 * win32-low.cc (win32_target_ops): Update.
2644 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2646 Turn process_stratum_target's pid_to_exec_file op into a method
2649 * target.h (struct process_stratum_target): Remove the target op.
2650 (class process_target): Add the target op. Also add
2651 'supports_pid_to_exec_file'.
2652 * target.cc (process_target::pid_to_exec_file): Define.
2653 (process_target::supports_pid_to_exec_file): Define.
2655 Update the derived classes and callers below.
2657 * server.cc (handle_qxfer_exec_file): Update.
2658 (handle_query): Update.
2659 * linux-low.cc (linux_target_ops): Update.
2660 (linux_process_target::supports_pid_to_exec_file): Define.
2661 (linux_process_target::pid_to_exec_file): Define.
2662 * linux-low.h (class linux_process_target): Update.
2663 * lynx-low.cc (lynx_target_ops): Update.
2664 * nto-low.cc (nto_target_ops): Update.
2665 * win32-low.cc (win32_target_ops): Update.
2667 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2669 Turn process_stratum_target's supports_range_stepping op into a
2670 method of process_target.
2672 * target.h (struct process_stratum_target): Remove the target op.
2673 (class process_target): Add the target op.
2674 (target_supports_range_stepping): Update the macro.
2675 * target.cc (process_target::supports_range_stepping): Define.
2677 Update the derived classes and callers below.
2679 * linux-low.cc (linux_target_ops): Update.
2680 (linux_supports_range_stepping): Turn into ...
2681 (linux_process_target::supports_range_stepping): ... this.
2682 * linux-low.h (class linux_process_target): Update.
2683 * lynx-low.cc (lynx_target_ops): Update.
2684 * nto-low.cc (nto_target_ops): Update.
2685 * win32-low.cc (win32_target_ops): Update.
2687 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2689 Turn process_stratum_target's btrace-related ops (enable_btrace,
2690 disable_btrace, read_btrace, read_btrace_conf) into methods of
2693 * target.h (struct process_stratum_target): Remove the target ops.
2694 (class process_target): Add the target ops.
2695 (target_enable_btrace): Update.
2696 (target_disable_btrace): Update.
2697 (target_read_btrace): Update.
2698 (target_read_btrace_conf): Update.
2699 * target.cc (process_target::enable_btrace): Define.
2700 (process_target::disable_btrace): Define.
2701 (process_target::read_btrace): Define.
2702 (process_target::read_btrace_conf): Define.
2704 Update the derived classes and callers below.
2706 * linux-low.cc (linux_target_ops): Update.
2707 (linux_process_target:enable_btrace): Define as a wrapper around
2708 linux_enable_btrace.
2709 (linux_low_disable_btrace): Turn into ...
2710 (linux_process_target::disable_btrace): ... this.
2711 (linux_low_read_btrace): Turn into ...
2712 (linux_process_target::read_btrace): ... this.
2713 (linux_low_btrace_conf): Turn into ...
2714 (linux_process_target::read_btrace_conf): ... this.
2715 * linux-low.h (class linux_process_target): Update.
2716 * lynx-low.cc (lynx_target_ops): Update.
2717 * nto-low.cc (nto_target_ops): Update.
2718 * win32-low.cc (win32_target_ops): Update.
2720 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2722 Turn process_stratum_target's supports_agent op into a method of
2725 * target.h (struct process_stratum_target): Remove the target op.
2726 (class process_target): Add the target op.
2727 (target_supports_agent): Update the macro.
2728 * target.cc (process_target::supports_agent): Define.
2730 Update the derived classes and callers below.
2732 * linux-low.cc (linux_target_ops): Update.
2733 (linux_supports_agent): Turn into ...
2734 (linux_process_target::supports_agent): ... this.
2735 * linux-low.h (class linux_process_target): Update.
2736 * lynx-low.cc (lynx_target_ops): Update.
2737 * nto-low.cc (nto_target_ops): Update.
2738 * win32-low.cc (win32_target_ops): Update.
2740 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2742 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2743 method of process_target.
2745 * target.h (struct process_stratum_target): Remove the target op.
2746 (class process_target): Add the target op. Also add
2747 'supports_qxfer_libraries_svr4'.
2748 * target.cc (process_target::qxfer_libraries_svr4): Define.
2749 (process_target::supports_qxfer_libraries_svr4): Define.
2751 Update the derived classes and callers below.
2753 * server.cc (handle_qxfer_libraries_svr4): Update.
2754 (handle_query): Update.
2755 * linux-low.cc (linux_target_ops): Update.
2756 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2757 (linux_qxfer_libraries_svr4): Turn into ...
2758 (linux_process_target::qxfer_libraries_svr4): ... this.
2759 * linux-low.h (class linux_process_target): Update.
2760 * lynx-low.cc (lynx_target_ops): Update.
2761 * nto-low.cc (nto_target_ops): Update.
2762 * win32-low.cc (win32_target_ops): Update.
2764 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2766 Turn process_stratum_target's supports_disable_randomization op
2767 into a method of process_target.
2769 * target.h (struct process_stratum_target): Remove the target op.
2770 (class process_target): Add the target op.
2771 (target_supports_disable_randomization): Update the macro.
2772 * target.cc (process_target::supports_disable_randomization): Define.
2774 Update the derived classes and callers below.
2776 * linux-low.cc (linux_target_ops): Update.
2777 (linux_supports_disable_randomization): Turn into ...
2778 (linux_process_target::supports_disable_randomization): ... this.
2779 * linux-low.h (class linux_process_target): Update.
2780 * lynx-low.cc (lynx_target_ops): Update.
2781 * nto-low.cc (nto_target_ops): Update.
2782 * win32-low.cc (win32_target_ops): Update.
2784 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2786 Turn process_stratum_target's emit_ops op into a method of
2789 * target.h (struct process_stratum_target): Remove the target op.
2790 (class process_target): Add the target op.
2791 (target_emit_ops): Update the macro.
2792 * target.cc (process_target::emit_ops): Define.
2794 Update the derived classes and callers below.
2796 * linux-low.cc (linux_target_ops): Update.
2797 (linux_emit_ops): Turn into ...
2798 (linux_process_target::emit_ops): ... this.
2799 * linux-low.h (class linux_process_target): Update.
2800 * lynx-low.cc (lynx_target_ops): Update.
2801 * nto-low.cc (nto_target_ops): Update.
2802 * win32-low.cc (win32_target_ops): Update.
2804 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2806 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2807 and get_min_fast_tracepoint_insn_len ops into methods of
2810 * target.h (struct process_stratum_target): Remove the target ops.
2811 (class process_target): Add the target ops. Also add
2812 'supports_fast_tracepoints'.
2813 (target_supports_fast_tracepoints): Update the macro.
2814 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2815 (install_fast_tracepoint_jump_pad): Update and rename the macro
2817 (target_install_fast_tracepoint_jump_pad): ... this.
2818 * target.cc (process_target::supports_fast_tracepoints): Define.
2819 (process_target::install_fast_tracepoint_jump_pad): Define.
2820 (process_target::get_min_fast_tracepoint_insn_len): Define.
2822 Update the derived classes and callers below.
2824 * tracepoint.cc (install_fast_tracepoint): Update.
2825 * linux-low.cc (linux_target_ops): Update.
2826 (linux_process_target::supports_fast_tracepoints): Define.
2827 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2828 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2829 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2830 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2831 * linux-low.h (class linux_process_target): Update.
2832 * lynx-low.cc (lynx_target_ops): Update.
2833 * nto-low.cc (nto_target_ops): Update.
2834 * win32-low.cc (win32_target_ops): Update.
2836 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2838 Turn process_stratum_target's stabilize_threads op into a
2839 method of process_target.
2841 * target.h (struct process_stratum_target): Remove the target op.
2842 (class process_target): Add the target op.
2843 (target_stabilize_threads): Update the macro.
2844 * target.cc (process_target::stabilize_threads): Define.
2846 Update the derived classes and callers below.
2848 * server.cc (handle_status): Update.
2849 * tracepoint.cc (cmd_qtdp): Update.
2850 (cmd_qtstart): Update.
2851 * linux-low.cc (linux_target_ops): Update.
2852 (linux_stabilize_threads): Turn into ...
2853 (linux_process_target::stabilize_threads): ... this.
2854 (linux_wait_1): Update.
2855 * linux-low.h (class linux_process_target): Update.
2856 * lynx-low.cc (lynx_target_ops): Update.
2857 * nto-low.cc (nto_target_ops): Update.
2858 * win32-low.cc (win32_target_ops): Update.
2860 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2862 Turn process_stratum_target's pause_all and unpause_all ops
2863 into methods of process_target.
2865 * target.h (struct process_stratum_target): Remove the target ops.
2866 (class process_target): Add the target ops.
2867 (pause_all): Update the macro and rename to...
2868 (target_pause_all): ... this.
2869 (unpause_all): Update the macro and rename to...
2870 (target_unpause_all): ... this.
2871 * target.cc (process_target::pause_all): Define.
2872 (process_target::unpause_all): Define.
2874 Update the derived classes and callers below.
2876 * server.cc (handle_status): Update.
2877 * tracepoint.cc (clear_installed_tracepoints): Update.
2879 (cmd_qtstart): Update.
2880 (stop_tracing): Update.
2881 (cmd_qtstatus): Update.
2882 (upload_fast_traceframes): Update.
2883 (run_inferior_command): Update.
2884 * linux-low.cc (linux_target_ops): Update.
2885 (linux_pause_all): Turn into ...
2886 (linux_process_target::pause_all): ... this.
2887 (linux_unpause_all): Turn into ...
2888 (linux_process_target::unpause_all): ... this.
2889 (linux_process_target::prepare_to_access_memory): Update.
2890 (linux_process_target::done_accessing_memory): Update.
2891 * linux-low.h (class linux_process_target): Update.
2892 * lynx-low.cc (lynx_target_ops): Update.
2893 * nto-low.cc (nto_target_ops): Update.
2894 * win32-low.cc (win32_target_ops): Update.
2896 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2898 Turn process_stratum_target's get_tib_address op into a method of
2901 * target.h (struct process_stratum_target): Remove the target op.
2902 (class process_target): Add the target op. Also add
2903 'supports_get_tib_address'.
2904 * target.cc (process_target::get_tib_address): Define.
2905 (process_target::supports_get_tib_address): Define.
2907 Update the derived classes and callers below.
2909 * server.cc (handle_query): Update.
2910 * linux-low.cc (win32_target_ops): Update.
2911 * lynx-low.cc (lynx_target_ops): Update.
2912 * nto-low.cc (nto_target_ops): Update.
2913 * win32-low.cc (win32_target_ops): Update.
2914 (win32_process_target::supports_get_tib_address): Define.
2915 (win32_get_tib_address): Turn into ...
2916 (win32_process_target::get_tib_address): ... this.
2917 * win32-low.h (class win32_process_target): Update.
2919 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2921 Turn process_stratum_target's thread_stopped op into a method of
2924 * target.h (struct process_stratum_target): Remove the target op.
2925 (class process_target): Add the target op. Also add
2926 'supports_thread_stopped'.
2927 (target_thread_stopped): Update the macro.
2928 * target.cc (process_target::thread_stopped): Define.
2929 (process_target::supports_thread_stopped): Define.
2930 (prepare_to_access_memory): Update.
2932 Update the derived classes and callers below.
2934 * server.cc (queue_stop_reply_callback): Update.
2935 * linux-low.cc (linux_target_ops): Update.
2936 (linux_process_target::supports_thread_stopped): Define.
2937 (linux_thread_stopped): Turn into ...
2938 (linux_process_target::thread_stopped): ... this.
2939 * linux-low.h (class linux_process_target): Update.
2940 * lynx-low.cc (lynx_target_ops): Update.
2941 * nto-low.cc (nto_target_ops): Update.
2942 * win32-low.cc (win32_target_ops): Update.
2944 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2946 Turn process_stratum_target's read_pc and write_pc ops into
2947 methods of process_target.
2949 * target.h (struct process_stratum_target): Remove the target ops.
2950 (class process_target): Add the target ops.
2951 * target.cc (process_target::read_pc): Define.
2952 (process_target::write_pc): Define.
2954 Update the derived classes and callers below.
2956 * regcache.cc (regcache_read_pc): Update.
2957 (regcache_write_pc): Update.
2958 * linux-low.cc (linux_target_ops): Update.
2959 (linux_read_pc): Turn into ...
2960 (linux_process_target::read_pc): ... this.
2961 (linux_write_pc): Turn into ...
2962 (linux_process_target::write_pc): ... this.
2963 * linux-low.h (class linux_process_target): Update.
2964 * lynx-low.cc (lynx_target_ops): Update.
2965 * nto-low.cc (nto_target_ops): Update.
2966 * win32-low.cc (win32_target_ops): Update.
2968 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2970 Turn process_stratum_target's supports_tracepoints op into a
2971 method of process_target.
2973 * target.h (struct process_stratum_target): Remove the target op.
2974 (class process_target): Add the target op.
2975 (target_supports_tracepoints): Update the macro.
2976 * target.cc (process_target::supports_tracepoints): Define.
2978 Update the derived classes and callers below.
2980 * linux-low.cc (linux_target_ops): Update.
2981 (linux_supports_tracepoints): Turn into ...
2982 (linux_process_target::supports_tracepoints): ... this.
2983 * linux-low.h (class linux_process_target): Update.
2984 * lynx-low.cc (lynx_target_ops): Update.
2985 * nto-low.cc (nto_target_ops): Update.
2986 * win32-low.cc (win32_target_ops): Update.
2988 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2990 Turn process_stratum_target's process_qsupported op into a method
2993 * target.h (struct process_stratum_target): Remove the target op.
2994 (class process_target): Add the target op.
2995 (target_process_qsupported): Update the macro.
2996 * target.cc (process_target::process_qsupported): Define.
2998 Update the derived classes and callers below.
3000 * linux-low.cc (linux_target_ops): Update.
3001 (linux_process_qsupported): Turn into ...
3002 (linux_process_target::process_qsupported): ... this.
3003 * linux-low.h (class linux_process_target): Update.
3004 * lynx-low.cc (lynx_target_ops): Update.
3005 * nto-low.cc (nto_target_ops): Update.
3006 * win32-low.cc (win32_target_ops): Update.
3008 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3010 Turn process_stratum_target's read_loadmap op into a method of
3013 * target.h (struct process_stratum_target): Remove the target op.
3014 (class process_target): Add the target op. Also add
3015 'supports_read_loadmap'.
3016 * target.cc (process_target::read_loadmap): Define.
3017 (process_target::supports_read_loadmap): Define.
3019 Update the derived classes and callers below.
3021 * server.cc (handle_qxfer_fdpic): Update.
3022 (handle_query): Update.
3023 * linux-low.cc (linux_target_ops): Update.
3024 (linux_process_target::supports_read_loadmap): Define.
3025 (linux_read_loadmap): Turn into ...
3026 (linux_process_target::read_loadmap): ... this.
3027 * linux-low.h (class linux_process_target): Update.
3028 * lynx-low.cc (lynx_target_ops): Update.
3029 * nto-low.cc (nto_target_ops): Update.
3030 * win32-low.cc (win32_target_ops): Update.
3032 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3034 Turn process_stratum_target's core_of_thread op into a method of
3037 * target.h (struct process_stratum_target): Remove the target op.
3038 (class process_target): Add the target op.
3039 (target_core_of_thread): Update the macro.
3040 * target.cc (process_target::core_of_thread): Define.
3042 Update the derived classes and callers below.
3044 * linux-low.cc (linux_target_ops): Update.
3045 (linux_process_target::core_of_thread): Define.
3046 * linux-low.h (class linux_process_target): Update.
3047 * lynx-low.cc (lynx_target_ops): Update.
3048 * nto-low.cc (nto_target_ops): Update.
3049 * win32-low.cc (win32_target_ops): Update.
3051 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3053 Turn process_stratum_target's handle_monitor_command op into a
3054 method of process_target.
3056 * target.h (struct process_stratum_target): Remove the target op.
3057 (class process_target): Add the target op.
3058 (target_handle_monitor_command): Update the macro.
3059 * target.cc (process_target::handle_monitor_command): Define.
3061 Update the derived classes and callers below.
3063 * server.cc (handle_query): Update.
3064 * linux-low.cc (linux_target_ops): Update.
3065 (linux_process_target::handle_monitor_command): Define.
3066 * linux-low.h (class linux_process_target): Update.
3067 * lynx-low.cc (lynx_target_ops): Update.
3068 * nto-low.cc (nto_target_ops): Update.
3069 * win32-low.cc (win32_target_ops): Update.
3071 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3073 Turn process_stratum_target's handle_new_gdb_connection op into a
3074 method of process_target.
3076 * target.h (struct process_stratum_target): Remove the target op.
3077 (class process_target): Add the target op.
3078 (target_handle_new_gdb_connection): Update the macro.
3079 * target.cc (process_target::handle_new_gdb_connection): Define.
3081 Update the derived classes and callers below.
3083 * linux-low.cc (linux_target_ops): Update.
3084 (linux_handle_new_gdb_connection): Turn into ...
3085 (linux_process_target::handle_new_gdb_connection): ... this.
3086 * linux-low.h (class linux_process_target): Update.
3087 * lynx-low.cc (lynx_target_ops): Update.
3088 * nto-low.cc (nto_target_ops): Update.
3089 * win32-low.cc (win32_target_ops): Update.
3091 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3093 Turn process_stratum_target's supports_fork_events,
3094 supports_vfork_events, and supports_exec_events ops into methods
3097 * target.h (struct process_stratum_target): Remove the target ops.
3098 (class process_target): Add the target ops.
3099 (target_supports_fork_events): Update the macro.
3100 (target_supports_vfork_events): Update the macro.
3101 (target_supports_exec_events): Update the macro.
3102 * target.cc (process_target::supports_fork_events): Define.
3103 (process_target::supports_vfork_events): Define.
3104 (process_target::supports_exec_events): Define.
3106 Update the derived classes and callers below.
3108 * linux-low.cc (linux_target_ops): Update.
3109 (linux_supports_fork_events): Turn into ...
3110 (linux_process_target::supports_fork_events): ... this.
3111 (linux_supports_vfork_events): Turn into ...
3112 (linux_process_target::supports_vfork_events): ... this.
3113 (linux_supports_exec_events): Turn into ...
3114 (linux_process_target::supports_exec_events): ... this.
3115 * linux-low.h (class linux_process_target): Update.
3116 * lynx-low.cc (lynx_target_ops): Update.
3117 * nto-low.cc (nto_target_ops): Update.
3118 * win32-low.cc (win32_target_ops): Update.
3120 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3122 Turn process_stratum_target's supports_multi_process op into a
3123 method of process_target.
3125 * target.h (struct process_stratum_target): Remove the target op.
3126 (class process_target): Add the target op.
3127 * target.cc (process_target::supports_multi_process): Define.
3128 (target_supports_multi_process): Update.
3130 Update the derived classes and callers below.
3132 * linux-low.cc (linux_target_ops): Update.
3133 (linux_supports_multi_process): Turn into ...
3134 (linux_process_target::supports_multi_process): ... this.
3135 * linux-low.h (class linux_process_target): Update.
3136 * lynx-low.cc (lynx_target_ops): Update.
3137 * nto-low.cc (nto_target_ops): Update.
3138 * win32-low.cc (win32_target_ops): Update.
3140 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3142 Turn process_stratum_target's supports_non_stop, async, and
3143 start_non_stop ops into methods of process_target.
3145 * target.h (struct process_stratum_target): Remove the target ops.
3146 (class process_target): Add the target ops.
3147 (target_supports_non_stop): Update the macro.
3148 (target_async): Update the macro.
3149 (start_non_stop): Remove declaration.
3150 * target.cc (process_target::supports_non_stop): Define.
3151 (process_target::async): Define.
3152 (process_target::start_non_stop): Define.
3153 (start_non_stop): Remove.
3155 Update the derived classes and callers below.
3157 * server.cc (handle_qxfer_siginfo): Update.
3158 (handle_query): Update.
3159 * linux-low.cc (linux_target_ops): Update.
3160 (linux_supports_non_stop): Turn into ...
3161 (linux_process_target::supports_non_stop): ... this.
3162 (linux_async): Turn into ...
3163 (linux_process_target::async): ... this.
3164 (linux_start_non_stop): Turn into ...
3165 (linux_process_target::start_non_stop): ... this.
3166 * linux-low.h (class linux_process_target): Update.
3167 * lynx-low.cc (lynx_target_ops): Update.
3168 * nto-low.cc (nto_target_ops): Update.
3169 (nto_supports_non_stop): Remove; rely on the default behavior
3171 * win32-low.cc (win32_target_ops): Update.
3173 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3175 Turn process_stratum_target's qxfer_siginfo op into a method of
3178 * target.h (struct process_stratum_target): Remove the target op.
3179 (class process_target): Add the target op. Also add
3180 'supports_qxfer_siginfo'.
3181 * target.cc (process_target::qxfer_siginfo): Define.
3182 (process_target::supports_qxfer_siginfo): Define.
3184 Update the derived classes and callers below.
3186 * server.cc (handle_qxfer_siginfo): Update.
3187 (handle_query): Update.
3188 * linux-low.cc (linux_target_ops): Update.
3189 (linux_process_target::supports_qxfer_siginfo): Define.
3190 (linux_xfer_siginfo): Turn into ...
3191 (linux_process_target::qxfer_siginfo): ... this.
3192 * linux-low.h (class linux_process_target): Update.
3193 * lynx-low.cc (lynx_target_ops): Update.
3194 * nto-low.cc (nto_target_ops): Update.
3195 * win32-low.cc (win32_target_ops): Update.
3197 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3199 Turn process_stratum_target's qxfer_osdata op into a method of
3202 * target.h (struct process_stratum_target): Remove the target op.
3203 (class process_target): Add the target op. Also add
3204 'supports_qxfer_osdata'.
3205 * target.cc (process_target::qxfer_osdata): Define.
3206 (process_target::supports_qxfer_osdata): Define.
3208 Update the derived classes and callers below.
3210 * server.cc (handle_qxfer_osdata): Update.
3211 (handle_query): Update.
3212 * linux-low.cc (linux_target_ops): Update.
3213 (linux_process_target::supports_qxfer_osdata): Define.
3214 (linux_qxfer_osdata): Turn into ...
3215 (linux_process_target::qxfer_osdata): ... this.
3216 * linux-low.h (class linux_process_target): Update.
3217 * lynx-low.cc (lynx_target_ops): Update.
3218 * nto-low.cc (nto_target_ops): Update.
3219 * win32-low.cc (win32_target_ops): Update.
3221 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3223 Turn process_stratum_target's hostio_last_error op into a
3224 method of process_target.
3226 * target.h (struct process_stratum_target): Remove the target op.
3227 (class process_target): Add the target op.
3228 * target.cc: Add "hostio.h" to includes.
3229 (process_target::hostio_last_error): Define.
3231 Update the derived classes and callers below.
3233 * hostio.cc (hostio_error): Update.
3234 * linux-low.cc: Remove "hostio.h" from includes.
3235 (linux_target_ops): Update.
3236 * lynx-low.cc (lynx_target_ops): Update.
3237 * nto-low.cc (nto_target_ops): Update.
3238 * win32-low.h (class win32_process_target): Update.
3239 * win32-low.cc (win32_target_ops): Update.
3240 (wince_hostio_last_error): Turn into ...
3241 (win32_process_target::hostio_last_error): ... this.
3243 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3245 Turn process_stratum_target's get_tls_address op into a method of
3248 * target.h (struct process_stratum_target): Remove the target op.
3249 (class process_target): Add the target op. Also add
3250 'supports_get_tls_address'.
3251 * target.cc (process_target::get_tls_address): Define.
3252 (process_target::supports_get_tls_address): Define.
3254 Update the derived classes and callers below.
3256 * server.cc (handle_query): Update.
3257 * linux-low.cc (linux_target_ops): Update.
3258 (linux_process_target::supports_get_tls_address): Define.
3259 (linux_process_target::get_tls_address): Define.
3260 * linux-low.h (class linux_process_target): Update.
3261 * lynx-low.cc (lynx_target_ops): Update.
3262 * nto-low.cc (nto_target_ops): Update.
3263 * win32-low.cc (win32_target_ops): Update.
3265 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3267 Turn process_stratum_target's read_offsets op into a method of
3270 * target.h (struct process_stratum_target): Remove the target op.
3271 (class process_target): Add the target op. Also add
3272 'supports_read_offsets'.
3273 * target.cc (process_target::read_offsets): Define.
3274 (process_target::supports_read_offsets): Define.
3276 Update the derived classes and callers below.
3278 * server.cc (handle_query): Update.
3279 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3280 (linux_target_ops): Update.
3281 (linux_process_target::supports_read_offsets): Define.
3282 (linux_read_offsets): Turn into ...
3283 (linux_process_target::read_offsets): ... this.
3284 * linux-low.h (class linux_process_target): Update.
3285 * lynx-low.cc (lynx_target_ops): Update.
3286 * nto-low.cc (nto_target_ops): Update.
3287 * win32-low.cc (win32_target_ops): Update.
3289 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3291 Turn process_stratum_target's stopped_by_watchpoint and
3292 stopped_data_address ops into methods of process_target.
3294 * target.h (struct process_stratum_target): Remove the target ops.
3295 (class process_target): Add the target ops.
3296 * target.cc (process_target::stopped_by_watchpoint): Define.
3297 (process_target::stopped_data_address): Define.
3299 Update the derived classes and callers below.
3301 * remote-utils.cc (prepare_resume_reply): Update.
3302 * linux-low.cc (linux_target_ops): Update.
3303 (linux_stopped_by_watchpoint): Turn into ...
3304 (linux_process_target::stopped_by_watchpoint): ... this.
3305 (linux_stopped_data_address): Turn into ...
3306 (linux_process_target::stopped_data_address): ... this.
3307 * linux-low.h (class linux_process_target): Update.
3308 * lynx-low.cc (lynx_target_ops): Update.
3309 * nto-low.cc (nto_target_ops): Update.
3310 (nto_stopped_by_watchpoint): Turn into ...
3311 (nto_process_target::stopped_by_watchpoint): ... this.
3312 (nto_stopped_data_address): Turn into ...
3313 (nto_process_target::stopped_data_address): ... this.
3314 * nto-low.h (class nto_process_target): Update.
3315 * win32-low.cc (win32_target_ops): Update.
3316 (win32_stopped_by_watchpoint): Turn into ...
3317 (win32_process_target::stopped_by_watchpoint): ... this.
3318 (win32_stopped_data_address): Turn into ...
3319 (win32_process_target::stopped_data_address): ... this.
3320 * win32-low.h (class win32_process_target): Update.
3322 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3324 Turn process_stratum_target's supports_hardware_single_step op into
3325 a method of process_target.
3327 * target.h (struct process_stratum_target): Remove the target op.
3328 (class process_target): Add the target op.
3329 (target_supports_hardware_single_step): Update the macro.
3330 (target_can_do_hardware_single_step): Remove declaration.
3331 * target.cc (process_target::supports_hardware_single_step): Define.
3332 (target_can_do_hardware_single_step): Remove.
3334 Update the derived classes and callers below.
3336 * linux-low.h (class linux_process_target): Update.
3337 * linux-low.cc (linux_target_ops): Update.
3338 (linux_supports_hardware_single_step): Turn into ...
3339 (linux_process_target::supports_hardware_single_step): ... this.
3340 * lynx-low.h (class lynx_process_target): Update.
3341 * lynx-low.cc (lynx_target_ops): Update.
3342 (lynx_process_target::supports_hardware_single_step): Define.
3343 * nto-low.h (class nto_process_target): Update.
3344 * nto-low.cc (nto_target_ops): Update.
3345 (nto_process_target::supports_hardware_single_step): Define.
3346 * win32-low.h (class win32_process_target): Update.
3347 * win32-low.cc (win32_target_ops): Update.
3348 (win32_process_target::supports_hardware_single_step): Define.
3350 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3352 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3353 ops into methods of process_target.
3355 * target.h (struct process_stratum_target): Remove the target ops.
3356 (class process_target): Add the target ops.
3357 (target_stopped_by_hw_breakpoint): Update the macro.
3358 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3359 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3360 (process_target::supports_stopped_by_hw_breakpoint): Define.
3362 Update the derived classes and callers below.
3364 * linux-low.cc (linux_target_ops): Update.
3365 (linux_stopped_by_hw_breakpoint): Turn into ...
3366 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3367 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3368 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3369 * linux-low.h (class linux_process_target): Update.
3370 * lynx-low.cc (lynx_target_ops): Update.
3371 * nto-low.cc (nto_target_ops): Update.
3372 * win32-low.cc (win32_target_ops): Update.
3374 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3376 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3377 ops into methods of process_target.
3379 * target.h (struct process_stratum_target): Remove the target ops.
3380 (class process_target): Add the target ops.
3381 (target_stopped_by_sw_breakpoint): Update the macro.
3382 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3383 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3384 (process_target::supports_stopped_by_sw_breakpoint): Define.
3386 Update the derived classes and callers below.
3388 * linux-low.cc (linux_target_ops): Update.
3389 (linux_stopped_by_sw_breakpoint): Turn into ...
3390 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3391 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3392 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3393 * linux-low.h (class linux_process_target): Update.
3394 * lynx-low.cc (lynx_target_ops): Update.
3395 * nto-low.cc (nto_target_ops): Update.
3396 * win32-low.cc (win32_target_ops): Update.
3398 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3400 Turn process_stratum_target's insert_point and remove_point ops
3401 into methods of process_target.
3403 * target.h (struct process_stratum_target): Remove the target ops.
3404 (class process_target): Add the target ops.
3405 * target.cc (process_target::insert_point): Define.
3406 (process_target::remove_point): Define.
3408 Update the derived classes and callers below.
3410 * mem-break.cc (set_raw_breakpoint_at): Update.
3411 (delete_raw_breakpoint): Update.
3412 (uninsert_raw_breakpoint): Update.
3413 (reinsert_raw_breakpoint): Update.
3414 * linux-low.cc (linux_target_ops): Update.
3415 (linux_insert_point): Turn into ...
3416 (linux_process_target::insert_point): ... this.
3417 (linux_remove_point): Turn into ...
3418 (linux_process_target::remove_point): ... this.
3419 * linux-low.h (class linux_process_target): Update.
3420 * lynx-low.cc (lynx_target_ops): Update.
3421 * nto-low.cc (nto_target_ops): Update.
3422 (nto_insert_point): Turn into ...
3423 (nto_process_target::insert_point): ... this.
3424 (nto_remove_point): Turn into ...
3425 (nto_process_target::remove_point): ... this.
3426 * nto-low.h (class nto_process_target): Update.
3427 * win32-low.cc (win32_target_ops): Update.
3428 (win32_insert_point): Turn into ...
3429 (win32_process_target::insert_point): ... this.
3430 (win32_remove_point): Turn into ...
3431 (win32_process_target::remove_point): ... this.
3432 * win32-low.h (class win32_process_target): Update.
3434 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3436 Turn process_stratum_target's supports_z_point_type op into a
3437 method of process_target.
3439 * target.h (struct process_stratum_target): Remove the target op.
3440 (class process_target): Add the target op.
3441 * target.cc (process_target::supports_z_point_type): Define.
3443 Update the derived classes and callers below.
3445 * mem-break.cc (z_type_supported): Update.
3446 * linux-low.cc (linux_target_ops): Update.
3447 (linux_supports_z_point_type): Turn into ...
3448 (linux_process_target::supports_z_point_type): ... this.
3449 * linux-low.h (class linux_process_target): Update.
3450 * lynx-low.cc (lynx_target_ops): Update.
3451 * nto-low.cc (nto_target_ops): Update.
3452 (nto_supports_z_point_type): Turn into ...
3453 (nto_process_target::supports_z_point_type): ... this.
3454 * nto-low.h (class nto_process_target): Update.
3455 * win32-low.cc (win32_target_ops): Update.
3456 (win32_supports_z_point_type): Turn into ...
3457 (win32_process_target::supports_z_point_type): ... this.
3458 * win32-low.h (class win32_process_target): Update.
3460 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3462 Turn process_stratum_target's read_auxv op into a method of
3465 * target.h (class process_stratum_target): Remove the target op.
3466 (struct process_target): Add the target op. Also add
3467 'supports_read_auxv'.
3468 * target.cc (process_target::read_auxv): Define.
3469 (process_target::supports_read_auxv): Define.
3471 Update the derived classes and callers below.
3473 * server.cc (handle_qxfer_auxv): Update.
3474 (handle_query): Update.
3475 * linux-low.cc (linux_target_ops): Update.
3476 (linux_process_target::supports_read_auxv): Define.
3477 (linux_read_auxv): Turn into ...
3478 (linux_process_target::read_auxv): ... this.
3479 * linux-low.h (class linux_process_target): Update.
3480 * lynx-low.cc (lynx_target_ops): Update.
3481 * nto-low.cc (nto_target_ops): Update.
3482 (nto_process_target::supports_read_auxv): Define.
3483 (nto_read_auxv): Turn into ...
3484 (nto_process_target::read_auxv): ... this.
3485 * nto-low.h (class nto_process_target): Update.
3486 * win32-low.cc (win32_target_ops): Update.
3488 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3490 Turn process_stratum_target's request_interrupt op into a method of
3493 * target.h (struct process_stratum_target): Remove the target op.
3494 (class process_target): Add the target op.
3496 Update the derived classes and callers below.
3498 * remote-utils.cc (putpkt_binary_1): Update.
3499 (input_interrupt): Update.
3501 * server.cc (handle_v_requests): Update.
3502 * linux-low.cc (linux_target_ops): Update.
3503 (linux_request_interrupt): Turn into ...
3504 (linux_process_target::request_interrupt): ... this.
3505 * linux-low.h (class linux_process_target): Update.
3506 * lynx-low.cc (lynx_target_ops): Update.
3507 (lynx_request_interrupt): Turn into ...
3508 (lynx_process_target::request_interrupt): ... this.
3509 * lynx-low.h (class lynx_process_target): Update.
3510 * nto-low.cc (nto_target_ops): Update.
3511 (nto_request_interrupt): Turn into ...
3512 (nto_process_target::request_interrupt): ... this.
3513 * nto-low.h (class nto_process_target): Update.
3514 * win32-low.cc (win32_target_ops): Update.
3515 (win32_request_interrupt): Turn into ...
3516 (win32_process_target::request_interrupt): ... this.
3517 * win32-low.h (class win32_process_target): Update.
3519 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3521 Turn process_stratum_target's look_up_symbols op into a method of
3524 * target.h (struct process_stratum_target): Remove the target op.
3525 (class process_target): Add the target op.
3526 * target.cc (process_target::look_up_symbols): Define.
3528 Update the derived classes and callers below.
3530 * server.cc (handle_query): Update.
3531 * linux-low.cc (linux_target_ops): Update.
3532 (linux_look_up_symbols): Turn into ...
3533 (linux_process_target::look_up_symbols): ... this.
3534 * linux-low.h (class linux_process_target): Update.
3535 * lynx-low.cc (lynx_target_ops): Update.
3536 * nto-low.cc (nto_target_ops): Update.
3537 * win32-low.cc (win32_target_ops): Update.
3539 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3541 Turn process_stratum_target's read_memory and write_memory
3542 ops into methods of process_target.
3544 * target.h (struct process_stratum_target): Remove the target ops.
3545 (class process_target): Add the target ops.
3547 Update the derived classes and callers below.
3549 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3550 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3551 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3552 (arm_get_syscall_trapinfo): Update.
3553 * linux-cris-low.cc (cris_breakpoint_at): Update.
3554 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3555 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3556 * linux-mips-low.cc (mips_breakpoint_at): Update.
3557 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3558 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3559 * linux-sh-low.cc (sh_breakpoint_at): Update.
3560 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3561 (sparc_store_gregset_from_stack): Update.
3562 (sparc_breakpoint_at): Update.
3563 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3564 * linux-tile-low.cc (tile_breakpoint_at): Update.
3565 * linux-x86-low.cc (x86_breakpoint_at): Update.
3566 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3567 * mem-brea.cc (insert_memory_breakpoint): Update.
3568 (validate_inserted_breakpoint): Update.
3569 * target.cc (read_inferior_memory): Update.
3570 (target_write_memory): Update.
3571 * linux-low.cc (linux_target_ops): Update.
3572 (linux_read_memory): Make a wrapper around the read_memory target
3574 (linux_process_target::read_memory): Rename from linux_read_memory.
3575 (linux_write_memory): Turn into ...
3576 (linux_process_target::write_memory): ... this.
3577 * linux-low.h (class linux_process_target): Update.
3578 * lynx-low.cc (lynx_target_ops): Update.
3579 (lynx_read_memory): Turn into ...
3580 (lynx_process_target::read_memory): ... this.
3581 (lynx_write_memory): Turn into ...
3582 (lynx_process_target::write_memory): ... this.
3583 * lynx-low.h (class lynx_process_target): Update.
3584 * nto-low.cc (nto_target_ops): Update.
3585 (nto_read_memory): Turn into ...
3586 (nto_process_target::read_memory): ... this.
3587 (nto_write_memory): Turn into ...
3588 (nto_process_target::write_memory): ... this.
3589 * nto-low.h (class nto_process_target): Update.
3590 * win32-low.cc (win32_target_ops): Update.
3591 (win32_read_inferior_memory): Turn into ...
3592 (win32_process_target::read_memory): ... this.
3593 (win32_write_inferior_memory): Turn into ...
3594 (win32_process_target::write_memory): ... this.
3595 * win32-low.h (class win32_process_target): Update.
3597 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3599 Turn process_stratum_target's prepare_to_access_memory and
3600 done_accessing_memory ops into methods of process_target.
3602 * target.h (struct process_stratum_target): Remove the target ops.
3603 (class process_target): Add the target ops.
3604 * target.cc (process_target::prepare_to_access_memory): Define.
3605 (process_target::done_accessing_memory): Define.
3606 (prepare_to_access_memory): Update.
3607 (done_accessing_memory): Update.
3609 Update the derived classes and callers below.
3611 * linux-low.cc (linux_target_ops): Update.
3612 (linux_prepare_to_access_memory): Turn into ...
3613 (linux_process_target::prepare_to_access_memory): ... this.
3614 (linux_done_accessing_memory): Turn into ...
3615 (linux_process_target::done_accessing_memory): ... this.
3616 * linux-low.h (class linux_process_target): Update.
3617 * lynx-low.cc (lynx_target_ops): Update.
3618 * nto-low.cc (nto_target_ops): Update.
3619 * win32-low.cc (win32_target_ops): Update.
3621 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3623 Turn process_stratum_target's fetch_registers and store_registers
3624 ops into methods of process_target.
3626 * target.h (struct process_stratum_target): Remove the target ops.
3627 (class process_target): Add the target ops.
3628 (fetch_inferior_registers): Update the macro.
3629 (store_inferior_registers): Update the macro.
3631 Update the derived classes and callers below.
3633 * linux-low.cc (linux_target_ops): Update.
3634 (linux_fetch_registers): Turn into ...
3635 (linux_process_target::fetch_registers): ... this.
3636 (linux_store_registers): Turn into ...
3637 (linux_process_target::store_registers): ... this.
3638 * linux-low.h (class linux_process_target): Update.
3639 * lynx-low.cc (lynx_target_ops): Update.
3640 (lynx_fetch_registers): Turn into ...
3641 (lynx_process_target::fetch_registers): ... this.
3642 (lynx_store_registers): Turn into ...
3643 (lynx_process_target::store_registers): ... this.
3644 * lynx-low.h (class lynx_process_target): Update.
3645 * nto-low.cc (nto_target_ops): Update.
3646 (nto_fetch_registers): Turn into ...
3647 (nto_process_target::fetch_registers): ... this.
3648 (nto_store_registers): Turn into ...
3649 (nto_process_target::store_registers): ... this.
3650 * nto-low.h (class nto_process_target): Update.
3651 * win32-low.cc (win32_target_ops): Update.
3652 (win32_fetch_inferior_registers): Turn into ...
3653 (win32_process_target::fetch_registers): ... this.
3654 (win32_store_inferior_registers): Turn into ...
3655 (win32_process_target::store_registers): ... this.
3656 * win32-low.h (class win32_process_target): Update.
3658 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3660 Turn process_stratum_target's wait op into a method of
3663 * target.h (struct process_stratum_target): Remove the target op.
3664 (class process_target): Add the target op.
3666 Update the derived classes and callers below.
3668 * target.cc (target_wait): Update.
3669 * linux-low.cc (linux_target_ops): Update.
3670 (linux_wait): Turn into ...
3671 (linux_process_target::wait): ... this.
3672 * linux-low.h (class linux_process_target): Update.
3673 * lynx-low.cc (lynx_target_ops): Update.
3674 (lynx_wait): Turn into ...
3675 (lynx_process_target::wait): ... this.
3676 * lynx-low.h (class lynx_process_target): Update.
3677 * nto-low.cc (nto_target_ops): Update.
3678 (nto_wait): Turn into ...
3679 (nto_process_target::wait): ... this.
3680 * nto-low.h (class nto_process_target): Update.
3681 * win32-low.cc (win32_target_ops): Update.
3682 (win32_wait): Turn into ...
3683 (win32_process_target::wait): ... this.
3684 (do_initial_child_stuff): Update.
3685 * win32-low.h (class win32_process_target): Update.
3687 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3689 Turn process_stratum_target's resume op into a method of
3692 * target.h (struct process_stratum_target): Remove the target op.
3693 (class process_target): Add the target op.
3695 Update the derived classes and callers below.
3697 * server.cc (resume): Update.
3698 * target.cc (target_stop_and_wait): Update.
3699 (target_continue_no_signal): Update.
3700 (target_continue): Update.
3701 * linux-low.cc (linux_target_ops): Update.
3702 (linux_resume): Turn into ...
3703 (linux_process_target::resume): ... this.
3704 * linux-low.h (class linux_process_target): Update.
3705 * lynx-low.cc (lynx_target_ops): Update.
3706 (lynx_resume): Turn into ...
3707 (lynx_process_target::resume): ... this.
3708 * lynx-low.h (class lynx_process_target): Update.
3709 * nto-low.cc (nto_target_ops): Update.
3710 (nto_resume): Turn into ...
3711 (nto_process_target::resume): ... this.
3712 * nto-low.h (class nto_process_target): Update.
3713 * win32-low.cc (win32_target_ops): Update.
3714 (win32_resume): Turn into ...
3715 (win32_process_target::resume): ... this.
3716 (win32_process_target::detach): Update.
3717 (do_initial_child_stuff): Update.
3718 * win32-low.h (class win32_process_target): Update.
3720 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3722 Turn process_stratum_target's thread_alive op into a method of
3725 * target.h (struct process_stratum_target): Remove the target op.
3726 (class process_target): Add the target op.
3727 (mythread_alive): Update the macro.
3729 Update the derived classes and callers below.
3731 * linux-low.cc (linux_target_ops): Update.
3732 (linux_thread_alive): Turn into ...
3733 (linux_process_target::thread_alive): ... this.
3734 (wait_for_sigstop): Update.
3735 * linux-low.h (class linux_process_target): Update.
3736 * lynx-low.cc (lynx_target_ops): Update.
3737 (lynx_thread_alive): Turn into ...
3738 (lynx_process_target::thread_alive): ... this.
3739 * lynx-low.h (class lynx_process_target): Update.
3740 * nto-low.cc (nto_target_ops): Update.
3741 (nto_thread_alive): Turn into ...
3742 (nto_process_target::thread_alive): ... this.
3743 * nto-low.h (class nto_process_target): Update.
3744 * win32-low.cc (win32_target_ops): Update.
3745 (win32_thread_alive): Turn into ...
3746 (win32_process_target::thread_alive): ... this.
3747 * win32-low.h (class win32_process_target): Update.
3749 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3751 Turn process_stratum_target's join op into a method of
3754 * target.h (struct process_stratum_target): Remove the target op.
3755 (class process_target): Add the target op.
3756 (join_inferior): Update the macro.
3758 Update the derived classes and callers below.
3760 * linux-low.cc (linux_target_ops): Update.
3761 (linux_join): Turn into ...
3762 (linux_process_target::join): ... this.
3763 * linux-low.h (class linux_process_target): Update.
3764 * lynx-low.cc (lynx_target_ops): Update.
3765 (lynx_join): Turn into ...
3766 (lynx_process_target::join): ... this.
3767 * lynx-low.h (class lynx_process_target): Update.
3768 * nto-low.cc (nto_target_ops): Update.
3769 (nto_process_target::join): Define.
3770 * nto-low.h (class nto_process_target): Update.
3771 * win32-low.cc (win32_target_ops): Update.
3772 (win32_join): Turn into ...
3773 (win32_process_target::join): ... this.
3774 * win32-low.h (class win32_process_target): Update.
3776 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3778 Turn process_stratum_target's mourn op into a method of
3781 * target.h (struct process_stratum_target): Remove the target op.
3782 (class process_target): Add the target op.
3784 Update the derived classes and callers below.
3786 * target.cc (target_mourn_inferior): Update.
3787 * linux-low.cc (linux_target_ops): Update.
3788 (linux_mourn): Turn into ...
3789 (linux_process_target::mourn): ... this.
3790 (handle_extended_wait): Update.
3791 (linux_process_target::kill): Update.
3792 (linux_process_target::detach): Update.
3793 * linux-low.h (class linux_process_target): Update.
3794 * lynx-low.cc (lynx_target_ops): Update.
3795 (lynx_mourn): Turn into ...
3796 (lynx_process_target::mourn): ... this.
3797 * lynx-low.h (class lynx_process_target): Update.
3798 * nto-low.cc (nto_target_ops): Update.
3799 (nto_mourn): Turn into ...
3800 (nto_process_target::mourn): ... this.
3801 * nto-low.h (class nto_process_target): Update.
3802 * win32-low.cc (win32_target_ops): Update.
3803 (win32_mourn): Turn into ...
3804 (win32_process_target::mourn): ... this.
3805 * win32-low.h (class win32_process_target): Update.
3807 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3809 Turn process_stratum_target's detach op into a method of
3812 * target.h (struct process_stratum_target): Remove the target op.
3813 (class process_target): Add the target op.
3814 (detach_inferior): Update the macro.
3816 Update the derived classes and callers below.
3818 * linux-low.cc (linux_target_ops): Update.
3819 (linux_detach): Turn into ...
3820 (linux_process_target::detach): ... this.
3821 * linux-low.h (class linux_process_target): Update.
3822 * lynx-low.cc (lynx_target_ops): Update.
3823 (lynx_detach): Turn into ...
3824 (lynx_process_target::detach): ... this.
3825 * lynx-low.h (class lynx_process_target): Update.
3826 * nto-low.cc (nto_target_ops): Update.
3827 (nto_detach): Turn into ...
3828 (nto_process_target::detach): ... this.
3829 * nto-low.h (class nto_process_target): Update.
3830 * win32-low.cc (win32_target_ops): Update.
3831 (win32_detach): Turn into ...
3832 (win32_process_target::detach): ... this.
3833 * win32-low.h (class win32_process_target): Update.
3835 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3837 Turn process_stratum_target's kill op into a method of
3840 * target.h (struct process_stratum_target): Remove the target op.
3841 (class process_target): Add the target op.
3843 Update the derived classes and callers below.
3845 * target.cc (kill_inferior): Update.
3846 * linux-low.cc (linux_target_ops): Update.
3847 (linux_kill): Turn into ...
3848 (linux_process_target::kill): ... this.
3849 * linux-low.h (class linux_process_target): Update.
3850 * lynx-low.cc (lynx_target_ops): Update.
3851 (lynx_kill): Turn into ...
3852 (lynx_process_target::kill): ... this.
3853 * lynx-low.h (class lynx_process_target): Update.
3854 * nto-low.cc (nto_target_ops): Update.
3855 (nto_kill): Turn into ...
3856 (nto_process_target::kill): ... this.
3857 * nto-low.h (class nto_process_target): Update.
3858 * win32-low.cc (win32_target_ops): Update.
3859 (win32_kill): Turn into ...
3860 (win32_process_target::kill): ... this.
3861 * win32-low.h (class win32_process_target): Update.
3863 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3865 Turn process_stratum_target's attach op into a method of
3868 * target.h (struct process_stratum_target): Remove the target op.
3869 (class process_target): Add the target op.
3870 (myattach): Update the macro.
3872 Update the derived classes and callers below.
3874 * linux-low.cc (linux_target_ops): Update.
3875 (linux_attach): Turn into ...
3876 (linux_process_target::attach): ... this.
3877 * linux-low.h (class linux_process_target): Update.
3878 * lynx-low.cc (lynx_target_ops): Update.
3879 (lynx_attach): Turn into ...
3880 (lynx_process_target::attach): ... this.
3881 * lynx-low.h (class lynx_process_target): Update.
3882 * nto-low.cc (nto_target_ops): Update.
3883 (nto_attach): Turn into ...
3884 (nto_process_target::attach): ... this.
3885 * nto-low.h (class nto_process_target): Update.
3886 * win32-low.cc (win32_target_ops): Update.
3887 (win32_attach): Turn into ...
3888 (win32_process_target::attach): ... this.
3889 * win32-low.h (class win32_process_target): Update.
3891 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3893 Turn process_stratum_target's post_create_inferior op into a method
3896 * target.h (struct process_stratum_target): Remove the target op.
3897 (class process_target): Add the target op.
3898 (target_post_create_inferior): Update the macro.
3899 * target.cc (process_target::post_create_inferior): Define.
3901 Update the derived classes and callers below.
3903 * linux-low.cc (linux_target_ops): Update.
3904 (linux_post_create_inferior): Turn into ...
3905 (linux_process_target::post_create_inferior): ... this.
3906 * linux-low.h (class linux_process_target): Update.
3907 * lynx-low.cc (lynx_target_ops): Update.
3908 * nto-low.cc (nto_target_ops): Update.
3909 * win32-low.cc (win32_target_ops): Update.
3911 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3913 Turn process_stratum_target's create_inferior op into a method of
3916 * target.h (struct process_stratum_target): Remove the target op.
3917 (class process_target): Add the target op.
3918 (create_inferior): Rename the macro to ...
3919 (target_create_inferior): ... this.
3921 Update the derived classes and callers below.
3923 * server.cc (handle_v_run): Update.
3924 (captured_main): Update.
3925 (process_serial_event): Update.
3926 * linux-low.cc (linux_target_ops): Update.
3927 (linux_create_inferior): Turn into ...
3928 (linux_process_target::create_inferior): ... this.
3929 * linux-low.h (class linux_process_target): Update.
3930 * lynx-low.cc (lynx_target_ops): Update.
3931 (lynx_create_inferior): Turn into ...
3932 (lynx_process_target::create_inferior): ... this.
3933 * lynx-low.h (class lynx_process_target): Update.
3934 * nto-low.cc (nto_target_ops): Update.
3935 (nto_create_inferior): Turn into ...
3936 (nto_process_target::create_inferior): ... this.
3937 * nto-low.h (class nto_process_target): Update.
3938 * win32-low.cc (win32_target_ops): Update.
3939 (win32_create_inferior): Turn into ...
3940 (win32_process_target::create_inferior): ... this.
3941 * win32-low.h (class win32_process_target): Update.
3943 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3945 * target.h (class process_target): New class definition.
3946 (struct process_stratum_target) <pt>: New field with type
3948 * linux-low.h (class linux_process_target): Define as a derived
3949 class of 'process_target'.
3950 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3952 * lynx-low.h (class lynx_process_target): Define as a derived
3953 class of 'process_target'.
3954 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3956 * nto-low.h (class nto_process_target): Define as a derived
3957 class of 'process_target'.
3958 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3960 * win32-low.h (class win32_process_target): Define as a derived
3961 class of 'process_target'.
3962 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3965 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3967 * configure: Regenerate.
3969 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
3970 Andrew Burgess <andrew.burgess@embecosm.com>
3972 * linux-riscv-low.cc: New file.
3973 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3974 and nat/riscv-linux-tdesc.c.
3975 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3976 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3979 2020-02-14 Tom Tromey <tom@tromey.com>
3981 * acinclude.m4: Don't include acx_configure_dir.m4.
3982 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3983 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3984 (all, install-only, uninstall, clean-info, clean)
3985 (maintainer-clean): Don't recurse.
3986 (subdir_do, all-lib): Remove.
3987 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3989 (generated_files): Update.
3990 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3991 * configure: Rebuild.
3992 * configure.ac: Don't configure gnulib or libiberty.
3995 2020-02-14 Eli Zaretskii <eliz@gnu.org>
3997 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3998 preparing the command line for CreateProcess.
3999 (win32_create_inferior): Reflect the program name in debugging
4000 output that shows the process and its command line.
4002 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4004 * Makefile.in: Rename source files from .c to .cc.
4005 * %.c: Rename to %.cc.
4006 * configure.ac: Rename server.c to server.cc.
4007 * configure: Re-generate.
4009 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4011 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4013 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4015 * win32-low.c (win32_create_inferior): Set signal_pid.
4017 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4018 Pedro Alves <palves@redhat.com>
4020 Skip building gdbserver in a cross-configuration.
4021 * configure.srv: Set $gdbserver_host depending on whether $target
4022 is $host. Use $gdbserver_host instead of $host.
4024 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4026 * configure: Re-generate.
4028 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4030 * configure: Re-generate.
4032 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4034 * acinclude.m4: Update warning.m4 path.
4036 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4038 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4039 (handle_exception): Set siginfo_er.
4040 (win32_xfer_siginfo): New function.
4042 2020-02-07 Tom Tromey <tom@tromey.com>
4043 Pedro Alves <palves@redhat.com>
4045 * README: Update build documentation.
4046 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4048 * configure.ac: Update paths.
4049 * configure: Rebuild.
4050 * acinclude.m4: Update paths.
4051 * Makefile.in: Update include paths.
4052 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4053 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4054 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4055 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4056 (%-generated.c): Update paths.
4057 * Move entire directory from ../gdb/gdbserver.
4059 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4061 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4063 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4065 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4066 assignment instead of srv_linux_obj.
4068 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4070 * server.c (handle_qxfer_libraries): Write segment-address with
4073 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4075 * Makefile.in (install-strip): New target.
4076 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4077 * aclocal.m4: Regenerate.
4078 * configure: Regenerate.
4079 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4081 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4083 * Makefile.in (SFILES): Adjust paths to point to real files.
4084 (OBS): Move waitstatus.o to target/waitstatus.o.
4085 (TAGS): Transform paths appropriately.
4087 (nat/%.o): ... this pattern rule.
4089 (target/%.o): ... this pattern rule.
4090 * configure.srv: Adjust paths throughout to include nat/ prefix
4091 with the revant files.
4092 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4093 * configure: Regenerate.
4095 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4097 * Makefile.in (TAGS): Remove config files from the recipe.
4099 2020-01-14 Tom Tromey <tom@tromey.com>
4101 * configure: Rebuild.
4102 * configure.ac: Remove any checks that were added to common.m4.
4103 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4106 2020-01-14 Tom Tromey <tom@tromey.com>
4108 * server.h: Include config.h.
4109 * gdbreplay.c: Include config.h.
4110 * configure: Rebuild.
4111 * configure.ac: Don't source common.host.
4112 * acinclude.m4: Update path.
4113 * Makefile.in (INCSUPPORT): New variable.
4114 (INCLUDE_CFLAGS): Add INCSUPPORT.
4115 (SFILES): Update paths.
4116 (version-generated.c): Update path to create-version.sh.
4117 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4119 2020-01-14 Tom Tromey <tom@tromey.com>
4121 * configure.ac (LIBS): Use WIN32APILIBS.
4122 (USE_WIN32API): Don't define.
4123 * configure: Rebuild.
4125 2020-01-14 Tom Tromey <tom@tromey.com>
4127 * configure: Rebuild.
4129 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4131 * Makefile.in (%-generated.c): Remove rule for files from
4134 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4136 * configure: Re-generate.
4138 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4140 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4142 * tracepoint.c (stop_tracing, flush_trace_buffer,
4143 about_to_request_buffer_space, get_trace_state_variable_value,
4144 set_trace_state_variable_value, gdb_collect): Add declaration.
4146 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4148 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4149 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4150 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4151 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4152 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4155 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4157 * inferiors.c: Include gdbsupport/common-inferior.h.
4159 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4161 * hostio-errno.c: Include hostio.h.
4163 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4165 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4168 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4170 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4171 * linux-arm-tdesc.h: Include arch/arm.h.
4173 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4175 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4177 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4179 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4180 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4182 2020-01-10 Pedro Alves <palves@redhat.com>
4184 * fork-child.c (post_fork_inferior): Pass target down to
4186 * inferiors.c (switch_to_thread): Add process_stratum_target
4188 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4189 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4190 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4191 * remote-utils.c (prepare_resume_reply): Pass the target to
4193 * target.c (the_target): Now a process_stratum_target.
4194 (done_accessing_memory): Pass the target to switch_to_thread.
4195 (set_target_ops): Ajust to use process_stratum_target.
4196 * target.h (struct target_ops): Rename to ...
4197 (struct process_stratum_target): ... this.
4198 (the_target, set_target_ops): Adjust.
4199 (prepare_to_access_memory): Adjust comment.
4200 * win32-low.c (child_xfer_memory): Adjust to use
4201 process_stratum_target.
4202 (win32_target_ops): Now a process_stratum_target.
4204 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4205 Pedro Alves <palves@redhat.com>
4207 * win32-low.c (get_child_debug_event): Extract the fatal exception
4208 from the exit status and convert to the equivalent Posix signal
4210 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4211 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4213 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4215 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4217 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4219 * server.c (gdbserver_version): Change copyright year to 2020.
4220 * gdbreplay.c (gdbreplay_version): Likewise.
4222 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4224 * configure: Regenerate.
4225 * configure.ac: Quote variable arguments of test.
4227 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4229 * Makefile.in: Fix build with GNU Make 3.81
4231 2019-12-16 Tom Tromey <tromey@adacore.com>
4233 * server.c (get_exec_file): Constify result.
4235 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4237 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4238 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4239 * config.in: Regenerate.
4240 * configure: Regenerate.
4241 * configure.ac: Don't check for strerror.
4242 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4243 Call safe_strerror instead of strerror.
4244 * server.h (strerror): Remove this now-unnecessary declaration.
4245 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4247 (gdb_agent_helper_thread): Likewise.
4248 * utils.c (perror_with_name): Likewise.
4250 2019-11-26 Tom Tromey <tom@tromey.com>
4252 * configure, config.in: Rebuild.
4254 2019-11-26 Tom Tromey <tom@tromey.com>
4256 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4257 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4259 * configure, config.in: Rebuild.
4261 2019-11-26 Tom Tromey <tom@tromey.com>
4263 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4264 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4265 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4266 * acinclude.m4: Include ax_pthread.m4.
4267 * config.in, configure: Rebuild.
4269 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4271 * debug.c (debug_set_output): Call safe_strerror instead of
4273 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4274 (linux_kill_one_lwp): Likewise.
4275 (linux_detach_one_lwp): Likewise.
4276 (linux_wait_for_event_filtered): Likewise.
4277 (store_register): Likewise.
4278 * lynx-low.c (lynx_attach): Likewise.
4279 * mem-break.c (insert_memory_breakpoint): Likewise.
4280 (remove_memory_breakpoint): Likewise.
4281 (delete_fast_tracepoint_jump): Likewise.
4282 (set_fast_tracepoint_jump): Likewise.
4283 (uninsert_fast_tracepoint_jumps_at): Likewise.
4284 (reinsert_fast_tracepoint_jumps_at): Likewise.
4285 * nto-low.c (nto_xfer_memory): Likewise.
4286 (nto_resume): Likewise.
4288 2019-11-20 Luis Machado <luis.machado@linaro.org>
4290 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4291 instead of register count.
4292 * tdesc.c (tdesc_contains_feature): New function.
4293 * tdesc.h (tdesc_contains_feature): New prototype.
4295 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4297 * Makefile.in: Add safe-strerror.c.
4298 * configure: Regenerate.
4299 * configure.ac: Don't source common.host.
4301 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4303 * config.in: Regenerate.
4304 * configure: Regenerate.
4306 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4308 * ax.c (ax_printf): Handle size_t_arg.
4310 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4312 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4313 * mi/mi-main.c (output_cores): Likewise.
4314 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4315 (linux_xfer_osdata_modules): Likewise.
4316 * remote.c (register_remote_support_xml): Likewise.
4317 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4318 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4320 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4322 * configure: Regenerate.
4323 * configure.ac: Remove check for strerror_r.
4325 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4327 * config.in: Regenerate.
4328 * configure: Regenerate.
4329 * configure.ac: Also check for strerror_r.
4331 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4333 * ax.h (debug_agent): Remove duplicate declaration.
4335 2019-10-26 Tom de Vries <tdevries@suse.de>
4337 * linux-aarch64-low.c: Fix typos in comments.
4338 * linux-arm-low.c: Same.
4339 * linux-low.c: Same.
4340 * linux-ppc-low.c: Same.
4341 * proc-service.c: Same.
4344 * tracepoint.c: Same.
4345 * win32-low.c: Same.
4347 2019-10-25 Tom Tromey <tromey@adacore.com>
4349 * utils.c (xstrdup): Remove.
4351 2019-10-23 Tom Tromey <tom@tromey.com>
4353 * configure, config.in: Rebuild.
4355 2019-10-23 Tom Tromey <tom@tromey.com>
4357 * configure: Rebuild.
4358 * acinclude.m4: Use m4_include, not sinclude.
4360 2019-10-17 Tom Tromey <tromey@adacore.com>
4362 * configure: Rebuild.
4363 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4364 in AC_CONFIG_FILES invocation.
4365 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4368 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4370 * server.c: Include xml-builtin.h.
4371 (get_xml_features): Don't declare xml_builtins here.
4373 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4375 * Makefile.in: Remove references to vec-ipa.o.
4377 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4379 * Makefile.in: Remove references to vec.c.
4381 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4383 * server.c (server_waiting): Change to bool.
4384 (extended_protocol): Likewise.
4385 (response_needed): Likewise.
4386 (exit_requested): Likewise.
4387 (run_once): Likewise.
4388 (report_no_resumed): Likewise.
4389 (non_stop): Likewise.
4390 (disable_packet_vCont): Likewise.
4391 (disable_packet_Tthread): Likewise.
4392 (disable_packet_qC): Likewise.
4393 (disable_packet_qfThreadInfo): Likewise.
4394 (handle_general_set): Update.
4395 (handle_detach): Update.
4396 (handle_monitor_command): Update.
4397 (handle_query): Update.
4398 (captured_main): Update.
4399 (process_serial_event): Update.
4400 * server.h (server_waiting): Change to bool.
4401 (disable_packet_vCont): Likewise.
4402 (disable_packet_Tthread): Likewise.
4403 (disable_packet_qC): Likewise.
4404 (disable_packet_qfThreadInfo): Likewise.
4405 (run_once): Likewise.
4406 (non_stop): Likewise.
4407 * target.c (target_stop_and_wait): Update.
4409 2019-10-02 Tom Tromey <tromey@adacore.com>
4411 * Makefile.in (SFILES): Add common-inferior.c.
4412 (OBS): Add common-inferior.o.
4413 * server.c (startup_with_shell): Don't define.
4415 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4417 * linux-low.c (linux_low_read_btrace): Update for change to
4420 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4422 * debug.c (debug_threads): Remove comment in favor of the header.
4423 * debug.h (using_threads): Add declaration.
4424 (debug_threads): Add comment.
4425 * linux-aarch64-low.c: Include debug.h and remove declaration of
4427 * nto-low.c: Likewise.
4428 * remote-utils.c: Likewise.
4429 * thread-db.c: Likewise.
4431 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4433 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4434 and powerpc-cell64l-ipa.o.
4435 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4436 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4437 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4440 * spu-low.c: Remove file.
4442 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4443 (parse_spufs_run): Remove.
4444 (ppc_get_pc): Remove Cell/B.E. support.
4445 (ppc_set_pc): Likewise.
4446 (ppc_breakpoint_at): Likewise.
4447 (ppc_arch_setup): Likewise.
4448 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4449 tdesc_powerpc_cell32l.
4450 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4451 or init_registers_powerpc_cell32l.
4452 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4453 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4454 or init_registers_powerpc_cell32l.
4455 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4456 (init_registers_powerpc_cell32l): Remove prototype.
4457 (init_registers_powerpc_cell64l): Likewise.
4459 * target.h (struct target_ops): Remove qxfer_spu member.
4460 * server.c (handle_qxfer_spu): Remove.
4461 (qxfer_packets): Remove entry for "spu".
4462 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4463 * linux-low.c (SPUFS_MAGIC): Remove.
4464 (spu_enumerate_spu_ids): Remove.
4465 (linux_qxfer_spu): Remove.
4466 (linux_target_ops): Remove qxfer_spu member.
4467 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4468 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4469 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4471 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4473 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4474 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4475 * config.in: Regenerate.
4476 * configure: Regenerate.
4478 2019-08-15 Tom Tromey <tromey@adacore.com>
4480 * target.c (target_write_memory): Use gdb::byte_vector.
4482 2019-08-15 Tom Tromey <tromey@adacore.com>
4484 * tracepoint.c (write_inferior_data_pointer)
4485 (write_inferior_integer, write_inferior_int8)
4486 (write_inferior_uinteger, m_tracepoint_action_download)
4487 (r_tracepoint_action_download, x_tracepoint_action_download)
4488 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4489 (download_agent_expr, download_tracepoint_1)
4490 (download_trace_state_variables, upload_fast_traceframes): Update.
4491 * server.c (gdb_write_memory): Update.
4492 * remote-utils.c (relocate_instruction): Update.
4493 * proc-service.c (ps_pdwrite): Update.
4494 * mem-break.c (remove_memory_breakpoint)
4495 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4496 (uninsert_fast_tracepoint_jumps_at)
4497 (reinsert_fast_tracepoint_jumps_at): Update.
4498 * linux-x86-low.c (append_insns)
4499 (i386_install_fast_tracepoint_jump_pad)
4500 (amd64_write_goto_address, i386_write_goto_address): Update.
4501 * linux-s390-low.c (append_insns, s390_write_goto_address):
4503 * linux-ppc-low.c (ppc_relocate_instruction)
4504 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4505 (ppc_write_goto_address): Update.
4506 * linux-aarch64-low.c (append_insns): Update.
4507 * target.h (struct target_ops): Update.
4508 (write_inferior_memory): Don't declare.
4509 * target.c (target_write_memory): Rename from
4510 write_inferior_memory. Remove old target_write_memory.
4512 2019-08-15 Tom Tromey <tromey@adacore.com>
4514 * target.c (write_inferior_memory): Use std::vector.
4516 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4519 * configure.ac: Drop enable-libmcheck support.
4520 * configure, config.in: Rebuild.
4521 * acinclude.m4: Don't include it.
4523 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4525 * configure.srv: Remove Arm xml files.
4527 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4529 * configure.srv: Add new files. Remove xml generated files.
4530 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4532 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4533 * linux-aarch32-tdesc.c: New file.
4534 * linux-aarch32-tdesc.h: New file.
4535 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4536 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4537 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4538 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4539 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4540 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4541 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4542 (arm_read_description): Call arm_linux_read_description.
4543 (initialize_low_arch): Don't init registers.
4544 * linux-arm-tdesc.c: New file.
4545 * linux-arm-tdesc.h: New file.
4547 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4549 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4550 Move counter inside for.
4551 (arm_read_description): Check ptrace earlier.
4552 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4554 2019-07-09 Tom Tromey <tom@tromey.com>
4556 * configure: Rebuild.
4557 * configure.ac: Change common to gdbsupport.
4558 * acinclude.m4: Change common to gdbsupport.
4559 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4560 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4561 common to gdbsupport.
4562 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4563 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4564 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4565 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4566 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4567 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4568 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4569 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4570 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4571 common to gdbsupport.
4573 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4575 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4577 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4579 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4581 * configure.srv: Remove legacy xml.
4582 * linux-aarch64-low.c (initialize_low_arch): Remove
4583 initialize_low_tdesc call.
4584 * linux-aarch64-tdesc-selftest.c: Remove file.
4585 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4586 * linux-x86-low.c (initialize_low_arch): Remove
4587 initialize_low_tdesc call.
4588 * linux-x86-tdesc-selftest.c: Remove file.
4589 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4591 2019-06-20 Tom de Vries <tdevries@suse.de>
4593 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4594 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4596 2019-06-19 Tom de Vries <tdevries@suse.de>
4598 * debug.h (debug_write): Change return type to ssize_t.
4599 * debug.c (debug_write): Same.
4601 2019-06-14 Tom Tromey <tom@tromey.com>
4603 * configure.ac: Use new path to gnulib.
4604 * configure: Rebuild.
4605 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4608 2019-06-11 Tom Tromey <tom@tromey.com>
4610 * Makefile.in (SFILES): Add alloc.c.
4612 (IPA_OBJS): Add alloc-ipa.o.
4613 (alloc-ipa.o): New target.
4614 (%.o: ../%.c): New pattern rule.
4616 2019-06-10 Tom Tromey <tromey@adacore.com>
4618 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4619 end warning with a newline.
4620 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4622 * thread-db.c (attach_thread): Don't end warning with a newline.
4623 (thread_db_notice_clone): Likewise.
4624 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4626 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4627 end warning with a newline.
4629 2019-06-04 Pedro Alves <palves@redhat.com>
4631 * server.c (captured_main): Use make_unique_xstrdup.
4633 2019-06-02 Tom Tromey <tom@tromey.com>
4635 * gdbreplay.c (fromhex): Remove.
4636 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4638 2019-05-29 Tom Tromey <tromey@adacore.com>
4640 * configure: Rebuild.
4642 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4644 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4645 sign extension code on 32-bit builds.
4647 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4650 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4652 2019-04-19 Tom Tromey <tom@tromey.com>
4654 * server.c (struct vstop_notif): Derive from notif_event.
4656 (queue_stop_reply): Update.
4657 (remove_all_on_match_ptid): Change type. Rewrite.
4658 (discard_queued_stop_replies): Rewrite.
4659 (in_queued_stop_replies_ptid): Change type.
4660 (in_queued_stop_replies): Rewrite.
4661 (notif_stop): Update.
4662 (queue_stop_reply_callback): Update.
4663 (captured_main): Don't call initialize_notif.
4664 (push_stop_notification): Update.
4665 * notif.c (notif_write_event, handle_notif_ack)
4666 (notif_event_enque, notif_push): Update.
4667 (notif_event_xfree, initialize_notif): Remove.
4668 * notif.h (struct notif_event): Include <list>, not
4670 (struct notif_server) <queue>: Now a std::list.
4671 (notif_event_p): Remove typedef.
4672 (initialize_notif): Don't declare.
4673 (struct notif_event): Add virtual destructor.
4675 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4677 * ax.c (ax_vdebug): Call debug_printf.
4678 * debug.c (debug_write): New function.
4679 * debug.h (debug_write): New declaration.
4680 * linux-low.c (sigchld_handler): Call debug_write.
4682 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4684 * debug.c (debug_set_output): New function.
4685 (debug_vprintf): Send output to debug_file.
4686 (debug_flush): Likewise.
4687 * debug.h (debug_set_output): New declaration.
4688 * server.c (handle_monitor_command): Add debug-file option.
4689 (captured_main): Likewise.
4691 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4693 * debug.c (remote_debug): Add definition.
4694 * debug.h (remote_debug): Add declaration.
4695 * hostio.c (remote_debug): Remove declaration.
4696 * remote-utils.c (struct ui_file): Likewise.
4697 (remote_debug): Likewise.
4698 * remote-utils.h (remote_debug): Likewise,
4699 * server.c (remote_debug): Remove definition.
4701 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4703 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4704 when using a 64-bit gdbserver.
4706 2019-04-09 Tom Tromey <tromey@adacore.com>
4708 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4710 2019-04-08 Tom Tromey <tom@tromey.com>
4712 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4714 (linux_resume_one_lwp): Likewise.
4716 2019-04-08 Tom Tromey <tom@tromey.com>
4718 * gdbreplay.c: Update.
4719 * linux-low.c: Update.
4722 2019-04-08 Tom Tromey <tom@tromey.com>
4724 * server.c: Use C++ exception handling.
4725 * linux-low.c: Use C++ exception handling.
4726 * gdbreplay.c: Use C++ exception handling.
4728 2019-04-08 Tom Tromey <tom@tromey.com>
4730 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4731 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4732 (captured_main, main): Update.
4733 * gdbreplay.c (main): Update.
4735 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4737 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4738 value in argument pointer, return 1 if the entry is found and 0
4739 otherwise. Move comment.
4740 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4741 * linux-low.h (linux_get_auxv): Declare.
4742 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4744 2019-04-05 Tom Tromey <tromey@adacore.com>
4746 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4749 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4751 * linux-low.c (AT_HWCAP2): Add define if not already included.
4753 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4755 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4756 (aarch64_arch_setup): Call linux_get_hwcap.
4757 * linux-arm-low.c (arm_get_hwcap): Remove function.
4758 (arm_read_description): Call linux_get_hwcap.
4759 * linux-low.c (linux_get_auxv): New function.
4760 (linux_get_hwcap): Likewise.
4761 (linux_get_hwcap2): Likewise.
4762 * linux-low.h (linux_get_hwcap): New declaration.
4763 (linux_get_hwcap2): Likewise.
4764 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4765 (ppc_arch_setup): Call linux_get_hwcap.
4766 * linux-s390-low.c (s390_get_hwcap): Remove function.
4767 (s390_arch_setup): Call linux_get_hwcap.
4769 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4770 Jiong Wang <jiong.wang@arm.com>
4772 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4773 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4775 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4777 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4778 Jiong Wang <jiong.wang@arm.com>
4780 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4781 (aarch64_get_hwcap): New function.
4782 (aarch64_arch_setup): Read APIA hwcap.
4784 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4785 Jiong Wang <jiong.wang@arm.com>
4787 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4788 (initialize_low_tracepoint): Likewise.
4789 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4790 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4791 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4792 (aarch64_linux_read_description): Likewise.
4793 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4795 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4797 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4798 i386_create_target_description for 'segments' parameter.
4799 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4800 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4801 * win32-i386-low.c (i386_arch_setup): Likewise.
4803 2019-03-12 Tom Tromey <tromey@adacore.com>
4805 * linux-low.c (iterate_over_lwps): Update.
4807 2019-03-06 Tom Tromey <tom@tromey.com>
4809 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4810 (captured_main): Use SCOPE_EXIT.
4812 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4814 * configure.srv: Use '$enable_unittest' instead of '$development'
4815 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4818 2019-02-27 Tom Tromey <tromey@adacore.com>
4820 * gdbreplay.c (logchar): Handle \r\n.
4822 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4824 * linux-low.c (linux_attach): Add process before lwp.
4825 * server.c (attach_inferior): Check if already attached.
4827 2019-02-07 Tom Tromey <tom@tromey.com>
4829 * x86-tdesc.h: Rename include guard.
4830 * x86-low.h: Add include guard.
4831 * wincecompat.h: Rename include guard.
4832 * win32-low.h: Add include guard.
4833 * utils.h: Rename include guard.
4834 * tracepoint.h: Rename include guard.
4835 * tdesc.h: Rename include guard.
4836 * target.h: Rename include guard.
4837 * server.h: Rename include guard.
4838 * remote-utils.h: Rename include guard.
4839 * regcache.h: Rename include guard.
4840 * nto-low.h: Rename include guard.
4841 * notif.h: Add include guard.
4842 * mem-break.h: Rename include guard.
4843 * lynx-low.h: Add include guard.
4844 * linux-x86-tdesc.h: Add include guard.
4845 * linux-s390-tdesc.h: Add include guard.
4846 * linux-ppc-tdesc-init.h: Add include guard.
4847 * linux-low.h: Add include guard.
4848 * linux-aarch64-tdesc.h: Add include guard.
4849 * linux-aarch32-low.h: Add include guard.
4850 * inferiors.h: Rename include guard.
4851 * i387-fp.h: Rename include guard.
4852 * hostio.h: Rename include guard.
4853 * gdbthread.h: Rename include guard.
4854 * gdb_proc_service.h: Rename include guard.
4855 * event-loop.h: Rename include guard.
4856 * dll.h: Rename include guard.
4857 * debug.h: Rename include guard.
4858 * ax.h: Rename include guard.
4860 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4863 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4864 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4866 2019-01-25 Tom Tromey <tom@tromey.com>
4868 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4870 2019-01-25 Tom Tromey <tom@tromey.com>
4872 * win32-low.c: Fix common/ includes.
4873 * win32-i386-low.c: Fix common/ includes.
4874 * tracepoint.c: Fix common/ includes.
4875 * thread-db.c: Fix common/ includes.
4876 * target.h: Fix common/ includes.
4877 * symbol.c: Fix common/ includes.
4878 * spu-low.c: Fix common/ includes.
4879 * server.h: Fix common/ includes.
4880 * server.c: Fix common/ includes.
4881 * remote-utils.c: Fix common/ includes.
4882 * regcache.h: Fix common/ includes.
4883 * regcache.c: Fix common/ includes.
4884 * nto-x86-low.c: Fix common/ includes.
4885 * notif.h: Fix common/ includes.
4886 * mem-break.h: Fix common/ includes.
4887 * lynx-low.c: Fix common/ includes.
4888 * lynx-i386-low.c: Fix common/ includes.
4889 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4890 * linux-x86-low.c: Fix common/ includes.
4891 * linux-low.c: Fix common/ includes.
4892 * inferiors.h: Fix common/ includes.
4893 * i387-fp.c: Fix common/ includes.
4894 * hostio.c: Fix common/ includes.
4895 * hostio-errno.c: Fix common/ includes.
4896 * gdbthread.h: Fix common/ includes.
4897 * gdbreplay.c: Fix common/ includes.
4898 * fork-child.c: Fix common/ includes.
4899 * event-loop.c: Fix common/ includes.
4901 (enum gdb_agent_op): Fix common/ includes.
4903 2019-01-21 Tom Tromey <tom@tromey.com>
4905 * tracepoint.c: Fix includes.
4906 * remote-utils.c: Fix includes.
4907 * linux-x86-low.c: Fix includes.
4909 2019-01-01 Joel Brobecker <brobecker@adacore.com>
4911 * gdbreplay.c (gdbreplay_version): Update copyright year in
4913 * server.c (gdbserver_version): Likewise.
4915 2018-12-05 Alan Hayward <alan.hayward@arm.com>
4917 * linux-low.c (add_lwp): Switch ordering.
4919 2018-11-29 Tom Tromey <tom@tromey.com>
4921 * win32-low.c (win32_join): Take pid, not process.
4922 * target.h (struct target_ops) <join>: Change argument type.
4923 (join_inferior): Change argument name.
4924 * spu-low.c (spu_join): Take pid, not process.
4925 * server.c (handle_detach): Preserve pid before destroying
4927 * lynx-low.c (lynx_join): Take pid, not process.
4928 * linux-low.c (linux_join): Take pid, not process.
4930 2018-11-23 Alan Hayward <alan.hayward@arm.com>
4932 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4933 (aarch64_cannot_fetch_register): Likewise.
4934 (struct linux_target_ops): Update references.
4936 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4938 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4940 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4942 * configure.srv (ipa_ppc_linux_regobj): Add
4943 powerpc-isa207-htm-vsx32l-ipa.o and
4944 powerpc-isa207-htm-vsx64l-ipa.o.
4945 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4946 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4947 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4948 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4949 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4950 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4951 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4952 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4953 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4954 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4955 (init_registers_powerpc_isa207_htm_vsx32l)
4956 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4957 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4958 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4959 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4960 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4961 (ppc_store_tm_ctarregset): New functions.
4962 (ppc_regsets): Add entries for HTM regsets.
4963 (ppc_arch_setup): Set htm in features struct when needed. Set
4964 sizes for the HTM regsets.
4965 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4966 (initialize_low_arch): Call
4967 init_registers_powerpc_isa207_htm_vsx32l and
4968 init_registers_powerpc_isa207_htm_vsx64l.
4969 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4970 PPC_TDESC_ISA207_HTM_VSX.
4971 (initialize_low_tracepoint): Call
4972 init_registers_powerpc_isa207_htm_vsx32l and
4973 init_registers_powerpc_isa207_htm_vsx64l.
4975 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4977 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4978 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4979 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4980 (ppc_store_pmuregset): New functions.
4981 (ppc_regsets): Add entries for ebb and pmu regsets.
4982 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4983 pmu regsets are available. Set sizes for these regsets.
4985 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4987 * configure.srv (ipa_ppc_linux_regobj): Add
4988 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4989 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4990 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4991 rs6000/powerpc-isa207-vsx32l.xml, and
4992 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4993 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4994 <PPC_TDESC_ISA207_VSX>: New enum value.
4995 (init_registers_powerpc_isa207_vsx32l): Declare.
4996 (init_registers_powerpc_isa207_vsx64l): Declare.
4997 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4998 (ppc_store_tarregset): New function.
4999 (ppc_regsets): Add entry for the TAR regset.
5000 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5001 size for the TAR regsets.
5002 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5003 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5004 and init_registers_powerpc_isa207_vsx64l.
5005 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5006 (initialize_low_tracepoint): Call
5007 init_registers_powerpc_isa207_vsx32l and
5008 init_registers_powerpc_isa207_vsx64l.
5010 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5011 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5013 * configure.srv (ipa_ppc_linux_regobj): Add
5014 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5015 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5016 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5017 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5018 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5019 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5020 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5021 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5022 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5023 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5024 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5025 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5026 (ppc_hwcap): Add comment.
5027 (ppc_hwcap2): New global.
5028 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5029 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5030 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5031 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5032 when needed. Set sizes for the the DSCR and PPR regsets.
5033 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5034 (initialize_low_arch): Call
5035 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5036 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5037 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5038 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5039 (initialize_low_tracepoint): Call
5040 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5041 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5043 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5045 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5047 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5048 Simon Marchi <simark@simark.ca>
5050 * acinclude.m4: Include "../selftest.m4".
5051 * configure: Regenerate.
5052 * configure.ac: Use "GDB_AC_SELFTEST".
5053 * configure.srv: Use "$enable_unittests" instead of
5054 "$development" when checking whether unit tests have been
5056 * server.c (captured_main): Update message informing that
5057 selftests have been disabled.
5059 2018-10-04 Tom Tromey <tom@tromey.com>
5061 * configure: Rebuild.
5063 2018-10-04 Tom Tromey <tom@tromey.com>
5065 * server.c (handle_status): Rename inner "thread".
5066 (process_serial_event): Declare "res" in 'm' case.
5067 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5068 (iterate_over_lwps): Rename inner "thread".
5069 (linux_qxfer_libraries_svr4): Rename inner "len".
5070 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5072 2018-10-01 Gary Benson <gbenson@redhat.com>
5074 * gdb_proc_service.h: Moved common code to
5075 common/gdb_proc_service.h.
5077 2018-10-01 Gary Benson <gbenson@redhat.com>
5079 * gdb_proc_service.h: Synchronize comments and whitespace with
5080 GDB's version of this file.
5082 2018-09-25 Tom Tromey <tom@tromey.com>
5084 * configure: Rebuild.
5085 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5087 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5089 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5090 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5091 ($(IPA_LIB)): Sort IPA_OBJS.
5093 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5095 * Makefile.in: Remove references to $(ADD_DEPS).
5097 2018-09-16 Tom Tromey <tom@tromey.com>
5099 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5101 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5104 2018-09-05 Tom Tromey <tom@tromey.com>
5106 * configure: Rebuild.
5108 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5111 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5113 2018-08-27 Tom Tromey <tom@tromey.com>
5116 * configure: Rebuild.
5118 2018-08-27 Tom Tromey <tom@tromey.com>
5120 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5121 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5122 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5123 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5124 (s390x_emit_stack_adjust): Add casts to unsigned char.
5126 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5130 * server.h (struct client_state) <disable_randomization>:
5133 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5135 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5137 (mips_supply_ptrace_register): Likewise.
5139 2018-07-22 Tom Tromey <tom@tromey.com>
5141 * configure: Rebuild.
5143 2018-07-22 Tom Tromey <tom@tromey.com>
5145 * win32-low.c (win32_create_inferior): Remove unused variables.
5146 * gdbreplay.c (remote_open): Remove unused variable.
5147 * remote-utils.c (remote_prepare): Remove unused variable.
5148 * x86-tdesc.h (X86_TDESC_H): Define.
5149 (amd64_expedite_regs): Define conditionally.
5150 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5151 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5152 * remote-utils.c (readchar): Remove unused variable.
5154 2018-07-13 Pedro Alves <palves@redhat.com>
5156 * linux-low.c (linux_kill): Change parameter to process_info
5157 pointer instead of pid. Adjust.
5158 * lynx-low.c (lynx_kill): Likewise.
5159 * nto-low.c (nto_kill): Likewise.
5160 * spu-low.c (spu_kill): Likewise.
5161 * win32-low.c (win32_kill): Likewise.
5162 * server.c (handle_v_kill, kill_inferior_callback)
5163 (detach_or_kill_for_exit): Adjust.
5164 * target.c (kill_inferior): Change parameter to process_info
5165 pointer instead of pid. Adjust.
5166 * target.h (struct target_ops) <kill>: Change parameter to
5167 process_info pointer instead of pid. Adjust all implementations
5169 (kill_inferior): Likewise.
5171 2018-07-13 Pedro Alves <palves@redhat.com>
5173 * linux-low.c (linux_detach, linux_join): Change parameter to
5174 process_info pointer instead of pid. Adjust.
5175 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5176 * nto-low.c (nto_detach): Likewise.
5177 * spu-low.c (spu_detach, spu_join): Likewise.
5178 * win32-low.c (win32_detach, win32_join): Likewise.
5179 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5180 * target.h (struct target_ops) <detach, join>: Change parameter to
5181 process_info pointer instead of pid. Adjust all implementations
5183 (detach_inferior, join_inferior): Rename 'pid' parameter to
5186 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5187 Jan Kratochvil <jan.kratochvil@redhat.com>
5188 Paul Fertser <fercerpav@gmail.com>
5189 Tsutomu Seki <sekiriki@gmail.com>
5191 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5192 (OBS): Add 'common/netstuff.o'.
5193 (GDBREPLAY_OBS): Likewise.
5194 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5195 (remote_open): Implement support for IPv6
5197 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5199 (handle_accept_event): Accept connections from IPv6 sources.
5200 (remote_prepare): Handle IPv6-style hostnames; implement
5201 support for IPv6 connections.
5202 (remote_open): Implement support for printing connections from
5205 2018-07-11 Pedro Alves <palves@redhat.com>
5208 * mem-break.c (any_persistent_commands): Add process_info
5209 parameter and use it instead of relying on the current process.
5210 Change return type to bool.
5211 * mem-break.h (any_persistent_commands): Add process_info
5212 parameter and change return type to bool.
5213 * server.c (handle_detach): Remove require_running_or_return call.
5214 Look up the process_info for the process we're about to detach.
5215 If not found, return back error to GDB. Adjust
5216 any_persistent_commands call to pass down a process pointer.
5218 2018-07-11 Pedro Alves <palves@redhat.com>
5220 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5221 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5222 instead of collect_register_by_name.
5223 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5224 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5226 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5227 Pedro Alves <palves@redhat.com>
5229 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5231 2018-07-03 Tom Tromey <tom@tromey.com>
5233 * linux-low.c: Update.
5234 * lynx-low.c: Update.
5235 * mem-break.c: Update.
5236 * nto-low.c: Update.
5237 * remote-utils.c: Update.
5239 * spu-low.c: Update.
5241 * win32-low.c: Update.
5243 2018-07-03 Tom Tromey <tom@tromey.com>
5247 2018-07-03 Tom Tromey <tom@tromey.com>
5249 * linux-low.c: Update.
5251 2018-07-03 Tom Tromey <tom@tromey.com>
5255 2018-07-03 Tom Tromey <tom@tromey.com>
5257 * linux-low.c: Update.
5258 * linux-mips-low.c: Update.
5259 * lynx-low.c: Update.
5260 * nto-low.c: Update.
5261 * remote-utils.c: Update.
5263 * spu-low.c: Update.
5265 * thread-db.c: Update.
5267 2018-07-03 Tom Tromey <tom@tromey.com>
5269 * linux-low.c: Update.
5270 * linux-mips-low.c: Update.
5271 * lynx-low.c: Update.
5272 * mem-break.c: Update.
5273 * nto-low.c: Update.
5274 * remote-utils.c: Update.
5276 * spu-low.c: Update.
5278 * tracepoint.c: Update.
5280 2018-07-03 Tom Tromey <tom@tromey.com>
5282 * linux-low.c: Update.
5283 * linux-ppc-low.c: Update.
5284 * linux-x86-low.c: Update.
5285 * proc-service.c: Update.
5287 * spu-low.c: Update.
5288 * thread-db.c: Update.
5289 * win32-low.c: Update.
5291 2018-07-03 Tom Tromey <tom@tromey.com>
5293 * linux-low.c: Update.
5294 * lynx-low.c: Update.
5295 * nto-low.c: Update.
5296 * remote-utils.c: Update.
5297 * spu-low.c: Update.
5298 * thread-db.c: Update.
5299 * win32-low.c: Update.
5301 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5303 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5304 parameter in call to 'amd64_create_target_description'.
5306 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5308 * x86-tdesc.h: Remove executable permission flag.
5310 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5312 * configure.ac: Remove AC_PREREQ, add missing quoting.
5313 * configure: Re-generate.
5314 * config.in: Re-generate.
5315 * aclocal.m4: Re-generate.
5317 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5319 * tracepoint.h (current_traceframe): Remove declaration.
5321 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5323 * linux-aarch64-low.c (is_sve_tdesc): New function.
5324 (aarch64_sve_regs_copy_to_regcache): Likewise.
5325 (aarch64_sve_regs_copy_from_regcache): Likewise.
5326 (aarch64_regs_info): Add SVE checks.
5327 (initialize_low_arch): Initialize SVE.
5329 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5331 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5333 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5335 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5336 (initialize_low_tracepoint): Likewise
5337 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5338 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5340 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5342 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5344 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5346 * server.h (PBUFSIZ): Increase size
5348 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5350 * regcache.c (regcache::raw_compare): New function.
5351 * regcache.h (regcache::raw_compare): New declaration.
5353 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5355 * regcache.c (new_register_cache): Use new.
5356 (free_register_cache): Use delete.
5357 (register_data): Use const.
5358 (supply_register): Move body inside regcache.
5359 (regcache::raw_supply): New override function.
5360 (collect_register): Move body inside regcache.
5361 (regcache::raw_collect): New override function.
5362 (regcache::get_register_status): New override function.
5363 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5365 2018-06-09 Tom Tromey <tom@tromey.com>
5367 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5369 (event_queue): Use std::queue.
5370 (gdb_event_xfree): Remove.
5371 (initialize_event_loop, process_event, wait_for_event): Update.
5373 2018-06-08 Stan Cox <scox@redhat.com>
5375 * win32-low.c (win32_create_inferior): last_ptid and last_status
5376 moved to client_state.
5378 2018-06-08 Pedro Alves <palves@redhat.com>
5380 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5381 common/common-exceptions.o, common/common-utils.o,
5382 common/errors.o, common/print-utils.o and utils.o.
5383 * gdbreplay.c: Include "common-defs.h" instead of the two
5384 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5385 string.h or alloca.h.
5386 (perror_with_name): Delete.
5387 (remote_open): Use xstrdup instead of strdup.
5388 (main): Rename to ...
5389 (captured_main): ... this.
5392 2018-06-08 Tom Tromey <tom@tromey.com>
5394 * linux-low.c (linux_low_read_btrace): Update.
5396 2018-06-04 Stan Cox <scox@redhat.com>
5398 * server.h (struct client_state): New.
5399 * server.c (cont_thread, general_thread, multi_process)
5400 (report_fork_events, report_vfork_events, report_exec_events)
5401 (report_thread_events, swbreak_feature, hwbreak_feature)
5402 (vCont_supported, disable_randomization, pass_signals)
5403 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5404 Moved to client_state.
5405 * remote-utils.c (remote_debug, noack_mode)
5406 (transport_is_reliable): Moved to client_state.
5407 * tracepoint.c (current_traceframe): Moved to client_state.
5410 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5411 linux-low.c, remote-utils.h, target.c: Use client_state.
5413 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5415 * configure.srv: Add new c/h file.
5417 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5419 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5422 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5424 * gdb.arch/mips-fpregset-core.exp: New test.
5425 * gdb.arch/mips-fpregset-core.c: New test source.
5427 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5430 * hostio.c (require_int): Do not report overflow for integers
5431 between 0xfffffff and 0x7fffffff.
5433 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5435 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5436 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5437 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5439 (the_low_target): Wire them.
5441 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5443 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5444 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5445 mode. Call collect_register_by_name with vscr using
5446 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5447 (ppc_store_vrregset): Add and set vscr_offset variable as in
5448 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5451 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5453 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5454 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5455 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5457 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5459 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5460 (ppc_store_vsxregset): Likewise.
5461 (ppc_fill_vrregset): Likewise.
5462 (ppc_store_vrregset): Likewise.
5463 (ppc_fill_evrregset): Likewise.
5464 (ppc_store_evrregset): Likewise.
5465 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5466 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5469 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5471 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5472 wordsize of the inferior. Call ppc_linux_target_wordsize.
5474 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5476 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5477 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5478 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5479 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5480 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5481 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5482 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5483 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5484 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5485 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5486 (tdesc_powerpc_e500l): Remove.
5487 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5488 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5489 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5490 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5492 (ppc_arch_setup): Remove target description matching code. Fill a
5493 ppc_linux_features struct and call ppc_linux_match_description
5496 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5498 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5499 width of the requested register exceeds the width of the
5501 (mips_cannot_store_register): Likewise.
5503 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5505 * linux-mips-low.c (mips_fetch_register): New function. Update
5507 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5508 (the_low_target): Wire `mips_fetch_register'.
5510 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5512 * lynx-i386-low.c (LYNXOS_178): New macro.
5513 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5514 the layout on LynxOS-178.
5515 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5516 handle floating point registers that are not supported by
5519 2018-05-10 Tom Tromey <tom@tromey.com>
5521 * configure: Rebuild.
5523 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5526 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5527 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5528 Use it to set the expedite_regs field in the given tdesc.
5529 * x86-tdesc.h: New file.
5530 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5531 Adjust following the addition of the new expedite_regs parameter
5532 to init_target_desc.
5533 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5534 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5535 (i386_linux_read_description, amd64_linux_read_description):
5536 Adjust following the addition of the new expedite_regs parameter
5537 to init_target_desc.
5538 * lynx-i386-low.c: #include "x86-tdesc.h".
5539 (lynx_i386_arch_setup): Adjust following the addition of the new
5540 expedite_regs parameter to init_target_desc.
5541 * nto-x86-low.c: #include "x86-tdesc.h".
5542 (nto_x86_arch_setup): Adjust following the addition of the new
5543 expedite_regs parameter to init_target_desc.
5544 * win32-i386-low.c: #include "x86-tdesc.h".
5545 (i386_arch_setup): Adjust following the addition of the new
5546 expedite_regs parameter to init_target_desc.
5548 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5551 * win32-low.c (win32_create_inferior): Add call to my_wait
5552 setting last_status global.
5554 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5557 * win32-low.c (create_process): Only call gdb_tilde_expand if
5558 inferior_cwd is not NULL.
5560 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5562 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5563 registers to the cache if their values have changed.
5564 (i387_xsave_to_cache): Provide default values for x87 control
5565 registers when these features are available, but disabled.
5566 * regcache.c (supply_register_by_name_zeroed): New function.
5567 * regcache.h (supply_register_by_name_zeroed): Declare new
5570 2018-05-07 Tom Tromey <tom@tromey.com>
5572 * configure: Rebuild.
5574 2018-05-04 Tom Tromey <tom@tromey.com>
5576 * configure: Rebuild.
5578 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5579 Pedro Alves <palves@redhat.com>
5581 * linux-aarch64-low.c (aarch64_stopped_data_address):
5584 2018-04-27 Tom Tromey <tom@tromey.com>
5586 * configure: Rebuild.
5588 2018-04-23 Tom Tromey <tom@tromey.com>
5590 * configure: Rebuild.
5592 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5594 * Makefile.in (depcomp): Add "..".
5595 (all_deps_files): New and use it.
5597 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5599 * configure.srv (aarch64*-*-linux*): Don't include xml.
5600 (i[34567]86-*-cygwin*): Likewise.
5601 (i[34567]86-*-linux*): Likewise.
5602 (i[34567]86-*-lynxos*): Likewise.
5603 (i[34567]86-*-mingw32ce*): Likewise.
5604 (i[34567]86-*-mingw*): Likewise.
5605 (i[34567]86-*-nto*): Likewise.
5606 (tic6x-*-uclinux): Likewise.
5607 (x86_64-*-linux*): Likewise.
5608 (x86_64-*-mingw*): Likewise.
5609 (x86_64-*-cygwin*): Likewise.
5611 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5613 * tdesc.c: Remove xml parameter.
5615 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5617 * server.c (get_features_xml): Remove cast.
5618 * tdesc.c (void target_desc::accept): Fill in function.
5619 (tdesc_get_features_xml): Remove old xml creation.
5620 (print_xml_feature::visit_pre): Add xml vistor.
5621 * tdesc.h (struct target_desc): Make xmltarget mutable.
5622 (tdesc_get_features_xml): Remove declaration.
5624 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5626 * tdesc.c (tdesc_architecture_name): Add new function.
5627 (tdesc_osabi_name): Likewise.
5628 (tdesc_get_features_xml): Use new functions.
5630 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5632 * tdesc.c (tdesc_create_flags): Remove.
5633 (tdesc_add_flag): Likewise.
5634 (tdesc_named_type): Likewise.
5635 (tdesc_create_union): Likewise.
5636 (tdesc_create_struct): Likewise.
5637 (tdesc_create_vector): Likewise.
5638 (tdesc_add_bitfield): Likewise.
5639 (tdesc_add_field): Likewise.
5640 (tdesc_set_struct_size): Likewise.
5642 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5644 * tdesc.c (~target_desc): Remove implictly deleted items.
5645 (init_target_desc): Iterate all features.
5646 (tdesc_get_features_xml): Use vector.
5647 (tdesc_create_feature): Create feature.
5648 * tdesc.h (tdesc_feature) Remove
5649 (target_desc): Add features.
5651 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5653 * Makefile.in: Add common/tdesc.c
5654 * tdesc.c (init_target_desc): init all reg_defs from register
5656 (tdesc_create_reg): Create tdesc_reg.
5657 * tdesc.h (tdesc_feature): Add register vector.
5659 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5661 * tdesc.h (struct target_desc) <features>: Change type to
5662 std::vector<std::string>.
5663 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5665 (tdesc_get_features_xml): Likewise.
5666 (tdesc_create_feature): Likewise.
5668 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5670 * regcache.c (find_register_by_number): Return a ref.
5671 (find_regno): Use references.
5672 (register_size): Likewise.
5673 (register_data): Likewise.
5674 * tdesc.c (target_desc::~target_desc): Remove free calls.
5675 (target_desc::operator==): Use std::vector compare.
5676 (init_target_desc): Use reference.
5677 (tdesc_create_reg): Use reg constructors.
5678 * tdesc.h (struct target_desc): Replace pointer with object.
5680 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5682 * regcache.c (find_register_by_number): Make static.
5683 (find_regno): Use find_register_by_number
5684 * regcache.h (struct reg): Remove declaration.
5686 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5688 * tdesc.c (target_desc::~target_desc): Move to here.
5689 (target_desc::operator==): Likewise.
5690 * tdesc.h (target_desc::~target_desc): Move from here.
5691 (target_desc::operator==): Likewise.
5693 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5695 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5697 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5699 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5701 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5702 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5703 and init_registers_s390_gs_linux64.
5705 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5707 * linux-s390-low.c (s390_fill_gs): Remove function.
5708 (s390_fill_gsbc): Remove function.
5709 (s390_regsets): Set fill functions for the guarded storage regsets
5712 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5714 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5715 the word size. Add comment.
5716 (s390_get_wordsize): New function.
5717 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5718 pswm with it. Instead, use s390_get_wordsize to determine the
5719 word size first and derive the correct tdesc from that directly.
5721 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5723 * Makefile.in: Include silent-rules.mk.
5724 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5725 (COMPILE): Add ECHO_CXX.
5726 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5727 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5728 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5729 (version-generated.c): Add ECHO_GEN.
5730 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5731 (IPAGENT_COMPILE): Add ECHO_CXX.
5732 (%-generated.c): Add ECHO_REGDAT.
5734 2018-03-14 Tom Tromey <tom@tromey.com>
5737 * ax.c (ax_printf): Special case for NULL.
5739 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5741 * linux-low.c (linux_qxfer_libraries_svr4): Use
5742 xml_escape_text_append.
5744 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5746 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5748 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5750 * server.c (handle_general_set): Remove unnecessary xstrdup.
5752 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5754 * server.c (parse_debug_format_options): Adjust to
5755 delim_string_to_char_ptr_vec changes.
5756 * thread-db.c (thread_db_load_search): Adjust to
5757 dirnames_to_char_ptr_vec changes.
5759 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5761 * target.h (target_enable_btrace, target_disable_btrace)
5762 (target_read_btrace, target_read_btrace_conf): Turn macro into
5763 inline function. Throw error if target method is not defined.
5764 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5765 check for btrace target method. Be prepared to handle exceptions
5766 from btrace target methods.
5768 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5770 * server.c (captured_main): Change order of error message printed
5771 when the current working directory cannot be found.
5773 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5775 * server.c: Include "filenames.h" and "pathstuff.h".
5776 (program_name): Delete variable.
5777 (program_path): New anonymous class.
5778 (get_exec_wrapper): Use "program_path" instead of
5780 (handle_v_run): Likewise.
5781 (captured_main): Likewise.
5782 (process_serial_event): Likewise.
5784 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5786 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5787 (OBJS): Add "pathstuff.o".
5788 * server.c (current_directory): New global variable.
5789 (captured_main): Initialize "current_directory".
5791 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5793 * tdesc.c: Use common/tdesc.h.
5794 * tdesc.h: Likewise.
5796 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5797 Simon Marchi <simon.marchi@ericsson.com>
5799 * Makefile.in: Switch order of make rules.
5801 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5803 * Makefile.in: Add common directory in build.
5804 * configure.ac: Add common reference.
5805 * configure: Regenerate.
5807 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5809 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5810 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5811 * spu-low.c (spu_target_ops): Likewise.
5812 * win32-low.c (win32_target_ops): Likewise.
5813 * server.c (supported_btrace_packets): Report packets unconditionally.
5814 * target.h (target_ops) <supports_btrace>: Remove.
5815 (target_supports_btrace): Remove.
5817 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5819 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5820 (handle_btrace_disable): Change return type to void. Use exceptions
5822 (handle_btrace_general_set): Catch exception and copy message to
5825 2018-02-08 Tom Tromey <tom@tromey.com>
5827 * linux-low.c (install_software_single_step_breakpoints): Use
5828 make_scoped_restore.
5829 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5830 (do_restore_current_thread_cleanup): Remove.
5831 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5834 2018-02-08 Tom Tromey <tom@tromey.com>
5836 * mem-break.c (set_raw_breakpoint_at): Use
5837 gdb::unique_xmalloc_ptr.
5839 2018-01-30 Pedro Alves <palves@redhat.com>
5842 * target.c (target_terminal::terminal_state): Rename to ...
5843 (target_terminal::m_terminal_state): ... this.
5845 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5847 * linux-low.c (handle_extended_wait): Surround call to
5848 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5850 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5852 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5853 linux_ptrace_attach_fail_reason_string now returning an
5855 (linux_attach): Likewise.
5856 * thread-db.c (attach_thread): Likewise.
5858 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5861 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5862 checking for fs_base/gs_base fields in struct user_regs_struct.
5863 * configure: Regenerate.
5865 2018-01-16 Yao Qi <yao.qi@linaro.org>
5868 * linux-low.c (fetch_register): Call supply_register instead of
5871 2018-01-08 Yao Qi <yao.qi@linaro.org>
5872 Simon Marchi <simon.marchi@ericsson.com>
5874 * Makefile.in (OBS): Remove selftest.o.
5875 * configure.ac: Set srv_selftest_objs if $development is true.
5876 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5877 * configure: Re-generated.
5878 * server.c (captured_main): Wrap variable selftest_filter with
5881 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5883 * server.c (parse_debug_format_options): Return std::string.
5884 (handle_monitor_command, captured_main): Adjust.
5886 2018-01-05 Pedro Alves <palves@redhat.com>
5889 * server.c (captured_main): Pass quiet=false to
5890 save_original_signals_state.
5892 2018-01-01 Joel Brobecker <brobecker@adacore.com>
5894 * gdbreplay.c (gdbreplay_version): Update copyright year in
5896 * server.c (gdbserver_version): Likewise.
5898 2017-12-08 Tom Tromey <tom@tromey.com>
5900 * ax.c (ax_printf): Update.
5902 2017-12-07 Yao Qi <yao.qi@linaro.org>
5904 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5905 aarch64_linux_read_description.
5906 * linux-amd64-ipa.c (idx2mask): New array.
5907 (get_ipa_tdesc): Move idx2mask out.
5908 (initialize_low_tracepoint): Initialize target descriptions.
5909 * linux-i386-ipa.c (idx2mask): New array.
5910 (get_ipa_tdesc): Move idx2mask out.
5911 (initialize_low_tracepoint): Initialize target descriptions.
5913 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5915 * tdesc.c (struct tdesc_type): Change return type.
5916 (tdesc_add_flag): Change parameter type.
5917 (tdesc_add_bitfield): Likewise.
5918 (tdesc_add_field): Likewise.
5919 (tdesc_set_struct_size): Likewise.
5921 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5923 * regcache.c (registers_to_string): Remove unused variable.
5925 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5927 * inferiors.c (for_each_inferior_with_data): Remove.
5928 * inferiors.h (for_each_inferior_with_data): Remove.
5929 * server.c (handle_qxfer_threads_worker): Change parameter type.
5930 (handle_qxfer_threads_proper): Use for_each_thread.
5932 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5934 * inferiors.c (for_each_inferior): Remove.
5935 (clear_inferiors): Use for_each_thread.
5936 * inferiors.h (for_each_inferior): Remove.
5937 * linux-low.c (linux_wait_for_event_filtered): Use
5939 (linux_stabilize_threads): Likewise.
5940 * regcache.c (regcache_release): Likewise.
5941 * server.c (gdb_wants_all_threads_stopped): Likewise.
5942 (clear_pending_status_callback): Remove.
5943 (handle_status): Use for_each_thread.
5944 (captured_main): Likewise.
5945 * win32-low.c (child_init_thread_list): Likewise.
5946 (win32_clear_inferiors): Likewise.
5947 (fake_breakpoint_event): Likewise.
5949 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5951 * inferiors.h (find_inferior): Remove.
5952 * inferiors.c (find_inferior): Remove.
5954 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5956 * linux-low.c (resume_status_pending_p): Update comment.
5957 (need_step_over_p): Update comment.
5959 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5961 * linux-low.c (proceed_one_lwp): Return void, change parameter
5963 (unsuspend_and_proceed_one_lwp): Likewise.
5964 (proceed_all_lwps): Use for_each_thread.
5965 (unstop_all_lwps): Likewise.
5967 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5969 * linux-low.c (linux_resume_one_thread): Return void, take
5971 (linux_resume): Use for_each_thread.
5973 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5975 * linux-low.c (send_sigstop_callback): Return void, change
5976 parameter type. Rename to...
5977 (send_sigstop): ... this.
5978 (suspend_and_send_sigstop_callback): Return void, change parameter
5980 (suspend_and_send_sigstop): ... this.
5981 (stop_all_lwps): Use for_each_thread.
5983 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5985 * linux-low.c (lwp_running): Return bool, remove unused
5987 (linux_stabilize_threads): Use find_thread.
5989 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5991 * linux-low.c (select_singlestep_lwp_callback): Remove.
5992 (count_events_callback): Remove.
5993 (select_event_lwp_callback): Remove.
5994 (select_event_lwp): Use find_thread/for_each_thread.
5996 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5998 * linux-low.c (not_stopped_callback): Return bool, take filter
6000 (linux_wait_for_event_filtered): Use find_thread.
6001 (linux_wait_1): Likewise.
6003 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6005 * linux-low.c (same_lwp): Remove.
6006 (find_lwp_pid): Use find_thread.
6008 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6010 * linux-low.c (delete_lwp_callback): Remove.
6011 (linux_mourn): Use for_each_thread.
6013 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6015 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6016 args parameter, don't check for pid.
6017 (linux_detach): Use for_each_thread.
6019 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6021 * linux-low.c (struct counter): Remove.
6022 (second_thread_of_pid_p): Remove.
6023 (last_thread_of_process_p): Use find_thread.
6025 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6027 * inferiors.c (find_inferior_in_random): Remove.
6028 * inferiors.h (find_inferior_in_random): Remove.
6029 * linux-low.c (status_pending_p_callback): Return bool, accept
6030 parameter ptid directly.
6031 (linux_wait_for_event_filtered): Use find_thread_in_random.
6032 (linux_wait_1): Likewise.
6034 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6036 * inferiors.c (find_inferior_id): Remove.
6037 (find_thread_ptid): Move implemention from find_inferior_id to
6039 * inferiors.h (find_inferior_id): Remove.
6040 * server.c (handle_status): Use find_thread_ptid.
6041 (process_serial_event): Likewise.
6042 * thread-db.c (find_one_thread): Likewise.
6043 (thread_db_thread_handle): Likewise.
6044 * win32-low.c (thread_rec): Likewise.
6045 (child_delete_thread): Likewise.
6046 (win32_thread_alive): Likewise.
6047 (get_child_debug_event): Likewise.
6049 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6051 * linux-mips-low.c (update_watch_registers_callback): Return
6052 void, remove pid_p parameter, don't check for pid.
6053 (mips_insert_point, mips_remove_point): Use for_each_thread.
6055 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6057 * lynx.low (lynx_delete_thread_callback): Remove.
6058 (lynx_mourn): Use for_each_thread.
6060 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6062 * regcache.c (regcache_invalidate_one): Remove.
6063 (regcache_invalidate_pid): use for_each_thread.
6065 2017-11-26 Tom Tromey <tom@tromey.com>
6067 * linux-low.c (linux_create_inferior): Update.
6069 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6071 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6073 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6075 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6076 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6077 * linux-aarch64-tdesc-selftest.c: New file.
6078 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6080 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6082 * configure.srv: Add new file.
6083 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6084 * linux-aarch64-tdesc-selftest.c: New file.
6085 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6087 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6089 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6090 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6091 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6093 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6095 * configure.srv: Add new files.
6096 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6097 aarch64_linux_read_description.
6098 * linux-aarch64-low.c (aarch64_linux_read_description):
6099 Merge with aarch64_arch_setup.
6100 (aarch64_arch_setup): Call aarch64_linux_read_description.
6101 * linux-aarch64-tdesc.c: New file.
6102 * linux-aarch64-tdesc.h: New file.
6104 2017-11-24 Yao Qi <yao.qi@linaro.org>
6106 * configure.srv: Set $srv_regobj for tic6x-linux.
6107 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6108 (tic6x_read_description): Move some code to tic6x_arch_setup.
6109 (tic6x_tdesc_test): New function.
6110 (initialize_low_arch): Call selftests::register_test.
6112 2017-11-22 Yao Qi <yao.qi@linaro.org>
6114 * remote-utils.c (prepare_resume_reply): Use memcpy.
6116 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6118 * linux-low.c (kill_one_lwp_callback): Return void, take
6119 argument directly, don't filter on pid.
6120 (linux_kill): Use for_each_thread.
6122 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6124 * linux-low.c (need_step_over_p): Return bool, remove dummy
6126 (linux_resume, proceed_all_lwps): Use find_thread.
6128 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6130 * linux-low.c (resume_status_pending_p): Return bool, remove
6132 (linux_resume): Use find_thread.
6134 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6136 * linux-low.c (struct thread_resume_array): Remove.
6137 (linux_set_resume_request): Return void, take arguments
6139 (linux_resume): Use for_each_thread.
6141 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6143 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6144 return bool, remove data argument.
6145 (linux_stabilize_threads): Use find_thread.
6147 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6149 * linux-low.c (unsuspend_one_lwp): Remove.
6150 (unsuspend_all_lwps): Use for_each_thread, inline code from
6153 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6155 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6156 * linux-low.c (struct iterate_over_lwps_args): Remove.
6157 (iterate_over_lwps_filter): Remove.
6158 (iterate_over_lwps): Use find_thread.
6160 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6162 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6163 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6164 code from reset_lwp_ptrace_options_callback.
6166 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6168 * linux-arm-low.c (struct update_registers_data): Remove.
6169 (update_registers_callback): Return void, take arguments
6170 directly, don't check thread's pid.
6171 (arm_insert_point, arm_remove_point): Use for_each_thread.
6173 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6175 * win32-low.c (continue_one_thread): Return void, take argument
6177 (child_continue): Use for_each_thread.
6179 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6181 * win32-i386-low.c (update_debug_registers_callback): Rename
6183 (update_debug_registers): ... this, return void, remove pid_p arg.
6184 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6186 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6188 * inferiors.h (struct process_info): Add constructor, initialize
6190 <syscalls_to_catch>: Change type to std::vector<int>.
6191 * inferiors.c (add_process): Allocate process_info with new.
6192 (remove_process): Free process_info with delete.
6193 * linux-low.c (handle_extended_wait): Adjust.
6194 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6195 * server.c (handle_general_set): Adjust.
6197 2017-11-16 Pedro Alves <palves@redhat.com>
6199 * remote-utils.c (remote_close): Block SIGIO signals instead of
6200 uninstalling the SIGIO handler.
6202 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6204 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6206 2017-11-16 Yao Qi <yao.qi@linaro.org>
6208 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6209 (tic6x_store_gregset): Likewise.
6210 (tic6x_usrregs_info): Move it up.
6212 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6214 * Makefile.in: Update arch rules.
6215 * configure.srv: Explicitly mark arch/ files.
6217 2017-11-13 Andreas Schwab <schwab@suse.de>
6219 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6221 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6223 2017-11-06 Pedro Alves <palves@redhat.com>
6225 * config.in, configure: Regenerate.
6227 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6229 * target.c (struct thread_search): Remove.
6230 (thread_search_callback): Remove.
6231 (prepare_to_access_memory): Use for_each_thread instead of
6232 find_inferior. Inline code from thread_search_callback.
6234 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6236 * server.c (struct visit_actioned_threads_data): Remove.
6237 (visit_actioned_threads): Change prototype to take arguments
6239 (resume): Use find_thread instead of find_inferior.
6241 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6243 * server.c (queue_stop_reply_callback): Change prototype, return
6245 (find_status_pending_thread_callback): Remove.
6246 (handle_status): Replace find_inferior with find_thread and
6249 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6251 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6253 (aarch64_store_gregset): Likewise.
6254 (aarch64_fill_fpregset): Likewise.
6255 (aarch64_store_fpregset): Likewise.
6257 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6259 * gdbthread.h (find_thread, for_each_thread): New functions.
6260 * inferiors.c (thread_of_pid): Remove.
6261 (find_any_thread_of_pid): Use find_thread.
6262 * linux-low.c (num_lwps): Use for_each_thread.
6264 2017-10-17 Yao Qi <yao.qi@linaro.org>
6266 * Makefile.in: Remove one rule.
6267 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6269 2017-10-17 Yao Qi <yao.qi@linaro.org>
6271 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6272 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6274 2017-10-17 Yao Qi <yao.qi@linaro.org>
6276 * configure.srv: Rename arm.o with arch/arm.o.
6278 2017-10-17 Yao Qi <yao.qi@linaro.org>
6280 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6281 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6282 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6283 (arch-i386.o, arch-amd64.o): Remove rules.
6284 (arch/%.o): New rule.
6285 Update POSTCOMPILE and COMPILE.pre.
6286 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6287 * configure: Re-generated.
6288 * configure.srv: Replace arch-i386.o with arch/i386.o.
6289 Replace arch-amd64.o with arch/amd64.o.
6291 2017-10-16 Yao Qi <yao.qi@linaro.org>
6293 * configure: Regenerated.
6295 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6297 * inferiors.h: (struct inferior_list): Remove.
6298 (struct inferior_list_entry); Remove.
6299 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6300 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6301 get_first_inferior): Remove.
6302 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6303 find_inferior_id, find_inferior_in_random): Change signature.
6304 * inferiors.c (all_threads): Change type to
6305 std::list<thread_info *>.
6306 (get_thread): Remove macro.
6307 (find_inferior, find_inferior_id): Change signature, implement
6309 (find_inferior_in_random): Change signature, implement using
6310 find_thread_in_random.
6311 (for_each_inferior, for_each_inferior_with_data): Change
6312 signature, implement using for_each_thread.
6313 (add_inferior_to_list, remove_inferior): Remove.
6314 (add_thread, get_first_thread, thread_of_pid,
6315 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6316 (get_first_inferior, one_inferior_p, clear_inferior_list):
6318 (clear_inferiors, get_thread_process): Update.
6319 * gdbthread.h: Include <list>.
6320 (struct thread_info) <entry>: Remove field.
6322 (all_threads): Change type to std::list<thread_info *>.
6323 (get_first_inferior): Add doc.
6324 (find_thread, for_each_thread, find_thread_in_random): New
6326 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6327 * linux-arm-low.c (update_registers_callback): Update.
6328 * linux-low.c (second_thread_of_pid_p): Update.
6329 (kill_one_lwp_callback, linux_detach_lwp_callback,
6330 delete_lwp_callback, status_pending_p_callback, same_lwp,
6331 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6332 iterate_over_lwps, not_stopped_callback,
6333 resume_stopped_resumed_lwps, count_events_callback,
6334 select_singlestep_lwp_callback, select_event_lwp_callback,
6335 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6336 suspend_and_send_sigstop_callback, wait_for_sigstop,
6337 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6338 lwp_running, linux_set_resume_request, resume_status_pending_p,
6339 need_step_over_p, start_step_over, linux_resume_one_thread,
6340 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6341 reset_lwp_ptrace_options_callback): Update.
6342 * linux-mips-low.c (update_watch_registers_callback): Update.
6343 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6345 (free_register_cache_thread_one): Remove.
6346 (regcache_release): Update.
6347 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6348 handle_qxfer_threads_worker): Update.
6349 (handle_query): Update, use list iterator.
6350 (visit_actioned_threads, handle_pending_status,
6351 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6352 clear_pending_status_callback, set_pending_status_callback,
6353 find_status_pending_thread_callback, handle_status,
6354 process_serial_event): Update.
6355 * target.c (thread_search_callback): Update.
6356 * thread-db.c (thread_db_get_tls_address): Update.
6357 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6359 * win32-i386-low.c (update_debug_registers_callback): Update.
6360 * win32-low.c (delete_thread_info, child_delete_thread,
6361 continue_one_thread, suspend_one_thread,
6362 get_child_debug_event): Adjust.
6364 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6366 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6367 * inferiors.h: Include <list>.
6368 (struct process_info) <entry>: Remove field.
6370 (pid_of): Change macro to function.
6371 (ptid_of, lwpid_of): Remove macro.
6372 (all_processes): Change type to std::list<process_info *>.
6373 (ALL_PROCESSES): Remove macro.
6374 (for_each_process, find_process): New function.
6375 * inferiors.c (all_processes): Change type to
6376 std::list<process_info *>.
6377 (find_thread_process): Adjust.
6378 (add_process): Likewise.
6379 (remove_process): Likewise.
6380 (find_process_pid): Likewise.
6381 (get_first_process): Likewise.
6382 (started_inferior_callback): Remove.
6383 (have_started_inferiors_p): Adjust.
6384 (attached_inferior_callback): Remove.
6385 (have_attached_inferiors_p): Adjust.
6386 * linux-low.c (check_zombie_leaders): Likewise.
6387 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6388 (x86_linux_update_xmltarget): Adjust.
6389 * server.c (handle_query): Likewise.
6390 (gdb_reattached_process): Remove.
6391 (handle_status): Adjust.
6392 (kill_inferior_callback): Likewise.
6393 (detach_or_kill_inferior): Remove.
6394 (print_started_pid): Likewise.
6395 (print_attached_pid): Likewise.
6396 (detach_or_kill_for_exit): Update.
6397 (process_serial_event): Likewise.
6398 * linux-arm-low.c (arm_new_fork): Likewise.
6400 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6402 * dll.h: Include <list>.
6403 (struct dll_info): Add constructor.
6404 <entry>: Remove field.
6405 (all_dlls): Change type to std::list<dll_info>.
6406 * dll.c: Include <algorithm>.
6407 (get_dll): Remove macro.
6408 (all_dlls): Change type to std::list<dll_info *>.
6409 (free_one_dll): Remove.
6410 (match_dll): Likewise.
6411 (loaded_dll): Adjust.
6412 (unloaded_dll): Adjust to all_dlls type change, use
6413 std::find_if. Inline code from match_dll.
6414 (clear_dlls): Adjust to all_dlls type change.
6415 * server.c (emit_dll_description): Remove.
6416 (handle_qxfer_libraries): Adjust to all_dlls type change,
6417 integrate emit_dll_description's functionality.
6419 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6421 * linux-low.h (struct linux_target_ops) <delete_process>: New
6423 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6424 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6425 (struct linux_target_ops): Add delete_process callback.
6426 * linux-arm-low.c (arm_delete_process): New.
6427 (struct linux_target_ops): Add delete_process callback.
6428 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6429 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6430 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6431 * linux-mips-low.c (mips_linux_delete_process): New.
6432 (struct linux_target_ops): Add delete_process callback.
6433 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6434 * linux-s390-low.c (struct linux_target_ops): Likewise.
6435 * linux-sh-low.c (struct linux_target_ops): Likewise.
6436 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6437 * linux-tile-low.c (struct linux_target_ops): Likewise.
6438 * linux-x86-low.c (x86_linux_delete_process): New.
6439 (struct linux_target_ops): Add delete_process callback.
6440 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6442 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6444 * linux-aarch64-low.c (the_low_target): Add thread delete
6446 * linux-arm-low.c (arm_delete_thread): New function.
6447 (the_low_target): Add thread delete callback.
6448 * linux-bfin-low.c (the_low_target): Likewise.
6449 * linux-crisv32-low.c (the_low_target): Likewise.
6450 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6452 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6454 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6455 * linux-mips-low.c (mips_linux_delete_thread): New function.
6456 (the_low_target): Add thread delete callback.
6457 * linux-ppc-low.c (the_low_target): Likewise.
6458 * linux-s390-low.c (the_low_target): Likewise.
6459 * linux-sh-low.c (the_low_target): Likewise.
6460 * linux-tic6x-low.c (the_low_target): Likewise.
6461 * linux-tile-low.c (the_low_target): Likewise.
6462 * linux-x86-low.c (the_low_target): Likewise.
6463 * linux-xtensa-low.c (the_low_target): Likewise.
6465 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6467 * win32-low.c: Include "common-inferior.h".
6469 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6471 * inferiors.c (set_inferior_cwd): New function.
6472 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6473 (handle_query): Inform that QSetWorkingDir is supported.
6474 * win32-low.c (create_process): Pass the inferior's cwd to
6477 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6479 * inferiors.c (current_inferior_cwd): New global variable.
6480 (get_inferior_cwd): New function.
6481 * inferiors.h (struct process_info) <cwd>: New field.
6483 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6485 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6486 (OBS): Add gdb_tilde_expand.o.
6488 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6490 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6491 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6493 2017-09-29 Pedro Alves <palves@redhat.com>
6495 * ax.c (gdb_parse_agent_expr): Constify.
6496 * ax.h (gdb_parse_agent_expr): Constify.
6497 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6499 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6500 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6501 * remote-utils.h (read_ptid): Constify.
6502 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6503 (process_point_options, process_serial_event): Constify.
6504 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6505 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6506 (cmd_qtbuffer): Constify.
6508 2017-09-29 Pedro Alves <palves@redhat.com>
6510 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6513 2017-09-29 Pedro Alves <palves@redhat.com>
6515 * linux-low.c (handle_extended_wait): Pass parent thread instead
6516 of process to thread_db_notice_clone.
6517 * linux-low.h (thread_db_notice_clone): Replace parent process
6518 parameter with parent thread parameter.
6519 * thread-db.c (find_one_thread): Add comment.
6520 (thread_db_notice_clone): Replace parent process parameter with
6521 parent thread parameter. Temporarily switch to the parent thread.
6523 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6525 * gdbthread.h: Include "common-gdbthread.h".
6526 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6527 "if" when validating the ptid.
6528 * remote-utils.c: Include "gdbthread.h".
6529 (prepare_resume_reply): Use "switch_to_thread".
6530 * target.c (done_accessing_memory): Likewise.
6532 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6534 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6535 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6536 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6537 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6538 s390x-gs-linux64-ipa.o to ipa_obj.
6539 * linux-s390-low.c (HWCAP_S390_GS): New define.
6540 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6542 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6543 (s390_arch_setup): Check for guarded-storage support and choose
6545 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6546 init_registers_s390x_gs_linux64.
6547 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6549 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6550 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6552 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6554 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6556 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6558 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6559 (thread_db_thread_handle): Declare.
6560 * linux-low.c (linux_target_ops): Initialize thread_handle.
6561 * server.c (handle_qxfer_threads_worker): Add support for
6563 * target.h (struct target_ops): Add new function pointer,
6565 (target_thread_handle): Define.
6566 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6568 (thread_db_thread_handle): New function.
6570 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6572 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6573 * linux-low.h (thread_db_notice_clone): Declare.
6574 * thread-db.c (thread_db_notice_clone): New function.
6576 2017-09-21 Pedro Alves <palves@redhat.com>
6578 * server.c (gdb_read_memory, handle_status, process_serial_event)
6579 (handle_serial_event, handle_target_event): Adjust to
6580 set_desired_thread prototype change.
6581 * target.c (set_desired_thread): Remove 'use_general' parameter
6583 * target.h (set_desired_thread): Remove 'use_general' parameter.
6585 2017-09-20 Tom Tromey <tom@tromey.com>
6587 * target.c (target_terminal::terminal_state): Define.
6588 (target_terminal::init): Rename from target_terminal_init.
6589 (target_terminal::inferior): Rename from
6590 target_terminal_inferior.
6591 (target_terminal::ours): Rename from target_terminal_ours.
6592 (target_terminal::ours_for_output, target_terminal::info): New.
6594 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6596 * server.c (accumulate_file_name_length): Remove.
6597 (emit_dll_description): Adjust to std::string change.
6598 (handle_qxfer_libraries): Use std::string to hold document.
6600 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6602 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6603 return type of xml_escape_text.
6604 * server.c (emit_dll_description): Likewise.
6606 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6608 * server.c (captured_main): Accept argument for --selftest.
6609 Update run_tests call.
6610 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6611 when registering selftests.
6613 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6615 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6616 instead of "VEC" for "target_desc.reg_defs".
6617 (regcache_cpy): Likewise.
6618 (registers_to_string): Likewise.
6619 (registers_from_string): Likewise.
6620 (find_regno): Likewise.
6621 (supply_regblock): Likewise.
6622 (regcache_raw_read_unsigned): Likewise.
6623 * tdesc.c (init_target_desc): Likewise.
6624 (tdesc_create_reg): Likewise.
6625 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6626 (struct target_desc) <reg_defs>: Convert to "std::vector".
6627 (target_desc): Do not initialize "reg_defs".
6628 (~target_desc): Update code to use "std::vector" instead of "VEC"
6629 for "target_desc.reg_defs".
6630 (operator==): Likewise.
6632 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6634 * inferiors.h (thread_to_gdb_id): Remove.
6635 * inferiors.c (thread_to_gdb_id): Remove.
6636 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6637 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6638 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6640 * nto-low.c (nto_fetch_registers, nto_store_registers,
6641 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6643 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6645 * inferiors.h (gdb_id_to_thread_id): Remove.
6646 * inferiors.c (gdb_id_to_thread_id): Remove.
6647 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6648 removal. Move pid declaration closer to where it's used.
6650 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6652 * server.c (handle_detach): New function.
6653 (process_serial_event): Move code out, call handle_detach.
6655 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6657 * server.c (require_running): Rename to ...
6658 (require_running_or_return): ... this ...
6659 (require_running_or_break): ... and this.
6660 (handle_query, process_serial_event): Adjust.
6662 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6664 * linux-low.c (linux_set_resume_request): Remove unused
6667 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6669 * server.c (first_thread_of): Remove.
6670 (process_serial_event): Replace usage of first_thread_of with
6671 find_any_thread_of_pid.
6672 * tracepoint.c (same_process_p): Remove.
6673 (gdb_agent_about_to_close): Replace usage of same_process_p with
6674 find_any_thread_of_pid.
6675 * linux-x86-low.c (same_process_callback): Remove.
6676 (x86_arch_setup_process_callback): Replace usage of
6677 same_process_callback with find_any_thread_of_pid.
6678 * thread-db.c (any_thread_of): Remove.
6679 (switch_to_process): Replace usage of any_thread_of with
6680 find_any_thread_of_pid.
6681 * inferiors.c (thread_pid_matches_callback): Remove.
6682 (find_thread_process): Adjust to use find_any_thread_of_pid.
6684 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6686 * regcache.c (get_thread_regcache): Guard calls to "memset"
6689 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6691 * linux-low.c (handle_extended_wait): Use
6692 "allocate_target_description" instead of "XNEW".
6693 * linux-x86-low.c (initialize_low_arch): Likewise.
6695 2017-09-05 Yao Qi <yao.qi@linaro.org>
6697 * configure.srv (srv_i386_regobj): Remove.
6698 (srv_amd64_regobj): Remove.
6699 (srv_regobj): Set it to "" for x86 non-linux targets.
6700 * linux-x86-tdesc.c (i386_linux_read_description):
6701 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6702 (init_registers_i386): Remove the declaration.
6703 (tdesc_i386): Remove the declaration.
6704 (lynx_i386_arch_setup): Call i386_create_target_description.
6705 * nto-x86-low.c: Likewise.
6706 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6707 [!__x86_64__]: include arch/i386.h.
6708 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6710 2017-09-05 Yao Qi <yao.qi@linaro.org>
6712 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6713 i386/amd64-XXX-linux from it.
6715 2017-09-05 Yao Qi <yao.qi@linaro.org>
6717 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6719 (ipa_amd64_linux_regobj): Remove.
6720 (ipa_x32_linux_regobj): Remove.
6722 2017-09-05 Yao Qi <yao.qi@linaro.org>
6724 * Makefile.in (arch-amd64.o): New rule.
6725 * configure.srv: Append arch-amd64.o.
6726 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6727 (get_ipa_tdesc): Call amd64_linux_read_description.
6728 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6729 and init_registers_amd64_XXX.
6730 * linux-x86-low.c (x86_linux_read_description): Call
6731 amd64_linux_read_description.
6732 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6733 (initialize_low_arch): Don't call init_registers_x32_XXX and
6734 init_registers_amd64_XXX.
6735 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6736 and tdesc_amd64_XXX.
6737 [__x86_64__] (amd64_tdesc_test): New function.
6738 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6739 and init_registers_amd64_XXX.
6740 * linux-x86-tdesc.c: Include arch/amd64.h.
6741 (xcr0_to_tdesc_idx): New function.
6742 (i386_linux_read_description): New function.
6743 (amd64_get_ipa_tdesc_idx): New function.
6744 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6745 (amd64_get_ipa_tdesc): Declare.
6747 2017-09-05 Yao Qi <yao.qi@linaro.org>
6749 * configure.srv (srv_i386_linux_xmlfiles): Remove
6750 i386/i386-XXX-linux.xml from it.
6752 2017-09-05 Yao Qi <yao.qi@linaro.org>
6754 * configure.srv: Set srv_i386_linux_regobj empty if $development
6756 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6757 initialize_low_tdesc.
6758 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6759 with #if initialize_low_tdesc.
6760 * linux-x86-tdesc-selftest.c: New file.
6761 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6763 2017-09-05 Yao Qi <yao.qi@linaro.org>
6765 * Makefile.in (arch-i386.o): New rule.
6766 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6767 (x86_64-*-linux*): Likewise.
6768 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6769 include arch/i386.h.
6770 (i386_linux_read_description): Remove code and call
6771 i386_create_target_description.
6772 * tdesc.c (allocate_target_description): New function.
6773 * tdesc.h (set_tdesc_architecture): Remove declaration.
6774 (set_tdesc_osabi): Likewise.
6776 2017-09-05 Yao Qi <yao.qi@linaro.org>
6778 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6779 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6780 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6782 * server.c (get_features_xml): Call tdesc_get_features_xml.
6783 * tdesc.c (set_tdesc_architecture): New function.
6784 (set_tdesc_osabi): New function.
6785 (tdesc_get_features_xml): New function.
6786 (tdesc_create_feature): Add an argument.
6787 * tdesc.h (struct target_desc) <features>: New field.
6788 <arch, osabi>: New field.
6789 (~target_desc): xfree features, arch, and osabi.
6790 (target_desc::oerator==): Don't compare .xmltarget.
6791 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6792 (set_tdesc_osabi): Likewise.
6793 (tdesc_get_features_xml): Likewise.
6795 2017-09-05 Yao Qi <yao.qi@linaro.org>
6797 * linux-x86-tdesc.c: Include selftest.h.
6798 (i386_tdesc_test): New function.
6799 (initialize_low_tdesc): Call selftests::register_test.
6800 * tdesc.h: Include regdef.h.
6801 (target_desc): Override operator == and !=.
6803 2017-09-05 Yao Qi <yao.qi@linaro.org>
6805 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6806 (ipa_obj): Likewise.
6807 * linux-i386-ipa.c: Include common/x86-xstate.h
6808 (get_ipa_tdesc): Call i386_linux_read_description.
6809 (initialize_low_tracepoint): Don't call init_registers_XXX
6810 functions, call initialize_low_tdesc instead.
6811 * linux-x86-low.c (x86_linux_read_description): Call
6812 i386_linux_read_description.
6813 (initialize_low_arch): Don't call init_registers_i386_XXX
6814 functions, call initialize_low_tdesc.
6815 * linux-x86-tdesc.c: New file.
6816 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6817 (i386_get_ipa_tdesc_idx): Declare.
6818 (i386_get_ipa_tdesc): Declare.
6819 (initialize_low_tdesc): Declare.
6821 2017-09-05 Yao Qi <yao.qi@linaro.org>
6823 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6826 2017-09-05 Yao Qi <yao.qi@linaro.org>
6828 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6829 * regcache.c (get_thread_regcache): Use VEC_length.
6830 (init_register_cache): Likewise.
6831 (regcache_cpy): Likewise.
6832 (registers_to_string): Iterate reg_defs via VEC_iterate.
6833 (find_regno): Likewise.
6834 (find_register_by_number): Use VEC_index.
6835 (register_size): Call find_register_by_number.
6836 (register_data): Call find_register_by_number.
6837 (supply_regblock): Use VEC_length.
6838 (regcache_raw_read_unsigned): Likewise.
6839 * tdesc.c (init_target_desc): Iterate reg_defs via
6841 (default_description): Update initializer.
6842 (copy_target_description): Don't update field num_registers.
6843 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6844 <num_registers>: Remove.
6846 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6848 * Makefile.in (.SECONDARY): Define target.
6850 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6852 * linux-low.c (linux_wait_1): Adjust.
6853 * server.c (queue_stop_reply_callback): Adjust.
6855 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6857 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6858 QEnvironmentUnset and QEnvironmentReset packets.
6859 (handle_query): Inform remote that QEnvironmentHexEncoded,
6860 QEnvironmentUnset and QEnvironmentReset are supported.
6862 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6864 * inferiors.h (inferior_target_data): Rename to ...
6865 (thread_target_data): ... this.
6866 (inferior_regcache_data): Rename to ...
6867 (thread_regcache_data): ... this.
6868 (set_inferior_regcache_data): Rename to ...
6869 (set_thread_regcache_data): ... this.
6870 * inferiors.c (inferior_target_data): Rename to ...
6871 (thread_target_data): ... this.
6872 (inferior_regcache_data): Rename to ...
6873 (thread_regcache_data): ... this.
6874 (set_inferior_regcache_data): Rename to ...
6875 (set_thread_regcache_data): ... this.
6876 (free_one_thread): Update.
6877 * linux-low.h (get_thread_lwp): Update.
6878 * regcache.c (get_thread_regcache): Update.
6879 (regcache_invalidate_thread): Update.
6880 (free_register_cache_thread): Update.
6881 * win32-i386-low.c (update_debug_registers_callback): Update.
6882 (win32_get_current_dr): Update.
6883 * win32-low.c (thread_rec): Update.
6884 (delete_thread_info): Update.
6885 (continue_one_thread): Update.
6886 (suspend_one_thread): Update.
6888 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6890 * inferiors.c (set_inferior_target_data): Remove.
6891 * inferiors.h (set_inferior_target_data): Remove.
6893 2017-08-18 Yao Qi <yao.qi@linaro.org>
6895 * Makefile.in (OBS): Add selftest.o.
6896 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6897 * configure, config.in: Re-generated.
6898 * server.c: Include common/sefltest.h.
6899 (captured_main): Handle option --selftest.
6901 2017-08-09 Yao Qi <yao.qi@linaro.org>
6903 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6904 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6905 i386-avx-mpx.o and i386-mmx.o.
6906 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6907 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6908 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6909 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6910 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6911 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6912 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6913 i386/amd64-avx-mpx.xml.
6915 2017-08-09 Yao Qi <yao.qi@linaro.org>
6917 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6918 and x32-avx-avx512.o.
6919 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6920 i386/x32-avx-avx512.xml.
6922 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6924 * tracepoint.h (enum class fast_tpoint_collect_result): New
6926 (fast_tracepoint_collecting): Change return type to
6927 fast_tpoint_collect_result.
6928 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6929 * linux-low.h: Include tracepoint.h.
6930 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6931 fast_tpoint_collect_result.
6932 * linux-low.c (handle_tracepoints): Adjust.
6933 (linux_fast_tracepoint_collecting): Change return type to
6934 fast_tpoint_collect_result.
6935 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6936 linux_wait_1, stuck_in_jump_pad_callback,
6937 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6938 proceed_one_lwp): Adjust to type change.
6940 2017-07-10 Yao Qi <yao.qi@linaro.org>
6942 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6944 2017-06-29 Yao Qi <yao.qi@linaro.org>
6946 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6948 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6950 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6952 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6954 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6956 * linux-low.c (linux_create_inferior): Adjust code to access the
6957 environment information via 'gdb_environ' class.
6958 * lynx-low.c (lynx_create_inferior): Likewise.
6959 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6960 (get_environ): Return a pointer to 'our_environ'.
6961 (captured_main): Initialize 'our_environ'.
6962 * server.h (get_environ): Adjust prototype.
6963 * spu-low.c (spu_create_inferior): Adjust code to access the
6964 environment information via 'gdb_environ' class.
6966 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6968 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6969 usage of "register" keyword.
6971 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6973 * configure: Re-generate.
6975 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6977 * configure: Re-generate.
6979 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6981 * Makefile.in (COMPILE.pre): Add "-x c++".
6983 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6985 * fork-child.c: Conditionally include <signal.h>.
6987 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6989 * server.c (handle_general_set): Handle new packet
6990 "QStartupWithShell".
6991 (handle_query): Add "QStartupWithShell" to the list of supported
6993 (gdbserver_usage): Add help text explaining the
6994 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6996 (captured_main): Recognize and act upon the presence of the new
6999 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7000 Pedro Alves <palves@redhat.com>
7002 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7003 * configure: Regenerate.
7004 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7006 (i[34567]86-*-lynxos*): Likewise.
7007 (spu*-*-*): Likewise.
7008 * fork-child.c: New file.
7009 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7011 (linux_ptrace_fun): New function.
7012 (linux_create_inferior): Adjust function prototype to reflect
7013 change on "target.h". Adjust function code to use
7015 (linux_request_interrupt): Delete "signal_pid".
7016 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7017 (lynx_ptrace_fun): New function.
7018 (lynx_create_inferior): Adjust function prototype to reflect
7019 change on "target.h". Adjust function code to use
7021 * nto-low.c (nto_create_inferior): Adjust function prototype and
7022 code to reflect change on "target.h". Update comments.
7023 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7024 "common-terminal.h" and "environ.h".
7025 (terminal_fd): Moved to fork-child.c.
7026 (old_foreground_pgrp): Likewise.
7027 (restore_old_foreground_pgrp): Likewise.
7028 (last_status): Make it global.
7029 (last_ptid): Likewise.
7030 (our_environ): New variable.
7031 (startup_with_shell): Likewise.
7032 (program_name): Likewise.
7033 (program_argv): Rename to...
7034 (program_args): ...this.
7035 (wrapper_argv): New variable.
7036 (start_inferior): Delete function.
7037 (get_exec_wrapper): New function.
7038 (get_exec_file): Likewise.
7039 (get_environ): Likewise.
7040 (prefork_hook): Likewise.
7041 (post_fork_inferior): Likewise.
7042 (postfork_hook): Likewise.
7043 (postfork_child_hook): Likewise.
7044 (handle_v_run): Update code to deal with arguments coming from the
7045 remote host. Update calls from "start_inferior" to
7047 (captured_main): Likewise. Initialize environment variable. Call
7049 * server.h (post_fork_inferior): New prototype.
7050 (get_environ): Likewise.
7051 (last_status): Declare.
7052 (last_ptid): Likewise.
7053 (signal_pid): Likewise.
7054 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7055 (spu_ptrace_fun): New function.
7056 (spu_create_inferior): Adjust function prototype to reflect change
7057 on "target.h". Adjust function code to use "fork_inferior".
7058 * target.c (target_terminal_init): New function.
7059 (target_terminal_inferior): Likewise.
7060 (target_terminal_ours): Likewise.
7061 * target.h: Include <vector>.
7062 (struct target_ops) <create_inferior>: Update prototype.
7063 (create_inferior): Update macro.
7064 * utils.c (gdb_flush_out_err): New function.
7065 * win32-low.c (win32_create_inferior): Adjust function prototype
7066 and code to reflect change on "target.h".
7068 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7070 * inferiors.c (switch_to_thread): New function.
7072 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7074 * Makefile.in (SFILE): Add "common/job-control.c".
7075 (OBS): Add "job-control.o".
7077 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7079 * Makefile: Remove "@host_makefile_frag@".
7081 2017-05-05 Pedro Alves <palves@redhat.com>
7083 * configure: Regenerate.
7085 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7087 * configure: Regenerate.
7089 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7091 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7092 software_single_step change of return type to
7093 std::vector<CORE_ADDR>.
7094 * linux-low.c (install_software_single_step_breakpoints):
7096 * linux-low.h (install_software_single_step_breakpoints):
7099 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7101 * remote-utils.c: Include "gdb_termios.h" instead of
7103 * terminal.h: Delete file.
7105 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7107 * server.c: Include <vector>.
7108 <program_argv, wrapper_argv>: Convert to std::vector.
7109 (start_inferior): Rewrite function to use C++.
7110 (handle_v_run): Likewise. Update code that calculates the argv
7111 based on the vRun packet; use C++.
7112 (captured_main): Likewise.
7114 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7116 * server.c (handle_v_cont): Initialize thread_resume::thread
7119 2017-04-05 Pedro Alves <palves@redhat.com>
7121 * configure: Regenerate.
7123 2017-04-05 Pedro Alves <palves@redhat.com>
7125 * gdbreplay.c (sync_error): Constify.
7126 * linux-x86-low.c (push_opcode): Constify.
7128 2017-04-05 Pedro Alves <palves@redhat.com>
7130 * win32-low.c (get_child_debug_event)
7131 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7132 Report TARGET_WAITKIND_SPURIOUS instead.
7134 2017-04-05 Pedro Alves <palves@redhat.com>
7136 * remote-utils.c (remote_prepare, remote_open): Constify.
7137 * remote-utils.h (remote_prepare, remote_open): Constify.
7138 * server.c (captured_main): Constify 'port' handling.
7140 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7142 * Makefile.in (clean): Clear .deps.
7144 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7146 * .gitignore: Remove generated files, replace with wildcard.
7147 * (clean): Replace removal of generated files with wildcard.
7148 (version.c): Replace with...
7149 (version-generated.c): ...this.
7150 (xml-builtin.c): Replace with...
7151 (xml-builtin-generated.c): ...this.
7152 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7153 (%.c: *regformats*): Replace with...
7154 (%-generated.c: *regformats*): ...this.
7156 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7158 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7159 (xtensa_fill_gregset): Call collect_register_by_name for
7161 (xtensa_store_gregset): Call supply_register_by_name for
7164 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7166 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7167 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7168 (xtensa_store_gregset): Call supply_register for all registers in
7169 a0_regnum..a0_regnum + C0_NREGS range.
7171 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7173 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7174 (ax-ipa.o: ax.c): Remove.
7175 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7176 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7177 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7178 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7179 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7181 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7183 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7184 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7185 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7186 (errors-ipa.o: ../common/errors.c): Remove.
7187 (format-ipa.o: ../common/format.c): Remove.
7188 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7190 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7192 * Makefile.in (%-ipa.o: %.c): New rule.
7193 (tracepoint-ipa.o: tracepoint.c): Remove.
7194 (utils-ipa.o: utils.c): Remove.
7195 (remote-utils-ipa.o: remote-utils.c): Remove.
7196 (regcache-ipa.o: regcache.c): Remove.
7197 (i386-linux-ipa.o: i386-linux.c): Remove.
7198 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7199 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7200 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7201 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7202 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7203 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7204 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7205 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7206 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7207 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7208 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7209 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7210 (aarch64-ipa.o: aarch64.c): Remove.
7211 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7212 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7213 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7214 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7215 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7216 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7217 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7218 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7219 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7220 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7221 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7222 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7223 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7224 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7225 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7226 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7227 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7228 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7229 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7230 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7231 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7232 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7233 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7234 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7235 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7236 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7237 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7238 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7239 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7240 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7241 (tdesc-ipa.o: tdesc.c): Remove.
7242 (x32-linux-ipa.o: x32-linux.c): Remove.
7243 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7244 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7246 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7248 * Makefile.in (%.o: ../arch/%.c): New rule.
7249 (arm.o: ../arch/arm.c): Remove.
7250 (arm-linux.o: ../arch/arm-linux.c): Remove.
7251 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7252 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7254 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7256 * Makefile.in (%.o: ../nat/%.c): New rule.
7257 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7258 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7259 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7260 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7261 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7262 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7263 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7264 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7265 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7266 (linux-personality.o: ../nat/linux-personality.c): Remove.
7267 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7268 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7269 (x86-linux.o: ../nat/x86-linux.c): Remove.
7270 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7271 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7273 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7275 * Makefile.in (%.o: ../common/%.c): New rule.
7276 (signals.o: ../common/signals.c): Remove.
7277 (print-utils.o: ../common/print-utils.c): Remove.
7278 (rsp-low.o: ../common/rsp-low.c): Remove.
7279 (common-utils.o: ../common/common-utils.c): Remove.
7280 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7281 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7282 (vec.o: ../common/vec.c): Remove.
7283 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7284 (xml-utils.o: ../common/xml-utils.c): Remove.
7285 (ptid.o: ../common/ptid.c): Remove.
7286 (buffer.o: ../common/buffer.c): Remove.
7287 (format.o: ../common/format.c): Remove.
7288 (filestuff.o: ../common/filestuff.c): Remove.
7289 (agent.o: ../common/agent.c): Remove.
7290 (errors.o: ../common/errors.c): Remove.
7291 (environ.o: ../common/environ.c): Remove.
7292 (common-debug.o: ../common/common-debug.c): Remove.
7293 (cleanups.o: ../common/cleanups.c): Remove.
7294 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7295 (fileio.o: ../common/fileio.c): Remove.
7296 (common-regcache.o: ../common/common-regcache.c): Remove.
7297 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7298 (new-op.o: ../common/new-op.c): Remove.
7299 (btrace-common.o: ../common/btrace-common.c): Remove.
7301 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7303 * Makefile.in (%.o: ../target/%.c): New rule.
7304 (waitstatus.o: ../target/waitstatus.c): Remove.
7306 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7309 (%.c: ../regformats/%.dat,
7310 (%.c: ../regformats/arm/%.dat,
7311 (%.c: ../regformats/i386/%.dat,
7312 (%.c: ../regformats/rs6000/%.dat): New rules.
7313 (aarch64.c): Remove.
7314 (reg-arm.c): Remove.
7315 (arm-with-iwmmxt.c): Remove.
7316 (arm-with-vfpv2.c): Remove.
7317 (arm-with-vfpv3.c): Remove.
7318 (arm-with-neon.c): Remove.
7319 (reg-bfin.c): Remove.
7320 (reg-cris.c): Remove.
7321 (reg-crisv32.c): Remove.
7323 (i386-linux.c): Remove.
7324 (i386-avx.c): Remove.
7325 (i386-avx-linux.c): Remove.
7326 (i386-avx-avx512.c): Remove.
7327 (i386-avx-avx512-linux.c): Remove.
7328 (i386-mpx.c): Remove.
7329 (i386-mpx-linux.c): Remove.
7330 (i386-avx-mpx-avx512-pku.c): Remove.
7331 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7332 (i386-avx-mpx.c): Remove.
7333 (i386-avx-mpx-linux.c): Remove.
7334 (i386-mmx.c): Remove.
7335 (i386-mmx-linux.c): Remove.
7336 (reg-ia64.c): Remove.
7337 (reg-m32r.c): Remove.
7338 (reg-m68k.c): Remove.
7340 (mips-linux.c): Remove.
7341 (mips-dsp-linux.c): Remove.
7342 (mips64-linux.c): Remove.
7343 (mips64-dsp-linux.c): Remove.
7344 (nios2-linux.c): Remove.
7345 (powerpc-32.c): Remove.
7346 (powerpc-32l.c): Remove.
7347 (powerpc-altivec32l.c): Remove.
7348 (powerpc-cell32l.c): Remove.
7349 (powerpc-vsx32l.c): Remove.
7350 (powerpc-isa205-32l.c): Remove.
7351 (powerpc-isa205-altivec32l.c): Remove.
7352 (powerpc-isa205-vsx32l.c): Remove.
7353 (powerpc-e500l.c): Remove.
7354 (powerpc-64l.c): Remove.
7355 (powerpc-altivec64l.c): Remove.
7356 (powerpc-cell64l.c): Remove.
7357 (powerpc-vsx64l.c): Remove.
7358 (powerpc-isa205-64l.c): Remove.
7359 (powerpc-isa205-altivec64l.c): Remove.
7360 (powerpc-isa205-vsx64l.c): Remove.
7361 (s390-linux32.c): Remove.
7362 (s390-linux32v1.c): Remove.
7363 (s390-linux32v2.c): Remove.
7364 (s390-linux64.c): Remove.
7365 (s390-linux64v1.c): Remove.
7366 (s390-linux64v2.c): Remove.
7367 (s390-te-linux64.c): Remove.
7368 (s390-vx-linux64.c): Remove.
7369 (s390-tevx-linux64.c): Remove.
7370 (s390x-linux64.c): Remove.
7371 (s390x-linux64v1.c): Remove.
7372 (s390x-linux64v2.c): Remove.
7373 (s390x-te-linux64.c): Remove.
7374 (s390x-vx-linux64.c): Remove.
7375 (s390x-tevx-linux64.c): Remove.
7376 (tic6x-c64xp-linux.c): Remove.
7377 (tic6x-c64x-linux.c): Remove.
7378 (tic6x-c62x-linux.c): Remove.
7380 (reg-sparc64.c): Remove.
7381 (reg-spu.c): Remove.
7383 (amd64-linux.c): Remove.
7384 (amd64-avx.c): Remove.
7385 (amd64-avx-linux.c): Remove.
7386 (amd64-avx-avx512.c): Remove.
7387 (amd64-avx-avx512-linux.c): Remove.
7388 (amd64-mpx.c): Remove.
7389 (amd64-mpx-linux.c): Remove.
7390 (amd64-avx-mpx-avx512-pku.c): Remove.
7391 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7392 (amd64-avx-mpx.c): Remove.
7393 (amd64-avx-mpx-linux.c): Remove.
7395 (x32-linux.c): Remove.
7396 (x32-avx.c): Remove.
7397 (x32-avx-linux.c): Remove.
7398 (x32-avx-avx512.c): Remove.
7399 (x32-avx-avx512-linux.c): Remove.
7400 (reg-xtensa.c): Remove.
7401 (reg-tilegx.c): Remove.
7402 (reg-tilegx32.c): Remove.
7404 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7406 * Makefile.in (SFILES): Add "common/environ.c".
7407 (OBJS): Add "common/environ.h".
7409 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7411 * configure.ac: Check if the fs_base and gs_base members of
7412 `struct user_regs_struct' exist.
7413 * config.in: Regenerated.
7414 * configure: Likewise.
7416 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7418 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7420 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7421 (get_next_pcs_syscall_next_pc): Likewise.
7423 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7425 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7426 * nto-x86-low.c: Likewise.
7428 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7430 * Makefile.in: Include disable-implicit-rules.mk.
7432 2016-11-23 Pedro Alves <palves@redhat.com>
7434 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7435 (debug_vprintf): Use std::chrono::steady_clock instead of
7436 gettimeofday. Use '.' instead of ':'.
7437 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7438 (get_timestamp): Use std::chrono::steady_clock instead of
7441 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7443 * Makefile.in: Fix whitespace formatting.
7445 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7447 * Makefile.in (SFILES, OBS): Flatten list and order
7450 2016-11-23 Pedro Alves <palves@redhat.com>
7452 * event-loop.c (handle_file_event): Use warning.
7453 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7454 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7457 2016-11-23 Pedro Alves <palves@redhat.com>
7459 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7461 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7462 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7463 debug_printf and debug_flush for debug output.
7464 * server.c (handle_general_set): Likewise.
7465 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7468 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7470 * Makefile.in (.c.o): Replace rule with ...
7471 (%.o: %.c): ... this one.
7473 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7475 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7476 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7478 * configure.ac: Remove checks for the make program.
7479 * configure: Re-generate.
7481 2016-10-28 Pedro Alves <palves@redhat.com>
7483 * Makefile.in (CXX_DIALECT): Get from configure.
7484 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7485 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7486 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7487 * config.in: Regenerate.
7488 * configure: Regenerate.
7490 2016-10-27 Yao Qi <yao.qi@linaro.org>
7492 * linux-low.c (linux_supports_range_stepping): Return true if
7493 can_software_single_step return true.
7495 2016-10-27 Yao Qi <yao.qi@linaro.org>
7497 * inferiors.c (find_inferior_in_random): New function.
7498 * inferiors.h (find_inferior_in_random): Declare.
7499 * linux-low.c (linux_wait_for_event_filtered): Call
7500 find_inferior_in_random instead of find_inferior.
7502 2016-10-27 Yao Qi <yao.qi@linaro.org>
7504 * linux-low.c (linux_wait_1): If single-step breakpoints are
7505 inserted, remove them.
7507 2016-10-26 Pedro Alves <palves@redhat.com>
7509 * linux-low.c (handle_extended_wait): Link parent/child fork
7511 (linux_wait_1): Unlink them.
7512 (linux_set_resume_request): Ignore resume requests for
7513 already-resumed and unhandled fork child threads.
7514 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7515 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7517 (handle_v_requests) <vCont>: Don't call require_running.
7518 * server.h (in_queued_stop_replies): New declaration.
7520 2016-10-24 Yao Qi <yao.qi@linaro.org>
7523 * linux-aarch64-low.c (append_insns): Cast the return value to
7526 2016-10-10 Yao Qi <yao.qi@linaro.org>
7528 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7530 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7532 * target.c (target_supports_multi_process): New function, moved
7534 * target.h (target_supports_multi_process): ... here. Remove
7537 2016-10-05 Tom Tromey <tom@tromey.com>
7540 * tracepoint.c (handle_tracepoint_bkpts): Check
7541 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7543 2016-10-05 Yao Qi <yao.qi@linaro.org>
7545 * configure.srv: Update the path of arm-*.xml files.
7547 2016-10-05 Terry Guo <terry.guo@arm.com>
7548 Yao Qi <yao.qi@linaro.org>
7550 * Makefile.in: Adjust the path of rules.
7551 * configure.srv: Update the path of xml files.
7552 * regformats/arm-with-iwmmxt.dat: Regenerated.
7553 * regformats/arm-with-neon.dat: Likewise.
7554 * regformats/arm-with-vfpv2.dat: Likewise.
7555 * regformats/arm-with-vfpv3.dat Likewise.
7557 2016-09-30 Yao Qi <yao.qi@linaro.org>
7560 * target.c (target_stop_and_wait): Don't call
7561 target_continue_no_signal, use resume_stop instead.
7563 2016-09-26 Yao Qi <yao.qi@linaro.org>
7565 * linux-low.c (linux_wait_1): Call debug_exit.
7567 2016-09-23 Pedro Alves <palves@redhat.com>
7569 * Makefile.in (SFILES): Add common/new-op.c.
7570 (OBS): Add common/new-op.o.
7571 (new-op.o): New rule.
7573 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7575 * .gitinore: Ignore more files.
7577 2016-09-21 Yao Qi <yao.qi@linaro.org>
7579 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7582 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7584 * server.c (start_inferior): Call target_mourn_inferior instead of
7585 mourn_inferior; pass ptid_t argument to it.
7587 (handle_target_event): Likewise.
7588 * target.c (target_mourn_inferior): New function.
7589 * target.h (mourn_inferior): Delete macro.
7591 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7593 * linux-low.c (lwp_is_stepping): New function.
7595 2016-09-06 Carl Love <cel@us.ibm.com>
7597 * server.c (start_inferior): Fixed comment, requested comment change
7598 didn't get updated correctly. Removed reference to ptrace () call as
7599 it is only true on Linux systems.
7601 2016-09-06 Carl Love <cel@us.ibm.com>
7603 * server.c (start_inferior): Do not call
7604 function target_post_create_inferior () if the
7605 inferior process has already exited.
7607 2016-09-05 Pedro Alves <palves@redhat.com>
7609 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7610 (COMPILE.pre, CC_LD): Use CXX directly.
7611 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7612 * acinclude.m4: Don't include build-with-cxx.m4.
7613 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7614 * configure: Regenerate.
7616 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7619 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7620 call writing data to own_buf.
7622 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7624 * target.c (mywait): Call target_wait instead of
7626 (target_wait): New function.
7628 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7630 * server.c (start_inferior): New variable 'ptid'. Replace calls
7631 to the_target->resume by target_continue{,_no_signal}, depending
7633 * target.c (target_stop_and_wait): Call target_continue_no_signal
7634 instead of the_target->resume.
7635 (target_continue): New function.
7637 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7639 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7641 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7644 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7646 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7647 * linux-arm-low.c (ps_get_thread_area): Likewise.
7648 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7649 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7650 * linux-mips-low.c (ps_get_thread_area): Likewise.
7651 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7652 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7653 * linux-x86-low.c (ps_get_thread_area): Likewise.
7654 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7656 2016-08-19 Pedro Alves <palves@redhat.com>
7658 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7660 2016-08-19 Pedro Alves <palves@redhat.com>
7662 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7663 comment. Use memcpy instead of casting through unsigned long.
7665 2016-08-19 Pedro Alves <palves@redhat.com>
7667 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7668 allocating around 0x80000000.
7670 2016-08-19 Pedro Alves <palves@redhat.com>
7673 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7674 (x32-avx512-linux-ipa.o): New rules.
7675 * configure.ac (x86_64-*-linux*): New x32 check.
7676 * configure.srv (ipa_x32_linux_regobj): New.
7677 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7678 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7680 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7682 * configure: Regenerate.
7684 2016-08-09 Pedro Alves <palves@redhat.com>
7687 * Makefile.in (OBS): Add signals-state-save-restore.o.
7688 (signals-state-save-restore.o): New rule.
7689 * config.in: Regenerate.
7690 * configure: Regenerate.
7691 * linux-low.c: Include "signals-state-save-restore.h".
7692 (linux_create_inferior): Call
7693 restore_original_signals_state.
7694 * server.c: Include "dispositions-save-restore.h".
7695 (captured_main): Call save_original_signals_state.
7697 2016-08-05 Pedro Alves <palves@redhat.com>
7699 * configure: Regenerate.
7701 2016-08-04 Yao Qi <yao.qi@linaro.org>
7703 * linux-low.c (regsets_fetch_inferior_registers): Check
7704 errno is ESRCH or not.
7706 2016-08-02 Yao Qi <yao.qi@linaro.org>
7708 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7709 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7710 (thread_db_load_search): Update.
7711 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7712 td_ta_set_event and td_ta_event_getmsg.
7714 2016-07-26 Pedro Alves <palves@redhat.com>
7717 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7718 of unsigned long for 64-bit registers and use uint32_t instead of
7719 unsigned int for 32-bit registers.
7721 2016-07-26 Pedro Alves <palves@redhat.com>
7723 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7726 2016-07-21 Tom Tromey <tom@tromey.com>
7728 * configure: Rebuild.
7730 2016-07-21 Yao Qi <yao.qi@linaro.org>
7732 * mem-break.c (find_gdb_breakpoint): Cast bp to
7733 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7735 2016-07-21 Yao Qi <yao.qi@linaro.org>
7737 * server.c (handle_v_requests): Support s and S actions
7738 if target_supports_software_single_step return true.
7740 2016-07-21 Yao Qi <yao.qi@linaro.org>
7742 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7743 is resume_step, call maybe_hw_step.
7744 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7746 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7748 (proceed_one_lwp): If resume request is resume_step, install
7749 reinsert breakpoints and call maybe_hw_step.
7751 2016-07-21 Yao Qi <yao.qi@linaro.org>
7753 * linux-low.c (proceed_one_lwp): Declare.
7754 (linux_resume_one_thread): Remove local variable 'step'.
7755 Lift code enqueue signal. Call proceed_one_lwp instead of
7756 linux_resume_one_lwp.
7758 2016-07-21 Yao Qi <yao.qi@linaro.org>
7760 * linux-low.c (linux_resume_one_thread): Call
7761 enqueue_pending_signal.
7763 2016-07-21 Yao Qi <yao.qi@linaro.org>
7765 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7766 * inferiors.c (do_restore_current_thread_cleanup): New function.
7767 (make_cleanup_restore_current_thread): Likewise.
7768 * linux-low.c (install_software_single_step_breakpoints): Call
7769 make_cleanup_restore_current_thread. Switch current_thread to
7772 2016-07-21 Yao Qi <yao.qi@linaro.org>
7774 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7775 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7776 (clone_one_breakpoint): Likewise.
7777 (delete_reinsert_breakpoints): Change parameter to thread.
7779 (has_reinsert_breakpoints): Likewise.
7780 (uninsert_reinsert_breakpoints): Likewise.
7781 (reinsert_reinsert_breakpoints): Likewise.
7782 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7783 (delete_reinsert_breakpoints): Likewise.
7784 (reinsert_reinsert_breakpoints): Likewise.
7785 (uninsert_reinsert_breakpoints): Likewise.
7786 (has_reinsert_breakpoints): Likewise.
7788 2016-07-21 Yao Qi <yao.qi@linaro.org>
7790 * inferiors.c (get_thread_process): Make parameter const.
7791 * inferiors.h (get_thread_process): Update declaration.
7792 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7793 Add new parameters child_thread and parent_thread. Callers
7795 * mem-break.h (clone_all_breakpoints): Update declaration.
7797 2016-07-21 Yao Qi <yao.qi@linaro.org>
7799 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7800 <command_list, handler>: Remove.
7801 (struct gdb_breakpoint): New.
7802 (struct other_breakpoint): New.
7803 (struct reinsert_breakpoint): New.
7804 (is_gdb_breakpoint): New function.
7805 (any_persistent_commands): Update command_list if
7806 is_gdb_breakpoint returns true.
7807 (set_breakpoint): Create breakpoints according to their types.
7808 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7809 (set_gdb_breakpoint_1): Likewise.
7810 (set_gdb_breakpoint): Likewise.
7811 (clear_breakpoint_conditions): Change parameter type to
7812 'struct gdb_breakpoint *'.
7813 (clear_breakpoint_commands): Likewise.
7814 (clear_breakpoint_conditions_and_commands): Likewise.
7815 (add_condition_to_breakpoint): Likewise.
7816 (add_breakpoint_condition): Likewise.
7817 (add_commands_to_breakpoint): Likewise.
7818 (check_breakpoints): Check other_breakpoint.
7819 (clone_one_breakpoint): Clone breakpopint according to its type.
7820 * mem-break.h (struct gdb_breakpoint): Declare.
7821 (set_gdb_breakpoint): Update declaration.
7822 (clear_breakpoint_conditions_and_commands): Likewise.
7823 (add_breakpoint_condition): Likewise.
7824 (add_breakpoint_commands): Likewise.
7825 * server.c (process_point_options): Change parameter type to
7826 'struct gdb_breakpoint *'.
7828 2016-07-21 Yao Qi <yao.qi@linaro.org>
7830 * mem-break.c (set_breakpoint_at): Rename it to ...
7831 (set_breakpoint_type_at): ... it.
7832 (set_breakpoint_at): Call set_breakpoint_type_at.
7833 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7834 * mem-break.h (set_breakpoint_at): Update comments.
7836 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7838 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7840 (nios2_store_gregset): Likewise.
7842 2016-07-01 Pedro Alves <palves@redhat.com>
7843 Antoine Tremblay <antoine.tremblay@ericsson.com>
7845 * linux-low.c: Change interface to take the target lwp_info
7846 pointer directly and return void. Handle detaching from a zombie
7848 (linux_detach_lwp_callback): New function.
7849 (linux_detach): Detach from the leader thread after detaching from
7852 2016-06-28 Yao Qi <yao.qi@linaro.org>
7854 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7855 for variable new_offset.
7856 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7857 (aarch64_ftrace_insn_reloc_cb): Likewise.
7858 (aarch64_ftrace_insn_reloc_tb): Likewise.
7859 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7860 PRIx64 instead of PRIx32.
7862 2016-06-28 Yao Qi <yao.qi@linaro.org>
7864 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7865 (the_low_target): Install arm_get_syscall_trapinfo.
7867 2016-06-28 Yao Qi <yao.qi@linaro.org>
7869 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7871 (the_low_target): Install aarch64_get_syscall_trapinfo.
7873 2016-06-28 Yao Qi <yao.qi@linaro.org>
7875 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7877 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7878 Remove parameter sysno.
7879 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7882 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7884 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7885 (s390_emit_ne_goto): Likewise.
7886 (s390_emit_lt_goto): Likewise.
7887 (s390_emit_le_goto): Likewise.
7888 (s390_emit_gt_goto): Likewise.
7889 (s390_emit_ge_goto): Likewise.
7890 (s390x_emit_eq_goto): Likewise.
7891 (s390x_emit_ne_goto): Likewise.
7892 (s390x_emit_lt_goto): Likewise.
7893 (s390x_emit_le_goto): Likewise.
7894 (s390x_emit_gt_goto): Likewise.
7895 (s390x_emit_ge_goto): Likewise.
7896 (s390_emit_ops_impl): Mark variable static.
7897 (s390x_emit_ops): Likewise.
7899 2016-06-17 Yao Qi <yao.qi@linaro.org>
7901 * linux-low.c (handle_extended_wait): Call
7902 uninsert_reinsert_breakpoints for the parent process. Remove
7903 reinsert breakpoints from the child process. Reinsert them to
7904 the parent process when vfork is done.
7905 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7906 (reinsert_reinsert_breakpoints): New function.
7907 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7908 (reinsert_reinsert_breakpoints): Declare.
7910 2016-06-17 Yao Qi <yao.qi@linaro.org>
7912 * linux-low.c (handle_extended_wait): If the parent is doing
7913 step-over, remove the reinsert breakpoints from the forked child.
7915 2016-06-17 Yao Qi <yao.qi@linaro.org>
7917 * linux-low.c (unsuspend_all_lwps): Declare.
7918 (linux_low_filter_event): If thread exited, call finish_step_over.
7919 If step-over is finished, unsuspend other threads.
7921 2016-06-17 Yao Qi <yao.qi@linaro.org>
7923 * linux-low.c (linux_resume_one_lwp_throw): Assert
7924 has_reinsert_breakpoints returns false.
7925 * mem-break.c (delete_disabled_breakpoints): Assert
7926 bp type isn't reinsert_breakpoint.
7928 2016-06-17 Yao Qi <yao.qi@linaro.org>
7930 * linux-low.c (maybe_hw_step): New function.
7931 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7932 (finish_step_over): Switch current_thread to lwp temporarily,
7933 and assert has_reinsert_breakpoints returns true.
7934 (proceed_one_lwp): Call maybe_hw_step.
7935 * mem-break.c (has_reinsert_breakpoints): New function.
7936 * mem-break.h (has_reinsert_breakpoints): Declare.
7938 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7940 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7942 2016-05-17 Yao Qi <yao.qi@linaro.org>
7944 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7945 instead of find_inferior.
7947 2016-05-05 Yao Qi <yao.qi@linaro.org>
7949 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7950 Initialize res to zero.
7952 2016-05-05 Yao Qi <yao.qi@linaro.org>
7954 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7957 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7959 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7960 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7961 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7963 2016-04-28 Par Olsson <par.olsson@windriver.com>
7964 Simon Marchi <simon.marchi@ericsson.com>
7966 * tracepoint.c (write_inferior_int8): New function.
7967 (cmd_qtenable_disable): Write enable flag using
7968 write_inferior_int8.
7970 2016-04-25 Yao Qi <yao.qi@linaro.org>
7972 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7973 (need_step_over_p): Return zero if the LWP has pending signals
7974 can be delivered on software single step target.
7976 2016-04-25 Yao Qi <yao.qi@linaro.org>
7978 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7979 return instead of error.
7981 2016-04-22 Yao Qi <yao.qi@linaro.org>
7983 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7986 2016-04-22 Yao Qi <yao.qi@linaro.org>
7988 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7989 signal when stepping over breakpoint with software single
7992 2016-04-21 Pedro Alves <palves@redhat.com>
7994 * linux-s390-low.c (s390_collect_ptrace_register)
7995 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7997 (s390_check_regset): Use void * instead of gdb_byte *.
7999 2016-04-20 Pedro Alves <palves@redhat.com>
8001 * configure: Renegerate.
8003 2016-04-20 Yao Qi <yao.qi@linaro.org>
8005 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8006 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8008 (arm_store_gregset): Likewise.
8010 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8012 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8013 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8014 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8015 (amd64-avx-mpx-linux.c): New rules.
8016 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8017 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8018 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8019 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8020 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8021 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8022 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8023 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8024 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8025 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8026 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8027 * linux-x86-low.c (x86_linux_read_description): Add case for
8028 X86_XSTATE_AVX_MPX_MASK.
8029 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8030 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8031 init_registers_i386_avx_mpx_linux.
8032 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8033 (initialize_low_tracepoint): Call
8034 init_registers_i386_avx_mpx_linux.
8035 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8036 (initialize_low_tracepoint): Call
8037 init_registers_amd64_avx_mpx_linux.
8038 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8039 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8040 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8043 2016-04-18 Pedro Alves <palves@redhat.com>
8045 * configure: Regenerate.
8047 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8049 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8050 (aarch64_emit_sub): Likewise.
8052 2016-04-12 Pedro Alves <palves@redhat.com>
8054 * utils.c (prepare_to_throw_exception): Delete.
8056 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8058 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8060 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8062 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8064 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8066 * linux-aarch64-ipa.c: Add <elf.h> include.
8067 * linux-ppc-ipa.c: Add <elf.h> include.
8068 * linux-s390-ipa.c: Add <elf.h> include.
8070 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8072 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8073 (get_raw_reg_ptr): Likewise.
8074 (get_trace_state_variable_value_ptr): Likewise.
8075 (set_trace_state_variable_value_ptr): Likewise.
8076 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8079 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8080 Marcin Kościelnicki <koriakin@0x04.net>
8083 * linux-ppc-low.c (emit_insns): New function.
8084 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8085 (ppc_emit_prologue): New function.
8086 (ppc_emit_epilogue): New function.
8087 (ppc_emit_add): New function.
8088 (ppc_emit_sub): New function.
8089 (ppc_emit_mul): New function.
8090 (ppc_emit_lsh): New function.
8091 (ppc_emit_rsh_signed): New function.
8092 (ppc_emit_rsh_unsigned): New function.
8093 (ppc_emit_ext): New function.
8094 (ppc_emit_zero_ext): New function.
8095 (ppc_emit_log_not): New function.
8096 (ppc_emit_bit_and): New function.
8097 (ppc_emit_bit_or): New function.
8098 (ppc_emit_bit_xor): New function.
8099 (ppc_emit_bit_not): New function.
8100 (ppc_emit_equal): New function.
8101 (ppc_emit_less_signed): New function.
8102 (ppc_emit_less_unsigned): New function.
8103 (ppc_emit_ref): New function.
8104 (ppc_emit_const): New function.
8105 (ppc_emit_reg): New function.
8106 (ppc_emit_pop): New function.
8107 (ppc_emit_stack_flush): New function.
8108 (ppc_emit_swap): New function.
8109 (ppc_emit_stack_adjust): New function.
8110 (ppc_emit_call): New function.
8111 (ppc_emit_int_call_1): New function.
8112 (ppc_emit_void_call_2): New function.
8113 (ppc_emit_if_goto): New function.
8114 (ppc_emit_goto): New function.
8115 (ppc_emit_eq_goto): New function.
8116 (ppc_emit_ne_goto): New function.
8117 (ppc_emit_lt_goto): New function.
8118 (ppc_emit_le_goto): New function.
8119 (ppc_emit_gt_goto): New function.
8120 (ppc_emit_ge_goto): New function.
8121 (ppc_write_goto_address): New function.
8122 (ppc_emit_ops_impl): New static variable.
8123 (ppc64v1_emit_prologue): New function.
8124 (ppc64v2_emit_prologue): New function.
8125 (ppc64_emit_epilogue): New function.
8126 (ppc64_emit_add): New function.
8127 (ppc64_emit_sub): New function.
8128 (ppc64_emit_mul): New function.
8129 (ppc64_emit_lsh): New function.
8130 (ppc64_emit_rsh_signed): New function.
8131 (ppc64_emit_rsh_unsigned): New function.
8132 (ppc64_emit_ext): New function.
8133 (ppc64_emit_zero_ext): New function.
8134 (ppc64_emit_log_not): New function.
8135 (ppc64_emit_bit_and): New function.
8136 (ppc64_emit_bit_or): New function.
8137 (ppc64_emit_bit_xor): New function.
8138 (ppc64_emit_bit_not): New function.
8139 (ppc64_emit_equal): New function.
8140 (ppc64_emit_less_signed): New function.
8141 (ppc64_emit_less_unsigned): New function.
8142 (ppc64_emit_ref): New function.
8143 (ppc64_emit_const): New function.
8144 (ppc64v1_emit_reg): New function.
8145 (ppc64v2_emit_reg): New function.
8146 (ppc64_emit_pop): New function.
8147 (ppc64_emit_stack_flush): New function.
8148 (ppc64_emit_swap): New function.
8149 (ppc64v1_emit_call): New function.
8150 (ppc64v2_emit_call): New function.
8151 (ppc64v1_emit_int_call_1): New function.
8152 (ppc64v2_emit_int_call_1): New function.
8153 (ppc64v1_emit_void_call_2): New function.
8154 (ppc64v2_emit_void_call_2): New function.
8155 (ppc64_emit_if_goto): New function.
8156 (ppc64_emit_eq_goto): New function.
8157 (ppc64_emit_ne_goto): New function.
8158 (ppc64_emit_lt_goto): New function.
8159 (ppc64_emit_le_goto): New function.
8160 (ppc64_emit_gt_goto): New function.
8161 (ppc64_emit_ge_goto): New function.
8162 (ppc64v1_emit_ops_impl): New static variable.
8163 (ppc64v2_emit_ops_impl): New static variable.
8164 (ppc_emit_ops): New function.
8165 (linux_low_target): Wire in ppc_emit_ops.
8167 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8168 Marcin Kościelnicki <koriakin@0x04.net>
8171 * Makefile.in: Add powerpc-*-ipa.o
8172 * configure.srv: Add ipa_obj for powerpc*-linux.
8173 * linux-ppc-ipa.c: New file.
8174 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8176 (PPC_FIELD): New macro.
8177 (PPC_SEXT): New macro.
8178 (PPC_OP6): New macro.
8179 (PPC_BO): New macro.
8180 (PPC_LI): New macro.
8181 (PPC_BD): New macro.
8182 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8183 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8184 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8185 (ppc_get_thread_area): New function.
8186 (is_elfv2_inferior): New function.
8187 (gen_ds_form): New function.
8188 (GEN_STD): New macro.
8189 (GEN_STDU): New macro.
8190 (GEN_LD): New macro.
8191 (GEN_LDU): New macro.
8192 (gen_d_form): New function.
8193 (GEN_ADDI): New macro.
8194 (GEN_ADDIS): New macro.
8195 (GEN_LI): New macro.
8196 (GEN_LIS): New macro.
8197 (GEN_ORI): New macro.
8198 (GEN_ORIS): New macro.
8199 (GEN_LWZ): New macro.
8200 (GEN_STW): New macro.
8201 (GEN_STWU): New macro.
8202 (gen_xfx_form): New function.
8203 (GEN_MFSPR): New macro.
8204 (GEN_MTSPR): New macro.
8205 (GEN_MFCR): New macro.
8206 (GEN_MTCR): New macro.
8207 (GEN_SYNC): New macro.
8208 (GEN_LWSYNC): New macro.
8209 (gen_x_form): New function.
8210 (GEN_OR): New macro.
8211 (GEN_MR): New macro.
8212 (GEN_LWARX): New macro.
8213 (GEN_STWCX): New macro.
8214 (GEN_CMPW): New macro.
8215 (gen_md_form): New function.
8216 (GEN_RLDICL): New macro.
8217 (GEN_RLDICR): New macro.
8218 (gen_i_form): New function.
8220 (GEN_BL): New macro.
8221 (gen_b_form): New function.
8222 (GEN_BNE): New macro.
8223 (GEN_LOAD): New macro.
8224 (GEN_STORE): New macro.
8225 (gen_limm): New function.
8226 (gen_atomic_xchg): New function.
8227 (gen_call): New function.
8228 (ppc_relocate_instruction): New function.
8229 (ppc_install_fast_tracepoint_jump_pad): New function.
8230 (ppc_get_min_fast_tracepoint_insn_len): New function.
8231 (ppc_get_ipa_tdesc_idx): New function.
8232 (the_low_target): Wire in the new functions.
8233 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8235 * linux-ppc-tdesc.h: New file.
8237 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8239 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8240 (alloc_jump_pad_buffer): New function.
8241 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8242 (alloc_jump_pad_buffer): New function.
8243 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8244 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8245 (alloc_jump_pad_buffer): New function.
8246 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8247 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8248 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8249 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8251 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8253 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8254 * linux-amd64-ipa.c: Likewise.
8255 * linux-i386-ipa.c: Likewise.
8256 * linux-s390-ipa.c: Likewise.
8257 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8258 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8259 set_trace_state_variable_value_ptr.
8260 (struct ipa_sym_addresses): Likewise.
8261 (symbol_list): Likewise.
8262 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8263 accessing gdb_collect directly.
8264 (gdb_collect_ptr_type): New typedef.
8265 (get_raw_reg_ptr_type): New typedef.
8266 (get_trace_state_variable_value_ptr_type): New typedef.
8267 (set_trace_state_variable_value_ptr_type): New typedef.
8268 (gdb_collect_ptr): New global.
8269 (get_raw_reg_ptr): New global.
8270 (get_trace_state_variable_value_ptr): New global.
8271 (set_trace_state_variable_value_ptr): New global.
8272 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8273 accessing get_raw_reg directly.
8274 (get_get_tsv_func_addr): Likewise for
8275 get_trace_state_variable_value_ptr.
8276 (get_set_tsv_func_addr): Likewise for
8277 set_trace_state_variable_value_ptr.
8278 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8280 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8282 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8284 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8286 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8288 (relocate_instruction): Remove own_buf.
8289 * server.c (own_buf): Make global.
8290 (handle_v_requests): Make global.
8291 * server.h (own_buf): New declaration.
8292 (handle_v_requests): New prototype.
8294 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8297 * linux-s390-low.c (add_insns): New function.
8298 (s390_emit_prologue): New function.
8299 (s390_emit_epilogue): New function.
8300 (s390_emit_add): New function.
8301 (s390_emit_sub): New function.
8302 (s390_emit_mul): New function.
8303 (s390_emit_lsh): New function.
8304 (s390_emit_rsh_signed): New function.
8305 (s390_emit_rsh_unsigned): New function.
8306 (s390_emit_ext): New function.
8307 (s390_emit_log_not): New function.
8308 (s390_emit_bit_and): New function.
8309 (s390_emit_bit_or): New function.
8310 (s390_emit_bit_xor): New function.
8311 (s390_emit_bit_not): New function.
8312 (s390_emit_equal): New function.
8313 (s390_emit_less_signed): New function.
8314 (s390_emit_less_unsigned): New function.
8315 (s390_emit_ref): New function.
8316 (s390_emit_if_goto): New function.
8317 (s390_emit_goto): New function.
8318 (s390_write_goto_address): New function.
8319 (s390_emit_litpool): New function.
8320 (s390_emit_const): New function.
8321 (s390_emit_call): New function.
8322 (s390_emit_reg): New function.
8323 (s390_emit_pop): New function.
8324 (s390_emit_stack_flush): New function.
8325 (s390_emit_zero_ext): New function.
8326 (s390_emit_swap): New function.
8327 (s390_emit_stack_adjust): New function.
8328 (s390_emit_set_r2): New function.
8329 (s390_emit_int_call_1): New function.
8330 (s390_emit_void_call_2): New function.
8331 (s390_emit_eq_goto): New function.
8332 (s390_emit_ne_goto): New function.
8333 (s390_emit_lt_goto): New function.
8334 (s390_emit_le_goto): New function.
8335 (s390_emit_gt_goto): New function.
8336 (s390_emit_ge_goto): New function.
8337 (s390x_emit_prologue): New function.
8338 (s390x_emit_epilogue): New function.
8339 (s390x_emit_add): New function.
8340 (s390x_emit_sub): New function.
8341 (s390x_emit_mul): New function.
8342 (s390x_emit_lsh): New function.
8343 (s390x_emit_rsh_signed): New function.
8344 (s390x_emit_rsh_unsigned): New function.
8345 (s390x_emit_ext): New function.
8346 (s390x_emit_log_not): New function.
8347 (s390x_emit_bit_and): New function.
8348 (s390x_emit_bit_or): New function.
8349 (s390x_emit_bit_xor): New function.
8350 (s390x_emit_bit_not): New function.
8351 (s390x_emit_equal): New function.
8352 (s390x_emit_less_signed): New function.
8353 (s390x_emit_less_unsigned): New function.
8354 (s390x_emit_ref): New function.
8355 (s390x_emit_if_goto): New function.
8356 (s390x_emit_const): New function.
8357 (s390x_emit_call): New function.
8358 (s390x_emit_reg): New function.
8359 (s390x_emit_pop): New function.
8360 (s390x_emit_stack_flush): New function.
8361 (s390x_emit_zero_ext): New function.
8362 (s390x_emit_swap): New function.
8363 (s390x_emit_stack_adjust): New function.
8364 (s390x_emit_int_call_1): New function.
8365 (s390x_emit_void_call_2): New function.
8366 (s390x_emit_eq_goto): New function.
8367 (s390x_emit_ne_goto): New function.
8368 (s390x_emit_lt_goto): New function.
8369 (s390x_emit_le_goto): New function.
8370 (s390x_emit_gt_goto): New function.
8371 (s390x_emit_ge_goto): New function.
8372 (s390_emit_ops): New function.
8373 (struct linux_target_ops): Fill in emit_ops hook.
8375 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8378 * Makefile.in: Add s390 IPA files.
8379 * configure.srv: Build IPA for s390.
8380 * linux-s390-ipa.c: New file.
8381 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8382 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8383 (tdesc_s390_linux32): Likewise.
8384 (init_registers_s390_linux32v1): Likewise.
8385 (tdesc_s390_linux32v1): Likewise.
8386 (init_registers_s390_linux32v2): Likewise.
8387 (tdesc_s390_linux32v2): Likewise.
8388 (init_registers_s390_linux64): Likewise.
8389 (tdesc_s390_linux64): Likewise.
8390 (init_registers_s390_linux64v1): Likewise.
8391 (tdesc_s390_linux64v1): Likewise.
8392 (init_registers_s390_linux64v2): Likewise.
8393 (tdesc_s390_linux64v2): Likewise.
8394 (init_registers_s390_te_linux64): Likewise.
8395 (tdesc_s390_te_linux64): Likewise.
8396 (init_registers_s390_vx_linux64): Likewise.
8397 (tdesc_s390_vx_linux64): Likewise.
8398 (init_registers_s390_tevx_linux64): Likewise.
8399 (tdesc_s390_tevx_linux64): Likewise.
8400 (init_registers_s390x_linux64): Likewise.
8401 (tdesc_s390x_linux64): Likewise.
8402 (init_registers_s390x_linux64v1): Likewise.
8403 (tdesc_s390x_linux64v1): Likewise.
8404 (init_registers_s390x_linux64v2): Likewise.
8405 (tdesc_s390x_linux64v2): Likewise.
8406 (init_registers_s390x_te_linux64): Likewise.
8407 (tdesc_s390x_te_linux64): Likewise.
8408 (init_registers_s390x_vx_linux64): Likewise.
8409 (tdesc_s390x_vx_linux64): Likewise.
8410 (init_registers_s390x_tevx_linux64): Likewise.
8411 (tdesc_s390x_tevx_linux64): Likewise.
8412 (have_hwcap_s390_vx): New static variable.
8413 (s390_arch_setup): Fill have_hwcap_s390_vx.
8414 (s390_get_thread_area): New function.
8415 (s390_ft_entry_gpr_esa): New const.
8416 (s390_ft_entry_gpr_zarch): New const.
8417 (s390_ft_entry_misc): New const.
8418 (s390_ft_entry_fr): New const.
8419 (s390_ft_entry_vr): New const.
8420 (s390_ft_main_31): New const.
8421 (s390_ft_main_64): New const.
8422 (s390_ft_exit_fr): New const.
8423 (s390_ft_exit_vr): New const.
8424 (s390_ft_exit_misc): New const.
8425 (s390_ft_exit_gpr_esa): New const.
8426 (s390_ft_exit_gpr_zarch): New const.
8427 (append_insns): New function.
8428 (s390_relocate_instruction): New function.
8429 (s390_install_fast_tracepoint_jump_pad): New function.
8430 (s390_get_min_fast_tracepoint_insn_len): New function.
8431 (s390_get_ipa_tdesc_idx): New function.
8432 (struct linux_target_ops): Wire in the above functions.
8433 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8434 * linux-s390-tdesc.h: New file.
8436 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8438 * linux-s390-low.c (s390_supports_tracepoints): New function.
8439 (struct linux_target_ops): Fill supports_tracepoints hook.
8441 2016-03-18 Yao Qi <yao.qi@linaro.org>
8443 * linux-low.c (lwp_signal_can_be_delivered): New function.
8444 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8446 2016-03-18 Yao Qi <yao.qi@linaro.org>
8448 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8449 0 if signal is enqueued. Remove 'signal' from one debugging
8450 message. Move one debugging message to some lines below.
8451 Remove code setting 'signal' to 0.
8453 2016-03-18 Yao Qi <yao.qi@linaro.org>
8455 * linux-low.c (linux_low_filter_event): Remove redundant
8456 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8458 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8460 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8461 (struct linux_target_ops): Wire in the above.
8463 2016-03-03 Yao Qi <yao.qi@linaro.org>
8465 * linux-low.c: Update comments to start_step_over.
8467 2016-03-03 Yao Qi <yao.qi@linaro.org>
8470 * linux-low.c (handle_extended_wait): Set child suspended
8471 if event_lwp->bp_reinsert isn't zero.
8473 2016-03-02 Yao Qi <yao.qi@linaro.org>
8475 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8476 enqueue_pending_signal.
8478 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8480 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8483 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8485 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8486 (s390_regmap_3264) [!__s390x__]: New global.
8487 (s390_collect_ptrace_register): Skip map entries containing -1.
8488 (s390_supply_ptrace_register): Ditto.
8489 (s390_fill_gprs_high): New function.
8490 (s390_store_gprs_high): New function.
8491 (s390_regsets): Add NT_S390_HIGH_GPRS.
8492 (s390_get_hwcap): Enable on 31-bit.
8493 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8494 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8495 Detect NT_S390_HIGH_GPRS.
8496 (s390_usrregs_info_3264): Enable on 31-bit.
8497 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8498 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8500 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8503 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8504 * configure.srv: Ditto.
8505 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8506 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8507 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8508 (init_registers_amd64_linux): Remove prototype.
8509 (tdesc_amd64_linux): Remove declaration.
8510 (get_ipa_tdesc): New function.
8511 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8512 initialize remaining tdescs.
8513 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8514 (init_registers_i386_linux): Remove prototype.
8515 (tdesc_i386_linux): Remove declaration.
8516 (get_ipa_tdesc): New function.
8517 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8518 initialize remaining tdescs.
8519 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8520 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8521 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8522 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8523 (x86_get_ipa_tdesc_idx): New function.
8524 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8525 * linux-x86-tdesc.h: New file.
8526 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8527 (target_get_ipa_tdesc_idx): New macro.
8528 * tracepoint.c (ipa_tdesc_idx): New macro.
8529 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8530 (symbol_list): Add ipa_tdesc_idx.
8531 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8532 (ipa_tdesc): Remove.
8533 (ipa_tdesc_idx): New variable.
8534 (get_context_regcache): Use get_ipa_tdesc.
8535 (gdb_collect): Ditto.
8537 * tracepoint.h (get_ipa_tdesc): New prototype.
8538 (ipa_tdesc): Remove.
8540 2016-02-24 Pedro Alves <palves@redhat.com>
8542 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8543 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8544 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8545 Factor out common code between the USE_SIGTRAP_SIGINFO and
8546 !USE_SIGTRAP_SIGINFO blocks.
8547 (linux_low_filter_event): Call save_stop_reason instead of
8548 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8550 (linux_wait_1): Update comments.
8552 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8554 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8555 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8556 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8557 ppc_insert_point, ppc_remove_point.
8559 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8561 * linux-s390-low.c (s390_supports_z_point_type): New function.
8562 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8564 2016-02-16 Yao Qi <yao.qi@linaro.org>
8566 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8567 PC. Get pc from regcache_read_pc.
8569 2016-02-12 Yao Qi <yao.qi@linaro.org>
8571 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8572 or linux_get_pc_32bit.
8573 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8575 2016-02-12 Yao Qi <yao.qi@linaro.org>
8577 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8578 arm_linux_get_next_pcs_fixup.
8580 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8582 * tracepoint.c (x_tracepoint_action_download): Change
8583 write_inferior_data_ptr to write_inferior_data_pointer.
8584 (cmd_qtstart): Likewise.
8585 (write_inferior_data_ptr): Remove.
8586 (download_agent_expr): Change write_inferior_data_ptr to
8587 write_inferior_data_pointer.
8588 (download_tracepoint_1): Likewise.
8589 (download_tracepoint): Likewise.
8590 (download_trace_state_variables): Likewise.
8592 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8593 Marcin Kościelnicki <koriakin@0x04.net>
8595 * tracepoint.c (struct tracepoint_action_ops): Remove.
8596 (struct tracepoint_action): Remove ops.
8597 (m_tracepoint_action_download, r_tracepoint_action_download)
8598 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8599 size and offset accordingly.
8600 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8601 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8602 (tracepoint_action_send, tracepoint_action_download): New functions.
8603 Helpers for trace action handlers.
8604 (add_tracepoint_action): Remove setup actions ops.
8605 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8607 2016-02-10 Yao Qi <yao.qi@linaro.org>
8609 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8611 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8613 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8615 * configure: Regenerate.
8617 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8619 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8620 void * to gdb_byte *.
8621 * linux-low.c (siginfo_fixup): Likewise.
8622 (linux_xfer_siginfo): Likewise.
8623 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8625 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8627 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8629 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8631 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8633 * linux-x86-low.c [__x86_64__]: Include
8634 "nat/amd64-linux-siginfo.h".
8635 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8636 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8637 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8638 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8639 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8640 (cpt_si_fd, si_timerid, si_overrun): Move from
8641 nat/amd64-linux-siginfo.c.
8642 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8644 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8646 * server.c (skip_to_semicolon): Remove.
8647 (process_point_options): Use strchrnul instead of
8650 2016-01-26 Yao Qi <yao.qi@linaro.org>
8652 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8653 * linux-low.c (install_software_single_step_breakpoints): Don't
8654 call regcache_read_pc.
8655 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8658 2016-01-26 Yao Qi <yao.qi@linaro.org>
8660 * linux-low.c (install_software_single_step_breakpoints): Call
8661 regcache_read_pc instead of get_pc.
8663 2016-01-26 Yao Qi <yao.qi@linaro.org>
8665 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8666 (unblock_async_io): Rename to ...
8667 (block_unblock_async_io): ... it. New function.
8668 (enable_async_io): Don't install SIGIO handler. Unblock it
8670 (disable_async_io): Don't ignore SIGIO. Block it instead.
8671 (initialize_async_io): Install SIGIO handler. Don't call
8674 2016-01-26 Yao Qi <yao.qi@linaro.org>
8676 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8677 first character is '\003', call *the_target->request_interrupt.
8679 2016-01-25 Yao Qi <yao.qi@linaro.org>
8681 * remote-utils.c (new_thread_notify): Remove.
8682 (dead_thread_notify): Likewise.
8683 * remote-utils.h (new_thread_notify): Remove declaration.
8684 (dead_thread_notify): Likewise.
8686 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8688 * gdb.trace/pending.exp: Fix expected message on continue.
8690 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8692 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8693 it works properly on big-endian machines where sizeof (CORE_ADDR)
8696 2016-01-21 Pedro Alves <palves@redhat.com>
8698 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8699 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8700 * configure: Regenerate.
8702 2016-01-21 Yao Qi <yao.qi@linaro.org>
8704 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8705 is_thumb and set it according to CPSR saved on the stack.
8706 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8707 arm_sigreturn_next_pc.
8709 2016-01-18 Yao Qi <yao.qi@linaro.org>
8711 * linux-low.c (linux_set_pc_64bit): New function.
8712 (linux_get_pc_64bit): New function.
8713 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8715 * linux-sparc-low.c (debug_threads): Remove declaration.
8716 (sparc_get_pc): Remove.
8717 (the_low_target): Use linux_get_pc_64bit instead of
8719 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8720 (the_low_target): Use linux_get_pc_64bit and
8723 2016-01-18 Yao Qi <yao.qi@linaro.org>
8725 * linux-arm-low.c (debug_threads): Remove declaration.
8726 (arm_get_pc, arm_set_pc): Remove.
8727 (the_low_target): Use linux_get_pc_32bit and
8729 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8730 (the_low_target): Use linux_get_pc_32bit and
8732 * linux-cris-low.c (debug_threads): Remove declaration.
8733 (cris_get_pc, cris_set_pc,): Remove.
8734 (the_low_target): Use linux_get_pc_32bit and
8736 * linux-crisv32-low.c (debug_threads): Remove declaration.
8737 (cris_get_pc, cris_set_pc): Remove.
8738 (the_low_target): Use linux_get_pc_32bit and
8740 * linux-low.c: Include inttypes.h.
8741 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8742 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8743 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8744 (the_low_target): Use linux_get_pc_32bit and
8746 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8747 (the_low_target): Use linux_get_pc_32bit and
8749 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8750 (the_low_target): Use linux_get_pc_32bit and
8752 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8753 (the_low_target): Use linux_get_pc_32bit and
8755 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8756 (the_low_target): Use linux_get_pc_32bit and
8759 2016-01-18 Gary Benson <gbenson@redhat.com>
8761 * configure.ac (AC_FUNC_FORK): New check.
8762 * config.in: Regenerate.
8763 * configure: Likewise.
8765 2016-01-14 Yao Qi <yao.qi@linaro.org>
8767 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8768 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8769 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8770 arm_get_next_pcs_ctor.
8772 2016-01-12 Josh Stone <jistone@redhat.com>
8773 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8775 * inferiors.h: Include "gdb_vecs.h".
8776 (struct process_info): Add syscalls_to_catch.
8777 * inferiors.c (remove_process): Free syscalls_to_catch.
8778 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8779 syscall_return stops.
8780 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8781 * server.c (handle_general_set): Handle QCatchSyscalls.
8782 (handle_query): Report support for QCatchSyscalls.
8783 * target.h (struct target_ops): Add supports_catch_syscall.
8784 (target_supports_catch_syscall): New macro.
8785 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8786 (struct lwp_info): Add syscall_state.
8787 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8788 Maintain syscall_state and syscalls_to_catch across exec.
8789 (get_syscall_trapinfo): New function, proxy to the_low_target.
8790 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8791 (linux_low_filter_event): Toggle syscall_state entry/return for
8792 syscall traps, and set it ignored for all others.
8793 (gdb_catching_syscalls_p): New function.
8794 (gdb_catch_this_syscall_p): New function.
8795 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8796 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8797 (linux_supports_catch_syscall): New function.
8798 (linux_target_ops): Install it.
8799 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8800 (the_low_target): Install it.
8802 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8804 * acinclude.m4: Include new ../warning.m4 file.
8805 * configure: Regenerated.
8806 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8808 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8810 * ax.c (is_goto_target): Mark static.
8811 * linux-low.c (register_addr): Likewise.
8812 (linux_fetch_registers, linux_store_registers): Likewise.
8813 * mem-break.c (any_persistent_commands): Fix old prototype.
8814 (add_commands_to_breakpoint): Mark static.
8815 * regcache.c (find_register_by_name): Delete unused func.
8816 * remote-utils.c (hex_or_minus_one): Mark static.
8817 * server.c (monitor_show_help): Mark static.
8818 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8819 handle_v_requests): Likewise.
8821 2016-01-12 Pedro Alves <palves@redhat.com>
8823 Remove use of the registered trademark symbol throughout.
8825 2016-01-08 Yao Qi <yao.qi@linaro.org>
8827 * remote-utils.c (getpkt): If c is '\003', call target hook
8830 2016-01-06 Yao Qi <yao.qi@linaro.org>
8832 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8833 linux-aarch32-low.c.
8834 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8835 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8836 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8837 (thumb2_breakpoint): Declare.
8838 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8839 linux-aarch32-low.h.
8840 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8841 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8842 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8844 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8846 * gdbreplay.c (gdbreplay_version): Change copyright year in
8848 * server.c (gdbserver_version): Likewise.
8850 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8852 * server.c (crc32_table): Delete.
8853 (crc32): Use libiberty's xcrc32 function.
8855 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8857 * lynx-low.c (lynx_delete_thread_callback): New function.
8858 (lynx_mourn): Properly delete our process and all of its
8859 threads. Remove call to clear_inferiors.
8861 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8863 * target.c (thread_search_callback): Add check that
8864 the thread_stopped target callback is not NULL before
8867 2015-12-21 Yao Qi <yao.qi@linaro.org>
8869 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8872 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8874 * server.c (handle_query): Call target_supports_software_single_step.
8876 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8878 * linux-low.c (single_step): New function.
8879 (linux_resume_one_lwp_throw): Call single_step.
8880 (start_step_over): Likewise.
8882 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8884 * Makefile.in (SFILES): Append arch/arm-linux.c,
8885 arch/arm-get-next-pcs.c.
8886 (arm-linux.o): New rule.
8887 (arm-get-next-pcs.o): New rule.
8888 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8890 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8891 to linux-aarch32-low.c.
8892 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8893 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8894 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8895 (thumb2_breakpoint_len): Likewise.
8896 (arm_is_thumb_mode): Make non-static.
8897 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8898 from linux-aarch32-low.c.
8899 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8900 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8901 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8902 (thumb2_breakpoint_len): Likewise.
8903 (arm_is_thumb_mode): New declaration.
8904 * linux-arm-low.c: Include arch/arm-linux.h
8905 aarch/arm-get-next-pcs.h, sys/syscall.h.
8906 (get_next_pcs_ops): New struct.
8907 (get_next_pcs_addr_bits_remove): New function.
8908 (get_next_pcs_is_thumb): New function.
8909 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8910 (arm_sigreturn_next_pc): Likewise.
8911 (get_next_pcs_syscall_next_pc): Likewise.
8912 (arm_gdbserver_get_next_pcs): Likewise.
8913 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8915 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8916 * server.h: Include gdb_vecs.h.
8918 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8920 * Makefile.in (SFILES): Append common/common-regcache.c.
8921 (OBS): Append common-regcache.o.
8922 (common-regcache.o): New rule.
8923 * regcache.c (init_register_cache): Initialize cache to
8925 (regcache_raw_read_unsigned): New function.
8926 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8927 register_status enum.
8929 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8931 * linux-aarch64-low.c (the_low_targets): Rename
8932 breakpoint_reinsert_addr to get_next_pcs.
8933 * linux-arm-low.c (the_low_targets): Likewise.
8934 * linux-bfin-low.c (the_low_targets): Likewise.
8935 * linux-cris-low.c (the_low_targets): Likewise.
8936 * linux-crisv32-low.c (the_low_targets): Likewise.
8937 * linux-low.c (can_software_single_step): Likewise.
8938 (install_software_single_step_breakpoints): New function.
8939 (start_step_over): Use install_software_single_step_breakpoints.
8940 * linux-low.h: New CORE_ADDR vector.
8941 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8943 * linux-mips-low.c (the_low_targets): Likewise.
8944 * linux-nios2-low.c (the_low_targets): Likewise.
8945 * linux-sparc-low.c (the_low_targets): Likewise.
8947 2015-12-17 Pedro Alves <palves@redhat.com>
8949 * linux-low.c (linux_kill_one_lwp): Remove references to
8951 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8953 (linux_init_signals): Delete.
8954 (initialize_low): Adjust.
8955 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8957 2015-12-16 Pedro Alves <palves@redhat.com>
8959 * configure.ac (compiler warning flags): When testing a
8960 -Wno-foo option, check whether -Wfoo works instead.
8961 * configure: Regenerate.
8963 2015-12-11 Don Breazeal <donb@codesourcery.com>
8965 * server.c (process_serial_event): Don't exit from gdbserver
8966 in remote mode if there are still active inferiors.
8968 2015-12-11 Yao Qi <yao.qi@linaro.org>
8970 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8971 arm_breakpoint_at if the process is 32-bit.
8973 2015-12-11 Yao Qi <yao.qi@linaro.org>
8975 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8978 2015-12-07 Yao Qi <yao.qi@linaro.org>
8980 * configure.srv: Append arm.o to srv_tgtobj for
8981 aarch64*-*-linux* target.
8982 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8983 from linux-arm-low.c.
8984 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8985 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8986 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8987 (thumb2_breakpoint_len): Likewise.
8988 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8989 (arm_breakpoint_kinds): Likewise.
8990 (arm_breakpoint_kind_from_pc): Likewise.
8991 (arm_sw_breakpoint_from_kind): Likewise.
8992 (arm_breakpoint_kind_from_current_state): Likewise.
8993 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8994 (arm_sw_breakpoint_from_kind): Declare.
8995 (arm_breakpoint_kind_from_current_state): Declare.
8996 (arm_breakpoint_at): Declare.
8997 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8998 arm_sw_breakpoint_from_kind if process is 32-bit.
8999 (aarch64_breakpoint_kind_from_pc): New function.
9000 (aarch64_breakpoint_kind_from_current_state): New function.
9001 (the_low_target): Initialize fields breakpoint_kind_from_pc
9002 and breakpoint_kind_from_current_state.
9003 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9004 linux-aarch32-low.c.
9005 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9006 (arm_breakpoint, arm_breakpoint_len): Likewise.
9007 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9008 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9009 (arm_is_thumb_mode): Likewise.
9010 (arm_breakpoint_at): Likewise.
9011 (arm_breakpoint_kind_from_pc): Likewise.
9012 (arm_sw_breakpoint_from_kind): Likewise.
9013 (arm_breakpoint_kind_from_current_state): Likewise.
9016 2015-08-04 Yao Qi <yao.qi@linaro.org>
9018 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9019 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9020 * server.c (extended_protocol): Remove "static".
9021 * server.h (extended_protocol): Declare it.
9023 2015-12-04 Josh Stone <jistone@redhat.com>
9025 * target.h (struct target_ops) <arch_setup>: Rename to ...
9026 (struct target_ops) <post_create_inferior>: ... this.
9027 (target_arch_setup): Rename to ...
9028 (target_post_create_inferior): ... this, calling post_create_inferior.
9029 * server.c (start_inferior): Update target_arch_setup calls to
9030 target_post_create_inferior.
9031 * linux-low.c (linux_low_ptrace_options): Forward declare.
9032 (linux_arch_setup): Update its comment for general use.
9033 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9034 (struct linux_target_ops): Use linux_post_create_inferior.
9035 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9036 to post_create_inferior.
9037 * nto-low.c (struct nto_target_ops): Likewise.
9038 * spu-low.c (struct spu_target_ops): Likewise.
9039 * win32-low.c (struct win32_target_ops): Likewise.
9041 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9043 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9045 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9047 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9048 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9049 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9050 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9051 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9052 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9053 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9054 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9055 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9056 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9057 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9058 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9060 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9062 * linux-low.c (linux_look_up_symbols): Don't call
9063 linux_supports_traceclone.
9064 * linux-low.h (thread_db_init): Remove use_events argument.
9065 * thread-db.c (thread_db_use_event): Remove global variable.
9066 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9067 (struct thread_db) <td_create_bp>: Remove field.
9068 (thread_db_create_event): Remove function.
9069 (thread_db_enable_reporting): Likewise.
9070 (find_one_thread): Don't check for thread_db_use_events.
9071 (attach_thread): Likewise.
9072 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9073 (try_thread_db_load_1): Don't check for thread_db_use_events.
9074 (thread_db_init): Remove use_events argument and thread events
9076 (remove_thread_event_breakpoints): Remove function.
9077 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9079 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9081 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9083 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9084 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9085 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9086 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9087 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9089 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9091 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9092 * linux-low.c (can_hardware_single_step): Use
9093 supports_hardware_single_step.
9094 (can_software_single_step): New function.
9095 (start_step_over): Call can_software_single_step.
9096 (linux_supports_hardware_single_step): New function.
9097 (struct target_ops) <supports_software_single_step>: Initialize.
9098 * linux-low.h (struct linux_target_ops)
9099 <supports_hardware_single_step>: Initialize.
9100 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9101 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9102 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9103 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9104 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9105 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9106 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9107 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9108 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9109 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9111 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9112 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9114 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9115 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9116 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9118 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9119 * target.h (struct target_ops): <supports_software_single_step>:
9121 (target_supports_software_single_step): New macro.
9123 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9125 * linux-low.c (linux_wait_1): Fix pc advance condition.
9126 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9127 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9129 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9131 * linux-arm-low.c (arm_is_thumb_mode): New function.
9132 (arm_breakpoint_at): Use arm_is_thumb_mode.
9133 (arm_breakpoint_kind_from_current_state): New function.
9134 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9136 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9137 (linux_breakpoint_kind_from_current_state): New function.
9138 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9139 * linux-low.h (struct linux_target_ops)
9140 <breakpoint_kind_from_current_state>: New field.
9141 * target.h (struct target_ops): Likewise.
9142 (target_breakpoint_kind_from_current_state): New macro.
9144 2015-11-30 Pedro Alves <palves@redhat.com>
9146 * linux-low.c (linux_resume): Wake up the event loop before
9149 2015-11-30 Pedro Alves <palves@redhat.com>
9151 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9153 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9155 * target.c (struct thread_search): New structure.
9156 (thread_search_callback): New function.
9157 (prev_general_thread): New global.
9158 (prepare_to_access_memory, done_accessing_memory): New functions.
9159 * target.h (prepare_to_access_memory, done_accessing_memory):
9160 Replace macros with function declarations.
9162 2015-11-30 Pedro Alves <palves@redhat.com>
9165 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9166 report TARGET_WAITKIND_NO_RESUMED.
9167 * remote-utils.c (prepare_resume_reply): Handle
9168 TARGET_WAITKIND_NO_RESUMED.
9169 * server.c (report_no_resumed): New global.
9170 (handle_query) <qSupported>: Handle "no-resumed+". Report
9171 "no-resumed+" support.
9172 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9173 return error if the client doesn't support no-resumed events.
9174 (push_stop_notification): New function.
9175 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9176 events if the client supports them.
9178 2015-11-30 Pedro Alves <palves@redhat.com>
9180 * linux-low.c (thread_still_has_status_pending_p): Don't check
9182 (lwp_resumed): New function.
9183 (status_pending_p_callback): Return early if the LWP is not
9184 supposed to be resumed.
9186 2015-11-30 Pedro Alves <palves@redhat.com>
9188 * linux-low.c (handle_extended_wait): Assert that the LWP's
9189 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9190 thread create events, leave the new child's status pending.
9191 (linux_low_filter_event): If GDB wants to hear about thread exit
9192 events, leave the LWP marked dead and don't delete it.
9193 (linux_wait_for_event_filtered): Don't check for thread exit.
9194 (filter_exit_event): New function.
9195 (linux_wait_1): Use it, when returning an exit event.
9196 (linux_resume_one_lwp_throw): Assert that the LWP's
9197 waitstatus is TARGET_WAITKIND_IGNORE.
9198 * remote-utils.c (prepare_resume_reply): Handle
9199 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9200 * server.c (report_thread_events): New global.
9201 (handle_general_set): Handle QThreadEvents.
9202 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9203 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9204 TARGET_WAITKIND_THREAD_EXITED.
9205 * server.h (report_thread_events): Declare.
9207 2015-11-30 Pedro Alves <palves@redhat.com>
9209 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9210 the thread's last_resume_kind was resume_stop.
9212 2015-11-30 Pedro Alves <palves@redhat.com>
9214 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9217 2015-11-30 Pedro Alves <palves@redhat.com>
9219 * server.c (handle_v_requests): Handle vCtrlC.
9221 2015-11-30 Pedro Alves <palves@redhat.com>
9223 * gdbthread.h (find_any_thread_of_pid): Declare.
9224 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9226 * server.c (handle_query): If current_thread is NULL, look for
9227 another thread of the selected process.
9229 2015-11-26 Daniel Colascione <dancol@dancol.org>
9230 Simon Marchi <simon.marchi@ericsson.com>
9232 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9233 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9235 * target.h (struct target_ops) <thread_name>: New field.
9236 (target_thread_name): New macro.
9238 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9240 * regcache.h (regcache_invalidate_pid): Add declaration.
9241 * regcache.c (regcache_invalidate_pid): New function, extracted
9242 from regcache_invalidate.
9243 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9244 Add trivial documentation comment.
9245 * lynx-low.c: Use regcache_invalidate_pid instead of
9246 regcache_invalidate.
9248 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9250 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9251 and Elf64_auxv_t if the target is Android.
9253 2015-11-22 Doug Evans <xdje42@gmail.com>
9255 * target.h: #include <sys/types.h>.
9257 2015-11-19 Pedro Alves <palves@redhat.com>
9259 * linux-low.c (linux_process_qsupported): Change prototype.
9261 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9263 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9264 and adjust to loop over all features.
9265 * server.c (handle_query) <qSupported>: Adjust to call
9266 target_process_qsupported once, passing it a vector of unprocessed
9268 * target.h (struct target_ops) <process_qsupported>: Change
9270 (target_process_qsupported): Adjust.
9272 2015-11-19 Pedro Alves <palves@redhat.com>
9274 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9276 * configure: Regenerate.
9278 2015-11-19 Pedro Alves <palves@redhat.com>
9280 * configure: Regenerate.
9282 2015-11-19 Yao Qi <yao.qi@linaro.org>
9284 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9287 2015-11-19 Yao Qi <yao.qi@linaro.org>
9289 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9290 (struct aarch64_operand): Move enum out.
9292 2015-11-19 Yao Qi <yao.qi@linaro.org>
9294 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9295 struct user_fpsimd_state *.
9296 (aarch64_store_fpregset): Likewise.
9298 2015-11-19 Yao Qi <yao.qi@linaro.org>
9300 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9301 struct user_pt_regs *.
9302 (aarch64_store_gregset): Likewise.
9304 2015-11-18 Pedro Alves <palves@redhat.com>
9306 * Makefile.in (all_object_files): Add $IPA_OBJS.
9308 2015-11-17 Pedro Alves <palves@redhat.com>
9310 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9311 GDB_SIGNAL_0 and gdb_signal_to_string.
9313 2015-11-17 Pedro Alves <palves@redhat.com>
9315 * win32-low.c (handle_output_debug_string): Remove parameter.
9316 (win32_kill): Remove our_status local and adjust call to
9317 handle_output_debug_string.
9318 (get_child_debug_event): Adjust call to
9319 handle_output_debug_string.
9321 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9323 * linux-mips-low.c (mips_fill_gregset): Add cast.
9324 (mips_store_gregset): Likewise.
9325 (mips_fill_fpregset): Likewise.
9326 (mips_store_fpregset): Likewise.
9328 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9330 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9333 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9335 * linux-mips-low.c (mips_linux_new_thread): Change type of
9336 watch_type to enum target_hw_bp_type.
9338 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9340 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9341 Change return type to arm_hwbp_type.
9343 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9345 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9346 (arm_store_gregset): Likewise.
9347 * linux-arm-low.c (arm_get_hwcap): Likewise.
9348 (arm_read_description): Likewise.
9350 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9352 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9354 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9356 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9357 (ppc_fill_vsxregset): Likewise.
9358 (ppc_store_vsxregset): Likewise.
9359 (ppc_fill_vrregset): Likewise.
9360 (ppc_store_vrregset): Likewise.
9361 (ppc_fill_evrregset): Likewise.
9362 (ppc_store_evrregset): Likewise.
9364 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9366 * linux-ppc-low.c (ppc_usrregs_info): Remove
9367 forward-declaration.
9368 (ppc_arch_setup): Move lower in file.
9370 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9372 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9373 (ps_pdwrite): Likewise.
9375 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9377 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9378 to after assert checks.
9380 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9382 * proc-service.c (ps_pdread): Add/adjust casts.
9383 (ps_pdwrite): Add/adjust casts.
9385 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9387 * server.c (handle_search_memory_1): Cast return value of
9390 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9392 * server.c (write_qxfer_response): Change type of data to
9395 2015-10-29 Pedro Alves <palves@redhat.com>
9397 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9399 2015-10-29 Pedro Alves <palves@redhat.com>
9401 * tracepoint.c (clear_installed_tracepoints): Add casts.
9403 2015-10-29 Pedro Alves <palves@redhat.com>
9405 * server.c (handle_v_cont, process_serial_event): Add enum
9406 gdb_signal casts to signal parsing code.
9408 2015-10-29 Pedro Alves <palves@redhat.com>
9410 * linux-low.h (NULL_REGSET): Define.
9411 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9412 * linux-arm-low.c (arm_regsets): Likewise.
9413 * linux-crisv32-low.c (cris_regsets): Likewise.
9414 * linux-m68k-low.c (m68k_regsets): Likewise.
9415 * linux-mips-low.c (mips_regsets): Likewise.
9416 * linux-nios2-low.c (nios2_regsets): Likewise.
9417 * linux-ppc-low.c (ppc_regsets): Likewise.
9418 * linux-s390-low.c (s390_regsets): Likewise.
9419 * linux-sh-low.c (sh_regsets): Likewise.
9420 * linux-sparc-low.c (sparc_regsets): Likewise.
9421 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9422 * linux-tile-low.c (tile_regsets): Likewise.
9423 * linux-x86-low.c (x86_regsets): Likewise.
9424 * linux-xtensa-low.c (xtensa_regsets): Likewise.
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-26 Doug Evans <dje@google.com>
9446 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9448 2015-10-26 Doug Evans <dje@google.com>
9450 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9452 2015-10-26 Doug Evans <dje@google.com>
9454 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9456 (attach_thread, find_new_threads_callback): Ditto.
9458 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9460 * mem-break.h (set_breakpoint_data): Remove.
9462 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9464 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9465 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9466 (initialize_low): Remove set_breakpoint_data call.
9467 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9468 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9469 (initialize_low): Remove set_breakpoint_data call.
9470 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9471 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9472 (initialize_low): Remove set_breakpoint_data call.
9474 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9476 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9477 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9478 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9479 * target.h (target_breakpoint_kind_from_pc): New macro.
9481 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9483 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9484 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9485 the default breakpoint kind.
9487 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9489 * linux-arm-low.c (arm_supports_z_point_type): Add software
9492 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9494 * linux-arm-low.c: Refactor breakpoint definitions.
9495 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9496 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9498 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9500 * Makefile.in: Add arm.c/o.
9501 * configure.srv: Likewise.
9502 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9503 (arm_breakpoint_kind_from_pc): New function.
9504 (arm_sw_breakpoint_from_kind): Return proper kind.
9505 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9507 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9509 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9511 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9512 (struct raw_breakpoint) <size>: Remove.
9513 (struct raw_breakpoint) <kind>: Add.
9514 (bp_size): New function.
9515 (bp_opcode): Likewise.
9516 (find_raw_breakpoint_at): Adjust for kind.
9517 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9518 (remove_memory_breakpoint): Adjust for kind call bp_size.
9519 (set_raw_breakpoint_at): Adjust for kind.
9520 (set_breakpoint): Likewise.
9521 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9522 (delete_raw_breakpoint): Adjust for kind.
9523 (delete_breakpoint): Likewise.
9524 (find_gdb_breakpoint): Likewise.
9525 (set_gdb_breakpoint_1): Likewise.
9526 (set_gdb_breakpoint): Likewise.
9527 (delete_gdb_breakpoint_1): Likewise.
9528 (delete_gdb_breakpoint): Likewise.
9529 (uninsert_raw_breakpoint): Likewise.
9530 (reinsert_raw_breakpoint): Likewise.
9531 (set_breakpoint_data): Remove.
9532 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9533 (check_mem_read): Adjust for kind call bp_size.
9534 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9535 (clone_one_breakpoint): Adjust for kind.
9536 * mem-break.h (set_gdb_breakpoint): Likewise.
9537 (delete_gdb_breakpoint): Likewise.
9538 * server.c (process_serial_event): Likewise.
9540 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9542 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9543 (struct linux_target_ops) <breakpoint>: Remove.
9544 (struct linux_target_ops) <breakpoint_len>: Remove.
9545 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9546 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9547 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9548 (arm_sw_breakpoint_from_kind): New function.
9549 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9550 (struct linux_target_ops) <breakpoint>: Remove.
9551 (struct linux_target_ops) <breakpoint_len>: Remove.
9552 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9553 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9554 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9555 (struct linux_target_ops) <breakpoint>: Remove.
9556 (struct linux_target_ops) <breakpoint_len>: Remove.
9557 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9558 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9559 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9560 (struct linux_target_ops) <breakpoint>: Remove.
9561 (struct linux_target_ops) <breakpoint_len>: Remove.
9562 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9563 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9564 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9565 and sw_breakpoint_from_kind to increment the pc.
9566 (linux_breakpoint_kind_from_pc): New function.
9567 (linux_sw_breakpoint_from_kind): New function.
9568 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9569 (initialize_low): Call breakpoint_kind_from_pc and
9570 sw_breakpoint_from_kind to replace breakpoint_data/len.
9571 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9573 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9574 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9575 (struct linux_target_ops) <breakpoint>: Remove.
9576 (struct linux_target_ops) <breakpoint_len>: Remove.
9577 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9578 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9579 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9580 (struct linux_target_ops) <breakpoint>: Remove.
9581 (struct linux_target_ops) <breakpoint_len>: Remove.
9582 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9583 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9584 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9585 (struct linux_target_ops) <breakpoint>: Remove.
9586 (struct linux_target_ops) <breakpoint_len>: Remove.
9587 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9588 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9589 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9590 (struct linux_target_ops) <breakpoint>: Remove.
9591 (struct linux_target_ops) <breakpoint_len>: Remove.
9592 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9593 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9594 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9595 (struct linux_target_ops) <breakpoint>: Remove.
9596 (struct linux_target_ops) <breakpoint_len>: Remove.
9597 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9598 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9599 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9600 (struct linux_target_ops) <breakpoint>: Remove.
9601 (struct linux_target_ops) <breakpoint_len>: Remove.
9602 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9603 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9604 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9605 (struct linux_target_ops) <breakpoint>: Remove.
9606 (struct linux_target_ops) <breakpoint_len>: Remove.
9607 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9608 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9609 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9610 (struct linux_target_ops) <breakpoint>: Remove.
9611 (struct linux_target_ops) <breakpoint_len>: Remove.
9612 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9613 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9614 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9615 (struct linux_target_ops) <breakpoint>: Remove.
9616 (struct linux_target_ops) <breakpoint_len>: Remove.
9617 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9618 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9619 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9620 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9621 (struct linux_target_ops) <breakpoint>: Remove.
9622 (struct linux_target_ops) <breakpoint_len>: Remove.
9623 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9624 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9625 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9626 (struct linux_target_ops) <breakpoint>: Remove.
9627 (struct linux_target_ops) <breakpoint_len>: Remove.
9628 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9629 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9631 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9633 * linux-cris-low.c (cris_get_pc): Remove void arg.
9635 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9637 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9640 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9642 * inferiors.c (thread_pid_matches_callback): New function.
9643 (find_thread_process): New function.
9644 (remove_thread): Reset current_thread.
9645 (remove_process): Assert threads have been removed first.
9647 2015-10-15 Yao Qi <yao.qi@linaro.org>
9649 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9651 (aarch64_remove_point): Likewise.
9652 * regcache.c (regcache_register_size): New function.
9654 2015-10-12 Yao Qi <yao.qi@linaro.org>
9656 * linux-aarch64-low.c: Update all callers as emit_load_store
9657 is renamed to aarch64_emit_load_store.
9659 2015-10-12 Yao Qi <yao.qi@linaro.org>
9661 * linux-aarch64-low.c: Update all callers of function renaming
9662 from emit_insn to aarch64_emit_insn.
9664 2015-10-12 Yao Qi <yao.qi@linaro.org>
9666 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9667 arch/aarch64-insn.h.
9668 (struct aarch64_memory_operand): Likewise.
9670 (emit_insn): Move to arch/aarch64-insn.c.
9671 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9672 (emit_load_store): Move to arch/aarch64-insn.c.
9673 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9674 (can_encode_int32): Remove.
9676 2015-10-12 Yao Qi <yao.qi@linaro.org>
9678 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9679 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9680 (aarch64_relocate_instruction): Likewise.
9681 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9682 (struct aarch64_insn_visitor): Likewise.
9684 2015-10-12 Yao Qi <yao.qi@linaro.org>
9686 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9687 (struct aarch64_insn_visitor): New.
9688 (struct aarch64_insn_relocation_data): New.
9689 (aarch64_ftrace_insn_reloc_b): New function.
9690 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9691 (aarch64_ftrace_insn_reloc_cb): Likewise.
9692 (aarch64_ftrace_insn_reloc_tb): Likewise.
9693 (aarch64_ftrace_insn_reloc_adr): Likewise.
9694 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9695 (aarch64_ftrace_insn_reloc_others): Likewise.
9697 (aarch64_relocate_instruction): Use visitor.
9699 2015-10-12 Yao Qi <yao.qi@linaro.org>
9701 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9702 int. Add argument buf.
9703 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9704 aarch64_relocate_instruction.
9706 2015-10-12 Yao Qi <yao.qi@linaro.org>
9708 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9709 argument insn. Remove local variable insn. Don't call
9711 (aarch64_install_fast_tracepoint_jump_pad): Call
9714 2015-09-30 Yao Qi <yao.qi@linaro.org>
9716 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9717 (emit_load_store_pair): Likewise.
9719 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9721 * dll.c (match_dll): Add cast(s).
9722 (unloaded_dll): Likewise.
9723 * linux-low.c (second_thread_of_pid_p): Likewise.
9724 (delete_lwp_callback): Likewise.
9725 (count_events_callback): Likewise.
9726 (select_event_lwp_callback): Likewise.
9727 (linux_set_resume_request): Likewise.
9728 * server.c (accumulate_file_name_length): Likewise.
9729 (emit_dll_description): Likewise.
9730 (handle_qxfer_threads_worker): Likewise.
9731 (visit_actioned_threads): Likewise.
9732 * thread-db.c (any_thread_of): Likewise.
9733 * tracepoint.c (same_process_p): Likewise.
9734 (match_blocktype): Likewise.
9735 (build_traceframe_info_xml): Likewise.
9737 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9739 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9741 (gdb_unparse_agent_expr): Likewise.
9742 * hostio.c (require_data): Likewise.
9743 (handle_pread): Likewise.
9744 * linux-low.c (disable_regset): Likewise.
9745 (fetch_register): Likewise.
9746 (store_register): Likewise.
9747 (get_dynamic): Likewise.
9748 (linux_qxfer_libraries_svr4): Likewise.
9749 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9750 (set_fast_tracepoint_jump): Likewise.
9751 (uninsert_fast_tracepoint_jumps_at): Likewise.
9752 (reinsert_fast_tracepoint_jumps_at): Likewise.
9753 (validate_inserted_breakpoint): Likewise.
9754 (clone_agent_expr): Likewise.
9755 * regcache.c (init_register_cache): Likewise.
9756 * remote-utils.c (putpkt_binary_1): Likewise.
9757 (decode_M_packet): Likewise.
9758 (decode_X_packet): Likewise.
9759 (look_up_one_symbol): Likewise.
9760 (relocate_instruction): Likewise.
9761 (monitor_output): Likewise.
9762 * server.c (handle_search_memory): Likewise.
9763 (handle_qxfer_exec_file): Likewise.
9764 (handle_qxfer_libraries): Likewise.
9765 (handle_qxfer): Likewise.
9766 (handle_query): Likewise.
9767 (handle_v_cont): Likewise.
9768 (handle_v_run): Likewise.
9769 (captured_main): Likewise.
9770 * target.c (write_inferior_memory): Likewise.
9771 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9772 * tracepoint.c (init_trace_buffer): Likewise.
9773 (add_tracepoint_action): Likewise.
9774 (add_traceframe): Likewise.
9775 (add_traceframe_block): Likewise.
9776 (cmd_qtdpsrc): Likewise.
9777 (cmd_qtdv): Likewise.
9778 (cmd_qtstatus): Likewise.
9779 (response_source): Likewise.
9780 (response_tsv): Likewise.
9781 (cmd_qtnotes): Likewise.
9782 (gdb_collect): Likewise.
9783 (initialize_tracepoint): Likewise.
9785 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9787 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9788 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9789 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9791 (enum aarch64_condition_codes): New enum.
9792 (w0): New static global.
9795 (struct aarch64_memory_operand) <type>: New
9796 MEMORY_OPERAND_POSTINDEX type.
9797 (postindex_memory_operand): New helper function.
9798 (emit_ret): New function.
9799 (emit_load_store_pair): New function, factored out of emit_stp
9800 with support for MEMORY_OPERAND_POSTINDEX.
9801 (emit_stp): Rewrite using emit_load_store_pair.
9802 (emit_ldp): New function.
9803 (emit_load_store): Likewise.
9804 (emit_ldr): Mention post-index instruction in comment.
9805 (emit_ldrh): New function.
9806 (emit_ldrb): New function.
9807 (emit_ldrsw): Mention post-index instruction in comment.
9808 (emit_str): Likewise.
9809 (emit_subs): New function.
9810 (emit_cmp): Likewise.
9811 (emit_and): Likewise.
9812 (emit_orr): Likewise.
9813 (emit_orn): Likewise.
9814 (emit_eor): Likewise.
9815 (emit_mvn): Likewise.
9816 (emit_lslv): Likewise.
9817 (emit_lsrv): Likewise.
9818 (emit_asrv): Likewise.
9819 (emit_mul): Likewise.
9820 (emit_sbfm): Likewise.
9821 (emit_sbfx): Likewise.
9822 (emit_ubfm): Likewise.
9823 (emit_ubfx): Likewise.
9824 (emit_csinc): Likewise.
9825 (emit_cset): Likewise.
9826 (emit_nop): Likewise.
9827 (emit_ops_insns): New helper function.
9828 (emit_pop): Likewise.
9829 (emit_push): Likewise.
9830 (aarch64_emit_prologue): New function.
9831 (aarch64_emit_epilogue): Likewise.
9832 (aarch64_emit_add): Likewise.
9833 (aarch64_emit_sub): Likewise.
9834 (aarch64_emit_mul): Likewise.
9835 (aarch64_emit_lsh): Likewise.
9836 (aarch64_emit_rsh_signed): Likewise.
9837 (aarch64_emit_rsh_unsigned): Likewise.
9838 (aarch64_emit_ext): Likewise.
9839 (aarch64_emit_log_not): Likewise.
9840 (aarch64_emit_bit_and): Likewise.
9841 (aarch64_emit_bit_or): Likewise.
9842 (aarch64_emit_bit_xor): Likewise.
9843 (aarch64_emit_bit_not): Likewise.
9844 (aarch64_emit_equal): Likewise.
9845 (aarch64_emit_less_signed): Likewise.
9846 (aarch64_emit_less_unsigned): Likewise.
9847 (aarch64_emit_ref): Likewise.
9848 (aarch64_emit_if_goto): Likewise.
9849 (aarch64_emit_goto): Likewise.
9850 (aarch64_write_goto_address): Likewise.
9851 (aarch64_emit_const): Likewise.
9852 (aarch64_emit_call): Likewise.
9853 (aarch64_emit_reg): Likewise.
9854 (aarch64_emit_pop): Likewise.
9855 (aarch64_emit_stack_flush): Likewise.
9856 (aarch64_emit_zero_ext): Likewise.
9857 (aarch64_emit_swap): Likewise.
9858 (aarch64_emit_stack_adjust): Likewise.
9859 (aarch64_emit_int_call_1): Likewise.
9860 (aarch64_emit_void_call_2): Likewise.
9861 (aarch64_emit_eq_goto): Likewise.
9862 (aarch64_emit_ne_goto): Likewise.
9863 (aarch64_emit_lt_goto): Likewise.
9864 (aarch64_emit_le_goto): Likewise.
9865 (aarch64_emit_gt_goto): Likewise.
9866 (aarch64_emit_ge_got): Likewise.
9867 (aarch64_emit_ops_impl): New static global variable.
9868 (aarch64_emit_ops): New target function, return
9869 &aarch64_emit_ops_impl.
9870 (struct linux_target_ops): Install it.
9872 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9874 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9875 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9877 * linux-aarch64-ipa.c: New file.
9878 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9880 (aarch64_get_thread_area): New target method.
9881 (extract_signed_bitfield): New helper function.
9882 (aarch64_decode_ldr_literal): New function.
9883 (enum aarch64_opcodes): New enum.
9884 (struct aarch64_register): New struct.
9885 (struct aarch64_operand): New struct.
9886 (x0): New static global.
9895 (aarch64_register): New helper function.
9896 (register_operand): Likewise.
9897 (immediate_operand): Likewise.
9898 (struct aarch64_memory_operand): New struct.
9899 (offset_memory_operand): New helper function.
9900 (preindex_memory_operand): Likewise.
9901 (enum aarch64_system_control_registers): New enum.
9902 (ENCODE): New macro.
9903 (emit_insn): New helper function.
9904 (emit_b): New function.
9905 (emit_bcond): Likewise.
9906 (emit_cb): Likewise.
9907 (emit_tb): Likewise.
9908 (emit_blr): Likewise.
9909 (emit_stp): Likewise.
9910 (emit_ldp_q_offset): Likewise.
9911 (emit_stp_q_offset): Likewise.
9912 (emit_load_store): Likewise.
9913 (emit_ldr): Likewise.
9914 (emit_ldrsw): Likewise.
9915 (emit_str): Likewise.
9916 (emit_ldaxr): Likewise.
9917 (emit_stxr): Likewise.
9918 (emit_stlr): Likewise.
9919 (emit_data_processing_reg): Likewise.
9920 (emit_data_processing): Likewise.
9921 (emit_add): Likewise.
9922 (emit_sub): Likewise.
9923 (emit_mov): Likewise.
9924 (emit_movk): Likewise.
9925 (emit_mov_addr): Likewise.
9926 (emit_mrs): Likewise.
9927 (emit_msr): Likewise.
9928 (emit_sevl): Likewise.
9929 (emit_wfe): Likewise.
9930 (append_insns): Likewise.
9931 (can_encode_int32_in): New helper function.
9932 (aarch64_relocate_instruction): New function.
9933 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9934 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9935 (struct linux_target_ops): Install aarch64_get_thread_area,
9936 aarch64_install_fast_tracepoint_jump_pad and
9937 aarch64_get_min_fast_tracepoint_insn_len.
9939 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9941 * Makefile.in (aarch64-insn.o): New rule.
9942 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9944 2015-09-21 Yao Qi <yao.qi@linaro.org>
9946 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9948 2015-09-21 Yao Qi <yao.qi@linaro.org>
9950 * tracepoint.c (max_jump_pad_size): Remove.
9952 2015-09-18 Yao Qi <yao.qi@linaro.org>
9954 * linux-aarch64-low.c: Don't include sys/uio.h.
9955 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9957 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
9959 * tracepoint.c (eval_result_type): Change prototype.
9960 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9962 2015-09-15 Pedro Alves <palves@redhat.com>
9964 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9965 Check whether to report exec events instead of checking whether
9966 multiprocess is enabled.
9968 2015-09-15 Pedro Alves <palves@redhat.com>
9971 * remote-utils.c (prepare_resume_reply): Merge
9972 TARGET_WAITKIND_VFORK_DONE switch case with the
9973 TARGET_WAITKIND_FORKED case.
9975 2015-09-15 Yao Qi <yao.qi@linaro.org>
9977 * server.c (handle_query): Check string comparison using
9978 "else if" instead of "if".
9980 2015-09-15 Yao Qi <yao.qi@linaro.org>
9982 * server.c (vCont_supported): New global variable.
9983 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9984 matches. Append ";vContSupported+" to own_buf.
9985 (handle_v_requests): Append ";s;S" to own_buf if target supports
9986 hardware single step or vCont_supported is false.
9987 (capture_main): Set vCont_supported to zero.
9989 2015-09-15 Yao Qi <yao.qi@linaro.org>
9991 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9993 (linux_supports_hardware_single_step): ... New function.
9994 (linux_target_ops): Update.
9995 * lynx-low.c (lynx_target_ops): Set field
9996 supports_hardware_single_step to target_can_do_hardware_single_step.
9997 * nto-low.c (nto_target_ops): Likewise.
9998 * spu-low.c (spu_target_ops): Likewise.
9999 * win32-low.c (win32_target_ops): Likewise.
10000 * target.c (target_can_do_hardware_single_step): New function.
10001 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10002 Remove. <supports_hardware_single_step>: New field.
10003 (target_supports_conditional_breakpoints): Remove.
10004 (target_supports_hardware_single_step): New macro.
10005 (target_can_do_hardware_single_step): Declare.
10006 * server.c (handle_query): Use target_supports_hardware_single_step
10007 instead of target_supports_conditional_breakpoints.
10009 2015-09-15 Yao Qi <yao.qi@linaro.org>
10011 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10013 (struct linux_target_ops the_low_target): Install
10014 aarch64_linux_siginfo_fixup.
10016 2015-09-11 Don Breazeal <donb@codesourcery.com>
10017 Luis Machado <lgustavo@codesourcery.com>
10019 * linux-low.c (linux_mourn): Static declaration.
10020 (linux_arch_setup): Move in front of
10021 handle_extended_wait.
10022 (linux_arch_setup_thread): New function.
10023 (handle_extended_wait): Handle exec events. Call
10024 linux_arch_setup_thread. Make event_lwp argument a
10025 pointer-to-a-pointer.
10026 (check_zombie_leaders): Do not check stopped threads.
10027 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10028 (linux_low_filter_event): Add lwp and thread for exec'ing
10029 non-leader thread if leader thread has been deleted.
10030 Refactor code into linux_arch_setup_thread and call it.
10031 Pass child lwp pointer by reference to handle_extended_wait.
10032 (linux_wait_for_event_filtered): Update comment.
10033 (linux_wait_1): Prevent clobbering exec event status.
10034 (linux_supports_exec_events): New function.
10035 (linux_target_ops) <supports_exec_events>: Initialize new member.
10036 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10038 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10039 * server.c (report_exec_events): New global variable.
10040 (handle_query): Handle qSupported query for exec-events feature.
10041 (captured_main): Initialize report_exec_events.
10042 * server.h (report_exec_events): Declare new global variable.
10043 * target.h (struct target_ops) <supports_exec_events>: New
10045 (target_supports_exec_events): New macro.
10046 * win32-low.c (win32_target_ops) <supports_exec_events>:
10047 Initialize new member.
10049 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10051 * linux-low.c (linux_low_enable_btrace): Remove.
10052 (linux_target_ops): Replace linux_low_enable_btrace with
10053 linux_enable_btrace.
10055 2015-09-03 Yao Qi <yao.qi@linaro.org>
10057 * linux-aarch64-low.c (aarch64_insert_point): Call
10058 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10061 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10063 * linux-low.c (check_stopped_by_breakpoint): Use
10064 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10066 2015-08-27 Pedro Alves <palves@redhat.com>
10068 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10070 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10072 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10073 the XNEW-family equivalent.
10074 (compile_bytecodes): Likewise.
10075 * dll.c (loaded_dll): Likewise.
10076 * event-loop.c (append_callback_event): Likewise.
10077 (create_file_handler): Likewise.
10078 (create_file_event): Likewise.
10079 * hostio.c (handle_open): Likewise.
10080 * inferiors.c (add_thread): Likewise.
10081 (add_process): Likewise.
10082 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10083 * linux-arm-low.c (arm_new_process): Likewise.
10084 (arm_new_thread): Likewise.
10085 * linux-low.c (add_to_pid_list): Likewise.
10086 (linux_add_process): Likewise.
10087 (handle_extended_wait): Likewise.
10088 (add_lwp): Likewise.
10089 (enqueue_one_deferred_signal): Likewise.
10090 (enqueue_pending_signal): Likewise.
10091 (linux_resume_one_lwp_throw): Likewise.
10092 (linux_resume_one_thread): Likewise.
10093 (linux_read_memory): Likewise.
10094 (linux_write_memory): Likewise.
10095 * linux-mips-low.c (mips_linux_new_process): Likewise.
10096 (mips_linux_new_thread): Likewise.
10097 (mips_add_watchpoint): Likewise.
10098 * linux-x86-low.c (initialize_low_arch): Likewise.
10099 * lynx-low.c (lynx_add_process): Likewise.
10100 * mem-break.c (set_raw_breakpoint_at): Likewise.
10101 (set_breakpoint): Likewise.
10102 (add_condition_to_breakpoint): Likewise.
10103 (add_commands_to_breakpoint): Likewise.
10104 (clone_agent_expr): Likewise.
10105 (clone_one_breakpoint): Likewise.
10106 * regcache.c (new_register_cache): Likewise.
10107 * remote-utils.c (look_up_one_symbol): Likewise.
10108 * server.c (queue_stop_reply): Likewise.
10109 (start_inferior): Likewise.
10110 (queue_stop_reply_callback): Likewise.
10111 (handle_target_event): Likewise.
10112 * spu-low.c (fetch_ppc_memory): Likewise.
10113 (store_ppc_memory): Likewise.
10114 * target.c (set_target_ops): Likewise.
10115 * thread-db.c (thread_db_load_search): Likewise.
10116 (try_thread_db_load_1): Likewise.
10117 * tracepoint.c (add_tracepoint): Likewise.
10118 (add_tracepoint_action): Likewise.
10119 (create_trace_state_variable): Likewise.
10120 (cmd_qtdpsrc): Likewise.
10121 (cmd_qtro): Likewise.
10122 (add_while_stepping_state): Likewise.
10123 * win32-low.c (child_add_thread): Likewise.
10124 (get_image_name): Likewise.
10126 2015-08-25 Yao Qi <yao.qi@linaro.org>
10128 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10130 2015-08-25 Yao Qi <yao.qi@linaro.org>
10132 * Makefile.in (aarch64-linux.o): New rule.
10133 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10135 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10136 (aarch64_init_debug_reg_state): Make it extern.
10137 (aarch64_linux_prepare_to_resume): Remove.
10139 2015-08-25 Yao Qi <yao.qi@linaro.org>
10141 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10142 lwp_arch_private_info and ptid_of_lwp.
10144 2015-08-25 Yao Qi <yao.qi@linaro.org>
10146 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10147 Find proc_info by find_process_pid. All callers updated.
10149 2015-08-25 Yao Qi <yao.qi@linaro.org>
10151 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10153 (debug_reg_change_callback): Remove.
10154 (aarch64_notify_debug_reg_change): Remove.
10156 2015-08-25 Yao Qi <yao.qi@linaro.org>
10158 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10159 Call current_lwp_ptid.
10161 2015-08-25 Yao Qi <yao.qi@linaro.org>
10163 * linux-aarch64-low.c (debug_reg_change_callback): Use
10166 2015-08-25 Yao Qi <yao.qi@linaro.org>
10168 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10170 2015-08-25 Yao Qi <yao.qi@linaro.org>
10172 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10174 2015-08-25 Yao Qi <yao.qi@linaro.org>
10176 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10179 2015-08-25 Yao Qi <yao.qi@linaro.org>
10181 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10183 (debug_reg_change_callback): Remove argument entry and add argument
10184 lwp. Remove local variable thread. Don't print thread id in the
10185 debugging output. Don't check whether pid of thread equals to pid.
10186 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10187 iterate_over_lwps instead find_inferior.
10189 2015-08-24 Pedro Alves <palves@redhat.com>
10191 * inferiors.c (get_first_process): New function.
10192 * inferiors.h (get_first_process): New declaration.
10193 * remote-utils.c (read_ptid): Default to the first process in the
10194 list, instead of to the current thread's process.
10196 2015-08-24 Pedro Alves <palves@redhat.com>
10198 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10199 * event-loop.c: Likewise.
10200 * remote-utils.c: Likewise.
10201 * tracepoint.c: Likewise.
10203 2015-08-24 Pedro Alves <palves@redhat.com>
10205 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10208 2015-08-21 Pedro Alves <palves@redhat.com>
10210 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10211 instead of literal 1.
10213 2015-08-21 Pedro Alves <palves@redhat.com>
10215 * tdesc.c (default_description): Explicitly zero-initialize.
10217 2015-08-21 Pedro Alves <palves@redhat.com>
10220 * inferiors.c (remove_thread): Discard any pending stop reply for
10222 * server.c (remove_all_on_match_pid): Rename to ...
10223 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10225 (discard_queued_stop_replies): Change parameter to a ptid. Now
10227 (handle_v_kill, kill_inferior_callback, captured_main)
10228 (process_serial_event): Adjust.
10229 * server.h (discard_queued_stop_replies): Declare.
10231 2015-08-21 Pedro Alves <palves@redhat.com>
10233 * linux-low.c (wait_for_sigstop): Always switch to no thread
10234 selected if the previously current thread dies.
10235 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10236 process instead of the current thread's.
10237 * remote-utils.c (input_interrupt): Don't check if there's no
10239 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10240 current thread to the general thread fails, error out.
10241 (handle_qxfer_auxv, handle_qxfer_libraries)
10242 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10243 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10244 (handle_query): Check if there's a thread selected instead of
10245 checking whether there's any thread in the thread list.
10246 (handle_qxfer_threads, handle_qxfer_btrace)
10247 (handle_qxfer_btrace_conf): Don't error out early if there's no
10248 thread in the thread list.
10249 (handle_v_cont, myresume): Don't set the current thread to the
10251 (process_serial_event) <Hg handling>: Also set thread_id if the
10252 previous general thread is still alive.
10253 (process_serial_event) <g/G handling>: If setting the current
10254 thread to the general thread fails, error out.
10255 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10256 thread's lwp instead of the current thread's.
10257 * target.c (set_desired_thread): If the desired thread was not
10258 found, leave the current thread pointing to NULL. Return an int
10259 (boolean) indicating success.
10260 * target.h (set_desired_thread): Change return type to int.
10262 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10264 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10265 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10267 (ps_get_thread_area): New function.
10269 2015-08-19 Gary Benson <gbenson@redhat.com>
10271 * hostio.c (handle_pread): Do not attempt to read more data
10272 than hostio_reply_with_data can fit in a packet.
10274 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10276 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10278 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10280 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10282 2015-08-06 Pedro Alves <palves@redhat.com>
10284 * tracepoint.c (expr_eval_result): Now an int.
10286 2015-08-06 Pedro Alves <palves@redhat.com>
10288 * gdbthread.h (struct regcache): Forward declare.
10289 (struct thread_info) <regcache_data>: Now a struct regcache
10291 * inferiors.c (inferior_regcache_data)
10292 (set_inferior_regcache_data): Now work with struct regcache
10294 * inferiors.h (struct regcache): Forward declare.
10295 (inferior_regcache_data, set_inferior_regcache_data): Now work
10296 with struct regcache pointers.
10297 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10298 (free_register_cache_thread): Remove struct regcache pointer
10301 2015-08-06 Pedro Alves <palves@redhat.com>
10303 * server.c (captured_main): On error, print the exception message
10304 to stderr, and if run_once is set, throw a quit.
10306 2015-08-06 Pedro Alves <palves@redhat.com>
10308 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10309 the current thread.
10311 2015-08-06 Pedro Alves <palves@redhat.com>
10313 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10314 reading beyond the passed in buffer length.
10316 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10318 * tracepoint.c (symbol_list) <required>: Remove.
10320 2015-08-06 Pedro Alves <palves@redhat.com>
10322 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10323 count if stopping and suspending threads.
10324 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10325 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10326 (linux_detach): Complete an ongoing step-over.
10327 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10329 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10330 (linux_wait_1): If passing a signal to the inferior after
10331 finishing a step-over, unsuspend and re-resume all lwps. If we
10332 see a single-step event but the thread should be continuing, don't
10333 pass the trap to gdb.
10334 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10335 internal_error instead of gdb_assert.
10336 (enqueue_pending_signal): New function.
10337 (check_ptrace_stopped_lwp_gone): Add debug output.
10338 (start_step_over): Use internal_error instead of gdb_assert.
10339 (complete_ongoing_step_over): New function.
10340 (linux_resume_one_thread): Don't resume a suspended thread.
10341 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10344 2015-08-06 Pedro Alves <palves@redhat.com>
10346 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10347 (linux_thread_alive): Use lwp_is_marked_dead.
10348 (extended_event_reported): Delete.
10349 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10350 instead of extended_event_reported.
10351 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10353 (lwp_is_marked_dead): New function.
10354 (lwp_running): Use lwp_is_marked_dead.
10355 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10358 2015-08-06 Pedro Alves <palves@redhat.com>
10360 * linux-low.c (linux_wait_1): Move fork event output out of the
10361 !report_to_gdb check. Pass event_child->waitstatus to
10362 target_waitstatus_to_string instead of ourstatus.
10364 2015-08-04 Yao Qi <yao.qi@linaro.org>
10366 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10367 if current_thread is 32 bit.
10369 2015-08-04 Yao Qi <yao.qi@linaro.org>
10371 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10372 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10373 * server.c (extended_protocol): Remove "static".
10374 * server.h (extended_protocol): Declare it.
10376 2015-08-04 Yao Qi <yao.qi@linaro.org>
10378 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10379 both aarch64 and aarch32.
10380 (aarch64_set_pc): Likewise.
10382 2015-08-04 Yao Qi <yao.qi@linaro.org>
10384 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10385 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10386 arm-with-neon.xml to srv_xmlfiles.
10387 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10388 (is_64bit_tdesc): New function.
10389 (aarch64_linux_read_description): New function.
10390 (aarch64_arch_setup): Call aarch64_linux_read_description.
10391 (regs_info): Rename to regs_info_aarch64.
10392 (aarch64_regs_info): Return right regs_info.
10393 (initialize_low_arch): Call initialize_low_arch_aarch32.
10395 2015-08-04 Yao Qi <yao.qi@linaro.org>
10397 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10398 * linux-aarch32-low.c: New file.
10399 * linux-aarch32-low.h: New file.
10400 * linux-arm-low.c (arm_fill_gregset): Move it to
10401 linux-aarch32-low.c.
10402 (arm_store_gregset): Likewise.
10403 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10404 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10405 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10406 (regs_info): Rename to regs_info_arm.
10407 (arm_regs_info): Return regs_info_aarch32 if
10408 have_ptrace_getregset is 1 and target description is
10409 arm_with_neon or arm_with_vfpv3.
10410 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10411 Call initialize_low_arch_aarch32 instead.
10413 2015-08-04 Yao Qi <yao.qi@linaro.org>
10415 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10416 * linux-low.c: ... here.
10417 * linux-low.h (have_ptrace_getregset): Declare it.
10419 2015-08-04 Pedro Alves <palves@redhat.com>
10421 * thread-db.c (struct thread_db): Use new typedefs.
10422 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10424 (disable_thread_event_reporting): Cast result of dlsym to
10425 destination function pointer type.
10426 (thread_db_mourn): Use td_ta_delete_ftype.
10428 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10430 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10432 (CDX_BREAKPOINT): Define for R2.
10433 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10434 (the_low_target): Add comments.
10436 2015-07-30 Yao Qi <yao.qi@linaro.org>
10438 * linux-arm-low.c (arm_hwcap): Remove it.
10439 (arm_read_description): New local variable arm_hwcap. Don't
10440 set arm_hwcap to zero.
10442 2015-07-30 Yao Qi <yao.qi@linaro.org>
10444 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10445 Use regcache->tdesc instead.
10446 (arm_store_wmmxregset): Likewise.
10447 (arm_fill_vfpregset): Likewise.
10448 (arm_store_vfpregset): Likewise.
10450 2015-07-30 Yao Qi <yao.qi@linaro.org>
10452 * linux-arm-low.c: Include arch/arm.h.
10453 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10454 (arm_store_gregset): Likewise.
10456 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10458 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10459 ptrace's 4th parameter.
10461 2015-07-27 Yao Qi <yao.qi@linaro.org>
10463 * configure.srv (case aarch64*-*-linux*): Don't set
10466 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10468 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10470 * linux-arm-low.c: Likewise.
10471 * linux-cris-low.c: Likewise.
10472 * linux-crisv32-low.c: Likewise.
10473 * linux-low.c: Likewise.
10474 * linux-m68k-low.c: Likewise.
10475 * linux-mips-low.c: Likewise.
10476 * linux-nios2-low.c: Likewise.
10477 * linux-s390-low.c: Likewise.
10478 * linux-sparc-low.c: Likewise.
10479 * linux-tic6x-low.c: Likewise.
10480 * linux-tile-low.c: Likewise.
10481 * linux-x86-low.c: Likewise.
10483 2015-07-24 Pedro Alves <palves@redhat.com>
10485 * config.in: Regenerate.
10486 * configure: Regenerate.
10488 2015-07-24 Pedro Alves <palves@redhat.com>
10490 * acinclude.m4: Include ../ptrace.m4.
10491 * configure.ac: Call GDB_AC_PTRACE.
10492 * config.in, configure: Regenerate.
10494 2015-07-24 Yao Qi <yao.qi@linaro.org>
10496 * linux-low.c (linux_create_inferior): Remove setting to
10497 proc->priv->new_inferior.
10498 (linux_attach): Likewise.
10499 (linux_low_filter_event): Likewise.
10500 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10502 2015-07-24 Yao Qi <yao.qi@linaro.org>
10504 * linux-low.c (linux_arch_setup): New function.
10505 (linux_low_filter_event): If proc->tdesc is NULL and
10506 proc->attached is true, call the_low_target.arch_setup.
10507 Otherwise, keep status pending, and return.
10508 (linux_resume_one_lwp_throw): Don't call get_pc if
10509 thread->while_stepping isn't NULL. Don't call
10510 get_thread_regcache if proc->tdesc is NULL.
10511 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10512 (linux_target_ops): Install arch_setup.
10513 * server.c (start_inferior): Call the_target->arch_setup.
10514 * target.h (struct target_ops) <arch_setup>: New field.
10515 (target_arch_setup): New marco.
10516 * lynx-low.c (lynx_target_ops): Update.
10517 * nto-low.c (nto_target_ops): Update.
10518 * spu-low.c (spu_target_ops): Update.
10519 * win32-low.c (win32_target_ops): Update.
10521 2015-07-24 Yao Qi <yao.qi@linaro.org>
10523 * linux-low.c (linux_add_process): Don't set
10524 proc->priv->new_inferior.
10525 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10526 (linux_attach): Likewise.
10528 2015-07-24 Yao Qi <yao.qi@linaro.org>
10530 * server.c (start_inferior): Code refactor.
10532 2015-07-24 Yao Qi <yao.qi@linaro.org>
10534 * server.c (process_serial_event): Set general_thread.
10536 2015-07-21 Yao Qi <yao.qi@linaro.org>
10538 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10539 aarch64_linux_get_debug_reg_capacity.
10541 2015-07-17 Yao Qi <yao.qi@linaro.org>
10543 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10544 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10545 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10546 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10547 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10548 (AARCH64_HWP_ALIGNMENT): Likewise.
10549 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10550 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10551 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10552 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10553 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10554 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10555 (struct aarch64_debug_reg_state): Likewise.
10556 (struct arch_lwp_info): Likewise.
10557 (aarch64_align_watchpoint): Likewise.
10558 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10559 (aarch64_watchpoint_length): Likewise.
10560 (aarch64_point_encode_ctrl_reg): Likewise
10561 (aarch64_point_is_aligned): Likewise.
10562 (aarch64_align_watchpoint): Likewise.
10563 (aarch64_linux_set_debug_regs):
10564 (aarch64_dr_state_insert_one_point): Likewise.
10565 (aarch64_dr_state_remove_one_point): Likewise.
10566 (aarch64_handle_breakpoint): Likewise.
10567 (aarch64_handle_aligned_watchpoint): Likewise.
10568 (aarch64_handle_unaligned_watchpoint): Likewise.
10569 (aarch64_handle_watchpoint): Likewise.
10571 2015-07-17 Yao Qi <yao.qi@linaro.org>
10573 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10574 and don't aarch64_get_debug_reg_state. All callers update.
10575 (aarch64_handle_aligned_watchpoint): Likewise.
10576 (aarch64_handle_unaligned_watchpoint): Likewise.
10577 (aarch64_handle_watchpoint): Likewise.
10578 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10579 (aarch64_remove_point): Likewise.
10581 2015-07-17 Yao Qi <yao.qi@linaro.org>
10583 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10585 (aarch64_handle_unaligned_watchpoint): Likewise.
10587 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10589 Revert the previous 3 commits:
10590 Move gdb_regex* to common/
10591 Move linux_find_memory_regions_full & co.
10592 gdbserver build-id attribute generator
10594 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10595 Jan Kratochvil <jan.kratochvil@redhat.com>
10597 gdbserver build-id attribute generator.
10598 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10599 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10600 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10602 (get_dynamic): Use find_pdhr to traverse program headers.
10603 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10604 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10605 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10606 (get_hex_build_id): New.
10607 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10608 to reply XML document.
10610 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10611 Jan Kratochvil <jan.kratochvil@redhat.com>
10613 * target.c: Include target/target-utils.h and fcntl.h.
10614 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10615 (target_fileio_read_stralloc): New functions.
10617 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10619 * Makefile.in (OBS): Add gdb_regex.o.
10620 (gdb_regex.o): New.
10621 * config.in: Rebuilt.
10622 * configure: Rebuilt.
10624 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10625 Jan Kratochvil <jan.kratochvil@redhat.com>
10627 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10628 * Makefile.in (OBS): Add target-utils.o.
10629 (linux-maps.o, target-utils.o): New.
10630 * configure.srv (srv_linux_obj): Add linux-maps.o.
10632 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10634 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10635 function, return 1.
10636 (the_low_target): Install it.
10638 2015-07-14 Pedro Alves <palves@redhat.com>
10640 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10641 Instead, ignore ECHILD, and throw an error for other errnos.
10643 2015-07-10 Pedro Alves <palves@redhat.com>
10645 * event-loop.c (struct callback_event) <data>: Change type to
10646 gdb_client_data instance instead of gdb_client_data pointer.
10647 (append_callback_event): Adjust.
10649 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10651 * linux-aarch64-low.c: Add comments for each linux_target_ops
10652 method. Remove comments already covered in target_ops and
10653 linux_target_ops definitions.
10654 (the_low_target): Add comments for each unimplemented method.
10656 2015-07-09 Yao Qi <yao.qi@linaro.org>
10658 * linux-aarch64-low.c (aarch64_regmap): Remove.
10659 (aarch64_usrregs_info): Remove.
10660 (regs_info): Set field usrregs to NULL.
10662 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10664 * linux-low.c: Include "rsp-low.h"
10665 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10666 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10667 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10668 (handle_btrace_enable_pt): New.
10669 (handle_btrace_general_set): Support "pt".
10670 (handle_btrace_conf_general_set): Support "pt:size".
10672 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10674 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10677 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10679 * linux-aarch64-low.c: Remove comment about endianness.
10680 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10681 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10684 2015-06-24 Gary Benson <gbenson@redhat.com>
10686 * linux-i386-ipa.c (stdint.h): Do not include.
10687 * lynx-i386-low.c (stdint.h): Likewise.
10688 * lynx-ppc-low.c (stdint.h): Likewise.
10689 * mem-break.c (stdint.h): Likewise.
10690 * thread-db.c (stdint.h): Likewise.
10691 * tracepoint.c (stdint.h): Likewise.
10692 * win32-low.c (stdint.h): Likewise.
10694 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10696 * server.c (write_qxfer_response): Update call to
10697 remote_escape_output.
10699 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10700 Jan Kratochvil <jan.kratochvil@redhat.com>
10702 Merge multiple hex conversions.
10703 * gdbreplay.c (tohex): Rename to 'fromhex'.
10704 (logchar): Use fromhex.
10706 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10708 * server.c (handle_qxfer_libraries): Set `version' attribute for
10711 2015-06-10 Gary Benson <gbenson@redhat.com>
10713 * target.h (struct target_ops) <multifs_open>: New field.
10714 <multifs_unlink>: Likewise.
10715 <multifs_readlink>: Likewise.
10716 * linux-low.c (nat/linux-namespaces.h): New include.
10717 (linux_target_ops): Initialize the_target->multifs_open,
10718 the_target->multifs_unlink and the_target->multifs_readlink.
10719 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10720 * hostio.c (hostio_fs_pid): New static variable.
10721 (hostio_handle_new_gdb_connection): New function.
10722 (handle_setfs): Likewise.
10723 (handle_open): Use the_target->multifs_open as appropriate.
10724 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10725 (handle_readlink): Use the_target->multifs_readlink as
10727 (handle_vFile): Handle vFile:setfs packets.
10728 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10729 after target_handle_new_gdb_connection.
10731 2015-06-10 Gary Benson <gbenson@redhat.com>
10733 * configure.ac (AC_CHECK_FUNCS): Add setns.
10734 * config.in: Regenerate.
10735 * configure: Likewise.
10736 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10737 (linux-namespaces.o): New rule.
10738 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10740 2015-06-09 Gary Benson <gbenson@redhat.com>
10742 * hostio.c (handle_open): Process mode argument with
10743 fileio_to_host_mode.
10745 2015-06-01 Yao Qi <yao.qi@linaro.org>
10747 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10748 * linux-x86-low.c: Likewise.
10750 2015-05-28 Don Breazeal <donb@codesourcery.com>
10752 * linux-low.c (handle_extended_wait): Initialize
10753 thread_info.last_resume_kind for new fork children.
10755 2015-05-15 Pedro Alves <palves@redhat.com>
10757 * target.h (target_handle_new_gdb_connection): Rewrite using if
10758 wrapped in do/while.
10760 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10762 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10763 * configure, config.in: Regenerate.
10764 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10767 2015-05-12 Don Breazeal <donb@codesourcery.com>
10769 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10770 PTRACE_EVENT_VFORK_DONE.
10771 (linux_low_ptrace_options, extended_event_reported): Add vfork
10773 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10774 and "vforkdone" for RSP 'T' Stop Reply Packet.
10775 * server.h (report_vfork_events): Declare
10778 2015-05-12 Don Breazeal <donb@codesourcery.com>
10780 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10781 (the_low_target) <new_fork>: Initialize new member.
10782 * linux-arm-low.c (arm_new_fork): New function.
10783 (the_low_target) <new_fork>: Initialize new member.
10784 * linux-low.c (handle_extended_wait): Call new target function
10786 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10787 * linux-mips-low.c (mips_add_watchpoint): New function
10788 extracted from mips_insert_point.
10789 (the_low_target) <new_fork>: Initialize new member.
10790 (mips_linux_new_fork): New function.
10791 (mips_insert_point): Call mips_add_watchpoint.
10792 * linux-x86-low.c (x86_linux_new_fork): New function.
10793 (the_low_target) <new_fork>: Initialize new member.
10795 2015-05-12 Don Breazeal <donb@codesourcery.com>
10797 * linux-low.c (handle_extended_wait): Implement return value,
10798 rename argument 'event_child' to 'event_lwp', handle
10799 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10800 (linux_low_ptrace_options): New function.
10801 (linux_low_filter_event): Call linux_low_ptrace_options,
10802 use different argument fo linux_enable_event_reporting,
10803 use return value from handle_extended_wait.
10804 (extended_event_reported): New function.
10805 (linux_wait_1): Call extended_event_reported and set
10806 status to report fork events.
10807 (linux_write_memory): Add pid to debug message.
10808 (reset_lwp_ptrace_options_callback): New function.
10809 (linux_handle_new_gdb_connection): New function.
10810 (linux_target_ops): Initialize new structure member.
10811 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10812 * lynx-low.c: Initialize new structure member.
10813 * remote-utils.c (prepare_resume_reply): Implement stop reason
10814 "fork" for "T" stop message.
10815 * server.c (handle_query): Call handle_new_gdb_connection.
10816 * server.h (report_fork_events): Declare global flag.
10817 * target.h (struct target_ops) <handle_new_gdb_connection>:
10819 (target_handle_new_gdb_connection): New macro.
10820 * win32-low.c: Initialize new structure member.
10822 2015-05-12 Don Breazeal <donb@codesourcery.com>
10824 * mem-break.c (APPEND_TO_LIST): Define macro.
10825 (clone_agent_expr): New function.
10826 (clone_one_breakpoint): New function.
10827 (clone_all_breakpoints): New function.
10828 * mem-break.h: Declare new functions.
10830 2015-05-12 Don Breazeal <donb@codesourcery.com>
10832 * linux-low.c (linux_supports_fork_events): New function.
10833 (linux_supports_vfork_events): New function.
10834 (linux_target_ops): Initialize new structure members.
10835 (initialize_low): Call linux_check_ptrace_features.
10836 * lynx-low.c (lynx_target_ops): Initialize new structure
10838 * server.c (report_fork_events, report_vfork_events):
10840 (handle_query): Add new features to qSupported packet and
10842 (captured_main): Initialize new global variables.
10843 * target.h (struct target_ops) <supports_fork_events>:
10845 <supports_vfork_events>: New member.
10846 (target_supports_fork_events): New macro.
10847 (target_supports_vfork_events): New macro.
10848 * win32-low.c (win32_target_ops): Initialize new structure
10851 2015-05-12 Gary Benson <gbenson@redhat.com>
10853 * server.c (handle_qxfer_exec_file): Use current process
10856 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10858 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10859 Remove HAVE_PTRACE_GETREGS conditionals.
10860 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10861 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10863 2015-05-08 Yao Qi <yao.qi@linaro.org>
10865 * linux-low.c (linux_supports_conditional_breakpoints): New
10867 (linux_target_ops): Install new target method.
10868 * lynx-low.c (lynx_target_ops): Install NULL hook for
10869 supports_conditional_breakpoints.
10870 * nto-low.c (nto_target_ops): Likewise.
10871 * spu-low.c (spu_target_ops): Likewise.
10872 * win32-low.c (win32_target_ops): Likewise.
10873 * server.c (handle_query): Check
10874 target_supports_conditional_breakpoints.
10875 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10877 (target_supports_conditional_breakpoints): New macro.
10879 2015-05-06 Pedro Alves <palves@redhat.com>
10882 * server.c (start_inferior): If the process exits, mourn it.
10884 2015-04-21 Gary Benson <gbenson@redhat.com>
10886 * hostio.c (fileio_open_flags_to_host): Factored out to
10887 fileio_to_host_openflags in common/fileio.c. Single use
10890 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10892 * linux-xtensa-low.c (xtensa_fill_gregset)
10893 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10896 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10898 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10899 (regs_info): Replace usrregs pointer with NULL.
10901 2015-04-17 Gary Benson <gbenson@redhat.com>
10903 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10904 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10905 * server.c (handle_qxfer_exec_file): New function.
10906 (qxfer_packets): Add exec-file entry.
10907 (handle_query): Report qXfer:exec-file:read as supported packet.
10909 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10911 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10913 2015-04-09 Gary Benson <gbenson@redhat.com>
10915 * hostio-errno.c (errno_to_fileio_error): Remove function.
10916 Update caller to use remote_fileio_to_fio_error.
10918 2015-04-09 Yao Qi <yao.qi@linaro.org>
10920 * linux-low.c (linux_insert_point): Call
10921 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10922 (linux_remove_point): Call remove_memory_breakpoint if type is
10924 * linux-x86-low.c (x86_insert_point): Don't call
10925 insert_memory_breakpoint.
10926 (x86_remove_point): Don't call remove_memory_breakpoint.
10928 2015-04-01 Pedro Alves <palves@redhat.com>
10929 Cleber Rosa <crosa@redhat.com>
10931 * server.c (gdbserver_usage): Reorganize and extend the usage
10934 2015-03-24 Pedro Alves <palves@redhat.com>
10936 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10937 output. Also dump TRAP_TRACE.
10938 (linux_low_filter_event): In debug output, distinguish a
10939 resume_stop SIGSTOP from a delayed SIGSTOP.
10941 2015-03-24 Gary Benson <gbenson@redhat.com>
10943 * linux-x86-low.c (x86_linux_new_thread): Moved to
10945 (x86_linux_prepare_to_resume): Likewise.
10947 2015-03-24 Gary Benson <gbenson@redhat.com>
10949 * Makefile.in (x86-linux-dregs.o): New rule.
10950 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10951 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10952 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10953 (x86_linux_dr_get): Likewise.
10954 (x86_linux_dr_set): Likewise.
10955 (update_debug_registers_callback): Likewise.
10956 (x86_linux_dr_set_addr): Likewise.
10957 (x86_linux_dr_get_addr): Likewise.
10958 (x86_linux_dr_set_control): Likewise.
10959 (x86_linux_dr_get_control): Likewise.
10960 (x86_linux_dr_get_status): Likewise.
10961 (x86_linux_update_debug_registers): Likewise.
10963 2015-03-24 Gary Benson <gbenson@redhat.com>
10965 * linux-x86-low.c (x86_linux_update_debug_registers):
10966 New function, factored out from...
10967 (x86_linux_prepare_to_resume): ...this.
10969 2015-03-24 Gary Benson <gbenson@redhat.com>
10971 * linux-x86-low.c (x86_linux_dr_get): Update comments.
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_prepare_to_resume): Likewise.
10981 2015-03-24 Gary Benson <gbenson@redhat.com>
10983 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10984 Use perror_with_name. Pass string through gettext.
10985 (x86_linux_dr_set): Likewise.
10987 2015-03-24 Gary Benson <gbenson@redhat.com>
10989 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10990 (x86_linux_dr_set_addr): ...this.
10991 (x86_dr_low_get_addr): Rename to...
10992 (x86_linux_dr_get_addr): ...this.
10993 (x86_dr_low_set_control): Rename to...
10994 (x86_linux_dr_set_control): ...this.
10995 (x86_dr_low_get_control): Rename to...
10996 (x86_linux_dr_get_control): ...this.
10997 (x86_dr_low_get_status): Rename to...
10998 (x86_linux_dr_get_status): ...this.
10999 (x86_dr_low): Update with new function names.
11001 2015-03-24 Gary Benson <gbenson@redhat.com>
11003 * Makefile.in (x86-linux.o): New rule.
11004 * configure.srv: Add x86-linux.o to relevant targets.
11005 * linux-low.c (lwp_set_arch_private_info): New function.
11006 (lwp_arch_private_info): Likewise.
11007 * linux-x86-low.c: Include nat/x86-linux.h.
11008 (arch_lwp_info): Removed structure.
11009 (update_debug_registers_callback):
11010 Use lwp_set_debug_registers_changed.
11011 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11012 and lwp_set_debug_registers_changed.
11013 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11015 2015-03-24 Gary Benson <gbenson@redhat.com>
11017 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11018 * linux-arm-low.c (arm_new_thread): Likewise.
11019 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11020 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11021 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11022 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11024 2015-03-24 Gary Benson <gbenson@redhat.com>
11026 * linux-low.c (ptid_of_lwp): New function.
11027 (lwp_is_stopped): Likewise.
11028 (lwp_stop_reason): Likewise.
11029 * linux-x86-low.c (update_debug_registers_callback):
11030 Use lwp_is_stopped.
11031 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11034 2015-03-24 Gary Benson <gbenson@redhat.com>
11036 * linux-low.h (linux_stop_lwp): Remove declaration.
11038 2015-03-24 Gary Benson <gbenson@redhat.com>
11040 * linux-low.h: Include nat/linux-nat.h.
11041 * linux-low.c (iterate_over_lwps_args): New structure.
11042 (iterate_over_lwps_filter): New function.
11043 (iterate_over_lwps): Likewise.
11044 * linux-x86-low.c (update_debug_registers_callback):
11045 Update signature to what iterate_over_lwps expects.
11046 Remove PID check that iterate_over_lwps now performs.
11047 (x86_dr_low_set_addr): Use iterate_over_lwps.
11048 (x86_dr_low_set_control): Likewise.
11050 2015-03-24 Gary Benson <gbenson@redhat.com>
11052 * linux-x86-low.c (x86_debug_reg_state): New function.
11053 (x86_linux_prepare_to_resume): Use the above.
11055 2015-03-24 Gary Benson <gbenson@redhat.com>
11057 * linux-low.c (current_lwp_ptid): New function.
11058 * linux-x86-low.c: Include nat/linux-nat.h.
11059 (x86_dr_low_get_addr): Use current_lwp_ptid.
11060 (x86_dr_low_get_control): Likewise.
11061 (x86_dr_low_get_status): Likewise.
11063 2015-03-20 Pedro Alves <palves@redhat.com>
11065 * tracepoint.c (cmd_qtstatus): Make "str" const.
11067 2015-03-20 Pedro Alves <palves@redhat.com>
11069 * server.c (handle_general_set): Make "req_str" const.
11071 2015-03-19 Pedro Alves <palves@redhat.com>
11073 * linux-low.c (linux_resume_one_lwp): Rename to ...
11074 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11075 instead call perror_with_name.
11076 (check_ptrace_stopped_lwp_gone): New function.
11077 (linux_resume_one_lwp): Reimplement as wrapper around
11078 linux_resume_one_lwp_throw that swallows errors if the LWP is
11081 2015-03-19 Pedro Alves <palves@redhat.com>
11083 * linux-low.c (count_events_callback, select_event_lwp_callback):
11084 No longer check whether the thread has resume_stop as last resume
11087 2015-03-19 Pedro Alves <palves@redhat.com>
11089 * linux-low.c (count_events_callback, select_event_lwp_callback):
11090 Use the lwp's status_pending_p field, not the thread's.
11092 2015-03-19 Pedro Alves <palves@redhat.com>
11094 * linux-low.c (select_event_lwp_callback): Update comments to
11095 no longer mention SIGTRAP.
11097 2015-03-18 Gary Benson <gbenson@redhat.com>
11099 * server.c (handle_query): Do not report vFile:fstat as supported.
11101 2015-03-11 Gary Benson <gbenson@redhat.com>
11103 * hostio.c (sys/types.h): New include.
11104 (sys/stat.h): Likewise.
11105 (common-remote-fileio.h): Likewise.
11106 (handle_fstat): New function.
11107 (handle_vFile): Handle vFile:fstat packets.
11109 2015-03-11 Gary Benson <gbenson@redhat.com>
11111 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11112 struct stat.st_blocks and struct stat.st_blksize.
11113 * configure: Regenerate.
11114 * config.in: Likewise.
11115 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11116 (OBS): Add common-remote-fileio.o.
11117 (common-remote-fileio.o): New rule.
11119 2015-03-09 Pedro Alves <palves@redhat.com>
11121 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11122 'struct sockaddr' pointer in 'accept' call.
11124 2015-03-09 Pedro Alves <palves@redhat.com>
11127 2015-03-07 Pedro Alves <palves@redhat.com>
11128 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11129 or <winsock2.h> here. Instead include "gdb_socket.h".
11130 (remote_open): Use union gdb_sockaddr_u.
11131 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11132 or <winsock2.h> here. Instead include "gdb_socket.h".
11133 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11134 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11136 (init_named_socket, gdb_agent_helper_thread): Use union
11139 2015-03-07 Pedro Alves <palves@redhat.com>
11141 * configure.ac (build_warnings): Move
11142 -Wdeclaration-after-statement to the C-specific set.
11143 * configure: Regenerate.
11145 2015-03-07 Pedro Alves <palves@redhat.com>
11147 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11148 or <winsock2.h> here. Instead include "gdb_socket.h".
11149 (remote_open): Use union gdb_sockaddr_u.
11150 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11151 or <winsock2.h> here. Instead include "gdb_socket.h".
11152 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11153 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11155 (init_named_socket, gdb_agent_helper_thread): Use union
11158 2015-03-07 Pedro Alves <palves@redhat.com>
11160 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11163 2015-03-06 Yao Qi <yao.qi@linaro.org>
11165 * linux-aarch64-low.c (aarch64_insert_point): Use
11166 show_debug_regs as a boolean.
11167 (aarch64_remove_point): Likewise.
11169 2015-03-05 Pedro Alves <palves@redhat.com>
11171 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11172 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11173 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11174 * nto-low.c (nto_target_ops): Likewise.
11175 * spu-low.c (spu_target_ops): Likewise.
11176 * win32-low.c (win32_target_ops): Likewise.
11178 2015-03-04 Pedro Alves <palves@redhat.com>
11180 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11181 Decide whether a breakpoint triggered based on the SIGTRAP's
11183 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11184 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11185 (linux_low_filter_event): Check for breakpoints before checking
11187 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11189 (linux_stopped_by_sw_breakpoint)
11190 (linux_supports_stopped_by_sw_breakpoint)
11191 (linux_stopped_by_hw_breakpoint)
11192 (linux_supports_stopped_by_hw_breakpoint): New functions.
11193 (linux_target_ops): Install new target methods.
11195 2015-03-04 Pedro Alves <palves@redhat.com>
11197 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11198 * server.c (swbreak_feature, hwbreak_feature): New globals.
11199 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11200 (captured_main): Clear swbreak_feature and hwbreak_feature.
11201 * server.h (swbreak_feature, hwbreak_feature): Declare.
11202 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11203 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11204 supports_stopped_by_hw_breakpoint>: New fields.
11205 (target_supports_stopped_by_sw_breakpoint)
11206 (target_stopped_by_sw_breakpoint)
11207 (target_supports_stopped_by_hw_breakpoint)
11208 (target_stopped_by_hw_breakpoint): Declare.
11210 2015-03-04 Pedro Alves <palves@redhat.com>
11212 enum lwp_stop_reason -> enum target_stop_reason
11213 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11214 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11215 (linux_wait_1, stuck_in_jump_pad_callback)
11216 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11217 (linux_stopped_by_watchpoint):
11218 * linux-low.h (enum lwp_stop_reason): Delete.
11219 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11220 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11222 2015-03-04 Yao Qi <yao.qi@linaro.org>
11224 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11226 2015-03-03 Gary Benson <gbenson@redhat.com>
11228 * hostio.c (handle_vFile): Fix prefix lengths.
11230 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11232 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11235 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11237 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11238 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11239 (clean): Add "rm -f" for above C files.
11240 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11241 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11242 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11243 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11244 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11245 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11246 (init_registers_s390x_vx_linux64)
11247 (init_registers_s390x_tevx_linux64)
11248 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11249 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11251 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11252 (s390_store_vxrs_high): New functions.
11253 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11255 (s390_arch_setup): Add logic for selecting one of the new target
11256 descriptions. Activate the new vector regsets if applicable.
11257 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11258 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11259 and init_registers_s390x_tevx_linux64.
11261 2015-03-01 Pedro Alves <palves@redhat.com>
11263 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11266 2015-02-27 Pedro Alves <palves@redhat.com>
11268 * linux-x86-low.c (u_debugreg_offset): New function.
11269 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11271 2015-02-27 Pedro Alves <palves@redhat.com>
11273 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11274 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11275 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11276 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11277 (ps_lsetfpregs, ps_getpid)
11278 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11279 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11280 (ps_lsetxregs, ps_plog): Declare.
11282 2015-02-27 Pedro Alves <palves@redhat.com>
11284 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11285 IP_AGENT_EXPORT_FUNC.
11286 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11287 IP_AGENT_EXPORT_FUNC.
11288 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11289 (IP_AGENT_EXPORT): Delete.
11290 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11291 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11292 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11293 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11294 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11295 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11296 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11297 (traceframe_read_count, traceframe_write_count)
11298 (traceframes_created, trace_state_variables, get_raw_reg)
11299 (get_trace_state_variable_value, set_trace_state_variable_value)
11300 (ust_loaded, helper_thread_id, cmd_buf): Use
11301 IPA_SYM_EXPORTED_NAME.
11302 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11303 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11304 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11305 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11306 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11307 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11308 EXTERN_C_PUSH/EXTERN_C_POP.
11309 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11310 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11311 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11312 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11313 (traceframe_write_count, traceframe_read_count)
11314 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11315 (about_to_request_buffer_space, get_trace_state_variable_value)
11316 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11317 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11318 EXTERN_C_PUSH/EXTERN_C_POP.
11319 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11320 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11321 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11322 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11323 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11324 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11325 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11326 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11328 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11329 (IP_AGENT_EXPORT_VAR_DECL): Define.
11330 (tracing): Declare.
11331 (gdb_agent_get_raw_reg): Declare.
11333 2015-02-27 Tom Tromey <tromey@redhat.com>
11334 Pedro Alves <palves@redhat.com>
11336 Rename symbols whose names are reserved C++ keywords throughout.
11338 2015-02-27 Pedro Alves <palves@redhat.com>
11340 * Makefile.in (COMPILER): New, get it from autoconf.
11341 (CXX): Get from autoconf instead.
11342 (COMPILE.pre): Use COMPILER.
11343 (CC-LD): Rename to ...
11344 (CC_LD): ... this. Use COMPILER.
11345 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11346 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11347 * acinclude.m4: Include build-with-cxx.m4.
11348 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11349 Disable -Werror by default if building in C++ mode.
11350 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11351 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11352 the C++ compiler. Save/restore CXXFLAGS too.
11353 * configure: Regenerate.
11355 2015-02-27 Pedro Alves <palves@redhat.com>
11357 * acinclude.m4: Include libiberty.m4.
11358 * configure.ac: Call libiberty_INIT.
11359 * config.in, configure: Regenerate.
11361 2015-02-26 Pedro Alves <palves@redhat.com>
11363 * linux-low.c (linux_wait_1): When incrementing the PC past a
11364 program breakpoint always use the_low_target.breakpoint_len as
11365 increment, rather than the maximum between that and
11366 the_low_target.decr_pc_after_break.
11368 2015-02-23 Pedro Alves <palves@redhat.com>
11370 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11371 thread was doing a step-over; always adjust the PC if
11372 we stepped over a permanent breakpoint.
11373 (linux_wait_1): If we stepped over breakpoint that was on top of a
11374 permanent breakpoint, manually advance the PC past it.
11376 2015-02-23 Pedro Alves <palves@redhat.com>
11378 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11380 (x86_fill_gregset, x86_store_gregset): Use it when handling
11383 2015-02-20 Pedro Alves <palves@redhat.com>
11385 * thread-db.c: Include "nat/linux-procfs.h".
11386 (thread_db_init): Skip listing new threads if the kernel supports
11387 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11389 2015-02-20 Pedro Alves <palves@redhat.com>
11391 * linux-low.c (status_pending_p_callback): Use ptid_match.
11393 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11395 PR breakpoints/16812
11396 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11397 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11398 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11400 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11402 PR breakpoints/15956
11403 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11405 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11407 * linux-low.c (linux_low_btrace_conf): Print size.
11408 * server.c (handle_btrace_conf_general_set): New.
11409 (hanle_general_set): Call handle_btrace_conf_general_set.
11410 (handle_query): Report Qbtrace-conf:bts:size as supported.
11412 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11414 * linux-low.c (linux_low_enable_btrace): Update parameters.
11415 (linux_low_btrace_conf): New.
11416 (linux_target_ops)<to_btrace_conf>: Initialize.
11417 * server.c (current_btrace_conf): New.
11418 (handle_btrace_enable): Rename to ...
11419 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11420 to target_enable_btrace. Update comment. Update users.
11421 (handle_qxfer_btrace_conf): New.
11422 (qxfer_packets): Add btrace-conf entry.
11423 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11424 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11425 (target_ops)<read_btrace_conf>: New.
11426 (target_enable_btrace): Update parameters.
11427 (target_read_btrace_conf): New.
11429 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11431 * server.c (handle_btrace_general_set): Remove call to
11432 target_supports_btrace.
11433 (supported_btrace_packets): New.
11434 (handle_query): Call supported_btrace_packets.
11435 * target.h: include btrace-common.h.
11436 (btrace_target_info): Removed.
11437 (supports_btrace, target_supports_btrace): Update parameters.
11439 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11441 * Makefile.in (SFILES): Add common/btrace-common.c.
11442 (OBS): Add common/btrace-common.o.
11443 (btrace-common.o): Add build rules.
11444 * linux-low: Include btrace-common.h.
11445 (linux_low_read_btrace): Use struct btrace_data. Call
11446 btrace_data_init and btrace_data_fini.
11448 2015-02-06 Pedro Alves <palves@redhat.com>
11450 * thread-db.c (find_new_threads_callback): Add debug output.
11452 2015-02-04 Pedro Alves <palves@redhat.com>
11454 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11455 (resume_stopped_resumed_lwps): New function.
11456 (linux_wait_for_event_filtered): Use it.
11458 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11460 * Makefile.in (SFILES): Add linux-personality.c.
11461 (linux-personality.o): New rule.
11462 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11463 list of objects to be built.
11464 * linux-low.c: Include nat/linux-personality.h.
11465 (linux_create_inferior): Remove code to disable address space
11466 randomization (moved to ../nat/linux-personality.c). Create
11467 cleanup to disable address space randomization.
11469 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11471 * Makefile.in (posix-strerror.o): New rule.
11472 (mingw-strerror.o): Likewise.
11473 * configure: Regenerated.
11474 * configure.ac: Source file ../common/common.host. Initialize new
11475 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11477 2015-01-14 Yao Qi <yao@codesourcery.com>
11479 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11480 (ppc-linux.o): New rule.
11481 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11482 * configure.ac: AC_CHECK_FUNCS(getauxval).
11483 * config.in: Re-generated.
11484 * configure: Re-generated.
11485 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11486 ppc64_64bit_inferior_p
11488 2015-01-14 Yao Qi <yao@codesourcery.com>
11490 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11491 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11492 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11493 (PT_ORIG_R3, PT_TRAP): Likewise.
11494 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11495 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11496 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11498 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11500 * i387-fp.c (i387_cache_to_xsave): In look over
11501 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11502 zmmh_low_space field by use of zmmh_high_space.
11504 2015-01-09 Pedro Alves <palves@redhat.com>
11506 * linux-low.c (step_over_bkpt): Move higher up in the file.
11507 (handle_extended_wait): Don't store the stop_pc here.
11508 (get_stop_pc): Adjust comments and rename to ...
11509 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11510 stopped for a software breakpoint or hardware breakpoint.
11511 (thread_still_has_status_pending_p): New function.
11512 (status_pending_p_callback): Use
11513 thread_still_has_status_pending_p. If the event is no longer
11514 interesting, resume the LWP.
11515 (handle_tracepoints): Add assert.
11516 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11517 (wstatus_maybe_breakpoint): New function.
11518 (cancel_breakpoint): Delete function.
11519 (check_stopped_by_watchpoint): New function, factored out from
11520 linux_low_filter_event.
11521 (lp_status_maybe_breakpoint): Delete function.
11522 (linux_low_filter_event): Remove filter_ptid argument.
11523 Leave thread group exits pending here. Store the LWP's stop PC.
11524 Always leave events pending.
11525 (linux_wait_for_event_filtered): Pull all events out of the
11526 kernel, and leave them all pending.
11527 (count_events_callback, select_event_lwp_callback): Consider all
11529 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11530 (select_event_lwp): Only give preference to the stepping LWP in
11531 all-stop mode. Adjust comments.
11532 (ignore_event): New function.
11533 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11534 references to cancel_breakpoints. Adjust to renames. Also give
11535 equal priority to all LWPs that have had events in non-stop mode.
11536 If reporting a software breakpoint event, unadjust the LWP's PC.
11537 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11538 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11540 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11541 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11542 (linux_stopped_by_watchpoint): Adjust.
11543 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11544 * linux-low.h (enum lwp_stop_reason): New.
11545 (struct lwp_info) <stop_pc>: Adjust comment.
11546 <stopped_by_watchpoint>: Delete field.
11547 <stop_reason>: New field.
11548 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11549 * mem-break.c (software_breakpoint_inserted_here)
11550 (hardware_breakpoint_inserted_here): New function.
11551 * mem-break.h (software_breakpoint_inserted_here)
11552 (hardware_breakpoint_inserted_here): Declare.
11553 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11554 (cancel_breakpoints): Delete.
11555 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11556 (upload_fast_traceframes): Remove references to
11557 cancel_breakpoints.
11559 2015-01-09 Pedro Alves <palves@redhat.com>
11561 * thread-db.c (find_new_threads_callback): Ignore thread if the
11562 kernel thread ID is -1.
11564 2015-01-09 Pedro Alves <palves@redhat.com>
11566 * linux-low.c (linux_attach_fail_reason_string): Move to
11567 nat/linux-ptrace.c, and rename.
11568 (linux_attach_lwp): Update comment.
11569 (attach_proc_task_lwp_callback): New function.
11570 (linux_attach): Adjust to rename and use
11571 linux_proc_attach_tgid_threads.
11572 (linux_attach_fail_reason_string): Delete declaration.
11574 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11576 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11577 * server.c (gdbserver_version): Likewise.
11579 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11581 * remote-utils.c: Include ctype.h.
11582 (input_interrupt): Explicitly handle the case when the char
11583 received is the NUL byte. Improve the printing of non-ASCII
11586 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11588 * linux-low.c (linux_low_filter_event): Update call to
11589 linux_enable_event_reporting following the addition of
11590 a new parameter to that function.
11592 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11595 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11596 (AARCH64_FPCR_REGNO): Likewise.
11597 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11598 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11599 (aarch64_store_fpregset): Likewise.
11601 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11603 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11604 Remove FIXME comment about assumption about N.
11606 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11608 * configure.ac: If large-file support is disabled in GDBserver,
11609 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11610 * configure: Regenerate.
11612 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11614 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11615 warning upon ENODATA from ptrace.
11616 * linux-s390-low.c (s390_store_tdb): New.
11617 (s390_regsets): Add regset for NT_S390_TDB.
11619 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11621 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11622 without a fill_function.
11623 * linux-s390-low.c (s390_fill_last_break): Remove.
11624 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11625 (s390_arch_setup): Use regset's size instead of fill_function for
11626 loop end condition.
11628 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11630 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11631 the regset's store function when ptrace returned an error.
11632 * regcache.c (get_thread_regcache): Invalidate register cache
11633 before fetching inferior's registers.
11635 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11637 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11638 while-loop as for-loop.
11639 (regsets_store_inferior_registers): Likewise.
11641 2014-11-28 Yao Qi <yao@codesourcery.com>
11643 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11644 * config.in, configure: Re-generate.
11645 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11648 2014-11-21 Yao Qi <yao@codesourcery.com>
11650 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11651 (AC_CHECK_HEADERS): Remove malloc.h.
11652 * configure: Re-generated.
11653 * config.in: Re-generated.
11654 * server.h: Don't include alloca.h and malloc.h.
11655 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11656 Don't include malloc.h.
11658 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11660 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11661 corresponding ERRNO check in same block.
11663 2014-11-12 Pedro Alves <palves@redhat.com>
11665 * server.c (cont_thread): Update comment.
11666 (start_inferior, attach_inferior): No longer clear cont_thread.
11667 (handle_v_cont): No longer set cont_thread.
11668 (captured_main): Clear cont_thread each time a GDB connects.
11670 2014-11-12 Pedro Alves <palves@redhat.com>
11672 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11673 thread, and don't resume all threads if the Hc thread has exited.
11675 2014-11-12 Pedro Alves <palves@redhat.com>
11677 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11678 the process group instead of to a specific LWP.
11680 2014-10-15 Pedro Alves <palves@redhat.com>
11683 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11685 (arm_set_thread_context): Delete.
11686 (the_low_target): Adjust.
11687 * win32-i386-low.c (debug_registers_changed)
11688 (debug_registers_used): Delete.
11689 (update_debug_registers_callback): New function.
11690 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11691 needing to update their debug registers.
11692 (win32_get_current_dr): New function.
11693 (x86_dr_low_get_addr, x86_dr_low_get_control)
11694 (x86_dr_low_get_status): Fetch the debug register from the thread
11696 (i386_initial_stuff): Adjust.
11697 (i386_get_thread_context): Remove current_event parameter. Don't
11698 clear debug_registers_changed nor copy DR values to
11700 (i386_set_thread_context): Delete.
11701 (i386_prepare_to_resume): New function.
11702 (i386_thread_added): Mark the thread as needing to update irs
11704 (the_low_target): Remove i386_set_thread_context and install
11705 i386_prepare_to_resume.
11706 * win32-low.c (win32_get_thread_context): Adjust.
11707 (win32_set_thread_context): Use SetThreadContext
11709 (win32_prepare_to_resume): New function.
11710 (win32_require_context): New function, factored out from ...
11711 (thread_rec): ... this.
11712 (continue_one_thread): Call win32_prepare_to_resume on each thread
11713 we're about to continue.
11714 (win32_resume): Call win32_prepare_to_resume on the event thread.
11715 * win32-low.h (struct win32_thread_info)
11716 <debug_registers_changed>: New field.
11717 (struct win32_target_ops): Change prototype of set_thread_context,
11718 delete set_thread_context and add prepare_to_resume.
11719 (win32_require_context): New declaration.
11721 2014-10-08 Gary Benson <gbenson@redhat.com>
11723 * server.h: Do not include common-exceptions.h.
11725 2014-10-08 Gary Benson <gbenson@redhat.com>
11727 * server.h: Do not include cleanups.h.
11729 2014-09-30 James Hogan <james.hogan@imgtec.com>
11731 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11732 mips64-dsp-linux.c.
11734 2014-09-23 Yao Qi <yao@codesourcery.com>
11736 * linux-low.c (lp_status_maybe_breakpoint): New function.
11737 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11738 (count_events_callback): Likewise.
11739 (select_event_lwp_callback): Likewise.
11740 (cancel_breakpoints_callback): Likewise.
11742 2014-09-19 Don Breazeal <donb@codesourcery.com>
11744 * linux-low.c (handle_extended_wait): Call
11745 linux_ptrace_get_extended_event.
11746 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11747 linux_is_extended_waitstatus.
11749 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11751 * Makefile.in (CPPFLAGS): Define.
11752 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11753 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11755 2014-09-16 Gary Benson <gbenson@redhat.com>
11757 * inferiors.h (current_inferior): Renamed as...
11758 (current_thread): New variable. All uses updated.
11759 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11760 (maybe_move_out_of_jump_pad): Likewise.
11761 (cancel_breakpoint): Likewise.
11762 (linux_low_filter_event): Likewise.
11763 (wait_for_sigstop): Likewise.
11764 (linux_resume_one_lwp): Likewise.
11765 (need_step_over_p): Likewise.
11766 (start_step_over): Likewise.
11767 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11768 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11769 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11770 and save_inferior as saved_thread.
11771 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11773 (regcache_invalidate_thread): Likewise.
11774 * remote-utils.c (prepare_resume_reply): Likewise.
11775 * thread-db.c (thread_db_get_tls_address): Likewise.
11776 (disable_thread_event_reporting): Likewise.
11777 (remove_thread_event_breakpoints): Likewise.
11778 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11780 * target.h (set_desired_inferior): Renamed as...
11781 (set_desired_thread): New declaration. All uses updated.
11782 * server.c (myresume): Updated comment to reference thread instead
11784 (handle_serial_event): Likewise.
11785 (handle_target_event): Likewise.
11787 2014-09-12 Tom Tromey <tromey@redhat.com>
11788 Gary Benson <gbenson@redhat.com>
11790 * regcache.h: Include common-regcache.h.
11791 (regcache_read_pc): Don't declare.
11792 * regcache.c (get_thread_regcache_for_ptid): New function.
11794 2014-09-11 Tom Tromey <tromey@redhat.com>
11795 Gary Benson <gbenson@redhat.com>
11797 * symbol.c: New file.
11798 * Makefile.in (SFILES): Add symbol.c.
11799 (OBS): Add symbol.o.
11801 2014-09-11 Gary Benson <gbenson@redhat.com>
11803 * target.c (target_stop_ptid, target_continue_ptid): New
11806 2014-09-11 Tom Tromey <tromey@redhat.com>
11807 Gary Benson <gbenson@redhat.com>
11809 * target.h: Include target/target.h.
11810 * target.c (target_read_memory, target_read_uint32)
11811 (target_write_memory): New functions.
11813 2014-09-11 Gary Benson <gbenson@redhat.com>
11815 * server.h (debug_hw_points): Don't declare.
11816 * server.c (debug_hw_points): Don't define. Replace all uses
11817 with show_debug_regs.
11818 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11819 all uses with show_debug_regs.
11821 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11823 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11824 endianness into account.
11825 (ppc_supply_ptrace_register): Likewise.
11827 2014-09-03 James Hogan <james.hogan@imgtec.com>
11829 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11830 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11832 2014-09-03 Gary Benson <gbenson@redhat.com>
11834 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11835 ALL_DEBUG_ADDRESS_REGISTERS.
11837 2014-09-02 Gary Benson <gbenson@redhat.com>
11839 * i386-low.h: Renamed as...
11840 * x86-low.h: New file. All type, function and variable name
11841 prefixes changed from "i386_" to "x86_". All references updated.
11842 * i386-low.c: Renamed as...
11843 * x86-low.c: New file. All type, function and variable name
11844 prefixes changed from "i386_" to "x86_". All references updated.
11846 2014-09-02 Gary Benson <gbenson@redhat.com>
11848 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11849 (x86_linux_new_thread): Likewise.
11851 2014-08-29 Gary Benson <gbenson@redhat.com>
11853 * server.h (setjmp.h): Do not include.
11854 (toplevel): Do not declare.
11855 (common-exceptions.h): Include.
11856 (cleanups.h): Likewise.
11857 * server.c (toplevel): Do not define.
11858 (exit_code): New static global.
11859 (detach_or_kill_for_exit_cleanup): New function.
11860 (main): New function. Original main renamed to...
11861 (captured_main): New function.
11862 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11864 2014-08-29 Gary Benson <gbenson@redhat.com>
11866 * Makefile.in (SFILES): Add common/common-exceptions.c.
11867 (OBS): Add common-exceptions.o.
11868 (common-exceptions.o): New rule.
11869 * utils.c (prepare_to_throw_exception): New function.
11871 2014-08-29 Gary Benson <gbenson@redhat.com>
11873 * config.in: Regenerate.
11874 * configure: Likewise.
11876 2014-08-29 Gary Benson <gbenson@redhat.com>
11878 * Makefile.in (SFILES): Add common/cleanups.c.
11880 (cleanups.o): New rule.
11882 2014-08-29 Gary Benson <gbenson@redhat.com>
11884 * utils.c (internal_vwarning): New function.
11886 2014-08-28 Gary Benson <gbenson@redhat.com>
11888 * utils.h (fatal): Remove declaration.
11889 * utils.c (fatal): Remove function.
11891 2014-08-28 Gary Benson <gbenson@redhat.com>
11893 * tracepoint.c (gdb_agent_init): Replace fatal with
11895 (initialize_tracepoint): Likewise.
11897 2014-08-28 Gary Benson <gbenson@redhat.com>
11899 * remote-utils.c (remote_prepare): Replace fatal with error.
11901 2014-08-28 Gary Benson <gbenson@redhat.com>
11903 * linux-low.c (linux_async): Replace fatal with warning.
11904 Tidy up and return.
11905 (linux_start_non_stop): Return -1 if linux_async failed.
11907 2014-08-28 Gary Benson <gbenson@redhat.com>
11909 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11911 (i386_dr_low_get_addr): Remove vague comment.
11912 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11915 2014-08-28 Gary Benson <gbenson@redhat.com>
11917 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11918 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11920 (linux_resume_one_lwp): Likewise.
11921 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11923 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11924 with internal_error.
11925 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11926 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11927 (find_register_by_name): Replace fatal with internal_error.
11928 (find_regno): Likewise.
11929 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11930 * thread-db.c (thread_db_create_event): Likewise.
11931 (thread_db_load_search): Likewise.
11932 (try_thread_db_load_1): Likewise.
11933 * tracepoint.c (get_jump_space_head): Replace fatal with
11935 (claim_trampoline_space): Likewise.
11936 (have_fast_tracepoint_trampoline_buffer): Likewise.
11937 (cmd_qtstart): Likewise.
11938 (stop_tracing): Likewise.
11939 (fast_tracepoint_collecting): Likewise.
11940 (target_malloc): Likewise.
11941 (download_tracepoint): Likewise.
11942 (download_trace_state_variables): Replace check with gdb_assert.
11943 (upload_fast_traceframes): Replace fatal with internal_error.
11945 2014-08-19 Tom Tromey <tromey@redhat.com>
11946 Gary Benson <gbenson@redhat.com>
11948 * Makefile.in (SFILES): Add common/common-debug.c.
11949 (OBS): Add common-debug.o.
11950 (common-debug.o): New rule.
11951 * debug.h (debug_printf): Don't declare.
11952 * debug.c (debug_printf): Renamed and rewritten as...
11953 (debug_vprintf): New function.
11955 2014-08-19 Gary Benson <gbenson@redhat.com>
11957 * utils.h: Do not include print-utils.h.
11959 2014-08-19 Tom Tromey <tromey@redhat.com>
11960 Gary Benson <gbenson@redhat.com>
11962 * server.h: Add static assertion.
11963 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11965 2014-08-19 Tom Tromey <tromey@redhat.com>
11966 Gary Benson <gbenson@redhat.com>
11968 * Makefile.in (SFILES): Add common/errors.c.
11969 (OBS): Add errors.o.
11970 (IPA_OBS): Add errors-ipa.o.
11971 (errors.o): New rule.
11972 (errors-ipa.o): Likewise.
11973 * utils.h (perror_with_name, error, warning): Don't declare.
11974 * utils.c (warning): Renamed and rewritten as...
11975 (vwarning): New function.
11976 (error): Renamed and rewritten as...
11977 (verror): New function.
11978 (internal_error): Renamed and rewritten as...
11979 (internal_verror): New function.
11981 2014-08-07 Gary Benson <gbenson@redhat.com>
11983 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11984 * configure: Regenerate.
11985 * config.in: Likewise.
11986 * server.h: Do not include errno.h.
11987 * event-loop.c: Likewise.
11988 * hostio-errno.c: Likewise.
11989 * linux-low.c: Likewise.
11990 * remote-utils.c: Likewise.
11991 * spu-low.c: Likewise.
11992 * utils.c: Likewise.
11993 * gdbreplay.c: Unconditionally include errno.h.
11995 2014-08-07 Gary Benson <gbenson@redhat.com>
11997 * server.h: Do not include string.h.
11998 * event-loop.c: Likewise.
11999 * linux-low.c: Likewise.
12000 * regcache.c: Likewise.
12001 * remote-utils.c: Likewise.
12002 * spu-low.c: Likewise.
12003 * utils.c: Likewise.
12005 2014-08-07 Gary Benson <gbenson@redhat.com>
12007 * server.h: Do not include gdb_assert.h.
12009 2014-08-07 Gary Benson <gbenson@redhat.com>
12011 * server.h: Do not include common-utils.h.
12013 2014-08-07 Gary Benson <gbenson@redhat.com>
12015 * server.h: Do not include ptid.h.
12016 * notif.h: Likewise.
12018 2014-08-07 Gary Benson <gbenson@redhat.com>
12020 * server.h: Do not include gdb_locale.h.
12022 2014-08-07 Gary Benson <gbenson@redhat.com>
12024 * server.h: Do not include gdb/signals.h.
12025 * win32-low.c: Likewise.
12027 2014-08-07 Gary Benson <gbenson@redhat.com>
12029 * server.h: Do not include pathmax.h.
12031 2014-08-07 Gary Benson <gbenson@redhat.com>
12033 * server.h: Do not include libiberty.h.
12034 * linux-bfin-low.c: Likewise.
12036 2014-08-07 Gary Benson <gbenson@redhat.com>
12038 * server.h: Do not include ansidecl.h.
12040 2014-08-07 Gary Benson <gbenson@redhat.com>
12042 * linux-x86-low.c: Do not include stddef.h.
12043 * lynx-ppc-low.c: Likewise.
12044 * tracepoint.c: Likewise.
12046 2014-08-07 Gary Benson <gbenson@redhat.com>
12048 * server.h: Do not include stdarg.h.
12049 * nto-low.c: Likewise.
12051 2014-08-07 Gary Benson <gbenson@redhat.com>
12053 * server.h: Do not include stdlib.h.
12054 * inferiors.c: Likewise.
12055 * linux-low.c: Likewise.
12056 * regcache.c: Likewise.
12057 * spu-low.c: Likewise.
12058 * tracepoint.c: Likewise.
12059 * utils.c: Likewise.
12061 2014-08-07 Gary Benson <gbenson@redhat.com>
12063 * server.h: Do not include stdio.h.
12064 * linux-low.c: Likewise.
12065 * remote-utils.c: Likewise.
12066 * spu-low.c: Likewise.
12067 * utils.c: Likewise.
12068 * wincecompat.c: Likewise.
12070 2014-08-06 Gary Benson <gbenson@redhat.com>
12072 * regcache.c (init_register_cache): Move conditionals inside if.
12074 2014-08-06 Gary Benson <gbenson@redhat.com>
12076 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12078 2014-07-31 Gary Benson <gbenson@redhat.com>
12080 * ax.h: Do not include server.h.
12081 * gdbthread.h: Likewise.
12082 * lynx-low.h: Likewise.
12083 * notif.h: Likewise.
12085 2014-07-30 Gary Benson <gbenson@redhat.com>
12087 * server.h: Include common-defs.h.
12088 Do not include config.h or build-gnulib-gdbserver/config.h.
12090 2014-07-30 Gary Benson <gbenson@redhat.com>
12092 * hostio-errno.c: Move server.h to top of includes list.
12093 * inferiors.c: Likewise.
12094 * linux-x86-low.c: Likewise.
12095 * notif.c: Include server.h.
12097 2014-07-24 Tom Tromey <tromey@redhat.com>
12098 Gary Benson <gbenson@redhat.com>
12100 * server.h (CORE_ADDR): Now unsigned.
12102 2014-07-16 Pedro Alves <palves@redhat.com>
12104 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12106 2014-07-15 Pedro Alves <palves@redhat.com>
12108 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12111 2014-07-11 Pedro Alves <palves@redhat.com>
12113 * linux-low.c (kill_wait_lwp): New function, based on
12114 kill_one_lwp_callback, but use my_waitpid directly.
12115 (kill_one_lwp_callback, linux_kill): Use it.
12117 2014-06-23 Pedro Alves <palves@redhat.com>
12119 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12120 before setting DR0..DR3.
12122 2014-06-20 Gary Benson <gbenson@redhat.com>
12124 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12125 * configure: Regenerated.
12126 * config.in: Likewise.
12128 2014-06-20 Gary Benson <gbenson@redhat.com>
12130 * Makefile.in (SFILES): Update locations for files moved
12131 from common to nat.
12132 (object file files): Reordered.
12134 2014-06-20 Gary Benson <gbenson@redhat.com>
12136 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12137 (i386_dr_low_set_addr): Likewise.
12138 (i386_dr_low_get_addr): Likewise.
12139 (i386_dr_low_can_set_control): Likewise.
12140 (i386_dr_low_set_control): Likewise.
12141 (i386_dr_low_get_control): Likewise.
12142 (i386_dr_low_get_status): Likewise.
12143 (i386_get_debug_register_length): Likewise.
12144 * linux-x86-low.c (i386_dr_low_set_addr):
12145 Changed signature. Made static.
12146 (i386_dr_low_get_addr): Likewise.
12147 (i386_dr_low_set_control): Likewise.
12148 (i386_dr_low_get_control): Likewise.
12149 (i386_dr_low_get_status): Likewise.
12150 (i386_dr_low): New global variable.
12151 * win32-i386-low.c (i386_dr_low_set_addr):
12152 Changed signature. Made static.
12153 (i386_dr_low_get_addr): Likewise.
12154 (i386_dr_low_set_control): Likewise.
12155 (i386_dr_low_get_control): Likewise.
12156 (i386_dr_low_get_status): Likewise.
12157 (i386_dr_low): New global variable.
12159 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12161 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12162 * Makefile.in (AR, AR_FLAGS): Define.
12163 * configure: Regenerate.
12165 2014-06-19 Gary Benson <gbenson@redhat.com>
12167 * Makefile.in (i386-dregs.o): New rule.
12168 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12169 * i386-low.c (target.h): Remove include.
12170 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12171 (DR_CONTROL_SHIFT): Likewise.
12172 (DR_CONTROL_SIZE): Likewise.
12173 (DR_RW_EXECUTE): Likewise.
12174 (DR_RW_WRITE): Likewise.
12175 (DR_RW_READ): Likewise.
12176 (DR_RW_IORW): Likewise.
12177 (DR_LEN_1): Likewise.
12178 (DR_LEN_2): Likewise.
12179 (DR_LEN_4): Likewise.
12180 (DR_LEN_8): Likewise.
12181 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12182 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12183 (DR_ENABLE_SIZE): Likewise.
12184 (DR_LOCAL_SLOWDOWN): Likewise.
12185 (DR_GLOBAL_SLOWDOWN): Likewise.
12186 (DR_CONTROL_RESERVED): Likewise.
12187 (I386_DR_CONTROL_MASK): Likewise.
12188 (I386_DR_VACANT): Likewise.
12189 (I386_DR_LOCAL_ENABLE): Likewise.
12190 (I386_DR_GLOBAL_ENABLE): Likewise.
12191 (I386_DR_DISABLE): Likewise.
12192 (I386_DR_SET_RW_LEN): Likewise.
12193 (I386_DR_GET_RW_LEN): Likewise.
12194 (I386_DR_WATCH_HIT): Likewise.
12195 (i386_wp_op_t): Likewise.
12196 (i386_show_dr): Likewise.
12197 (i386_length_and_rw_bits): Likewise.
12198 (i386_insert_aligned_watchpoint): Likewise.
12199 (i386_remove_aligned_watchpoint): Likewise.
12200 (i386_handle_nonaligned_watchpoint): Likewise.
12201 i386_update_inferior_debug_regs(): Likewise.
12202 (i386_dr_insert_watchpoint): Likewise.
12203 (i386_dr_remove_watchpoint): Likewise.
12204 (i386_dr_region_ok_for_watchpoint): Likewise.
12205 (i386_dr_stopped_data_address): Likewise.
12206 (i386_dr_stopped_by_watchpoint): Likewise.
12208 2014-06-19 Gary Benson <gbenson@redhat.com>
12210 * i386-low.c (i386_dr_show): Renamed to
12211 i386_show_dr and made static. All uses updated.
12212 (i386_dr_length_and_rw_bits): Renamed to
12213 i386_length_and_rw_bits and made static.
12215 (i386_dr_insert_aligned_watchpoint): Renamed to
12216 i386_insert_aligned_watchpoint and made static.
12218 (i386_dr_remove_aligned_watchpoint): Renamed to
12219 i386_remove_aligned_watchpoint and made static.
12221 (i386_dr_update_inferior_debug_regs): Renamed to
12222 i386_update_inferior_debug_regs and made static.
12225 2014-06-18 Gary Benson <gbenson@redhat.com>
12227 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12228 (i386_dr_low_can_set_control): Likewise.
12229 (i386_get_debug_register_length): Likewise.
12230 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12231 (i386_dr_low_can_set_control): Likewise.
12232 (i386_get_debug_register_length): Likewise.
12234 2014-06-17 Gary Benson <gbenson@redhat.com>
12236 * i386-low.h (i386-dregs.h): New include.
12237 (DR_FIRSTADDR): Now in i386-dregs.h.
12238 (DR_LASTADDR): Likewise.
12239 (DR_NADDR): Likewise.
12240 (DR_STATUS): Likewise.
12241 (DR_CONTROL): Likewise.
12242 (i386_debug_reg_state): Likewise.
12243 (i386_dr_insert_watchpoint): Likewise.
12244 (i386_dr_remove_watchpoint): Likewise.
12245 (i386_dr_region_ok_for_watchpoint): Likewise.
12246 (i386_dr_stopped_data_address): Likewise.
12247 (i386_dr_stopped_by_watchpoint): Likewise.
12248 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12250 2014-06-18 Gary Benson <gbenson@redhat.com>
12252 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12253 i386_dr_insert_watchpoint.
12254 (i386_low_remove_watchpoint): Renamed to
12255 i386_dr_remove_watchpoint.
12256 (i386_low_region_ok_for_watchpoint): Renamed to
12257 i386_dr_region_ok_for_watchpoint.
12258 (i386_low_stopped_data_address): Renamed to
12259 i386_dr_stopped_data_address.
12260 (i386_low_stopped_by_watchpoint): Renamed to
12261 i386_dr_stopped_by_watchpoint.
12262 * i386-low.c (i386_show_dr): Renamed to
12263 i386_dr_show and made nonstatic. All uses updated.
12264 (i386_length_and_rw_bits): Renamed to
12265 i386_dr_length_and_rw_bits and made nonstatic.
12267 (i386_insert_aligned_watchpoint): Renamed to
12268 i386_dr_insert_aligned_watchpoint and made nonstatic.
12270 (i386_remove_aligned_watchpoint): Renamed to
12271 i386_dr_remove_aligned_watchpoint and made nonstatic.
12273 (i386_update_inferior_debug_regs): Renamed to
12274 i386_dr_update_inferior_debug_regs and made nonstatic.
12276 (i386_low_insert_watchpoint): Renamed to
12277 i386_dr_insert_watchpoint. All uses updated.
12278 (i386_low_remove_watchpoint): Renamed to
12279 i386_dr_remove_watchpoint. All uses updated.
12280 (i386_low_region_ok_for_watchpoint): Renamed to
12281 i386_dr_region_ok_for_watchpoint. All uses updated.
12282 (i386_low_stopped_data_address): Renamed to
12283 i386_dr_stopped_data_address. All uses updated.
12284 (i386_low_stopped_by_watchpoint): Renamed to
12285 i386_dr_stopped_by_watchpoint. All uses updated.
12287 2014-06-18 Gary Benson <gbenson@redhat.com>
12289 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12290 (i386_dr_low_can_set_control): Likewise.
12291 (i386_insert_aligned_watchpoint): New check.
12293 2014-06-18 Gary Benson <gbenson@redhat.com>
12295 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12298 2014-06-18 Gary Benson <gbenson@redhat.com>
12300 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12301 instead of fatal and error.
12302 (i386_handle_nonaligned_watchpoint): Likewise.
12304 2014-06-18 Gary Benson <gbenson@redhat.com>
12306 * i386-low.c (i386_get_debug_register_length): New macro.
12307 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12308 (i386_show_dr): Use debug_printf instead of fprintf. Use
12309 phex to format values.
12311 2014-06-18 Gary Benson <gbenson@redhat.com>
12313 * i386-low.h: Comment changes.
12314 * i386-low.c: Likewise.
12316 2014-06-18 Gary Benson <gbenson@redhat.com>
12318 * i386-low.c: Whitespace changes.
12320 2014-06-12 Tom Tromey <tromey@redhat.com>
12322 * utils.c (freeargv): Remove.
12324 2014-06-12 Tom Tromey <tromey@redhat.com>
12326 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12327 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12328 (parse_debug_format_options): Likewise.
12329 (gdbserver_usage): Likewise.
12330 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12331 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12332 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12334 ($(LIBGNU)): Depend on libiberty.
12335 (all-lib): Recurse into all subdirs.
12336 (install-only): Invoke "install" target in subdirs.
12337 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12339 * configure: Rebuild.
12340 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12341 for vasprintf, vsnprintf, or gettimeofday.
12342 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12345 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12347 * development.sh: Delete.
12348 * Makefile.in (config.status): Adjust dependency on development.sh.
12349 * configure.ac: Adjust development.sh source call.
12350 * configure: Regenerate.
12352 2014-06-02 Pedro Alves <palves@redhat.com>
12354 * ax.c (gdb_free_agent_expr): New function.
12355 * ax.h (gdb_free_agent_expr): New declaration.
12356 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12358 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12360 (clear_breakpoint_conditions_and_commands): New function.
12361 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12362 (clear_breakpoint_conditions_and_commands): New declaration.
12364 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12366 * linux-aarch64-low.c (asm/ptrace.h): Include.
12368 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12370 Fix TLS access for -static -pthread.
12371 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12372 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12373 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12375 2014-05-20 Pedro Alves <palves@redhat.com>
12377 * linux-aarch64-low.c (aarch64_insert_point)
12378 (aarch64_remove_point): No longer check whether the type is
12379 supported here. Adjust to new interface.
12380 (the_low_target): Install aarch64_supports_z_point_type as
12381 supports_z_point_type method.
12382 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12383 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12384 instead of a Z packet char. Adjust.
12385 (arm_supports_z_point_type): New function.
12386 (arm_insert_point, arm_remove_point): Adjust to new interface.
12387 (the_low_target): Install arm_supports_z_point_type.
12388 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12389 (cris_insert_point, cris_remove_point): Adjust to new interface.
12390 Don't check whether the type is supported here.
12391 (the_low_target): Install cris_supports_z_point_type.
12392 * linux-low.c (linux_supports_z_point_type): New function.
12393 (linux_insert_point, linux_remove_point): Adjust to new interface.
12394 * linux-low.h (struct linux_target_ops) <insert_point,
12395 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12396 raw_breakpoint pointer parameter.
12397 <supports_z_point_type>: New method.
12398 * linux-mips-low.c (mips_supports_z_point_type): New function.
12399 (mips_insert_point, mips_remove_point): Adjust to new interface.
12400 Use mips_supports_z_point_type.
12401 (the_low_target): Install mips_supports_z_point_type.
12402 * linux-ppc-low.c (the_low_target): Install NULL as
12403 supports_z_point_type method.
12404 * linux-s390-low.c (the_low_target): Install NULL as
12405 supports_z_point_type method.
12406 * linux-sparc-low.c (the_low_target): Install NULL as
12407 supports_z_point_type method.
12408 * linux-x86-low.c (x86_supports_z_point_type): New function.
12409 (x86_insert_point): Adjust to new insert_point interface. Use
12410 insert_memory_breakpoint. Adjust to new
12411 i386_low_insert_watchpoint interface.
12412 (x86_remove_point): Adjust to remove_point interface. Use
12413 remove_memory_breakpoint. Adjust to new
12414 i386_low_remove_watchpoint interface.
12415 (the_low_target): Install x86_supports_z_point_type.
12416 * lynx-low.c (lynx_target_ops): Install NULL as
12417 supports_z_point_type callback.
12418 * nto-low.c (nto_supports_z_point_type): New.
12419 (nto_insert_point, nto_remove_point): Adjust to new interface.
12420 (nto_target_ops): Install nto_supports_z_point_type.
12421 * mem-break.c: Adjust intro comment.
12422 (struct raw_breakpoint) <raw_type, size>: New fields.
12423 <inserted>: Update comment.
12424 <shlib_disabled>: Delete field.
12425 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12426 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12427 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12428 (raw_bkpt_type_to_target_hw_bp_type): New function.
12429 (find_enabled_raw_code_breakpoint_at): New function.
12430 (find_raw_breakpoint_at): New type and size parameters. Use them.
12431 (insert_memory_breakpoint): New function, based off
12432 set_raw_breakpoint_at.
12433 (remove_memory_breakpoint): New function.
12434 (set_raw_breakpoint_at): Reimplement.
12435 (set_breakpoint): New, based on set_breakpoint_at.
12436 (set_breakpoint_at): Reimplement.
12437 (delete_raw_breakpoint): Go through the_target->remove_point
12438 instead of assuming memory breakpoints.
12439 (find_gdb_breakpoint_at): Delete.
12440 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12441 (find_gdb_breakpoint): New function.
12442 (set_gdb_breakpoint_at): Delete.
12443 (z_type_supported): New function.
12444 (set_gdb_breakpoint_1): New function, loosely based off
12445 set_gdb_breakpoint_at.
12446 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12447 (delete_gdb_breakpoint_at): Delete.
12448 (delete_gdb_breakpoint_1): New function, loosely based off
12449 delete_gdb_breakpoint_at.
12450 (delete_gdb_breakpoint): New function.
12451 (clear_gdb_breakpoint_conditions): Rename to ...
12452 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12454 (add_condition_to_breakpoint): Make static.
12455 (add_breakpoint_condition): Take a struct breakpoint pointer
12456 instead of an address. Adjust.
12457 (gdb_condition_true_at_breakpoint): Rename to ...
12458 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12460 (gdb_condition_true_at_breakpoint): Reimplement.
12461 (add_breakpoint_commands): Take a struct breakpoint pointer
12462 instead of an address. Adjust.
12463 (gdb_no_commands_at_breakpoint): Rename to ...
12464 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12465 parameter. Return true if no breakpoint was found. Change debug
12467 (gdb_no_commands_at_breakpoint): Reimplement.
12468 (run_breakpoint_commands): Rename to ...
12469 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12470 and change return type to boolean.
12471 (run_breakpoint_commands): New function.
12472 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12473 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12474 breakpoint. Go through the_target->remove_point instead of
12475 assuming memory breakpoint.
12476 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12477 software and hardware breakpoints.
12478 (reinsert_raw_breakpoint): Go through the_target->insert_point
12479 instead of assuming memory breakpoint.
12480 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12481 software and hardware breakpoints.
12482 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12483 Check both software and hardware breakpoints.
12484 (validate_inserted_breakpoint): Assert the breakpoint is a
12485 software breakpoint. Set the inserted flag to -1 instead of
12486 setting shlib_disabled.
12487 (delete_disabled_breakpoints): Adjust.
12488 (validate_breakpoints): Only validate software breakpoints.
12489 Adjust to inserted flag change.
12490 (check_mem_read, check_mem_write): Skip breakpoint types other
12491 than software breakpoints. Adjust to inserted flag change.
12492 * mem-break.h (enum raw_bkpt_type): New enum.
12493 (raw_breakpoint, struct process_info): Forward declare.
12494 (Z_packet_to_target_hw_bp_type): Delete declaration.
12495 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12496 (set_gdb_breakpoint, delete_gdb_breakpoint)
12497 (clear_breakpoint_conditions): New declarations.
12498 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12499 (breakpoint_inserted_here): Update comment.
12500 (add_breakpoint_condition, add_breakpoint_commands): Replace
12501 address parameter with a breakpoint pointer parameter.
12502 (gdb_breakpoint_here): Update comment.
12503 (delete_gdb_breakpoint_at): Delete.
12504 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12505 * server.c (process_point_options): Take a struct breakpoint
12506 pointer instead of an address. Adjust.
12507 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12508 delete_gdb_breakpoint.
12509 * spu-low.c (spu_target_ops): Install NULL as
12510 supports_z_point_type method.
12511 * target.h: Include mem-break.h.
12512 (struct target_ops) <prepare_to_access_memory>: Update comment.
12513 <supports_z_point_type>: New field.
12514 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12515 instead of a char. Also take a raw breakpoint pointer.
12516 * win32-arm-low.c (the_low_target): Install NULL as
12517 supports_z_point_type.
12518 * win32-i386-low.c (i386_supports_z_point_type): New function.
12519 (i386_insert_point, i386_remove_point): Adjust to new interface.
12520 (the_low_target): Install i386_supports_z_point_type.
12521 * win32-low.c (win32_supports_z_point_type): New function.
12522 (win32_insert_point, win32_remove_point): Adjust to new interface.
12523 (win32_target_ops): Install win32_supports_z_point_type.
12524 * win32-low.h (struct win32_target_ops):
12525 <supports_z_point_type>: New method.
12526 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12527 instead of a char. Also take a raw breakpoint pointer.
12529 2014-05-20 Pedro Alves <palves@redhat.com>
12531 * mem-break.h: Include break-common.h.
12532 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12533 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12534 (Z_packet_to_target_hw_bp_type): New declaration.
12535 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12536 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12537 (Z_PACKET_ACCESS_WP): Delete macros.
12538 (Z_packet_to_hw_type): Delete function.
12539 * i386-low.h: Don't include break-common.h here.
12540 (Z_packet_to_hw_type): Delete declaration.
12541 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12542 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12543 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12544 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12545 * linux-aarch64-low.c: Don't include break-common.h here.
12546 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12547 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12548 (Z_packet_to_target_hw_bp_type): Delete function.
12549 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12551 (mips_insert_point, mips_remove_point): Use
12552 Z_packet_to_target_hw_bp_type.
12554 2014-05-20 Pedro Alves <palves@redhat.com>
12556 * linux-aarch64-low.c: Include break-common.h.
12557 (enum target_point_type): Delete.
12558 (Z_packet_to_point_type): Rename to ...
12559 (Z_packet_to_target_hw_bp_type): ... this, and return a
12560 target_hw_bp_type instead.
12561 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12562 instead of an enum target_point_type.
12563 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12565 (aarch64_dr_state_insert_one_point)
12566 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12567 (aarch64_handle_aligned_watchpoint)
12568 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12569 Take an enum target_hw_bp_type instead of an enum
12571 (aarch64_supports_z_point_type): New function.
12572 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12573 use Z_packet_to_target_hw_bp_type.
12575 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12577 * configure.ac: Only use -Werror by default when DEVELOPMENT
12579 * configure: Regenerate.
12581 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12583 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12584 * linux-x86-low.c (X86_64_USER_REGS): New.
12585 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12587 2014-04-28 Yao Qi <yao@codesourcery.com>
12589 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12592 2014-04-25 Pedro Alves <palves@redhat.com>
12595 * linux-low.c (linux_attach_fail_reason_string): New function.
12596 (linux_attach_lwp): Delete.
12597 (linux_attach_lwp_1): Rename to ...
12598 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12599 argument. Remove "initial" parameter. Return int instead of
12600 void. Don't error or warn here.
12601 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12602 failure to attach to the tgid. Call warning when failing to
12604 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12605 argument. Remove "initial" parameter. Return int instead of
12606 void. Don't error or warn here.
12607 (linux_attach_fail_reason_string): New declaration.
12608 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12609 interface change. Use linux_attach_fail_reason_string.
12611 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12612 Walfred Tedeschi <walfred.tedeschi@intel.com>
12614 * Makefile.in: Added rules to handle new files
12615 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12616 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12617 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12618 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12619 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12620 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12621 x32-avx512-linux.o.
12622 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12623 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12624 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12625 i386/x32-avx512.xml.
12626 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12627 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12628 i386/x32-avx512-linux.xml.
12629 * i387-fp.c (num_avx512_k_registers): New constant for number
12631 (num_avx512_zmmh_low_registers): New constant for number of
12632 lower ZMM registers (0-15).
12633 (num_avx512_zmmh_high_registers): New constant for number of
12634 higher ZMM registers (16-31).
12635 (num_avx512_ymmh_registers): New contant for number of higher
12636 YMM registers (ymm16-31 added by avx521 on x86_64).
12637 (num_avx512_xmm_registers): New constant for number of higher
12638 XMM registers (xmm16-31 added by AVX512 on x86_64).
12639 (struct i387_xsave): Add space for AVX512 registers.
12640 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12641 Add code to handle AVX512 registers.
12642 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12643 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12644 prototypei from generated file.
12645 (tdesc_amd64_avx512_linux): Likewise.
12646 (init_registers_x32_avx512_linux): Likewise.
12647 (tdesc_x32_avx512_linux): Likewise.
12648 (init_registers_i386_avx512_linux): Likewise.
12649 (tdesc_i386_avx512_linux): Likewise.
12650 (x86_64_regmap): Add AVX512 registers.
12651 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12653 (initialize_low_arch): Add code to initialize AVX512 registers.
12655 2014-04-23 Pedro Alves <palves@redhat.com>
12657 * mem-break.c (find_gdb_breakpoint_at): Make static.
12658 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12660 2014-04-23 Pedro Alves <palves@redhat.com>
12662 * i386-low.c: Don't include break-common.h here.
12663 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12664 prototype to take target_hw_bp_type as argument instead of a Z
12666 * i386-low.h: Include break-common.h here.
12667 (Z_packet_to_hw_type): Declare.
12668 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12670 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12671 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12672 (x86_remove_point): Convert the packet number to a
12673 target_hw_bp_type before calling i386_low_remove_watchpoint.
12674 * win32-i386-low.c (i386_insert_point): Convert the packet number
12675 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12676 (i386_remove_point): Convert the packet number to a
12677 target_hw_bp_type before calling i386_low_remove_watchpoint.
12679 2014-04-23 Pedro Alves <palves@redhat.com>
12681 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12683 2014-04-10 Pedro Alves <palves@redhat.com>
12685 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12686 Check if the condition or command is NULL before checking if the
12687 breakpoint is known. On success, return true.
12688 * mem-break.h (add_breakpoint_condition): Document return.
12689 (add_breakpoint_commands): Add describing comment.
12690 * server.c (skip_to_semicolon): New function.
12691 (process_point_options): Use it.
12693 2014-04-09 Pedro Alves <palves@redhat.com>
12695 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12698 2014-02-27 Pedro Alves <palves@redhat.com>
12701 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12703 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12705 (last_thread_of_process_p): Take a PID argument instead of a
12707 (linux_wait_for_lwp): Delete.
12708 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12710 (linux_low_filter_event): New function, party factored out from
12711 linux_wait_for_event.
12712 (linux_wait_for_event): Rename to ...
12713 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12714 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12715 sigsuspend. Check for zombie leaders.
12716 (linux_wait_for_event): Reimplement as wrapper around
12717 linux_wait_for_event_filtered.
12718 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12719 a normal or signal exit is seen, it's the whole process exiting.
12720 (wait_for_sigstop): No longer a for_each_inferior callback.
12721 Rewrite on top of linux_wait_for_event_filtered.
12722 (stop_all_lwps): Call wait_for_sigstop directly.
12723 * server.c (resume, handle_target_event): Handle
12724 TARGET_WAITKIND_NO_RESUMED.
12726 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12728 * win32-low.c (psapi_get_dll_name,
12729 * win32_CreateToolhelp32Snapshot): Delete.
12730 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12731 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12733 (handle_load_dll): Add function description.
12734 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12736 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12738 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12740 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12741 base address when calling win32_add_one_solib.
12742 (handle_load_dll): Delete local variable load_addr.
12743 Remove 0x1000 offset applied to DLL base address when calling
12744 win32_add_one_solib.
12745 (handle_unload_dll): Add comment.
12747 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12749 * win32-low.c (win32_add_all_dlls): Renames
12750 win32_ensure_ntdll_loaded. Rewrite function documentation.
12751 Adjust implementation to always load all DLLs.
12752 Add 0x1000 offset to DLL base address when calling
12753 win32_add_one_solib.
12754 (child_initialization_done): New static global.
12755 (do_initial_child_stuff): Set child_initialization_done to
12756 zero during child initialization, and 1 after. Replace call
12757 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12759 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12760 (handle_unload_dll): Add function documentation.
12761 (get_child_debug_event): Ignore load and unload DLL events
12762 during child initialization.
12764 2014-02-20 Doug Evans <dje@google.com>
12766 Remove global all_lwps.
12767 * inferiors.h (ptid_of): Move here from linux-low.h.
12768 (pid_of, lwpid_of): Ditto.
12769 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12770 parameter is a struct thread_info * now.
12771 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12772 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12773 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12775 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12776 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12777 * linux-arm-low.c (update_registers_callback): Update, "entry"
12778 parameter is a struct thread_info * now.
12779 Fetch lwpid from current_inferior directly.
12780 (arm_insert_point): Pass &all_threads to find_inferior instead of
12782 (arm_remove_point): Ditto.
12783 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12784 (arm_prepare_to_resume): Fetch pid from thread.
12785 (arm_read_description): Fetch lwpid from current_inferior directly.
12786 * linux-low.c (all_lwps): Delete.
12787 (delete_lwp): Delete call to remove_inferior.
12788 (handle_extended_wait): Fetch lwpid from thread.
12789 (add_lwp): Don't set lwp->entry.id. Remove call to
12790 add_inferior_to_list.
12791 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12792 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12793 (kill_one_lwp_callback): Ditto.
12794 (linux_kill): Don't dereference NULL pointer.
12795 Fetch ptid,lwpid from thread.
12796 (get_detach_signal): Fetch ptid from thread.
12797 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12798 Simplify call to regcache_invalidate_thread.
12799 (delete_lwp_callback): Update, "entry" parameter is a
12800 struct thread_info * now. Fetch pid from thread.
12801 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12802 (status_pending_p_callback): Update, "entry" parameter is a
12803 struct thread_info * now. Fetch ptid from thread.
12804 (find_lwp_pid): Update, "entry" parameter is a
12805 struct thread_info * now.
12806 (linux_wait_for_lwp): Fetch pid from thread.
12807 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12808 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12809 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12810 (dequeue_one_deferred_signal): Ditto.
12811 (cancel_breakpoint): Fetch ptid from current_inferior.
12812 (linux_wait_for_event): Pass &all_threads to find_inferior,
12813 not &all_lwps. Fetch ptid, lwpid from thread.
12814 (count_events_callback): Update, "entry" parameter is a
12815 struct thread_info * now.
12816 (select_singlestep_lwp_callback): Ditto.
12817 (select_event_lwp_callback): Ditto.
12818 (cancel_breakpoints_callback): Ditto.
12819 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12821 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12822 (unsuspend_one_lwp): Update, "entry" parameter is a
12823 struct thread_info * now.
12824 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12826 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12827 Fetch lwpid from thread, not lwp.
12828 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12829 Pass &all_threads to find_inferior, not &all_lwps.
12830 (send_sigstop): Fetch lwpid from thread, not lwp.
12831 (send_sigstop_callback): Update, "entry" parameter is a
12832 struct thread_info * now.
12833 (suspend_and_send_sigstop_callback): Ditto.
12834 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12835 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12836 struct thread_info * now.
12837 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12839 (lwp_running): Update, "entry" parameter is a
12840 struct thread_info * now.
12841 (stop_all_lwps): Fetch ptid from thread.
12842 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12843 (linux_resume_one_lwp): Fetch lwpid from thread.
12844 (linux_set_resume_request): Update, "entry" parameter is a
12845 struct thread_info * now. Fetch pid, lwpid from thread.
12846 (resume_status_pending_p): Update, "entry" parameter is a
12847 struct thread_info * now.
12848 (need_step_over_p): Ditto. Fetch lwpid from thread.
12849 (start_step_over): Fetch lwpid from thread.
12850 (linux_resume_one_thread): Update, "entry" parameter is a
12851 struct thread_info * now. Fetch lwpid from thread.
12852 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12853 (proceed_one_lwp): Update, "entry" parameter is a
12854 struct thread_info * now. Fetch lwpid from thread.
12855 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12856 struct thread_info * now.
12857 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12858 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12859 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12861 (regsets_store_inferior_registers): Ditto.
12862 (fetch_register, store_register): Ditto.
12863 (linux_read_memory, linux_write_memory): Ditto.
12864 (linux_request_interrupt): Ditto.
12865 (linux_read_auxv): Ditto.
12866 (linux_xfer_siginfo): Ditto.
12867 (linux_qxfer_spu): Ditto.
12868 (linux_qxfer_libraries_svr4): Ditto.
12869 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12870 moved to inferiors.h.
12872 (get_thread_lwp): Update.
12873 (struct lwp_info): Delete member "entry". Simplify comment for
12875 (all_lwps): Delete.
12876 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12877 current_inferior directly.
12878 (update_watch_registers_callback): Update, "entry" parameter is a
12879 struct thread_info * now. Fetch pid from thread.
12880 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12881 (mips_insert_point): Fetch lwpid from current_inferior.
12882 Pass &all_threads to find_inferior, not &all_lwps.
12883 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12884 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12886 (mips_stopped_data_address): Ditto.
12887 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12889 * linux-tile-low.c (tile_arch_setup): Ditto.
12890 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12891 (update_debug_registers_callback): Update, "entry" parameter is a
12892 struct thread_info * now. Fetch pid from thread.
12893 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12894 Pass &all_threads to find_inferior, not &all_lwps.
12895 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12896 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12897 Pass &all_threads to find_inferior, not &all_lwps.
12898 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12899 (i386_dr_low_get_status): Ditto.
12900 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12901 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12902 (x86_linux_read_description): Ditto.
12903 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12905 2014-02-20 Doug Evans <dje@google.com>
12907 * inferiors.c (get_first_inferior): Fix buglet.
12909 2014-02-19 Doug Evans <dje@google.com>
12911 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12912 * inferiors.c (add_thread): Change result type to struct thread_info *.
12913 All callers updated.
12914 (add_lwp): Call add_thread here instead of in callers.
12915 All callers updated.
12916 * linux-low.h (get_lwp_thread): Rewrite.
12917 (struct lwp_info): New member "thread".
12919 2014-02-19 Doug Evans <dje@google.com>
12921 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12922 All callers updated.
12924 2014-02-19 Doug Evans <dje@google.com>
12926 * inferiors.c (add_thread): Fix whitespace.
12928 2014-02-19 Doug Evans <dje@google.com>
12930 * dll.c (clear_dlls): Replace accessing list implemention details
12932 * gdbthread.h (get_first_thread): Declare.
12933 * inferiors.c (for_each_inferior_with_data): New function.
12934 (get_first_thread): New function.
12935 (find_thread_ptid): Simplify.
12936 (get_first_inferior): New function.
12937 (clear_list): Delete.
12938 (one_inferior_p): New function.
12939 (clear_inferior_list): New function.
12940 (clear_inferiors): Update.
12941 * inferiors.h (for_each_inferior_with_data): Declare.
12942 (clear_inferior_list): Declare.
12943 (one_inferior_p): Declare.
12944 (get_first_inferior): Declare.
12945 * linux-low.c (linux_wait_for_event): Replace accessing list
12946 implemention details with API function.
12947 * server.c (target_running): Ditto.
12948 (accumulate_file_name_length): New function.
12949 (emit_dll_description): New function.
12950 (handle_qxfer_libraries): Replace accessing list implemention
12951 details with API function.
12952 (handle_qxfer_threads_worker): New function.
12953 (handle_qxfer_threads_proper): Replace accessing list implemention
12954 details with API function.
12955 (handle_query): Ditto.
12956 (visit_actioned_threads_callback_ftype): New typedef.
12957 (visit_actioned_threads_data): New struct.
12958 (visit_actioned_threads): Rewrite to be find_inferior callback.
12959 (resume): Call find_inferior.
12960 (handle_status): Replace accessing list implemention
12961 details with API function.
12962 (process_serial_event): Replace accessing list implemention details
12964 * target.c (set_desired_inferior): Replace accessing list implemention
12965 details with API function.
12966 * tracepoint.c (same_process_p): New function.
12967 (gdb_agent_about_to_close): Replace accessing list implemention
12968 details with API function.
12969 * win32-low.c (child_delete_thread): Replace accessing list
12970 implemention details with API function.
12971 (match_dll_by_basename): New function.
12972 (dll_is_loaded_by_basename): New function.
12973 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12974 details call to dll_is_loaded_by_basename.
12976 2014-02-19 Doug Evans <dje@google.com>
12978 * dll.h (struct dll_info): Add comment.
12979 * gdbthread.h (struct thread_info): Add comment.
12980 (current_ptid): Simplify.
12981 * inferiors.c (add_process): Update.
12982 (remove_process): Update.
12983 * inferiors.h (struct process_info): Rename member "head" to "entry".
12984 * linux-low.c (delete_lwp): Update.
12986 (last_thread_of_process_p): Update.
12987 (kill_one_lwp_callback, linux_kill): Update.
12988 (status_pending_p_callback): Update.
12989 (wait_for_sigstop): Update. Simplify read of ptid.
12990 (start_step_over): Update.
12991 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12992 (get_lwp_thread): Update.
12993 (struct lwp_info): Rename member "head" to "entry".
12994 * regcache.h (inferior_list_entry): Delete.
12995 * server.c (kill_inferior_callback): Update.
12996 (detach_or_kill_inferior_callback): Update.
12997 (print_started_pid): Update.
12998 (print_attached_pid): Update.
12999 (process_serial_event): Simplify read of ptid.
13000 * thread-db.c (thread_db_create_event): Update.
13001 (thread_db_get_tls_address): Update.
13002 * win32-low.c (current_inferior_ptid): Simplify.
13004 2014-02-19 Tom Tromey <tromey@redhat.com>
13006 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13008 (target_supports_btrace): Update.
13010 2014-02-14 Yao Qi <yao@codesourcery.com>
13012 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13013 (rsp-low-ipa.o): New target.
13015 2014-02-12 Tom Tromey <tromey@redhat.com>
13017 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13018 convert_ascii_to_int.
13019 * regcache.c (registers_to_string): Likewise.
13020 * remote-utils.c (decode_M_packet): Likewise.
13021 * server.c (process_serial_event): Likewise.
13023 2014-02-12 Tom Tromey <tromey@redhat.com>
13025 * server.c (handle_query, handle_v_run): Use hex2bin, not
13027 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13029 2014-02-12 Tom Tromey <tromey@redhat.com>
13031 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13032 convert_int_to_ascii.
13033 * regcache.c (registers_to_string, collect_register_as_string):
13035 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13037 * server.c (process_serial_event): Likewise.
13038 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13039 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13041 2014-02-12 Tom Tromey <tromey@redhat.com>
13043 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13044 bin2hex, not hexify.
13045 * tracepoint.c (cmd_qtstatus): Likewise.
13047 2014-02-12 Tom Tromey <tromey@redhat.com>
13049 * remote-utils.c (monitor_output): Pass explicit length to
13052 2014-02-12 Tom Tromey <tromey@redhat.com>
13054 * tracepoint.c: Include rsp-low.h.
13055 * server.c: Include rsp-low.h.
13056 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13057 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13059 * remote-utils.c: Include rsp-low.h.
13060 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13061 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13062 (convert_int_to_ascii, convert_ascii_to_int): Move to
13064 * regcache.c: Include rsp-low.h.
13065 * ax.c: Include rsp-low.h.
13066 * Makefile.in (SFILES): Add common/rsp-low.c.
13067 (OBS): Add rsp-low.o.
13068 (rsp-low.o): New target.
13070 2014-02-12 Tom Tromey <tromey@redhat.com>
13072 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13073 Include print-utils.h.
13074 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13075 (plongest, thirty_two, phex_nz): Remove.
13076 * Makefile.in (SFILES): Add common/print-utils.c.
13077 (OBS): Add print-utils.o.
13078 (print-utils-ipa.o): New target.
13079 (print-utils.o): New target.
13080 (IPA_OBJS): Add print-utils-ipa.o.
13082 2014-02-06 Tom Tromey <tromey@redhat.com>
13084 * Makefile.in (SFILES): Fix indentation.
13086 2014-02-05 Doug Evans <dje@google.com>
13088 * linux-low.c (linux_wait_for_event): Improve comment.
13089 (linux_wait_1): Keep current_inferior in sync with event_child.
13091 2014-01-22 Doug Evans <dje@google.com>
13093 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13095 2014-01-22 Doug Evans <dje@google.com>
13097 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13098 * configure: Regenerate.
13099 * config.in: Regenerate.
13100 * Makefile.in (SFILES): Add debug.c.
13101 (OBS): Add debug.o.
13102 * debug.c: New file.
13103 * debug.h: New file.
13104 * linux-aarch64-low.c (*): Update all debugging printfs to use
13105 debug_printf instead of fprintf.
13106 * linux-arm-low.c (*): Ditto.
13107 * linux-cris-low.c (*): Ditto.
13108 * linux-crisv32-low.c (*): Ditto.
13109 * linux-m32r-low.c (*): Ditto.
13110 * linux-sparc-low.c (*): Ditto.
13111 * linux-x86.c (*): Ditto.
13112 * linux-low.c (*): Ditto.
13113 (linux_wait_1): Add calls to debug_enter, debug_exit.
13114 (linux_wait): Remove redundant debugging printf.
13115 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13116 (linux_resume, unstop_all_lwps): Ditto.
13117 * mem-break.c (*): Update all debugging printfs to use
13118 debug_printf instead of fprintf.
13119 * remote-utils.c (*): Ditto.
13120 * thread-db.c (*): Ditto.
13121 * server.c #include <ctype.h>, "gdb_vecs.h".
13122 (debug_threads): Moved to debug.c.
13123 (*): Update all debugging printfs to use debug_printf instead of
13125 (start_inferior): Replace call to fflush with call to debug_flush.
13126 (monitor_show_help): Mention set debug-format.
13127 (parse_debug_format_options): New function.
13128 (handle_monitor_command): Handle "monitor set debug-format".
13129 (gdbserver_usage): Mention --debug-format.
13130 (main): Parse --debug-format.
13131 * server.h (debug_threads): Declaration moved to debug.h.
13132 #include "debug.h".
13133 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13134 trace_debug_1 that uses debug_printf.
13135 (tracepoint_look_up_symbols): Update all debugging printfs to use
13136 debug_printf instead of fprintf.
13138 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13140 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13143 2014-01-17 Pedro Alves <palves@redhat.com>
13146 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13147 defined after including gdb_proc_service.h.
13149 2014-01-16 Doug Evans <dje@google.com>
13151 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13152 (match_dll): Use it.
13154 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13156 * target.h (target_ops) <read_btrace>: Change parameters and
13157 return type to allow error reporting.
13158 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13159 trace reading errors on.
13160 * linux-low.c (linux_low_read_btrace): Pass trace reading
13162 (linux_low_disable_btrace): New.
13164 2014-01-15 Doug Evans <dje@google.com>
13166 * inferiors.c (thread_id_to_gdb_id): Delete.
13167 * inferiors.h (thread_id_to_gdb_id): Delete.
13169 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13171 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13172 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13175 2014-01-08 Pedro Alves <palves@redhat.com>
13177 * server.c (handle_status): Don't discard previous queued stop
13178 replies or thread's pending status here.
13179 (main) <disconnection>: Do it here instead.
13181 2014-01-08 Pedro Alves <palves@redhat.com>
13183 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13184 * server.c (visit_actioned_threads, handle_pending_status): New
13186 (handle_v_cont): Factor out parts to ...
13187 (resume): ... this new function. If in all-stop, and a thread
13188 being resumed has a pending status, report it without actually
13190 (myresume): Adjust to use the new 'resume' function.
13191 (clear_pending_status_callback, set_pending_status_callback)
13192 (find_status_pending_thread_callback): New functions.
13193 (handle_status): Handle the case of multiple threads having
13194 interesting statuses to report. Report threads' real last signal
13195 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13196 with an interesting thread to report the status for, instead of
13197 always reporting the status of the first thread.
13199 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13201 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13202 * gdbreplay.c (gdbreplay_version): Likewise.
13204 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13206 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13207 iov.iov_len with the real length in use.
13209 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13211 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13212 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13213 for all targets that use win32-low.c.
13214 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13215 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13217 2013-12-13 Pedro Alves <palves@redhat.com>
13219 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13220 if equal to TARGET_WAITKIND_LOADED.
13221 * win32-low.c (cached_status): New static global.
13222 (win32_wait): Add declaration.
13223 (do_initial_child_stuff): Flush all initial pending debug events
13224 up to the initial breakpoint.
13225 (win32_wait): If CACHED_STATUS was set, return that instead
13226 of doing a real wait. Remove the code resuming the execution
13227 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13228 during the initial phase. Also remove the code changing
13229 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13230 TARGET_WAITKIND_STOPPED.
13232 2013-12-11 Yao Qi <yao@codesourcery.com>
13234 * notif.c (handle_notif_ack): Return 0 if no notification
13237 2013-11-20 Doug Evans <dje@google.com>
13239 * linux-low.c (linux_set_resume_request): Fix comment.
13241 2013-11-20 Doug Evans <dje@google.com>
13243 * linux-low.c (resume_status_pending_p): Tweak comment.
13245 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13247 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13248 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13249 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13250 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13251 (srv_amd64_regobj): Add amd64-mpx.o.
13252 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13253 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13254 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13255 * i387-fp.c (num_pl_bnd_register) Added constant.
13256 (num_pl_bnd_cfg_registers) Added constant.
13257 (struct i387_xsave) Added reserved area and MPX fields.
13258 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13259 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13261 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13262 (init_registers_amd64_mpx_linux): Declare new function.
13263 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13264 (x86_64_regmap): Add MPX registers.
13265 (x86_linux_read_description): Add MPX case.
13266 (initialize_low_arch): Initialize MPX targets.
13268 2013-11-18 Tom Tromey <tromey@redhat.com>
13270 * configure: Rebuild.
13271 * configure.ac: Don't check for stdlib.h.
13272 * gdbreplay.c: Unconditionally include stdlib.h.
13274 2013-11-18 Tom Tromey <tromey@redhat.com>
13276 * config.in: Rebuild.
13277 * configure: Rebuild.
13278 * configure.ac: Don't use AC_HEADER_DIRENT.
13280 2013-11-18 Tom Tromey <tromey@redhat.com>
13282 * server.h: Don't check HAVE_STRING_H.
13283 * gdbreplay.c: Don't check HAVE_STRING_H.
13284 * configure: Rebuild.
13286 2013-11-18 Tom Tromey <tromey@redhat.com>
13288 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13291 2013-11-08 Tom Tromey <tromey@redhat.com>
13293 * configure, config.in: Rebuild.
13294 * configure.ac: Remove unused configury.
13296 2013-11-08 Tom Tromey <tromey@redhat.com>
13298 * acinclude.m4: Include common.m4, codeset.m4.
13299 * configure, config.in: Rebuild.
13300 * configure.ac: Use GDB_AC_COMMON.
13302 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13304 * linux-s390-low.c (HWCAP_S390_TE): New define.
13305 (s390_arch_setup): Consider the TE field in the HWCAP for
13306 determining 'have_regset_tdb'.
13308 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13311 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13314 2013-10-02 Pedro Alves <palves@redhat.com>
13316 * server.c (process_serial_event): Don't output "GDBserver
13317 exiting" if GDB is connected through stdio.
13318 * target.c (mywait): Likewise, be silent if GDB is connected
13321 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13323 * lynx-low.c (lynx_add_threads_after_attach): New function.
13324 (lynx_attach): Remove call to add_thread. Add call to
13325 lynx_add_threads_after_attach instead.
13327 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13329 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13330 * config.in, configure: Regenerated.
13332 2013-09-18 Yao Qi <yao@codesourcery.com>
13335 * server.c (start_inferior): Clear 'resume_info'.
13337 2013-09-16 Jiong Wang <jiwang@tilera.com>
13339 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13342 2013-09-16 Jiong Wang <jiwang@tilera.com>
13344 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13345 linux-tile-low.o to srv_tgtobj.
13347 2013-09-16 Will Newton <will.newton@linaro.org>
13349 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13352 2013-09-06 Pedro Alves <palves@redhat.com>
13354 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13355 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13356 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13357 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13358 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13359 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13361 2013-09-06 Pedro Alves <palves@redhat.com>
13363 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13364 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13366 2013-09-06 Pedro Alves <palves@redhat.com>
13368 * linux-amd64-ipa.c: Include tracepoint.h.
13369 * linux-i386-ipa.c: Include tracepoint.h.
13371 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13373 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13374 (ps_get_thread_area): New function.
13376 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13378 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13379 (initialize_low_arch): Call init_registers_crisv32 rather than
13380 init_register_crisv32.
13382 2013-09-05 Pedro Alves <palves@redhat.com>
13384 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13386 * hostio.h: ... this new file.
13387 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13388 win32-low.c: Include hostio.h.
13390 2013-09-05 Pedro Alves <palves@redhat.com>
13392 * server.h (gdb_client_data, handler_func, callback_handler_func)
13393 (delete_file_handler, add_file_handler, append_callback_event)
13394 (delete_callback_event, start_event_loop, initialize_event_loop):
13395 Move to event-loop.h and include it.
13396 * event-loop.h: New file.
13398 2013-09-05 Pedro Alves <palves@redhat.com>
13400 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13401 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13402 (loaded_dll, unloaded_dll): Move to ...
13403 * dll.h: ... this new file.
13404 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13406 2013-09-05 Pedro Alves <palves@redhat.com>
13408 * server.h (current_process, get_thread_process, all_processes)
13409 (add_inferior_to_list, for_each_inferior, current_inferior)
13410 (remove_inferior, add_process, remove_process, find_process_pid)
13411 (have_started_inferiors_p, have_attached_inferiors_p)
13412 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13413 (clear_inferiors, find_inferior, find_inferior_id)
13414 (inferior_target_data, set_inferior_target_data)
13415 (inferior_regcache_data, set_inferior_regcache_data): Move to
13416 inferiors.h, and include it.
13417 * inferiors.h: New file.
13419 2013-09-05 Pedro Alves <palves@redhat.com>
13421 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13425 2013-09-05 Pedro Alves <palves@redhat.com>
13427 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13429 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13430 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13431 (handle_tracepoint_general_set, handle_tracepoint_query)
13432 (tracepoint_finished_step, tracepoint_was_hit)
13433 (release_while_stepping_state_list, current_traceframe)
13434 (in_readonly_region, traceframe_read_mem)
13435 (fetch_traceframe_registers, traceframe_read_sdata)
13436 (traceframe_read_info, struct fast_tpoint_collect_status)
13437 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13438 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13439 (supply_fast_tracepoint_registers)
13440 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13441 (ipa_tdesc, claim_trampoline_space)
13442 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13443 (agent_mem_read, agent_get_trace_state_variable_value)
13444 (agent_set_trace_state_variable_value, agent_tsv_read)
13445 (agent_mem_read_string, get_raw_reg_func_addr)
13446 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13447 * tracepoint.h: ... this new file.
13449 2013-09-05 Pedro Alves <palves@redhat.com>
13451 * server.h (perror_with_name, error, fatal, warning, paddress)
13452 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13454 * utils.h: New file.
13456 2013-09-05 Pedro Alves <palves@redhat.com>
13458 * server.h (remote_debug, noack_mode, transport_is_reliable)
13459 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13460 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13461 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13462 (write_enn, initialize_async_io, enable_async_io)
13463 (disable_async_io, check_remote_input_interrupt_request)
13464 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13465 (dead_thread_notify, prepare_resume_reply)
13466 (decode_address_to_semicolon, decode_address, decode_m_packet)
13467 (decode_M_packet, decode_X_packet, decode_xfer_write)
13468 (decode_search_memory_packet, unhexify, hexify)
13469 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13470 (look_up_one_symbol, relocate_instruction)
13471 (monitor_output): Move to remote-utils.h, and include it.
13472 * remote-utils.h: New file.
13474 2013-09-05 Pedro Alves <palves@redhat.com>
13476 * server.h (_): Delete.
13478 2013-09-02 Pedro Alves <palves@redhat.com>
13480 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13481 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13483 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13485 2013-09-02 Pierre Muller <muller@sourceware.org>
13487 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13488 or WriteProcessMemory complete successfully and handle
13489 ERROR_PARTIAL_COPY error.
13491 2013-09-02 Pedro Alves <palves@redhat.com>
13493 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13494 error instead of EIO.
13496 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13499 * linux-low.c: Include filestuff.h.
13500 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13501 * lynx-low.c: Include filestuff.h.
13502 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13503 * server.c: Include filestuff.h.
13504 (main): Call notice_open_fds.
13505 * spu-low.c: Include filestuff.h.
13506 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13508 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13510 * Makefile.in: Explain why ../target and ../nat are not
13511 listed as include file search paths.
13512 (linux-waitpid.o): New object file rule.
13513 * configure.srv (srv_native_linux_obj): New variable.
13514 Replace all occurrences of linux native object files with
13515 $srv_native_linux_obj.
13516 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13517 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13518 (linux_enable_event_reporting): Remove declaration.
13519 (my_waitpid): Moved to common/linux-waitpid.c.
13520 (linux_wait_for_event): Pass ptid when calling
13521 linux_enable_event_reporting.
13522 (linux_supports_tracefork_flag): Remove.
13523 (linux_enable_event_reporting): Likewise.
13524 (linux_tracefork_grandchild): Remove.
13525 (STACK_SIZE): Moved to common/linux-ptrace.c.
13526 (linux_tracefork_child): Remove.
13527 (linux_test_for_tracefork): Remove.
13528 (linux_look_up_symbols): Call linux_supports_traceclone.
13529 (initialize_low): Remove call to linux_test_for_tracefork.
13530 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13531 common/linux-ptrace.h.
13532 (PTRACE_TYPE_ARG4): Likewise.
13533 Include linux-ptrace.h.
13535 2013-08-21 Pedro Alves <palves@redhat.com>
13537 * config.in: Renegerate.
13539 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13541 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13542 (SFILES): Remove $(srcdir)/common/target-common.c and
13543 add $(srcdir)/target/waitstatus.c.
13544 (OBS): Remove target-common.o and add waitstatus.o.
13545 (server_h): Remove $(srcdir)/../common/target-common.h and
13546 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13547 and $(srcdir)/../target/waitstatus.h.
13548 (target-common.o): Remove.
13549 (waitstatus.o): New target object file.
13550 * target.h: Do not include target-common.h and
13551 include target/resume.h, target/wait.h and
13552 target/waitstatus.h.
13554 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13556 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13557 to PTRACE_TYPE_ARG3.
13558 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13559 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13561 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13562 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13564 2013-07-27 Jie Zhang <jie@codesourcery.com>
13565 Daniel Jacobowitz <dan@codesourcery.com>
13566 Yao Qi <yao@codesourcery.com>
13568 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13569 (mips-linux-watch.o): New rule.
13570 (mips_linux_watch_h): New variable.
13571 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13573 * linux-mips-low.c: Include mips-linux-watch.h.
13574 (struct arch_process_info, struct arch_lwp_info): New.
13575 (update_watch_registers_callback): New function.
13576 (mips_linux_new_process, mips_linux_new_thread) New functions.
13577 (mips_linux_prepare_to_resume, mips_insert_point): New
13579 (mips_remove_point, mips_stopped_by_watchpoint): New
13581 (rsp_bp_type_to_target_hw_bp_type): New function.
13582 (mips_stopped_data_address): New function.
13583 (the_low_target): Add watchpoint support functions.
13585 2013-07-27 Yao Qi <yao@codesourcery.com>
13587 * i386-low.c: Include break-common.h.
13588 (enum target_hw_bp_type): Remove.
13590 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13592 * Makefile.in (SFILES): /common/target-common.c.
13593 (OBS): Add target-common.o.
13594 (server_h): Add $(srcdir)/../common/target-common.h.
13595 (target-common.o): New target.
13596 * server.c (queue_stop_reply_callback): Free
13597 status string after use.
13598 * target.c (target_waitstatus_to_string): Remove.
13599 * target.h: Include target-common.h.
13600 (resume_kind): Likewise.
13601 (target_waitkind): Likewise.
13602 (target_waitstatus): Likewise.
13603 (TARGET_WNOHANG): Likewise.
13605 2013-07-04 Yao Qi <yao@codesourcery.com>
13607 * Makefile.in (host_alias): Use @host_noncanonical@.
13608 (target_alias): Use @target_noncanonical@.
13609 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13610 ACX_NONCANONICAL_HOST.
13611 * configure: Regenerated.
13614 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13616 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13617 * configure: Rebuild.
13618 * Makefile.in (version_host, version_target): Get from configure.
13619 (version.c): Use $(version_host) and $(version_target).
13621 2013-07-03 Pedro Alves <palves@redhat.com>
13623 * Makefile.in (config.status): Depend on development.sh.
13624 * acinclude.m4: Include libmcheck.m4.
13625 * configure: Regenerate.
13627 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13629 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13630 attribute inside the parentheses.
13631 (winapi_DebugSetProcessKillOnExit): Ditto.
13632 (winapi_DebugBreakProcess): Ditto.
13633 (winapi_GenerateConsoleCtrlEvent): Ditto.
13635 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13637 * notif.h (notif_event): Add a dummy member to avoid compiler
13640 2013-07-01 Pedro Alves <palves@redhat.com>
13642 * hostio.c (HOSTIO_PATH_MAX): Define.
13643 (require_filename, handle_open, handle_unlink, handle_readlink):
13646 2013-07-01 Pedro Alves <palves@redhat.com>
13648 * server.h: Include "pathmax.h".
13649 * linux-low.c: Don't include sys/param.h.
13650 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13652 * win32-low.c: Don't include sys/param.h.
13653 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13655 2013-07-01 Pedro Alves <palves@redhat.com>
13657 * event-loop.c: Don't check HAVE_UNISTD_H before including
13659 * gdbreplay.c: Likewise.
13660 * remote-utils.c: Likewise.
13661 * server.c: Likewise.
13662 * configure.ac: Don't check for unistd.h.
13663 * configure: Regenerate.
13665 2013-06-28 Tom Tromey <tromey@redhat.com>
13667 * Makefile.in (version.c): Use version.in, not
13670 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13672 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13673 * configure: Rebuild.
13674 * Makefile.in (version_host, version_target): Get from configure.
13675 (version.c): Use $(version_host) and $(version_target).
13677 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13679 Fix trace-status to output user name without trailing colon.
13680 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13682 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13684 Fix trace-status to output proper start-time and stop-time.
13685 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13686 output start time and stop time in hex as gdb expects.
13688 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13690 * tracepoint.c (build_traceframe_info_xml): Output trace state
13691 variables present in the trace buffer.
13693 2013-06-24 Tom Tromey <tromey@redhat.com>
13695 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13697 (version.o): Remove.
13698 * gdbreplay.c: Include version.h.
13699 (version, host_name): Don't declare.
13700 * server.h: Include version.h.
13701 (version, host_name): Don't declare.
13703 2013-06-12 Pedro Alves <palves@redhat.com>
13705 * linux-x86-low.c (linux_is_elf64): Delete global.
13706 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13707 with local linux_pid_exe_is_elf_64_file use.
13709 2013-06-11 Pedro Alves <palves@redhat.com>
13711 * linux-low.c (regset_disabled, disable_regset): New functions.
13712 (regsets_fetch_inferior_registers)
13713 (regsets_store_inferior_registers): Use them.
13714 (initialize_regsets_info); Don't allocate the disabled_regsets
13716 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13719 2013-06-11 Pedro Alves <palves@redhat.com>
13721 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13724 2013-06-11 Pedro Alves <palves@redhat.com>
13726 * linux-x86-low.c (initialize_low_arch): Call
13727 init_registers_x32_avx_linux.
13729 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13731 Fix compatibility with Android Bionic.
13732 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13735 2013-06-07 Pedro Alves <palves@redhat.com>
13738 * Makefile.in (OBS): Add tdesc.o.
13739 (IPA_OBJS): Add tdesc-ipa.o.
13740 (tdesc-ipa.o): New rule.
13741 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13743 * linux-low.c (new_inferior): Delete.
13744 (disabled_regsets, num_regsets): Delete.
13745 (linux_add_process): Adjust to set the new per-process
13747 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13748 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13749 was a stop. When calling arch_setup, switch the current inferior
13750 to the thread that got an event.
13751 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13752 (regsets_fetch_inferior_registers)
13753 (regsets_store_inferior_registers): New regsets_info parameter.
13755 (linux_register_in_regsets): New regs_info parameter. Adjust to
13757 (register_addr, fetch_register, store_register): New usrregs_info
13758 parameter. Adjust to use it.
13759 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13760 parameter regs_info. Adjust to use it.
13761 (linux_fetch_registers): Get the current inferior's regs_info, and
13763 (linux_store_registers): Ditto.
13764 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13765 (initialize_low): Don't initialize the target_regsets here. Call
13766 initialize_low_arch.
13767 * linux-low.h (target_regsets): Delete declaration.
13768 (struct regsets_info): New.
13769 (struct usrregs_info): New.
13770 (struct regs_info): New.
13771 (struct process_info_private) <new_inferior>: New field.
13772 (struct linux_target_ops): Delete the num_regs, regmap, and
13773 regset_bitmap fields. New field regs_info.
13774 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13775 * i387-fp.c (num_xmm_registers): Delete.
13776 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13777 calls to new interface.
13778 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13779 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13780 Infer the number of xmm registers from the regcache's target
13782 * i387-fp.h (num_xmm_registers): Delete.
13783 * inferiors.c (add_thread): Don't install the thread's regcache
13785 * proc-service.c (gregset_info): Fetch the current inferior's
13786 regs_info. Adjust to use it.
13787 * regcache.c: Include tdesc.h.
13788 (register_bytes, reg_defs, num_registers)
13789 (gdbserver_expedite_regs): Delete.
13790 (get_thread_regcache): If the thread doesn't have a regcache yet,
13791 create one, instead of aborting gdbserver.
13792 (regcache_invalidate_one): Rename to ...
13793 (regcache_invalidate_thread): ... this.
13794 (regcache_invalidate_one): New.
13795 (regcache_invalidate): Only invalidate registers of the current
13797 (init_register_cache): Add target_desc parameter, and use it.
13798 (new_register_cache): Ditto. Assert the target description has a
13799 non zero registers_size.
13800 (regcache_cpy): Add assertions. Adjust.
13801 (realloc_register_cache, set_register_cache): Delete.
13802 (registers_to_string, registers_from_string): Adjust.
13803 (find_register_by_name, find_regno, find_register_by_number)
13804 (register_cache_size): Add target_desc parameter, and use it.
13805 (free_register_cache_thread, free_register_cache_thread_one)
13806 (regcache_release, register_cache_size): New.
13807 (register_size): Add target_desc parameter, and use it.
13808 (register_data, supply_register, supply_register_zeroed)
13809 (supply_regblock, supply_register_by_name, collect_register)
13810 (collect_register_as_string, collect_register_by_name): Adjust.
13811 * regcache.h (struct target_desc): Forward declare.
13812 (struct regcache) <tdesc>: New field.
13813 (init_register_cache, new_register_cache): Add target_desc
13815 (regcache_invalidate_thread): Declare.
13816 (regcache_invalidate_one): Delete declaration.
13817 (regcache_release): Declare.
13818 (find_register_by_number, register_cache_size, register_size)
13819 (find_regno): Add target_desc parameter.
13820 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13822 * remote-utils.c: Include tdesc.h.
13823 (outreg, prepare_resume_reply): Adjust.
13824 * server.c: Include tdesc.h.
13825 (gdbserver_xmltarget): Delete declaration.
13826 (get_features_xml, process_serial_event): Adjust.
13827 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13829 (struct process_info) <tdesc>: New field.
13830 (ipa_tdesc): Declare.
13831 * tdesc.c: New file.
13832 * tdesc.h: New file.
13833 * tracepoint.c: Include tdesc.h.
13834 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13835 (get_context_regcache): Adjust to pass ipa_tdesc down.
13836 (do_action_at_tracepoint): Adjust to get the register cache size
13837 from the context regcache's description.
13838 (traceframe_walk_blocks): Adjust to get the register cache size
13839 from the current trace frame's description.
13840 (traceframe_get_pc): Adjust to get current trace frame's
13841 description and pass it down.
13842 (gdb_collect): Adjust to get the register cache size from the
13844 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13845 (gdbserver_xmltarget): Delete.
13846 (initialize_low_tracepoint): Set the ipa's target description.
13847 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13848 (initialize_low_tracepoint): Set the ipa's target description.
13849 * linux-x86-low.c: Include tdesc.h.
13850 [__x86_64__] (is_64bit_tdesc): New.
13851 (ps_get_thread_area, x86_get_thread_area): Use it.
13852 (i386_cannot_store_register): Rename to ...
13853 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13854 (i386_cannot_fetch_register): Rename to ...
13855 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13856 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13858 (target_regsets): Rename to ...
13859 (x86_regsets): ... this.
13860 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13862 (x86_siginfo_fixup): Use is_64bit_tdesc.
13863 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13864 (tdesc_x32_avx_linux, tdesc_x32_linux)
13865 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13867 (x86_linux_update_xmltarget): Delete.
13868 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13869 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13870 (AMD64_LINUX_USER64_CS): New.
13871 (x86_linux_read_description): New, based on
13872 x86_linux_update_xmltarget.
13873 (same_process_callback): New.
13874 (x86_arch_setup_process_callback): New.
13875 (x86_linux_update_xmltarget): New.
13876 (x86_regsets_info): New.
13877 (amd64_linux_regs_info): New.
13878 (i386_linux_usrregs_info): New.
13879 (i386_linux_regs_info): New.
13880 (x86_linux_regs_info): New.
13881 (x86_arch_setup): Reimplement.
13882 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13883 (x86_emit_ops): Ditto.
13884 (the_low_target): Adjust. Install x86_linux_regs_info,
13885 x86_cannot_fetch_register, and x86_cannot_store_register.
13886 (initialize_low_arch): New.
13887 * linux-ia64-low.c (tdesc_ia64): Declare.
13888 (ia64_fetch_register): Adjust.
13889 (ia64_usrregs_info, regs_info): New globals.
13890 (ia64_regs_info): New function.
13891 (the_low_target): Adjust.
13892 (initialize_low_arch): New function.
13893 * linux-sparc-low.c (tdesc_sparc64): Declare.
13894 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13896 (sparc_arch_setup): New function.
13897 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13898 (the_low_target): Adjust.
13899 (initialize_low_arch): New function.
13900 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13901 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13902 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13903 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13904 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13905 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13906 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13907 (tdesc_powerpc_isa205_vsx64l): Declare.
13908 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13909 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13910 (ppc_set_pc, ppc_get_hwcap): Adjust.
13911 (ppc_usrregs_info): Forward declare.
13912 (!__powerpc64__) ppc_regmap_adjusted: New global.
13913 (ppc_arch_setup): Adjust to the current process'es target
13915 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13916 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13917 (ppc_store_evrregset): Adjust.
13918 (target_regsets): Rename to ...
13919 (ppc_regsets): ... this, and make static.
13920 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13921 (ppc_regs_info): New function.
13922 (the_low_target): Adjust.
13923 (initialize_low_arch): New function.
13924 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13925 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13926 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13927 (tdesc_s390x_linux64v2): Declare.
13928 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13929 (s390_fill_gregset, s390_store_last_break): Adjust.
13930 (target_regsets): Rename to ...
13931 (s390_regsets): ... this, and make static.
13932 (s390_get_pc, s390_set_pc): Adjust.
13933 (s390_get_hwcap): New target_desc parameter, and use it.
13934 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13935 (s390_arch_setup): Adjust to set the current process'es target
13936 description. Don't adjust the regmap.
13937 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13938 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13939 (regs_info_3264): New globals.
13940 (s390_regs_info): New function.
13941 (the_low_target): Adjust.
13942 (initialize_low_arch): New function.
13943 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13944 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13945 [__mips64] (init_registers_mips_linux)
13946 (init_registers_mips_dsp_linux): Delete defines.
13947 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13948 (have_dsp): New global.
13949 (mips_read_description): New, based on mips_arch_setup.
13950 (mips_arch_setup): Reimplement.
13951 (get_usrregs_info): New function.
13952 (mips_cannot_fetch_register, mips_cannot_store_register)
13953 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13954 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13955 (target_regsets): Rename to ...
13956 (mips_regsets): ... this, and make static.
13957 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13958 (dsp_regs_info, regs_info): New globals.
13959 (mips_regs_info): New function.
13960 (the_low_target): Adjust.
13961 (initialize_low_arch): New function.
13962 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13963 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13965 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13966 (arm_read_description): New, with bits factored from
13968 (arm_arch_setup): Reimplement.
13969 (target_regsets): Rename to ...
13970 (arm_regsets): ... this, and make static.
13971 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13972 (arm_regs_info): New function.
13973 (the_low_target): Adjust.
13974 (initialize_low_arch): New function.
13975 * linux-m68k-low.c (tdesc_m68k): Declare.
13976 (target_regsets): Rename to ...
13977 (m68k_regsets): ... this, and make static.
13978 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13979 (m68k_regs_info): New function.
13980 (m68k_arch_setup): New function.
13981 (the_low_target): Adjust.
13982 (initialize_low_arch): New function.
13983 * linux-sh-low.c (tdesc_sharch): Declare.
13984 (target_regsets): Rename to ...
13985 (sh_regsets): ... this, and make static.
13986 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13987 (sh_regs_info, sh_arch_setup): New functions.
13988 (the_low_target): Adjust.
13989 (initialize_low_arch): New function.
13990 * linux-bfin-low.c (tdesc_bfin): Declare.
13991 (bfin_arch_setup): New function.
13992 (bfin_usrregs_info, regs_info): New globals.
13993 (bfin_regs_info): New function.
13994 (the_low_target): Adjust.
13995 (initialize_low_arch): New function.
13996 * linux-cris-low.c (tdesc_cris): Declare.
13997 (cris_arch_setup): New function.
13998 (cris_usrregs_info, regs_info): New globals.
13999 (cris_regs_info): New function.
14000 (the_low_target): Adjust.
14001 (initialize_low_arch): New function.
14002 * linux-cris-low.c (tdesc_crisv32): Declare.
14003 (cris_arch_setup): New function.
14004 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14005 (cris_regs_info): New function.
14006 (the_low_target): Adjust.
14007 (initialize_low_arch): New function.
14008 * linux-m32r-low.c (tdesc_m32r): Declare.
14009 (m32r_arch_setup): New function.
14010 (m32r_usrregs_info, regs_info): New globals.
14011 (m32r_regs_info): Adjust.
14012 (initialize_low_arch): New function.
14013 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14014 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14015 (tic6x_usrregs_info): Forward declare.
14016 (tic6x_read_description): New function, based on ...
14017 (tic6x_arch_setup): ... this. Reimplement.
14018 (target_regsets): Rename to ...
14019 (tic6x_regsets): ... this, and make static.
14020 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14021 (tic6x_regs_info): New function.
14022 (the_low_target): Adjust.
14023 (initialize_low_arch): New function.
14024 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14025 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14026 (target_regsets): Rename to ...
14027 (xtensa_regsets): ... this, and make static.
14028 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14030 (xtensa_arch_setup, xtensa_regs_info): New functions.
14031 (the_low_target): Adjust.
14032 (initialize_low_arch): New function.
14033 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14034 (nios2_arch_setup): Set the current process'es tdesc.
14035 (target_regsets): Rename to ...
14036 (nios2_regsets): ... this.
14037 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14038 (nios2_regs_info): New function.
14039 (the_low_target): Adjust.
14040 (initialize_low_arch): New function.
14041 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14042 (aarch64_arch_setup): Set the current process'es tdesc.
14043 (target_regsets): Rename to ...
14044 (aarch64_regsets): ... this.
14045 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14046 (aarch64_regs_info): New function.
14047 (the_low_target): Adjust.
14048 (initialize_low_arch): New function.
14049 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14051 (target_regsets): Rename to ...
14052 (tile_regsets): ... this.
14053 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14054 (tile_regs_info): New function.
14055 (tile_arch_setup): Set the current process'es tdesc.
14056 (the_low_target): Adjust.
14057 (initialize_low_arch): New function.
14058 * spu-low.c (tdesc_spu): Declare.
14059 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14060 * win32-arm-low.c (tdesc_arm): Declare.
14061 (arm_arch_setup): New function.
14062 (the_low_target): Install arm_arch_setup instead of
14063 init_registers_arm.
14064 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14065 (init_windows_x86): Rename to ...
14066 (i386_arch_setup): ... this. Set `win32_tdesc'.
14067 (the_low_target): Adjust.
14068 * win32-low.c (win32_tdesc): New global.
14069 (child_add_thread): Don't create the thread cache here.
14070 (do_initial_child_stuff): Set the new process'es tdesc.
14071 * win32-low.h (struct target_desc): Forward declare.
14072 (win32_tdesc): Declare.
14073 * lynx-i386-low.c (tdesc_i386): Declare global.
14074 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14075 * lynx-low.c (lynx_tdesc): New global.
14076 (lynx_add_process): Set the new process'es tdesc.
14077 * lynx-low.h (struct target_desc): Forward declare.
14078 (lynx_tdesc): Declare global.
14079 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14080 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14081 * nto-low.c (nto_tdesc): New global.
14082 (do_attach): Set the new process'es tdesc.
14083 * nto-low.h (struct target_desc): Forward declare.
14084 (nto_tdesc): Declare.
14085 * nto-x86-low.c (tdesc_i386): Declare.
14086 (nto_x86_arch_setup): Set `nto_tdesc'.
14088 2013-06-04 Gary Benson <gbenson@redhat.com>
14090 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14091 to qSupported response when appropriate.
14092 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14093 with nonzero-length annex.
14094 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14095 arguments supplied in annex.
14097 2013-05-31 Doug Evans <dje@google.com>
14100 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14101 64 bits in 64-cross-32 environment.
14103 2013-05-28 Pedro Alves <palves@redhat.com>
14105 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14106 (aarch64-without-fpu.c): Delete rule.
14107 * configure.srv (aarch64*-*-linux*): Remove references to
14108 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14109 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14112 2013-05-24 Pedro Alves <palves@redhat.com>
14114 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14115 instead of strchr/decode_address. Error if the range isn't split
14116 with a ','. Don't assume there's be a ':' in the action.
14118 2013-05-23 Yao Qi <yao@codesourcery.com>
14119 Pedro Alves <palves@redhat.com>
14121 * linux-low.c (lwp_in_step_range): New function.
14122 (linux_wait_1): If the thread was range stepping and stopped
14123 outside the stepping range, report the stop to GDB. Otherwise,
14124 continue stepping. Add range stepping debug output.
14125 (linux_set_resume_request): Copy the step range from the resume
14126 request to the lwp.
14127 (linux_supports_range_stepping): New.
14128 (linux_target_ops) <supports_range_stepping>: Set to
14129 linux_supports_range_stepping.
14130 * linux-low.h (struct linux_target_ops)
14131 <supports_range_stepping>: New field.
14132 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14133 * linux-x86-low.c (x86_supports_range_stepping): New.
14134 (the_low_target) <supports_range_stepping>: Set to
14135 x86_supports_range_stepping.
14136 * server.c (handle_v_cont): Handle 'r' action.
14137 (handle_v_requests): Append ";r" if the target supports range
14139 * target.h (struct thread_resume) <step_range_start,
14140 step_range_end>: New fields.
14141 (struct target_ops) <supports_range_stepping>:
14143 (target_supports_range_stepping): New macro.
14145 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14147 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14148 confusion in comment.
14150 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14152 * lynx-low.c (struct process_info_private): New type.
14153 (lynx_add_process): New function.
14154 (lynx_create_inferior, lynx_attach): Replace calls to
14155 add_process by calls to lynx_add_process.
14156 (lynx_resume): If PTID is null, then try using
14157 current_process()->private->last_wait_event_ptid.
14159 (lynx_clear_inferiors): Delete. The contents of that function
14160 has been inlined in lynx_mourn;
14161 (lynx_wait_1): Save the ptid in the process's private data.
14162 (lynx_mourn): Free the process' private data. Replace call
14163 to lynx_clear_inferiors by call to clear_inferiors.
14165 2013-05-17 Yao Qi <yao@codesourcery.com>
14167 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14170 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14172 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14173 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14174 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14175 PT_TEXT_END_ADDR guards. Update comments.
14176 (linux_target_op) <read_offsets>: Conditionally define to
14177 linux_read_offsets if the target is UCLIBC and if it defines
14178 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14180 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14181 Andrew Jenner <andrew@codesourcery.com>
14183 * Makefile.in (SFILES): Add linux-nios2-low.c.
14184 (clean): Add action to delete nios2-linux.c.
14185 (nios2-linux.c): New rule.
14186 * configure.srv: Add nios2*-*-linux*.
14187 * linux-nios2-low.c: New.
14189 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14191 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14193 2013-04-25 Hui Zhu <hui@codesourcery.com>
14196 * ax.c (ax_printf): Add fflush.
14198 2013-04-22 Tom Tromey <tromey@redhat.com>
14200 * Makefile.in (SFILES): Add filestuff.c.
14201 (OBS): Add filestuff.o.
14202 (filestuff.o): New target.
14203 * config.in, configure: Rebuild.
14204 * configure.ac: Check for fdwalk, pipe2.
14206 2013-04-17 Pedro Alves <palves@redhat.com>
14208 * configure.ac (USE_THREAD_DB): Delete variable.
14209 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14210 Don't AC_SUBST USE_THREAD_DB.
14211 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14212 * config.in, configure: Regenerate.
14214 2013-04-16 Pedro Alves <palves@redhat.com>
14216 * linux-low.h (struct lwp_info) <thread_known>: Move under
14217 the USE_THREAD_DB #ifdef.
14219 2013-04-16 Pedro Alves <palves@redhat.com>
14221 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14222 (linux-low.o): Delete rule.
14223 * linux-low.h: Always include "gdb_thread_db.h" instead of
14224 conditionally including thread_db.h.
14225 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14228 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14230 * Makefile.in (install-only): Fix make install regression.
14232 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14234 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14235 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14237 * gdbserver.1: Remove.
14239 2013-03-22 Pedro Alves <palves@redhat.com>
14241 * linux-low.c (handle_extended_wait): Don't call
14242 linux_enable_event_reporting.
14244 2013-03-15 Tony Theodore <tonyt@logyst.com>
14247 * Makefile.in (SHELL): Use @SHELL@.
14249 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14251 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14254 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14256 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14257 Remove extraneous NULL element.
14259 2013-03-13 Yao Qi <yao@codesourcery.com>
14261 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14262 'V' block in trace frame.
14264 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14266 * target.h (struct target_ops): Add btrace ops.
14267 (target_supports_btrace): New macro.
14268 (target_enable_btrace): New macro.
14269 (target_disable_btrace): New macro.
14270 (target_read_btrace): New macro.
14271 * gdbthread.h (struct thread_info): Add btrace field.
14272 * server.c: Include btrace-common.h.
14273 (handle_btrace_general_set): New function.
14274 (handle_btrace_enable): New function.
14275 (handle_btrace_disable): New function.
14276 (handle_general_set): Call handle_btrace_general_set.
14277 (handle_qxfer_btrace): New function.
14278 (struct qxfer qxfer_packets[]): Add btrace entry.
14279 * inferiors.c (remove_thread): Disable btrace.
14280 * linux-low: Include linux-btrace.h.
14281 (linux_low_enable_btrace): New function.
14282 (linux_low_read_btrace): New function.
14283 (linux_target_ops): Add btrace ops.
14284 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14285 Add srv_linux_btrace=yes.
14286 (x86_64-*-linux*): Add linux-btrace.o.
14287 Add srv_linux_btrace=yes.
14288 * configure.ac: Define HAVE_LINUX_BTRACE.
14289 * config.in: Regenerated.
14290 * configure: Regenerated.
14292 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14294 * server.c (handle_qxfer): Preserve error message if -3 is
14296 (qxfer): Document the -3 return value.
14298 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14300 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14301 (linux_btrace_h): New variable.
14302 (linux-btrace.o): New rule.
14304 2013-03-08 Stan Shebs <stan@codesourcery.com>
14305 Hafiz Abid Qadeer <abidh@codesourcery.com>
14307 * tracepoint.c (trace_buffer_size): New global.
14308 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14309 (init_trace_buffer): Change to one-argument function. Allocate
14310 trace buffer memory.
14311 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14312 handle QTBuffer:size packet.
14313 (cmd_bigqtbuffer_size): New function.
14314 (initialize_tracepoint): Call init_trace_buffer with
14315 DEFAULT_TRACE_BUFFER_SIZE.
14316 * server.c (handle_query): Add QTBuffer:size in the
14319 2013-03-07 Yao Qi <yao@codesourcery.com>
14321 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14322 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14324 (cmd_qtsp): Adjust condition. Do post increment.
14325 Set cur_action and cur_step_action back to 0.
14327 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14330 * linux-low.c (linux_write_memory): Return early success if LEN is
14333 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14335 * configure.srv: Add x86_64-*-cygwin* as target.
14337 2013-02-28 Tom Tromey <tromey@redhat.com>
14339 * configure.ac: Invoke AC_SYS_LARGEFILE.
14340 * configure, config.in: Rebuild.
14342 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14344 * win32-low.c: Throughout, fix format strings and casts of
14345 printf-like functions to avoid type related warnings on all
14347 (get_child_debug_event): Print dwDebugEventCode as hex since
14348 that's how it's usually documented.
14350 2013-02-28 Yao Qi <yao@codesourcery.com>
14352 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14355 2013-02-27 Jiong Wang <jiwang@tilera.com>
14357 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14358 (reg-tilegx32.c): New rule.
14359 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14360 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14361 different register info initializer according to elf class.
14362 (init_registers_tilgx32): New function. The tilegx32 register info
14364 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14365 (tile_store_gregset): Likewise.
14367 2013-02-27 Yao Qi <yao@codesourcery.com>
14369 * server.c (process_point_options): Print debug message when
14370 debug_threads is true.
14372 2013-02-26 Yao Qi <yao@codesourcery.com>
14374 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14376 2013-02-19 Pedro Alves <palves@redhat.com>
14377 Kai Tietz <ktietz@redhat.com>
14381 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14382 instead of strtoul to extract address from packet.
14383 (process_serial_event) <'z'>: Likewise.
14385 2013-02-18 Yao Qi <yao@codesourcery.com>
14387 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14389 2013-02-14 Pedro Alves <palves@redhat.com>
14393 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14394 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14396 2013-02-14 Pedro Alves <palves@redhat.com>
14398 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14400 2013-02-14 Pedro Alves <palves@redhat.com>
14402 * tracepoint.c (save_string): Delete.
14403 (add_tracepoint_action): Use savestring instead of save_string.
14405 2013-02-12 Pedro Alves <palves@redhat.com>
14407 * linux-xtensa-low.c: Ditto.
14408 * xtensa-xtregs.c: Ditto.
14410 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14412 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14415 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14417 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14418 aarch64_num_wp_regs and aarch64_num_bp_regs to
14419 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14421 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14423 * linux-aarch64-low.c (ps_get_thread_area): Replace
14424 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14426 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14427 Marcus Shawcroft <marcus.shawcroft@arm.com>
14428 Nigel Stephens <nigel.stephens@arm.com>
14429 Yufeng Zhang <yufeng.zhang@arm.com>
14431 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14432 (aarch64.c, aarch64-without-fpu.c): New targets.
14433 * configure.srv (aarch64*-*-linux*): New.
14434 * linux-aarch64-low.c: New file.
14436 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14438 * linux-low.c (handle_extended_wait, linux_create_inferior)
14439 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14440 (dequeue_one_deferred_signal, linux_resume_one_thread)
14441 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14442 (linux_tracefork_grandchild, linux_test_for_tracefork)
14443 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14444 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14445 where the argument is 0.
14447 2013-01-25 Yao Qi <yao@codesourcery.com>
14449 * event-loop.c: Include "queue.h".
14450 (gdb_event_p): New typedef.
14451 (struct gdb_event) <next_event>: Remove.
14452 (event_queue): Change to QUEUE(gdb_event_p).
14453 (async_queue_event): Remove.
14454 (gdb_event_xfree): New.
14455 (initialize_event_loop): New.
14456 (process_event): Use API from QUEUE.
14457 (wait_for_event): Likewise.
14458 * server.c (main): Call initialize_event_loop.
14459 * server.h (initialize_event_loop): Declare.
14461 2013-01-18 Yao Qi <yao@codesourcery.com>
14463 * ax.h (struct eval_agent_expr_context): New.
14464 (gdb_eval_agent_expr): Update declaration.
14465 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14466 TFRAME. Add new argument CTX.
14467 * server.h (struct eval_agent_expr_context): Declare.
14468 (agent_mem_read, agent_tsv_read): Update declaration.
14469 (agent_mem_read_string): Likewise.
14470 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14471 (add_traceframe_block): Add new argument TPOINT.
14472 Increase TPOINT->traceframe_usage.
14473 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14474 eval_tracepoint_agent_expr.
14475 (condition_true_at_tracepoint): Likewise.
14476 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14477 (agent_mem_read_string, agent_tsv_read): Likewise.
14479 2013-01-16 Yao Qi <yao@codesourcery.com>
14481 * linux-low.c (linux_resume_one_lwp): Don't check
14482 'lwp->bp_reinsert != 0'.
14484 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14485 Pedro Alves <palves@redhat.com>
14487 * lynx-low.c (ptrace_request_to_str): Define a temporary
14488 macro and use it to simplify this function's implementation.
14490 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14492 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14495 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14497 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14499 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14501 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14503 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14505 * lynx-low.c (lynx_resume): Use the resume_info parameter
14506 to determine the ptid for the lynx_ptrace call, unless
14507 it is equal to minus_one_ptid, in which case we use the
14508 ptid of the current_inferior.
14509 (lynx_wait_1): After having received a thread create/exit
14510 event, resume the inferior's execution using the signaling
14511 thread's ptid, rather than the old ptid.
14513 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14515 * lynx-low.c (lynx_resume): Delete variable ret.
14517 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14519 * gdbreplay.c (gdbreplay_version): Update copyright year.
14520 * server.c (gdbserver_version): Likewise.
14522 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14524 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14527 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14529 * lynx-low.c (ptrace_request_to_str): Add handling for
14530 PTRACE_GETTRACESIG.
14532 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14534 * lynx-low.c (lynx_attach): Delete variable new_process.
14536 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14538 * lynx-low.c (lynx_create_inferior): Delete variable
14541 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14543 * lynx-low.c (ptrace_request_to_str): Do not handle
14544 PTRACE_GETTHREADLIST if this macro does not exist.
14546 2012-12-15 Yao Qi <yao@codesourcery.com>
14548 * Makefile.in (OBS): Add notif.o.
14549 * notif.c, notif.h: New.
14550 * server.c: Include "notif.h".
14551 (struct vstop_notif) <next>: Remove.
14553 (queue_stop_reply): Update.
14554 (push_event, send_next_stop_reply): Remove.
14555 (discard_queued_stop_replies): Update.
14556 (notif_stop): New variable.
14557 (handle_v_stopped): Remove.
14558 (handle_v_requests): Don't call handle_v_stopped. Call
14559 handle_ack_notif instead.
14560 (queue_stop_reply_callback): Call notif_event_enque instead
14561 of queue_stop_reply.
14562 (handle_status): Don't call send_next_stop_reply, call
14563 notif_write_event instead.
14564 (kill_inferior_callback): Likewise.
14565 (detach_or_kill_inferior_callback): Likewise.
14566 (main): Call initialize_notif.
14567 (process_serial_event): Call QUEUE_is_empty.
14568 (handle_target_event): Call notif_push instead of push event.
14569 * server.h (push_event): Remove declaration.
14571 2012-12-10 Tom Tromey <tromey@redhat.com>
14573 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14574 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14577 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14578 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14579 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14580 (amd64-linux-ipa.o, ax.o): Rewrite.
14581 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14582 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14583 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14584 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14585 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14586 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14587 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14588 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14589 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14590 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14591 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14592 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14593 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14594 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14595 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14596 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14597 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14598 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14599 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14600 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14601 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14602 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14603 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14604 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14605 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14606 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14607 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14608 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14609 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14610 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14611 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14612 (reg-tilegx.o): Remove.
14613 (all_object_files): New macro.
14614 Include .deps files.
14615 * aclocal.m4, configure: Rebuild.
14616 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14617 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14618 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14620 2012-12-05 Tom Tromey <tromey@redhat.com>
14623 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14625 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14627 * configure.ac: Check for linux/perf_event.h.
14628 * config.in: Regenerated.
14629 * configure: Regenerated.
14631 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14633 * hostio.c (handle_readlink): Decrease buffer size
14634 parameter passed to readlink by one byte.
14636 2012-11-26 Yao Qi <yao@codesourcery.com>
14638 * configure.ac (build_warnings): Append '-Wempty-body'.
14639 * configure: Regenerated.
14640 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14643 2012-11-15 Pierre Muller <muller@sourceware.org>
14645 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14646 * config.in: Regenerate.
14647 * configure: Regenerate.
14648 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14649 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14650 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14651 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14653 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14654 instead of <sys/wait.h> header.
14655 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14657 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14659 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14660 (various make rules): Remove -DGDBSERVER
14662 2012-11-09 Yao Qi <yao@codesourcery.com>
14664 * spu-low.c (current_ptid): Move it to ..
14665 * gdbthread.h: ... here. New.
14666 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14667 * server.c (myresume, process_serial_event): Likewise.
14668 * thread-db.c (thread_db_find_new_threads): Likewise.
14669 * tracepoint.c (run_inferior_command): Likewise.
14671 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14673 * server.c (handle_search_memory_1): Include access length in
14676 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14678 * linux-crisv32-low.c: Fix compile errors.
14680 2012-09-04 Yao Qi <yao@codesourcery.com>
14682 * tracepoint.c (cmd_qtsv): Adjust debug message.
14683 Don't check CUR_TPOINT.
14685 2012-08-28 Yao Qi <yao@codesourcery.com>
14687 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14688 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14689 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14690 Remove declarations of xmalloc, xreallloc, xstrdup and
14692 * Makefile.in (libiberty_h): New.
14693 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14694 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14696 2012-08-23 Yao Qi <yao@codesourcery.com>
14698 * server.h: Remove declaration of 'xsnprintf'.
14700 2012-08-22 Keith Seitz <keiths@redhat.com>
14702 * server.h: Include build-gnulib-gbserver/config.h.
14703 * gdbreplay.c: Likewise.
14705 2012-08-08 Doug Evans <dje@google.com>
14707 * Makefile.in (SFILES): Add gdb_vecs.c.
14708 (OBS): Add gdb_vecs.o.
14709 (gdb_vecs_h, host_defs_h): New variables.
14710 (thread-db.o): Add $(gdb_vecs_h) dependency.
14711 (gdb_vecs.o): New rule.
14712 * thread-db.c: #include "gdb_vecs.h".
14713 (thread_db_load_search): Use a vector to iterate over path elements.
14714 Handle text appearing after "$pdir".
14716 * configure.ac: Add check for strstr.
14717 * config.in: Regenerate.
14718 * configure: Regenerate.
14720 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14722 * hostio.c (handle_pread): If pread fails, fall back to attempting
14724 (handle_pwrite): Likewise for pwrite.
14726 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14728 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14729 between unsupported TYPE and unimplementable ADDR/LEN combination.
14730 (arm_insert_point): Act on new return value.
14732 2012-07-31 Pedro Alves <palves@redhat.com>
14734 * server.c (process_point_options): Only skip tokens if we find
14735 one that is unrecognized. Don't treat 'X' specially while
14736 skipping unrecognized tokens.
14738 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14740 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14741 to 4-byte-align HW breakpoint addresses for Thumb.
14743 2012-07-27 Yao Qi <yao@codesourcery.com>
14747 * server.h: Declare gdb_agent_about_to_close.
14748 * target.c (kill_inferior): Include "agent.h".
14749 New. Send command 'kill'.
14750 * target.h (kill_inferior): Removed macro.
14751 * tracepoint.c (gdb_agent_about_to_close): New.
14752 (gdb_agent_helper_thread): Handle command 'close'.
14753 Wait endlessly until the inferior stops.
14754 Install gdb_agent_remove_socket to atexit hook.
14755 (agent_socket_name): New static variable.
14756 (gdb_agent_socket_init): Replace local variable 'name' with
14757 'agent_socket_name'.
14758 (gdb_agent_remove_socket): New.
14760 2012-07-27 Yao Qi <yao@codesourcery.com>
14762 * server.c (process_point_options): Stop at 'X' when parsing.
14764 2012-07-19 Michael Eager <eager@eagercon.com>
14766 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14768 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14769 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14770 hardware breakpoint.
14772 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14774 * gdbserver/linux-low.c (initialize_low): Call
14775 linux_ptrace_init_warnings.
14777 2012-07-02 Doug Evans <dje@google.com>
14779 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14782 2012-07-02 Stan Shebs <stan@codesourcery.com>
14784 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14785 (ax.o): Add it to build rule.
14787 (OBS): Add format.o.
14788 (IPA_OBS): Add format.o.
14789 * server.c (handle_query): Claim support for breakpoint commands.
14790 (process_point_options): Add command case.
14791 (process_serial_event): Leave running if there are printfs in
14793 * mem-break.h (any_persistent_commands): Declare.
14794 (add_breakpoint_commands): Declare.
14795 (gdb_no_commands_at_breakpoint): Declare.
14796 (run_breakpoint_commands): Declare.
14797 * mem-break.c (struct point_command_list): New struct.
14798 (struct breakpoint): New field command_list.
14799 (any_persistent_commands): New function.
14800 (add_commands_to_breakpoint): New function.
14801 (add_breakpoint_commands): New function.
14802 (gdb_no_commands_at_breakpoint): New function.
14803 (run_breakpoint_commands): New function.
14804 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14806 * ax.c: Include format.h.
14807 (ax_printf): New function.
14808 (gdb_eval_agent_expr): Add printf opcode.
14810 2012-06-13 Yao Qi <yao@codesourcery.com>
14812 * server.c (start_inferior): Remove duplicated writes to fields
14813 'last_resume_kind' and 'last_status' of 'current_inferior'.
14815 2012-06-12 Yao Qi <yao@codesourcery.com>
14816 Pedro Alves <palves@redhat.com>
14818 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14820 * server.c (handle_v_cont): Extend comment.
14822 2012-06-11 Yao Qi <yao@codesourcery.com>
14824 * linux-low.c (linux_attach): Add 'static'.
14826 2012-06-06 Yao Qi <yao@codesourcery.com>
14828 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14830 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14832 Fix gcc -flto compilation warning.
14833 * server.c (main): Make variable multi_mode and attach volatile.
14835 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14837 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14838 if the platform doesn't know about it.
14840 2012-05-30 Jeff Kenton <jkenton@tilera.com>
14842 * Makefile.in (SFILES): Add linux-tile-low.c.
14843 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14844 * configure.srv: Handle tilegx-*-linux*.
14845 * linux-tile-low.c: New file.
14847 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14849 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14851 2012-05-24 Pedro Alves <palves@redhat.com>
14855 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14857 2012-05-24 Pedro Alves <palves@redhat.com>
14861 Replace target_signal with gdb_signal throughout.
14863 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14865 * linux-low.c (linux_store_registers): Avoid the copying sequence
14866 when no data has been retrieved by ptrace.
14868 2012-05-22 Will Deacon <will.deacon@arm.com>
14870 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14871 Include asm/ptrace.h.
14872 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14875 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14877 * linux-low.c (linux_store_registers): Don't re-retrieve data
14878 with ptrace that has already been obtained from /proc. Always
14879 copy any data retrieved with ptrace to the buffer supplied.
14881 2012-05-11 Yao Qi <yao@codesourcery.com>
14882 Pedro Alves <palves@redhat.com>
14884 * linux-low.c (enum stopping_threads_kind): New.
14885 (stopping_threads): Change type to `enum stopping_threads_kind'.
14886 (handle_extended_wait): If stopping and suspending threads, leave
14887 the new_lwp suspended too.
14888 (linux_wait_for_event): Adjust.
14889 (stop_all_lwps): Set `stopping_threads' to
14890 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14891 whether we're suspending threads or just stopping them. Assert no
14894 2012-04-29 Yao Qi <yao@codesourcery.com>
14896 * server.h: Move some code to ...
14897 * gdbthread.h: ... here. New.
14898 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14899 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14900 (nto-low.o, win32-low.o): Likewise.
14901 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14902 * regcache.c, remote-utils.c, server.c: Likewise.
14903 * target.c, tracepoint.c, win32-low.c: Likewise.
14905 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14907 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14908 (PTRACE_ARG4_TYPE): Likewise.
14909 (PTRACE_XFER_TYPE): Likewise.
14910 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14911 ptrace to PTRACE_ARG3_TYPE.
14912 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14913 (PTRACE_ARG4_TYPE): Likewise.
14914 (PTRACE_XFER_TYPE): Likewise.
14915 (linux_detach_one_lwp): Cast fourth argument of
14916 ptrace to long then PTRACE_ARG4_TYPE.
14917 (regsets_fetch_inferior_registers): Cast third argument of
14918 ptrace to long then PTRACE_ARG3_TYPE.
14919 (regsets_store_inferior_registers): Likewise.
14921 2012-04-20 Pedro Alves <palves@redhat.com>
14923 * configure: Regenerate.
14925 2012-04-19 Pedro Alves <palves@redhat.com>
14927 * Makefile.in (GNULIB_BUILDDIR): New.
14928 (LIBGNU, INCGNU, GNULIB_H): Adjust.
14929 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14930 (all, install-only, uninstall, clean-info, all-lib, clean): No
14931 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14932 (maintainer-clean realclean distclean): Use subdir_do.
14934 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
14935 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
14936 * acinclude.m4: Include acx_configure_dir.m4.
14937 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14938 calls. Call AC_PROG_RANLIB. Configure gnulib using
14941 (GNULIB_STDINT_H): Adjust.
14942 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14943 * gdbreplay.c: Include build-gnulib/config.h.
14944 * server.h: Likewise.
14945 * aclocal.m4: Regenerate.
14946 * config.in: Regenerate.
14947 * configure: Regenerate.
14949 2012-04-19 Pedro Alves <palves@redhat.com>
14951 * Makefile.in (LIBGNU, INCGNU): Adjust.
14952 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14953 (all, install-only, uninstall, clean-info, all-lib, clean)
14954 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14955 * configure.ac: Adjust AC_OUTPUT output.
14956 * aclocal.m4: Regenerate.
14957 * configure: Regenerate.
14959 2012-04-19 Pedro Alves <palves@redhat.com>
14961 * Makefile.in (generated_files): New.
14962 (server_h): Remove the explicit dependency on config.h, and depend
14963 on $generated_files.
14965 2012-04-19 Pedro Alves <palves@redhat.com>
14967 * Makefile.in (INCGNU): Add -Ignulib.
14969 2012-04-19 Pedro Alves <palves@redhat.com>
14971 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14972 (INCGNU): ... this, and spell out -I here.
14973 (GNULIB_LIB): Rename to ...
14974 (LIBGNU): ... this.
14975 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14977 2012-04-19 Pedro Alves <palves@redhat.com>
14979 * config.in: Regenerate.
14981 2012-04-19 Pedro Alves <palves@redhat.com>
14983 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14984 * server.h (memmem): Remove declaration.
14985 * config.in: Regenerate.
14986 * configure: Regenerate.
14988 2012-04-19 Yao Qi <yao@codesourcery.com>
14990 * Makefile.in (SFILES): Add common/vec.c.
14994 2012-04-19 Yao Qi <yao@codesourcery.com>
14996 * remote-utils.c (prepare_resume_reply): Replace with macro
14997 target_core_of_thread.
14998 * server.c (handle_qxfer_threads_proper): Likewise.
14999 * target.h (traget_core_of_thread): New macro.
15001 2012-04-18 Pedro Alves <palves@redhat.com>
15003 * aclocal.m4: Regenerate.
15004 * configure: Regenerate.
15006 2012-04-16 Yao Qi <yao@codesourcery.com>
15008 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15009 duplicated on address.
15011 2012-04-16 Yao Qi <yao@codesourcery.com>
15013 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15014 (struct tracepoint_action_ops) <send>: New field.
15015 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15016 (agent_expr_send, x_tracepoint_action_send): New.
15017 (l_tracepoint_action_send): New.
15018 (cmd_qtdp): Download and install tracepoint
15019 according to `use_agent'.
15020 (run_inferior_command): Add one more parameter `len'.
15022 (tracepoint_send_agent): New.
15023 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15025 2012-04-16 Yao Qi <yao@codesourcery.com>
15027 * tracepoint.c (download_tracepoints): Moved to ...
15028 (cmd_qtstart): ... here.
15030 2012-04-14 Yao Qi <yao@codesourcery.com>
15032 * tracepoint.c: Include inttypes.h.
15033 (struct collect_memory_action): Use sized types.
15034 (struct tracepoint): Likewise.
15035 (cmd_qtdp, stop_tracing): Update print specifiers.
15036 (cmd_qtp, response_tracepoint): Likewise.
15037 (collect_data_at_tracepoint): Likewise.
15038 (collect_data_at_step): Likewise.
15040 2012-04-14 Yao Qi <yao@codesourcery.com>
15042 Import gnulib module inttypes.
15043 * aclocal.m4, config.in, configure: Regenerated.
15045 2012-04-14 Yao Qi <yao@codesourcery.com>
15047 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15048 Makefile and config.status at last.
15050 2012-04-13 Yao Qi <yao@codesourcery.com>
15052 * tracepoint.c: Include stdint.h unconditionally.
15054 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15056 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15057 on BFD_HAVE_SYS_PROCFS_TYPE.
15058 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15059 * configure: Regenerate.
15060 * config.in: Likewise.
15062 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15064 * Makefile.in (clean): Also remove x32.c x32-linux.c
15065 x32-avx.c x32-avx-linux.c.
15066 (x32.o): New target.
15068 (x32-linux.o): Likewise.
15069 (x32-linux.c): Likewise.
15070 (x32-avx.o): Likewise.
15071 (x32-avx.c): Likewise.
15072 (x32-avx-linux.o): Likewise.
15073 (x32-avx-linux.c): Likewise.
15075 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15076 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15077 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15078 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15079 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15080 i386/x32-avx-linux.xml.
15082 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15083 (init_registers_x32_avx_linux): Likwise.
15084 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15085 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15087 2012-04-13 Pedro Alves <palves@redhat.com>
15089 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15090 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15091 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15092 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15095 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15097 * linux-x86-low.c (compat_x32_clock_t): New.
15098 (compat_x32_siginfo_t): Likewise.
15099 (compat_x32_siginfo_from_siginfo): Likewise.
15100 (siginfo_from_compat_x32_siginfo): Likewise.
15101 (linux_is_elf64): Likewise.
15102 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15103 and siginfo_from_compat_x32_siginfo for x32.
15104 (x86_arch_setup): Set linux_is_elf64.
15106 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15109 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15111 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15112 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15113 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15114 compatible with process.
15116 2012-04-12 Yao Qi <yao@codesourcery.com>
15118 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15119 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15120 (install-only, install-info, clean): Handle sub dir gnulib.
15121 (all-lib, am--refresh): New targets.
15122 (memmem.o): Remove target.
15123 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15124 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15125 (AC_REPLACE_FUNCS): Remove memmem.
15126 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15127 (AC_OUTPUT): Generate Makefile in gnulib/.
15128 * aclocal.m4, config.in, configure: Regenerated.
15130 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15132 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15134 2012-04-05 Pedro Alves <palves@redhat.com>
15136 -Werror=strict-aliasing
15138 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15141 2012-04-04 Pedro Alves <palves@redhat.com>
15143 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15144 (sparc_store_gregset_from_stack, sparc_store_gregset)
15145 (sparc_breakpoint_at): Fix formatting.
15147 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15149 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15151 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15152 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15153 * config.in: Regenerate.
15154 * configure: Likewise.
15156 2012-03-29 Pedro Alves <palves@redhat.com>
15158 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15159 Correct ptrace arguments.
15161 2012-03-28 Pedro Alves <palves@redhat.com>
15163 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15164 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15165 (IA64_FR1_REGNUM): New defines.
15166 (ia64_fetch_register): New.
15167 (the_low_target): Install it.
15168 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15170 * linux-low.c (linux_fetch_registers): Try the
15171 the_low_target.fetch_register hook first.
15173 * linux-arm-low.c (the_low_target): Adjust.
15174 * linux-bfin-low.c (the_low_target): Adjust.
15175 * linux-cris-low.c (the_low_target): Adjust.
15176 * linux-crisv32-low.c (the_low_target): Adjust.
15177 * linux-m32r-low.c (the_low_target): Adjust.
15178 * linux-m68k-low.c (the_low_target): Adjust.
15179 * linux-mips-low.c (the_low_target): Adjust.
15180 * linux-ppc-low.c (the_low_target): Adjust.
15181 * linux-s390-low.c (the_low_target): Adjust.
15182 * linux-sh-low.c (the_low_target): Adjust.
15183 * linux-sparc-low.c (the_low_target): Adjust.
15184 * linux-tic6x-low.c (the_low_target): Adjust.
15185 * linux-x86-low.c (the_low_target): Adjust.
15186 * linux-xtensa-low.c (the_low_target): Adjust.
15188 2012-03-26 Pedro Alves <palves@redhat.com>
15190 * server.c (handle_qxfer_libraries): Don't bail early if
15191 the_target->qxfer_libraries_svr4 is not NULL.
15193 2012-03-26 Pedro Alves <palves@redhat.com>
15195 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15197 2012-03-23 Pedro Alves <palves@redhat.com>
15199 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15200 "library-list-svr4" element's start tag when the the DSO list is
15203 2012-03-23 Pedro Alves <palves@redhat.com>
15205 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15206 a variable whose type size is the same as the inferior's pointer
15209 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15211 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15213 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15214 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15215 * linux-low.h: Include <signal.h>.
15216 (struct siginfo): Remove forward declaration.
15217 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15220 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15222 * .gitignore: Ignore more files.
15224 2012-03-19 Pedro Alves <palves@redhat.com>
15225 Jan Kratochvil <jan.kratochvil@redhat.com>
15227 * server.c (cont_thread, general_thread): Add describing comments.
15228 (start_inferior): Clear `cont_thread'.
15229 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15232 2012-03-15 Yao Qi <yao@codesourcery.com>
15234 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15236 (cmd_qtdp): ... here.
15238 2012-03-15 Yao Qi <yao@codesourcery.com>
15240 * tracepoint.c (struct tracepoint_action_ops): New.
15241 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15242 (m_tracepoint_action_download): New.
15243 (r_tracepoint_action_download): New.
15244 (x_tracepoint_action_download): New.
15245 (l_tracepoint_action_download): New.
15246 (add_tracepoint_action): Install `action->ops' according type.
15247 (download_tracepoint_1): Move code `download' function pointer
15248 of various tracepoint_action_ops.
15250 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15252 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15253 linux_ptrace_attach_warnings.
15255 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15257 * Makefile.in (linux-ptrace.o): New.
15258 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15259 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15260 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15261 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15262 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15264 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15266 2012-03-08 Yao Qi <yao@codesourcery.com>
15267 Pedro Alves <palves@redhat.com>
15269 Fix PR server/13392.
15270 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15271 offset of JMP insn.
15272 * tracepoint.c (remove_tracepoint): New.
15273 (cmd_qtdp): Call remove_tracepoint when failed to install.
15275 2012-03-07 Pedro Alves <palves@redhat.com>
15277 * linux-low.c (get_detach_signal): New.
15278 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15279 Pass on pending signals to PTRACE_DETACH. Check the result of the
15281 * server.c (program_signals, program_signals_p): New.
15282 (handle_general_set): Handle QProgramSignals.
15283 * server.h (program_signals, program_signals_p): Declare.
15285 2012-03-05 Pedro Alves <palves@redhat.com>
15286 Jan Kratochvil <jan.kratochvil@redhat.com>
15288 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15291 2012-03-03 Yao Qi <yao@codesourcery.com>
15293 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15294 agent_look_up_symbols.
15296 2012-03-03 Yao Qi <yao@codesourcery.com>
15298 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15299 (linux-x86-low.o): Likewise.
15300 * server.h: Remove in_process_agent_loaded.
15301 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15305 2012-03-03 Yao Qi <yao@codesourcery.com>
15307 * tracepoint.c (gdb_agent_capability): New global.
15308 (in_process_agent_loaded_ust): Renamed to
15309 `in_process_agent_supports_ust'.
15311 (in_process_agent_supports_ust): Call agent_capability_check.
15312 (clear_installed_tracepoints): Assert that agent supports
15315 2012-03-03 Yao Qi <yao@codesourcery.com>
15317 * linux-low.c (linux_supports_agent): New.
15318 (linux_target_ops): Initialize field `supports_agent' with
15319 linux_supports_agent.
15320 * target.h (struct target_ops) <supports_agent>: New.
15321 (target_supports_agent): New macro.
15322 * server.c (handle_general_set): Handle packet 'QAgent'.
15323 (handle_query): Send `QAgent+'.
15324 * Makefile.in (server.o): Depends on agent.h.
15326 2012-03-03 Yao Qi <yao@codesourcery.com>
15328 * Makefile.in (OBS): Add agent.o.
15329 Add new rule for agent.o.
15330 Track dependence of tracepoint.c on agent.h.
15331 * tracepoint.c (run_inferior_command_1):
15332 (run_inferior_command): Call agent_run_command.
15333 (gdb_ust_connect_sync_socket): Deleted. Move it to
15335 (resume_thread, stop_thread): Likewise.
15336 (gdb_ust_socket_init): Renamed to ...
15337 (gdb_agent_socket_init): ... New.
15338 (gdb_ust_thread): Renamed to ...
15339 (gdb_agent_helper_thread): ... New.
15340 (gdb_ust_init): Move some code to ...
15341 (gdb_agent_init): ... here. New.
15342 [HAVE_UST]: Call gdb_ust_init.
15343 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15344 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15345 * config.in, configure: Regenerated.
15347 2012-03-02 Pedro Alves <palves@redhat.com>
15349 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15350 * linux-low.c (struct simple_pid_list): New.
15351 (stopped_pids): New a struct simple_pid_list pointer.
15352 (add_to_pid_list, pull_pid_from_list): New.
15353 (handle_extended_wait): Don't assume the first signal new children
15354 report is SIGSTOP. Adjust call to pull_pid_from_list.
15355 (linux_wait_for_lwp): Adjust.
15357 2012-03-02 Yao Qi <yao@codesourcery.com>
15359 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15362 2012-03-02 Yao Qi <yao@codesourcery.com>
15364 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15365 `stop_pc' and `tpoint'. Update caller.
15367 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15369 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15370 * linux-low.c (use_linux_regsets): New macro.
15371 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15372 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15373 (linux_register_in_regsets): New function.
15374 (usr_fetch_inferior_registers): Skip registers covered by
15376 (usr_store_inferior_registers): Likewise.
15377 (usr_fetch_inferior_registers): New macro.
15378 (usr_store_inferior_registers): Likewise.
15379 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15380 (linux_store_registers): Likewise.
15381 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15383 (init_registers_mips64_dsp_linux): Likewise.
15384 (init_registers_mips_linux): New macro.
15385 (init_registers_mips_dsp_linux): Likewise.
15386 (mips_dsp_num_regs): Likewise.
15387 (DSP_BASE, DSP_CONTROL): New fallback macros.
15388 (mips_base_regs): New macro.
15389 (mips_regmap): Use it. Fix the size.
15390 (mips_dsp_regmap): New variable.
15391 (mips_dsp_regset_bitmap): Likewise.
15392 (mips_arch_setup): New function.
15393 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15395 (mips_cannot_store_register): Likewise.
15396 (the_low_target): Update .arch_setup, .num_regs and .regmap
15397 initializers. Add .regset_bitmap initializer.
15398 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15400 * linux-bfin-low.c (the_low_target): Likewise.
15401 * linux-cris-low.c (the_low_target): Likewise.
15402 * linux-crisv32-low.c (the_low_target): Likewise.
15403 * linux-ia64-low.c (the_low_target): Likewise.
15404 * linux-m32r-low.c (the_low_target): Likewise.
15405 * linux-m68k-low.c (the_low_target): Likewise.
15406 * linux-ppc-low.c (the_low_target): Likewise.
15407 * linux-s390-low.c (the_low_target): Likewise.
15408 * linux-sh-low.c (the_low_target): Likewise.
15409 * linux-sparc-low.c (the_low_target): Likewise.
15410 * linux-tic6x-low.c (the_low_target): Likewise.
15411 * linux-x86-low.c (the_low_target): Likewise.
15412 * linux-xtensa-low.c (the_low_target): Likewise.
15413 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15414 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15415 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15417 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15418 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15420 2012-02-29 Yao Qi <yao@codesourcery.com>
15421 Pedro Alves <palves@redhat.com>
15423 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15424 `step_over_finished' is true.
15426 2012-02-27 Pedro Alves <palves@redhat.com>
15428 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15429 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15431 2012-02-27 Pedro Alves <palves@redhat.com>
15434 * linux-low.c (pid_is_stopped): New.
15435 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15437 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15439 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15442 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15444 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15446 2012-02-24 Luis Machado <lgustavo@codesourcery>
15448 * server.c (handle_query): Advertise support for target-side
15449 breakpoint condition evaluation.
15450 (process_point_options): New function.
15451 (process_serial_event): When inserting a breakpoint, check for
15452 a target-side condition that should be evaluated.
15454 * mem-break.c: Include regcache.h and ax.h.
15455 (point_cond_list_t): New data structure.
15456 (breakpoint) <cond_list>: New field.
15457 (find_gdb_breakpoint_at): Make non-static.
15458 (delete_gdb_breakpoint_at): Clear any target-side
15460 (clear_gdb_breakpoint_conditions): New function.
15461 (add_condition_to_breakpoint): Likewise.
15462 (add_breakpoint_condition): Likewise.
15463 (gdb_condition_true_at_breakpoint): Likewise.
15464 (gdb_breakpoint_here): Return result directly instead
15465 of going through a local variable.
15467 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15468 (clear_gdb_breakpoint_conditions): Likewise.
15469 (add_breakpoint_condition): Likewise.
15470 (gdb_condition_true_at_breakpoint): Likewise.
15472 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15473 (need_step_over_p): Take target-side breakpoint condition into
15476 2012-02-24 Luis Machado <lgustavo@codesourcery>
15478 * server.h: Include tracepoint.h.
15479 (agent_mem_read, agent_get_trace_state_variable_value,
15480 agent_set_trace_state_variable_value,
15481 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15482 get_set_tsv_func_addr): New prototypes.
15484 * ax.h: New include file.
15485 * ax.c: New source file.
15487 * tracepoint.c: Include ax.h.
15488 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15489 agent_expr, eval_result_type): Move to ax.h.
15490 (parse_agent_expr): Rename to ...
15491 (gdb_parse_agent_expr): ... this, make it non-static and move
15493 (unparse_agent_expr) Rename to ...
15494 (gdb_unparse_agent_expr): ... this, make it non-static and move
15496 (eval_agent_expr): Rename to ...
15497 (eval_tracepoint_agent_expr): ... this.
15498 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15499 forward declarations.
15500 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15501 (agent_get_trace_state_variable_value): New function.
15502 (agent_set_trace_state_variable_value): New function.
15503 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15504 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15505 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15506 (condition_true_at_tracepoint): Likewise.
15507 (parse_agent_expr): Rename to ...
15508 (gdb_parse_agent_expr): ... this and move to ax.c.
15509 (unparse_agent_expr): Rename to ...
15510 (gdb_unparse_agent_expr): ... this and move to ax.c.
15511 (gdb_agent_op_name): Move to ax.c.
15512 (eval_agent_expr): Rename to ...
15513 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15515 (eval_tracepoint_agent_expr): New function.
15516 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15518 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15520 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15521 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15522 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15523 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15524 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15525 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15526 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15527 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15528 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15529 (compile_bytecodes): Remove forward declaration.
15530 (is_goto_target): Move to ax.c.
15531 (compile_bytecodes): Move to ax.c and call
15532 agent_get_trace_state_variable_value (...) and
15533 agent_set_trace_state_variable_value (...).
15535 * Makefile.in: Update ax.c and IPA dependencies.
15537 2012-02-24 Pedro Alves <palves@redhat.com>
15539 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15540 (cmd_bigqtbuffer_circular): ... this. Only handle
15541 'QTBuffer:circular:'.
15542 (handle_tracepoint_general_set): Adjust.
15544 2012-02-16 Yao Qi <yao@codesourcery.com>
15546 * inferiors.c: Move code to ...
15547 * dll.c: .... here. New.
15548 * server.h: Declare clear_dlls.
15549 * Makefile.in (SFILES): Add dll.c.
15553 2012-02-11 Yao Qi <yao@codesourcery.com>
15555 * server.c: (handle_monitor_command): Add a new parameter
15557 (handle_query): Update caller.
15559 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15561 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15562 * configure, config.in: Regenerate.
15563 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15566 2012-02-02 Pedro Alves <palves@redhat.com>
15568 Try SIGKILL first, then PTRACE_KILL.
15569 * linux-low.c (linux_kill_one_lwp): New.
15570 (linux_kill_one_lwp): Rename to ...
15571 (kill_one_lwp_callback): ... this. Use the new
15572 linux_kill_one_lwp.
15574 2012-02-02 Pedro Alves <palves@redhat.com>
15576 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15579 2012-01-27 Pedro Alves <palves@redhat.com>
15581 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15582 (elf_64_file_p): Make static.
15583 (linux_pid_exe_is_elf_64_file): New.
15584 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15585 Delete declarations.
15586 (linux_pid_exe_is_elf_64_file): Declare.
15587 * linux-x86-low.c (x86_arch_setup): Use
15588 linux_pid_exe_is_elf_64_file.
15590 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15592 * linux-low.c (linux_wait_for_event_1): Rename to ...
15593 (linux_wait_for_event): ... here and merge it with former
15594 linux_wait_for_event - new variable wait_ptid, use it.
15595 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15597 2012-01-23 Pedro Alves <palves@redhat.com>
15599 * server.c (main): Avoid yet another case of infinite loop while
15600 detaching/killing after a longjmp.
15602 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15605 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15607 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15609 * hostio.c (handle_readlink): New function.
15610 (handle_vFile): Call it to handle "vFile:readlink" packets.
15612 2012-01-20 Pedro Alves <palves@redhat.com>
15613 Ulrich Weigand <ulrich.weigand@linaro.org>
15615 * server.c (handle_v_requests): Only support vAttach and vRun to
15616 start multiple processes when in extended protocol mode.
15618 2012-01-17 Pedro Alves <palves@redhat.com>
15620 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15621 memalign plus mprotect to allocate the scratch buffer.
15623 2012-01-13 Pedro Alves <palves@redhat.com>
15625 * server.c (attach_inferior): Clear `cont_thread'.
15627 2012-01-13 Pedro Alves <palves@redhat.com>
15629 * server.c (main): Avoid infinite loop while detaching/killing
15632 2012-01-09 Doug Evans <dje@google.com>
15634 * server.c (start_inferior): Set last_ptid in --wrapper case.
15636 2012-01-06 Yao Qi <yao@codesourcery.com>
15638 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15640 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15642 2012-01-04 Yao Qi <yao@codesourcery.com>
15644 * tracepoint.c (cmd_qtdp): Print debug message
15645 for static tracepoint.
15647 2012-01-04 Yao Qi <yao@codesourcery.com>
15649 * tracepoint.c (trace_vdebug): Differentiate debug message
15650 between gdbserver and IPA.
15652 2012-01-03 Yao Qi <yao@codesourcery.com>
15654 * tracepoint.c (tracepoint_was_hit): Don't collect for
15657 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15659 * terminal.h: Reformat copyright header.
15661 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15663 * server.c (gdbserver_version): Update copyright year.
15664 * gdbreplay.c (gdbreplay_version): Likewise.
15666 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15668 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15671 2011-12-18 Hui Zhu <teawater@gmail.com>
15672 * linux-low.c (linux_create_inferior): Save return value to ret.
15674 2011-12-18 Hui Zhu <teawater@gmail.com>
15676 * linux-low.c (linux_create_inferior): Save return value to ret.
15678 2011-12-16 Doug Evans <dje@google.com>
15680 * linux-low.c (linux_create_inferior): If stdio connection,
15681 redirect stdin from /dev/null, stdout to stderr.
15682 * remote-utils.c (remote_is_stdio): New static global.
15683 (remote_connection_is_stdio): New function.
15684 (remote_prepare): Handle stdio connection.
15685 (remote_open): Ditto.
15686 (remote_close): Don't close stdin for stdio connections.
15687 (read_prim,write_prim): New functions. Replace all calls to
15688 read/write to these.
15689 * server.c (main): Watch for "-" argument. Move call to
15690 remote_prepare before start_inferior.
15691 * server.h (STDIO_CONNECTION_NAME): New macro.
15692 (remote_connection_is_stdio): Declare.
15694 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15695 in debugging output.
15697 2011-12-15 Yao Qi <yao@codesourcery.com>
15699 * tracepoint.c: Include sys/syscall.h.
15700 (gdb_ust_thread): Remove preprocessor conditional.
15702 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15704 * linux-low.c (linux_detach_one_lwp): Call
15705 the_low_target.prepare_to_resume before detaching.
15707 2011-12-14 Yao Qi <yao@codesourcery.com>
15709 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15712 2011-12-14 Yao Qi <yao@codesourcery.com>
15714 * i386-low.c (i386_low_stopped_data_address): Initialize local
15715 variable `control'.
15717 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15721 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15722 DR_CONTROL unless necessary. Extend comments.
15723 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15724 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15726 2011-12-13 Yao Qi <yao@codesourcery.com>
15728 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15730 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15732 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15734 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15735 Print new debug message for such case.
15737 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15739 Fix overlapping memcpy.
15740 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15741 the read_inferior_memory transfer.
15742 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15743 write_inferior_memory transfer.
15744 (set_fast_tracepoint_jump): New variable buf. Use it for the
15745 read_inferior_memory and write_inferior_memory transfers.
15746 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15747 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15748 Use it for the write_inferior_memory transfer.
15749 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15752 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15754 * linux-low.c (fetch_register, store_register): Make code
15755 consistent, fix formatting.
15757 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15759 * linux-low.c (usr_store_inferior_registers): Factor out code
15760 to handle individual registers into...
15761 (store_register): ... this new function.
15763 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15765 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15766 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15767 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15768 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15769 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15770 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15771 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15772 (srv_xmlfiles): Add new XML files.
15774 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15776 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15777 (init_registers_s390_linux32v1): Add prototype.
15778 (init_registers_s390_linux32v2): Likewise.
15779 (init_registers_s390_linux64v1): Likewise.
15780 (init_registers_s390_linux64v2): Likewise.
15781 (init_registers_s390x_linux64v1): Likewise.
15782 (init_registers_s390x_linux64v2): Likewise.
15783 (s390_num_regs): Increment to 52.
15784 (s390_regmap): Add orig_r2 register.
15785 (s390_num_regs_3264): Increment to 68.
15786 (s390_regmap_3264): Add orig_r2 register.
15787 (s390_collect_ptrace_register): Handle orig_r2 register.
15788 (s390_supply_ptrace_register): Likewise.
15789 (s390_fill_last_break): New function.
15790 (s390_store_last_break): Likewise.
15791 (s390_fill_system_call): New function.
15792 (s390_store_system_call): Likewise.
15793 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15795 (s390_check_regset): New function.
15796 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15797 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15798 Update target_regsets for available register sets.
15800 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15801 Jan Kratochvil <jan.kratochvil@redhat.com>
15803 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15804 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15806 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15807 * linux-low.h (struct process_info_private): New member r_debug.
15808 * server.c (handle_qxfer_libraries): Call
15809 the_target->qxfer_libraries_svr4.
15810 (handle_qxfer_libraries_svr4): New function.
15811 (qxfer_packets): New entry "libraries-svr4".
15812 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15813 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15814 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15815 PACKET_qXfer_libraries_svr4.
15817 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15819 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15820 PSW address/mask between 8-byte and 16-byte formats.
15821 (s390_supply_ptrace_register): Likewise.
15822 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15823 basic addressing mode bit.
15825 2011-11-24 Stan Shebs <stan@codesourcery.com>
15827 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15829 2011-11-17 Stan Shebs <stan@codesourcery.com>
15831 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15832 (tracing_start_time): New global.
15833 (tracing_stop_time): New global.
15834 (tracing_user_name): New global.
15835 (tracing_notes): New global.
15836 (tracing_stop_note): New global.
15837 (cmd_qtstart): Set traceframe_usage, start_time.
15838 (stop_tracing): Set stop_time.
15839 (cmd_qtstatus): Report additional status.
15840 (cmd_qtp): New function.
15841 (handle_tracepoint_query): Call it.
15842 (cmd_qtnotes): New function.
15843 (handle_tracepoint_general_set): Call it.
15844 (get_timestamp): Rename from tsv_get_timestamp.
15846 2011-11-14 Stan Shebs <stan@codesourcery.com>
15847 Kwok Cheung Yeung <kcy@codesourcery.com>
15849 * linux-x86-low.c (small_jump_insn): New.
15850 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15851 trampoline and error message, build a trampoline and issue a small
15852 jump instruction to it.
15853 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15854 trampoline and error message.
15855 (x86_get_min_fast_tracepoint_insn_len): New.
15856 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15857 * linux-low.h (struct linux_target_ops): Add arguments to
15858 install_fast_tracepoint_jump_pad operation, add new operation.
15859 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15861 (linux_get_min_fast_tracepoint_insn_len): New function.
15862 (linux_target_op): Add new operation.
15863 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15864 (gdb_trampoline_buffer_end): Ditto.
15865 (gdb_trampoline_buffer_error): Ditto.
15866 (struct ipa_sym_addresses): Add fields for new IPA variables.
15867 (symbol_list): Add entries for new IPA variables.
15868 (struct tracepoint): Add fields to hold the address range of the
15869 trampoline used by the tracepoint.
15870 (trampoline_buffer_head): New static variable.
15871 (trampoline_buffer_tail): Ditto.
15872 (claim_trampoline_space): New function.
15873 (have_fast_tracepoint_trampoline_buffer): New function.
15874 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15876 (install_fast_tracepoint): Ditto, also add error buffer argument.
15877 (cmd_qtminftpilen): New function.
15878 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15879 (fast_tracepoint_from_trampoline_address): New function.
15880 (fast_tracepoint_collecting): Handle trampoline as part of jump
15882 (set_trampoline_buffer_space): New function.
15883 (initialize_tracepoint): Initialize new IPA variables.
15884 * target.h (struct target_ops): Add arguments to
15885 install_fast_tracepoint_jump_pad operation, add new
15886 get_min_fast_tracepoint_insn_len operation.
15887 (target_get_min_fast_tracepoint_insn_len): New.
15888 (install_fast_tracepoint_jump_pad): Add arguments.
15889 * server.h (IPA_BUFSIZ): Define.
15890 * linux-i386-ipa.c: Include extra header files.
15891 (initialize_fast_tracepoint_trampoline_buffer): New function.
15892 (initialize_low_tracepoint): Call it.
15893 * server.h (set_trampoline_buffer_space): Declare.
15894 (claim_trampoline_space): Ditto.
15895 (have_fast_tracepoint_trampoline_buffer): Ditto.
15897 2011-11-14 Yao Qi <yao@codesourcery.com>
15899 * server.c (handle_query): Handle InstallInTrace for qSupported.
15900 * tracepoint.c (add_tracepoint): Sort list.
15901 (install_tracepoint, download_tracepoint): New.
15902 (cmd_qtdp): Call them to install and download tracepoints.
15903 (sort_tracepoints): Removed.
15904 (cmd_qtstart): Update.
15906 2011-11-14 Yao Qi <yao@codesourcery.com>
15908 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15909 * mem-break.h: Declare.
15910 * tracepoint.c (cmd_qtstart): Move some code to ...
15911 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15913 (download_tracepoints): Move some code to ...
15914 (download_tracepoint_1): ... here. New.
15916 2011-11-08 Yao Qi <yao@codesourcery.com>
15918 * remote-utils.c (relocate_instruction): A comment fix.
15920 2011-11-07 Joel Brobecker <brobecker@adacore.com>
15922 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15923 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15924 dr_status_mirror and dr_control_mirror from debug_reg_state.
15925 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15926 (i386_initial_stuff): Remove use of deleted globals.
15927 (i386_get_thread_context, i386_set_thread_context,
15928 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15929 from debug_reg_state.
15931 2011-11-05 Yao Qi <yao@codesourcery.com>
15933 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15934 address as TPOINT's.
15936 2011-11-02 Stan Shebs <stan@codesourcery.com>
15938 * tracepoint.c (agent_mem_read_string): New function.
15939 (eval_agent_expr): Call it for tracenz.
15940 * server.c (handle_query): Report support for tracenz.
15942 2011-11-02 Yao Qi <yao@codesourcery.com>
15944 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15946 2011-11-02 Yao Qi <yao@codesourcery.com>
15948 * target.h: Fix a typo in comment.
15950 2011-10-31 Pedro Alves <pedro@codesourcery.com>
15952 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15953 clobber the breakpoints' shadows with fast tracepoint jumps.
15954 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15955 * target.c (write_inferior_memory): Also pass MYADDR down to
15958 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15960 * configure.ac: Check support for personality routine.
15961 * configure: Regenerate.
15962 * config.in: Likewise.
15963 * linux-low.c: Include <sys/personality.h>.
15964 Define ADDR_NO_RANDOMIZE if necessary.
15965 (linux_create_inferior): Disable address space randomization when
15966 forking inferior, if requested.
15967 (linux_supports_disable_randomization): New function.
15968 (linux_target_ops): Install it.
15969 * server.h (disable_randomization): Declare.
15970 * server.c (disable_randomization): New global variable.
15971 (handle_general_set): Handle QDisableRandomization.
15972 (handle_query): Likewise for qSupported.
15973 (main): Support --disable-randomization and --no-disable-randomization
15974 command line arguments.
15975 * target.h (struct target_ops): Add supports_disable_randomization.
15976 (target_supports_disable_randomization): New macro.
15978 2011-09-29 Mike Frysinger <vapier@gentoo.org>
15980 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15982 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15983 [!PT_GETDSBT] (target_loadmap): New definition.
15984 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15985 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15986 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15987 and PT_GETDSBT to LINUX_LOADMAP.
15988 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15989 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15991 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15993 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15994 (arm_linux_hwbp_cap): New static variable.
15995 (arm_linux_get_hwbp_cap): Replace by ...
15996 (arm_linux_init_hwbp_cap): ... this new function.
15997 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15998 (arm_linux_get_hw_watchpoint_count): Likewise.
15999 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16000 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16001 (arm_prepare_to_resume): Use perror_with_name instead of error.
16003 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16005 * linux-arm-low.c: Include <signal.h>.
16006 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16007 (struct arm_linux_hwbp_cap): New data type.
16008 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16009 (struct arm_linux_hw_breakpoint): New data type.
16010 (MAX_BPTS, MAX_WPTS): Define.
16011 (struct arch_process_info, struct arch_lwp_info): New data types.
16012 (arm_linux_get_hwbp_cap): New function.
16013 (arm_linux_get_hw_breakpoint_count): Likewise.
16014 (arm_linux_get_hw_watchpoint_count): Likewise.
16015 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16016 (arm_hwbp_control_initialize): Likewise.
16017 (arm_hwbp_control_is_enabled): Likewise.
16018 (arm_hwbp_control_is_initialized): Likewise.
16019 (arm_hwbp_control_disable): Likewise.
16020 (arm_linux_hw_breakpoint_equal): Likewise.
16021 (arm_linux_hw_point_initialize): Likewise.
16022 (struct update_registers_data): New data structure.
16023 (update_registers_callback: New function.
16024 (arm_insert_point): Likewise.
16025 (arm_remove_point): Likewise.
16026 (arm_stopped_by_watchpoint): Likewise.
16027 (arm_stopped_data_address): Likewise.
16028 (arm_new_process): Likewise.
16029 (arm_new_thread): Likewise.
16030 (arm_prepare_to_resume): Likewise.
16031 (the_low_target): Register arm_insert_point, arm_remove_point,
16032 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16033 arm_new_thread, and arm_prepare_to_resume.
16035 2011-09-15 Stan Shebs <stan@codesourcery.com>
16037 * server.h (struct emit_ops): Add compare-goto fields.
16038 * tracepoint.c (gdb_agent_op_sizes): New table.
16039 (emit_eq_goto): New function.
16040 (emit_ne_goto): New function.
16041 (emit_lt_goto): New function.
16042 (emit_le_goto): New function.
16043 (emit_gt_goto): New function.
16044 (emit_ge_goto): New function.
16045 (is_goto_target): New function.
16046 (compile_bytecodes): Recognize special cases of compare-goto
16047 combinations and call specialized emitters for them.
16048 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16049 (amd64_emit_ne_goto): New function.
16050 (amd64_emit_lt_goto): New function.
16051 (amd64_emit_le_goto): New function.
16052 (amd64_emit_gt_goto): New function.
16053 (amd64_emit_ge_goto): New function.
16054 (amd64_emit_ops): Add the new functions.
16055 (i386_emit_eq_goto): New function.
16056 (i386_emit_ne_goto): New function.
16057 (i386_emit_lt_goto): New function.
16058 (i386_emit_le_goto): New function.
16059 (i386_emit_gt_goto): New function.
16060 (i386_emit_ge_goto): New function.
16061 (i386_emit_ops): Add the new functions.
16063 2011-09-08 Stan Shebs <stan@codesourcery.com>
16065 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16066 (i386_emit_epilogue): Restore %ebx.
16068 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16070 * server.c (step_thread): Remove definition.
16071 (process_serial_event): Don't handle Hs.
16072 * server.h (step_thread): Remove declaration.
16073 * target.c (set_desired_inferior): Remove use of step_thread.
16075 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16077 * linux-low.c: Include linux-procfs.h.
16078 (linux_attach_lwp_1): Update comments.
16079 (linux_attach): Scan for existing threads when attaching to a
16080 process that is the tgid.
16081 * Makefile.in: Update dependencies.
16083 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16085 * configure.srv: Add linux-procfs.o dependencies.
16087 2011-08-14 Yao Qi <yao@codesourcery.com>
16089 * target.h (struct target_ops): Fix indent.
16090 * win32-low.c (win32_target_ops): Fix comment.
16092 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16093 Yao Qi <yao@codesourcery.com>
16095 * Makefile.in (clean): Remove tic6x-*.c files.
16096 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16097 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16098 (tic6x-c64xp-linux.c): Likewise.
16099 * configure.srv: Add support for tic6x-*-uclinux.
16100 * linux-tic6x-low.c: New.
16101 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16103 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16104 Yao Qi <yao@codesourcery.com>
16106 * target.h (struct target_ops): Add read_loadmap.
16107 * linux-low.c (struct target_loadseg): New type.
16108 (struct target_loadmap): New type.
16109 (linux_read_loadmap): New function.
16110 (linux_target_ops): Add linux_read_loadmap.
16111 * server.c (handle_query): Support qXfer:fdpic:read packet.
16112 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16115 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16117 * win32-low.c: Include <stdint.h>.
16119 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16121 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16122 to the inferior here.
16123 (i386_remove_aligned_watchpoint): Ditto.
16124 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16125 fit part of the watchpoint in the debug registers.
16126 (i386_update_inferior_debug_regs): New.
16127 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16128 registers, and only update the inferior on success.
16129 (i386_low_remove_watchpoint): Ditto.
16131 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16133 * linux-low.c (compare_ints, unique, list_threads, show_process,
16134 linux_core_of_thread): Delete.
16135 (linux_target_ops): Change linux_core_of_thread to
16136 linux_common_core_of_thread.
16137 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16138 * utils.c (malloc_failure): Change type of argument.
16139 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16140 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16141 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16142 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16143 (IPA_OBJS): Add common-utils-ipa.o.
16144 (ptid_h, linux_osdata_h): New macros.
16145 (server_h): Add common/common-utils.h, common/xml-utils.h,
16146 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16148 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16149 ptid.o, buffer.o): New rules.
16150 (linux-low.o): Add common/linux-osdata.h as a dependency.
16151 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16152 * configure.ac: Add AC_HEADER_DIRENT check.
16153 * config.in: Regenerate.
16154 * configure: Regenerate.
16155 * remote-utils.c (xml_escape_text): Delete.
16156 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16157 buffer_xml_printf): Move to common/buffer.c.
16158 * server.c (main): Remove call to initialize_inferiors.
16159 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16160 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16161 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16162 internal_error, gdb_assert, gdb_assert_fail): Delete.
16163 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16164 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16166 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16167 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16168 initialize_inferiors): Delete.
16170 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16172 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16175 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16177 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16179 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16181 2011-05-26 Yao Qi <yao@codesourcery.com>
16183 * Makefile.in (thread-db.o): Track dependence to
16184 common/gdb_thread_db.h.
16185 * thread-db.c: include gdb_thread_db.h from right place.
16187 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16189 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16190 __FILE__ and __LINE__ to internal_error.
16192 2011-05-13 Doug Evans <dje@google.com>
16194 * thread-db.c (try_thread_db_load_from_sdir): New function.
16195 (try_thread_db_load_from_dir): New function.
16196 (thread_db_load_search): Handle $sdir, ignore $pdir.
16197 Remove trying of system directories if search of
16198 libthread-db-search-path fails, that is now done via $sdir.
16200 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16202 * server.c (handle_query): Add EnableDisableTracepoints to the list
16203 of supported features.
16204 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16206 (cmd_qtenable_disable): New.
16207 (cmd_qtstart): Install tracepoints even if disabled.
16208 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16209 receiving a QTEnable or QTDisable packet.
16210 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16211 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16213 (gdb_probe): Skip data collection if static tracepoint is disabled.
16215 2011-05-10 Doug Evans <dje@google.com>
16217 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16219 2011-05-04 Doug Evans <dje@google.com>
16221 * linux-low.c (linux_join): Skip process lookup.
16222 * spu-low.c (spu_join): Ditto.
16223 * server.c (join_inferiors_callback): Delete.
16224 (process_serial_event): For 'D' packet (detach) call join_inferior
16227 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16229 * README: Don't mention xscale*-*-linux*.
16230 * configure.srv (xscale*-*-linux*): Don't handle target.
16232 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16234 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16236 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16237 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16238 (i386_emit_void_call_2): Likewise.
16240 2011-04-26 Yao Qi <yao@codesourcery.com>
16242 * linux-low.c: Move common macros to linux-ptrace.h.
16243 Include linux-ptrace.h.
16244 * Makefile.in (linux_ptrace_h): New.
16245 (linux-low.o): Depends on linux-ptrace.h.
16247 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16249 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16250 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16251 (remote_prepare): New function with most of the TCP code from ...
16252 (remote_open): ... here. Detect PORT here unconditionally. Move also
16253 setting transport_is_reliable.
16254 * server.c (run_once): New variable.
16255 (gdbserver_usage): Document it.
16256 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16257 the first run if RUN_ONCE.
16258 * server.h (run_once, remote_prepare): New declarations.
16260 2011-04-19 Tom Tromey <tromey@redhat.com>
16262 * win32-low.c (handle_load_dll): Remove duplicate "the".
16264 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16266 Remove support for old Cygwin 1.5 versions.
16267 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16268 function to avoid warning.
16269 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16272 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16274 * gdbserver/server.h (Macro _): Define it if not available.
16276 2011-03-14 Michael Snyder <msnyder@vmware.com>
16278 * hostio.c (handle_close): Remove unnecessary null test.
16280 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16282 * Makefile.in (maintainer-clean realclean distclean): Remove
16283 "make ... subdir_do" command.
16285 2011-03-10 Michael Snyder <msnyder@vmware.com>
16287 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16289 * server.c (handle_v_run): Free alloced buffer on early return.
16291 2011-03-09 Yao Qi <yao@codesourcery.com>
16294 2011-03-04 Yao Qi <yao@codesourcery.com>
16296 * Makefile.in: Remove GNU make feature --directory.
16298 2011-03-05 Yao Qi <yao@codesourcery.com>
16300 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16301 (subdir_do): New make target. Copied from gdb/Makefile.
16302 (maintainer-clean, realclean, distclean, clean): Call corresponding
16303 make targets in common/Makefile.
16305 2011-02-11 Yao Qi <yao@codesourcery.com>
16307 * configure.ac: Call AC_PROG_RANLIB.
16308 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16309 * configure: Regenerate.
16311 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16313 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16315 2011-03-06 Yao Qi <yao@codesourcery.com>
16317 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16319 2011-03-05 Yao Qi <yao@codesourcery.com>
16321 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16322 (subdir_do): New make target. Copied from gdb/Makefile.
16323 (maintainer-clean, realclean, distclean, clean): Call corresponding
16324 make targets in common/Makefile.
16326 2011-03-04 Yao Qi <yao@codesourcery.com>
16328 * Makefile.in: Remove GNU make feature --directory.
16330 2011-03-04 Michael Snyder <msnyder@vmware.com>
16332 * server.c (queue_stop_reply): Call xmalloc not malloc.
16334 2011-03-02 Michael Snyder <msnyder@vmware.com>
16336 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16338 2011-02-28 Michael Snyder <msnyder@vmware.com>
16340 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16341 (cmd_qtframe): Ditto.
16342 (cmd_qtbuffer): Ditto.
16343 (cmd_bigqtbuffer): Ditto.
16345 * utils.c (decimal2str): Initialize 'width' to nine, then
16346 don't mess with it.
16348 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16350 * hostio.c (require_data): Free *data, not data.
16352 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16354 * hostio.c (require_data): Use free, not xfree.
16356 2011-02-27 Michael Snyder <msnyder@vmware.com>
16358 * server.c (handle_query): Discard unused value.
16360 * hostio.c (require_data): Free malloc memory before returning
16363 2011-02-26 Michael Snyder <msnyder@vmware.com>
16365 * linux-low.c (list_threads): Call closedir for dirent.
16367 2011-02-27 Michael Snyder <msnyder@vmware.com>
16369 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16370 a case statement falls through.
16372 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16374 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16377 2011-02-26 Michael Snyder <msnyder@vmware.com>
16379 * utils.c (decimal2str): Eliminate dead code and dead param.
16380 (pulongest): Drop dead param from call to decimal2str.
16383 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16385 Revert the following patch (not approved yet):
16386 2011-02-21 Hui Zhu <teawater@gmail.com>
16387 * tracepoint.c (tp_printf): New function.
16388 (eval_agent_expr): Handle gdb_agent_op_printf.
16390 2011-02-21 Hui Zhu <teawater@gmail.com>
16392 * tracepoint.c (tp_printf): New function.
16393 (eval_agent_expr): Handle gdb_agent_op_printf.
16395 2011-02-18 Tom Tromey <tromey@redhat.com>
16397 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16398 (tracepoint.o): Likewise.
16399 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16400 (gdb_agent_op_names): Likewise.
16402 2011-02-18 Tom Tromey <tromey@redhat.com>
16404 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16405 gdb_agent_op_rot>: New constants.
16406 (gdb_agent_op_names): Add pick and roll.
16407 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16410 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16412 * aclocal.m4: Regenerated with aclocal-1.11.1.
16414 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16416 * server.c (handle_qxfer_traceframe_info): New.
16417 (qxfer_packets): Register "traceframe-info".
16418 (handle_query): Report support for qXfer:traceframe-info:read+.
16419 * tracepoint.c (match_blocktype): New.
16420 (traceframe_find_block_type): Rename to ...
16421 (traceframe_walk_blocks): ... this. Add callback filter argument,
16423 (traceframe_find_block_type): New, reimplemented on top of
16424 traceframe_walk_blocks.
16425 (build_traceframe_info_xml): New.
16426 (traceframe_read_info): New.
16427 * server.h (traceframe_read_info): Declare.
16429 2011-02-11 Yao Qi <yao@codesourcery.com>
16431 * configure.ac: Call AC_PROG_RANLIB.
16432 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16433 * configure: Regenerate.
16435 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16437 * server.c (gdb_read_memory): Change return semantics to allow
16439 (handle_search_memory_1): Adjust.
16440 (process_serial_event) <'m' packet>: Handle partial transfers.
16441 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16443 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16445 * regcache.c (init_register_cache): Initialize
16446 regcache->register_status.
16447 (free_register_cache): Release regcache->register_status.
16448 (regcache_cpy): Copy register_status.
16449 (registers_to_string): Print 'x's for unavailable registers.
16450 (supply_register): Mark the register's status valid or
16451 unavailable, depending on whether a buffer was passed in or not.
16452 (supply_register_zeroed): New.
16453 (supply_regblock): Mark the registers' status valid or
16454 unavailable, depending on whether a buffer was passed in or not.
16455 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16456 (struct regcache): New `register_status' field.
16457 (supply_register_zeroed): Declare.
16458 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16459 supply_register_zeroed, rather than passing a NULL buffer to
16461 * tracepoint.c (fetch_traceframe_registers): Update comment.
16463 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16465 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16468 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16470 * server.h (decode_xfer_write): Change prototype.
16471 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16472 and don't extract the annex here.
16473 * server.c (decode_xfer_read): Remove `annex' parameter,
16474 and don't extract the annex here.
16475 (decode_xfer): New.
16476 (struct qxfer): New.
16477 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16478 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16479 (handle_qxfer_statictrace): New functions, abstracted out from
16480 handle_query, and made to use the struct qxfer interface.
16481 (handle_threads_qxfer_proper): Rename to ...
16482 (handle_qxfer_threads_proper): ... this.
16483 (handle_threads_qxfer): Rename to ...
16484 (handle_qxfer_threads): ... this. Adjust.
16485 (qxfer_packets): New array.
16486 (handle_qxfer): New function.
16487 (handle_query): Use handle_qxfer.
16489 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16491 * gdbreplay.c: Shorten lines of >= 80 columns.
16492 * linux-low.c: Ditto.
16493 * linux-ppc-low.c: Ditto.
16494 * linux-s390-low.c: Ditto.
16495 * linux-sparc-low.c: Ditto.
16496 * linux-x86-low.c: Ditto.
16497 * linux-xtensa-low.c: Ditto.
16498 * mem-break.c: Ditto.
16499 * nto-low.c: Ditto.
16500 * regcache.h: Ditto.
16501 * remote-utils.c: Ditto.
16504 * thread-db.c: Ditto.
16505 * tracepoint.c: Ditto.
16507 * win32-low.h: Ditto.
16509 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16511 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16514 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16516 * server.c (gdbserver_version): Update copyright year in version
16518 * gdbreplay.c (gdbreplay_version): Ditto.
16520 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16522 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16523 * linux-bfin-low.c: New file.
16524 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16525 PT_DATA_ADDR for BFIN targets.
16526 * Makefile.in (SFILES): Add linux-bfin-low.c.
16527 (clean): Remove reg-bfin.c.
16528 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16529 * README: Mention supported Blackfin targets.
16531 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16533 * .gitignore: New file.
16535 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16537 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16539 2010-10-22 Jie Zhang <jie@codesourcery.com>
16541 * Makefile.in: Add FLAGS_TO_PASS variable.
16542 (install): Remove dependency of install-only and recursively
16543 invoke make for install-only.
16545 2010-10-04 Doug Evans <dje@google.com>
16547 * Makefile.in (uninstall): Use $(DESTDIR).
16549 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16553 * linux-x86-low.c (compat_siginfo_from_siginfo)
16554 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16555 si_code is < 0. Check for si_code == SI_TIMER before checking for
16558 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16560 * lynx-i386-low.c: New file.
16561 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16563 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16565 * lynx-low.c (ptrace_request_to_str): Remove handling for
16566 request values that have been removed in LynxOS 5.x.
16568 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16570 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16573 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16575 * configure.ac: Add --enable-inprocess-agent option.
16576 * configure: Rebuilt.
16578 2010-09-06 Yao Qi <yao@codesourcery.com>
16580 * linux-low.c (linux_kill): Remove unused variable.
16581 (linux_stabilize_threads): Likewise.
16582 * server.c (start_inferior): Likewise.
16583 (queue_stop_reply_callback): Likewise.
16584 * tracepoint.c (do_action_at_tracepoint): Likewise.
16586 2010-09-06 Yao Qi <yao@codesourcery.com>
16588 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16591 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16593 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16595 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16597 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16600 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16602 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16603 gdbserver/lynx-ppc-low.c: New files.
16604 * Makefile.in (lynx_low_h): New variable.
16605 (lynx-low.o, lynx-ppc-low.o): New rules.
16606 * configure.ac: On LynxOS, link with -lnetinet.
16607 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16608 * configure: regenerate.
16610 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16612 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16613 * configure.ac: Add check for vasprintf and vsnprintf.
16614 * configure, config.in: Regenerate.
16615 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16617 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16619 * gdbreplay.c: Move include of alloca.h up, next to include of
16621 * server.h: Add include of malloc.h.
16622 * mem-break.c: Remove include of malloc.h.
16623 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16625 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16627 * Makefile.in (memmem.o): Build with -Wno-error.
16629 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16631 * utils.c (xsnprintf): Make non-static.
16632 * server.h: Add xsnprintf declaration.
16633 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16634 replace calls to snprintf by calls to xsnprintf throughout.
16636 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16638 * configure.ac: Add configure check for alloca.
16639 * configure, config.in: Regenerate.
16640 * server.h: Include alloca.h if it exists.
16641 * gdbreplay.c: Include alloca.h if it exists.
16643 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16645 * linux-low.c (__SIGRTMIN): Define if not already defined.
16646 (linux_create_inferior): Check for __ANDROID__ rather than
16648 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16649 are already deferred.
16650 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16651 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16652 stopped and already has a pending signal to report.
16653 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16654 a pending signal to report or is moving out of a jump pad.
16655 (linux_init_signals): Check for __ANDROID__ rather than
16658 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16660 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16661 debug_threads check. Avoid a linear search when not doing debug
16664 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16666 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16667 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16668 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16669 (process_event): Change local fd's type to gdb_fildes_t.
16670 (create_file_handler): Adjust prototype.
16671 (delete_file_handler): Adjust prototype.
16672 (handle_file_event): Adjust prototype. Use pfildes.
16673 (create_file_event): Adjsut prototype.
16674 * remote-utils.c (remote_desc, listen_desc): Change type to
16676 * server.h: New gdb_fildes_t typedef.
16677 [USE_WIN32API]: Include winsock2.h.
16678 (delete_file_handler, add_file_handler): Adjust prototypes.
16679 (pfildes): Declare.
16680 * utils.c (pfildes): New.
16682 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16684 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16685 * configure: Regenerate.
16687 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16689 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16690 (linux_done_accessing_memory): ... this.
16691 (linux_target_ops): Adjust.
16692 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16693 * nto-low.c (nto_target_ops): Adjust comment.
16694 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16695 * spu-low.c (spu_target_ops): Adjust comment.
16696 * target.h (target_ops): Rename unprepare_to_access_memory field
16697 to done_accessing_memory.
16698 (unprepare_to_access_memory): Rename to ...
16699 (done_accessing_memory): ... this.
16701 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16703 * linux-low.c (linux_prepare_to_access_memory): New.
16704 (linux_unprepare_to_access_memory): New.
16705 (linux_target_ops): Install them.
16706 * server.c (read_memory): Rename to ...
16707 (gdb_read_memory): ... this. Use
16708 prepare_to_access_memory/prepare_to_access_memory.
16709 (write_memory): Rename to ...
16710 (gdb_write_memory): ... this. Use
16711 prepare_to_access_memory/prepare_to_access_memory.
16712 (handle_search_memory_1): Adjust.
16713 (process_serial_event): Adjust.
16714 * target.h (struct target_ops): New fields
16715 prepare_to_access_memory and unprepare_to_access_memory.
16716 (prepare_to_access_memory, unprepare_to_access_memory): New.
16717 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16718 prepare_to_access_memory/prepare_to_access_memory.
16719 * nto-low.c (nto_target_ops): Adjust.
16720 * spu-low.c (spu_target_ops): Adjust.
16721 * win32-low.c (win32_target_ops): Adjust.
16723 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16725 * Makefile.in (WARN_CFLAGS): Get it from configure.
16726 (WERROR_CFLAGS): New.
16727 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16728 * configure.ac: Introduce --enable-werror, which adds -Werror to
16729 the compiler command line. Enabled by default. Disable with
16730 --disable-werror. Add -Wdeclaration-after-statement
16731 Wpointer-arith and -Wformat-nonliteral to warning flags.
16732 * configure: Regenerate.
16734 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16736 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16738 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16740 * gdbreplay.c (remote_error): New.
16742 (expect): Use gdbchar. Check for error reading from GDB.
16743 Clarify sync error output.
16744 (play): Check for errors writing to GDB.
16745 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16746 * remote-utils.c (getpkt): Check for errors writing to the remote
16749 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16751 * linux-low.c (linux_wait_1): Move non-debugging code out of
16752 `debug_threads' control.
16754 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16756 * linux-low.c (linux_wait_1): Don't set last_status here.
16757 * server.c (push_event, queue_stop_reply_callback): Assert we're
16758 not pushing a TARGET_WAITKIND_IGNORE event.
16759 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16760 (myresume, handle_target_event): Set the thread's last_resume_kind
16761 and last_status from the target returned status.
16763 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16767 * linux-x86-low.c (update_debug_registers_callback): New.
16768 (i386_dr_low_set_addr): Use it.
16769 (i386_dr_low_get_addr): New.
16770 (i386_dr_low_set_control): Use update_debug_registers_callback.
16771 (i386_dr_low_get_control): New.
16772 (i386_dr_low_get_status): Adjust.
16773 * linux-low.c (linux_stop_lwp): New.
16774 * linux-low.h (linux_stop_lwp): Declare.
16776 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16777 argument instead of a i386_debug_reg_state.
16778 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16779 a i386_debug_reg_state.
16780 (i386_insert_aligned_watchpoint): Adjust.
16781 (i386_remove_aligned_watchpoint): Adjust.
16782 (i386_low_stopped_data_address): Read the debug registers from the
16783 inferior instead of from the mirrors.
16784 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16785 (i386_dr_low_get_addr): Declare.
16786 (i386_dr_low_get_control): Declare.
16787 (i386_dr_low_get_status): Change prototype.
16789 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16790 (i386_dr_low_get_addr): New.
16791 (i386_dr_low_get_control): New.
16792 (i386_dr_low_get_status): Adjust prototype. Return
16794 (i386_initial_stuff): Clear dr_status_mirror and
16796 (i386_get_thread_context): Adjust.
16797 (i386_set_thread_context): Adjust.
16798 (i386_thread_added): Adjust.
16800 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16802 * linux-low.h (linux_thread_area): Delete declaration.
16804 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16806 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16807 after its termination.
16809 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16811 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16812 (gdb_wants_all_stopped): Delete.
16813 (linux_wait_1): Don't call them.
16814 * server.c (handle_v_cont): Tag all threads as want-stopped.
16815 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16816 stopped as "client-wants-stopped".
16818 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16820 * Makefile.in (signals_h): New.
16821 (server_h): Depend on it.
16822 (server.o): Don't depend on $(signals_def).
16823 (signals.o): Depend on $(signals_def).
16825 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16827 * Makefile.in (signals_def): New.
16828 (server_h): Append include/gdb/signals.h and signals_def.
16829 (server.o): Append signals_def.
16831 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16833 * server.c (handle_target_event): Use target_signal_to_host for
16834 resume_info.sig initialization.
16835 * target.h (struct thread_resume) <sig>: New comment.
16837 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16839 * server.c (handle_query): strcpy() the returned string from paddress()
16840 instead of sprintf().
16841 * utils.c (paddress): Return phex_nz().
16843 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16845 * server.c (handle_v_cont): Call mourn_inferior if process
16847 (myresume): Likewise.
16849 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16851 Static tracepoints, and integration with UST.
16853 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16854 * mem-break.c (uninsert_all_breakpoints)
16855 (reinsert_all_breakpoints): New.
16856 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16857 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16858 (gdb_agent_ust_loaded, helper_thread_id)
16859 (gdb_agent_helper_thread_id): New macros.
16860 (struct ipa_sym_addresses): Add addr_ust_loaded,
16861 addr_helper_thread_id, addr_cmd_buf.
16862 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16863 (in_process_agent_loaded_ust): New.
16864 (write_e_ust_not_loaded): New.
16865 (maybe_write_ipa_ust_not_loaded): New.
16866 (struct collect_static_trace_data_action): New.
16867 (enum tracepoint_type) <static_tracepoint>: New.
16868 (struct tracepoint) <handle>: Mention static tracepoints.
16869 (struct static_tracepoint_ctx): New.
16870 (CMD_BUF_SIZE): New.
16871 (add_tracepoint_action): Handle static tracepoint actions.
16872 (unprobe_marker_at): New.
16873 (clear_installed_tracepoints): Handle static tracepoints.
16874 (cmd_qtdp): Handle static tracepoints.
16875 (probe_marker_at): New.
16876 (cmd_qtstart): Handle static tracepoints.
16877 (response_tracepoint): Handle static tracepoints.
16878 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16879 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16880 (get_context_regcache): Handle static tracepoints.
16881 (do_action_at_tracepoint): Handle static tracepoint actions.
16882 (traceframe_find_block_type): Handle static trace data blocks.
16883 (traceframe_read_sdata): New.
16884 (download_tracepoints): Download static tracepoint actions.
16885 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16886 (GDB_PROBE_NAME): New.
16888 (GET_UST_SYM): New.
16891 (ust_marker_to_static_tracepoint): New.
16893 (collect_ust_data_at_tracepoint): New.
16894 (gdb_ust_probe): New.
16895 (UNIX_PATH_MAX, SOCK_DIR): New.
16896 (gdb_ust_connect_sync_socket): New.
16897 (resume_thread, stop_thread): New.
16898 (run_inferior_command): New.
16899 (init_named_socket): New.
16900 (gdb_ust_socket_init): New.
16901 (cstr_to_hexstr): New.
16903 (first_marker, next_marker): New.
16904 (response_ust_marker): New.
16905 (cmd_qtfstm, cmd_qtsstm): New.
16906 (unprobe_marker_at, probe_marker_at): New.
16907 (cmd_qtstmat, gdb_ust_thread): New.
16908 (gdb_ust_init): New.
16909 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16910 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16911 (ST_REGENTRY): New.
16912 (x86_64_st_collect_regmap): New.
16913 (X86_64_NUM_ST_COLLECT_GREGS): New.
16914 (AMD64_RIP_REGNUM): New.
16915 (supply_static_tracepoint_registers): New.
16916 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16917 (ST_REGENTRY): New.
16918 (i386_st_collect_regmap): New.
16919 (i386_NUM_ST_COLLECT_GREGS): New.
16920 (supply_static_tracepoint_registers): New.
16921 * server.c (handle_query): Handle qXfer:statictrace:read.
16922 <qSupported>: Report support for StaticTracepoints, and
16923 qXfer:statictrace:read features.
16924 * server.h (traceframe_read_sdata)
16925 (supply_static_tracepoint_registers): Declare.
16926 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16927 (unpack_varlen_hex): Include in IPA build.
16928 * Makefile.in (ustlibs, ustinc): New.
16929 (IPA_OBJS): Add remote-utils-ipa.o.
16930 ($(IPA_LIB)): Link -ldl and -lpthread.
16932 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16933 * config.in, configure: Regenerate.
16935 2010-06-20 Ian Lance Taylor <iant@google.com>
16936 Pedro Alves <pedro@codesourcery.com>
16938 * linux-x86-low.c (always_true): Delete.
16939 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16940 trying to fool the compiler with always_true.
16942 2010-06-20 Pedro Alves <pedro@codesourcery.com>
16944 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16945 conditions in gdbserver.
16947 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16949 * spu-low.c (spu_read_memory): Wrap around local store limit.
16950 (spu_write_memory): Likewise.
16952 2010-06-15 Pedro Alves <pedro@codesourcery.com>
16954 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16955 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16957 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16959 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16960 uses with LONGEST uses.
16962 2010-06-14 Stan Shebs <stan@codesourcery.com>
16963 Pedro Alves <pedro@codesourcery.com>
16967 * linux-x86-low.c: Include limits.h.
16969 (always_true): New.
16972 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16973 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16974 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16975 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16976 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16977 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16978 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16979 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16980 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16981 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16982 (amd64_emit_void_call_2): New.
16983 (amd64_emit_ops): New.
16984 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16985 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16986 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16987 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16988 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16989 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16990 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16991 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16992 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16993 (i386_emit_stack_adjust, i386_emit_int_call_1)
16994 (i386_emit_void_call_2): New.
16995 (i386_emit_ops): New.
16996 (x86_emit_ops): New.
16997 (the_low_target): Install x86_emit_ops.
16998 * server.h (struct emit_ops): New.
16999 (get_raw_reg_func_addr): Declare.
17000 (current_insn_ptr, emit_error): Declare.
17001 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17002 (set_trace_state_variable_value): New defines.
17003 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17004 addr_get_trace_state_variable_value and
17005 addr_set_trace_state_variable_value.
17006 (symbol_list): New fields for get_raw_reg,
17007 get_trace_state_variable_value and set_trace_state_variable_value.
17008 (condfn): New typedef.
17009 (struct tracepoint): New field `compiled_cond'.
17010 (do_action_at_tracepoint): Clear compiled_cond.
17011 (get_trace_state_variable_value, set_trace_state_variable_value):
17013 (condition_true_at_tracepoint): If there's a compiled condition,
17015 (current_insn_ptr, emit_error): New globals.
17016 (struct bytecode_address): New.
17017 (get_raw_reg_func_addr): New.
17018 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17019 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17020 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17021 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17022 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17023 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17024 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17025 (compile_tracepoint_condition, compile_bytecodes): New.
17026 * target.h (emit_ops): Forward declare.
17027 (struct target_ops): New field emit_ops.
17028 (target_emit_ops): New.
17029 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17030 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17031 * linux-low.c (linux_emit_ops): New.
17032 (linux_target_ops): Install it.
17033 * linux-low.h (struct linux_target_ops): New field emit_ops.
17035 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17037 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17038 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17040 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17041 Stan Shebs <stan@codesourcery.com>
17043 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17044 (all): Depend on $(extra_libraries).
17045 (install-only): Install the IPA.
17046 (IPA_OBJS, IPA_LIB): New.
17047 (clean): Remove the IPA lib.
17048 (IPAGENT_CFLAGS): New.
17049 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17050 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17051 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17052 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17053 * configure.ac: Check for atomic builtins support in the compiler.
17054 (IPA_DEPFILES, extra_libraries): Define.
17055 * configure.srv (ipa_obj): Add description.
17056 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17057 (i[34567]86-*-linux*): Set ipa_obj.
17058 (x86_64-*-linux*): Set ipa_obj.
17059 * linux-low.c (stabilizing_threads): New.
17060 (supports_fast_tracepoints): New.
17061 (linux_detach): Stabilize threads before detaching.
17062 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17063 the lwp is either not stabilizing, or is moving out of a jump pad.
17064 (linux_fast_tracepoint_collecting): New.
17065 (maybe_move_out_of_jump_pad): New.
17066 (enqueue_one_deferred_signal): New.
17067 (dequeue_one_deferred_signal): New.
17068 (linux_wait_for_event_1): If moving out of a jump pad, defer
17069 pending signals to later.
17070 (linux_stabilize_threads): New.
17071 (linux_wait_1): Check if threads need moving out of jump pads, and
17073 (stuck_in_jump_pad_callback): New.
17074 (move_out_of_jump_pad_callback): New.
17075 (lwp_running): New.
17076 (linux_resume_one_lwp): Handle moving out of jump pads.
17077 (linux_set_resume_request): Dequeue deferred signals.
17078 (need_step_over_p): Also step over fast tracepoint jumps.
17079 (start_step_over): Also uninsert fast tracepoint jumps.
17080 (finish_step_over): Also reinsert fast tracepoint jumps.
17081 (linux_install_fast_tracepoint_jump): New.
17082 (linux_target_ops): Install linux_stabilize_threads and
17083 linux_install_fast_tracepoint_jump_pad.
17084 * linux-low.h (linux_target_ops) <get_thread_area,
17085 install_fast_tracepoint_jump_pad>: New fields.
17086 (struct lwp_info) <collecting_fast_tracepoint,
17087 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17088 (linux_get_thread_area): Declare.
17089 * linux-x86-low.c (jump_insn): New.
17090 (x86_get_thread_area): New.
17091 (append_insns): New.
17092 (push_opcode): New.
17093 (amd64_install_fast_tracepoint_jump_pad): New.
17094 (i386_install_fast_tracepoint_jump_pad): New.
17095 (x86_install_fast_tracepoint_jump_pad): New.
17096 (the_low_target): Install x86_get_thread_area and
17097 x86_install_fast_tracepoint_jump_pad.
17098 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17099 (struct fast_tracepoint_jump): New.
17100 (fast_tracepoint_jump_insn): New.
17101 (fast_tracepoint_jump_shadow): New.
17102 (find_fast_tracepoint_jump_at): New.
17103 (fast_tracepoint_jump_here): New.
17104 (delete_fast_tracepoint_jump): New.
17105 (set_fast_tracepoint_jump): New.
17106 (uninsert_fast_tracepoint_jumps_at): New.
17107 (reinsert_fast_tracepoint_jumps_at): New.
17108 (set_breakpoint_at): Use write_inferior_memory.
17109 (uninsert_raw_breakpoint): Use write_inferior_memory.
17110 (check_mem_read): Mask out fast tracepoint jumps.
17111 (check_mem_write): Mask out fast tracepoint jumps.
17112 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17113 (set_fast_tracepoint_jump): Declare.
17114 (delete_fast_tracepoint_jump)
17115 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17116 (reinsert_fast_tracepoint_jumps_at): Declare.
17117 * regcache.c: Don't compile many functions when building the
17118 in-process agent library.
17119 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17120 the register buffer in the heap.
17121 (free_register_cache): If the register buffer isn't owned by the
17122 regcache, don't free it.
17123 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17124 pre-existing register caches.
17125 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17127 (convert_ascii_to_int): : Constify `from' parameter type.
17128 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17129 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17130 the needed buffer in-place.
17131 (relocate_instruction): New.
17132 * server.c (handle_query) <qSymbols>: If the target supports
17133 tracepoints, give it a chance of looking up symbols. Report
17134 support for fast tracepoints.
17135 (handle_status): Stabilize threads.
17136 (process_serial_event): Adjust.
17137 * server.h (struct fast_tracepoint_jump): Forward declare.
17138 (struct process_info) <fast_tracepoint_jumps>: New field.
17139 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17140 (decode_X_packet, decode_M_packet): Adjust.
17141 (relocate_instruction): Declare.
17142 (in_process_agent_loaded): Declare.
17143 (tracepoint_look_up_symbols): Declare.
17144 (struct fast_tpoint_collect_status): Declare.
17145 (fast_tracepoint_collecting): Declare.
17146 (force_unlock_trace_buffer): Declare.
17147 (handle_tracepoint_bkpts): Declare.
17148 (initialize_low_tracepoint)
17149 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17150 * target.h (struct target_ops) <stabilize_threads,
17151 install_fast_tracepoint_jump_pad>: New fields.
17152 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17153 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17154 [HAVE_STDINT_H]: Include stdint.h.
17155 (trace_debug_1): Rename to ...
17156 (trace_vdebug): ... this.
17157 (trace_debug): Rename to ...
17158 (trace_debug_1): ... this. Add `level' parameter.
17159 (trace_debug): New.
17160 (ATTR_USED, ATTR_NOINLINE): New.
17161 (IP_AGENT_EXPORT): New.
17162 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17163 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17164 (about_to_request_buffer_space, trace_buffer_is_full)
17165 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17166 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17167 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17168 (traceframe_write_count, traceframes_created)
17169 (trace_state_variables)
17170 New renaming defines.
17171 (struct ipa_sym_addresses): New.
17172 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17173 (symbol_list): New.
17174 (ipa_sym_addrs): New.
17175 (all_tracepoint_symbols_looked_up): New.
17176 (in_process_agent_loaded): New.
17177 (write_e_ipa_not_loaded): New.
17178 (maybe_write_ipa_not_loaded): New.
17179 (tracepoint_look_up_symbols): New.
17180 (debug_threads) [IN_PROCESS_AGENT]: New.
17181 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17182 (UNKNOWN_SIDE_EFFECTS): New.
17183 (stop_tracing): New.
17184 (flush_trace_buffer): New.
17185 (stop_tracing_bkpt): New.
17186 (flush_trace_buffer_bkpt): New.
17187 (read_inferior_integer): New.
17188 (read_inferior_uinteger): New.
17189 (read_inferior_data_pointer): New.
17190 (write_inferior_data_pointer): New.
17191 (write_inferior_integer): New.
17192 (write_inferior_uinteger): New.
17193 (struct collect_static_trace_data_action): Delete.
17194 (enum tracepoint_type): New.
17195 (struct tracepoint) <type>: New field `type'.
17196 <actions_str, step_actions, step_actions_str>: Only include in
17198 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17199 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17200 (tracepoints): Use IP_AGENT_EXPORT.
17201 (last_tracepoint): Don't include in the IPA.
17202 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17203 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17204 (alloced_trace_state_variables): New.
17205 (trace_state_variables): Use IP_AGENT_EXPORT.
17206 (traceframe_t): Delete unused variable.
17207 (circular_trace_buffer): Don't include in the IPA.
17208 (trace_buffer_start): Delete.
17209 (struct trace_buffer_control): New.
17210 (trace_buffer_free): Delete.
17211 (struct ipa_trace_buffer_control): New.
17212 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17213 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17215 (trace_buffer_ctrl): New.
17216 (TRACE_BUFFER_CTRL_CURR): New.
17217 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17218 Reimplement as macros.
17219 (trace_buffer_wrap): Delete.
17220 (traceframe_write_count, traceframe_read_count)
17221 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17222 (struct tracepoint_hit_ctx) <type>: New field.
17223 (struct fast_tracepoint_ctx): New.
17224 (memory_barrier): New.
17226 (record_tracepoint_error): Update atomically in the IPA.
17227 (clear_inferior_trace_buffer): New.
17228 (about_to_request_buffer_space): New.
17229 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17230 updating the same buffer.
17231 (add_tracepoint): Default the tracepoint's type to trap
17232 tracepoint, and orig_size to -1.
17233 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17234 internal variables.
17235 (create_trace_state_variable): New parameter `gdb'. Handle it.
17236 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17237 (cmd_qtdp): Handle fast tracepoints.
17238 (cmd_qtdv): Adjust.
17239 (max_jump_pad_size): New.
17240 (gdb_jump_pad_head): New.
17241 (get_jump_space_head): New.
17242 (claim_jump_space): New.
17243 (sort_tracepoints): New.
17244 (MAX_JUMP_SIZE): New.
17245 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17247 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17248 support. Upload fast traceframes, and delete internal IPA
17250 (stop_tracing_handler): New.
17251 (flush_trace_buffer_handler): New.
17252 (cmd_qtstop): Upload fast tracepoints.
17253 (response_tracepoint): Handle fast tracepoints.
17254 (tracepoint_finished_step): Upload fast traceframes. Set the
17255 tracepoint hit context's tracepoint type.
17256 (handle_tracepoint_bkpts): New.
17257 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17258 type. Add comment about fast tracepoints.
17259 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17260 non-existing action_str field.
17261 (get_context_regcache): Handle fast tracepoints.
17262 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17264 (fast_tracepoint_from_jump_pad_address): New.
17265 (fast_tracepoint_from_ipa_tpoint_address): New.
17266 (collecting_t): New.
17267 (force_unlock_trace_buffer): New.
17268 (fast_tracepoint_collecting): New.
17270 (gdb_collect): New.
17271 (write_inferior_data_ptr): New.
17272 (target_tp_heap): New.
17273 (target_malloc): New.
17274 (download_agent_expr): New.
17276 (download_tracepoints): New.
17277 (download_trace_state_variables): New.
17278 (upload_fast_traceframes): New.
17279 (IPA_FIRST_TRACEFRAME): New.
17280 (IPA_NEXT_TRACEFRAME_1): New.
17281 (IPA_NEXT_TRACEFRAME): New.
17282 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17283 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17284 (gdb_jump_pad_buffer_end): New.
17285 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17286 (initialize_tracepoint): Adjust.
17287 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17288 buffer. Initialize the low module.
17289 * utils.c (PREFIX, TOOLNAME): New.
17290 (malloc_failure): Use PREFIX.
17291 (error): In the IPA, an error causes an exit.
17292 (fatal, warning): Use PREFIX.
17293 (internal_error): Use TOOLNAME.
17294 (NUMCELLS): Increase to 10.
17295 * configure, config.in: Regenerate.
17297 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17299 * server.c (handle_query) <qSupported>: Do two passes over the
17300 qSupported string to avoid nesting strtok.
17302 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17304 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17306 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17307 -Wl,--dynamic-list.
17308 * configure: Regenerate.
17309 * proc-service.list: New.
17311 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17313 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17316 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17318 * gdbreplay.c (remote_open): Check error return from socket() call by
17319 its equality to -1 not by it being negative.
17320 * remote-utils.c (remote_open): Likewise.
17322 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17324 * config.h: Regenerate.
17326 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17328 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17329 doesn't provide PTRACE_GET_THREAD_AREA.
17331 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17333 * linux-m68k-low.c: Include <asm/ptrace.h>
17334 (ps_get_thread_area): Implement.
17336 2010-05-03 Doug Evans <dje@google.com>
17338 * event-loop.c (struct callback_event): New struct.
17339 (callback_list): New global.
17340 (append_callback_event, delete_callback_event): New functions.
17341 (process_callback): New function.
17342 (start_event_loop): Call it.
17343 * remote-utils.c (NOT_SCHEDULED): Define.
17344 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17345 moved out of readchar.
17346 (readchar): Rewrite. Call reschedule before returning.
17347 (reset_readchar): New function.
17348 (remote_close): Call it.
17349 (process_remaining, reschedule): New functions.
17350 * server.h (callback_handler_func): New typedef.
17351 (append_callback_event, delete_callback_event): Declare.
17353 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17355 * proc-service.c (ps_pglobal_lookup): Use
17356 thread_db_look_up_one_symbol.
17357 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17358 parameter. Use it instead of all_symbols_looked_up.
17359 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17361 (all_symbols_looked_up): Don't declare.
17362 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17363 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17365 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17366 Set all_symbols_looked_up here.
17367 (thread_db_look_up_one_symbol): New.
17368 (thread_db_get_tls_address): Adjust.
17369 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17370 thread_db object on the heap, and tentatively set it in the
17372 (thread_db_init): Don't set all_symbols_looked_up here.
17373 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17375 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17377 * linux-low.c (linux_kill, linux_detach): Adjust.
17378 (status_pending_p_callback): Remove redundant statement. Check
17379 for !TARGET_WAITIKIND_IGNORE, instead of
17380 TARGET_WAITKIND_STOPPED.
17381 (handle_tracepoints): Make sure LWP is locked. Adjust.
17382 (linux_wait_for_event_1): Adjust.
17383 (linux_cancel_breakpoints): New.
17384 (unsuspend_one_lwp): New.
17385 (unsuspend_all_lwps): New.
17386 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17387 (send_sigstop_callback): Change return type to int, add new
17388 `except' parameter and handle it.
17389 (suspend_and_send_sigstop_callback): New.
17390 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17391 pass them down. If SUSPEND, also increment the lwp's suspend
17393 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17394 (need_step_over_p): Don't consider suspended LWPs.
17395 (start_step_over): Adjust.
17396 (proceed_one_lwp): Change return type to int, add new `except'
17397 parameter and handle it.
17398 (unsuspend_and_proceed_one_lwp): New.
17399 (proceed_all_lwps): Use find_inferior instead of
17401 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17402 also decrement the suspend count of LWPs. Pass `except' down,
17403 instead of hacking its suspend count.
17404 (linux_pause_all): Add `freeze' parameter. Adjust.
17405 (linux_unpause_all): New.
17406 (linux_target_ops): Install linux_unpause_all.
17407 * server.c (handle_status): Adjust.
17408 * target.h (struct target_ops): New fields `unpause_all' and
17409 `cancel_breakpoints'. Add new parameter to `pause_all'.
17410 (pause_all): Add new `freeze' parameter.
17411 (unpause_all): New.
17412 (cancel_breakpoints): New.
17413 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17414 cancel breakpoints.
17415 (cmd_qtstart): Pause threads.
17416 (stop_tracing): Pause threads, and cancel breakpoints.
17417 * win32-low.c (win32_target_ops): Adjust.
17419 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17421 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17422 the inferior right away from here...
17423 (linux_wait_1): ... to here, and adjust to check the thread's
17424 last_resume_kind instead of the lwp's step or stop_expected flags.
17426 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17428 * README: Use consistent `GDB' and `GDBserver' spellings.
17430 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17432 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17433 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17434 (linux_detach_one_lwp): Assume the lwp is stopped.
17435 (any_thread_of): Delete.
17436 (linux_detach): Stop all lwps here. Don't blindly delete all
17438 (delete_lwp_callback): New.
17439 (linux_mourn): Delete all lwps of the process that is gone.
17440 (linux_wait_1): Don't delete the last lwp of the process here.
17441 * mem-break.h (mark_breakpoints_out): Declare.
17442 * mem-break.c (mark_breakpoints_out): New.
17443 (free_all_breakpoints): Use it.
17444 * server.c (handle_target_event): If the process is gone, mark
17446 * thread-db.c (struct thread_db) <create_bp>: New field.
17447 (thread_db_enable_reporting): Fix prototype. Store a thread event
17448 breakpoint reference in the thread_db struct.
17449 (thread_db_load_search): Clear the thread_db object.
17450 (try_thread_db_load_1): Ditto.
17451 (switch_to_process): New.
17452 (disable_thread_event_reporting): Use it.
17453 (remove_thread_event_breakpoints): New.
17454 (thread_db_detach, thread_db_mourn): Use it.
17456 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17458 * linux-low.c (linux_enable_event_reporting): New.
17459 (linux_wait_for_event_1, handle_extended_wait): Use it.
17461 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17463 * linux-low.c (linux_kill_one_lwp, linux_kill)
17464 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17465 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17466 SIGSTOP even if the LWP is stopped.
17467 (send_sigstop_callback): New.
17468 (stop_all_lwps): Use send_sigstop_callback instead.
17469 (linux_resume_one_thread): Adjust.
17470 (proceed_one_lwp): Still proceed an LWP that the client has
17471 requested to stop, if we haven't reported it as stopped yet. Make
17472 sure that LWPs the client want stopped, have a pending SIGSTOP.
17474 2010-04-26 Doug Evans <dje@google.com>
17476 * server.c (handle_general_set): Make static.
17478 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17479 Print received char after testing for error/eof instead of before.
17480 (input_interrupt): Tweak comment.
17482 2010-04-23 Doug Evans <dje@google.com>
17484 * server.c (start_inferior): Print inferior argv if --debug.
17486 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17488 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17489 * nto-x86-low.c: Include server.h
17491 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17493 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17494 be consistent with other sources of this directory.
17495 (init_registers_amd64): Correct name of source file of this function
17498 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17500 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17501 64-bit executables.
17503 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17505 * win32-i386-low.c: Add 64-bit support.
17506 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17507 (init_registers_amd64): Declare.
17508 (mappings): Add 64-bit version of array.
17509 (init_windows_x86): New function.
17510 (the_low_target): Change init_arch field to init_windows_x86.
17512 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17514 * win32-low.c: Adapt to support also 64-bit architecture.
17515 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17516 (get_image_name): Use SIZE_T type for local variable `done'.
17517 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17518 (toolhelp_get_dll_name): Idem.
17519 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17520 Use uintptr_t typecast to avoid warning.
17521 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17522 (handle_exception): Use phex_nz to avoid warning.
17523 (win32_wait): Remove unused local variable `process'.
17525 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17527 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17530 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17532 * configure.ac: Use `ws2_32' library for srv_mingw.
17533 * configure: Regenerate.
17534 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17535 * remote-utils.c: Likewise.
17537 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17539 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17540 if __x86_64__ is defined.
17542 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17544 * configure: Regenerate.
17546 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17548 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17549 * target.h (target_ops): New get_tib_address field.
17550 * win32-low.h (win32_thread_info): Add thread_local_base field.
17551 * win32-low.c (child_add_thread): Add tlb argument.
17552 Set thread_local_base field to TLB.
17553 (get_child_debug_event): Adapt to child_add_thread change.
17554 (win32_get_tib_address): New function.
17555 (win32_target_ops): Set get_tib_address field to
17556 win32_get_tib_address.
17557 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17559 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17561 * linux-low.c (linux_mourn): Also remove the process.
17562 * server.c (handle_target_event): Don't remove the process here.
17563 * nto-low.c (nto_mourn): New.
17564 (nto_target_ops): Install it.
17565 * spu-low.c (spu_mourn): New.
17566 (spu_target_ops): Install it.
17567 * win32-low.c (win32_mourn): New.
17568 (win32_target_ops): Install it.
17570 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17572 * server.h (buffer_xml_printf): Remove redundant `;'.
17574 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17576 * regcache.c (set_register_cache): Invalidate regcaches before
17577 changing the register cache layout.
17578 (regcache_invalidate_one): Allow a NULL regcache.
17579 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17580 regcaches before changing the register cache layout or the target
17583 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17585 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17586 variable warning on Linux/x86-64.
17588 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17590 GDBserver disconnected tracing support.
17592 * linux-low.c (linux_remove_process): Delete.
17593 (add_lwp): Don't set last_resume_kind here.
17594 (linux_kill): Use `mourn'.
17595 (linux_detach): Use `thread_db_detach', and `mourn'.
17596 (linux_mourn): New.
17597 (linux_attach_lwp_1): Adjust comment.
17598 (linux_attach): last_resume_kind moved the thread_info; adjust.
17599 (status_pending_p_callback): Adjust.
17600 (linux_wait_for_event_1): Adjust.
17601 (count_events_callback, select_singlestep_lwp_callback)
17602 (select_event_lwp_callback, cancel_breakpoints_callback)
17603 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17604 (proceed_one_lwp): Adjust.
17605 (linux_async): Add debug output.
17606 (linux_thread_stopped): New.
17607 (linux_pause_all): New.
17608 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17610 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17611 (thread_db_free): Delete declaration.
17612 (thread_db_detach, thread_db_mourn): Declare.
17613 * thread-db.c (thread_db_init): Use thread_db_mourn.
17614 (thread_db_free): Delete, split in two.
17615 (disable_thread_event_reporting): New.
17616 (thread_db_detach): New.
17617 (thread_db_mourn): New.
17619 * server.h (struct thread_info) <last_resume_kind>: New field.
17620 <attached>: Add comment.
17621 <gdb_detached>: New field.
17622 (handler_func): Change return type to int.
17623 (handle_serial_event, handle_target_event): Ditto.
17624 (gdb_connected): Declare.
17626 (disconnected_tracing): Declare.
17627 (stop_tracing): Declare.
17629 * server.c (handle_query) <qSupported>: Report support for
17630 disconnected tracing.
17631 (queue_stop_reply_callback): Account for running threads.
17632 (gdb_wants_thread_stopped): New.
17633 (gdb_wants_all_threads_stopped): New.
17634 (gdb_reattached_process): New.
17635 (handle_status): Clear the `gdb_detached' flag of all processes.
17636 In all-stop, stop all threads.
17637 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17638 (process_serial_event): If the remote connection breaks, or if an
17639 exit was forced with "monitor exit", force an event loop exit.
17640 Handle disconnected tracing on detach.
17641 (handle_serial_event): Adjust.
17642 (handle_target_event): If GDB isn't connected, forward events back
17643 to the inferior, unless the last process exited, in which case,
17644 exit gdbserver. Adjust interface.
17646 * remote-utils.c (remote_open): Don't block in accept. Instead
17647 register an event loop source on the listen socket file
17648 descriptor. Refactor bits into ...
17649 (listen_desc): ... this new global.
17650 (gdb_connected): ... this new function.
17651 (enable_async_notification): ... this new function.
17652 (handle_accept_event): ... this new function.
17653 (remote_close): Clear remote_desc.
17655 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17657 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17659 (mourn_inferior): Define.
17660 (target_process_qsupported): Avoid the dangling else problem.
17661 (thread_stopped): Define.
17662 (pause_all): Define.
17663 (target_waitstatus_to_string): Declare.
17664 * target.c (target_waitstatus_to_string): New.
17666 * tracepoint.c (tracing): Make extern.
17667 (disconnected_tracing): New.
17668 (stop_tracing): Make extern. Handle tracing stops due to GDB
17670 (cmd_qtdisconnected): New.
17671 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17672 (handle_tracepoint_general_set): Handle QTDisconnected.
17674 * event-loop.c (event_handler_func): Change return type to int.
17675 (process_event): Bail out if the event handler wants the event
17677 (handle_file_event): Ditto.
17678 (start_event_loop): Bail out if the event handler wants the event
17681 * nto-low.c (nto_target_ops): Adjust.
17682 * spu-low.c (spu_wait): Don't remove the process here.
17683 (spu_target_ops): Adjust.
17684 * win32-low.c (win32_wait): Don't remove the process here.
17685 (win32_target_ops): Adjust.
17687 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17689 * regcache.c (realloc_register_cache): Invalidate inferior's
17690 regcache before recreating it.
17692 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17694 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17696 2010-04-09 Stan Shebs <stan@codesourcery.com>
17697 Pedro Alves <pedro@codesourcery.com>
17699 * server.h (LONGEST): New.
17700 (struct thread_info) <while_stepping>: New field.
17701 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17703 (initialize_tracepoint, handle_tracepoint_general_set)
17704 (handle_tracepoint_query, tracepoint_finished_step)
17705 (tracepoint_was_hit, release_while_stepping_state_list):
17706 (current_traceframe): Declare.
17707 * server.c (handle_general_set): Handle tracepoint packets.
17708 (read_memory): New.
17709 (write_memory): New.
17710 (handle_search_memory_1): Use read_memory.
17711 (handle_query): Report support for conditional tracepoints, trace
17712 state variables, and tracepoint sources. Handle tracepoint
17714 (main): Initialize the tracepoints module.
17715 (process_serial_event): Handle traceframe reads/writes.
17717 * linux-low.c (handle_tracepoints): New.
17718 (linux_wait_1): Call it.
17719 (linux_resume_one_lwp): Handle while-stepping.
17720 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17721 (linux_target_ops): Install them.
17722 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17724 * linux-x86-low.c (x86_supports_tracepoints): New.
17725 (the_low_target). Install it.
17727 * mem-break.h (delete_breakpoint): Declare.
17728 * mem-break.c (delete_breakpoint): Make external.
17730 * target.h (struct target_ops): Add `supports_tracepoints',
17731 `read_pc', and `write_pc' fields.
17732 (target_supports_tracepoints): Define.
17733 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17736 * regcache.h (struct regcache) <registers_owned>: New field.
17737 (init_register_cache, regcache_cpy): Declare.
17738 (regcache_read_pc, regcache_write_pc): Declare.
17739 (register_cache_size): Declare.
17740 (supply_regblock): Declare.
17741 * regcache.c (init_register_cache): New.
17742 (new_register_cache): Use it.
17743 (regcache_cpy): New.
17744 (register_cache_size): New.
17745 (supply_regblock): New.
17746 (regcache_read_pc, regcache_write_pc): New.
17748 * tracepoint.c: New.
17750 * Makefile.in (OBS): Add tracepoint.o.
17751 (tracepoint.o): New rule.
17753 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17755 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17757 (i386-mmx.c): Likewise.
17758 (i386-mmx-linux.o): Likewise.
17759 (i386-mmx-linux.c): Likewise.
17761 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17762 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17763 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17764 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17766 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17767 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17768 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17770 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17772 * Makefile.in (clean): Updated.
17774 (i386-avx.c): Likewise.
17775 (i386-avx-linux.o): Likewise.
17776 (i386-avx-linux.c): Likewise.
17777 (amd64-avx.o): Likewise.
17778 (amd64-avx.c): Likewise.
17779 (amd64-avx-linux.o): Likewise.
17780 (amd64-avx-linux.c): Likewise.
17782 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17783 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17784 (srv_amd64_regobj): Add amd64-avx.o.
17785 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17786 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17787 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17788 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17789 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17790 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17791 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17793 * i387-fp.c: Include "i386-xstate.h".
17795 (i387_cache_to_xsave): Likewise.
17796 (i387_xsave_to_cache): Likewise.
17797 (x86_xcr0): Likewise.
17799 * i387-fp.h (i387_cache_to_xsave): Likewise.
17800 (i387_xsave_to_cache): Likewise.
17801 (x86_xcr0): Likewise.
17803 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17804 * linux-crisv32-low.c (target_regsets): Likewise.
17805 * linux-m68k-low.c (target_regsets): Likewise.
17806 * linux-mips-low.c (target_regsets): Likewise.
17807 * linux-ppc-low.c (target_regsets): Likewise.
17808 * linux-s390-low.c (target_regsets): Likewise.
17809 * linux-sh-low.c (target_regsets): Likewise.
17810 * linux-sparc-low.c (target_regsets): Likewise.
17811 * linux-xtensa-low.c (target_regsets): Likewise.
17813 * linux-low.c: Include <sys/uio.h>.
17814 (regsets_fetch_inferior_registers): Support nt_type.
17815 (regsets_store_inferior_registers): Likewise.
17816 (linux_process_qsupported): New.
17817 (linux_target_ops): Add linux_process_qsupported.
17819 * linux-low.h (regset_info): Add nt_type.
17820 (linux_target_ops): Add process_qsupported.
17822 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17824 (init_registers_i386_avx_linux): New.
17825 (init_registers_amd64_avx_linux): Likewise.
17826 (xmltarget_i386_linux_no_xml): Likewise.
17827 (xmltarget_amd64_linux_no_xml): Likewise.
17828 (PTRACE_GETREGSET): Likewise.
17829 (PTRACE_SETREGSET): Likewise.
17830 (x86_fill_xstateregset): Likewise.
17831 (x86_store_xstateregset): Likewise.
17832 (use_xml): Likewise.
17833 (x86_linux_update_xmltarget): Likewise.
17834 (x86_linux_process_qsupported): Likewise.
17835 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17836 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17837 init_registers_i386_linux here. Call
17838 x86_linux_update_xmltarget.
17839 (the_low_target): Add x86_linux_process_qsupported.
17841 * server.c (handle_query): Call target_process_qsupported.
17843 * target.h (target_ops): Add process_qsupported.
17844 (target_process_qsupported): New.
17846 2010-04-03 Pedro Alves <pedro@codesourcery.com>
17848 * inferiors.c (add_thread): Set last_status kind to
17849 TARGET_WAITKIND_IGNORE.
17850 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17851 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17852 (linux_wait_1): Move `thread' local definition to block that uses
17853 it. Don't NULL initialize `event_child'.
17854 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17855 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17856 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17858 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17860 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17861 an extended waitstatus, or by a watchpoint.
17862 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17863 thread was stepping or has been stopped by a watchpoint.
17865 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17867 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17868 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17869 of another, then delete the previous, and validate all
17871 (validate_inserted_breakpoint): New.
17872 (delete_disabled_breakpoints): New.
17873 (validate_breakpoints): New.
17874 (check_mem_read): Validate breakpoints before trusting their
17875 shadow. Delete disabled breakpoints.
17876 (check_mem_write): Validate breakpoints before trusting they
17877 should be inserted. Delete disabled breakpoints.
17878 * mem-break.h (validate_breakpoints):
17879 * server.c (handle_query): Validate breakpoints when we see a
17882 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17884 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17885 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17886 if we could tell there's a GDB breakpoint at stop_pc.
17887 (need_step_over_p): Don't do a step over if we find a GDB
17888 breakpoint at the resume PC.
17890 * mem-break.c (struct raw_breakpoint): New.
17891 (enum bkpt_type): New type `gdb_breakpoint'.
17892 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17893 fields. New field `raw'.
17894 (find_raw_breakpoint_at): New.
17895 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17896 breakpoint instead.
17897 (set_breakpoint_at): Adjust.
17898 (delete_raw_breakpoint): New.
17899 (release_breakpoint): New.
17900 (delete_breakpoint): Rename to...
17901 (delete_breakpoint_1): ... this. Add proc parameter. Use
17902 release_breakpoint. Return ENOENT.
17903 (delete_breakpoint): Reimplement.
17904 (find_breakpoint_at): Delete.
17905 (find_gdb_breakpoint_at): New.
17906 (delete_breakpoint_at): Delete.
17907 (set_gdb_breakpoint_at): New.
17908 (delete_gdb_breakpoint_at): New.
17909 (gdb_breakpoint_here): New.
17910 (set_reinsert_breakpoint): Use release_breakpoint.
17911 (uninsert_breakpoint): Rename to ...
17912 (uninsert_raw_breakpoint): ... this.
17913 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17914 (reinsert_raw_breakpoint): Change parameter type to
17916 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17918 (check_breakpoints): Adjust. Use release_breakpoint.
17919 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17920 (breakpoint_inserted_here): Ditto.
17921 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17922 Don't trust the breakpoint's shadow if it is not inserted.
17923 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17924 (delete_all_breakpoints): Adjust.
17925 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17926 use delete_breakpoint_1.
17928 * mem-break.h (breakpoints_supported): Delete declaration.
17929 (set_gdb_breakpoint_at): Declare.
17930 (gdb_breakpoint_here): Declare.
17931 (delete_breakpoint_at): Delete.
17932 (delete_gdb_breakpoint_at): Declare.
17934 * server.h (struct raw_breakpoint): Forward declare.
17935 (struct process_info): New field `raw_breakpoints'.
17937 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17940 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17942 * linux-low.c (status_pending_p_callback): Fix comment.
17943 (linux_wait_for_event_1): Move most of the internal breakpoint
17944 handling from here...
17945 (linux_wait_1): ... to here.
17946 (count_events_callback): New.
17947 (select_singlestep_lwp_callback): New.
17948 (select_event_lwp_callback): New.
17949 (cancel_breakpoints_callback): New.
17950 (select_event_lwp): New.
17951 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17952 priority to all LWPs that have had events that should be reported
17953 to the client. Cancel breakpoints when about to reporting the
17954 event to the client, not while stopping lwps. No longer cancel
17955 finished single-steps here.
17956 (cancel_finished_single_step): Delete.
17957 (cancel_finished_single_steps): Delete.
17959 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17961 * mem-break.c (enum bkpt_type): New.
17962 (struct breakpoint): New field `type'.
17963 (set_breakpoint_at): Change return type to struct breakpoint
17964 pointer. Set type to `other_breakpoint' by default.
17965 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17966 in the breakpoint list.
17967 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17968 (reinsert_breakpoint): Rename to ...
17969 (reinsert_raw_breakpoint): ... this.
17970 (reinsert_breakpoints_at): Adjust.
17971 * mem-break.h (struct breakpoint): Declare.
17972 (set_breakpoint_at): Change return type to struct breakpoint
17975 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17977 * server.c (handle_query): Assign, not compare.
17979 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17981 Teach linux gdbserver to step-over-breakpoints.
17983 * linux-low.c (can_hardware_single_step): New.
17984 (supports_breakpoints): New.
17985 (handle_extended_wait): If stopping threads, read the stop pc of
17986 the new cloned LWP.
17988 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17989 low target doesn't support retrieving the PC.
17990 (add_lwp): Set last_resume_kind to resume_continue.
17991 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17992 (linux_attach): Don't clear stop_expected. Set the lwp's
17993 last_resume_kind to resume_stop.
17994 (linux_detach_one_lwp): Don't check for removed breakpoints.
17995 (check_removed_breakpoint): Delete.
17996 (status_pending_p): Rename to ...
17997 (status_pending_p_callback): ... this. Don't check for removed
17998 breakpoints. Don't consider threads that are stopped from GDB's
18000 (linux_wait_for_lwp): Always read the stop_pc here.
18001 (cancel_breakpoint): New.
18002 (step_over_bkpt): New global.
18003 (linux_wait_for_event_1): Implement stepping over breakpoints.
18004 (gdb_wants_lwp_stopped): New.
18005 (gdb_wants_all_stopped): New.
18006 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18007 single-step traps here. Store the thread's last reported target
18009 (send_sigstop): Don't clear stop_expected. Always set it,
18011 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18012 (cancel_finished_single_step): New.
18013 (cancel_finished_single_steps): New.
18014 (wait_for_sigstop): Don't cancel finished single-step traps here.
18015 (linux_resume_one_lwp): Don't check for removed breakpoints.
18016 Don't set `step' on non-hardware step archs.
18017 (linux_set_resume_request): Ignore resume_stop requests if already
18018 stopping or stopped. Set the lwp's last_resume_kind.
18019 (resume_status_pending_p): Don't check for removed breakpoints.
18020 (need_step_over_p): New.
18021 (start_step_over): New.
18022 (finish_step_over): New.
18023 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18024 requests. Clear the thread's last reported target waitstatus.
18025 Don't use the `suspended' flag. Don't consider pending breakpoints.
18026 (linux_resume): Start a step-over if necessary.
18027 (proceed_one_lwp): New.
18028 (proceed_all_lwps): New.
18029 (unstop_all_lwps): New.
18030 * linux-low.h (struct lwp_info): Rewrite comment for the
18031 `suspended' flag. Add the `stop_pc' field. Delete the
18032 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18033 Add `'last_resume_kind' and `need_step_over' fields.
18034 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18035 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18036 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18037 (set_raw_breakpoint_at): New.
18038 (set_breakpoint_at): Rewrite to use it.
18039 (reinsert_breakpoint_handler): Delete.
18040 (set_reinsert_breakpoint): New.
18041 (reinsert_breakpoint_by_bp): Delete.
18042 (delete_reinsert_breakpoints): New.
18043 (uninsert_breakpoint): Rewrite.
18044 (uninsert_breakpoints_at): New.
18045 (reinsert_breakpoint): Rewrite.
18046 (reinsert_breakpoints_at): New.
18047 (check_breakpoints): Rewrite.
18048 (breakpoint_here): New.
18049 (breakpoint_inserted_here): New.
18050 (check_mem_read): Adjust.
18051 * mem-break.h (breakpoints_supported, breakpoint_here)
18052 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18053 (reinsert_breakpoint_by_bp): Delete declaration.
18054 (delete_reinsert_breakpoints): Declare.
18055 (reinsert_breakpoint): Delete declaration.
18056 (reinsert_breakpoints_at): Declare.
18057 (uninsert_breakpoint): Delete declaration.
18058 (uninsert_breakpoints_at): Declare.
18059 (check_breakpoints): Adjust prototype.
18060 * server.h: Adjust include order.
18061 (struct thread_info): Declare here. Add a `last_status' field.
18063 2010-03-23 Michael Snyder <msnyder@vmware.com>
18065 * server.c (crc32): New function.
18066 (handle_query): Add handling for 'qCRC:' request.
18068 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18070 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18071 lwp had been stopped by a watchpoint.
18073 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18075 * server.h (internal_error): Declare.
18076 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18077 * utils.c (internal_error): New function.
18079 2010-03-15 Andreas Schwab <schwab@redhat.com>
18081 * configure.srv: Fix typo setting srv_regobj.
18083 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18085 * linux-low.c (fetch_register): Avoid passing a non string literal
18087 (usr_store_inferior_registers): Ditto.
18089 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18091 * linux-low.c (linux_write_memory): Bail out early if peeking
18094 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18096 * linux-low.h (struct lwp_info): New fields
18097 `stopped_by_watchpoint' and `stopped_data_address'.
18098 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18099 here, and cache them in the lwp object.
18100 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18102 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18104 (linux_stopped_by_watchpoint): Rewrite.
18105 (linux_stopped_data_address): Rewrite.
18107 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18109 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18110 switching the current inferior, not before.
18112 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18114 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18115 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18116 i386-linux.c and amd64-linux.c.
18117 (reg-i386.o): Removed.
18118 (reg-i386.c): Likewise.
18119 (reg-i386-linux.o): Likewise.
18120 (reg-i386-linux.c): Likewise.
18121 (reg-x86-64.o): Likewise.
18122 (reg-x86-64.c): Likewise.
18123 (reg-x86-64-linux.o): Likewise.
18124 (reg-x86-64-linux.c): Likewise.
18126 (i386.c): Likewise.
18127 (i386-linux.o): Likewise.
18128 (i386-linux.c): Likewise.
18129 (amd64.o): Likewise.
18130 (amd64.c): Likewise.
18131 (amd64-linux.o): Likewise.
18132 (amd64-linux.c): Likewise.
18134 * configure.srv (srv_i386_regobj): New.
18135 (srv_i386_linux_regobj): Likewise.
18136 (srv_amd64_regobj): Likewise.
18137 (srv_amd64_linux_regobj): Likewise.
18138 (srv_i386_32bit_xmlfiles): Likewise.
18139 (srv_i386_64bit_xmlfiles): Likewise.
18140 (srv_i386_xmlfiles): Likewise.
18141 (srv_amd64_xmlfiles): Likewise.
18142 (srv_i386_linux_xmlfiles): Likewise.
18143 (srv_amd64_linux_xmlfiles): Likewise.
18144 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18145 srv_xmlfiles to $srv_i386_xmlfiles.
18146 (i[34567]86-*-mingw32ce*): Likewise.
18147 (i[34567]86-*-mingw*): Likewise.
18148 (i[34567]86-*-nto*): Likewise.
18149 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18150 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18151 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18152 (x86_64-*-linux*): Likewise.
18154 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18155 (init_registers_amd64_linux): New.
18156 (x86_arch_setup): Replace init_registers_x86_64_linux with
18157 init_registers_amd64_linux.
18159 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18161 * configure.ac: Check for libdl. If it is not available link against
18162 static libthread_db.
18163 * configure: Regenerate.
18165 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18169 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18170 handing a read watchpoint.
18171 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18173 2010-02-12 Doug Evans <dje@google.com>
18175 * linux-low.c (linux_supports_tracefork_flag): Document.
18176 (linux_look_up_symbols): Add comment.
18178 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18180 * regcache.c (supply_register): Clear regcache if buf is NULL.
18182 2010-02-02 Nicolas Roche <roche@sourceware.org>
18183 Joel Brobecker <brobecker@adacore.com>
18185 * inferiors.c (find_inferior): Add function documentation.
18186 (unloaded_dll): Handle the case where the unloaded dll has not
18187 been previously registered in the dll list.
18189 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18191 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18192 (thumb2_breakpoint): New.
18193 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18195 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18197 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18198 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18201 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18203 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18205 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18207 * linux-s390-low.c (s390_collect_ptrace_register)
18208 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18210 2010-01-21 Doug Evans <dje@google.com>
18212 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18213 (PTRACE_ARG4_TYPE): New macro.
18214 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18215 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18216 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18217 (usr_store_inferior_registers): Ditto.
18218 (linux_read_memory, linux_write_memory): Ditto.
18219 (linux_test_for_tracefork): Ditto.
18221 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18222 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18224 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18226 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18229 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18231 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18232 prototype to take a regcache. Adjust.
18234 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18236 * regcache.h (struct thread_info): Forward declare.
18237 (struct regcache): New.
18238 (new_register_cache): Adjust prototype.
18239 (get_thread_regcache): Declare.
18240 (free_register_cache): Adjust prototype.
18241 (registers_to_string, registers_from_string): Ditto.
18242 (supply_register, supply_register_by_name, collect_register)
18243 (collect_register_as_string, collect_register_by_name): Ditto.
18244 * regcache.c (struct inferior_regcache_data): Delete.
18245 (get_regcache): Rename to ...
18246 (get_thread_regcache): ... this. Adjust. Switch inferior before
18247 fetching registers.
18248 (regcache_invalidate_one): Adjust.
18249 (regcache_invalidate): Fix prototype.
18250 (new_register_cache): Return the new register cache.
18251 (free_register_cache): Change prototype.
18252 (realloc_register_cache): Adjust.
18253 (registers_to_string): Change prototype to take a regcache. Adjust.
18254 (registers_from_string): Ditto.
18255 (register_data): Ditto.
18256 (supply_register): Ditto.
18257 (supply_register_by_name): Ditto.
18258 (collect_register): Ditto.
18259 (collect_register_as_string): Ditto.
18260 (collect_register_by_name): Ditto.
18261 * server.c (process_serial_event): Adjust.
18262 * linux-low.h (regset_fill_func, regset_store_func): Change
18264 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18266 * linux-low.c (get_stop_pc): Adjust.
18267 (check_removed_breakpoint): Adjust.
18268 (linux_wait_for_event): Adjust.
18269 (linux_resume_one_lwp): Adjust.
18270 (fetch_register): Add regcache parameter. Adjust.
18271 (usr_store_inferior_registers): Ditto.
18272 (regsets_fetch_inferior_registers): Ditto.
18273 (regsets_store_inferior_registers): Ditto.
18274 (linux_fetch_registers, linux_store_registers): Ditto.
18275 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18277 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18279 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18280 prototype to take a regcache.
18281 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18282 * remote-utils.c (convert_ascii_to_int, outreg)
18283 (prepare_resume_reply): Change prototype to take a regcache.
18285 * target.h (struct target_ops) <fetch_registers, store_registers>:
18286 Change prototype to take a regcache.
18287 (fetch_inferior_registers, store_inferior_registers): Change
18288 prototype to take a regcache. Adjust.
18289 * proc-service.c (ps_lgetregs): Adjust.
18290 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18291 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18292 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18293 take a regcache. Adjust.
18294 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18295 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18296 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18297 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18298 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18299 (cris_cannot_fetch_register):
18300 (cris_breakpoint_at): Change prototype to take a regcache.
18302 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18303 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18304 to take a regcache. Adjust.
18305 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18307 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18308 take a regcache. Adjust.
18309 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18310 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18311 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18312 * linux-mips-low.c (mips_get_pc):
18313 (mips_set_pc): Change prototype to take a regcache. Adjust.
18314 (mips_reinsert_addr): Adjust.
18315 (mips_collect_register): Change prototype to take a regcache.
18317 (mips_supply_register):
18318 (mips_collect_register_32bit, mips_supply_register_32bit)
18319 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18320 (mips_store_fpregset): Ditto.
18321 * linux-ppc-low.c (ppc_supply_ptrace_register)
18322 (ppc_supply_ptrace_register): Ditto.
18323 (parse_spufs_run): Adjust.
18324 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18325 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18326 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18327 take a regcache. Adjust.
18328 * linux-s390-low.c (s390_collect_ptrace_register)
18329 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18330 (s390_set_pc): Change prototype to take a regcache. Adjust.
18331 (s390_arch_setup): Adjust.
18332 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18333 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18334 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18335 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18336 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18338 (sparc_breakpoint_at): Adjust.
18339 * linux-xtensa-low.c (xtensa_fill_gregset):
18340 (xtensa_store_gregset):
18341 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18342 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18343 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18344 prototype to take a regcache. Adjust.
18345 * win32-arm-low.c (arm_fetch_inferior_register)
18346 (arm_store_inferior_register): Change prototype to take a
18348 * win32-i386-low.c (i386_fetch_inferior_register)
18349 (i386_store_inferior_register): Change prototype to take a
18351 * win32-low.c (child_fetch_inferior_registers)
18352 (child_store_inferior_registers): Change prototype to take a
18354 (win32_wait): Adjust.
18355 (win32_fetch_inferior_registers): Change prototype to take a
18357 (win32_store_inferior_registers): Adjust.
18358 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18359 store_inferior_register>: Change prototype to take a regcache.
18361 2010-01-20 Doug Evans <dje@google.com>
18363 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18365 (linux_wait_for_event1, linux_init_signals): Ditto.
18366 (W_STOPCODE): Provide definition if missing.
18368 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18370 * linux-low.c (linux_core_of_thread): New.
18371 (compare_ints, show_process, list_threads): New.
18372 (linux_qxfer_osdata): Report threads and cores.
18373 (linux_target_op): Register linux_core_of_thread.
18374 * remote-utils.c (prepare_resume_reply): Report the core.
18375 (buffer_xml_printf): Support %d specifier.
18376 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18378 (handle_query): Handle qXfer:threads. Announce availability
18380 * target.h (struct target_ops): New field core_of_thread.
18382 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18384 * Makefile.in (clean): Remove new generated files.
18385 (reg-s390.o, reg-s390.c): Remove rules.
18386 (reg-s390x.o, reg-s390x.c): Likewise.
18387 (s390-linux32.o, s390-linux32.c): Add rules.
18388 (s390-linux64.o, s390-linux64.c): Likewise.
18389 (s390x-linux64.o, s390x-linux64.c): Likewise.
18390 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18391 * linux-s390-low.c: Include <elf.h>.
18392 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18393 (init_registers_s390): Remove prototype.
18394 (init_registers_s390x): Likewise.
18395 (init_registers_s390_linux32): Add prototype.
18396 (init_registers_s390_linux64): Likewise.
18397 (init_registers_s390x_linux64): Likewise.
18398 (s390_num_regs_3264): New define.
18399 (s390_regmap_3264): New global variable.
18400 (s390_cannot_fetch_register): Remove obsolete check.
18401 (s390_cannot_store_register): Likewise.
18402 (s390_collect_ptrace_register): Handle upper/lower register halves.
18403 (s390_supply_ptrace_register): Likewise.
18404 (s390_fill_gregset): Update to register number changes.
18405 (s390_get_hwcap): New routine.
18406 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18407 Install appropriate regmap and register set.
18409 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18411 * server.c (gdbserver_version): Update copyright year to 2010.
18412 * gdbreplay.c (gdbreplay_version): Likewise.
18414 2009-12-28 Doug Evans <dje@google.com>
18416 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18417 elf/external.h. Include <elf.h> instead but only if necessary.
18419 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18421 * linux-low.c (linux_remove_process): Remove `detaching'
18422 parameter. Don't release/detach from thread_db here.
18423 (linux_kill): Release/detach from thread_db here, ...
18424 (linux_detach): ... and here, before actually detaching.
18425 (linux_wait_1): ... and here, when a process exits.
18426 * thread-db.c (any_thread_of): New.
18427 (thread_db_free): Switch the current inferior to a thread of the
18430 2009-12-21 Doug Evans <dje@google.com>
18432 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18434 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18435 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18436 warning ifndef __NR_tkill. Move setting of errno there too.
18437 Delete unnecessary resetting of errno after syscall.
18438 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18440 * configure.ac: Check for dladdr.
18441 * config.in: Regenerate.
18442 * configure: Regenerate.
18443 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18444 (try_thread_db_load): Update.
18446 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18448 2009-12-18 Doug Evans <dje@google.com>
18450 * event-loop.c: Include unistd.h if it exists.
18452 * linux-low.c (my_waitpid): Move definition away from being in
18453 between linux_tracefork_child/linux_test_for_tracefork.
18455 * gdb_proc_service.h (psaddr_t): Fix type.
18456 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18457 signature to match glibc.
18459 2009-12-16 Doug Evans <dje@google.com>
18461 * linux-low.c (linux_read_memory): Fix argument to read.
18463 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18465 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18466 events, don't leave current_inferior pointing at null.
18468 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18470 * win32-low.c (LOG): Delete.
18471 (OUTMSG): Output to stderr.
18472 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18473 on compile time LOG macro.
18474 (win32_wait): Fix debug output.
18476 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18478 * win32-low.c (win32_add_one_solib): If the dll name is
18479 "ntdll.dll", prepend the system directory to the dll path.
18481 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18483 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18485 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18486 Vladimir Prus <vladimir@codesourcery.com>
18488 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18489 * configure.ac: Check for __mcoldfire__ and set
18490 gdb_cv_m68k_is_coldfire.
18491 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18492 reg-cf.o and reg-m68k.o.
18493 * configure: Regenerated.
18495 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18497 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18498 Pass it to thread_db_free.
18499 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18500 proper `detaching' argument to linux_remove_process.
18501 * linux-low.h (thread_db_free): Add `detaching' parameter.
18502 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18504 (thread_db_free): Add `detaching' parameter. Only
18505 call td_ta_clear_event if detaching from process.
18507 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18509 * thread-db.c (thread_db_free): Fix typo.
18511 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18514 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18516 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18518 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18519 with an i686 compiler.
18520 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18522 * configure: Rebuilt.
18524 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18528 * server.c (handle_search_memory_1): Correct read_addr initialization
18529 in loop for searching subsequent chunks.
18531 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18533 * configure.ac: New --with-libthread-db option.
18534 * thread-db.c: Allow direct dependence on libthread_db.
18535 (thread_db_free): Adjust.
18536 * config.in: Regenerate.
18537 * configure: Likewise.
18539 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18542 * thread-db.c (attach_thread): New function.
18543 (maybe_attach_thread): Return success/failure.
18544 (find_new_threads_callback): Adjust.
18545 (thread_db_find_new_threads): Loop until no new threads.
18547 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18549 * proc-service.c (ps_lgetregs): Formatting.
18551 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18553 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18554 * configure.ac: Adjust.
18555 * linux-low.h (struct process_info_private): Move members to struct
18557 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18558 * linux-low.c (linux_remove_process): Adjust.
18559 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18560 * server.c (handle_query): Move code ...
18561 (handle_monitor_command): ... here. New function.
18562 * target.h (struct target_ops): New member.
18563 * thread-db.c (struct thread_db): New.
18564 (libthread_db_search_path): New variable.
18565 (thread_db_create_event, thread_db_enable_reporting)
18566 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18567 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18568 (try_thread_db_load_1, dladdr_to_soname): New functions.
18569 (try_thread_db_load, thread_db_load_search): New functions.
18570 (thread_db_init): Search for libthread_db.
18571 (thread_db_free): New function.
18572 (thread_db_handle_monitor_command): Likewise.
18573 * config.in: Regenerate.
18574 * configure: Regenerate.
18576 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18578 * spu-low.c (spu_kill): Wait for inferior to terminate.
18579 Call clear_inferiors.
18580 (spu_detach): Call clear_inferiors.
18582 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18584 * aclocal.m4: Regenerate.
18585 * config.in: Likewise.
18586 * configure: Likewise.
18588 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18590 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18591 (parse_spufs_run): New function.
18592 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18593 (ppc_breakpoint_at): Handle SPU breakpoints.
18595 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18597 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18598 (SPUFS_MAGIC): Define.
18599 (spu_enumerate_spu_ids): New function.
18600 (linux_qxfer_spu): New function.
18601 (linux_target_ops): Install linux_qxfer_spu.
18603 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18605 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18606 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18607 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18608 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18609 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18610 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18611 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18612 (init_registers_powerpc_cell32l): Add prototype.
18613 (init_registers_powerpc_cell64l): Likewise.
18614 (ppc_arch_setup): Detect Cell/B.E. architecture.
18616 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18618 * Makefile.in (datarootdir): New variable.
18620 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18622 * linux-low.c (linux_write_memory): Update debugging output.
18623 * Makefile.in (clean): Add new descriptions.
18624 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18625 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18626 * configure.srv: Add new files for arm*-*-linux*.
18627 * linux-arm-low.c: Add new declarations.
18628 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18629 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18630 (HWCAP_VFPv3D16): New.
18631 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18632 instead of __IWMMXT__.
18633 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18634 (arm_arch_setup): New.
18635 (target_regsets): Remove #ifdef. Add VFP regset.
18636 (the_low_target): Use arm_arch_setup.
18638 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18640 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18641 the main thread again.
18643 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18645 Adding Neutrino gdbserver.
18646 * configure: Regenerated.
18647 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18648 * configure.srv (i[34567]86-*-nto*): New target.
18649 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18650 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18651 (nto_comctrl) [__QNX__]: New function.
18652 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18654 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18656 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18659 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18660 Pedro Alves <pedro@codesourcery.com>
18662 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18663 don't support CONTEXT_EXTENDED_REGISTERS.
18664 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18665 (the_low_target): Install them.
18666 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18667 failing with ERROR_PIPE_NOT_CONNECTED.
18669 2009-06-30 Doug Evans <dje@google.com>
18670 Pierre Muller <muller@ics.u-strasbg.fr>
18672 Add h/w watchpoint support to x86-linux, win32-i386.
18673 * Makefile.in (SFILES): Add i386-low.c
18674 (i386_low_h): Define.
18675 (i386-low.o): Add dependencies.
18676 (linux-x86-low.o): Add i386-low.h dependency.
18677 (win32-i386-low.o): Ditto.
18678 * i386-low.c: New file.
18679 * i386-low.h: New file.
18680 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18681 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18682 * linux-low.c (linux_add_process): Initialize arch_private.
18683 (linux_remove_process): Free arch_private.
18684 (add_lwp): Initialize arch_private.
18685 (delete_lwp): Free arch_private.
18686 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18688 * linux-low.h (process_info_private): New member arch_private.
18689 (lwp_info): New member arch_private.
18690 (linux_target_ops): New members new_process, new_thread,
18692 (ptid_of): New macro.
18693 * linux-x86-low.c: Include stddef.h, i386-low.h.
18694 (arch_process_info): New struct.
18695 (arch_lwp_info): New struct.
18696 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18697 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18698 (i386_dr_low_get_status): New function.
18699 (x86_insert_point, x86_remove_point): New functions.
18700 (x86_stopped_by_watchpoint): New function.
18701 (x86_stopped_data_address): New function.
18702 (x86_linux_new_process, x86_linux_new_thread): New functions.
18703 (x86_linux_prepare_to_resume): New function.
18704 (the_low_target): Add entries for insert_point, remove_point,
18705 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18707 * server.c (debug_hw_points): New global.
18708 (monitor_show_help): Document set debug-hw-points.
18709 (handle_query): Process "set debug-hw-points".
18710 * server.h (debug_hw_points): Declare.
18711 (paddress): Declare.
18712 * utils.c (NUMCELLS, CELLSIZE): New macros.
18713 (get_sell, xsnprintf, paddress): New functions.
18714 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18715 remove_point, stopped_by_watchpoint, stopped_data_address.
18716 * win32-i386-low.c: Include i386-low.h.
18717 (debug_reg_state): Replaces dr.
18718 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18719 (i386_dr_low_get_status): New function.
18720 (i386_insert_point, i386_remove_point): New functions.
18721 (i386_stopped_by_watchpoint): New function.
18722 (i386_stopped_data_address): New function.
18723 (i386_initial_stuff): Update.
18724 (get_thread_context,set_thread_context,i386_thread_added): Update.
18725 (the_low_target): Add entries for insert_point,
18726 remove_point, stopped_by_watchpoint, stopped_data_address.
18727 * win32-low.c (win32_insert_watchpoint): New function.
18728 (win32_remove_watchpoint): New function.
18729 (win32_stopped_by_watchpoint): New function.
18730 (win32_stopped_data_address): New function.
18731 (win32_target_ops): Add entries for insert_watchpoint,
18732 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18733 * win32-low.h (win32_target_ops): New members insert_point,
18734 remove_point, stopped_by_watchpoint, stopped_data_address.
18736 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18738 * server.c (process_serial_event): Re-return unsupported, not
18739 error, if the type isn't recognized. Re-allow supporting only
18740 insert or remove packets. Also call require_running for
18741 breakpoints. Add missing break statement to default case. Tidy.
18742 * target.h (struct target_ops): Rename insert_watchpoint to
18743 insert_point, and remove_watchpoint to remove_point.
18745 * linux-low.h (struct linux_target_ops): Likewise.
18746 * linux-low.c (linux_insert_watchpoint): Rename to ...
18747 (linux_insert_point): ... this. Adjust.
18748 (linux_remove_watchpoint): Rename to ...
18749 (linux_remove_point): ... this. Adjust.
18750 (linux_target_ops): Adjust.
18751 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18752 (cris_insert_point): ... this.
18753 (cris_remove_watchpoint): Rename to ...
18754 (cris_remove_point): ... this.
18755 (the_low_target): Adjust.
18757 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18759 * server.c (handle_v_kill): Pass signal_pid to
18760 kill_inferior if multi_process is zero.
18762 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18764 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18765 * target.h (target_ops): Comment for *_watchpoint to make it clear
18766 the functions can get types '0' and '1'.
18768 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18770 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18771 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18772 * regcache.c (get_regcache): Likewise.
18773 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18774 * win32-low.c (child_fetch_inferior_registers): Remove check for
18777 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18778 Pedro Alves <pedro@codesourcery.com>
18780 * target.h (struct target_ops) <supports_multi_process>: New
18782 (target_supports_multi_process): New.
18783 * server.c (handle_query): Even if GDB reports support, only
18784 enable multi-process if the target also supports it. Report
18785 multi-process support only if the target backend supports it.
18786 * linux-low.c (linux_supports_multi_process): New function.
18787 (linux_target_ops): Install it as target_supports_multi_process
18790 2009-05-24 Doug Evans <dje@google.com>
18792 Global renaming of find_thread_pid to find_thread_ptid.
18793 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18794 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18795 All callers updated.
18797 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18798 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18801 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18802 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18803 (linux_resume_one_lwp): Ditto.
18805 2009-05-23 Doug Evans <dje@google.com>
18807 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18808 from struct inferior_list_entry * to struct lwp_info *.
18809 All callers updated.
18811 2009-05-13 Doug Evans <dje@google.com>
18813 * linux-x86-low.c: Don't include assert.h.
18814 (x86_siginfo_fixup): Use fatal, not assert.
18815 (x86_arch_setup): Fix comment.
18817 2009-05-12 Doug Evans <dje@google.com>
18819 Biarch support for i386/amd64 gdbserver.
18820 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18821 Add linux-x86-low.c.
18822 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18823 (linux-x86-low.o): Add.
18824 * linux-x86-64-low.c: Delete.
18825 * linux-i386-low.c: Delete.
18826 * linux-x86-low.c: New file.
18827 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18829 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18831 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18832 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18833 (linux_child_pid_to_exec_file): New function.
18834 (elf_64_header_p, elf_64_file_p): New functions.
18835 (siginfo_fixup): New function.
18836 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18837 give target a chance to convert layout.
18838 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18839 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18841 2009-05-07 Doug Evans <dje@google.com>
18843 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18844 (regsets_store_inferior_registers): Ditto.
18846 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18850 * linux-low.c (must_set_ptrace_flags): Delete.
18851 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18853 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18854 `lwp->must_set_ptrace_flags' instead.
18855 (linux_wait_for_event_1): Set ptrace options here.
18856 (linux_wait_1): ... not here.
18858 2009-04-30 Doug Evans <dje@google.com>
18860 * inferiors.c (started_inferior_callback): New function.
18861 (attached_inferior_callback): New function.
18862 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18863 * server.c (print_started_pid, print_attached_pid): New functions.
18864 (detach_or_kill_for_exit): New function.
18865 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18866 * server.h (have_started_inferiors_p): Declare.
18867 (have_attached_inferiors_p): Declare.
18869 * inferiors.c (remove_process): Fix memory leak, free process.
18870 * linux-low.c (linux_remove_process): New function.
18871 (linux_kill): Call it instead of remove_process.
18872 (linux_detach, linux_wait_1): Ditto.
18874 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18876 * configure.srv: Add x86 Windows CE target.
18878 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18880 * inferiors.c (get_thread_process): Make global.
18881 * server.h (get_thread_process): Add prototype.
18882 * thread-db.c (find_one_thread): Use get_thread_process
18883 instead of current_process.
18884 (thread_db_get_tls_address): Do not crash if called when
18885 thread layer is not yet initialized.
18887 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18889 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18890 * spu-low.c (current_tid): Rename to ...
18891 (current_ptid): ... this.
18892 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18893 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18894 ptid_get_lwp (current_ptid) instead of current_tid.
18895 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18896 instead of current_tid. Use find_process_pid to verify pid
18897 argument is valid. Pass proper argument to remove_process.
18898 (spu_thread_alive): Compare current_ptid instead of current_tid.
18899 (spu_resume): Likewise.
18901 2009-04-02 Pedro Alves <pedro@codesourcery.com>
18903 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18906 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18908 Implement the multiprocess extensions, and add linux multiprocess
18911 * server.h (ULONGEST): Declare.
18912 (struct ptid, ptid_t): New.
18913 (minus_one_ptid, null_ptid): Declare.
18914 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18915 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18916 (struct inferior_list_entry): Change `id' type from unsigned from
18918 (struct sym_cache, struct breakpoint, struct
18919 process_info_private): Forward declare.
18920 (struct process_info): Declare.
18921 (current_process): Declare.
18922 (all_processes): Declare.
18923 (initialize_inferiors): Declare.
18924 (add_thread): Adjust to use ptid_t.
18925 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18926 (add_process, remove_process, find_thread_pid): Declare.
18927 (find_inferior_id): Adjust to use ptid_t.
18928 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18929 (multi_process): Declare.
18930 (push_event): Adjust to use ptid_t.
18931 (read_ptid, write_ptid): Declare.
18932 (prepare_resume_reply): Adjust to use ptid_t.
18933 (clear_symbol_cache): Declare.
18934 * inferiors.c (all_processes): New.
18935 (null_ptid, minus_one_ptid): New.
18936 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18937 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18938 (add_thread): Change unsigned long to ptid. Remove gdb_id
18940 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18941 (gdb_id_to_thread): Rename to ...
18942 (find_thread_pid): ... this. Change unsigned long to ptid.
18943 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18944 (loaded_dll, pull_pid_from_list): Adjust.
18945 (add_process, remove_process, find_process_pid)
18946 (get_thread_process, current_process, initialize_inferiors): New.
18947 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18948 (struct target_waitstatus) <related_pid>: Ditto.
18949 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18950 return type to int.
18951 (struct target_ops) <join>: Add `pid' argument.
18952 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18953 (struct target_ops) <wait>: Add `ptid' field. Change return type
18955 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18956 (mywait): Add `ptid' argument. Change return type to ptid_t.
18957 (target_pid_to_str): Declare.
18958 * target.c (set_desired_inferior): Adjust to use ptids.
18959 (mywait): Add new `ptid' argument. Adjust.
18960 (target_pid_to_str): New.
18961 * mem-break.h (free_all_breakpoints): Declare.
18962 * mem-break.c (breakpoints): Delelete.
18963 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18964 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18965 to use per-process breakpoint list.
18966 (free_all_breakpoints): New.
18967 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18968 (symbol_cache, all_symbols_looked_up): Delete.
18970 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18972 (prepare_resume_reply): Change ptid argument's type from unsigned
18973 long to ptid_t. Adjust. Implement W;process and X;process.
18974 (free_sym_cache, clear_symbol_cache): New.
18975 (look_up_one_symbol): Adjust to per-process symbol cache. *
18976 * server.c (cont_thread, general_thread, step_thread): Change type
18978 (attached): Delete.
18979 (multi_process): New.
18980 (last_ptid): Change type to ptid_t.
18981 (struct vstop_notif) <ptid>: Change type to ptid_t.
18982 (queue_stop_reply, push_event): Change `ptid' argument's type to
18984 (discard_queued_stop_replies): Add `pid' argument.
18985 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18986 changes. Don't reference the `attached' global.
18987 (attach_inferior): Adjust to mywait interface changes.
18988 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18989 features. Handle and report "multiprocess+". Handle
18991 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18993 (handle_v_kill): New.
18994 (handle_v_stopped): Adjust to use target_pid_to_str.
18995 (handle_v_requests): Allow multiple attaches and runs when
18996 multiprocess extensions are in effect. Handle "vKill".
18997 (myresume): Adjust to use ptids.
18998 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18999 (handle_status): Adjust to discard_queued_stop_replies interface
19001 (first_thread_of, kill_inferior_callback)
19002 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19003 (main): Call initialize_inferiors. Adjust to use ptids, killing
19004 and detaching from all inferiors. Handle multiprocess packet
19006 * linux-low.h: Include gdb_proc_service.h.
19007 (struct process_info_private): New.
19008 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19009 <lwpid_of>: Use ptid_get_lwp.
19010 (get_lwp_thread): Adjust.
19011 (struct lwp_info): Add `dead' member.
19012 (find_lwp_pid): Declare.
19013 * linux-low.c (thread_db_active): Delete.
19014 (new_inferior): Adjust comment.
19015 (inferior_pid): Delete.
19016 (linux_add_process): New.
19017 (handle_extended_wait): Adjust.
19018 (add_lwp): Change unsigned long to ptid.
19019 (linux_create_inferior): Add process to processes table. Adjust
19020 to use ptids. Don't set new_inferior here.
19021 (linux_attach_lwp): Rename to ...
19022 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19023 it. Adjust to use ptids.
19024 (linux_attach_lwp): New.
19025 (linux_attach): Add process to processes table. Don't set
19027 (struct counter): New.
19028 (second_thread_of_pid_p, last_thread_of_process_p): New.
19029 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19030 multiple processes.
19031 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19032 processes. Remove process from process table.
19033 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19034 to multiple processes.
19035 (any_thread_of): New.
19036 (linux_detach): Add `pid' argument, and handle it. Remove process
19037 from processes table.
19038 (linux_join): Add `pid' argument. Handle it.
19039 (linux_thread_alive): Change unsighed long argument to ptid_t.
19040 Consider dead lwps as not being alive.
19041 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19042 threads we're not interested in.
19043 (same_lwp, find_lwp_pid): New.
19044 (linux_wait_for_lwp): Change `pid' argument's type from int to
19046 (linux_wait_for_event): Rename to ...
19047 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19048 from int to ptid_t. Adjust.
19049 (linux_wait_for_event): New.
19050 (linux_wait_1): Add `ptid' argument. Change return type to
19051 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19052 that exit from the process table.
19053 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19055 (mark_lwp_dead): New.
19056 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19057 stopping all threads, mark its main lwp as dead.
19058 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19060 (fetch_register, usr_store_inferior_registers)
19061 (regsets_fetch_inferior_registers)
19062 (regsets_store_inferior_registers, linux_read_memory)
19063 (linux_write_memory): Inline `inferior_pid'.
19064 (linux_look_up_symbols): Adjust to use per-process
19065 `thread_db_active'.
19066 (linux_request_interrupt): Adjust to use ptids.
19067 (linux_read_auxv): Inline `inferior_pid'.
19068 (initialize_low): Don't reference thread_db_active.
19069 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19070 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19071 (ps_getpid): Return the pid of the current inferior.
19072 * thread-db.c (proc_handle, thread_agent): Delete.
19073 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19075 (find_one_thread): Change argument type to ptid_t. Adjust to
19077 (maybe_attach_thread): Adjust to per-process data and ptids.
19078 (thread_db_find_new_threads): Ditto.
19079 (thread_db_init): Ditto.
19080 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19081 processes table. Adjust to use ptids.
19082 (spu_kill, spu_detach): Adjust interface. Remove process from
19084 (spu_join, spu_thread_alive): Adjust interface.
19085 (spu_wait): Adjust interface. Remove process from processes
19086 table. Adjust to use ptids.
19087 * win32-low.c (current_inferior_tid): Delete.
19088 (current_inferior_ptid): New.
19089 (debug_event_ptid): New.
19090 (thread_rec): Take a ptid. Adjust.
19091 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19092 (child_delete_thread): Ditto.
19093 (do_initial_child_stuff): Add `attached' argument. Add process to
19095 (child_fetch_inferior_registers, child_store_inferior_registers):
19097 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19098 (win32_attach): Pass 1 to do_initial_child_stuff.
19099 (win32_kill): Adjust interface. Remove process from processes
19101 (win32_detach): Ditto.
19102 (win32_join): Adjust interface.
19103 (win32_thread_alive): Take a ptid.
19104 (win32_resume): Adjust to use ptids.
19105 (get_child_debug_event): Ditto.
19106 (win32_wait): Adjust interface. Remove exiting process from
19109 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19111 Non-stop mode support.
19113 * server.h (non_stop): Declare.
19114 (gdb_client_data, handler_func): Declare.
19115 (delete_file_handler, add_file_handler, start_event_loop):
19117 (handle_serial_event, handle_target_event, push_event)
19118 (putpkt_notif): Declare.
19119 * target.h (enum resume_kind): New.
19120 (struct thread_resume): Replace `step' field by `kind' field.
19121 (TARGET_WNOHANG): Define.
19122 (struct target_ops) <wait>: Add `options' argument.
19123 <supports_non_stop, async, start_non_stop>: New fields.
19124 (target_supports_non_stop, target_async): New.
19125 (start_non_stop): Declare.
19126 (mywait): Add `options' argument.
19127 * target.c (mywait): Add `options' argument. Print child exit
19128 notifications here.
19129 (start_non_stop): New.
19130 * server.c (non_stop, own_buf, mem_buf): New globals.
19131 (struct vstop_notif): New.
19132 (notif_queue): New global.
19133 (queue_stop_reply, push_event, discard_queued_stop_replies)
19134 (send_next_stop_reply): New.
19135 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19137 (attach_inferior): In non-stop mode, don't wait for the target
19139 (handle_general_set): Handle QNonStop.
19140 (handle_query): When handling qC, return the current general
19141 thread, instead of the first thread of the list.
19142 (handle_query): If the backend supports non-stop mode, include
19143 QNonStop+ in the qSupported query response.
19144 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19146 (handle_v_attach, handle_v_run): Handle non-stop mode.
19147 (handle_v_stopped): New.
19148 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19149 (myresume): Adjust to use resume_kind. Handle non-stop.
19150 (queue_stop_reply_callback): New.
19151 (handle_status): Handle non-stop mode.
19152 (main): Clear non_stop flag on reconnection. Use the event-loop.
19153 Refactor serial protocol handling from here ...
19154 (process_serial_event): ... to this new function. When GDB
19155 selects any thread, select one here. In non-stop mode, wait until
19156 GDB acks all pending events before exiting.
19157 (handle_serial_event, handle_target_event): New.
19158 * remote-utils.c (remote_open): Install remote_desc in the event
19160 (remote_close): Remove remote_desc from the event loop.
19161 (putpkt_binary): Rename to...
19162 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19163 (putpkt_binary): New as wrapper around putpkt_binary_1.
19164 (putpkt_notif): New.
19165 (prepare_resume_reply): In non-stop mode, don't change the
19167 * event-loop.c: New.
19168 * Makefile.in (OBJ): Add event-loop.o.
19169 (event-loop.o): New rule.
19171 * linux-low.h (pid_of): Moved here.
19173 (get_lwp_thread): Use lwpid_of.
19174 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19175 * linux-low.c (pid_of): Delete.
19176 (inferior_pid): Use lwpid_of.
19177 (linux_event_pipe): New.
19178 (target_is_async_p): New.
19180 (handle_extended_wait): Use lwpid_of.
19181 (add_lwp): Don't set lwpid field.
19182 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19183 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19184 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19185 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19186 first. Adjust to linux_wait_for_event interface changes. Use
19188 (linux_detach): Don't delete the main lwp here.
19189 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19190 (status_pending_p): Don't consider explicitly suspended lwps.
19191 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19192 pointer. Add OPTIONS argument. Change return type to int. Use
19193 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19194 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19195 pointer. Add status pointer argument. Return a pid instead of a
19196 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19197 changes. In non-stop mode, don't switch to a random thread.
19198 (linux_wait): Rename to...
19199 (linux_wait_1): ... this. Add target_options argument, and handle
19200 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19201 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19202 clean exit and signal exit code. Don't stop all threads in
19203 non-stop mode. In all-stop mode, only stop all threads when
19204 reporting a stop to GDB. Handle explicit thread stop requests.
19205 (async_file_flush, async_file_mark): New.
19207 (send_sigstop): Use lwpid_of.
19208 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19209 interface changes. In non-stop mode, don't switch to a random
19211 (linux_resume_one_lwp): Use lwpid_of.
19212 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19213 (linux_resume_one_thread): ... this. Handle resume_stop. In
19214 non-stop mode, don't look for pending flag in all threads.
19215 (resume_status_pending_p): Don't consider explicitly suspended
19217 (my_waitpid): Reimplement. Emulate __WALL.
19218 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19220 (sigchld_handler, linux_supports_non_stop, linux_async)
19221 (linux_start_non_stop): New.
19222 (linux_target_ops): Register linux_supports_non_stop, linux_async
19223 and linux_start_non_stop.
19224 (initialize_low): Install SIGCHLD handler.
19225 * thread-db.c (thread_db_create_event, find_one_thread)
19226 (thread_db_get_tls_address): Use lwpid_of.
19227 * win32-low.c (win32_detach): Adjust to use resume_kind.
19228 (win32_wait): Add `options' argument.
19229 * spu-low.c (spu_resume): Adjust to use resume_kind.
19230 (spu_wait): Add `options' argument.
19232 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19234 Decouple target code from remote protocol.
19236 * target.h (enum target_waitkind): New.
19237 (struct target_waitstatus): New.
19238 (struct target_ops) <wait>: Return an unsigned long. Take a
19239 target_waitstatus pointer instead of a char pointer.
19240 (mywait): Likewise.
19241 * target.c (mywait): Change prototype to return an unsigned long.
19242 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19243 * server.h (thread_from_wait, old_thread_from_wait): Delete
19245 (prepare_resume_reply): Change prototype to take a
19247 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19248 (last_status, last_ptid): New.
19249 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19250 pid instead of a signal.
19251 (attach_inferior): Remove "status" and "signal" parameters.
19253 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19255 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19256 (handle_v_requests, myresume): Remove "status" and "signal"
19257 parameters. Adjust.
19258 (handle_status): New.
19259 (main): Delete local `status'. Adjust.
19260 * remote-utils.c: Include target.h.
19261 (prepare_resume_reply): Change prototype to take a
19262 target_waitstatus. Adjust.
19264 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19266 * spu-low.c (spu_wait): Adjust.
19267 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19269 (win32_wait): Adjust.
19271 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19273 * target.h (struct thread_resume): Delete leave_stopped member.
19274 (struct target_ops): Add a `n' argument to the `resume' callback.
19275 * server.c (start_inferior): Adjust.
19276 (handle_v_cont, myresume): Adjust.
19277 * linux-low.c (check_removed_breakpoint): Adjust to resume
19278 interface change, and to removed leave_stopped field.
19279 (resume_ptr): Delete.
19280 (struct thread_resume_array): New.
19281 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19282 resume interface change.
19283 (linux_continue_one_thread, linux_queue_one_thread)
19284 (resume_status_pending_p): Check if the resume field is NULL
19285 instead of checking the leave_stopped member.
19286 (linux_resume): Adjust to the target resume interface change.
19287 * spu-low.c (spu_resume): Adjust to the target resume interface
19289 * win32-low.c (win32_detach, win32_resume): Ditto.
19291 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19293 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19295 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19297 (linux_continue_one_thread): Only preserve the stepping flag if
19298 there's a pending breakpoint.
19300 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19302 * server.c (main): After the inferior having exited, call
19303 remote_close before exiting gdbserver.
19305 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19307 Fix size of FPSCR in Power 7 processors.
19308 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19309 (PPC_FEATURE_HAS_DFP): New #define.
19310 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19313 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19315 * server.c (handle_query) Whitespace and formatting.
19317 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19319 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19320 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19321 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19322 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19323 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19324 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19325 Makefile.in, configure.ac: Fix whitespace throughout.
19326 * configure: Regenerate.
19328 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19330 * inferiors.c (find_inferior): Make it safe for the callback
19331 function to delete the currently iterated inferior.
19333 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19335 * Makefile.in (linuw_low_h): Move higher.
19336 (thread-db.o): Depend on $(linux_low_h).
19338 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19340 Rename "process" to "lwp" throughout.
19342 * linux-low.c (all_processes): Rename to...
19343 (all_lwps): ... this.
19344 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19345 (add_process): Rename to ...
19346 (add_lwp): ... this. Adjust.
19347 (linux_create_inferior): Adjust.
19348 (linux_attach_lwp): Adjust.
19349 (linux_attach): Adjust.
19350 (linux_kill_one_process): Rename to ...
19351 (linux_kill_one_lwp): ... this. Adjust.
19352 (linux_kill): Adjust.
19353 (linux_detach_one_process): Rename to ...
19354 (linux_detach_one_lwp): ... this. Adjust.
19355 (linux_detach): Adjust.
19356 (check_removed_breakpoint): Adjust.
19357 (status_pending_p): Adjust.
19358 (linux_wait_for_process): Rename to ...
19359 (linux_wait_for_lwp): ... this. Adjust.
19360 (linux_wait_for_event): Adjust.
19361 (send_sigstop): Adjust.
19362 (wait_for_sigstop): Adjust.
19363 (stop_all_processes): Rename to ...
19364 (stop_all_lwps): ... this.
19365 (linux_resume_one_process): Rename to ...
19366 (linux_resume_one_lwp): ... this. Adjust.
19367 (linux_set_resume_request, linux_continue_one_thread)
19368 (linux_queue_one_thread, resume_status_pending_p)
19369 (usr_store_inferior_registers, regsets_store_inferior_registers)
19370 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19372 * linux-low.h (get_process): Rename to ...
19373 (get_lwp): ... this. Adjust.
19374 (get_thread_process): Rename to ...
19375 (get_thread_lwp): ... this. Adjust.
19376 (get_process_thread): Rename to ...
19377 (get_lwp_thread): ... this. Adjust.
19378 (struct process_info): Rename to ...
19379 (struct lwp_info): ... this.
19380 (all_processes): Rename to ...
19381 (all_lwps): ... this.
19382 * proc-service.c (ps_lgetregs): Adjust.
19383 * thread-db.c (thread_db_create_event, find_one_thread)
19384 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19386 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19388 * server.c (handle_query): Handle "qAttached".
19390 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19392 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19393 GPLv3, update license URL.
19395 2009-03-01 Doug Evans <dje@google.com>
19397 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19398 (server_h): Add gdb_signals.h.
19399 (signals.o): Update.
19400 * server.h (target_signal_from_host,target_signal_to_host_p)
19401 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19403 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19405 * remote-utils.c (getpkt): Also generate remote-debug
19406 information if noack_mode is set.
19408 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19410 * server.c (handle_query): Report qXfer:siginfo:read and
19411 qXfer:siginfo:write as supported and handle them.
19412 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19413 * linux-low.c (linux_xfer_siginfo): New.
19414 (linux_target_ops): Set it.
19416 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19418 * server.c (gdbserver_usage): Mention --remote-debug.
19419 (main): Accept '--remote-debug' switch.
19421 2009-01-18 Doug Evans <dje@google.com>
19423 * regcache.c (new_register_cache): No need to check result of xcalloc.
19424 * server.c (handle_search_memory): Back out calls to xmalloc,
19425 result is checked and error is returned to user upon failure.
19426 (handle_query): Ditto. Add more checks for result of malloc.
19427 (handle_v_cont): Check result of malloc, report error back to
19429 (handle_v_run): Ditto. Call freeargv.
19430 * server.h (freeargv): Declare.
19431 * utils.c (freeargv): New fn.
19433 2009-01-15 Doug Evans <dje@google.com>
19435 * gdbreplay.c (perror_with_name): Make arg const char *.
19436 * server.h (target_signal_to_name): Make return type const char *.
19437 * thread-db.c (thread_db_err_str): Make return type const char *.
19438 * utils.c (perror_with_name): Make arg const char *.
19440 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19442 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19443 when handling a EXIT_PROCESS_DEBUG_EVENT.
19445 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19447 * gdbreplay.c (gdbreplay_version): Update copyright year.
19448 * server.c (gdbserver_version): Likewise.
19450 2009-01-05 Doug Evans <dje@google.com>
19452 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19453 (handle_extended_wait): Improve comment.
19455 2008-12-13 Doug Evans <dje@google.com>
19457 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19458 * server.h (ATTR_MALLOC): New macro.
19459 (xmalloc,xcalloc,xstrdup): Declare.
19460 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19461 * inferiors.c: Ditto.
19462 * linux-low.c: Ditto.
19463 * mem-break.c: Ditto.
19464 * regcache.c: Ditto.
19465 * remote-utils.c: Ditto.
19468 * win32-low.c: Ditto.
19470 2008-12-12 Doug Evans <dje@google.com>
19472 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19473 in debugging printf.
19475 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19477 2008-12-09 Doug Evans <dje@google.com>
19479 * linux-low.h (struct process_info): Delete member tid, unused.
19480 * thread-db.c (find_one_thread): Update.
19481 (maybe_attach_thread): Update.
19483 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19485 * target.h (struct target_ops): Add qxfer_osdata member.
19486 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19488 (linux_qxfer_osdata): New functions.
19489 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19491 * server.c (handle_query): Handle "qXfer:osdata:read:".
19492 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19493 (buffer_xml_printf): New functions.
19494 * server.h (struct buffer): New.
19495 (buffer_grow_str, buffer_grow_str0): New macros.
19496 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19497 (buffer_xml_printf): Declare.
19499 2008-11-24 Doug Evans <dje@google.com>
19501 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19503 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19505 * server.c (handle_v_run): Always use the supplied argument list.
19507 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19509 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19510 (xtensa_regmap_table): Add entry for scompare1.
19512 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19514 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19515 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19516 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19517 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19518 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19519 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19520 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19521 XML target descriptions.
19522 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19523 when inferior is running on an ISA 2.05 or later processor. Add
19524 special case to return offset for full 64-bit slot of FPSCR when
19527 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19529 * Makefile.in (SFILES, clean): Added sparc64 files.
19530 (reg-sparc64.o, reg-sparc64.c): New.
19531 * configure.srv (sparc*-*-linux*): New configuration.
19532 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19533 syscall arguments for SPARC.
19534 (regsets_store_inferior_registers): Likewise.
19535 * linux-sparc-low.c: New file.
19537 2008-10-21 Doug Evans <dje@google.com>
19539 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19540 (READLINE_DIR,READLINE_DEP): Delete.
19541 (INTERNAL_CFLAGS): Update.
19542 (LINTFLAGS): Update.
19544 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19546 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19547 whole argv from the last run, not just argv[0].
19549 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19551 * regcache.c (new_register_cache): Return NULL if the register
19552 cache size isn't known yet.
19553 (free_register_cache): Avoid dereferencing a NULL regcache.
19555 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19557 * configure.srv: Merge MIPS and MIPS64.
19559 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19561 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19563 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19565 * Makefile.in: Add required vsx dependencies.
19567 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19568 Declare init_registers_powerpc_vsx32l.
19569 Declare init_registers_powerpc_vsx64l.
19570 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19571 (ppc_arch_setup): Check for VSX in hwcap.
19572 (ppc_fill_vsxregset): New function.
19573 (ppc_store_vsxregset): New function.
19574 Add new VSX entry in regset_info target_regsets.
19576 * configure.srv: Add new VSX dependencies.
19578 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19580 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19581 (remote_open): Set or clear transport_is_reliable.
19582 (putpkt_binary): Don't expect acks in noack mode.
19583 (getpkt): Don't send ack/nac in noack mode.
19584 * server.c (handle_general_set): Handle QStartNoAckMode.
19585 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19587 (main): Reset noack_mode on every connection.
19588 * server.h (noack_mode): Declare.
19590 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19592 * Makefile.in (GDBREPLAY_OBS): New variable.
19593 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19595 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19596 Daniel Jacobowitz <dan@codesourcery.com>
19598 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19599 (usr_store_inferior_registers): Likewise.
19600 (regsets_store_inferior_registers): Likewise.
19602 2008-07-31 Rolf Jansen <rj@surtec.com>
19603 Pedro Alves <pedro@codesourcery.com>
19605 * configure.ac: Check for memmem declaration.
19606 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19607 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19608 (disable_packet_qfThreadInfo): Unconditionally compile.
19609 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19610 * configure, config.in: Regenerate.
19612 2008-07-28 Doug Kwan <dougkwan@google.com>
19614 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19615 (linux_write_memory): Remove declaration of errno.
19617 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19619 * linux-low.c (handle_extended_wait): Do not use "status"
19620 variable uninitialized.
19622 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19624 * server.c (handle_v_attach): Inhibit reporting dll changes.
19626 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19628 * remote-utils.c (prepare_resume_reply): If requested, don't
19629 output "thread:TID" in the T stop reply.
19631 * server.c (disable_packet_vCont, disable_packet_Tthread)
19632 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19633 (handle_query): If requested, disable support for qC, qfThreadInfo
19635 (handle_v_requests): If requested, disable support for vCont.
19636 (gdbserver_show_disableable): New.
19637 (main): Handle --disable-packet and --disable-packet=LIST.
19639 * server.h (disable_packet_vCont, disable_packet_Tthread)
19640 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19642 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19644 * server.c (gdbserver_usage): Mention --version.
19646 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19648 * Makefile.in (gdbreplay.o): New rule.
19650 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19652 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19653 message, not gdbserver.
19655 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19656 Nathan Sidwell <nathan@codesourcery.com>
19657 Joseph Myers <joseph@codesourcery.com>
19659 * acinclude.m4: Include ../../config/acx.m4.
19660 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19661 * configure, config.in: Regenerate.
19662 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19663 * server.c (gdbserver_version): Print PKGVERSION.
19664 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19665 (main): Adjust gdbserver_usage calls.
19666 * gdbreplay.c (version, host_name): Add declarations.
19667 (gdbreplay_version, gdbreplay_usage): New.
19668 (main): Accept --version and --help options.
19670 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19672 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19673 (arm_breakpoint_at): Handle Thumb.
19674 (the_low_target): Add comment.
19676 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19678 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19680 2008-05-09 Doug Evans <dje@google.com>
19682 * server.h (decode_search_memory_packet): Declare.
19683 * remote-utils.c (decode_search_memory_packet): New fn.
19684 * server.c (handle_search_memory_1): New fn.
19685 (handle_search_memory): New fn.
19686 (handle_query): Process qSearch:memory packets.
19688 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19690 * regcache.c (registers_length): Remove.
19691 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19692 full register packet.
19693 * regcache.h (registers_length): Remove prototype.
19694 * server.h (PBUFSIZ): Define to 16384.
19696 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19698 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19699 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19700 powerpc-64l.o, and powerpc-altivec64l.o.
19701 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19702 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19703 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19704 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19705 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19708 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19709 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19710 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19711 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19712 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19713 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19714 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19715 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19716 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19717 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19720 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19721 (init_registers_powerpc_32l): ... this new prototype.
19722 (init_registers_powerpc_32): Remove, replace by ...
19723 (init_registers_powerpc_altivec32l): ... this new prototype.
19724 (init_registers_powerpc_e500): Remove, replace by ...
19725 (init_registers_powerpc_e500l): ... this new prototype.
19726 (init_registers_ppc64): Remove, replace by ...
19727 (init_registers_powerpc_64l): ... this new prototype.
19728 (init_registers_powerpc_64): Remove, replace by ...
19729 (init_registers_powerpc_altivec64l): ... this new prototype.
19730 (ppc_num_regs): Set to 73.
19731 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19732 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19733 (ppc_cannot_store_register): Handle orig_r3 and trap.
19734 (ppc_arch_setup): Update init_registers_... calls.
19735 (ppc_fill_gregset): Handle orig_r3 and trap.
19737 * inferiors.c (clear_inferiors): Reset current_inferior.
19739 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19741 * acinclude.m4: Add override.m4.
19742 * configure: Regenerate.
19744 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19746 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19747 initial call to init_register_ppc64.
19749 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19751 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19752 single powerpc*-*-linux* case.
19753 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19755 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19757 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19758 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19760 * linux-ppc-low.c: Include <elf.h>.
19761 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19762 (ppc_hwcap): New global variable.
19763 (ppc_regmap): Remove __SPE__ #ifdef sections.
19764 (ppc_regmap_e500): New global variable.
19765 (ppc_cannot_store_register): Update __SPE__ special case.
19766 (ppc_get_hwcap): New function.
19767 (ppc_arch_setup): Use it to determine whether inferior supports
19768 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19769 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19770 Do not access registers if target does not support AltiVec.
19771 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19772 Do not access registers if target does not support SPE.
19773 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19775 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19777 * linux-low.c (disabled_regsets, num_regsets): New.
19778 (use_regsets_p): Delete.
19779 (linux_wait_for_process): Clear disabled_regsets.
19780 (regsets_fetch_inferior_registers): Check and set it.
19781 (regsets_store_inferior_registers): Likewise.
19782 (linux_fetch_registers, linux_store_registers): Do not use
19784 (initialize_low): Allocate disabled_regsets.
19786 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19788 * Makefile.in (LIBOBJS): New.
19789 (OBS): Use LIBOBJS.
19790 (memmem.o): New rule.
19791 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19792 * configure: Regenerated.
19794 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19796 * server.c (handle_query): Never return "unsupported" for
19797 qXfer:features:read queries.
19799 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19801 * server.c (get_features_xml): Fix inverted condition.
19802 (handle_query): Always support qXfer:feature:read.
19804 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19806 * server.c (wrapper_argv): New.
19807 (start_inferior): Handle wrapper_argv. If set, expect an extra
19809 (gdbserver_usage): Document --wrapper.
19810 (main): Parse --wrapper.
19812 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19814 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19815 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19816 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19817 (ppc_set_pc): Likewise.
19818 (ppc_arch_setup): New function.
19819 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19820 of collect_register.
19821 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19823 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19825 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19826 instead of linux-ppc64-low.o.
19827 * linux-ppc64-low.c: Remove file.
19828 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19829 (linux-ppc64-low.o): Remove rule.
19831 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19832 (init_registers_powerpc_64): Likewise.
19833 (ppc_regmap): Conditionally define depending on __powerpc64__.
19834 (ppc_cannot_store_register): Do not special-case "fpscr" when
19835 compiled on __powerpc64__.
19836 (ppc_collect_ptrace_register): New function.
19837 (ppc_supply_ptrace_register): New function.
19838 (ppc_breakpoint): Change type to "unsigned int".
19839 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19840 (the_low_target): Conditionally provide initializers for the
19841 arch_setup member depending on __powerpc64__. Install
19842 collect_ptrace_register and supply_ptrace_register members.
19844 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19846 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19847 * server.c (gdbserver_xmltarget): Define.
19848 (get_features_xml): Use it to replace "target.xml" and arch_string.
19850 * configure.srv: Remove srv_xmltarget. Add XML files that were
19851 mentioned there to srv_xmlfiles instead. Remove conditional tests
19852 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19853 srv_xmlfiles and srv_regobj to include all possible choices.
19854 * configure.ac (srv_xmltarget): Remove.
19855 (srv_xmlfiles): Do not add "target.xml".
19856 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19857 checks for supplementary target information.
19858 * configure: Regenerate.
19859 * Makefile.in (XML_TARGET): Remove.
19860 (target.xml): Remove rule.
19861 (clean): Do not clean up target.xml.
19862 (.PRECIOUS): Do not mention target.xml.
19864 * target.h (struct target_ops): Remove arch_string member.
19865 * linux-low.c (linux_arch_string): Remove.
19866 (linux_target_ops): Remove arch_string initializer.
19867 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19868 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19869 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19870 * spu-low.c (spu_arch_string): Remove.
19871 (spu_target_ops): Remove arch_string initializer.
19872 * win32-low.c (win32_arch_string): Remove.
19873 (win32_target_ops): Remove arch_string initializer.
19874 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19875 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19876 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19878 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19880 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19881 by collect_ptrace_register and supply_ptrace_register hooks.
19882 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19883 instead of checking for the_low_target.left_pad_xfer.
19884 (usr_store_inferior_registers): Use collect_ptrace_register callback
19885 instead of checking for the_low_target.left_pad_xfer.
19887 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19888 (s390_supply_ptrace_register): Likewise.
19889 (s390_fill_gregset): Call s390_collect_ptrace_register.
19890 (the_low_target): Update.
19892 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19893 (ppc_supply_ptrace_register): Likewise.
19894 (the_low_target): Update.
19896 * linux-i386-low.c (the_low_target): Update.
19897 * linux-x86-64-low.c (the_low_target): Update.
19899 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19901 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19902 reg-s390.o and reg-s390x.o.
19904 * linux-low.c (new_inferior): New global variable.
19905 (linux_create_inferior, linux_attach): Set it.
19906 (linux_wait_for_process): Call the_low_target.arch_setup after the
19907 target has stopped for the first time.
19908 (initialize_low): Do not call the_low_target.arch_setup.
19910 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19911 (s390_set_pc): Likewise.
19912 (s390_arch_setup): New function.
19913 (the_low_target): Use s390_arch_setup as arch_setup routine.
19915 * regcache.c (realloc_register_cache): New function.
19916 (set_register_cache): Call it for each existing regcache.
19918 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19920 * server.h (init_registers): Remove prototype.
19922 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19923 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19924 instead of init_registers ().
19925 * linux-arm-low.c (init_registers_arm): Add prototype.
19926 (init_registers_arm_with_iwmmxt): Likewise.
19927 (the_low_target): Add initializer for arch_setup field.
19928 * linux-cris-low.c (init_registers_cris): Add prototype.
19929 (the_low_target): Add initializer for arch_setup field.
19930 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19931 (the_low_target): Add initializer for arch_setup field.
19932 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19933 (the_low_target): Add initializer for arch_setup field.
19934 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19935 (the_low_target): Add initializer for arch_setup field.
19936 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19937 (the_low_target): Add initializer for arch_setup field.
19938 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19939 (the_low_target): Add initializer for arch_setup field.
19940 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19941 (init_registers_mips64_linux): Likewise.
19942 (the_low_target): Add initializer for arch_setup field.
19943 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19944 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19945 (the_low_target): Add initializer for arch_setup field.
19946 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19947 (init_registers_powerpc_64): Likewise.
19948 (the_low_target): Add initializer for arch_setup field.
19949 * linux-s390-low.c (init_registers_s390): Add prototype.
19950 (init_registers_s390x): Likewise.
19951 (the_low_target): Add initializer for arch_setup field.
19952 * linux-sh-low.c (init_registers_sh): Add prototype.
19953 (the_low_target): Add initializer for arch_setup field.
19954 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19955 (the_low_target): Add initializer for arch_setup field.
19956 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19957 (the_low_target): Add initializer for arch_setup field.
19959 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19960 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19961 instead of init_registers ().
19962 * win32-arm-low.c (init_registers_arm): Add prototype.
19963 (the_low_target): Add initializer for arch_setup field.
19964 * win32-i386-low.c (init_registers_i386): Add prototype.
19965 (the_low_target): Add initializer for arch_setup field.
19967 * spu-low.c (init_registers_spu): Add prototype.
19968 (initialize_low): Call initialie_registers_spu () instead of
19969 initialize_registers ().
19971 2008-02-19 Pedro Alves <pedro@codesourcery.com>
19973 * server.c (handle_v_requests): When handling the vRun and vAttach
19974 packets, if already debugging a process, don't kill it. Return an
19977 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19979 * server.c (handle_query): Correct length check.
19981 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19983 * win32-low.c (do_initial_child_stuff): Add process handle
19984 parameter. Set current_process_handle and current_process_id from the
19985 parameters. Clear globals.
19986 (win32_create_inferior): Don't set current_process_handle and
19987 current_process_id here. Instead pass them on the call to
19988 do_initial_child_stuff.
19989 (win32_attach): Likewise.
19990 (win32_clear_inferiors): New.
19991 (win32_kill): Don't close the current process handle or the
19992 current thread handle here. Instead call win32_clear_inferiors.
19993 (win32_detach): Don't open a new handle to the process. Call
19994 win32_clear_inferiors.
19995 (win32_join): Don't rely on current_process_handle; open a new
19996 handle using the process id.
19997 (win32_wait): Call win32_clear_inferiors when the inferior process
20000 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20002 * server.c (monitor_show_help): Add "exit".
20004 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20006 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20007 (clean): Add reg-xtensa.c.
20008 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20009 * configure.srv (xtensa*-*-linux*) New target.
20010 * linux-xtensa-low.c: New.
20011 * xtensa-xtregs.c: New.
20013 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20015 * hostio.c: Don't include errno.h.
20016 (errno_to_fileio_errno): Move to hostio-errno.
20017 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20018 error number outputting to the target->hostio_last_error callback.
20019 (hostio_packet_error): Use FILEIO_EINVAL directly.
20020 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20021 calls to hostio_error.
20022 * hostio-errno.c: New.
20023 * server.h (hostio_last_error_from_errno): Declare.
20024 * target.h (target_ops): Add hostio_last_error member.
20025 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20026 as hostio_last_error handler.
20027 * spu-low.c (spu_target_ops): Likewise.
20028 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20029 (wince_hostio_last_error): New functions.
20030 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20031 as hostio_last_error handler.
20032 (win32_target_ops) [!_WIN32_WCE]: Register
20033 hostio_last_error_from_errno as hostio_last_error handler.
20034 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20035 (hostio-errno.o): New rule.
20036 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20037 * configure.srv (srv_hostio_err_objs): New variable. Default to
20039 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20040 * configure: Regenerate.
20042 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20044 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20045 (linux_kill, linux_detach): Clean up the process list.
20046 * remote-utils.c (remote_open): Improve port number parsing.
20047 (putpkt_binary, input_interrupt): Only send interrupts if the target
20049 * server.c (extended_protocol): Make static.
20050 (attached): Define earlier.
20051 (exit_requested, response_needed, program_argv): New variables.
20052 (target_running): New.
20053 (start_inferior): Clear attached here.
20054 (attach_inferior): Set attached here.
20055 (require_running): Define.
20056 (handle_query): Use require_running and target_running. Implement
20058 (handle_v_attach, handle_v_run): New.
20059 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20060 (gdbserver_usage): Update.
20061 (main): Redo argument parsing. Handle --debug and --multi. Handle
20062 --attach along with other options or after the port. Save
20063 program_argv. Support no initial program. Resynchronize
20064 communication with GDB after an error. Handle "monitor exit".
20065 Use require_running and target_running. Always allow the extended
20066 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20067 restart in extended mode.
20068 * README: Refer to the GDB manual. Update --attach usage.
20070 2007-12-20 Andreas Schwab <schwab@suse.de>
20072 * linux-low.c (STACK_SIZE): Define.
20073 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20074 (linux_test_for_tracefork): Likewise.
20076 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20078 * linux-low.c (linux_wait_for_event): Update messages. Do not
20079 reinsert auto-delete breakpoints.
20080 * mem-break.c (struct breakpoint): Change return type of handler to
20082 (set_breakpoint_at): Update handler type.
20083 (reinsert_breakpoint_handler): Return 1 instead of calling
20085 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20087 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20088 * mem-break.h (set_breakpoint_at): Update handler type.
20089 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20090 * win32-low.c (auto_delete_breakpoint): New.
20091 (get_child_debug_event): Use it.
20093 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20095 * configure.ac: Check for pread and pwrite.
20096 * hostio.c (handle_pread): Fall back to lseek and read.
20097 (handle_pwrite): Fall back to lseek and write.
20098 * config.in, configure: Regenerated.
20100 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20102 * server.c (myresume): Add own_buf argument.
20103 (main): Update calls.
20105 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20107 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20108 * remote-utils.c (remote_open): Do not call disable_async_io.
20109 (block_async_io): Delete.
20110 (unblock_async_io): Make static.
20111 (initialize_async_io): New.
20112 * server.c (handle_v_cont): Handle async I/O here.
20113 (myresume): Likewise. Move other common resume tasks here...
20114 (main): ... from here. Call initialize_async_io. Disable async
20115 I/O before the main loop.
20116 * server.h (initialize_async_io): Declare.
20117 (block_async_io, unblock_async_io): Delete prototypes.
20118 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20120 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20122 * remote-utils.c (readchar): Allow binary data in received messages.
20124 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20126 * win32-low.c (attaching): New global.
20127 (win32_create_inferior): Clear the `attaching' global.
20128 (win32_attach): Set the `attaching' global.
20129 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20130 attaching. Only set a breakpoint at the entry point if not
20133 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20135 * server.c (main): Don't report dll events on the initial
20136 connection on attaches.
20138 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20140 * server.c (main): Relax numerical bases supported for the pid of
20141 the --attach command line argument.
20143 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20145 * win32-low.c (win32_attach): Call OpenProcess before
20146 DebugActiveProcess, not after. Add last error output to error
20149 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20151 * win32-low.c (win32_get_thread_context)
20152 (win32_set_thread_context): New functions.
20153 (thread_rec): Use win32_get_thread_context.
20154 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20155 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20158 2007-12-03 Leo Zayas
20159 Pedro Alves <pedro_alves@portugalmail.pt>
20161 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20163 (child_add_thread): Minor cleanup.
20164 (child_continue): Resume artificially suspended threads before
20165 calling ContinueDebugEvent.
20166 (suspend_one_thread): New.
20167 (fake_breakpoint_event): New.
20168 (get_child_debug_event): Change return type to int. Check here if
20169 gdb sent an interrupt request. If a soft interrupt was requested,
20170 fake a breakpoint event. Return 0 if there is no event to handle,
20172 (win32_wait): Don't check here if gdb sent an interrupt request.
20173 Ensure there is a valid event to handle.
20174 (win32_request_interrupt): Add soft interruption method as last
20177 2007-12-03 Leo Zayas
20178 Pedro Alves <pedro_alves@portugalmail.pt>
20180 * win32-low.h (win32_thread_info): Add descriptions to the
20181 structure members. Replace `suspend_count' counter by a
20183 * win32-low.c (thread_rec): Update condition of when to get the
20184 context from the inferior. Rely on ContextFlags being set if it
20185 has already been retrieved. Only suspend the inferior thread if
20186 we haven't already. Warn if that fails.
20187 (continue_one_thread): s/suspend_count/suspended/. Only call
20188 ResumeThread once. Warn if that fails.
20190 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20192 * win32-low.c (win32_wait): Don't read from the inferior when it
20193 has already exited.
20195 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20197 * Makefile.in (win32_low_h): New variable.
20198 (win32-low.o): Add dependency on $(win32_low_h).
20199 (win32-arm-low.o, win32-i386-low.o): New rules.
20201 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20203 * hostio.c: Correct copyright year.
20205 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20207 * Makefile.in (OBS): Add hostio.o.
20208 (hostio.o): New rule.
20209 * server.h (handle_vFile): Declare.
20210 * hostio.c: New file.
20211 * server.c (handle_v_requests): Take packet_len and new_packet_len
20212 for binary packets. Call handle_vFile.
20213 (main): Update call to handle_v_requests.
20215 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20217 * linux-low.c: Include <sched.h>.
20219 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20221 * linux-low.c (linux_tracefork_grandchild): New.
20222 (linux_tracefork_child): Use clone.
20223 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20225 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20227 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20229 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20231 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20233 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20235 * inferiors.c (change_inferior_id): Delete.
20236 (add_pid_to_list, pull_pid_from_list): New.
20237 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20238 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20239 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20240 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20241 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20242 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20243 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20244 (using_threads): Always set to 1.
20245 (handle_extended_wait): New.
20246 (add_process): Do not set TID.
20247 (linux_create_inferior): Set must_set_ptrace_flags.
20248 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20249 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20250 (linux_thread_alive): Rename TID argument to LWPID.
20251 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20252 (linux_wait_for_event): Do not use TID or check using_threads. Update
20253 call to dead_thread_notify. Call handle_extended_wait.
20254 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20255 (send_sigstop): Delete sigstop_sent.
20256 (wait_for_sigstop): Avoid TID.
20257 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20258 (linux_test_for_tracefork): New.
20259 (linux_lookup_signals): Use thread_db_active and
20260 linux_supports_tracefork_flag.
20261 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20262 * linux-low.h (get_process_thread): Avoid TID.
20263 (struct process_ifo): Move thread_known and tid to the end. Remove
20265 (linux_attach_lwp, thread_db_init): Update prototypes.
20266 * server.h (change_inferior_id): Delete prototype.
20267 (add_pid_to_list, pull_pid_from_list): New prototypes.
20268 * thread-db.c (thread_db_use_events): New.
20269 (find_first_thread): Rename to...
20270 (find_one_thread): ...this. Update callers and messages. Do not
20271 call fatal. Check thread_db_use_events. Do not call
20272 change_inferior_id or new_thread_notify.
20273 (maybe_attach_thread): Update. Do not call new_thread_notify.
20274 (thread_db_init): Set thread_db_use_events. Check use_events.
20275 * utils.c (fatal, warning): Correct message prefix.
20277 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20279 * Makefile.in (clean): Remove new files.
20280 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20281 (powerpc-64.o, powerpc-64.c): New rules.
20282 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20283 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20285 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20287 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20288 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20289 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20290 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20291 (target_regsets): Add AltiVec and SPE register sets.
20292 * configure.ac: Check for AltiVec and SPE.
20293 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20294 (ppc_fill_vrregset, ppc_store_vrregset): New.
20295 (target_regsets): Add AltiVec register set.
20296 * configure: Regenerated.
20298 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20300 * linux-low.c (O_LARGEFILE): Define.
20301 (linux_read_memory): Use /proc/PID/mem.
20302 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20303 * configure, config.in: Regenerated.
20305 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20307 * linux-low.c (linux_wait_for_event): Do not pass signals while
20310 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20312 * win32-low.c (create_process): New.
20313 (win32_create_inferior): Use create_process instead of
20314 CreateProcess. If create_process failed retry appending an ".exe"
20315 suffix. Store the GetLastError result immediatelly after
20316 create_process calls and use it on the call to error.
20318 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20320 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20322 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20324 * configure.ac: Switch license to GPLv3.
20326 2007-08-01 Michael Snyder <msnyder@access-company.com>
20328 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20330 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20332 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20334 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20335 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20336 CloseToolhelp32Snapshot.
20337 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20338 CloseToolhelp32Snapshot.
20340 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20342 * server.c (main): Check for inferior exit before main loop.
20344 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20346 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20347 instead of on tmp_desc.
20349 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20350 Daniel Jacobowitz <dan@codesourcery.com>
20352 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20353 (add_thread): Minor cleanups.
20354 (clear_inferiors): Move lower in the file. Clear the DLL
20356 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20357 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20358 (xml_escape_text): New.
20359 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20361 (handle_v_cont): Report errors.
20362 (gdbserver_version): Update.
20363 (main): Correct size of own_buf. Do not report initial DLL events.
20364 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20365 (unloaded_dll, xml_escape_text): New.
20366 * win32-low.c (enum target_waitkind): Update comments.
20367 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20368 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20369 (win32_EnumProcessModules, win32_GetModuleInformation)
20370 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20371 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20372 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20373 (win32_Module32First, win32_Module32Next, load_toolhelp)
20374 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20375 (get_child_debug_event): Handle DLL events.
20376 (win32_wait): Likewise.
20378 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20380 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20381 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20383 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20385 * win32-low.c (handle_output_debug_string): Ignore event if not
20388 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20390 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20392 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20394 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20396 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20398 * inferiors.c (change_inferior_id): Add comment.
20399 * linux-low.c (check_removed_breakpoint): Add an early
20400 prototype. Improve debug output.
20401 (linux_attach): Doc update.
20402 (linux_detach_one_process, linux_detach): Clean up before releasing
20404 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20405 * linux-low.h (struct process_info): Doc improvement.
20406 * mem-break.c (delete_all_breakpoints): New.
20407 * mem-break.h (delete_all_breakpoints): New prototype.
20408 * thread-db.c (find_first_thread): New.
20409 (thread_db_create_event): Call it instead of
20410 thread_db_find_new_threads. Clean up unused variables.
20411 (maybe_attach_thread): Remove first thread handling.
20412 (thread_db_find_new_threads): Use find_first_thread.
20413 (thread_db_get_tls_address): Likewise.
20415 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20417 * thread-db.c (thread_db_find_new_threads): Add prototype.
20418 (thread_db_create_event): Check for the main thread before adding
20420 (maybe_attach_thread): Only enable event reporting if TID == 0.
20421 (thread_db_get_tls_address): Check for new threads.
20423 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20425 * linux-low.c (linux_create_inferior): Try execv before execvp.
20426 * spu-low.c (spu_create_inferior): Likewise.
20428 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20430 * linux-low.c (linux_create_inferior): Change execv to execvp.
20431 * spu-low.c (spu_create_inferior): Likewies.
20433 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20435 * Makefile.in (clean): Clean new files instead of deleted ones.
20436 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20437 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20439 * configure.srv: Specify XML files and new regformats for MIPS and
20441 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20442 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20443 an entry for the restart register.
20444 (mips_cannot_fetch_register, mips_cannot_store_register)
20445 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20446 register names to match the XML descriptions.
20447 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20448 restart register instead of $0.
20450 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20451 Markus Deuling <deuling@de.ibm.com>
20453 * remote-utils.c (decode_xfer_write): New function.
20454 * server.h (decode_xfer_write): Add prototype.
20455 * server.c (handle_query): Add PACKET_LEN argument. Support
20456 qXfer:spu:read and qXfer:spu:write packets.
20457 (main): Pass packet_len to handle_query.
20458 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20459 * target.h (target_ops): Add qxfer_spu.
20461 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20463 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20464 accessing non-seekable spufs files.
20466 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20468 * server.c (handle_query): Add reply for qC packet.
20470 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20471 Leo Zayas <lerele@champenstudios@com>
20473 * server.h (check_remote_input_interrupt_request): New function.
20474 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20475 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20476 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20477 (check_remote_input_interrupt_request): New function.
20478 * server.h (check_remote_input_interrupt_request): Declare.
20479 * win32-low.c (winapi_DebugBreakProcess,
20480 winapi_GenerateConsoleCtrlEvent): New typedefs.
20481 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20483 (win32_wait): Check for remote interrupt request
20484 with check_remote_input_interrupt_request.
20485 (win32_request_interrupt): New function.
20486 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20488 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20490 * win32-low.c (debug_registers_changed,
20491 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20492 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20493 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20494 (thread_rec): Get context using the low target.
20495 (child_add_thread): Call thread_added on the low target,
20496 which does the same thing.
20498 (do_initial_child_stuff): Remove debug registers references.
20499 Set context using the low target. Resume threads after
20500 setting the contexts.
20501 (child_continue): Remove dead variable. Remove debug
20502 registers references.
20503 (child_fetch_inferior_registers): Go through the low target.
20504 (do_child_store_inferior_registers): Remove.
20505 (child_store_inferior_registers): Go through the low target.
20506 (win32_resume): Remove debug registers references.
20507 Set context using the low target.
20508 (handle_exception): Change return type to void. Don't record
20509 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20510 first chance exception.
20511 (get_child_debug_event): Change return type to void. Remove
20512 goto loop. Always return after waiting for debug event.
20513 (win32_wait): Convert to switch statement. Handle spurious
20516 * win32-i386-low.c (debug_registers_changed,
20517 debug_registers_used): New.
20518 (initial_stuff): Rename to ...
20519 (i386_initial_stuff): ... this. Clear debug registers
20521 (store_debug_registers): Delete.
20522 (i386_get_thread_context): New.
20523 (load_debug_registers): Delete.
20524 (i386_set_thread_context): New.
20525 (i386_thread_added): New.
20526 (single_step): Rename to ...
20527 (i386_single_step): ... this.
20528 (do_fetch_inferior_registers): Rename to ...
20529 (i386_fetch_inferior_register): ... this.
20530 (i386_store_inferior_register): New.
20531 (the_low_target): Adapt to new interface.
20533 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20534 (arm_get_thread_context): New.
20535 (arm_set_thread_context): New.
20537 (do_fetch_inferior_registers): Rename to ...
20538 (arm_fetch_inferior_register): ... this.
20539 (arm_store_inferior_register): New.
20540 (arm_wince_breakpoint): Reimplement as unsigned long.
20541 (arm_wince_breakpoint_len): Define.
20542 (the_low_target): Adapt to new interface.
20544 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20545 load_debug_registers. Add get_thread_context, set_thread_context,
20546 thread_added and store_inferior_register. Rename
20547 fetch_inferior_registers to fetch_inferior_register.
20548 (regptr): Remove declaration.
20550 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20552 * linux-low.c (linux_detach): Change return type to int. Return 0.
20553 * spu-low.c (spu_detach): Likewise.
20555 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20557 * target.h (target_ops): Change return type of detach to int.
20559 (join_inferior): New.
20560 * server.c (main): Don't skip detach support on mingw32.
20561 If the inferior doesn't support detaching return error.
20562 Call join_inferior instead of using waitpid.
20563 * linux-low.c (linux_join): New.
20564 (linux_target_op): Add linux_join.
20565 * spu-low.c (spu_join): New.
20566 (spu_target_ops): Add spu_join.
20567 * win32-low.c (win32_detach): Adapt to new interface.
20568 Reopen current_process_handle before detaching. Issue a child
20569 resume before detaching.
20571 (win32_target_op): Add win32_join.
20573 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20575 * win32-low.c (win32-attach): Fix return value.
20576 * target.h (target_ops): Describe ATTACH return values.
20578 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20580 * win32-low.c (GETPROCADDRESS): Define.
20581 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20582 (winapi_DebugSetProcessKillOnExit): Likewise.
20583 (win32_create_inferior): Force usage of ansi CreateProcessA.
20584 (win32_attach): Use GETPROCADDRESS.
20585 (win32_detach): Likewise.
20587 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20589 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20591 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20593 * win32-low.c: Commit leftover changes from 2007-03-29.
20595 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20597 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20598 fields short instead of int. Add explicit padding.
20599 (i387_cache_to_fsave): Remove unnecessary casts.
20600 (i387_fsave_to_cache): Doc fix.
20601 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20603 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20605 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20606 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20608 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20610 * configure.srv (arm*-*-mingw32ce*): Move near the other
20613 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20615 * configure.ac: Add errno checking.
20616 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20617 sys/file.h and malloc.h.
20618 (AC_CHECK_DECLS): Add perror.
20619 (srv_mingwce): Handle.
20620 * configure.srv (i[34567]86-*-cygwin*): Add
20621 win32-i386-low.o to srv_tgtobj.
20622 (i[34567]86-*-mingw*): Likewise.
20623 (arm*-*-mingw32ce*): Add case.
20624 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20625 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20626 [__MINGW32CE__] (strerror): New function.
20627 [__MINGW32CE__] (errno): Define to GetLastError.
20628 [__MINGW32CE__] (COUNTOF): New macro.
20629 (remote_open): Remove extra close call.
20630 * mem-break.c (delete_breakpoint_at): New function.
20631 * mem-break.h (delete_breakpoint_at): Declare.
20632 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20633 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20634 [USE_WIN32API] (read, write): Add char* casts.
20635 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20636 * server.h: Include wincecompat.h on Windows CE.
20637 [HAVE_ERRNO_H]: Check.
20638 (perror): Declare if not declared.
20639 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20640 (perror_with_name): Remove errno declaration.
20641 * wincecompat.h: New.
20642 * wincecompat.c: New.
20643 * win32-low.h: New.
20644 * win32-arm-low.c: New.
20645 * win32-i386-low.c: New.
20646 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20647 (OUTMSG2): Make it safe.
20649 (COUNTOF): New macro.
20650 (NUM_REGS): Get it from the low target.
20651 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20652 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20653 (thread_rec): Let low target handle debug registers.
20654 (child_add_thread): Likewise.
20655 (child_init_thread_list): Likewise.
20656 (continue_one_thread): Likewise.
20658 (do_child_fetch_inferior_registers): Move to ...
20659 * win32-i386-low.c: ... here, and rename to ...
20660 (do_fetch_inferior_registers): ... this.
20661 * win32-low.c (child_fetch_inferior_registers):
20662 Go through the low target.
20663 (do_child_store_inferior_registers): Use regptr.
20664 (strwinerror): New function.
20665 (win32_create_inferior): Handle Windows CE.
20666 Use strwinerror instead of strerror on Windows error
20667 codes. Add program to the error output.
20668 Don't close the main thread handle on Windows CE.
20669 (win32_attach): Use coredll.dll on Windows CE.
20670 (win32_kill): Close current process and current
20672 (win32_detach): Use coredll.dll on Windows CE.
20673 (win32_resume): Let low target handle debug registers, and
20675 (handle_exception): Add/Remove initial breakpoint. Avoid
20676 non-existant WSTOPSIG on Windows CE.
20677 (win32_read_inferior_memory): Cast to remove warning.
20678 (win32_arch_string): Go through the low target.
20679 (initialize_low): Call set_breakpoint_data with the low
20680 target's breakpoint.
20681 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20682 FOP_REGNUM, mappings): Move to ...
20683 * win32-i386-low.c: ... here.
20684 * win32-low.c (win32_thread_info): Move to ...
20685 * win32-low.h: ... here.
20686 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20687 win32-arm-low.c and wincecompat.c.
20688 (all:): Add $EXEEXT.
20689 (install-only:): Likewise.
20690 (gdbserver:): Likewise.
20691 (gdbreplay:): Likewise.
20692 * config.in: Regenerate.
20693 * configure: Regenerate.
20695 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20697 * win32-low.c: Rename typedef thread_info to
20698 win32_thread_info throughout.
20700 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20702 * win32-i386-low.c: Rename to ...
20703 * win32-low.c: ... this.
20704 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20705 * Makefile.in: Likewise.
20707 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20709 * remote-utils.c (monitor_output): Constify msg parameter.
20710 * server.h (monitor_output): Likewise.
20711 * win32-i386-low.c (handle_output_debug_string): New.
20712 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20713 handle_output_debug_string.
20714 (get_child_debug_event): Likewise.
20716 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20718 * server.c (main): Correct strtoul check.
20720 2007-03-27 Jon Ringle <jon@ringle.org>
20722 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20724 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20726 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20728 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20730 * terminal.h: Check HAVE_SGTTY_H.
20732 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20734 * remote-utils.c (remote_open): Print out the assigned port number.
20736 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20738 * remote-utils.c (monitor_output): New function.
20739 * server.c (debug_threads): Define here.
20740 (monitor_show_help): New function.
20741 (handle_query): Handle qRcmd.
20742 (main): Do not handle 'd' packet.
20743 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20744 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20747 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20749 * Makefile.in (EXEEXT): New.
20750 (clean): Use $(EXEEXT).
20752 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20754 * target.h (target_ops): Rename send_signal to request_interrupt,
20755 and remove enum target_signal parameter.
20756 * linux-low.c (linux_request_interrupt): Rename from
20757 linux_send_signal, and always send SIGINT.
20758 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20759 and always send SIGINT.
20760 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20762 (input_interrupt): Likewise.
20764 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20766 * server.c (get_features_xml): Check if target implemented
20768 * win32-i386-low.c (win32_arch_string): New.
20769 (win32_target_ops): Add win32_arch_string as arch_string member.
20771 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20773 * spu-low.c (spu_arch_string): New.
20774 (spu_target_ops): Add spu_arch_string.
20776 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20778 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20779 * configure.ac: Do not check for terminal.h.
20780 * configure, config.in: Regenerated.
20782 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20784 * Makefile.in (OBS): Add $(XML_BUILTIN).
20785 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20787 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20788 (arm-with-iwmmxt.c): New.
20789 * config.in, configure: Regenerate.
20790 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20791 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20792 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20793 (arm*-*-linux*): Add iWMMXt and regset support.
20794 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20795 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20796 (arm_store_wmmxregset, target_regsets): New.
20797 * server.c (get_features_xml): Take annex argument. Check builtin
20799 (handle_query): Handle multiple annexes.
20801 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20803 * remote-utils.c [USE_WIN32API] (read, write): Define.
20804 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20807 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20809 * linux-i386-low.c (the_low_target): Set arch_string.
20810 * linux-x86-64-low.c (the_low_target): Likewise.
20811 * linux-low.c (linux_arch_string): New.
20812 (linux_target_ops): Add it.
20813 * linux-low.h (struct linux_target_ops): Add arch_string.
20814 * server.c (write_qxfer_response): Use const void * for DATA.
20815 (get_features_xml): New.
20816 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20817 * target.h (struct target_ops): Add arch_string method.
20819 2007-01-03 Denis Pilat <denis.pilat@st.com>
20820 Daniel Jacobowitz <dan@codesourcery.com>
20822 * linux-low.c (linux_kill): Handle being called with no threads.
20823 * win32-i386-low.c (win32_kill): Likewise.
20824 (get_child_debug_event): Clear current_process_handle.
20826 2006-12-30 Denis PILAT <denis.pilat@st.com>
20827 Daniel Jacobowitz <dan@codesourcery.com>
20829 * remote-utils.c (remote_open): Check the type of specified
20830 serial port devices before opening them.
20831 * server.c (main): Kill the inferior if an error occurs during
20832 the first remote_open.
20834 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20836 * README: Update supported targets.
20838 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20840 * Makefile.in (clean): Remove reg-mips64.c.
20841 (reg-mips64.c, reg-mips64.o): New rules.
20842 * configure.srv: Handle mips64. Include regset support for mips.
20843 * linux-mips-low.c (union mips_register): New.
20844 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20845 (mips_breakpoint, mips_breakpoint_at): Use int.
20846 (mips_collect_register, mips_supply_register)
20847 (mips_collect_register_32bit, mips_supply_register_32bit)
20848 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20849 (mips_store_fpregset, target_regsets): New.
20850 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20852 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20854 * configure.srv: Add target "spu*-*-*".
20855 * Makefile.in (clean): Remove reg-spu.c.
20856 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20857 * spu-low.c: New file.
20859 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20861 * configure.ac: Correct td_thr_tls_get_addr test.
20862 * configure: Regenerated.
20864 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20866 * linux-low.c (linux_wait_for_event): Reformat. Use the
20867 pass_signals array.
20868 * remote-utils.c (decode_address_to_semicolon): New.
20869 * server.c (pass_signals, handle_general_set): New.
20870 (handle_query): Mention QPassSignals for qSupported.
20871 (main): Call handle_general_set.
20872 * server.h (pass_signals, decode_address_to_semicolon): New.
20874 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20876 * server.c (handle_query): Correct error handling for read_auxv.
20878 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20880 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20881 and srv_linux_thread_db to yes.
20882 * linux-s390-low.c (s390_fill_gregset): New function.
20883 (target_regsets): Define data structure.
20885 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20887 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20888 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20889 * config.in, configure: Regenerated.
20890 * inferiors.c (gdb_id_to_thread): New function.
20891 (gdb_id_to_thread_id): Use it.
20892 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20893 * linux-low.h (struct process_info): Add th member.
20894 (thread_db_get_tls_address): New prototype.
20895 * remote-utils.c (decode_address): Make non-static.
20896 * server.c (handle_query): Handle qGetTLSAddr.
20897 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20898 * target.h (struct target_ops): Add get_tls_address.
20899 * thread-db.c (maybe_attach_thread): Save the thread handle.
20900 (thread_db_get_tls_address): New.
20902 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20904 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20905 (linux_resume_one_process): Take a siginfo_t *. Update all
20906 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20907 (struct pending_signals): Add a siginfo_t.
20908 (linux_wait_for_process): Always set last_status.
20909 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20910 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20911 * linux-low.h (struct process_info): Add last_status.
20913 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20915 * remote-utils.c (try_rle): New function.
20916 (putpkt_binary): Use it.
20918 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20920 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20921 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20922 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20923 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20924 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20927 2006-08-08 Richard Sandiford <richard@codesourcery.com>
20929 * server.c (terminal_fd): New variable.
20930 (old_foreground_pgrp): Likewise.
20931 (restore_old_foreground_pgrp): New function.
20932 (start_inferior): Record the terminal file descriptor in terminal_fd
20933 and its original foreground group in old_foreground_pgrp. Register
20934 restore_old_foreground_pgrp with atexit().
20936 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20938 * server.c (handle_query): Correct qPart to qXfer.
20940 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20942 * configure.ac: Check for more headers which are missing on
20943 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20944 * configure.srv: Add Cygwin and mingw32.
20945 * remote-utils.c: Don't include headers unconditionally which
20946 are missing on mingw32. Include <winsock.h> for mingw32.
20947 (remote_open): Adjust for mingw32 support. Flush
20948 standard error after writing to it.
20949 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20950 (unblock_async_io, enable_async_io, disable_async_io)
20951 (readchar, getpkt): Update for Winsock support.
20952 (prepare_resume_reply): Expect a protocol signal number.
20953 * server.c: Disable <sys/wait.h> on mingw32.
20954 (start_inferior): Adjust for mingw32 support. Flush
20955 standard error after writing to it.
20956 (attach_inferior): Likewise. Use protocol signal
20958 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20960 * win32-i386-low.c: New file.
20961 * Makefile.in (XM_CLIBS): Set.
20962 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20963 (win32-i386-low.o): New dependency rule.
20964 * linux-low.c (linux_wait): Use target signal numbers.
20965 * target.h (struct target_ops): Doc fix.
20966 * server.h (target_signal_to_name): New prototype.
20967 * gdbreplay.c: Don't include headers unconditionally which
20968 are missing on mingw32. Include <winsock.h> for mingw32.
20969 (remote_close, remote_open): Adjust for Winsock support.
20970 * configure, config.in: Regenerated.
20972 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20974 * server.c (decode_xfer_read, write_qxfer_response): New.
20975 (handle_query): Take a packet length argument. Handle
20976 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20977 the qSupported response.
20978 (main): Update call to handle_query.
20980 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20982 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20983 (putpkt_binary): Renamed from putpkt and adjusted for binary
20985 (putpkt): New wrapper for putpkt_binary.
20986 (readchar): Don't mask off the high bit.
20987 (decode_X_packet): New function.
20988 * server.c (main): Call putpkt_binary if a handler sets the packet
20989 length. Save the length of the incoming packet. Handle 'X'.
20990 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20992 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20994 * server.c (handle_query): Handle qSupported.
20996 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20998 * remote-utils.c (all_symbols_looked_up): New variable.
20999 (look_up_one_symbol): Check it.
21000 * server.h (look_up_one_symbol): New declaration.
21001 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21003 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21005 * Makefile.in (linux-arm-low.o): Update dependencies.
21006 * linux-arm-low.c: Include "gdb_proc_service.h".
21007 (PTRACE_GET_THREAD_AREA): Define.
21008 (ps_get_thread_area): New function.
21010 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21012 * configure.srv (m68k*-*-uclinux*): New target.
21013 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21014 (linux_resume_one_process): Remove extraneous cast.
21015 (linux_read_offsets): New.
21016 (linux_target_op): Add linux_read_offsets on mmuless systems.
21017 * server.c (handle_query): Add qOffsets logic.
21018 * target.h (struct target_ops): Add read_offsets.
21020 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21022 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21023 (PTRACE_GET_THREAD_AREA): Define.
21024 (ps_get_thread_area): New function.
21025 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21026 (linux-x86-64-low.o): Update.
21028 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21030 * configure.ac: Remove checks for prfpregset_t.
21031 * gdb_proc_service.h: New file.
21032 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21033 new "gdb_proc_service.h".
21034 * proc-service.c: Likewise.
21035 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21036 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21037 * Makefile.in (gdb_proc_service_h): Updated.
21038 * configure, config.in: Regenerated.
21040 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21042 * remote-utils.c (prepare_resume_reply): Move declaration
21043 of gdb_id_from_wait to the top of the block.
21045 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21047 * linux-low.c (regsets_store_inferior_registers): Read the regset
21048 from the target before filling it.
21050 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21052 * server.c (attach_inferior): Return SIGTRAP for a successful
21055 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21057 * Makefile.in (OBS): Add version.o.
21058 (STAGESTUFF): Delete.
21059 (version.o): Add dependencies.
21060 (version.c): Replace rule.
21061 (clean): Remove version.c.
21062 * server.c (gdbserver_version): New.
21063 (gdbserver_usage): Use printf.
21064 (main): Handle --version and --help.
21065 * server.h (version, host_name): Add declarations.
21067 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21079 * linux-x86-64-low.c:
21081 * linux-s390-low.c:
21082 * linux-ppc64-low.c:
21084 * linux-mips-low.c:
21085 * linux-m68k-low.c:
21086 * linux-m32r-low.c:
21089 * linux-ia64-low.c:
21090 * linux-i386-low.c:
21091 * linux-crisv32-low.c:
21103 * gdbserver.1: Add (C) after Copyright. Update the FSF
21106 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21108 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21109 (arm_breakpoint_at): Recognize both breakpoints.
21110 (the_low_target): Use the correct breakpoint instruction.
21112 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21114 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21115 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21116 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21117 (the_low_target): Update.
21119 2005-10-25 Andreas Schwab <schwab@suse.de>
21121 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21123 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21124 (ia64_num_regs): Reduce to 462.
21126 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21128 * acinclude.m4: Correct quoting.
21129 * aclocal.m4: Regenerated.
21131 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21132 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21133 (thread_db_init): Call thread_db_err_str.
21134 * configure.ac: Check for TD_VERSION.
21135 * config.in, configure: Regenerated.
21137 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21139 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21141 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21143 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21144 is not available. Define HAVE_PTRACE_GETREGS if it is.
21145 * config.in, configure: Regenerated.
21146 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21147 * linux-i386-low.c, linux-m68k-low.c: Update to use
21148 HAVE_PTRACE_GETREGS.
21149 * linux-low.c (regsets_fetch_inferior_registers)
21150 (regsets_store_inferior_registers): Only return 0 if we processed
21152 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21153 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21155 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21157 * inferiors.c (struct thread_info): Add gdb_id.
21158 (add_thread): Add gdb_id argument.
21159 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21160 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21161 calls to add_thread.
21162 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21163 * server.c (handle_query): Use thread_to_gdb_id.
21164 (handle_v_cont, main): Use gdb_id_to_thread_id.
21165 * server.h (add_thread): Update prototype.
21166 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21169 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21171 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21172 left-padded registers.
21173 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21174 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21176 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21178 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21179 * configure: Regenerate.
21180 * config.in: Regenerate.
21181 * server.h (NEED_DECLARATION_STRERROR):
21182 Replace with !HAVE_DECL_STRERROR.
21184 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21186 * linux-low.c (linux_wait, linux_send_signal): Don't test
21187 an unsigned long variable for > 0 if it could be MAX_ULONG.
21188 * server.c (myresume): Likewise.
21189 * target.c (set_desired_inferior): Likewise.
21191 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21193 * configure.ac: Simplify and improve check for socklen_t.
21194 * configure, config.in: Regenerate.
21196 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21198 * acconfig.h: Remove.
21199 * configure.ac: Add a test for socklen_t. Use three-argument
21200 AC_DEFINE throughout.
21201 * config.in: Regenerated using autoheader 2.59.
21202 * configure: Regenerated.
21204 * gdbreplay.c (socklen_t): Provide a default.
21205 (remote_open): Use socklen_t.
21206 * remote-utils.c (socklen_t): Provide a default.
21207 (remote_open): Use socklen_t.
21208 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21211 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21213 * linux-low.c (linux_read_memory, linux_write_memory)
21214 (linux_read_auxv): Likewise.
21215 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21216 (check_mem_write): Likewise.
21217 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21219 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21220 (registers_from_string, register_data): Likewise.
21221 * server.c (handle_query, main): Likewise.
21222 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21223 (decode_M_packet): Likewise.
21224 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21225 * target.h (struct target_ops): Update read_memory, write_memory,
21227 (read_inferior_memory, write_inferior_memory): Update.
21228 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21229 to unsigned char *.
21230 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21231 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21232 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21233 linux-s390-low.c, linux-sh-low.c: Update for changes in
21234 read_inferior_memory and the_low_target->breakpoint.
21236 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21238 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21239 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21240 * configure.srv: Add powerpc64-*-linux*.
21241 * linux-ppc64-low.c: New file.
21243 2005-05-23 Orjan Friberg <orjanf@axis.com>
21245 * linux-cris-low.c: New file with support for CRIS.
21246 * linux-crisv32-low.c: Ditto for CRISv32.
21247 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21248 (clean): Add reg-cris.c and reg-crisv32.c.
21249 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21250 reg-crisv32.o, and reg-crisv32.c to make rules.
21251 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21252 recognized targets.
21254 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21256 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21257 of sizeof (PTRACE_XFER_TYPE).
21258 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21260 2005-05-12 Orjan Friberg <orjanf@axis.com>
21262 * target.h (struct target_ops): Add insert_watchpoint,
21263 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21264 pointers for hardware watchpoint support.
21265 * linux-low.h (struct linux_target_ops): Ditto.
21266 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21267 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21268 to linux_target_ops.
21269 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21271 * server.c (main): Recognize 'Z' and 'z' packets.
21273 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21275 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21276 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21277 (the_low_target): Add new members.
21279 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21281 * proc-service.c (ps_lgetregs): Search all_processes instead of
21284 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21286 * server.c (start_inferior): Change return type to int.
21287 (attach_inferior): Change sigptr to int *.
21288 (handle_v_cont, handle_v_requests): Change signal to int *.
21289 (main): Change signal to int.
21291 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21293 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21294 * configure.srv: Add m32r*-*-linux*.
21295 * linux-m32r-low.c: New file.
21297 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21299 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21301 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21303 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21304 Take unsigned long arguments for PIDs.
21305 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21306 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21307 (wait_for_sigstop, linux_resume_one_process)
21308 (regsets_fetch_inferior_registers, linux_send_signal)
21309 (linux_read_auxv): Likewise. Update the types of variables holding
21310 PIDs. Update format string specifiers.
21311 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21312 * remote-utils.c (prepare_resume_reply): Likewise.
21313 * server.c (cont_thread, general_thread, step_thread)
21314 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21316 (handle_query): Update format specifiers.
21317 (handle_v_cont, main): Use strtoul for thread IDs.
21318 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21319 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21320 (general_thread, step_thread, thread_from_wait)
21321 (old_thread_from_wait): Update.
21322 * target.h (struct thread_resume): Use unsigned long for THREAD.
21323 (struct target_ops): Use unsigned long for arguments to attach and
21326 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21328 * acinclude.m4: Include bfd/bfd.m4 directly.
21329 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21330 <agriffis@toolchain.org>.
21331 * aclocal.m4, configure: Regenerated.
21333 2005-01-07 Andrew Cagney <cagney@gnu.org>
21335 * configure.ac: Rename configure.in, require autoconf 2.59.
21336 * configure: Re-generate.
21338 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21340 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21341 LIBS when finished.
21342 * aclocal.m4: Regenerated.
21343 * configure: Regenerated.
21345 2004-11-21 Andreas Schwab <schwab@suse.de>
21347 * linux-m68k-low.c (m68k_num_gregs): Define.
21348 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21349 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21350 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21351 (m68k_breakpoint_at): New. Add to the_low_target.
21353 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21354 srv_linux_thread_db to yes.
21356 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21358 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21359 (ARCH_SET_FS): Likewise.
21360 (ARCH_GET_FS): Likewise.
21361 (ARCH_GET_GS): Likewise.
21363 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21365 * linux-i386-low.c (ps_get_thread_area): New.
21366 * linux-x86-64-low.c (ps_get_thread_area): New.
21367 * linux-low.c: Include <sys/syscall.h>.
21368 (linux_kill_one_process): Don't kill the first thread here.
21369 (linux_kill): Kill the first thread here.
21370 (kill_lwp): New function.
21371 (send_sigstop, linux_send_signal): Use it.
21372 * proc-service.c: Clean up #ifdefs.
21373 (fpregset_info): Delete.
21374 (ps_lgetregs): Update and enable implementation.
21375 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21377 * remote-utils.c (struct sym_cache, symbol_cache): New.
21378 (input_interrupt): Print a clearer message.
21379 (async_io_enabled): New variable.
21380 (enable_async_io, disable_async_io): Use it. Update comments.
21381 (look_up_one_symbol): Use the symbol cache.
21382 * thread-db.c (thread_db_look_up_symbols): New function.
21383 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21385 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21387 * configure.in: Test for -rdynamic.
21388 * configure: Regenerated.
21389 * Makefile (INTERNAL_LDFLAGS): New.
21390 (gdbserver, gdbreplay): Use it.
21392 2004-09-02 Andrew Cagney <cagney@gnu.org>
21394 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21396 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21398 * linux-low.c (linux_wait): Clear all_processes list also.
21400 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21402 * linux-low.c: Include <errno.h>. Remove extern declaration of
21405 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21407 * gdbreplay.c, server.h, utils.c: Update copyright years.
21409 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21411 * server.c (main): Print child status or termination signal from
21412 variable 'signal', not 'sig'.
21414 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21416 * linux-low.c (linux_read_memory): Change return type to
21417 int. Check for and return error from ptrace().
21418 * target.c (read_inferior_memory): Change return type to int. Pass
21419 back return status from the_target->read_memory().
21420 * target.h (struct target_ops): Adapt *read_memory() prototype.
21422 (read_inferior_memory): Adapt prototype.
21423 * server.c (main): Return an error packet if
21424 read_inferior_memory() returns an error.
21426 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21428 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21429 Unify with other clean targets.
21431 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21433 * server.c (handle_v_cont): Call set_desired_inferior.
21435 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21437 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21439 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21441 * linux-low.c (linux_wait): Unblock async I/O.
21442 (linux_resume): Block and enable async I/O.
21443 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21444 * server.h (block_async_io, unblock_async_io): Add prototypes.
21446 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21448 * remote-utils.c (remote_open): Print a status notice after
21449 opening a TCP port.
21450 * server.c (attach_inferior): Print a status notice after
21453 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21455 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21457 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21459 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21461 * server.c, target.h: Update copyright years.
21463 2004-02-25 Roland McGrath <roland@redhat.com>
21465 * target.h (struct target_ops): New member `read_auxv'.
21466 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21467 * linux-low.c (linux_read_auxv): New function.
21468 (linux_target_ops): Initialize `read_auxv' member to that.
21470 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21472 Committed by Jim Blandy <jimb@redhat.com>.
21474 * linux-s390-low.c (s390_num_regs): Update.
21475 (s390_regmap): Remove control registers. Use __s390x__ predefine
21476 instead of GPR_SIZE to distiguish s390 and s390x targets.
21478 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21480 * linux-low.c: Update copyright year.
21481 (check_removed_breakpoint): Clear pending_is_breakpoint.
21482 (linux_set_resume_request, linux_queue_one_thread)
21483 (resume_status_pending_p): New functions.
21484 (linux_continue_one_thread): Use process->resume.
21485 (linux_resume): Only resume threads if there are no pending events.
21486 * linux-low.h (struct process_info): Add resume request
21489 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21491 * regcache.c (new_register_cache): Clear the allocated register
21492 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21494 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21496 * linux-low.c (linux_resume): Take a struct thread_resume *
21498 (linux_wait): Update call.
21499 (resume_ptr): New static variable.
21500 (linux_continue_one_thread): Renamed from
21501 linux_continue_one_process. Use resume_ptr.
21502 (linux_resume): Use linux_continue_one_thread.
21503 * server.c (handle_v_cont, handle_v_requests): New functions.
21504 (myresume): New function.
21505 (main): Handle 'v' case.
21506 * target.h (struct thread_resume): New type.
21507 (struct target_ops): Change argument of "resume" to struct
21509 (myresume): Delete macro.
21511 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21513 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21514 (uninstall): Support DESTDIR.
21516 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21518 * configure.srv: Add xscale*linux copy of arm*linux entry.
21520 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21522 * linux-arm-low.c (arm_reinsert_addr): New function.
21523 (the_low_target): Add arm_reinsert_addr.
21525 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21527 * mem-break.c: Remove whitespace at end of file.
21529 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21531 * configure.in: Check whether we need to prototype strerror.
21532 * server.h: Optionally prototype strerror.
21533 * gdbreplay.c (perror_with_name): Use strerror.
21534 * linux-low.c (linux_attach_lwp): Use strerror.
21535 * utils.c (perror_with_name): Use strerror.
21536 * config.in, configure: Regenerated.
21538 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21540 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21541 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21543 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21545 * Makefile.in (SFILES): Update.
21546 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21547 low-sun3.c: Remove files.
21549 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21551 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21552 (linux_detach_one_process, linux_detach): New functions.
21553 (linux_target_ops): Add linux_detach.
21554 * server.c (main): Handle 'D' packet.
21555 * target.h (struct target_ops): Add "detach" member.
21556 (detach_inferior): Define.
21558 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21560 From Kelley Cook <kelleycook@wideopenwest.com>:
21561 * configure.srv: Accept i[34567]86 variants.
21563 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21565 * linux-low.c (linux_wait_for_event): Correct comment typos.
21566 (linux_resume_one_process): Call check_removed_breakpoint.
21567 (linux_send_signal): New function.
21568 (linux_target_ops): Add linux_send_signal.
21569 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21571 * target.h (struct target_ops): Add send_signal.
21573 2003-05-29 Jim Blandy <jimb@redhat.com>
21575 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21576 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21577 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21578 away part of the register's value.
21580 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21582 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21583 (linux_wait_for_event, linux_init_signals): Likewise.
21585 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21587 * configure.in: Check for stdlib.h.
21588 * configure: Regenerated.
21589 * config.in: Regenerated.
21591 2003-01-04 Andreas Schwab <schwab@suse.de>
21593 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21595 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21597 * Makefile.in: Remove obsolete code.
21599 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21601 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21602 defined(PT_FPR0_HI).
21604 2002-11-17 Stuart Hughes <seh@zee2.com>
21606 * linux-arm-low.c (arm_num_regs): Increase.
21607 (arm_regmap): Include status register.
21609 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21611 * linux-low.c (register_addr): Remove incorrect -1 check.
21613 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21615 * linux-low.c (linux_create_inferior): Call setpgid. Return
21617 (unstopped_p, linux_signal_pid): Remove.
21618 (linux_target_ops): Remove linux_signal_pid.
21619 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21620 global instead of target method.
21621 * target.h (struct target_ops): Remove signal_pid. Update comment
21622 for create_inferior.
21623 * server.c (signal_pid): New variable.
21624 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21625 gdbserver. Set the child to be the foreground process group.
21626 (attach_inferior): Set signal_pid.
21628 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21630 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21632 2002-08-20 Jim Blandy <jimb@redhat.com>
21634 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21637 2002-08-01 Andrew Cagney <cagney@redhat.com>
21639 * Makefile.in: Make chill references obsolete.
21641 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21643 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21644 * configure: Regenerate.
21645 * config.in: Regenerate.
21647 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21649 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21650 (perror_with_name, remote_close, remote_open, expect, play): Static.
21652 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21654 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21655 byte offsets instead of an array of indexes.
21656 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21658 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21660 * regcache.c: Add comment.
21662 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21664 * thread-db.c: New file.
21665 * proc-service.c: New file.
21666 * acinclude.m4: New file.
21667 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21668 proc-service.o, and thread-db.o.
21669 (linux-low.o): Add USE_THREAD_DB.
21670 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21671 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21672 * aclocal.m4: Regenerated.
21673 * config.in: Regenerated.
21674 * configure: Regenerated.
21675 * configure.in: Check for proc_service.h, sys/procfs.h,
21676 thread_db.h, and linux/elf.h headrs.
21677 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21678 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21679 Check for -lthread_db and thread support.
21680 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21681 PowerPC, and SuperH.
21682 * i387-fp.c: Constify arguments.
21683 * i387-fp.h: Likewise.
21684 * inferiors.c: (struct thread_info): Renamed from
21685 `struct inferior_info'. Remove PID member. Use generic inferior
21686 list header. All uses updated.
21687 (inferiors, signal_pid): Removed.
21688 (all_threads): New variable.
21689 (get_thread): Define.
21690 (add_inferior_to_list): New function.
21691 (for_each_inferior): New function.
21692 (change_inferior_id): New function.
21693 (add_inferior): Removed.
21694 (remove_inferior): New function.
21695 (add_thread): New function.
21696 (free_one_thread): New function.
21697 (remove_thread): New function.
21698 (clear_inferiors): Use for_each_inferior and free_one_thread.
21699 (find_inferior): New function.
21700 (find_inferior_id): New function.
21701 (inferior_target_data): Update argument type.
21702 (set_inferior_target_data): Likewise.
21703 (inferior_regcache_data): Likewise.
21704 (set_inferior_regcache_data): Likewise.
21705 * linux-low.c (linux_bp_reinsert): Remove.
21706 (all_processes, stopping_threads, using_thrads)
21707 (struct pending_signals, debug_threads, pid_of): New.
21708 (inferior_pid): Replace with macro.
21709 (struct inferior_linux_data): Remove.
21710 (get_stop_pc, add_process): New functions.
21711 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21712 Use add_process and add_thread.
21713 (linux_attach_lwp): New function, based on old linux_attach. Use
21714 add_process and add_thread. Set stop_expected for new threads.
21715 (linux_attach): New function.
21716 (linux_kill_one_process): New function.
21717 (linux_kill): Kill all LWPs.
21718 (linux_thread_alive): Use find_inferior_id.
21719 (check_removed_breakpoints, status_pending_p): New functions.
21720 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21721 Update. Use WNOHANG. Wait for cloned processes also. Update process
21722 struct for the found process.
21723 (linux_wait_for_event): New function.
21724 (linux_wait): Use it. Support LWPs.
21725 (send_sigstop, wait_for_sigstop, stop_all_processes)
21726 (linux_resume_one_process, linux_continue_one_process): New functions.
21727 (linux_resume): Support LWPs.
21728 (REGISTER_RAW_SIZE): Remove.
21729 (fetch_register): Use register_size instead. Call supply_register.
21730 (usr_store_inferior_registers): Likewise. Call collect_register.
21731 Fix recursive case.
21732 (regsets_fetch_inferior_registers): Improve error message.
21733 (regsets_store_inferior_registers): Add debugging.
21734 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21735 (unstopped_p, linux_signal_pid): New functions.
21736 (linux_target_ops): Add linux_signal_pid.
21737 (linux_init_signals): New function.
21738 (initialize_low): Call it. Initialize using_threads.
21739 * regcache.c (inferior_regcache_data): Add valid
21741 (get_regcache): Fetch registers lazily. Add fetch argument
21742 and update all callers.
21743 (regcache_invalidate_one, regcache_invalidate): New
21745 (new_register_cache): Renamed from create_register_cache.
21746 Return the new regcache.
21747 (free_register_cache): Change argument to a void *.
21748 (registers_to_string, registers_from_string): Call get_regcache
21749 with fetch flag set.
21750 (register_data): Make static. Pass fetch flag to get_regcache.
21751 (supply_register): Call get_regcache with fetch flag clear.
21752 (collect_register): Call get_regcache with fetch flag set.
21753 (collect_register_as_string): New function.
21754 * regcache.h: Update.
21755 * remote-utils.c (putpkt): Flush after debug output and use
21757 Handle input interrupts while waiting for an ACK.
21758 (input_interrupt): Use signal_pid method.
21759 (getpkt): Flush after debug output and use stderr.
21760 (outreg): Use collect_register_as_string.
21761 (new_thread_notify, dead_thread_notify): New functions.
21762 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21763 and general_thread.
21764 (look_up_one_symbol): Flush after debug output.
21765 * server.c (step_thread, server_waiting): New variables.
21766 (start_inferior): Don't use signal_pid. Update call to mywait.
21767 (attach_inferior): Update call to mywait.
21768 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21769 (main): Don't fetch/store registers explicitly. Use
21770 set_desired_inferior. Support proposed ``Hs'' packet. Update
21772 * server.h: Update.
21773 (struct inferior_list, struct_inferior_list_entry): New.
21774 * target.c (set_desired_inferior): New.
21775 (write_inferior_memory): Constify.
21776 (mywait): New function.
21777 * target.h: Update.
21778 (struct target_ops): New signal_pid method.
21779 (mywait): Removed macro, added prototype.
21781 * linux-low.h (regset_func): Removed.
21782 (regset_fill_func, regset_store_func): New.
21783 (enum regset_type): New.
21784 (struct regset_info): Add type field. Use new operation types.
21785 (struct linux_target_ops): stop_pc renamed to get_pc.
21786 Add decr_pc_after_break and breakpoint_at.
21787 (get_process, get_thread_proess, get_process_thread)
21788 (strut process_info, all_processes, linux_attach_lwp)
21789 (thread_db_init): New.
21791 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21792 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21793 (the_low_target): Add new members.
21794 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21795 (i386_store_fpxregset): Constify.
21796 (target_regsets): Add new kind identifier.
21797 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21798 (i386_set_pc): Add debugging.
21799 (i386_breakpoint_at): New function.
21800 (the_low_target): Add new members.
21801 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21802 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21803 (mips_breakpoint_at): New.
21804 (the_low_target): Add new members.
21805 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21806 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21807 (the_low_target): Add new members.
21808 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21809 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21810 (the_low_target): Add new members.
21811 * linux-x86-64-low.c (target_regsets): Add new kind
21814 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21816 From Martin Pool <mbp@samba.org>:
21817 * server.c (gdbserver_usage): New function.
21820 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21822 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21823 stop_at -> stop_pc.
21825 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21827 * Makefile.in: Remove obsolete code.
21829 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21831 * linux-low.c (regsets_fetch_inferior_registers),
21832 (regsets_store_inferior_registers): Removed cast to int from
21834 * regcache.h: Added declaration of struct inferior_info.
21836 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21838 * inferiors.c (struct inferior_info): Add regcache_data.
21839 (add_inferior): Call create_register_cache.
21840 (clear_inferiors): Call free_register_cache.
21841 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21842 * regcache.c (struct inferior_regcache_data): New.
21843 (registers): Remove.
21844 (get_regcache): New function.
21845 (create_register_cache, free_register_cache): New functions.
21846 (set_register_cache): Don't initialize the register cache here.
21847 (registers_to_string, registers_from_string, register_data): Call
21849 * regcache.h: Add prototypes.
21850 * server.h: Likewise.
21852 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21854 * mem-break.c: New file.
21855 * mem-break.h: New file.
21856 * Makefile.in: Add mem-break.o rule; update server.h
21858 * inferiors.c (struct inferior_info): Add target_data
21860 (clear_inferiors): Free target_data member if set.
21861 (inferior_target_data, set_inferior_target_data): New functions.
21862 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21863 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21864 * linux-low.c (linux_bp_reinsert): New variable.
21865 (struct inferior_linux_data): New.
21866 (linux_create_inferior): Use set_inferior_target_data.
21867 (linux_attach): Likewise. Call add_inferior.
21868 (linux_wait_for_one_inferior): New function.
21869 (linux_wait): Call it.
21870 (linux_write_memory): Add const.
21871 (initialize_low): Call set_breakpoint_data.
21872 * linux-low.h (struct linux_target_ops): Add breakpoint
21874 * server.c (attach_inferior): Remove extra add_inferior
21876 * server.h: Include mem-break.h. Update inferior.c
21878 * target.c (read_inferior_memory)
21879 (write_inferior_memory): New functions.
21880 * target.h (read_inferior_memory)
21881 (write_inferior_memory): Change macros to prototypes.
21882 (struct target_ops): Update comments. Add const to write_memory
21885 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
21887 * linux-low.c (usr_store_inferior_registers): Support
21888 registers which are allowed to fail to store.
21889 * linux-low.h (linux_target_ops): Likewise.
21890 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21891 (ppc_cannot_store_register): FPSCR may not be storable.
21893 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21895 * server.h: Include <string.h> if HAVE_STRING_H.
21896 * ChangeLog: Correct paths in last ChangeLog entry.
21898 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21900 * linux-low.h: Remove obsolete prototypes.
21901 (struct linux_target_ops): New.
21902 (extern the_low_target): New.
21903 * linux-low.c (num_regs, regmap): Remove declarations.
21904 (register_addr): Use the_low_target explicitly.
21905 (fetch_register): Likewise.
21906 (usr_fetch_inferior_registers): Likewise.
21907 (usr_store_inferior_registers): Likewise.
21908 * linux-arm-low.c (num_regs): Remove.
21909 (arm_num_regs): Define.
21910 (arm_regmap): Renamed from regmap, made static.
21911 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21913 (arm_cannot_store_register): Renamed from cannot_store_register,
21915 (the_low_target): New.
21916 * linux-i386-low.c (num_regs): Remove.
21917 (i386_num_regs): Define.
21918 (i386_regmap): Renamed from regmap, made static.
21919 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21921 (i386_cannot_store_register): Renamed from cannot_store_register,
21923 (the_low_target): New.
21924 * linux-ia64-low.c (num_regs): Remove.
21925 (ia64_num_regs): Define.
21926 (ia64_regmap): Renamed from regmap, made static.
21927 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21929 (ia64_cannot_store_register): Renamed from cannot_store_register,
21931 (the_low_target): New.
21932 * linux-m68k-low.c (num_regs): Remove.
21933 (m68k_num_regs): Define.
21934 (m68k_regmap): Renamed from regmap, made static.
21935 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21937 (m68k_cannot_store_register): Renamed from cannot_store_register,
21939 (the_low_target): New.
21940 * linux-mips-low.c (num_regs): Remove.
21941 (mips_num_regs): Define.
21942 (mips_regmap): Renamed from regmap, made static.
21943 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21945 (mips_cannot_store_register): Renamed from cannot_store_register,
21947 (the_low_target): New.
21948 * linux-ppc-low.c (num_regs): Remove.
21949 (ppc_num_regs): Define.
21950 (ppc_regmap): Renamed from regmap, made static.
21951 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21953 (ppc_cannot_store_register): Renamed from cannot_store_register,
21955 (the_low_target): New.
21956 * linux-s390-low.c (num_regs): Remove.
21957 (s390_num_regs): Define.
21958 (s390_regmap): Renamed from regmap, made static.
21959 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21961 (s390_cannot_store_register): Renamed from cannot_store_register,
21963 (the_low_target): New.
21964 * linux-sh-low.c (num_regs): Remove.
21965 (sh_num_regs): Define.
21966 (sh_regmap): Renamed from regmap, made static.
21967 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21969 (sh_cannot_store_register): Renamed from cannot_store_register,
21971 (the_low_target): New.
21972 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21973 (the_low_target): New.
21975 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21977 * Makefile.in: Add stamp-h target.
21978 * configure.in: Create stamp-h.
21979 * configure: Regenerated.
21981 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21983 * inferiors.c: New file.
21984 * target.c: New file.
21985 * target.h: New file.
21986 * Makefile.in: Add target.o and inferiors.o. Update
21988 * linux-low.c (inferior_pid): New static variable,
21989 moved from server.c.
21990 (linux_create_inferior): Renamed from create_inferior.
21991 Call add_inferior. Return 0 on success instead of a PID.
21992 (linux_attach): Renamed from myattach.
21993 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21994 (linux_thread_alive): Renamed from mythread_alive.
21995 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21997 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21998 (regsets_store_inferior_registers): Correct error message.
21999 Add missing ``return 0''.
22000 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22001 (linux_store_registers): Renamed from store_inferior_registers.
22002 (linux_read_memory): Renamed from read_inferior_memory.
22003 (linux_write_memory): Renamed from write_inferior_memory.
22004 (linux_target_ops): New structure.
22005 (initialize_low): Call set_target_ops ().
22006 * remote-utils.c (unhexify): New function.
22007 (hexify): New function.
22008 (input_interrupt): Send signals to ``signal_pid''.
22009 * server.c (inferior_pid): Remove.
22010 (start_inferior): Update create_inferior call.
22011 (attach_inferior): Call add_inferior.
22012 (handle_query): New function.
22013 (main): Call handle_query for `q' packets.
22014 * server.h: Include "target.h". Remove obsolete prototypes.
22015 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22017 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22019 * Makefile.in: Add WARN_CFLAGS. Update configury
22021 * configure.in: Check for <string.h>
22022 * configure: Regenerate.
22023 * config.in: Regenerate.
22024 * gdbreplay.c: Include needed system headers.
22025 (remote_open): Remove strchr prototype.
22026 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22027 * regcache.c (supply_register): Change buf argument to const void *.
22028 (supply_register_by_name): Likewise.
22029 (collect_register): Change buf argument to void *.
22030 (collect_register_by_name): Likewise.
22031 * regcache.h: Add missing prototypes.
22032 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22033 * server.c (handle_query): New function.
22034 (attached): New static variable, moved out of main.
22035 (main): Quiet longjmp clobber warnings.
22036 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22037 * utils.c (error): Remove NORETURN.