1 2020-04-08 Tom Tromey <tromey@adacore.com>
3 * win32-low.h (win32_process_target::read_pc)
4 (win32_process_target::write_pc): Declare.
5 * win32-low.c (win32_process_target::read_pc)
6 (win32_process_target::write_pc): New methods.
7 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
9 (the_low_target): Update.
10 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
12 (the_low_target): Update.
14 2020-04-08 Tom Tromey <tromey@adacore.com>
16 * win32-low.c (win32_kill, get_child_debug_event): Use
19 2020-04-08 Tom Tromey <tromey@adacore.com>
21 * win32-low.c (child_continue): Call continue_last_debug_event.
23 2020-04-08 Tom Tromey <tromey@adacore.com>
25 * win32-low.c (handle_exception): Remove.
26 (windows_nat::handle_ms_vc_exception): New function.
27 (get_child_debug_event): Add "continue_status" parameter.
31 2020-04-08 Tom Tromey <tromey@adacore.com>
33 * win32-low.c (windows_nat::handle_load_dll): Rename from
34 handle_load_dll. No longer static.
35 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
38 2020-04-08 Tom Tromey <tromey@adacore.com>
40 * win32-low.c (handle_output_debug_string): Add parameter. Change
42 (win32_kill, get_child_debug_event): Update.
44 2020-04-08 Tom Tromey <tromey@adacore.com>
46 * win32-low.c (current_process_handle, current_process_id)
47 (main_thread_id, last_sig, current_event, siginfo_er): Move to
50 2020-04-08 Tom Tromey <tromey@adacore.com>
52 * win32-low.c (get_image_name): Remove.
53 (handle_load_dll): Update.
55 2020-04-08 Tom Tromey <tromey@adacore.com>
57 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
58 No longer static. Change parameters.
59 (child_add_thread, child_fetch_inferior_registers)
60 (child_store_inferior_registers, win32_resume)
61 (win32_get_tib_address): Update.
63 2020-04-08 Tom Tromey <tromey@adacore.com>
65 * win32-low.h (struct win32_target_ops): Use qualified names where
67 * win32-i386-low.c: Add "using namespace".
68 * win32-low.c: Add "using namespace".
69 * win32-arm-low.c: Add "using namespace".
71 2020-04-08 Tom Tromey <tromey@adacore.com>
73 * win32-low.c (delete_thread_info): Don't call CloseHandle.
75 2020-04-08 Tom Tromey <tromey@adacore.com>
77 * win32-low.c (win32_require_context, suspend_one_thread): Use
78 windows_thread_info::suspend.
79 (continue_one_thread): Use windows_thread_info::resume.
80 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
82 2020-04-08 Tom Tromey <tromey@adacore.com>
84 * win32-i386-low.c (update_debug_registers)
85 (i386_prepare_to_resume, i386_thread_added): Update.
87 2020-04-08 Tom Tromey <tromey@adacore.com>
89 * win32-low.c (child_add_thread): Use new.
90 (delete_thread_info): Use delete.
92 2020-04-08 Tom Tromey <tromey@adacore.com>
94 * win32-low.h (struct windows_thread_info): Remove.
96 2020-04-08 Tom Tromey <tromey@adacore.com>
98 * win32-low.h (struct windows_thread_info): Rename from
99 win32_thread_info. Remove typedef.
100 (struct win32_target_ops, win32_require_context): Update.
101 * win32-low.c (win32_get_thread_context)
102 (win32_set_thread_context, win32_prepare_to_resume)
103 (win32_require_context, thread_rec, child_add_thread)
104 (delete_thread_info, continue_one_thread)
105 (child_fetch_inferior_registers, child_store_inferior_registers)
106 (win32_resume, suspend_one_thread, win32_get_tib_address):
108 * win32-i386-low.c (update_debug_registers)
109 (win32_get_current_dr, i386_get_thread_context)
110 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
111 (i386_fetch_inferior_register, i386_store_inferior_register):
113 * win32-arm-low.c (arm_get_thread_context)
114 (arm_fetch_inferior_register, arm_store_inferior_register):
117 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
119 * linux-low.h (struct linux_target_ops): Remove.
120 (the_low_target): Remove.
121 * linux-x86-low.cc (the_low_target): Remove.
122 * linux-aarch64-low.cc (the_low_target): Ditto.
123 * linux-arm-low.cc (the_low_target): Ditto.
124 * linux-bfin-low.cc (the_low_target): Ditto.
125 * linux-cris-low.cc (the_low_target): Ditto.
126 * linux-crisv32-low.cc (the_low_target): Ditto.
127 * linux-ia64-low.cc (the_low_target): Ditto.
128 * linux-m32r-low.cc (the_low_target): Ditto.
129 * linux-m68k-low.cc (the_low_target): Ditto.
130 * linux-mips-low.cc (the_low_target): Ditto.
131 * linux-nios2-low.cc (the_low_target): Ditto.
132 * linux-ppc-low.cc (the_low_target): Ditto.
133 * linux-riscv-low.cc (the_low_target): Ditto.
134 * linux-s390-low.cc (the_low_target): Ditto.
135 * linux-sh-low.cc (the_low_target): Ditto.
136 * linux-sparc-low.cc (the_low_target): Ditto.
137 * linux-tic6x-low.cc (the_low_target): Ditto.
138 * linux-tile-low.cc (the_low_target): Ditto.
139 * linux-xtensa-low.cc (the_low_target): Ditto.
141 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
143 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
144 linux target define the op by overriding the declaration in
145 process_stratum_target.
147 * linux-low.h (struct linux_target_ops): Remove the op.
148 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
149 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
150 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
151 (x86_get_ipa_tdesc_idx): Turn into...
152 (x86_target::get_ipa_tdesc_idx): ...this.
153 (the_low_target): Remove the op field.
154 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
155 (ppc_get_ipa_tdesc_idx): Turn into...
156 (ppc_target::get_ipa_tdesc_idx): ...this.
157 (the_low_target): Remove the op field.
158 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
159 (s390_get_ipa_tdesc_idx): Turn into...
160 (s390_target::get_ipa_tdesc_idx): ...this.
161 (the_low_target): Remove the op field.
163 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
165 Turn the 'get_syscall_trapinfo' linux target op into a method
166 of process_stratum_target.
168 * linux-low.h (struct linux_target_ops): Remove the op.
169 (class linux_process_target) <get_syscall_trapinfo>
170 <gdb_catch_this_syscall>
171 <low_supports_catch_syscall>
172 <low_get_syscall_trapinfo>: Declare.
173 * linux-low.cc (get_syscall_trapinfo): Turn into...
174 (linux_process_target::get_syscall_trapinfo): ...this.
175 (linux_process_target::low_get_syscall_trapinfo): Define.
176 (gdb_catch_this_syscall_p): Turn into...
177 (linux_process_target::gdb_catch_this_syscall): ...this.
178 (linux_process_target::low_supports_catch_syscall): Define.
180 Update the callers below.
182 (linux_process_target::wait_1)
183 (linux_process_target::supports_catch_syscall)
185 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
186 <low_get_syscall_trapinfo>: Declare.
187 (x86_target::low_supports_catch_syscall): Define.
188 (x86_get_syscall_trapinfo): Turn into...
189 (x86_target::low_get_syscall_trapinfo): ...this.
190 (the_low_target): Remove the op field.
191 * linux-aarch64-low.cc (class aarch64_target)
192 <low_supports_catch_syscall>
193 <low_get_syscall_trapinfo>: Declare.
194 (aarch64_target::low_supports_catch_syscall): Define.
195 (aarch64_get_syscall_trapinfo): Turn into...
196 (aarch64_target::low_get_syscall_trapinfo): ...this.
197 (the_low_target): Remove the op field.
198 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
199 <low_get_syscall_trapinfo>: Declare.
200 (arm_target::low_supports_catch_syscall): Define.
201 (arm_get_syscall_trapinfo): Turn into...
202 (arm_target::low_get_syscall_trapinfo): ...this.
203 (the_low_target): Remove the op field.
204 * linux-ppc-low.cc (the_low_target): Remove the op field.
205 * linux-s390-low.cc (the_low_target): Remove the op field.
207 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
209 Remove the 'supports_hardware_single_step' linux target op and
210 override the process_stratum_target's op definition in
211 linux_process_target to return true.
213 * linux-low.h (struct linux_target_ops): Remove the op.
214 (class linux_process_target) <finish_step_over>
215 <maybe_hw_step>: Declare.
216 * linux-low.cc (can_hardware_single_step): Remove.
217 (maybe_hw_step): Turn into...
218 (linux_process_target::maybe_hw_step): ...this.
219 (finish_step_over): Turn into...
220 (linux_process_target::finish_step_over): ...this.
221 (linux_process_target::supports_hardware_single_step): Update
224 Update the callers below.
226 (linux_process_target::single_step)
227 (linux_process_target::resume_one_lwp_throw)
229 * linux-arm-low.cc (class arm_target)
230 <supports_hardware_single_step>: Declare.
231 (arm_supports_hardware_single_step): Turn into...
232 (arm_target::supports_hardware_single_step): ...this.
233 (the_low_target): Remove the op field.
234 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
235 (the_low_target): Remove the op field.
236 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
238 (the_low_target): Remove the op field.
239 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
240 (the_low_target): Remove the op field.
241 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
242 (the_low_target): Remove the op field.
243 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
244 (the_low_target): Remove the op field.
245 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
246 (the_low_target): Remove the op field.
247 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
248 (the_low_target): Remove the op field.
249 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
250 (the_low_target): Remove the op field.
251 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
252 (the_low_target): Remove the op field.
253 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
254 (the_low_target): Remove the op field.
255 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
256 (the_low_target): Remove the op field.
257 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
259 (the_low_target): Remove the op field.
261 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
263 Turn the 'supports_range_stepping' linux target op into a method
264 of linux_process_target.
266 * linux-low.h (struct linux_target_ops): Remove the op.
267 (class linux_process_target) <low_supports_range_stepping>: Declare.
268 * linux-low.cc (linux_process_target::low_supports_range_stepping):
270 (linux_process_target::supports_range_stepping): Update the call
272 * linux-x86-low.cc (class x86_target)
273 <low_supports_range_stepping>: Declare.
274 (x86_supports_range_stepping): Turn into...
275 (x86_target::low_supports_range_stepping): ...this.
276 (the_low_target): Remove the op field.
277 * linux-aarch64-low.cc (class aarch64_target)
278 <low_supports_range_stepping>: Declare.
279 (aarch64_supports_range_stepping): Turn into...
280 (aarch64_target::low_supports_range_stepping): ...this.
281 (the_low_target): Remove the op field.
282 * linux-arm-low.cc (the_low_target): Remove the op field.
283 * linux-bfin-low.cc (the_low_target): Ditto.
284 * linux-crisv32-low.cc (the_low_target): Ditto.
285 * linux-m32r-low.cc (the_low_target): Ditto.
286 * linux-m68k-low.cc (the_low_target): Ditto.
287 * linux-ppc-low.cc (the_low_target): Ditto.
288 * linux-s390-low.cc (the_low_target): Ditto.
289 * linux-sh-low.cc (the_low_target): Ditto.
290 * linux-tic6x-low.cc (the_low_target): Ditto.
291 * linux-tile-low.cc (the_low_target): Ditto.
292 * linux-xtensa-low.cc (the_low_target): Ditto.
294 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
296 Remove the 'emit_ops' linux target ops and let the concrete
297 linux target define the op by overriding the declaration of
298 process_stratum_target.
300 * linux-low.h (struct linux_target_ops): Remove the op.
301 (class linux_process_target) <emit_ops>: Remove.
302 * linux-low.cc (linux_process_target::emit_ops): Remove.
303 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
304 (x86_emit_ops): Turn into...
305 (x86_target::emit_ops): ...this.
306 (the_low_target): Remove the op field.
307 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
308 (aarch64_emit_ops): Turn into...
309 (aarch64_target::emit_ops): ...this.
310 (the_low_target): Remove the op field.
311 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
312 (ppc_emit_ops): Turn into...
313 (ppc_target::emit_ops): ...this.
314 (the_low_target): Remove the op field.
315 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
316 (s390_emit_ops): Turn into...
317 (s390_target::emit_ops): ...this.
318 (the_low_target): Remove the op field.
319 * linux-arm-low.cc (the_low_target): Remove the op field.
320 * linux-bfin-low.cc (the_low_target): Ditto.
321 * linux-crisv32-low.cc (the_low_target): Ditto.
322 * linux-m32r-low.cc (the_low_target): Ditto.
323 * linux-m68k-low.cc (the_low_target): Ditto.
324 * linux-sh-low.cc (the_low_target): Ditto.
325 * linux-tic6x-low.cc (the_low_target): Ditto.
326 * linux-tile-low.cc (the_low_target): Ditto.
327 * linux-xtensa-low.cc (the_low_target): Ditto.
329 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
331 Remove the 'install_fast_tracepoint_jump_pad' and
332 'get_min_fast_tracepoint_insn_len' linux target ops to let the
333 concrete linux target define the ops by overriding the declarations
334 of process_stratum_target.
336 * linux-low.h (struct linux_target_ops): Remove the ops.
337 (class linux_process_target) <supports_fast_tracepoints>
338 <install_fast_tracepoint_jump_pad>
339 <get_min_fast_tracepoint_insn_len>: Remove.
340 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
341 (linux_process_target::install_fast_tracepoint_jump_pad)
342 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
343 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
344 <install_fast_tracepoint_jump_pad>
345 <get_min_fast_tracepoint_insn_len>: Declare.
346 (x86_target::supports_fast_tracepoints): Define.
347 (x86_install_fast_tracepoint_jump_pad): Turn into...
348 (x86_target::install_fast_tracepoint_jump_pad): ...this.
349 (x86_get_min_fast_tracepoint_insn_len): Turn into...
350 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
351 (the_low_target): Remove the op fields.
352 * linux-aarch64-low.cc (class aarch64_target)
353 <supports_fast_tracepoints>
354 <install_fast_tracepoint_jump_pad>
355 <get_min_fast_tracepoint_insn_len>: Declare.
356 (aarch64_target::supports_fast_tracepoints): Define.
357 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
358 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
359 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
360 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
361 (the_low_target): Remove the op fields.
362 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
363 <install_fast_tracepoint_jump_pad>
364 <get_min_fast_tracepoint_insn_len>: Declare.
365 (ppc_target::supports_fast_tracepoints): Define.
366 (ppc_install_fast_tracepoint_jump_pad): Turn into...
367 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
368 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
369 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
370 (the_low_target): Remove the op fields.
371 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
372 <install_fast_tracepoint_jump_pad>
373 <get_min_fast_tracepoint_insn_len>: Declare.
374 (s390_target::supports_fast_tracepoints): Define.
375 (s390_install_fast_tracepoint_jump_pad): Turn into...
376 (s390_target::install_fast_tracepoint_jump_pad): ...this.
377 (s390_get_min_fast_tracepoint_insn_len): Turn into...
378 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
379 (the_low_target): Remove the op fields.
380 * linux-arm-low.cc (the_low_target): Remove the op fields.
381 * linux-bfin-low.cc (the_low_target): Ditto.
382 * linux-crisv32-low.cc (the_low_target): Ditto.
383 * linux-m32r-low.cc (the_low_target): Ditto.
384 * linux-m68k-low.cc (the_low_target): Ditto.
385 * linux-sh-low.cc (the_low_target): Ditto.
386 * linux-tic6x-low.cc (the_low_target): Ditto.
387 * linux-tile-low.cc (the_low_target): Ditto.
388 * linux-xtensa-low.cc (the_low_target): Ditto.
390 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
392 Turn the 'get_thread_area' linux target op into a method of
393 process_stratum_target.
395 * linux-low.h (struct linux_target_ops): Remove the op.
396 (class linux_process_target) <stuck_in_jump_pad>
397 <linux_fast_tracepoint_collecting>
398 <low_get_thread_area>: Declare.
399 * linux-low.cc (supports_fast_tracepoints): Remove.
400 (linux_fast_tracepoint_collecting): Turn into...
401 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
402 (linux_process_target::low_get_thread_area): Define.
403 (stuck_in_jump_pad_callback): Turn into...
404 (linux_process_target::stuck_in_jump_pad): ...this.
406 Update the caller below.
408 (linux_process_target::stabilize_threads)
410 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
412 (x86_get_thread_area): Turn into...
413 (x86_target::low_get_thread_area): ...this.
414 (the_low_target): Remove the op field.
415 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
417 (aarch64_get_thread_area): Turn into...
418 (aarch64_target::low_get_thread_area): ...this.
419 (the_low_target): Remove the op field.
420 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
422 (ppc_get_thread_area): Turn into...
423 (ppc_target::low_get_thread_area): ...this.
424 (the_low_target): Remove the op field.
425 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
427 (s390_get_thread_area): Turn into...
428 (s390_target::low_get_thread_area): ...this.
429 (the_low_target): Remove the op field.
430 * linux-arm-low.cc (the_low_target): Remove the op field.
431 * linux-bfin-low.cc (the_low_target): Ditto.
432 * linux-crisv32-low.cc (the_low_target): Ditto.
433 * linux-m32r-low.cc (the_low_target): Ditto.
434 * linux-m68k-low.cc (the_low_target): Ditto.
435 * linux-sh-low.cc (the_low_target): Ditto.
436 * linux-tic6x-low.cc (the_low_target): Ditto.
437 * linux-tile-low.cc (the_low_target): Ditto.
438 * linux-xtensa-low.cc (the_low_target): Ditto.
440 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
442 Remote the 'supports_tracepoints' linux target op and let the
443 concrete linux target define it by overriding the op declared in
444 process_stratum_target.
446 * linux-low.h (struct linux_target_ops): Remove the op.
447 (class linux_process_target) <supports_tracepoints>: Remove.
448 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
449 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
451 (x86_supports_tracepoints): Turn into...
452 (x86_target::supports_tracepoints): ...this.
453 (the_low_target): Remove the op field.
454 * linux-aarch64-low.cc (class aarch64_target)
455 <supports_tracepoints>: Declare.
456 (aarch64_supports_tracepoints): Turn into...
457 (aarch64_target::supports_tracepoints): ...this.
458 (the_low_target): Remove the op field.
459 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
461 (ppc_supports_tracepoints): Turn into...
462 (ppc_target::supports_tracepoints): ...this.
463 (the_low_target): Remove the op field.
464 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
466 (s390_supports_tracepoints): Turn into...
467 (s390_target::supports_tracepoints): ...this.
468 (the_low_target): Remove the op field.
469 * linux-arm-low.cc (the_low_target): Remove the op field.
470 * linux-bfin-low.cc (the_low_target): Ditto.
471 * linux-crisv32-low.cc (the_low_target): Ditto.
472 * linux-m32r-low.cc (the_low_target): Ditto.
473 * linux-m68k-low.cc (the_low_target): Ditto.
474 * linux-sh-low.cc (the_low_target): Ditto.
475 * linux-tic6x-low.cc (the_low_target): Ditto.
476 * linux-tile-low.cc (the_low_target): Ditto.
477 * linux-xtensa-low.cc (the_low_target): Ditto.
479 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
481 Remove the 'process_qsupported' linux target op and let a concrete
482 linux target define the op by overriding the op declaration in
483 process_stratum_target.
485 * linux-low.h (struct linux_target_ops): Remove the op.
486 (class linux_process_target) <process_qsupported>: Remove.
487 * linux-low.cc (linux_process_target::process_qsupported): Remove.
488 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
489 (x86_linux_process_qsupported): Turn into...
490 (x86_target::process_qsupported): ...this.
491 (the_low_target): Remove the op field.
492 * linux-aarch64-low.cc (the_low_target): Remove the op
494 * linux-arm-low.cc (the_low_target): Ditto.
495 * linux-bfin-low.cc (the_low_target): Ditto.
496 * linux-crisv32-low.cc (the_low_target): Ditto.
497 * linux-m32r-low.cc (the_low_target): Ditto.
498 * linux-m68k-low.cc (the_low_target): Ditto.
499 * linux-ppc-low.cc (the_low_target): Ditto.
500 * linux-s390-low.cc (the_low_target): Ditto.
501 * linux-sh-low.cc (the_low_target): Ditto.
502 * linux-tic6x-low.cc (the_low_target): Ditto.
503 * linux-tile-low.cc (the_low_target): Ditto.
504 * linux-xtensa-low.cc (the_low_target): Ditto.
506 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
508 Turn the 'prepare_to_resume' linux target op into a method of
509 linux_process_target.
511 * linux-low.h (struct linux_target_ops): Remove the op.
512 (class linux_process_target) <low_prepare_to_resume>: Declare.
513 * linux-low.cc (linux_process_target::low_prepare_to_resume):
516 Update the callers below:
518 (linux_process_target::resume_one_lwp_throw)
519 (linux_process_target::low_prepare_to_resume)
521 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
523 (x86_target::low_prepare_to_resume): Define.
524 (the_low_target): Remove the op field.
525 * linux-aarch64-low.cc (class aarch64_target)
526 <low_prepare_to_resume>: Declare.
527 (aarch64_target::low_prepare_to_resume): Define.
528 (the_low_target): Remove the op field.
529 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
531 (arm_prepare_to_resume): Turn into...
532 (arm_target::low_prepare_to_resume): ...this.
533 (the_low_target): Remove the op field.
534 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
536 (mips_linux_prepare_to_resume): Turn into...
537 (mips_target::low_prepare_to_resume): ...this.
538 (the_low_target): Remove the op field.
539 * linux-bfin-low.cc (the_low_target): Remove the op field.
540 * linux-crisv32-low.cc (the_low_target): Ditto.
541 * linux-m32r-low.cc (the_low_target): Ditto.
542 * linux-m68k-low.cc (the_low_target): Ditto.
543 * linux-ppc-low.cc (the_low_target): Ditto.
544 * linux-s390-low.cc (the_low_target): Ditto.
545 * linux-sh-low.cc (the_low_target): Ditto.
546 * linux-tic6x-low.cc (the_low_target): Ditto.
547 * linux-tile-low.cc (the_low_target): Ditto.
548 * linux-xtensa-low.cc (the_low_target): Ditto.
550 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
552 Turn the 'new_process', 'delete_process', 'new_thread',
553 'delete_thread', and 'new_fork' linux target ops into methods
554 of linux_process_target.
556 * linux-low.h (struct linux_target_ops): Remove the ops.
557 (class linux_process_target) <add_linux_process>
562 <check_zombie_leaders>
568 <low_new_fork>: Declare.
569 * linux-low.cc (delete_lwp): Turn into...
570 (linux_process_target::delete_lwp): ...this.
571 (linux_process_target::low_delete_thread): Define.
572 (linux_add_process): Turn into...
573 (linux_process_target::add_linux_process): ...this.
574 (linux_process_target::low_new_process): Define.
575 (linux_process_target::low_delete_process): Define.
576 (linux_process_target::low_new_fork): Define.
577 (add_lwp): Turn into...
578 (linux_process_target::add_lwp): ...this.
579 (linux_process_target::low_new_thread): Define.
580 (linux_attach_lwp): Turn into...
581 (linux_process_target::attach_lwp): ...this.
582 (linux_detach_one_lwp): Turn into...
583 (linux_process_target::detach_one_lwp): ...this.
584 (linux_detach_lwp_callback): Remove and inline...
585 (linux_process_target::detach): ...here.
586 (check_zombie_leaders): Turn into...
587 (linux_process_target::check_zombie_leaders): ...this.
588 (filter_exit_event): Turn into...
589 (linux_process_target::filter_exit_event): ...this.
591 Update the callers below.
593 (linux_process_target::handle_extended_wait)
594 (linux_process_target::create_inferior)
595 (attach_proc_task_lwp_callback)
596 (linux_process_target::attach)
597 (linux_process_target::detach)
598 (linux_process_target::mourn)
599 * thread-db.cc (attach_thread)
601 * linux-x86-low.cc (class x86_target) <low_new_process>
605 <low_new_fork>: Declare.
606 (x86_linux_new_process): Turn into...
607 (x86_target::low_new_process): ...this.
608 (x86_linux_delete_process): Turn into...
609 (x86_target::low_delete_process): ...this.
610 (x86_target::low_new_thread): Define.
611 (x86_target::low_delete_thread): Define.
612 (x86_linux_new_fork): Turn into...
613 (x86_target::low_new_fork): ...this.
614 (the_low_target): Remove the op fields.
615 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
619 <low_new_fork>: Declare.
620 (aarch64_linux_new_process): Turn into...
621 (aarch64_target::low_new_process): ...this.
622 (aarch64_linux_delete_process): Turn into...
623 (aarch64_target::low_delete_process): ...this.
624 (aarch64_target::low_new_thread): Define.
625 (aarch64_target::low_delete_thread): Define.
626 (aarch64_linux_new_fork): Turn into...
627 (aarch64_target::low_new_fork): ...this.
628 (the_low_target): Remove the op fields.
629 * linux-arm-low.cc (class arm_target) <low_new_process>
633 <low_new_fork>: Declare.
634 (arm_new_process): Turn into...
635 (arm_target::low_new_process): ...this.
636 (arm_delete_process): Turn into...
637 (arm_target::low_delete_process): ...this.
638 (arm_new_thread): Turn into...
639 (arm_target::low_new_thread): ...this.
640 (arm_delete_thread): Turn into...
641 (arm_target::low_delete_thread): ...this.
642 (arm_new_fork): Turn into...
643 (arm_target::low_new_fork): ...this.
644 (the_low_target): Remove the op fields.
645 * linux-mips-low.cc (class mips_target) <low_new_process>
649 <low_new_fork>: Declare.
650 (mips_linux_new_process): Turn into...
651 (mips_target::low_new_process): ...this.
652 (mips_linux_delete_process): Turn into...
653 (mips_target::low_delete_process): ...this.
654 (mips_linux_new_thread): Turn into...
655 (mips_target::low_new_thread): ...this.
656 (mips_linux_delete_thread): Turn into...
657 (mips_target::low_delete_thread): ...this.
658 (mips_linux_new_fork): Turn into...
659 (mips_target::low_new_fork): ...this.
660 (the_low_target): Remove the op fields.
661 * linux-bfin-low.cc (the_low_target): Remove the op fields.
662 * linux-crisv32-low.cc (the_low_target): Ditto.
663 * linux-m32r-low.cc (the_low_target): Ditto.
664 * linux-m68k-low.cc (the_low_target): Ditto.
665 * linux-ppc-low.cc (the_low_target): Ditto.
666 * linux-s390-low.cc (the_low_target): Ditto.
667 * linux-sh-low.cc (the_low_target): Ditto.
668 * linux-tic6x-low.cc (the_low_target): Ditto.
669 * linux-tile-low.cc (the_low_target): Ditto.
670 * linux-xtensa-low.cc (the_low_target): Ditto.
672 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
674 Turn the 'siginfo_fixup' linux target op into a method of
675 linux_process_target.
677 * linux-low.h (struct linux_target_ops): Remove the op.
678 (class linux_process_target) <siginfo_fixup>
679 <low_siginfo_fixup>: Declare.
680 * linux-low.cc (siginfo_fixup): Turn into...
681 (linux_process_target::siginfo_fixup): ...this.
682 (linux_process_target::low_siginfo_fixup): Define.
683 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
684 (x86_siginfo_fixup): Turn into...
685 (x86_target::low_siginfo_fixup): ...this.
686 (the_low_target): Remove the op field.
687 * linux-aarch64-low.cc (class aarch64_target):
688 <low_siginfo_fixup>: Declare.
689 (aarch64_linux_siginfo_fixup): Turn into...
690 (aarch64_target::low_siginfo_fixup): ...this.
691 (the_low_target): Remove the op field.
692 * linux-arm-low.cc (the_low_target): Remove the op field.
693 * linux-bfin-low.cc (the_low_target): Ditto.
694 * linux-crisv32-low.cc (the_low_target): Ditto.
695 * linux-m32r-low.cc (the_low_target): Ditto.
696 * linux-m68k-low.cc (the_low_target): Ditto.
697 * linux-mips-low.cc (the_low_target): Ditto.
698 * linux-ppc-low.cc (the_low_target): Ditto.
699 * linux-s390-low.cc (the_low_target): Ditto.
700 * linux-sh-low.cc (the_low_target): Ditto.
701 * linux-tic6x-low.cc (the_low_target): Ditto.
702 * linux-tile-low.cc (the_low_target): Ditto.
703 * linux-xtensa-low.cc (the_low_target): Ditto.
705 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
707 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
708 linux target ops into methods of linux_process_target.
710 * linux-low.h (struct linux_target_ops): Remove the ops.
711 (class linux_process_target) <low_collect_ptrace_register>
712 <low_store_ptrace_register>: Declare.
713 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
714 (linux_process_target::low_supply_ptrace_register): Define.
716 Update the callers below.
718 (linux_process_target::fetch_register)
719 (linux_process_target::store_register)
721 * linux-x86-low.cc (the_low_target): Remove the op fields.
722 * linux-aarch64-low.cc (the_low_target): Ditto.
723 * linux-arm-low.cc (the_low_target): Ditto.
724 * linux-bfin-low.cc (the_low_target): Ditto.
725 * linux-crisv32-low.cc (the_low_target): Ditto.
726 * linux-m32r-low.cc (the_low_target): Ditto.
727 * linux-m68k-low.cc (the_low_target): Ditto.
728 * linux-sh-low.cc (the_low_target): Ditto.
729 * linux-sparc-low.cc (the_low_target): Ditto.
730 * linux-tic6x-low.cc (the_low_target): Ditto.
731 * linux-tile-low.cc (the_low_target): Ditto.
732 * linux-xtensa-low.cc (the_low_target): Ditto.
733 * linux-mips-low.cc (class mips_target)
734 <low_collect_ptrace_register>
735 <low_supply_ptrace_register>: Declare.
736 (mips_collect_ptrace_register): Turn into ...
737 (mips_target::low_collect_ptrace_register): ...this.
738 (mips_supply_ptrace_register): Turn into...
739 (mips_target::low_supply_ptrace_register): ...this.
740 (the_low_target): Remove the op fields.
741 * linux-ppc-low.cc (class ppc_target)
742 <low_collect_ptrace_register>
743 <low_supply_ptrace_register>: Declare.
744 (ppc_collect_ptrace_register): Turn into ...
745 (ppc_target::low_collect_ptrace_register): ...this.
746 (ppc_supply_ptrace_register): Turn into ...
747 (ppc_target::low_supply_ptrace_register): ...this.
748 (ppc_fill_gregset): Update for the calls to
749 low_collect_ptrace_register.
750 (the_low_target): Remove the op fields.
751 * linux-s390-low.cc (class s390_target)
752 <low_collect_ptrace_register>
753 <low_supply_ptrace_register>: Declare.
754 (s390_collect_ptrace_register): Turn into ...
755 (s390_target::low_collect_ptrace_register): ...this.
756 (s390_supply_ptrace_register): Turn into ...
757 (s390_target::low_supply_ptrace_register): ...this.
758 (s390_fill_gregset): Update for the calls to
759 low_collect_ptrace_register.
760 (the_low_target): Remove the op fields.
762 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
764 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
765 target ops into methods of linux_process_target.
767 * linux-low.h (struct linux_target_ops): Remove the ops.
768 (class linux_process_target) <check_stopped_by_watchpoint>
769 <low_stopped_by_watchpoint>
770 <low_stopped_data_address>: Declare.
771 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
772 (linux_process_target::check_stopped_by_watchpoint): ...this.
773 (linux_process_target::low_stopped_by_watchpoint): Define.
774 (linux_process_target::low_stopped_data_address): Define.
775 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
776 <low_stopped_data_address>: Declare.
777 (x86_stopped_by_watchpoint): Turn into...
778 (x86_target::low_stopped_by_watchpoint): ...this.
779 (x86_stopped_data_address): Turn into...
780 (x86_target::low_stopped_data_address): ...this.
781 (the_low_target): Remove the op fields.
782 * linux-aarch64-low.cc (class aarch64_target)
783 <low_stopped_by_watchpoint>
784 <low_stopped_data_address>: Declare.
785 (aarch64_stopped_by_watchpoint): Turn into...
786 (aarch64_target::low_stopped_by_watchpoint): ...this.
787 (aarch64_stopped_data_address): Turn into...
788 (aarch64_target::low_stopped_data_address): ...this.
789 (the_low_target): Remove the op fields.
790 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
791 <low_stopped_data_address>: Declare.
792 (arm_stopped_by_watchpoint): Turn into...
793 (arm_target::low_stopped_by_watchpoint): ...this.
794 (arm_stopped_data_address): Turn into...
795 (arm_target::low_stopped_data_address): ...this.
796 (the_low_target): Remove the op fields.
797 * linux-crisv32-low.cc (class crisv32_target)
798 <low_stopped_by_watchpoint>
799 <low_stopped_data_address>: Declare.
800 (cris_stopped_by_watchpoint): Turn into...
801 (crisv32_target::low_stopped_by_watchpoint): ...this.
802 (cris_stopped_data_address): Turn into...
803 (crisv32_target::low_stopped_data_address): ...this.
804 (the_low_target): Remove the op fields.
805 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
806 <low_stopped_data_address>: Declare.
807 (mips_stopped_by_watchpoint): Turn into...
808 (mips_target::low_stopped_by_watchpoint): ...this.
809 (mips_stopped_data_address): Turn into...
810 (mips_target::low_stopped_data_address): ...this.
811 (the_low_target): Remove the op fields.
812 * linux-bfin-low.cc (the_low_target): Remove the op fields.
813 * linux-m32r-low.cc (the_low_target): Ditto.
814 * linux-m68k-low.cc (the_low_target): Ditto.
815 * linux-ppc-low.cc (the_low_target): Ditto.
816 * linux-s390-low.cc (the_low_target): Ditto.
817 * linux-sh-low.cc (the_low_target): Ditto.
818 * linux-sparc-low.cc (the_low_target): Ditto.
819 * linux-tic6x-low.cc (the_low_target): Ditto.
820 * linux-tile-low.cc (the_low_target): Ditto.
821 * linux-xtensa-low.cc (the_low_target): Ditto.
823 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
825 Turn the 'insert_point' and 'remove_point' linux target ops into
826 methods of linux_process_target.
828 * linux-low.h (struct linux_target_ops): Remove the ops.
829 (class linux_process_target) <low_insert_point>
830 <low_remove_point>: Declare.
831 * linux-low.cc (linux_process_target::low_insert_point)
832 (linux_process_target::low_remove_point): Define.
833 (linux_process_target::insert_point)
834 (linux_process_target::remove_point): Update for calls to
835 low_insert_point and low_remove_point.
836 * linux-x86-low.cc (class x86_target) <low_insert_point>
837 <low_remove_point>: Declare.
838 (x86_insert_point): Turn into...
839 (x86_target::low_insert_point): ...this.
840 (x86_remove_point): Turn into...
841 (x86_target::low_remove_point): ...this.
842 (the_low_target): Remove the op fields.
843 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
844 <low_remove_point>: Declare.
845 (aarch64_insert_point): Turn into...
846 (aarch64_target::low_insert_point): ...this.
847 (aarch64_remove_point): Turn into...
848 (aarch64_target::low_remove_point): ...this.
849 (the_low_target): Remove the op fields.
850 * linux-arm-low.cc (class arm_target) <low_insert_point>
851 <low_remove_point>: Declare.
852 (arm_insert_point): Turn into...
853 (arm_target::low_insert_point): ...this.
854 (arm_remove_point): Turn into...
855 (arm_target::low_remove_point): ...this.
856 (the_low_target): Remove the op fields.
857 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
858 <low_remove_point>: Declare.
859 (crisv32_insert_point): Turn into...
860 (crisv32_target::low_insert_point): ...this.
861 (crisv32_remove_point): Turn into...
862 (crisv32_target::low_remove_point): ...this.
863 (the_low_target): Remove the op fields.
864 * linux-mips-low.cc (class mips_target) <low_insert_point>
865 <low_remove_point>: Declare.
866 (mips_insert_point): Turn into...
867 (mips_target::low_insert_point): ...this.
868 (mips_remove_point): Turn into...
869 (mips_target::low_remove_point): ...this.
870 (the_low_target): Remove the op fields.
871 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
872 <low_remove_point>: Declare.
873 (ppc_insert_point): Turn into...
874 (ppc_target::low_insert_point): ...this.
875 (ppc_remove_point): Turn into...
876 (ppc_target::low_remove_point): ...this.
877 (the_low_target): Remove the op fields.
878 * linux-bfin-low.cc (the_low_target): Remove the op fields.
879 * linux-m32r-low.cc (the_low_target): Ditto.
880 * linux-m68k-low.cc (the_low_target): Ditto.
881 * linux-s390-low.cc (the_low_target): Ditto.
882 * linux-sh-low.cc (the_low_target): Ditto.
883 * linux-sparc-low.cc (the_low_target): Ditto.
884 * linux-tic6x-low.cc (the_low_target): Ditto.
885 * linux-tile-low.cc (the_low_target): Ditto.
886 * linux-xtensa-low.cc (the_low_target): Ditto.
888 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
890 Remove the 'supports_z_point_type' linux target op and let the
891 concrete linux target define it by overriding the op declared in
892 process_stratum_target.
894 * linux-low.cc (linux_process_target::supports_z_point_type):
896 * linux-low.h (struct linux_target_ops): Remove the op.
897 (class linux_process_target) <supports_z_point_type>: Remove.
898 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
900 (x86_supports_z_point_type): Turn into...
901 (x86_target::supports_z_point_type): ...this.
902 (the_low_target): Remove the op field.
903 * linux-aarch64-low.cc (class aarch64_target)
904 <supports_z_point_type>: Declare.
905 (aarch64_supports_z_point_type): Turn into...
906 (aarch64_target::supports_z_point_type): ...this.
907 (the_low_target): Remove the op field.
908 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
910 (arm_supports_z_point_type): Turn into...
911 (arm_target::supports_z_point_type): ...this.
912 (the_low_target): Remove the op field.
913 * linux-crisv32-low.cc (class crisv32_target)
914 <supports_z_point_type>: Declare.
915 (cris_supports_z_point_type): Turn into...
916 (crisv32_target::supports_z_point_type): ...this.
917 (the_low_target): Remove the op field.
918 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
920 (mips_supports_z_point_type): Turn into...
921 (mips_target::supports_z_point_type): ...this.
922 (the_low_target): Remove the op field.
923 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
925 (ppc_supports_z_point_type): Turn into...
926 (ppc_target::supports_z_point_type): ...this.
927 (the_low_target): Remove the op field.
928 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
930 (s390_supports_z_point_type): Turn into...
931 (s390_target::supports_z_point_type): ...this.
932 (the_low_target): Remove the op field.
933 * linux-bfin-low.cc (the_low_target): Remove the op field.
934 * linux-m32r-low.cc (the_low_target): Ditto.
935 * linux-m68k-low.cc (the_low_target): Ditto.
936 * linux-sh-low.cc (the_low_target): Ditto.
937 * linux-sparc-low.cc (the_low_target): Ditto.
938 * linux-tic6x-low.cc (the_low_target): Ditto.
939 * linux-tile-low.cc (the_low_target): Ditto.
940 * linux-xtensa-low.cc (the_low_target): Ditto.
942 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
944 Turn the 'breakpoint_at' linux target op into a method of
945 linux_process_target.
947 * linux-low.h (struct linux_target_ops): Remove the op.
948 (class linux_process_target) <low_breakpoint_at>: Declare.
950 Update the callers below:
952 * linux-low.cc (linux_process_target::save_stop_reason)
953 (linux_process_target::thread_still_has_status_pending)
954 (linux_process_target::wait_1)
956 * linux-x86-low.cc (class x86_target)
957 <low_breakpoint_at>: Declare.
958 (x86_breakpoint_at): Turn into...
959 (x86_target::low_breakpoint_at): ...this.
960 (the_low_target): Remove the op field.
961 * linux-aarch64-low.cc (class aarch64_target)
962 <low_breakpoint_at>: Declare.
963 (aarch64_breakpoint_at): Turn into...
964 (aarch64_target::low_breakpoint_at): ...this.
965 (the_low_target): Remove the op field.
966 * linux-arm-low.cc (class arm_target)
967 <low_breakpoint_at>: Declare.
968 (arm_target::low_breakpoint_at): Define.
969 (the_low_target): Remove the op field.
970 * linux-bfin-low.cc (class bfin_target)
971 <low_breakpoint_at>: Declare.
972 (bfin_breakpoint_at): Turn into...
973 (bfin_target::low_breakpoint_at): ...this.
974 (the_low_target): Remove the op field.
975 * linux-cris-low.cc (class cris_target)
976 <low_breakpoint_at>: Declare.
977 (cris_breakpoint_at): Turn into...
978 (cris_target::low_breakpoint_at): ...this.
979 (the_low_target): Remove the op field.
980 * linux-crisv32-low.cc (class crisv32_target)
981 <low_breakpoint_at>: Declare.
982 (crisv32_breakpoint_at): Turn into...
983 (crisv32_target::low_breakpoint_at): ...this.
984 (the_low_target): Remove the op field.
985 * linux-ia64-low.cc (class ia64_target)
986 <low_breakpoint_at>: Declare.
987 (ia64_target::low_breakpoint_at): Define.
988 * linux-m32r-low.cc (class m32r_target)
989 <low_breakpoint_at>: Declare.
990 (m32r_breakpoint_at): Turn into...
991 (m32r_target::low_breakpoint_at): ...this.
992 (the_low_target): Remove the op field.
993 * linux-m68k-low.cc (class m68k_target)
994 <low_breakpoint_at>: Declare.
995 (m68k_breakpoint_at): Turn into...
996 (m68k_target::low_breakpoint_at): ...this.
997 (the_low_target): Remove the op field.
998 * linux-mips-low.cc (class mips_target)
999 <low_breakpoint_at>: Declare.
1000 (mips_breakpoint_at): Turn into...
1001 (mips_target::low_breakpoint_at): ...this.
1002 (the_low_target): Remove the op field.
1003 * linux-nios2-low.cc (class nios2_target)
1004 <low_breakpoint_at>: Declare.
1005 (nios2_breakpoint_at): Turn into...
1006 (nios2_target::low_breakpoint_at): ...this.
1007 (the_low_target): Remove the op field.
1008 * linux-ppc-low.cc (class ppc_target)
1009 <low_breakpoint_at>: Declare.
1010 (ppc_breakpoint_at): Turn into...
1011 (ppc_target::low_breakpoint_at): ...this.
1012 (the_low_target): Remove the op field.
1013 * linux-riscv-low.cc (class riscv_target)
1014 <low_breakpoint_at>: Declare.
1015 (riscv_breakpoint_at): Turn into...
1016 (riscv_target::low_breakpoint_at): ...this.
1017 (the_low_target): Remove the op field.
1018 * linux-s390-low.cc (class s390_target)
1019 <low_breakpoint_at>: Declare.
1020 (s390_breakpoint_at): Turn into...
1021 (s390_target::low_breakpoint_at): ...this.
1022 (the_low_target): Remove the op field.
1023 * linux-sh-low.cc (class sh_target)
1024 <low_breakpoint_at>: Declare.
1025 (sh_breakpoint_at): Turn into...
1026 (sh_target::low_breakpoint_at): ...this.
1027 (the_low_target): Remove the op field.
1028 * linux-sparc-low.cc (class sparc_target)
1029 <low_breakpoint_at>: Declare.
1030 (sparc_breakpoint_at): Turn into...
1031 (sparc_target::low_breakpoint_at): ...this.
1032 (the_low_target): Remove the op field.
1033 * linux-tic6x-low.cc (class tic6x_target)
1034 <low_breakpoint_at>: Declare.
1035 (tic6x_breakpoint_at): Turn into...
1036 (tic6x_target::low_breakpoint_at): ...this.
1037 (the_low_target): Remove the op field.
1038 * linux-tile-low.cc (class tile_target)
1039 <low_breakpoint_at>: Declare.
1040 (tile_breakpoint_at): Turn into...
1041 (tile_target::low_breakpoint_at): ...this.
1042 (the_low_target): Remove the op field.
1043 * linux-xtensa-low.cc (class xtensa_target)
1044 <low_breakpoint_at>: Declare.
1045 (xtensa_breakpoint_at): Turn into...
1046 (xtensa_target::low_breakpoint_at): ...this.
1047 (the_low_target): Remove the op field.
1049 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1051 Turn the 'decr_pc_after_break' linux_target_ops field into
1052 a method of linux_process_target.
1054 * linux-low.h (struct linux_target_ops)
1055 <decr_pc_after_break>: Remove.
1056 (class linux_process_target) <low_decr_pc_after_break>: New method
1058 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1059 New method implementation.
1061 Update the users below.
1063 (linux_process_target::save_stop_reason)
1064 (linux_process_target::wait_1)
1065 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1067 (x86_target::low_decr_pc_after_break): New method implementation.
1068 (the_low_target): Remove the field.
1069 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1071 (bfin_target::low_decr_pc_after_break): New method implementation.
1072 (the_low_target): Remove the field.
1073 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1075 (m68k_target::low_decr_pc_after_break): New method implementation.
1076 (the_low_target): Remove the field.
1077 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1079 (s390_target::low_decr_pc_after_break): New method implementation.
1080 (the_low_target): Remove the field.
1081 * linux-aarch64-low.cc (the_low_target): Remove the field.
1082 * linux-arm-low.cc (the_low_target): Remove the field.
1083 * linux-cris-low.cc (the_low_target): Remove the field.
1084 * linux-crisv32-low.cc (the_low_target): Remove the field.
1085 * linux-m32r-low.cc (the_low_target): Remove the field.
1086 * linux-mips-low.cc (the_low_target): Remove the field.
1087 * linux-nios2-low.cc (the_low_target): Remove the field.
1088 * linux-ppc-low.cc (the_low_target): Remove the field.
1089 * linux-riscv-low.cc (the_low_target): Remove the field.
1090 * linux-sh-low.cc (the_low_target): Remove the field.
1091 * linux-sparc-low.cc (the_low_target): Remove the field.
1092 * linux-tic6x-low.cc (the_low_target): Remove the field.
1093 * linux-tile-low.cc (the_low_target): Remove the field.
1094 * linux-xtensa-low.cc (the_low_target): Remove the field.
1096 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1098 Remove the 'supports_software_single_step' linux target op and let
1099 the concrete linux target define it by overriding the op in
1100 process_stratum_target.
1101 Turn the 'get_next_pcs' linux target op into a method of
1102 linux_process_target.
1104 * linux-low.h (struct linux_target_ops): Remove the ops.
1105 (class linux_process_target) <supports_software_single_step>:
1107 <low_get_next_pcs>: Declare.
1108 * linux-low.cc (can_software_single_step): Remove.
1109 (linux_process_target::low_get_next_pcs): Define.
1110 (linux_process_target::supports_software_single_step): Remove.
1112 Update the callers below.
1114 (linux_process_target::handle_extended_wait)
1115 (linux_process_target::wait_1)
1116 (linux_process_target::install_software_single_step_breakpoints)
1117 (linux_process_target::single_step)
1118 (linux_process_target::thread_needs_step_over)
1119 (linux_process_target::proceed_one_lwp)
1120 (linux_process_target::supports_range_stepping)
1122 * linux-x86-low.cc (the_low_target): Remove the op field.
1123 * linux-aarch64-low.cc (the_low_target): Ditto.
1124 * linux-bfin-low.cc (the_low_target): Ditto.
1125 * linux-cris-low.cc (the_low_target): Ditto.
1126 * linux-crisv32-low.cc (the_low_target): Ditto.
1127 * linux-m32r-low.cc (the_low_target): Ditto.
1128 * linux-m68k-low.cc (the_low_target): Ditto.
1129 * linux-mips-low.cc (the_low_target): Ditto.
1130 * linux-nios2-low.cc (the_low_target): Ditto.
1131 * linux-ppc-low.cc (the_low_target): Ditto.
1132 * linux-riscv-low.cc (the_low_target): Ditto.
1133 * linux-s390-low.cc (the_low_target): Ditto.
1134 * linux-sh-low.cc (the_low_target): Ditto.
1135 * linux-sparc-low.cc (the_low_target): Ditto.
1136 * linux-tic6x-low.cc (the_low_target): Ditto.
1137 * linux-tile-low.cc (the_low_target): Ditto.
1138 * linux-xtensa-low.cc (the_low_target): Ditto.
1139 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1140 <supports_software_single_step>: Declare.
1141 (arm_target::supports_software_single_step): Define.
1142 (arm_gdbserver_get_next_pcs): Turn into...
1143 (arm_target::low_get_next_pcs): ...this.
1144 (the_low_target): Remove the op field.
1146 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1148 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1149 the concrete linux target define it by overriding the op
1150 in process_stratum_target.
1152 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1154 * linux-low.h (struct linux_target_ops): Remove the op.
1155 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1156 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1158 (x86_sw_breakpoint_from_kind): Turn into...
1159 (x86_target::sw_breakpoint_from_kind): ...this.
1160 (the_low_target): Remove the op field.
1161 * linux-aarch64-low.cc (class aarch64_target)
1162 <sw_breakpoint_from_kind>: Declare.
1163 (aarch64_sw_breakpoint_from_kind): Turn into...
1164 (aarch64_target::sw_breakpoint_from_kind): ...this.
1165 (the_low_target): Remove the op field.
1166 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1168 (arm_target::sw_breakpoint_from_kind): Define.
1169 (the_low_target): Remove the op field.
1170 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1172 (bfin_sw_breakpoint_from_kind): Turn into...
1173 (bfin_target::sw_breakpoint_from_kind): ...this.
1174 (the_low_target): Remove the op field.
1175 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1177 (cris_sw_breakpoint_from_kind): Turn into...
1178 (cris_target::sw_breakpoint_from_kind): ...this.
1179 (the_low_target): Remove the op field.
1180 * linux-crisv32-low.cc (class crisv32_target)
1181 <sw_breakpoint_from_kind>: Declare.
1182 (cris_sw_breakpoint_from_kind): Turn into...
1183 (crisv32_target::sw_breakpoint_from_kind): ...this.
1184 (the_low_target): Remove the op field.
1185 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1187 (ia64_target::sw_breakpoint_from_kind): Define.
1188 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1190 (m32r_sw_breakpoint_from_kind): Turn into...
1191 (m32r_target::sw_breakpoint_from_kind): ...this.
1192 (the_low_target): Remove the op field.
1193 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1195 (m68k_sw_breakpoint_from_kind): Turn into...
1196 (m68k_target::sw_breakpoint_from_kind): ...this.
1197 (the_low_target): Remove the op field.
1198 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1200 (mips_sw_breakpoint_from_kind): Turn into...
1201 (mips_target::sw_breakpoint_from_kind): ...this.
1202 (the_low_target): Remove the op field.
1203 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1205 (nios2_sw_breakpoint_from_kind): Turn into...
1206 (nios2_target::sw_breakpoint_from_kind): ...this.
1207 (the_low_target): Remove the op field.
1208 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1210 (ppc_sw_breakpoint_from_kind): Turn into...
1211 (ppc_target::sw_breakpoint_from_kind): ...this.
1212 (the_low_target): Remove the op field.
1213 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1215 (riscv_sw_breakpoint_from_kind): Turn into...
1216 (riscv_target::sw_breakpoint_from_kind): ...this.
1217 (the_low_target): Remove the op field.
1218 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1220 (s390_sw_breakpoint_from_kind): Turn into...
1221 (s390_target::sw_breakpoint_from_kind): ...this.
1222 (the_low_target): Remove the op field.
1223 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1225 (sh_sw_breakpoint_from_kind): Turn into...
1226 (sh_target::sw_breakpoint_from_kind): ...this.
1227 (the_low_target): Remove the op field.
1228 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1230 (sparc_sw_breakpoint_from_kind): Turn into...
1231 (sparc_target::sw_breakpoint_from_kind): ...this.
1232 (the_low_target): Remove the op field.
1233 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1235 (tic6x_sw_breakpoint_from_kind): Turn into...
1236 (tic6x_target::sw_breakpoint_from_kind): ...this.
1237 (the_low_target): Remove the op field.
1238 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1240 (tile_sw_breakpoint_from_kind): Turn into...
1241 (tile_target::sw_breakpoint_from_kind): ...this.
1242 (the_low_target): Remove the op field.
1243 * linux-xtensa-low.cc (class xtensa_target)
1244 <sw_breakpoint_from_kind>: Declare.
1245 (xtensa_sw_breakpoint_from_kind): Turn into...
1246 (xtensa_target::sw_breakpoint_from_kind): ...this.
1247 (the_low_target): Remove the op field.
1249 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1251 Remove the 'breakpoint_kind_from_pc' and
1252 'breakpoint_kind_from_current_state' linux target ops, and let the
1253 concrete linux target define them by overriding the ops of
1254 process_stratum_target.
1256 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1258 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1259 * linux-low.h (struct linux_target_ops): Remove ops.
1260 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1261 <breakpoint_kind_from_current_state>: Remove.
1262 * linux-x86-low.cc (the_low_target): Remove the op fields.
1263 * linux-bfin-low.cc (the_low_target): Ditto.
1264 * linux-cris-low.cc (the_low_target): Ditto.
1265 * linux-crisv32-low.cc (the_low_target): Ditto.
1266 * linux-m32r-low.cc (the_low_target): Ditto.
1267 * linux-m68k-low.cc (the_low_target): Ditto.
1268 * linux-mips-low.cc (the_low_target): Ditto.
1269 * linux-nios2-low.cc (the_low_target): Ditto.
1270 * linux-ppc-low.cc (the_low_target): Ditto.
1271 * linux-s390-low.cc (the_low_target): Ditto.
1272 * linux-sh-low.cc (the_low_target): Ditto.
1273 * linux-sparc-low.cc (the_low_target): Ditto.
1274 * linux-tic6x-low.cc (the_low_target): Ditto.
1275 * linux-tile-low.cc (the_low_target): Ditto.
1276 * linux-xtensa-low.cc (the_low_target): Ditto.
1277 * linux-aarch64-low.cc (class aarch64_target)
1278 <breakpoint_kind_from_pc>
1279 <breakpoint_kind_from_current_state>: Declare.
1280 (aarch64_breakpoint_kind_from_pc): Turn into...
1281 (aarch64_target::breakpoint_kind_from_pc): ...this.
1282 (aarch64_breakpoint_kind_from_current_state): Turn into...
1283 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1284 (the_low_target): Remove the op fields.
1285 * linux-arm-low.cc (class arm_target):
1286 <breakpoint_kind_from_pc>
1287 <breakpoint_kind_from_current_state>: Declare.
1288 (arm_target::breakpoint_kind_from_pc): Define.
1289 (arm_target::breakpoint_kind_from_current_state): Define.
1290 (the_low_target): Remove the op fields.
1291 * linux-riscv-low.cc (class riscv_target):
1292 <breakpoint_kind_from_pc>: Declare.
1293 (riscv_breakpoint_kind_from_pc): Turn into...
1294 (riscv_target::breakpoint_kind_from_pc): ...this.
1295 (the_low_target): Remove the op fields.
1297 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1299 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1300 of linux_process_target.
1302 * linux-low.h (struct linux_target_ops): Remove the ops.
1303 (class linux_process_target) <low_supports_breakpoints>
1305 <low_set_pc>: Declare.
1306 * linux-low.cc (supports_breakpoints): Turn into...
1307 (linux_process_target::low_supports_breakpoints): ...this.
1308 (linux_process_target::low_get_pc): Define.
1309 (linux_process_target::low_set_pc): Define.
1311 Update the callers below.
1313 (linux_process_target::get_pc)
1314 (linux_process_target::save_stop_reason)
1315 (linux_process_target::maybe_move_out_of_jump_pad)
1316 (linux_process_target::wait_1)
1317 (linux_process_target::resume_one_lwp_throw)
1318 (linux_process_target::resume)
1319 (linux_process_target::proceed_all_lwps)
1320 (linux_process_target::read_pc)
1321 (linux_process_target::write_pc)
1323 * linux-x86-low.cc (class linux_process_target)
1324 <low_supports_breakpoints>
1326 <low_set_pc>: Declare.
1327 (x86_target::low_supports_breakpoints): Define.
1328 (x86_get_pc): Turn into...
1329 (x86_target::low_get_pc): ...this.
1330 (x86_set_pc): Turn into...
1331 (x86_target::low_set_pc): ...this.
1332 (the_low_target): Remove the op fields.
1333 * linux-arm-low.cc (class arm_target)
1334 <low_supports_breakpoints>
1336 <low_set_pc>: Declare.
1337 (arm_target::low_supports_breakpoints)
1338 (arm_target::low_get_pc)
1339 (arm_target::low_set_pc): Define.
1340 (the_low_target): Remove the op fields.
1341 * linux-bfin-low.cc (class bfin_target)
1342 <low_supports_breakpoints>
1344 <low_set_pc>: Declare.
1345 (bfin_target::low_supports_breakpoints)
1346 (bfin_target::low_get_pc)
1347 (bfin_target::low_set_pc): Define.
1348 (the_low_target): Remove the op fields.
1349 * linux-cris-low.cc (class cris_target)
1350 <low_supports_breakpoints>
1352 <low_set_pc>: Declare.
1353 (cris_target::low_supports_breakpoints)
1354 (cris_target::low_get_pc)
1355 (cris_target::low_set_pc): Define.
1356 (the_low_target): Remove the op fields.
1357 * linux-crisv32-low.cc (class crisv32_target)
1358 <low_supports_breakpoints>
1360 <low_set_pc>: Declare.
1361 (crisv32_target::low_supports_breakpoints)
1362 (crisv32_target::low_get_pc)
1363 (crisv32_target::low_set_pc): Define.
1364 (the_low_target): Remove the op fields.
1365 * linux-m32r-low.cc (class m32r_target)
1366 <low_supports_breakpoints>
1368 <low_set_pc>: Declare.
1369 (m32r_target::low_supports_breakpoints)
1370 (m32r_target::low_get_pc)
1371 (m32r_target::low_set_pc): Define.
1372 (the_low_target): Remove the op fields.
1373 * linux-m68k-low.cc (class m68k_target)
1374 <low_supports_breakpoints>
1376 <low_set_pc>: Declare.
1377 (m68k_target::low_supports_breakpoints)
1378 (m68k_target::low_get_pc)
1379 (m68k_target::low_set_pc): Define.
1380 (the_low_target): Remove the op fields.
1381 * linux-nios2-low.cc (class nios2_target)
1382 <low_supports_breakpoints>
1384 <low_set_pc>: Declare.
1385 (nios2_target::low_supports_breakpoints)
1386 (nios2_target::low_get_pc)
1387 (nios2_target::low_set_pc): Define.
1388 (the_low_target): Remove the op fields.
1389 * linux-sh-low.cc (class sh_target)
1390 <low_supports_breakpoints>
1392 <low_set_pc>: Declare.
1393 (sh_target::low_supports_breakpoints)
1394 (sh_target::low_get_pc)
1395 (sh_target::low_set_pc): Define.
1396 (the_low_target): Remove the op fields.
1397 * linux-xtensa-low.cc (class xtensa_target)
1398 <low_supports_breakpoints>
1400 <low_set_pc>: Declare.
1401 (xtensa_target::low_supports_breakpoints)
1402 (xtensa_target::low_get_pc)
1403 (xtensa_target::low_set_pc): Define.
1404 (the_low_target): Remove the op fields.
1405 * linux-sparc-low.cc (class sparc_target)
1406 <low_supports_breakpoints>
1407 <low_get_pc>: Declare.
1408 (sparc_target::low_supports_breakpoints)
1409 (sparc_target::low_get_pc): Define.
1410 (the_low_target): Remove the op fields.
1411 * linux-tile-low.cc (class tile_target)
1412 <low_supports_breakpoints>
1414 <low_set_pc>: Declare.
1415 (tile_target::low_supports_breakpoints)
1416 (tile_target::low_get_pc)
1417 (tile_target::low_set_pc): Define.
1418 (the_low_target): Remove the op fields.
1419 * linux-aarch64-low.cc (class aarch64_target)
1420 <low_supports_breakpoints>
1422 <low_set_pc>: Declare.
1423 (aarch64_target::low_supports_breakpoints): Define.
1424 (aarch64_get_pc): Turn into...
1425 (aarch64_target::low_get_pc): ...this.
1426 (aarch64_set_pc): Turn into...
1427 (aarch64_target::low_set_pc): ...this.
1428 (the_low_target): Remove the op fields.
1429 * linux-mips-low.cc (class mips_target)
1430 <low_supports_breakpoints>
1432 <low_set_pc>: Declare.
1433 (mips_target::low_supports_breakpoints): Define.
1434 (mips_get_pc): Turn into...
1435 (mips_target::low_get_pc): ...this.
1436 (mips_set_pc): Turn into...
1437 (mips_target::low_set_pc): ...this.
1438 (the_low_target): Remove the op fields.
1439 * linux-ppc-low.cc (class ppc_target)
1440 <low_supports_breakpoints>
1442 <low_set_pc>: Declare.
1443 (ppc_target::low_supports_breakpoints): Define.
1444 (ppc_get_pc): Turn into...
1445 (ppc_target::low_get_pc): ...this.
1446 (ppc_set_pc): Turn into...
1447 (ppc_target::low_set_pc): ...this.
1448 (the_low_target): Remove the op fields.
1449 * linux-riscv-low.cc (class riscv_target)
1450 <low_supports_breakpoints>
1452 <low_set_pc>: Declare.
1453 (riscv_target::low_supports_breakpoints): Define.
1454 (riscv_get_pc): Turn into...
1455 (riscv_target::low_get_pc): ...this.
1456 (riscv_set_pc): Turn into...
1457 (riscv_target::low_set_pc): ...this.
1458 (the_low_target): Remove the op fields.
1459 * linux-s390-low.cc (class s390_target)
1460 <low_supports_breakpoints>
1462 <low_set_pc>: Declare.
1463 (s390_target::low_supports_breakpoints): Define.
1464 (s390_get_pc): Turn into...
1465 (s390_target::low_get_pc): ...this.
1466 (s390_set_pc): Turn into...
1467 (s390_target::low_set_pc): ...this.
1468 (the_low_target): Remove the op fields.
1469 * linux-tic6x-low.cc (class tic6x_target)
1470 <low_supports_breakpoints>
1472 <low_set_pc>: Declare.
1473 (tic6x_target::low_supports_breakpoints): Define.
1474 (tic6x_get_pc): Turn into...
1475 (tic6x_target::low_get_pc): ...this.
1476 (tic6x_set_pc): Turn into...
1477 (tic6x_target::low_set_pc): ...this.
1478 (the_low_target): Remove the op fields.
1480 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1482 Turn some more static methods in linux-low into private methods
1483 of linux_process_target.
1485 * linux-low.cc (get_pc): Turn into...
1486 (linux_process_target::get_pc): ...this.
1487 (save_stop_reason): Turn into...
1488 (linux_process_target::save_stop_reason): ...this.
1489 (thread_still_has_status_pending_p): Turn into...
1490 (linux_process_target::thread_still_has_status_pending): ...this.
1491 (status_pending_p_callback): Turn into...
1492 (linux_process_target::status_pending_p_callback): ...this.
1493 (resume_stopped_resumed_lwps): Turn into...
1494 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1495 (install_software_single_step_breakpoints): Turn into...
1496 (linux_process_target::install_software_single_step_breakpoints):
1498 (single_step): Turn into...
1499 (linux_process_target::single_step): ...this.
1500 (linux_resume_one_lwp_throw): Turn into...
1501 (linux_process_target::resume_one_lwp_throw): ...this.
1502 (linux_resume_one_lwp): Turn into...
1503 (linux_process_target::resume_one_lwp): ...this.
1504 (resume_status_pending_p): Turn into...
1505 (linux_process_target::resume_status_pending): ...this.
1506 (need_step_over_p): Turn into...
1507 (linux_process_target::thread_needs_step_over): ...this.
1508 (linux_resume_one_thread): Turn into...
1509 (linux_process_target::resume_one_thread): ...this.
1510 (proceed_one_lwp): Turn into...
1511 (linux_process_target::proceed_one_lwp): ...this.
1512 (unsuspend_and_proceed_one_lwp): Turn into...
1513 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1515 Update the calls/references to the above functions below.
1517 (linux_process_target::handle_extended_wait)
1518 (linux_process_target::filter_event)
1519 (linux_process_target::wait_for_event_filtered)
1520 (linux_process_target::wait_1)
1521 (linux_process_target::move_out_of_jump_pad)
1522 (linux_process_target::start_step_over)
1523 (linux_process_target::resume)
1524 (linux_process_target::proceed_all_lwps)
1525 (regsets_store_inferior_registers)
1526 (linux_process_target::store_register)
1528 * linux-low.h (class linux_process_target)
1531 <thread_still_has_status_pending>
1532 <status_pending_p_callback>
1533 <resume_stopped_resumed_lwps>
1534 <install_software_single_step_breakpoints>
1536 <resume_one_lwp_throw>
1538 <resume_status_pending>
1539 <thread_needs_step_over>
1542 <unsuspend_and_proceed_one_lwp>: Declare.
1544 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1546 Turn the 'fetch_register' linux target op into a method of
1547 linux_process_target.
1549 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1550 (class linux_process_target) <low_fetch_register>: Declare.
1551 * linux-x86-low.cc (the_low_target)
1552 * linux-aarch64-low.cc (the_low_target)
1553 * linux-arm-low.cc (the_low_target)
1554 * linux-bfin-low.cc (the_low_target)
1555 * linux-cris-low.cc (the_low_target)
1556 * linux-crisv32-low.cc (the_low_target)
1557 * linux-m32r-low.cc (the_low_target)
1558 * linux-m68k-low.cc (the_low_target)
1559 * linux-nios2-low.cc (the_low_target)
1560 * linux-ppc-low.cc (the_low_target)
1561 * linux-s390-low.cc (the_low_target)
1562 * linux-sh-low.cc (the_low_target)
1563 * linux-sparc-low.cc (the_low_target)
1564 * linux-tic6x-low.cc (the_low_target)
1565 * linux-tile-low.cc (the_low_target)
1566 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1567 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1569 (ia64_fetch_register): Turn into...
1570 (ia64_target::low_fetch_register): ...this.
1571 (the_low_target): Remove the op field.
1572 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1574 (mips_fetch_register): Turn into...
1575 (mips_target::low_fetch_register): ...this.
1576 (the_low_target): Remove the op field.
1577 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1579 (riscv_fetch_register): Turn into...
1580 (riscv_target::low_fetch_register): ...this.
1581 (the_low_target): Remove the op field.
1583 Update the callers below.
1585 * linux-low.cc (linux_process_target::fetch_registers)
1586 (linux_process_target::low_fetch_register)
1588 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1590 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1591 linux target ops into methods of linux_process_target.
1593 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1594 (class linux_process_target) <fetch_register>
1596 <usr_fetch_inferior_registers>
1597 <usr_store_inferior_registers>
1598 <low_cannot_fetch_register>
1599 <low_cannot_fetch_register> Declare.
1600 * linux-low.cc (fetch_register): Turn into...
1601 (linux_process_target::fetch_register): ...this.
1602 (store_register): Turn into ...
1603 (linux_process_target::store_register): ...this.
1604 (usr_fetch_inferior_registers): Turn into...
1605 (linux_process_target::usr_fetch_inferior_registers): ...this.
1606 (usr_store_inferior_registers): Turn into...
1607 (linux_process_target::usr_store_inferior_registers): ...this.
1608 * linux-x86-low.cc (class x86_target)
1609 <low_cannot_fetch_register>
1610 <low_cannot_store_register>: Declare.
1611 (x86_cannot_store_register): Turn into...
1612 (x86_target::low_cannot_store_register): ...this.
1613 (x86_cannot_fetch_register): Turn into...
1614 (x86_target::low_cannot_fetch_register): ...this.
1615 (the_low_target): Remove the target op fields.
1616 * linux-aarch64-low.cc (class aarch64_target)
1617 <low_cannot_fetch_register>
1618 <low_cannot_store_register>: Declare.
1619 (aarch64_target::low_cannot_fetch_register)
1620 (aarch64_target::low_cannot_store_register): Define.
1621 (the_low_target): Remove the op fields.
1622 * linux-arm-low.cc (class arm_target)
1623 <low_cannot_fetch_register>
1624 <low_cannot_store_register>: Declare.
1625 (arm_cannot_fetch_register): Turn into...
1626 (arm_target::low_cannot_fetch_register): ...this.
1627 (arm_cannot_store_register): Turn into...
1628 (arm_target::low_cannot_store_register): ...this.
1629 (the_low_target): Remove the op fields.
1630 * linux-bfin-low.cc (class bfin_target)
1631 <low_cannot_fetch_register>
1632 <low_cannot_store_register>: Declare.
1633 (bfin_cannot_fetch_register): Turn into...
1634 (bfin_target::low_cannot_fetch_register): ...this.
1635 (bfin_cannot_store_register): Turn into...
1636 (bfin_target::low_cannot_store_register): ...this.
1637 (the_low_target): Remove the op fields.
1638 * linux-cris-low.cc (class cris_target)
1639 <low_cannot_fetch_register>
1640 <low_cannot_store_register>: Declare.
1641 (cris_cannot_fetch_register): Turn into...
1642 (cris_target::low_cannot_fetch_register): ...this.
1643 (cris_cannot_store_register): Turn into...
1644 (cris_target::low_cannot_store_register): ...this.
1645 (the_low_target): Remove the op fields.
1646 * linux-crisv32-low.cc (class crisv32_target)
1647 <low_cannot_fetch_register>
1648 <low_cannot_store_register>: Declare.
1649 (crisv32_target::low_cannot_fetch_register)
1650 (crisv32_target::low_cannot_store_register): Define.
1651 (the_low_target): Remove the op fields.
1652 * linux-ia64-low.cc (class ia64_target)
1653 <low_cannot_fetch_register>
1654 <low_cannot_store_register>: Declare.
1655 (ia64_cannot_fetch_register): Turn into...
1656 (ia64_target::low_cannot_fetch_register): ...this.
1657 (ia64_cannot_store_register): Turn into...
1658 (ia64_target::low_cannot_store_register): ...this.
1659 (the_low_target): Remove the op fields.
1660 * linux-m32r-low.cc (class m32r_target)
1661 <low_cannot_fetch_register>
1662 <low_cannot_store_register>: Declare.
1663 (m32r_cannot_fetch_register): Turn into...
1664 (m32r_target::low_cannot_fetch_register): ...this.
1665 (m32r_cannot_store_register): Turn into...
1666 (m32r_target::low_cannot_store_register): ...this.
1667 (the_low_target): Remove the op fields.
1668 * linux-m68k-low.cc (class m68k_target)
1669 <low_cannot_fetch_register>
1670 <low_cannot_store_register>: Declare.
1671 (m68k_cannot_fetch_register): Turn into...
1672 (m68k_target::low_cannot_fetch_register): ...this.
1673 (m68k_cannot_store_register): Turn into...
1674 (m68k_target::low_cannot_store_register): ...this.
1675 (the_low_target): Remove the op fields.
1676 * linux-mips-low.cc (class mips_target)
1677 <low_cannot_fetch_register>
1678 <low_cannot_store_register>: Declare.
1679 (mips_cannot_fetch_register): Turn into...
1680 (mips_target::low_cannot_fetch_register): ...this.
1681 (mips_cannot_store_register): Turn into...
1682 (mips_target::low_cannot_store_register): ...this.
1683 (get_usrregs_info): Inline at the call sites in
1684 low_cannot_fetch_register and low_cannot_store_register,
1686 (the_low_target): Remove the op fields.
1687 * linux-nios2-low.cc (class nios2_target)
1688 <low_cannot_fetch_register>
1689 <low_cannot_store_register>: Declare.
1690 (nios2_cannot_fetch_register): Turn into...
1691 (nios2_target::low_cannot_fetch_register): ...this.
1692 (nios2_cannot_store_register): Turn into...
1693 (nios2_target::low_cannot_store_register): ...this.
1694 (the_low_target): Remove the op fields.
1695 * linux-ppc-low.cc (class ppc_target)
1696 <low_cannot_fetch_register>
1697 <low_cannot_store_register>: Declare.
1698 (ppc_cannot_fetch_register): Turn into...
1699 (ppc_target::low_cannot_fetch_register): ...this.
1700 (ppc_cannot_store_register): Turn into...
1701 (ppc_target::low_cannot_store_register): ...this.
1702 (the_low_target): Remove the op fields.
1703 * linux-riscv-low.cc (class riscv_target)
1704 <low_cannot_fetch_register>
1705 <low_cannot_store_register>: Declare.
1706 (riscv_target::low_cannot_fetch_register)
1707 (riscv_target::low_cannot_store_register): Define.
1708 (the_low_target): Remove the op fields.
1709 * linux-s390-low.cc (class s390_target)
1710 <low_cannot_fetch_register>
1711 <low_cannot_store_register>: Declare.
1712 (s390_cannot_fetch_register): Turn into...
1713 (s390_target::low_cannot_fetch_register): ...this.
1714 (s390_cannot_store_register): Turn into...
1715 (s390_target::low_cannot_store_register): ...this.
1716 (the_low_target): Remove the op fields.
1717 * linux-sh-low.cc (class sh_target)
1718 <low_cannot_fetch_register>
1719 <low_cannot_store_register>: Declare.
1720 (sh_cannot_fetch_register): Turn into...
1721 (sh_target::low_cannot_fetch_register): ...this.
1722 (sh_cannot_store_register): Turn into...
1723 (sh_target::low_cannot_store_register): ...this.
1724 (the_low_target): Remove the op fields.
1725 * linux-sparc-low.cc (class sparc_target)
1726 <low_cannot_fetch_register>
1727 <low_cannot_store_register>: Declare.
1728 (sparc_cannot_fetch_register): Turn into...
1729 (sparc_target::low_cannot_fetch_register): ...this.
1730 (sparc_cannot_store_register): Turn into...
1731 (sparc_target::low_cannot_store_register): ...this.
1732 (the_low_target): Remove the op fields.
1733 * linux-tic6x-low.cc (class tic6x_target)
1734 <low_cannot_fetch_register>
1735 <low_cannot_store_register>: Declare.
1736 (tic6x_cannot_fetch_register): Turn into...
1737 (tic6x_target::low_cannot_fetch_register): ...this.
1738 (tic6x_cannot_store_register): Turn into...
1739 (tic6x_target::low_cannot_store_register): ...this.
1740 (the_low_target): Remove the op fields.
1741 * linux-tile-low.cc (class tile_target)
1742 <low_cannot_fetch_register>
1743 <low_cannot_store_register>: Declare.
1744 (tile_cannot_fetch_register): Turn into...
1745 (tile_target::low_cannot_fetch_register): ...this.
1746 (tile_cannot_store_register): Turn into...
1747 (tile_target::low_cannot_store_register): ...this.
1748 (the_low_target): Remove the op fields.
1749 * linux-xtensa-low.cc (class xtensa_target)
1750 <low_cannot_fetch_register>
1751 <low_cannot_store_register>: Declare.
1752 (xtensa_target::low_cannot_fetch_register)
1753 (xtensa_target::low_cannot_store_register): Define.
1754 (the_low_target): Remove the op fields.
1756 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1758 Turn the 'regs_info' linux target op into a method of
1759 linux_process_target.
1761 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1762 (class linux_process_target) <get_regs_info>: Define.
1764 Update the callers below.
1766 * linux-low.cc (linux_process_target::fetch_registers)
1767 (linux_process_target::store_registers)
1768 * proc-service.cc (gregset_info)
1770 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1771 (x86_linux_regs_info): Turn into ...
1772 (x86_target::get_regs_info): ...this.
1773 (the_low_target): Remove the op field.
1774 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1776 (aarch64_regs_info): Turn into ...
1777 (aarch64_target::get_regs_info): ...this.
1778 (the_low_target): Remove the op field.
1779 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1780 (arm_regs_info): Turn into ...
1781 (arm_target::get_regs_info): ...this.
1782 (the_low_target): Remove the op field.
1783 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1784 (bfin_regs_info): Turn into ...
1785 (bfin_target::get_regs_info): ...this.
1786 (the_low_target): Remove the op field.
1787 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1788 (cris_regs_info): Turn into ...
1789 (cris_target::get_regs_info): ...this.
1790 (the_low_target): Remove the op field.
1791 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1793 (crisv32_regs_info): Turn into ...
1794 (crisv32_target::get_regs_info): ...this.
1795 (the_low_target): Remove the op field.
1796 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1797 (ia64_regs_info): Turn into ...
1798 (ia64_target::get_regs_info): ...this.
1799 (the_low_target): Remove the op field.
1800 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1801 (m32r_regs_info): Turn into ...
1802 (m32r_target::get_regs_info): ...this.
1803 (the_low_target): Remove the op field.
1804 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1805 (m68k_regs_info): Turn into ...
1806 (m68k_target::get_regs_info): ...this.
1807 (the_low_target): Remove the op field.
1808 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1809 (mips_regs_info): Turn into ...
1810 (mips_target::get_regs_info): ...this.
1811 (the_low_target): Remove the op field.
1812 (get_usrregs_info): Update the call to the op.
1813 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1814 (nios2_regs_info): Turn into ...
1815 (nios2_target::get_regs_info): ...this.
1816 (the_low_target): Remove the op field.
1817 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1818 (ppc_regs_info): Turn into ...
1819 (ppc_target::get_regs_info): ...this.
1820 (the_low_target): Remove the op field.
1821 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1822 (riscv_regs_info): Turn into ...
1823 (riscv_target::get_regs_info): ...this.
1824 (the_low_target): Remove the op field.
1825 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1826 (s390_regs_info): Turn into ...
1827 (s390_target::get_regs_info): ...this.
1828 (the_low_target): Remove the op field.
1829 (s390_collect_ptrace_register)
1830 (s390_supply_ptrace_register)
1831 (s390_fill_gregset): Update the call to the op.
1832 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1833 (sh_regs_info): Turn into ...
1834 (sh_target::get_regs_info): ...this.
1835 (the_low_target): Remove the op field.
1836 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1837 (sparc_regs_info): Turn into ...
1838 (sparc_target::get_regs_info): ...this.
1839 (the_low_target): Remove the op field.
1840 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1841 (tic6x_regs_info): Turn into ...
1842 (tic6x_target::get_regs_info): ...this.
1843 (the_low_target): Remove the op field.
1844 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1845 (tile_regs_info): Turn into ...
1846 (tile_target::get_regs_info): ...this.
1847 (the_low_target): Remove the op field.
1848 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1850 (xtensa_regs_info): Turn into ...
1851 (xtensa_target::get_regs_info): ...this.
1852 (the_low_target): Remove the op field.
1854 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1856 Turn the 'arch_setup' linux target op into a method of
1857 linux_process_target.
1859 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1860 (class linux_process_target) <arch_setup_thread>
1861 <low_arch_setup>: New declarations.
1862 * linux-low.cc (linux_arch_setup): Delete.
1863 (linux_arch_setup_thread): Turn into...
1864 (linux_process_target::arch_setup_thread): ... this.
1866 Update the callers below.
1868 (linux_process_target::handle_extended_wait)
1869 (linux_process_target::post_create_inferior)
1870 (linux_process_target::filter_event)
1872 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1874 (x86_linux_update_xmltarget): Turn into...
1875 (x86_target::update_xmltarget): ...this.
1876 (x86_linux_process_qsupported): Update the call to
1877 x86_linux_update_xmltarget.
1878 (x86_arch_setup): Turn into ...
1879 (x86_target::low_arch_setup): ...this.
1880 (the_low_target): Remove the op field.
1881 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1883 (aarch64_arch_setup): Turn into ...
1884 (aarch64_target::low_arch_setup): ...this.
1885 (the_low_target): Remove the op field.
1886 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1888 (arm_arch_setup): Turn into ...
1889 (arm_target::low_arch_setup): ...this.
1890 (the_low_target): Remove the op field.
1891 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1893 (bfin_arch_setup): Turn into ...
1894 (bfin_target::low_arch_setup): ...this.
1895 (the_low_target): Remove the op field.
1896 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1898 (cris_arch_setup): Turn into ...
1899 (cris_target::low_arch_setup): ...this.
1900 (the_low_target): Remove the op field.
1901 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1903 (crisv32_arch_setup): Turn into ...
1904 (crisv32_target::low_arch_setup): ...this.
1905 (the_low_target): Remove the op field.
1906 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1908 (ia64_arch_setup): Turn into ...
1909 (ia64_target::low_arch_setup): ...this.
1910 (the_low_target): Remove the op field.
1911 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1913 (m32r_arch_setup): Turn into ...
1914 (m32r_target::low_arch_setup): ...this.
1915 (the_low_target): Remove the op field.
1916 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1918 (m68k_arch_setup): Turn into ...
1919 (m68k_target::low_arch_setup): ...this.
1920 (the_low_target): Remove the op field.
1921 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1923 (mips_arch_setup): Turn into ...
1924 (mips_target::low_arch_setup): ...this.
1925 (the_low_target): Remove the op field.
1926 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1928 (nios2_arch_setup): Turn into ...
1929 (nios2_target::low_arch_setup): ...this.
1930 (the_low_target): Remove the op field.
1931 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1933 (ppc_arch_setup): Turn into ...
1934 (ppc_target::low_arch_setup): ...this.
1935 (the_low_target): Remove the op field.
1936 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1938 (riscv_arch_setup): Turn into ...
1939 (riscv_target::low_arch_setup): ...this.
1940 (the_low_target): Remove the op field.
1941 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1943 (s390_arch_setup): Turn into ...
1944 (s390_target::low_arch_setup): ...this.
1945 (the_low_target): Remove the op field.
1946 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1948 (sh_arch_setup): Turn into ...
1949 (sh_target::low_arch_setup): ...this.
1950 (the_low_target): Remove the op field.
1951 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1953 (sparc_arch_setup): Turn into ...
1954 (sparc_target::low_arch_setup): ...this.
1955 (the_low_target): Remove the op field.
1956 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1958 (tic6x_arch_setup): Turn into ...
1959 (tic6x_target::low_arch_setup): ...this.
1960 (the_low_target): Remove the op field.
1961 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1963 (tile_arch_setup): Turn into ...
1964 (tile_target::low_arch_setup): ...this.
1965 (the_low_target): Remove the op field.
1966 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1968 (xtensa_arch_setup): Turn into ...
1969 (xtensa_target::low_arch_setup): ...this.
1970 (the_low_target): Remove the op field.
1972 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1974 * linux-low.h (the_linux_target): New extern declaration.
1975 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1977 (the_linux_target): Remove.
1978 * linux-x86-low.cc (class x86_target): New class.
1979 (the_x86_target): New static object.
1980 (the_linux_target): Define as pointer to the_x86_target.
1981 * linux-aarch64-low.cc (class aarch64_target): New class.
1982 (the_aarch64_target): New static object.
1983 (the_linux_target): Define as pointer to the_aarch64_target.
1984 * linux-arm-low.cc (class arm_target): New class.
1985 (the_arm_target): New static object.
1986 (the_linux_target): Define as pointer to the_arm_target.
1987 * linux-bfin-low.cc (class bfin_target): New class.
1988 (the_bfin_target): New static object.
1989 (the_linux_target): Define as pointer to the_bfin_target.
1990 * linux-cris-low.cc (class cris_target): New class.
1991 (the_cris_target): New static object.
1992 (the_linux_target): Define as pointer to the_cris_target.
1993 * linux-crisv32-low.cc (class crisv32_target): New class.
1994 (the_crisv32_target): New static object.
1995 (the_linux_target): Define as pointer to the_crisv32_target.
1996 * linux-ia64-low.cc (class ia64_target): New class.
1997 (the_ia64_target): New static object.
1998 (the_linux_target): Define as pointer to the_ia64_target.
1999 * linux-m32r-low.cc (class m32r_target): New class.
2000 (the_m32r_target): New static object.
2001 (the_linux_target): Define as pointer to the_m32r_target.
2002 * linux-m68k-low.cc (class m68k_target): New class.
2003 (the_m68k_target): New static object.
2004 (the_linux_target): Define as pointer to the_m68k_target.
2005 * linux-mips-low.cc (class mips_target): New class.
2006 (the_mips_target): New static object.
2007 (the_linux_target): Define as pointer to the_mips_target.
2008 * linux-nios2-low.cc (class nios2_target): New class.
2009 (the_nios2_target): New static object.
2010 (the_linux_target): Define as pointer to the_nios2_target.
2011 * linux-ppc-low.cc (class ppc_target): New class.
2012 (the_ppc_target): New static object.
2013 (the_linux_target): Define as pointer to the_ppc_target.
2014 * linux-riscv-low.cc (class riscv_target): New class.
2015 (the_riscv_target): New static object.
2016 (the_linux_target): Define as pointer to the_riscv_target.
2017 * linux-s390-low.cc (class s390_target): New class.
2018 (the_s390_target): New static object.
2019 (the_linux_target): Define as pointer to the_s390_target.
2020 * linux-sh-low.cc (class sh_target): New class.
2021 (the_sh_target): New static object.
2022 (the_linux_target): Define as pointer to the_sh_target.
2023 * linux-sparc-low.cc (class sparc_target): New class.
2024 (the_sparc_target): New static object.
2025 (the_linux_target): Define as pointer to the_sparc_target.
2026 * linux-tic6x-low.cc (class tic6x_target): New class.
2027 (the_tic6x_target): New static object.
2028 (the_linux_target): Define as pointer to the_tic6x_target.
2029 * linux-tile-low.cc (class tile_target): New class.
2030 (the_tile_target): New static object.
2031 (the_linux_target): Define as pointer to the_tile_target.
2032 * linux-xtensa-low.cc (class xtensa_target): New class.
2033 (the_xtensa_target): New static object.
2034 (the_linux_target): Define as pointer to the_xtensa_target.
2036 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2038 Turn some static functions in linux-low.cc into private methods of
2039 linux_process_target.
2041 * linux-low.cc (handle_extended_wait): Turn into ...
2042 (linux_process_target::handle_extended_wait): ...this. Call
2043 'mourn' on 'this' object instead of 'the_target'.
2044 (maybe_move_out_of_jump_pad): Turn into...
2045 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2046 (linux_low_filter_event): Turn into...
2047 (linux_process_target::filter_event): ...this.
2048 (linux_wait_for_event_filtered): Turn into...
2049 (linux_process_target::wait_for_event_filtered): ...this.
2050 (linux_wait_for_event): Turn into...
2051 (linux_process_target::wait_for_event): ...this.
2052 (linux_wait_1): Turn into...
2053 (linux_process_target::wait_1): ...this.
2054 (wait_for_sigstop): Turn into...
2055 (linux_process_target::wait_for_sigstop): ...this.
2056 (move_out_of_jump_pad_callback): Turn into...
2057 (linux_process_target::move_out_of_jump_pad): ...this.
2058 (stop_all_lwps): Turn into...
2059 (linux_process_target::stop_all_lwps): ...this.
2060 (start_step_over): Turn into...
2061 (linux_process_target::start_step_over): ...this.
2062 (complete_ongoing_step_over): Turn into...
2063 (linux_process_target::complete_ongoing_step_over): ...this.
2064 (proceed_all_lwps): Turn into...
2065 (linux_process_target::proceed_all_lwps): ...this.
2066 (unstop_all_lwps): Turn into...
2067 (linux_process_target::unstop_all_lwps): ...this.
2069 * linux-low.h (class linux_process_target)
2070 <handle_extended_wait>
2071 <maybe_move_out_of_jump_pad>
2073 <wait_for_event_filtered>
2077 <move_out_of_jump_pad>
2080 <complete_ongoing_step_over>
2082 <unstop_all_lwps>: Declare.
2084 Update the callers below.
2086 * linux-low.cc (linux_process_target::attach): Update.
2087 (linux_process_target::stabilize_threads): Ditto.
2088 (linux_process_target::wait): Ditto.
2090 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2092 * linux-low.h (struct linux_target_ops): Update the comment for
2093 'cannot_store_register' to return 0 or 1.
2094 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2097 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2099 * config.in: Re-generate.
2100 * configure: Re-generate.
2102 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2104 * regcache.cc (find_register_by_number): Update.
2105 * tdesc.cc (init_target_desc): Likewise.
2106 * tdesc.h (target_desc::reg_defs): Likewise.
2108 2020-03-12 Tom Tromey <tom@tromey.com>
2110 * configure: Rebuild.
2111 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2112 (WIN32APILIBS): New subst.
2113 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2115 (gdbsupport/%.o): Remove target.
2116 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2117 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2118 (WIN32APILIBS): New variable.
2119 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2120 (gdbreplay$(EXEEXT)): Likewise.
2122 2020-03-12 Tom Tromey <tom@tromey.com>
2124 * config.in, configure: Rebuild.
2125 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2126 * acinclude.m4: Include gettext-sister.m4.
2127 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2129 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2130 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2132 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2134 * acinclude.m4: Update path to selftest.m4.
2136 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2138 * configure.ac: Don't source bfd/development.sh, move
2139 GDB_AC_COMMON higher.
2140 * configure: Re-generate.
2142 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2144 * configure: Re-generate.
2146 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2148 * configure: Re-generate.
2150 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2152 * .dir-locals.el: New file.
2154 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2156 * .gitattributes: New file.
2158 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2160 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2161 reply into an S reply.
2162 * server.cc (disable_packet_T): New global.
2163 (captured_main): Set new global when appropriate.
2164 * server.h (disable_packet_T): Declare.
2166 2020-02-21 Tom Tromey <tom@tromey.com>
2168 * Makefile.in (mostlyclean): New target.
2170 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2172 * target.h (struct process_stratum_target): Remove.
2173 (class process_target): Rename to ...
2174 (class process_stratum_target): ... this.
2175 * linux-low.h (class linux_process_target): Derive from
2176 'process_stratum_target'.
2177 * linux-low.cc (linux_target_ops): Remove.
2178 (initialize_low): Set the_target to the singleton instance of
2179 linux_process_target.
2180 * lynx-low.h (class lynx_process_target): Derive from
2181 'process_stratum_target'.
2182 * lynx-low.cc (lynx_target_ops): Remove.
2183 (initialize_low): Set the_target to the singleton instance of
2184 lynx_process_target.
2185 * nto-low.h (class nto_process_target): Derive from
2186 'process_stratum_target'.
2187 * nto-low.cc (nto_target_ops): Remove.
2188 (initialize_low): Set the_target to the singleton instance of
2190 * win32-low.h (class win32_process_target): Derive from
2191 'process_stratum_target'.
2192 * win32-low.cc (win32_target_ops): Remove.
2193 (initialize_low): Set the_target to the singleton instance of
2194 win32_process_target.
2196 Replace 'the_target->pt' with 'the_target' in the uses below.
2198 * hostio.cc (hostio_error)
2203 * linux-aarch32-low.cc (arm_breakpoint_at)
2204 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2205 * linux-arm-low.cc (arm_sigreturn_next_pc)
2207 (arm_get_syscall_trapinfo)
2208 * linux-cris-low.cc (cris_breakpoint_at)
2209 * linux-crisv32-low.cc (cris_breakpoint_at)
2210 * linux-low.cc (handle_extended_wait)
2213 (linux_process_target::breakpoint_kind_from_pc)
2215 * linux-m32r-low.cc (m32r_breakpoint_at)
2216 * linux-mips-low.cc (mips_breakpoint_at)
2217 * linux-nios2-low.cc (nios2_breakpoint_at)
2218 * linux-ppc-low.cc (ppc_breakpoint_at)
2219 * linux-s390-low.cc (s390_get_hwcap)
2220 * linux-sh-low.cc (sh_breakpoint_at)
2221 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2222 (sparc_store_gregset_from_stack)
2223 (sparc_breakpoint_at)
2224 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2225 * linux-tile-low.cc (tile_breakpoint_at)
2226 * linux-x86-low.cc (x86_breakpoint_at)
2227 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2228 * mem-break.cc (bp_size)
2230 (insert_memory_breakpoint)
2231 (set_raw_breakpoint_at)
2232 (delete_raw_breakpoint)
2234 (uninsert_raw_breakpoint)
2235 (reinsert_raw_breakpoint)
2236 (validate_inserted_breakpoint)
2237 * regcache.cc (regcache_read_pc)
2239 * remote-utils.cc (putpkt_binary_1)
2242 (prepare_resume_reply)
2243 * server.cc (handle_general_set)
2246 (handle_qxfer_exec_file)
2247 (handle_qxfer_libraries_svr4)
2248 (handle_qxfer_osdata)
2249 (handle_qxfer_siginfo)
2250 (handle_qxfer_fdpic)
2254 (queue_stop_reply_callback)
2256 * target.cc (prepare_to_access_memory)
2257 (done_accessing_memory)
2258 (read_inferior_memory)
2259 (target_write_memory)
2260 (target_stop_and_wait)
2262 (target_mourn_inferior)
2263 (target_continue_no_signal)
2265 (target_supports_multi_process)
2268 (target_create_inferior)
2269 (target_post_create_inferior)
2271 (target_supports_fork_events)
2272 (target_supports_vfork_events)
2273 (target_supports_exec_events)
2274 (target_handle_new_gdb_connection)
2277 (fetch_inferior_registers)
2278 (store_inferior_registers)
2280 (target_supports_non_stop)
2282 (target_process_qsupported)
2283 (target_supports_catch_syscall)
2284 (target_get_ipa_tdesc_idx)
2285 (target_supports_tracepoints)
2286 (target_supports_fast_tracepoints)
2287 (target_get_min_fast_tracepoint_insn_len)
2288 (target_thread_stopped)
2290 (target_unpause_all)
2291 (target_stabilize_threads)
2292 (target_install_fast_tracepoint_jump_pad)
2294 (target_supports_disable_randomization)
2295 (target_supports_agent)
2296 (target_enable_btrace)
2297 (target_disable_btrace)
2298 (target_read_btrace)
2299 (target_read_btrace_conf)
2300 (target_supports_range_stepping)
2301 (target_supports_stopped_by_sw_breakpoint)
2302 (target_stopped_by_sw_breakpoint)
2303 (target_supports_stopped_by_hw_breakpoint)
2304 (target_supports_hardware_single_step)
2305 (target_stopped_by_hw_breakpoint)
2306 (target_breakpoint_kind_from_pc)
2307 (target_breakpoint_kind_from_current_state)
2308 (target_supports_software_single_step)
2309 (target_core_of_thread)
2310 (target_thread_name)
2311 (target_thread_handle)
2312 * win32-low.cc (do_initial_child_stuff)
2314 Rename target op default definitions listed below.
2316 * target.cc (process_target::post_create_inferior): Rename as ...
2317 (process_stratum_target::post_create_inferior): ... this.
2318 (process_target::prepare_to_access_memory): Rename as ...
2319 (process_stratum_target::prepare_to_access_memory): ... this.
2320 (process_target::done_accessing_memory): Rename as ...
2321 (process_stratum_target::done_accessing_memory): ... this.
2322 (process_target::look_up_symbols): Rename as ...
2323 (process_stratum_target::look_up_symbols): ... this.
2324 (process_target::supports_read_auxv): Rename as ...
2325 (process_stratum_target::supports_read_auxv): ... this.
2326 (process_target::read_auxv): Rename as ...
2327 (process_stratum_target::read_auxv): ... this.
2328 (process_target::supports_z_point_type): Rename as ...
2329 (process_stratum_target::supports_z_point_type): ... this.
2330 (process_target::insert_point): Rename as ...
2331 (process_stratum_target::insert_point): ... this.
2332 (process_target::remove_point): Rename as ...
2333 (process_stratum_target::remove_point): ... this.
2334 (process_target::stopped_by_sw_breakpoint): Rename as ...
2335 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2336 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2337 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2338 (process_target::stopped_by_hw_breakpoint): Rename as ...
2339 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2340 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2341 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2342 (process_target::supports_hardware_single_step): Rename as ...
2343 (process_stratum_target::supports_hardware_single_step): ... this.
2344 (process_target::stopped_by_watchpoint): Rename as ...
2345 (process_stratum_target::stopped_by_watchpoint): ... this.
2346 (process_target::stopped_data_address): Rename as ...
2347 (process_stratum_target::stopped_data_address): ... this.
2348 (process_target::supports_read_offsets): Rename as ...
2349 (process_stratum_target::supports_read_offsets): ... this.
2350 (process_target::read_offsets): Rename as ...
2351 (process_stratum_target::read_offsets): ... this.
2352 (process_target::supports_get_tls_address): Rename as ...
2353 (process_stratum_target::supports_get_tls_address): ... this.
2354 (process_target::get_tls_address): Rename as ...
2355 (process_stratum_target::get_tls_address): ... this.
2356 (process_target::hostio_last_error): Rename as ...
2357 (process_stratum_target::hostio_last_error): ... this.
2358 (process_target::supports_qxfer_osdata): Rename as ...
2359 (process_stratum_target::supports_qxfer_osdata): ... this.
2360 (process_target::qxfer_osdata): Rename as ...
2361 (process_stratum_target::qxfer_osdata): ... this.
2362 (process_target::supports_qxfer_siginfo): Rename as ...
2363 (process_stratum_target::supports_qxfer_siginfo): ... this.
2364 (process_target::qxfer_siginfo): Rename as ...
2365 (process_stratum_target::qxfer_siginfo): ... this.
2366 (process_target::supports_non_stop): Rename as ...
2367 (process_stratum_target::supports_non_stop): ... this.
2368 (process_target::async): Rename as ...
2369 (process_stratum_target::async): ... this.
2370 (process_target::start_non_stop): Rename as ...
2371 (process_stratum_target::start_non_stop): ... this.
2372 (process_target::supports_multi_process): Rename as ...
2373 (process_stratum_target::supports_multi_process): ... this.
2374 (process_target::supports_fork_events): Rename as ...
2375 (process_stratum_target::supports_fork_events): ... this.
2376 (process_target::supports_vfork_events): Rename as ...
2377 (process_stratum_target::supports_vfork_events): ... this.
2378 (process_target::supports_exec_events): Rename as ...
2379 (process_stratum_target::supports_exec_events): ... this.
2380 (process_target::handle_new_gdb_connection): Rename as ...
2381 (process_stratum_target::handle_new_gdb_connection): ... this.
2382 (process_target::handle_monitor_command): Rename as ...
2383 (process_stratum_target::handle_monitor_command): ... this.
2384 (process_target::core_of_thread): Rename as ...
2385 (process_stratum_target::core_of_thread): ... this.
2386 (process_target::supports_read_loadmap): Rename as ...
2387 (process_stratum_target::supports_read_loadmap): ... this.
2388 (process_target::read_loadmap): Rename as ...
2389 (process_stratum_target::read_loadmap): ... this.
2390 (process_target::process_qsupported): Rename as ...
2391 (process_stratum_target::process_qsupported): ... this.
2392 (process_target::supports_tracepoints): Rename as ...
2393 (process_stratum_target::supports_tracepoints): ... this.
2394 (process_target::read_pc): Rename as ...
2395 (process_stratum_target::read_pc): ... this.
2396 (process_target::write_pc): Rename as ...
2397 (process_stratum_target::write_pc): ... this.
2398 (process_target::supports_thread_stopped): Rename as ...
2399 (process_stratum_target::supports_thread_stopped): ... this.
2400 (process_target::thread_stopped): Rename as ...
2401 (process_stratum_target::thread_stopped): ... this.
2402 (process_target::supports_get_tib_address): Rename as ...
2403 (process_stratum_target::supports_get_tib_address): ... this.
2404 (process_target::get_tib_address): Rename as ...
2405 (process_stratum_target::get_tib_address): ... this.
2406 (process_target::pause_all): Rename as ...
2407 (process_stratum_target::pause_all): ... this.
2408 (process_target::unpause_all): Rename as ...
2409 (process_stratum_target::unpause_all): ... this.
2410 (process_target::stabilize_threads): Rename as ...
2411 (process_stratum_target::stabilize_threads): ... this.
2412 (process_target::supports_fast_tracepoints): Rename as ...
2413 (process_stratum_target::supports_fast_tracepoints): ... this.
2414 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2415 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2416 (process_target::emit_ops): Rename as ...
2417 (process_stratum_target::emit_ops): ... this.
2418 (process_target::supports_disable_randomization): Rename as ...
2419 (process_stratum_target::supports_disable_randomization): ... this.
2420 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2421 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2422 (process_target::qxfer_libraries_svr4): Rename as ...
2423 (process_stratum_target::qxfer_libraries_svr4): ... this.
2424 (process_target::supports_agent): Rename as ...
2425 (process_stratum_target::supports_agent): ... this.
2426 (process_target::enable_btrace): Rename as ...
2427 (process_stratum_target::enable_btrace): ... this.
2428 (process_target::disable_btrace): Rename as ...
2429 (process_stratum_target::disable_btrace): ... this.
2430 (process_target::read_btrace): Rename as ...
2431 (process_stratum_target::read_btrace): ... this.
2432 (process_target::read_btrace_conf): Rename as ...
2433 (process_stratum_target::read_btrace_conf): ... this.
2434 (process_target::supports_range_stepping): Rename as ...
2435 (process_stratum_target::supports_range_stepping): ... this.
2436 (process_target::supports_pid_to_exec_file): Rename as ...
2437 (process_stratum_target::supports_pid_to_exec_file): ... this.
2438 (process_target::pid_to_exec_file): Rename as ...
2439 (process_stratum_target::pid_to_exec_file): ... this.
2440 (process_target::supports_multifs): Rename as ...
2441 (process_stratum_target::supports_multifs): ... this.
2442 (process_target::multifs_open): Rename as ...
2443 (process_stratum_target::multifs_open): ... this.
2444 (process_target::multifs_unlink): Rename as ...
2445 (process_stratum_target::multifs_unlink): ... this.
2446 (process_target::multifs_readlink): Rename as ...
2447 (process_stratum_target::multifs_readlink): ... this.
2448 (process_target::breakpoint_kind_from_pc): Rename as ...
2449 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2450 (process_target::breakpoint_kind_from_current_state): Rename as ...
2451 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2452 (process_target::thread_name): Rename as ...
2453 (process_stratum_target::thread_name): ... this.
2454 (process_target::thread_handle): Rename as ...
2455 (process_stratum_target::thread_handle): ... this.
2456 (process_target::supports_software_single_step): Rename as ...
2457 (process_stratum_target::supports_software_single_step): ... this.
2458 (process_target::supports_catch_syscall): Rename as ...
2459 (process_stratum_target::supports_catch_syscall): ... this.
2460 (process_target::get_ipa_tdesc_idx): Rename as ...
2461 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2463 2020-02-20 Pedro Alves <palves@redhat.com>
2465 * target.cc (set_target_ops): Simply copy the given target pointer
2466 instead of creating a copy of the pointed object.
2468 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2470 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2473 * target.h (struct process_stratum_target): Remove the target op.
2474 (class process_target): Add the target op.
2475 (target_get_ipa_tdesc_idx): Update the macro.
2476 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2478 Update the derived classes and callers below.
2480 * linux-low.cc (linux_target_ops): Update.
2481 (linux_get_ipa_tdesc_idx): Turn into ...
2482 (linux_process_target::get_ipa_tdesc_idx): ... this.
2483 * linux-low.h (class linux_process_target): Update.
2484 * lynx-low.cc (lynx_target_ops): Update.
2485 * nto-low.cc (nto_target_ops): Update.
2486 * win32-low.cc (win32_target_ops): Update.
2488 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2490 Turn process_stratum_target's supports_catch_syscall op into a
2491 method of process_target.
2493 * target.h (struct process_stratum_target): Remove the target op.
2494 (class process_target): Add the target op.
2495 (target_supports_catch_syscall): Update the macro.
2496 * target.cc (process_target::supports_catch_syscall): Define.
2498 Update the derived classes and callers below.
2500 * linux-low.cc (linux_target_ops): Update.
2501 (linux_supports_catch_syscall): Turn into ...
2502 (linux_process_target::supports_catch_syscall): ... this.
2503 * linux-low.h (class linux_process_target): Update.
2504 * lynx-low.cc (lynx_target_ops): Update.
2505 * nto-low.cc (nto_target_ops): Update.
2506 * win32-low.cc (win32_target_ops): Update.
2508 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2510 Turn process_stratum_target's supports_software_single_step op
2511 into a method of process_target.
2513 * target.h (struct process_stratum_target): Remove the target op.
2514 (class process_target): Add the target op.
2515 (target_supports_software_single_step): Update the macro.
2516 * target.cc (process_target::supports_software_single_step): Define.
2518 Update the derived classes and callers below.
2520 * linux-low.cc (linux_target_ops): Update.
2521 (linux_supports_software_single_step): Turn into ...
2522 (linux_process_target::supports_software_single_step): ... this.
2523 * linux-low.h (class linux_process_target): Update.
2524 * lynx-low.cc (lynx_target_ops): Update.
2525 * nto-low.cc (nto_target_ops): Update.
2526 * win32-low.cc (win32_target_ops): Update.
2528 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2530 Turn process_stratum_target's thread_name and thread_handle ops
2531 into methods of process_target.
2533 * target.h (struct process_stratum_target): Remove the target ops.
2534 (class process_target): Add the target ops.
2535 (target_thread_name): Update the macro.
2536 (target_thread_handle): Update the macro.
2537 * target.cc (process_target::thread_name): Define.
2538 (process_target::thread_handle): Define.
2540 Update the derived classes and callers below.
2542 * linux-low.cc (linux_target_ops): Update.
2543 (linux_process_target::thread_name): Define.
2544 (linux_process_target::thread_handle): Define.
2545 * linux-low.h (class linux_process_target): Update.
2546 * lynx-low.cc (lynx_target_ops): Update.
2547 * nto-low.cc (nto_target_ops): Update.
2548 * win32-low.cc (win32_target_ops): Update.
2550 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2552 Turn process_stratum_target's breakpoint_kind_from_pc,
2553 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2554 ops into methods of process_target.
2556 * target.h (struct process_stratum_target): Remove the target op.
2557 (class process_target): Add the target op.
2558 (target_breakpoint_kind_from_pc): Update the macro.
2559 (target_breakpoint_kind_from_current_state): Update the macro.
2560 (default_breakpoint_kind_from_pc): Remove declaration.
2561 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2562 (process_target::breakpoint_kind_from_pc): ... this.
2563 (process_target::breakpoint_kind_from_current_state): Define.
2565 Update the derived classes and callers below.
2567 * mem-break.cc (bp_size): Update.
2568 (bp_opcode): Update.
2569 * linux-low.cc (linux_target_ops): Update.
2570 (linux_wait_1): Update.
2571 (linux_breakpoint_kind_from_pc): Turn into ...
2572 (linux_process_target::breakpoint_kind_from_pc): ... this.
2573 (linux_sw_breakpoint_from_kind): Turn into ...
2574 (linux_process_target::sw_breakpoint_from_kind): ... this.
2575 (linux_breakpoint_kind_from_current_state): Turn into ...
2576 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2577 * linux-low.h (class linux_process_target): Update.
2578 * lynx-low.cc (lynx_target_ops): Update.
2579 (lynx_process_target::sw_breakpoint_from_kind): Define.
2580 * lynx-low.h (class lynx_process_target): Update.
2581 * nto-low.cc (nto_target_ops): Update.
2582 (nto_sw_breakpoint_from_kind): Turn into ...
2583 (nto_process_target::sw_breakpoint_from_kind): ... this.
2584 * nto-low.h (class nto_process_target): Update.
2585 * win32-low.cc (win32_target_ops): Update.
2586 (win32_sw_breakpoint_from_kind): Turn into ...
2587 (win32_process_target::sw_breakpoint_from_kind): ... this.
2588 * win32-low.h (class win32_process_target): Update.
2590 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2592 Turn process_stratum_target's multifs_open, multifs_readlink,
2593 multifs_unlink ops into methods of process_target.
2595 * target.h (struct process_stratum_target): Remove the target ops.
2596 (class process_target): Add the target ops. Also add
2598 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2600 (process_target::supports_multifs): Define.
2601 (process_target::multifs_open): Define.
2602 (process_target::multifs_readlink): Define.
2603 (process_target::multifs_unlink): Define.
2605 Update the derived classes and callers below.
2607 * hostio.cc (handle_setfs): Update.
2608 (handle_open): Update.
2609 (handle_unlink): Update.
2610 (handle_readlink): Update.
2611 * linux-low.cc (linux_target_ops): Update.
2612 (linux_process_target::supports_multifs): Define.
2613 (linux_process_target::multifs_open): Define.
2614 (linux_process_target::multifs_readlink): Define.
2615 (linux_process_target::multifs_unlink): Define.
2616 * linux-low.h (class linux_process_target): Update.
2617 * lynx-low.cc (lynx_target_ops): Update.
2618 * nto-low.cc (nto_target_ops): Update.
2619 * win32-low.cc (win32_target_ops): Update.
2621 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2623 Turn process_stratum_target's pid_to_exec_file op into a method
2626 * target.h (struct process_stratum_target): Remove the target op.
2627 (class process_target): Add the target op. Also add
2628 'supports_pid_to_exec_file'.
2629 * target.cc (process_target::pid_to_exec_file): Define.
2630 (process_target::supports_pid_to_exec_file): Define.
2632 Update the derived classes and callers below.
2634 * server.cc (handle_qxfer_exec_file): Update.
2635 (handle_query): Update.
2636 * linux-low.cc (linux_target_ops): Update.
2637 (linux_process_target::supports_pid_to_exec_file): Define.
2638 (linux_process_target::pid_to_exec_file): 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 supports_range_stepping op into a
2647 method of process_target.
2649 * target.h (struct process_stratum_target): Remove the target op.
2650 (class process_target): Add the target op.
2651 (target_supports_range_stepping): Update the macro.
2652 * target.cc (process_target::supports_range_stepping): Define.
2654 Update the derived classes and callers below.
2656 * linux-low.cc (linux_target_ops): Update.
2657 (linux_supports_range_stepping): Turn into ...
2658 (linux_process_target::supports_range_stepping): ... this.
2659 * linux-low.h (class linux_process_target): Update.
2660 * lynx-low.cc (lynx_target_ops): Update.
2661 * nto-low.cc (nto_target_ops): Update.
2662 * win32-low.cc (win32_target_ops): Update.
2664 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2666 Turn process_stratum_target's btrace-related ops (enable_btrace,
2667 disable_btrace, read_btrace, read_btrace_conf) into methods of
2670 * target.h (struct process_stratum_target): Remove the target ops.
2671 (class process_target): Add the target ops.
2672 (target_enable_btrace): Update.
2673 (target_disable_btrace): Update.
2674 (target_read_btrace): Update.
2675 (target_read_btrace_conf): Update.
2676 * target.cc (process_target::enable_btrace): Define.
2677 (process_target::disable_btrace): Define.
2678 (process_target::read_btrace): Define.
2679 (process_target::read_btrace_conf): Define.
2681 Update the derived classes and callers below.
2683 * linux-low.cc (linux_target_ops): Update.
2684 (linux_process_target:enable_btrace): Define as a wrapper around
2685 linux_enable_btrace.
2686 (linux_low_disable_btrace): Turn into ...
2687 (linux_process_target::disable_btrace): ... this.
2688 (linux_low_read_btrace): Turn into ...
2689 (linux_process_target::read_btrace): ... this.
2690 (linux_low_btrace_conf): Turn into ...
2691 (linux_process_target::read_btrace_conf): ... this.
2692 * linux-low.h (class linux_process_target): Update.
2693 * lynx-low.cc (lynx_target_ops): Update.
2694 * nto-low.cc (nto_target_ops): Update.
2695 * win32-low.cc (win32_target_ops): Update.
2697 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2699 Turn process_stratum_target's supports_agent op into a method of
2702 * target.h (struct process_stratum_target): Remove the target op.
2703 (class process_target): Add the target op.
2704 (target_supports_agent): Update the macro.
2705 * target.cc (process_target::supports_agent): Define.
2707 Update the derived classes and callers below.
2709 * linux-low.cc (linux_target_ops): Update.
2710 (linux_supports_agent): Turn into ...
2711 (linux_process_target::supports_agent): ... this.
2712 * linux-low.h (class linux_process_target): Update.
2713 * lynx-low.cc (lynx_target_ops): Update.
2714 * nto-low.cc (nto_target_ops): Update.
2715 * win32-low.cc (win32_target_ops): Update.
2717 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2719 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2720 method of process_target.
2722 * target.h (struct process_stratum_target): Remove the target op.
2723 (class process_target): Add the target op. Also add
2724 'supports_qxfer_libraries_svr4'.
2725 * target.cc (process_target::qxfer_libraries_svr4): Define.
2726 (process_target::supports_qxfer_libraries_svr4): Define.
2728 Update the derived classes and callers below.
2730 * server.cc (handle_qxfer_libraries_svr4): Update.
2731 (handle_query): Update.
2732 * linux-low.cc (linux_target_ops): Update.
2733 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2734 (linux_qxfer_libraries_svr4): Turn into ...
2735 (linux_process_target::qxfer_libraries_svr4): ... this.
2736 * linux-low.h (class linux_process_target): Update.
2737 * lynx-low.cc (lynx_target_ops): Update.
2738 * nto-low.cc (nto_target_ops): Update.
2739 * win32-low.cc (win32_target_ops): Update.
2741 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2743 Turn process_stratum_target's supports_disable_randomization op
2744 into a method of process_target.
2746 * target.h (struct process_stratum_target): Remove the target op.
2747 (class process_target): Add the target op.
2748 (target_supports_disable_randomization): Update the macro.
2749 * target.cc (process_target::supports_disable_randomization): Define.
2751 Update the derived classes and callers below.
2753 * linux-low.cc (linux_target_ops): Update.
2754 (linux_supports_disable_randomization): Turn into ...
2755 (linux_process_target::supports_disable_randomization): ... this.
2756 * linux-low.h (class linux_process_target): Update.
2757 * lynx-low.cc (lynx_target_ops): Update.
2758 * nto-low.cc (nto_target_ops): Update.
2759 * win32-low.cc (win32_target_ops): Update.
2761 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2763 Turn process_stratum_target's emit_ops op into a method of
2766 * target.h (struct process_stratum_target): Remove the target op.
2767 (class process_target): Add the target op.
2768 (target_emit_ops): Update the macro.
2769 * target.cc (process_target::emit_ops): Define.
2771 Update the derived classes and callers below.
2773 * linux-low.cc (linux_target_ops): Update.
2774 (linux_emit_ops): Turn into ...
2775 (linux_process_target::emit_ops): ... this.
2776 * linux-low.h (class linux_process_target): Update.
2777 * lynx-low.cc (lynx_target_ops): Update.
2778 * nto-low.cc (nto_target_ops): Update.
2779 * win32-low.cc (win32_target_ops): Update.
2781 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2783 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2784 and get_min_fast_tracepoint_insn_len ops into methods of
2787 * target.h (struct process_stratum_target): Remove the target ops.
2788 (class process_target): Add the target ops. Also add
2789 'supports_fast_tracepoints'.
2790 (target_supports_fast_tracepoints): Update the macro.
2791 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2792 (install_fast_tracepoint_jump_pad): Update and rename the macro
2794 (target_install_fast_tracepoint_jump_pad): ... this.
2795 * target.cc (process_target::supports_fast_tracepoints): Define.
2796 (process_target::install_fast_tracepoint_jump_pad): Define.
2797 (process_target::get_min_fast_tracepoint_insn_len): Define.
2799 Update the derived classes and callers below.
2801 * tracepoint.cc (install_fast_tracepoint): Update.
2802 * linux-low.cc (linux_target_ops): Update.
2803 (linux_process_target::supports_fast_tracepoints): Define.
2804 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2805 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2806 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2807 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2808 * linux-low.h (class linux_process_target): Update.
2809 * lynx-low.cc (lynx_target_ops): Update.
2810 * nto-low.cc (nto_target_ops): Update.
2811 * win32-low.cc (win32_target_ops): Update.
2813 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2815 Turn process_stratum_target's stabilize_threads op into a
2816 method of process_target.
2818 * target.h (struct process_stratum_target): Remove the target op.
2819 (class process_target): Add the target op.
2820 (target_stabilize_threads): Update the macro.
2821 * target.cc (process_target::stabilize_threads): Define.
2823 Update the derived classes and callers below.
2825 * server.cc (handle_status): Update.
2826 * tracepoint.cc (cmd_qtdp): Update.
2827 (cmd_qtstart): Update.
2828 * linux-low.cc (linux_target_ops): Update.
2829 (linux_stabilize_threads): Turn into ...
2830 (linux_process_target::stabilize_threads): ... this.
2831 (linux_wait_1): Update.
2832 * linux-low.h (class linux_process_target): Update.
2833 * lynx-low.cc (lynx_target_ops): Update.
2834 * nto-low.cc (nto_target_ops): Update.
2835 * win32-low.cc (win32_target_ops): Update.
2837 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2839 Turn process_stratum_target's pause_all and unpause_all ops
2840 into methods of process_target.
2842 * target.h (struct process_stratum_target): Remove the target ops.
2843 (class process_target): Add the target ops.
2844 (pause_all): Update the macro and rename to...
2845 (target_pause_all): ... this.
2846 (unpause_all): Update the macro and rename to...
2847 (target_unpause_all): ... this.
2848 * target.cc (process_target::pause_all): Define.
2849 (process_target::unpause_all): Define.
2851 Update the derived classes and callers below.
2853 * server.cc (handle_status): Update.
2854 * tracepoint.cc (clear_installed_tracepoints): Update.
2856 (cmd_qtstart): Update.
2857 (stop_tracing): Update.
2858 (cmd_qtstatus): Update.
2859 (upload_fast_traceframes): Update.
2860 (run_inferior_command): Update.
2861 * linux-low.cc (linux_target_ops): Update.
2862 (linux_pause_all): Turn into ...
2863 (linux_process_target::pause_all): ... this.
2864 (linux_unpause_all): Turn into ...
2865 (linux_process_target::unpause_all): ... this.
2866 (linux_process_target::prepare_to_access_memory): Update.
2867 (linux_process_target::done_accessing_memory): Update.
2868 * linux-low.h (class linux_process_target): Update.
2869 * lynx-low.cc (lynx_target_ops): Update.
2870 * nto-low.cc (nto_target_ops): Update.
2871 * win32-low.cc (win32_target_ops): Update.
2873 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2875 Turn process_stratum_target's get_tib_address op into a method of
2878 * target.h (struct process_stratum_target): Remove the target op.
2879 (class process_target): Add the target op. Also add
2880 'supports_get_tib_address'.
2881 * target.cc (process_target::get_tib_address): Define.
2882 (process_target::supports_get_tib_address): Define.
2884 Update the derived classes and callers below.
2886 * server.cc (handle_query): Update.
2887 * linux-low.cc (win32_target_ops): Update.
2888 * lynx-low.cc (lynx_target_ops): Update.
2889 * nto-low.cc (nto_target_ops): Update.
2890 * win32-low.cc (win32_target_ops): Update.
2891 (win32_process_target::supports_get_tib_address): Define.
2892 (win32_get_tib_address): Turn into ...
2893 (win32_process_target::get_tib_address): ... this.
2894 * win32-low.h (class win32_process_target): Update.
2896 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2898 Turn process_stratum_target's thread_stopped 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_thread_stopped'.
2904 (target_thread_stopped): Update the macro.
2905 * target.cc (process_target::thread_stopped): Define.
2906 (process_target::supports_thread_stopped): Define.
2907 (prepare_to_access_memory): Update.
2909 Update the derived classes and callers below.
2911 * server.cc (queue_stop_reply_callback): Update.
2912 * linux-low.cc (linux_target_ops): Update.
2913 (linux_process_target::supports_thread_stopped): Define.
2914 (linux_thread_stopped): Turn into ...
2915 (linux_process_target::thread_stopped): ... this.
2916 * linux-low.h (class linux_process_target): Update.
2917 * lynx-low.cc (lynx_target_ops): Update.
2918 * nto-low.cc (nto_target_ops): Update.
2919 * win32-low.cc (win32_target_ops): Update.
2921 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2923 Turn process_stratum_target's read_pc and write_pc ops into
2924 methods of process_target.
2926 * target.h (struct process_stratum_target): Remove the target ops.
2927 (class process_target): Add the target ops.
2928 * target.cc (process_target::read_pc): Define.
2929 (process_target::write_pc): Define.
2931 Update the derived classes and callers below.
2933 * regcache.cc (regcache_read_pc): Update.
2934 (regcache_write_pc): Update.
2935 * linux-low.cc (linux_target_ops): Update.
2936 (linux_read_pc): Turn into ...
2937 (linux_process_target::read_pc): ... this.
2938 (linux_write_pc): Turn into ...
2939 (linux_process_target::write_pc): ... this.
2940 * linux-low.h (class linux_process_target): Update.
2941 * lynx-low.cc (lynx_target_ops): Update.
2942 * nto-low.cc (nto_target_ops): Update.
2943 * win32-low.cc (win32_target_ops): Update.
2945 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2947 Turn process_stratum_target's supports_tracepoints op into a
2948 method of process_target.
2950 * target.h (struct process_stratum_target): Remove the target op.
2951 (class process_target): Add the target op.
2952 (target_supports_tracepoints): Update the macro.
2953 * target.cc (process_target::supports_tracepoints): Define.
2955 Update the derived classes and callers below.
2957 * linux-low.cc (linux_target_ops): Update.
2958 (linux_supports_tracepoints): Turn into ...
2959 (linux_process_target::supports_tracepoints): ... this.
2960 * linux-low.h (class linux_process_target): Update.
2961 * lynx-low.cc (lynx_target_ops): Update.
2962 * nto-low.cc (nto_target_ops): Update.
2963 * win32-low.cc (win32_target_ops): Update.
2965 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2967 Turn process_stratum_target's process_qsupported op into a method
2970 * target.h (struct process_stratum_target): Remove the target op.
2971 (class process_target): Add the target op.
2972 (target_process_qsupported): Update the macro.
2973 * target.cc (process_target::process_qsupported): Define.
2975 Update the derived classes and callers below.
2977 * linux-low.cc (linux_target_ops): Update.
2978 (linux_process_qsupported): Turn into ...
2979 (linux_process_target::process_qsupported): ... this.
2980 * linux-low.h (class linux_process_target): Update.
2981 * lynx-low.cc (lynx_target_ops): Update.
2982 * nto-low.cc (nto_target_ops): Update.
2983 * win32-low.cc (win32_target_ops): Update.
2985 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2987 Turn process_stratum_target's read_loadmap op into a method of
2990 * target.h (struct process_stratum_target): Remove the target op.
2991 (class process_target): Add the target op. Also add
2992 'supports_read_loadmap'.
2993 * target.cc (process_target::read_loadmap): Define.
2994 (process_target::supports_read_loadmap): Define.
2996 Update the derived classes and callers below.
2998 * server.cc (handle_qxfer_fdpic): Update.
2999 (handle_query): Update.
3000 * linux-low.cc (linux_target_ops): Update.
3001 (linux_process_target::supports_read_loadmap): Define.
3002 (linux_read_loadmap): Turn into ...
3003 (linux_process_target::read_loadmap): ... this.
3004 * linux-low.h (class linux_process_target): Update.
3005 * lynx-low.cc (lynx_target_ops): Update.
3006 * nto-low.cc (nto_target_ops): Update.
3007 * win32-low.cc (win32_target_ops): Update.
3009 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3011 Turn process_stratum_target's core_of_thread op into a method of
3014 * target.h (struct process_stratum_target): Remove the target op.
3015 (class process_target): Add the target op.
3016 (target_core_of_thread): Update the macro.
3017 * target.cc (process_target::core_of_thread): Define.
3019 Update the derived classes and callers below.
3021 * linux-low.cc (linux_target_ops): Update.
3022 (linux_process_target::core_of_thread): Define.
3023 * linux-low.h (class linux_process_target): Update.
3024 * lynx-low.cc (lynx_target_ops): Update.
3025 * nto-low.cc (nto_target_ops): Update.
3026 * win32-low.cc (win32_target_ops): Update.
3028 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3030 Turn process_stratum_target's handle_monitor_command op into a
3031 method of process_target.
3033 * target.h (struct process_stratum_target): Remove the target op.
3034 (class process_target): Add the target op.
3035 (target_handle_monitor_command): Update the macro.
3036 * target.cc (process_target::handle_monitor_command): Define.
3038 Update the derived classes and callers below.
3040 * server.cc (handle_query): Update.
3041 * linux-low.cc (linux_target_ops): Update.
3042 (linux_process_target::handle_monitor_command): Define.
3043 * linux-low.h (class linux_process_target): Update.
3044 * lynx-low.cc (lynx_target_ops): Update.
3045 * nto-low.cc (nto_target_ops): Update.
3046 * win32-low.cc (win32_target_ops): Update.
3048 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3050 Turn process_stratum_target's handle_new_gdb_connection op into a
3051 method of process_target.
3053 * target.h (struct process_stratum_target): Remove the target op.
3054 (class process_target): Add the target op.
3055 (target_handle_new_gdb_connection): Update the macro.
3056 * target.cc (process_target::handle_new_gdb_connection): Define.
3058 Update the derived classes and callers below.
3060 * linux-low.cc (linux_target_ops): Update.
3061 (linux_handle_new_gdb_connection): Turn into ...
3062 (linux_process_target::handle_new_gdb_connection): ... this.
3063 * linux-low.h (class linux_process_target): Update.
3064 * lynx-low.cc (lynx_target_ops): Update.
3065 * nto-low.cc (nto_target_ops): Update.
3066 * win32-low.cc (win32_target_ops): Update.
3068 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3070 Turn process_stratum_target's supports_fork_events,
3071 supports_vfork_events, and supports_exec_events ops into methods
3074 * target.h (struct process_stratum_target): Remove the target ops.
3075 (class process_target): Add the target ops.
3076 (target_supports_fork_events): Update the macro.
3077 (target_supports_vfork_events): Update the macro.
3078 (target_supports_exec_events): Update the macro.
3079 * target.cc (process_target::supports_fork_events): Define.
3080 (process_target::supports_vfork_events): Define.
3081 (process_target::supports_exec_events): Define.
3083 Update the derived classes and callers below.
3085 * linux-low.cc (linux_target_ops): Update.
3086 (linux_supports_fork_events): Turn into ...
3087 (linux_process_target::supports_fork_events): ... this.
3088 (linux_supports_vfork_events): Turn into ...
3089 (linux_process_target::supports_vfork_events): ... this.
3090 (linux_supports_exec_events): Turn into ...
3091 (linux_process_target::supports_exec_events): ... this.
3092 * linux-low.h (class linux_process_target): Update.
3093 * lynx-low.cc (lynx_target_ops): Update.
3094 * nto-low.cc (nto_target_ops): Update.
3095 * win32-low.cc (win32_target_ops): Update.
3097 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3099 Turn process_stratum_target's supports_multi_process op into a
3100 method of process_target.
3102 * target.h (struct process_stratum_target): Remove the target op.
3103 (class process_target): Add the target op.
3104 * target.cc (process_target::supports_multi_process): Define.
3105 (target_supports_multi_process): Update.
3107 Update the derived classes and callers below.
3109 * linux-low.cc (linux_target_ops): Update.
3110 (linux_supports_multi_process): Turn into ...
3111 (linux_process_target::supports_multi_process): ... this.
3112 * linux-low.h (class linux_process_target): Update.
3113 * lynx-low.cc (lynx_target_ops): Update.
3114 * nto-low.cc (nto_target_ops): Update.
3115 * win32-low.cc (win32_target_ops): Update.
3117 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3119 Turn process_stratum_target's supports_non_stop, async, and
3120 start_non_stop ops into methods of process_target.
3122 * target.h (struct process_stratum_target): Remove the target ops.
3123 (class process_target): Add the target ops.
3124 (target_supports_non_stop): Update the macro.
3125 (target_async): Update the macro.
3126 (start_non_stop): Remove declaration.
3127 * target.cc (process_target::supports_non_stop): Define.
3128 (process_target::async): Define.
3129 (process_target::start_non_stop): Define.
3130 (start_non_stop): Remove.
3132 Update the derived classes and callers below.
3134 * server.cc (handle_qxfer_siginfo): Update.
3135 (handle_query): Update.
3136 * linux-low.cc (linux_target_ops): Update.
3137 (linux_supports_non_stop): Turn into ...
3138 (linux_process_target::supports_non_stop): ... this.
3139 (linux_async): Turn into ...
3140 (linux_process_target::async): ... this.
3141 (linux_start_non_stop): Turn into ...
3142 (linux_process_target::start_non_stop): ... this.
3143 * linux-low.h (class linux_process_target): Update.
3144 * lynx-low.cc (lynx_target_ops): Update.
3145 * nto-low.cc (nto_target_ops): Update.
3146 (nto_supports_non_stop): Remove; rely on the default behavior
3148 * win32-low.cc (win32_target_ops): Update.
3150 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3152 Turn process_stratum_target's qxfer_siginfo op into a method of
3155 * target.h (struct process_stratum_target): Remove the target op.
3156 (class process_target): Add the target op. Also add
3157 'supports_qxfer_siginfo'.
3158 * target.cc (process_target::qxfer_siginfo): Define.
3159 (process_target::supports_qxfer_siginfo): Define.
3161 Update the derived classes and callers below.
3163 * server.cc (handle_qxfer_siginfo): Update.
3164 (handle_query): Update.
3165 * linux-low.cc (linux_target_ops): Update.
3166 (linux_process_target::supports_qxfer_siginfo): Define.
3167 (linux_xfer_siginfo): Turn into ...
3168 (linux_process_target::qxfer_siginfo): ... this.
3169 * linux-low.h (class linux_process_target): Update.
3170 * lynx-low.cc (lynx_target_ops): Update.
3171 * nto-low.cc (nto_target_ops): Update.
3172 * win32-low.cc (win32_target_ops): Update.
3174 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3176 Turn process_stratum_target's qxfer_osdata op into a method of
3179 * target.h (struct process_stratum_target): Remove the target op.
3180 (class process_target): Add the target op. Also add
3181 'supports_qxfer_osdata'.
3182 * target.cc (process_target::qxfer_osdata): Define.
3183 (process_target::supports_qxfer_osdata): Define.
3185 Update the derived classes and callers below.
3187 * server.cc (handle_qxfer_osdata): Update.
3188 (handle_query): Update.
3189 * linux-low.cc (linux_target_ops): Update.
3190 (linux_process_target::supports_qxfer_osdata): Define.
3191 (linux_qxfer_osdata): Turn into ...
3192 (linux_process_target::qxfer_osdata): ... this.
3193 * linux-low.h (class linux_process_target): Update.
3194 * lynx-low.cc (lynx_target_ops): Update.
3195 * nto-low.cc (nto_target_ops): Update.
3196 * win32-low.cc (win32_target_ops): Update.
3198 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3200 Turn process_stratum_target's hostio_last_error op into a
3201 method of process_target.
3203 * target.h (struct process_stratum_target): Remove the target op.
3204 (class process_target): Add the target op.
3205 * target.cc: Add "hostio.h" to includes.
3206 (process_target::hostio_last_error): Define.
3208 Update the derived classes and callers below.
3210 * hostio.cc (hostio_error): Update.
3211 * linux-low.cc: Remove "hostio.h" from includes.
3212 (linux_target_ops): Update.
3213 * lynx-low.cc (lynx_target_ops): Update.
3214 * nto-low.cc (nto_target_ops): Update.
3215 * win32-low.h (class win32_process_target): Update.
3216 * win32-low.cc (win32_target_ops): Update.
3217 (wince_hostio_last_error): Turn into ...
3218 (win32_process_target::hostio_last_error): ... this.
3220 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3222 Turn process_stratum_target's get_tls_address op into a method of
3225 * target.h (struct process_stratum_target): Remove the target op.
3226 (class process_target): Add the target op. Also add
3227 'supports_get_tls_address'.
3228 * target.cc (process_target::get_tls_address): Define.
3229 (process_target::supports_get_tls_address): Define.
3231 Update the derived classes and callers below.
3233 * server.cc (handle_query): Update.
3234 * linux-low.cc (linux_target_ops): Update.
3235 (linux_process_target::supports_get_tls_address): Define.
3236 (linux_process_target::get_tls_address): Define.
3237 * linux-low.h (class linux_process_target): Update.
3238 * lynx-low.cc (lynx_target_ops): Update.
3239 * nto-low.cc (nto_target_ops): Update.
3240 * win32-low.cc (win32_target_ops): Update.
3242 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3244 Turn process_stratum_target's read_offsets op into a method of
3247 * target.h (struct process_stratum_target): Remove the target op.
3248 (class process_target): Add the target op. Also add
3249 'supports_read_offsets'.
3250 * target.cc (process_target::read_offsets): Define.
3251 (process_target::supports_read_offsets): Define.
3253 Update the derived classes and callers below.
3255 * server.cc (handle_query): Update.
3256 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3257 (linux_target_ops): Update.
3258 (linux_process_target::supports_read_offsets): Define.
3259 (linux_read_offsets): Turn into ...
3260 (linux_process_target::read_offsets): ... this.
3261 * linux-low.h (class linux_process_target): Update.
3262 * lynx-low.cc (lynx_target_ops): Update.
3263 * nto-low.cc (nto_target_ops): Update.
3264 * win32-low.cc (win32_target_ops): Update.
3266 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3268 Turn process_stratum_target's stopped_by_watchpoint and
3269 stopped_data_address ops into methods of process_target.
3271 * target.h (struct process_stratum_target): Remove the target ops.
3272 (class process_target): Add the target ops.
3273 * target.cc (process_target::stopped_by_watchpoint): Define.
3274 (process_target::stopped_data_address): Define.
3276 Update the derived classes and callers below.
3278 * remote-utils.cc (prepare_resume_reply): Update.
3279 * linux-low.cc (linux_target_ops): Update.
3280 (linux_stopped_by_watchpoint): Turn into ...
3281 (linux_process_target::stopped_by_watchpoint): ... this.
3282 (linux_stopped_data_address): Turn into ...
3283 (linux_process_target::stopped_data_address): ... 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 (nto_stopped_by_watchpoint): Turn into ...
3288 (nto_process_target::stopped_by_watchpoint): ... this.
3289 (nto_stopped_data_address): Turn into ...
3290 (nto_process_target::stopped_data_address): ... this.
3291 * nto-low.h (class nto_process_target): Update.
3292 * win32-low.cc (win32_target_ops): Update.
3293 (win32_stopped_by_watchpoint): Turn into ...
3294 (win32_process_target::stopped_by_watchpoint): ... this.
3295 (win32_stopped_data_address): Turn into ...
3296 (win32_process_target::stopped_data_address): ... this.
3297 * win32-low.h (class win32_process_target): Update.
3299 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3301 Turn process_stratum_target's supports_hardware_single_step op into
3302 a method of process_target.
3304 * target.h (struct process_stratum_target): Remove the target op.
3305 (class process_target): Add the target op.
3306 (target_supports_hardware_single_step): Update the macro.
3307 (target_can_do_hardware_single_step): Remove declaration.
3308 * target.cc (process_target::supports_hardware_single_step): Define.
3309 (target_can_do_hardware_single_step): Remove.
3311 Update the derived classes and callers below.
3313 * linux-low.h (class linux_process_target): Update.
3314 * linux-low.cc (linux_target_ops): Update.
3315 (linux_supports_hardware_single_step): Turn into ...
3316 (linux_process_target::supports_hardware_single_step): ... this.
3317 * lynx-low.h (class lynx_process_target): Update.
3318 * lynx-low.cc (lynx_target_ops): Update.
3319 (lynx_process_target::supports_hardware_single_step): Define.
3320 * nto-low.h (class nto_process_target): Update.
3321 * nto-low.cc (nto_target_ops): Update.
3322 (nto_process_target::supports_hardware_single_step): Define.
3323 * win32-low.h (class win32_process_target): Update.
3324 * win32-low.cc (win32_target_ops): Update.
3325 (win32_process_target::supports_hardware_single_step): Define.
3327 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3329 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3330 ops into methods of process_target.
3332 * target.h (struct process_stratum_target): Remove the target ops.
3333 (class process_target): Add the target ops.
3334 (target_stopped_by_hw_breakpoint): Update the macro.
3335 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3336 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3337 (process_target::supports_stopped_by_hw_breakpoint): Define.
3339 Update the derived classes and callers below.
3341 * linux-low.cc (linux_target_ops): Update.
3342 (linux_stopped_by_hw_breakpoint): Turn into ...
3343 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3344 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3345 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3346 * linux-low.h (class linux_process_target): Update.
3347 * lynx-low.cc (lynx_target_ops): Update.
3348 * nto-low.cc (nto_target_ops): Update.
3349 * win32-low.cc (win32_target_ops): Update.
3351 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3353 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3354 ops into methods of process_target.
3356 * target.h (struct process_stratum_target): Remove the target ops.
3357 (class process_target): Add the target ops.
3358 (target_stopped_by_sw_breakpoint): Update the macro.
3359 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3360 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3361 (process_target::supports_stopped_by_sw_breakpoint): Define.
3363 Update the derived classes and callers below.
3365 * linux-low.cc (linux_target_ops): Update.
3366 (linux_stopped_by_sw_breakpoint): Turn into ...
3367 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3368 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3369 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3370 * linux-low.h (class linux_process_target): Update.
3371 * lynx-low.cc (lynx_target_ops): Update.
3372 * nto-low.cc (nto_target_ops): Update.
3373 * win32-low.cc (win32_target_ops): Update.
3375 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3377 Turn process_stratum_target's insert_point and remove_point ops
3378 into methods of process_target.
3380 * target.h (struct process_stratum_target): Remove the target ops.
3381 (class process_target): Add the target ops.
3382 * target.cc (process_target::insert_point): Define.
3383 (process_target::remove_point): Define.
3385 Update the derived classes and callers below.
3387 * mem-break.cc (set_raw_breakpoint_at): Update.
3388 (delete_raw_breakpoint): Update.
3389 (uninsert_raw_breakpoint): Update.
3390 (reinsert_raw_breakpoint): Update.
3391 * linux-low.cc (linux_target_ops): Update.
3392 (linux_insert_point): Turn into ...
3393 (linux_process_target::insert_point): ... this.
3394 (linux_remove_point): Turn into ...
3395 (linux_process_target::remove_point): ... this.
3396 * linux-low.h (class linux_process_target): Update.
3397 * lynx-low.cc (lynx_target_ops): Update.
3398 * nto-low.cc (nto_target_ops): Update.
3399 (nto_insert_point): Turn into ...
3400 (nto_process_target::insert_point): ... this.
3401 (nto_remove_point): Turn into ...
3402 (nto_process_target::remove_point): ... this.
3403 * nto-low.h (class nto_process_target): Update.
3404 * win32-low.cc (win32_target_ops): Update.
3405 (win32_insert_point): Turn into ...
3406 (win32_process_target::insert_point): ... this.
3407 (win32_remove_point): Turn into ...
3408 (win32_process_target::remove_point): ... this.
3409 * win32-low.h (class win32_process_target): Update.
3411 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3413 Turn process_stratum_target's supports_z_point_type op into a
3414 method of process_target.
3416 * target.h (struct process_stratum_target): Remove the target op.
3417 (class process_target): Add the target op.
3418 * target.cc (process_target::supports_z_point_type): Define.
3420 Update the derived classes and callers below.
3422 * mem-break.cc (z_type_supported): Update.
3423 * linux-low.cc (linux_target_ops): Update.
3424 (linux_supports_z_point_type): Turn into ...
3425 (linux_process_target::supports_z_point_type): ... this.
3426 * linux-low.h (class linux_process_target): Update.
3427 * lynx-low.cc (lynx_target_ops): Update.
3428 * nto-low.cc (nto_target_ops): Update.
3429 (nto_supports_z_point_type): Turn into ...
3430 (nto_process_target::supports_z_point_type): ... this.
3431 * nto-low.h (class nto_process_target): Update.
3432 * win32-low.cc (win32_target_ops): Update.
3433 (win32_supports_z_point_type): Turn into ...
3434 (win32_process_target::supports_z_point_type): ... this.
3435 * win32-low.h (class win32_process_target): Update.
3437 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3439 Turn process_stratum_target's read_auxv op into a method of
3442 * target.h (class process_stratum_target): Remove the target op.
3443 (struct process_target): Add the target op. Also add
3444 'supports_read_auxv'.
3445 * target.cc (process_target::read_auxv): Define.
3446 (process_target::supports_read_auxv): Define.
3448 Update the derived classes and callers below.
3450 * server.cc (handle_qxfer_auxv): Update.
3451 (handle_query): Update.
3452 * linux-low.cc (linux_target_ops): Update.
3453 (linux_process_target::supports_read_auxv): Define.
3454 (linux_read_auxv): Turn into ...
3455 (linux_process_target::read_auxv): ... this.
3456 * linux-low.h (class linux_process_target): Update.
3457 * lynx-low.cc (lynx_target_ops): Update.
3458 * nto-low.cc (nto_target_ops): Update.
3459 (nto_process_target::supports_read_auxv): Define.
3460 (nto_read_auxv): Turn into ...
3461 (nto_process_target::read_auxv): ... this.
3462 * nto-low.h (class nto_process_target): Update.
3463 * win32-low.cc (win32_target_ops): Update.
3465 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3467 Turn process_stratum_target's request_interrupt op into a method of
3470 * target.h (struct process_stratum_target): Remove the target op.
3471 (class process_target): Add the target op.
3473 Update the derived classes and callers below.
3475 * remote-utils.cc (putpkt_binary_1): Update.
3476 (input_interrupt): Update.
3478 * server.cc (handle_v_requests): Update.
3479 * linux-low.cc (linux_target_ops): Update.
3480 (linux_request_interrupt): Turn into ...
3481 (linux_process_target::request_interrupt): ... this.
3482 * linux-low.h (class linux_process_target): Update.
3483 * lynx-low.cc (lynx_target_ops): Update.
3484 (lynx_request_interrupt): Turn into ...
3485 (lynx_process_target::request_interrupt): ... this.
3486 * lynx-low.h (class lynx_process_target): Update.
3487 * nto-low.cc (nto_target_ops): Update.
3488 (nto_request_interrupt): Turn into ...
3489 (nto_process_target::request_interrupt): ... this.
3490 * nto-low.h (class nto_process_target): Update.
3491 * win32-low.cc (win32_target_ops): Update.
3492 (win32_request_interrupt): Turn into ...
3493 (win32_process_target::request_interrupt): ... this.
3494 * win32-low.h (class win32_process_target): Update.
3496 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3498 Turn process_stratum_target's look_up_symbols op into a method of
3501 * target.h (struct process_stratum_target): Remove the target op.
3502 (class process_target): Add the target op.
3503 * target.cc (process_target::look_up_symbols): Define.
3505 Update the derived classes and callers below.
3507 * server.cc (handle_query): Update.
3508 * linux-low.cc (linux_target_ops): Update.
3509 (linux_look_up_symbols): Turn into ...
3510 (linux_process_target::look_up_symbols): ... this.
3511 * linux-low.h (class linux_process_target): Update.
3512 * lynx-low.cc (lynx_target_ops): Update.
3513 * nto-low.cc (nto_target_ops): Update.
3514 * win32-low.cc (win32_target_ops): Update.
3516 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3518 Turn process_stratum_target's read_memory and write_memory
3519 ops into methods of process_target.
3521 * target.h (struct process_stratum_target): Remove the target ops.
3522 (class process_target): Add the target ops.
3524 Update the derived classes and callers below.
3526 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3527 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3528 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3529 (arm_get_syscall_trapinfo): Update.
3530 * linux-cris-low.cc (cris_breakpoint_at): Update.
3531 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3532 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3533 * linux-mips-low.cc (mips_breakpoint_at): Update.
3534 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3535 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3536 * linux-sh-low.cc (sh_breakpoint_at): Update.
3537 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3538 (sparc_store_gregset_from_stack): Update.
3539 (sparc_breakpoint_at): Update.
3540 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3541 * linux-tile-low.cc (tile_breakpoint_at): Update.
3542 * linux-x86-low.cc (x86_breakpoint_at): Update.
3543 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3544 * mem-brea.cc (insert_memory_breakpoint): Update.
3545 (validate_inserted_breakpoint): Update.
3546 * target.cc (read_inferior_memory): Update.
3547 (target_write_memory): Update.
3548 * linux-low.cc (linux_target_ops): Update.
3549 (linux_read_memory): Make a wrapper around the read_memory target
3551 (linux_process_target::read_memory): Rename from linux_read_memory.
3552 (linux_write_memory): Turn into ...
3553 (linux_process_target::write_memory): ... this.
3554 * linux-low.h (class linux_process_target): Update.
3555 * lynx-low.cc (lynx_target_ops): Update.
3556 (lynx_read_memory): Turn into ...
3557 (lynx_process_target::read_memory): ... this.
3558 (lynx_write_memory): Turn into ...
3559 (lynx_process_target::write_memory): ... this.
3560 * lynx-low.h (class lynx_process_target): Update.
3561 * nto-low.cc (nto_target_ops): Update.
3562 (nto_read_memory): Turn into ...
3563 (nto_process_target::read_memory): ... this.
3564 (nto_write_memory): Turn into ...
3565 (nto_process_target::write_memory): ... this.
3566 * nto-low.h (class nto_process_target): Update.
3567 * win32-low.cc (win32_target_ops): Update.
3568 (win32_read_inferior_memory): Turn into ...
3569 (win32_process_target::read_memory): ... this.
3570 (win32_write_inferior_memory): Turn into ...
3571 (win32_process_target::write_memory): ... this.
3572 * win32-low.h (class win32_process_target): Update.
3574 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3576 Turn process_stratum_target's prepare_to_access_memory and
3577 done_accessing_memory ops into methods of process_target.
3579 * target.h (struct process_stratum_target): Remove the target ops.
3580 (class process_target): Add the target ops.
3581 * target.cc (process_target::prepare_to_access_memory): Define.
3582 (process_target::done_accessing_memory): Define.
3583 (prepare_to_access_memory): Update.
3584 (done_accessing_memory): Update.
3586 Update the derived classes and callers below.
3588 * linux-low.cc (linux_target_ops): Update.
3589 (linux_prepare_to_access_memory): Turn into ...
3590 (linux_process_target::prepare_to_access_memory): ... this.
3591 (linux_done_accessing_memory): Turn into ...
3592 (linux_process_target::done_accessing_memory): ... this.
3593 * linux-low.h (class linux_process_target): Update.
3594 * lynx-low.cc (lynx_target_ops): Update.
3595 * nto-low.cc (nto_target_ops): Update.
3596 * win32-low.cc (win32_target_ops): Update.
3598 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3600 Turn process_stratum_target's fetch_registers and store_registers
3601 ops into methods of process_target.
3603 * target.h (struct process_stratum_target): Remove the target ops.
3604 (class process_target): Add the target ops.
3605 (fetch_inferior_registers): Update the macro.
3606 (store_inferior_registers): Update the macro.
3608 Update the derived classes and callers below.
3610 * linux-low.cc (linux_target_ops): Update.
3611 (linux_fetch_registers): Turn into ...
3612 (linux_process_target::fetch_registers): ... this.
3613 (linux_store_registers): Turn into ...
3614 (linux_process_target::store_registers): ... this.
3615 * linux-low.h (class linux_process_target): Update.
3616 * lynx-low.cc (lynx_target_ops): Update.
3617 (lynx_fetch_registers): Turn into ...
3618 (lynx_process_target::fetch_registers): ... this.
3619 (lynx_store_registers): Turn into ...
3620 (lynx_process_target::store_registers): ... this.
3621 * lynx-low.h (class lynx_process_target): Update.
3622 * nto-low.cc (nto_target_ops): Update.
3623 (nto_fetch_registers): Turn into ...
3624 (nto_process_target::fetch_registers): ... this.
3625 (nto_store_registers): Turn into ...
3626 (nto_process_target::store_registers): ... this.
3627 * nto-low.h (class nto_process_target): Update.
3628 * win32-low.cc (win32_target_ops): Update.
3629 (win32_fetch_inferior_registers): Turn into ...
3630 (win32_process_target::fetch_registers): ... this.
3631 (win32_store_inferior_registers): Turn into ...
3632 (win32_process_target::store_registers): ... this.
3633 * win32-low.h (class win32_process_target): Update.
3635 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3637 Turn process_stratum_target's wait op into a method of
3640 * target.h (struct process_stratum_target): Remove the target op.
3641 (class process_target): Add the target op.
3643 Update the derived classes and callers below.
3645 * target.cc (target_wait): Update.
3646 * linux-low.cc (linux_target_ops): Update.
3647 (linux_wait): Turn into ...
3648 (linux_process_target::wait): ... this.
3649 * linux-low.h (class linux_process_target): Update.
3650 * lynx-low.cc (lynx_target_ops): Update.
3651 (lynx_wait): Turn into ...
3652 (lynx_process_target::wait): ... this.
3653 * lynx-low.h (class lynx_process_target): Update.
3654 * nto-low.cc (nto_target_ops): Update.
3655 (nto_wait): Turn into ...
3656 (nto_process_target::wait): ... this.
3657 * nto-low.h (class nto_process_target): Update.
3658 * win32-low.cc (win32_target_ops): Update.
3659 (win32_wait): Turn into ...
3660 (win32_process_target::wait): ... this.
3661 (do_initial_child_stuff): Update.
3662 * win32-low.h (class win32_process_target): Update.
3664 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3666 Turn process_stratum_target's resume op into a method of
3669 * target.h (struct process_stratum_target): Remove the target op.
3670 (class process_target): Add the target op.
3672 Update the derived classes and callers below.
3674 * server.cc (resume): Update.
3675 * target.cc (target_stop_and_wait): Update.
3676 (target_continue_no_signal): Update.
3677 (target_continue): Update.
3678 * linux-low.cc (linux_target_ops): Update.
3679 (linux_resume): Turn into ...
3680 (linux_process_target::resume): ... this.
3681 * linux-low.h (class linux_process_target): Update.
3682 * lynx-low.cc (lynx_target_ops): Update.
3683 (lynx_resume): Turn into ...
3684 (lynx_process_target::resume): ... this.
3685 * lynx-low.h (class lynx_process_target): Update.
3686 * nto-low.cc (nto_target_ops): Update.
3687 (nto_resume): Turn into ...
3688 (nto_process_target::resume): ... this.
3689 * nto-low.h (class nto_process_target): Update.
3690 * win32-low.cc (win32_target_ops): Update.
3691 (win32_resume): Turn into ...
3692 (win32_process_target::resume): ... this.
3693 (win32_process_target::detach): Update.
3694 (do_initial_child_stuff): Update.
3695 * win32-low.h (class win32_process_target): Update.
3697 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3699 Turn process_stratum_target's thread_alive op into a method of
3702 * target.h (struct process_stratum_target): Remove the target op.
3703 (class process_target): Add the target op.
3704 (mythread_alive): Update the macro.
3706 Update the derived classes and callers below.
3708 * linux-low.cc (linux_target_ops): Update.
3709 (linux_thread_alive): Turn into ...
3710 (linux_process_target::thread_alive): ... this.
3711 (wait_for_sigstop): Update.
3712 * linux-low.h (class linux_process_target): Update.
3713 * lynx-low.cc (lynx_target_ops): Update.
3714 (lynx_thread_alive): Turn into ...
3715 (lynx_process_target::thread_alive): ... this.
3716 * lynx-low.h (class lynx_process_target): Update.
3717 * nto-low.cc (nto_target_ops): Update.
3718 (nto_thread_alive): Turn into ...
3719 (nto_process_target::thread_alive): ... this.
3720 * nto-low.h (class nto_process_target): Update.
3721 * win32-low.cc (win32_target_ops): Update.
3722 (win32_thread_alive): Turn into ...
3723 (win32_process_target::thread_alive): ... this.
3724 * win32-low.h (class win32_process_target): Update.
3726 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3728 Turn process_stratum_target's join op into a method of
3731 * target.h (struct process_stratum_target): Remove the target op.
3732 (class process_target): Add the target op.
3733 (join_inferior): Update the macro.
3735 Update the derived classes and callers below.
3737 * linux-low.cc (linux_target_ops): Update.
3738 (linux_join): Turn into ...
3739 (linux_process_target::join): ... this.
3740 * linux-low.h (class linux_process_target): Update.
3741 * lynx-low.cc (lynx_target_ops): Update.
3742 (lynx_join): Turn into ...
3743 (lynx_process_target::join): ... this.
3744 * lynx-low.h (class lynx_process_target): Update.
3745 * nto-low.cc (nto_target_ops): Update.
3746 (nto_process_target::join): Define.
3747 * nto-low.h (class nto_process_target): Update.
3748 * win32-low.cc (win32_target_ops): Update.
3749 (win32_join): Turn into ...
3750 (win32_process_target::join): ... this.
3751 * win32-low.h (class win32_process_target): Update.
3753 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3755 Turn process_stratum_target's mourn op into a method of
3758 * target.h (struct process_stratum_target): Remove the target op.
3759 (class process_target): Add the target op.
3761 Update the derived classes and callers below.
3763 * target.cc (target_mourn_inferior): Update.
3764 * linux-low.cc (linux_target_ops): Update.
3765 (linux_mourn): Turn into ...
3766 (linux_process_target::mourn): ... this.
3767 (handle_extended_wait): Update.
3768 (linux_process_target::kill): Update.
3769 (linux_process_target::detach): Update.
3770 * linux-low.h (class linux_process_target): Update.
3771 * lynx-low.cc (lynx_target_ops): Update.
3772 (lynx_mourn): Turn into ...
3773 (lynx_process_target::mourn): ... this.
3774 * lynx-low.h (class lynx_process_target): Update.
3775 * nto-low.cc (nto_target_ops): Update.
3776 (nto_mourn): Turn into ...
3777 (nto_process_target::mourn): ... this.
3778 * nto-low.h (class nto_process_target): Update.
3779 * win32-low.cc (win32_target_ops): Update.
3780 (win32_mourn): Turn into ...
3781 (win32_process_target::mourn): ... this.
3782 * win32-low.h (class win32_process_target): Update.
3784 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3786 Turn process_stratum_target's detach op into a method of
3789 * target.h (struct process_stratum_target): Remove the target op.
3790 (class process_target): Add the target op.
3791 (detach_inferior): Update the macro.
3793 Update the derived classes and callers below.
3795 * linux-low.cc (linux_target_ops): Update.
3796 (linux_detach): Turn into ...
3797 (linux_process_target::detach): ... this.
3798 * linux-low.h (class linux_process_target): Update.
3799 * lynx-low.cc (lynx_target_ops): Update.
3800 (lynx_detach): Turn into ...
3801 (lynx_process_target::detach): ... this.
3802 * lynx-low.h (class lynx_process_target): Update.
3803 * nto-low.cc (nto_target_ops): Update.
3804 (nto_detach): Turn into ...
3805 (nto_process_target::detach): ... this.
3806 * nto-low.h (class nto_process_target): Update.
3807 * win32-low.cc (win32_target_ops): Update.
3808 (win32_detach): Turn into ...
3809 (win32_process_target::detach): ... this.
3810 * win32-low.h (class win32_process_target): Update.
3812 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3814 Turn process_stratum_target's kill op into a method of
3817 * target.h (struct process_stratum_target): Remove the target op.
3818 (class process_target): Add the target op.
3820 Update the derived classes and callers below.
3822 * target.cc (kill_inferior): Update.
3823 * linux-low.cc (linux_target_ops): Update.
3824 (linux_kill): Turn into ...
3825 (linux_process_target::kill): ... this.
3826 * linux-low.h (class linux_process_target): Update.
3827 * lynx-low.cc (lynx_target_ops): Update.
3828 (lynx_kill): Turn into ...
3829 (lynx_process_target::kill): ... this.
3830 * lynx-low.h (class lynx_process_target): Update.
3831 * nto-low.cc (nto_target_ops): Update.
3832 (nto_kill): Turn into ...
3833 (nto_process_target::kill): ... this.
3834 * nto-low.h (class nto_process_target): Update.
3835 * win32-low.cc (win32_target_ops): Update.
3836 (win32_kill): Turn into ...
3837 (win32_process_target::kill): ... this.
3838 * win32-low.h (class win32_process_target): Update.
3840 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3842 Turn process_stratum_target's attach op into a method of
3845 * target.h (struct process_stratum_target): Remove the target op.
3846 (class process_target): Add the target op.
3847 (myattach): Update the macro.
3849 Update the derived classes and callers below.
3851 * linux-low.cc (linux_target_ops): Update.
3852 (linux_attach): Turn into ...
3853 (linux_process_target::attach): ... this.
3854 * linux-low.h (class linux_process_target): Update.
3855 * lynx-low.cc (lynx_target_ops): Update.
3856 (lynx_attach): Turn into ...
3857 (lynx_process_target::attach): ... this.
3858 * lynx-low.h (class lynx_process_target): Update.
3859 * nto-low.cc (nto_target_ops): Update.
3860 (nto_attach): Turn into ...
3861 (nto_process_target::attach): ... this.
3862 * nto-low.h (class nto_process_target): Update.
3863 * win32-low.cc (win32_target_ops): Update.
3864 (win32_attach): Turn into ...
3865 (win32_process_target::attach): ... this.
3866 * win32-low.h (class win32_process_target): Update.
3868 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3870 Turn process_stratum_target's post_create_inferior op into a method
3873 * target.h (struct process_stratum_target): Remove the target op.
3874 (class process_target): Add the target op.
3875 (target_post_create_inferior): Update the macro.
3876 * target.cc (process_target::post_create_inferior): Define.
3878 Update the derived classes and callers below.
3880 * linux-low.cc (linux_target_ops): Update.
3881 (linux_post_create_inferior): Turn into ...
3882 (linux_process_target::post_create_inferior): ... this.
3883 * linux-low.h (class linux_process_target): Update.
3884 * lynx-low.cc (lynx_target_ops): Update.
3885 * nto-low.cc (nto_target_ops): Update.
3886 * win32-low.cc (win32_target_ops): Update.
3888 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3890 Turn process_stratum_target's create_inferior op into a method of
3893 * target.h (struct process_stratum_target): Remove the target op.
3894 (class process_target): Add the target op.
3895 (create_inferior): Rename the macro to ...
3896 (target_create_inferior): ... this.
3898 Update the derived classes and callers below.
3900 * server.cc (handle_v_run): Update.
3901 (captured_main): Update.
3902 (process_serial_event): Update.
3903 * linux-low.cc (linux_target_ops): Update.
3904 (linux_create_inferior): Turn into ...
3905 (linux_process_target::create_inferior): ... this.
3906 * linux-low.h (class linux_process_target): Update.
3907 * lynx-low.cc (lynx_target_ops): Update.
3908 (lynx_create_inferior): Turn into ...
3909 (lynx_process_target::create_inferior): ... this.
3910 * lynx-low.h (class lynx_process_target): Update.
3911 * nto-low.cc (nto_target_ops): Update.
3912 (nto_create_inferior): Turn into ...
3913 (nto_process_target::create_inferior): ... this.
3914 * nto-low.h (class nto_process_target): Update.
3915 * win32-low.cc (win32_target_ops): Update.
3916 (win32_create_inferior): Turn into ...
3917 (win32_process_target::create_inferior): ... this.
3918 * win32-low.h (class win32_process_target): Update.
3920 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3922 * target.h (class process_target): New class definition.
3923 (struct process_stratum_target) <pt>: New field with type
3925 * linux-low.h (class linux_process_target): Define as a derived
3926 class of 'process_target'.
3927 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3929 * lynx-low.h (class lynx_process_target): Define as a derived
3930 class of 'process_target'.
3931 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3933 * nto-low.h (class nto_process_target): Define as a derived
3934 class of 'process_target'.
3935 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3937 * win32-low.h (class win32_process_target): Define as a derived
3938 class of 'process_target'.
3939 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3942 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3944 * configure: Regenerate.
3946 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
3947 Andrew Burgess <andrew.burgess@embecosm.com>
3949 * linux-riscv-low.cc: New file.
3950 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3951 and nat/riscv-linux-tdesc.c.
3952 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3953 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3956 2020-02-14 Tom Tromey <tom@tromey.com>
3958 * acinclude.m4: Don't include acx_configure_dir.m4.
3959 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3960 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3961 (all, install-only, uninstall, clean-info, clean)
3962 (maintainer-clean): Don't recurse.
3963 (subdir_do, all-lib): Remove.
3964 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3966 (generated_files): Update.
3967 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3968 * configure: Rebuild.
3969 * configure.ac: Don't configure gnulib or libiberty.
3972 2020-02-14 Eli Zaretskii <eliz@gnu.org>
3974 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3975 preparing the command line for CreateProcess.
3976 (win32_create_inferior): Reflect the program name in debugging
3977 output that shows the process and its command line.
3979 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3981 * Makefile.in: Rename source files from .c to .cc.
3982 * %.c: Rename to %.cc.
3983 * configure.ac: Rename server.c to server.cc.
3984 * configure: Re-generate.
3986 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3988 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3990 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
3992 * win32-low.c (win32_create_inferior): Set signal_pid.
3994 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
3995 Pedro Alves <palves@redhat.com>
3997 Skip building gdbserver in a cross-configuration.
3998 * configure.srv: Set $gdbserver_host depending on whether $target
3999 is $host. Use $gdbserver_host instead of $host.
4001 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4003 * configure: Re-generate.
4005 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4007 * configure: Re-generate.
4009 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4011 * acinclude.m4: Update warning.m4 path.
4013 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4015 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4016 (handle_exception): Set siginfo_er.
4017 (win32_xfer_siginfo): New function.
4019 2020-02-07 Tom Tromey <tom@tromey.com>
4020 Pedro Alves <palves@redhat.com>
4022 * README: Update build documentation.
4023 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4025 * configure.ac: Update paths.
4026 * configure: Rebuild.
4027 * acinclude.m4: Update paths.
4028 * Makefile.in: Update include paths.
4029 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4030 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4031 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4032 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4033 (%-generated.c): Update paths.
4034 * Move entire directory from ../gdb/gdbserver.
4036 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4038 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4040 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4042 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4043 assignment instead of srv_linux_obj.
4045 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4047 * server.c (handle_qxfer_libraries): Write segment-address with
4050 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4052 * Makefile.in (install-strip): New target.
4053 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4054 * aclocal.m4: Regenerate.
4055 * configure: Regenerate.
4056 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4058 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4060 * Makefile.in (SFILES): Adjust paths to point to real files.
4061 (OBS): Move waitstatus.o to target/waitstatus.o.
4062 (TAGS): Transform paths appropriately.
4064 (nat/%.o): ... this pattern rule.
4066 (target/%.o): ... this pattern rule.
4067 * configure.srv: Adjust paths throughout to include nat/ prefix
4068 with the revant files.
4069 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4070 * configure: Regenerate.
4072 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4074 * Makefile.in (TAGS): Remove config files from the recipe.
4076 2020-01-14 Tom Tromey <tom@tromey.com>
4078 * configure: Rebuild.
4079 * configure.ac: Remove any checks that were added to common.m4.
4080 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4083 2020-01-14 Tom Tromey <tom@tromey.com>
4085 * server.h: Include config.h.
4086 * gdbreplay.c: Include config.h.
4087 * configure: Rebuild.
4088 * configure.ac: Don't source common.host.
4089 * acinclude.m4: Update path.
4090 * Makefile.in (INCSUPPORT): New variable.
4091 (INCLUDE_CFLAGS): Add INCSUPPORT.
4092 (SFILES): Update paths.
4093 (version-generated.c): Update path to create-version.sh.
4094 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4096 2020-01-14 Tom Tromey <tom@tromey.com>
4098 * configure.ac (LIBS): Use WIN32APILIBS.
4099 (USE_WIN32API): Don't define.
4100 * configure: Rebuild.
4102 2020-01-14 Tom Tromey <tom@tromey.com>
4104 * configure: Rebuild.
4106 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4108 * Makefile.in (%-generated.c): Remove rule for files from
4111 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4113 * configure: Re-generate.
4115 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4117 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4119 * tracepoint.c (stop_tracing, flush_trace_buffer,
4120 about_to_request_buffer_space, get_trace_state_variable_value,
4121 set_trace_state_variable_value, gdb_collect): Add declaration.
4123 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4125 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4126 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4127 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4128 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4129 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4132 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4134 * inferiors.c: Include gdbsupport/common-inferior.h.
4136 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4138 * hostio-errno.c: Include hostio.h.
4140 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4142 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4145 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4147 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4148 * linux-arm-tdesc.h: Include arch/arm.h.
4150 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4152 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4154 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4156 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4157 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4159 2020-01-10 Pedro Alves <palves@redhat.com>
4161 * fork-child.c (post_fork_inferior): Pass target down to
4163 * inferiors.c (switch_to_thread): Add process_stratum_target
4165 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4166 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4167 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4168 * remote-utils.c (prepare_resume_reply): Pass the target to
4170 * target.c (the_target): Now a process_stratum_target.
4171 (done_accessing_memory): Pass the target to switch_to_thread.
4172 (set_target_ops): Ajust to use process_stratum_target.
4173 * target.h (struct target_ops): Rename to ...
4174 (struct process_stratum_target): ... this.
4175 (the_target, set_target_ops): Adjust.
4176 (prepare_to_access_memory): Adjust comment.
4177 * win32-low.c (child_xfer_memory): Adjust to use
4178 process_stratum_target.
4179 (win32_target_ops): Now a process_stratum_target.
4181 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4182 Pedro Alves <palves@redhat.com>
4184 * win32-low.c (get_child_debug_event): Extract the fatal exception
4185 from the exit status and convert to the equivalent Posix signal
4187 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4188 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4190 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4192 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4194 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4196 * server.c (gdbserver_version): Change copyright year to 2020.
4197 * gdbreplay.c (gdbreplay_version): Likewise.
4199 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4201 * configure: Regenerate.
4202 * configure.ac: Quote variable arguments of test.
4204 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4206 * Makefile.in: Fix build with GNU Make 3.81
4208 2019-12-16 Tom Tromey <tromey@adacore.com>
4210 * server.c (get_exec_file): Constify result.
4212 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4214 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4215 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4216 * config.in: Regenerate.
4217 * configure: Regenerate.
4218 * configure.ac: Don't check for strerror.
4219 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4220 Call safe_strerror instead of strerror.
4221 * server.h (strerror): Remove this now-unnecessary declaration.
4222 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4224 (gdb_agent_helper_thread): Likewise.
4225 * utils.c (perror_with_name): Likewise.
4227 2019-11-26 Tom Tromey <tom@tromey.com>
4229 * configure, config.in: Rebuild.
4231 2019-11-26 Tom Tromey <tom@tromey.com>
4233 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4234 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4236 * configure, config.in: Rebuild.
4238 2019-11-26 Tom Tromey <tom@tromey.com>
4240 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4241 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4242 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4243 * acinclude.m4: Include ax_pthread.m4.
4244 * config.in, configure: Rebuild.
4246 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4248 * debug.c (debug_set_output): Call safe_strerror instead of
4250 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4251 (linux_kill_one_lwp): Likewise.
4252 (linux_detach_one_lwp): Likewise.
4253 (linux_wait_for_event_filtered): Likewise.
4254 (store_register): Likewise.
4255 * lynx-low.c (lynx_attach): Likewise.
4256 * mem-break.c (insert_memory_breakpoint): Likewise.
4257 (remove_memory_breakpoint): Likewise.
4258 (delete_fast_tracepoint_jump): Likewise.
4259 (set_fast_tracepoint_jump): Likewise.
4260 (uninsert_fast_tracepoint_jumps_at): Likewise.
4261 (reinsert_fast_tracepoint_jumps_at): Likewise.
4262 * nto-low.c (nto_xfer_memory): Likewise.
4263 (nto_resume): Likewise.
4265 2019-11-20 Luis Machado <luis.machado@linaro.org>
4267 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4268 instead of register count.
4269 * tdesc.c (tdesc_contains_feature): New function.
4270 * tdesc.h (tdesc_contains_feature): New prototype.
4272 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4274 * Makefile.in: Add safe-strerror.c.
4275 * configure: Regenerate.
4276 * configure.ac: Don't source common.host.
4278 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4280 * config.in: Regenerate.
4281 * configure: Regenerate.
4283 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4285 * ax.c (ax_printf): Handle size_t_arg.
4287 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4289 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4290 * mi/mi-main.c (output_cores): Likewise.
4291 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4292 (linux_xfer_osdata_modules): Likewise.
4293 * remote.c (register_remote_support_xml): Likewise.
4294 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4295 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4297 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4299 * configure: Regenerate.
4300 * configure.ac: Remove check for strerror_r.
4302 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4304 * config.in: Regenerate.
4305 * configure: Regenerate.
4306 * configure.ac: Also check for strerror_r.
4308 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4310 * ax.h (debug_agent): Remove duplicate declaration.
4312 2019-10-26 Tom de Vries <tdevries@suse.de>
4314 * linux-aarch64-low.c: Fix typos in comments.
4315 * linux-arm-low.c: Same.
4316 * linux-low.c: Same.
4317 * linux-ppc-low.c: Same.
4318 * proc-service.c: Same.
4321 * tracepoint.c: Same.
4322 * win32-low.c: Same.
4324 2019-10-25 Tom Tromey <tromey@adacore.com>
4326 * utils.c (xstrdup): Remove.
4328 2019-10-23 Tom Tromey <tom@tromey.com>
4330 * configure, config.in: Rebuild.
4332 2019-10-23 Tom Tromey <tom@tromey.com>
4334 * configure: Rebuild.
4335 * acinclude.m4: Use m4_include, not sinclude.
4337 2019-10-17 Tom Tromey <tromey@adacore.com>
4339 * configure: Rebuild.
4340 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4341 in AC_CONFIG_FILES invocation.
4342 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4345 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4347 * server.c: Include xml-builtin.h.
4348 (get_xml_features): Don't declare xml_builtins here.
4350 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4352 * Makefile.in: Remove references to vec-ipa.o.
4354 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4356 * Makefile.in: Remove references to vec.c.
4358 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4360 * server.c (server_waiting): Change to bool.
4361 (extended_protocol): Likewise.
4362 (response_needed): Likewise.
4363 (exit_requested): Likewise.
4364 (run_once): Likewise.
4365 (report_no_resumed): Likewise.
4366 (non_stop): Likewise.
4367 (disable_packet_vCont): Likewise.
4368 (disable_packet_Tthread): Likewise.
4369 (disable_packet_qC): Likewise.
4370 (disable_packet_qfThreadInfo): Likewise.
4371 (handle_general_set): Update.
4372 (handle_detach): Update.
4373 (handle_monitor_command): Update.
4374 (handle_query): Update.
4375 (captured_main): Update.
4376 (process_serial_event): Update.
4377 * server.h (server_waiting): Change to bool.
4378 (disable_packet_vCont): Likewise.
4379 (disable_packet_Tthread): Likewise.
4380 (disable_packet_qC): Likewise.
4381 (disable_packet_qfThreadInfo): Likewise.
4382 (run_once): Likewise.
4383 (non_stop): Likewise.
4384 * target.c (target_stop_and_wait): Update.
4386 2019-10-02 Tom Tromey <tromey@adacore.com>
4388 * Makefile.in (SFILES): Add common-inferior.c.
4389 (OBS): Add common-inferior.o.
4390 * server.c (startup_with_shell): Don't define.
4392 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4394 * linux-low.c (linux_low_read_btrace): Update for change to
4397 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4399 * debug.c (debug_threads): Remove comment in favor of the header.
4400 * debug.h (using_threads): Add declaration.
4401 (debug_threads): Add comment.
4402 * linux-aarch64-low.c: Include debug.h and remove declaration of
4404 * nto-low.c: Likewise.
4405 * remote-utils.c: Likewise.
4406 * thread-db.c: Likewise.
4408 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4410 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4411 and powerpc-cell64l-ipa.o.
4412 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4413 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4414 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4417 * spu-low.c: Remove file.
4419 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4420 (parse_spufs_run): Remove.
4421 (ppc_get_pc): Remove Cell/B.E. support.
4422 (ppc_set_pc): Likewise.
4423 (ppc_breakpoint_at): Likewise.
4424 (ppc_arch_setup): Likewise.
4425 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4426 tdesc_powerpc_cell32l.
4427 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4428 or init_registers_powerpc_cell32l.
4429 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4430 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4431 or init_registers_powerpc_cell32l.
4432 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4433 (init_registers_powerpc_cell32l): Remove prototype.
4434 (init_registers_powerpc_cell64l): Likewise.
4436 * target.h (struct target_ops): Remove qxfer_spu member.
4437 * server.c (handle_qxfer_spu): Remove.
4438 (qxfer_packets): Remove entry for "spu".
4439 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4440 * linux-low.c (SPUFS_MAGIC): Remove.
4441 (spu_enumerate_spu_ids): Remove.
4442 (linux_qxfer_spu): Remove.
4443 (linux_target_ops): Remove qxfer_spu member.
4444 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4445 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4446 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4448 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4450 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4451 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4452 * config.in: Regenerate.
4453 * configure: Regenerate.
4455 2019-08-15 Tom Tromey <tromey@adacore.com>
4457 * target.c (target_write_memory): Use gdb::byte_vector.
4459 2019-08-15 Tom Tromey <tromey@adacore.com>
4461 * tracepoint.c (write_inferior_data_pointer)
4462 (write_inferior_integer, write_inferior_int8)
4463 (write_inferior_uinteger, m_tracepoint_action_download)
4464 (r_tracepoint_action_download, x_tracepoint_action_download)
4465 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4466 (download_agent_expr, download_tracepoint_1)
4467 (download_trace_state_variables, upload_fast_traceframes): Update.
4468 * server.c (gdb_write_memory): Update.
4469 * remote-utils.c (relocate_instruction): Update.
4470 * proc-service.c (ps_pdwrite): Update.
4471 * mem-break.c (remove_memory_breakpoint)
4472 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4473 (uninsert_fast_tracepoint_jumps_at)
4474 (reinsert_fast_tracepoint_jumps_at): Update.
4475 * linux-x86-low.c (append_insns)
4476 (i386_install_fast_tracepoint_jump_pad)
4477 (amd64_write_goto_address, i386_write_goto_address): Update.
4478 * linux-s390-low.c (append_insns, s390_write_goto_address):
4480 * linux-ppc-low.c (ppc_relocate_instruction)
4481 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4482 (ppc_write_goto_address): Update.
4483 * linux-aarch64-low.c (append_insns): Update.
4484 * target.h (struct target_ops): Update.
4485 (write_inferior_memory): Don't declare.
4486 * target.c (target_write_memory): Rename from
4487 write_inferior_memory. Remove old target_write_memory.
4489 2019-08-15 Tom Tromey <tromey@adacore.com>
4491 * target.c (write_inferior_memory): Use std::vector.
4493 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4496 * configure.ac: Drop enable-libmcheck support.
4497 * configure, config.in: Rebuild.
4498 * acinclude.m4: Don't include it.
4500 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4502 * configure.srv: Remove Arm xml files.
4504 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4506 * configure.srv: Add new files. Remove xml generated files.
4507 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4509 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4510 * linux-aarch32-tdesc.c: New file.
4511 * linux-aarch32-tdesc.h: New file.
4512 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4513 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4514 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4515 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4516 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4517 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4518 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4519 (arm_read_description): Call arm_linux_read_description.
4520 (initialize_low_arch): Don't init registers.
4521 * linux-arm-tdesc.c: New file.
4522 * linux-arm-tdesc.h: New file.
4524 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4526 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4527 Move counter inside for.
4528 (arm_read_description): Check ptrace earlier.
4529 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4531 2019-07-09 Tom Tromey <tom@tromey.com>
4533 * configure: Rebuild.
4534 * configure.ac: Change common to gdbsupport.
4535 * acinclude.m4: Change common to gdbsupport.
4536 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4537 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4538 common to gdbsupport.
4539 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4540 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4541 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4542 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4543 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4544 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4545 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4546 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4547 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4548 common to gdbsupport.
4550 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4552 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4554 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4556 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4558 * configure.srv: Remove legacy xml.
4559 * linux-aarch64-low.c (initialize_low_arch): Remove
4560 initialize_low_tdesc call.
4561 * linux-aarch64-tdesc-selftest.c: Remove file.
4562 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4563 * linux-x86-low.c (initialize_low_arch): Remove
4564 initialize_low_tdesc call.
4565 * linux-x86-tdesc-selftest.c: Remove file.
4566 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4568 2019-06-20 Tom de Vries <tdevries@suse.de>
4570 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4571 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4573 2019-06-19 Tom de Vries <tdevries@suse.de>
4575 * debug.h (debug_write): Change return type to ssize_t.
4576 * debug.c (debug_write): Same.
4578 2019-06-14 Tom Tromey <tom@tromey.com>
4580 * configure.ac: Use new path to gnulib.
4581 * configure: Rebuild.
4582 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4585 2019-06-11 Tom Tromey <tom@tromey.com>
4587 * Makefile.in (SFILES): Add alloc.c.
4589 (IPA_OBJS): Add alloc-ipa.o.
4590 (alloc-ipa.o): New target.
4591 (%.o: ../%.c): New pattern rule.
4593 2019-06-10 Tom Tromey <tromey@adacore.com>
4595 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4596 end warning with a newline.
4597 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4599 * thread-db.c (attach_thread): Don't end warning with a newline.
4600 (thread_db_notice_clone): Likewise.
4601 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4603 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4604 end warning with a newline.
4606 2019-06-04 Pedro Alves <palves@redhat.com>
4608 * server.c (captured_main): Use make_unique_xstrdup.
4610 2019-06-02 Tom Tromey <tom@tromey.com>
4612 * gdbreplay.c (fromhex): Remove.
4613 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4615 2019-05-29 Tom Tromey <tromey@adacore.com>
4617 * configure: Rebuild.
4619 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4621 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4622 sign extension code on 32-bit builds.
4624 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4627 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4629 2019-04-19 Tom Tromey <tom@tromey.com>
4631 * server.c (struct vstop_notif): Derive from notif_event.
4633 (queue_stop_reply): Update.
4634 (remove_all_on_match_ptid): Change type. Rewrite.
4635 (discard_queued_stop_replies): Rewrite.
4636 (in_queued_stop_replies_ptid): Change type.
4637 (in_queued_stop_replies): Rewrite.
4638 (notif_stop): Update.
4639 (queue_stop_reply_callback): Update.
4640 (captured_main): Don't call initialize_notif.
4641 (push_stop_notification): Update.
4642 * notif.c (notif_write_event, handle_notif_ack)
4643 (notif_event_enque, notif_push): Update.
4644 (notif_event_xfree, initialize_notif): Remove.
4645 * notif.h (struct notif_event): Include <list>, not
4647 (struct notif_server) <queue>: Now a std::list.
4648 (notif_event_p): Remove typedef.
4649 (initialize_notif): Don't declare.
4650 (struct notif_event): Add virtual destructor.
4652 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4654 * ax.c (ax_vdebug): Call debug_printf.
4655 * debug.c (debug_write): New function.
4656 * debug.h (debug_write): New declaration.
4657 * linux-low.c (sigchld_handler): Call debug_write.
4659 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4661 * debug.c (debug_set_output): New function.
4662 (debug_vprintf): Send output to debug_file.
4663 (debug_flush): Likewise.
4664 * debug.h (debug_set_output): New declaration.
4665 * server.c (handle_monitor_command): Add debug-file option.
4666 (captured_main): Likewise.
4668 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4670 * debug.c (remote_debug): Add definition.
4671 * debug.h (remote_debug): Add declaration.
4672 * hostio.c (remote_debug): Remove declaration.
4673 * remote-utils.c (struct ui_file): Likewise.
4674 (remote_debug): Likewise.
4675 * remote-utils.h (remote_debug): Likewise,
4676 * server.c (remote_debug): Remove definition.
4678 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4680 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4681 when using a 64-bit gdbserver.
4683 2019-04-09 Tom Tromey <tromey@adacore.com>
4685 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4687 2019-04-08 Tom Tromey <tom@tromey.com>
4689 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4691 (linux_resume_one_lwp): Likewise.
4693 2019-04-08 Tom Tromey <tom@tromey.com>
4695 * gdbreplay.c: Update.
4696 * linux-low.c: Update.
4699 2019-04-08 Tom Tromey <tom@tromey.com>
4701 * server.c: Use C++ exception handling.
4702 * linux-low.c: Use C++ exception handling.
4703 * gdbreplay.c: Use C++ exception handling.
4705 2019-04-08 Tom Tromey <tom@tromey.com>
4707 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4708 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4709 (captured_main, main): Update.
4710 * gdbreplay.c (main): Update.
4712 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4714 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4715 value in argument pointer, return 1 if the entry is found and 0
4716 otherwise. Move comment.
4717 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4718 * linux-low.h (linux_get_auxv): Declare.
4719 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4721 2019-04-05 Tom Tromey <tromey@adacore.com>
4723 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4726 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4728 * linux-low.c (AT_HWCAP2): Add define if not already included.
4730 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4732 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4733 (aarch64_arch_setup): Call linux_get_hwcap.
4734 * linux-arm-low.c (arm_get_hwcap): Remove function.
4735 (arm_read_description): Call linux_get_hwcap.
4736 * linux-low.c (linux_get_auxv): New function.
4737 (linux_get_hwcap): Likewise.
4738 (linux_get_hwcap2): Likewise.
4739 * linux-low.h (linux_get_hwcap): New declaration.
4740 (linux_get_hwcap2): Likewise.
4741 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4742 (ppc_arch_setup): Call linux_get_hwcap.
4743 * linux-s390-low.c (s390_get_hwcap): Remove function.
4744 (s390_arch_setup): Call linux_get_hwcap.
4746 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4747 Jiong Wang <jiong.wang@arm.com>
4749 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4750 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4752 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4754 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4755 Jiong Wang <jiong.wang@arm.com>
4757 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4758 (aarch64_get_hwcap): New function.
4759 (aarch64_arch_setup): Read APIA hwcap.
4761 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4762 Jiong Wang <jiong.wang@arm.com>
4764 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4765 (initialize_low_tracepoint): Likewise.
4766 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4767 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4768 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4769 (aarch64_linux_read_description): Likewise.
4770 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4772 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4774 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4775 i386_create_target_description for 'segments' parameter.
4776 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4777 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4778 * win32-i386-low.c (i386_arch_setup): Likewise.
4780 2019-03-12 Tom Tromey <tromey@adacore.com>
4782 * linux-low.c (iterate_over_lwps): Update.
4784 2019-03-06 Tom Tromey <tom@tromey.com>
4786 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4787 (captured_main): Use SCOPE_EXIT.
4789 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4791 * configure.srv: Use '$enable_unittest' instead of '$development'
4792 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4795 2019-02-27 Tom Tromey <tromey@adacore.com>
4797 * gdbreplay.c (logchar): Handle \r\n.
4799 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4801 * linux-low.c (linux_attach): Add process before lwp.
4802 * server.c (attach_inferior): Check if already attached.
4804 2019-02-07 Tom Tromey <tom@tromey.com>
4806 * x86-tdesc.h: Rename include guard.
4807 * x86-low.h: Add include guard.
4808 * wincecompat.h: Rename include guard.
4809 * win32-low.h: Add include guard.
4810 * utils.h: Rename include guard.
4811 * tracepoint.h: Rename include guard.
4812 * tdesc.h: Rename include guard.
4813 * target.h: Rename include guard.
4814 * server.h: Rename include guard.
4815 * remote-utils.h: Rename include guard.
4816 * regcache.h: Rename include guard.
4817 * nto-low.h: Rename include guard.
4818 * notif.h: Add include guard.
4819 * mem-break.h: Rename include guard.
4820 * lynx-low.h: Add include guard.
4821 * linux-x86-tdesc.h: Add include guard.
4822 * linux-s390-tdesc.h: Add include guard.
4823 * linux-ppc-tdesc-init.h: Add include guard.
4824 * linux-low.h: Add include guard.
4825 * linux-aarch64-tdesc.h: Add include guard.
4826 * linux-aarch32-low.h: Add include guard.
4827 * inferiors.h: Rename include guard.
4828 * i387-fp.h: Rename include guard.
4829 * hostio.h: Rename include guard.
4830 * gdbthread.h: Rename include guard.
4831 * gdb_proc_service.h: Rename include guard.
4832 * event-loop.h: Rename include guard.
4833 * dll.h: Rename include guard.
4834 * debug.h: Rename include guard.
4835 * ax.h: Rename include guard.
4837 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4840 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4841 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4843 2019-01-25 Tom Tromey <tom@tromey.com>
4845 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4847 2019-01-25 Tom Tromey <tom@tromey.com>
4849 * win32-low.c: Fix common/ includes.
4850 * win32-i386-low.c: Fix common/ includes.
4851 * tracepoint.c: Fix common/ includes.
4852 * thread-db.c: Fix common/ includes.
4853 * target.h: Fix common/ includes.
4854 * symbol.c: Fix common/ includes.
4855 * spu-low.c: Fix common/ includes.
4856 * server.h: Fix common/ includes.
4857 * server.c: Fix common/ includes.
4858 * remote-utils.c: Fix common/ includes.
4859 * regcache.h: Fix common/ includes.
4860 * regcache.c: Fix common/ includes.
4861 * nto-x86-low.c: Fix common/ includes.
4862 * notif.h: Fix common/ includes.
4863 * mem-break.h: Fix common/ includes.
4864 * lynx-low.c: Fix common/ includes.
4865 * lynx-i386-low.c: Fix common/ includes.
4866 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4867 * linux-x86-low.c: Fix common/ includes.
4868 * linux-low.c: Fix common/ includes.
4869 * inferiors.h: Fix common/ includes.
4870 * i387-fp.c: Fix common/ includes.
4871 * hostio.c: Fix common/ includes.
4872 * hostio-errno.c: Fix common/ includes.
4873 * gdbthread.h: Fix common/ includes.
4874 * gdbreplay.c: Fix common/ includes.
4875 * fork-child.c: Fix common/ includes.
4876 * event-loop.c: Fix common/ includes.
4878 (enum gdb_agent_op): Fix common/ includes.
4880 2019-01-21 Tom Tromey <tom@tromey.com>
4882 * tracepoint.c: Fix includes.
4883 * remote-utils.c: Fix includes.
4884 * linux-x86-low.c: Fix includes.
4886 2019-01-01 Joel Brobecker <brobecker@adacore.com>
4888 * gdbreplay.c (gdbreplay_version): Update copyright year in
4890 * server.c (gdbserver_version): Likewise.
4892 2018-12-05 Alan Hayward <alan.hayward@arm.com>
4894 * linux-low.c (add_lwp): Switch ordering.
4896 2018-11-29 Tom Tromey <tom@tromey.com>
4898 * win32-low.c (win32_join): Take pid, not process.
4899 * target.h (struct target_ops) <join>: Change argument type.
4900 (join_inferior): Change argument name.
4901 * spu-low.c (spu_join): Take pid, not process.
4902 * server.c (handle_detach): Preserve pid before destroying
4904 * lynx-low.c (lynx_join): Take pid, not process.
4905 * linux-low.c (linux_join): Take pid, not process.
4907 2018-11-23 Alan Hayward <alan.hayward@arm.com>
4909 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4910 (aarch64_cannot_fetch_register): Likewise.
4911 (struct linux_target_ops): Update references.
4913 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4915 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4917 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4919 * configure.srv (ipa_ppc_linux_regobj): Add
4920 powerpc-isa207-htm-vsx32l-ipa.o and
4921 powerpc-isa207-htm-vsx64l-ipa.o.
4922 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4923 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4924 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4925 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4926 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4927 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4928 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4929 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4930 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4931 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4932 (init_registers_powerpc_isa207_htm_vsx32l)
4933 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4934 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4935 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4936 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4937 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4938 (ppc_store_tm_ctarregset): New functions.
4939 (ppc_regsets): Add entries for HTM regsets.
4940 (ppc_arch_setup): Set htm in features struct when needed. Set
4941 sizes for the HTM regsets.
4942 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4943 (initialize_low_arch): Call
4944 init_registers_powerpc_isa207_htm_vsx32l and
4945 init_registers_powerpc_isa207_htm_vsx64l.
4946 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4947 PPC_TDESC_ISA207_HTM_VSX.
4948 (initialize_low_tracepoint): Call
4949 init_registers_powerpc_isa207_htm_vsx32l and
4950 init_registers_powerpc_isa207_htm_vsx64l.
4952 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4954 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4955 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4956 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4957 (ppc_store_pmuregset): New functions.
4958 (ppc_regsets): Add entries for ebb and pmu regsets.
4959 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4960 pmu regsets are available. Set sizes for these regsets.
4962 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4964 * configure.srv (ipa_ppc_linux_regobj): Add
4965 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4966 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4967 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4968 rs6000/powerpc-isa207-vsx32l.xml, and
4969 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4970 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4971 <PPC_TDESC_ISA207_VSX>: New enum value.
4972 (init_registers_powerpc_isa207_vsx32l): Declare.
4973 (init_registers_powerpc_isa207_vsx64l): Declare.
4974 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4975 (ppc_store_tarregset): New function.
4976 (ppc_regsets): Add entry for the TAR regset.
4977 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4978 size for the TAR regsets.
4979 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4980 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4981 and init_registers_powerpc_isa207_vsx64l.
4982 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4983 (initialize_low_tracepoint): Call
4984 init_registers_powerpc_isa207_vsx32l and
4985 init_registers_powerpc_isa207_vsx64l.
4987 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4988 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4990 * configure.srv (ipa_ppc_linux_regobj): Add
4991 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4992 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4993 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4994 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4995 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4996 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4997 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4998 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4999 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5000 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5001 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5002 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5003 (ppc_hwcap): Add comment.
5004 (ppc_hwcap2): New global.
5005 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5006 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5007 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5008 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5009 when needed. Set sizes for the the DSCR and PPR regsets.
5010 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5011 (initialize_low_arch): Call
5012 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5013 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5014 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5015 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5016 (initialize_low_tracepoint): Call
5017 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5018 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5020 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5022 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5024 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5025 Simon Marchi <simark@simark.ca>
5027 * acinclude.m4: Include "../selftest.m4".
5028 * configure: Regenerate.
5029 * configure.ac: Use "GDB_AC_SELFTEST".
5030 * configure.srv: Use "$enable_unittests" instead of
5031 "$development" when checking whether unit tests have been
5033 * server.c (captured_main): Update message informing that
5034 selftests have been disabled.
5036 2018-10-04 Tom Tromey <tom@tromey.com>
5038 * configure: Rebuild.
5040 2018-10-04 Tom Tromey <tom@tromey.com>
5042 * server.c (handle_status): Rename inner "thread".
5043 (process_serial_event): Declare "res" in 'm' case.
5044 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5045 (iterate_over_lwps): Rename inner "thread".
5046 (linux_qxfer_libraries_svr4): Rename inner "len".
5047 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5049 2018-10-01 Gary Benson <gbenson@redhat.com>
5051 * gdb_proc_service.h: Moved common code to
5052 common/gdb_proc_service.h.
5054 2018-10-01 Gary Benson <gbenson@redhat.com>
5056 * gdb_proc_service.h: Synchronize comments and whitespace with
5057 GDB's version of this file.
5059 2018-09-25 Tom Tromey <tom@tromey.com>
5061 * configure: Rebuild.
5062 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5064 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5066 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5067 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5068 ($(IPA_LIB)): Sort IPA_OBJS.
5070 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5072 * Makefile.in: Remove references to $(ADD_DEPS).
5074 2018-09-16 Tom Tromey <tom@tromey.com>
5076 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5078 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5081 2018-09-05 Tom Tromey <tom@tromey.com>
5083 * configure: Rebuild.
5085 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5088 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5090 2018-08-27 Tom Tromey <tom@tromey.com>
5093 * configure: Rebuild.
5095 2018-08-27 Tom Tromey <tom@tromey.com>
5097 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5098 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5099 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5100 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5101 (s390x_emit_stack_adjust): Add casts to unsigned char.
5103 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5107 * server.h (struct client_state) <disable_randomization>:
5110 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5112 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5114 (mips_supply_ptrace_register): Likewise.
5116 2018-07-22 Tom Tromey <tom@tromey.com>
5118 * configure: Rebuild.
5120 2018-07-22 Tom Tromey <tom@tromey.com>
5122 * win32-low.c (win32_create_inferior): Remove unused variables.
5123 * gdbreplay.c (remote_open): Remove unused variable.
5124 * remote-utils.c (remote_prepare): Remove unused variable.
5125 * x86-tdesc.h (X86_TDESC_H): Define.
5126 (amd64_expedite_regs): Define conditionally.
5127 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5128 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5129 * remote-utils.c (readchar): Remove unused variable.
5131 2018-07-13 Pedro Alves <palves@redhat.com>
5133 * linux-low.c (linux_kill): Change parameter to process_info
5134 pointer instead of pid. Adjust.
5135 * lynx-low.c (lynx_kill): Likewise.
5136 * nto-low.c (nto_kill): Likewise.
5137 * spu-low.c (spu_kill): Likewise.
5138 * win32-low.c (win32_kill): Likewise.
5139 * server.c (handle_v_kill, kill_inferior_callback)
5140 (detach_or_kill_for_exit): Adjust.
5141 * target.c (kill_inferior): Change parameter to process_info
5142 pointer instead of pid. Adjust.
5143 * target.h (struct target_ops) <kill>: Change parameter to
5144 process_info pointer instead of pid. Adjust all implementations
5146 (kill_inferior): Likewise.
5148 2018-07-13 Pedro Alves <palves@redhat.com>
5150 * linux-low.c (linux_detach, linux_join): Change parameter to
5151 process_info pointer instead of pid. Adjust.
5152 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5153 * nto-low.c (nto_detach): Likewise.
5154 * spu-low.c (spu_detach, spu_join): Likewise.
5155 * win32-low.c (win32_detach, win32_join): Likewise.
5156 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5157 * target.h (struct target_ops) <detach, join>: Change parameter to
5158 process_info pointer instead of pid. Adjust all implementations
5160 (detach_inferior, join_inferior): Rename 'pid' parameter to
5163 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5164 Jan Kratochvil <jan.kratochvil@redhat.com>
5165 Paul Fertser <fercerpav@gmail.com>
5166 Tsutomu Seki <sekiriki@gmail.com>
5168 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5169 (OBS): Add 'common/netstuff.o'.
5170 (GDBREPLAY_OBS): Likewise.
5171 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5172 (remote_open): Implement support for IPv6
5174 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5176 (handle_accept_event): Accept connections from IPv6 sources.
5177 (remote_prepare): Handle IPv6-style hostnames; implement
5178 support for IPv6 connections.
5179 (remote_open): Implement support for printing connections from
5182 2018-07-11 Pedro Alves <palves@redhat.com>
5185 * mem-break.c (any_persistent_commands): Add process_info
5186 parameter and use it instead of relying on the current process.
5187 Change return type to bool.
5188 * mem-break.h (any_persistent_commands): Add process_info
5189 parameter and change return type to bool.
5190 * server.c (handle_detach): Remove require_running_or_return call.
5191 Look up the process_info for the process we're about to detach.
5192 If not found, return back error to GDB. Adjust
5193 any_persistent_commands call to pass down a process pointer.
5195 2018-07-11 Pedro Alves <palves@redhat.com>
5197 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5198 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5199 instead of collect_register_by_name.
5200 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5201 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5203 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5204 Pedro Alves <palves@redhat.com>
5206 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5208 2018-07-03 Tom Tromey <tom@tromey.com>
5210 * linux-low.c: Update.
5211 * lynx-low.c: Update.
5212 * mem-break.c: Update.
5213 * nto-low.c: Update.
5214 * remote-utils.c: Update.
5216 * spu-low.c: Update.
5218 * win32-low.c: Update.
5220 2018-07-03 Tom Tromey <tom@tromey.com>
5224 2018-07-03 Tom Tromey <tom@tromey.com>
5226 * linux-low.c: Update.
5228 2018-07-03 Tom Tromey <tom@tromey.com>
5232 2018-07-03 Tom Tromey <tom@tromey.com>
5234 * linux-low.c: Update.
5235 * linux-mips-low.c: Update.
5236 * lynx-low.c: Update.
5237 * nto-low.c: Update.
5238 * remote-utils.c: Update.
5240 * spu-low.c: Update.
5242 * thread-db.c: Update.
5244 2018-07-03 Tom Tromey <tom@tromey.com>
5246 * linux-low.c: Update.
5247 * linux-mips-low.c: Update.
5248 * lynx-low.c: Update.
5249 * mem-break.c: Update.
5250 * nto-low.c: Update.
5251 * remote-utils.c: Update.
5253 * spu-low.c: Update.
5255 * tracepoint.c: Update.
5257 2018-07-03 Tom Tromey <tom@tromey.com>
5259 * linux-low.c: Update.
5260 * linux-ppc-low.c: Update.
5261 * linux-x86-low.c: Update.
5262 * proc-service.c: Update.
5264 * spu-low.c: Update.
5265 * thread-db.c: Update.
5266 * win32-low.c: Update.
5268 2018-07-03 Tom Tromey <tom@tromey.com>
5270 * linux-low.c: Update.
5271 * lynx-low.c: Update.
5272 * nto-low.c: Update.
5273 * remote-utils.c: Update.
5274 * spu-low.c: Update.
5275 * thread-db.c: Update.
5276 * win32-low.c: Update.
5278 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5280 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5281 parameter in call to 'amd64_create_target_description'.
5283 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5285 * x86-tdesc.h: Remove executable permission flag.
5287 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5289 * configure.ac: Remove AC_PREREQ, add missing quoting.
5290 * configure: Re-generate.
5291 * config.in: Re-generate.
5292 * aclocal.m4: Re-generate.
5294 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5296 * tracepoint.h (current_traceframe): Remove declaration.
5298 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5300 * linux-aarch64-low.c (is_sve_tdesc): New function.
5301 (aarch64_sve_regs_copy_to_regcache): Likewise.
5302 (aarch64_sve_regs_copy_from_regcache): Likewise.
5303 (aarch64_regs_info): Add SVE checks.
5304 (initialize_low_arch): Initialize SVE.
5306 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5308 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5310 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5312 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5313 (initialize_low_tracepoint): Likewise
5314 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5315 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5317 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5319 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5321 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5323 * server.h (PBUFSIZ): Increase size
5325 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5327 * regcache.c (regcache::raw_compare): New function.
5328 * regcache.h (regcache::raw_compare): New declaration.
5330 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5332 * regcache.c (new_register_cache): Use new.
5333 (free_register_cache): Use delete.
5334 (register_data): Use const.
5335 (supply_register): Move body inside regcache.
5336 (regcache::raw_supply): New override function.
5337 (collect_register): Move body inside regcache.
5338 (regcache::raw_collect): New override function.
5339 (regcache::get_register_status): New override function.
5340 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5342 2018-06-09 Tom Tromey <tom@tromey.com>
5344 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5346 (event_queue): Use std::queue.
5347 (gdb_event_xfree): Remove.
5348 (initialize_event_loop, process_event, wait_for_event): Update.
5350 2018-06-08 Stan Cox <scox@redhat.com>
5352 * win32-low.c (win32_create_inferior): last_ptid and last_status
5353 moved to client_state.
5355 2018-06-08 Pedro Alves <palves@redhat.com>
5357 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5358 common/common-exceptions.o, common/common-utils.o,
5359 common/errors.o, common/print-utils.o and utils.o.
5360 * gdbreplay.c: Include "common-defs.h" instead of the two
5361 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5362 string.h or alloca.h.
5363 (perror_with_name): Delete.
5364 (remote_open): Use xstrdup instead of strdup.
5365 (main): Rename to ...
5366 (captured_main): ... this.
5369 2018-06-08 Tom Tromey <tom@tromey.com>
5371 * linux-low.c (linux_low_read_btrace): Update.
5373 2018-06-04 Stan Cox <scox@redhat.com>
5375 * server.h (struct client_state): New.
5376 * server.c (cont_thread, general_thread, multi_process)
5377 (report_fork_events, report_vfork_events, report_exec_events)
5378 (report_thread_events, swbreak_feature, hwbreak_feature)
5379 (vCont_supported, disable_randomization, pass_signals)
5380 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5381 Moved to client_state.
5382 * remote-utils.c (remote_debug, noack_mode)
5383 (transport_is_reliable): Moved to client_state.
5384 * tracepoint.c (current_traceframe): Moved to client_state.
5387 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5388 linux-low.c, remote-utils.h, target.c: Use client_state.
5390 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5392 * configure.srv: Add new c/h file.
5394 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5396 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5399 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5401 * gdb.arch/mips-fpregset-core.exp: New test.
5402 * gdb.arch/mips-fpregset-core.c: New test source.
5404 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5407 * hostio.c (require_int): Do not report overflow for integers
5408 between 0xfffffff and 0x7fffffff.
5410 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5412 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5413 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5414 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5416 (the_low_target): Wire them.
5418 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5420 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5421 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5422 mode. Call collect_register_by_name with vscr using
5423 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5424 (ppc_store_vrregset): Add and set vscr_offset variable as in
5425 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5428 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5430 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5431 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5432 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5434 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5436 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5437 (ppc_store_vsxregset): Likewise.
5438 (ppc_fill_vrregset): Likewise.
5439 (ppc_store_vrregset): Likewise.
5440 (ppc_fill_evrregset): Likewise.
5441 (ppc_store_evrregset): Likewise.
5442 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5443 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5446 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5448 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5449 wordsize of the inferior. Call ppc_linux_target_wordsize.
5451 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5453 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5454 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5455 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5456 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5457 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5458 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5459 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5460 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5461 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5462 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5463 (tdesc_powerpc_e500l): Remove.
5464 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5465 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5466 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5467 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5469 (ppc_arch_setup): Remove target description matching code. Fill a
5470 ppc_linux_features struct and call ppc_linux_match_description
5473 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5475 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5476 width of the requested register exceeds the width of the
5478 (mips_cannot_store_register): Likewise.
5480 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5482 * linux-mips-low.c (mips_fetch_register): New function. Update
5484 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5485 (the_low_target): Wire `mips_fetch_register'.
5487 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5489 * lynx-i386-low.c (LYNXOS_178): New macro.
5490 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5491 the layout on LynxOS-178.
5492 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5493 handle floating point registers that are not supported by
5496 2018-05-10 Tom Tromey <tom@tromey.com>
5498 * configure: Rebuild.
5500 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5503 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5504 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5505 Use it to set the expedite_regs field in the given tdesc.
5506 * x86-tdesc.h: New file.
5507 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5508 Adjust following the addition of the new expedite_regs parameter
5509 to init_target_desc.
5510 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5511 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5512 (i386_linux_read_description, amd64_linux_read_description):
5513 Adjust following the addition of the new expedite_regs parameter
5514 to init_target_desc.
5515 * lynx-i386-low.c: #include "x86-tdesc.h".
5516 (lynx_i386_arch_setup): Adjust following the addition of the new
5517 expedite_regs parameter to init_target_desc.
5518 * nto-x86-low.c: #include "x86-tdesc.h".
5519 (nto_x86_arch_setup): Adjust following the addition of the new
5520 expedite_regs parameter to init_target_desc.
5521 * win32-i386-low.c: #include "x86-tdesc.h".
5522 (i386_arch_setup): Adjust following the addition of the new
5523 expedite_regs parameter to init_target_desc.
5525 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5528 * win32-low.c (win32_create_inferior): Add call to my_wait
5529 setting last_status global.
5531 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5534 * win32-low.c (create_process): Only call gdb_tilde_expand if
5535 inferior_cwd is not NULL.
5537 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5539 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5540 registers to the cache if their values have changed.
5541 (i387_xsave_to_cache): Provide default values for x87 control
5542 registers when these features are available, but disabled.
5543 * regcache.c (supply_register_by_name_zeroed): New function.
5544 * regcache.h (supply_register_by_name_zeroed): Declare new
5547 2018-05-07 Tom Tromey <tom@tromey.com>
5549 * configure: Rebuild.
5551 2018-05-04 Tom Tromey <tom@tromey.com>
5553 * configure: Rebuild.
5555 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5556 Pedro Alves <palves@redhat.com>
5558 * linux-aarch64-low.c (aarch64_stopped_data_address):
5561 2018-04-27 Tom Tromey <tom@tromey.com>
5563 * configure: Rebuild.
5565 2018-04-23 Tom Tromey <tom@tromey.com>
5567 * configure: Rebuild.
5569 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5571 * Makefile.in (depcomp): Add "..".
5572 (all_deps_files): New and use it.
5574 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5576 * configure.srv (aarch64*-*-linux*): Don't include xml.
5577 (i[34567]86-*-cygwin*): Likewise.
5578 (i[34567]86-*-linux*): Likewise.
5579 (i[34567]86-*-lynxos*): Likewise.
5580 (i[34567]86-*-mingw32ce*): Likewise.
5581 (i[34567]86-*-mingw*): Likewise.
5582 (i[34567]86-*-nto*): Likewise.
5583 (tic6x-*-uclinux): Likewise.
5584 (x86_64-*-linux*): Likewise.
5585 (x86_64-*-mingw*): Likewise.
5586 (x86_64-*-cygwin*): Likewise.
5588 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5590 * tdesc.c: Remove xml parameter.
5592 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5594 * server.c (get_features_xml): Remove cast.
5595 * tdesc.c (void target_desc::accept): Fill in function.
5596 (tdesc_get_features_xml): Remove old xml creation.
5597 (print_xml_feature::visit_pre): Add xml vistor.
5598 * tdesc.h (struct target_desc): Make xmltarget mutable.
5599 (tdesc_get_features_xml): Remove declaration.
5601 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5603 * tdesc.c (tdesc_architecture_name): Add new function.
5604 (tdesc_osabi_name): Likewise.
5605 (tdesc_get_features_xml): Use new functions.
5607 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5609 * tdesc.c (tdesc_create_flags): Remove.
5610 (tdesc_add_flag): Likewise.
5611 (tdesc_named_type): Likewise.
5612 (tdesc_create_union): Likewise.
5613 (tdesc_create_struct): Likewise.
5614 (tdesc_create_vector): Likewise.
5615 (tdesc_add_bitfield): Likewise.
5616 (tdesc_add_field): Likewise.
5617 (tdesc_set_struct_size): Likewise.
5619 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5621 * tdesc.c (~target_desc): Remove implictly deleted items.
5622 (init_target_desc): Iterate all features.
5623 (tdesc_get_features_xml): Use vector.
5624 (tdesc_create_feature): Create feature.
5625 * tdesc.h (tdesc_feature) Remove
5626 (target_desc): Add features.
5628 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5630 * Makefile.in: Add common/tdesc.c
5631 * tdesc.c (init_target_desc): init all reg_defs from register
5633 (tdesc_create_reg): Create tdesc_reg.
5634 * tdesc.h (tdesc_feature): Add register vector.
5636 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5638 * tdesc.h (struct target_desc) <features>: Change type to
5639 std::vector<std::string>.
5640 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5642 (tdesc_get_features_xml): Likewise.
5643 (tdesc_create_feature): Likewise.
5645 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5647 * regcache.c (find_register_by_number): Return a ref.
5648 (find_regno): Use references.
5649 (register_size): Likewise.
5650 (register_data): Likewise.
5651 * tdesc.c (target_desc::~target_desc): Remove free calls.
5652 (target_desc::operator==): Use std::vector compare.
5653 (init_target_desc): Use reference.
5654 (tdesc_create_reg): Use reg constructors.
5655 * tdesc.h (struct target_desc): Replace pointer with object.
5657 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5659 * regcache.c (find_register_by_number): Make static.
5660 (find_regno): Use find_register_by_number
5661 * regcache.h (struct reg): Remove declaration.
5663 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5665 * tdesc.c (target_desc::~target_desc): Move to here.
5666 (target_desc::operator==): Likewise.
5667 * tdesc.h (target_desc::~target_desc): Move from here.
5668 (target_desc::operator==): Likewise.
5670 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5672 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5674 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5676 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5678 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5679 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5680 and init_registers_s390_gs_linux64.
5682 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5684 * linux-s390-low.c (s390_fill_gs): Remove function.
5685 (s390_fill_gsbc): Remove function.
5686 (s390_regsets): Set fill functions for the guarded storage regsets
5689 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5691 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5692 the word size. Add comment.
5693 (s390_get_wordsize): New function.
5694 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5695 pswm with it. Instead, use s390_get_wordsize to determine the
5696 word size first and derive the correct tdesc from that directly.
5698 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5700 * Makefile.in: Include silent-rules.mk.
5701 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5702 (COMPILE): Add ECHO_CXX.
5703 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5704 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5705 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5706 (version-generated.c): Add ECHO_GEN.
5707 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5708 (IPAGENT_COMPILE): Add ECHO_CXX.
5709 (%-generated.c): Add ECHO_REGDAT.
5711 2018-03-14 Tom Tromey <tom@tromey.com>
5714 * ax.c (ax_printf): Special case for NULL.
5716 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5718 * linux-low.c (linux_qxfer_libraries_svr4): Use
5719 xml_escape_text_append.
5721 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5723 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5725 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5727 * server.c (handle_general_set): Remove unnecessary xstrdup.
5729 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5731 * server.c (parse_debug_format_options): Adjust to
5732 delim_string_to_char_ptr_vec changes.
5733 * thread-db.c (thread_db_load_search): Adjust to
5734 dirnames_to_char_ptr_vec changes.
5736 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5738 * target.h (target_enable_btrace, target_disable_btrace)
5739 (target_read_btrace, target_read_btrace_conf): Turn macro into
5740 inline function. Throw error if target method is not defined.
5741 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5742 check for btrace target method. Be prepared to handle exceptions
5743 from btrace target methods.
5745 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5747 * server.c (captured_main): Change order of error message printed
5748 when the current working directory cannot be found.
5750 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5752 * server.c: Include "filenames.h" and "pathstuff.h".
5753 (program_name): Delete variable.
5754 (program_path): New anonymous class.
5755 (get_exec_wrapper): Use "program_path" instead of
5757 (handle_v_run): Likewise.
5758 (captured_main): Likewise.
5759 (process_serial_event): Likewise.
5761 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5763 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5764 (OBJS): Add "pathstuff.o".
5765 * server.c (current_directory): New global variable.
5766 (captured_main): Initialize "current_directory".
5768 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5770 * tdesc.c: Use common/tdesc.h.
5771 * tdesc.h: Likewise.
5773 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5774 Simon Marchi <simon.marchi@ericsson.com>
5776 * Makefile.in: Switch order of make rules.
5778 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5780 * Makefile.in: Add common directory in build.
5781 * configure.ac: Add common reference.
5782 * configure: Regenerate.
5784 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5786 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5787 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5788 * spu-low.c (spu_target_ops): Likewise.
5789 * win32-low.c (win32_target_ops): Likewise.
5790 * server.c (supported_btrace_packets): Report packets unconditionally.
5791 * target.h (target_ops) <supports_btrace>: Remove.
5792 (target_supports_btrace): Remove.
5794 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5796 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5797 (handle_btrace_disable): Change return type to void. Use exceptions
5799 (handle_btrace_general_set): Catch exception and copy message to
5802 2018-02-08 Tom Tromey <tom@tromey.com>
5804 * linux-low.c (install_software_single_step_breakpoints): Use
5805 make_scoped_restore.
5806 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5807 (do_restore_current_thread_cleanup): Remove.
5808 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5811 2018-02-08 Tom Tromey <tom@tromey.com>
5813 * mem-break.c (set_raw_breakpoint_at): Use
5814 gdb::unique_xmalloc_ptr.
5816 2018-01-30 Pedro Alves <palves@redhat.com>
5819 * target.c (target_terminal::terminal_state): Rename to ...
5820 (target_terminal::m_terminal_state): ... this.
5822 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5824 * linux-low.c (handle_extended_wait): Surround call to
5825 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5827 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5829 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5830 linux_ptrace_attach_fail_reason_string now returning an
5832 (linux_attach): Likewise.
5833 * thread-db.c (attach_thread): Likewise.
5835 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5838 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5839 checking for fs_base/gs_base fields in struct user_regs_struct.
5840 * configure: Regenerate.
5842 2018-01-16 Yao Qi <yao.qi@linaro.org>
5845 * linux-low.c (fetch_register): Call supply_register instead of
5848 2018-01-08 Yao Qi <yao.qi@linaro.org>
5849 Simon Marchi <simon.marchi@ericsson.com>
5851 * Makefile.in (OBS): Remove selftest.o.
5852 * configure.ac: Set srv_selftest_objs if $development is true.
5853 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5854 * configure: Re-generated.
5855 * server.c (captured_main): Wrap variable selftest_filter with
5858 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5860 * server.c (parse_debug_format_options): Return std::string.
5861 (handle_monitor_command, captured_main): Adjust.
5863 2018-01-05 Pedro Alves <palves@redhat.com>
5866 * server.c (captured_main): Pass quiet=false to
5867 save_original_signals_state.
5869 2018-01-01 Joel Brobecker <brobecker@adacore.com>
5871 * gdbreplay.c (gdbreplay_version): Update copyright year in
5873 * server.c (gdbserver_version): Likewise.
5875 2017-12-08 Tom Tromey <tom@tromey.com>
5877 * ax.c (ax_printf): Update.
5879 2017-12-07 Yao Qi <yao.qi@linaro.org>
5881 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5882 aarch64_linux_read_description.
5883 * linux-amd64-ipa.c (idx2mask): New array.
5884 (get_ipa_tdesc): Move idx2mask out.
5885 (initialize_low_tracepoint): Initialize target descriptions.
5886 * linux-i386-ipa.c (idx2mask): New array.
5887 (get_ipa_tdesc): Move idx2mask out.
5888 (initialize_low_tracepoint): Initialize target descriptions.
5890 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5892 * tdesc.c (struct tdesc_type): Change return type.
5893 (tdesc_add_flag): Change parameter type.
5894 (tdesc_add_bitfield): Likewise.
5895 (tdesc_add_field): Likewise.
5896 (tdesc_set_struct_size): Likewise.
5898 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5900 * regcache.c (registers_to_string): Remove unused variable.
5902 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5904 * inferiors.c (for_each_inferior_with_data): Remove.
5905 * inferiors.h (for_each_inferior_with_data): Remove.
5906 * server.c (handle_qxfer_threads_worker): Change parameter type.
5907 (handle_qxfer_threads_proper): Use for_each_thread.
5909 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5911 * inferiors.c (for_each_inferior): Remove.
5912 (clear_inferiors): Use for_each_thread.
5913 * inferiors.h (for_each_inferior): Remove.
5914 * linux-low.c (linux_wait_for_event_filtered): Use
5916 (linux_stabilize_threads): Likewise.
5917 * regcache.c (regcache_release): Likewise.
5918 * server.c (gdb_wants_all_threads_stopped): Likewise.
5919 (clear_pending_status_callback): Remove.
5920 (handle_status): Use for_each_thread.
5921 (captured_main): Likewise.
5922 * win32-low.c (child_init_thread_list): Likewise.
5923 (win32_clear_inferiors): Likewise.
5924 (fake_breakpoint_event): Likewise.
5926 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5928 * inferiors.h (find_inferior): Remove.
5929 * inferiors.c (find_inferior): Remove.
5931 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5933 * linux-low.c (resume_status_pending_p): Update comment.
5934 (need_step_over_p): Update comment.
5936 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5938 * linux-low.c (proceed_one_lwp): Return void, change parameter
5940 (unsuspend_and_proceed_one_lwp): Likewise.
5941 (proceed_all_lwps): Use for_each_thread.
5942 (unstop_all_lwps): Likewise.
5944 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5946 * linux-low.c (linux_resume_one_thread): Return void, take
5948 (linux_resume): Use for_each_thread.
5950 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5952 * linux-low.c (send_sigstop_callback): Return void, change
5953 parameter type. Rename to...
5954 (send_sigstop): ... this.
5955 (suspend_and_send_sigstop_callback): Return void, change parameter
5957 (suspend_and_send_sigstop): ... this.
5958 (stop_all_lwps): Use for_each_thread.
5960 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5962 * linux-low.c (lwp_running): Return bool, remove unused
5964 (linux_stabilize_threads): Use find_thread.
5966 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5968 * linux-low.c (select_singlestep_lwp_callback): Remove.
5969 (count_events_callback): Remove.
5970 (select_event_lwp_callback): Remove.
5971 (select_event_lwp): Use find_thread/for_each_thread.
5973 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5975 * linux-low.c (not_stopped_callback): Return bool, take filter
5977 (linux_wait_for_event_filtered): Use find_thread.
5978 (linux_wait_1): Likewise.
5980 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5982 * linux-low.c (same_lwp): Remove.
5983 (find_lwp_pid): Use find_thread.
5985 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5987 * linux-low.c (delete_lwp_callback): Remove.
5988 (linux_mourn): Use for_each_thread.
5990 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5992 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5993 args parameter, don't check for pid.
5994 (linux_detach): Use for_each_thread.
5996 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5998 * linux-low.c (struct counter): Remove.
5999 (second_thread_of_pid_p): Remove.
6000 (last_thread_of_process_p): Use find_thread.
6002 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6004 * inferiors.c (find_inferior_in_random): Remove.
6005 * inferiors.h (find_inferior_in_random): Remove.
6006 * linux-low.c (status_pending_p_callback): Return bool, accept
6007 parameter ptid directly.
6008 (linux_wait_for_event_filtered): Use find_thread_in_random.
6009 (linux_wait_1): Likewise.
6011 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6013 * inferiors.c (find_inferior_id): Remove.
6014 (find_thread_ptid): Move implemention from find_inferior_id to
6016 * inferiors.h (find_inferior_id): Remove.
6017 * server.c (handle_status): Use find_thread_ptid.
6018 (process_serial_event): Likewise.
6019 * thread-db.c (find_one_thread): Likewise.
6020 (thread_db_thread_handle): Likewise.
6021 * win32-low.c (thread_rec): Likewise.
6022 (child_delete_thread): Likewise.
6023 (win32_thread_alive): Likewise.
6024 (get_child_debug_event): Likewise.
6026 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6028 * linux-mips-low.c (update_watch_registers_callback): Return
6029 void, remove pid_p parameter, don't check for pid.
6030 (mips_insert_point, mips_remove_point): Use for_each_thread.
6032 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6034 * lynx.low (lynx_delete_thread_callback): Remove.
6035 (lynx_mourn): Use for_each_thread.
6037 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6039 * regcache.c (regcache_invalidate_one): Remove.
6040 (regcache_invalidate_pid): use for_each_thread.
6042 2017-11-26 Tom Tromey <tom@tromey.com>
6044 * linux-low.c (linux_create_inferior): Update.
6046 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6048 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6050 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6052 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6053 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6054 * linux-aarch64-tdesc-selftest.c: New file.
6055 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6057 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6059 * configure.srv: Add new file.
6060 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6061 * linux-aarch64-tdesc-selftest.c: New file.
6062 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6064 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6066 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6067 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6068 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6070 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6072 * configure.srv: Add new files.
6073 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6074 aarch64_linux_read_description.
6075 * linux-aarch64-low.c (aarch64_linux_read_description):
6076 Merge with aarch64_arch_setup.
6077 (aarch64_arch_setup): Call aarch64_linux_read_description.
6078 * linux-aarch64-tdesc.c: New file.
6079 * linux-aarch64-tdesc.h: New file.
6081 2017-11-24 Yao Qi <yao.qi@linaro.org>
6083 * configure.srv: Set $srv_regobj for tic6x-linux.
6084 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6085 (tic6x_read_description): Move some code to tic6x_arch_setup.
6086 (tic6x_tdesc_test): New function.
6087 (initialize_low_arch): Call selftests::register_test.
6089 2017-11-22 Yao Qi <yao.qi@linaro.org>
6091 * remote-utils.c (prepare_resume_reply): Use memcpy.
6093 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6095 * linux-low.c (kill_one_lwp_callback): Return void, take
6096 argument directly, don't filter on pid.
6097 (linux_kill): Use for_each_thread.
6099 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6101 * linux-low.c (need_step_over_p): Return bool, remove dummy
6103 (linux_resume, proceed_all_lwps): Use find_thread.
6105 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6107 * linux-low.c (resume_status_pending_p): Return bool, remove
6109 (linux_resume): Use find_thread.
6111 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6113 * linux-low.c (struct thread_resume_array): Remove.
6114 (linux_set_resume_request): Return void, take arguments
6116 (linux_resume): Use for_each_thread.
6118 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6120 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6121 return bool, remove data argument.
6122 (linux_stabilize_threads): Use find_thread.
6124 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6126 * linux-low.c (unsuspend_one_lwp): Remove.
6127 (unsuspend_all_lwps): Use for_each_thread, inline code from
6130 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6132 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6133 * linux-low.c (struct iterate_over_lwps_args): Remove.
6134 (iterate_over_lwps_filter): Remove.
6135 (iterate_over_lwps): Use find_thread.
6137 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6139 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6140 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6141 code from reset_lwp_ptrace_options_callback.
6143 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6145 * linux-arm-low.c (struct update_registers_data): Remove.
6146 (update_registers_callback): Return void, take arguments
6147 directly, don't check thread's pid.
6148 (arm_insert_point, arm_remove_point): Use for_each_thread.
6150 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6152 * win32-low.c (continue_one_thread): Return void, take argument
6154 (child_continue): Use for_each_thread.
6156 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6158 * win32-i386-low.c (update_debug_registers_callback): Rename
6160 (update_debug_registers): ... this, return void, remove pid_p arg.
6161 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6163 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6165 * inferiors.h (struct process_info): Add constructor, initialize
6167 <syscalls_to_catch>: Change type to std::vector<int>.
6168 * inferiors.c (add_process): Allocate process_info with new.
6169 (remove_process): Free process_info with delete.
6170 * linux-low.c (handle_extended_wait): Adjust.
6171 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6172 * server.c (handle_general_set): Adjust.
6174 2017-11-16 Pedro Alves <palves@redhat.com>
6176 * remote-utils.c (remote_close): Block SIGIO signals instead of
6177 uninstalling the SIGIO handler.
6179 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6181 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6183 2017-11-16 Yao Qi <yao.qi@linaro.org>
6185 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6186 (tic6x_store_gregset): Likewise.
6187 (tic6x_usrregs_info): Move it up.
6189 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6191 * Makefile.in: Update arch rules.
6192 * configure.srv: Explicitly mark arch/ files.
6194 2017-11-13 Andreas Schwab <schwab@suse.de>
6196 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6198 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6200 2017-11-06 Pedro Alves <palves@redhat.com>
6202 * config.in, configure: Regenerate.
6204 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6206 * target.c (struct thread_search): Remove.
6207 (thread_search_callback): Remove.
6208 (prepare_to_access_memory): Use for_each_thread instead of
6209 find_inferior. Inline code from thread_search_callback.
6211 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6213 * server.c (struct visit_actioned_threads_data): Remove.
6214 (visit_actioned_threads): Change prototype to take arguments
6216 (resume): Use find_thread instead of find_inferior.
6218 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6220 * server.c (queue_stop_reply_callback): Change prototype, return
6222 (find_status_pending_thread_callback): Remove.
6223 (handle_status): Replace find_inferior with find_thread and
6226 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6228 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6230 (aarch64_store_gregset): Likewise.
6231 (aarch64_fill_fpregset): Likewise.
6232 (aarch64_store_fpregset): Likewise.
6234 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6236 * gdbthread.h (find_thread, for_each_thread): New functions.
6237 * inferiors.c (thread_of_pid): Remove.
6238 (find_any_thread_of_pid): Use find_thread.
6239 * linux-low.c (num_lwps): Use for_each_thread.
6241 2017-10-17 Yao Qi <yao.qi@linaro.org>
6243 * Makefile.in: Remove one rule.
6244 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6246 2017-10-17 Yao Qi <yao.qi@linaro.org>
6248 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6249 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6251 2017-10-17 Yao Qi <yao.qi@linaro.org>
6253 * configure.srv: Rename arm.o with arch/arm.o.
6255 2017-10-17 Yao Qi <yao.qi@linaro.org>
6257 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6258 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6259 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6260 (arch-i386.o, arch-amd64.o): Remove rules.
6261 (arch/%.o): New rule.
6262 Update POSTCOMPILE and COMPILE.pre.
6263 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6264 * configure: Re-generated.
6265 * configure.srv: Replace arch-i386.o with arch/i386.o.
6266 Replace arch-amd64.o with arch/amd64.o.
6268 2017-10-16 Yao Qi <yao.qi@linaro.org>
6270 * configure: Regenerated.
6272 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6274 * inferiors.h: (struct inferior_list): Remove.
6275 (struct inferior_list_entry); Remove.
6276 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6277 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6278 get_first_inferior): Remove.
6279 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6280 find_inferior_id, find_inferior_in_random): Change signature.
6281 * inferiors.c (all_threads): Change type to
6282 std::list<thread_info *>.
6283 (get_thread): Remove macro.
6284 (find_inferior, find_inferior_id): Change signature, implement
6286 (find_inferior_in_random): Change signature, implement using
6287 find_thread_in_random.
6288 (for_each_inferior, for_each_inferior_with_data): Change
6289 signature, implement using for_each_thread.
6290 (add_inferior_to_list, remove_inferior): Remove.
6291 (add_thread, get_first_thread, thread_of_pid,
6292 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6293 (get_first_inferior, one_inferior_p, clear_inferior_list):
6295 (clear_inferiors, get_thread_process): Update.
6296 * gdbthread.h: Include <list>.
6297 (struct thread_info) <entry>: Remove field.
6299 (all_threads): Change type to std::list<thread_info *>.
6300 (get_first_inferior): Add doc.
6301 (find_thread, for_each_thread, find_thread_in_random): New
6303 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6304 * linux-arm-low.c (update_registers_callback): Update.
6305 * linux-low.c (second_thread_of_pid_p): Update.
6306 (kill_one_lwp_callback, linux_detach_lwp_callback,
6307 delete_lwp_callback, status_pending_p_callback, same_lwp,
6308 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6309 iterate_over_lwps, not_stopped_callback,
6310 resume_stopped_resumed_lwps, count_events_callback,
6311 select_singlestep_lwp_callback, select_event_lwp_callback,
6312 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6313 suspend_and_send_sigstop_callback, wait_for_sigstop,
6314 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6315 lwp_running, linux_set_resume_request, resume_status_pending_p,
6316 need_step_over_p, start_step_over, linux_resume_one_thread,
6317 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6318 reset_lwp_ptrace_options_callback): Update.
6319 * linux-mips-low.c (update_watch_registers_callback): Update.
6320 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6322 (free_register_cache_thread_one): Remove.
6323 (regcache_release): Update.
6324 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6325 handle_qxfer_threads_worker): Update.
6326 (handle_query): Update, use list iterator.
6327 (visit_actioned_threads, handle_pending_status,
6328 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6329 clear_pending_status_callback, set_pending_status_callback,
6330 find_status_pending_thread_callback, handle_status,
6331 process_serial_event): Update.
6332 * target.c (thread_search_callback): Update.
6333 * thread-db.c (thread_db_get_tls_address): Update.
6334 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6336 * win32-i386-low.c (update_debug_registers_callback): Update.
6337 * win32-low.c (delete_thread_info, child_delete_thread,
6338 continue_one_thread, suspend_one_thread,
6339 get_child_debug_event): Adjust.
6341 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6343 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6344 * inferiors.h: Include <list>.
6345 (struct process_info) <entry>: Remove field.
6347 (pid_of): Change macro to function.
6348 (ptid_of, lwpid_of): Remove macro.
6349 (all_processes): Change type to std::list<process_info *>.
6350 (ALL_PROCESSES): Remove macro.
6351 (for_each_process, find_process): New function.
6352 * inferiors.c (all_processes): Change type to
6353 std::list<process_info *>.
6354 (find_thread_process): Adjust.
6355 (add_process): Likewise.
6356 (remove_process): Likewise.
6357 (find_process_pid): Likewise.
6358 (get_first_process): Likewise.
6359 (started_inferior_callback): Remove.
6360 (have_started_inferiors_p): Adjust.
6361 (attached_inferior_callback): Remove.
6362 (have_attached_inferiors_p): Adjust.
6363 * linux-low.c (check_zombie_leaders): Likewise.
6364 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6365 (x86_linux_update_xmltarget): Adjust.
6366 * server.c (handle_query): Likewise.
6367 (gdb_reattached_process): Remove.
6368 (handle_status): Adjust.
6369 (kill_inferior_callback): Likewise.
6370 (detach_or_kill_inferior): Remove.
6371 (print_started_pid): Likewise.
6372 (print_attached_pid): Likewise.
6373 (detach_or_kill_for_exit): Update.
6374 (process_serial_event): Likewise.
6375 * linux-arm-low.c (arm_new_fork): Likewise.
6377 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6379 * dll.h: Include <list>.
6380 (struct dll_info): Add constructor.
6381 <entry>: Remove field.
6382 (all_dlls): Change type to std::list<dll_info>.
6383 * dll.c: Include <algorithm>.
6384 (get_dll): Remove macro.
6385 (all_dlls): Change type to std::list<dll_info *>.
6386 (free_one_dll): Remove.
6387 (match_dll): Likewise.
6388 (loaded_dll): Adjust.
6389 (unloaded_dll): Adjust to all_dlls type change, use
6390 std::find_if. Inline code from match_dll.
6391 (clear_dlls): Adjust to all_dlls type change.
6392 * server.c (emit_dll_description): Remove.
6393 (handle_qxfer_libraries): Adjust to all_dlls type change,
6394 integrate emit_dll_description's functionality.
6396 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6398 * linux-low.h (struct linux_target_ops) <delete_process>: New
6400 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6401 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6402 (struct linux_target_ops): Add delete_process callback.
6403 * linux-arm-low.c (arm_delete_process): New.
6404 (struct linux_target_ops): Add delete_process callback.
6405 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6406 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6407 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6408 * linux-mips-low.c (mips_linux_delete_process): New.
6409 (struct linux_target_ops): Add delete_process callback.
6410 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6411 * linux-s390-low.c (struct linux_target_ops): Likewise.
6412 * linux-sh-low.c (struct linux_target_ops): Likewise.
6413 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6414 * linux-tile-low.c (struct linux_target_ops): Likewise.
6415 * linux-x86-low.c (x86_linux_delete_process): New.
6416 (struct linux_target_ops): Add delete_process callback.
6417 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6419 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6421 * linux-aarch64-low.c (the_low_target): Add thread delete
6423 * linux-arm-low.c (arm_delete_thread): New function.
6424 (the_low_target): Add thread delete callback.
6425 * linux-bfin-low.c (the_low_target): Likewise.
6426 * linux-crisv32-low.c (the_low_target): Likewise.
6427 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6429 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6431 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6432 * linux-mips-low.c (mips_linux_delete_thread): New function.
6433 (the_low_target): Add thread delete callback.
6434 * linux-ppc-low.c (the_low_target): Likewise.
6435 * linux-s390-low.c (the_low_target): Likewise.
6436 * linux-sh-low.c (the_low_target): Likewise.
6437 * linux-tic6x-low.c (the_low_target): Likewise.
6438 * linux-tile-low.c (the_low_target): Likewise.
6439 * linux-x86-low.c (the_low_target): Likewise.
6440 * linux-xtensa-low.c (the_low_target): Likewise.
6442 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6444 * win32-low.c: Include "common-inferior.h".
6446 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6448 * inferiors.c (set_inferior_cwd): New function.
6449 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6450 (handle_query): Inform that QSetWorkingDir is supported.
6451 * win32-low.c (create_process): Pass the inferior's cwd to
6454 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6456 * inferiors.c (current_inferior_cwd): New global variable.
6457 (get_inferior_cwd): New function.
6458 * inferiors.h (struct process_info) <cwd>: New field.
6460 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6462 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6463 (OBS): Add gdb_tilde_expand.o.
6465 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6467 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6468 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6470 2017-09-29 Pedro Alves <palves@redhat.com>
6472 * ax.c (gdb_parse_agent_expr): Constify.
6473 * ax.h (gdb_parse_agent_expr): Constify.
6474 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6476 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6477 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6478 * remote-utils.h (read_ptid): Constify.
6479 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6480 (process_point_options, process_serial_event): Constify.
6481 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6482 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6483 (cmd_qtbuffer): Constify.
6485 2017-09-29 Pedro Alves <palves@redhat.com>
6487 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6490 2017-09-29 Pedro Alves <palves@redhat.com>
6492 * linux-low.c (handle_extended_wait): Pass parent thread instead
6493 of process to thread_db_notice_clone.
6494 * linux-low.h (thread_db_notice_clone): Replace parent process
6495 parameter with parent thread parameter.
6496 * thread-db.c (find_one_thread): Add comment.
6497 (thread_db_notice_clone): Replace parent process parameter with
6498 parent thread parameter. Temporarily switch to the parent thread.
6500 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6502 * gdbthread.h: Include "common-gdbthread.h".
6503 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6504 "if" when validating the ptid.
6505 * remote-utils.c: Include "gdbthread.h".
6506 (prepare_resume_reply): Use "switch_to_thread".
6507 * target.c (done_accessing_memory): Likewise.
6509 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6511 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6512 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6513 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6514 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6515 s390x-gs-linux64-ipa.o to ipa_obj.
6516 * linux-s390-low.c (HWCAP_S390_GS): New define.
6517 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6519 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6520 (s390_arch_setup): Check for guarded-storage support and choose
6522 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6523 init_registers_s390x_gs_linux64.
6524 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6526 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6527 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6529 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6531 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6533 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6535 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6536 (thread_db_thread_handle): Declare.
6537 * linux-low.c (linux_target_ops): Initialize thread_handle.
6538 * server.c (handle_qxfer_threads_worker): Add support for
6540 * target.h (struct target_ops): Add new function pointer,
6542 (target_thread_handle): Define.
6543 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6545 (thread_db_thread_handle): New function.
6547 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6549 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6550 * linux-low.h (thread_db_notice_clone): Declare.
6551 * thread-db.c (thread_db_notice_clone): New function.
6553 2017-09-21 Pedro Alves <palves@redhat.com>
6555 * server.c (gdb_read_memory, handle_status, process_serial_event)
6556 (handle_serial_event, handle_target_event): Adjust to
6557 set_desired_thread prototype change.
6558 * target.c (set_desired_thread): Remove 'use_general' parameter
6560 * target.h (set_desired_thread): Remove 'use_general' parameter.
6562 2017-09-20 Tom Tromey <tom@tromey.com>
6564 * target.c (target_terminal::terminal_state): Define.
6565 (target_terminal::init): Rename from target_terminal_init.
6566 (target_terminal::inferior): Rename from
6567 target_terminal_inferior.
6568 (target_terminal::ours): Rename from target_terminal_ours.
6569 (target_terminal::ours_for_output, target_terminal::info): New.
6571 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6573 * server.c (accumulate_file_name_length): Remove.
6574 (emit_dll_description): Adjust to std::string change.
6575 (handle_qxfer_libraries): Use std::string to hold document.
6577 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6579 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6580 return type of xml_escape_text.
6581 * server.c (emit_dll_description): Likewise.
6583 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6585 * server.c (captured_main): Accept argument for --selftest.
6586 Update run_tests call.
6587 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6588 when registering selftests.
6590 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6592 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6593 instead of "VEC" for "target_desc.reg_defs".
6594 (regcache_cpy): Likewise.
6595 (registers_to_string): Likewise.
6596 (registers_from_string): Likewise.
6597 (find_regno): Likewise.
6598 (supply_regblock): Likewise.
6599 (regcache_raw_read_unsigned): Likewise.
6600 * tdesc.c (init_target_desc): Likewise.
6601 (tdesc_create_reg): Likewise.
6602 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6603 (struct target_desc) <reg_defs>: Convert to "std::vector".
6604 (target_desc): Do not initialize "reg_defs".
6605 (~target_desc): Update code to use "std::vector" instead of "VEC"
6606 for "target_desc.reg_defs".
6607 (operator==): Likewise.
6609 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6611 * inferiors.h (thread_to_gdb_id): Remove.
6612 * inferiors.c (thread_to_gdb_id): Remove.
6613 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6614 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6615 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6617 * nto-low.c (nto_fetch_registers, nto_store_registers,
6618 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6620 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6622 * inferiors.h (gdb_id_to_thread_id): Remove.
6623 * inferiors.c (gdb_id_to_thread_id): Remove.
6624 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6625 removal. Move pid declaration closer to where it's used.
6627 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6629 * server.c (handle_detach): New function.
6630 (process_serial_event): Move code out, call handle_detach.
6632 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6634 * server.c (require_running): Rename to ...
6635 (require_running_or_return): ... this ...
6636 (require_running_or_break): ... and this.
6637 (handle_query, process_serial_event): Adjust.
6639 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6641 * linux-low.c (linux_set_resume_request): Remove unused
6644 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6646 * server.c (first_thread_of): Remove.
6647 (process_serial_event): Replace usage of first_thread_of with
6648 find_any_thread_of_pid.
6649 * tracepoint.c (same_process_p): Remove.
6650 (gdb_agent_about_to_close): Replace usage of same_process_p with
6651 find_any_thread_of_pid.
6652 * linux-x86-low.c (same_process_callback): Remove.
6653 (x86_arch_setup_process_callback): Replace usage of
6654 same_process_callback with find_any_thread_of_pid.
6655 * thread-db.c (any_thread_of): Remove.
6656 (switch_to_process): Replace usage of any_thread_of with
6657 find_any_thread_of_pid.
6658 * inferiors.c (thread_pid_matches_callback): Remove.
6659 (find_thread_process): Adjust to use find_any_thread_of_pid.
6661 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6663 * regcache.c (get_thread_regcache): Guard calls to "memset"
6666 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6668 * linux-low.c (handle_extended_wait): Use
6669 "allocate_target_description" instead of "XNEW".
6670 * linux-x86-low.c (initialize_low_arch): Likewise.
6672 2017-09-05 Yao Qi <yao.qi@linaro.org>
6674 * configure.srv (srv_i386_regobj): Remove.
6675 (srv_amd64_regobj): Remove.
6676 (srv_regobj): Set it to "" for x86 non-linux targets.
6677 * linux-x86-tdesc.c (i386_linux_read_description):
6678 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6679 (init_registers_i386): Remove the declaration.
6680 (tdesc_i386): Remove the declaration.
6681 (lynx_i386_arch_setup): Call i386_create_target_description.
6682 * nto-x86-low.c: Likewise.
6683 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6684 [!__x86_64__]: include arch/i386.h.
6685 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6687 2017-09-05 Yao Qi <yao.qi@linaro.org>
6689 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6690 i386/amd64-XXX-linux from it.
6692 2017-09-05 Yao Qi <yao.qi@linaro.org>
6694 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6696 (ipa_amd64_linux_regobj): Remove.
6697 (ipa_x32_linux_regobj): Remove.
6699 2017-09-05 Yao Qi <yao.qi@linaro.org>
6701 * Makefile.in (arch-amd64.o): New rule.
6702 * configure.srv: Append arch-amd64.o.
6703 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6704 (get_ipa_tdesc): Call amd64_linux_read_description.
6705 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6706 and init_registers_amd64_XXX.
6707 * linux-x86-low.c (x86_linux_read_description): Call
6708 amd64_linux_read_description.
6709 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6710 (initialize_low_arch): Don't call init_registers_x32_XXX and
6711 init_registers_amd64_XXX.
6712 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6713 and tdesc_amd64_XXX.
6714 [__x86_64__] (amd64_tdesc_test): New function.
6715 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6716 and init_registers_amd64_XXX.
6717 * linux-x86-tdesc.c: Include arch/amd64.h.
6718 (xcr0_to_tdesc_idx): New function.
6719 (i386_linux_read_description): New function.
6720 (amd64_get_ipa_tdesc_idx): New function.
6721 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6722 (amd64_get_ipa_tdesc): Declare.
6724 2017-09-05 Yao Qi <yao.qi@linaro.org>
6726 * configure.srv (srv_i386_linux_xmlfiles): Remove
6727 i386/i386-XXX-linux.xml from it.
6729 2017-09-05 Yao Qi <yao.qi@linaro.org>
6731 * configure.srv: Set srv_i386_linux_regobj empty if $development
6733 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6734 initialize_low_tdesc.
6735 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6736 with #if initialize_low_tdesc.
6737 * linux-x86-tdesc-selftest.c: New file.
6738 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6740 2017-09-05 Yao Qi <yao.qi@linaro.org>
6742 * Makefile.in (arch-i386.o): New rule.
6743 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6744 (x86_64-*-linux*): Likewise.
6745 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6746 include arch/i386.h.
6747 (i386_linux_read_description): Remove code and call
6748 i386_create_target_description.
6749 * tdesc.c (allocate_target_description): New function.
6750 * tdesc.h (set_tdesc_architecture): Remove declaration.
6751 (set_tdesc_osabi): Likewise.
6753 2017-09-05 Yao Qi <yao.qi@linaro.org>
6755 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6756 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6757 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6759 * server.c (get_features_xml): Call tdesc_get_features_xml.
6760 * tdesc.c (set_tdesc_architecture): New function.
6761 (set_tdesc_osabi): New function.
6762 (tdesc_get_features_xml): New function.
6763 (tdesc_create_feature): Add an argument.
6764 * tdesc.h (struct target_desc) <features>: New field.
6765 <arch, osabi>: New field.
6766 (~target_desc): xfree features, arch, and osabi.
6767 (target_desc::oerator==): Don't compare .xmltarget.
6768 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6769 (set_tdesc_osabi): Likewise.
6770 (tdesc_get_features_xml): Likewise.
6772 2017-09-05 Yao Qi <yao.qi@linaro.org>
6774 * linux-x86-tdesc.c: Include selftest.h.
6775 (i386_tdesc_test): New function.
6776 (initialize_low_tdesc): Call selftests::register_test.
6777 * tdesc.h: Include regdef.h.
6778 (target_desc): Override operator == and !=.
6780 2017-09-05 Yao Qi <yao.qi@linaro.org>
6782 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6783 (ipa_obj): Likewise.
6784 * linux-i386-ipa.c: Include common/x86-xstate.h
6785 (get_ipa_tdesc): Call i386_linux_read_description.
6786 (initialize_low_tracepoint): Don't call init_registers_XXX
6787 functions, call initialize_low_tdesc instead.
6788 * linux-x86-low.c (x86_linux_read_description): Call
6789 i386_linux_read_description.
6790 (initialize_low_arch): Don't call init_registers_i386_XXX
6791 functions, call initialize_low_tdesc.
6792 * linux-x86-tdesc.c: New file.
6793 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6794 (i386_get_ipa_tdesc_idx): Declare.
6795 (i386_get_ipa_tdesc): Declare.
6796 (initialize_low_tdesc): Declare.
6798 2017-09-05 Yao Qi <yao.qi@linaro.org>
6800 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6803 2017-09-05 Yao Qi <yao.qi@linaro.org>
6805 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6806 * regcache.c (get_thread_regcache): Use VEC_length.
6807 (init_register_cache): Likewise.
6808 (regcache_cpy): Likewise.
6809 (registers_to_string): Iterate reg_defs via VEC_iterate.
6810 (find_regno): Likewise.
6811 (find_register_by_number): Use VEC_index.
6812 (register_size): Call find_register_by_number.
6813 (register_data): Call find_register_by_number.
6814 (supply_regblock): Use VEC_length.
6815 (regcache_raw_read_unsigned): Likewise.
6816 * tdesc.c (init_target_desc): Iterate reg_defs via
6818 (default_description): Update initializer.
6819 (copy_target_description): Don't update field num_registers.
6820 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6821 <num_registers>: Remove.
6823 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6825 * Makefile.in (.SECONDARY): Define target.
6827 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6829 * linux-low.c (linux_wait_1): Adjust.
6830 * server.c (queue_stop_reply_callback): Adjust.
6832 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6834 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6835 QEnvironmentUnset and QEnvironmentReset packets.
6836 (handle_query): Inform remote that QEnvironmentHexEncoded,
6837 QEnvironmentUnset and QEnvironmentReset are supported.
6839 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6841 * inferiors.h (inferior_target_data): Rename to ...
6842 (thread_target_data): ... this.
6843 (inferior_regcache_data): Rename to ...
6844 (thread_regcache_data): ... this.
6845 (set_inferior_regcache_data): Rename to ...
6846 (set_thread_regcache_data): ... this.
6847 * inferiors.c (inferior_target_data): Rename to ...
6848 (thread_target_data): ... this.
6849 (inferior_regcache_data): Rename to ...
6850 (thread_regcache_data): ... this.
6851 (set_inferior_regcache_data): Rename to ...
6852 (set_thread_regcache_data): ... this.
6853 (free_one_thread): Update.
6854 * linux-low.h (get_thread_lwp): Update.
6855 * regcache.c (get_thread_regcache): Update.
6856 (regcache_invalidate_thread): Update.
6857 (free_register_cache_thread): Update.
6858 * win32-i386-low.c (update_debug_registers_callback): Update.
6859 (win32_get_current_dr): Update.
6860 * win32-low.c (thread_rec): Update.
6861 (delete_thread_info): Update.
6862 (continue_one_thread): Update.
6863 (suspend_one_thread): Update.
6865 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6867 * inferiors.c (set_inferior_target_data): Remove.
6868 * inferiors.h (set_inferior_target_data): Remove.
6870 2017-08-18 Yao Qi <yao.qi@linaro.org>
6872 * Makefile.in (OBS): Add selftest.o.
6873 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6874 * configure, config.in: Re-generated.
6875 * server.c: Include common/sefltest.h.
6876 (captured_main): Handle option --selftest.
6878 2017-08-09 Yao Qi <yao.qi@linaro.org>
6880 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6881 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6882 i386-avx-mpx.o and i386-mmx.o.
6883 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6884 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6885 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6886 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6887 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6888 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6889 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6890 i386/amd64-avx-mpx.xml.
6892 2017-08-09 Yao Qi <yao.qi@linaro.org>
6894 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6895 and x32-avx-avx512.o.
6896 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6897 i386/x32-avx-avx512.xml.
6899 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6901 * tracepoint.h (enum class fast_tpoint_collect_result): New
6903 (fast_tracepoint_collecting): Change return type to
6904 fast_tpoint_collect_result.
6905 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6906 * linux-low.h: Include tracepoint.h.
6907 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6908 fast_tpoint_collect_result.
6909 * linux-low.c (handle_tracepoints): Adjust.
6910 (linux_fast_tracepoint_collecting): Change return type to
6911 fast_tpoint_collect_result.
6912 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6913 linux_wait_1, stuck_in_jump_pad_callback,
6914 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6915 proceed_one_lwp): Adjust to type change.
6917 2017-07-10 Yao Qi <yao.qi@linaro.org>
6919 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6921 2017-06-29 Yao Qi <yao.qi@linaro.org>
6923 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6925 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6927 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6929 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6931 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6933 * linux-low.c (linux_create_inferior): Adjust code to access the
6934 environment information via 'gdb_environ' class.
6935 * lynx-low.c (lynx_create_inferior): Likewise.
6936 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6937 (get_environ): Return a pointer to 'our_environ'.
6938 (captured_main): Initialize 'our_environ'.
6939 * server.h (get_environ): Adjust prototype.
6940 * spu-low.c (spu_create_inferior): Adjust code to access the
6941 environment information via 'gdb_environ' class.
6943 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6945 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6946 usage of "register" keyword.
6948 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6950 * configure: Re-generate.
6952 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6954 * configure: Re-generate.
6956 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6958 * Makefile.in (COMPILE.pre): Add "-x c++".
6960 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6962 * fork-child.c: Conditionally include <signal.h>.
6964 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6966 * server.c (handle_general_set): Handle new packet
6967 "QStartupWithShell".
6968 (handle_query): Add "QStartupWithShell" to the list of supported
6970 (gdbserver_usage): Add help text explaining the
6971 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6973 (captured_main): Recognize and act upon the presence of the new
6976 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6977 Pedro Alves <palves@redhat.com>
6979 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6980 * configure: Regenerate.
6981 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6983 (i[34567]86-*-lynxos*): Likewise.
6984 (spu*-*-*): Likewise.
6985 * fork-child.c: New file.
6986 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6988 (linux_ptrace_fun): New function.
6989 (linux_create_inferior): Adjust function prototype to reflect
6990 change on "target.h". Adjust function code to use
6992 (linux_request_interrupt): Delete "signal_pid".
6993 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6994 (lynx_ptrace_fun): New function.
6995 (lynx_create_inferior): Adjust function prototype to reflect
6996 change on "target.h". Adjust function code to use
6998 * nto-low.c (nto_create_inferior): Adjust function prototype and
6999 code to reflect change on "target.h". Update comments.
7000 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7001 "common-terminal.h" and "environ.h".
7002 (terminal_fd): Moved to fork-child.c.
7003 (old_foreground_pgrp): Likewise.
7004 (restore_old_foreground_pgrp): Likewise.
7005 (last_status): Make it global.
7006 (last_ptid): Likewise.
7007 (our_environ): New variable.
7008 (startup_with_shell): Likewise.
7009 (program_name): Likewise.
7010 (program_argv): Rename to...
7011 (program_args): ...this.
7012 (wrapper_argv): New variable.
7013 (start_inferior): Delete function.
7014 (get_exec_wrapper): New function.
7015 (get_exec_file): Likewise.
7016 (get_environ): Likewise.
7017 (prefork_hook): Likewise.
7018 (post_fork_inferior): Likewise.
7019 (postfork_hook): Likewise.
7020 (postfork_child_hook): Likewise.
7021 (handle_v_run): Update code to deal with arguments coming from the
7022 remote host. Update calls from "start_inferior" to
7024 (captured_main): Likewise. Initialize environment variable. Call
7026 * server.h (post_fork_inferior): New prototype.
7027 (get_environ): Likewise.
7028 (last_status): Declare.
7029 (last_ptid): Likewise.
7030 (signal_pid): Likewise.
7031 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7032 (spu_ptrace_fun): New function.
7033 (spu_create_inferior): Adjust function prototype to reflect change
7034 on "target.h". Adjust function code to use "fork_inferior".
7035 * target.c (target_terminal_init): New function.
7036 (target_terminal_inferior): Likewise.
7037 (target_terminal_ours): Likewise.
7038 * target.h: Include <vector>.
7039 (struct target_ops) <create_inferior>: Update prototype.
7040 (create_inferior): Update macro.
7041 * utils.c (gdb_flush_out_err): New function.
7042 * win32-low.c (win32_create_inferior): Adjust function prototype
7043 and code to reflect change on "target.h".
7045 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7047 * inferiors.c (switch_to_thread): New function.
7049 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7051 * Makefile.in (SFILE): Add "common/job-control.c".
7052 (OBS): Add "job-control.o".
7054 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7056 * Makefile: Remove "@host_makefile_frag@".
7058 2017-05-05 Pedro Alves <palves@redhat.com>
7060 * configure: Regenerate.
7062 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7064 * configure: Regenerate.
7066 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7068 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7069 software_single_step change of return type to
7070 std::vector<CORE_ADDR>.
7071 * linux-low.c (install_software_single_step_breakpoints):
7073 * linux-low.h (install_software_single_step_breakpoints):
7076 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7078 * remote-utils.c: Include "gdb_termios.h" instead of
7080 * terminal.h: Delete file.
7082 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7084 * server.c: Include <vector>.
7085 <program_argv, wrapper_argv>: Convert to std::vector.
7086 (start_inferior): Rewrite function to use C++.
7087 (handle_v_run): Likewise. Update code that calculates the argv
7088 based on the vRun packet; use C++.
7089 (captured_main): Likewise.
7091 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7093 * server.c (handle_v_cont): Initialize thread_resume::thread
7096 2017-04-05 Pedro Alves <palves@redhat.com>
7098 * configure: Regenerate.
7100 2017-04-05 Pedro Alves <palves@redhat.com>
7102 * gdbreplay.c (sync_error): Constify.
7103 * linux-x86-low.c (push_opcode): Constify.
7105 2017-04-05 Pedro Alves <palves@redhat.com>
7107 * win32-low.c (get_child_debug_event)
7108 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7109 Report TARGET_WAITKIND_SPURIOUS instead.
7111 2017-04-05 Pedro Alves <palves@redhat.com>
7113 * remote-utils.c (remote_prepare, remote_open): Constify.
7114 * remote-utils.h (remote_prepare, remote_open): Constify.
7115 * server.c (captured_main): Constify 'port' handling.
7117 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7119 * Makefile.in (clean): Clear .deps.
7121 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7123 * .gitignore: Remove generated files, replace with wildcard.
7124 * (clean): Replace removal of generated files with wildcard.
7125 (version.c): Replace with...
7126 (version-generated.c): ...this.
7127 (xml-builtin.c): Replace with...
7128 (xml-builtin-generated.c): ...this.
7129 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7130 (%.c: *regformats*): Replace with...
7131 (%-generated.c: *regformats*): ...this.
7133 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7135 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7136 (xtensa_fill_gregset): Call collect_register_by_name for
7138 (xtensa_store_gregset): Call supply_register_by_name for
7141 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7143 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7144 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7145 (xtensa_store_gregset): Call supply_register for all registers in
7146 a0_regnum..a0_regnum + C0_NREGS range.
7148 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7150 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7151 (ax-ipa.o: ax.c): Remove.
7152 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7153 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7154 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7155 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7156 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7158 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7160 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7161 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7162 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7163 (errors-ipa.o: ../common/errors.c): Remove.
7164 (format-ipa.o: ../common/format.c): Remove.
7165 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7167 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7169 * Makefile.in (%-ipa.o: %.c): New rule.
7170 (tracepoint-ipa.o: tracepoint.c): Remove.
7171 (utils-ipa.o: utils.c): Remove.
7172 (remote-utils-ipa.o: remote-utils.c): Remove.
7173 (regcache-ipa.o: regcache.c): Remove.
7174 (i386-linux-ipa.o: i386-linux.c): Remove.
7175 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7176 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7177 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7178 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7179 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7180 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7181 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7182 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7183 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7184 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7185 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7186 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7187 (aarch64-ipa.o: aarch64.c): Remove.
7188 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7189 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7190 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7191 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7192 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7193 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7194 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7195 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7196 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7197 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7198 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7199 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7200 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7201 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7202 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7203 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7204 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7205 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7206 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7207 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7208 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7209 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7210 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7211 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7212 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7213 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7214 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7215 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7216 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7217 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7218 (tdesc-ipa.o: tdesc.c): Remove.
7219 (x32-linux-ipa.o: x32-linux.c): Remove.
7220 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7221 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7223 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7225 * Makefile.in (%.o: ../arch/%.c): New rule.
7226 (arm.o: ../arch/arm.c): Remove.
7227 (arm-linux.o: ../arch/arm-linux.c): Remove.
7228 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7229 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7231 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7233 * Makefile.in (%.o: ../nat/%.c): New rule.
7234 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7235 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7236 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7237 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7238 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7239 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7240 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7241 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7242 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7243 (linux-personality.o: ../nat/linux-personality.c): Remove.
7244 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7245 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7246 (x86-linux.o: ../nat/x86-linux.c): Remove.
7247 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7248 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7250 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7252 * Makefile.in (%.o: ../common/%.c): New rule.
7253 (signals.o: ../common/signals.c): Remove.
7254 (print-utils.o: ../common/print-utils.c): Remove.
7255 (rsp-low.o: ../common/rsp-low.c): Remove.
7256 (common-utils.o: ../common/common-utils.c): Remove.
7257 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7258 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7259 (vec.o: ../common/vec.c): Remove.
7260 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7261 (xml-utils.o: ../common/xml-utils.c): Remove.
7262 (ptid.o: ../common/ptid.c): Remove.
7263 (buffer.o: ../common/buffer.c): Remove.
7264 (format.o: ../common/format.c): Remove.
7265 (filestuff.o: ../common/filestuff.c): Remove.
7266 (agent.o: ../common/agent.c): Remove.
7267 (errors.o: ../common/errors.c): Remove.
7268 (environ.o: ../common/environ.c): Remove.
7269 (common-debug.o: ../common/common-debug.c): Remove.
7270 (cleanups.o: ../common/cleanups.c): Remove.
7271 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7272 (fileio.o: ../common/fileio.c): Remove.
7273 (common-regcache.o: ../common/common-regcache.c): Remove.
7274 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7275 (new-op.o: ../common/new-op.c): Remove.
7276 (btrace-common.o: ../common/btrace-common.c): Remove.
7278 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7280 * Makefile.in (%.o: ../target/%.c): New rule.
7281 (waitstatus.o: ../target/waitstatus.c): Remove.
7283 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7286 (%.c: ../regformats/%.dat,
7287 (%.c: ../regformats/arm/%.dat,
7288 (%.c: ../regformats/i386/%.dat,
7289 (%.c: ../regformats/rs6000/%.dat): New rules.
7290 (aarch64.c): Remove.
7291 (reg-arm.c): Remove.
7292 (arm-with-iwmmxt.c): Remove.
7293 (arm-with-vfpv2.c): Remove.
7294 (arm-with-vfpv3.c): Remove.
7295 (arm-with-neon.c): Remove.
7296 (reg-bfin.c): Remove.
7297 (reg-cris.c): Remove.
7298 (reg-crisv32.c): Remove.
7300 (i386-linux.c): Remove.
7301 (i386-avx.c): Remove.
7302 (i386-avx-linux.c): Remove.
7303 (i386-avx-avx512.c): Remove.
7304 (i386-avx-avx512-linux.c): Remove.
7305 (i386-mpx.c): Remove.
7306 (i386-mpx-linux.c): Remove.
7307 (i386-avx-mpx-avx512-pku.c): Remove.
7308 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7309 (i386-avx-mpx.c): Remove.
7310 (i386-avx-mpx-linux.c): Remove.
7311 (i386-mmx.c): Remove.
7312 (i386-mmx-linux.c): Remove.
7313 (reg-ia64.c): Remove.
7314 (reg-m32r.c): Remove.
7315 (reg-m68k.c): Remove.
7317 (mips-linux.c): Remove.
7318 (mips-dsp-linux.c): Remove.
7319 (mips64-linux.c): Remove.
7320 (mips64-dsp-linux.c): Remove.
7321 (nios2-linux.c): Remove.
7322 (powerpc-32.c): Remove.
7323 (powerpc-32l.c): Remove.
7324 (powerpc-altivec32l.c): Remove.
7325 (powerpc-cell32l.c): Remove.
7326 (powerpc-vsx32l.c): Remove.
7327 (powerpc-isa205-32l.c): Remove.
7328 (powerpc-isa205-altivec32l.c): Remove.
7329 (powerpc-isa205-vsx32l.c): Remove.
7330 (powerpc-e500l.c): Remove.
7331 (powerpc-64l.c): Remove.
7332 (powerpc-altivec64l.c): Remove.
7333 (powerpc-cell64l.c): Remove.
7334 (powerpc-vsx64l.c): Remove.
7335 (powerpc-isa205-64l.c): Remove.
7336 (powerpc-isa205-altivec64l.c): Remove.
7337 (powerpc-isa205-vsx64l.c): Remove.
7338 (s390-linux32.c): Remove.
7339 (s390-linux32v1.c): Remove.
7340 (s390-linux32v2.c): Remove.
7341 (s390-linux64.c): Remove.
7342 (s390-linux64v1.c): Remove.
7343 (s390-linux64v2.c): Remove.
7344 (s390-te-linux64.c): Remove.
7345 (s390-vx-linux64.c): Remove.
7346 (s390-tevx-linux64.c): Remove.
7347 (s390x-linux64.c): Remove.
7348 (s390x-linux64v1.c): Remove.
7349 (s390x-linux64v2.c): Remove.
7350 (s390x-te-linux64.c): Remove.
7351 (s390x-vx-linux64.c): Remove.
7352 (s390x-tevx-linux64.c): Remove.
7353 (tic6x-c64xp-linux.c): Remove.
7354 (tic6x-c64x-linux.c): Remove.
7355 (tic6x-c62x-linux.c): Remove.
7357 (reg-sparc64.c): Remove.
7358 (reg-spu.c): Remove.
7360 (amd64-linux.c): Remove.
7361 (amd64-avx.c): Remove.
7362 (amd64-avx-linux.c): Remove.
7363 (amd64-avx-avx512.c): Remove.
7364 (amd64-avx-avx512-linux.c): Remove.
7365 (amd64-mpx.c): Remove.
7366 (amd64-mpx-linux.c): Remove.
7367 (amd64-avx-mpx-avx512-pku.c): Remove.
7368 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7369 (amd64-avx-mpx.c): Remove.
7370 (amd64-avx-mpx-linux.c): Remove.
7372 (x32-linux.c): Remove.
7373 (x32-avx.c): Remove.
7374 (x32-avx-linux.c): Remove.
7375 (x32-avx-avx512.c): Remove.
7376 (x32-avx-avx512-linux.c): Remove.
7377 (reg-xtensa.c): Remove.
7378 (reg-tilegx.c): Remove.
7379 (reg-tilegx32.c): Remove.
7381 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7383 * Makefile.in (SFILES): Add "common/environ.c".
7384 (OBJS): Add "common/environ.h".
7386 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7388 * configure.ac: Check if the fs_base and gs_base members of
7389 `struct user_regs_struct' exist.
7390 * config.in: Regenerated.
7391 * configure: Likewise.
7393 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7395 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7397 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7398 (get_next_pcs_syscall_next_pc): Likewise.
7400 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7402 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7403 * nto-x86-low.c: Likewise.
7405 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7407 * Makefile.in: Include disable-implicit-rules.mk.
7409 2016-11-23 Pedro Alves <palves@redhat.com>
7411 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7412 (debug_vprintf): Use std::chrono::steady_clock instead of
7413 gettimeofday. Use '.' instead of ':'.
7414 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7415 (get_timestamp): Use std::chrono::steady_clock instead of
7418 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7420 * Makefile.in: Fix whitespace formatting.
7422 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7424 * Makefile.in (SFILES, OBS): Flatten list and order
7427 2016-11-23 Pedro Alves <palves@redhat.com>
7429 * event-loop.c (handle_file_event): Use warning.
7430 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7431 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7434 2016-11-23 Pedro Alves <palves@redhat.com>
7436 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7438 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7439 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7440 debug_printf and debug_flush for debug output.
7441 * server.c (handle_general_set): Likewise.
7442 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7445 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7447 * Makefile.in (.c.o): Replace rule with ...
7448 (%.o: %.c): ... this one.
7450 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7452 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7453 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7455 * configure.ac: Remove checks for the make program.
7456 * configure: Re-generate.
7458 2016-10-28 Pedro Alves <palves@redhat.com>
7460 * Makefile.in (CXX_DIALECT): Get from configure.
7461 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7462 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7463 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7464 * config.in: Regenerate.
7465 * configure: Regenerate.
7467 2016-10-27 Yao Qi <yao.qi@linaro.org>
7469 * linux-low.c (linux_supports_range_stepping): Return true if
7470 can_software_single_step return true.
7472 2016-10-27 Yao Qi <yao.qi@linaro.org>
7474 * inferiors.c (find_inferior_in_random): New function.
7475 * inferiors.h (find_inferior_in_random): Declare.
7476 * linux-low.c (linux_wait_for_event_filtered): Call
7477 find_inferior_in_random instead of find_inferior.
7479 2016-10-27 Yao Qi <yao.qi@linaro.org>
7481 * linux-low.c (linux_wait_1): If single-step breakpoints are
7482 inserted, remove them.
7484 2016-10-26 Pedro Alves <palves@redhat.com>
7486 * linux-low.c (handle_extended_wait): Link parent/child fork
7488 (linux_wait_1): Unlink them.
7489 (linux_set_resume_request): Ignore resume requests for
7490 already-resumed and unhandled fork child threads.
7491 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7492 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7494 (handle_v_requests) <vCont>: Don't call require_running.
7495 * server.h (in_queued_stop_replies): New declaration.
7497 2016-10-24 Yao Qi <yao.qi@linaro.org>
7500 * linux-aarch64-low.c (append_insns): Cast the return value to
7503 2016-10-10 Yao Qi <yao.qi@linaro.org>
7505 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7507 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7509 * target.c (target_supports_multi_process): New function, moved
7511 * target.h (target_supports_multi_process): ... here. Remove
7514 2016-10-05 Tom Tromey <tom@tromey.com>
7517 * tracepoint.c (handle_tracepoint_bkpts): Check
7518 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7520 2016-10-05 Yao Qi <yao.qi@linaro.org>
7522 * configure.srv: Update the path of arm-*.xml files.
7524 2016-10-05 Terry Guo <terry.guo@arm.com>
7525 Yao Qi <yao.qi@linaro.org>
7527 * Makefile.in: Adjust the path of rules.
7528 * configure.srv: Update the path of xml files.
7529 * regformats/arm-with-iwmmxt.dat: Regenerated.
7530 * regformats/arm-with-neon.dat: Likewise.
7531 * regformats/arm-with-vfpv2.dat: Likewise.
7532 * regformats/arm-with-vfpv3.dat Likewise.
7534 2016-09-30 Yao Qi <yao.qi@linaro.org>
7537 * target.c (target_stop_and_wait): Don't call
7538 target_continue_no_signal, use resume_stop instead.
7540 2016-09-26 Yao Qi <yao.qi@linaro.org>
7542 * linux-low.c (linux_wait_1): Call debug_exit.
7544 2016-09-23 Pedro Alves <palves@redhat.com>
7546 * Makefile.in (SFILES): Add common/new-op.c.
7547 (OBS): Add common/new-op.o.
7548 (new-op.o): New rule.
7550 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7552 * .gitinore: Ignore more files.
7554 2016-09-21 Yao Qi <yao.qi@linaro.org>
7556 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7559 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7561 * server.c (start_inferior): Call target_mourn_inferior instead of
7562 mourn_inferior; pass ptid_t argument to it.
7564 (handle_target_event): Likewise.
7565 * target.c (target_mourn_inferior): New function.
7566 * target.h (mourn_inferior): Delete macro.
7568 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7570 * linux-low.c (lwp_is_stepping): New function.
7572 2016-09-06 Carl Love <cel@us.ibm.com>
7574 * server.c (start_inferior): Fixed comment, requested comment change
7575 didn't get updated correctly. Removed reference to ptrace () call as
7576 it is only true on Linux systems.
7578 2016-09-06 Carl Love <cel@us.ibm.com>
7580 * server.c (start_inferior): Do not call
7581 function target_post_create_inferior () if the
7582 inferior process has already exited.
7584 2016-09-05 Pedro Alves <palves@redhat.com>
7586 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7587 (COMPILE.pre, CC_LD): Use CXX directly.
7588 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7589 * acinclude.m4: Don't include build-with-cxx.m4.
7590 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7591 * configure: Regenerate.
7593 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7596 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7597 call writing data to own_buf.
7599 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7601 * target.c (mywait): Call target_wait instead of
7603 (target_wait): New function.
7605 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7607 * server.c (start_inferior): New variable 'ptid'. Replace calls
7608 to the_target->resume by target_continue{,_no_signal}, depending
7610 * target.c (target_stop_and_wait): Call target_continue_no_signal
7611 instead of the_target->resume.
7612 (target_continue): New function.
7614 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7616 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7618 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7621 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7623 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7624 * linux-arm-low.c (ps_get_thread_area): Likewise.
7625 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7626 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7627 * linux-mips-low.c (ps_get_thread_area): Likewise.
7628 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7629 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7630 * linux-x86-low.c (ps_get_thread_area): Likewise.
7631 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7633 2016-08-19 Pedro Alves <palves@redhat.com>
7635 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7637 2016-08-19 Pedro Alves <palves@redhat.com>
7639 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7640 comment. Use memcpy instead of casting through unsigned long.
7642 2016-08-19 Pedro Alves <palves@redhat.com>
7644 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7645 allocating around 0x80000000.
7647 2016-08-19 Pedro Alves <palves@redhat.com>
7650 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7651 (x32-avx512-linux-ipa.o): New rules.
7652 * configure.ac (x86_64-*-linux*): New x32 check.
7653 * configure.srv (ipa_x32_linux_regobj): New.
7654 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7655 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7657 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7659 * configure: Regenerate.
7661 2016-08-09 Pedro Alves <palves@redhat.com>
7664 * Makefile.in (OBS): Add signals-state-save-restore.o.
7665 (signals-state-save-restore.o): New rule.
7666 * config.in: Regenerate.
7667 * configure: Regenerate.
7668 * linux-low.c: Include "signals-state-save-restore.h".
7669 (linux_create_inferior): Call
7670 restore_original_signals_state.
7671 * server.c: Include "dispositions-save-restore.h".
7672 (captured_main): Call save_original_signals_state.
7674 2016-08-05 Pedro Alves <palves@redhat.com>
7676 * configure: Regenerate.
7678 2016-08-04 Yao Qi <yao.qi@linaro.org>
7680 * linux-low.c (regsets_fetch_inferior_registers): Check
7681 errno is ESRCH or not.
7683 2016-08-02 Yao Qi <yao.qi@linaro.org>
7685 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7686 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7687 (thread_db_load_search): Update.
7688 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7689 td_ta_set_event and td_ta_event_getmsg.
7691 2016-07-26 Pedro Alves <palves@redhat.com>
7694 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7695 of unsigned long for 64-bit registers and use uint32_t instead of
7696 unsigned int for 32-bit registers.
7698 2016-07-26 Pedro Alves <palves@redhat.com>
7700 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7703 2016-07-21 Tom Tromey <tom@tromey.com>
7705 * configure: Rebuild.
7707 2016-07-21 Yao Qi <yao.qi@linaro.org>
7709 * mem-break.c (find_gdb_breakpoint): Cast bp to
7710 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7712 2016-07-21 Yao Qi <yao.qi@linaro.org>
7714 * server.c (handle_v_requests): Support s and S actions
7715 if target_supports_software_single_step return true.
7717 2016-07-21 Yao Qi <yao.qi@linaro.org>
7719 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7720 is resume_step, call maybe_hw_step.
7721 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7723 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7725 (proceed_one_lwp): If resume request is resume_step, install
7726 reinsert breakpoints and call maybe_hw_step.
7728 2016-07-21 Yao Qi <yao.qi@linaro.org>
7730 * linux-low.c (proceed_one_lwp): Declare.
7731 (linux_resume_one_thread): Remove local variable 'step'.
7732 Lift code enqueue signal. Call proceed_one_lwp instead of
7733 linux_resume_one_lwp.
7735 2016-07-21 Yao Qi <yao.qi@linaro.org>
7737 * linux-low.c (linux_resume_one_thread): Call
7738 enqueue_pending_signal.
7740 2016-07-21 Yao Qi <yao.qi@linaro.org>
7742 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7743 * inferiors.c (do_restore_current_thread_cleanup): New function.
7744 (make_cleanup_restore_current_thread): Likewise.
7745 * linux-low.c (install_software_single_step_breakpoints): Call
7746 make_cleanup_restore_current_thread. Switch current_thread to
7749 2016-07-21 Yao Qi <yao.qi@linaro.org>
7751 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7752 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7753 (clone_one_breakpoint): Likewise.
7754 (delete_reinsert_breakpoints): Change parameter to thread.
7756 (has_reinsert_breakpoints): Likewise.
7757 (uninsert_reinsert_breakpoints): Likewise.
7758 (reinsert_reinsert_breakpoints): Likewise.
7759 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7760 (delete_reinsert_breakpoints): Likewise.
7761 (reinsert_reinsert_breakpoints): Likewise.
7762 (uninsert_reinsert_breakpoints): Likewise.
7763 (has_reinsert_breakpoints): Likewise.
7765 2016-07-21 Yao Qi <yao.qi@linaro.org>
7767 * inferiors.c (get_thread_process): Make parameter const.
7768 * inferiors.h (get_thread_process): Update declaration.
7769 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7770 Add new parameters child_thread and parent_thread. Callers
7772 * mem-break.h (clone_all_breakpoints): Update declaration.
7774 2016-07-21 Yao Qi <yao.qi@linaro.org>
7776 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7777 <command_list, handler>: Remove.
7778 (struct gdb_breakpoint): New.
7779 (struct other_breakpoint): New.
7780 (struct reinsert_breakpoint): New.
7781 (is_gdb_breakpoint): New function.
7782 (any_persistent_commands): Update command_list if
7783 is_gdb_breakpoint returns true.
7784 (set_breakpoint): Create breakpoints according to their types.
7785 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7786 (set_gdb_breakpoint_1): Likewise.
7787 (set_gdb_breakpoint): Likewise.
7788 (clear_breakpoint_conditions): Change parameter type to
7789 'struct gdb_breakpoint *'.
7790 (clear_breakpoint_commands): Likewise.
7791 (clear_breakpoint_conditions_and_commands): Likewise.
7792 (add_condition_to_breakpoint): Likewise.
7793 (add_breakpoint_condition): Likewise.
7794 (add_commands_to_breakpoint): Likewise.
7795 (check_breakpoints): Check other_breakpoint.
7796 (clone_one_breakpoint): Clone breakpopint according to its type.
7797 * mem-break.h (struct gdb_breakpoint): Declare.
7798 (set_gdb_breakpoint): Update declaration.
7799 (clear_breakpoint_conditions_and_commands): Likewise.
7800 (add_breakpoint_condition): Likewise.
7801 (add_breakpoint_commands): Likewise.
7802 * server.c (process_point_options): Change parameter type to
7803 'struct gdb_breakpoint *'.
7805 2016-07-21 Yao Qi <yao.qi@linaro.org>
7807 * mem-break.c (set_breakpoint_at): Rename it to ...
7808 (set_breakpoint_type_at): ... it.
7809 (set_breakpoint_at): Call set_breakpoint_type_at.
7810 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7811 * mem-break.h (set_breakpoint_at): Update comments.
7813 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7815 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7817 (nios2_store_gregset): Likewise.
7819 2016-07-01 Pedro Alves <palves@redhat.com>
7820 Antoine Tremblay <antoine.tremblay@ericsson.com>
7822 * linux-low.c: Change interface to take the target lwp_info
7823 pointer directly and return void. Handle detaching from a zombie
7825 (linux_detach_lwp_callback): New function.
7826 (linux_detach): Detach from the leader thread after detaching from
7829 2016-06-28 Yao Qi <yao.qi@linaro.org>
7831 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7832 for variable new_offset.
7833 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7834 (aarch64_ftrace_insn_reloc_cb): Likewise.
7835 (aarch64_ftrace_insn_reloc_tb): Likewise.
7836 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7837 PRIx64 instead of PRIx32.
7839 2016-06-28 Yao Qi <yao.qi@linaro.org>
7841 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7842 (the_low_target): Install arm_get_syscall_trapinfo.
7844 2016-06-28 Yao Qi <yao.qi@linaro.org>
7846 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7848 (the_low_target): Install aarch64_get_syscall_trapinfo.
7850 2016-06-28 Yao Qi <yao.qi@linaro.org>
7852 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7854 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7855 Remove parameter sysno.
7856 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7859 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7861 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7862 (s390_emit_ne_goto): Likewise.
7863 (s390_emit_lt_goto): Likewise.
7864 (s390_emit_le_goto): Likewise.
7865 (s390_emit_gt_goto): Likewise.
7866 (s390_emit_ge_goto): Likewise.
7867 (s390x_emit_eq_goto): Likewise.
7868 (s390x_emit_ne_goto): Likewise.
7869 (s390x_emit_lt_goto): Likewise.
7870 (s390x_emit_le_goto): Likewise.
7871 (s390x_emit_gt_goto): Likewise.
7872 (s390x_emit_ge_goto): Likewise.
7873 (s390_emit_ops_impl): Mark variable static.
7874 (s390x_emit_ops): Likewise.
7876 2016-06-17 Yao Qi <yao.qi@linaro.org>
7878 * linux-low.c (handle_extended_wait): Call
7879 uninsert_reinsert_breakpoints for the parent process. Remove
7880 reinsert breakpoints from the child process. Reinsert them to
7881 the parent process when vfork is done.
7882 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7883 (reinsert_reinsert_breakpoints): New function.
7884 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7885 (reinsert_reinsert_breakpoints): Declare.
7887 2016-06-17 Yao Qi <yao.qi@linaro.org>
7889 * linux-low.c (handle_extended_wait): If the parent is doing
7890 step-over, remove the reinsert breakpoints from the forked child.
7892 2016-06-17 Yao Qi <yao.qi@linaro.org>
7894 * linux-low.c (unsuspend_all_lwps): Declare.
7895 (linux_low_filter_event): If thread exited, call finish_step_over.
7896 If step-over is finished, unsuspend other threads.
7898 2016-06-17 Yao Qi <yao.qi@linaro.org>
7900 * linux-low.c (linux_resume_one_lwp_throw): Assert
7901 has_reinsert_breakpoints returns false.
7902 * mem-break.c (delete_disabled_breakpoints): Assert
7903 bp type isn't reinsert_breakpoint.
7905 2016-06-17 Yao Qi <yao.qi@linaro.org>
7907 * linux-low.c (maybe_hw_step): New function.
7908 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7909 (finish_step_over): Switch current_thread to lwp temporarily,
7910 and assert has_reinsert_breakpoints returns true.
7911 (proceed_one_lwp): Call maybe_hw_step.
7912 * mem-break.c (has_reinsert_breakpoints): New function.
7913 * mem-break.h (has_reinsert_breakpoints): Declare.
7915 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7917 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7919 2016-05-17 Yao Qi <yao.qi@linaro.org>
7921 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7922 instead of find_inferior.
7924 2016-05-05 Yao Qi <yao.qi@linaro.org>
7926 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7927 Initialize res to zero.
7929 2016-05-05 Yao Qi <yao.qi@linaro.org>
7931 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7934 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7936 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7937 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7938 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7940 2016-04-28 Par Olsson <par.olsson@windriver.com>
7941 Simon Marchi <simon.marchi@ericsson.com>
7943 * tracepoint.c (write_inferior_int8): New function.
7944 (cmd_qtenable_disable): Write enable flag using
7945 write_inferior_int8.
7947 2016-04-25 Yao Qi <yao.qi@linaro.org>
7949 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7950 (need_step_over_p): Return zero if the LWP has pending signals
7951 can be delivered on software single step target.
7953 2016-04-25 Yao Qi <yao.qi@linaro.org>
7955 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7956 return instead of error.
7958 2016-04-22 Yao Qi <yao.qi@linaro.org>
7960 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7963 2016-04-22 Yao Qi <yao.qi@linaro.org>
7965 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7966 signal when stepping over breakpoint with software single
7969 2016-04-21 Pedro Alves <palves@redhat.com>
7971 * linux-s390-low.c (s390_collect_ptrace_register)
7972 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7974 (s390_check_regset): Use void * instead of gdb_byte *.
7976 2016-04-20 Pedro Alves <palves@redhat.com>
7978 * configure: Renegerate.
7980 2016-04-20 Yao Qi <yao.qi@linaro.org>
7982 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7983 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7985 (arm_store_gregset): Likewise.
7987 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7989 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7990 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7991 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7992 (amd64-avx-mpx-linux.c): New rules.
7993 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7994 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7995 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7996 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7997 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7998 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7999 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8000 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8001 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8002 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8003 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8004 * linux-x86-low.c (x86_linux_read_description): Add case for
8005 X86_XSTATE_AVX_MPX_MASK.
8006 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8007 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8008 init_registers_i386_avx_mpx_linux.
8009 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8010 (initialize_low_tracepoint): Call
8011 init_registers_i386_avx_mpx_linux.
8012 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8013 (initialize_low_tracepoint): Call
8014 init_registers_amd64_avx_mpx_linux.
8015 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8016 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8017 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8020 2016-04-18 Pedro Alves <palves@redhat.com>
8022 * configure: Regenerate.
8024 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8026 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8027 (aarch64_emit_sub): Likewise.
8029 2016-04-12 Pedro Alves <palves@redhat.com>
8031 * utils.c (prepare_to_throw_exception): Delete.
8033 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8035 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8037 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8039 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8041 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8043 * linux-aarch64-ipa.c: Add <elf.h> include.
8044 * linux-ppc-ipa.c: Add <elf.h> include.
8045 * linux-s390-ipa.c: Add <elf.h> include.
8047 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8049 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8050 (get_raw_reg_ptr): Likewise.
8051 (get_trace_state_variable_value_ptr): Likewise.
8052 (set_trace_state_variable_value_ptr): Likewise.
8053 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8056 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8057 Marcin Kościelnicki <koriakin@0x04.net>
8060 * linux-ppc-low.c (emit_insns): New function.
8061 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8062 (ppc_emit_prologue): New function.
8063 (ppc_emit_epilogue): New function.
8064 (ppc_emit_add): New function.
8065 (ppc_emit_sub): New function.
8066 (ppc_emit_mul): New function.
8067 (ppc_emit_lsh): New function.
8068 (ppc_emit_rsh_signed): New function.
8069 (ppc_emit_rsh_unsigned): New function.
8070 (ppc_emit_ext): New function.
8071 (ppc_emit_zero_ext): New function.
8072 (ppc_emit_log_not): New function.
8073 (ppc_emit_bit_and): New function.
8074 (ppc_emit_bit_or): New function.
8075 (ppc_emit_bit_xor): New function.
8076 (ppc_emit_bit_not): New function.
8077 (ppc_emit_equal): New function.
8078 (ppc_emit_less_signed): New function.
8079 (ppc_emit_less_unsigned): New function.
8080 (ppc_emit_ref): New function.
8081 (ppc_emit_const): New function.
8082 (ppc_emit_reg): New function.
8083 (ppc_emit_pop): New function.
8084 (ppc_emit_stack_flush): New function.
8085 (ppc_emit_swap): New function.
8086 (ppc_emit_stack_adjust): New function.
8087 (ppc_emit_call): New function.
8088 (ppc_emit_int_call_1): New function.
8089 (ppc_emit_void_call_2): New function.
8090 (ppc_emit_if_goto): New function.
8091 (ppc_emit_goto): New function.
8092 (ppc_emit_eq_goto): New function.
8093 (ppc_emit_ne_goto): New function.
8094 (ppc_emit_lt_goto): New function.
8095 (ppc_emit_le_goto): New function.
8096 (ppc_emit_gt_goto): New function.
8097 (ppc_emit_ge_goto): New function.
8098 (ppc_write_goto_address): New function.
8099 (ppc_emit_ops_impl): New static variable.
8100 (ppc64v1_emit_prologue): New function.
8101 (ppc64v2_emit_prologue): New function.
8102 (ppc64_emit_epilogue): New function.
8103 (ppc64_emit_add): New function.
8104 (ppc64_emit_sub): New function.
8105 (ppc64_emit_mul): New function.
8106 (ppc64_emit_lsh): New function.
8107 (ppc64_emit_rsh_signed): New function.
8108 (ppc64_emit_rsh_unsigned): New function.
8109 (ppc64_emit_ext): New function.
8110 (ppc64_emit_zero_ext): New function.
8111 (ppc64_emit_log_not): New function.
8112 (ppc64_emit_bit_and): New function.
8113 (ppc64_emit_bit_or): New function.
8114 (ppc64_emit_bit_xor): New function.
8115 (ppc64_emit_bit_not): New function.
8116 (ppc64_emit_equal): New function.
8117 (ppc64_emit_less_signed): New function.
8118 (ppc64_emit_less_unsigned): New function.
8119 (ppc64_emit_ref): New function.
8120 (ppc64_emit_const): New function.
8121 (ppc64v1_emit_reg): New function.
8122 (ppc64v2_emit_reg): New function.
8123 (ppc64_emit_pop): New function.
8124 (ppc64_emit_stack_flush): New function.
8125 (ppc64_emit_swap): New function.
8126 (ppc64v1_emit_call): New function.
8127 (ppc64v2_emit_call): New function.
8128 (ppc64v1_emit_int_call_1): New function.
8129 (ppc64v2_emit_int_call_1): New function.
8130 (ppc64v1_emit_void_call_2): New function.
8131 (ppc64v2_emit_void_call_2): New function.
8132 (ppc64_emit_if_goto): New function.
8133 (ppc64_emit_eq_goto): New function.
8134 (ppc64_emit_ne_goto): New function.
8135 (ppc64_emit_lt_goto): New function.
8136 (ppc64_emit_le_goto): New function.
8137 (ppc64_emit_gt_goto): New function.
8138 (ppc64_emit_ge_goto): New function.
8139 (ppc64v1_emit_ops_impl): New static variable.
8140 (ppc64v2_emit_ops_impl): New static variable.
8141 (ppc_emit_ops): New function.
8142 (linux_low_target): Wire in ppc_emit_ops.
8144 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8145 Marcin Kościelnicki <koriakin@0x04.net>
8148 * Makefile.in: Add powerpc-*-ipa.o
8149 * configure.srv: Add ipa_obj for powerpc*-linux.
8150 * linux-ppc-ipa.c: New file.
8151 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8153 (PPC_FIELD): New macro.
8154 (PPC_SEXT): New macro.
8155 (PPC_OP6): New macro.
8156 (PPC_BO): New macro.
8157 (PPC_LI): New macro.
8158 (PPC_BD): New macro.
8159 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8160 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8161 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8162 (ppc_get_thread_area): New function.
8163 (is_elfv2_inferior): New function.
8164 (gen_ds_form): New function.
8165 (GEN_STD): New macro.
8166 (GEN_STDU): New macro.
8167 (GEN_LD): New macro.
8168 (GEN_LDU): New macro.
8169 (gen_d_form): New function.
8170 (GEN_ADDI): New macro.
8171 (GEN_ADDIS): New macro.
8172 (GEN_LI): New macro.
8173 (GEN_LIS): New macro.
8174 (GEN_ORI): New macro.
8175 (GEN_ORIS): New macro.
8176 (GEN_LWZ): New macro.
8177 (GEN_STW): New macro.
8178 (GEN_STWU): New macro.
8179 (gen_xfx_form): New function.
8180 (GEN_MFSPR): New macro.
8181 (GEN_MTSPR): New macro.
8182 (GEN_MFCR): New macro.
8183 (GEN_MTCR): New macro.
8184 (GEN_SYNC): New macro.
8185 (GEN_LWSYNC): New macro.
8186 (gen_x_form): New function.
8187 (GEN_OR): New macro.
8188 (GEN_MR): New macro.
8189 (GEN_LWARX): New macro.
8190 (GEN_STWCX): New macro.
8191 (GEN_CMPW): New macro.
8192 (gen_md_form): New function.
8193 (GEN_RLDICL): New macro.
8194 (GEN_RLDICR): New macro.
8195 (gen_i_form): New function.
8197 (GEN_BL): New macro.
8198 (gen_b_form): New function.
8199 (GEN_BNE): New macro.
8200 (GEN_LOAD): New macro.
8201 (GEN_STORE): New macro.
8202 (gen_limm): New function.
8203 (gen_atomic_xchg): New function.
8204 (gen_call): New function.
8205 (ppc_relocate_instruction): New function.
8206 (ppc_install_fast_tracepoint_jump_pad): New function.
8207 (ppc_get_min_fast_tracepoint_insn_len): New function.
8208 (ppc_get_ipa_tdesc_idx): New function.
8209 (the_low_target): Wire in the new functions.
8210 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8212 * linux-ppc-tdesc.h: New file.
8214 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8216 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8217 (alloc_jump_pad_buffer): New function.
8218 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8219 (alloc_jump_pad_buffer): New function.
8220 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8221 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8222 (alloc_jump_pad_buffer): New function.
8223 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8224 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8225 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8226 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8228 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8230 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8231 * linux-amd64-ipa.c: Likewise.
8232 * linux-i386-ipa.c: Likewise.
8233 * linux-s390-ipa.c: Likewise.
8234 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8235 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8236 set_trace_state_variable_value_ptr.
8237 (struct ipa_sym_addresses): Likewise.
8238 (symbol_list): Likewise.
8239 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8240 accessing gdb_collect directly.
8241 (gdb_collect_ptr_type): New typedef.
8242 (get_raw_reg_ptr_type): New typedef.
8243 (get_trace_state_variable_value_ptr_type): New typedef.
8244 (set_trace_state_variable_value_ptr_type): New typedef.
8245 (gdb_collect_ptr): New global.
8246 (get_raw_reg_ptr): New global.
8247 (get_trace_state_variable_value_ptr): New global.
8248 (set_trace_state_variable_value_ptr): New global.
8249 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8250 accessing get_raw_reg directly.
8251 (get_get_tsv_func_addr): Likewise for
8252 get_trace_state_variable_value_ptr.
8253 (get_set_tsv_func_addr): Likewise for
8254 set_trace_state_variable_value_ptr.
8255 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8257 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8259 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8261 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8263 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8265 (relocate_instruction): Remove own_buf.
8266 * server.c (own_buf): Make global.
8267 (handle_v_requests): Make global.
8268 * server.h (own_buf): New declaration.
8269 (handle_v_requests): New prototype.
8271 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8274 * linux-s390-low.c (add_insns): New function.
8275 (s390_emit_prologue): New function.
8276 (s390_emit_epilogue): New function.
8277 (s390_emit_add): New function.
8278 (s390_emit_sub): New function.
8279 (s390_emit_mul): New function.
8280 (s390_emit_lsh): New function.
8281 (s390_emit_rsh_signed): New function.
8282 (s390_emit_rsh_unsigned): New function.
8283 (s390_emit_ext): New function.
8284 (s390_emit_log_not): New function.
8285 (s390_emit_bit_and): New function.
8286 (s390_emit_bit_or): New function.
8287 (s390_emit_bit_xor): New function.
8288 (s390_emit_bit_not): New function.
8289 (s390_emit_equal): New function.
8290 (s390_emit_less_signed): New function.
8291 (s390_emit_less_unsigned): New function.
8292 (s390_emit_ref): New function.
8293 (s390_emit_if_goto): New function.
8294 (s390_emit_goto): New function.
8295 (s390_write_goto_address): New function.
8296 (s390_emit_litpool): New function.
8297 (s390_emit_const): New function.
8298 (s390_emit_call): New function.
8299 (s390_emit_reg): New function.
8300 (s390_emit_pop): New function.
8301 (s390_emit_stack_flush): New function.
8302 (s390_emit_zero_ext): New function.
8303 (s390_emit_swap): New function.
8304 (s390_emit_stack_adjust): New function.
8305 (s390_emit_set_r2): New function.
8306 (s390_emit_int_call_1): New function.
8307 (s390_emit_void_call_2): New function.
8308 (s390_emit_eq_goto): New function.
8309 (s390_emit_ne_goto): New function.
8310 (s390_emit_lt_goto): New function.
8311 (s390_emit_le_goto): New function.
8312 (s390_emit_gt_goto): New function.
8313 (s390_emit_ge_goto): New function.
8314 (s390x_emit_prologue): New function.
8315 (s390x_emit_epilogue): New function.
8316 (s390x_emit_add): New function.
8317 (s390x_emit_sub): New function.
8318 (s390x_emit_mul): New function.
8319 (s390x_emit_lsh): New function.
8320 (s390x_emit_rsh_signed): New function.
8321 (s390x_emit_rsh_unsigned): New function.
8322 (s390x_emit_ext): New function.
8323 (s390x_emit_log_not): New function.
8324 (s390x_emit_bit_and): New function.
8325 (s390x_emit_bit_or): New function.
8326 (s390x_emit_bit_xor): New function.
8327 (s390x_emit_bit_not): New function.
8328 (s390x_emit_equal): New function.
8329 (s390x_emit_less_signed): New function.
8330 (s390x_emit_less_unsigned): New function.
8331 (s390x_emit_ref): New function.
8332 (s390x_emit_if_goto): New function.
8333 (s390x_emit_const): New function.
8334 (s390x_emit_call): New function.
8335 (s390x_emit_reg): New function.
8336 (s390x_emit_pop): New function.
8337 (s390x_emit_stack_flush): New function.
8338 (s390x_emit_zero_ext): New function.
8339 (s390x_emit_swap): New function.
8340 (s390x_emit_stack_adjust): New function.
8341 (s390x_emit_int_call_1): New function.
8342 (s390x_emit_void_call_2): New function.
8343 (s390x_emit_eq_goto): New function.
8344 (s390x_emit_ne_goto): New function.
8345 (s390x_emit_lt_goto): New function.
8346 (s390x_emit_le_goto): New function.
8347 (s390x_emit_gt_goto): New function.
8348 (s390x_emit_ge_goto): New function.
8349 (s390_emit_ops): New function.
8350 (struct linux_target_ops): Fill in emit_ops hook.
8352 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8355 * Makefile.in: Add s390 IPA files.
8356 * configure.srv: Build IPA for s390.
8357 * linux-s390-ipa.c: New file.
8358 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8359 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8360 (tdesc_s390_linux32): Likewise.
8361 (init_registers_s390_linux32v1): Likewise.
8362 (tdesc_s390_linux32v1): Likewise.
8363 (init_registers_s390_linux32v2): Likewise.
8364 (tdesc_s390_linux32v2): Likewise.
8365 (init_registers_s390_linux64): Likewise.
8366 (tdesc_s390_linux64): Likewise.
8367 (init_registers_s390_linux64v1): Likewise.
8368 (tdesc_s390_linux64v1): Likewise.
8369 (init_registers_s390_linux64v2): Likewise.
8370 (tdesc_s390_linux64v2): Likewise.
8371 (init_registers_s390_te_linux64): Likewise.
8372 (tdesc_s390_te_linux64): Likewise.
8373 (init_registers_s390_vx_linux64): Likewise.
8374 (tdesc_s390_vx_linux64): Likewise.
8375 (init_registers_s390_tevx_linux64): Likewise.
8376 (tdesc_s390_tevx_linux64): Likewise.
8377 (init_registers_s390x_linux64): Likewise.
8378 (tdesc_s390x_linux64): Likewise.
8379 (init_registers_s390x_linux64v1): Likewise.
8380 (tdesc_s390x_linux64v1): Likewise.
8381 (init_registers_s390x_linux64v2): Likewise.
8382 (tdesc_s390x_linux64v2): Likewise.
8383 (init_registers_s390x_te_linux64): Likewise.
8384 (tdesc_s390x_te_linux64): Likewise.
8385 (init_registers_s390x_vx_linux64): Likewise.
8386 (tdesc_s390x_vx_linux64): Likewise.
8387 (init_registers_s390x_tevx_linux64): Likewise.
8388 (tdesc_s390x_tevx_linux64): Likewise.
8389 (have_hwcap_s390_vx): New static variable.
8390 (s390_arch_setup): Fill have_hwcap_s390_vx.
8391 (s390_get_thread_area): New function.
8392 (s390_ft_entry_gpr_esa): New const.
8393 (s390_ft_entry_gpr_zarch): New const.
8394 (s390_ft_entry_misc): New const.
8395 (s390_ft_entry_fr): New const.
8396 (s390_ft_entry_vr): New const.
8397 (s390_ft_main_31): New const.
8398 (s390_ft_main_64): New const.
8399 (s390_ft_exit_fr): New const.
8400 (s390_ft_exit_vr): New const.
8401 (s390_ft_exit_misc): New const.
8402 (s390_ft_exit_gpr_esa): New const.
8403 (s390_ft_exit_gpr_zarch): New const.
8404 (append_insns): New function.
8405 (s390_relocate_instruction): New function.
8406 (s390_install_fast_tracepoint_jump_pad): New function.
8407 (s390_get_min_fast_tracepoint_insn_len): New function.
8408 (s390_get_ipa_tdesc_idx): New function.
8409 (struct linux_target_ops): Wire in the above functions.
8410 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8411 * linux-s390-tdesc.h: New file.
8413 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8415 * linux-s390-low.c (s390_supports_tracepoints): New function.
8416 (struct linux_target_ops): Fill supports_tracepoints hook.
8418 2016-03-18 Yao Qi <yao.qi@linaro.org>
8420 * linux-low.c (lwp_signal_can_be_delivered): New function.
8421 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8423 2016-03-18 Yao Qi <yao.qi@linaro.org>
8425 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8426 0 if signal is enqueued. Remove 'signal' from one debugging
8427 message. Move one debugging message to some lines below.
8428 Remove code setting 'signal' to 0.
8430 2016-03-18 Yao Qi <yao.qi@linaro.org>
8432 * linux-low.c (linux_low_filter_event): Remove redundant
8433 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8435 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8437 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8438 (struct linux_target_ops): Wire in the above.
8440 2016-03-03 Yao Qi <yao.qi@linaro.org>
8442 * linux-low.c: Update comments to start_step_over.
8444 2016-03-03 Yao Qi <yao.qi@linaro.org>
8447 * linux-low.c (handle_extended_wait): Set child suspended
8448 if event_lwp->bp_reinsert isn't zero.
8450 2016-03-02 Yao Qi <yao.qi@linaro.org>
8452 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8453 enqueue_pending_signal.
8455 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8457 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8460 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8462 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8463 (s390_regmap_3264) [!__s390x__]: New global.
8464 (s390_collect_ptrace_register): Skip map entries containing -1.
8465 (s390_supply_ptrace_register): Ditto.
8466 (s390_fill_gprs_high): New function.
8467 (s390_store_gprs_high): New function.
8468 (s390_regsets): Add NT_S390_HIGH_GPRS.
8469 (s390_get_hwcap): Enable on 31-bit.
8470 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8471 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8472 Detect NT_S390_HIGH_GPRS.
8473 (s390_usrregs_info_3264): Enable on 31-bit.
8474 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8475 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8477 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8480 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8481 * configure.srv: Ditto.
8482 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8483 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8484 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8485 (init_registers_amd64_linux): Remove prototype.
8486 (tdesc_amd64_linux): Remove declaration.
8487 (get_ipa_tdesc): New function.
8488 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8489 initialize remaining tdescs.
8490 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8491 (init_registers_i386_linux): Remove prototype.
8492 (tdesc_i386_linux): Remove declaration.
8493 (get_ipa_tdesc): New function.
8494 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8495 initialize remaining tdescs.
8496 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8497 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8498 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8499 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8500 (x86_get_ipa_tdesc_idx): New function.
8501 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8502 * linux-x86-tdesc.h: New file.
8503 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8504 (target_get_ipa_tdesc_idx): New macro.
8505 * tracepoint.c (ipa_tdesc_idx): New macro.
8506 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8507 (symbol_list): Add ipa_tdesc_idx.
8508 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8509 (ipa_tdesc): Remove.
8510 (ipa_tdesc_idx): New variable.
8511 (get_context_regcache): Use get_ipa_tdesc.
8512 (gdb_collect): Ditto.
8514 * tracepoint.h (get_ipa_tdesc): New prototype.
8515 (ipa_tdesc): Remove.
8517 2016-02-24 Pedro Alves <palves@redhat.com>
8519 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8520 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8521 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8522 Factor out common code between the USE_SIGTRAP_SIGINFO and
8523 !USE_SIGTRAP_SIGINFO blocks.
8524 (linux_low_filter_event): Call save_stop_reason instead of
8525 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8527 (linux_wait_1): Update comments.
8529 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8531 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8532 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8533 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8534 ppc_insert_point, ppc_remove_point.
8536 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8538 * linux-s390-low.c (s390_supports_z_point_type): New function.
8539 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8541 2016-02-16 Yao Qi <yao.qi@linaro.org>
8543 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8544 PC. Get pc from regcache_read_pc.
8546 2016-02-12 Yao Qi <yao.qi@linaro.org>
8548 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8549 or linux_get_pc_32bit.
8550 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8552 2016-02-12 Yao Qi <yao.qi@linaro.org>
8554 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8555 arm_linux_get_next_pcs_fixup.
8557 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8559 * tracepoint.c (x_tracepoint_action_download): Change
8560 write_inferior_data_ptr to write_inferior_data_pointer.
8561 (cmd_qtstart): Likewise.
8562 (write_inferior_data_ptr): Remove.
8563 (download_agent_expr): Change write_inferior_data_ptr to
8564 write_inferior_data_pointer.
8565 (download_tracepoint_1): Likewise.
8566 (download_tracepoint): Likewise.
8567 (download_trace_state_variables): Likewise.
8569 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8570 Marcin Kościelnicki <koriakin@0x04.net>
8572 * tracepoint.c (struct tracepoint_action_ops): Remove.
8573 (struct tracepoint_action): Remove ops.
8574 (m_tracepoint_action_download, r_tracepoint_action_download)
8575 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8576 size and offset accordingly.
8577 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8578 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8579 (tracepoint_action_send, tracepoint_action_download): New functions.
8580 Helpers for trace action handlers.
8581 (add_tracepoint_action): Remove setup actions ops.
8582 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8584 2016-02-10 Yao Qi <yao.qi@linaro.org>
8586 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8588 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8590 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8592 * configure: Regenerate.
8594 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8596 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8597 void * to gdb_byte *.
8598 * linux-low.c (siginfo_fixup): Likewise.
8599 (linux_xfer_siginfo): Likewise.
8600 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8602 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8604 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8606 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8608 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8610 * linux-x86-low.c [__x86_64__]: Include
8611 "nat/amd64-linux-siginfo.h".
8612 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8613 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8614 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8615 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8616 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8617 (cpt_si_fd, si_timerid, si_overrun): Move from
8618 nat/amd64-linux-siginfo.c.
8619 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8621 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8623 * server.c (skip_to_semicolon): Remove.
8624 (process_point_options): Use strchrnul instead of
8627 2016-01-26 Yao Qi <yao.qi@linaro.org>
8629 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8630 * linux-low.c (install_software_single_step_breakpoints): Don't
8631 call regcache_read_pc.
8632 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8635 2016-01-26 Yao Qi <yao.qi@linaro.org>
8637 * linux-low.c (install_software_single_step_breakpoints): Call
8638 regcache_read_pc instead of get_pc.
8640 2016-01-26 Yao Qi <yao.qi@linaro.org>
8642 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8643 (unblock_async_io): Rename to ...
8644 (block_unblock_async_io): ... it. New function.
8645 (enable_async_io): Don't install SIGIO handler. Unblock it
8647 (disable_async_io): Don't ignore SIGIO. Block it instead.
8648 (initialize_async_io): Install SIGIO handler. Don't call
8651 2016-01-26 Yao Qi <yao.qi@linaro.org>
8653 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8654 first character is '\003', call *the_target->request_interrupt.
8656 2016-01-25 Yao Qi <yao.qi@linaro.org>
8658 * remote-utils.c (new_thread_notify): Remove.
8659 (dead_thread_notify): Likewise.
8660 * remote-utils.h (new_thread_notify): Remove declaration.
8661 (dead_thread_notify): Likewise.
8663 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8665 * gdb.trace/pending.exp: Fix expected message on continue.
8667 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8669 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8670 it works properly on big-endian machines where sizeof (CORE_ADDR)
8673 2016-01-21 Pedro Alves <palves@redhat.com>
8675 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8676 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8677 * configure: Regenerate.
8679 2016-01-21 Yao Qi <yao.qi@linaro.org>
8681 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8682 is_thumb and set it according to CPSR saved on the stack.
8683 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8684 arm_sigreturn_next_pc.
8686 2016-01-18 Yao Qi <yao.qi@linaro.org>
8688 * linux-low.c (linux_set_pc_64bit): New function.
8689 (linux_get_pc_64bit): New function.
8690 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8692 * linux-sparc-low.c (debug_threads): Remove declaration.
8693 (sparc_get_pc): Remove.
8694 (the_low_target): Use linux_get_pc_64bit instead of
8696 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8697 (the_low_target): Use linux_get_pc_64bit and
8700 2016-01-18 Yao Qi <yao.qi@linaro.org>
8702 * linux-arm-low.c (debug_threads): Remove declaration.
8703 (arm_get_pc, arm_set_pc): Remove.
8704 (the_low_target): Use linux_get_pc_32bit and
8706 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8707 (the_low_target): Use linux_get_pc_32bit and
8709 * linux-cris-low.c (debug_threads): Remove declaration.
8710 (cris_get_pc, cris_set_pc,): Remove.
8711 (the_low_target): Use linux_get_pc_32bit and
8713 * linux-crisv32-low.c (debug_threads): Remove declaration.
8714 (cris_get_pc, cris_set_pc): Remove.
8715 (the_low_target): Use linux_get_pc_32bit and
8717 * linux-low.c: Include inttypes.h.
8718 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8719 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8720 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8721 (the_low_target): Use linux_get_pc_32bit and
8723 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8724 (the_low_target): Use linux_get_pc_32bit and
8726 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8727 (the_low_target): Use linux_get_pc_32bit and
8729 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8730 (the_low_target): Use linux_get_pc_32bit and
8732 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8733 (the_low_target): Use linux_get_pc_32bit and
8736 2016-01-18 Gary Benson <gbenson@redhat.com>
8738 * configure.ac (AC_FUNC_FORK): New check.
8739 * config.in: Regenerate.
8740 * configure: Likewise.
8742 2016-01-14 Yao Qi <yao.qi@linaro.org>
8744 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8745 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8746 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8747 arm_get_next_pcs_ctor.
8749 2016-01-12 Josh Stone <jistone@redhat.com>
8750 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8752 * inferiors.h: Include "gdb_vecs.h".
8753 (struct process_info): Add syscalls_to_catch.
8754 * inferiors.c (remove_process): Free syscalls_to_catch.
8755 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8756 syscall_return stops.
8757 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8758 * server.c (handle_general_set): Handle QCatchSyscalls.
8759 (handle_query): Report support for QCatchSyscalls.
8760 * target.h (struct target_ops): Add supports_catch_syscall.
8761 (target_supports_catch_syscall): New macro.
8762 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8763 (struct lwp_info): Add syscall_state.
8764 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8765 Maintain syscall_state and syscalls_to_catch across exec.
8766 (get_syscall_trapinfo): New function, proxy to the_low_target.
8767 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8768 (linux_low_filter_event): Toggle syscall_state entry/return for
8769 syscall traps, and set it ignored for all others.
8770 (gdb_catching_syscalls_p): New function.
8771 (gdb_catch_this_syscall_p): New function.
8772 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8773 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8774 (linux_supports_catch_syscall): New function.
8775 (linux_target_ops): Install it.
8776 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8777 (the_low_target): Install it.
8779 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8781 * acinclude.m4: Include new ../warning.m4 file.
8782 * configure: Regenerated.
8783 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8785 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8787 * ax.c (is_goto_target): Mark static.
8788 * linux-low.c (register_addr): Likewise.
8789 (linux_fetch_registers, linux_store_registers): Likewise.
8790 * mem-break.c (any_persistent_commands): Fix old prototype.
8791 (add_commands_to_breakpoint): Mark static.
8792 * regcache.c (find_register_by_name): Delete unused func.
8793 * remote-utils.c (hex_or_minus_one): Mark static.
8794 * server.c (monitor_show_help): Mark static.
8795 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8796 handle_v_requests): Likewise.
8798 2016-01-12 Pedro Alves <palves@redhat.com>
8800 Remove use of the registered trademark symbol throughout.
8802 2016-01-08 Yao Qi <yao.qi@linaro.org>
8804 * remote-utils.c (getpkt): If c is '\003', call target hook
8807 2016-01-06 Yao Qi <yao.qi@linaro.org>
8809 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8810 linux-aarch32-low.c.
8811 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8812 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8813 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8814 (thumb2_breakpoint): Declare.
8815 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8816 linux-aarch32-low.h.
8817 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8818 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8819 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8821 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8823 * gdbreplay.c (gdbreplay_version): Change copyright year in
8825 * server.c (gdbserver_version): Likewise.
8827 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8829 * server.c (crc32_table): Delete.
8830 (crc32): Use libiberty's xcrc32 function.
8832 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8834 * lynx-low.c (lynx_delete_thread_callback): New function.
8835 (lynx_mourn): Properly delete our process and all of its
8836 threads. Remove call to clear_inferiors.
8838 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8840 * target.c (thread_search_callback): Add check that
8841 the thread_stopped target callback is not NULL before
8844 2015-12-21 Yao Qi <yao.qi@linaro.org>
8846 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8849 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8851 * server.c (handle_query): Call target_supports_software_single_step.
8853 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8855 * linux-low.c (single_step): New function.
8856 (linux_resume_one_lwp_throw): Call single_step.
8857 (start_step_over): Likewise.
8859 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8861 * Makefile.in (SFILES): Append arch/arm-linux.c,
8862 arch/arm-get-next-pcs.c.
8863 (arm-linux.o): New rule.
8864 (arm-get-next-pcs.o): New rule.
8865 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8867 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8868 to linux-aarch32-low.c.
8869 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8870 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8871 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8872 (thumb2_breakpoint_len): Likewise.
8873 (arm_is_thumb_mode): Make non-static.
8874 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8875 from linux-aarch32-low.c.
8876 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8877 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8878 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8879 (thumb2_breakpoint_len): Likewise.
8880 (arm_is_thumb_mode): New declaration.
8881 * linux-arm-low.c: Include arch/arm-linux.h
8882 aarch/arm-get-next-pcs.h, sys/syscall.h.
8883 (get_next_pcs_ops): New struct.
8884 (get_next_pcs_addr_bits_remove): New function.
8885 (get_next_pcs_is_thumb): New function.
8886 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8887 (arm_sigreturn_next_pc): Likewise.
8888 (get_next_pcs_syscall_next_pc): Likewise.
8889 (arm_gdbserver_get_next_pcs): Likewise.
8890 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8892 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8893 * server.h: Include gdb_vecs.h.
8895 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8897 * Makefile.in (SFILES): Append common/common-regcache.c.
8898 (OBS): Append common-regcache.o.
8899 (common-regcache.o): New rule.
8900 * regcache.c (init_register_cache): Initialize cache to
8902 (regcache_raw_read_unsigned): New function.
8903 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8904 register_status enum.
8906 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8908 * linux-aarch64-low.c (the_low_targets): Rename
8909 breakpoint_reinsert_addr to get_next_pcs.
8910 * linux-arm-low.c (the_low_targets): Likewise.
8911 * linux-bfin-low.c (the_low_targets): Likewise.
8912 * linux-cris-low.c (the_low_targets): Likewise.
8913 * linux-crisv32-low.c (the_low_targets): Likewise.
8914 * linux-low.c (can_software_single_step): Likewise.
8915 (install_software_single_step_breakpoints): New function.
8916 (start_step_over): Use install_software_single_step_breakpoints.
8917 * linux-low.h: New CORE_ADDR vector.
8918 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8920 * linux-mips-low.c (the_low_targets): Likewise.
8921 * linux-nios2-low.c (the_low_targets): Likewise.
8922 * linux-sparc-low.c (the_low_targets): Likewise.
8924 2015-12-17 Pedro Alves <palves@redhat.com>
8926 * linux-low.c (linux_kill_one_lwp): Remove references to
8928 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8930 (linux_init_signals): Delete.
8931 (initialize_low): Adjust.
8932 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8934 2015-12-16 Pedro Alves <palves@redhat.com>
8936 * configure.ac (compiler warning flags): When testing a
8937 -Wno-foo option, check whether -Wfoo works instead.
8938 * configure: Regenerate.
8940 2015-12-11 Don Breazeal <donb@codesourcery.com>
8942 * server.c (process_serial_event): Don't exit from gdbserver
8943 in remote mode if there are still active inferiors.
8945 2015-12-11 Yao Qi <yao.qi@linaro.org>
8947 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8948 arm_breakpoint_at if the process is 32-bit.
8950 2015-12-11 Yao Qi <yao.qi@linaro.org>
8952 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8955 2015-12-07 Yao Qi <yao.qi@linaro.org>
8957 * configure.srv: Append arm.o to srv_tgtobj for
8958 aarch64*-*-linux* target.
8959 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8960 from linux-arm-low.c.
8961 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8962 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8963 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8964 (thumb2_breakpoint_len): Likewise.
8965 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8966 (arm_breakpoint_kinds): Likewise.
8967 (arm_breakpoint_kind_from_pc): Likewise.
8968 (arm_sw_breakpoint_from_kind): Likewise.
8969 (arm_breakpoint_kind_from_current_state): Likewise.
8970 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8971 (arm_sw_breakpoint_from_kind): Declare.
8972 (arm_breakpoint_kind_from_current_state): Declare.
8973 (arm_breakpoint_at): Declare.
8974 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8975 arm_sw_breakpoint_from_kind if process is 32-bit.
8976 (aarch64_breakpoint_kind_from_pc): New function.
8977 (aarch64_breakpoint_kind_from_current_state): New function.
8978 (the_low_target): Initialize fields breakpoint_kind_from_pc
8979 and breakpoint_kind_from_current_state.
8980 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8981 linux-aarch32-low.c.
8982 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8983 (arm_breakpoint, arm_breakpoint_len): Likewise.
8984 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8985 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8986 (arm_is_thumb_mode): Likewise.
8987 (arm_breakpoint_at): Likewise.
8988 (arm_breakpoint_kind_from_pc): Likewise.
8989 (arm_sw_breakpoint_from_kind): Likewise.
8990 (arm_breakpoint_kind_from_current_state): Likewise.
8993 2015-08-04 Yao Qi <yao.qi@linaro.org>
8995 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8996 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8997 * server.c (extended_protocol): Remove "static".
8998 * server.h (extended_protocol): Declare it.
9000 2015-12-04 Josh Stone <jistone@redhat.com>
9002 * target.h (struct target_ops) <arch_setup>: Rename to ...
9003 (struct target_ops) <post_create_inferior>: ... this.
9004 (target_arch_setup): Rename to ...
9005 (target_post_create_inferior): ... this, calling post_create_inferior.
9006 * server.c (start_inferior): Update target_arch_setup calls to
9007 target_post_create_inferior.
9008 * linux-low.c (linux_low_ptrace_options): Forward declare.
9009 (linux_arch_setup): Update its comment for general use.
9010 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9011 (struct linux_target_ops): Use linux_post_create_inferior.
9012 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9013 to post_create_inferior.
9014 * nto-low.c (struct nto_target_ops): Likewise.
9015 * spu-low.c (struct spu_target_ops): Likewise.
9016 * win32-low.c (struct win32_target_ops): Likewise.
9018 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9020 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9022 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9024 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9025 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9026 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9027 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9028 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9029 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9030 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9031 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9032 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9033 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9034 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9035 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9037 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9039 * linux-low.c (linux_look_up_symbols): Don't call
9040 linux_supports_traceclone.
9041 * linux-low.h (thread_db_init): Remove use_events argument.
9042 * thread-db.c (thread_db_use_event): Remove global variable.
9043 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9044 (struct thread_db) <td_create_bp>: Remove field.
9045 (thread_db_create_event): Remove function.
9046 (thread_db_enable_reporting): Likewise.
9047 (find_one_thread): Don't check for thread_db_use_events.
9048 (attach_thread): Likewise.
9049 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9050 (try_thread_db_load_1): Don't check for thread_db_use_events.
9051 (thread_db_init): Remove use_events argument and thread events
9053 (remove_thread_event_breakpoints): Remove function.
9054 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9056 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9058 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9060 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9061 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9062 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9063 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9064 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9066 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9068 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9069 * linux-low.c (can_hardware_single_step): Use
9070 supports_hardware_single_step.
9071 (can_software_single_step): New function.
9072 (start_step_over): Call can_software_single_step.
9073 (linux_supports_hardware_single_step): New function.
9074 (struct target_ops) <supports_software_single_step>: Initialize.
9075 * linux-low.h (struct linux_target_ops)
9076 <supports_hardware_single_step>: Initialize.
9077 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9078 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9079 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9080 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9081 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9082 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9083 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9084 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9085 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9086 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9088 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9089 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9091 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9092 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9093 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9095 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9096 * target.h (struct target_ops): <supports_software_single_step>:
9098 (target_supports_software_single_step): New macro.
9100 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9102 * linux-low.c (linux_wait_1): Fix pc advance condition.
9103 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9104 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9106 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9108 * linux-arm-low.c (arm_is_thumb_mode): New function.
9109 (arm_breakpoint_at): Use arm_is_thumb_mode.
9110 (arm_breakpoint_kind_from_current_state): New function.
9111 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9113 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9114 (linux_breakpoint_kind_from_current_state): New function.
9115 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9116 * linux-low.h (struct linux_target_ops)
9117 <breakpoint_kind_from_current_state>: New field.
9118 * target.h (struct target_ops): Likewise.
9119 (target_breakpoint_kind_from_current_state): New macro.
9121 2015-11-30 Pedro Alves <palves@redhat.com>
9123 * linux-low.c (linux_resume): Wake up the event loop before
9126 2015-11-30 Pedro Alves <palves@redhat.com>
9128 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9130 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9132 * target.c (struct thread_search): New structure.
9133 (thread_search_callback): New function.
9134 (prev_general_thread): New global.
9135 (prepare_to_access_memory, done_accessing_memory): New functions.
9136 * target.h (prepare_to_access_memory, done_accessing_memory):
9137 Replace macros with function declarations.
9139 2015-11-30 Pedro Alves <palves@redhat.com>
9142 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9143 report TARGET_WAITKIND_NO_RESUMED.
9144 * remote-utils.c (prepare_resume_reply): Handle
9145 TARGET_WAITKIND_NO_RESUMED.
9146 * server.c (report_no_resumed): New global.
9147 (handle_query) <qSupported>: Handle "no-resumed+". Report
9148 "no-resumed+" support.
9149 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9150 return error if the client doesn't support no-resumed events.
9151 (push_stop_notification): New function.
9152 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9153 events if the client supports them.
9155 2015-11-30 Pedro Alves <palves@redhat.com>
9157 * linux-low.c (thread_still_has_status_pending_p): Don't check
9159 (lwp_resumed): New function.
9160 (status_pending_p_callback): Return early if the LWP is not
9161 supposed to be resumed.
9163 2015-11-30 Pedro Alves <palves@redhat.com>
9165 * linux-low.c (handle_extended_wait): Assert that the LWP's
9166 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9167 thread create events, leave the new child's status pending.
9168 (linux_low_filter_event): If GDB wants to hear about thread exit
9169 events, leave the LWP marked dead and don't delete it.
9170 (linux_wait_for_event_filtered): Don't check for thread exit.
9171 (filter_exit_event): New function.
9172 (linux_wait_1): Use it, when returning an exit event.
9173 (linux_resume_one_lwp_throw): Assert that the LWP's
9174 waitstatus is TARGET_WAITKIND_IGNORE.
9175 * remote-utils.c (prepare_resume_reply): Handle
9176 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9177 * server.c (report_thread_events): New global.
9178 (handle_general_set): Handle QThreadEvents.
9179 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9180 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9181 TARGET_WAITKIND_THREAD_EXITED.
9182 * server.h (report_thread_events): Declare.
9184 2015-11-30 Pedro Alves <palves@redhat.com>
9186 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9187 the thread's last_resume_kind was resume_stop.
9189 2015-11-30 Pedro Alves <palves@redhat.com>
9191 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9194 2015-11-30 Pedro Alves <palves@redhat.com>
9196 * server.c (handle_v_requests): Handle vCtrlC.
9198 2015-11-30 Pedro Alves <palves@redhat.com>
9200 * gdbthread.h (find_any_thread_of_pid): Declare.
9201 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9203 * server.c (handle_query): If current_thread is NULL, look for
9204 another thread of the selected process.
9206 2015-11-26 Daniel Colascione <dancol@dancol.org>
9207 Simon Marchi <simon.marchi@ericsson.com>
9209 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9210 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9212 * target.h (struct target_ops) <thread_name>: New field.
9213 (target_thread_name): New macro.
9215 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9217 * regcache.h (regcache_invalidate_pid): Add declaration.
9218 * regcache.c (regcache_invalidate_pid): New function, extracted
9219 from regcache_invalidate.
9220 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9221 Add trivial documentation comment.
9222 * lynx-low.c: Use regcache_invalidate_pid instead of
9223 regcache_invalidate.
9225 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9227 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9228 and Elf64_auxv_t if the target is Android.
9230 2015-11-22 Doug Evans <xdje42@gmail.com>
9232 * target.h: #include <sys/types.h>.
9234 2015-11-19 Pedro Alves <palves@redhat.com>
9236 * linux-low.c (linux_process_qsupported): Change prototype.
9238 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9240 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9241 and adjust to loop over all features.
9242 * server.c (handle_query) <qSupported>: Adjust to call
9243 target_process_qsupported once, passing it a vector of unprocessed
9245 * target.h (struct target_ops) <process_qsupported>: Change
9247 (target_process_qsupported): Adjust.
9249 2015-11-19 Pedro Alves <palves@redhat.com>
9251 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9253 * configure: Regenerate.
9255 2015-11-19 Pedro Alves <palves@redhat.com>
9257 * configure: Regenerate.
9259 2015-11-19 Yao Qi <yao.qi@linaro.org>
9261 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9264 2015-11-19 Yao Qi <yao.qi@linaro.org>
9266 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9267 (struct aarch64_operand): Move enum out.
9269 2015-11-19 Yao Qi <yao.qi@linaro.org>
9271 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9272 struct user_fpsimd_state *.
9273 (aarch64_store_fpregset): Likewise.
9275 2015-11-19 Yao Qi <yao.qi@linaro.org>
9277 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9278 struct user_pt_regs *.
9279 (aarch64_store_gregset): Likewise.
9281 2015-11-18 Pedro Alves <palves@redhat.com>
9283 * Makefile.in (all_object_files): Add $IPA_OBJS.
9285 2015-11-17 Pedro Alves <palves@redhat.com>
9287 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9288 GDB_SIGNAL_0 and gdb_signal_to_string.
9290 2015-11-17 Pedro Alves <palves@redhat.com>
9292 * win32-low.c (handle_output_debug_string): Remove parameter.
9293 (win32_kill): Remove our_status local and adjust call to
9294 handle_output_debug_string.
9295 (get_child_debug_event): Adjust call to
9296 handle_output_debug_string.
9298 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9300 * linux-mips-low.c (mips_fill_gregset): Add cast.
9301 (mips_store_gregset): Likewise.
9302 (mips_fill_fpregset): Likewise.
9303 (mips_store_fpregset): Likewise.
9305 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9307 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9310 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9312 * linux-mips-low.c (mips_linux_new_thread): Change type of
9313 watch_type to enum target_hw_bp_type.
9315 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9317 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9318 Change return type to arm_hwbp_type.
9320 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9322 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9323 (arm_store_gregset): Likewise.
9324 * linux-arm-low.c (arm_get_hwcap): Likewise.
9325 (arm_read_description): Likewise.
9327 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9329 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9331 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9333 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9334 (ppc_fill_vsxregset): Likewise.
9335 (ppc_store_vsxregset): Likewise.
9336 (ppc_fill_vrregset): Likewise.
9337 (ppc_store_vrregset): Likewise.
9338 (ppc_fill_evrregset): Likewise.
9339 (ppc_store_evrregset): Likewise.
9341 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9343 * linux-ppc-low.c (ppc_usrregs_info): Remove
9344 forward-declaration.
9345 (ppc_arch_setup): Move lower in file.
9347 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9349 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9350 (ps_pdwrite): Likewise.
9352 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9354 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9355 to after assert checks.
9357 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9359 * proc-service.c (ps_pdread): Add/adjust casts.
9360 (ps_pdwrite): Add/adjust casts.
9362 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9364 * server.c (handle_search_memory_1): Cast return value of
9367 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9369 * server.c (write_qxfer_response): Change type of data to
9372 2015-10-29 Pedro Alves <palves@redhat.com>
9374 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9376 2015-10-29 Pedro Alves <palves@redhat.com>
9378 * tracepoint.c (clear_installed_tracepoints): Add casts.
9380 2015-10-29 Pedro Alves <palves@redhat.com>
9382 * server.c (handle_v_cont, process_serial_event): Add enum
9383 gdb_signal casts to signal parsing code.
9385 2015-10-29 Pedro Alves <palves@redhat.com>
9387 * linux-low.h (NULL_REGSET): Define.
9388 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9389 * linux-arm-low.c (arm_regsets): Likewise.
9390 * linux-crisv32-low.c (cris_regsets): Likewise.
9391 * linux-m68k-low.c (m68k_regsets): Likewise.
9392 * linux-mips-low.c (mips_regsets): Likewise.
9393 * linux-nios2-low.c (nios2_regsets): Likewise.
9394 * linux-ppc-low.c (ppc_regsets): Likewise.
9395 * linux-s390-low.c (s390_regsets): Likewise.
9396 * linux-sh-low.c (sh_regsets): Likewise.
9397 * linux-sparc-low.c (sparc_regsets): Likewise.
9398 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9399 * linux-tile-low.c (tile_regsets): Likewise.
9400 * linux-x86-low.c (x86_regsets): Likewise.
9401 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9403 2015-10-29 Pedro Alves <palves@redhat.com>
9405 * linux-low.h (NULL_REGSET): Define.
9406 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9407 * linux-arm-low.c (arm_regsets): Likewise.
9408 * linux-crisv32-low.c (cris_regsets): Likewise.
9409 * linux-m68k-low.c (m68k_regsets): Likewise.
9410 * linux-mips-low.c (mips_regsets): Likewise.
9411 * linux-nios2-low.c (nios2_regsets): Likewise.
9412 * linux-ppc-low.c (ppc_regsets): Likewise.
9413 * linux-s390-low.c (s390_regsets): Likewise.
9414 * linux-sh-low.c (sh_regsets): Likewise.
9415 * linux-sparc-low.c (sparc_regsets): Likewise.
9416 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9417 * linux-tile-low.c (tile_regsets): Likewise.
9418 * linux-x86-low.c (x86_regsets): Likewise.
9419 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9421 2015-10-26 Doug Evans <dje@google.com>
9423 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9425 2015-10-26 Doug Evans <dje@google.com>
9427 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9429 2015-10-26 Doug Evans <dje@google.com>
9431 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9433 (attach_thread, find_new_threads_callback): Ditto.
9435 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9437 * mem-break.h (set_breakpoint_data): Remove.
9439 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9441 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9442 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9443 (initialize_low): Remove set_breakpoint_data call.
9444 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9445 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9446 (initialize_low): Remove set_breakpoint_data call.
9447 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9448 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9449 (initialize_low): Remove set_breakpoint_data call.
9451 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9453 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9454 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9455 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9456 * target.h (target_breakpoint_kind_from_pc): New macro.
9458 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9460 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9461 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9462 the default breakpoint kind.
9464 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9466 * linux-arm-low.c (arm_supports_z_point_type): Add software
9469 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9471 * linux-arm-low.c: Refactor breakpoint definitions.
9472 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9473 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9475 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9477 * Makefile.in: Add arm.c/o.
9478 * configure.srv: Likewise.
9479 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9480 (arm_breakpoint_kind_from_pc): New function.
9481 (arm_sw_breakpoint_from_kind): Return proper kind.
9482 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9484 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9486 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9488 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9489 (struct raw_breakpoint) <size>: Remove.
9490 (struct raw_breakpoint) <kind>: Add.
9491 (bp_size): New function.
9492 (bp_opcode): Likewise.
9493 (find_raw_breakpoint_at): Adjust for kind.
9494 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9495 (remove_memory_breakpoint): Adjust for kind call bp_size.
9496 (set_raw_breakpoint_at): Adjust for kind.
9497 (set_breakpoint): Likewise.
9498 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9499 (delete_raw_breakpoint): Adjust for kind.
9500 (delete_breakpoint): Likewise.
9501 (find_gdb_breakpoint): Likewise.
9502 (set_gdb_breakpoint_1): Likewise.
9503 (set_gdb_breakpoint): Likewise.
9504 (delete_gdb_breakpoint_1): Likewise.
9505 (delete_gdb_breakpoint): Likewise.
9506 (uninsert_raw_breakpoint): Likewise.
9507 (reinsert_raw_breakpoint): Likewise.
9508 (set_breakpoint_data): Remove.
9509 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9510 (check_mem_read): Adjust for kind call bp_size.
9511 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9512 (clone_one_breakpoint): Adjust for kind.
9513 * mem-break.h (set_gdb_breakpoint): Likewise.
9514 (delete_gdb_breakpoint): Likewise.
9515 * server.c (process_serial_event): Likewise.
9517 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9519 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9520 (struct linux_target_ops) <breakpoint>: Remove.
9521 (struct linux_target_ops) <breakpoint_len>: Remove.
9522 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9523 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9524 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9525 (arm_sw_breakpoint_from_kind): New function.
9526 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9527 (struct linux_target_ops) <breakpoint>: Remove.
9528 (struct linux_target_ops) <breakpoint_len>: Remove.
9529 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9530 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9531 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9532 (struct linux_target_ops) <breakpoint>: Remove.
9533 (struct linux_target_ops) <breakpoint_len>: Remove.
9534 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9535 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9536 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9537 (struct linux_target_ops) <breakpoint>: Remove.
9538 (struct linux_target_ops) <breakpoint_len>: Remove.
9539 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9540 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9541 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9542 and sw_breakpoint_from_kind to increment the pc.
9543 (linux_breakpoint_kind_from_pc): New function.
9544 (linux_sw_breakpoint_from_kind): New function.
9545 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9546 (initialize_low): Call breakpoint_kind_from_pc and
9547 sw_breakpoint_from_kind to replace breakpoint_data/len.
9548 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9550 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9551 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9552 (struct linux_target_ops) <breakpoint>: Remove.
9553 (struct linux_target_ops) <breakpoint_len>: Remove.
9554 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9555 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9556 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9557 (struct linux_target_ops) <breakpoint>: Remove.
9558 (struct linux_target_ops) <breakpoint_len>: Remove.
9559 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9560 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9561 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9562 (struct linux_target_ops) <breakpoint>: Remove.
9563 (struct linux_target_ops) <breakpoint_len>: Remove.
9564 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9565 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9566 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9567 (struct linux_target_ops) <breakpoint>: Remove.
9568 (struct linux_target_ops) <breakpoint_len>: Remove.
9569 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9570 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9571 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9572 (struct linux_target_ops) <breakpoint>: Remove.
9573 (struct linux_target_ops) <breakpoint_len>: Remove.
9574 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9575 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9576 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9577 (struct linux_target_ops) <breakpoint>: Remove.
9578 (struct linux_target_ops) <breakpoint_len>: Remove.
9579 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9580 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9581 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9582 (struct linux_target_ops) <breakpoint>: Remove.
9583 (struct linux_target_ops) <breakpoint_len>: Remove.
9584 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9585 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9586 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9587 (struct linux_target_ops) <breakpoint>: Remove.
9588 (struct linux_target_ops) <breakpoint_len>: Remove.
9589 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9590 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9591 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9592 (struct linux_target_ops) <breakpoint>: Remove.
9593 (struct linux_target_ops) <breakpoint_len>: Remove.
9594 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9595 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9596 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9597 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9598 (struct linux_target_ops) <breakpoint>: Remove.
9599 (struct linux_target_ops) <breakpoint_len>: Remove.
9600 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9601 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9602 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9603 (struct linux_target_ops) <breakpoint>: Remove.
9604 (struct linux_target_ops) <breakpoint_len>: Remove.
9605 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9606 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9608 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9610 * linux-cris-low.c (cris_get_pc): Remove void arg.
9612 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9614 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9617 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9619 * inferiors.c (thread_pid_matches_callback): New function.
9620 (find_thread_process): New function.
9621 (remove_thread): Reset current_thread.
9622 (remove_process): Assert threads have been removed first.
9624 2015-10-15 Yao Qi <yao.qi@linaro.org>
9626 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9628 (aarch64_remove_point): Likewise.
9629 * regcache.c (regcache_register_size): New function.
9631 2015-10-12 Yao Qi <yao.qi@linaro.org>
9633 * linux-aarch64-low.c: Update all callers as emit_load_store
9634 is renamed to aarch64_emit_load_store.
9636 2015-10-12 Yao Qi <yao.qi@linaro.org>
9638 * linux-aarch64-low.c: Update all callers of function renaming
9639 from emit_insn to aarch64_emit_insn.
9641 2015-10-12 Yao Qi <yao.qi@linaro.org>
9643 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9644 arch/aarch64-insn.h.
9645 (struct aarch64_memory_operand): Likewise.
9647 (emit_insn): Move to arch/aarch64-insn.c.
9648 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9649 (emit_load_store): Move to arch/aarch64-insn.c.
9650 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9651 (can_encode_int32): Remove.
9653 2015-10-12 Yao Qi <yao.qi@linaro.org>
9655 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9656 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9657 (aarch64_relocate_instruction): Likewise.
9658 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9659 (struct aarch64_insn_visitor): Likewise.
9661 2015-10-12 Yao Qi <yao.qi@linaro.org>
9663 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9664 (struct aarch64_insn_visitor): New.
9665 (struct aarch64_insn_relocation_data): New.
9666 (aarch64_ftrace_insn_reloc_b): New function.
9667 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9668 (aarch64_ftrace_insn_reloc_cb): Likewise.
9669 (aarch64_ftrace_insn_reloc_tb): Likewise.
9670 (aarch64_ftrace_insn_reloc_adr): Likewise.
9671 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9672 (aarch64_ftrace_insn_reloc_others): Likewise.
9674 (aarch64_relocate_instruction): Use visitor.
9676 2015-10-12 Yao Qi <yao.qi@linaro.org>
9678 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9679 int. Add argument buf.
9680 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9681 aarch64_relocate_instruction.
9683 2015-10-12 Yao Qi <yao.qi@linaro.org>
9685 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9686 argument insn. Remove local variable insn. Don't call
9688 (aarch64_install_fast_tracepoint_jump_pad): Call
9691 2015-09-30 Yao Qi <yao.qi@linaro.org>
9693 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9694 (emit_load_store_pair): Likewise.
9696 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9698 * dll.c (match_dll): Add cast(s).
9699 (unloaded_dll): Likewise.
9700 * linux-low.c (second_thread_of_pid_p): Likewise.
9701 (delete_lwp_callback): Likewise.
9702 (count_events_callback): Likewise.
9703 (select_event_lwp_callback): Likewise.
9704 (linux_set_resume_request): Likewise.
9705 * server.c (accumulate_file_name_length): Likewise.
9706 (emit_dll_description): Likewise.
9707 (handle_qxfer_threads_worker): Likewise.
9708 (visit_actioned_threads): Likewise.
9709 * thread-db.c (any_thread_of): Likewise.
9710 * tracepoint.c (same_process_p): Likewise.
9711 (match_blocktype): Likewise.
9712 (build_traceframe_info_xml): Likewise.
9714 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9716 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9718 (gdb_unparse_agent_expr): Likewise.
9719 * hostio.c (require_data): Likewise.
9720 (handle_pread): Likewise.
9721 * linux-low.c (disable_regset): Likewise.
9722 (fetch_register): Likewise.
9723 (store_register): Likewise.
9724 (get_dynamic): Likewise.
9725 (linux_qxfer_libraries_svr4): Likewise.
9726 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9727 (set_fast_tracepoint_jump): Likewise.
9728 (uninsert_fast_tracepoint_jumps_at): Likewise.
9729 (reinsert_fast_tracepoint_jumps_at): Likewise.
9730 (validate_inserted_breakpoint): Likewise.
9731 (clone_agent_expr): Likewise.
9732 * regcache.c (init_register_cache): Likewise.
9733 * remote-utils.c (putpkt_binary_1): Likewise.
9734 (decode_M_packet): Likewise.
9735 (decode_X_packet): Likewise.
9736 (look_up_one_symbol): Likewise.
9737 (relocate_instruction): Likewise.
9738 (monitor_output): Likewise.
9739 * server.c (handle_search_memory): Likewise.
9740 (handle_qxfer_exec_file): Likewise.
9741 (handle_qxfer_libraries): Likewise.
9742 (handle_qxfer): Likewise.
9743 (handle_query): Likewise.
9744 (handle_v_cont): Likewise.
9745 (handle_v_run): Likewise.
9746 (captured_main): Likewise.
9747 * target.c (write_inferior_memory): Likewise.
9748 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9749 * tracepoint.c (init_trace_buffer): Likewise.
9750 (add_tracepoint_action): Likewise.
9751 (add_traceframe): Likewise.
9752 (add_traceframe_block): Likewise.
9753 (cmd_qtdpsrc): Likewise.
9754 (cmd_qtdv): Likewise.
9755 (cmd_qtstatus): Likewise.
9756 (response_source): Likewise.
9757 (response_tsv): Likewise.
9758 (cmd_qtnotes): Likewise.
9759 (gdb_collect): Likewise.
9760 (initialize_tracepoint): Likewise.
9762 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9764 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9765 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9766 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9768 (enum aarch64_condition_codes): New enum.
9769 (w0): New static global.
9772 (struct aarch64_memory_operand) <type>: New
9773 MEMORY_OPERAND_POSTINDEX type.
9774 (postindex_memory_operand): New helper function.
9775 (emit_ret): New function.
9776 (emit_load_store_pair): New function, factored out of emit_stp
9777 with support for MEMORY_OPERAND_POSTINDEX.
9778 (emit_stp): Rewrite using emit_load_store_pair.
9779 (emit_ldp): New function.
9780 (emit_load_store): Likewise.
9781 (emit_ldr): Mention post-index instruction in comment.
9782 (emit_ldrh): New function.
9783 (emit_ldrb): New function.
9784 (emit_ldrsw): Mention post-index instruction in comment.
9785 (emit_str): Likewise.
9786 (emit_subs): New function.
9787 (emit_cmp): Likewise.
9788 (emit_and): Likewise.
9789 (emit_orr): Likewise.
9790 (emit_orn): Likewise.
9791 (emit_eor): Likewise.
9792 (emit_mvn): Likewise.
9793 (emit_lslv): Likewise.
9794 (emit_lsrv): Likewise.
9795 (emit_asrv): Likewise.
9796 (emit_mul): Likewise.
9797 (emit_sbfm): Likewise.
9798 (emit_sbfx): Likewise.
9799 (emit_ubfm): Likewise.
9800 (emit_ubfx): Likewise.
9801 (emit_csinc): Likewise.
9802 (emit_cset): Likewise.
9803 (emit_nop): Likewise.
9804 (emit_ops_insns): New helper function.
9805 (emit_pop): Likewise.
9806 (emit_push): Likewise.
9807 (aarch64_emit_prologue): New function.
9808 (aarch64_emit_epilogue): Likewise.
9809 (aarch64_emit_add): Likewise.
9810 (aarch64_emit_sub): Likewise.
9811 (aarch64_emit_mul): Likewise.
9812 (aarch64_emit_lsh): Likewise.
9813 (aarch64_emit_rsh_signed): Likewise.
9814 (aarch64_emit_rsh_unsigned): Likewise.
9815 (aarch64_emit_ext): Likewise.
9816 (aarch64_emit_log_not): Likewise.
9817 (aarch64_emit_bit_and): Likewise.
9818 (aarch64_emit_bit_or): Likewise.
9819 (aarch64_emit_bit_xor): Likewise.
9820 (aarch64_emit_bit_not): Likewise.
9821 (aarch64_emit_equal): Likewise.
9822 (aarch64_emit_less_signed): Likewise.
9823 (aarch64_emit_less_unsigned): Likewise.
9824 (aarch64_emit_ref): Likewise.
9825 (aarch64_emit_if_goto): Likewise.
9826 (aarch64_emit_goto): Likewise.
9827 (aarch64_write_goto_address): Likewise.
9828 (aarch64_emit_const): Likewise.
9829 (aarch64_emit_call): Likewise.
9830 (aarch64_emit_reg): Likewise.
9831 (aarch64_emit_pop): Likewise.
9832 (aarch64_emit_stack_flush): Likewise.
9833 (aarch64_emit_zero_ext): Likewise.
9834 (aarch64_emit_swap): Likewise.
9835 (aarch64_emit_stack_adjust): Likewise.
9836 (aarch64_emit_int_call_1): Likewise.
9837 (aarch64_emit_void_call_2): Likewise.
9838 (aarch64_emit_eq_goto): Likewise.
9839 (aarch64_emit_ne_goto): Likewise.
9840 (aarch64_emit_lt_goto): Likewise.
9841 (aarch64_emit_le_goto): Likewise.
9842 (aarch64_emit_gt_goto): Likewise.
9843 (aarch64_emit_ge_got): Likewise.
9844 (aarch64_emit_ops_impl): New static global variable.
9845 (aarch64_emit_ops): New target function, return
9846 &aarch64_emit_ops_impl.
9847 (struct linux_target_ops): Install it.
9849 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9851 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9852 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9854 * linux-aarch64-ipa.c: New file.
9855 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9857 (aarch64_get_thread_area): New target method.
9858 (extract_signed_bitfield): New helper function.
9859 (aarch64_decode_ldr_literal): New function.
9860 (enum aarch64_opcodes): New enum.
9861 (struct aarch64_register): New struct.
9862 (struct aarch64_operand): New struct.
9863 (x0): New static global.
9872 (aarch64_register): New helper function.
9873 (register_operand): Likewise.
9874 (immediate_operand): Likewise.
9875 (struct aarch64_memory_operand): New struct.
9876 (offset_memory_operand): New helper function.
9877 (preindex_memory_operand): Likewise.
9878 (enum aarch64_system_control_registers): New enum.
9879 (ENCODE): New macro.
9880 (emit_insn): New helper function.
9881 (emit_b): New function.
9882 (emit_bcond): Likewise.
9883 (emit_cb): Likewise.
9884 (emit_tb): Likewise.
9885 (emit_blr): Likewise.
9886 (emit_stp): Likewise.
9887 (emit_ldp_q_offset): Likewise.
9888 (emit_stp_q_offset): Likewise.
9889 (emit_load_store): Likewise.
9890 (emit_ldr): Likewise.
9891 (emit_ldrsw): Likewise.
9892 (emit_str): Likewise.
9893 (emit_ldaxr): Likewise.
9894 (emit_stxr): Likewise.
9895 (emit_stlr): Likewise.
9896 (emit_data_processing_reg): Likewise.
9897 (emit_data_processing): Likewise.
9898 (emit_add): Likewise.
9899 (emit_sub): Likewise.
9900 (emit_mov): Likewise.
9901 (emit_movk): Likewise.
9902 (emit_mov_addr): Likewise.
9903 (emit_mrs): Likewise.
9904 (emit_msr): Likewise.
9905 (emit_sevl): Likewise.
9906 (emit_wfe): Likewise.
9907 (append_insns): Likewise.
9908 (can_encode_int32_in): New helper function.
9909 (aarch64_relocate_instruction): New function.
9910 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9911 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9912 (struct linux_target_ops): Install aarch64_get_thread_area,
9913 aarch64_install_fast_tracepoint_jump_pad and
9914 aarch64_get_min_fast_tracepoint_insn_len.
9916 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9918 * Makefile.in (aarch64-insn.o): New rule.
9919 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9921 2015-09-21 Yao Qi <yao.qi@linaro.org>
9923 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9925 2015-09-21 Yao Qi <yao.qi@linaro.org>
9927 * tracepoint.c (max_jump_pad_size): Remove.
9929 2015-09-18 Yao Qi <yao.qi@linaro.org>
9931 * linux-aarch64-low.c: Don't include sys/uio.h.
9932 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9934 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
9936 * tracepoint.c (eval_result_type): Change prototype.
9937 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9939 2015-09-15 Pedro Alves <palves@redhat.com>
9941 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9942 Check whether to report exec events instead of checking whether
9943 multiprocess is enabled.
9945 2015-09-15 Pedro Alves <palves@redhat.com>
9948 * remote-utils.c (prepare_resume_reply): Merge
9949 TARGET_WAITKIND_VFORK_DONE switch case with the
9950 TARGET_WAITKIND_FORKED case.
9952 2015-09-15 Yao Qi <yao.qi@linaro.org>
9954 * server.c (handle_query): Check string comparison using
9955 "else if" instead of "if".
9957 2015-09-15 Yao Qi <yao.qi@linaro.org>
9959 * server.c (vCont_supported): New global variable.
9960 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9961 matches. Append ";vContSupported+" to own_buf.
9962 (handle_v_requests): Append ";s;S" to own_buf if target supports
9963 hardware single step or vCont_supported is false.
9964 (capture_main): Set vCont_supported to zero.
9966 2015-09-15 Yao Qi <yao.qi@linaro.org>
9968 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9970 (linux_supports_hardware_single_step): ... New function.
9971 (linux_target_ops): Update.
9972 * lynx-low.c (lynx_target_ops): Set field
9973 supports_hardware_single_step to target_can_do_hardware_single_step.
9974 * nto-low.c (nto_target_ops): Likewise.
9975 * spu-low.c (spu_target_ops): Likewise.
9976 * win32-low.c (win32_target_ops): Likewise.
9977 * target.c (target_can_do_hardware_single_step): New function.
9978 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9979 Remove. <supports_hardware_single_step>: New field.
9980 (target_supports_conditional_breakpoints): Remove.
9981 (target_supports_hardware_single_step): New macro.
9982 (target_can_do_hardware_single_step): Declare.
9983 * server.c (handle_query): Use target_supports_hardware_single_step
9984 instead of target_supports_conditional_breakpoints.
9986 2015-09-15 Yao Qi <yao.qi@linaro.org>
9988 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9990 (struct linux_target_ops the_low_target): Install
9991 aarch64_linux_siginfo_fixup.
9993 2015-09-11 Don Breazeal <donb@codesourcery.com>
9994 Luis Machado <lgustavo@codesourcery.com>
9996 * linux-low.c (linux_mourn): Static declaration.
9997 (linux_arch_setup): Move in front of
9998 handle_extended_wait.
9999 (linux_arch_setup_thread): New function.
10000 (handle_extended_wait): Handle exec events. Call
10001 linux_arch_setup_thread. Make event_lwp argument a
10002 pointer-to-a-pointer.
10003 (check_zombie_leaders): Do not check stopped threads.
10004 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10005 (linux_low_filter_event): Add lwp and thread for exec'ing
10006 non-leader thread if leader thread has been deleted.
10007 Refactor code into linux_arch_setup_thread and call it.
10008 Pass child lwp pointer by reference to handle_extended_wait.
10009 (linux_wait_for_event_filtered): Update comment.
10010 (linux_wait_1): Prevent clobbering exec event status.
10011 (linux_supports_exec_events): New function.
10012 (linux_target_ops) <supports_exec_events>: Initialize new member.
10013 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10015 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10016 * server.c (report_exec_events): New global variable.
10017 (handle_query): Handle qSupported query for exec-events feature.
10018 (captured_main): Initialize report_exec_events.
10019 * server.h (report_exec_events): Declare new global variable.
10020 * target.h (struct target_ops) <supports_exec_events>: New
10022 (target_supports_exec_events): New macro.
10023 * win32-low.c (win32_target_ops) <supports_exec_events>:
10024 Initialize new member.
10026 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10028 * linux-low.c (linux_low_enable_btrace): Remove.
10029 (linux_target_ops): Replace linux_low_enable_btrace with
10030 linux_enable_btrace.
10032 2015-09-03 Yao Qi <yao.qi@linaro.org>
10034 * linux-aarch64-low.c (aarch64_insert_point): Call
10035 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10038 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10040 * linux-low.c (check_stopped_by_breakpoint): Use
10041 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10043 2015-08-27 Pedro Alves <palves@redhat.com>
10045 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10047 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10049 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10050 the XNEW-family equivalent.
10051 (compile_bytecodes): Likewise.
10052 * dll.c (loaded_dll): Likewise.
10053 * event-loop.c (append_callback_event): Likewise.
10054 (create_file_handler): Likewise.
10055 (create_file_event): Likewise.
10056 * hostio.c (handle_open): Likewise.
10057 * inferiors.c (add_thread): Likewise.
10058 (add_process): Likewise.
10059 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10060 * linux-arm-low.c (arm_new_process): Likewise.
10061 (arm_new_thread): Likewise.
10062 * linux-low.c (add_to_pid_list): Likewise.
10063 (linux_add_process): Likewise.
10064 (handle_extended_wait): Likewise.
10065 (add_lwp): Likewise.
10066 (enqueue_one_deferred_signal): Likewise.
10067 (enqueue_pending_signal): Likewise.
10068 (linux_resume_one_lwp_throw): Likewise.
10069 (linux_resume_one_thread): Likewise.
10070 (linux_read_memory): Likewise.
10071 (linux_write_memory): Likewise.
10072 * linux-mips-low.c (mips_linux_new_process): Likewise.
10073 (mips_linux_new_thread): Likewise.
10074 (mips_add_watchpoint): Likewise.
10075 * linux-x86-low.c (initialize_low_arch): Likewise.
10076 * lynx-low.c (lynx_add_process): Likewise.
10077 * mem-break.c (set_raw_breakpoint_at): Likewise.
10078 (set_breakpoint): Likewise.
10079 (add_condition_to_breakpoint): Likewise.
10080 (add_commands_to_breakpoint): Likewise.
10081 (clone_agent_expr): Likewise.
10082 (clone_one_breakpoint): Likewise.
10083 * regcache.c (new_register_cache): Likewise.
10084 * remote-utils.c (look_up_one_symbol): Likewise.
10085 * server.c (queue_stop_reply): Likewise.
10086 (start_inferior): Likewise.
10087 (queue_stop_reply_callback): Likewise.
10088 (handle_target_event): Likewise.
10089 * spu-low.c (fetch_ppc_memory): Likewise.
10090 (store_ppc_memory): Likewise.
10091 * target.c (set_target_ops): Likewise.
10092 * thread-db.c (thread_db_load_search): Likewise.
10093 (try_thread_db_load_1): Likewise.
10094 * tracepoint.c (add_tracepoint): Likewise.
10095 (add_tracepoint_action): Likewise.
10096 (create_trace_state_variable): Likewise.
10097 (cmd_qtdpsrc): Likewise.
10098 (cmd_qtro): Likewise.
10099 (add_while_stepping_state): Likewise.
10100 * win32-low.c (child_add_thread): Likewise.
10101 (get_image_name): Likewise.
10103 2015-08-25 Yao Qi <yao.qi@linaro.org>
10105 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10107 2015-08-25 Yao Qi <yao.qi@linaro.org>
10109 * Makefile.in (aarch64-linux.o): New rule.
10110 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10112 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10113 (aarch64_init_debug_reg_state): Make it extern.
10114 (aarch64_linux_prepare_to_resume): Remove.
10116 2015-08-25 Yao Qi <yao.qi@linaro.org>
10118 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10119 lwp_arch_private_info and ptid_of_lwp.
10121 2015-08-25 Yao Qi <yao.qi@linaro.org>
10123 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10124 Find proc_info by find_process_pid. All callers updated.
10126 2015-08-25 Yao Qi <yao.qi@linaro.org>
10128 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10130 (debug_reg_change_callback): Remove.
10131 (aarch64_notify_debug_reg_change): Remove.
10133 2015-08-25 Yao Qi <yao.qi@linaro.org>
10135 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10136 Call current_lwp_ptid.
10138 2015-08-25 Yao Qi <yao.qi@linaro.org>
10140 * linux-aarch64-low.c (debug_reg_change_callback): Use
10143 2015-08-25 Yao Qi <yao.qi@linaro.org>
10145 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10147 2015-08-25 Yao Qi <yao.qi@linaro.org>
10149 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10151 2015-08-25 Yao Qi <yao.qi@linaro.org>
10153 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10156 2015-08-25 Yao Qi <yao.qi@linaro.org>
10158 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10160 (debug_reg_change_callback): Remove argument entry and add argument
10161 lwp. Remove local variable thread. Don't print thread id in the
10162 debugging output. Don't check whether pid of thread equals to pid.
10163 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10164 iterate_over_lwps instead find_inferior.
10166 2015-08-24 Pedro Alves <palves@redhat.com>
10168 * inferiors.c (get_first_process): New function.
10169 * inferiors.h (get_first_process): New declaration.
10170 * remote-utils.c (read_ptid): Default to the first process in the
10171 list, instead of to the current thread's process.
10173 2015-08-24 Pedro Alves <palves@redhat.com>
10175 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10176 * event-loop.c: Likewise.
10177 * remote-utils.c: Likewise.
10178 * tracepoint.c: Likewise.
10180 2015-08-24 Pedro Alves <palves@redhat.com>
10182 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10185 2015-08-21 Pedro Alves <palves@redhat.com>
10187 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10188 instead of literal 1.
10190 2015-08-21 Pedro Alves <palves@redhat.com>
10192 * tdesc.c (default_description): Explicitly zero-initialize.
10194 2015-08-21 Pedro Alves <palves@redhat.com>
10197 * inferiors.c (remove_thread): Discard any pending stop reply for
10199 * server.c (remove_all_on_match_pid): Rename to ...
10200 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10202 (discard_queued_stop_replies): Change parameter to a ptid. Now
10204 (handle_v_kill, kill_inferior_callback, captured_main)
10205 (process_serial_event): Adjust.
10206 * server.h (discard_queued_stop_replies): Declare.
10208 2015-08-21 Pedro Alves <palves@redhat.com>
10210 * linux-low.c (wait_for_sigstop): Always switch to no thread
10211 selected if the previously current thread dies.
10212 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10213 process instead of the current thread's.
10214 * remote-utils.c (input_interrupt): Don't check if there's no
10216 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10217 current thread to the general thread fails, error out.
10218 (handle_qxfer_auxv, handle_qxfer_libraries)
10219 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10220 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10221 (handle_query): Check if there's a thread selected instead of
10222 checking whether there's any thread in the thread list.
10223 (handle_qxfer_threads, handle_qxfer_btrace)
10224 (handle_qxfer_btrace_conf): Don't error out early if there's no
10225 thread in the thread list.
10226 (handle_v_cont, myresume): Don't set the current thread to the
10228 (process_serial_event) <Hg handling>: Also set thread_id if the
10229 previous general thread is still alive.
10230 (process_serial_event) <g/G handling>: If setting the current
10231 thread to the general thread fails, error out.
10232 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10233 thread's lwp instead of the current thread's.
10234 * target.c (set_desired_thread): If the desired thread was not
10235 found, leave the current thread pointing to NULL. Return an int
10236 (boolean) indicating success.
10237 * target.h (set_desired_thread): Change return type to int.
10239 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10241 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10242 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10244 (ps_get_thread_area): New function.
10246 2015-08-19 Gary Benson <gbenson@redhat.com>
10248 * hostio.c (handle_pread): Do not attempt to read more data
10249 than hostio_reply_with_data can fit in a packet.
10251 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10253 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10255 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10257 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10259 2015-08-06 Pedro Alves <palves@redhat.com>
10261 * tracepoint.c (expr_eval_result): Now an int.
10263 2015-08-06 Pedro Alves <palves@redhat.com>
10265 * gdbthread.h (struct regcache): Forward declare.
10266 (struct thread_info) <regcache_data>: Now a struct regcache
10268 * inferiors.c (inferior_regcache_data)
10269 (set_inferior_regcache_data): Now work with struct regcache
10271 * inferiors.h (struct regcache): Forward declare.
10272 (inferior_regcache_data, set_inferior_regcache_data): Now work
10273 with struct regcache pointers.
10274 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10275 (free_register_cache_thread): Remove struct regcache pointer
10278 2015-08-06 Pedro Alves <palves@redhat.com>
10280 * server.c (captured_main): On error, print the exception message
10281 to stderr, and if run_once is set, throw a quit.
10283 2015-08-06 Pedro Alves <palves@redhat.com>
10285 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10286 the current thread.
10288 2015-08-06 Pedro Alves <palves@redhat.com>
10290 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10291 reading beyond the passed in buffer length.
10293 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10295 * tracepoint.c (symbol_list) <required>: Remove.
10297 2015-08-06 Pedro Alves <palves@redhat.com>
10299 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10300 count if stopping and suspending threads.
10301 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10302 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10303 (linux_detach): Complete an ongoing step-over.
10304 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10306 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10307 (linux_wait_1): If passing a signal to the inferior after
10308 finishing a step-over, unsuspend and re-resume all lwps. If we
10309 see a single-step event but the thread should be continuing, don't
10310 pass the trap to gdb.
10311 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10312 internal_error instead of gdb_assert.
10313 (enqueue_pending_signal): New function.
10314 (check_ptrace_stopped_lwp_gone): Add debug output.
10315 (start_step_over): Use internal_error instead of gdb_assert.
10316 (complete_ongoing_step_over): New function.
10317 (linux_resume_one_thread): Don't resume a suspended thread.
10318 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10321 2015-08-06 Pedro Alves <palves@redhat.com>
10323 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10324 (linux_thread_alive): Use lwp_is_marked_dead.
10325 (extended_event_reported): Delete.
10326 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10327 instead of extended_event_reported.
10328 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10330 (lwp_is_marked_dead): New function.
10331 (lwp_running): Use lwp_is_marked_dead.
10332 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10335 2015-08-06 Pedro Alves <palves@redhat.com>
10337 * linux-low.c (linux_wait_1): Move fork event output out of the
10338 !report_to_gdb check. Pass event_child->waitstatus to
10339 target_waitstatus_to_string instead of ourstatus.
10341 2015-08-04 Yao Qi <yao.qi@linaro.org>
10343 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10344 if current_thread is 32 bit.
10346 2015-08-04 Yao Qi <yao.qi@linaro.org>
10348 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10349 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10350 * server.c (extended_protocol): Remove "static".
10351 * server.h (extended_protocol): Declare it.
10353 2015-08-04 Yao Qi <yao.qi@linaro.org>
10355 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10356 both aarch64 and aarch32.
10357 (aarch64_set_pc): Likewise.
10359 2015-08-04 Yao Qi <yao.qi@linaro.org>
10361 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10362 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10363 arm-with-neon.xml to srv_xmlfiles.
10364 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10365 (is_64bit_tdesc): New function.
10366 (aarch64_linux_read_description): New function.
10367 (aarch64_arch_setup): Call aarch64_linux_read_description.
10368 (regs_info): Rename to regs_info_aarch64.
10369 (aarch64_regs_info): Return right regs_info.
10370 (initialize_low_arch): Call initialize_low_arch_aarch32.
10372 2015-08-04 Yao Qi <yao.qi@linaro.org>
10374 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10375 * linux-aarch32-low.c: New file.
10376 * linux-aarch32-low.h: New file.
10377 * linux-arm-low.c (arm_fill_gregset): Move it to
10378 linux-aarch32-low.c.
10379 (arm_store_gregset): Likewise.
10380 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10381 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10382 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10383 (regs_info): Rename to regs_info_arm.
10384 (arm_regs_info): Return regs_info_aarch32 if
10385 have_ptrace_getregset is 1 and target description is
10386 arm_with_neon or arm_with_vfpv3.
10387 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10388 Call initialize_low_arch_aarch32 instead.
10390 2015-08-04 Yao Qi <yao.qi@linaro.org>
10392 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10393 * linux-low.c: ... here.
10394 * linux-low.h (have_ptrace_getregset): Declare it.
10396 2015-08-04 Pedro Alves <palves@redhat.com>
10398 * thread-db.c (struct thread_db): Use new typedefs.
10399 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10401 (disable_thread_event_reporting): Cast result of dlsym to
10402 destination function pointer type.
10403 (thread_db_mourn): Use td_ta_delete_ftype.
10405 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10407 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10409 (CDX_BREAKPOINT): Define for R2.
10410 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10411 (the_low_target): Add comments.
10413 2015-07-30 Yao Qi <yao.qi@linaro.org>
10415 * linux-arm-low.c (arm_hwcap): Remove it.
10416 (arm_read_description): New local variable arm_hwcap. Don't
10417 set arm_hwcap to zero.
10419 2015-07-30 Yao Qi <yao.qi@linaro.org>
10421 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10422 Use regcache->tdesc instead.
10423 (arm_store_wmmxregset): Likewise.
10424 (arm_fill_vfpregset): Likewise.
10425 (arm_store_vfpregset): Likewise.
10427 2015-07-30 Yao Qi <yao.qi@linaro.org>
10429 * linux-arm-low.c: Include arch/arm.h.
10430 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10431 (arm_store_gregset): Likewise.
10433 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10435 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10436 ptrace's 4th parameter.
10438 2015-07-27 Yao Qi <yao.qi@linaro.org>
10440 * configure.srv (case aarch64*-*-linux*): Don't set
10443 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10445 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10447 * linux-arm-low.c: Likewise.
10448 * linux-cris-low.c: Likewise.
10449 * linux-crisv32-low.c: Likewise.
10450 * linux-low.c: Likewise.
10451 * linux-m68k-low.c: Likewise.
10452 * linux-mips-low.c: Likewise.
10453 * linux-nios2-low.c: Likewise.
10454 * linux-s390-low.c: Likewise.
10455 * linux-sparc-low.c: Likewise.
10456 * linux-tic6x-low.c: Likewise.
10457 * linux-tile-low.c: Likewise.
10458 * linux-x86-low.c: Likewise.
10460 2015-07-24 Pedro Alves <palves@redhat.com>
10462 * config.in: Regenerate.
10463 * configure: Regenerate.
10465 2015-07-24 Pedro Alves <palves@redhat.com>
10467 * acinclude.m4: Include ../ptrace.m4.
10468 * configure.ac: Call GDB_AC_PTRACE.
10469 * config.in, configure: Regenerate.
10471 2015-07-24 Yao Qi <yao.qi@linaro.org>
10473 * linux-low.c (linux_create_inferior): Remove setting to
10474 proc->priv->new_inferior.
10475 (linux_attach): Likewise.
10476 (linux_low_filter_event): Likewise.
10477 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10479 2015-07-24 Yao Qi <yao.qi@linaro.org>
10481 * linux-low.c (linux_arch_setup): New function.
10482 (linux_low_filter_event): If proc->tdesc is NULL and
10483 proc->attached is true, call the_low_target.arch_setup.
10484 Otherwise, keep status pending, and return.
10485 (linux_resume_one_lwp_throw): Don't call get_pc if
10486 thread->while_stepping isn't NULL. Don't call
10487 get_thread_regcache if proc->tdesc is NULL.
10488 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10489 (linux_target_ops): Install arch_setup.
10490 * server.c (start_inferior): Call the_target->arch_setup.
10491 * target.h (struct target_ops) <arch_setup>: New field.
10492 (target_arch_setup): New marco.
10493 * lynx-low.c (lynx_target_ops): Update.
10494 * nto-low.c (nto_target_ops): Update.
10495 * spu-low.c (spu_target_ops): Update.
10496 * win32-low.c (win32_target_ops): Update.
10498 2015-07-24 Yao Qi <yao.qi@linaro.org>
10500 * linux-low.c (linux_add_process): Don't set
10501 proc->priv->new_inferior.
10502 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10503 (linux_attach): Likewise.
10505 2015-07-24 Yao Qi <yao.qi@linaro.org>
10507 * server.c (start_inferior): Code refactor.
10509 2015-07-24 Yao Qi <yao.qi@linaro.org>
10511 * server.c (process_serial_event): Set general_thread.
10513 2015-07-21 Yao Qi <yao.qi@linaro.org>
10515 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10516 aarch64_linux_get_debug_reg_capacity.
10518 2015-07-17 Yao Qi <yao.qi@linaro.org>
10520 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10521 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10522 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10523 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10524 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10525 (AARCH64_HWP_ALIGNMENT): Likewise.
10526 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10527 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10528 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10529 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10530 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10531 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10532 (struct aarch64_debug_reg_state): Likewise.
10533 (struct arch_lwp_info): Likewise.
10534 (aarch64_align_watchpoint): Likewise.
10535 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10536 (aarch64_watchpoint_length): Likewise.
10537 (aarch64_point_encode_ctrl_reg): Likewise
10538 (aarch64_point_is_aligned): Likewise.
10539 (aarch64_align_watchpoint): Likewise.
10540 (aarch64_linux_set_debug_regs):
10541 (aarch64_dr_state_insert_one_point): Likewise.
10542 (aarch64_dr_state_remove_one_point): Likewise.
10543 (aarch64_handle_breakpoint): Likewise.
10544 (aarch64_handle_aligned_watchpoint): Likewise.
10545 (aarch64_handle_unaligned_watchpoint): Likewise.
10546 (aarch64_handle_watchpoint): Likewise.
10548 2015-07-17 Yao Qi <yao.qi@linaro.org>
10550 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10551 and don't aarch64_get_debug_reg_state. All callers update.
10552 (aarch64_handle_aligned_watchpoint): Likewise.
10553 (aarch64_handle_unaligned_watchpoint): Likewise.
10554 (aarch64_handle_watchpoint): Likewise.
10555 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10556 (aarch64_remove_point): Likewise.
10558 2015-07-17 Yao Qi <yao.qi@linaro.org>
10560 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10562 (aarch64_handle_unaligned_watchpoint): Likewise.
10564 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10566 Revert the previous 3 commits:
10567 Move gdb_regex* to common/
10568 Move linux_find_memory_regions_full & co.
10569 gdbserver build-id attribute generator
10571 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10572 Jan Kratochvil <jan.kratochvil@redhat.com>
10574 gdbserver build-id attribute generator.
10575 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10576 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10577 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10579 (get_dynamic): Use find_pdhr to traverse program headers.
10580 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10581 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10582 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10583 (get_hex_build_id): New.
10584 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10585 to reply XML document.
10587 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10588 Jan Kratochvil <jan.kratochvil@redhat.com>
10590 * target.c: Include target/target-utils.h and fcntl.h.
10591 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10592 (target_fileio_read_stralloc): New functions.
10594 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10596 * Makefile.in (OBS): Add gdb_regex.o.
10597 (gdb_regex.o): New.
10598 * config.in: Rebuilt.
10599 * configure: Rebuilt.
10601 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10602 Jan Kratochvil <jan.kratochvil@redhat.com>
10604 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10605 * Makefile.in (OBS): Add target-utils.o.
10606 (linux-maps.o, target-utils.o): New.
10607 * configure.srv (srv_linux_obj): Add linux-maps.o.
10609 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10611 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10612 function, return 1.
10613 (the_low_target): Install it.
10615 2015-07-14 Pedro Alves <palves@redhat.com>
10617 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10618 Instead, ignore ECHILD, and throw an error for other errnos.
10620 2015-07-10 Pedro Alves <palves@redhat.com>
10622 * event-loop.c (struct callback_event) <data>: Change type to
10623 gdb_client_data instance instead of gdb_client_data pointer.
10624 (append_callback_event): Adjust.
10626 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10628 * linux-aarch64-low.c: Add comments for each linux_target_ops
10629 method. Remove comments already covered in target_ops and
10630 linux_target_ops definitions.
10631 (the_low_target): Add comments for each unimplemented method.
10633 2015-07-09 Yao Qi <yao.qi@linaro.org>
10635 * linux-aarch64-low.c (aarch64_regmap): Remove.
10636 (aarch64_usrregs_info): Remove.
10637 (regs_info): Set field usrregs to NULL.
10639 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10641 * linux-low.c: Include "rsp-low.h"
10642 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10643 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10644 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10645 (handle_btrace_enable_pt): New.
10646 (handle_btrace_general_set): Support "pt".
10647 (handle_btrace_conf_general_set): Support "pt:size".
10649 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10651 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10654 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10656 * linux-aarch64-low.c: Remove comment about endianness.
10657 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10658 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10661 2015-06-24 Gary Benson <gbenson@redhat.com>
10663 * linux-i386-ipa.c (stdint.h): Do not include.
10664 * lynx-i386-low.c (stdint.h): Likewise.
10665 * lynx-ppc-low.c (stdint.h): Likewise.
10666 * mem-break.c (stdint.h): Likewise.
10667 * thread-db.c (stdint.h): Likewise.
10668 * tracepoint.c (stdint.h): Likewise.
10669 * win32-low.c (stdint.h): Likewise.
10671 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10673 * server.c (write_qxfer_response): Update call to
10674 remote_escape_output.
10676 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10677 Jan Kratochvil <jan.kratochvil@redhat.com>
10679 Merge multiple hex conversions.
10680 * gdbreplay.c (tohex): Rename to 'fromhex'.
10681 (logchar): Use fromhex.
10683 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10685 * server.c (handle_qxfer_libraries): Set `version' attribute for
10688 2015-06-10 Gary Benson <gbenson@redhat.com>
10690 * target.h (struct target_ops) <multifs_open>: New field.
10691 <multifs_unlink>: Likewise.
10692 <multifs_readlink>: Likewise.
10693 * linux-low.c (nat/linux-namespaces.h): New include.
10694 (linux_target_ops): Initialize the_target->multifs_open,
10695 the_target->multifs_unlink and the_target->multifs_readlink.
10696 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10697 * hostio.c (hostio_fs_pid): New static variable.
10698 (hostio_handle_new_gdb_connection): New function.
10699 (handle_setfs): Likewise.
10700 (handle_open): Use the_target->multifs_open as appropriate.
10701 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10702 (handle_readlink): Use the_target->multifs_readlink as
10704 (handle_vFile): Handle vFile:setfs packets.
10705 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10706 after target_handle_new_gdb_connection.
10708 2015-06-10 Gary Benson <gbenson@redhat.com>
10710 * configure.ac (AC_CHECK_FUNCS): Add setns.
10711 * config.in: Regenerate.
10712 * configure: Likewise.
10713 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10714 (linux-namespaces.o): New rule.
10715 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10717 2015-06-09 Gary Benson <gbenson@redhat.com>
10719 * hostio.c (handle_open): Process mode argument with
10720 fileio_to_host_mode.
10722 2015-06-01 Yao Qi <yao.qi@linaro.org>
10724 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10725 * linux-x86-low.c: Likewise.
10727 2015-05-28 Don Breazeal <donb@codesourcery.com>
10729 * linux-low.c (handle_extended_wait): Initialize
10730 thread_info.last_resume_kind for new fork children.
10732 2015-05-15 Pedro Alves <palves@redhat.com>
10734 * target.h (target_handle_new_gdb_connection): Rewrite using if
10735 wrapped in do/while.
10737 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10739 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10740 * configure, config.in: Regenerate.
10741 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10744 2015-05-12 Don Breazeal <donb@codesourcery.com>
10746 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10747 PTRACE_EVENT_VFORK_DONE.
10748 (linux_low_ptrace_options, extended_event_reported): Add vfork
10750 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10751 and "vforkdone" for RSP 'T' Stop Reply Packet.
10752 * server.h (report_vfork_events): Declare
10755 2015-05-12 Don Breazeal <donb@codesourcery.com>
10757 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10758 (the_low_target) <new_fork>: Initialize new member.
10759 * linux-arm-low.c (arm_new_fork): New function.
10760 (the_low_target) <new_fork>: Initialize new member.
10761 * linux-low.c (handle_extended_wait): Call new target function
10763 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10764 * linux-mips-low.c (mips_add_watchpoint): New function
10765 extracted from mips_insert_point.
10766 (the_low_target) <new_fork>: Initialize new member.
10767 (mips_linux_new_fork): New function.
10768 (mips_insert_point): Call mips_add_watchpoint.
10769 * linux-x86-low.c (x86_linux_new_fork): New function.
10770 (the_low_target) <new_fork>: Initialize new member.
10772 2015-05-12 Don Breazeal <donb@codesourcery.com>
10774 * linux-low.c (handle_extended_wait): Implement return value,
10775 rename argument 'event_child' to 'event_lwp', handle
10776 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10777 (linux_low_ptrace_options): New function.
10778 (linux_low_filter_event): Call linux_low_ptrace_options,
10779 use different argument fo linux_enable_event_reporting,
10780 use return value from handle_extended_wait.
10781 (extended_event_reported): New function.
10782 (linux_wait_1): Call extended_event_reported and set
10783 status to report fork events.
10784 (linux_write_memory): Add pid to debug message.
10785 (reset_lwp_ptrace_options_callback): New function.
10786 (linux_handle_new_gdb_connection): New function.
10787 (linux_target_ops): Initialize new structure member.
10788 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10789 * lynx-low.c: Initialize new structure member.
10790 * remote-utils.c (prepare_resume_reply): Implement stop reason
10791 "fork" for "T" stop message.
10792 * server.c (handle_query): Call handle_new_gdb_connection.
10793 * server.h (report_fork_events): Declare global flag.
10794 * target.h (struct target_ops) <handle_new_gdb_connection>:
10796 (target_handle_new_gdb_connection): New macro.
10797 * win32-low.c: Initialize new structure member.
10799 2015-05-12 Don Breazeal <donb@codesourcery.com>
10801 * mem-break.c (APPEND_TO_LIST): Define macro.
10802 (clone_agent_expr): New function.
10803 (clone_one_breakpoint): New function.
10804 (clone_all_breakpoints): New function.
10805 * mem-break.h: Declare new functions.
10807 2015-05-12 Don Breazeal <donb@codesourcery.com>
10809 * linux-low.c (linux_supports_fork_events): New function.
10810 (linux_supports_vfork_events): New function.
10811 (linux_target_ops): Initialize new structure members.
10812 (initialize_low): Call linux_check_ptrace_features.
10813 * lynx-low.c (lynx_target_ops): Initialize new structure
10815 * server.c (report_fork_events, report_vfork_events):
10817 (handle_query): Add new features to qSupported packet and
10819 (captured_main): Initialize new global variables.
10820 * target.h (struct target_ops) <supports_fork_events>:
10822 <supports_vfork_events>: New member.
10823 (target_supports_fork_events): New macro.
10824 (target_supports_vfork_events): New macro.
10825 * win32-low.c (win32_target_ops): Initialize new structure
10828 2015-05-12 Gary Benson <gbenson@redhat.com>
10830 * server.c (handle_qxfer_exec_file): Use current process
10833 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10835 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10836 Remove HAVE_PTRACE_GETREGS conditionals.
10837 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10838 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10840 2015-05-08 Yao Qi <yao.qi@linaro.org>
10842 * linux-low.c (linux_supports_conditional_breakpoints): New
10844 (linux_target_ops): Install new target method.
10845 * lynx-low.c (lynx_target_ops): Install NULL hook for
10846 supports_conditional_breakpoints.
10847 * nto-low.c (nto_target_ops): Likewise.
10848 * spu-low.c (spu_target_ops): Likewise.
10849 * win32-low.c (win32_target_ops): Likewise.
10850 * server.c (handle_query): Check
10851 target_supports_conditional_breakpoints.
10852 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10854 (target_supports_conditional_breakpoints): New macro.
10856 2015-05-06 Pedro Alves <palves@redhat.com>
10859 * server.c (start_inferior): If the process exits, mourn it.
10861 2015-04-21 Gary Benson <gbenson@redhat.com>
10863 * hostio.c (fileio_open_flags_to_host): Factored out to
10864 fileio_to_host_openflags in common/fileio.c. Single use
10867 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10869 * linux-xtensa-low.c (xtensa_fill_gregset)
10870 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10873 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10875 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10876 (regs_info): Replace usrregs pointer with NULL.
10878 2015-04-17 Gary Benson <gbenson@redhat.com>
10880 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10881 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10882 * server.c (handle_qxfer_exec_file): New function.
10883 (qxfer_packets): Add exec-file entry.
10884 (handle_query): Report qXfer:exec-file:read as supported packet.
10886 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10888 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10890 2015-04-09 Gary Benson <gbenson@redhat.com>
10892 * hostio-errno.c (errno_to_fileio_error): Remove function.
10893 Update caller to use remote_fileio_to_fio_error.
10895 2015-04-09 Yao Qi <yao.qi@linaro.org>
10897 * linux-low.c (linux_insert_point): Call
10898 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10899 (linux_remove_point): Call remove_memory_breakpoint if type is
10901 * linux-x86-low.c (x86_insert_point): Don't call
10902 insert_memory_breakpoint.
10903 (x86_remove_point): Don't call remove_memory_breakpoint.
10905 2015-04-01 Pedro Alves <palves@redhat.com>
10906 Cleber Rosa <crosa@redhat.com>
10908 * server.c (gdbserver_usage): Reorganize and extend the usage
10911 2015-03-24 Pedro Alves <palves@redhat.com>
10913 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10914 output. Also dump TRAP_TRACE.
10915 (linux_low_filter_event): In debug output, distinguish a
10916 resume_stop SIGSTOP from a delayed SIGSTOP.
10918 2015-03-24 Gary Benson <gbenson@redhat.com>
10920 * linux-x86-low.c (x86_linux_new_thread): Moved to
10922 (x86_linux_prepare_to_resume): Likewise.
10924 2015-03-24 Gary Benson <gbenson@redhat.com>
10926 * Makefile.in (x86-linux-dregs.o): New rule.
10927 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10928 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10929 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10930 (x86_linux_dr_get): Likewise.
10931 (x86_linux_dr_set): Likewise.
10932 (update_debug_registers_callback): Likewise.
10933 (x86_linux_dr_set_addr): Likewise.
10934 (x86_linux_dr_get_addr): Likewise.
10935 (x86_linux_dr_set_control): Likewise.
10936 (x86_linux_dr_get_control): Likewise.
10937 (x86_linux_dr_get_status): Likewise.
10938 (x86_linux_update_debug_registers): Likewise.
10940 2015-03-24 Gary Benson <gbenson@redhat.com>
10942 * linux-x86-low.c (x86_linux_update_debug_registers):
10943 New function, factored out from...
10944 (x86_linux_prepare_to_resume): ...this.
10946 2015-03-24 Gary Benson <gbenson@redhat.com>
10948 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10949 (x86_linux_dr_set): Likewise.
10950 (update_debug_registers_callback): Likewise.
10951 (x86_linux_dr_set_addr): Likewise.
10952 (x86_linux_dr_get_addr): Likewise.
10953 (x86_linux_dr_set_control): Likewise.
10954 (x86_linux_dr_get_control): Likewise.
10955 (x86_linux_dr_get_status): Likewise.
10956 (x86_linux_prepare_to_resume): Likewise.
10958 2015-03-24 Gary Benson <gbenson@redhat.com>
10960 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10961 Use perror_with_name. Pass string through gettext.
10962 (x86_linux_dr_set): Likewise.
10964 2015-03-24 Gary Benson <gbenson@redhat.com>
10966 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10967 (x86_linux_dr_set_addr): ...this.
10968 (x86_dr_low_get_addr): Rename to...
10969 (x86_linux_dr_get_addr): ...this.
10970 (x86_dr_low_set_control): Rename to...
10971 (x86_linux_dr_set_control): ...this.
10972 (x86_dr_low_get_control): Rename to...
10973 (x86_linux_dr_get_control): ...this.
10974 (x86_dr_low_get_status): Rename to...
10975 (x86_linux_dr_get_status): ...this.
10976 (x86_dr_low): Update with new function names.
10978 2015-03-24 Gary Benson <gbenson@redhat.com>
10980 * Makefile.in (x86-linux.o): New rule.
10981 * configure.srv: Add x86-linux.o to relevant targets.
10982 * linux-low.c (lwp_set_arch_private_info): New function.
10983 (lwp_arch_private_info): Likewise.
10984 * linux-x86-low.c: Include nat/x86-linux.h.
10985 (arch_lwp_info): Removed structure.
10986 (update_debug_registers_callback):
10987 Use lwp_set_debug_registers_changed.
10988 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10989 and lwp_set_debug_registers_changed.
10990 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10992 2015-03-24 Gary Benson <gbenson@redhat.com>
10994 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10995 * linux-arm-low.c (arm_new_thread): Likewise.
10996 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10997 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10998 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10999 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11001 2015-03-24 Gary Benson <gbenson@redhat.com>
11003 * linux-low.c (ptid_of_lwp): New function.
11004 (lwp_is_stopped): Likewise.
11005 (lwp_stop_reason): Likewise.
11006 * linux-x86-low.c (update_debug_registers_callback):
11007 Use lwp_is_stopped.
11008 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11011 2015-03-24 Gary Benson <gbenson@redhat.com>
11013 * linux-low.h (linux_stop_lwp): Remove declaration.
11015 2015-03-24 Gary Benson <gbenson@redhat.com>
11017 * linux-low.h: Include nat/linux-nat.h.
11018 * linux-low.c (iterate_over_lwps_args): New structure.
11019 (iterate_over_lwps_filter): New function.
11020 (iterate_over_lwps): Likewise.
11021 * linux-x86-low.c (update_debug_registers_callback):
11022 Update signature to what iterate_over_lwps expects.
11023 Remove PID check that iterate_over_lwps now performs.
11024 (x86_dr_low_set_addr): Use iterate_over_lwps.
11025 (x86_dr_low_set_control): Likewise.
11027 2015-03-24 Gary Benson <gbenson@redhat.com>
11029 * linux-x86-low.c (x86_debug_reg_state): New function.
11030 (x86_linux_prepare_to_resume): Use the above.
11032 2015-03-24 Gary Benson <gbenson@redhat.com>
11034 * linux-low.c (current_lwp_ptid): New function.
11035 * linux-x86-low.c: Include nat/linux-nat.h.
11036 (x86_dr_low_get_addr): Use current_lwp_ptid.
11037 (x86_dr_low_get_control): Likewise.
11038 (x86_dr_low_get_status): Likewise.
11040 2015-03-20 Pedro Alves <palves@redhat.com>
11042 * tracepoint.c (cmd_qtstatus): Make "str" const.
11044 2015-03-20 Pedro Alves <palves@redhat.com>
11046 * server.c (handle_general_set): Make "req_str" const.
11048 2015-03-19 Pedro Alves <palves@redhat.com>
11050 * linux-low.c (linux_resume_one_lwp): Rename to ...
11051 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11052 instead call perror_with_name.
11053 (check_ptrace_stopped_lwp_gone): New function.
11054 (linux_resume_one_lwp): Reimplement as wrapper around
11055 linux_resume_one_lwp_throw that swallows errors if the LWP is
11058 2015-03-19 Pedro Alves <palves@redhat.com>
11060 * linux-low.c (count_events_callback, select_event_lwp_callback):
11061 No longer check whether the thread has resume_stop as last resume
11064 2015-03-19 Pedro Alves <palves@redhat.com>
11066 * linux-low.c (count_events_callback, select_event_lwp_callback):
11067 Use the lwp's status_pending_p field, not the thread's.
11069 2015-03-19 Pedro Alves <palves@redhat.com>
11071 * linux-low.c (select_event_lwp_callback): Update comments to
11072 no longer mention SIGTRAP.
11074 2015-03-18 Gary Benson <gbenson@redhat.com>
11076 * server.c (handle_query): Do not report vFile:fstat as supported.
11078 2015-03-11 Gary Benson <gbenson@redhat.com>
11080 * hostio.c (sys/types.h): New include.
11081 (sys/stat.h): Likewise.
11082 (common-remote-fileio.h): Likewise.
11083 (handle_fstat): New function.
11084 (handle_vFile): Handle vFile:fstat packets.
11086 2015-03-11 Gary Benson <gbenson@redhat.com>
11088 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11089 struct stat.st_blocks and struct stat.st_blksize.
11090 * configure: Regenerate.
11091 * config.in: Likewise.
11092 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11093 (OBS): Add common-remote-fileio.o.
11094 (common-remote-fileio.o): New rule.
11096 2015-03-09 Pedro Alves <palves@redhat.com>
11098 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11099 'struct sockaddr' pointer in 'accept' call.
11101 2015-03-09 Pedro Alves <palves@redhat.com>
11104 2015-03-07 Pedro Alves <palves@redhat.com>
11105 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11106 or <winsock2.h> here. Instead include "gdb_socket.h".
11107 (remote_open): Use union gdb_sockaddr_u.
11108 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11109 or <winsock2.h> here. Instead include "gdb_socket.h".
11110 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11111 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11113 (init_named_socket, gdb_agent_helper_thread): Use union
11116 2015-03-07 Pedro Alves <palves@redhat.com>
11118 * configure.ac (build_warnings): Move
11119 -Wdeclaration-after-statement to the C-specific set.
11120 * configure: Regenerate.
11122 2015-03-07 Pedro Alves <palves@redhat.com>
11124 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11125 or <winsock2.h> here. Instead include "gdb_socket.h".
11126 (remote_open): Use union gdb_sockaddr_u.
11127 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11128 or <winsock2.h> here. Instead include "gdb_socket.h".
11129 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11130 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11132 (init_named_socket, gdb_agent_helper_thread): Use union
11135 2015-03-07 Pedro Alves <palves@redhat.com>
11137 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11140 2015-03-06 Yao Qi <yao.qi@linaro.org>
11142 * linux-aarch64-low.c (aarch64_insert_point): Use
11143 show_debug_regs as a boolean.
11144 (aarch64_remove_point): Likewise.
11146 2015-03-05 Pedro Alves <palves@redhat.com>
11148 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11149 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11150 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11151 * nto-low.c (nto_target_ops): Likewise.
11152 * spu-low.c (spu_target_ops): Likewise.
11153 * win32-low.c (win32_target_ops): Likewise.
11155 2015-03-04 Pedro Alves <palves@redhat.com>
11157 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11158 Decide whether a breakpoint triggered based on the SIGTRAP's
11160 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11161 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11162 (linux_low_filter_event): Check for breakpoints before checking
11164 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11166 (linux_stopped_by_sw_breakpoint)
11167 (linux_supports_stopped_by_sw_breakpoint)
11168 (linux_stopped_by_hw_breakpoint)
11169 (linux_supports_stopped_by_hw_breakpoint): New functions.
11170 (linux_target_ops): Install new target methods.
11172 2015-03-04 Pedro Alves <palves@redhat.com>
11174 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11175 * server.c (swbreak_feature, hwbreak_feature): New globals.
11176 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11177 (captured_main): Clear swbreak_feature and hwbreak_feature.
11178 * server.h (swbreak_feature, hwbreak_feature): Declare.
11179 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11180 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11181 supports_stopped_by_hw_breakpoint>: New fields.
11182 (target_supports_stopped_by_sw_breakpoint)
11183 (target_stopped_by_sw_breakpoint)
11184 (target_supports_stopped_by_hw_breakpoint)
11185 (target_stopped_by_hw_breakpoint): Declare.
11187 2015-03-04 Pedro Alves <palves@redhat.com>
11189 enum lwp_stop_reason -> enum target_stop_reason
11190 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11191 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11192 (linux_wait_1, stuck_in_jump_pad_callback)
11193 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11194 (linux_stopped_by_watchpoint):
11195 * linux-low.h (enum lwp_stop_reason): Delete.
11196 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11197 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11199 2015-03-04 Yao Qi <yao.qi@linaro.org>
11201 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11203 2015-03-03 Gary Benson <gbenson@redhat.com>
11205 * hostio.c (handle_vFile): Fix prefix lengths.
11207 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11209 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11212 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11214 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11215 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11216 (clean): Add "rm -f" for above C files.
11217 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11218 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11219 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11220 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11221 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11222 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11223 (init_registers_s390x_vx_linux64)
11224 (init_registers_s390x_tevx_linux64)
11225 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11226 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11228 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11229 (s390_store_vxrs_high): New functions.
11230 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11232 (s390_arch_setup): Add logic for selecting one of the new target
11233 descriptions. Activate the new vector regsets if applicable.
11234 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11235 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11236 and init_registers_s390x_tevx_linux64.
11238 2015-03-01 Pedro Alves <palves@redhat.com>
11240 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11243 2015-02-27 Pedro Alves <palves@redhat.com>
11245 * linux-x86-low.c (u_debugreg_offset): New function.
11246 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11248 2015-02-27 Pedro Alves <palves@redhat.com>
11250 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11251 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11252 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11253 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11254 (ps_lsetfpregs, ps_getpid)
11255 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11256 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11257 (ps_lsetxregs, ps_plog): Declare.
11259 2015-02-27 Pedro Alves <palves@redhat.com>
11261 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11262 IP_AGENT_EXPORT_FUNC.
11263 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11264 IP_AGENT_EXPORT_FUNC.
11265 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11266 (IP_AGENT_EXPORT): Delete.
11267 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11268 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11269 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11270 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11271 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11272 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11273 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11274 (traceframe_read_count, traceframe_write_count)
11275 (traceframes_created, trace_state_variables, get_raw_reg)
11276 (get_trace_state_variable_value, set_trace_state_variable_value)
11277 (ust_loaded, helper_thread_id, cmd_buf): Use
11278 IPA_SYM_EXPORTED_NAME.
11279 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11280 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11281 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11282 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11283 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11284 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11285 EXTERN_C_PUSH/EXTERN_C_POP.
11286 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11287 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11288 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11289 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11290 (traceframe_write_count, traceframe_read_count)
11291 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11292 (about_to_request_buffer_space, get_trace_state_variable_value)
11293 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11294 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11295 EXTERN_C_PUSH/EXTERN_C_POP.
11296 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11297 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11298 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11299 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11300 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11301 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11302 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11303 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11305 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11306 (IP_AGENT_EXPORT_VAR_DECL): Define.
11307 (tracing): Declare.
11308 (gdb_agent_get_raw_reg): Declare.
11310 2015-02-27 Tom Tromey <tromey@redhat.com>
11311 Pedro Alves <palves@redhat.com>
11313 Rename symbols whose names are reserved C++ keywords throughout.
11315 2015-02-27 Pedro Alves <palves@redhat.com>
11317 * Makefile.in (COMPILER): New, get it from autoconf.
11318 (CXX): Get from autoconf instead.
11319 (COMPILE.pre): Use COMPILER.
11320 (CC-LD): Rename to ...
11321 (CC_LD): ... this. Use COMPILER.
11322 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11323 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11324 * acinclude.m4: Include build-with-cxx.m4.
11325 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11326 Disable -Werror by default if building in C++ mode.
11327 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11328 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11329 the C++ compiler. Save/restore CXXFLAGS too.
11330 * configure: Regenerate.
11332 2015-02-27 Pedro Alves <palves@redhat.com>
11334 * acinclude.m4: Include libiberty.m4.
11335 * configure.ac: Call libiberty_INIT.
11336 * config.in, configure: Regenerate.
11338 2015-02-26 Pedro Alves <palves@redhat.com>
11340 * linux-low.c (linux_wait_1): When incrementing the PC past a
11341 program breakpoint always use the_low_target.breakpoint_len as
11342 increment, rather than the maximum between that and
11343 the_low_target.decr_pc_after_break.
11345 2015-02-23 Pedro Alves <palves@redhat.com>
11347 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11348 thread was doing a step-over; always adjust the PC if
11349 we stepped over a permanent breakpoint.
11350 (linux_wait_1): If we stepped over breakpoint that was on top of a
11351 permanent breakpoint, manually advance the PC past it.
11353 2015-02-23 Pedro Alves <palves@redhat.com>
11355 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11357 (x86_fill_gregset, x86_store_gregset): Use it when handling
11360 2015-02-20 Pedro Alves <palves@redhat.com>
11362 * thread-db.c: Include "nat/linux-procfs.h".
11363 (thread_db_init): Skip listing new threads if the kernel supports
11364 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11366 2015-02-20 Pedro Alves <palves@redhat.com>
11368 * linux-low.c (status_pending_p_callback): Use ptid_match.
11370 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11372 PR breakpoints/16812
11373 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11374 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11375 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11377 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11379 PR breakpoints/15956
11380 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11382 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11384 * linux-low.c (linux_low_btrace_conf): Print size.
11385 * server.c (handle_btrace_conf_general_set): New.
11386 (hanle_general_set): Call handle_btrace_conf_general_set.
11387 (handle_query): Report Qbtrace-conf:bts:size as supported.
11389 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11391 * linux-low.c (linux_low_enable_btrace): Update parameters.
11392 (linux_low_btrace_conf): New.
11393 (linux_target_ops)<to_btrace_conf>: Initialize.
11394 * server.c (current_btrace_conf): New.
11395 (handle_btrace_enable): Rename to ...
11396 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11397 to target_enable_btrace. Update comment. Update users.
11398 (handle_qxfer_btrace_conf): New.
11399 (qxfer_packets): Add btrace-conf entry.
11400 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11401 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11402 (target_ops)<read_btrace_conf>: New.
11403 (target_enable_btrace): Update parameters.
11404 (target_read_btrace_conf): New.
11406 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11408 * server.c (handle_btrace_general_set): Remove call to
11409 target_supports_btrace.
11410 (supported_btrace_packets): New.
11411 (handle_query): Call supported_btrace_packets.
11412 * target.h: include btrace-common.h.
11413 (btrace_target_info): Removed.
11414 (supports_btrace, target_supports_btrace): Update parameters.
11416 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11418 * Makefile.in (SFILES): Add common/btrace-common.c.
11419 (OBS): Add common/btrace-common.o.
11420 (btrace-common.o): Add build rules.
11421 * linux-low: Include btrace-common.h.
11422 (linux_low_read_btrace): Use struct btrace_data. Call
11423 btrace_data_init and btrace_data_fini.
11425 2015-02-06 Pedro Alves <palves@redhat.com>
11427 * thread-db.c (find_new_threads_callback): Add debug output.
11429 2015-02-04 Pedro Alves <palves@redhat.com>
11431 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11432 (resume_stopped_resumed_lwps): New function.
11433 (linux_wait_for_event_filtered): Use it.
11435 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11437 * Makefile.in (SFILES): Add linux-personality.c.
11438 (linux-personality.o): New rule.
11439 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11440 list of objects to be built.
11441 * linux-low.c: Include nat/linux-personality.h.
11442 (linux_create_inferior): Remove code to disable address space
11443 randomization (moved to ../nat/linux-personality.c). Create
11444 cleanup to disable address space randomization.
11446 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11448 * Makefile.in (posix-strerror.o): New rule.
11449 (mingw-strerror.o): Likewise.
11450 * configure: Regenerated.
11451 * configure.ac: Source file ../common/common.host. Initialize new
11452 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11454 2015-01-14 Yao Qi <yao@codesourcery.com>
11456 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11457 (ppc-linux.o): New rule.
11458 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11459 * configure.ac: AC_CHECK_FUNCS(getauxval).
11460 * config.in: Re-generated.
11461 * configure: Re-generated.
11462 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11463 ppc64_64bit_inferior_p
11465 2015-01-14 Yao Qi <yao@codesourcery.com>
11467 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11468 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11469 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11470 (PT_ORIG_R3, PT_TRAP): Likewise.
11471 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11472 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11473 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11475 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11477 * i387-fp.c (i387_cache_to_xsave): In look over
11478 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11479 zmmh_low_space field by use of zmmh_high_space.
11481 2015-01-09 Pedro Alves <palves@redhat.com>
11483 * linux-low.c (step_over_bkpt): Move higher up in the file.
11484 (handle_extended_wait): Don't store the stop_pc here.
11485 (get_stop_pc): Adjust comments and rename to ...
11486 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11487 stopped for a software breakpoint or hardware breakpoint.
11488 (thread_still_has_status_pending_p): New function.
11489 (status_pending_p_callback): Use
11490 thread_still_has_status_pending_p. If the event is no longer
11491 interesting, resume the LWP.
11492 (handle_tracepoints): Add assert.
11493 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11494 (wstatus_maybe_breakpoint): New function.
11495 (cancel_breakpoint): Delete function.
11496 (check_stopped_by_watchpoint): New function, factored out from
11497 linux_low_filter_event.
11498 (lp_status_maybe_breakpoint): Delete function.
11499 (linux_low_filter_event): Remove filter_ptid argument.
11500 Leave thread group exits pending here. Store the LWP's stop PC.
11501 Always leave events pending.
11502 (linux_wait_for_event_filtered): Pull all events out of the
11503 kernel, and leave them all pending.
11504 (count_events_callback, select_event_lwp_callback): Consider all
11506 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11507 (select_event_lwp): Only give preference to the stepping LWP in
11508 all-stop mode. Adjust comments.
11509 (ignore_event): New function.
11510 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11511 references to cancel_breakpoints. Adjust to renames. Also give
11512 equal priority to all LWPs that have had events in non-stop mode.
11513 If reporting a software breakpoint event, unadjust the LWP's PC.
11514 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11515 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11517 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11518 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11519 (linux_stopped_by_watchpoint): Adjust.
11520 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11521 * linux-low.h (enum lwp_stop_reason): New.
11522 (struct lwp_info) <stop_pc>: Adjust comment.
11523 <stopped_by_watchpoint>: Delete field.
11524 <stop_reason>: New field.
11525 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11526 * mem-break.c (software_breakpoint_inserted_here)
11527 (hardware_breakpoint_inserted_here): New function.
11528 * mem-break.h (software_breakpoint_inserted_here)
11529 (hardware_breakpoint_inserted_here): Declare.
11530 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11531 (cancel_breakpoints): Delete.
11532 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11533 (upload_fast_traceframes): Remove references to
11534 cancel_breakpoints.
11536 2015-01-09 Pedro Alves <palves@redhat.com>
11538 * thread-db.c (find_new_threads_callback): Ignore thread if the
11539 kernel thread ID is -1.
11541 2015-01-09 Pedro Alves <palves@redhat.com>
11543 * linux-low.c (linux_attach_fail_reason_string): Move to
11544 nat/linux-ptrace.c, and rename.
11545 (linux_attach_lwp): Update comment.
11546 (attach_proc_task_lwp_callback): New function.
11547 (linux_attach): Adjust to rename and use
11548 linux_proc_attach_tgid_threads.
11549 (linux_attach_fail_reason_string): Delete declaration.
11551 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11553 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11554 * server.c (gdbserver_version): Likewise.
11556 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11558 * remote-utils.c: Include ctype.h.
11559 (input_interrupt): Explicitly handle the case when the char
11560 received is the NUL byte. Improve the printing of non-ASCII
11563 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11565 * linux-low.c (linux_low_filter_event): Update call to
11566 linux_enable_event_reporting following the addition of
11567 a new parameter to that function.
11569 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11572 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11573 (AARCH64_FPCR_REGNO): Likewise.
11574 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11575 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11576 (aarch64_store_fpregset): Likewise.
11578 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11580 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11581 Remove FIXME comment about assumption about N.
11583 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11585 * configure.ac: If large-file support is disabled in GDBserver,
11586 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11587 * configure: Regenerate.
11589 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11591 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11592 warning upon ENODATA from ptrace.
11593 * linux-s390-low.c (s390_store_tdb): New.
11594 (s390_regsets): Add regset for NT_S390_TDB.
11596 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11598 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11599 without a fill_function.
11600 * linux-s390-low.c (s390_fill_last_break): Remove.
11601 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11602 (s390_arch_setup): Use regset's size instead of fill_function for
11603 loop end condition.
11605 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11607 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11608 the regset's store function when ptrace returned an error.
11609 * regcache.c (get_thread_regcache): Invalidate register cache
11610 before fetching inferior's registers.
11612 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11614 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11615 while-loop as for-loop.
11616 (regsets_store_inferior_registers): Likewise.
11618 2014-11-28 Yao Qi <yao@codesourcery.com>
11620 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11621 * config.in, configure: Re-generate.
11622 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11625 2014-11-21 Yao Qi <yao@codesourcery.com>
11627 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11628 (AC_CHECK_HEADERS): Remove malloc.h.
11629 * configure: Re-generated.
11630 * config.in: Re-generated.
11631 * server.h: Don't include alloca.h and malloc.h.
11632 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11633 Don't include malloc.h.
11635 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11637 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11638 corresponding ERRNO check in same block.
11640 2014-11-12 Pedro Alves <palves@redhat.com>
11642 * server.c (cont_thread): Update comment.
11643 (start_inferior, attach_inferior): No longer clear cont_thread.
11644 (handle_v_cont): No longer set cont_thread.
11645 (captured_main): Clear cont_thread each time a GDB connects.
11647 2014-11-12 Pedro Alves <palves@redhat.com>
11649 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11650 thread, and don't resume all threads if the Hc thread has exited.
11652 2014-11-12 Pedro Alves <palves@redhat.com>
11654 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11655 the process group instead of to a specific LWP.
11657 2014-10-15 Pedro Alves <palves@redhat.com>
11660 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11662 (arm_set_thread_context): Delete.
11663 (the_low_target): Adjust.
11664 * win32-i386-low.c (debug_registers_changed)
11665 (debug_registers_used): Delete.
11666 (update_debug_registers_callback): New function.
11667 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11668 needing to update their debug registers.
11669 (win32_get_current_dr): New function.
11670 (x86_dr_low_get_addr, x86_dr_low_get_control)
11671 (x86_dr_low_get_status): Fetch the debug register from the thread
11673 (i386_initial_stuff): Adjust.
11674 (i386_get_thread_context): Remove current_event parameter. Don't
11675 clear debug_registers_changed nor copy DR values to
11677 (i386_set_thread_context): Delete.
11678 (i386_prepare_to_resume): New function.
11679 (i386_thread_added): Mark the thread as needing to update irs
11681 (the_low_target): Remove i386_set_thread_context and install
11682 i386_prepare_to_resume.
11683 * win32-low.c (win32_get_thread_context): Adjust.
11684 (win32_set_thread_context): Use SetThreadContext
11686 (win32_prepare_to_resume): New function.
11687 (win32_require_context): New function, factored out from ...
11688 (thread_rec): ... this.
11689 (continue_one_thread): Call win32_prepare_to_resume on each thread
11690 we're about to continue.
11691 (win32_resume): Call win32_prepare_to_resume on the event thread.
11692 * win32-low.h (struct win32_thread_info)
11693 <debug_registers_changed>: New field.
11694 (struct win32_target_ops): Change prototype of set_thread_context,
11695 delete set_thread_context and add prepare_to_resume.
11696 (win32_require_context): New declaration.
11698 2014-10-08 Gary Benson <gbenson@redhat.com>
11700 * server.h: Do not include common-exceptions.h.
11702 2014-10-08 Gary Benson <gbenson@redhat.com>
11704 * server.h: Do not include cleanups.h.
11706 2014-09-30 James Hogan <james.hogan@imgtec.com>
11708 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11709 mips64-dsp-linux.c.
11711 2014-09-23 Yao Qi <yao@codesourcery.com>
11713 * linux-low.c (lp_status_maybe_breakpoint): New function.
11714 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11715 (count_events_callback): Likewise.
11716 (select_event_lwp_callback): Likewise.
11717 (cancel_breakpoints_callback): Likewise.
11719 2014-09-19 Don Breazeal <donb@codesourcery.com>
11721 * linux-low.c (handle_extended_wait): Call
11722 linux_ptrace_get_extended_event.
11723 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11724 linux_is_extended_waitstatus.
11726 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11728 * Makefile.in (CPPFLAGS): Define.
11729 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11730 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11732 2014-09-16 Gary Benson <gbenson@redhat.com>
11734 * inferiors.h (current_inferior): Renamed as...
11735 (current_thread): New variable. All uses updated.
11736 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11737 (maybe_move_out_of_jump_pad): Likewise.
11738 (cancel_breakpoint): Likewise.
11739 (linux_low_filter_event): Likewise.
11740 (wait_for_sigstop): Likewise.
11741 (linux_resume_one_lwp): Likewise.
11742 (need_step_over_p): Likewise.
11743 (start_step_over): Likewise.
11744 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11745 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11746 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11747 and save_inferior as saved_thread.
11748 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11750 (regcache_invalidate_thread): Likewise.
11751 * remote-utils.c (prepare_resume_reply): Likewise.
11752 * thread-db.c (thread_db_get_tls_address): Likewise.
11753 (disable_thread_event_reporting): Likewise.
11754 (remove_thread_event_breakpoints): Likewise.
11755 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11757 * target.h (set_desired_inferior): Renamed as...
11758 (set_desired_thread): New declaration. All uses updated.
11759 * server.c (myresume): Updated comment to reference thread instead
11761 (handle_serial_event): Likewise.
11762 (handle_target_event): Likewise.
11764 2014-09-12 Tom Tromey <tromey@redhat.com>
11765 Gary Benson <gbenson@redhat.com>
11767 * regcache.h: Include common-regcache.h.
11768 (regcache_read_pc): Don't declare.
11769 * regcache.c (get_thread_regcache_for_ptid): New function.
11771 2014-09-11 Tom Tromey <tromey@redhat.com>
11772 Gary Benson <gbenson@redhat.com>
11774 * symbol.c: New file.
11775 * Makefile.in (SFILES): Add symbol.c.
11776 (OBS): Add symbol.o.
11778 2014-09-11 Gary Benson <gbenson@redhat.com>
11780 * target.c (target_stop_ptid, target_continue_ptid): New
11783 2014-09-11 Tom Tromey <tromey@redhat.com>
11784 Gary Benson <gbenson@redhat.com>
11786 * target.h: Include target/target.h.
11787 * target.c (target_read_memory, target_read_uint32)
11788 (target_write_memory): New functions.
11790 2014-09-11 Gary Benson <gbenson@redhat.com>
11792 * server.h (debug_hw_points): Don't declare.
11793 * server.c (debug_hw_points): Don't define. Replace all uses
11794 with show_debug_regs.
11795 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11796 all uses with show_debug_regs.
11798 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11800 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11801 endianness into account.
11802 (ppc_supply_ptrace_register): Likewise.
11804 2014-09-03 James Hogan <james.hogan@imgtec.com>
11806 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11807 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11809 2014-09-03 Gary Benson <gbenson@redhat.com>
11811 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11812 ALL_DEBUG_ADDRESS_REGISTERS.
11814 2014-09-02 Gary Benson <gbenson@redhat.com>
11816 * i386-low.h: Renamed as...
11817 * x86-low.h: New file. All type, function and variable name
11818 prefixes changed from "i386_" to "x86_". All references updated.
11819 * i386-low.c: Renamed as...
11820 * x86-low.c: New file. All type, function and variable name
11821 prefixes changed from "i386_" to "x86_". All references updated.
11823 2014-09-02 Gary Benson <gbenson@redhat.com>
11825 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11826 (x86_linux_new_thread): Likewise.
11828 2014-08-29 Gary Benson <gbenson@redhat.com>
11830 * server.h (setjmp.h): Do not include.
11831 (toplevel): Do not declare.
11832 (common-exceptions.h): Include.
11833 (cleanups.h): Likewise.
11834 * server.c (toplevel): Do not define.
11835 (exit_code): New static global.
11836 (detach_or_kill_for_exit_cleanup): New function.
11837 (main): New function. Original main renamed to...
11838 (captured_main): New function.
11839 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11841 2014-08-29 Gary Benson <gbenson@redhat.com>
11843 * Makefile.in (SFILES): Add common/common-exceptions.c.
11844 (OBS): Add common-exceptions.o.
11845 (common-exceptions.o): New rule.
11846 * utils.c (prepare_to_throw_exception): New function.
11848 2014-08-29 Gary Benson <gbenson@redhat.com>
11850 * config.in: Regenerate.
11851 * configure: Likewise.
11853 2014-08-29 Gary Benson <gbenson@redhat.com>
11855 * Makefile.in (SFILES): Add common/cleanups.c.
11857 (cleanups.o): New rule.
11859 2014-08-29 Gary Benson <gbenson@redhat.com>
11861 * utils.c (internal_vwarning): New function.
11863 2014-08-28 Gary Benson <gbenson@redhat.com>
11865 * utils.h (fatal): Remove declaration.
11866 * utils.c (fatal): Remove function.
11868 2014-08-28 Gary Benson <gbenson@redhat.com>
11870 * tracepoint.c (gdb_agent_init): Replace fatal with
11872 (initialize_tracepoint): Likewise.
11874 2014-08-28 Gary Benson <gbenson@redhat.com>
11876 * remote-utils.c (remote_prepare): Replace fatal with error.
11878 2014-08-28 Gary Benson <gbenson@redhat.com>
11880 * linux-low.c (linux_async): Replace fatal with warning.
11881 Tidy up and return.
11882 (linux_start_non_stop): Return -1 if linux_async failed.
11884 2014-08-28 Gary Benson <gbenson@redhat.com>
11886 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11888 (i386_dr_low_get_addr): Remove vague comment.
11889 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11892 2014-08-28 Gary Benson <gbenson@redhat.com>
11894 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11895 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11897 (linux_resume_one_lwp): Likewise.
11898 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11900 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11901 with internal_error.
11902 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11903 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11904 (find_register_by_name): Replace fatal with internal_error.
11905 (find_regno): Likewise.
11906 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11907 * thread-db.c (thread_db_create_event): Likewise.
11908 (thread_db_load_search): Likewise.
11909 (try_thread_db_load_1): Likewise.
11910 * tracepoint.c (get_jump_space_head): Replace fatal with
11912 (claim_trampoline_space): Likewise.
11913 (have_fast_tracepoint_trampoline_buffer): Likewise.
11914 (cmd_qtstart): Likewise.
11915 (stop_tracing): Likewise.
11916 (fast_tracepoint_collecting): Likewise.
11917 (target_malloc): Likewise.
11918 (download_tracepoint): Likewise.
11919 (download_trace_state_variables): Replace check with gdb_assert.
11920 (upload_fast_traceframes): Replace fatal with internal_error.
11922 2014-08-19 Tom Tromey <tromey@redhat.com>
11923 Gary Benson <gbenson@redhat.com>
11925 * Makefile.in (SFILES): Add common/common-debug.c.
11926 (OBS): Add common-debug.o.
11927 (common-debug.o): New rule.
11928 * debug.h (debug_printf): Don't declare.
11929 * debug.c (debug_printf): Renamed and rewritten as...
11930 (debug_vprintf): New function.
11932 2014-08-19 Gary Benson <gbenson@redhat.com>
11934 * utils.h: Do not include print-utils.h.
11936 2014-08-19 Tom Tromey <tromey@redhat.com>
11937 Gary Benson <gbenson@redhat.com>
11939 * server.h: Add static assertion.
11940 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11942 2014-08-19 Tom Tromey <tromey@redhat.com>
11943 Gary Benson <gbenson@redhat.com>
11945 * Makefile.in (SFILES): Add common/errors.c.
11946 (OBS): Add errors.o.
11947 (IPA_OBS): Add errors-ipa.o.
11948 (errors.o): New rule.
11949 (errors-ipa.o): Likewise.
11950 * utils.h (perror_with_name, error, warning): Don't declare.
11951 * utils.c (warning): Renamed and rewritten as...
11952 (vwarning): New function.
11953 (error): Renamed and rewritten as...
11954 (verror): New function.
11955 (internal_error): Renamed and rewritten as...
11956 (internal_verror): New function.
11958 2014-08-07 Gary Benson <gbenson@redhat.com>
11960 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11961 * configure: Regenerate.
11962 * config.in: Likewise.
11963 * server.h: Do not include errno.h.
11964 * event-loop.c: Likewise.
11965 * hostio-errno.c: Likewise.
11966 * linux-low.c: Likewise.
11967 * remote-utils.c: Likewise.
11968 * spu-low.c: Likewise.
11969 * utils.c: Likewise.
11970 * gdbreplay.c: Unconditionally include errno.h.
11972 2014-08-07 Gary Benson <gbenson@redhat.com>
11974 * server.h: Do not include string.h.
11975 * event-loop.c: Likewise.
11976 * linux-low.c: Likewise.
11977 * regcache.c: Likewise.
11978 * remote-utils.c: Likewise.
11979 * spu-low.c: Likewise.
11980 * utils.c: Likewise.
11982 2014-08-07 Gary Benson <gbenson@redhat.com>
11984 * server.h: Do not include gdb_assert.h.
11986 2014-08-07 Gary Benson <gbenson@redhat.com>
11988 * server.h: Do not include common-utils.h.
11990 2014-08-07 Gary Benson <gbenson@redhat.com>
11992 * server.h: Do not include ptid.h.
11993 * notif.h: Likewise.
11995 2014-08-07 Gary Benson <gbenson@redhat.com>
11997 * server.h: Do not include gdb_locale.h.
11999 2014-08-07 Gary Benson <gbenson@redhat.com>
12001 * server.h: Do not include gdb/signals.h.
12002 * win32-low.c: Likewise.
12004 2014-08-07 Gary Benson <gbenson@redhat.com>
12006 * server.h: Do not include pathmax.h.
12008 2014-08-07 Gary Benson <gbenson@redhat.com>
12010 * server.h: Do not include libiberty.h.
12011 * linux-bfin-low.c: Likewise.
12013 2014-08-07 Gary Benson <gbenson@redhat.com>
12015 * server.h: Do not include ansidecl.h.
12017 2014-08-07 Gary Benson <gbenson@redhat.com>
12019 * linux-x86-low.c: Do not include stddef.h.
12020 * lynx-ppc-low.c: Likewise.
12021 * tracepoint.c: Likewise.
12023 2014-08-07 Gary Benson <gbenson@redhat.com>
12025 * server.h: Do not include stdarg.h.
12026 * nto-low.c: Likewise.
12028 2014-08-07 Gary Benson <gbenson@redhat.com>
12030 * server.h: Do not include stdlib.h.
12031 * inferiors.c: Likewise.
12032 * linux-low.c: Likewise.
12033 * regcache.c: Likewise.
12034 * spu-low.c: Likewise.
12035 * tracepoint.c: Likewise.
12036 * utils.c: Likewise.
12038 2014-08-07 Gary Benson <gbenson@redhat.com>
12040 * server.h: Do not include stdio.h.
12041 * linux-low.c: Likewise.
12042 * remote-utils.c: Likewise.
12043 * spu-low.c: Likewise.
12044 * utils.c: Likewise.
12045 * wincecompat.c: Likewise.
12047 2014-08-06 Gary Benson <gbenson@redhat.com>
12049 * regcache.c (init_register_cache): Move conditionals inside if.
12051 2014-08-06 Gary Benson <gbenson@redhat.com>
12053 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12055 2014-07-31 Gary Benson <gbenson@redhat.com>
12057 * ax.h: Do not include server.h.
12058 * gdbthread.h: Likewise.
12059 * lynx-low.h: Likewise.
12060 * notif.h: Likewise.
12062 2014-07-30 Gary Benson <gbenson@redhat.com>
12064 * server.h: Include common-defs.h.
12065 Do not include config.h or build-gnulib-gdbserver/config.h.
12067 2014-07-30 Gary Benson <gbenson@redhat.com>
12069 * hostio-errno.c: Move server.h to top of includes list.
12070 * inferiors.c: Likewise.
12071 * linux-x86-low.c: Likewise.
12072 * notif.c: Include server.h.
12074 2014-07-24 Tom Tromey <tromey@redhat.com>
12075 Gary Benson <gbenson@redhat.com>
12077 * server.h (CORE_ADDR): Now unsigned.
12079 2014-07-16 Pedro Alves <palves@redhat.com>
12081 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12083 2014-07-15 Pedro Alves <palves@redhat.com>
12085 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12088 2014-07-11 Pedro Alves <palves@redhat.com>
12090 * linux-low.c (kill_wait_lwp): New function, based on
12091 kill_one_lwp_callback, but use my_waitpid directly.
12092 (kill_one_lwp_callback, linux_kill): Use it.
12094 2014-06-23 Pedro Alves <palves@redhat.com>
12096 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12097 before setting DR0..DR3.
12099 2014-06-20 Gary Benson <gbenson@redhat.com>
12101 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12102 * configure: Regenerated.
12103 * config.in: Likewise.
12105 2014-06-20 Gary Benson <gbenson@redhat.com>
12107 * Makefile.in (SFILES): Update locations for files moved
12108 from common to nat.
12109 (object file files): Reordered.
12111 2014-06-20 Gary Benson <gbenson@redhat.com>
12113 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12114 (i386_dr_low_set_addr): Likewise.
12115 (i386_dr_low_get_addr): Likewise.
12116 (i386_dr_low_can_set_control): Likewise.
12117 (i386_dr_low_set_control): Likewise.
12118 (i386_dr_low_get_control): Likewise.
12119 (i386_dr_low_get_status): Likewise.
12120 (i386_get_debug_register_length): Likewise.
12121 * linux-x86-low.c (i386_dr_low_set_addr):
12122 Changed signature. Made static.
12123 (i386_dr_low_get_addr): Likewise.
12124 (i386_dr_low_set_control): Likewise.
12125 (i386_dr_low_get_control): Likewise.
12126 (i386_dr_low_get_status): Likewise.
12127 (i386_dr_low): New global variable.
12128 * win32-i386-low.c (i386_dr_low_set_addr):
12129 Changed signature. Made static.
12130 (i386_dr_low_get_addr): Likewise.
12131 (i386_dr_low_set_control): Likewise.
12132 (i386_dr_low_get_control): Likewise.
12133 (i386_dr_low_get_status): Likewise.
12134 (i386_dr_low): New global variable.
12136 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12138 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12139 * Makefile.in (AR, AR_FLAGS): Define.
12140 * configure: Regenerate.
12142 2014-06-19 Gary Benson <gbenson@redhat.com>
12144 * Makefile.in (i386-dregs.o): New rule.
12145 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12146 * i386-low.c (target.h): Remove include.
12147 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12148 (DR_CONTROL_SHIFT): Likewise.
12149 (DR_CONTROL_SIZE): Likewise.
12150 (DR_RW_EXECUTE): Likewise.
12151 (DR_RW_WRITE): Likewise.
12152 (DR_RW_READ): Likewise.
12153 (DR_RW_IORW): Likewise.
12154 (DR_LEN_1): Likewise.
12155 (DR_LEN_2): Likewise.
12156 (DR_LEN_4): Likewise.
12157 (DR_LEN_8): Likewise.
12158 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12159 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12160 (DR_ENABLE_SIZE): Likewise.
12161 (DR_LOCAL_SLOWDOWN): Likewise.
12162 (DR_GLOBAL_SLOWDOWN): Likewise.
12163 (DR_CONTROL_RESERVED): Likewise.
12164 (I386_DR_CONTROL_MASK): Likewise.
12165 (I386_DR_VACANT): Likewise.
12166 (I386_DR_LOCAL_ENABLE): Likewise.
12167 (I386_DR_GLOBAL_ENABLE): Likewise.
12168 (I386_DR_DISABLE): Likewise.
12169 (I386_DR_SET_RW_LEN): Likewise.
12170 (I386_DR_GET_RW_LEN): Likewise.
12171 (I386_DR_WATCH_HIT): Likewise.
12172 (i386_wp_op_t): Likewise.
12173 (i386_show_dr): Likewise.
12174 (i386_length_and_rw_bits): Likewise.
12175 (i386_insert_aligned_watchpoint): Likewise.
12176 (i386_remove_aligned_watchpoint): Likewise.
12177 (i386_handle_nonaligned_watchpoint): Likewise.
12178 i386_update_inferior_debug_regs(): Likewise.
12179 (i386_dr_insert_watchpoint): Likewise.
12180 (i386_dr_remove_watchpoint): Likewise.
12181 (i386_dr_region_ok_for_watchpoint): Likewise.
12182 (i386_dr_stopped_data_address): Likewise.
12183 (i386_dr_stopped_by_watchpoint): Likewise.
12185 2014-06-19 Gary Benson <gbenson@redhat.com>
12187 * i386-low.c (i386_dr_show): Renamed to
12188 i386_show_dr and made static. All uses updated.
12189 (i386_dr_length_and_rw_bits): Renamed to
12190 i386_length_and_rw_bits and made static.
12192 (i386_dr_insert_aligned_watchpoint): Renamed to
12193 i386_insert_aligned_watchpoint and made static.
12195 (i386_dr_remove_aligned_watchpoint): Renamed to
12196 i386_remove_aligned_watchpoint and made static.
12198 (i386_dr_update_inferior_debug_regs): Renamed to
12199 i386_update_inferior_debug_regs and made static.
12202 2014-06-18 Gary Benson <gbenson@redhat.com>
12204 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12205 (i386_dr_low_can_set_control): Likewise.
12206 (i386_get_debug_register_length): Likewise.
12207 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12208 (i386_dr_low_can_set_control): Likewise.
12209 (i386_get_debug_register_length): Likewise.
12211 2014-06-17 Gary Benson <gbenson@redhat.com>
12213 * i386-low.h (i386-dregs.h): New include.
12214 (DR_FIRSTADDR): Now in i386-dregs.h.
12215 (DR_LASTADDR): Likewise.
12216 (DR_NADDR): Likewise.
12217 (DR_STATUS): Likewise.
12218 (DR_CONTROL): Likewise.
12219 (i386_debug_reg_state): Likewise.
12220 (i386_dr_insert_watchpoint): Likewise.
12221 (i386_dr_remove_watchpoint): Likewise.
12222 (i386_dr_region_ok_for_watchpoint): Likewise.
12223 (i386_dr_stopped_data_address): Likewise.
12224 (i386_dr_stopped_by_watchpoint): Likewise.
12225 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12227 2014-06-18 Gary Benson <gbenson@redhat.com>
12229 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12230 i386_dr_insert_watchpoint.
12231 (i386_low_remove_watchpoint): Renamed to
12232 i386_dr_remove_watchpoint.
12233 (i386_low_region_ok_for_watchpoint): Renamed to
12234 i386_dr_region_ok_for_watchpoint.
12235 (i386_low_stopped_data_address): Renamed to
12236 i386_dr_stopped_data_address.
12237 (i386_low_stopped_by_watchpoint): Renamed to
12238 i386_dr_stopped_by_watchpoint.
12239 * i386-low.c (i386_show_dr): Renamed to
12240 i386_dr_show and made nonstatic. All uses updated.
12241 (i386_length_and_rw_bits): Renamed to
12242 i386_dr_length_and_rw_bits and made nonstatic.
12244 (i386_insert_aligned_watchpoint): Renamed to
12245 i386_dr_insert_aligned_watchpoint and made nonstatic.
12247 (i386_remove_aligned_watchpoint): Renamed to
12248 i386_dr_remove_aligned_watchpoint and made nonstatic.
12250 (i386_update_inferior_debug_regs): Renamed to
12251 i386_dr_update_inferior_debug_regs and made nonstatic.
12253 (i386_low_insert_watchpoint): Renamed to
12254 i386_dr_insert_watchpoint. All uses updated.
12255 (i386_low_remove_watchpoint): Renamed to
12256 i386_dr_remove_watchpoint. All uses updated.
12257 (i386_low_region_ok_for_watchpoint): Renamed to
12258 i386_dr_region_ok_for_watchpoint. All uses updated.
12259 (i386_low_stopped_data_address): Renamed to
12260 i386_dr_stopped_data_address. All uses updated.
12261 (i386_low_stopped_by_watchpoint): Renamed to
12262 i386_dr_stopped_by_watchpoint. All uses updated.
12264 2014-06-18 Gary Benson <gbenson@redhat.com>
12266 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12267 (i386_dr_low_can_set_control): Likewise.
12268 (i386_insert_aligned_watchpoint): New check.
12270 2014-06-18 Gary Benson <gbenson@redhat.com>
12272 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12275 2014-06-18 Gary Benson <gbenson@redhat.com>
12277 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12278 instead of fatal and error.
12279 (i386_handle_nonaligned_watchpoint): Likewise.
12281 2014-06-18 Gary Benson <gbenson@redhat.com>
12283 * i386-low.c (i386_get_debug_register_length): New macro.
12284 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12285 (i386_show_dr): Use debug_printf instead of fprintf. Use
12286 phex to format values.
12288 2014-06-18 Gary Benson <gbenson@redhat.com>
12290 * i386-low.h: Comment changes.
12291 * i386-low.c: Likewise.
12293 2014-06-18 Gary Benson <gbenson@redhat.com>
12295 * i386-low.c: Whitespace changes.
12297 2014-06-12 Tom Tromey <tromey@redhat.com>
12299 * utils.c (freeargv): Remove.
12301 2014-06-12 Tom Tromey <tromey@redhat.com>
12303 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12304 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12305 (parse_debug_format_options): Likewise.
12306 (gdbserver_usage): Likewise.
12307 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12308 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12309 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12311 ($(LIBGNU)): Depend on libiberty.
12312 (all-lib): Recurse into all subdirs.
12313 (install-only): Invoke "install" target in subdirs.
12314 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12316 * configure: Rebuild.
12317 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12318 for vasprintf, vsnprintf, or gettimeofday.
12319 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12322 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12324 * development.sh: Delete.
12325 * Makefile.in (config.status): Adjust dependency on development.sh.
12326 * configure.ac: Adjust development.sh source call.
12327 * configure: Regenerate.
12329 2014-06-02 Pedro Alves <palves@redhat.com>
12331 * ax.c (gdb_free_agent_expr): New function.
12332 * ax.h (gdb_free_agent_expr): New declaration.
12333 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12335 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12337 (clear_breakpoint_conditions_and_commands): New function.
12338 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12339 (clear_breakpoint_conditions_and_commands): New declaration.
12341 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12343 * linux-aarch64-low.c (asm/ptrace.h): Include.
12345 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12347 Fix TLS access for -static -pthread.
12348 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12349 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12350 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12352 2014-05-20 Pedro Alves <palves@redhat.com>
12354 * linux-aarch64-low.c (aarch64_insert_point)
12355 (aarch64_remove_point): No longer check whether the type is
12356 supported here. Adjust to new interface.
12357 (the_low_target): Install aarch64_supports_z_point_type as
12358 supports_z_point_type method.
12359 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12360 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12361 instead of a Z packet char. Adjust.
12362 (arm_supports_z_point_type): New function.
12363 (arm_insert_point, arm_remove_point): Adjust to new interface.
12364 (the_low_target): Install arm_supports_z_point_type.
12365 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12366 (cris_insert_point, cris_remove_point): Adjust to new interface.
12367 Don't check whether the type is supported here.
12368 (the_low_target): Install cris_supports_z_point_type.
12369 * linux-low.c (linux_supports_z_point_type): New function.
12370 (linux_insert_point, linux_remove_point): Adjust to new interface.
12371 * linux-low.h (struct linux_target_ops) <insert_point,
12372 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12373 raw_breakpoint pointer parameter.
12374 <supports_z_point_type>: New method.
12375 * linux-mips-low.c (mips_supports_z_point_type): New function.
12376 (mips_insert_point, mips_remove_point): Adjust to new interface.
12377 Use mips_supports_z_point_type.
12378 (the_low_target): Install mips_supports_z_point_type.
12379 * linux-ppc-low.c (the_low_target): Install NULL as
12380 supports_z_point_type method.
12381 * linux-s390-low.c (the_low_target): Install NULL as
12382 supports_z_point_type method.
12383 * linux-sparc-low.c (the_low_target): Install NULL as
12384 supports_z_point_type method.
12385 * linux-x86-low.c (x86_supports_z_point_type): New function.
12386 (x86_insert_point): Adjust to new insert_point interface. Use
12387 insert_memory_breakpoint. Adjust to new
12388 i386_low_insert_watchpoint interface.
12389 (x86_remove_point): Adjust to remove_point interface. Use
12390 remove_memory_breakpoint. Adjust to new
12391 i386_low_remove_watchpoint interface.
12392 (the_low_target): Install x86_supports_z_point_type.
12393 * lynx-low.c (lynx_target_ops): Install NULL as
12394 supports_z_point_type callback.
12395 * nto-low.c (nto_supports_z_point_type): New.
12396 (nto_insert_point, nto_remove_point): Adjust to new interface.
12397 (nto_target_ops): Install nto_supports_z_point_type.
12398 * mem-break.c: Adjust intro comment.
12399 (struct raw_breakpoint) <raw_type, size>: New fields.
12400 <inserted>: Update comment.
12401 <shlib_disabled>: Delete field.
12402 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12403 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12404 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12405 (raw_bkpt_type_to_target_hw_bp_type): New function.
12406 (find_enabled_raw_code_breakpoint_at): New function.
12407 (find_raw_breakpoint_at): New type and size parameters. Use them.
12408 (insert_memory_breakpoint): New function, based off
12409 set_raw_breakpoint_at.
12410 (remove_memory_breakpoint): New function.
12411 (set_raw_breakpoint_at): Reimplement.
12412 (set_breakpoint): New, based on set_breakpoint_at.
12413 (set_breakpoint_at): Reimplement.
12414 (delete_raw_breakpoint): Go through the_target->remove_point
12415 instead of assuming memory breakpoints.
12416 (find_gdb_breakpoint_at): Delete.
12417 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12418 (find_gdb_breakpoint): New function.
12419 (set_gdb_breakpoint_at): Delete.
12420 (z_type_supported): New function.
12421 (set_gdb_breakpoint_1): New function, loosely based off
12422 set_gdb_breakpoint_at.
12423 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12424 (delete_gdb_breakpoint_at): Delete.
12425 (delete_gdb_breakpoint_1): New function, loosely based off
12426 delete_gdb_breakpoint_at.
12427 (delete_gdb_breakpoint): New function.
12428 (clear_gdb_breakpoint_conditions): Rename to ...
12429 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12431 (add_condition_to_breakpoint): Make static.
12432 (add_breakpoint_condition): Take a struct breakpoint pointer
12433 instead of an address. Adjust.
12434 (gdb_condition_true_at_breakpoint): Rename to ...
12435 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12437 (gdb_condition_true_at_breakpoint): Reimplement.
12438 (add_breakpoint_commands): Take a struct breakpoint pointer
12439 instead of an address. Adjust.
12440 (gdb_no_commands_at_breakpoint): Rename to ...
12441 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12442 parameter. Return true if no breakpoint was found. Change debug
12444 (gdb_no_commands_at_breakpoint): Reimplement.
12445 (run_breakpoint_commands): Rename to ...
12446 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12447 and change return type to boolean.
12448 (run_breakpoint_commands): New function.
12449 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12450 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12451 breakpoint. Go through the_target->remove_point instead of
12452 assuming memory breakpoint.
12453 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12454 software and hardware breakpoints.
12455 (reinsert_raw_breakpoint): Go through the_target->insert_point
12456 instead of assuming memory breakpoint.
12457 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12458 software and hardware breakpoints.
12459 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12460 Check both software and hardware breakpoints.
12461 (validate_inserted_breakpoint): Assert the breakpoint is a
12462 software breakpoint. Set the inserted flag to -1 instead of
12463 setting shlib_disabled.
12464 (delete_disabled_breakpoints): Adjust.
12465 (validate_breakpoints): Only validate software breakpoints.
12466 Adjust to inserted flag change.
12467 (check_mem_read, check_mem_write): Skip breakpoint types other
12468 than software breakpoints. Adjust to inserted flag change.
12469 * mem-break.h (enum raw_bkpt_type): New enum.
12470 (raw_breakpoint, struct process_info): Forward declare.
12471 (Z_packet_to_target_hw_bp_type): Delete declaration.
12472 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12473 (set_gdb_breakpoint, delete_gdb_breakpoint)
12474 (clear_breakpoint_conditions): New declarations.
12475 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12476 (breakpoint_inserted_here): Update comment.
12477 (add_breakpoint_condition, add_breakpoint_commands): Replace
12478 address parameter with a breakpoint pointer parameter.
12479 (gdb_breakpoint_here): Update comment.
12480 (delete_gdb_breakpoint_at): Delete.
12481 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12482 * server.c (process_point_options): Take a struct breakpoint
12483 pointer instead of an address. Adjust.
12484 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12485 delete_gdb_breakpoint.
12486 * spu-low.c (spu_target_ops): Install NULL as
12487 supports_z_point_type method.
12488 * target.h: Include mem-break.h.
12489 (struct target_ops) <prepare_to_access_memory>: Update comment.
12490 <supports_z_point_type>: New field.
12491 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12492 instead of a char. Also take a raw breakpoint pointer.
12493 * win32-arm-low.c (the_low_target): Install NULL as
12494 supports_z_point_type.
12495 * win32-i386-low.c (i386_supports_z_point_type): New function.
12496 (i386_insert_point, i386_remove_point): Adjust to new interface.
12497 (the_low_target): Install i386_supports_z_point_type.
12498 * win32-low.c (win32_supports_z_point_type): New function.
12499 (win32_insert_point, win32_remove_point): Adjust to new interface.
12500 (win32_target_ops): Install win32_supports_z_point_type.
12501 * win32-low.h (struct win32_target_ops):
12502 <supports_z_point_type>: New method.
12503 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12504 instead of a char. Also take a raw breakpoint pointer.
12506 2014-05-20 Pedro Alves <palves@redhat.com>
12508 * mem-break.h: Include break-common.h.
12509 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12510 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12511 (Z_packet_to_target_hw_bp_type): New declaration.
12512 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12513 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12514 (Z_PACKET_ACCESS_WP): Delete macros.
12515 (Z_packet_to_hw_type): Delete function.
12516 * i386-low.h: Don't include break-common.h here.
12517 (Z_packet_to_hw_type): Delete declaration.
12518 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12519 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12520 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12521 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12522 * linux-aarch64-low.c: Don't include break-common.h here.
12523 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12524 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12525 (Z_packet_to_target_hw_bp_type): Delete function.
12526 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12528 (mips_insert_point, mips_remove_point): Use
12529 Z_packet_to_target_hw_bp_type.
12531 2014-05-20 Pedro Alves <palves@redhat.com>
12533 * linux-aarch64-low.c: Include break-common.h.
12534 (enum target_point_type): Delete.
12535 (Z_packet_to_point_type): Rename to ...
12536 (Z_packet_to_target_hw_bp_type): ... this, and return a
12537 target_hw_bp_type instead.
12538 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12539 instead of an enum target_point_type.
12540 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12542 (aarch64_dr_state_insert_one_point)
12543 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12544 (aarch64_handle_aligned_watchpoint)
12545 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12546 Take an enum target_hw_bp_type instead of an enum
12548 (aarch64_supports_z_point_type): New function.
12549 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12550 use Z_packet_to_target_hw_bp_type.
12552 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12554 * configure.ac: Only use -Werror by default when DEVELOPMENT
12556 * configure: Regenerate.
12558 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12560 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12561 * linux-x86-low.c (X86_64_USER_REGS): New.
12562 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12564 2014-04-28 Yao Qi <yao@codesourcery.com>
12566 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12569 2014-04-25 Pedro Alves <palves@redhat.com>
12572 * linux-low.c (linux_attach_fail_reason_string): New function.
12573 (linux_attach_lwp): Delete.
12574 (linux_attach_lwp_1): Rename to ...
12575 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12576 argument. Remove "initial" parameter. Return int instead of
12577 void. Don't error or warn here.
12578 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12579 failure to attach to the tgid. Call warning when failing to
12581 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12582 argument. Remove "initial" parameter. Return int instead of
12583 void. Don't error or warn here.
12584 (linux_attach_fail_reason_string): New declaration.
12585 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12586 interface change. Use linux_attach_fail_reason_string.
12588 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12589 Walfred Tedeschi <walfred.tedeschi@intel.com>
12591 * Makefile.in: Added rules to handle new files
12592 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12593 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12594 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12595 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12596 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12597 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12598 x32-avx512-linux.o.
12599 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12600 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12601 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12602 i386/x32-avx512.xml.
12603 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12604 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12605 i386/x32-avx512-linux.xml.
12606 * i387-fp.c (num_avx512_k_registers): New constant for number
12608 (num_avx512_zmmh_low_registers): New constant for number of
12609 lower ZMM registers (0-15).
12610 (num_avx512_zmmh_high_registers): New constant for number of
12611 higher ZMM registers (16-31).
12612 (num_avx512_ymmh_registers): New contant for number of higher
12613 YMM registers (ymm16-31 added by avx521 on x86_64).
12614 (num_avx512_xmm_registers): New constant for number of higher
12615 XMM registers (xmm16-31 added by AVX512 on x86_64).
12616 (struct i387_xsave): Add space for AVX512 registers.
12617 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12618 Add code to handle AVX512 registers.
12619 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12620 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12621 prototypei from generated file.
12622 (tdesc_amd64_avx512_linux): Likewise.
12623 (init_registers_x32_avx512_linux): Likewise.
12624 (tdesc_x32_avx512_linux): Likewise.
12625 (init_registers_i386_avx512_linux): Likewise.
12626 (tdesc_i386_avx512_linux): Likewise.
12627 (x86_64_regmap): Add AVX512 registers.
12628 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12630 (initialize_low_arch): Add code to initialize AVX512 registers.
12632 2014-04-23 Pedro Alves <palves@redhat.com>
12634 * mem-break.c (find_gdb_breakpoint_at): Make static.
12635 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12637 2014-04-23 Pedro Alves <palves@redhat.com>
12639 * i386-low.c: Don't include break-common.h here.
12640 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12641 prototype to take target_hw_bp_type as argument instead of a Z
12643 * i386-low.h: Include break-common.h here.
12644 (Z_packet_to_hw_type): Declare.
12645 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12647 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12648 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12649 (x86_remove_point): Convert the packet number to a
12650 target_hw_bp_type before calling i386_low_remove_watchpoint.
12651 * win32-i386-low.c (i386_insert_point): Convert the packet number
12652 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12653 (i386_remove_point): Convert the packet number to a
12654 target_hw_bp_type before calling i386_low_remove_watchpoint.
12656 2014-04-23 Pedro Alves <palves@redhat.com>
12658 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12660 2014-04-10 Pedro Alves <palves@redhat.com>
12662 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12663 Check if the condition or command is NULL before checking if the
12664 breakpoint is known. On success, return true.
12665 * mem-break.h (add_breakpoint_condition): Document return.
12666 (add_breakpoint_commands): Add describing comment.
12667 * server.c (skip_to_semicolon): New function.
12668 (process_point_options): Use it.
12670 2014-04-09 Pedro Alves <palves@redhat.com>
12672 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12675 2014-02-27 Pedro Alves <palves@redhat.com>
12678 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12680 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12682 (last_thread_of_process_p): Take a PID argument instead of a
12684 (linux_wait_for_lwp): Delete.
12685 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12687 (linux_low_filter_event): New function, party factored out from
12688 linux_wait_for_event.
12689 (linux_wait_for_event): Rename to ...
12690 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12691 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12692 sigsuspend. Check for zombie leaders.
12693 (linux_wait_for_event): Reimplement as wrapper around
12694 linux_wait_for_event_filtered.
12695 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12696 a normal or signal exit is seen, it's the whole process exiting.
12697 (wait_for_sigstop): No longer a for_each_inferior callback.
12698 Rewrite on top of linux_wait_for_event_filtered.
12699 (stop_all_lwps): Call wait_for_sigstop directly.
12700 * server.c (resume, handle_target_event): Handle
12701 TARGET_WAITKIND_NO_RESUMED.
12703 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12705 * win32-low.c (psapi_get_dll_name,
12706 * win32_CreateToolhelp32Snapshot): Delete.
12707 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12708 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12710 (handle_load_dll): Add function description.
12711 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12713 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12715 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12717 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12718 base address when calling win32_add_one_solib.
12719 (handle_load_dll): Delete local variable load_addr.
12720 Remove 0x1000 offset applied to DLL base address when calling
12721 win32_add_one_solib.
12722 (handle_unload_dll): Add comment.
12724 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12726 * win32-low.c (win32_add_all_dlls): Renames
12727 win32_ensure_ntdll_loaded. Rewrite function documentation.
12728 Adjust implementation to always load all DLLs.
12729 Add 0x1000 offset to DLL base address when calling
12730 win32_add_one_solib.
12731 (child_initialization_done): New static global.
12732 (do_initial_child_stuff): Set child_initialization_done to
12733 zero during child initialization, and 1 after. Replace call
12734 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12736 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12737 (handle_unload_dll): Add function documentation.
12738 (get_child_debug_event): Ignore load and unload DLL events
12739 during child initialization.
12741 2014-02-20 Doug Evans <dje@google.com>
12743 Remove global all_lwps.
12744 * inferiors.h (ptid_of): Move here from linux-low.h.
12745 (pid_of, lwpid_of): Ditto.
12746 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12747 parameter is a struct thread_info * now.
12748 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12749 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12750 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12752 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12753 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12754 * linux-arm-low.c (update_registers_callback): Update, "entry"
12755 parameter is a struct thread_info * now.
12756 Fetch lwpid from current_inferior directly.
12757 (arm_insert_point): Pass &all_threads to find_inferior instead of
12759 (arm_remove_point): Ditto.
12760 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12761 (arm_prepare_to_resume): Fetch pid from thread.
12762 (arm_read_description): Fetch lwpid from current_inferior directly.
12763 * linux-low.c (all_lwps): Delete.
12764 (delete_lwp): Delete call to remove_inferior.
12765 (handle_extended_wait): Fetch lwpid from thread.
12766 (add_lwp): Don't set lwp->entry.id. Remove call to
12767 add_inferior_to_list.
12768 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12769 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12770 (kill_one_lwp_callback): Ditto.
12771 (linux_kill): Don't dereference NULL pointer.
12772 Fetch ptid,lwpid from thread.
12773 (get_detach_signal): Fetch ptid from thread.
12774 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12775 Simplify call to regcache_invalidate_thread.
12776 (delete_lwp_callback): Update, "entry" parameter is a
12777 struct thread_info * now. Fetch pid from thread.
12778 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12779 (status_pending_p_callback): Update, "entry" parameter is a
12780 struct thread_info * now. Fetch ptid from thread.
12781 (find_lwp_pid): Update, "entry" parameter is a
12782 struct thread_info * now.
12783 (linux_wait_for_lwp): Fetch pid from thread.
12784 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12785 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12786 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12787 (dequeue_one_deferred_signal): Ditto.
12788 (cancel_breakpoint): Fetch ptid from current_inferior.
12789 (linux_wait_for_event): Pass &all_threads to find_inferior,
12790 not &all_lwps. Fetch ptid, lwpid from thread.
12791 (count_events_callback): Update, "entry" parameter is a
12792 struct thread_info * now.
12793 (select_singlestep_lwp_callback): Ditto.
12794 (select_event_lwp_callback): Ditto.
12795 (cancel_breakpoints_callback): Ditto.
12796 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12798 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12799 (unsuspend_one_lwp): Update, "entry" parameter is a
12800 struct thread_info * now.
12801 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12803 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12804 Fetch lwpid from thread, not lwp.
12805 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12806 Pass &all_threads to find_inferior, not &all_lwps.
12807 (send_sigstop): Fetch lwpid from thread, not lwp.
12808 (send_sigstop_callback): Update, "entry" parameter is a
12809 struct thread_info * now.
12810 (suspend_and_send_sigstop_callback): Ditto.
12811 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12812 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12813 struct thread_info * now.
12814 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12816 (lwp_running): Update, "entry" parameter is a
12817 struct thread_info * now.
12818 (stop_all_lwps): Fetch ptid from thread.
12819 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12820 (linux_resume_one_lwp): Fetch lwpid from thread.
12821 (linux_set_resume_request): Update, "entry" parameter is a
12822 struct thread_info * now. Fetch pid, lwpid from thread.
12823 (resume_status_pending_p): Update, "entry" parameter is a
12824 struct thread_info * now.
12825 (need_step_over_p): Ditto. Fetch lwpid from thread.
12826 (start_step_over): Fetch lwpid from thread.
12827 (linux_resume_one_thread): Update, "entry" parameter is a
12828 struct thread_info * now. Fetch lwpid from thread.
12829 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12830 (proceed_one_lwp): Update, "entry" parameter is a
12831 struct thread_info * now. Fetch lwpid from thread.
12832 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12833 struct thread_info * now.
12834 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12835 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12836 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12838 (regsets_store_inferior_registers): Ditto.
12839 (fetch_register, store_register): Ditto.
12840 (linux_read_memory, linux_write_memory): Ditto.
12841 (linux_request_interrupt): Ditto.
12842 (linux_read_auxv): Ditto.
12843 (linux_xfer_siginfo): Ditto.
12844 (linux_qxfer_spu): Ditto.
12845 (linux_qxfer_libraries_svr4): Ditto.
12846 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12847 moved to inferiors.h.
12849 (get_thread_lwp): Update.
12850 (struct lwp_info): Delete member "entry". Simplify comment for
12852 (all_lwps): Delete.
12853 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12854 current_inferior directly.
12855 (update_watch_registers_callback): Update, "entry" parameter is a
12856 struct thread_info * now. Fetch pid from thread.
12857 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12858 (mips_insert_point): Fetch lwpid from current_inferior.
12859 Pass &all_threads to find_inferior, not &all_lwps.
12860 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12861 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12863 (mips_stopped_data_address): Ditto.
12864 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12866 * linux-tile-low.c (tile_arch_setup): Ditto.
12867 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12868 (update_debug_registers_callback): Update, "entry" parameter is a
12869 struct thread_info * now. Fetch pid from thread.
12870 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12871 Pass &all_threads to find_inferior, not &all_lwps.
12872 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12873 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12874 Pass &all_threads to find_inferior, not &all_lwps.
12875 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12876 (i386_dr_low_get_status): Ditto.
12877 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12878 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12879 (x86_linux_read_description): Ditto.
12880 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12882 2014-02-20 Doug Evans <dje@google.com>
12884 * inferiors.c (get_first_inferior): Fix buglet.
12886 2014-02-19 Doug Evans <dje@google.com>
12888 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12889 * inferiors.c (add_thread): Change result type to struct thread_info *.
12890 All callers updated.
12891 (add_lwp): Call add_thread here instead of in callers.
12892 All callers updated.
12893 * linux-low.h (get_lwp_thread): Rewrite.
12894 (struct lwp_info): New member "thread".
12896 2014-02-19 Doug Evans <dje@google.com>
12898 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12899 All callers updated.
12901 2014-02-19 Doug Evans <dje@google.com>
12903 * inferiors.c (add_thread): Fix whitespace.
12905 2014-02-19 Doug Evans <dje@google.com>
12907 * dll.c (clear_dlls): Replace accessing list implemention details
12909 * gdbthread.h (get_first_thread): Declare.
12910 * inferiors.c (for_each_inferior_with_data): New function.
12911 (get_first_thread): New function.
12912 (find_thread_ptid): Simplify.
12913 (get_first_inferior): New function.
12914 (clear_list): Delete.
12915 (one_inferior_p): New function.
12916 (clear_inferior_list): New function.
12917 (clear_inferiors): Update.
12918 * inferiors.h (for_each_inferior_with_data): Declare.
12919 (clear_inferior_list): Declare.
12920 (one_inferior_p): Declare.
12921 (get_first_inferior): Declare.
12922 * linux-low.c (linux_wait_for_event): Replace accessing list
12923 implemention details with API function.
12924 * server.c (target_running): Ditto.
12925 (accumulate_file_name_length): New function.
12926 (emit_dll_description): New function.
12927 (handle_qxfer_libraries): Replace accessing list implemention
12928 details with API function.
12929 (handle_qxfer_threads_worker): New function.
12930 (handle_qxfer_threads_proper): Replace accessing list implemention
12931 details with API function.
12932 (handle_query): Ditto.
12933 (visit_actioned_threads_callback_ftype): New typedef.
12934 (visit_actioned_threads_data): New struct.
12935 (visit_actioned_threads): Rewrite to be find_inferior callback.
12936 (resume): Call find_inferior.
12937 (handle_status): Replace accessing list implemention
12938 details with API function.
12939 (process_serial_event): Replace accessing list implemention details
12941 * target.c (set_desired_inferior): Replace accessing list implemention
12942 details with API function.
12943 * tracepoint.c (same_process_p): New function.
12944 (gdb_agent_about_to_close): Replace accessing list implemention
12945 details with API function.
12946 * win32-low.c (child_delete_thread): Replace accessing list
12947 implemention details with API function.
12948 (match_dll_by_basename): New function.
12949 (dll_is_loaded_by_basename): New function.
12950 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12951 details call to dll_is_loaded_by_basename.
12953 2014-02-19 Doug Evans <dje@google.com>
12955 * dll.h (struct dll_info): Add comment.
12956 * gdbthread.h (struct thread_info): Add comment.
12957 (current_ptid): Simplify.
12958 * inferiors.c (add_process): Update.
12959 (remove_process): Update.
12960 * inferiors.h (struct process_info): Rename member "head" to "entry".
12961 * linux-low.c (delete_lwp): Update.
12963 (last_thread_of_process_p): Update.
12964 (kill_one_lwp_callback, linux_kill): Update.
12965 (status_pending_p_callback): Update.
12966 (wait_for_sigstop): Update. Simplify read of ptid.
12967 (start_step_over): Update.
12968 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12969 (get_lwp_thread): Update.
12970 (struct lwp_info): Rename member "head" to "entry".
12971 * regcache.h (inferior_list_entry): Delete.
12972 * server.c (kill_inferior_callback): Update.
12973 (detach_or_kill_inferior_callback): Update.
12974 (print_started_pid): Update.
12975 (print_attached_pid): Update.
12976 (process_serial_event): Simplify read of ptid.
12977 * thread-db.c (thread_db_create_event): Update.
12978 (thread_db_get_tls_address): Update.
12979 * win32-low.c (current_inferior_ptid): Simplify.
12981 2014-02-19 Tom Tromey <tromey@redhat.com>
12983 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12985 (target_supports_btrace): Update.
12987 2014-02-14 Yao Qi <yao@codesourcery.com>
12989 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12990 (rsp-low-ipa.o): New target.
12992 2014-02-12 Tom Tromey <tromey@redhat.com>
12994 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12995 convert_ascii_to_int.
12996 * regcache.c (registers_to_string): Likewise.
12997 * remote-utils.c (decode_M_packet): Likewise.
12998 * server.c (process_serial_event): Likewise.
13000 2014-02-12 Tom Tromey <tromey@redhat.com>
13002 * server.c (handle_query, handle_v_run): Use hex2bin, not
13004 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13006 2014-02-12 Tom Tromey <tromey@redhat.com>
13008 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13009 convert_int_to_ascii.
13010 * regcache.c (registers_to_string, collect_register_as_string):
13012 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13014 * server.c (process_serial_event): Likewise.
13015 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13016 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13018 2014-02-12 Tom Tromey <tromey@redhat.com>
13020 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13021 bin2hex, not hexify.
13022 * tracepoint.c (cmd_qtstatus): Likewise.
13024 2014-02-12 Tom Tromey <tromey@redhat.com>
13026 * remote-utils.c (monitor_output): Pass explicit length to
13029 2014-02-12 Tom Tromey <tromey@redhat.com>
13031 * tracepoint.c: Include rsp-low.h.
13032 * server.c: Include rsp-low.h.
13033 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13034 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13036 * remote-utils.c: Include rsp-low.h.
13037 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13038 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13039 (convert_int_to_ascii, convert_ascii_to_int): Move to
13041 * regcache.c: Include rsp-low.h.
13042 * ax.c: Include rsp-low.h.
13043 * Makefile.in (SFILES): Add common/rsp-low.c.
13044 (OBS): Add rsp-low.o.
13045 (rsp-low.o): New target.
13047 2014-02-12 Tom Tromey <tromey@redhat.com>
13049 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13050 Include print-utils.h.
13051 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13052 (plongest, thirty_two, phex_nz): Remove.
13053 * Makefile.in (SFILES): Add common/print-utils.c.
13054 (OBS): Add print-utils.o.
13055 (print-utils-ipa.o): New target.
13056 (print-utils.o): New target.
13057 (IPA_OBJS): Add print-utils-ipa.o.
13059 2014-02-06 Tom Tromey <tromey@redhat.com>
13061 * Makefile.in (SFILES): Fix indentation.
13063 2014-02-05 Doug Evans <dje@google.com>
13065 * linux-low.c (linux_wait_for_event): Improve comment.
13066 (linux_wait_1): Keep current_inferior in sync with event_child.
13068 2014-01-22 Doug Evans <dje@google.com>
13070 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13072 2014-01-22 Doug Evans <dje@google.com>
13074 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13075 * configure: Regenerate.
13076 * config.in: Regenerate.
13077 * Makefile.in (SFILES): Add debug.c.
13078 (OBS): Add debug.o.
13079 * debug.c: New file.
13080 * debug.h: New file.
13081 * linux-aarch64-low.c (*): Update all debugging printfs to use
13082 debug_printf instead of fprintf.
13083 * linux-arm-low.c (*): Ditto.
13084 * linux-cris-low.c (*): Ditto.
13085 * linux-crisv32-low.c (*): Ditto.
13086 * linux-m32r-low.c (*): Ditto.
13087 * linux-sparc-low.c (*): Ditto.
13088 * linux-x86.c (*): Ditto.
13089 * linux-low.c (*): Ditto.
13090 (linux_wait_1): Add calls to debug_enter, debug_exit.
13091 (linux_wait): Remove redundant debugging printf.
13092 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13093 (linux_resume, unstop_all_lwps): Ditto.
13094 * mem-break.c (*): Update all debugging printfs to use
13095 debug_printf instead of fprintf.
13096 * remote-utils.c (*): Ditto.
13097 * thread-db.c (*): Ditto.
13098 * server.c #include <ctype.h>, "gdb_vecs.h".
13099 (debug_threads): Moved to debug.c.
13100 (*): Update all debugging printfs to use debug_printf instead of
13102 (start_inferior): Replace call to fflush with call to debug_flush.
13103 (monitor_show_help): Mention set debug-format.
13104 (parse_debug_format_options): New function.
13105 (handle_monitor_command): Handle "monitor set debug-format".
13106 (gdbserver_usage): Mention --debug-format.
13107 (main): Parse --debug-format.
13108 * server.h (debug_threads): Declaration moved to debug.h.
13109 #include "debug.h".
13110 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13111 trace_debug_1 that uses debug_printf.
13112 (tracepoint_look_up_symbols): Update all debugging printfs to use
13113 debug_printf instead of fprintf.
13115 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13117 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13120 2014-01-17 Pedro Alves <palves@redhat.com>
13123 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13124 defined after including gdb_proc_service.h.
13126 2014-01-16 Doug Evans <dje@google.com>
13128 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13129 (match_dll): Use it.
13131 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13133 * target.h (target_ops) <read_btrace>: Change parameters and
13134 return type to allow error reporting.
13135 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13136 trace reading errors on.
13137 * linux-low.c (linux_low_read_btrace): Pass trace reading
13139 (linux_low_disable_btrace): New.
13141 2014-01-15 Doug Evans <dje@google.com>
13143 * inferiors.c (thread_id_to_gdb_id): Delete.
13144 * inferiors.h (thread_id_to_gdb_id): Delete.
13146 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13148 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13149 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13152 2014-01-08 Pedro Alves <palves@redhat.com>
13154 * server.c (handle_status): Don't discard previous queued stop
13155 replies or thread's pending status here.
13156 (main) <disconnection>: Do it here instead.
13158 2014-01-08 Pedro Alves <palves@redhat.com>
13160 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13161 * server.c (visit_actioned_threads, handle_pending_status): New
13163 (handle_v_cont): Factor out parts to ...
13164 (resume): ... this new function. If in all-stop, and a thread
13165 being resumed has a pending status, report it without actually
13167 (myresume): Adjust to use the new 'resume' function.
13168 (clear_pending_status_callback, set_pending_status_callback)
13169 (find_status_pending_thread_callback): New functions.
13170 (handle_status): Handle the case of multiple threads having
13171 interesting statuses to report. Report threads' real last signal
13172 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13173 with an interesting thread to report the status for, instead of
13174 always reporting the status of the first thread.
13176 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13178 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13179 * gdbreplay.c (gdbreplay_version): Likewise.
13181 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13183 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13184 iov.iov_len with the real length in use.
13186 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13188 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13189 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13190 for all targets that use win32-low.c.
13191 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13192 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13194 2013-12-13 Pedro Alves <palves@redhat.com>
13196 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13197 if equal to TARGET_WAITKIND_LOADED.
13198 * win32-low.c (cached_status): New static global.
13199 (win32_wait): Add declaration.
13200 (do_initial_child_stuff): Flush all initial pending debug events
13201 up to the initial breakpoint.
13202 (win32_wait): If CACHED_STATUS was set, return that instead
13203 of doing a real wait. Remove the code resuming the execution
13204 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13205 during the initial phase. Also remove the code changing
13206 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13207 TARGET_WAITKIND_STOPPED.
13209 2013-12-11 Yao Qi <yao@codesourcery.com>
13211 * notif.c (handle_notif_ack): Return 0 if no notification
13214 2013-11-20 Doug Evans <dje@google.com>
13216 * linux-low.c (linux_set_resume_request): Fix comment.
13218 2013-11-20 Doug Evans <dje@google.com>
13220 * linux-low.c (resume_status_pending_p): Tweak comment.
13222 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13224 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13225 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13226 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13227 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13228 (srv_amd64_regobj): Add amd64-mpx.o.
13229 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13230 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13231 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13232 * i387-fp.c (num_pl_bnd_register) Added constant.
13233 (num_pl_bnd_cfg_registers) Added constant.
13234 (struct i387_xsave) Added reserved area and MPX fields.
13235 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13236 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13238 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13239 (init_registers_amd64_mpx_linux): Declare new function.
13240 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13241 (x86_64_regmap): Add MPX registers.
13242 (x86_linux_read_description): Add MPX case.
13243 (initialize_low_arch): Initialize MPX targets.
13245 2013-11-18 Tom Tromey <tromey@redhat.com>
13247 * configure: Rebuild.
13248 * configure.ac: Don't check for stdlib.h.
13249 * gdbreplay.c: Unconditionally include stdlib.h.
13251 2013-11-18 Tom Tromey <tromey@redhat.com>
13253 * config.in: Rebuild.
13254 * configure: Rebuild.
13255 * configure.ac: Don't use AC_HEADER_DIRENT.
13257 2013-11-18 Tom Tromey <tromey@redhat.com>
13259 * server.h: Don't check HAVE_STRING_H.
13260 * gdbreplay.c: Don't check HAVE_STRING_H.
13261 * configure: Rebuild.
13263 2013-11-18 Tom Tromey <tromey@redhat.com>
13265 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13268 2013-11-08 Tom Tromey <tromey@redhat.com>
13270 * configure, config.in: Rebuild.
13271 * configure.ac: Remove unused configury.
13273 2013-11-08 Tom Tromey <tromey@redhat.com>
13275 * acinclude.m4: Include common.m4, codeset.m4.
13276 * configure, config.in: Rebuild.
13277 * configure.ac: Use GDB_AC_COMMON.
13279 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13281 * linux-s390-low.c (HWCAP_S390_TE): New define.
13282 (s390_arch_setup): Consider the TE field in the HWCAP for
13283 determining 'have_regset_tdb'.
13285 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13288 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13291 2013-10-02 Pedro Alves <palves@redhat.com>
13293 * server.c (process_serial_event): Don't output "GDBserver
13294 exiting" if GDB is connected through stdio.
13295 * target.c (mywait): Likewise, be silent if GDB is connected
13298 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13300 * lynx-low.c (lynx_add_threads_after_attach): New function.
13301 (lynx_attach): Remove call to add_thread. Add call to
13302 lynx_add_threads_after_attach instead.
13304 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13306 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13307 * config.in, configure: Regenerated.
13309 2013-09-18 Yao Qi <yao@codesourcery.com>
13312 * server.c (start_inferior): Clear 'resume_info'.
13314 2013-09-16 Jiong Wang <jiwang@tilera.com>
13316 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13319 2013-09-16 Jiong Wang <jiwang@tilera.com>
13321 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13322 linux-tile-low.o to srv_tgtobj.
13324 2013-09-16 Will Newton <will.newton@linaro.org>
13326 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13329 2013-09-06 Pedro Alves <palves@redhat.com>
13331 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13332 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13333 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13334 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13335 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13336 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13338 2013-09-06 Pedro Alves <palves@redhat.com>
13340 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13341 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13343 2013-09-06 Pedro Alves <palves@redhat.com>
13345 * linux-amd64-ipa.c: Include tracepoint.h.
13346 * linux-i386-ipa.c: Include tracepoint.h.
13348 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13350 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13351 (ps_get_thread_area): New function.
13353 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13355 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13356 (initialize_low_arch): Call init_registers_crisv32 rather than
13357 init_register_crisv32.
13359 2013-09-05 Pedro Alves <palves@redhat.com>
13361 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13363 * hostio.h: ... this new file.
13364 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13365 win32-low.c: Include hostio.h.
13367 2013-09-05 Pedro Alves <palves@redhat.com>
13369 * server.h (gdb_client_data, handler_func, callback_handler_func)
13370 (delete_file_handler, add_file_handler, append_callback_event)
13371 (delete_callback_event, start_event_loop, initialize_event_loop):
13372 Move to event-loop.h and include it.
13373 * event-loop.h: New file.
13375 2013-09-05 Pedro Alves <palves@redhat.com>
13377 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13378 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13379 (loaded_dll, unloaded_dll): Move to ...
13380 * dll.h: ... this new file.
13381 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13383 2013-09-05 Pedro Alves <palves@redhat.com>
13385 * server.h (current_process, get_thread_process, all_processes)
13386 (add_inferior_to_list, for_each_inferior, current_inferior)
13387 (remove_inferior, add_process, remove_process, find_process_pid)
13388 (have_started_inferiors_p, have_attached_inferiors_p)
13389 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13390 (clear_inferiors, find_inferior, find_inferior_id)
13391 (inferior_target_data, set_inferior_target_data)
13392 (inferior_regcache_data, set_inferior_regcache_data): Move to
13393 inferiors.h, and include it.
13394 * inferiors.h: New file.
13396 2013-09-05 Pedro Alves <palves@redhat.com>
13398 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13402 2013-09-05 Pedro Alves <palves@redhat.com>
13404 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13406 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13407 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13408 (handle_tracepoint_general_set, handle_tracepoint_query)
13409 (tracepoint_finished_step, tracepoint_was_hit)
13410 (release_while_stepping_state_list, current_traceframe)
13411 (in_readonly_region, traceframe_read_mem)
13412 (fetch_traceframe_registers, traceframe_read_sdata)
13413 (traceframe_read_info, struct fast_tpoint_collect_status)
13414 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13415 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13416 (supply_fast_tracepoint_registers)
13417 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13418 (ipa_tdesc, claim_trampoline_space)
13419 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13420 (agent_mem_read, agent_get_trace_state_variable_value)
13421 (agent_set_trace_state_variable_value, agent_tsv_read)
13422 (agent_mem_read_string, get_raw_reg_func_addr)
13423 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13424 * tracepoint.h: ... this new file.
13426 2013-09-05 Pedro Alves <palves@redhat.com>
13428 * server.h (perror_with_name, error, fatal, warning, paddress)
13429 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13431 * utils.h: New file.
13433 2013-09-05 Pedro Alves <palves@redhat.com>
13435 * server.h (remote_debug, noack_mode, transport_is_reliable)
13436 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13437 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13438 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13439 (write_enn, initialize_async_io, enable_async_io)
13440 (disable_async_io, check_remote_input_interrupt_request)
13441 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13442 (dead_thread_notify, prepare_resume_reply)
13443 (decode_address_to_semicolon, decode_address, decode_m_packet)
13444 (decode_M_packet, decode_X_packet, decode_xfer_write)
13445 (decode_search_memory_packet, unhexify, hexify)
13446 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13447 (look_up_one_symbol, relocate_instruction)
13448 (monitor_output): Move to remote-utils.h, and include it.
13449 * remote-utils.h: New file.
13451 2013-09-05 Pedro Alves <palves@redhat.com>
13453 * server.h (_): Delete.
13455 2013-09-02 Pedro Alves <palves@redhat.com>
13457 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13458 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13460 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13462 2013-09-02 Pierre Muller <muller@sourceware.org>
13464 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13465 or WriteProcessMemory complete successfully and handle
13466 ERROR_PARTIAL_COPY error.
13468 2013-09-02 Pedro Alves <palves@redhat.com>
13470 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13471 error instead of EIO.
13473 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13476 * linux-low.c: Include filestuff.h.
13477 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13478 * lynx-low.c: Include filestuff.h.
13479 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13480 * server.c: Include filestuff.h.
13481 (main): Call notice_open_fds.
13482 * spu-low.c: Include filestuff.h.
13483 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13485 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13487 * Makefile.in: Explain why ../target and ../nat are not
13488 listed as include file search paths.
13489 (linux-waitpid.o): New object file rule.
13490 * configure.srv (srv_native_linux_obj): New variable.
13491 Replace all occurrences of linux native object files with
13492 $srv_native_linux_obj.
13493 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13494 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13495 (linux_enable_event_reporting): Remove declaration.
13496 (my_waitpid): Moved to common/linux-waitpid.c.
13497 (linux_wait_for_event): Pass ptid when calling
13498 linux_enable_event_reporting.
13499 (linux_supports_tracefork_flag): Remove.
13500 (linux_enable_event_reporting): Likewise.
13501 (linux_tracefork_grandchild): Remove.
13502 (STACK_SIZE): Moved to common/linux-ptrace.c.
13503 (linux_tracefork_child): Remove.
13504 (linux_test_for_tracefork): Remove.
13505 (linux_look_up_symbols): Call linux_supports_traceclone.
13506 (initialize_low): Remove call to linux_test_for_tracefork.
13507 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13508 common/linux-ptrace.h.
13509 (PTRACE_TYPE_ARG4): Likewise.
13510 Include linux-ptrace.h.
13512 2013-08-21 Pedro Alves <palves@redhat.com>
13514 * config.in: Renegerate.
13516 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13518 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13519 (SFILES): Remove $(srcdir)/common/target-common.c and
13520 add $(srcdir)/target/waitstatus.c.
13521 (OBS): Remove target-common.o and add waitstatus.o.
13522 (server_h): Remove $(srcdir)/../common/target-common.h and
13523 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13524 and $(srcdir)/../target/waitstatus.h.
13525 (target-common.o): Remove.
13526 (waitstatus.o): New target object file.
13527 * target.h: Do not include target-common.h and
13528 include target/resume.h, target/wait.h and
13529 target/waitstatus.h.
13531 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13533 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13534 to PTRACE_TYPE_ARG3.
13535 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13536 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13538 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13539 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13541 2013-07-27 Jie Zhang <jie@codesourcery.com>
13542 Daniel Jacobowitz <dan@codesourcery.com>
13543 Yao Qi <yao@codesourcery.com>
13545 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13546 (mips-linux-watch.o): New rule.
13547 (mips_linux_watch_h): New variable.
13548 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13550 * linux-mips-low.c: Include mips-linux-watch.h.
13551 (struct arch_process_info, struct arch_lwp_info): New.
13552 (update_watch_registers_callback): New function.
13553 (mips_linux_new_process, mips_linux_new_thread) New functions.
13554 (mips_linux_prepare_to_resume, mips_insert_point): New
13556 (mips_remove_point, mips_stopped_by_watchpoint): New
13558 (rsp_bp_type_to_target_hw_bp_type): New function.
13559 (mips_stopped_data_address): New function.
13560 (the_low_target): Add watchpoint support functions.
13562 2013-07-27 Yao Qi <yao@codesourcery.com>
13564 * i386-low.c: Include break-common.h.
13565 (enum target_hw_bp_type): Remove.
13567 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13569 * Makefile.in (SFILES): /common/target-common.c.
13570 (OBS): Add target-common.o.
13571 (server_h): Add $(srcdir)/../common/target-common.h.
13572 (target-common.o): New target.
13573 * server.c (queue_stop_reply_callback): Free
13574 status string after use.
13575 * target.c (target_waitstatus_to_string): Remove.
13576 * target.h: Include target-common.h.
13577 (resume_kind): Likewise.
13578 (target_waitkind): Likewise.
13579 (target_waitstatus): Likewise.
13580 (TARGET_WNOHANG): Likewise.
13582 2013-07-04 Yao Qi <yao@codesourcery.com>
13584 * Makefile.in (host_alias): Use @host_noncanonical@.
13585 (target_alias): Use @target_noncanonical@.
13586 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13587 ACX_NONCANONICAL_HOST.
13588 * configure: Regenerated.
13591 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13593 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13594 * configure: Rebuild.
13595 * Makefile.in (version_host, version_target): Get from configure.
13596 (version.c): Use $(version_host) and $(version_target).
13598 2013-07-03 Pedro Alves <palves@redhat.com>
13600 * Makefile.in (config.status): Depend on development.sh.
13601 * acinclude.m4: Include libmcheck.m4.
13602 * configure: Regenerate.
13604 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13606 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13607 attribute inside the parentheses.
13608 (winapi_DebugSetProcessKillOnExit): Ditto.
13609 (winapi_DebugBreakProcess): Ditto.
13610 (winapi_GenerateConsoleCtrlEvent): Ditto.
13612 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13614 * notif.h (notif_event): Add a dummy member to avoid compiler
13617 2013-07-01 Pedro Alves <palves@redhat.com>
13619 * hostio.c (HOSTIO_PATH_MAX): Define.
13620 (require_filename, handle_open, handle_unlink, handle_readlink):
13623 2013-07-01 Pedro Alves <palves@redhat.com>
13625 * server.h: Include "pathmax.h".
13626 * linux-low.c: Don't include sys/param.h.
13627 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13629 * win32-low.c: Don't include sys/param.h.
13630 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13632 2013-07-01 Pedro Alves <palves@redhat.com>
13634 * event-loop.c: Don't check HAVE_UNISTD_H before including
13636 * gdbreplay.c: Likewise.
13637 * remote-utils.c: Likewise.
13638 * server.c: Likewise.
13639 * configure.ac: Don't check for unistd.h.
13640 * configure: Regenerate.
13642 2013-06-28 Tom Tromey <tromey@redhat.com>
13644 * Makefile.in (version.c): Use version.in, not
13647 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13649 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13650 * configure: Rebuild.
13651 * Makefile.in (version_host, version_target): Get from configure.
13652 (version.c): Use $(version_host) and $(version_target).
13654 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13656 Fix trace-status to output user name without trailing colon.
13657 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13659 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13661 Fix trace-status to output proper start-time and stop-time.
13662 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13663 output start time and stop time in hex as gdb expects.
13665 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13667 * tracepoint.c (build_traceframe_info_xml): Output trace state
13668 variables present in the trace buffer.
13670 2013-06-24 Tom Tromey <tromey@redhat.com>
13672 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13674 (version.o): Remove.
13675 * gdbreplay.c: Include version.h.
13676 (version, host_name): Don't declare.
13677 * server.h: Include version.h.
13678 (version, host_name): Don't declare.
13680 2013-06-12 Pedro Alves <palves@redhat.com>
13682 * linux-x86-low.c (linux_is_elf64): Delete global.
13683 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13684 with local linux_pid_exe_is_elf_64_file use.
13686 2013-06-11 Pedro Alves <palves@redhat.com>
13688 * linux-low.c (regset_disabled, disable_regset): New functions.
13689 (regsets_fetch_inferior_registers)
13690 (regsets_store_inferior_registers): Use them.
13691 (initialize_regsets_info); Don't allocate the disabled_regsets
13693 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13696 2013-06-11 Pedro Alves <palves@redhat.com>
13698 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13701 2013-06-11 Pedro Alves <palves@redhat.com>
13703 * linux-x86-low.c (initialize_low_arch): Call
13704 init_registers_x32_avx_linux.
13706 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13708 Fix compatibility with Android Bionic.
13709 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13712 2013-06-07 Pedro Alves <palves@redhat.com>
13715 * Makefile.in (OBS): Add tdesc.o.
13716 (IPA_OBJS): Add tdesc-ipa.o.
13717 (tdesc-ipa.o): New rule.
13718 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13720 * linux-low.c (new_inferior): Delete.
13721 (disabled_regsets, num_regsets): Delete.
13722 (linux_add_process): Adjust to set the new per-process
13724 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13725 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13726 was a stop. When calling arch_setup, switch the current inferior
13727 to the thread that got an event.
13728 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13729 (regsets_fetch_inferior_registers)
13730 (regsets_store_inferior_registers): New regsets_info parameter.
13732 (linux_register_in_regsets): New regs_info parameter. Adjust to
13734 (register_addr, fetch_register, store_register): New usrregs_info
13735 parameter. Adjust to use it.
13736 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13737 parameter regs_info. Adjust to use it.
13738 (linux_fetch_registers): Get the current inferior's regs_info, and
13740 (linux_store_registers): Ditto.
13741 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13742 (initialize_low): Don't initialize the target_regsets here. Call
13743 initialize_low_arch.
13744 * linux-low.h (target_regsets): Delete declaration.
13745 (struct regsets_info): New.
13746 (struct usrregs_info): New.
13747 (struct regs_info): New.
13748 (struct process_info_private) <new_inferior>: New field.
13749 (struct linux_target_ops): Delete the num_regs, regmap, and
13750 regset_bitmap fields. New field regs_info.
13751 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13752 * i387-fp.c (num_xmm_registers): Delete.
13753 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13754 calls to new interface.
13755 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13756 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13757 Infer the number of xmm registers from the regcache's target
13759 * i387-fp.h (num_xmm_registers): Delete.
13760 * inferiors.c (add_thread): Don't install the thread's regcache
13762 * proc-service.c (gregset_info): Fetch the current inferior's
13763 regs_info. Adjust to use it.
13764 * regcache.c: Include tdesc.h.
13765 (register_bytes, reg_defs, num_registers)
13766 (gdbserver_expedite_regs): Delete.
13767 (get_thread_regcache): If the thread doesn't have a regcache yet,
13768 create one, instead of aborting gdbserver.
13769 (regcache_invalidate_one): Rename to ...
13770 (regcache_invalidate_thread): ... this.
13771 (regcache_invalidate_one): New.
13772 (regcache_invalidate): Only invalidate registers of the current
13774 (init_register_cache): Add target_desc parameter, and use it.
13775 (new_register_cache): Ditto. Assert the target description has a
13776 non zero registers_size.
13777 (regcache_cpy): Add assertions. Adjust.
13778 (realloc_register_cache, set_register_cache): Delete.
13779 (registers_to_string, registers_from_string): Adjust.
13780 (find_register_by_name, find_regno, find_register_by_number)
13781 (register_cache_size): Add target_desc parameter, and use it.
13782 (free_register_cache_thread, free_register_cache_thread_one)
13783 (regcache_release, register_cache_size): New.
13784 (register_size): Add target_desc parameter, and use it.
13785 (register_data, supply_register, supply_register_zeroed)
13786 (supply_regblock, supply_register_by_name, collect_register)
13787 (collect_register_as_string, collect_register_by_name): Adjust.
13788 * regcache.h (struct target_desc): Forward declare.
13789 (struct regcache) <tdesc>: New field.
13790 (init_register_cache, new_register_cache): Add target_desc
13792 (regcache_invalidate_thread): Declare.
13793 (regcache_invalidate_one): Delete declaration.
13794 (regcache_release): Declare.
13795 (find_register_by_number, register_cache_size, register_size)
13796 (find_regno): Add target_desc parameter.
13797 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13799 * remote-utils.c: Include tdesc.h.
13800 (outreg, prepare_resume_reply): Adjust.
13801 * server.c: Include tdesc.h.
13802 (gdbserver_xmltarget): Delete declaration.
13803 (get_features_xml, process_serial_event): Adjust.
13804 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13806 (struct process_info) <tdesc>: New field.
13807 (ipa_tdesc): Declare.
13808 * tdesc.c: New file.
13809 * tdesc.h: New file.
13810 * tracepoint.c: Include tdesc.h.
13811 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13812 (get_context_regcache): Adjust to pass ipa_tdesc down.
13813 (do_action_at_tracepoint): Adjust to get the register cache size
13814 from the context regcache's description.
13815 (traceframe_walk_blocks): Adjust to get the register cache size
13816 from the current trace frame's description.
13817 (traceframe_get_pc): Adjust to get current trace frame's
13818 description and pass it down.
13819 (gdb_collect): Adjust to get the register cache size from the
13821 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13822 (gdbserver_xmltarget): Delete.
13823 (initialize_low_tracepoint): Set the ipa's target description.
13824 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13825 (initialize_low_tracepoint): Set the ipa's target description.
13826 * linux-x86-low.c: Include tdesc.h.
13827 [__x86_64__] (is_64bit_tdesc): New.
13828 (ps_get_thread_area, x86_get_thread_area): Use it.
13829 (i386_cannot_store_register): Rename to ...
13830 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13831 (i386_cannot_fetch_register): Rename to ...
13832 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13833 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13835 (target_regsets): Rename to ...
13836 (x86_regsets): ... this.
13837 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13839 (x86_siginfo_fixup): Use is_64bit_tdesc.
13840 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13841 (tdesc_x32_avx_linux, tdesc_x32_linux)
13842 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13844 (x86_linux_update_xmltarget): Delete.
13845 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13846 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13847 (AMD64_LINUX_USER64_CS): New.
13848 (x86_linux_read_description): New, based on
13849 x86_linux_update_xmltarget.
13850 (same_process_callback): New.
13851 (x86_arch_setup_process_callback): New.
13852 (x86_linux_update_xmltarget): New.
13853 (x86_regsets_info): New.
13854 (amd64_linux_regs_info): New.
13855 (i386_linux_usrregs_info): New.
13856 (i386_linux_regs_info): New.
13857 (x86_linux_regs_info): New.
13858 (x86_arch_setup): Reimplement.
13859 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13860 (x86_emit_ops): Ditto.
13861 (the_low_target): Adjust. Install x86_linux_regs_info,
13862 x86_cannot_fetch_register, and x86_cannot_store_register.
13863 (initialize_low_arch): New.
13864 * linux-ia64-low.c (tdesc_ia64): Declare.
13865 (ia64_fetch_register): Adjust.
13866 (ia64_usrregs_info, regs_info): New globals.
13867 (ia64_regs_info): New function.
13868 (the_low_target): Adjust.
13869 (initialize_low_arch): New function.
13870 * linux-sparc-low.c (tdesc_sparc64): Declare.
13871 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13873 (sparc_arch_setup): New function.
13874 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13875 (the_low_target): Adjust.
13876 (initialize_low_arch): New function.
13877 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13878 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13879 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13880 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13881 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13882 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13883 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13884 (tdesc_powerpc_isa205_vsx64l): Declare.
13885 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13886 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13887 (ppc_set_pc, ppc_get_hwcap): Adjust.
13888 (ppc_usrregs_info): Forward declare.
13889 (!__powerpc64__) ppc_regmap_adjusted: New global.
13890 (ppc_arch_setup): Adjust to the current process'es target
13892 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13893 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13894 (ppc_store_evrregset): Adjust.
13895 (target_regsets): Rename to ...
13896 (ppc_regsets): ... this, and make static.
13897 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13898 (ppc_regs_info): New function.
13899 (the_low_target): Adjust.
13900 (initialize_low_arch): New function.
13901 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13902 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13903 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13904 (tdesc_s390x_linux64v2): Declare.
13905 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13906 (s390_fill_gregset, s390_store_last_break): Adjust.
13907 (target_regsets): Rename to ...
13908 (s390_regsets): ... this, and make static.
13909 (s390_get_pc, s390_set_pc): Adjust.
13910 (s390_get_hwcap): New target_desc parameter, and use it.
13911 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13912 (s390_arch_setup): Adjust to set the current process'es target
13913 description. Don't adjust the regmap.
13914 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13915 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13916 (regs_info_3264): New globals.
13917 (s390_regs_info): New function.
13918 (the_low_target): Adjust.
13919 (initialize_low_arch): New function.
13920 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13921 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13922 [__mips64] (init_registers_mips_linux)
13923 (init_registers_mips_dsp_linux): Delete defines.
13924 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13925 (have_dsp): New global.
13926 (mips_read_description): New, based on mips_arch_setup.
13927 (mips_arch_setup): Reimplement.
13928 (get_usrregs_info): New function.
13929 (mips_cannot_fetch_register, mips_cannot_store_register)
13930 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13931 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13932 (target_regsets): Rename to ...
13933 (mips_regsets): ... this, and make static.
13934 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13935 (dsp_regs_info, regs_info): New globals.
13936 (mips_regs_info): New function.
13937 (the_low_target): Adjust.
13938 (initialize_low_arch): New function.
13939 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13940 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13942 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13943 (arm_read_description): New, with bits factored from
13945 (arm_arch_setup): Reimplement.
13946 (target_regsets): Rename to ...
13947 (arm_regsets): ... this, and make static.
13948 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13949 (arm_regs_info): New function.
13950 (the_low_target): Adjust.
13951 (initialize_low_arch): New function.
13952 * linux-m68k-low.c (tdesc_m68k): Declare.
13953 (target_regsets): Rename to ...
13954 (m68k_regsets): ... this, and make static.
13955 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13956 (m68k_regs_info): New function.
13957 (m68k_arch_setup): New function.
13958 (the_low_target): Adjust.
13959 (initialize_low_arch): New function.
13960 * linux-sh-low.c (tdesc_sharch): Declare.
13961 (target_regsets): Rename to ...
13962 (sh_regsets): ... this, and make static.
13963 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13964 (sh_regs_info, sh_arch_setup): New functions.
13965 (the_low_target): Adjust.
13966 (initialize_low_arch): New function.
13967 * linux-bfin-low.c (tdesc_bfin): Declare.
13968 (bfin_arch_setup): New function.
13969 (bfin_usrregs_info, regs_info): New globals.
13970 (bfin_regs_info): New function.
13971 (the_low_target): Adjust.
13972 (initialize_low_arch): New function.
13973 * linux-cris-low.c (tdesc_cris): Declare.
13974 (cris_arch_setup): New function.
13975 (cris_usrregs_info, regs_info): New globals.
13976 (cris_regs_info): New function.
13977 (the_low_target): Adjust.
13978 (initialize_low_arch): New function.
13979 * linux-cris-low.c (tdesc_crisv32): Declare.
13980 (cris_arch_setup): New function.
13981 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13982 (cris_regs_info): New function.
13983 (the_low_target): Adjust.
13984 (initialize_low_arch): New function.
13985 * linux-m32r-low.c (tdesc_m32r): Declare.
13986 (m32r_arch_setup): New function.
13987 (m32r_usrregs_info, regs_info): New globals.
13988 (m32r_regs_info): Adjust.
13989 (initialize_low_arch): New function.
13990 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13991 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13992 (tic6x_usrregs_info): Forward declare.
13993 (tic6x_read_description): New function, based on ...
13994 (tic6x_arch_setup): ... this. Reimplement.
13995 (target_regsets): Rename to ...
13996 (tic6x_regsets): ... this, and make static.
13997 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13998 (tic6x_regs_info): New function.
13999 (the_low_target): Adjust.
14000 (initialize_low_arch): New function.
14001 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14002 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14003 (target_regsets): Rename to ...
14004 (xtensa_regsets): ... this, and make static.
14005 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14007 (xtensa_arch_setup, xtensa_regs_info): New functions.
14008 (the_low_target): Adjust.
14009 (initialize_low_arch): New function.
14010 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14011 (nios2_arch_setup): Set the current process'es tdesc.
14012 (target_regsets): Rename to ...
14013 (nios2_regsets): ... this.
14014 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14015 (nios2_regs_info): New function.
14016 (the_low_target): Adjust.
14017 (initialize_low_arch): New function.
14018 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14019 (aarch64_arch_setup): Set the current process'es tdesc.
14020 (target_regsets): Rename to ...
14021 (aarch64_regsets): ... this.
14022 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14023 (aarch64_regs_info): New function.
14024 (the_low_target): Adjust.
14025 (initialize_low_arch): New function.
14026 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14028 (target_regsets): Rename to ...
14029 (tile_regsets): ... this.
14030 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14031 (tile_regs_info): New function.
14032 (tile_arch_setup): Set the current process'es tdesc.
14033 (the_low_target): Adjust.
14034 (initialize_low_arch): New function.
14035 * spu-low.c (tdesc_spu): Declare.
14036 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14037 * win32-arm-low.c (tdesc_arm): Declare.
14038 (arm_arch_setup): New function.
14039 (the_low_target): Install arm_arch_setup instead of
14040 init_registers_arm.
14041 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14042 (init_windows_x86): Rename to ...
14043 (i386_arch_setup): ... this. Set `win32_tdesc'.
14044 (the_low_target): Adjust.
14045 * win32-low.c (win32_tdesc): New global.
14046 (child_add_thread): Don't create the thread cache here.
14047 (do_initial_child_stuff): Set the new process'es tdesc.
14048 * win32-low.h (struct target_desc): Forward declare.
14049 (win32_tdesc): Declare.
14050 * lynx-i386-low.c (tdesc_i386): Declare global.
14051 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14052 * lynx-low.c (lynx_tdesc): New global.
14053 (lynx_add_process): Set the new process'es tdesc.
14054 * lynx-low.h (struct target_desc): Forward declare.
14055 (lynx_tdesc): Declare global.
14056 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14057 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14058 * nto-low.c (nto_tdesc): New global.
14059 (do_attach): Set the new process'es tdesc.
14060 * nto-low.h (struct target_desc): Forward declare.
14061 (nto_tdesc): Declare.
14062 * nto-x86-low.c (tdesc_i386): Declare.
14063 (nto_x86_arch_setup): Set `nto_tdesc'.
14065 2013-06-04 Gary Benson <gbenson@redhat.com>
14067 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14068 to qSupported response when appropriate.
14069 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14070 with nonzero-length annex.
14071 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14072 arguments supplied in annex.
14074 2013-05-31 Doug Evans <dje@google.com>
14077 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14078 64 bits in 64-cross-32 environment.
14080 2013-05-28 Pedro Alves <palves@redhat.com>
14082 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14083 (aarch64-without-fpu.c): Delete rule.
14084 * configure.srv (aarch64*-*-linux*): Remove references to
14085 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14086 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14089 2013-05-24 Pedro Alves <palves@redhat.com>
14091 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14092 instead of strchr/decode_address. Error if the range isn't split
14093 with a ','. Don't assume there's be a ':' in the action.
14095 2013-05-23 Yao Qi <yao@codesourcery.com>
14096 Pedro Alves <palves@redhat.com>
14098 * linux-low.c (lwp_in_step_range): New function.
14099 (linux_wait_1): If the thread was range stepping and stopped
14100 outside the stepping range, report the stop to GDB. Otherwise,
14101 continue stepping. Add range stepping debug output.
14102 (linux_set_resume_request): Copy the step range from the resume
14103 request to the lwp.
14104 (linux_supports_range_stepping): New.
14105 (linux_target_ops) <supports_range_stepping>: Set to
14106 linux_supports_range_stepping.
14107 * linux-low.h (struct linux_target_ops)
14108 <supports_range_stepping>: New field.
14109 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14110 * linux-x86-low.c (x86_supports_range_stepping): New.
14111 (the_low_target) <supports_range_stepping>: Set to
14112 x86_supports_range_stepping.
14113 * server.c (handle_v_cont): Handle 'r' action.
14114 (handle_v_requests): Append ";r" if the target supports range
14116 * target.h (struct thread_resume) <step_range_start,
14117 step_range_end>: New fields.
14118 (struct target_ops) <supports_range_stepping>:
14120 (target_supports_range_stepping): New macro.
14122 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14124 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14125 confusion in comment.
14127 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14129 * lynx-low.c (struct process_info_private): New type.
14130 (lynx_add_process): New function.
14131 (lynx_create_inferior, lynx_attach): Replace calls to
14132 add_process by calls to lynx_add_process.
14133 (lynx_resume): If PTID is null, then try using
14134 current_process()->private->last_wait_event_ptid.
14136 (lynx_clear_inferiors): Delete. The contents of that function
14137 has been inlined in lynx_mourn;
14138 (lynx_wait_1): Save the ptid in the process's private data.
14139 (lynx_mourn): Free the process' private data. Replace call
14140 to lynx_clear_inferiors by call to clear_inferiors.
14142 2013-05-17 Yao Qi <yao@codesourcery.com>
14144 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14147 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14149 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14150 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14151 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14152 PT_TEXT_END_ADDR guards. Update comments.
14153 (linux_target_op) <read_offsets>: Conditionally define to
14154 linux_read_offsets if the target is UCLIBC and if it defines
14155 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14157 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14158 Andrew Jenner <andrew@codesourcery.com>
14160 * Makefile.in (SFILES): Add linux-nios2-low.c.
14161 (clean): Add action to delete nios2-linux.c.
14162 (nios2-linux.c): New rule.
14163 * configure.srv: Add nios2*-*-linux*.
14164 * linux-nios2-low.c: New.
14166 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14168 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14170 2013-04-25 Hui Zhu <hui@codesourcery.com>
14173 * ax.c (ax_printf): Add fflush.
14175 2013-04-22 Tom Tromey <tromey@redhat.com>
14177 * Makefile.in (SFILES): Add filestuff.c.
14178 (OBS): Add filestuff.o.
14179 (filestuff.o): New target.
14180 * config.in, configure: Rebuild.
14181 * configure.ac: Check for fdwalk, pipe2.
14183 2013-04-17 Pedro Alves <palves@redhat.com>
14185 * configure.ac (USE_THREAD_DB): Delete variable.
14186 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14187 Don't AC_SUBST USE_THREAD_DB.
14188 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14189 * config.in, configure: Regenerate.
14191 2013-04-16 Pedro Alves <palves@redhat.com>
14193 * linux-low.h (struct lwp_info) <thread_known>: Move under
14194 the USE_THREAD_DB #ifdef.
14196 2013-04-16 Pedro Alves <palves@redhat.com>
14198 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14199 (linux-low.o): Delete rule.
14200 * linux-low.h: Always include "gdb_thread_db.h" instead of
14201 conditionally including thread_db.h.
14202 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14205 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14207 * Makefile.in (install-only): Fix make install regression.
14209 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14211 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14212 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14214 * gdbserver.1: Remove.
14216 2013-03-22 Pedro Alves <palves@redhat.com>
14218 * linux-low.c (handle_extended_wait): Don't call
14219 linux_enable_event_reporting.
14221 2013-03-15 Tony Theodore <tonyt@logyst.com>
14224 * Makefile.in (SHELL): Use @SHELL@.
14226 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14228 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14231 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14233 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14234 Remove extraneous NULL element.
14236 2013-03-13 Yao Qi <yao@codesourcery.com>
14238 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14239 'V' block in trace frame.
14241 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14243 * target.h (struct target_ops): Add btrace ops.
14244 (target_supports_btrace): New macro.
14245 (target_enable_btrace): New macro.
14246 (target_disable_btrace): New macro.
14247 (target_read_btrace): New macro.
14248 * gdbthread.h (struct thread_info): Add btrace field.
14249 * server.c: Include btrace-common.h.
14250 (handle_btrace_general_set): New function.
14251 (handle_btrace_enable): New function.
14252 (handle_btrace_disable): New function.
14253 (handle_general_set): Call handle_btrace_general_set.
14254 (handle_qxfer_btrace): New function.
14255 (struct qxfer qxfer_packets[]): Add btrace entry.
14256 * inferiors.c (remove_thread): Disable btrace.
14257 * linux-low: Include linux-btrace.h.
14258 (linux_low_enable_btrace): New function.
14259 (linux_low_read_btrace): New function.
14260 (linux_target_ops): Add btrace ops.
14261 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14262 Add srv_linux_btrace=yes.
14263 (x86_64-*-linux*): Add linux-btrace.o.
14264 Add srv_linux_btrace=yes.
14265 * configure.ac: Define HAVE_LINUX_BTRACE.
14266 * config.in: Regenerated.
14267 * configure: Regenerated.
14269 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14271 * server.c (handle_qxfer): Preserve error message if -3 is
14273 (qxfer): Document the -3 return value.
14275 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14277 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14278 (linux_btrace_h): New variable.
14279 (linux-btrace.o): New rule.
14281 2013-03-08 Stan Shebs <stan@codesourcery.com>
14282 Hafiz Abid Qadeer <abidh@codesourcery.com>
14284 * tracepoint.c (trace_buffer_size): New global.
14285 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14286 (init_trace_buffer): Change to one-argument function. Allocate
14287 trace buffer memory.
14288 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14289 handle QTBuffer:size packet.
14290 (cmd_bigqtbuffer_size): New function.
14291 (initialize_tracepoint): Call init_trace_buffer with
14292 DEFAULT_TRACE_BUFFER_SIZE.
14293 * server.c (handle_query): Add QTBuffer:size in the
14296 2013-03-07 Yao Qi <yao@codesourcery.com>
14298 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14299 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14301 (cmd_qtsp): Adjust condition. Do post increment.
14302 Set cur_action and cur_step_action back to 0.
14304 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14307 * linux-low.c (linux_write_memory): Return early success if LEN is
14310 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14312 * configure.srv: Add x86_64-*-cygwin* as target.
14314 2013-02-28 Tom Tromey <tromey@redhat.com>
14316 * configure.ac: Invoke AC_SYS_LARGEFILE.
14317 * configure, config.in: Rebuild.
14319 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14321 * win32-low.c: Throughout, fix format strings and casts of
14322 printf-like functions to avoid type related warnings on all
14324 (get_child_debug_event): Print dwDebugEventCode as hex since
14325 that's how it's usually documented.
14327 2013-02-28 Yao Qi <yao@codesourcery.com>
14329 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14332 2013-02-27 Jiong Wang <jiwang@tilera.com>
14334 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14335 (reg-tilegx32.c): New rule.
14336 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14337 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14338 different register info initializer according to elf class.
14339 (init_registers_tilgx32): New function. The tilegx32 register info
14341 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14342 (tile_store_gregset): Likewise.
14344 2013-02-27 Yao Qi <yao@codesourcery.com>
14346 * server.c (process_point_options): Print debug message when
14347 debug_threads is true.
14349 2013-02-26 Yao Qi <yao@codesourcery.com>
14351 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14353 2013-02-19 Pedro Alves <palves@redhat.com>
14354 Kai Tietz <ktietz@redhat.com>
14358 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14359 instead of strtoul to extract address from packet.
14360 (process_serial_event) <'z'>: Likewise.
14362 2013-02-18 Yao Qi <yao@codesourcery.com>
14364 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14366 2013-02-14 Pedro Alves <palves@redhat.com>
14370 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14371 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14373 2013-02-14 Pedro Alves <palves@redhat.com>
14375 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14377 2013-02-14 Pedro Alves <palves@redhat.com>
14379 * tracepoint.c (save_string): Delete.
14380 (add_tracepoint_action): Use savestring instead of save_string.
14382 2013-02-12 Pedro Alves <palves@redhat.com>
14384 * linux-xtensa-low.c: Ditto.
14385 * xtensa-xtregs.c: Ditto.
14387 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14389 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14392 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14394 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14395 aarch64_num_wp_regs and aarch64_num_bp_regs to
14396 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14398 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14400 * linux-aarch64-low.c (ps_get_thread_area): Replace
14401 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14403 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14404 Marcus Shawcroft <marcus.shawcroft@arm.com>
14405 Nigel Stephens <nigel.stephens@arm.com>
14406 Yufeng Zhang <yufeng.zhang@arm.com>
14408 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14409 (aarch64.c, aarch64-without-fpu.c): New targets.
14410 * configure.srv (aarch64*-*-linux*): New.
14411 * linux-aarch64-low.c: New file.
14413 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14415 * linux-low.c (handle_extended_wait, linux_create_inferior)
14416 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14417 (dequeue_one_deferred_signal, linux_resume_one_thread)
14418 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14419 (linux_tracefork_grandchild, linux_test_for_tracefork)
14420 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14421 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14422 where the argument is 0.
14424 2013-01-25 Yao Qi <yao@codesourcery.com>
14426 * event-loop.c: Include "queue.h".
14427 (gdb_event_p): New typedef.
14428 (struct gdb_event) <next_event>: Remove.
14429 (event_queue): Change to QUEUE(gdb_event_p).
14430 (async_queue_event): Remove.
14431 (gdb_event_xfree): New.
14432 (initialize_event_loop): New.
14433 (process_event): Use API from QUEUE.
14434 (wait_for_event): Likewise.
14435 * server.c (main): Call initialize_event_loop.
14436 * server.h (initialize_event_loop): Declare.
14438 2013-01-18 Yao Qi <yao@codesourcery.com>
14440 * ax.h (struct eval_agent_expr_context): New.
14441 (gdb_eval_agent_expr): Update declaration.
14442 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14443 TFRAME. Add new argument CTX.
14444 * server.h (struct eval_agent_expr_context): Declare.
14445 (agent_mem_read, agent_tsv_read): Update declaration.
14446 (agent_mem_read_string): Likewise.
14447 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14448 (add_traceframe_block): Add new argument TPOINT.
14449 Increase TPOINT->traceframe_usage.
14450 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14451 eval_tracepoint_agent_expr.
14452 (condition_true_at_tracepoint): Likewise.
14453 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14454 (agent_mem_read_string, agent_tsv_read): Likewise.
14456 2013-01-16 Yao Qi <yao@codesourcery.com>
14458 * linux-low.c (linux_resume_one_lwp): Don't check
14459 'lwp->bp_reinsert != 0'.
14461 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14462 Pedro Alves <palves@redhat.com>
14464 * lynx-low.c (ptrace_request_to_str): Define a temporary
14465 macro and use it to simplify this function's implementation.
14467 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14469 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14472 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14474 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14476 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14478 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14480 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14482 * lynx-low.c (lynx_resume): Use the resume_info parameter
14483 to determine the ptid for the lynx_ptrace call, unless
14484 it is equal to minus_one_ptid, in which case we use the
14485 ptid of the current_inferior.
14486 (lynx_wait_1): After having received a thread create/exit
14487 event, resume the inferior's execution using the signaling
14488 thread's ptid, rather than the old ptid.
14490 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14492 * lynx-low.c (lynx_resume): Delete variable ret.
14494 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14496 * gdbreplay.c (gdbreplay_version): Update copyright year.
14497 * server.c (gdbserver_version): Likewise.
14499 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14501 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14504 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14506 * lynx-low.c (ptrace_request_to_str): Add handling for
14507 PTRACE_GETTRACESIG.
14509 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14511 * lynx-low.c (lynx_attach): Delete variable new_process.
14513 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14515 * lynx-low.c (lynx_create_inferior): Delete variable
14518 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14520 * lynx-low.c (ptrace_request_to_str): Do not handle
14521 PTRACE_GETTHREADLIST if this macro does not exist.
14523 2012-12-15 Yao Qi <yao@codesourcery.com>
14525 * Makefile.in (OBS): Add notif.o.
14526 * notif.c, notif.h: New.
14527 * server.c: Include "notif.h".
14528 (struct vstop_notif) <next>: Remove.
14530 (queue_stop_reply): Update.
14531 (push_event, send_next_stop_reply): Remove.
14532 (discard_queued_stop_replies): Update.
14533 (notif_stop): New variable.
14534 (handle_v_stopped): Remove.
14535 (handle_v_requests): Don't call handle_v_stopped. Call
14536 handle_ack_notif instead.
14537 (queue_stop_reply_callback): Call notif_event_enque instead
14538 of queue_stop_reply.
14539 (handle_status): Don't call send_next_stop_reply, call
14540 notif_write_event instead.
14541 (kill_inferior_callback): Likewise.
14542 (detach_or_kill_inferior_callback): Likewise.
14543 (main): Call initialize_notif.
14544 (process_serial_event): Call QUEUE_is_empty.
14545 (handle_target_event): Call notif_push instead of push event.
14546 * server.h (push_event): Remove declaration.
14548 2012-12-10 Tom Tromey <tromey@redhat.com>
14550 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14551 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14554 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14555 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14556 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14557 (amd64-linux-ipa.o, ax.o): Rewrite.
14558 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14559 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14560 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14561 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14562 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14563 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14564 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14565 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14566 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14567 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14568 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14569 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14570 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14571 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14572 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14573 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14574 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14575 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14576 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14577 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14578 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14579 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14580 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14581 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14582 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14583 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14584 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14585 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14586 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14587 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14588 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14589 (reg-tilegx.o): Remove.
14590 (all_object_files): New macro.
14591 Include .deps files.
14592 * aclocal.m4, configure: Rebuild.
14593 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14594 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14595 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14597 2012-12-05 Tom Tromey <tromey@redhat.com>
14600 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14602 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14604 * configure.ac: Check for linux/perf_event.h.
14605 * config.in: Regenerated.
14606 * configure: Regenerated.
14608 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14610 * hostio.c (handle_readlink): Decrease buffer size
14611 parameter passed to readlink by one byte.
14613 2012-11-26 Yao Qi <yao@codesourcery.com>
14615 * configure.ac (build_warnings): Append '-Wempty-body'.
14616 * configure: Regenerated.
14617 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14620 2012-11-15 Pierre Muller <muller@sourceware.org>
14622 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14623 * config.in: Regenerate.
14624 * configure: Regenerate.
14625 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14626 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14627 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14628 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14630 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14631 instead of <sys/wait.h> header.
14632 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14634 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14636 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14637 (various make rules): Remove -DGDBSERVER
14639 2012-11-09 Yao Qi <yao@codesourcery.com>
14641 * spu-low.c (current_ptid): Move it to ..
14642 * gdbthread.h: ... here. New.
14643 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14644 * server.c (myresume, process_serial_event): Likewise.
14645 * thread-db.c (thread_db_find_new_threads): Likewise.
14646 * tracepoint.c (run_inferior_command): Likewise.
14648 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14650 * server.c (handle_search_memory_1): Include access length in
14653 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14655 * linux-crisv32-low.c: Fix compile errors.
14657 2012-09-04 Yao Qi <yao@codesourcery.com>
14659 * tracepoint.c (cmd_qtsv): Adjust debug message.
14660 Don't check CUR_TPOINT.
14662 2012-08-28 Yao Qi <yao@codesourcery.com>
14664 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14665 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14666 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14667 Remove declarations of xmalloc, xreallloc, xstrdup and
14669 * Makefile.in (libiberty_h): New.
14670 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14671 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14673 2012-08-23 Yao Qi <yao@codesourcery.com>
14675 * server.h: Remove declaration of 'xsnprintf'.
14677 2012-08-22 Keith Seitz <keiths@redhat.com>
14679 * server.h: Include build-gnulib-gbserver/config.h.
14680 * gdbreplay.c: Likewise.
14682 2012-08-08 Doug Evans <dje@google.com>
14684 * Makefile.in (SFILES): Add gdb_vecs.c.
14685 (OBS): Add gdb_vecs.o.
14686 (gdb_vecs_h, host_defs_h): New variables.
14687 (thread-db.o): Add $(gdb_vecs_h) dependency.
14688 (gdb_vecs.o): New rule.
14689 * thread-db.c: #include "gdb_vecs.h".
14690 (thread_db_load_search): Use a vector to iterate over path elements.
14691 Handle text appearing after "$pdir".
14693 * configure.ac: Add check for strstr.
14694 * config.in: Regenerate.
14695 * configure: Regenerate.
14697 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14699 * hostio.c (handle_pread): If pread fails, fall back to attempting
14701 (handle_pwrite): Likewise for pwrite.
14703 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14705 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14706 between unsupported TYPE and unimplementable ADDR/LEN combination.
14707 (arm_insert_point): Act on new return value.
14709 2012-07-31 Pedro Alves <palves@redhat.com>
14711 * server.c (process_point_options): Only skip tokens if we find
14712 one that is unrecognized. Don't treat 'X' specially while
14713 skipping unrecognized tokens.
14715 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14717 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14718 to 4-byte-align HW breakpoint addresses for Thumb.
14720 2012-07-27 Yao Qi <yao@codesourcery.com>
14724 * server.h: Declare gdb_agent_about_to_close.
14725 * target.c (kill_inferior): Include "agent.h".
14726 New. Send command 'kill'.
14727 * target.h (kill_inferior): Removed macro.
14728 * tracepoint.c (gdb_agent_about_to_close): New.
14729 (gdb_agent_helper_thread): Handle command 'close'.
14730 Wait endlessly until the inferior stops.
14731 Install gdb_agent_remove_socket to atexit hook.
14732 (agent_socket_name): New static variable.
14733 (gdb_agent_socket_init): Replace local variable 'name' with
14734 'agent_socket_name'.
14735 (gdb_agent_remove_socket): New.
14737 2012-07-27 Yao Qi <yao@codesourcery.com>
14739 * server.c (process_point_options): Stop at 'X' when parsing.
14741 2012-07-19 Michael Eager <eager@eagercon.com>
14743 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14745 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14746 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14747 hardware breakpoint.
14749 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14751 * gdbserver/linux-low.c (initialize_low): Call
14752 linux_ptrace_init_warnings.
14754 2012-07-02 Doug Evans <dje@google.com>
14756 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14759 2012-07-02 Stan Shebs <stan@codesourcery.com>
14761 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14762 (ax.o): Add it to build rule.
14764 (OBS): Add format.o.
14765 (IPA_OBS): Add format.o.
14766 * server.c (handle_query): Claim support for breakpoint commands.
14767 (process_point_options): Add command case.
14768 (process_serial_event): Leave running if there are printfs in
14770 * mem-break.h (any_persistent_commands): Declare.
14771 (add_breakpoint_commands): Declare.
14772 (gdb_no_commands_at_breakpoint): Declare.
14773 (run_breakpoint_commands): Declare.
14774 * mem-break.c (struct point_command_list): New struct.
14775 (struct breakpoint): New field command_list.
14776 (any_persistent_commands): New function.
14777 (add_commands_to_breakpoint): New function.
14778 (add_breakpoint_commands): New function.
14779 (gdb_no_commands_at_breakpoint): New function.
14780 (run_breakpoint_commands): New function.
14781 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14783 * ax.c: Include format.h.
14784 (ax_printf): New function.
14785 (gdb_eval_agent_expr): Add printf opcode.
14787 2012-06-13 Yao Qi <yao@codesourcery.com>
14789 * server.c (start_inferior): Remove duplicated writes to fields
14790 'last_resume_kind' and 'last_status' of 'current_inferior'.
14792 2012-06-12 Yao Qi <yao@codesourcery.com>
14793 Pedro Alves <palves@redhat.com>
14795 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14797 * server.c (handle_v_cont): Extend comment.
14799 2012-06-11 Yao Qi <yao@codesourcery.com>
14801 * linux-low.c (linux_attach): Add 'static'.
14803 2012-06-06 Yao Qi <yao@codesourcery.com>
14805 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14807 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14809 Fix gcc -flto compilation warning.
14810 * server.c (main): Make variable multi_mode and attach volatile.
14812 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14814 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14815 if the platform doesn't know about it.
14817 2012-05-30 Jeff Kenton <jkenton@tilera.com>
14819 * Makefile.in (SFILES): Add linux-tile-low.c.
14820 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14821 * configure.srv: Handle tilegx-*-linux*.
14822 * linux-tile-low.c: New file.
14824 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14826 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14828 2012-05-24 Pedro Alves <palves@redhat.com>
14832 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14834 2012-05-24 Pedro Alves <palves@redhat.com>
14838 Replace target_signal with gdb_signal throughout.
14840 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14842 * linux-low.c (linux_store_registers): Avoid the copying sequence
14843 when no data has been retrieved by ptrace.
14845 2012-05-22 Will Deacon <will.deacon@arm.com>
14847 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14848 Include asm/ptrace.h.
14849 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14852 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14854 * linux-low.c (linux_store_registers): Don't re-retrieve data
14855 with ptrace that has already been obtained from /proc. Always
14856 copy any data retrieved with ptrace to the buffer supplied.
14858 2012-05-11 Yao Qi <yao@codesourcery.com>
14859 Pedro Alves <palves@redhat.com>
14861 * linux-low.c (enum stopping_threads_kind): New.
14862 (stopping_threads): Change type to `enum stopping_threads_kind'.
14863 (handle_extended_wait): If stopping and suspending threads, leave
14864 the new_lwp suspended too.
14865 (linux_wait_for_event): Adjust.
14866 (stop_all_lwps): Set `stopping_threads' to
14867 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14868 whether we're suspending threads or just stopping them. Assert no
14871 2012-04-29 Yao Qi <yao@codesourcery.com>
14873 * server.h: Move some code to ...
14874 * gdbthread.h: ... here. New.
14875 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14876 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14877 (nto-low.o, win32-low.o): Likewise.
14878 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14879 * regcache.c, remote-utils.c, server.c: Likewise.
14880 * target.c, tracepoint.c, win32-low.c: Likewise.
14882 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14884 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14885 (PTRACE_ARG4_TYPE): Likewise.
14886 (PTRACE_XFER_TYPE): Likewise.
14887 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14888 ptrace to PTRACE_ARG3_TYPE.
14889 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14890 (PTRACE_ARG4_TYPE): Likewise.
14891 (PTRACE_XFER_TYPE): Likewise.
14892 (linux_detach_one_lwp): Cast fourth argument of
14893 ptrace to long then PTRACE_ARG4_TYPE.
14894 (regsets_fetch_inferior_registers): Cast third argument of
14895 ptrace to long then PTRACE_ARG3_TYPE.
14896 (regsets_store_inferior_registers): Likewise.
14898 2012-04-20 Pedro Alves <palves@redhat.com>
14900 * configure: Regenerate.
14902 2012-04-19 Pedro Alves <palves@redhat.com>
14904 * Makefile.in (GNULIB_BUILDDIR): New.
14905 (LIBGNU, INCGNU, GNULIB_H): Adjust.
14906 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14907 (all, install-only, uninstall, clean-info, all-lib, clean): No
14908 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14909 (maintainer-clean realclean distclean): Use subdir_do.
14911 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
14912 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
14913 * acinclude.m4: Include acx_configure_dir.m4.
14914 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14915 calls. Call AC_PROG_RANLIB. Configure gnulib using
14918 (GNULIB_STDINT_H): Adjust.
14919 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14920 * gdbreplay.c: Include build-gnulib/config.h.
14921 * server.h: Likewise.
14922 * aclocal.m4: Regenerate.
14923 * config.in: Regenerate.
14924 * configure: Regenerate.
14926 2012-04-19 Pedro Alves <palves@redhat.com>
14928 * Makefile.in (LIBGNU, INCGNU): Adjust.
14929 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14930 (all, install-only, uninstall, clean-info, all-lib, clean)
14931 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14932 * configure.ac: Adjust AC_OUTPUT output.
14933 * aclocal.m4: Regenerate.
14934 * configure: Regenerate.
14936 2012-04-19 Pedro Alves <palves@redhat.com>
14938 * Makefile.in (generated_files): New.
14939 (server_h): Remove the explicit dependency on config.h, and depend
14940 on $generated_files.
14942 2012-04-19 Pedro Alves <palves@redhat.com>
14944 * Makefile.in (INCGNU): Add -Ignulib.
14946 2012-04-19 Pedro Alves <palves@redhat.com>
14948 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14949 (INCGNU): ... this, and spell out -I here.
14950 (GNULIB_LIB): Rename to ...
14951 (LIBGNU): ... this.
14952 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14954 2012-04-19 Pedro Alves <palves@redhat.com>
14956 * config.in: Regenerate.
14958 2012-04-19 Pedro Alves <palves@redhat.com>
14960 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14961 * server.h (memmem): Remove declaration.
14962 * config.in: Regenerate.
14963 * configure: Regenerate.
14965 2012-04-19 Yao Qi <yao@codesourcery.com>
14967 * Makefile.in (SFILES): Add common/vec.c.
14971 2012-04-19 Yao Qi <yao@codesourcery.com>
14973 * remote-utils.c (prepare_resume_reply): Replace with macro
14974 target_core_of_thread.
14975 * server.c (handle_qxfer_threads_proper): Likewise.
14976 * target.h (traget_core_of_thread): New macro.
14978 2012-04-18 Pedro Alves <palves@redhat.com>
14980 * aclocal.m4: Regenerate.
14981 * configure: Regenerate.
14983 2012-04-16 Yao Qi <yao@codesourcery.com>
14985 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14986 duplicated on address.
14988 2012-04-16 Yao Qi <yao@codesourcery.com>
14990 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14991 (struct tracepoint_action_ops) <send>: New field.
14992 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14993 (agent_expr_send, x_tracepoint_action_send): New.
14994 (l_tracepoint_action_send): New.
14995 (cmd_qtdp): Download and install tracepoint
14996 according to `use_agent'.
14997 (run_inferior_command): Add one more parameter `len'.
14999 (tracepoint_send_agent): New.
15000 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15002 2012-04-16 Yao Qi <yao@codesourcery.com>
15004 * tracepoint.c (download_tracepoints): Moved to ...
15005 (cmd_qtstart): ... here.
15007 2012-04-14 Yao Qi <yao@codesourcery.com>
15009 * tracepoint.c: Include inttypes.h.
15010 (struct collect_memory_action): Use sized types.
15011 (struct tracepoint): Likewise.
15012 (cmd_qtdp, stop_tracing): Update print specifiers.
15013 (cmd_qtp, response_tracepoint): Likewise.
15014 (collect_data_at_tracepoint): Likewise.
15015 (collect_data_at_step): Likewise.
15017 2012-04-14 Yao Qi <yao@codesourcery.com>
15019 Import gnulib module inttypes.
15020 * aclocal.m4, config.in, configure: Regenerated.
15022 2012-04-14 Yao Qi <yao@codesourcery.com>
15024 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15025 Makefile and config.status at last.
15027 2012-04-13 Yao Qi <yao@codesourcery.com>
15029 * tracepoint.c: Include stdint.h unconditionally.
15031 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15033 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15034 on BFD_HAVE_SYS_PROCFS_TYPE.
15035 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15036 * configure: Regenerate.
15037 * config.in: Likewise.
15039 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15041 * Makefile.in (clean): Also remove x32.c x32-linux.c
15042 x32-avx.c x32-avx-linux.c.
15043 (x32.o): New target.
15045 (x32-linux.o): Likewise.
15046 (x32-linux.c): Likewise.
15047 (x32-avx.o): Likewise.
15048 (x32-avx.c): Likewise.
15049 (x32-avx-linux.o): Likewise.
15050 (x32-avx-linux.c): Likewise.
15052 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15053 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15054 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15055 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15056 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15057 i386/x32-avx-linux.xml.
15059 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15060 (init_registers_x32_avx_linux): Likwise.
15061 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15062 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15064 2012-04-13 Pedro Alves <palves@redhat.com>
15066 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15067 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15068 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15069 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15072 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15074 * linux-x86-low.c (compat_x32_clock_t): New.
15075 (compat_x32_siginfo_t): Likewise.
15076 (compat_x32_siginfo_from_siginfo): Likewise.
15077 (siginfo_from_compat_x32_siginfo): Likewise.
15078 (linux_is_elf64): Likewise.
15079 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15080 and siginfo_from_compat_x32_siginfo for x32.
15081 (x86_arch_setup): Set linux_is_elf64.
15083 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15086 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15088 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15089 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15090 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15091 compatible with process.
15093 2012-04-12 Yao Qi <yao@codesourcery.com>
15095 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15096 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15097 (install-only, install-info, clean): Handle sub dir gnulib.
15098 (all-lib, am--refresh): New targets.
15099 (memmem.o): Remove target.
15100 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15101 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15102 (AC_REPLACE_FUNCS): Remove memmem.
15103 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15104 (AC_OUTPUT): Generate Makefile in gnulib/.
15105 * aclocal.m4, config.in, configure: Regenerated.
15107 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15109 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15111 2012-04-05 Pedro Alves <palves@redhat.com>
15113 -Werror=strict-aliasing
15115 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15118 2012-04-04 Pedro Alves <palves@redhat.com>
15120 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15121 (sparc_store_gregset_from_stack, sparc_store_gregset)
15122 (sparc_breakpoint_at): Fix formatting.
15124 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15126 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15128 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15129 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15130 * config.in: Regenerate.
15131 * configure: Likewise.
15133 2012-03-29 Pedro Alves <palves@redhat.com>
15135 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15136 Correct ptrace arguments.
15138 2012-03-28 Pedro Alves <palves@redhat.com>
15140 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15141 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15142 (IA64_FR1_REGNUM): New defines.
15143 (ia64_fetch_register): New.
15144 (the_low_target): Install it.
15145 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15147 * linux-low.c (linux_fetch_registers): Try the
15148 the_low_target.fetch_register hook first.
15150 * linux-arm-low.c (the_low_target): Adjust.
15151 * linux-bfin-low.c (the_low_target): Adjust.
15152 * linux-cris-low.c (the_low_target): Adjust.
15153 * linux-crisv32-low.c (the_low_target): Adjust.
15154 * linux-m32r-low.c (the_low_target): Adjust.
15155 * linux-m68k-low.c (the_low_target): Adjust.
15156 * linux-mips-low.c (the_low_target): Adjust.
15157 * linux-ppc-low.c (the_low_target): Adjust.
15158 * linux-s390-low.c (the_low_target): Adjust.
15159 * linux-sh-low.c (the_low_target): Adjust.
15160 * linux-sparc-low.c (the_low_target): Adjust.
15161 * linux-tic6x-low.c (the_low_target): Adjust.
15162 * linux-x86-low.c (the_low_target): Adjust.
15163 * linux-xtensa-low.c (the_low_target): Adjust.
15165 2012-03-26 Pedro Alves <palves@redhat.com>
15167 * server.c (handle_qxfer_libraries): Don't bail early if
15168 the_target->qxfer_libraries_svr4 is not NULL.
15170 2012-03-26 Pedro Alves <palves@redhat.com>
15172 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15174 2012-03-23 Pedro Alves <palves@redhat.com>
15176 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15177 "library-list-svr4" element's start tag when the the DSO list is
15180 2012-03-23 Pedro Alves <palves@redhat.com>
15182 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15183 a variable whose type size is the same as the inferior's pointer
15186 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15188 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15190 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15191 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15192 * linux-low.h: Include <signal.h>.
15193 (struct siginfo): Remove forward declaration.
15194 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15197 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15199 * .gitignore: Ignore more files.
15201 2012-03-19 Pedro Alves <palves@redhat.com>
15202 Jan Kratochvil <jan.kratochvil@redhat.com>
15204 * server.c (cont_thread, general_thread): Add describing comments.
15205 (start_inferior): Clear `cont_thread'.
15206 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15209 2012-03-15 Yao Qi <yao@codesourcery.com>
15211 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15213 (cmd_qtdp): ... here.
15215 2012-03-15 Yao Qi <yao@codesourcery.com>
15217 * tracepoint.c (struct tracepoint_action_ops): New.
15218 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15219 (m_tracepoint_action_download): New.
15220 (r_tracepoint_action_download): New.
15221 (x_tracepoint_action_download): New.
15222 (l_tracepoint_action_download): New.
15223 (add_tracepoint_action): Install `action->ops' according type.
15224 (download_tracepoint_1): Move code `download' function pointer
15225 of various tracepoint_action_ops.
15227 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15229 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15230 linux_ptrace_attach_warnings.
15232 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15234 * Makefile.in (linux-ptrace.o): New.
15235 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15236 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15237 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15238 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15239 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15241 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15243 2012-03-08 Yao Qi <yao@codesourcery.com>
15244 Pedro Alves <palves@redhat.com>
15246 Fix PR server/13392.
15247 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15248 offset of JMP insn.
15249 * tracepoint.c (remove_tracepoint): New.
15250 (cmd_qtdp): Call remove_tracepoint when failed to install.
15252 2012-03-07 Pedro Alves <palves@redhat.com>
15254 * linux-low.c (get_detach_signal): New.
15255 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15256 Pass on pending signals to PTRACE_DETACH. Check the result of the
15258 * server.c (program_signals, program_signals_p): New.
15259 (handle_general_set): Handle QProgramSignals.
15260 * server.h (program_signals, program_signals_p): Declare.
15262 2012-03-05 Pedro Alves <palves@redhat.com>
15263 Jan Kratochvil <jan.kratochvil@redhat.com>
15265 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15268 2012-03-03 Yao Qi <yao@codesourcery.com>
15270 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15271 agent_look_up_symbols.
15273 2012-03-03 Yao Qi <yao@codesourcery.com>
15275 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15276 (linux-x86-low.o): Likewise.
15277 * server.h: Remove in_process_agent_loaded.
15278 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15282 2012-03-03 Yao Qi <yao@codesourcery.com>
15284 * tracepoint.c (gdb_agent_capability): New global.
15285 (in_process_agent_loaded_ust): Renamed to
15286 `in_process_agent_supports_ust'.
15288 (in_process_agent_supports_ust): Call agent_capability_check.
15289 (clear_installed_tracepoints): Assert that agent supports
15292 2012-03-03 Yao Qi <yao@codesourcery.com>
15294 * linux-low.c (linux_supports_agent): New.
15295 (linux_target_ops): Initialize field `supports_agent' with
15296 linux_supports_agent.
15297 * target.h (struct target_ops) <supports_agent>: New.
15298 (target_supports_agent): New macro.
15299 * server.c (handle_general_set): Handle packet 'QAgent'.
15300 (handle_query): Send `QAgent+'.
15301 * Makefile.in (server.o): Depends on agent.h.
15303 2012-03-03 Yao Qi <yao@codesourcery.com>
15305 * Makefile.in (OBS): Add agent.o.
15306 Add new rule for agent.o.
15307 Track dependence of tracepoint.c on agent.h.
15308 * tracepoint.c (run_inferior_command_1):
15309 (run_inferior_command): Call agent_run_command.
15310 (gdb_ust_connect_sync_socket): Deleted. Move it to
15312 (resume_thread, stop_thread): Likewise.
15313 (gdb_ust_socket_init): Renamed to ...
15314 (gdb_agent_socket_init): ... New.
15315 (gdb_ust_thread): Renamed to ...
15316 (gdb_agent_helper_thread): ... New.
15317 (gdb_ust_init): Move some code to ...
15318 (gdb_agent_init): ... here. New.
15319 [HAVE_UST]: Call gdb_ust_init.
15320 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15321 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15322 * config.in, configure: Regenerated.
15324 2012-03-02 Pedro Alves <palves@redhat.com>
15326 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15327 * linux-low.c (struct simple_pid_list): New.
15328 (stopped_pids): New a struct simple_pid_list pointer.
15329 (add_to_pid_list, pull_pid_from_list): New.
15330 (handle_extended_wait): Don't assume the first signal new children
15331 report is SIGSTOP. Adjust call to pull_pid_from_list.
15332 (linux_wait_for_lwp): Adjust.
15334 2012-03-02 Yao Qi <yao@codesourcery.com>
15336 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15339 2012-03-02 Yao Qi <yao@codesourcery.com>
15341 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15342 `stop_pc' and `tpoint'. Update caller.
15344 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15346 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15347 * linux-low.c (use_linux_regsets): New macro.
15348 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15349 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15350 (linux_register_in_regsets): New function.
15351 (usr_fetch_inferior_registers): Skip registers covered by
15353 (usr_store_inferior_registers): Likewise.
15354 (usr_fetch_inferior_registers): New macro.
15355 (usr_store_inferior_registers): Likewise.
15356 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15357 (linux_store_registers): Likewise.
15358 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15360 (init_registers_mips64_dsp_linux): Likewise.
15361 (init_registers_mips_linux): New macro.
15362 (init_registers_mips_dsp_linux): Likewise.
15363 (mips_dsp_num_regs): Likewise.
15364 (DSP_BASE, DSP_CONTROL): New fallback macros.
15365 (mips_base_regs): New macro.
15366 (mips_regmap): Use it. Fix the size.
15367 (mips_dsp_regmap): New variable.
15368 (mips_dsp_regset_bitmap): Likewise.
15369 (mips_arch_setup): New function.
15370 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15372 (mips_cannot_store_register): Likewise.
15373 (the_low_target): Update .arch_setup, .num_regs and .regmap
15374 initializers. Add .regset_bitmap initializer.
15375 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15377 * linux-bfin-low.c (the_low_target): Likewise.
15378 * linux-cris-low.c (the_low_target): Likewise.
15379 * linux-crisv32-low.c (the_low_target): Likewise.
15380 * linux-ia64-low.c (the_low_target): Likewise.
15381 * linux-m32r-low.c (the_low_target): Likewise.
15382 * linux-m68k-low.c (the_low_target): Likewise.
15383 * linux-ppc-low.c (the_low_target): Likewise.
15384 * linux-s390-low.c (the_low_target): Likewise.
15385 * linux-sh-low.c (the_low_target): Likewise.
15386 * linux-sparc-low.c (the_low_target): Likewise.
15387 * linux-tic6x-low.c (the_low_target): Likewise.
15388 * linux-x86-low.c (the_low_target): Likewise.
15389 * linux-xtensa-low.c (the_low_target): Likewise.
15390 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15391 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15392 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15394 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15395 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15397 2012-02-29 Yao Qi <yao@codesourcery.com>
15398 Pedro Alves <palves@redhat.com>
15400 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15401 `step_over_finished' is true.
15403 2012-02-27 Pedro Alves <palves@redhat.com>
15405 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15406 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15408 2012-02-27 Pedro Alves <palves@redhat.com>
15411 * linux-low.c (pid_is_stopped): New.
15412 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15414 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15416 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15419 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15421 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15423 2012-02-24 Luis Machado <lgustavo@codesourcery>
15425 * server.c (handle_query): Advertise support for target-side
15426 breakpoint condition evaluation.
15427 (process_point_options): New function.
15428 (process_serial_event): When inserting a breakpoint, check for
15429 a target-side condition that should be evaluated.
15431 * mem-break.c: Include regcache.h and ax.h.
15432 (point_cond_list_t): New data structure.
15433 (breakpoint) <cond_list>: New field.
15434 (find_gdb_breakpoint_at): Make non-static.
15435 (delete_gdb_breakpoint_at): Clear any target-side
15437 (clear_gdb_breakpoint_conditions): New function.
15438 (add_condition_to_breakpoint): Likewise.
15439 (add_breakpoint_condition): Likewise.
15440 (gdb_condition_true_at_breakpoint): Likewise.
15441 (gdb_breakpoint_here): Return result directly instead
15442 of going through a local variable.
15444 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15445 (clear_gdb_breakpoint_conditions): Likewise.
15446 (add_breakpoint_condition): Likewise.
15447 (gdb_condition_true_at_breakpoint): Likewise.
15449 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15450 (need_step_over_p): Take target-side breakpoint condition into
15453 2012-02-24 Luis Machado <lgustavo@codesourcery>
15455 * server.h: Include tracepoint.h.
15456 (agent_mem_read, agent_get_trace_state_variable_value,
15457 agent_set_trace_state_variable_value,
15458 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15459 get_set_tsv_func_addr): New prototypes.
15461 * ax.h: New include file.
15462 * ax.c: New source file.
15464 * tracepoint.c: Include ax.h.
15465 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15466 agent_expr, eval_result_type): Move to ax.h.
15467 (parse_agent_expr): Rename to ...
15468 (gdb_parse_agent_expr): ... this, make it non-static and move
15470 (unparse_agent_expr) Rename to ...
15471 (gdb_unparse_agent_expr): ... this, make it non-static and move
15473 (eval_agent_expr): Rename to ...
15474 (eval_tracepoint_agent_expr): ... this.
15475 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15476 forward declarations.
15477 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15478 (agent_get_trace_state_variable_value): New function.
15479 (agent_set_trace_state_variable_value): New function.
15480 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15481 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15482 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15483 (condition_true_at_tracepoint): Likewise.
15484 (parse_agent_expr): Rename to ...
15485 (gdb_parse_agent_expr): ... this and move to ax.c.
15486 (unparse_agent_expr): Rename to ...
15487 (gdb_unparse_agent_expr): ... this and move to ax.c.
15488 (gdb_agent_op_name): Move to ax.c.
15489 (eval_agent_expr): Rename to ...
15490 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15492 (eval_tracepoint_agent_expr): New function.
15493 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15495 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15497 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15498 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15499 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15500 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15501 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15502 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15503 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15504 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15505 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15506 (compile_bytecodes): Remove forward declaration.
15507 (is_goto_target): Move to ax.c.
15508 (compile_bytecodes): Move to ax.c and call
15509 agent_get_trace_state_variable_value (...) and
15510 agent_set_trace_state_variable_value (...).
15512 * Makefile.in: Update ax.c and IPA dependencies.
15514 2012-02-24 Pedro Alves <palves@redhat.com>
15516 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15517 (cmd_bigqtbuffer_circular): ... this. Only handle
15518 'QTBuffer:circular:'.
15519 (handle_tracepoint_general_set): Adjust.
15521 2012-02-16 Yao Qi <yao@codesourcery.com>
15523 * inferiors.c: Move code to ...
15524 * dll.c: .... here. New.
15525 * server.h: Declare clear_dlls.
15526 * Makefile.in (SFILES): Add dll.c.
15530 2012-02-11 Yao Qi <yao@codesourcery.com>
15532 * server.c: (handle_monitor_command): Add a new parameter
15534 (handle_query): Update caller.
15536 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15538 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15539 * configure, config.in: Regenerate.
15540 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15543 2012-02-02 Pedro Alves <palves@redhat.com>
15545 Try SIGKILL first, then PTRACE_KILL.
15546 * linux-low.c (linux_kill_one_lwp): New.
15547 (linux_kill_one_lwp): Rename to ...
15548 (kill_one_lwp_callback): ... this. Use the new
15549 linux_kill_one_lwp.
15551 2012-02-02 Pedro Alves <palves@redhat.com>
15553 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15556 2012-01-27 Pedro Alves <palves@redhat.com>
15558 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15559 (elf_64_file_p): Make static.
15560 (linux_pid_exe_is_elf_64_file): New.
15561 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15562 Delete declarations.
15563 (linux_pid_exe_is_elf_64_file): Declare.
15564 * linux-x86-low.c (x86_arch_setup): Use
15565 linux_pid_exe_is_elf_64_file.
15567 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15569 * linux-low.c (linux_wait_for_event_1): Rename to ...
15570 (linux_wait_for_event): ... here and merge it with former
15571 linux_wait_for_event - new variable wait_ptid, use it.
15572 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15574 2012-01-23 Pedro Alves <palves@redhat.com>
15576 * server.c (main): Avoid yet another case of infinite loop while
15577 detaching/killing after a longjmp.
15579 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15582 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15584 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15586 * hostio.c (handle_readlink): New function.
15587 (handle_vFile): Call it to handle "vFile:readlink" packets.
15589 2012-01-20 Pedro Alves <palves@redhat.com>
15590 Ulrich Weigand <ulrich.weigand@linaro.org>
15592 * server.c (handle_v_requests): Only support vAttach and vRun to
15593 start multiple processes when in extended protocol mode.
15595 2012-01-17 Pedro Alves <palves@redhat.com>
15597 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15598 memalign plus mprotect to allocate the scratch buffer.
15600 2012-01-13 Pedro Alves <palves@redhat.com>
15602 * server.c (attach_inferior): Clear `cont_thread'.
15604 2012-01-13 Pedro Alves <palves@redhat.com>
15606 * server.c (main): Avoid infinite loop while detaching/killing
15609 2012-01-09 Doug Evans <dje@google.com>
15611 * server.c (start_inferior): Set last_ptid in --wrapper case.
15613 2012-01-06 Yao Qi <yao@codesourcery.com>
15615 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15617 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15619 2012-01-04 Yao Qi <yao@codesourcery.com>
15621 * tracepoint.c (cmd_qtdp): Print debug message
15622 for static tracepoint.
15624 2012-01-04 Yao Qi <yao@codesourcery.com>
15626 * tracepoint.c (trace_vdebug): Differentiate debug message
15627 between gdbserver and IPA.
15629 2012-01-03 Yao Qi <yao@codesourcery.com>
15631 * tracepoint.c (tracepoint_was_hit): Don't collect for
15634 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15636 * terminal.h: Reformat copyright header.
15638 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15640 * server.c (gdbserver_version): Update copyright year.
15641 * gdbreplay.c (gdbreplay_version): Likewise.
15643 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15645 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15648 2011-12-18 Hui Zhu <teawater@gmail.com>
15649 * linux-low.c (linux_create_inferior): Save return value to ret.
15651 2011-12-18 Hui Zhu <teawater@gmail.com>
15653 * linux-low.c (linux_create_inferior): Save return value to ret.
15655 2011-12-16 Doug Evans <dje@google.com>
15657 * linux-low.c (linux_create_inferior): If stdio connection,
15658 redirect stdin from /dev/null, stdout to stderr.
15659 * remote-utils.c (remote_is_stdio): New static global.
15660 (remote_connection_is_stdio): New function.
15661 (remote_prepare): Handle stdio connection.
15662 (remote_open): Ditto.
15663 (remote_close): Don't close stdin for stdio connections.
15664 (read_prim,write_prim): New functions. Replace all calls to
15665 read/write to these.
15666 * server.c (main): Watch for "-" argument. Move call to
15667 remote_prepare before start_inferior.
15668 * server.h (STDIO_CONNECTION_NAME): New macro.
15669 (remote_connection_is_stdio): Declare.
15671 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15672 in debugging output.
15674 2011-12-15 Yao Qi <yao@codesourcery.com>
15676 * tracepoint.c: Include sys/syscall.h.
15677 (gdb_ust_thread): Remove preprocessor conditional.
15679 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15681 * linux-low.c (linux_detach_one_lwp): Call
15682 the_low_target.prepare_to_resume before detaching.
15684 2011-12-14 Yao Qi <yao@codesourcery.com>
15686 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15689 2011-12-14 Yao Qi <yao@codesourcery.com>
15691 * i386-low.c (i386_low_stopped_data_address): Initialize local
15692 variable `control'.
15694 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15698 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15699 DR_CONTROL unless necessary. Extend comments.
15700 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15701 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15703 2011-12-13 Yao Qi <yao@codesourcery.com>
15705 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15707 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15709 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15711 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15712 Print new debug message for such case.
15714 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15716 Fix overlapping memcpy.
15717 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15718 the read_inferior_memory transfer.
15719 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15720 write_inferior_memory transfer.
15721 (set_fast_tracepoint_jump): New variable buf. Use it for the
15722 read_inferior_memory and write_inferior_memory transfers.
15723 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15724 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15725 Use it for the write_inferior_memory transfer.
15726 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15729 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15731 * linux-low.c (fetch_register, store_register): Make code
15732 consistent, fix formatting.
15734 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15736 * linux-low.c (usr_store_inferior_registers): Factor out code
15737 to handle individual registers into...
15738 (store_register): ... this new function.
15740 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15742 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15743 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15744 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15745 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15746 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15747 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15748 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15749 (srv_xmlfiles): Add new XML files.
15751 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15753 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15754 (init_registers_s390_linux32v1): Add prototype.
15755 (init_registers_s390_linux32v2): Likewise.
15756 (init_registers_s390_linux64v1): Likewise.
15757 (init_registers_s390_linux64v2): Likewise.
15758 (init_registers_s390x_linux64v1): Likewise.
15759 (init_registers_s390x_linux64v2): Likewise.
15760 (s390_num_regs): Increment to 52.
15761 (s390_regmap): Add orig_r2 register.
15762 (s390_num_regs_3264): Increment to 68.
15763 (s390_regmap_3264): Add orig_r2 register.
15764 (s390_collect_ptrace_register): Handle orig_r2 register.
15765 (s390_supply_ptrace_register): Likewise.
15766 (s390_fill_last_break): New function.
15767 (s390_store_last_break): Likewise.
15768 (s390_fill_system_call): New function.
15769 (s390_store_system_call): Likewise.
15770 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15772 (s390_check_regset): New function.
15773 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15774 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15775 Update target_regsets for available register sets.
15777 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15778 Jan Kratochvil <jan.kratochvil@redhat.com>
15780 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15781 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15783 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15784 * linux-low.h (struct process_info_private): New member r_debug.
15785 * server.c (handle_qxfer_libraries): Call
15786 the_target->qxfer_libraries_svr4.
15787 (handle_qxfer_libraries_svr4): New function.
15788 (qxfer_packets): New entry "libraries-svr4".
15789 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15790 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15791 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15792 PACKET_qXfer_libraries_svr4.
15794 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15796 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15797 PSW address/mask between 8-byte and 16-byte formats.
15798 (s390_supply_ptrace_register): Likewise.
15799 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15800 basic addressing mode bit.
15802 2011-11-24 Stan Shebs <stan@codesourcery.com>
15804 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15806 2011-11-17 Stan Shebs <stan@codesourcery.com>
15808 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15809 (tracing_start_time): New global.
15810 (tracing_stop_time): New global.
15811 (tracing_user_name): New global.
15812 (tracing_notes): New global.
15813 (tracing_stop_note): New global.
15814 (cmd_qtstart): Set traceframe_usage, start_time.
15815 (stop_tracing): Set stop_time.
15816 (cmd_qtstatus): Report additional status.
15817 (cmd_qtp): New function.
15818 (handle_tracepoint_query): Call it.
15819 (cmd_qtnotes): New function.
15820 (handle_tracepoint_general_set): Call it.
15821 (get_timestamp): Rename from tsv_get_timestamp.
15823 2011-11-14 Stan Shebs <stan@codesourcery.com>
15824 Kwok Cheung Yeung <kcy@codesourcery.com>
15826 * linux-x86-low.c (small_jump_insn): New.
15827 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15828 trampoline and error message, build a trampoline and issue a small
15829 jump instruction to it.
15830 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15831 trampoline and error message.
15832 (x86_get_min_fast_tracepoint_insn_len): New.
15833 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15834 * linux-low.h (struct linux_target_ops): Add arguments to
15835 install_fast_tracepoint_jump_pad operation, add new operation.
15836 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15838 (linux_get_min_fast_tracepoint_insn_len): New function.
15839 (linux_target_op): Add new operation.
15840 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15841 (gdb_trampoline_buffer_end): Ditto.
15842 (gdb_trampoline_buffer_error): Ditto.
15843 (struct ipa_sym_addresses): Add fields for new IPA variables.
15844 (symbol_list): Add entries for new IPA variables.
15845 (struct tracepoint): Add fields to hold the address range of the
15846 trampoline used by the tracepoint.
15847 (trampoline_buffer_head): New static variable.
15848 (trampoline_buffer_tail): Ditto.
15849 (claim_trampoline_space): New function.
15850 (have_fast_tracepoint_trampoline_buffer): New function.
15851 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15853 (install_fast_tracepoint): Ditto, also add error buffer argument.
15854 (cmd_qtminftpilen): New function.
15855 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15856 (fast_tracepoint_from_trampoline_address): New function.
15857 (fast_tracepoint_collecting): Handle trampoline as part of jump
15859 (set_trampoline_buffer_space): New function.
15860 (initialize_tracepoint): Initialize new IPA variables.
15861 * target.h (struct target_ops): Add arguments to
15862 install_fast_tracepoint_jump_pad operation, add new
15863 get_min_fast_tracepoint_insn_len operation.
15864 (target_get_min_fast_tracepoint_insn_len): New.
15865 (install_fast_tracepoint_jump_pad): Add arguments.
15866 * server.h (IPA_BUFSIZ): Define.
15867 * linux-i386-ipa.c: Include extra header files.
15868 (initialize_fast_tracepoint_trampoline_buffer): New function.
15869 (initialize_low_tracepoint): Call it.
15870 * server.h (set_trampoline_buffer_space): Declare.
15871 (claim_trampoline_space): Ditto.
15872 (have_fast_tracepoint_trampoline_buffer): Ditto.
15874 2011-11-14 Yao Qi <yao@codesourcery.com>
15876 * server.c (handle_query): Handle InstallInTrace for qSupported.
15877 * tracepoint.c (add_tracepoint): Sort list.
15878 (install_tracepoint, download_tracepoint): New.
15879 (cmd_qtdp): Call them to install and download tracepoints.
15880 (sort_tracepoints): Removed.
15881 (cmd_qtstart): Update.
15883 2011-11-14 Yao Qi <yao@codesourcery.com>
15885 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15886 * mem-break.h: Declare.
15887 * tracepoint.c (cmd_qtstart): Move some code to ...
15888 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15890 (download_tracepoints): Move some code to ...
15891 (download_tracepoint_1): ... here. New.
15893 2011-11-08 Yao Qi <yao@codesourcery.com>
15895 * remote-utils.c (relocate_instruction): A comment fix.
15897 2011-11-07 Joel Brobecker <brobecker@adacore.com>
15899 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15900 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15901 dr_status_mirror and dr_control_mirror from debug_reg_state.
15902 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15903 (i386_initial_stuff): Remove use of deleted globals.
15904 (i386_get_thread_context, i386_set_thread_context,
15905 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15906 from debug_reg_state.
15908 2011-11-05 Yao Qi <yao@codesourcery.com>
15910 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15911 address as TPOINT's.
15913 2011-11-02 Stan Shebs <stan@codesourcery.com>
15915 * tracepoint.c (agent_mem_read_string): New function.
15916 (eval_agent_expr): Call it for tracenz.
15917 * server.c (handle_query): Report support for tracenz.
15919 2011-11-02 Yao Qi <yao@codesourcery.com>
15921 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15923 2011-11-02 Yao Qi <yao@codesourcery.com>
15925 * target.h: Fix a typo in comment.
15927 2011-10-31 Pedro Alves <pedro@codesourcery.com>
15929 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15930 clobber the breakpoints' shadows with fast tracepoint jumps.
15931 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15932 * target.c (write_inferior_memory): Also pass MYADDR down to
15935 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15937 * configure.ac: Check support for personality routine.
15938 * configure: Regenerate.
15939 * config.in: Likewise.
15940 * linux-low.c: Include <sys/personality.h>.
15941 Define ADDR_NO_RANDOMIZE if necessary.
15942 (linux_create_inferior): Disable address space randomization when
15943 forking inferior, if requested.
15944 (linux_supports_disable_randomization): New function.
15945 (linux_target_ops): Install it.
15946 * server.h (disable_randomization): Declare.
15947 * server.c (disable_randomization): New global variable.
15948 (handle_general_set): Handle QDisableRandomization.
15949 (handle_query): Likewise for qSupported.
15950 (main): Support --disable-randomization and --no-disable-randomization
15951 command line arguments.
15952 * target.h (struct target_ops): Add supports_disable_randomization.
15953 (target_supports_disable_randomization): New macro.
15955 2011-09-29 Mike Frysinger <vapier@gentoo.org>
15957 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15959 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15960 [!PT_GETDSBT] (target_loadmap): New definition.
15961 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15962 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15963 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15964 and PT_GETDSBT to LINUX_LOADMAP.
15965 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15966 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15968 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15970 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15971 (arm_linux_hwbp_cap): New static variable.
15972 (arm_linux_get_hwbp_cap): Replace by ...
15973 (arm_linux_init_hwbp_cap): ... this new function.
15974 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15975 (arm_linux_get_hw_watchpoint_count): Likewise.
15976 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15977 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15978 (arm_prepare_to_resume): Use perror_with_name instead of error.
15980 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15982 * linux-arm-low.c: Include <signal.h>.
15983 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15984 (struct arm_linux_hwbp_cap): New data type.
15985 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15986 (struct arm_linux_hw_breakpoint): New data type.
15987 (MAX_BPTS, MAX_WPTS): Define.
15988 (struct arch_process_info, struct arch_lwp_info): New data types.
15989 (arm_linux_get_hwbp_cap): New function.
15990 (arm_linux_get_hw_breakpoint_count): Likewise.
15991 (arm_linux_get_hw_watchpoint_count): Likewise.
15992 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15993 (arm_hwbp_control_initialize): Likewise.
15994 (arm_hwbp_control_is_enabled): Likewise.
15995 (arm_hwbp_control_is_initialized): Likewise.
15996 (arm_hwbp_control_disable): Likewise.
15997 (arm_linux_hw_breakpoint_equal): Likewise.
15998 (arm_linux_hw_point_initialize): Likewise.
15999 (struct update_registers_data): New data structure.
16000 (update_registers_callback: New function.
16001 (arm_insert_point): Likewise.
16002 (arm_remove_point): Likewise.
16003 (arm_stopped_by_watchpoint): Likewise.
16004 (arm_stopped_data_address): Likewise.
16005 (arm_new_process): Likewise.
16006 (arm_new_thread): Likewise.
16007 (arm_prepare_to_resume): Likewise.
16008 (the_low_target): Register arm_insert_point, arm_remove_point,
16009 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16010 arm_new_thread, and arm_prepare_to_resume.
16012 2011-09-15 Stan Shebs <stan@codesourcery.com>
16014 * server.h (struct emit_ops): Add compare-goto fields.
16015 * tracepoint.c (gdb_agent_op_sizes): New table.
16016 (emit_eq_goto): New function.
16017 (emit_ne_goto): New function.
16018 (emit_lt_goto): New function.
16019 (emit_le_goto): New function.
16020 (emit_gt_goto): New function.
16021 (emit_ge_goto): New function.
16022 (is_goto_target): New function.
16023 (compile_bytecodes): Recognize special cases of compare-goto
16024 combinations and call specialized emitters for them.
16025 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16026 (amd64_emit_ne_goto): New function.
16027 (amd64_emit_lt_goto): New function.
16028 (amd64_emit_le_goto): New function.
16029 (amd64_emit_gt_goto): New function.
16030 (amd64_emit_ge_goto): New function.
16031 (amd64_emit_ops): Add the new functions.
16032 (i386_emit_eq_goto): New function.
16033 (i386_emit_ne_goto): New function.
16034 (i386_emit_lt_goto): New function.
16035 (i386_emit_le_goto): New function.
16036 (i386_emit_gt_goto): New function.
16037 (i386_emit_ge_goto): New function.
16038 (i386_emit_ops): Add the new functions.
16040 2011-09-08 Stan Shebs <stan@codesourcery.com>
16042 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16043 (i386_emit_epilogue): Restore %ebx.
16045 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16047 * server.c (step_thread): Remove definition.
16048 (process_serial_event): Don't handle Hs.
16049 * server.h (step_thread): Remove declaration.
16050 * target.c (set_desired_inferior): Remove use of step_thread.
16052 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16054 * linux-low.c: Include linux-procfs.h.
16055 (linux_attach_lwp_1): Update comments.
16056 (linux_attach): Scan for existing threads when attaching to a
16057 process that is the tgid.
16058 * Makefile.in: Update dependencies.
16060 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16062 * configure.srv: Add linux-procfs.o dependencies.
16064 2011-08-14 Yao Qi <yao@codesourcery.com>
16066 * target.h (struct target_ops): Fix indent.
16067 * win32-low.c (win32_target_ops): Fix comment.
16069 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16070 Yao Qi <yao@codesourcery.com>
16072 * Makefile.in (clean): Remove tic6x-*.c files.
16073 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16074 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16075 (tic6x-c64xp-linux.c): Likewise.
16076 * configure.srv: Add support for tic6x-*-uclinux.
16077 * linux-tic6x-low.c: New.
16078 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16080 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16081 Yao Qi <yao@codesourcery.com>
16083 * target.h (struct target_ops): Add read_loadmap.
16084 * linux-low.c (struct target_loadseg): New type.
16085 (struct target_loadmap): New type.
16086 (linux_read_loadmap): New function.
16087 (linux_target_ops): Add linux_read_loadmap.
16088 * server.c (handle_query): Support qXfer:fdpic:read packet.
16089 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16092 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16094 * win32-low.c: Include <stdint.h>.
16096 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16098 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16099 to the inferior here.
16100 (i386_remove_aligned_watchpoint): Ditto.
16101 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16102 fit part of the watchpoint in the debug registers.
16103 (i386_update_inferior_debug_regs): New.
16104 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16105 registers, and only update the inferior on success.
16106 (i386_low_remove_watchpoint): Ditto.
16108 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16110 * linux-low.c (compare_ints, unique, list_threads, show_process,
16111 linux_core_of_thread): Delete.
16112 (linux_target_ops): Change linux_core_of_thread to
16113 linux_common_core_of_thread.
16114 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16115 * utils.c (malloc_failure): Change type of argument.
16116 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16117 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16118 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16119 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16120 (IPA_OBJS): Add common-utils-ipa.o.
16121 (ptid_h, linux_osdata_h): New macros.
16122 (server_h): Add common/common-utils.h, common/xml-utils.h,
16123 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16125 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16126 ptid.o, buffer.o): New rules.
16127 (linux-low.o): Add common/linux-osdata.h as a dependency.
16128 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16129 * configure.ac: Add AC_HEADER_DIRENT check.
16130 * config.in: Regenerate.
16131 * configure: Regenerate.
16132 * remote-utils.c (xml_escape_text): Delete.
16133 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16134 buffer_xml_printf): Move to common/buffer.c.
16135 * server.c (main): Remove call to initialize_inferiors.
16136 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16137 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16138 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16139 internal_error, gdb_assert, gdb_assert_fail): Delete.
16140 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16141 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16143 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16144 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16145 initialize_inferiors): Delete.
16147 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16149 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16152 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16154 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16156 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16158 2011-05-26 Yao Qi <yao@codesourcery.com>
16160 * Makefile.in (thread-db.o): Track dependence to
16161 common/gdb_thread_db.h.
16162 * thread-db.c: include gdb_thread_db.h from right place.
16164 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16166 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16167 __FILE__ and __LINE__ to internal_error.
16169 2011-05-13 Doug Evans <dje@google.com>
16171 * thread-db.c (try_thread_db_load_from_sdir): New function.
16172 (try_thread_db_load_from_dir): New function.
16173 (thread_db_load_search): Handle $sdir, ignore $pdir.
16174 Remove trying of system directories if search of
16175 libthread-db-search-path fails, that is now done via $sdir.
16177 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16179 * server.c (handle_query): Add EnableDisableTracepoints to the list
16180 of supported features.
16181 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16183 (cmd_qtenable_disable): New.
16184 (cmd_qtstart): Install tracepoints even if disabled.
16185 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16186 receiving a QTEnable or QTDisable packet.
16187 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16188 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16190 (gdb_probe): Skip data collection if static tracepoint is disabled.
16192 2011-05-10 Doug Evans <dje@google.com>
16194 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16196 2011-05-04 Doug Evans <dje@google.com>
16198 * linux-low.c (linux_join): Skip process lookup.
16199 * spu-low.c (spu_join): Ditto.
16200 * server.c (join_inferiors_callback): Delete.
16201 (process_serial_event): For 'D' packet (detach) call join_inferior
16204 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16206 * README: Don't mention xscale*-*-linux*.
16207 * configure.srv (xscale*-*-linux*): Don't handle target.
16209 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16211 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16213 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16214 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16215 (i386_emit_void_call_2): Likewise.
16217 2011-04-26 Yao Qi <yao@codesourcery.com>
16219 * linux-low.c: Move common macros to linux-ptrace.h.
16220 Include linux-ptrace.h.
16221 * Makefile.in (linux_ptrace_h): New.
16222 (linux-low.o): Depends on linux-ptrace.h.
16224 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16226 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16227 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16228 (remote_prepare): New function with most of the TCP code from ...
16229 (remote_open): ... here. Detect PORT here unconditionally. Move also
16230 setting transport_is_reliable.
16231 * server.c (run_once): New variable.
16232 (gdbserver_usage): Document it.
16233 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16234 the first run if RUN_ONCE.
16235 * server.h (run_once, remote_prepare): New declarations.
16237 2011-04-19 Tom Tromey <tromey@redhat.com>
16239 * win32-low.c (handle_load_dll): Remove duplicate "the".
16241 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16243 Remove support for old Cygwin 1.5 versions.
16244 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16245 function to avoid warning.
16246 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16249 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16251 * gdbserver/server.h (Macro _): Define it if not available.
16253 2011-03-14 Michael Snyder <msnyder@vmware.com>
16255 * hostio.c (handle_close): Remove unnecessary null test.
16257 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16259 * Makefile.in (maintainer-clean realclean distclean): Remove
16260 "make ... subdir_do" command.
16262 2011-03-10 Michael Snyder <msnyder@vmware.com>
16264 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16266 * server.c (handle_v_run): Free alloced buffer on early return.
16268 2011-03-09 Yao Qi <yao@codesourcery.com>
16271 2011-03-04 Yao Qi <yao@codesourcery.com>
16273 * Makefile.in: Remove GNU make feature --directory.
16275 2011-03-05 Yao Qi <yao@codesourcery.com>
16277 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16278 (subdir_do): New make target. Copied from gdb/Makefile.
16279 (maintainer-clean, realclean, distclean, clean): Call corresponding
16280 make targets in common/Makefile.
16282 2011-02-11 Yao Qi <yao@codesourcery.com>
16284 * configure.ac: Call AC_PROG_RANLIB.
16285 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16286 * configure: Regenerate.
16288 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16290 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16292 2011-03-06 Yao Qi <yao@codesourcery.com>
16294 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16296 2011-03-05 Yao Qi <yao@codesourcery.com>
16298 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16299 (subdir_do): New make target. Copied from gdb/Makefile.
16300 (maintainer-clean, realclean, distclean, clean): Call corresponding
16301 make targets in common/Makefile.
16303 2011-03-04 Yao Qi <yao@codesourcery.com>
16305 * Makefile.in: Remove GNU make feature --directory.
16307 2011-03-04 Michael Snyder <msnyder@vmware.com>
16309 * server.c (queue_stop_reply): Call xmalloc not malloc.
16311 2011-03-02 Michael Snyder <msnyder@vmware.com>
16313 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16315 2011-02-28 Michael Snyder <msnyder@vmware.com>
16317 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16318 (cmd_qtframe): Ditto.
16319 (cmd_qtbuffer): Ditto.
16320 (cmd_bigqtbuffer): Ditto.
16322 * utils.c (decimal2str): Initialize 'width' to nine, then
16323 don't mess with it.
16325 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16327 * hostio.c (require_data): Free *data, not data.
16329 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16331 * hostio.c (require_data): Use free, not xfree.
16333 2011-02-27 Michael Snyder <msnyder@vmware.com>
16335 * server.c (handle_query): Discard unused value.
16337 * hostio.c (require_data): Free malloc memory before returning
16340 2011-02-26 Michael Snyder <msnyder@vmware.com>
16342 * linux-low.c (list_threads): Call closedir for dirent.
16344 2011-02-27 Michael Snyder <msnyder@vmware.com>
16346 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16347 a case statement falls through.
16349 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16351 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16354 2011-02-26 Michael Snyder <msnyder@vmware.com>
16356 * utils.c (decimal2str): Eliminate dead code and dead param.
16357 (pulongest): Drop dead param from call to decimal2str.
16360 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16362 Revert the following patch (not approved yet):
16363 2011-02-21 Hui Zhu <teawater@gmail.com>
16364 * tracepoint.c (tp_printf): New function.
16365 (eval_agent_expr): Handle gdb_agent_op_printf.
16367 2011-02-21 Hui Zhu <teawater@gmail.com>
16369 * tracepoint.c (tp_printf): New function.
16370 (eval_agent_expr): Handle gdb_agent_op_printf.
16372 2011-02-18 Tom Tromey <tromey@redhat.com>
16374 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16375 (tracepoint.o): Likewise.
16376 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16377 (gdb_agent_op_names): Likewise.
16379 2011-02-18 Tom Tromey <tromey@redhat.com>
16381 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16382 gdb_agent_op_rot>: New constants.
16383 (gdb_agent_op_names): Add pick and roll.
16384 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16387 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16389 * aclocal.m4: Regenerated with aclocal-1.11.1.
16391 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16393 * server.c (handle_qxfer_traceframe_info): New.
16394 (qxfer_packets): Register "traceframe-info".
16395 (handle_query): Report support for qXfer:traceframe-info:read+.
16396 * tracepoint.c (match_blocktype): New.
16397 (traceframe_find_block_type): Rename to ...
16398 (traceframe_walk_blocks): ... this. Add callback filter argument,
16400 (traceframe_find_block_type): New, reimplemented on top of
16401 traceframe_walk_blocks.
16402 (build_traceframe_info_xml): New.
16403 (traceframe_read_info): New.
16404 * server.h (traceframe_read_info): Declare.
16406 2011-02-11 Yao Qi <yao@codesourcery.com>
16408 * configure.ac: Call AC_PROG_RANLIB.
16409 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16410 * configure: Regenerate.
16412 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16414 * server.c (gdb_read_memory): Change return semantics to allow
16416 (handle_search_memory_1): Adjust.
16417 (process_serial_event) <'m' packet>: Handle partial transfers.
16418 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16420 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16422 * regcache.c (init_register_cache): Initialize
16423 regcache->register_status.
16424 (free_register_cache): Release regcache->register_status.
16425 (regcache_cpy): Copy register_status.
16426 (registers_to_string): Print 'x's for unavailable registers.
16427 (supply_register): Mark the register's status valid or
16428 unavailable, depending on whether a buffer was passed in or not.
16429 (supply_register_zeroed): New.
16430 (supply_regblock): Mark the registers' status valid or
16431 unavailable, depending on whether a buffer was passed in or not.
16432 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16433 (struct regcache): New `register_status' field.
16434 (supply_register_zeroed): Declare.
16435 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16436 supply_register_zeroed, rather than passing a NULL buffer to
16438 * tracepoint.c (fetch_traceframe_registers): Update comment.
16440 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16442 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16445 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16447 * server.h (decode_xfer_write): Change prototype.
16448 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16449 and don't extract the annex here.
16450 * server.c (decode_xfer_read): Remove `annex' parameter,
16451 and don't extract the annex here.
16452 (decode_xfer): New.
16453 (struct qxfer): New.
16454 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16455 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16456 (handle_qxfer_statictrace): New functions, abstracted out from
16457 handle_query, and made to use the struct qxfer interface.
16458 (handle_threads_qxfer_proper): Rename to ...
16459 (handle_qxfer_threads_proper): ... this.
16460 (handle_threads_qxfer): Rename to ...
16461 (handle_qxfer_threads): ... this. Adjust.
16462 (qxfer_packets): New array.
16463 (handle_qxfer): New function.
16464 (handle_query): Use handle_qxfer.
16466 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16468 * gdbreplay.c: Shorten lines of >= 80 columns.
16469 * linux-low.c: Ditto.
16470 * linux-ppc-low.c: Ditto.
16471 * linux-s390-low.c: Ditto.
16472 * linux-sparc-low.c: Ditto.
16473 * linux-x86-low.c: Ditto.
16474 * linux-xtensa-low.c: Ditto.
16475 * mem-break.c: Ditto.
16476 * nto-low.c: Ditto.
16477 * regcache.h: Ditto.
16478 * remote-utils.c: Ditto.
16481 * thread-db.c: Ditto.
16482 * tracepoint.c: Ditto.
16484 * win32-low.h: Ditto.
16486 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16488 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16491 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16493 * server.c (gdbserver_version): Update copyright year in version
16495 * gdbreplay.c (gdbreplay_version): Ditto.
16497 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16499 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16500 * linux-bfin-low.c: New file.
16501 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16502 PT_DATA_ADDR for BFIN targets.
16503 * Makefile.in (SFILES): Add linux-bfin-low.c.
16504 (clean): Remove reg-bfin.c.
16505 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16506 * README: Mention supported Blackfin targets.
16508 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16510 * .gitignore: New file.
16512 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16514 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16516 2010-10-22 Jie Zhang <jie@codesourcery.com>
16518 * Makefile.in: Add FLAGS_TO_PASS variable.
16519 (install): Remove dependency of install-only and recursively
16520 invoke make for install-only.
16522 2010-10-04 Doug Evans <dje@google.com>
16524 * Makefile.in (uninstall): Use $(DESTDIR).
16526 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16530 * linux-x86-low.c (compat_siginfo_from_siginfo)
16531 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16532 si_code is < 0. Check for si_code == SI_TIMER before checking for
16535 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16537 * lynx-i386-low.c: New file.
16538 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16540 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16542 * lynx-low.c (ptrace_request_to_str): Remove handling for
16543 request values that have been removed in LynxOS 5.x.
16545 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16547 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16550 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16552 * configure.ac: Add --enable-inprocess-agent option.
16553 * configure: Rebuilt.
16555 2010-09-06 Yao Qi <yao@codesourcery.com>
16557 * linux-low.c (linux_kill): Remove unused variable.
16558 (linux_stabilize_threads): Likewise.
16559 * server.c (start_inferior): Likewise.
16560 (queue_stop_reply_callback): Likewise.
16561 * tracepoint.c (do_action_at_tracepoint): Likewise.
16563 2010-09-06 Yao Qi <yao@codesourcery.com>
16565 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16568 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16570 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16572 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16574 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16577 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16579 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16580 gdbserver/lynx-ppc-low.c: New files.
16581 * Makefile.in (lynx_low_h): New variable.
16582 (lynx-low.o, lynx-ppc-low.o): New rules.
16583 * configure.ac: On LynxOS, link with -lnetinet.
16584 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16585 * configure: regenerate.
16587 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16589 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16590 * configure.ac: Add check for vasprintf and vsnprintf.
16591 * configure, config.in: Regenerate.
16592 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16594 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16596 * gdbreplay.c: Move include of alloca.h up, next to include of
16598 * server.h: Add include of malloc.h.
16599 * mem-break.c: Remove include of malloc.h.
16600 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16602 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16604 * Makefile.in (memmem.o): Build with -Wno-error.
16606 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16608 * utils.c (xsnprintf): Make non-static.
16609 * server.h: Add xsnprintf declaration.
16610 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16611 replace calls to snprintf by calls to xsnprintf throughout.
16613 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16615 * configure.ac: Add configure check for alloca.
16616 * configure, config.in: Regenerate.
16617 * server.h: Include alloca.h if it exists.
16618 * gdbreplay.c: Include alloca.h if it exists.
16620 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16622 * linux-low.c (__SIGRTMIN): Define if not already defined.
16623 (linux_create_inferior): Check for __ANDROID__ rather than
16625 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16626 are already deferred.
16627 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16628 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16629 stopped and already has a pending signal to report.
16630 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16631 a pending signal to report or is moving out of a jump pad.
16632 (linux_init_signals): Check for __ANDROID__ rather than
16635 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16637 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16638 debug_threads check. Avoid a linear search when not doing debug
16641 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16643 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16644 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16645 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16646 (process_event): Change local fd's type to gdb_fildes_t.
16647 (create_file_handler): Adjust prototype.
16648 (delete_file_handler): Adjust prototype.
16649 (handle_file_event): Adjust prototype. Use pfildes.
16650 (create_file_event): Adjsut prototype.
16651 * remote-utils.c (remote_desc, listen_desc): Change type to
16653 * server.h: New gdb_fildes_t typedef.
16654 [USE_WIN32API]: Include winsock2.h.
16655 (delete_file_handler, add_file_handler): Adjust prototypes.
16656 (pfildes): Declare.
16657 * utils.c (pfildes): New.
16659 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16661 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16662 * configure: Regenerate.
16664 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16666 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16667 (linux_done_accessing_memory): ... this.
16668 (linux_target_ops): Adjust.
16669 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16670 * nto-low.c (nto_target_ops): Adjust comment.
16671 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16672 * spu-low.c (spu_target_ops): Adjust comment.
16673 * target.h (target_ops): Rename unprepare_to_access_memory field
16674 to done_accessing_memory.
16675 (unprepare_to_access_memory): Rename to ...
16676 (done_accessing_memory): ... this.
16678 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16680 * linux-low.c (linux_prepare_to_access_memory): New.
16681 (linux_unprepare_to_access_memory): New.
16682 (linux_target_ops): Install them.
16683 * server.c (read_memory): Rename to ...
16684 (gdb_read_memory): ... this. Use
16685 prepare_to_access_memory/prepare_to_access_memory.
16686 (write_memory): Rename to ...
16687 (gdb_write_memory): ... this. Use
16688 prepare_to_access_memory/prepare_to_access_memory.
16689 (handle_search_memory_1): Adjust.
16690 (process_serial_event): Adjust.
16691 * target.h (struct target_ops): New fields
16692 prepare_to_access_memory and unprepare_to_access_memory.
16693 (prepare_to_access_memory, unprepare_to_access_memory): New.
16694 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16695 prepare_to_access_memory/prepare_to_access_memory.
16696 * nto-low.c (nto_target_ops): Adjust.
16697 * spu-low.c (spu_target_ops): Adjust.
16698 * win32-low.c (win32_target_ops): Adjust.
16700 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16702 * Makefile.in (WARN_CFLAGS): Get it from configure.
16703 (WERROR_CFLAGS): New.
16704 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16705 * configure.ac: Introduce --enable-werror, which adds -Werror to
16706 the compiler command line. Enabled by default. Disable with
16707 --disable-werror. Add -Wdeclaration-after-statement
16708 Wpointer-arith and -Wformat-nonliteral to warning flags.
16709 * configure: Regenerate.
16711 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16713 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16715 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16717 * gdbreplay.c (remote_error): New.
16719 (expect): Use gdbchar. Check for error reading from GDB.
16720 Clarify sync error output.
16721 (play): Check for errors writing to GDB.
16722 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16723 * remote-utils.c (getpkt): Check for errors writing to the remote
16726 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16728 * linux-low.c (linux_wait_1): Move non-debugging code out of
16729 `debug_threads' control.
16731 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16733 * linux-low.c (linux_wait_1): Don't set last_status here.
16734 * server.c (push_event, queue_stop_reply_callback): Assert we're
16735 not pushing a TARGET_WAITKIND_IGNORE event.
16736 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16737 (myresume, handle_target_event): Set the thread's last_resume_kind
16738 and last_status from the target returned status.
16740 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16744 * linux-x86-low.c (update_debug_registers_callback): New.
16745 (i386_dr_low_set_addr): Use it.
16746 (i386_dr_low_get_addr): New.
16747 (i386_dr_low_set_control): Use update_debug_registers_callback.
16748 (i386_dr_low_get_control): New.
16749 (i386_dr_low_get_status): Adjust.
16750 * linux-low.c (linux_stop_lwp): New.
16751 * linux-low.h (linux_stop_lwp): Declare.
16753 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16754 argument instead of a i386_debug_reg_state.
16755 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16756 a i386_debug_reg_state.
16757 (i386_insert_aligned_watchpoint): Adjust.
16758 (i386_remove_aligned_watchpoint): Adjust.
16759 (i386_low_stopped_data_address): Read the debug registers from the
16760 inferior instead of from the mirrors.
16761 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16762 (i386_dr_low_get_addr): Declare.
16763 (i386_dr_low_get_control): Declare.
16764 (i386_dr_low_get_status): Change prototype.
16766 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16767 (i386_dr_low_get_addr): New.
16768 (i386_dr_low_get_control): New.
16769 (i386_dr_low_get_status): Adjust prototype. Return
16771 (i386_initial_stuff): Clear dr_status_mirror and
16773 (i386_get_thread_context): Adjust.
16774 (i386_set_thread_context): Adjust.
16775 (i386_thread_added): Adjust.
16777 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16779 * linux-low.h (linux_thread_area): Delete declaration.
16781 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16783 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16784 after its termination.
16786 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16788 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16789 (gdb_wants_all_stopped): Delete.
16790 (linux_wait_1): Don't call them.
16791 * server.c (handle_v_cont): Tag all threads as want-stopped.
16792 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16793 stopped as "client-wants-stopped".
16795 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16797 * Makefile.in (signals_h): New.
16798 (server_h): Depend on it.
16799 (server.o): Don't depend on $(signals_def).
16800 (signals.o): Depend on $(signals_def).
16802 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16804 * Makefile.in (signals_def): New.
16805 (server_h): Append include/gdb/signals.h and signals_def.
16806 (server.o): Append signals_def.
16808 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16810 * server.c (handle_target_event): Use target_signal_to_host for
16811 resume_info.sig initialization.
16812 * target.h (struct thread_resume) <sig>: New comment.
16814 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16816 * server.c (handle_query): strcpy() the returned string from paddress()
16817 instead of sprintf().
16818 * utils.c (paddress): Return phex_nz().
16820 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16822 * server.c (handle_v_cont): Call mourn_inferior if process
16824 (myresume): Likewise.
16826 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16828 Static tracepoints, and integration with UST.
16830 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16831 * mem-break.c (uninsert_all_breakpoints)
16832 (reinsert_all_breakpoints): New.
16833 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16834 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16835 (gdb_agent_ust_loaded, helper_thread_id)
16836 (gdb_agent_helper_thread_id): New macros.
16837 (struct ipa_sym_addresses): Add addr_ust_loaded,
16838 addr_helper_thread_id, addr_cmd_buf.
16839 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16840 (in_process_agent_loaded_ust): New.
16841 (write_e_ust_not_loaded): New.
16842 (maybe_write_ipa_ust_not_loaded): New.
16843 (struct collect_static_trace_data_action): New.
16844 (enum tracepoint_type) <static_tracepoint>: New.
16845 (struct tracepoint) <handle>: Mention static tracepoints.
16846 (struct static_tracepoint_ctx): New.
16847 (CMD_BUF_SIZE): New.
16848 (add_tracepoint_action): Handle static tracepoint actions.
16849 (unprobe_marker_at): New.
16850 (clear_installed_tracepoints): Handle static tracepoints.
16851 (cmd_qtdp): Handle static tracepoints.
16852 (probe_marker_at): New.
16853 (cmd_qtstart): Handle static tracepoints.
16854 (response_tracepoint): Handle static tracepoints.
16855 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16856 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16857 (get_context_regcache): Handle static tracepoints.
16858 (do_action_at_tracepoint): Handle static tracepoint actions.
16859 (traceframe_find_block_type): Handle static trace data blocks.
16860 (traceframe_read_sdata): New.
16861 (download_tracepoints): Download static tracepoint actions.
16862 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16863 (GDB_PROBE_NAME): New.
16865 (GET_UST_SYM): New.
16868 (ust_marker_to_static_tracepoint): New.
16870 (collect_ust_data_at_tracepoint): New.
16871 (gdb_ust_probe): New.
16872 (UNIX_PATH_MAX, SOCK_DIR): New.
16873 (gdb_ust_connect_sync_socket): New.
16874 (resume_thread, stop_thread): New.
16875 (run_inferior_command): New.
16876 (init_named_socket): New.
16877 (gdb_ust_socket_init): New.
16878 (cstr_to_hexstr): New.
16880 (first_marker, next_marker): New.
16881 (response_ust_marker): New.
16882 (cmd_qtfstm, cmd_qtsstm): New.
16883 (unprobe_marker_at, probe_marker_at): New.
16884 (cmd_qtstmat, gdb_ust_thread): New.
16885 (gdb_ust_init): New.
16886 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16887 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16888 (ST_REGENTRY): New.
16889 (x86_64_st_collect_regmap): New.
16890 (X86_64_NUM_ST_COLLECT_GREGS): New.
16891 (AMD64_RIP_REGNUM): New.
16892 (supply_static_tracepoint_registers): New.
16893 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16894 (ST_REGENTRY): New.
16895 (i386_st_collect_regmap): New.
16896 (i386_NUM_ST_COLLECT_GREGS): New.
16897 (supply_static_tracepoint_registers): New.
16898 * server.c (handle_query): Handle qXfer:statictrace:read.
16899 <qSupported>: Report support for StaticTracepoints, and
16900 qXfer:statictrace:read features.
16901 * server.h (traceframe_read_sdata)
16902 (supply_static_tracepoint_registers): Declare.
16903 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16904 (unpack_varlen_hex): Include in IPA build.
16905 * Makefile.in (ustlibs, ustinc): New.
16906 (IPA_OBJS): Add remote-utils-ipa.o.
16907 ($(IPA_LIB)): Link -ldl and -lpthread.
16909 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16910 * config.in, configure: Regenerate.
16912 2010-06-20 Ian Lance Taylor <iant@google.com>
16913 Pedro Alves <pedro@codesourcery.com>
16915 * linux-x86-low.c (always_true): Delete.
16916 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16917 trying to fool the compiler with always_true.
16919 2010-06-20 Pedro Alves <pedro@codesourcery.com>
16921 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16922 conditions in gdbserver.
16924 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16926 * spu-low.c (spu_read_memory): Wrap around local store limit.
16927 (spu_write_memory): Likewise.
16929 2010-06-15 Pedro Alves <pedro@codesourcery.com>
16931 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16932 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16934 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16936 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16937 uses with LONGEST uses.
16939 2010-06-14 Stan Shebs <stan@codesourcery.com>
16940 Pedro Alves <pedro@codesourcery.com>
16944 * linux-x86-low.c: Include limits.h.
16946 (always_true): New.
16949 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16950 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16951 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16952 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16953 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16954 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16955 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16956 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16957 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16958 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16959 (amd64_emit_void_call_2): New.
16960 (amd64_emit_ops): New.
16961 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16962 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16963 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16964 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16965 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16966 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16967 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16968 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16969 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16970 (i386_emit_stack_adjust, i386_emit_int_call_1)
16971 (i386_emit_void_call_2): New.
16972 (i386_emit_ops): New.
16973 (x86_emit_ops): New.
16974 (the_low_target): Install x86_emit_ops.
16975 * server.h (struct emit_ops): New.
16976 (get_raw_reg_func_addr): Declare.
16977 (current_insn_ptr, emit_error): Declare.
16978 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16979 (set_trace_state_variable_value): New defines.
16980 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16981 addr_get_trace_state_variable_value and
16982 addr_set_trace_state_variable_value.
16983 (symbol_list): New fields for get_raw_reg,
16984 get_trace_state_variable_value and set_trace_state_variable_value.
16985 (condfn): New typedef.
16986 (struct tracepoint): New field `compiled_cond'.
16987 (do_action_at_tracepoint): Clear compiled_cond.
16988 (get_trace_state_variable_value, set_trace_state_variable_value):
16990 (condition_true_at_tracepoint): If there's a compiled condition,
16992 (current_insn_ptr, emit_error): New globals.
16993 (struct bytecode_address): New.
16994 (get_raw_reg_func_addr): New.
16995 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16996 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16997 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16998 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16999 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17000 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17001 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17002 (compile_tracepoint_condition, compile_bytecodes): New.
17003 * target.h (emit_ops): Forward declare.
17004 (struct target_ops): New field emit_ops.
17005 (target_emit_ops): New.
17006 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17007 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17008 * linux-low.c (linux_emit_ops): New.
17009 (linux_target_ops): Install it.
17010 * linux-low.h (struct linux_target_ops): New field emit_ops.
17012 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17014 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17015 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17017 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17018 Stan Shebs <stan@codesourcery.com>
17020 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17021 (all): Depend on $(extra_libraries).
17022 (install-only): Install the IPA.
17023 (IPA_OBJS, IPA_LIB): New.
17024 (clean): Remove the IPA lib.
17025 (IPAGENT_CFLAGS): New.
17026 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17027 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17028 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17029 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17030 * configure.ac: Check for atomic builtins support in the compiler.
17031 (IPA_DEPFILES, extra_libraries): Define.
17032 * configure.srv (ipa_obj): Add description.
17033 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17034 (i[34567]86-*-linux*): Set ipa_obj.
17035 (x86_64-*-linux*): Set ipa_obj.
17036 * linux-low.c (stabilizing_threads): New.
17037 (supports_fast_tracepoints): New.
17038 (linux_detach): Stabilize threads before detaching.
17039 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17040 the lwp is either not stabilizing, or is moving out of a jump pad.
17041 (linux_fast_tracepoint_collecting): New.
17042 (maybe_move_out_of_jump_pad): New.
17043 (enqueue_one_deferred_signal): New.
17044 (dequeue_one_deferred_signal): New.
17045 (linux_wait_for_event_1): If moving out of a jump pad, defer
17046 pending signals to later.
17047 (linux_stabilize_threads): New.
17048 (linux_wait_1): Check if threads need moving out of jump pads, and
17050 (stuck_in_jump_pad_callback): New.
17051 (move_out_of_jump_pad_callback): New.
17052 (lwp_running): New.
17053 (linux_resume_one_lwp): Handle moving out of jump pads.
17054 (linux_set_resume_request): Dequeue deferred signals.
17055 (need_step_over_p): Also step over fast tracepoint jumps.
17056 (start_step_over): Also uninsert fast tracepoint jumps.
17057 (finish_step_over): Also reinsert fast tracepoint jumps.
17058 (linux_install_fast_tracepoint_jump): New.
17059 (linux_target_ops): Install linux_stabilize_threads and
17060 linux_install_fast_tracepoint_jump_pad.
17061 * linux-low.h (linux_target_ops) <get_thread_area,
17062 install_fast_tracepoint_jump_pad>: New fields.
17063 (struct lwp_info) <collecting_fast_tracepoint,
17064 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17065 (linux_get_thread_area): Declare.
17066 * linux-x86-low.c (jump_insn): New.
17067 (x86_get_thread_area): New.
17068 (append_insns): New.
17069 (push_opcode): New.
17070 (amd64_install_fast_tracepoint_jump_pad): New.
17071 (i386_install_fast_tracepoint_jump_pad): New.
17072 (x86_install_fast_tracepoint_jump_pad): New.
17073 (the_low_target): Install x86_get_thread_area and
17074 x86_install_fast_tracepoint_jump_pad.
17075 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17076 (struct fast_tracepoint_jump): New.
17077 (fast_tracepoint_jump_insn): New.
17078 (fast_tracepoint_jump_shadow): New.
17079 (find_fast_tracepoint_jump_at): New.
17080 (fast_tracepoint_jump_here): New.
17081 (delete_fast_tracepoint_jump): New.
17082 (set_fast_tracepoint_jump): New.
17083 (uninsert_fast_tracepoint_jumps_at): New.
17084 (reinsert_fast_tracepoint_jumps_at): New.
17085 (set_breakpoint_at): Use write_inferior_memory.
17086 (uninsert_raw_breakpoint): Use write_inferior_memory.
17087 (check_mem_read): Mask out fast tracepoint jumps.
17088 (check_mem_write): Mask out fast tracepoint jumps.
17089 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17090 (set_fast_tracepoint_jump): Declare.
17091 (delete_fast_tracepoint_jump)
17092 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17093 (reinsert_fast_tracepoint_jumps_at): Declare.
17094 * regcache.c: Don't compile many functions when building the
17095 in-process agent library.
17096 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17097 the register buffer in the heap.
17098 (free_register_cache): If the register buffer isn't owned by the
17099 regcache, don't free it.
17100 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17101 pre-existing register caches.
17102 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17104 (convert_ascii_to_int): : Constify `from' parameter type.
17105 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17106 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17107 the needed buffer in-place.
17108 (relocate_instruction): New.
17109 * server.c (handle_query) <qSymbols>: If the target supports
17110 tracepoints, give it a chance of looking up symbols. Report
17111 support for fast tracepoints.
17112 (handle_status): Stabilize threads.
17113 (process_serial_event): Adjust.
17114 * server.h (struct fast_tracepoint_jump): Forward declare.
17115 (struct process_info) <fast_tracepoint_jumps>: New field.
17116 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17117 (decode_X_packet, decode_M_packet): Adjust.
17118 (relocate_instruction): Declare.
17119 (in_process_agent_loaded): Declare.
17120 (tracepoint_look_up_symbols): Declare.
17121 (struct fast_tpoint_collect_status): Declare.
17122 (fast_tracepoint_collecting): Declare.
17123 (force_unlock_trace_buffer): Declare.
17124 (handle_tracepoint_bkpts): Declare.
17125 (initialize_low_tracepoint)
17126 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17127 * target.h (struct target_ops) <stabilize_threads,
17128 install_fast_tracepoint_jump_pad>: New fields.
17129 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17130 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17131 [HAVE_STDINT_H]: Include stdint.h.
17132 (trace_debug_1): Rename to ...
17133 (trace_vdebug): ... this.
17134 (trace_debug): Rename to ...
17135 (trace_debug_1): ... this. Add `level' parameter.
17136 (trace_debug): New.
17137 (ATTR_USED, ATTR_NOINLINE): New.
17138 (IP_AGENT_EXPORT): New.
17139 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17140 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17141 (about_to_request_buffer_space, trace_buffer_is_full)
17142 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17143 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17144 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17145 (traceframe_write_count, traceframes_created)
17146 (trace_state_variables)
17147 New renaming defines.
17148 (struct ipa_sym_addresses): New.
17149 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17150 (symbol_list): New.
17151 (ipa_sym_addrs): New.
17152 (all_tracepoint_symbols_looked_up): New.
17153 (in_process_agent_loaded): New.
17154 (write_e_ipa_not_loaded): New.
17155 (maybe_write_ipa_not_loaded): New.
17156 (tracepoint_look_up_symbols): New.
17157 (debug_threads) [IN_PROCESS_AGENT]: New.
17158 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17159 (UNKNOWN_SIDE_EFFECTS): New.
17160 (stop_tracing): New.
17161 (flush_trace_buffer): New.
17162 (stop_tracing_bkpt): New.
17163 (flush_trace_buffer_bkpt): New.
17164 (read_inferior_integer): New.
17165 (read_inferior_uinteger): New.
17166 (read_inferior_data_pointer): New.
17167 (write_inferior_data_pointer): New.
17168 (write_inferior_integer): New.
17169 (write_inferior_uinteger): New.
17170 (struct collect_static_trace_data_action): Delete.
17171 (enum tracepoint_type): New.
17172 (struct tracepoint) <type>: New field `type'.
17173 <actions_str, step_actions, step_actions_str>: Only include in
17175 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17176 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17177 (tracepoints): Use IP_AGENT_EXPORT.
17178 (last_tracepoint): Don't include in the IPA.
17179 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17180 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17181 (alloced_trace_state_variables): New.
17182 (trace_state_variables): Use IP_AGENT_EXPORT.
17183 (traceframe_t): Delete unused variable.
17184 (circular_trace_buffer): Don't include in the IPA.
17185 (trace_buffer_start): Delete.
17186 (struct trace_buffer_control): New.
17187 (trace_buffer_free): Delete.
17188 (struct ipa_trace_buffer_control): New.
17189 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17190 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17192 (trace_buffer_ctrl): New.
17193 (TRACE_BUFFER_CTRL_CURR): New.
17194 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17195 Reimplement as macros.
17196 (trace_buffer_wrap): Delete.
17197 (traceframe_write_count, traceframe_read_count)
17198 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17199 (struct tracepoint_hit_ctx) <type>: New field.
17200 (struct fast_tracepoint_ctx): New.
17201 (memory_barrier): New.
17203 (record_tracepoint_error): Update atomically in the IPA.
17204 (clear_inferior_trace_buffer): New.
17205 (about_to_request_buffer_space): New.
17206 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17207 updating the same buffer.
17208 (add_tracepoint): Default the tracepoint's type to trap
17209 tracepoint, and orig_size to -1.
17210 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17211 internal variables.
17212 (create_trace_state_variable): New parameter `gdb'. Handle it.
17213 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17214 (cmd_qtdp): Handle fast tracepoints.
17215 (cmd_qtdv): Adjust.
17216 (max_jump_pad_size): New.
17217 (gdb_jump_pad_head): New.
17218 (get_jump_space_head): New.
17219 (claim_jump_space): New.
17220 (sort_tracepoints): New.
17221 (MAX_JUMP_SIZE): New.
17222 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17224 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17225 support. Upload fast traceframes, and delete internal IPA
17227 (stop_tracing_handler): New.
17228 (flush_trace_buffer_handler): New.
17229 (cmd_qtstop): Upload fast tracepoints.
17230 (response_tracepoint): Handle fast tracepoints.
17231 (tracepoint_finished_step): Upload fast traceframes. Set the
17232 tracepoint hit context's tracepoint type.
17233 (handle_tracepoint_bkpts): New.
17234 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17235 type. Add comment about fast tracepoints.
17236 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17237 non-existing action_str field.
17238 (get_context_regcache): Handle fast tracepoints.
17239 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17241 (fast_tracepoint_from_jump_pad_address): New.
17242 (fast_tracepoint_from_ipa_tpoint_address): New.
17243 (collecting_t): New.
17244 (force_unlock_trace_buffer): New.
17245 (fast_tracepoint_collecting): New.
17247 (gdb_collect): New.
17248 (write_inferior_data_ptr): New.
17249 (target_tp_heap): New.
17250 (target_malloc): New.
17251 (download_agent_expr): New.
17253 (download_tracepoints): New.
17254 (download_trace_state_variables): New.
17255 (upload_fast_traceframes): New.
17256 (IPA_FIRST_TRACEFRAME): New.
17257 (IPA_NEXT_TRACEFRAME_1): New.
17258 (IPA_NEXT_TRACEFRAME): New.
17259 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17260 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17261 (gdb_jump_pad_buffer_end): New.
17262 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17263 (initialize_tracepoint): Adjust.
17264 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17265 buffer. Initialize the low module.
17266 * utils.c (PREFIX, TOOLNAME): New.
17267 (malloc_failure): Use PREFIX.
17268 (error): In the IPA, an error causes an exit.
17269 (fatal, warning): Use PREFIX.
17270 (internal_error): Use TOOLNAME.
17271 (NUMCELLS): Increase to 10.
17272 * configure, config.in: Regenerate.
17274 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17276 * server.c (handle_query) <qSupported>: Do two passes over the
17277 qSupported string to avoid nesting strtok.
17279 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17281 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17283 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17284 -Wl,--dynamic-list.
17285 * configure: Regenerate.
17286 * proc-service.list: New.
17288 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17290 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17293 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17295 * gdbreplay.c (remote_open): Check error return from socket() call by
17296 its equality to -1 not by it being negative.
17297 * remote-utils.c (remote_open): Likewise.
17299 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17301 * config.h: Regenerate.
17303 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17305 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17306 doesn't provide PTRACE_GET_THREAD_AREA.
17308 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17310 * linux-m68k-low.c: Include <asm/ptrace.h>
17311 (ps_get_thread_area): Implement.
17313 2010-05-03 Doug Evans <dje@google.com>
17315 * event-loop.c (struct callback_event): New struct.
17316 (callback_list): New global.
17317 (append_callback_event, delete_callback_event): New functions.
17318 (process_callback): New function.
17319 (start_event_loop): Call it.
17320 * remote-utils.c (NOT_SCHEDULED): Define.
17321 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17322 moved out of readchar.
17323 (readchar): Rewrite. Call reschedule before returning.
17324 (reset_readchar): New function.
17325 (remote_close): Call it.
17326 (process_remaining, reschedule): New functions.
17327 * server.h (callback_handler_func): New typedef.
17328 (append_callback_event, delete_callback_event): Declare.
17330 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17332 * proc-service.c (ps_pglobal_lookup): Use
17333 thread_db_look_up_one_symbol.
17334 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17335 parameter. Use it instead of all_symbols_looked_up.
17336 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17338 (all_symbols_looked_up): Don't declare.
17339 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17340 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17342 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17343 Set all_symbols_looked_up here.
17344 (thread_db_look_up_one_symbol): New.
17345 (thread_db_get_tls_address): Adjust.
17346 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17347 thread_db object on the heap, and tentatively set it in the
17349 (thread_db_init): Don't set all_symbols_looked_up here.
17350 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17352 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17354 * linux-low.c (linux_kill, linux_detach): Adjust.
17355 (status_pending_p_callback): Remove redundant statement. Check
17356 for !TARGET_WAITIKIND_IGNORE, instead of
17357 TARGET_WAITKIND_STOPPED.
17358 (handle_tracepoints): Make sure LWP is locked. Adjust.
17359 (linux_wait_for_event_1): Adjust.
17360 (linux_cancel_breakpoints): New.
17361 (unsuspend_one_lwp): New.
17362 (unsuspend_all_lwps): New.
17363 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17364 (send_sigstop_callback): Change return type to int, add new
17365 `except' parameter and handle it.
17366 (suspend_and_send_sigstop_callback): New.
17367 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17368 pass them down. If SUSPEND, also increment the lwp's suspend
17370 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17371 (need_step_over_p): Don't consider suspended LWPs.
17372 (start_step_over): Adjust.
17373 (proceed_one_lwp): Change return type to int, add new `except'
17374 parameter and handle it.
17375 (unsuspend_and_proceed_one_lwp): New.
17376 (proceed_all_lwps): Use find_inferior instead of
17378 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17379 also decrement the suspend count of LWPs. Pass `except' down,
17380 instead of hacking its suspend count.
17381 (linux_pause_all): Add `freeze' parameter. Adjust.
17382 (linux_unpause_all): New.
17383 (linux_target_ops): Install linux_unpause_all.
17384 * server.c (handle_status): Adjust.
17385 * target.h (struct target_ops): New fields `unpause_all' and
17386 `cancel_breakpoints'. Add new parameter to `pause_all'.
17387 (pause_all): Add new `freeze' parameter.
17388 (unpause_all): New.
17389 (cancel_breakpoints): New.
17390 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17391 cancel breakpoints.
17392 (cmd_qtstart): Pause threads.
17393 (stop_tracing): Pause threads, and cancel breakpoints.
17394 * win32-low.c (win32_target_ops): Adjust.
17396 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17398 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17399 the inferior right away from here...
17400 (linux_wait_1): ... to here, and adjust to check the thread's
17401 last_resume_kind instead of the lwp's step or stop_expected flags.
17403 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17405 * README: Use consistent `GDB' and `GDBserver' spellings.
17407 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17409 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17410 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17411 (linux_detach_one_lwp): Assume the lwp is stopped.
17412 (any_thread_of): Delete.
17413 (linux_detach): Stop all lwps here. Don't blindly delete all
17415 (delete_lwp_callback): New.
17416 (linux_mourn): Delete all lwps of the process that is gone.
17417 (linux_wait_1): Don't delete the last lwp of the process here.
17418 * mem-break.h (mark_breakpoints_out): Declare.
17419 * mem-break.c (mark_breakpoints_out): New.
17420 (free_all_breakpoints): Use it.
17421 * server.c (handle_target_event): If the process is gone, mark
17423 * thread-db.c (struct thread_db) <create_bp>: New field.
17424 (thread_db_enable_reporting): Fix prototype. Store a thread event
17425 breakpoint reference in the thread_db struct.
17426 (thread_db_load_search): Clear the thread_db object.
17427 (try_thread_db_load_1): Ditto.
17428 (switch_to_process): New.
17429 (disable_thread_event_reporting): Use it.
17430 (remove_thread_event_breakpoints): New.
17431 (thread_db_detach, thread_db_mourn): Use it.
17433 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17435 * linux-low.c (linux_enable_event_reporting): New.
17436 (linux_wait_for_event_1, handle_extended_wait): Use it.
17438 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17440 * linux-low.c (linux_kill_one_lwp, linux_kill)
17441 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17442 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17443 SIGSTOP even if the LWP is stopped.
17444 (send_sigstop_callback): New.
17445 (stop_all_lwps): Use send_sigstop_callback instead.
17446 (linux_resume_one_thread): Adjust.
17447 (proceed_one_lwp): Still proceed an LWP that the client has
17448 requested to stop, if we haven't reported it as stopped yet. Make
17449 sure that LWPs the client want stopped, have a pending SIGSTOP.
17451 2010-04-26 Doug Evans <dje@google.com>
17453 * server.c (handle_general_set): Make static.
17455 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17456 Print received char after testing for error/eof instead of before.
17457 (input_interrupt): Tweak comment.
17459 2010-04-23 Doug Evans <dje@google.com>
17461 * server.c (start_inferior): Print inferior argv if --debug.
17463 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17465 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17466 * nto-x86-low.c: Include server.h
17468 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17470 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17471 be consistent with other sources of this directory.
17472 (init_registers_amd64): Correct name of source file of this function
17475 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17477 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17478 64-bit executables.
17480 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17482 * win32-i386-low.c: Add 64-bit support.
17483 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17484 (init_registers_amd64): Declare.
17485 (mappings): Add 64-bit version of array.
17486 (init_windows_x86): New function.
17487 (the_low_target): Change init_arch field to init_windows_x86.
17489 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17491 * win32-low.c: Adapt to support also 64-bit architecture.
17492 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17493 (get_image_name): Use SIZE_T type for local variable `done'.
17494 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17495 (toolhelp_get_dll_name): Idem.
17496 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17497 Use uintptr_t typecast to avoid warning.
17498 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17499 (handle_exception): Use phex_nz to avoid warning.
17500 (win32_wait): Remove unused local variable `process'.
17502 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17504 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17507 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17509 * configure.ac: Use `ws2_32' library for srv_mingw.
17510 * configure: Regenerate.
17511 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17512 * remote-utils.c: Likewise.
17514 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17516 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17517 if __x86_64__ is defined.
17519 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17521 * configure: Regenerate.
17523 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17525 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17526 * target.h (target_ops): New get_tib_address field.
17527 * win32-low.h (win32_thread_info): Add thread_local_base field.
17528 * win32-low.c (child_add_thread): Add tlb argument.
17529 Set thread_local_base field to TLB.
17530 (get_child_debug_event): Adapt to child_add_thread change.
17531 (win32_get_tib_address): New function.
17532 (win32_target_ops): Set get_tib_address field to
17533 win32_get_tib_address.
17534 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17536 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17538 * linux-low.c (linux_mourn): Also remove the process.
17539 * server.c (handle_target_event): Don't remove the process here.
17540 * nto-low.c (nto_mourn): New.
17541 (nto_target_ops): Install it.
17542 * spu-low.c (spu_mourn): New.
17543 (spu_target_ops): Install it.
17544 * win32-low.c (win32_mourn): New.
17545 (win32_target_ops): Install it.
17547 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17549 * server.h (buffer_xml_printf): Remove redundant `;'.
17551 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17553 * regcache.c (set_register_cache): Invalidate regcaches before
17554 changing the register cache layout.
17555 (regcache_invalidate_one): Allow a NULL regcache.
17556 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17557 regcaches before changing the register cache layout or the target
17560 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17562 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17563 variable warning on Linux/x86-64.
17565 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17567 GDBserver disconnected tracing support.
17569 * linux-low.c (linux_remove_process): Delete.
17570 (add_lwp): Don't set last_resume_kind here.
17571 (linux_kill): Use `mourn'.
17572 (linux_detach): Use `thread_db_detach', and `mourn'.
17573 (linux_mourn): New.
17574 (linux_attach_lwp_1): Adjust comment.
17575 (linux_attach): last_resume_kind moved the thread_info; adjust.
17576 (status_pending_p_callback): Adjust.
17577 (linux_wait_for_event_1): Adjust.
17578 (count_events_callback, select_singlestep_lwp_callback)
17579 (select_event_lwp_callback, cancel_breakpoints_callback)
17580 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17581 (proceed_one_lwp): Adjust.
17582 (linux_async): Add debug output.
17583 (linux_thread_stopped): New.
17584 (linux_pause_all): New.
17585 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17587 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17588 (thread_db_free): Delete declaration.
17589 (thread_db_detach, thread_db_mourn): Declare.
17590 * thread-db.c (thread_db_init): Use thread_db_mourn.
17591 (thread_db_free): Delete, split in two.
17592 (disable_thread_event_reporting): New.
17593 (thread_db_detach): New.
17594 (thread_db_mourn): New.
17596 * server.h (struct thread_info) <last_resume_kind>: New field.
17597 <attached>: Add comment.
17598 <gdb_detached>: New field.
17599 (handler_func): Change return type to int.
17600 (handle_serial_event, handle_target_event): Ditto.
17601 (gdb_connected): Declare.
17603 (disconnected_tracing): Declare.
17604 (stop_tracing): Declare.
17606 * server.c (handle_query) <qSupported>: Report support for
17607 disconnected tracing.
17608 (queue_stop_reply_callback): Account for running threads.
17609 (gdb_wants_thread_stopped): New.
17610 (gdb_wants_all_threads_stopped): New.
17611 (gdb_reattached_process): New.
17612 (handle_status): Clear the `gdb_detached' flag of all processes.
17613 In all-stop, stop all threads.
17614 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17615 (process_serial_event): If the remote connection breaks, or if an
17616 exit was forced with "monitor exit", force an event loop exit.
17617 Handle disconnected tracing on detach.
17618 (handle_serial_event): Adjust.
17619 (handle_target_event): If GDB isn't connected, forward events back
17620 to the inferior, unless the last process exited, in which case,
17621 exit gdbserver. Adjust interface.
17623 * remote-utils.c (remote_open): Don't block in accept. Instead
17624 register an event loop source on the listen socket file
17625 descriptor. Refactor bits into ...
17626 (listen_desc): ... this new global.
17627 (gdb_connected): ... this new function.
17628 (enable_async_notification): ... this new function.
17629 (handle_accept_event): ... this new function.
17630 (remote_close): Clear remote_desc.
17632 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17634 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17636 (mourn_inferior): Define.
17637 (target_process_qsupported): Avoid the dangling else problem.
17638 (thread_stopped): Define.
17639 (pause_all): Define.
17640 (target_waitstatus_to_string): Declare.
17641 * target.c (target_waitstatus_to_string): New.
17643 * tracepoint.c (tracing): Make extern.
17644 (disconnected_tracing): New.
17645 (stop_tracing): Make extern. Handle tracing stops due to GDB
17647 (cmd_qtdisconnected): New.
17648 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17649 (handle_tracepoint_general_set): Handle QTDisconnected.
17651 * event-loop.c (event_handler_func): Change return type to int.
17652 (process_event): Bail out if the event handler wants the event
17654 (handle_file_event): Ditto.
17655 (start_event_loop): Bail out if the event handler wants the event
17658 * nto-low.c (nto_target_ops): Adjust.
17659 * spu-low.c (spu_wait): Don't remove the process here.
17660 (spu_target_ops): Adjust.
17661 * win32-low.c (win32_wait): Don't remove the process here.
17662 (win32_target_ops): Adjust.
17664 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17666 * regcache.c (realloc_register_cache): Invalidate inferior's
17667 regcache before recreating it.
17669 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17671 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17673 2010-04-09 Stan Shebs <stan@codesourcery.com>
17674 Pedro Alves <pedro@codesourcery.com>
17676 * server.h (LONGEST): New.
17677 (struct thread_info) <while_stepping>: New field.
17678 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17680 (initialize_tracepoint, handle_tracepoint_general_set)
17681 (handle_tracepoint_query, tracepoint_finished_step)
17682 (tracepoint_was_hit, release_while_stepping_state_list):
17683 (current_traceframe): Declare.
17684 * server.c (handle_general_set): Handle tracepoint packets.
17685 (read_memory): New.
17686 (write_memory): New.
17687 (handle_search_memory_1): Use read_memory.
17688 (handle_query): Report support for conditional tracepoints, trace
17689 state variables, and tracepoint sources. Handle tracepoint
17691 (main): Initialize the tracepoints module.
17692 (process_serial_event): Handle traceframe reads/writes.
17694 * linux-low.c (handle_tracepoints): New.
17695 (linux_wait_1): Call it.
17696 (linux_resume_one_lwp): Handle while-stepping.
17697 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17698 (linux_target_ops): Install them.
17699 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17701 * linux-x86-low.c (x86_supports_tracepoints): New.
17702 (the_low_target). Install it.
17704 * mem-break.h (delete_breakpoint): Declare.
17705 * mem-break.c (delete_breakpoint): Make external.
17707 * target.h (struct target_ops): Add `supports_tracepoints',
17708 `read_pc', and `write_pc' fields.
17709 (target_supports_tracepoints): Define.
17710 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17713 * regcache.h (struct regcache) <registers_owned>: New field.
17714 (init_register_cache, regcache_cpy): Declare.
17715 (regcache_read_pc, regcache_write_pc): Declare.
17716 (register_cache_size): Declare.
17717 (supply_regblock): Declare.
17718 * regcache.c (init_register_cache): New.
17719 (new_register_cache): Use it.
17720 (regcache_cpy): New.
17721 (register_cache_size): New.
17722 (supply_regblock): New.
17723 (regcache_read_pc, regcache_write_pc): New.
17725 * tracepoint.c: New.
17727 * Makefile.in (OBS): Add tracepoint.o.
17728 (tracepoint.o): New rule.
17730 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17732 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17734 (i386-mmx.c): Likewise.
17735 (i386-mmx-linux.o): Likewise.
17736 (i386-mmx-linux.c): Likewise.
17738 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17739 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17740 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17741 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17743 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17744 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17745 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17747 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17749 * Makefile.in (clean): Updated.
17751 (i386-avx.c): Likewise.
17752 (i386-avx-linux.o): Likewise.
17753 (i386-avx-linux.c): Likewise.
17754 (amd64-avx.o): Likewise.
17755 (amd64-avx.c): Likewise.
17756 (amd64-avx-linux.o): Likewise.
17757 (amd64-avx-linux.c): Likewise.
17759 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17760 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17761 (srv_amd64_regobj): Add amd64-avx.o.
17762 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17763 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17764 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17765 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17766 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17767 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17768 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17770 * i387-fp.c: Include "i386-xstate.h".
17772 (i387_cache_to_xsave): Likewise.
17773 (i387_xsave_to_cache): Likewise.
17774 (x86_xcr0): Likewise.
17776 * i387-fp.h (i387_cache_to_xsave): Likewise.
17777 (i387_xsave_to_cache): Likewise.
17778 (x86_xcr0): Likewise.
17780 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17781 * linux-crisv32-low.c (target_regsets): Likewise.
17782 * linux-m68k-low.c (target_regsets): Likewise.
17783 * linux-mips-low.c (target_regsets): Likewise.
17784 * linux-ppc-low.c (target_regsets): Likewise.
17785 * linux-s390-low.c (target_regsets): Likewise.
17786 * linux-sh-low.c (target_regsets): Likewise.
17787 * linux-sparc-low.c (target_regsets): Likewise.
17788 * linux-xtensa-low.c (target_regsets): Likewise.
17790 * linux-low.c: Include <sys/uio.h>.
17791 (regsets_fetch_inferior_registers): Support nt_type.
17792 (regsets_store_inferior_registers): Likewise.
17793 (linux_process_qsupported): New.
17794 (linux_target_ops): Add linux_process_qsupported.
17796 * linux-low.h (regset_info): Add nt_type.
17797 (linux_target_ops): Add process_qsupported.
17799 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17801 (init_registers_i386_avx_linux): New.
17802 (init_registers_amd64_avx_linux): Likewise.
17803 (xmltarget_i386_linux_no_xml): Likewise.
17804 (xmltarget_amd64_linux_no_xml): Likewise.
17805 (PTRACE_GETREGSET): Likewise.
17806 (PTRACE_SETREGSET): Likewise.
17807 (x86_fill_xstateregset): Likewise.
17808 (x86_store_xstateregset): Likewise.
17809 (use_xml): Likewise.
17810 (x86_linux_update_xmltarget): Likewise.
17811 (x86_linux_process_qsupported): Likewise.
17812 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17813 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17814 init_registers_i386_linux here. Call
17815 x86_linux_update_xmltarget.
17816 (the_low_target): Add x86_linux_process_qsupported.
17818 * server.c (handle_query): Call target_process_qsupported.
17820 * target.h (target_ops): Add process_qsupported.
17821 (target_process_qsupported): New.
17823 2010-04-03 Pedro Alves <pedro@codesourcery.com>
17825 * inferiors.c (add_thread): Set last_status kind to
17826 TARGET_WAITKIND_IGNORE.
17827 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17828 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17829 (linux_wait_1): Move `thread' local definition to block that uses
17830 it. Don't NULL initialize `event_child'.
17831 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17832 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17833 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17835 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17837 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17838 an extended waitstatus, or by a watchpoint.
17839 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17840 thread was stepping or has been stopped by a watchpoint.
17842 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17844 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17845 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17846 of another, then delete the previous, and validate all
17848 (validate_inserted_breakpoint): New.
17849 (delete_disabled_breakpoints): New.
17850 (validate_breakpoints): New.
17851 (check_mem_read): Validate breakpoints before trusting their
17852 shadow. Delete disabled breakpoints.
17853 (check_mem_write): Validate breakpoints before trusting they
17854 should be inserted. Delete disabled breakpoints.
17855 * mem-break.h (validate_breakpoints):
17856 * server.c (handle_query): Validate breakpoints when we see a
17859 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17861 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17862 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17863 if we could tell there's a GDB breakpoint at stop_pc.
17864 (need_step_over_p): Don't do a step over if we find a GDB
17865 breakpoint at the resume PC.
17867 * mem-break.c (struct raw_breakpoint): New.
17868 (enum bkpt_type): New type `gdb_breakpoint'.
17869 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17870 fields. New field `raw'.
17871 (find_raw_breakpoint_at): New.
17872 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17873 breakpoint instead.
17874 (set_breakpoint_at): Adjust.
17875 (delete_raw_breakpoint): New.
17876 (release_breakpoint): New.
17877 (delete_breakpoint): Rename to...
17878 (delete_breakpoint_1): ... this. Add proc parameter. Use
17879 release_breakpoint. Return ENOENT.
17880 (delete_breakpoint): Reimplement.
17881 (find_breakpoint_at): Delete.
17882 (find_gdb_breakpoint_at): New.
17883 (delete_breakpoint_at): Delete.
17884 (set_gdb_breakpoint_at): New.
17885 (delete_gdb_breakpoint_at): New.
17886 (gdb_breakpoint_here): New.
17887 (set_reinsert_breakpoint): Use release_breakpoint.
17888 (uninsert_breakpoint): Rename to ...
17889 (uninsert_raw_breakpoint): ... this.
17890 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17891 (reinsert_raw_breakpoint): Change parameter type to
17893 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17895 (check_breakpoints): Adjust. Use release_breakpoint.
17896 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17897 (breakpoint_inserted_here): Ditto.
17898 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17899 Don't trust the breakpoint's shadow if it is not inserted.
17900 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17901 (delete_all_breakpoints): Adjust.
17902 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17903 use delete_breakpoint_1.
17905 * mem-break.h (breakpoints_supported): Delete declaration.
17906 (set_gdb_breakpoint_at): Declare.
17907 (gdb_breakpoint_here): Declare.
17908 (delete_breakpoint_at): Delete.
17909 (delete_gdb_breakpoint_at): Declare.
17911 * server.h (struct raw_breakpoint): Forward declare.
17912 (struct process_info): New field `raw_breakpoints'.
17914 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17917 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17919 * linux-low.c (status_pending_p_callback): Fix comment.
17920 (linux_wait_for_event_1): Move most of the internal breakpoint
17921 handling from here...
17922 (linux_wait_1): ... to here.
17923 (count_events_callback): New.
17924 (select_singlestep_lwp_callback): New.
17925 (select_event_lwp_callback): New.
17926 (cancel_breakpoints_callback): New.
17927 (select_event_lwp): New.
17928 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17929 priority to all LWPs that have had events that should be reported
17930 to the client. Cancel breakpoints when about to reporting the
17931 event to the client, not while stopping lwps. No longer cancel
17932 finished single-steps here.
17933 (cancel_finished_single_step): Delete.
17934 (cancel_finished_single_steps): Delete.
17936 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17938 * mem-break.c (enum bkpt_type): New.
17939 (struct breakpoint): New field `type'.
17940 (set_breakpoint_at): Change return type to struct breakpoint
17941 pointer. Set type to `other_breakpoint' by default.
17942 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17943 in the breakpoint list.
17944 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17945 (reinsert_breakpoint): Rename to ...
17946 (reinsert_raw_breakpoint): ... this.
17947 (reinsert_breakpoints_at): Adjust.
17948 * mem-break.h (struct breakpoint): Declare.
17949 (set_breakpoint_at): Change return type to struct breakpoint
17952 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17954 * server.c (handle_query): Assign, not compare.
17956 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17958 Teach linux gdbserver to step-over-breakpoints.
17960 * linux-low.c (can_hardware_single_step): New.
17961 (supports_breakpoints): New.
17962 (handle_extended_wait): If stopping threads, read the stop pc of
17963 the new cloned LWP.
17965 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17966 low target doesn't support retrieving the PC.
17967 (add_lwp): Set last_resume_kind to resume_continue.
17968 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17969 (linux_attach): Don't clear stop_expected. Set the lwp's
17970 last_resume_kind to resume_stop.
17971 (linux_detach_one_lwp): Don't check for removed breakpoints.
17972 (check_removed_breakpoint): Delete.
17973 (status_pending_p): Rename to ...
17974 (status_pending_p_callback): ... this. Don't check for removed
17975 breakpoints. Don't consider threads that are stopped from GDB's
17977 (linux_wait_for_lwp): Always read the stop_pc here.
17978 (cancel_breakpoint): New.
17979 (step_over_bkpt): New global.
17980 (linux_wait_for_event_1): Implement stepping over breakpoints.
17981 (gdb_wants_lwp_stopped): New.
17982 (gdb_wants_all_stopped): New.
17983 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17984 single-step traps here. Store the thread's last reported target
17986 (send_sigstop): Don't clear stop_expected. Always set it,
17988 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17989 (cancel_finished_single_step): New.
17990 (cancel_finished_single_steps): New.
17991 (wait_for_sigstop): Don't cancel finished single-step traps here.
17992 (linux_resume_one_lwp): Don't check for removed breakpoints.
17993 Don't set `step' on non-hardware step archs.
17994 (linux_set_resume_request): Ignore resume_stop requests if already
17995 stopping or stopped. Set the lwp's last_resume_kind.
17996 (resume_status_pending_p): Don't check for removed breakpoints.
17997 (need_step_over_p): New.
17998 (start_step_over): New.
17999 (finish_step_over): New.
18000 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18001 requests. Clear the thread's last reported target waitstatus.
18002 Don't use the `suspended' flag. Don't consider pending breakpoints.
18003 (linux_resume): Start a step-over if necessary.
18004 (proceed_one_lwp): New.
18005 (proceed_all_lwps): New.
18006 (unstop_all_lwps): New.
18007 * linux-low.h (struct lwp_info): Rewrite comment for the
18008 `suspended' flag. Add the `stop_pc' field. Delete the
18009 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18010 Add `'last_resume_kind' and `need_step_over' fields.
18011 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18012 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18013 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18014 (set_raw_breakpoint_at): New.
18015 (set_breakpoint_at): Rewrite to use it.
18016 (reinsert_breakpoint_handler): Delete.
18017 (set_reinsert_breakpoint): New.
18018 (reinsert_breakpoint_by_bp): Delete.
18019 (delete_reinsert_breakpoints): New.
18020 (uninsert_breakpoint): Rewrite.
18021 (uninsert_breakpoints_at): New.
18022 (reinsert_breakpoint): Rewrite.
18023 (reinsert_breakpoints_at): New.
18024 (check_breakpoints): Rewrite.
18025 (breakpoint_here): New.
18026 (breakpoint_inserted_here): New.
18027 (check_mem_read): Adjust.
18028 * mem-break.h (breakpoints_supported, breakpoint_here)
18029 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18030 (reinsert_breakpoint_by_bp): Delete declaration.
18031 (delete_reinsert_breakpoints): Declare.
18032 (reinsert_breakpoint): Delete declaration.
18033 (reinsert_breakpoints_at): Declare.
18034 (uninsert_breakpoint): Delete declaration.
18035 (uninsert_breakpoints_at): Declare.
18036 (check_breakpoints): Adjust prototype.
18037 * server.h: Adjust include order.
18038 (struct thread_info): Declare here. Add a `last_status' field.
18040 2010-03-23 Michael Snyder <msnyder@vmware.com>
18042 * server.c (crc32): New function.
18043 (handle_query): Add handling for 'qCRC:' request.
18045 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18047 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18048 lwp had been stopped by a watchpoint.
18050 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18052 * server.h (internal_error): Declare.
18053 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18054 * utils.c (internal_error): New function.
18056 2010-03-15 Andreas Schwab <schwab@redhat.com>
18058 * configure.srv: Fix typo setting srv_regobj.
18060 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18062 * linux-low.c (fetch_register): Avoid passing a non string literal
18064 (usr_store_inferior_registers): Ditto.
18066 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18068 * linux-low.c (linux_write_memory): Bail out early if peeking
18071 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18073 * linux-low.h (struct lwp_info): New fields
18074 `stopped_by_watchpoint' and `stopped_data_address'.
18075 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18076 here, and cache them in the lwp object.
18077 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18079 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18081 (linux_stopped_by_watchpoint): Rewrite.
18082 (linux_stopped_data_address): Rewrite.
18084 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18086 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18087 switching the current inferior, not before.
18089 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18091 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18092 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18093 i386-linux.c and amd64-linux.c.
18094 (reg-i386.o): Removed.
18095 (reg-i386.c): Likewise.
18096 (reg-i386-linux.o): Likewise.
18097 (reg-i386-linux.c): Likewise.
18098 (reg-x86-64.o): Likewise.
18099 (reg-x86-64.c): Likewise.
18100 (reg-x86-64-linux.o): Likewise.
18101 (reg-x86-64-linux.c): Likewise.
18103 (i386.c): Likewise.
18104 (i386-linux.o): Likewise.
18105 (i386-linux.c): Likewise.
18106 (amd64.o): Likewise.
18107 (amd64.c): Likewise.
18108 (amd64-linux.o): Likewise.
18109 (amd64-linux.c): Likewise.
18111 * configure.srv (srv_i386_regobj): New.
18112 (srv_i386_linux_regobj): Likewise.
18113 (srv_amd64_regobj): Likewise.
18114 (srv_amd64_linux_regobj): Likewise.
18115 (srv_i386_32bit_xmlfiles): Likewise.
18116 (srv_i386_64bit_xmlfiles): Likewise.
18117 (srv_i386_xmlfiles): Likewise.
18118 (srv_amd64_xmlfiles): Likewise.
18119 (srv_i386_linux_xmlfiles): Likewise.
18120 (srv_amd64_linux_xmlfiles): Likewise.
18121 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18122 srv_xmlfiles to $srv_i386_xmlfiles.
18123 (i[34567]86-*-mingw32ce*): Likewise.
18124 (i[34567]86-*-mingw*): Likewise.
18125 (i[34567]86-*-nto*): Likewise.
18126 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18127 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18128 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18129 (x86_64-*-linux*): Likewise.
18131 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18132 (init_registers_amd64_linux): New.
18133 (x86_arch_setup): Replace init_registers_x86_64_linux with
18134 init_registers_amd64_linux.
18136 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18138 * configure.ac: Check for libdl. If it is not available link against
18139 static libthread_db.
18140 * configure: Regenerate.
18142 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18146 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18147 handing a read watchpoint.
18148 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18150 2010-02-12 Doug Evans <dje@google.com>
18152 * linux-low.c (linux_supports_tracefork_flag): Document.
18153 (linux_look_up_symbols): Add comment.
18155 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18157 * regcache.c (supply_register): Clear regcache if buf is NULL.
18159 2010-02-02 Nicolas Roche <roche@sourceware.org>
18160 Joel Brobecker <brobecker@adacore.com>
18162 * inferiors.c (find_inferior): Add function documentation.
18163 (unloaded_dll): Handle the case where the unloaded dll has not
18164 been previously registered in the dll list.
18166 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18168 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18169 (thumb2_breakpoint): New.
18170 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18172 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18174 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18175 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18178 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18180 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18182 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18184 * linux-s390-low.c (s390_collect_ptrace_register)
18185 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18187 2010-01-21 Doug Evans <dje@google.com>
18189 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18190 (PTRACE_ARG4_TYPE): New macro.
18191 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18192 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18193 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18194 (usr_store_inferior_registers): Ditto.
18195 (linux_read_memory, linux_write_memory): Ditto.
18196 (linux_test_for_tracefork): Ditto.
18198 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18199 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18201 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18203 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18206 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18208 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18209 prototype to take a regcache. Adjust.
18211 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18213 * regcache.h (struct thread_info): Forward declare.
18214 (struct regcache): New.
18215 (new_register_cache): Adjust prototype.
18216 (get_thread_regcache): Declare.
18217 (free_register_cache): Adjust prototype.
18218 (registers_to_string, registers_from_string): Ditto.
18219 (supply_register, supply_register_by_name, collect_register)
18220 (collect_register_as_string, collect_register_by_name): Ditto.
18221 * regcache.c (struct inferior_regcache_data): Delete.
18222 (get_regcache): Rename to ...
18223 (get_thread_regcache): ... this. Adjust. Switch inferior before
18224 fetching registers.
18225 (regcache_invalidate_one): Adjust.
18226 (regcache_invalidate): Fix prototype.
18227 (new_register_cache): Return the new register cache.
18228 (free_register_cache): Change prototype.
18229 (realloc_register_cache): Adjust.
18230 (registers_to_string): Change prototype to take a regcache. Adjust.
18231 (registers_from_string): Ditto.
18232 (register_data): Ditto.
18233 (supply_register): Ditto.
18234 (supply_register_by_name): Ditto.
18235 (collect_register): Ditto.
18236 (collect_register_as_string): Ditto.
18237 (collect_register_by_name): Ditto.
18238 * server.c (process_serial_event): Adjust.
18239 * linux-low.h (regset_fill_func, regset_store_func): Change
18241 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18243 * linux-low.c (get_stop_pc): Adjust.
18244 (check_removed_breakpoint): Adjust.
18245 (linux_wait_for_event): Adjust.
18246 (linux_resume_one_lwp): Adjust.
18247 (fetch_register): Add regcache parameter. Adjust.
18248 (usr_store_inferior_registers): Ditto.
18249 (regsets_fetch_inferior_registers): Ditto.
18250 (regsets_store_inferior_registers): Ditto.
18251 (linux_fetch_registers, linux_store_registers): Ditto.
18252 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18254 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18256 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18257 prototype to take a regcache.
18258 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18259 * remote-utils.c (convert_ascii_to_int, outreg)
18260 (prepare_resume_reply): Change prototype to take a regcache.
18262 * target.h (struct target_ops) <fetch_registers, store_registers>:
18263 Change prototype to take a regcache.
18264 (fetch_inferior_registers, store_inferior_registers): Change
18265 prototype to take a regcache. Adjust.
18266 * proc-service.c (ps_lgetregs): Adjust.
18267 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18268 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18269 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18270 take a regcache. Adjust.
18271 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18272 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18273 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18274 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18275 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18276 (cris_cannot_fetch_register):
18277 (cris_breakpoint_at): Change prototype to take a regcache.
18279 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18280 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18281 to take a regcache. Adjust.
18282 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18284 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18285 take a regcache. Adjust.
18286 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18287 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18288 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18289 * linux-mips-low.c (mips_get_pc):
18290 (mips_set_pc): Change prototype to take a regcache. Adjust.
18291 (mips_reinsert_addr): Adjust.
18292 (mips_collect_register): Change prototype to take a regcache.
18294 (mips_supply_register):
18295 (mips_collect_register_32bit, mips_supply_register_32bit)
18296 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18297 (mips_store_fpregset): Ditto.
18298 * linux-ppc-low.c (ppc_supply_ptrace_register)
18299 (ppc_supply_ptrace_register): Ditto.
18300 (parse_spufs_run): Adjust.
18301 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18302 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18303 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18304 take a regcache. Adjust.
18305 * linux-s390-low.c (s390_collect_ptrace_register)
18306 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18307 (s390_set_pc): Change prototype to take a regcache. Adjust.
18308 (s390_arch_setup): Adjust.
18309 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18310 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18311 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18312 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18313 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18315 (sparc_breakpoint_at): Adjust.
18316 * linux-xtensa-low.c (xtensa_fill_gregset):
18317 (xtensa_store_gregset):
18318 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18319 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18320 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18321 prototype to take a regcache. Adjust.
18322 * win32-arm-low.c (arm_fetch_inferior_register)
18323 (arm_store_inferior_register): Change prototype to take a
18325 * win32-i386-low.c (i386_fetch_inferior_register)
18326 (i386_store_inferior_register): Change prototype to take a
18328 * win32-low.c (child_fetch_inferior_registers)
18329 (child_store_inferior_registers): Change prototype to take a
18331 (win32_wait): Adjust.
18332 (win32_fetch_inferior_registers): Change prototype to take a
18334 (win32_store_inferior_registers): Adjust.
18335 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18336 store_inferior_register>: Change prototype to take a regcache.
18338 2010-01-20 Doug Evans <dje@google.com>
18340 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18342 (linux_wait_for_event1, linux_init_signals): Ditto.
18343 (W_STOPCODE): Provide definition if missing.
18345 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18347 * linux-low.c (linux_core_of_thread): New.
18348 (compare_ints, show_process, list_threads): New.
18349 (linux_qxfer_osdata): Report threads and cores.
18350 (linux_target_op): Register linux_core_of_thread.
18351 * remote-utils.c (prepare_resume_reply): Report the core.
18352 (buffer_xml_printf): Support %d specifier.
18353 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18355 (handle_query): Handle qXfer:threads. Announce availability
18357 * target.h (struct target_ops): New field core_of_thread.
18359 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18361 * Makefile.in (clean): Remove new generated files.
18362 (reg-s390.o, reg-s390.c): Remove rules.
18363 (reg-s390x.o, reg-s390x.c): Likewise.
18364 (s390-linux32.o, s390-linux32.c): Add rules.
18365 (s390-linux64.o, s390-linux64.c): Likewise.
18366 (s390x-linux64.o, s390x-linux64.c): Likewise.
18367 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18368 * linux-s390-low.c: Include <elf.h>.
18369 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18370 (init_registers_s390): Remove prototype.
18371 (init_registers_s390x): Likewise.
18372 (init_registers_s390_linux32): Add prototype.
18373 (init_registers_s390_linux64): Likewise.
18374 (init_registers_s390x_linux64): Likewise.
18375 (s390_num_regs_3264): New define.
18376 (s390_regmap_3264): New global variable.
18377 (s390_cannot_fetch_register): Remove obsolete check.
18378 (s390_cannot_store_register): Likewise.
18379 (s390_collect_ptrace_register): Handle upper/lower register halves.
18380 (s390_supply_ptrace_register): Likewise.
18381 (s390_fill_gregset): Update to register number changes.
18382 (s390_get_hwcap): New routine.
18383 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18384 Install appropriate regmap and register set.
18386 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18388 * server.c (gdbserver_version): Update copyright year to 2010.
18389 * gdbreplay.c (gdbreplay_version): Likewise.
18391 2009-12-28 Doug Evans <dje@google.com>
18393 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18394 elf/external.h. Include <elf.h> instead but only if necessary.
18396 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18398 * linux-low.c (linux_remove_process): Remove `detaching'
18399 parameter. Don't release/detach from thread_db here.
18400 (linux_kill): Release/detach from thread_db here, ...
18401 (linux_detach): ... and here, before actually detaching.
18402 (linux_wait_1): ... and here, when a process exits.
18403 * thread-db.c (any_thread_of): New.
18404 (thread_db_free): Switch the current inferior to a thread of the
18407 2009-12-21 Doug Evans <dje@google.com>
18409 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18411 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18412 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18413 warning ifndef __NR_tkill. Move setting of errno there too.
18414 Delete unnecessary resetting of errno after syscall.
18415 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18417 * configure.ac: Check for dladdr.
18418 * config.in: Regenerate.
18419 * configure: Regenerate.
18420 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18421 (try_thread_db_load): Update.
18423 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18425 2009-12-18 Doug Evans <dje@google.com>
18427 * event-loop.c: Include unistd.h if it exists.
18429 * linux-low.c (my_waitpid): Move definition away from being in
18430 between linux_tracefork_child/linux_test_for_tracefork.
18432 * gdb_proc_service.h (psaddr_t): Fix type.
18433 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18434 signature to match glibc.
18436 2009-12-16 Doug Evans <dje@google.com>
18438 * linux-low.c (linux_read_memory): Fix argument to read.
18440 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18442 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18443 events, don't leave current_inferior pointing at null.
18445 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18447 * win32-low.c (LOG): Delete.
18448 (OUTMSG): Output to stderr.
18449 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18450 on compile time LOG macro.
18451 (win32_wait): Fix debug output.
18453 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18455 * win32-low.c (win32_add_one_solib): If the dll name is
18456 "ntdll.dll", prepend the system directory to the dll path.
18458 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18460 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18462 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18463 Vladimir Prus <vladimir@codesourcery.com>
18465 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18466 * configure.ac: Check for __mcoldfire__ and set
18467 gdb_cv_m68k_is_coldfire.
18468 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18469 reg-cf.o and reg-m68k.o.
18470 * configure: Regenerated.
18472 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18474 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18475 Pass it to thread_db_free.
18476 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18477 proper `detaching' argument to linux_remove_process.
18478 * linux-low.h (thread_db_free): Add `detaching' parameter.
18479 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18481 (thread_db_free): Add `detaching' parameter. Only
18482 call td_ta_clear_event if detaching from process.
18484 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18486 * thread-db.c (thread_db_free): Fix typo.
18488 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18491 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18493 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18495 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18496 with an i686 compiler.
18497 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18499 * configure: Rebuilt.
18501 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18505 * server.c (handle_search_memory_1): Correct read_addr initialization
18506 in loop for searching subsequent chunks.
18508 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18510 * configure.ac: New --with-libthread-db option.
18511 * thread-db.c: Allow direct dependence on libthread_db.
18512 (thread_db_free): Adjust.
18513 * config.in: Regenerate.
18514 * configure: Likewise.
18516 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18519 * thread-db.c (attach_thread): New function.
18520 (maybe_attach_thread): Return success/failure.
18521 (find_new_threads_callback): Adjust.
18522 (thread_db_find_new_threads): Loop until no new threads.
18524 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18526 * proc-service.c (ps_lgetregs): Formatting.
18528 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18530 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18531 * configure.ac: Adjust.
18532 * linux-low.h (struct process_info_private): Move members to struct
18534 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18535 * linux-low.c (linux_remove_process): Adjust.
18536 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18537 * server.c (handle_query): Move code ...
18538 (handle_monitor_command): ... here. New function.
18539 * target.h (struct target_ops): New member.
18540 * thread-db.c (struct thread_db): New.
18541 (libthread_db_search_path): New variable.
18542 (thread_db_create_event, thread_db_enable_reporting)
18543 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18544 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18545 (try_thread_db_load_1, dladdr_to_soname): New functions.
18546 (try_thread_db_load, thread_db_load_search): New functions.
18547 (thread_db_init): Search for libthread_db.
18548 (thread_db_free): New function.
18549 (thread_db_handle_monitor_command): Likewise.
18550 * config.in: Regenerate.
18551 * configure: Regenerate.
18553 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18555 * spu-low.c (spu_kill): Wait for inferior to terminate.
18556 Call clear_inferiors.
18557 (spu_detach): Call clear_inferiors.
18559 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18561 * aclocal.m4: Regenerate.
18562 * config.in: Likewise.
18563 * configure: Likewise.
18565 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18567 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18568 (parse_spufs_run): New function.
18569 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18570 (ppc_breakpoint_at): Handle SPU breakpoints.
18572 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18574 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18575 (SPUFS_MAGIC): Define.
18576 (spu_enumerate_spu_ids): New function.
18577 (linux_qxfer_spu): New function.
18578 (linux_target_ops): Install linux_qxfer_spu.
18580 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18582 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18583 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18584 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18585 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18586 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18587 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18588 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18589 (init_registers_powerpc_cell32l): Add prototype.
18590 (init_registers_powerpc_cell64l): Likewise.
18591 (ppc_arch_setup): Detect Cell/B.E. architecture.
18593 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18595 * Makefile.in (datarootdir): New variable.
18597 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18599 * linux-low.c (linux_write_memory): Update debugging output.
18600 * Makefile.in (clean): Add new descriptions.
18601 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18602 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18603 * configure.srv: Add new files for arm*-*-linux*.
18604 * linux-arm-low.c: Add new declarations.
18605 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18606 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18607 (HWCAP_VFPv3D16): New.
18608 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18609 instead of __IWMMXT__.
18610 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18611 (arm_arch_setup): New.
18612 (target_regsets): Remove #ifdef. Add VFP regset.
18613 (the_low_target): Use arm_arch_setup.
18615 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18617 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18618 the main thread again.
18620 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18622 Adding Neutrino gdbserver.
18623 * configure: Regenerated.
18624 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18625 * configure.srv (i[34567]86-*-nto*): New target.
18626 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18627 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18628 (nto_comctrl) [__QNX__]: New function.
18629 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18631 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18633 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18636 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18637 Pedro Alves <pedro@codesourcery.com>
18639 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18640 don't support CONTEXT_EXTENDED_REGISTERS.
18641 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18642 (the_low_target): Install them.
18643 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18644 failing with ERROR_PIPE_NOT_CONNECTED.
18646 2009-06-30 Doug Evans <dje@google.com>
18647 Pierre Muller <muller@ics.u-strasbg.fr>
18649 Add h/w watchpoint support to x86-linux, win32-i386.
18650 * Makefile.in (SFILES): Add i386-low.c
18651 (i386_low_h): Define.
18652 (i386-low.o): Add dependencies.
18653 (linux-x86-low.o): Add i386-low.h dependency.
18654 (win32-i386-low.o): Ditto.
18655 * i386-low.c: New file.
18656 * i386-low.h: New file.
18657 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18658 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18659 * linux-low.c (linux_add_process): Initialize arch_private.
18660 (linux_remove_process): Free arch_private.
18661 (add_lwp): Initialize arch_private.
18662 (delete_lwp): Free arch_private.
18663 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18665 * linux-low.h (process_info_private): New member arch_private.
18666 (lwp_info): New member arch_private.
18667 (linux_target_ops): New members new_process, new_thread,
18669 (ptid_of): New macro.
18670 * linux-x86-low.c: Include stddef.h, i386-low.h.
18671 (arch_process_info): New struct.
18672 (arch_lwp_info): New struct.
18673 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18674 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18675 (i386_dr_low_get_status): New function.
18676 (x86_insert_point, x86_remove_point): New functions.
18677 (x86_stopped_by_watchpoint): New function.
18678 (x86_stopped_data_address): New function.
18679 (x86_linux_new_process, x86_linux_new_thread): New functions.
18680 (x86_linux_prepare_to_resume): New function.
18681 (the_low_target): Add entries for insert_point, remove_point,
18682 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18684 * server.c (debug_hw_points): New global.
18685 (monitor_show_help): Document set debug-hw-points.
18686 (handle_query): Process "set debug-hw-points".
18687 * server.h (debug_hw_points): Declare.
18688 (paddress): Declare.
18689 * utils.c (NUMCELLS, CELLSIZE): New macros.
18690 (get_sell, xsnprintf, paddress): New functions.
18691 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18692 remove_point, stopped_by_watchpoint, stopped_data_address.
18693 * win32-i386-low.c: Include i386-low.h.
18694 (debug_reg_state): Replaces dr.
18695 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18696 (i386_dr_low_get_status): New function.
18697 (i386_insert_point, i386_remove_point): New functions.
18698 (i386_stopped_by_watchpoint): New function.
18699 (i386_stopped_data_address): New function.
18700 (i386_initial_stuff): Update.
18701 (get_thread_context,set_thread_context,i386_thread_added): Update.
18702 (the_low_target): Add entries for insert_point,
18703 remove_point, stopped_by_watchpoint, stopped_data_address.
18704 * win32-low.c (win32_insert_watchpoint): New function.
18705 (win32_remove_watchpoint): New function.
18706 (win32_stopped_by_watchpoint): New function.
18707 (win32_stopped_data_address): New function.
18708 (win32_target_ops): Add entries for insert_watchpoint,
18709 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18710 * win32-low.h (win32_target_ops): New members insert_point,
18711 remove_point, stopped_by_watchpoint, stopped_data_address.
18713 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18715 * server.c (process_serial_event): Re-return unsupported, not
18716 error, if the type isn't recognized. Re-allow supporting only
18717 insert or remove packets. Also call require_running for
18718 breakpoints. Add missing break statement to default case. Tidy.
18719 * target.h (struct target_ops): Rename insert_watchpoint to
18720 insert_point, and remove_watchpoint to remove_point.
18722 * linux-low.h (struct linux_target_ops): Likewise.
18723 * linux-low.c (linux_insert_watchpoint): Rename to ...
18724 (linux_insert_point): ... this. Adjust.
18725 (linux_remove_watchpoint): Rename to ...
18726 (linux_remove_point): ... this. Adjust.
18727 (linux_target_ops): Adjust.
18728 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18729 (cris_insert_point): ... this.
18730 (cris_remove_watchpoint): Rename to ...
18731 (cris_remove_point): ... this.
18732 (the_low_target): Adjust.
18734 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18736 * server.c (handle_v_kill): Pass signal_pid to
18737 kill_inferior if multi_process is zero.
18739 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18741 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18742 * target.h (target_ops): Comment for *_watchpoint to make it clear
18743 the functions can get types '0' and '1'.
18745 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18747 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18748 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18749 * regcache.c (get_regcache): Likewise.
18750 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18751 * win32-low.c (child_fetch_inferior_registers): Remove check for
18754 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18755 Pedro Alves <pedro@codesourcery.com>
18757 * target.h (struct target_ops) <supports_multi_process>: New
18759 (target_supports_multi_process): New.
18760 * server.c (handle_query): Even if GDB reports support, only
18761 enable multi-process if the target also supports it. Report
18762 multi-process support only if the target backend supports it.
18763 * linux-low.c (linux_supports_multi_process): New function.
18764 (linux_target_ops): Install it as target_supports_multi_process
18767 2009-05-24 Doug Evans <dje@google.com>
18769 Global renaming of find_thread_pid to find_thread_ptid.
18770 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18771 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18772 All callers updated.
18774 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18775 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18778 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18779 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18780 (linux_resume_one_lwp): Ditto.
18782 2009-05-23 Doug Evans <dje@google.com>
18784 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18785 from struct inferior_list_entry * to struct lwp_info *.
18786 All callers updated.
18788 2009-05-13 Doug Evans <dje@google.com>
18790 * linux-x86-low.c: Don't include assert.h.
18791 (x86_siginfo_fixup): Use fatal, not assert.
18792 (x86_arch_setup): Fix comment.
18794 2009-05-12 Doug Evans <dje@google.com>
18796 Biarch support for i386/amd64 gdbserver.
18797 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18798 Add linux-x86-low.c.
18799 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18800 (linux-x86-low.o): Add.
18801 * linux-x86-64-low.c: Delete.
18802 * linux-i386-low.c: Delete.
18803 * linux-x86-low.c: New file.
18804 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18806 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18808 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18809 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18810 (linux_child_pid_to_exec_file): New function.
18811 (elf_64_header_p, elf_64_file_p): New functions.
18812 (siginfo_fixup): New function.
18813 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18814 give target a chance to convert layout.
18815 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18816 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18818 2009-05-07 Doug Evans <dje@google.com>
18820 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18821 (regsets_store_inferior_registers): Ditto.
18823 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18827 * linux-low.c (must_set_ptrace_flags): Delete.
18828 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18830 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18831 `lwp->must_set_ptrace_flags' instead.
18832 (linux_wait_for_event_1): Set ptrace options here.
18833 (linux_wait_1): ... not here.
18835 2009-04-30 Doug Evans <dje@google.com>
18837 * inferiors.c (started_inferior_callback): New function.
18838 (attached_inferior_callback): New function.
18839 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18840 * server.c (print_started_pid, print_attached_pid): New functions.
18841 (detach_or_kill_for_exit): New function.
18842 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18843 * server.h (have_started_inferiors_p): Declare.
18844 (have_attached_inferiors_p): Declare.
18846 * inferiors.c (remove_process): Fix memory leak, free process.
18847 * linux-low.c (linux_remove_process): New function.
18848 (linux_kill): Call it instead of remove_process.
18849 (linux_detach, linux_wait_1): Ditto.
18851 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18853 * configure.srv: Add x86 Windows CE target.
18855 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18857 * inferiors.c (get_thread_process): Make global.
18858 * server.h (get_thread_process): Add prototype.
18859 * thread-db.c (find_one_thread): Use get_thread_process
18860 instead of current_process.
18861 (thread_db_get_tls_address): Do not crash if called when
18862 thread layer is not yet initialized.
18864 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18866 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18867 * spu-low.c (current_tid): Rename to ...
18868 (current_ptid): ... this.
18869 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18870 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18871 ptid_get_lwp (current_ptid) instead of current_tid.
18872 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18873 instead of current_tid. Use find_process_pid to verify pid
18874 argument is valid. Pass proper argument to remove_process.
18875 (spu_thread_alive): Compare current_ptid instead of current_tid.
18876 (spu_resume): Likewise.
18878 2009-04-02 Pedro Alves <pedro@codesourcery.com>
18880 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18883 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18885 Implement the multiprocess extensions, and add linux multiprocess
18888 * server.h (ULONGEST): Declare.
18889 (struct ptid, ptid_t): New.
18890 (minus_one_ptid, null_ptid): Declare.
18891 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18892 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18893 (struct inferior_list_entry): Change `id' type from unsigned from
18895 (struct sym_cache, struct breakpoint, struct
18896 process_info_private): Forward declare.
18897 (struct process_info): Declare.
18898 (current_process): Declare.
18899 (all_processes): Declare.
18900 (initialize_inferiors): Declare.
18901 (add_thread): Adjust to use ptid_t.
18902 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18903 (add_process, remove_process, find_thread_pid): Declare.
18904 (find_inferior_id): Adjust to use ptid_t.
18905 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18906 (multi_process): Declare.
18907 (push_event): Adjust to use ptid_t.
18908 (read_ptid, write_ptid): Declare.
18909 (prepare_resume_reply): Adjust to use ptid_t.
18910 (clear_symbol_cache): Declare.
18911 * inferiors.c (all_processes): New.
18912 (null_ptid, minus_one_ptid): New.
18913 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18914 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18915 (add_thread): Change unsigned long to ptid. Remove gdb_id
18917 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18918 (gdb_id_to_thread): Rename to ...
18919 (find_thread_pid): ... this. Change unsigned long to ptid.
18920 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18921 (loaded_dll, pull_pid_from_list): Adjust.
18922 (add_process, remove_process, find_process_pid)
18923 (get_thread_process, current_process, initialize_inferiors): New.
18924 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18925 (struct target_waitstatus) <related_pid>: Ditto.
18926 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18927 return type to int.
18928 (struct target_ops) <join>: Add `pid' argument.
18929 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18930 (struct target_ops) <wait>: Add `ptid' field. Change return type
18932 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18933 (mywait): Add `ptid' argument. Change return type to ptid_t.
18934 (target_pid_to_str): Declare.
18935 * target.c (set_desired_inferior): Adjust to use ptids.
18936 (mywait): Add new `ptid' argument. Adjust.
18937 (target_pid_to_str): New.
18938 * mem-break.h (free_all_breakpoints): Declare.
18939 * mem-break.c (breakpoints): Delelete.
18940 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18941 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18942 to use per-process breakpoint list.
18943 (free_all_breakpoints): New.
18944 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18945 (symbol_cache, all_symbols_looked_up): Delete.
18947 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18949 (prepare_resume_reply): Change ptid argument's type from unsigned
18950 long to ptid_t. Adjust. Implement W;process and X;process.
18951 (free_sym_cache, clear_symbol_cache): New.
18952 (look_up_one_symbol): Adjust to per-process symbol cache. *
18953 * server.c (cont_thread, general_thread, step_thread): Change type
18955 (attached): Delete.
18956 (multi_process): New.
18957 (last_ptid): Change type to ptid_t.
18958 (struct vstop_notif) <ptid>: Change type to ptid_t.
18959 (queue_stop_reply, push_event): Change `ptid' argument's type to
18961 (discard_queued_stop_replies): Add `pid' argument.
18962 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18963 changes. Don't reference the `attached' global.
18964 (attach_inferior): Adjust to mywait interface changes.
18965 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18966 features. Handle and report "multiprocess+". Handle
18968 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18970 (handle_v_kill): New.
18971 (handle_v_stopped): Adjust to use target_pid_to_str.
18972 (handle_v_requests): Allow multiple attaches and runs when
18973 multiprocess extensions are in effect. Handle "vKill".
18974 (myresume): Adjust to use ptids.
18975 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18976 (handle_status): Adjust to discard_queued_stop_replies interface
18978 (first_thread_of, kill_inferior_callback)
18979 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18980 (main): Call initialize_inferiors. Adjust to use ptids, killing
18981 and detaching from all inferiors. Handle multiprocess packet
18983 * linux-low.h: Include gdb_proc_service.h.
18984 (struct process_info_private): New.
18985 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18986 <lwpid_of>: Use ptid_get_lwp.
18987 (get_lwp_thread): Adjust.
18988 (struct lwp_info): Add `dead' member.
18989 (find_lwp_pid): Declare.
18990 * linux-low.c (thread_db_active): Delete.
18991 (new_inferior): Adjust comment.
18992 (inferior_pid): Delete.
18993 (linux_add_process): New.
18994 (handle_extended_wait): Adjust.
18995 (add_lwp): Change unsigned long to ptid.
18996 (linux_create_inferior): Add process to processes table. Adjust
18997 to use ptids. Don't set new_inferior here.
18998 (linux_attach_lwp): Rename to ...
18999 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19000 it. Adjust to use ptids.
19001 (linux_attach_lwp): New.
19002 (linux_attach): Add process to processes table. Don't set
19004 (struct counter): New.
19005 (second_thread_of_pid_p, last_thread_of_process_p): New.
19006 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19007 multiple processes.
19008 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19009 processes. Remove process from process table.
19010 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19011 to multiple processes.
19012 (any_thread_of): New.
19013 (linux_detach): Add `pid' argument, and handle it. Remove process
19014 from processes table.
19015 (linux_join): Add `pid' argument. Handle it.
19016 (linux_thread_alive): Change unsighed long argument to ptid_t.
19017 Consider dead lwps as not being alive.
19018 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19019 threads we're not interested in.
19020 (same_lwp, find_lwp_pid): New.
19021 (linux_wait_for_lwp): Change `pid' argument's type from int to
19023 (linux_wait_for_event): Rename to ...
19024 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19025 from int to ptid_t. Adjust.
19026 (linux_wait_for_event): New.
19027 (linux_wait_1): Add `ptid' argument. Change return type to
19028 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19029 that exit from the process table.
19030 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19032 (mark_lwp_dead): New.
19033 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19034 stopping all threads, mark its main lwp as dead.
19035 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19037 (fetch_register, usr_store_inferior_registers)
19038 (regsets_fetch_inferior_registers)
19039 (regsets_store_inferior_registers, linux_read_memory)
19040 (linux_write_memory): Inline `inferior_pid'.
19041 (linux_look_up_symbols): Adjust to use per-process
19042 `thread_db_active'.
19043 (linux_request_interrupt): Adjust to use ptids.
19044 (linux_read_auxv): Inline `inferior_pid'.
19045 (initialize_low): Don't reference thread_db_active.
19046 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19047 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19048 (ps_getpid): Return the pid of the current inferior.
19049 * thread-db.c (proc_handle, thread_agent): Delete.
19050 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19052 (find_one_thread): Change argument type to ptid_t. Adjust to
19054 (maybe_attach_thread): Adjust to per-process data and ptids.
19055 (thread_db_find_new_threads): Ditto.
19056 (thread_db_init): Ditto.
19057 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19058 processes table. Adjust to use ptids.
19059 (spu_kill, spu_detach): Adjust interface. Remove process from
19061 (spu_join, spu_thread_alive): Adjust interface.
19062 (spu_wait): Adjust interface. Remove process from processes
19063 table. Adjust to use ptids.
19064 * win32-low.c (current_inferior_tid): Delete.
19065 (current_inferior_ptid): New.
19066 (debug_event_ptid): New.
19067 (thread_rec): Take a ptid. Adjust.
19068 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19069 (child_delete_thread): Ditto.
19070 (do_initial_child_stuff): Add `attached' argument. Add process to
19072 (child_fetch_inferior_registers, child_store_inferior_registers):
19074 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19075 (win32_attach): Pass 1 to do_initial_child_stuff.
19076 (win32_kill): Adjust interface. Remove process from processes
19078 (win32_detach): Ditto.
19079 (win32_join): Adjust interface.
19080 (win32_thread_alive): Take a ptid.
19081 (win32_resume): Adjust to use ptids.
19082 (get_child_debug_event): Ditto.
19083 (win32_wait): Adjust interface. Remove exiting process from
19086 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19088 Non-stop mode support.
19090 * server.h (non_stop): Declare.
19091 (gdb_client_data, handler_func): Declare.
19092 (delete_file_handler, add_file_handler, start_event_loop):
19094 (handle_serial_event, handle_target_event, push_event)
19095 (putpkt_notif): Declare.
19096 * target.h (enum resume_kind): New.
19097 (struct thread_resume): Replace `step' field by `kind' field.
19098 (TARGET_WNOHANG): Define.
19099 (struct target_ops) <wait>: Add `options' argument.
19100 <supports_non_stop, async, start_non_stop>: New fields.
19101 (target_supports_non_stop, target_async): New.
19102 (start_non_stop): Declare.
19103 (mywait): Add `options' argument.
19104 * target.c (mywait): Add `options' argument. Print child exit
19105 notifications here.
19106 (start_non_stop): New.
19107 * server.c (non_stop, own_buf, mem_buf): New globals.
19108 (struct vstop_notif): New.
19109 (notif_queue): New global.
19110 (queue_stop_reply, push_event, discard_queued_stop_replies)
19111 (send_next_stop_reply): New.
19112 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19114 (attach_inferior): In non-stop mode, don't wait for the target
19116 (handle_general_set): Handle QNonStop.
19117 (handle_query): When handling qC, return the current general
19118 thread, instead of the first thread of the list.
19119 (handle_query): If the backend supports non-stop mode, include
19120 QNonStop+ in the qSupported query response.
19121 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19123 (handle_v_attach, handle_v_run): Handle non-stop mode.
19124 (handle_v_stopped): New.
19125 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19126 (myresume): Adjust to use resume_kind. Handle non-stop.
19127 (queue_stop_reply_callback): New.
19128 (handle_status): Handle non-stop mode.
19129 (main): Clear non_stop flag on reconnection. Use the event-loop.
19130 Refactor serial protocol handling from here ...
19131 (process_serial_event): ... to this new function. When GDB
19132 selects any thread, select one here. In non-stop mode, wait until
19133 GDB acks all pending events before exiting.
19134 (handle_serial_event, handle_target_event): New.
19135 * remote-utils.c (remote_open): Install remote_desc in the event
19137 (remote_close): Remove remote_desc from the event loop.
19138 (putpkt_binary): Rename to...
19139 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19140 (putpkt_binary): New as wrapper around putpkt_binary_1.
19141 (putpkt_notif): New.
19142 (prepare_resume_reply): In non-stop mode, don't change the
19144 * event-loop.c: New.
19145 * Makefile.in (OBJ): Add event-loop.o.
19146 (event-loop.o): New rule.
19148 * linux-low.h (pid_of): Moved here.
19150 (get_lwp_thread): Use lwpid_of.
19151 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19152 * linux-low.c (pid_of): Delete.
19153 (inferior_pid): Use lwpid_of.
19154 (linux_event_pipe): New.
19155 (target_is_async_p): New.
19157 (handle_extended_wait): Use lwpid_of.
19158 (add_lwp): Don't set lwpid field.
19159 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19160 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19161 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19162 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19163 first. Adjust to linux_wait_for_event interface changes. Use
19165 (linux_detach): Don't delete the main lwp here.
19166 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19167 (status_pending_p): Don't consider explicitly suspended lwps.
19168 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19169 pointer. Add OPTIONS argument. Change return type to int. Use
19170 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19171 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19172 pointer. Add status pointer argument. Return a pid instead of a
19173 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19174 changes. In non-stop mode, don't switch to a random thread.
19175 (linux_wait): Rename to...
19176 (linux_wait_1): ... this. Add target_options argument, and handle
19177 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19178 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19179 clean exit and signal exit code. Don't stop all threads in
19180 non-stop mode. In all-stop mode, only stop all threads when
19181 reporting a stop to GDB. Handle explicit thread stop requests.
19182 (async_file_flush, async_file_mark): New.
19184 (send_sigstop): Use lwpid_of.
19185 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19186 interface changes. In non-stop mode, don't switch to a random
19188 (linux_resume_one_lwp): Use lwpid_of.
19189 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19190 (linux_resume_one_thread): ... this. Handle resume_stop. In
19191 non-stop mode, don't look for pending flag in all threads.
19192 (resume_status_pending_p): Don't consider explicitly suspended
19194 (my_waitpid): Reimplement. Emulate __WALL.
19195 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19197 (sigchld_handler, linux_supports_non_stop, linux_async)
19198 (linux_start_non_stop): New.
19199 (linux_target_ops): Register linux_supports_non_stop, linux_async
19200 and linux_start_non_stop.
19201 (initialize_low): Install SIGCHLD handler.
19202 * thread-db.c (thread_db_create_event, find_one_thread)
19203 (thread_db_get_tls_address): Use lwpid_of.
19204 * win32-low.c (win32_detach): Adjust to use resume_kind.
19205 (win32_wait): Add `options' argument.
19206 * spu-low.c (spu_resume): Adjust to use resume_kind.
19207 (spu_wait): Add `options' argument.
19209 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19211 Decouple target code from remote protocol.
19213 * target.h (enum target_waitkind): New.
19214 (struct target_waitstatus): New.
19215 (struct target_ops) <wait>: Return an unsigned long. Take a
19216 target_waitstatus pointer instead of a char pointer.
19217 (mywait): Likewise.
19218 * target.c (mywait): Change prototype to return an unsigned long.
19219 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19220 * server.h (thread_from_wait, old_thread_from_wait): Delete
19222 (prepare_resume_reply): Change prototype to take a
19224 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19225 (last_status, last_ptid): New.
19226 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19227 pid instead of a signal.
19228 (attach_inferior): Remove "status" and "signal" parameters.
19230 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19232 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19233 (handle_v_requests, myresume): Remove "status" and "signal"
19234 parameters. Adjust.
19235 (handle_status): New.
19236 (main): Delete local `status'. Adjust.
19237 * remote-utils.c: Include target.h.
19238 (prepare_resume_reply): Change prototype to take a
19239 target_waitstatus. Adjust.
19241 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19243 * spu-low.c (spu_wait): Adjust.
19244 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19246 (win32_wait): Adjust.
19248 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19250 * target.h (struct thread_resume): Delete leave_stopped member.
19251 (struct target_ops): Add a `n' argument to the `resume' callback.
19252 * server.c (start_inferior): Adjust.
19253 (handle_v_cont, myresume): Adjust.
19254 * linux-low.c (check_removed_breakpoint): Adjust to resume
19255 interface change, and to removed leave_stopped field.
19256 (resume_ptr): Delete.
19257 (struct thread_resume_array): New.
19258 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19259 resume interface change.
19260 (linux_continue_one_thread, linux_queue_one_thread)
19261 (resume_status_pending_p): Check if the resume field is NULL
19262 instead of checking the leave_stopped member.
19263 (linux_resume): Adjust to the target resume interface change.
19264 * spu-low.c (spu_resume): Adjust to the target resume interface
19266 * win32-low.c (win32_detach, win32_resume): Ditto.
19268 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19270 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19272 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19274 (linux_continue_one_thread): Only preserve the stepping flag if
19275 there's a pending breakpoint.
19277 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19279 * server.c (main): After the inferior having exited, call
19280 remote_close before exiting gdbserver.
19282 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19284 Fix size of FPSCR in Power 7 processors.
19285 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19286 (PPC_FEATURE_HAS_DFP): New #define.
19287 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19290 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19292 * server.c (handle_query) Whitespace and formatting.
19294 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19296 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19297 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19298 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19299 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19300 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19301 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19302 Makefile.in, configure.ac: Fix whitespace throughout.
19303 * configure: Regenerate.
19305 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19307 * inferiors.c (find_inferior): Make it safe for the callback
19308 function to delete the currently iterated inferior.
19310 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19312 * Makefile.in (linuw_low_h): Move higher.
19313 (thread-db.o): Depend on $(linux_low_h).
19315 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19317 Rename "process" to "lwp" throughout.
19319 * linux-low.c (all_processes): Rename to...
19320 (all_lwps): ... this.
19321 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19322 (add_process): Rename to ...
19323 (add_lwp): ... this. Adjust.
19324 (linux_create_inferior): Adjust.
19325 (linux_attach_lwp): Adjust.
19326 (linux_attach): Adjust.
19327 (linux_kill_one_process): Rename to ...
19328 (linux_kill_one_lwp): ... this. Adjust.
19329 (linux_kill): Adjust.
19330 (linux_detach_one_process): Rename to ...
19331 (linux_detach_one_lwp): ... this. Adjust.
19332 (linux_detach): Adjust.
19333 (check_removed_breakpoint): Adjust.
19334 (status_pending_p): Adjust.
19335 (linux_wait_for_process): Rename to ...
19336 (linux_wait_for_lwp): ... this. Adjust.
19337 (linux_wait_for_event): Adjust.
19338 (send_sigstop): Adjust.
19339 (wait_for_sigstop): Adjust.
19340 (stop_all_processes): Rename to ...
19341 (stop_all_lwps): ... this.
19342 (linux_resume_one_process): Rename to ...
19343 (linux_resume_one_lwp): ... this. Adjust.
19344 (linux_set_resume_request, linux_continue_one_thread)
19345 (linux_queue_one_thread, resume_status_pending_p)
19346 (usr_store_inferior_registers, regsets_store_inferior_registers)
19347 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19349 * linux-low.h (get_process): Rename to ...
19350 (get_lwp): ... this. Adjust.
19351 (get_thread_process): Rename to ...
19352 (get_thread_lwp): ... this. Adjust.
19353 (get_process_thread): Rename to ...
19354 (get_lwp_thread): ... this. Adjust.
19355 (struct process_info): Rename to ...
19356 (struct lwp_info): ... this.
19357 (all_processes): Rename to ...
19358 (all_lwps): ... this.
19359 * proc-service.c (ps_lgetregs): Adjust.
19360 * thread-db.c (thread_db_create_event, find_one_thread)
19361 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19363 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19365 * server.c (handle_query): Handle "qAttached".
19367 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19369 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19370 GPLv3, update license URL.
19372 2009-03-01 Doug Evans <dje@google.com>
19374 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19375 (server_h): Add gdb_signals.h.
19376 (signals.o): Update.
19377 * server.h (target_signal_from_host,target_signal_to_host_p)
19378 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19380 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19382 * remote-utils.c (getpkt): Also generate remote-debug
19383 information if noack_mode is set.
19385 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19387 * server.c (handle_query): Report qXfer:siginfo:read and
19388 qXfer:siginfo:write as supported and handle them.
19389 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19390 * linux-low.c (linux_xfer_siginfo): New.
19391 (linux_target_ops): Set it.
19393 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19395 * server.c (gdbserver_usage): Mention --remote-debug.
19396 (main): Accept '--remote-debug' switch.
19398 2009-01-18 Doug Evans <dje@google.com>
19400 * regcache.c (new_register_cache): No need to check result of xcalloc.
19401 * server.c (handle_search_memory): Back out calls to xmalloc,
19402 result is checked and error is returned to user upon failure.
19403 (handle_query): Ditto. Add more checks for result of malloc.
19404 (handle_v_cont): Check result of malloc, report error back to
19406 (handle_v_run): Ditto. Call freeargv.
19407 * server.h (freeargv): Declare.
19408 * utils.c (freeargv): New fn.
19410 2009-01-15 Doug Evans <dje@google.com>
19412 * gdbreplay.c (perror_with_name): Make arg const char *.
19413 * server.h (target_signal_to_name): Make return type const char *.
19414 * thread-db.c (thread_db_err_str): Make return type const char *.
19415 * utils.c (perror_with_name): Make arg const char *.
19417 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19419 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19420 when handling a EXIT_PROCESS_DEBUG_EVENT.
19422 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19424 * gdbreplay.c (gdbreplay_version): Update copyright year.
19425 * server.c (gdbserver_version): Likewise.
19427 2009-01-05 Doug Evans <dje@google.com>
19429 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19430 (handle_extended_wait): Improve comment.
19432 2008-12-13 Doug Evans <dje@google.com>
19434 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19435 * server.h (ATTR_MALLOC): New macro.
19436 (xmalloc,xcalloc,xstrdup): Declare.
19437 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19438 * inferiors.c: Ditto.
19439 * linux-low.c: Ditto.
19440 * mem-break.c: Ditto.
19441 * regcache.c: Ditto.
19442 * remote-utils.c: Ditto.
19445 * win32-low.c: Ditto.
19447 2008-12-12 Doug Evans <dje@google.com>
19449 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19450 in debugging printf.
19452 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19454 2008-12-09 Doug Evans <dje@google.com>
19456 * linux-low.h (struct process_info): Delete member tid, unused.
19457 * thread-db.c (find_one_thread): Update.
19458 (maybe_attach_thread): Update.
19460 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19462 * target.h (struct target_ops): Add qxfer_osdata member.
19463 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19465 (linux_qxfer_osdata): New functions.
19466 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19468 * server.c (handle_query): Handle "qXfer:osdata:read:".
19469 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19470 (buffer_xml_printf): New functions.
19471 * server.h (struct buffer): New.
19472 (buffer_grow_str, buffer_grow_str0): New macros.
19473 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19474 (buffer_xml_printf): Declare.
19476 2008-11-24 Doug Evans <dje@google.com>
19478 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19480 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19482 * server.c (handle_v_run): Always use the supplied argument list.
19484 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19486 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19487 (xtensa_regmap_table): Add entry for scompare1.
19489 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19491 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19492 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19493 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19494 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19495 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19496 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19497 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19498 XML target descriptions.
19499 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19500 when inferior is running on an ISA 2.05 or later processor. Add
19501 special case to return offset for full 64-bit slot of FPSCR when
19504 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19506 * Makefile.in (SFILES, clean): Added sparc64 files.
19507 (reg-sparc64.o, reg-sparc64.c): New.
19508 * configure.srv (sparc*-*-linux*): New configuration.
19509 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19510 syscall arguments for SPARC.
19511 (regsets_store_inferior_registers): Likewise.
19512 * linux-sparc-low.c: New file.
19514 2008-10-21 Doug Evans <dje@google.com>
19516 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19517 (READLINE_DIR,READLINE_DEP): Delete.
19518 (INTERNAL_CFLAGS): Update.
19519 (LINTFLAGS): Update.
19521 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19523 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19524 whole argv from the last run, not just argv[0].
19526 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19528 * regcache.c (new_register_cache): Return NULL if the register
19529 cache size isn't known yet.
19530 (free_register_cache): Avoid dereferencing a NULL regcache.
19532 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19534 * configure.srv: Merge MIPS and MIPS64.
19536 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19538 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19540 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19542 * Makefile.in: Add required vsx dependencies.
19544 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19545 Declare init_registers_powerpc_vsx32l.
19546 Declare init_registers_powerpc_vsx64l.
19547 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19548 (ppc_arch_setup): Check for VSX in hwcap.
19549 (ppc_fill_vsxregset): New function.
19550 (ppc_store_vsxregset): New function.
19551 Add new VSX entry in regset_info target_regsets.
19553 * configure.srv: Add new VSX dependencies.
19555 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19557 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19558 (remote_open): Set or clear transport_is_reliable.
19559 (putpkt_binary): Don't expect acks in noack mode.
19560 (getpkt): Don't send ack/nac in noack mode.
19561 * server.c (handle_general_set): Handle QStartNoAckMode.
19562 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19564 (main): Reset noack_mode on every connection.
19565 * server.h (noack_mode): Declare.
19567 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19569 * Makefile.in (GDBREPLAY_OBS): New variable.
19570 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19572 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19573 Daniel Jacobowitz <dan@codesourcery.com>
19575 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19576 (usr_store_inferior_registers): Likewise.
19577 (regsets_store_inferior_registers): Likewise.
19579 2008-07-31 Rolf Jansen <rj@surtec.com>
19580 Pedro Alves <pedro@codesourcery.com>
19582 * configure.ac: Check for memmem declaration.
19583 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19584 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19585 (disable_packet_qfThreadInfo): Unconditionally compile.
19586 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19587 * configure, config.in: Regenerate.
19589 2008-07-28 Doug Kwan <dougkwan@google.com>
19591 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19592 (linux_write_memory): Remove declaration of errno.
19594 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19596 * linux-low.c (handle_extended_wait): Do not use "status"
19597 variable uninitialized.
19599 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19601 * server.c (handle_v_attach): Inhibit reporting dll changes.
19603 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19605 * remote-utils.c (prepare_resume_reply): If requested, don't
19606 output "thread:TID" in the T stop reply.
19608 * server.c (disable_packet_vCont, disable_packet_Tthread)
19609 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19610 (handle_query): If requested, disable support for qC, qfThreadInfo
19612 (handle_v_requests): If requested, disable support for vCont.
19613 (gdbserver_show_disableable): New.
19614 (main): Handle --disable-packet and --disable-packet=LIST.
19616 * server.h (disable_packet_vCont, disable_packet_Tthread)
19617 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19619 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19621 * server.c (gdbserver_usage): Mention --version.
19623 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19625 * Makefile.in (gdbreplay.o): New rule.
19627 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19629 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19630 message, not gdbserver.
19632 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19633 Nathan Sidwell <nathan@codesourcery.com>
19634 Joseph Myers <joseph@codesourcery.com>
19636 * acinclude.m4: Include ../../config/acx.m4.
19637 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19638 * configure, config.in: Regenerate.
19639 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19640 * server.c (gdbserver_version): Print PKGVERSION.
19641 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19642 (main): Adjust gdbserver_usage calls.
19643 * gdbreplay.c (version, host_name): Add declarations.
19644 (gdbreplay_version, gdbreplay_usage): New.
19645 (main): Accept --version and --help options.
19647 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19649 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19650 (arm_breakpoint_at): Handle Thumb.
19651 (the_low_target): Add comment.
19653 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19655 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19657 2008-05-09 Doug Evans <dje@google.com>
19659 * server.h (decode_search_memory_packet): Declare.
19660 * remote-utils.c (decode_search_memory_packet): New fn.
19661 * server.c (handle_search_memory_1): New fn.
19662 (handle_search_memory): New fn.
19663 (handle_query): Process qSearch:memory packets.
19665 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19667 * regcache.c (registers_length): Remove.
19668 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19669 full register packet.
19670 * regcache.h (registers_length): Remove prototype.
19671 * server.h (PBUFSIZ): Define to 16384.
19673 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19675 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19676 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19677 powerpc-64l.o, and powerpc-altivec64l.o.
19678 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19679 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19680 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19681 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19682 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19685 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19686 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19687 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19688 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19689 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19690 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19691 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19692 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19693 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19694 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19697 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19698 (init_registers_powerpc_32l): ... this new prototype.
19699 (init_registers_powerpc_32): Remove, replace by ...
19700 (init_registers_powerpc_altivec32l): ... this new prototype.
19701 (init_registers_powerpc_e500): Remove, replace by ...
19702 (init_registers_powerpc_e500l): ... this new prototype.
19703 (init_registers_ppc64): Remove, replace by ...
19704 (init_registers_powerpc_64l): ... this new prototype.
19705 (init_registers_powerpc_64): Remove, replace by ...
19706 (init_registers_powerpc_altivec64l): ... this new prototype.
19707 (ppc_num_regs): Set to 73.
19708 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19709 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19710 (ppc_cannot_store_register): Handle orig_r3 and trap.
19711 (ppc_arch_setup): Update init_registers_... calls.
19712 (ppc_fill_gregset): Handle orig_r3 and trap.
19714 * inferiors.c (clear_inferiors): Reset current_inferior.
19716 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19718 * acinclude.m4: Add override.m4.
19719 * configure: Regenerate.
19721 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19723 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19724 initial call to init_register_ppc64.
19726 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19728 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19729 single powerpc*-*-linux* case.
19730 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19732 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19734 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19735 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19737 * linux-ppc-low.c: Include <elf.h>.
19738 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19739 (ppc_hwcap): New global variable.
19740 (ppc_regmap): Remove __SPE__ #ifdef sections.
19741 (ppc_regmap_e500): New global variable.
19742 (ppc_cannot_store_register): Update __SPE__ special case.
19743 (ppc_get_hwcap): New function.
19744 (ppc_arch_setup): Use it to determine whether inferior supports
19745 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19746 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19747 Do not access registers if target does not support AltiVec.
19748 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19749 Do not access registers if target does not support SPE.
19750 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19752 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19754 * linux-low.c (disabled_regsets, num_regsets): New.
19755 (use_regsets_p): Delete.
19756 (linux_wait_for_process): Clear disabled_regsets.
19757 (regsets_fetch_inferior_registers): Check and set it.
19758 (regsets_store_inferior_registers): Likewise.
19759 (linux_fetch_registers, linux_store_registers): Do not use
19761 (initialize_low): Allocate disabled_regsets.
19763 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19765 * Makefile.in (LIBOBJS): New.
19766 (OBS): Use LIBOBJS.
19767 (memmem.o): New rule.
19768 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19769 * configure: Regenerated.
19771 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19773 * server.c (handle_query): Never return "unsupported" for
19774 qXfer:features:read queries.
19776 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19778 * server.c (get_features_xml): Fix inverted condition.
19779 (handle_query): Always support qXfer:feature:read.
19781 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19783 * server.c (wrapper_argv): New.
19784 (start_inferior): Handle wrapper_argv. If set, expect an extra
19786 (gdbserver_usage): Document --wrapper.
19787 (main): Parse --wrapper.
19789 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19791 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19792 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19793 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19794 (ppc_set_pc): Likewise.
19795 (ppc_arch_setup): New function.
19796 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19797 of collect_register.
19798 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19800 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19802 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19803 instead of linux-ppc64-low.o.
19804 * linux-ppc64-low.c: Remove file.
19805 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19806 (linux-ppc64-low.o): Remove rule.
19808 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19809 (init_registers_powerpc_64): Likewise.
19810 (ppc_regmap): Conditionally define depending on __powerpc64__.
19811 (ppc_cannot_store_register): Do not special-case "fpscr" when
19812 compiled on __powerpc64__.
19813 (ppc_collect_ptrace_register): New function.
19814 (ppc_supply_ptrace_register): New function.
19815 (ppc_breakpoint): Change type to "unsigned int".
19816 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19817 (the_low_target): Conditionally provide initializers for the
19818 arch_setup member depending on __powerpc64__. Install
19819 collect_ptrace_register and supply_ptrace_register members.
19821 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19823 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19824 * server.c (gdbserver_xmltarget): Define.
19825 (get_features_xml): Use it to replace "target.xml" and arch_string.
19827 * configure.srv: Remove srv_xmltarget. Add XML files that were
19828 mentioned there to srv_xmlfiles instead. Remove conditional tests
19829 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19830 srv_xmlfiles and srv_regobj to include all possible choices.
19831 * configure.ac (srv_xmltarget): Remove.
19832 (srv_xmlfiles): Do not add "target.xml".
19833 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19834 checks for supplementary target information.
19835 * configure: Regenerate.
19836 * Makefile.in (XML_TARGET): Remove.
19837 (target.xml): Remove rule.
19838 (clean): Do not clean up target.xml.
19839 (.PRECIOUS): Do not mention target.xml.
19841 * target.h (struct target_ops): Remove arch_string member.
19842 * linux-low.c (linux_arch_string): Remove.
19843 (linux_target_ops): Remove arch_string initializer.
19844 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19845 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19846 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19847 * spu-low.c (spu_arch_string): Remove.
19848 (spu_target_ops): Remove arch_string initializer.
19849 * win32-low.c (win32_arch_string): Remove.
19850 (win32_target_ops): Remove arch_string initializer.
19851 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19852 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19853 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19855 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19857 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19858 by collect_ptrace_register and supply_ptrace_register hooks.
19859 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19860 instead of checking for the_low_target.left_pad_xfer.
19861 (usr_store_inferior_registers): Use collect_ptrace_register callback
19862 instead of checking for the_low_target.left_pad_xfer.
19864 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19865 (s390_supply_ptrace_register): Likewise.
19866 (s390_fill_gregset): Call s390_collect_ptrace_register.
19867 (the_low_target): Update.
19869 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19870 (ppc_supply_ptrace_register): Likewise.
19871 (the_low_target): Update.
19873 * linux-i386-low.c (the_low_target): Update.
19874 * linux-x86-64-low.c (the_low_target): Update.
19876 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19878 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19879 reg-s390.o and reg-s390x.o.
19881 * linux-low.c (new_inferior): New global variable.
19882 (linux_create_inferior, linux_attach): Set it.
19883 (linux_wait_for_process): Call the_low_target.arch_setup after the
19884 target has stopped for the first time.
19885 (initialize_low): Do not call the_low_target.arch_setup.
19887 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19888 (s390_set_pc): Likewise.
19889 (s390_arch_setup): New function.
19890 (the_low_target): Use s390_arch_setup as arch_setup routine.
19892 * regcache.c (realloc_register_cache): New function.
19893 (set_register_cache): Call it for each existing regcache.
19895 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19897 * server.h (init_registers): Remove prototype.
19899 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19900 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19901 instead of init_registers ().
19902 * linux-arm-low.c (init_registers_arm): Add prototype.
19903 (init_registers_arm_with_iwmmxt): Likewise.
19904 (the_low_target): Add initializer for arch_setup field.
19905 * linux-cris-low.c (init_registers_cris): Add prototype.
19906 (the_low_target): Add initializer for arch_setup field.
19907 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19908 (the_low_target): Add initializer for arch_setup field.
19909 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19910 (the_low_target): Add initializer for arch_setup field.
19911 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19912 (the_low_target): Add initializer for arch_setup field.
19913 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19914 (the_low_target): Add initializer for arch_setup field.
19915 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19916 (the_low_target): Add initializer for arch_setup field.
19917 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19918 (init_registers_mips64_linux): Likewise.
19919 (the_low_target): Add initializer for arch_setup field.
19920 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19921 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19922 (the_low_target): Add initializer for arch_setup field.
19923 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19924 (init_registers_powerpc_64): Likewise.
19925 (the_low_target): Add initializer for arch_setup field.
19926 * linux-s390-low.c (init_registers_s390): Add prototype.
19927 (init_registers_s390x): Likewise.
19928 (the_low_target): Add initializer for arch_setup field.
19929 * linux-sh-low.c (init_registers_sh): Add prototype.
19930 (the_low_target): Add initializer for arch_setup field.
19931 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19932 (the_low_target): Add initializer for arch_setup field.
19933 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19934 (the_low_target): Add initializer for arch_setup field.
19936 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19937 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19938 instead of init_registers ().
19939 * win32-arm-low.c (init_registers_arm): Add prototype.
19940 (the_low_target): Add initializer for arch_setup field.
19941 * win32-i386-low.c (init_registers_i386): Add prototype.
19942 (the_low_target): Add initializer for arch_setup field.
19944 * spu-low.c (init_registers_spu): Add prototype.
19945 (initialize_low): Call initialie_registers_spu () instead of
19946 initialize_registers ().
19948 2008-02-19 Pedro Alves <pedro@codesourcery.com>
19950 * server.c (handle_v_requests): When handling the vRun and vAttach
19951 packets, if already debugging a process, don't kill it. Return an
19954 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19956 * server.c (handle_query): Correct length check.
19958 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19960 * win32-low.c (do_initial_child_stuff): Add process handle
19961 parameter. Set current_process_handle and current_process_id from the
19962 parameters. Clear globals.
19963 (win32_create_inferior): Don't set current_process_handle and
19964 current_process_id here. Instead pass them on the call to
19965 do_initial_child_stuff.
19966 (win32_attach): Likewise.
19967 (win32_clear_inferiors): New.
19968 (win32_kill): Don't close the current process handle or the
19969 current thread handle here. Instead call win32_clear_inferiors.
19970 (win32_detach): Don't open a new handle to the process. Call
19971 win32_clear_inferiors.
19972 (win32_join): Don't rely on current_process_handle; open a new
19973 handle using the process id.
19974 (win32_wait): Call win32_clear_inferiors when the inferior process
19977 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19979 * server.c (monitor_show_help): Add "exit".
19981 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19983 * Makefile.in (SFILES): Add linux-xtensa-low.c.
19984 (clean): Add reg-xtensa.c.
19985 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
19986 * configure.srv (xtensa*-*-linux*) New target.
19987 * linux-xtensa-low.c: New.
19988 * xtensa-xtregs.c: New.
19990 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19992 * hostio.c: Don't include errno.h.
19993 (errno_to_fileio_errno): Move to hostio-errno.
19994 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19995 error number outputting to the target->hostio_last_error callback.
19996 (hostio_packet_error): Use FILEIO_EINVAL directly.
19997 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19998 calls to hostio_error.
19999 * hostio-errno.c: New.
20000 * server.h (hostio_last_error_from_errno): Declare.
20001 * target.h (target_ops): Add hostio_last_error member.
20002 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20003 as hostio_last_error handler.
20004 * spu-low.c (spu_target_ops): Likewise.
20005 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20006 (wince_hostio_last_error): New functions.
20007 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20008 as hostio_last_error handler.
20009 (win32_target_ops) [!_WIN32_WCE]: Register
20010 hostio_last_error_from_errno as hostio_last_error handler.
20011 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20012 (hostio-errno.o): New rule.
20013 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20014 * configure.srv (srv_hostio_err_objs): New variable. Default to
20016 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20017 * configure: Regenerate.
20019 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20021 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20022 (linux_kill, linux_detach): Clean up the process list.
20023 * remote-utils.c (remote_open): Improve port number parsing.
20024 (putpkt_binary, input_interrupt): Only send interrupts if the target
20026 * server.c (extended_protocol): Make static.
20027 (attached): Define earlier.
20028 (exit_requested, response_needed, program_argv): New variables.
20029 (target_running): New.
20030 (start_inferior): Clear attached here.
20031 (attach_inferior): Set attached here.
20032 (require_running): Define.
20033 (handle_query): Use require_running and target_running. Implement
20035 (handle_v_attach, handle_v_run): New.
20036 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20037 (gdbserver_usage): Update.
20038 (main): Redo argument parsing. Handle --debug and --multi. Handle
20039 --attach along with other options or after the port. Save
20040 program_argv. Support no initial program. Resynchronize
20041 communication with GDB after an error. Handle "monitor exit".
20042 Use require_running and target_running. Always allow the extended
20043 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20044 restart in extended mode.
20045 * README: Refer to the GDB manual. Update --attach usage.
20047 2007-12-20 Andreas Schwab <schwab@suse.de>
20049 * linux-low.c (STACK_SIZE): Define.
20050 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20051 (linux_test_for_tracefork): Likewise.
20053 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20055 * linux-low.c (linux_wait_for_event): Update messages. Do not
20056 reinsert auto-delete breakpoints.
20057 * mem-break.c (struct breakpoint): Change return type of handler to
20059 (set_breakpoint_at): Update handler type.
20060 (reinsert_breakpoint_handler): Return 1 instead of calling
20062 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20064 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20065 * mem-break.h (set_breakpoint_at): Update handler type.
20066 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20067 * win32-low.c (auto_delete_breakpoint): New.
20068 (get_child_debug_event): Use it.
20070 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20072 * configure.ac: Check for pread and pwrite.
20073 * hostio.c (handle_pread): Fall back to lseek and read.
20074 (handle_pwrite): Fall back to lseek and write.
20075 * config.in, configure: Regenerated.
20077 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20079 * server.c (myresume): Add own_buf argument.
20080 (main): Update calls.
20082 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20084 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20085 * remote-utils.c (remote_open): Do not call disable_async_io.
20086 (block_async_io): Delete.
20087 (unblock_async_io): Make static.
20088 (initialize_async_io): New.
20089 * server.c (handle_v_cont): Handle async I/O here.
20090 (myresume): Likewise. Move other common resume tasks here...
20091 (main): ... from here. Call initialize_async_io. Disable async
20092 I/O before the main loop.
20093 * server.h (initialize_async_io): Declare.
20094 (block_async_io, unblock_async_io): Delete prototypes.
20095 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20097 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20099 * remote-utils.c (readchar): Allow binary data in received messages.
20101 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20103 * win32-low.c (attaching): New global.
20104 (win32_create_inferior): Clear the `attaching' global.
20105 (win32_attach): Set the `attaching' global.
20106 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20107 attaching. Only set a breakpoint at the entry point if not
20110 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20112 * server.c (main): Don't report dll events on the initial
20113 connection on attaches.
20115 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20117 * server.c (main): Relax numerical bases supported for the pid of
20118 the --attach command line argument.
20120 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20122 * win32-low.c (win32_attach): Call OpenProcess before
20123 DebugActiveProcess, not after. Add last error output to error
20126 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20128 * win32-low.c (win32_get_thread_context)
20129 (win32_set_thread_context): New functions.
20130 (thread_rec): Use win32_get_thread_context.
20131 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20132 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20135 2007-12-03 Leo Zayas
20136 Pedro Alves <pedro_alves@portugalmail.pt>
20138 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20140 (child_add_thread): Minor cleanup.
20141 (child_continue): Resume artificially suspended threads before
20142 calling ContinueDebugEvent.
20143 (suspend_one_thread): New.
20144 (fake_breakpoint_event): New.
20145 (get_child_debug_event): Change return type to int. Check here if
20146 gdb sent an interrupt request. If a soft interrupt was requested,
20147 fake a breakpoint event. Return 0 if there is no event to handle,
20149 (win32_wait): Don't check here if gdb sent an interrupt request.
20150 Ensure there is a valid event to handle.
20151 (win32_request_interrupt): Add soft interruption method as last
20154 2007-12-03 Leo Zayas
20155 Pedro Alves <pedro_alves@portugalmail.pt>
20157 * win32-low.h (win32_thread_info): Add descriptions to the
20158 structure members. Replace `suspend_count' counter by a
20160 * win32-low.c (thread_rec): Update condition of when to get the
20161 context from the inferior. Rely on ContextFlags being set if it
20162 has already been retrieved. Only suspend the inferior thread if
20163 we haven't already. Warn if that fails.
20164 (continue_one_thread): s/suspend_count/suspended/. Only call
20165 ResumeThread once. Warn if that fails.
20167 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20169 * win32-low.c (win32_wait): Don't read from the inferior when it
20170 has already exited.
20172 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20174 * Makefile.in (win32_low_h): New variable.
20175 (win32-low.o): Add dependency on $(win32_low_h).
20176 (win32-arm-low.o, win32-i386-low.o): New rules.
20178 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20180 * hostio.c: Correct copyright year.
20182 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20184 * Makefile.in (OBS): Add hostio.o.
20185 (hostio.o): New rule.
20186 * server.h (handle_vFile): Declare.
20187 * hostio.c: New file.
20188 * server.c (handle_v_requests): Take packet_len and new_packet_len
20189 for binary packets. Call handle_vFile.
20190 (main): Update call to handle_v_requests.
20192 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20194 * linux-low.c: Include <sched.h>.
20196 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20198 * linux-low.c (linux_tracefork_grandchild): New.
20199 (linux_tracefork_child): Use clone.
20200 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20202 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20204 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20206 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20208 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20210 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20212 * inferiors.c (change_inferior_id): Delete.
20213 (add_pid_to_list, pull_pid_from_list): New.
20214 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20215 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20216 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20217 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20218 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20219 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20220 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20221 (using_threads): Always set to 1.
20222 (handle_extended_wait): New.
20223 (add_process): Do not set TID.
20224 (linux_create_inferior): Set must_set_ptrace_flags.
20225 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20226 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20227 (linux_thread_alive): Rename TID argument to LWPID.
20228 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20229 (linux_wait_for_event): Do not use TID or check using_threads. Update
20230 call to dead_thread_notify. Call handle_extended_wait.
20231 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20232 (send_sigstop): Delete sigstop_sent.
20233 (wait_for_sigstop): Avoid TID.
20234 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20235 (linux_test_for_tracefork): New.
20236 (linux_lookup_signals): Use thread_db_active and
20237 linux_supports_tracefork_flag.
20238 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20239 * linux-low.h (get_process_thread): Avoid TID.
20240 (struct process_ifo): Move thread_known and tid to the end. Remove
20242 (linux_attach_lwp, thread_db_init): Update prototypes.
20243 * server.h (change_inferior_id): Delete prototype.
20244 (add_pid_to_list, pull_pid_from_list): New prototypes.
20245 * thread-db.c (thread_db_use_events): New.
20246 (find_first_thread): Rename to...
20247 (find_one_thread): ...this. Update callers and messages. Do not
20248 call fatal. Check thread_db_use_events. Do not call
20249 change_inferior_id or new_thread_notify.
20250 (maybe_attach_thread): Update. Do not call new_thread_notify.
20251 (thread_db_init): Set thread_db_use_events. Check use_events.
20252 * utils.c (fatal, warning): Correct message prefix.
20254 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20256 * Makefile.in (clean): Remove new files.
20257 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20258 (powerpc-64.o, powerpc-64.c): New rules.
20259 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20260 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20262 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20264 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20265 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20266 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20267 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20268 (target_regsets): Add AltiVec and SPE register sets.
20269 * configure.ac: Check for AltiVec and SPE.
20270 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20271 (ppc_fill_vrregset, ppc_store_vrregset): New.
20272 (target_regsets): Add AltiVec register set.
20273 * configure: Regenerated.
20275 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20277 * linux-low.c (O_LARGEFILE): Define.
20278 (linux_read_memory): Use /proc/PID/mem.
20279 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20280 * configure, config.in: Regenerated.
20282 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20284 * linux-low.c (linux_wait_for_event): Do not pass signals while
20287 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20289 * win32-low.c (create_process): New.
20290 (win32_create_inferior): Use create_process instead of
20291 CreateProcess. If create_process failed retry appending an ".exe"
20292 suffix. Store the GetLastError result immediatelly after
20293 create_process calls and use it on the call to error.
20295 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20297 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20299 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20301 * configure.ac: Switch license to GPLv3.
20303 2007-08-01 Michael Snyder <msnyder@access-company.com>
20305 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20307 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20309 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20311 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20312 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20313 CloseToolhelp32Snapshot.
20314 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20315 CloseToolhelp32Snapshot.
20317 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20319 * server.c (main): Check for inferior exit before main loop.
20321 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20323 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20324 instead of on tmp_desc.
20326 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20327 Daniel Jacobowitz <dan@codesourcery.com>
20329 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20330 (add_thread): Minor cleanups.
20331 (clear_inferiors): Move lower in the file. Clear the DLL
20333 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20334 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20335 (xml_escape_text): New.
20336 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20338 (handle_v_cont): Report errors.
20339 (gdbserver_version): Update.
20340 (main): Correct size of own_buf. Do not report initial DLL events.
20341 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20342 (unloaded_dll, xml_escape_text): New.
20343 * win32-low.c (enum target_waitkind): Update comments.
20344 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20345 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20346 (win32_EnumProcessModules, win32_GetModuleInformation)
20347 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20348 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20349 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20350 (win32_Module32First, win32_Module32Next, load_toolhelp)
20351 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20352 (get_child_debug_event): Handle DLL events.
20353 (win32_wait): Likewise.
20355 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20357 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20358 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20360 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20362 * win32-low.c (handle_output_debug_string): Ignore event if not
20365 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20367 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20369 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20371 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20373 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20375 * inferiors.c (change_inferior_id): Add comment.
20376 * linux-low.c (check_removed_breakpoint): Add an early
20377 prototype. Improve debug output.
20378 (linux_attach): Doc update.
20379 (linux_detach_one_process, linux_detach): Clean up before releasing
20381 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20382 * linux-low.h (struct process_info): Doc improvement.
20383 * mem-break.c (delete_all_breakpoints): New.
20384 * mem-break.h (delete_all_breakpoints): New prototype.
20385 * thread-db.c (find_first_thread): New.
20386 (thread_db_create_event): Call it instead of
20387 thread_db_find_new_threads. Clean up unused variables.
20388 (maybe_attach_thread): Remove first thread handling.
20389 (thread_db_find_new_threads): Use find_first_thread.
20390 (thread_db_get_tls_address): Likewise.
20392 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20394 * thread-db.c (thread_db_find_new_threads): Add prototype.
20395 (thread_db_create_event): Check for the main thread before adding
20397 (maybe_attach_thread): Only enable event reporting if TID == 0.
20398 (thread_db_get_tls_address): Check for new threads.
20400 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20402 * linux-low.c (linux_create_inferior): Try execv before execvp.
20403 * spu-low.c (spu_create_inferior): Likewise.
20405 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20407 * linux-low.c (linux_create_inferior): Change execv to execvp.
20408 * spu-low.c (spu_create_inferior): Likewies.
20410 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20412 * Makefile.in (clean): Clean new files instead of deleted ones.
20413 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20414 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20416 * configure.srv: Specify XML files and new regformats for MIPS and
20418 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20419 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20420 an entry for the restart register.
20421 (mips_cannot_fetch_register, mips_cannot_store_register)
20422 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20423 register names to match the XML descriptions.
20424 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20425 restart register instead of $0.
20427 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20428 Markus Deuling <deuling@de.ibm.com>
20430 * remote-utils.c (decode_xfer_write): New function.
20431 * server.h (decode_xfer_write): Add prototype.
20432 * server.c (handle_query): Add PACKET_LEN argument. Support
20433 qXfer:spu:read and qXfer:spu:write packets.
20434 (main): Pass packet_len to handle_query.
20435 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20436 * target.h (target_ops): Add qxfer_spu.
20438 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20440 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20441 accessing non-seekable spufs files.
20443 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20445 * server.c (handle_query): Add reply for qC packet.
20447 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20448 Leo Zayas <lerele@champenstudios@com>
20450 * server.h (check_remote_input_interrupt_request): New function.
20451 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20452 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20453 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20454 (check_remote_input_interrupt_request): New function.
20455 * server.h (check_remote_input_interrupt_request): Declare.
20456 * win32-low.c (winapi_DebugBreakProcess,
20457 winapi_GenerateConsoleCtrlEvent): New typedefs.
20458 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20460 (win32_wait): Check for remote interrupt request
20461 with check_remote_input_interrupt_request.
20462 (win32_request_interrupt): New function.
20463 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20465 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20467 * win32-low.c (debug_registers_changed,
20468 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20469 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20470 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20471 (thread_rec): Get context using the low target.
20472 (child_add_thread): Call thread_added on the low target,
20473 which does the same thing.
20475 (do_initial_child_stuff): Remove debug registers references.
20476 Set context using the low target. Resume threads after
20477 setting the contexts.
20478 (child_continue): Remove dead variable. Remove debug
20479 registers references.
20480 (child_fetch_inferior_registers): Go through the low target.
20481 (do_child_store_inferior_registers): Remove.
20482 (child_store_inferior_registers): Go through the low target.
20483 (win32_resume): Remove debug registers references.
20484 Set context using the low target.
20485 (handle_exception): Change return type to void. Don't record
20486 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20487 first chance exception.
20488 (get_child_debug_event): Change return type to void. Remove
20489 goto loop. Always return after waiting for debug event.
20490 (win32_wait): Convert to switch statement. Handle spurious
20493 * win32-i386-low.c (debug_registers_changed,
20494 debug_registers_used): New.
20495 (initial_stuff): Rename to ...
20496 (i386_initial_stuff): ... this. Clear debug registers
20498 (store_debug_registers): Delete.
20499 (i386_get_thread_context): New.
20500 (load_debug_registers): Delete.
20501 (i386_set_thread_context): New.
20502 (i386_thread_added): New.
20503 (single_step): Rename to ...
20504 (i386_single_step): ... this.
20505 (do_fetch_inferior_registers): Rename to ...
20506 (i386_fetch_inferior_register): ... this.
20507 (i386_store_inferior_register): New.
20508 (the_low_target): Adapt to new interface.
20510 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20511 (arm_get_thread_context): New.
20512 (arm_set_thread_context): New.
20514 (do_fetch_inferior_registers): Rename to ...
20515 (arm_fetch_inferior_register): ... this.
20516 (arm_store_inferior_register): New.
20517 (arm_wince_breakpoint): Reimplement as unsigned long.
20518 (arm_wince_breakpoint_len): Define.
20519 (the_low_target): Adapt to new interface.
20521 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20522 load_debug_registers. Add get_thread_context, set_thread_context,
20523 thread_added and store_inferior_register. Rename
20524 fetch_inferior_registers to fetch_inferior_register.
20525 (regptr): Remove declaration.
20527 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20529 * linux-low.c (linux_detach): Change return type to int. Return 0.
20530 * spu-low.c (spu_detach): Likewise.
20532 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20534 * target.h (target_ops): Change return type of detach to int.
20536 (join_inferior): New.
20537 * server.c (main): Don't skip detach support on mingw32.
20538 If the inferior doesn't support detaching return error.
20539 Call join_inferior instead of using waitpid.
20540 * linux-low.c (linux_join): New.
20541 (linux_target_op): Add linux_join.
20542 * spu-low.c (spu_join): New.
20543 (spu_target_ops): Add spu_join.
20544 * win32-low.c (win32_detach): Adapt to new interface.
20545 Reopen current_process_handle before detaching. Issue a child
20546 resume before detaching.
20548 (win32_target_op): Add win32_join.
20550 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20552 * win32-low.c (win32-attach): Fix return value.
20553 * target.h (target_ops): Describe ATTACH return values.
20555 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20557 * win32-low.c (GETPROCADDRESS): Define.
20558 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20559 (winapi_DebugSetProcessKillOnExit): Likewise.
20560 (win32_create_inferior): Force usage of ansi CreateProcessA.
20561 (win32_attach): Use GETPROCADDRESS.
20562 (win32_detach): Likewise.
20564 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20566 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20568 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20570 * win32-low.c: Commit leftover changes from 2007-03-29.
20572 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20574 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20575 fields short instead of int. Add explicit padding.
20576 (i387_cache_to_fsave): Remove unnecessary casts.
20577 (i387_fsave_to_cache): Doc fix.
20578 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20580 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20582 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20583 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20585 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20587 * configure.srv (arm*-*-mingw32ce*): Move near the other
20590 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20592 * configure.ac: Add errno checking.
20593 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20594 sys/file.h and malloc.h.
20595 (AC_CHECK_DECLS): Add perror.
20596 (srv_mingwce): Handle.
20597 * configure.srv (i[34567]86-*-cygwin*): Add
20598 win32-i386-low.o to srv_tgtobj.
20599 (i[34567]86-*-mingw*): Likewise.
20600 (arm*-*-mingw32ce*): Add case.
20601 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20602 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20603 [__MINGW32CE__] (strerror): New function.
20604 [__MINGW32CE__] (errno): Define to GetLastError.
20605 [__MINGW32CE__] (COUNTOF): New macro.
20606 (remote_open): Remove extra close call.
20607 * mem-break.c (delete_breakpoint_at): New function.
20608 * mem-break.h (delete_breakpoint_at): Declare.
20609 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20610 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20611 [USE_WIN32API] (read, write): Add char* casts.
20612 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20613 * server.h: Include wincecompat.h on Windows CE.
20614 [HAVE_ERRNO_H]: Check.
20615 (perror): Declare if not declared.
20616 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20617 (perror_with_name): Remove errno declaration.
20618 * wincecompat.h: New.
20619 * wincecompat.c: New.
20620 * win32-low.h: New.
20621 * win32-arm-low.c: New.
20622 * win32-i386-low.c: New.
20623 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20624 (OUTMSG2): Make it safe.
20626 (COUNTOF): New macro.
20627 (NUM_REGS): Get it from the low target.
20628 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20629 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20630 (thread_rec): Let low target handle debug registers.
20631 (child_add_thread): Likewise.
20632 (child_init_thread_list): Likewise.
20633 (continue_one_thread): Likewise.
20635 (do_child_fetch_inferior_registers): Move to ...
20636 * win32-i386-low.c: ... here, and rename to ...
20637 (do_fetch_inferior_registers): ... this.
20638 * win32-low.c (child_fetch_inferior_registers):
20639 Go through the low target.
20640 (do_child_store_inferior_registers): Use regptr.
20641 (strwinerror): New function.
20642 (win32_create_inferior): Handle Windows CE.
20643 Use strwinerror instead of strerror on Windows error
20644 codes. Add program to the error output.
20645 Don't close the main thread handle on Windows CE.
20646 (win32_attach): Use coredll.dll on Windows CE.
20647 (win32_kill): Close current process and current
20649 (win32_detach): Use coredll.dll on Windows CE.
20650 (win32_resume): Let low target handle debug registers, and
20652 (handle_exception): Add/Remove initial breakpoint. Avoid
20653 non-existant WSTOPSIG on Windows CE.
20654 (win32_read_inferior_memory): Cast to remove warning.
20655 (win32_arch_string): Go through the low target.
20656 (initialize_low): Call set_breakpoint_data with the low
20657 target's breakpoint.
20658 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20659 FOP_REGNUM, mappings): Move to ...
20660 * win32-i386-low.c: ... here.
20661 * win32-low.c (win32_thread_info): Move to ...
20662 * win32-low.h: ... here.
20663 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20664 win32-arm-low.c and wincecompat.c.
20665 (all:): Add $EXEEXT.
20666 (install-only:): Likewise.
20667 (gdbserver:): Likewise.
20668 (gdbreplay:): Likewise.
20669 * config.in: Regenerate.
20670 * configure: Regenerate.
20672 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20674 * win32-low.c: Rename typedef thread_info to
20675 win32_thread_info throughout.
20677 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20679 * win32-i386-low.c: Rename to ...
20680 * win32-low.c: ... this.
20681 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20682 * Makefile.in: Likewise.
20684 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20686 * remote-utils.c (monitor_output): Constify msg parameter.
20687 * server.h (monitor_output): Likewise.
20688 * win32-i386-low.c (handle_output_debug_string): New.
20689 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20690 handle_output_debug_string.
20691 (get_child_debug_event): Likewise.
20693 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20695 * server.c (main): Correct strtoul check.
20697 2007-03-27 Jon Ringle <jon@ringle.org>
20699 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20701 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20703 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20705 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20707 * terminal.h: Check HAVE_SGTTY_H.
20709 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20711 * remote-utils.c (remote_open): Print out the assigned port number.
20713 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20715 * remote-utils.c (monitor_output): New function.
20716 * server.c (debug_threads): Define here.
20717 (monitor_show_help): New function.
20718 (handle_query): Handle qRcmd.
20719 (main): Do not handle 'd' packet.
20720 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20721 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20724 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20726 * Makefile.in (EXEEXT): New.
20727 (clean): Use $(EXEEXT).
20729 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20731 * target.h (target_ops): Rename send_signal to request_interrupt,
20732 and remove enum target_signal parameter.
20733 * linux-low.c (linux_request_interrupt): Rename from
20734 linux_send_signal, and always send SIGINT.
20735 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20736 and always send SIGINT.
20737 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20739 (input_interrupt): Likewise.
20741 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20743 * server.c (get_features_xml): Check if target implemented
20745 * win32-i386-low.c (win32_arch_string): New.
20746 (win32_target_ops): Add win32_arch_string as arch_string member.
20748 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20750 * spu-low.c (spu_arch_string): New.
20751 (spu_target_ops): Add spu_arch_string.
20753 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20755 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20756 * configure.ac: Do not check for terminal.h.
20757 * configure, config.in: Regenerated.
20759 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20761 * Makefile.in (OBS): Add $(XML_BUILTIN).
20762 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20764 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20765 (arm-with-iwmmxt.c): New.
20766 * config.in, configure: Regenerate.
20767 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20768 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20769 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20770 (arm*-*-linux*): Add iWMMXt and regset support.
20771 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20772 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20773 (arm_store_wmmxregset, target_regsets): New.
20774 * server.c (get_features_xml): Take annex argument. Check builtin
20776 (handle_query): Handle multiple annexes.
20778 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20780 * remote-utils.c [USE_WIN32API] (read, write): Define.
20781 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20784 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20786 * linux-i386-low.c (the_low_target): Set arch_string.
20787 * linux-x86-64-low.c (the_low_target): Likewise.
20788 * linux-low.c (linux_arch_string): New.
20789 (linux_target_ops): Add it.
20790 * linux-low.h (struct linux_target_ops): Add arch_string.
20791 * server.c (write_qxfer_response): Use const void * for DATA.
20792 (get_features_xml): New.
20793 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20794 * target.h (struct target_ops): Add arch_string method.
20796 2007-01-03 Denis Pilat <denis.pilat@st.com>
20797 Daniel Jacobowitz <dan@codesourcery.com>
20799 * linux-low.c (linux_kill): Handle being called with no threads.
20800 * win32-i386-low.c (win32_kill): Likewise.
20801 (get_child_debug_event): Clear current_process_handle.
20803 2006-12-30 Denis PILAT <denis.pilat@st.com>
20804 Daniel Jacobowitz <dan@codesourcery.com>
20806 * remote-utils.c (remote_open): Check the type of specified
20807 serial port devices before opening them.
20808 * server.c (main): Kill the inferior if an error occurs during
20809 the first remote_open.
20811 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20813 * README: Update supported targets.
20815 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20817 * Makefile.in (clean): Remove reg-mips64.c.
20818 (reg-mips64.c, reg-mips64.o): New rules.
20819 * configure.srv: Handle mips64. Include regset support for mips.
20820 * linux-mips-low.c (union mips_register): New.
20821 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20822 (mips_breakpoint, mips_breakpoint_at): Use int.
20823 (mips_collect_register, mips_supply_register)
20824 (mips_collect_register_32bit, mips_supply_register_32bit)
20825 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20826 (mips_store_fpregset, target_regsets): New.
20827 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20829 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20831 * configure.srv: Add target "spu*-*-*".
20832 * Makefile.in (clean): Remove reg-spu.c.
20833 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20834 * spu-low.c: New file.
20836 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20838 * configure.ac: Correct td_thr_tls_get_addr test.
20839 * configure: Regenerated.
20841 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20843 * linux-low.c (linux_wait_for_event): Reformat. Use the
20844 pass_signals array.
20845 * remote-utils.c (decode_address_to_semicolon): New.
20846 * server.c (pass_signals, handle_general_set): New.
20847 (handle_query): Mention QPassSignals for qSupported.
20848 (main): Call handle_general_set.
20849 * server.h (pass_signals, decode_address_to_semicolon): New.
20851 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20853 * server.c (handle_query): Correct error handling for read_auxv.
20855 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20857 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20858 and srv_linux_thread_db to yes.
20859 * linux-s390-low.c (s390_fill_gregset): New function.
20860 (target_regsets): Define data structure.
20862 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20864 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20865 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20866 * config.in, configure: Regenerated.
20867 * inferiors.c (gdb_id_to_thread): New function.
20868 (gdb_id_to_thread_id): Use it.
20869 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20870 * linux-low.h (struct process_info): Add th member.
20871 (thread_db_get_tls_address): New prototype.
20872 * remote-utils.c (decode_address): Make non-static.
20873 * server.c (handle_query): Handle qGetTLSAddr.
20874 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20875 * target.h (struct target_ops): Add get_tls_address.
20876 * thread-db.c (maybe_attach_thread): Save the thread handle.
20877 (thread_db_get_tls_address): New.
20879 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20881 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20882 (linux_resume_one_process): Take a siginfo_t *. Update all
20883 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20884 (struct pending_signals): Add a siginfo_t.
20885 (linux_wait_for_process): Always set last_status.
20886 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20887 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20888 * linux-low.h (struct process_info): Add last_status.
20890 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20892 * remote-utils.c (try_rle): New function.
20893 (putpkt_binary): Use it.
20895 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20897 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20898 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20899 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20900 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20901 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20904 2006-08-08 Richard Sandiford <richard@codesourcery.com>
20906 * server.c (terminal_fd): New variable.
20907 (old_foreground_pgrp): Likewise.
20908 (restore_old_foreground_pgrp): New function.
20909 (start_inferior): Record the terminal file descriptor in terminal_fd
20910 and its original foreground group in old_foreground_pgrp. Register
20911 restore_old_foreground_pgrp with atexit().
20913 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20915 * server.c (handle_query): Correct qPart to qXfer.
20917 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20919 * configure.ac: Check for more headers which are missing on
20920 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20921 * configure.srv: Add Cygwin and mingw32.
20922 * remote-utils.c: Don't include headers unconditionally which
20923 are missing on mingw32. Include <winsock.h> for mingw32.
20924 (remote_open): Adjust for mingw32 support. Flush
20925 standard error after writing to it.
20926 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20927 (unblock_async_io, enable_async_io, disable_async_io)
20928 (readchar, getpkt): Update for Winsock support.
20929 (prepare_resume_reply): Expect a protocol signal number.
20930 * server.c: Disable <sys/wait.h> on mingw32.
20931 (start_inferior): Adjust for mingw32 support. Flush
20932 standard error after writing to it.
20933 (attach_inferior): Likewise. Use protocol signal
20935 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20937 * win32-i386-low.c: New file.
20938 * Makefile.in (XM_CLIBS): Set.
20939 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20940 (win32-i386-low.o): New dependency rule.
20941 * linux-low.c (linux_wait): Use target signal numbers.
20942 * target.h (struct target_ops): Doc fix.
20943 * server.h (target_signal_to_name): New prototype.
20944 * gdbreplay.c: Don't include headers unconditionally which
20945 are missing on mingw32. Include <winsock.h> for mingw32.
20946 (remote_close, remote_open): Adjust for Winsock support.
20947 * configure, config.in: Regenerated.
20949 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20951 * server.c (decode_xfer_read, write_qxfer_response): New.
20952 (handle_query): Take a packet length argument. Handle
20953 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20954 the qSupported response.
20955 (main): Update call to handle_query.
20957 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20959 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20960 (putpkt_binary): Renamed from putpkt and adjusted for binary
20962 (putpkt): New wrapper for putpkt_binary.
20963 (readchar): Don't mask off the high bit.
20964 (decode_X_packet): New function.
20965 * server.c (main): Call putpkt_binary if a handler sets the packet
20966 length. Save the length of the incoming packet. Handle 'X'.
20967 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20969 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20971 * server.c (handle_query): Handle qSupported.
20973 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20975 * remote-utils.c (all_symbols_looked_up): New variable.
20976 (look_up_one_symbol): Check it.
20977 * server.h (look_up_one_symbol): New declaration.
20978 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20980 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20982 * Makefile.in (linux-arm-low.o): Update dependencies.
20983 * linux-arm-low.c: Include "gdb_proc_service.h".
20984 (PTRACE_GET_THREAD_AREA): Define.
20985 (ps_get_thread_area): New function.
20987 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20989 * configure.srv (m68k*-*-uclinux*): New target.
20990 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20991 (linux_resume_one_process): Remove extraneous cast.
20992 (linux_read_offsets): New.
20993 (linux_target_op): Add linux_read_offsets on mmuless systems.
20994 * server.c (handle_query): Add qOffsets logic.
20995 * target.h (struct target_ops): Add read_offsets.
20997 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20999 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21000 (PTRACE_GET_THREAD_AREA): Define.
21001 (ps_get_thread_area): New function.
21002 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21003 (linux-x86-64-low.o): Update.
21005 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21007 * configure.ac: Remove checks for prfpregset_t.
21008 * gdb_proc_service.h: New file.
21009 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21010 new "gdb_proc_service.h".
21011 * proc-service.c: Likewise.
21012 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21013 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21014 * Makefile.in (gdb_proc_service_h): Updated.
21015 * configure, config.in: Regenerated.
21017 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21019 * remote-utils.c (prepare_resume_reply): Move declaration
21020 of gdb_id_from_wait to the top of the block.
21022 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21024 * linux-low.c (regsets_store_inferior_registers): Read the regset
21025 from the target before filling it.
21027 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21029 * server.c (attach_inferior): Return SIGTRAP for a successful
21032 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21034 * Makefile.in (OBS): Add version.o.
21035 (STAGESTUFF): Delete.
21036 (version.o): Add dependencies.
21037 (version.c): Replace rule.
21038 (clean): Remove version.c.
21039 * server.c (gdbserver_version): New.
21040 (gdbserver_usage): Use printf.
21041 (main): Handle --version and --help.
21042 * server.h (version, host_name): Add declarations.
21044 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21056 * linux-x86-64-low.c:
21058 * linux-s390-low.c:
21059 * linux-ppc64-low.c:
21061 * linux-mips-low.c:
21062 * linux-m68k-low.c:
21063 * linux-m32r-low.c:
21066 * linux-ia64-low.c:
21067 * linux-i386-low.c:
21068 * linux-crisv32-low.c:
21080 * gdbserver.1: Add (C) after Copyright. Update the FSF
21083 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21085 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21086 (arm_breakpoint_at): Recognize both breakpoints.
21087 (the_low_target): Use the correct breakpoint instruction.
21089 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21091 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21092 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21093 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21094 (the_low_target): Update.
21096 2005-10-25 Andreas Schwab <schwab@suse.de>
21098 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21100 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21101 (ia64_num_regs): Reduce to 462.
21103 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21105 * acinclude.m4: Correct quoting.
21106 * aclocal.m4: Regenerated.
21108 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21109 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21110 (thread_db_init): Call thread_db_err_str.
21111 * configure.ac: Check for TD_VERSION.
21112 * config.in, configure: Regenerated.
21114 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21116 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21118 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21120 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21121 is not available. Define HAVE_PTRACE_GETREGS if it is.
21122 * config.in, configure: Regenerated.
21123 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21124 * linux-i386-low.c, linux-m68k-low.c: Update to use
21125 HAVE_PTRACE_GETREGS.
21126 * linux-low.c (regsets_fetch_inferior_registers)
21127 (regsets_store_inferior_registers): Only return 0 if we processed
21129 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21130 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21132 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21134 * inferiors.c (struct thread_info): Add gdb_id.
21135 (add_thread): Add gdb_id argument.
21136 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21137 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21138 calls to add_thread.
21139 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21140 * server.c (handle_query): Use thread_to_gdb_id.
21141 (handle_v_cont, main): Use gdb_id_to_thread_id.
21142 * server.h (add_thread): Update prototype.
21143 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21146 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21148 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21149 left-padded registers.
21150 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21151 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21153 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21155 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21156 * configure: Regenerate.
21157 * config.in: Regenerate.
21158 * server.h (NEED_DECLARATION_STRERROR):
21159 Replace with !HAVE_DECL_STRERROR.
21161 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21163 * linux-low.c (linux_wait, linux_send_signal): Don't test
21164 an unsigned long variable for > 0 if it could be MAX_ULONG.
21165 * server.c (myresume): Likewise.
21166 * target.c (set_desired_inferior): Likewise.
21168 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21170 * configure.ac: Simplify and improve check for socklen_t.
21171 * configure, config.in: Regenerate.
21173 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21175 * acconfig.h: Remove.
21176 * configure.ac: Add a test for socklen_t. Use three-argument
21177 AC_DEFINE throughout.
21178 * config.in: Regenerated using autoheader 2.59.
21179 * configure: Regenerated.
21181 * gdbreplay.c (socklen_t): Provide a default.
21182 (remote_open): Use socklen_t.
21183 * remote-utils.c (socklen_t): Provide a default.
21184 (remote_open): Use socklen_t.
21185 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21188 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21190 * linux-low.c (linux_read_memory, linux_write_memory)
21191 (linux_read_auxv): Likewise.
21192 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21193 (check_mem_write): Likewise.
21194 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21196 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21197 (registers_from_string, register_data): Likewise.
21198 * server.c (handle_query, main): Likewise.
21199 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21200 (decode_M_packet): Likewise.
21201 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21202 * target.h (struct target_ops): Update read_memory, write_memory,
21204 (read_inferior_memory, write_inferior_memory): Update.
21205 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21206 to unsigned char *.
21207 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21208 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21209 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21210 linux-s390-low.c, linux-sh-low.c: Update for changes in
21211 read_inferior_memory and the_low_target->breakpoint.
21213 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21215 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21216 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21217 * configure.srv: Add powerpc64-*-linux*.
21218 * linux-ppc64-low.c: New file.
21220 2005-05-23 Orjan Friberg <orjanf@axis.com>
21222 * linux-cris-low.c: New file with support for CRIS.
21223 * linux-crisv32-low.c: Ditto for CRISv32.
21224 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21225 (clean): Add reg-cris.c and reg-crisv32.c.
21226 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21227 reg-crisv32.o, and reg-crisv32.c to make rules.
21228 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21229 recognized targets.
21231 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21233 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21234 of sizeof (PTRACE_XFER_TYPE).
21235 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21237 2005-05-12 Orjan Friberg <orjanf@axis.com>
21239 * target.h (struct target_ops): Add insert_watchpoint,
21240 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21241 pointers for hardware watchpoint support.
21242 * linux-low.h (struct linux_target_ops): Ditto.
21243 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21244 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21245 to linux_target_ops.
21246 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21248 * server.c (main): Recognize 'Z' and 'z' packets.
21250 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21252 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21253 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21254 (the_low_target): Add new members.
21256 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21258 * proc-service.c (ps_lgetregs): Search all_processes instead of
21261 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21263 * server.c (start_inferior): Change return type to int.
21264 (attach_inferior): Change sigptr to int *.
21265 (handle_v_cont, handle_v_requests): Change signal to int *.
21266 (main): Change signal to int.
21268 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21270 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21271 * configure.srv: Add m32r*-*-linux*.
21272 * linux-m32r-low.c: New file.
21274 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21276 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21278 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21280 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21281 Take unsigned long arguments for PIDs.
21282 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21283 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21284 (wait_for_sigstop, linux_resume_one_process)
21285 (regsets_fetch_inferior_registers, linux_send_signal)
21286 (linux_read_auxv): Likewise. Update the types of variables holding
21287 PIDs. Update format string specifiers.
21288 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21289 * remote-utils.c (prepare_resume_reply): Likewise.
21290 * server.c (cont_thread, general_thread, step_thread)
21291 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21293 (handle_query): Update format specifiers.
21294 (handle_v_cont, main): Use strtoul for thread IDs.
21295 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21296 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21297 (general_thread, step_thread, thread_from_wait)
21298 (old_thread_from_wait): Update.
21299 * target.h (struct thread_resume): Use unsigned long for THREAD.
21300 (struct target_ops): Use unsigned long for arguments to attach and
21303 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21305 * acinclude.m4: Include bfd/bfd.m4 directly.
21306 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21307 <agriffis@toolchain.org>.
21308 * aclocal.m4, configure: Regenerated.
21310 2005-01-07 Andrew Cagney <cagney@gnu.org>
21312 * configure.ac: Rename configure.in, require autoconf 2.59.
21313 * configure: Re-generate.
21315 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21317 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21318 LIBS when finished.
21319 * aclocal.m4: Regenerated.
21320 * configure: Regenerated.
21322 2004-11-21 Andreas Schwab <schwab@suse.de>
21324 * linux-m68k-low.c (m68k_num_gregs): Define.
21325 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21326 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21327 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21328 (m68k_breakpoint_at): New. Add to the_low_target.
21330 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21331 srv_linux_thread_db to yes.
21333 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21335 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21336 (ARCH_SET_FS): Likewise.
21337 (ARCH_GET_FS): Likewise.
21338 (ARCH_GET_GS): Likewise.
21340 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21342 * linux-i386-low.c (ps_get_thread_area): New.
21343 * linux-x86-64-low.c (ps_get_thread_area): New.
21344 * linux-low.c: Include <sys/syscall.h>.
21345 (linux_kill_one_process): Don't kill the first thread here.
21346 (linux_kill): Kill the first thread here.
21347 (kill_lwp): New function.
21348 (send_sigstop, linux_send_signal): Use it.
21349 * proc-service.c: Clean up #ifdefs.
21350 (fpregset_info): Delete.
21351 (ps_lgetregs): Update and enable implementation.
21352 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21354 * remote-utils.c (struct sym_cache, symbol_cache): New.
21355 (input_interrupt): Print a clearer message.
21356 (async_io_enabled): New variable.
21357 (enable_async_io, disable_async_io): Use it. Update comments.
21358 (look_up_one_symbol): Use the symbol cache.
21359 * thread-db.c (thread_db_look_up_symbols): New function.
21360 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21362 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21364 * configure.in: Test for -rdynamic.
21365 * configure: Regenerated.
21366 * Makefile (INTERNAL_LDFLAGS): New.
21367 (gdbserver, gdbreplay): Use it.
21369 2004-09-02 Andrew Cagney <cagney@gnu.org>
21371 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21373 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21375 * linux-low.c (linux_wait): Clear all_processes list also.
21377 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21379 * linux-low.c: Include <errno.h>. Remove extern declaration of
21382 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21384 * gdbreplay.c, server.h, utils.c: Update copyright years.
21386 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21388 * server.c (main): Print child status or termination signal from
21389 variable 'signal', not 'sig'.
21391 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21393 * linux-low.c (linux_read_memory): Change return type to
21394 int. Check for and return error from ptrace().
21395 * target.c (read_inferior_memory): Change return type to int. Pass
21396 back return status from the_target->read_memory().
21397 * target.h (struct target_ops): Adapt *read_memory() prototype.
21399 (read_inferior_memory): Adapt prototype.
21400 * server.c (main): Return an error packet if
21401 read_inferior_memory() returns an error.
21403 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21405 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21406 Unify with other clean targets.
21408 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21410 * server.c (handle_v_cont): Call set_desired_inferior.
21412 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21414 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21416 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21418 * linux-low.c (linux_wait): Unblock async I/O.
21419 (linux_resume): Block and enable async I/O.
21420 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21421 * server.h (block_async_io, unblock_async_io): Add prototypes.
21423 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21425 * remote-utils.c (remote_open): Print a status notice after
21426 opening a TCP port.
21427 * server.c (attach_inferior): Print a status notice after
21430 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21432 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21434 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21436 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21438 * server.c, target.h: Update copyright years.
21440 2004-02-25 Roland McGrath <roland@redhat.com>
21442 * target.h (struct target_ops): New member `read_auxv'.
21443 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21444 * linux-low.c (linux_read_auxv): New function.
21445 (linux_target_ops): Initialize `read_auxv' member to that.
21447 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21449 Committed by Jim Blandy <jimb@redhat.com>.
21451 * linux-s390-low.c (s390_num_regs): Update.
21452 (s390_regmap): Remove control registers. Use __s390x__ predefine
21453 instead of GPR_SIZE to distiguish s390 and s390x targets.
21455 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21457 * linux-low.c: Update copyright year.
21458 (check_removed_breakpoint): Clear pending_is_breakpoint.
21459 (linux_set_resume_request, linux_queue_one_thread)
21460 (resume_status_pending_p): New functions.
21461 (linux_continue_one_thread): Use process->resume.
21462 (linux_resume): Only resume threads if there are no pending events.
21463 * linux-low.h (struct process_info): Add resume request
21466 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21468 * regcache.c (new_register_cache): Clear the allocated register
21469 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21471 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21473 * linux-low.c (linux_resume): Take a struct thread_resume *
21475 (linux_wait): Update call.
21476 (resume_ptr): New static variable.
21477 (linux_continue_one_thread): Renamed from
21478 linux_continue_one_process. Use resume_ptr.
21479 (linux_resume): Use linux_continue_one_thread.
21480 * server.c (handle_v_cont, handle_v_requests): New functions.
21481 (myresume): New function.
21482 (main): Handle 'v' case.
21483 * target.h (struct thread_resume): New type.
21484 (struct target_ops): Change argument of "resume" to struct
21486 (myresume): Delete macro.
21488 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21490 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21491 (uninstall): Support DESTDIR.
21493 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21495 * configure.srv: Add xscale*linux copy of arm*linux entry.
21497 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21499 * linux-arm-low.c (arm_reinsert_addr): New function.
21500 (the_low_target): Add arm_reinsert_addr.
21502 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21504 * mem-break.c: Remove whitespace at end of file.
21506 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21508 * configure.in: Check whether we need to prototype strerror.
21509 * server.h: Optionally prototype strerror.
21510 * gdbreplay.c (perror_with_name): Use strerror.
21511 * linux-low.c (linux_attach_lwp): Use strerror.
21512 * utils.c (perror_with_name): Use strerror.
21513 * config.in, configure: Regenerated.
21515 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21517 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21518 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21520 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21522 * Makefile.in (SFILES): Update.
21523 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21524 low-sun3.c: Remove files.
21526 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21528 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21529 (linux_detach_one_process, linux_detach): New functions.
21530 (linux_target_ops): Add linux_detach.
21531 * server.c (main): Handle 'D' packet.
21532 * target.h (struct target_ops): Add "detach" member.
21533 (detach_inferior): Define.
21535 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21537 From Kelley Cook <kelleycook@wideopenwest.com>:
21538 * configure.srv: Accept i[34567]86 variants.
21540 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21542 * linux-low.c (linux_wait_for_event): Correct comment typos.
21543 (linux_resume_one_process): Call check_removed_breakpoint.
21544 (linux_send_signal): New function.
21545 (linux_target_ops): Add linux_send_signal.
21546 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21548 * target.h (struct target_ops): Add send_signal.
21550 2003-05-29 Jim Blandy <jimb@redhat.com>
21552 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21553 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21554 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21555 away part of the register's value.
21557 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21559 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21560 (linux_wait_for_event, linux_init_signals): Likewise.
21562 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21564 * configure.in: Check for stdlib.h.
21565 * configure: Regenerated.
21566 * config.in: Regenerated.
21568 2003-01-04 Andreas Schwab <schwab@suse.de>
21570 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21572 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21574 * Makefile.in: Remove obsolete code.
21576 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21578 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21579 defined(PT_FPR0_HI).
21581 2002-11-17 Stuart Hughes <seh@zee2.com>
21583 * linux-arm-low.c (arm_num_regs): Increase.
21584 (arm_regmap): Include status register.
21586 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21588 * linux-low.c (register_addr): Remove incorrect -1 check.
21590 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21592 * linux-low.c (linux_create_inferior): Call setpgid. Return
21594 (unstopped_p, linux_signal_pid): Remove.
21595 (linux_target_ops): Remove linux_signal_pid.
21596 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21597 global instead of target method.
21598 * target.h (struct target_ops): Remove signal_pid. Update comment
21599 for create_inferior.
21600 * server.c (signal_pid): New variable.
21601 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21602 gdbserver. Set the child to be the foreground process group.
21603 (attach_inferior): Set signal_pid.
21605 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21607 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21609 2002-08-20 Jim Blandy <jimb@redhat.com>
21611 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21614 2002-08-01 Andrew Cagney <cagney@redhat.com>
21616 * Makefile.in: Make chill references obsolete.
21618 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21620 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21621 * configure: Regenerate.
21622 * config.in: Regenerate.
21624 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21626 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21627 (perror_with_name, remote_close, remote_open, expect, play): Static.
21629 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21631 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21632 byte offsets instead of an array of indexes.
21633 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21635 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21637 * regcache.c: Add comment.
21639 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21641 * thread-db.c: New file.
21642 * proc-service.c: New file.
21643 * acinclude.m4: New file.
21644 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21645 proc-service.o, and thread-db.o.
21646 (linux-low.o): Add USE_THREAD_DB.
21647 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21648 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21649 * aclocal.m4: Regenerated.
21650 * config.in: Regenerated.
21651 * configure: Regenerated.
21652 * configure.in: Check for proc_service.h, sys/procfs.h,
21653 thread_db.h, and linux/elf.h headrs.
21654 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21655 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21656 Check for -lthread_db and thread support.
21657 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21658 PowerPC, and SuperH.
21659 * i387-fp.c: Constify arguments.
21660 * i387-fp.h: Likewise.
21661 * inferiors.c: (struct thread_info): Renamed from
21662 `struct inferior_info'. Remove PID member. Use generic inferior
21663 list header. All uses updated.
21664 (inferiors, signal_pid): Removed.
21665 (all_threads): New variable.
21666 (get_thread): Define.
21667 (add_inferior_to_list): New function.
21668 (for_each_inferior): New function.
21669 (change_inferior_id): New function.
21670 (add_inferior): Removed.
21671 (remove_inferior): New function.
21672 (add_thread): New function.
21673 (free_one_thread): New function.
21674 (remove_thread): New function.
21675 (clear_inferiors): Use for_each_inferior and free_one_thread.
21676 (find_inferior): New function.
21677 (find_inferior_id): New function.
21678 (inferior_target_data): Update argument type.
21679 (set_inferior_target_data): Likewise.
21680 (inferior_regcache_data): Likewise.
21681 (set_inferior_regcache_data): Likewise.
21682 * linux-low.c (linux_bp_reinsert): Remove.
21683 (all_processes, stopping_threads, using_thrads)
21684 (struct pending_signals, debug_threads, pid_of): New.
21685 (inferior_pid): Replace with macro.
21686 (struct inferior_linux_data): Remove.
21687 (get_stop_pc, add_process): New functions.
21688 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21689 Use add_process and add_thread.
21690 (linux_attach_lwp): New function, based on old linux_attach. Use
21691 add_process and add_thread. Set stop_expected for new threads.
21692 (linux_attach): New function.
21693 (linux_kill_one_process): New function.
21694 (linux_kill): Kill all LWPs.
21695 (linux_thread_alive): Use find_inferior_id.
21696 (check_removed_breakpoints, status_pending_p): New functions.
21697 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21698 Update. Use WNOHANG. Wait for cloned processes also. Update process
21699 struct for the found process.
21700 (linux_wait_for_event): New function.
21701 (linux_wait): Use it. Support LWPs.
21702 (send_sigstop, wait_for_sigstop, stop_all_processes)
21703 (linux_resume_one_process, linux_continue_one_process): New functions.
21704 (linux_resume): Support LWPs.
21705 (REGISTER_RAW_SIZE): Remove.
21706 (fetch_register): Use register_size instead. Call supply_register.
21707 (usr_store_inferior_registers): Likewise. Call collect_register.
21708 Fix recursive case.
21709 (regsets_fetch_inferior_registers): Improve error message.
21710 (regsets_store_inferior_registers): Add debugging.
21711 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21712 (unstopped_p, linux_signal_pid): New functions.
21713 (linux_target_ops): Add linux_signal_pid.
21714 (linux_init_signals): New function.
21715 (initialize_low): Call it. Initialize using_threads.
21716 * regcache.c (inferior_regcache_data): Add valid
21718 (get_regcache): Fetch registers lazily. Add fetch argument
21719 and update all callers.
21720 (regcache_invalidate_one, regcache_invalidate): New
21722 (new_register_cache): Renamed from create_register_cache.
21723 Return the new regcache.
21724 (free_register_cache): Change argument to a void *.
21725 (registers_to_string, registers_from_string): Call get_regcache
21726 with fetch flag set.
21727 (register_data): Make static. Pass fetch flag to get_regcache.
21728 (supply_register): Call get_regcache with fetch flag clear.
21729 (collect_register): Call get_regcache with fetch flag set.
21730 (collect_register_as_string): New function.
21731 * regcache.h: Update.
21732 * remote-utils.c (putpkt): Flush after debug output and use
21734 Handle input interrupts while waiting for an ACK.
21735 (input_interrupt): Use signal_pid method.
21736 (getpkt): Flush after debug output and use stderr.
21737 (outreg): Use collect_register_as_string.
21738 (new_thread_notify, dead_thread_notify): New functions.
21739 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21740 and general_thread.
21741 (look_up_one_symbol): Flush after debug output.
21742 * server.c (step_thread, server_waiting): New variables.
21743 (start_inferior): Don't use signal_pid. Update call to mywait.
21744 (attach_inferior): Update call to mywait.
21745 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21746 (main): Don't fetch/store registers explicitly. Use
21747 set_desired_inferior. Support proposed ``Hs'' packet. Update
21749 * server.h: Update.
21750 (struct inferior_list, struct_inferior_list_entry): New.
21751 * target.c (set_desired_inferior): New.
21752 (write_inferior_memory): Constify.
21753 (mywait): New function.
21754 * target.h: Update.
21755 (struct target_ops): New signal_pid method.
21756 (mywait): Removed macro, added prototype.
21758 * linux-low.h (regset_func): Removed.
21759 (regset_fill_func, regset_store_func): New.
21760 (enum regset_type): New.
21761 (struct regset_info): Add type field. Use new operation types.
21762 (struct linux_target_ops): stop_pc renamed to get_pc.
21763 Add decr_pc_after_break and breakpoint_at.
21764 (get_process, get_thread_proess, get_process_thread)
21765 (strut process_info, all_processes, linux_attach_lwp)
21766 (thread_db_init): New.
21768 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21769 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21770 (the_low_target): Add new members.
21771 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21772 (i386_store_fpxregset): Constify.
21773 (target_regsets): Add new kind identifier.
21774 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21775 (i386_set_pc): Add debugging.
21776 (i386_breakpoint_at): New function.
21777 (the_low_target): Add new members.
21778 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21779 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21780 (mips_breakpoint_at): New.
21781 (the_low_target): Add new members.
21782 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21783 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21784 (the_low_target): Add new members.
21785 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21786 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21787 (the_low_target): Add new members.
21788 * linux-x86-64-low.c (target_regsets): Add new kind
21791 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21793 From Martin Pool <mbp@samba.org>:
21794 * server.c (gdbserver_usage): New function.
21797 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21799 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21800 stop_at -> stop_pc.
21802 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21804 * Makefile.in: Remove obsolete code.
21806 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21808 * linux-low.c (regsets_fetch_inferior_registers),
21809 (regsets_store_inferior_registers): Removed cast to int from
21811 * regcache.h: Added declaration of struct inferior_info.
21813 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21815 * inferiors.c (struct inferior_info): Add regcache_data.
21816 (add_inferior): Call create_register_cache.
21817 (clear_inferiors): Call free_register_cache.
21818 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21819 * regcache.c (struct inferior_regcache_data): New.
21820 (registers): Remove.
21821 (get_regcache): New function.
21822 (create_register_cache, free_register_cache): New functions.
21823 (set_register_cache): Don't initialize the register cache here.
21824 (registers_to_string, registers_from_string, register_data): Call
21826 * regcache.h: Add prototypes.
21827 * server.h: Likewise.
21829 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21831 * mem-break.c: New file.
21832 * mem-break.h: New file.
21833 * Makefile.in: Add mem-break.o rule; update server.h
21835 * inferiors.c (struct inferior_info): Add target_data
21837 (clear_inferiors): Free target_data member if set.
21838 (inferior_target_data, set_inferior_target_data): New functions.
21839 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21840 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21841 * linux-low.c (linux_bp_reinsert): New variable.
21842 (struct inferior_linux_data): New.
21843 (linux_create_inferior): Use set_inferior_target_data.
21844 (linux_attach): Likewise. Call add_inferior.
21845 (linux_wait_for_one_inferior): New function.
21846 (linux_wait): Call it.
21847 (linux_write_memory): Add const.
21848 (initialize_low): Call set_breakpoint_data.
21849 * linux-low.h (struct linux_target_ops): Add breakpoint
21851 * server.c (attach_inferior): Remove extra add_inferior
21853 * server.h: Include mem-break.h. Update inferior.c
21855 * target.c (read_inferior_memory)
21856 (write_inferior_memory): New functions.
21857 * target.h (read_inferior_memory)
21858 (write_inferior_memory): Change macros to prototypes.
21859 (struct target_ops): Update comments. Add const to write_memory
21862 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
21864 * linux-low.c (usr_store_inferior_registers): Support
21865 registers which are allowed to fail to store.
21866 * linux-low.h (linux_target_ops): Likewise.
21867 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21868 (ppc_cannot_store_register): FPSCR may not be storable.
21870 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21872 * server.h: Include <string.h> if HAVE_STRING_H.
21873 * ChangeLog: Correct paths in last ChangeLog entry.
21875 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21877 * linux-low.h: Remove obsolete prototypes.
21878 (struct linux_target_ops): New.
21879 (extern the_low_target): New.
21880 * linux-low.c (num_regs, regmap): Remove declarations.
21881 (register_addr): Use the_low_target explicitly.
21882 (fetch_register): Likewise.
21883 (usr_fetch_inferior_registers): Likewise.
21884 (usr_store_inferior_registers): Likewise.
21885 * linux-arm-low.c (num_regs): Remove.
21886 (arm_num_regs): Define.
21887 (arm_regmap): Renamed from regmap, made static.
21888 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21890 (arm_cannot_store_register): Renamed from cannot_store_register,
21892 (the_low_target): New.
21893 * linux-i386-low.c (num_regs): Remove.
21894 (i386_num_regs): Define.
21895 (i386_regmap): Renamed from regmap, made static.
21896 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21898 (i386_cannot_store_register): Renamed from cannot_store_register,
21900 (the_low_target): New.
21901 * linux-ia64-low.c (num_regs): Remove.
21902 (ia64_num_regs): Define.
21903 (ia64_regmap): Renamed from regmap, made static.
21904 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21906 (ia64_cannot_store_register): Renamed from cannot_store_register,
21908 (the_low_target): New.
21909 * linux-m68k-low.c (num_regs): Remove.
21910 (m68k_num_regs): Define.
21911 (m68k_regmap): Renamed from regmap, made static.
21912 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21914 (m68k_cannot_store_register): Renamed from cannot_store_register,
21916 (the_low_target): New.
21917 * linux-mips-low.c (num_regs): Remove.
21918 (mips_num_regs): Define.
21919 (mips_regmap): Renamed from regmap, made static.
21920 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21922 (mips_cannot_store_register): Renamed from cannot_store_register,
21924 (the_low_target): New.
21925 * linux-ppc-low.c (num_regs): Remove.
21926 (ppc_num_regs): Define.
21927 (ppc_regmap): Renamed from regmap, made static.
21928 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21930 (ppc_cannot_store_register): Renamed from cannot_store_register,
21932 (the_low_target): New.
21933 * linux-s390-low.c (num_regs): Remove.
21934 (s390_num_regs): Define.
21935 (s390_regmap): Renamed from regmap, made static.
21936 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21938 (s390_cannot_store_register): Renamed from cannot_store_register,
21940 (the_low_target): New.
21941 * linux-sh-low.c (num_regs): Remove.
21942 (sh_num_regs): Define.
21943 (sh_regmap): Renamed from regmap, made static.
21944 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21946 (sh_cannot_store_register): Renamed from cannot_store_register,
21948 (the_low_target): New.
21949 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21950 (the_low_target): New.
21952 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21954 * Makefile.in: Add stamp-h target.
21955 * configure.in: Create stamp-h.
21956 * configure: Regenerated.
21958 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21960 * inferiors.c: New file.
21961 * target.c: New file.
21962 * target.h: New file.
21963 * Makefile.in: Add target.o and inferiors.o. Update
21965 * linux-low.c (inferior_pid): New static variable,
21966 moved from server.c.
21967 (linux_create_inferior): Renamed from create_inferior.
21968 Call add_inferior. Return 0 on success instead of a PID.
21969 (linux_attach): Renamed from myattach.
21970 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21971 (linux_thread_alive): Renamed from mythread_alive.
21972 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21974 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21975 (regsets_store_inferior_registers): Correct error message.
21976 Add missing ``return 0''.
21977 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21978 (linux_store_registers): Renamed from store_inferior_registers.
21979 (linux_read_memory): Renamed from read_inferior_memory.
21980 (linux_write_memory): Renamed from write_inferior_memory.
21981 (linux_target_ops): New structure.
21982 (initialize_low): Call set_target_ops ().
21983 * remote-utils.c (unhexify): New function.
21984 (hexify): New function.
21985 (input_interrupt): Send signals to ``signal_pid''.
21986 * server.c (inferior_pid): Remove.
21987 (start_inferior): Update create_inferior call.
21988 (attach_inferior): Call add_inferior.
21989 (handle_query): New function.
21990 (main): Call handle_query for `q' packets.
21991 * server.h: Include "target.h". Remove obsolete prototypes.
21992 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21994 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21996 * Makefile.in: Add WARN_CFLAGS. Update configury
21998 * configure.in: Check for <string.h>
21999 * configure: Regenerate.
22000 * config.in: Regenerate.
22001 * gdbreplay.c: Include needed system headers.
22002 (remote_open): Remove strchr prototype.
22003 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22004 * regcache.c (supply_register): Change buf argument to const void *.
22005 (supply_register_by_name): Likewise.
22006 (collect_register): Change buf argument to void *.
22007 (collect_register_by_name): Likewise.
22008 * regcache.h: Add missing prototypes.
22009 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22010 * server.c (handle_query): New function.
22011 (attached): New static variable, moved out of main.
22012 (main): Quiet longjmp clobber warnings.
22013 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22014 * utils.c (error): Remove NORETURN.