1 2020-04-08 Tom Tromey <tromey@adacore.com>
3 * win32-low.c (win32_kill, get_child_debug_event): Use
6 2020-04-08 Tom Tromey <tromey@adacore.com>
8 * win32-low.c (child_continue): Call continue_last_debug_event.
10 2020-04-08 Tom Tromey <tromey@adacore.com>
12 * win32-low.c (handle_exception): Remove.
13 (windows_nat::handle_ms_vc_exception): New function.
14 (get_child_debug_event): Add "continue_status" parameter.
18 2020-04-08 Tom Tromey <tromey@adacore.com>
20 * win32-low.c (windows_nat::handle_load_dll): Rename from
21 handle_load_dll. No longer static.
22 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
25 2020-04-08 Tom Tromey <tromey@adacore.com>
27 * win32-low.c (handle_output_debug_string): Add parameter. Change
29 (win32_kill, get_child_debug_event): Update.
31 2020-04-08 Tom Tromey <tromey@adacore.com>
33 * win32-low.c (current_process_handle, current_process_id)
34 (main_thread_id, last_sig, current_event, siginfo_er): Move to
37 2020-04-08 Tom Tromey <tromey@adacore.com>
39 * win32-low.c (get_image_name): Remove.
40 (handle_load_dll): Update.
42 2020-04-08 Tom Tromey <tromey@adacore.com>
44 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
45 No longer static. Change parameters.
46 (child_add_thread, child_fetch_inferior_registers)
47 (child_store_inferior_registers, win32_resume)
48 (win32_get_tib_address): Update.
50 2020-04-08 Tom Tromey <tromey@adacore.com>
52 * win32-low.h (struct win32_target_ops): Use qualified names where
54 * win32-i386-low.c: Add "using namespace".
55 * win32-low.c: Add "using namespace".
56 * win32-arm-low.c: Add "using namespace".
58 2020-04-08 Tom Tromey <tromey@adacore.com>
60 * win32-low.c (delete_thread_info): Don't call CloseHandle.
62 2020-04-08 Tom Tromey <tromey@adacore.com>
64 * win32-low.c (win32_require_context, suspend_one_thread): Use
65 windows_thread_info::suspend.
66 (continue_one_thread): Use windows_thread_info::resume.
67 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
69 2020-04-08 Tom Tromey <tromey@adacore.com>
71 * win32-i386-low.c (update_debug_registers)
72 (i386_prepare_to_resume, i386_thread_added): Update.
74 2020-04-08 Tom Tromey <tromey@adacore.com>
76 * win32-low.c (child_add_thread): Use new.
77 (delete_thread_info): Use delete.
79 2020-04-08 Tom Tromey <tromey@adacore.com>
81 * win32-low.h (struct windows_thread_info): Remove.
83 2020-04-08 Tom Tromey <tromey@adacore.com>
85 * win32-low.h (struct windows_thread_info): Rename from
86 win32_thread_info. Remove typedef.
87 (struct win32_target_ops, win32_require_context): Update.
88 * win32-low.c (win32_get_thread_context)
89 (win32_set_thread_context, win32_prepare_to_resume)
90 (win32_require_context, thread_rec, child_add_thread)
91 (delete_thread_info, continue_one_thread)
92 (child_fetch_inferior_registers, child_store_inferior_registers)
93 (win32_resume, suspend_one_thread, win32_get_tib_address):
95 * win32-i386-low.c (update_debug_registers)
96 (win32_get_current_dr, i386_get_thread_context)
97 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
98 (i386_fetch_inferior_register, i386_store_inferior_register):
100 * win32-arm-low.c (arm_get_thread_context)
101 (arm_fetch_inferior_register, arm_store_inferior_register):
104 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
106 * linux-low.h (struct linux_target_ops): Remove.
107 (the_low_target): Remove.
108 * linux-x86-low.cc (the_low_target): Remove.
109 * linux-aarch64-low.cc (the_low_target): Ditto.
110 * linux-arm-low.cc (the_low_target): Ditto.
111 * linux-bfin-low.cc (the_low_target): Ditto.
112 * linux-cris-low.cc (the_low_target): Ditto.
113 * linux-crisv32-low.cc (the_low_target): Ditto.
114 * linux-ia64-low.cc (the_low_target): Ditto.
115 * linux-m32r-low.cc (the_low_target): Ditto.
116 * linux-m68k-low.cc (the_low_target): Ditto.
117 * linux-mips-low.cc (the_low_target): Ditto.
118 * linux-nios2-low.cc (the_low_target): Ditto.
119 * linux-ppc-low.cc (the_low_target): Ditto.
120 * linux-riscv-low.cc (the_low_target): Ditto.
121 * linux-s390-low.cc (the_low_target): Ditto.
122 * linux-sh-low.cc (the_low_target): Ditto.
123 * linux-sparc-low.cc (the_low_target): Ditto.
124 * linux-tic6x-low.cc (the_low_target): Ditto.
125 * linux-tile-low.cc (the_low_target): Ditto.
126 * linux-xtensa-low.cc (the_low_target): Ditto.
128 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
130 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
131 linux target define the op by overriding the declaration in
132 process_stratum_target.
134 * linux-low.h (struct linux_target_ops): Remove the op.
135 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
136 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
137 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
138 (x86_get_ipa_tdesc_idx): Turn into...
139 (x86_target::get_ipa_tdesc_idx): ...this.
140 (the_low_target): Remove the op field.
141 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
142 (ppc_get_ipa_tdesc_idx): Turn into...
143 (ppc_target::get_ipa_tdesc_idx): ...this.
144 (the_low_target): Remove the op field.
145 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
146 (s390_get_ipa_tdesc_idx): Turn into...
147 (s390_target::get_ipa_tdesc_idx): ...this.
148 (the_low_target): Remove the op field.
150 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
152 Turn the 'get_syscall_trapinfo' linux target op into a method
153 of process_stratum_target.
155 * linux-low.h (struct linux_target_ops): Remove the op.
156 (class linux_process_target) <get_syscall_trapinfo>
157 <gdb_catch_this_syscall>
158 <low_supports_catch_syscall>
159 <low_get_syscall_trapinfo>: Declare.
160 * linux-low.cc (get_syscall_trapinfo): Turn into...
161 (linux_process_target::get_syscall_trapinfo): ...this.
162 (linux_process_target::low_get_syscall_trapinfo): Define.
163 (gdb_catch_this_syscall_p): Turn into...
164 (linux_process_target::gdb_catch_this_syscall): ...this.
165 (linux_process_target::low_supports_catch_syscall): Define.
167 Update the callers below.
169 (linux_process_target::wait_1)
170 (linux_process_target::supports_catch_syscall)
172 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
173 <low_get_syscall_trapinfo>: Declare.
174 (x86_target::low_supports_catch_syscall): Define.
175 (x86_get_syscall_trapinfo): Turn into...
176 (x86_target::low_get_syscall_trapinfo): ...this.
177 (the_low_target): Remove the op field.
178 * linux-aarch64-low.cc (class aarch64_target)
179 <low_supports_catch_syscall>
180 <low_get_syscall_trapinfo>: Declare.
181 (aarch64_target::low_supports_catch_syscall): Define.
182 (aarch64_get_syscall_trapinfo): Turn into...
183 (aarch64_target::low_get_syscall_trapinfo): ...this.
184 (the_low_target): Remove the op field.
185 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
186 <low_get_syscall_trapinfo>: Declare.
187 (arm_target::low_supports_catch_syscall): Define.
188 (arm_get_syscall_trapinfo): Turn into...
189 (arm_target::low_get_syscall_trapinfo): ...this.
190 (the_low_target): Remove the op field.
191 * linux-ppc-low.cc (the_low_target): Remove the op field.
192 * linux-s390-low.cc (the_low_target): Remove the op field.
194 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
196 Remove the 'supports_hardware_single_step' linux target op and
197 override the process_stratum_target's op definition in
198 linux_process_target to return true.
200 * linux-low.h (struct linux_target_ops): Remove the op.
201 (class linux_process_target) <finish_step_over>
202 <maybe_hw_step>: Declare.
203 * linux-low.cc (can_hardware_single_step): Remove.
204 (maybe_hw_step): Turn into...
205 (linux_process_target::maybe_hw_step): ...this.
206 (finish_step_over): Turn into...
207 (linux_process_target::finish_step_over): ...this.
208 (linux_process_target::supports_hardware_single_step): Update
211 Update the callers below.
213 (linux_process_target::single_step)
214 (linux_process_target::resume_one_lwp_throw)
216 * linux-arm-low.cc (class arm_target)
217 <supports_hardware_single_step>: Declare.
218 (arm_supports_hardware_single_step): Turn into...
219 (arm_target::supports_hardware_single_step): ...this.
220 (the_low_target): Remove the op field.
221 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
222 (the_low_target): Remove the op field.
223 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
225 (the_low_target): Remove the op field.
226 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
227 (the_low_target): Remove the op field.
228 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
229 (the_low_target): Remove the op field.
230 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
231 (the_low_target): Remove the op field.
232 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
233 (the_low_target): Remove the op field.
234 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
235 (the_low_target): Remove the op field.
236 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
237 (the_low_target): Remove the op field.
238 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
239 (the_low_target): Remove the op field.
240 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
241 (the_low_target): Remove the op field.
242 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
243 (the_low_target): Remove the op field.
244 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
246 (the_low_target): Remove the op field.
248 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
250 Turn the 'supports_range_stepping' linux target op into a method
251 of linux_process_target.
253 * linux-low.h (struct linux_target_ops): Remove the op.
254 (class linux_process_target) <low_supports_range_stepping>: Declare.
255 * linux-low.cc (linux_process_target::low_supports_range_stepping):
257 (linux_process_target::supports_range_stepping): Update the call
259 * linux-x86-low.cc (class x86_target)
260 <low_supports_range_stepping>: Declare.
261 (x86_supports_range_stepping): Turn into...
262 (x86_target::low_supports_range_stepping): ...this.
263 (the_low_target): Remove the op field.
264 * linux-aarch64-low.cc (class aarch64_target)
265 <low_supports_range_stepping>: Declare.
266 (aarch64_supports_range_stepping): Turn into...
267 (aarch64_target::low_supports_range_stepping): ...this.
268 (the_low_target): Remove the op field.
269 * linux-arm-low.cc (the_low_target): Remove the op field.
270 * linux-bfin-low.cc (the_low_target): Ditto.
271 * linux-crisv32-low.cc (the_low_target): Ditto.
272 * linux-m32r-low.cc (the_low_target): Ditto.
273 * linux-m68k-low.cc (the_low_target): Ditto.
274 * linux-ppc-low.cc (the_low_target): Ditto.
275 * linux-s390-low.cc (the_low_target): Ditto.
276 * linux-sh-low.cc (the_low_target): Ditto.
277 * linux-tic6x-low.cc (the_low_target): Ditto.
278 * linux-tile-low.cc (the_low_target): Ditto.
279 * linux-xtensa-low.cc (the_low_target): Ditto.
281 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
283 Remove the 'emit_ops' linux target ops and let the concrete
284 linux target define the op by overriding the declaration of
285 process_stratum_target.
287 * linux-low.h (struct linux_target_ops): Remove the op.
288 (class linux_process_target) <emit_ops>: Remove.
289 * linux-low.cc (linux_process_target::emit_ops): Remove.
290 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
291 (x86_emit_ops): Turn into...
292 (x86_target::emit_ops): ...this.
293 (the_low_target): Remove the op field.
294 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
295 (aarch64_emit_ops): Turn into...
296 (aarch64_target::emit_ops): ...this.
297 (the_low_target): Remove the op field.
298 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
299 (ppc_emit_ops): Turn into...
300 (ppc_target::emit_ops): ...this.
301 (the_low_target): Remove the op field.
302 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
303 (s390_emit_ops): Turn into...
304 (s390_target::emit_ops): ...this.
305 (the_low_target): Remove the op field.
306 * linux-arm-low.cc (the_low_target): Remove the op field.
307 * linux-bfin-low.cc (the_low_target): Ditto.
308 * linux-crisv32-low.cc (the_low_target): Ditto.
309 * linux-m32r-low.cc (the_low_target): Ditto.
310 * linux-m68k-low.cc (the_low_target): Ditto.
311 * linux-sh-low.cc (the_low_target): Ditto.
312 * linux-tic6x-low.cc (the_low_target): Ditto.
313 * linux-tile-low.cc (the_low_target): Ditto.
314 * linux-xtensa-low.cc (the_low_target): Ditto.
316 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
318 Remove the 'install_fast_tracepoint_jump_pad' and
319 'get_min_fast_tracepoint_insn_len' linux target ops to let the
320 concrete linux target define the ops by overriding the declarations
321 of process_stratum_target.
323 * linux-low.h (struct linux_target_ops): Remove the ops.
324 (class linux_process_target) <supports_fast_tracepoints>
325 <install_fast_tracepoint_jump_pad>
326 <get_min_fast_tracepoint_insn_len>: Remove.
327 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
328 (linux_process_target::install_fast_tracepoint_jump_pad)
329 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
330 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
331 <install_fast_tracepoint_jump_pad>
332 <get_min_fast_tracepoint_insn_len>: Declare.
333 (x86_target::supports_fast_tracepoints): Define.
334 (x86_install_fast_tracepoint_jump_pad): Turn into...
335 (x86_target::install_fast_tracepoint_jump_pad): ...this.
336 (x86_get_min_fast_tracepoint_insn_len): Turn into...
337 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
338 (the_low_target): Remove the op fields.
339 * linux-aarch64-low.cc (class aarch64_target)
340 <supports_fast_tracepoints>
341 <install_fast_tracepoint_jump_pad>
342 <get_min_fast_tracepoint_insn_len>: Declare.
343 (aarch64_target::supports_fast_tracepoints): Define.
344 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
345 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
346 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
347 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
348 (the_low_target): Remove the op fields.
349 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
350 <install_fast_tracepoint_jump_pad>
351 <get_min_fast_tracepoint_insn_len>: Declare.
352 (ppc_target::supports_fast_tracepoints): Define.
353 (ppc_install_fast_tracepoint_jump_pad): Turn into...
354 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
355 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
356 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
357 (the_low_target): Remove the op fields.
358 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
359 <install_fast_tracepoint_jump_pad>
360 <get_min_fast_tracepoint_insn_len>: Declare.
361 (s390_target::supports_fast_tracepoints): Define.
362 (s390_install_fast_tracepoint_jump_pad): Turn into...
363 (s390_target::install_fast_tracepoint_jump_pad): ...this.
364 (s390_get_min_fast_tracepoint_insn_len): Turn into...
365 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
366 (the_low_target): Remove the op fields.
367 * linux-arm-low.cc (the_low_target): Remove the op fields.
368 * linux-bfin-low.cc (the_low_target): Ditto.
369 * linux-crisv32-low.cc (the_low_target): Ditto.
370 * linux-m32r-low.cc (the_low_target): Ditto.
371 * linux-m68k-low.cc (the_low_target): Ditto.
372 * linux-sh-low.cc (the_low_target): Ditto.
373 * linux-tic6x-low.cc (the_low_target): Ditto.
374 * linux-tile-low.cc (the_low_target): Ditto.
375 * linux-xtensa-low.cc (the_low_target): Ditto.
377 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
379 Turn the 'get_thread_area' linux target op into a method of
380 process_stratum_target.
382 * linux-low.h (struct linux_target_ops): Remove the op.
383 (class linux_process_target) <stuck_in_jump_pad>
384 <linux_fast_tracepoint_collecting>
385 <low_get_thread_area>: Declare.
386 * linux-low.cc (supports_fast_tracepoints): Remove.
387 (linux_fast_tracepoint_collecting): Turn into...
388 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
389 (linux_process_target::low_get_thread_area): Define.
390 (stuck_in_jump_pad_callback): Turn into...
391 (linux_process_target::stuck_in_jump_pad): ...this.
393 Update the caller below.
395 (linux_process_target::stabilize_threads)
397 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
399 (x86_get_thread_area): Turn into...
400 (x86_target::low_get_thread_area): ...this.
401 (the_low_target): Remove the op field.
402 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
404 (aarch64_get_thread_area): Turn into...
405 (aarch64_target::low_get_thread_area): ...this.
406 (the_low_target): Remove the op field.
407 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
409 (ppc_get_thread_area): Turn into...
410 (ppc_target::low_get_thread_area): ...this.
411 (the_low_target): Remove the op field.
412 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
414 (s390_get_thread_area): Turn into...
415 (s390_target::low_get_thread_area): ...this.
416 (the_low_target): Remove the op field.
417 * linux-arm-low.cc (the_low_target): Remove the op field.
418 * linux-bfin-low.cc (the_low_target): Ditto.
419 * linux-crisv32-low.cc (the_low_target): Ditto.
420 * linux-m32r-low.cc (the_low_target): Ditto.
421 * linux-m68k-low.cc (the_low_target): Ditto.
422 * linux-sh-low.cc (the_low_target): Ditto.
423 * linux-tic6x-low.cc (the_low_target): Ditto.
424 * linux-tile-low.cc (the_low_target): Ditto.
425 * linux-xtensa-low.cc (the_low_target): Ditto.
427 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
429 Remote the 'supports_tracepoints' linux target op and let the
430 concrete linux target define it by overriding the op declared in
431 process_stratum_target.
433 * linux-low.h (struct linux_target_ops): Remove the op.
434 (class linux_process_target) <supports_tracepoints>: Remove.
435 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
436 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
438 (x86_supports_tracepoints): Turn into...
439 (x86_target::supports_tracepoints): ...this.
440 (the_low_target): Remove the op field.
441 * linux-aarch64-low.cc (class aarch64_target)
442 <supports_tracepoints>: Declare.
443 (aarch64_supports_tracepoints): Turn into...
444 (aarch64_target::supports_tracepoints): ...this.
445 (the_low_target): Remove the op field.
446 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
448 (ppc_supports_tracepoints): Turn into...
449 (ppc_target::supports_tracepoints): ...this.
450 (the_low_target): Remove the op field.
451 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
453 (s390_supports_tracepoints): Turn into...
454 (s390_target::supports_tracepoints): ...this.
455 (the_low_target): Remove the op field.
456 * linux-arm-low.cc (the_low_target): Remove the op field.
457 * linux-bfin-low.cc (the_low_target): Ditto.
458 * linux-crisv32-low.cc (the_low_target): Ditto.
459 * linux-m32r-low.cc (the_low_target): Ditto.
460 * linux-m68k-low.cc (the_low_target): Ditto.
461 * linux-sh-low.cc (the_low_target): Ditto.
462 * linux-tic6x-low.cc (the_low_target): Ditto.
463 * linux-tile-low.cc (the_low_target): Ditto.
464 * linux-xtensa-low.cc (the_low_target): Ditto.
466 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
468 Remove the 'process_qsupported' linux target op and let a concrete
469 linux target define the op by overriding the op declaration in
470 process_stratum_target.
472 * linux-low.h (struct linux_target_ops): Remove the op.
473 (class linux_process_target) <process_qsupported>: Remove.
474 * linux-low.cc (linux_process_target::process_qsupported): Remove.
475 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
476 (x86_linux_process_qsupported): Turn into...
477 (x86_target::process_qsupported): ...this.
478 (the_low_target): Remove the op field.
479 * linux-aarch64-low.cc (the_low_target): Remove the op
481 * linux-arm-low.cc (the_low_target): Ditto.
482 * linux-bfin-low.cc (the_low_target): Ditto.
483 * linux-crisv32-low.cc (the_low_target): Ditto.
484 * linux-m32r-low.cc (the_low_target): Ditto.
485 * linux-m68k-low.cc (the_low_target): Ditto.
486 * linux-ppc-low.cc (the_low_target): Ditto.
487 * linux-s390-low.cc (the_low_target): Ditto.
488 * linux-sh-low.cc (the_low_target): Ditto.
489 * linux-tic6x-low.cc (the_low_target): Ditto.
490 * linux-tile-low.cc (the_low_target): Ditto.
491 * linux-xtensa-low.cc (the_low_target): Ditto.
493 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
495 Turn the 'prepare_to_resume' linux target op into a method of
496 linux_process_target.
498 * linux-low.h (struct linux_target_ops): Remove the op.
499 (class linux_process_target) <low_prepare_to_resume>: Declare.
500 * linux-low.cc (linux_process_target::low_prepare_to_resume):
503 Update the callers below:
505 (linux_process_target::resume_one_lwp_throw)
506 (linux_process_target::low_prepare_to_resume)
508 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
510 (x86_target::low_prepare_to_resume): Define.
511 (the_low_target): Remove the op field.
512 * linux-aarch64-low.cc (class aarch64_target)
513 <low_prepare_to_resume>: Declare.
514 (aarch64_target::low_prepare_to_resume): Define.
515 (the_low_target): Remove the op field.
516 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
518 (arm_prepare_to_resume): Turn into...
519 (arm_target::low_prepare_to_resume): ...this.
520 (the_low_target): Remove the op field.
521 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
523 (mips_linux_prepare_to_resume): Turn into...
524 (mips_target::low_prepare_to_resume): ...this.
525 (the_low_target): Remove the op field.
526 * linux-bfin-low.cc (the_low_target): Remove the op field.
527 * linux-crisv32-low.cc (the_low_target): Ditto.
528 * linux-m32r-low.cc (the_low_target): Ditto.
529 * linux-m68k-low.cc (the_low_target): Ditto.
530 * linux-ppc-low.cc (the_low_target): Ditto.
531 * linux-s390-low.cc (the_low_target): Ditto.
532 * linux-sh-low.cc (the_low_target): Ditto.
533 * linux-tic6x-low.cc (the_low_target): Ditto.
534 * linux-tile-low.cc (the_low_target): Ditto.
535 * linux-xtensa-low.cc (the_low_target): Ditto.
537 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
539 Turn the 'new_process', 'delete_process', 'new_thread',
540 'delete_thread', and 'new_fork' linux target ops into methods
541 of linux_process_target.
543 * linux-low.h (struct linux_target_ops): Remove the ops.
544 (class linux_process_target) <add_linux_process>
549 <check_zombie_leaders>
555 <low_new_fork>: Declare.
556 * linux-low.cc (delete_lwp): Turn into...
557 (linux_process_target::delete_lwp): ...this.
558 (linux_process_target::low_delete_thread): Define.
559 (linux_add_process): Turn into...
560 (linux_process_target::add_linux_process): ...this.
561 (linux_process_target::low_new_process): Define.
562 (linux_process_target::low_delete_process): Define.
563 (linux_process_target::low_new_fork): Define.
564 (add_lwp): Turn into...
565 (linux_process_target::add_lwp): ...this.
566 (linux_process_target::low_new_thread): Define.
567 (linux_attach_lwp): Turn into...
568 (linux_process_target::attach_lwp): ...this.
569 (linux_detach_one_lwp): Turn into...
570 (linux_process_target::detach_one_lwp): ...this.
571 (linux_detach_lwp_callback): Remove and inline...
572 (linux_process_target::detach): ...here.
573 (check_zombie_leaders): Turn into...
574 (linux_process_target::check_zombie_leaders): ...this.
575 (filter_exit_event): Turn into...
576 (linux_process_target::filter_exit_event): ...this.
578 Update the callers below.
580 (linux_process_target::handle_extended_wait)
581 (linux_process_target::create_inferior)
582 (attach_proc_task_lwp_callback)
583 (linux_process_target::attach)
584 (linux_process_target::detach)
585 (linux_process_target::mourn)
586 * thread-db.cc (attach_thread)
588 * linux-x86-low.cc (class x86_target) <low_new_process>
592 <low_new_fork>: Declare.
593 (x86_linux_new_process): Turn into...
594 (x86_target::low_new_process): ...this.
595 (x86_linux_delete_process): Turn into...
596 (x86_target::low_delete_process): ...this.
597 (x86_target::low_new_thread): Define.
598 (x86_target::low_delete_thread): Define.
599 (x86_linux_new_fork): Turn into...
600 (x86_target::low_new_fork): ...this.
601 (the_low_target): Remove the op fields.
602 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
606 <low_new_fork>: Declare.
607 (aarch64_linux_new_process): Turn into...
608 (aarch64_target::low_new_process): ...this.
609 (aarch64_linux_delete_process): Turn into...
610 (aarch64_target::low_delete_process): ...this.
611 (aarch64_target::low_new_thread): Define.
612 (aarch64_target::low_delete_thread): Define.
613 (aarch64_linux_new_fork): Turn into...
614 (aarch64_target::low_new_fork): ...this.
615 (the_low_target): Remove the op fields.
616 * linux-arm-low.cc (class arm_target) <low_new_process>
620 <low_new_fork>: Declare.
621 (arm_new_process): Turn into...
622 (arm_target::low_new_process): ...this.
623 (arm_delete_process): Turn into...
624 (arm_target::low_delete_process): ...this.
625 (arm_new_thread): Turn into...
626 (arm_target::low_new_thread): ...this.
627 (arm_delete_thread): Turn into...
628 (arm_target::low_delete_thread): ...this.
629 (arm_new_fork): Turn into...
630 (arm_target::low_new_fork): ...this.
631 (the_low_target): Remove the op fields.
632 * linux-mips-low.cc (class mips_target) <low_new_process>
636 <low_new_fork>: Declare.
637 (mips_linux_new_process): Turn into...
638 (mips_target::low_new_process): ...this.
639 (mips_linux_delete_process): Turn into...
640 (mips_target::low_delete_process): ...this.
641 (mips_linux_new_thread): Turn into...
642 (mips_target::low_new_thread): ...this.
643 (mips_linux_delete_thread): Turn into...
644 (mips_target::low_delete_thread): ...this.
645 (mips_linux_new_fork): Turn into...
646 (mips_target::low_new_fork): ...this.
647 (the_low_target): Remove the op fields.
648 * linux-bfin-low.cc (the_low_target): Remove the op fields.
649 * linux-crisv32-low.cc (the_low_target): Ditto.
650 * linux-m32r-low.cc (the_low_target): Ditto.
651 * linux-m68k-low.cc (the_low_target): Ditto.
652 * linux-ppc-low.cc (the_low_target): Ditto.
653 * linux-s390-low.cc (the_low_target): Ditto.
654 * linux-sh-low.cc (the_low_target): Ditto.
655 * linux-tic6x-low.cc (the_low_target): Ditto.
656 * linux-tile-low.cc (the_low_target): Ditto.
657 * linux-xtensa-low.cc (the_low_target): Ditto.
659 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
661 Turn the 'siginfo_fixup' linux target op into a method of
662 linux_process_target.
664 * linux-low.h (struct linux_target_ops): Remove the op.
665 (class linux_process_target) <siginfo_fixup>
666 <low_siginfo_fixup>: Declare.
667 * linux-low.cc (siginfo_fixup): Turn into...
668 (linux_process_target::siginfo_fixup): ...this.
669 (linux_process_target::low_siginfo_fixup): Define.
670 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
671 (x86_siginfo_fixup): Turn into...
672 (x86_target::low_siginfo_fixup): ...this.
673 (the_low_target): Remove the op field.
674 * linux-aarch64-low.cc (class aarch64_target):
675 <low_siginfo_fixup>: Declare.
676 (aarch64_linux_siginfo_fixup): Turn into...
677 (aarch64_target::low_siginfo_fixup): ...this.
678 (the_low_target): Remove the op field.
679 * linux-arm-low.cc (the_low_target): Remove the op field.
680 * linux-bfin-low.cc (the_low_target): Ditto.
681 * linux-crisv32-low.cc (the_low_target): Ditto.
682 * linux-m32r-low.cc (the_low_target): Ditto.
683 * linux-m68k-low.cc (the_low_target): Ditto.
684 * linux-mips-low.cc (the_low_target): Ditto.
685 * linux-ppc-low.cc (the_low_target): Ditto.
686 * linux-s390-low.cc (the_low_target): Ditto.
687 * linux-sh-low.cc (the_low_target): Ditto.
688 * linux-tic6x-low.cc (the_low_target): Ditto.
689 * linux-tile-low.cc (the_low_target): Ditto.
690 * linux-xtensa-low.cc (the_low_target): Ditto.
692 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
694 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
695 linux target ops into methods of linux_process_target.
697 * linux-low.h (struct linux_target_ops): Remove the ops.
698 (class linux_process_target) <low_collect_ptrace_register>
699 <low_store_ptrace_register>: Declare.
700 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
701 (linux_process_target::low_supply_ptrace_register): Define.
703 Update the callers below.
705 (linux_process_target::fetch_register)
706 (linux_process_target::store_register)
708 * linux-x86-low.cc (the_low_target): Remove the op fields.
709 * linux-aarch64-low.cc (the_low_target): Ditto.
710 * linux-arm-low.cc (the_low_target): Ditto.
711 * linux-bfin-low.cc (the_low_target): Ditto.
712 * linux-crisv32-low.cc (the_low_target): Ditto.
713 * linux-m32r-low.cc (the_low_target): Ditto.
714 * linux-m68k-low.cc (the_low_target): Ditto.
715 * linux-sh-low.cc (the_low_target): Ditto.
716 * linux-sparc-low.cc (the_low_target): Ditto.
717 * linux-tic6x-low.cc (the_low_target): Ditto.
718 * linux-tile-low.cc (the_low_target): Ditto.
719 * linux-xtensa-low.cc (the_low_target): Ditto.
720 * linux-mips-low.cc (class mips_target)
721 <low_collect_ptrace_register>
722 <low_supply_ptrace_register>: Declare.
723 (mips_collect_ptrace_register): Turn into ...
724 (mips_target::low_collect_ptrace_register): ...this.
725 (mips_supply_ptrace_register): Turn into...
726 (mips_target::low_supply_ptrace_register): ...this.
727 (the_low_target): Remove the op fields.
728 * linux-ppc-low.cc (class ppc_target)
729 <low_collect_ptrace_register>
730 <low_supply_ptrace_register>: Declare.
731 (ppc_collect_ptrace_register): Turn into ...
732 (ppc_target::low_collect_ptrace_register): ...this.
733 (ppc_supply_ptrace_register): Turn into ...
734 (ppc_target::low_supply_ptrace_register): ...this.
735 (ppc_fill_gregset): Update for the calls to
736 low_collect_ptrace_register.
737 (the_low_target): Remove the op fields.
738 * linux-s390-low.cc (class s390_target)
739 <low_collect_ptrace_register>
740 <low_supply_ptrace_register>: Declare.
741 (s390_collect_ptrace_register): Turn into ...
742 (s390_target::low_collect_ptrace_register): ...this.
743 (s390_supply_ptrace_register): Turn into ...
744 (s390_target::low_supply_ptrace_register): ...this.
745 (s390_fill_gregset): Update for the calls to
746 low_collect_ptrace_register.
747 (the_low_target): Remove the op fields.
749 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
751 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
752 target ops into methods of linux_process_target.
754 * linux-low.h (struct linux_target_ops): Remove the ops.
755 (class linux_process_target) <check_stopped_by_watchpoint>
756 <low_stopped_by_watchpoint>
757 <low_stopped_data_address>: Declare.
758 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
759 (linux_process_target::check_stopped_by_watchpoint): ...this.
760 (linux_process_target::low_stopped_by_watchpoint): Define.
761 (linux_process_target::low_stopped_data_address): Define.
762 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
763 <low_stopped_data_address>: Declare.
764 (x86_stopped_by_watchpoint): Turn into...
765 (x86_target::low_stopped_by_watchpoint): ...this.
766 (x86_stopped_data_address): Turn into...
767 (x86_target::low_stopped_data_address): ...this.
768 (the_low_target): Remove the op fields.
769 * linux-aarch64-low.cc (class aarch64_target)
770 <low_stopped_by_watchpoint>
771 <low_stopped_data_address>: Declare.
772 (aarch64_stopped_by_watchpoint): Turn into...
773 (aarch64_target::low_stopped_by_watchpoint): ...this.
774 (aarch64_stopped_data_address): Turn into...
775 (aarch64_target::low_stopped_data_address): ...this.
776 (the_low_target): Remove the op fields.
777 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
778 <low_stopped_data_address>: Declare.
779 (arm_stopped_by_watchpoint): Turn into...
780 (arm_target::low_stopped_by_watchpoint): ...this.
781 (arm_stopped_data_address): Turn into...
782 (arm_target::low_stopped_data_address): ...this.
783 (the_low_target): Remove the op fields.
784 * linux-crisv32-low.cc (class crisv32_target)
785 <low_stopped_by_watchpoint>
786 <low_stopped_data_address>: Declare.
787 (cris_stopped_by_watchpoint): Turn into...
788 (crisv32_target::low_stopped_by_watchpoint): ...this.
789 (cris_stopped_data_address): Turn into...
790 (crisv32_target::low_stopped_data_address): ...this.
791 (the_low_target): Remove the op fields.
792 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
793 <low_stopped_data_address>: Declare.
794 (mips_stopped_by_watchpoint): Turn into...
795 (mips_target::low_stopped_by_watchpoint): ...this.
796 (mips_stopped_data_address): Turn into...
797 (mips_target::low_stopped_data_address): ...this.
798 (the_low_target): Remove the op fields.
799 * linux-bfin-low.cc (the_low_target): Remove the op fields.
800 * linux-m32r-low.cc (the_low_target): Ditto.
801 * linux-m68k-low.cc (the_low_target): Ditto.
802 * linux-ppc-low.cc (the_low_target): Ditto.
803 * linux-s390-low.cc (the_low_target): Ditto.
804 * linux-sh-low.cc (the_low_target): Ditto.
805 * linux-sparc-low.cc (the_low_target): Ditto.
806 * linux-tic6x-low.cc (the_low_target): Ditto.
807 * linux-tile-low.cc (the_low_target): Ditto.
808 * linux-xtensa-low.cc (the_low_target): Ditto.
810 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
812 Turn the 'insert_point' and 'remove_point' linux target ops into
813 methods of linux_process_target.
815 * linux-low.h (struct linux_target_ops): Remove the ops.
816 (class linux_process_target) <low_insert_point>
817 <low_remove_point>: Declare.
818 * linux-low.cc (linux_process_target::low_insert_point)
819 (linux_process_target::low_remove_point): Define.
820 (linux_process_target::insert_point)
821 (linux_process_target::remove_point): Update for calls to
822 low_insert_point and low_remove_point.
823 * linux-x86-low.cc (class x86_target) <low_insert_point>
824 <low_remove_point>: Declare.
825 (x86_insert_point): Turn into...
826 (x86_target::low_insert_point): ...this.
827 (x86_remove_point): Turn into...
828 (x86_target::low_remove_point): ...this.
829 (the_low_target): Remove the op fields.
830 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
831 <low_remove_point>: Declare.
832 (aarch64_insert_point): Turn into...
833 (aarch64_target::low_insert_point): ...this.
834 (aarch64_remove_point): Turn into...
835 (aarch64_target::low_remove_point): ...this.
836 (the_low_target): Remove the op fields.
837 * linux-arm-low.cc (class arm_target) <low_insert_point>
838 <low_remove_point>: Declare.
839 (arm_insert_point): Turn into...
840 (arm_target::low_insert_point): ...this.
841 (arm_remove_point): Turn into...
842 (arm_target::low_remove_point): ...this.
843 (the_low_target): Remove the op fields.
844 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
845 <low_remove_point>: Declare.
846 (crisv32_insert_point): Turn into...
847 (crisv32_target::low_insert_point): ...this.
848 (crisv32_remove_point): Turn into...
849 (crisv32_target::low_remove_point): ...this.
850 (the_low_target): Remove the op fields.
851 * linux-mips-low.cc (class mips_target) <low_insert_point>
852 <low_remove_point>: Declare.
853 (mips_insert_point): Turn into...
854 (mips_target::low_insert_point): ...this.
855 (mips_remove_point): Turn into...
856 (mips_target::low_remove_point): ...this.
857 (the_low_target): Remove the op fields.
858 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
859 <low_remove_point>: Declare.
860 (ppc_insert_point): Turn into...
861 (ppc_target::low_insert_point): ...this.
862 (ppc_remove_point): Turn into...
863 (ppc_target::low_remove_point): ...this.
864 (the_low_target): Remove the op fields.
865 * linux-bfin-low.cc (the_low_target): Remove the op fields.
866 * linux-m32r-low.cc (the_low_target): Ditto.
867 * linux-m68k-low.cc (the_low_target): Ditto.
868 * linux-s390-low.cc (the_low_target): Ditto.
869 * linux-sh-low.cc (the_low_target): Ditto.
870 * linux-sparc-low.cc (the_low_target): Ditto.
871 * linux-tic6x-low.cc (the_low_target): Ditto.
872 * linux-tile-low.cc (the_low_target): Ditto.
873 * linux-xtensa-low.cc (the_low_target): Ditto.
875 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
877 Remove the 'supports_z_point_type' linux target op and let the
878 concrete linux target define it by overriding the op declared in
879 process_stratum_target.
881 * linux-low.cc (linux_process_target::supports_z_point_type):
883 * linux-low.h (struct linux_target_ops): Remove the op.
884 (class linux_process_target) <supports_z_point_type>: Remove.
885 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
887 (x86_supports_z_point_type): Turn into...
888 (x86_target::supports_z_point_type): ...this.
889 (the_low_target): Remove the op field.
890 * linux-aarch64-low.cc (class aarch64_target)
891 <supports_z_point_type>: Declare.
892 (aarch64_supports_z_point_type): Turn into...
893 (aarch64_target::supports_z_point_type): ...this.
894 (the_low_target): Remove the op field.
895 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
897 (arm_supports_z_point_type): Turn into...
898 (arm_target::supports_z_point_type): ...this.
899 (the_low_target): Remove the op field.
900 * linux-crisv32-low.cc (class crisv32_target)
901 <supports_z_point_type>: Declare.
902 (cris_supports_z_point_type): Turn into...
903 (crisv32_target::supports_z_point_type): ...this.
904 (the_low_target): Remove the op field.
905 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
907 (mips_supports_z_point_type): Turn into...
908 (mips_target::supports_z_point_type): ...this.
909 (the_low_target): Remove the op field.
910 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
912 (ppc_supports_z_point_type): Turn into...
913 (ppc_target::supports_z_point_type): ...this.
914 (the_low_target): Remove the op field.
915 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
917 (s390_supports_z_point_type): Turn into...
918 (s390_target::supports_z_point_type): ...this.
919 (the_low_target): Remove the op field.
920 * linux-bfin-low.cc (the_low_target): Remove the op field.
921 * linux-m32r-low.cc (the_low_target): Ditto.
922 * linux-m68k-low.cc (the_low_target): Ditto.
923 * linux-sh-low.cc (the_low_target): Ditto.
924 * linux-sparc-low.cc (the_low_target): Ditto.
925 * linux-tic6x-low.cc (the_low_target): Ditto.
926 * linux-tile-low.cc (the_low_target): Ditto.
927 * linux-xtensa-low.cc (the_low_target): Ditto.
929 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
931 Turn the 'breakpoint_at' linux target op into a method of
932 linux_process_target.
934 * linux-low.h (struct linux_target_ops): Remove the op.
935 (class linux_process_target) <low_breakpoint_at>: Declare.
937 Update the callers below:
939 * linux-low.cc (linux_process_target::save_stop_reason)
940 (linux_process_target::thread_still_has_status_pending)
941 (linux_process_target::wait_1)
943 * linux-x86-low.cc (class x86_target)
944 <low_breakpoint_at>: Declare.
945 (x86_breakpoint_at): Turn into...
946 (x86_target::low_breakpoint_at): ...this.
947 (the_low_target): Remove the op field.
948 * linux-aarch64-low.cc (class aarch64_target)
949 <low_breakpoint_at>: Declare.
950 (aarch64_breakpoint_at): Turn into...
951 (aarch64_target::low_breakpoint_at): ...this.
952 (the_low_target): Remove the op field.
953 * linux-arm-low.cc (class arm_target)
954 <low_breakpoint_at>: Declare.
955 (arm_target::low_breakpoint_at): Define.
956 (the_low_target): Remove the op field.
957 * linux-bfin-low.cc (class bfin_target)
958 <low_breakpoint_at>: Declare.
959 (bfin_breakpoint_at): Turn into...
960 (bfin_target::low_breakpoint_at): ...this.
961 (the_low_target): Remove the op field.
962 * linux-cris-low.cc (class cris_target)
963 <low_breakpoint_at>: Declare.
964 (cris_breakpoint_at): Turn into...
965 (cris_target::low_breakpoint_at): ...this.
966 (the_low_target): Remove the op field.
967 * linux-crisv32-low.cc (class crisv32_target)
968 <low_breakpoint_at>: Declare.
969 (crisv32_breakpoint_at): Turn into...
970 (crisv32_target::low_breakpoint_at): ...this.
971 (the_low_target): Remove the op field.
972 * linux-ia64-low.cc (class ia64_target)
973 <low_breakpoint_at>: Declare.
974 (ia64_target::low_breakpoint_at): Define.
975 * linux-m32r-low.cc (class m32r_target)
976 <low_breakpoint_at>: Declare.
977 (m32r_breakpoint_at): Turn into...
978 (m32r_target::low_breakpoint_at): ...this.
979 (the_low_target): Remove the op field.
980 * linux-m68k-low.cc (class m68k_target)
981 <low_breakpoint_at>: Declare.
982 (m68k_breakpoint_at): Turn into...
983 (m68k_target::low_breakpoint_at): ...this.
984 (the_low_target): Remove the op field.
985 * linux-mips-low.cc (class mips_target)
986 <low_breakpoint_at>: Declare.
987 (mips_breakpoint_at): Turn into...
988 (mips_target::low_breakpoint_at): ...this.
989 (the_low_target): Remove the op field.
990 * linux-nios2-low.cc (class nios2_target)
991 <low_breakpoint_at>: Declare.
992 (nios2_breakpoint_at): Turn into...
993 (nios2_target::low_breakpoint_at): ...this.
994 (the_low_target): Remove the op field.
995 * linux-ppc-low.cc (class ppc_target)
996 <low_breakpoint_at>: Declare.
997 (ppc_breakpoint_at): Turn into...
998 (ppc_target::low_breakpoint_at): ...this.
999 (the_low_target): Remove the op field.
1000 * linux-riscv-low.cc (class riscv_target)
1001 <low_breakpoint_at>: Declare.
1002 (riscv_breakpoint_at): Turn into...
1003 (riscv_target::low_breakpoint_at): ...this.
1004 (the_low_target): Remove the op field.
1005 * linux-s390-low.cc (class s390_target)
1006 <low_breakpoint_at>: Declare.
1007 (s390_breakpoint_at): Turn into...
1008 (s390_target::low_breakpoint_at): ...this.
1009 (the_low_target): Remove the op field.
1010 * linux-sh-low.cc (class sh_target)
1011 <low_breakpoint_at>: Declare.
1012 (sh_breakpoint_at): Turn into...
1013 (sh_target::low_breakpoint_at): ...this.
1014 (the_low_target): Remove the op field.
1015 * linux-sparc-low.cc (class sparc_target)
1016 <low_breakpoint_at>: Declare.
1017 (sparc_breakpoint_at): Turn into...
1018 (sparc_target::low_breakpoint_at): ...this.
1019 (the_low_target): Remove the op field.
1020 * linux-tic6x-low.cc (class tic6x_target)
1021 <low_breakpoint_at>: Declare.
1022 (tic6x_breakpoint_at): Turn into...
1023 (tic6x_target::low_breakpoint_at): ...this.
1024 (the_low_target): Remove the op field.
1025 * linux-tile-low.cc (class tile_target)
1026 <low_breakpoint_at>: Declare.
1027 (tile_breakpoint_at): Turn into...
1028 (tile_target::low_breakpoint_at): ...this.
1029 (the_low_target): Remove the op field.
1030 * linux-xtensa-low.cc (class xtensa_target)
1031 <low_breakpoint_at>: Declare.
1032 (xtensa_breakpoint_at): Turn into...
1033 (xtensa_target::low_breakpoint_at): ...this.
1034 (the_low_target): Remove the op field.
1036 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1038 Turn the 'decr_pc_after_break' linux_target_ops field into
1039 a method of linux_process_target.
1041 * linux-low.h (struct linux_target_ops)
1042 <decr_pc_after_break>: Remove.
1043 (class linux_process_target) <low_decr_pc_after_break>: New method
1045 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1046 New method implementation.
1048 Update the users below.
1050 (linux_process_target::save_stop_reason)
1051 (linux_process_target::wait_1)
1052 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1054 (x86_target::low_decr_pc_after_break): New method implementation.
1055 (the_low_target): Remove the field.
1056 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1058 (bfin_target::low_decr_pc_after_break): New method implementation.
1059 (the_low_target): Remove the field.
1060 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1062 (m68k_target::low_decr_pc_after_break): New method implementation.
1063 (the_low_target): Remove the field.
1064 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1066 (s390_target::low_decr_pc_after_break): New method implementation.
1067 (the_low_target): Remove the field.
1068 * linux-aarch64-low.cc (the_low_target): Remove the field.
1069 * linux-arm-low.cc (the_low_target): Remove the field.
1070 * linux-cris-low.cc (the_low_target): Remove the field.
1071 * linux-crisv32-low.cc (the_low_target): Remove the field.
1072 * linux-m32r-low.cc (the_low_target): Remove the field.
1073 * linux-mips-low.cc (the_low_target): Remove the field.
1074 * linux-nios2-low.cc (the_low_target): Remove the field.
1075 * linux-ppc-low.cc (the_low_target): Remove the field.
1076 * linux-riscv-low.cc (the_low_target): Remove the field.
1077 * linux-sh-low.cc (the_low_target): Remove the field.
1078 * linux-sparc-low.cc (the_low_target): Remove the field.
1079 * linux-tic6x-low.cc (the_low_target): Remove the field.
1080 * linux-tile-low.cc (the_low_target): Remove the field.
1081 * linux-xtensa-low.cc (the_low_target): Remove the field.
1083 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1085 Remove the 'supports_software_single_step' linux target op and let
1086 the concrete linux target define it by overriding the op in
1087 process_stratum_target.
1088 Turn the 'get_next_pcs' linux target op into a method of
1089 linux_process_target.
1091 * linux-low.h (struct linux_target_ops): Remove the ops.
1092 (class linux_process_target) <supports_software_single_step>:
1094 <low_get_next_pcs>: Declare.
1095 * linux-low.cc (can_software_single_step): Remove.
1096 (linux_process_target::low_get_next_pcs): Define.
1097 (linux_process_target::supports_software_single_step): Remove.
1099 Update the callers below.
1101 (linux_process_target::handle_extended_wait)
1102 (linux_process_target::wait_1)
1103 (linux_process_target::install_software_single_step_breakpoints)
1104 (linux_process_target::single_step)
1105 (linux_process_target::thread_needs_step_over)
1106 (linux_process_target::proceed_one_lwp)
1107 (linux_process_target::supports_range_stepping)
1109 * linux-x86-low.cc (the_low_target): Remove the op field.
1110 * linux-aarch64-low.cc (the_low_target): Ditto.
1111 * linux-bfin-low.cc (the_low_target): Ditto.
1112 * linux-cris-low.cc (the_low_target): Ditto.
1113 * linux-crisv32-low.cc (the_low_target): Ditto.
1114 * linux-m32r-low.cc (the_low_target): Ditto.
1115 * linux-m68k-low.cc (the_low_target): Ditto.
1116 * linux-mips-low.cc (the_low_target): Ditto.
1117 * linux-nios2-low.cc (the_low_target): Ditto.
1118 * linux-ppc-low.cc (the_low_target): Ditto.
1119 * linux-riscv-low.cc (the_low_target): Ditto.
1120 * linux-s390-low.cc (the_low_target): Ditto.
1121 * linux-sh-low.cc (the_low_target): Ditto.
1122 * linux-sparc-low.cc (the_low_target): Ditto.
1123 * linux-tic6x-low.cc (the_low_target): Ditto.
1124 * linux-tile-low.cc (the_low_target): Ditto.
1125 * linux-xtensa-low.cc (the_low_target): Ditto.
1126 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1127 <supports_software_single_step>: Declare.
1128 (arm_target::supports_software_single_step): Define.
1129 (arm_gdbserver_get_next_pcs): Turn into...
1130 (arm_target::low_get_next_pcs): ...this.
1131 (the_low_target): Remove the op field.
1133 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1135 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1136 the concrete linux target define it by overriding the op
1137 in process_stratum_target.
1139 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1141 * linux-low.h (struct linux_target_ops): Remove the op.
1142 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1143 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1145 (x86_sw_breakpoint_from_kind): Turn into...
1146 (x86_target::sw_breakpoint_from_kind): ...this.
1147 (the_low_target): Remove the op field.
1148 * linux-aarch64-low.cc (class aarch64_target)
1149 <sw_breakpoint_from_kind>: Declare.
1150 (aarch64_sw_breakpoint_from_kind): Turn into...
1151 (aarch64_target::sw_breakpoint_from_kind): ...this.
1152 (the_low_target): Remove the op field.
1153 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1155 (arm_target::sw_breakpoint_from_kind): Define.
1156 (the_low_target): Remove the op field.
1157 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1159 (bfin_sw_breakpoint_from_kind): Turn into...
1160 (bfin_target::sw_breakpoint_from_kind): ...this.
1161 (the_low_target): Remove the op field.
1162 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1164 (cris_sw_breakpoint_from_kind): Turn into...
1165 (cris_target::sw_breakpoint_from_kind): ...this.
1166 (the_low_target): Remove the op field.
1167 * linux-crisv32-low.cc (class crisv32_target)
1168 <sw_breakpoint_from_kind>: Declare.
1169 (cris_sw_breakpoint_from_kind): Turn into...
1170 (crisv32_target::sw_breakpoint_from_kind): ...this.
1171 (the_low_target): Remove the op field.
1172 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1174 (ia64_target::sw_breakpoint_from_kind): Define.
1175 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1177 (m32r_sw_breakpoint_from_kind): Turn into...
1178 (m32r_target::sw_breakpoint_from_kind): ...this.
1179 (the_low_target): Remove the op field.
1180 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1182 (m68k_sw_breakpoint_from_kind): Turn into...
1183 (m68k_target::sw_breakpoint_from_kind): ...this.
1184 (the_low_target): Remove the op field.
1185 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1187 (mips_sw_breakpoint_from_kind): Turn into...
1188 (mips_target::sw_breakpoint_from_kind): ...this.
1189 (the_low_target): Remove the op field.
1190 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1192 (nios2_sw_breakpoint_from_kind): Turn into...
1193 (nios2_target::sw_breakpoint_from_kind): ...this.
1194 (the_low_target): Remove the op field.
1195 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1197 (ppc_sw_breakpoint_from_kind): Turn into...
1198 (ppc_target::sw_breakpoint_from_kind): ...this.
1199 (the_low_target): Remove the op field.
1200 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1202 (riscv_sw_breakpoint_from_kind): Turn into...
1203 (riscv_target::sw_breakpoint_from_kind): ...this.
1204 (the_low_target): Remove the op field.
1205 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1207 (s390_sw_breakpoint_from_kind): Turn into...
1208 (s390_target::sw_breakpoint_from_kind): ...this.
1209 (the_low_target): Remove the op field.
1210 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1212 (sh_sw_breakpoint_from_kind): Turn into...
1213 (sh_target::sw_breakpoint_from_kind): ...this.
1214 (the_low_target): Remove the op field.
1215 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1217 (sparc_sw_breakpoint_from_kind): Turn into...
1218 (sparc_target::sw_breakpoint_from_kind): ...this.
1219 (the_low_target): Remove the op field.
1220 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1222 (tic6x_sw_breakpoint_from_kind): Turn into...
1223 (tic6x_target::sw_breakpoint_from_kind): ...this.
1224 (the_low_target): Remove the op field.
1225 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1227 (tile_sw_breakpoint_from_kind): Turn into...
1228 (tile_target::sw_breakpoint_from_kind): ...this.
1229 (the_low_target): Remove the op field.
1230 * linux-xtensa-low.cc (class xtensa_target)
1231 <sw_breakpoint_from_kind>: Declare.
1232 (xtensa_sw_breakpoint_from_kind): Turn into...
1233 (xtensa_target::sw_breakpoint_from_kind): ...this.
1234 (the_low_target): Remove the op field.
1236 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1238 Remove the 'breakpoint_kind_from_pc' and
1239 'breakpoint_kind_from_current_state' linux target ops, and let the
1240 concrete linux target define them by overriding the ops of
1241 process_stratum_target.
1243 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1245 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1246 * linux-low.h (struct linux_target_ops): Remove ops.
1247 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1248 <breakpoint_kind_from_current_state>: Remove.
1249 * linux-x86-low.cc (the_low_target): Remove the op fields.
1250 * linux-bfin-low.cc (the_low_target): Ditto.
1251 * linux-cris-low.cc (the_low_target): Ditto.
1252 * linux-crisv32-low.cc (the_low_target): Ditto.
1253 * linux-m32r-low.cc (the_low_target): Ditto.
1254 * linux-m68k-low.cc (the_low_target): Ditto.
1255 * linux-mips-low.cc (the_low_target): Ditto.
1256 * linux-nios2-low.cc (the_low_target): Ditto.
1257 * linux-ppc-low.cc (the_low_target): Ditto.
1258 * linux-s390-low.cc (the_low_target): Ditto.
1259 * linux-sh-low.cc (the_low_target): Ditto.
1260 * linux-sparc-low.cc (the_low_target): Ditto.
1261 * linux-tic6x-low.cc (the_low_target): Ditto.
1262 * linux-tile-low.cc (the_low_target): Ditto.
1263 * linux-xtensa-low.cc (the_low_target): Ditto.
1264 * linux-aarch64-low.cc (class aarch64_target)
1265 <breakpoint_kind_from_pc>
1266 <breakpoint_kind_from_current_state>: Declare.
1267 (aarch64_breakpoint_kind_from_pc): Turn into...
1268 (aarch64_target::breakpoint_kind_from_pc): ...this.
1269 (aarch64_breakpoint_kind_from_current_state): Turn into...
1270 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1271 (the_low_target): Remove the op fields.
1272 * linux-arm-low.cc (class arm_target):
1273 <breakpoint_kind_from_pc>
1274 <breakpoint_kind_from_current_state>: Declare.
1275 (arm_target::breakpoint_kind_from_pc): Define.
1276 (arm_target::breakpoint_kind_from_current_state): Define.
1277 (the_low_target): Remove the op fields.
1278 * linux-riscv-low.cc (class riscv_target):
1279 <breakpoint_kind_from_pc>: Declare.
1280 (riscv_breakpoint_kind_from_pc): Turn into...
1281 (riscv_target::breakpoint_kind_from_pc): ...this.
1282 (the_low_target): Remove the op fields.
1284 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1286 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1287 of linux_process_target.
1289 * linux-low.h (struct linux_target_ops): Remove the ops.
1290 (class linux_process_target) <low_supports_breakpoints>
1292 <low_set_pc>: Declare.
1293 * linux-low.cc (supports_breakpoints): Turn into...
1294 (linux_process_target::low_supports_breakpoints): ...this.
1295 (linux_process_target::low_get_pc): Define.
1296 (linux_process_target::low_set_pc): Define.
1298 Update the callers below.
1300 (linux_process_target::get_pc)
1301 (linux_process_target::save_stop_reason)
1302 (linux_process_target::maybe_move_out_of_jump_pad)
1303 (linux_process_target::wait_1)
1304 (linux_process_target::resume_one_lwp_throw)
1305 (linux_process_target::resume)
1306 (linux_process_target::proceed_all_lwps)
1307 (linux_process_target::read_pc)
1308 (linux_process_target::write_pc)
1310 * linux-x86-low.cc (class linux_process_target)
1311 <low_supports_breakpoints>
1313 <low_set_pc>: Declare.
1314 (x86_target::low_supports_breakpoints): Define.
1315 (x86_get_pc): Turn into...
1316 (x86_target::low_get_pc): ...this.
1317 (x86_set_pc): Turn into...
1318 (x86_target::low_set_pc): ...this.
1319 (the_low_target): Remove the op fields.
1320 * linux-arm-low.cc (class arm_target)
1321 <low_supports_breakpoints>
1323 <low_set_pc>: Declare.
1324 (arm_target::low_supports_breakpoints)
1325 (arm_target::low_get_pc)
1326 (arm_target::low_set_pc): Define.
1327 (the_low_target): Remove the op fields.
1328 * linux-bfin-low.cc (class bfin_target)
1329 <low_supports_breakpoints>
1331 <low_set_pc>: Declare.
1332 (bfin_target::low_supports_breakpoints)
1333 (bfin_target::low_get_pc)
1334 (bfin_target::low_set_pc): Define.
1335 (the_low_target): Remove the op fields.
1336 * linux-cris-low.cc (class cris_target)
1337 <low_supports_breakpoints>
1339 <low_set_pc>: Declare.
1340 (cris_target::low_supports_breakpoints)
1341 (cris_target::low_get_pc)
1342 (cris_target::low_set_pc): Define.
1343 (the_low_target): Remove the op fields.
1344 * linux-crisv32-low.cc (class crisv32_target)
1345 <low_supports_breakpoints>
1347 <low_set_pc>: Declare.
1348 (crisv32_target::low_supports_breakpoints)
1349 (crisv32_target::low_get_pc)
1350 (crisv32_target::low_set_pc): Define.
1351 (the_low_target): Remove the op fields.
1352 * linux-m32r-low.cc (class m32r_target)
1353 <low_supports_breakpoints>
1355 <low_set_pc>: Declare.
1356 (m32r_target::low_supports_breakpoints)
1357 (m32r_target::low_get_pc)
1358 (m32r_target::low_set_pc): Define.
1359 (the_low_target): Remove the op fields.
1360 * linux-m68k-low.cc (class m68k_target)
1361 <low_supports_breakpoints>
1363 <low_set_pc>: Declare.
1364 (m68k_target::low_supports_breakpoints)
1365 (m68k_target::low_get_pc)
1366 (m68k_target::low_set_pc): Define.
1367 (the_low_target): Remove the op fields.
1368 * linux-nios2-low.cc (class nios2_target)
1369 <low_supports_breakpoints>
1371 <low_set_pc>: Declare.
1372 (nios2_target::low_supports_breakpoints)
1373 (nios2_target::low_get_pc)
1374 (nios2_target::low_set_pc): Define.
1375 (the_low_target): Remove the op fields.
1376 * linux-sh-low.cc (class sh_target)
1377 <low_supports_breakpoints>
1379 <low_set_pc>: Declare.
1380 (sh_target::low_supports_breakpoints)
1381 (sh_target::low_get_pc)
1382 (sh_target::low_set_pc): Define.
1383 (the_low_target): Remove the op fields.
1384 * linux-xtensa-low.cc (class xtensa_target)
1385 <low_supports_breakpoints>
1387 <low_set_pc>: Declare.
1388 (xtensa_target::low_supports_breakpoints)
1389 (xtensa_target::low_get_pc)
1390 (xtensa_target::low_set_pc): Define.
1391 (the_low_target): Remove the op fields.
1392 * linux-sparc-low.cc (class sparc_target)
1393 <low_supports_breakpoints>
1394 <low_get_pc>: Declare.
1395 (sparc_target::low_supports_breakpoints)
1396 (sparc_target::low_get_pc): Define.
1397 (the_low_target): Remove the op fields.
1398 * linux-tile-low.cc (class tile_target)
1399 <low_supports_breakpoints>
1401 <low_set_pc>: Declare.
1402 (tile_target::low_supports_breakpoints)
1403 (tile_target::low_get_pc)
1404 (tile_target::low_set_pc): Define.
1405 (the_low_target): Remove the op fields.
1406 * linux-aarch64-low.cc (class aarch64_target)
1407 <low_supports_breakpoints>
1409 <low_set_pc>: Declare.
1410 (aarch64_target::low_supports_breakpoints): Define.
1411 (aarch64_get_pc): Turn into...
1412 (aarch64_target::low_get_pc): ...this.
1413 (aarch64_set_pc): Turn into...
1414 (aarch64_target::low_set_pc): ...this.
1415 (the_low_target): Remove the op fields.
1416 * linux-mips-low.cc (class mips_target)
1417 <low_supports_breakpoints>
1419 <low_set_pc>: Declare.
1420 (mips_target::low_supports_breakpoints): Define.
1421 (mips_get_pc): Turn into...
1422 (mips_target::low_get_pc): ...this.
1423 (mips_set_pc): Turn into...
1424 (mips_target::low_set_pc): ...this.
1425 (the_low_target): Remove the op fields.
1426 * linux-ppc-low.cc (class ppc_target)
1427 <low_supports_breakpoints>
1429 <low_set_pc>: Declare.
1430 (ppc_target::low_supports_breakpoints): Define.
1431 (ppc_get_pc): Turn into...
1432 (ppc_target::low_get_pc): ...this.
1433 (ppc_set_pc): Turn into...
1434 (ppc_target::low_set_pc): ...this.
1435 (the_low_target): Remove the op fields.
1436 * linux-riscv-low.cc (class riscv_target)
1437 <low_supports_breakpoints>
1439 <low_set_pc>: Declare.
1440 (riscv_target::low_supports_breakpoints): Define.
1441 (riscv_get_pc): Turn into...
1442 (riscv_target::low_get_pc): ...this.
1443 (riscv_set_pc): Turn into...
1444 (riscv_target::low_set_pc): ...this.
1445 (the_low_target): Remove the op fields.
1446 * linux-s390-low.cc (class s390_target)
1447 <low_supports_breakpoints>
1449 <low_set_pc>: Declare.
1450 (s390_target::low_supports_breakpoints): Define.
1451 (s390_get_pc): Turn into...
1452 (s390_target::low_get_pc): ...this.
1453 (s390_set_pc): Turn into...
1454 (s390_target::low_set_pc): ...this.
1455 (the_low_target): Remove the op fields.
1456 * linux-tic6x-low.cc (class tic6x_target)
1457 <low_supports_breakpoints>
1459 <low_set_pc>: Declare.
1460 (tic6x_target::low_supports_breakpoints): Define.
1461 (tic6x_get_pc): Turn into...
1462 (tic6x_target::low_get_pc): ...this.
1463 (tic6x_set_pc): Turn into...
1464 (tic6x_target::low_set_pc): ...this.
1465 (the_low_target): Remove the op fields.
1467 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1469 Turn some more static methods in linux-low into private methods
1470 of linux_process_target.
1472 * linux-low.cc (get_pc): Turn into...
1473 (linux_process_target::get_pc): ...this.
1474 (save_stop_reason): Turn into...
1475 (linux_process_target::save_stop_reason): ...this.
1476 (thread_still_has_status_pending_p): Turn into...
1477 (linux_process_target::thread_still_has_status_pending): ...this.
1478 (status_pending_p_callback): Turn into...
1479 (linux_process_target::status_pending_p_callback): ...this.
1480 (resume_stopped_resumed_lwps): Turn into...
1481 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1482 (install_software_single_step_breakpoints): Turn into...
1483 (linux_process_target::install_software_single_step_breakpoints):
1485 (single_step): Turn into...
1486 (linux_process_target::single_step): ...this.
1487 (linux_resume_one_lwp_throw): Turn into...
1488 (linux_process_target::resume_one_lwp_throw): ...this.
1489 (linux_resume_one_lwp): Turn into...
1490 (linux_process_target::resume_one_lwp): ...this.
1491 (resume_status_pending_p): Turn into...
1492 (linux_process_target::resume_status_pending): ...this.
1493 (need_step_over_p): Turn into...
1494 (linux_process_target::thread_needs_step_over): ...this.
1495 (linux_resume_one_thread): Turn into...
1496 (linux_process_target::resume_one_thread): ...this.
1497 (proceed_one_lwp): Turn into...
1498 (linux_process_target::proceed_one_lwp): ...this.
1499 (unsuspend_and_proceed_one_lwp): Turn into...
1500 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1502 Update the calls/references to the above functions below.
1504 (linux_process_target::handle_extended_wait)
1505 (linux_process_target::filter_event)
1506 (linux_process_target::wait_for_event_filtered)
1507 (linux_process_target::wait_1)
1508 (linux_process_target::move_out_of_jump_pad)
1509 (linux_process_target::start_step_over)
1510 (linux_process_target::resume)
1511 (linux_process_target::proceed_all_lwps)
1512 (regsets_store_inferior_registers)
1513 (linux_process_target::store_register)
1515 * linux-low.h (class linux_process_target)
1518 <thread_still_has_status_pending>
1519 <status_pending_p_callback>
1520 <resume_stopped_resumed_lwps>
1521 <install_software_single_step_breakpoints>
1523 <resume_one_lwp_throw>
1525 <resume_status_pending>
1526 <thread_needs_step_over>
1529 <unsuspend_and_proceed_one_lwp>: Declare.
1531 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1533 Turn the 'fetch_register' linux target op into a method of
1534 linux_process_target.
1536 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1537 (class linux_process_target) <low_fetch_register>: Declare.
1538 * linux-x86-low.cc (the_low_target)
1539 * linux-aarch64-low.cc (the_low_target)
1540 * linux-arm-low.cc (the_low_target)
1541 * linux-bfin-low.cc (the_low_target)
1542 * linux-cris-low.cc (the_low_target)
1543 * linux-crisv32-low.cc (the_low_target)
1544 * linux-m32r-low.cc (the_low_target)
1545 * linux-m68k-low.cc (the_low_target)
1546 * linux-nios2-low.cc (the_low_target)
1547 * linux-ppc-low.cc (the_low_target)
1548 * linux-s390-low.cc (the_low_target)
1549 * linux-sh-low.cc (the_low_target)
1550 * linux-sparc-low.cc (the_low_target)
1551 * linux-tic6x-low.cc (the_low_target)
1552 * linux-tile-low.cc (the_low_target)
1553 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1554 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1556 (ia64_fetch_register): Turn into...
1557 (ia64_target::low_fetch_register): ...this.
1558 (the_low_target): Remove the op field.
1559 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1561 (mips_fetch_register): Turn into...
1562 (mips_target::low_fetch_register): ...this.
1563 (the_low_target): Remove the op field.
1564 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1566 (riscv_fetch_register): Turn into...
1567 (riscv_target::low_fetch_register): ...this.
1568 (the_low_target): Remove the op field.
1570 Update the callers below.
1572 * linux-low.cc (linux_process_target::fetch_registers)
1573 (linux_process_target::low_fetch_register)
1575 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1577 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1578 linux target ops into methods of linux_process_target.
1580 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1581 (class linux_process_target) <fetch_register>
1583 <usr_fetch_inferior_registers>
1584 <usr_store_inferior_registers>
1585 <low_cannot_fetch_register>
1586 <low_cannot_fetch_register> Declare.
1587 * linux-low.cc (fetch_register): Turn into...
1588 (linux_process_target::fetch_register): ...this.
1589 (store_register): Turn into ...
1590 (linux_process_target::store_register): ...this.
1591 (usr_fetch_inferior_registers): Turn into...
1592 (linux_process_target::usr_fetch_inferior_registers): ...this.
1593 (usr_store_inferior_registers): Turn into...
1594 (linux_process_target::usr_store_inferior_registers): ...this.
1595 * linux-x86-low.cc (class x86_target)
1596 <low_cannot_fetch_register>
1597 <low_cannot_store_register>: Declare.
1598 (x86_cannot_store_register): Turn into...
1599 (x86_target::low_cannot_store_register): ...this.
1600 (x86_cannot_fetch_register): Turn into...
1601 (x86_target::low_cannot_fetch_register): ...this.
1602 (the_low_target): Remove the target op fields.
1603 * linux-aarch64-low.cc (class aarch64_target)
1604 <low_cannot_fetch_register>
1605 <low_cannot_store_register>: Declare.
1606 (aarch64_target::low_cannot_fetch_register)
1607 (aarch64_target::low_cannot_store_register): Define.
1608 (the_low_target): Remove the op fields.
1609 * linux-arm-low.cc (class arm_target)
1610 <low_cannot_fetch_register>
1611 <low_cannot_store_register>: Declare.
1612 (arm_cannot_fetch_register): Turn into...
1613 (arm_target::low_cannot_fetch_register): ...this.
1614 (arm_cannot_store_register): Turn into...
1615 (arm_target::low_cannot_store_register): ...this.
1616 (the_low_target): Remove the op fields.
1617 * linux-bfin-low.cc (class bfin_target)
1618 <low_cannot_fetch_register>
1619 <low_cannot_store_register>: Declare.
1620 (bfin_cannot_fetch_register): Turn into...
1621 (bfin_target::low_cannot_fetch_register): ...this.
1622 (bfin_cannot_store_register): Turn into...
1623 (bfin_target::low_cannot_store_register): ...this.
1624 (the_low_target): Remove the op fields.
1625 * linux-cris-low.cc (class cris_target)
1626 <low_cannot_fetch_register>
1627 <low_cannot_store_register>: Declare.
1628 (cris_cannot_fetch_register): Turn into...
1629 (cris_target::low_cannot_fetch_register): ...this.
1630 (cris_cannot_store_register): Turn into...
1631 (cris_target::low_cannot_store_register): ...this.
1632 (the_low_target): Remove the op fields.
1633 * linux-crisv32-low.cc (class crisv32_target)
1634 <low_cannot_fetch_register>
1635 <low_cannot_store_register>: Declare.
1636 (crisv32_target::low_cannot_fetch_register)
1637 (crisv32_target::low_cannot_store_register): Define.
1638 (the_low_target): Remove the op fields.
1639 * linux-ia64-low.cc (class ia64_target)
1640 <low_cannot_fetch_register>
1641 <low_cannot_store_register>: Declare.
1642 (ia64_cannot_fetch_register): Turn into...
1643 (ia64_target::low_cannot_fetch_register): ...this.
1644 (ia64_cannot_store_register): Turn into...
1645 (ia64_target::low_cannot_store_register): ...this.
1646 (the_low_target): Remove the op fields.
1647 * linux-m32r-low.cc (class m32r_target)
1648 <low_cannot_fetch_register>
1649 <low_cannot_store_register>: Declare.
1650 (m32r_cannot_fetch_register): Turn into...
1651 (m32r_target::low_cannot_fetch_register): ...this.
1652 (m32r_cannot_store_register): Turn into...
1653 (m32r_target::low_cannot_store_register): ...this.
1654 (the_low_target): Remove the op fields.
1655 * linux-m68k-low.cc (class m68k_target)
1656 <low_cannot_fetch_register>
1657 <low_cannot_store_register>: Declare.
1658 (m68k_cannot_fetch_register): Turn into...
1659 (m68k_target::low_cannot_fetch_register): ...this.
1660 (m68k_cannot_store_register): Turn into...
1661 (m68k_target::low_cannot_store_register): ...this.
1662 (the_low_target): Remove the op fields.
1663 * linux-mips-low.cc (class mips_target)
1664 <low_cannot_fetch_register>
1665 <low_cannot_store_register>: Declare.
1666 (mips_cannot_fetch_register): Turn into...
1667 (mips_target::low_cannot_fetch_register): ...this.
1668 (mips_cannot_store_register): Turn into...
1669 (mips_target::low_cannot_store_register): ...this.
1670 (get_usrregs_info): Inline at the call sites in
1671 low_cannot_fetch_register and low_cannot_store_register,
1673 (the_low_target): Remove the op fields.
1674 * linux-nios2-low.cc (class nios2_target)
1675 <low_cannot_fetch_register>
1676 <low_cannot_store_register>: Declare.
1677 (nios2_cannot_fetch_register): Turn into...
1678 (nios2_target::low_cannot_fetch_register): ...this.
1679 (nios2_cannot_store_register): Turn into...
1680 (nios2_target::low_cannot_store_register): ...this.
1681 (the_low_target): Remove the op fields.
1682 * linux-ppc-low.cc (class ppc_target)
1683 <low_cannot_fetch_register>
1684 <low_cannot_store_register>: Declare.
1685 (ppc_cannot_fetch_register): Turn into...
1686 (ppc_target::low_cannot_fetch_register): ...this.
1687 (ppc_cannot_store_register): Turn into...
1688 (ppc_target::low_cannot_store_register): ...this.
1689 (the_low_target): Remove the op fields.
1690 * linux-riscv-low.cc (class riscv_target)
1691 <low_cannot_fetch_register>
1692 <low_cannot_store_register>: Declare.
1693 (riscv_target::low_cannot_fetch_register)
1694 (riscv_target::low_cannot_store_register): Define.
1695 (the_low_target): Remove the op fields.
1696 * linux-s390-low.cc (class s390_target)
1697 <low_cannot_fetch_register>
1698 <low_cannot_store_register>: Declare.
1699 (s390_cannot_fetch_register): Turn into...
1700 (s390_target::low_cannot_fetch_register): ...this.
1701 (s390_cannot_store_register): Turn into...
1702 (s390_target::low_cannot_store_register): ...this.
1703 (the_low_target): Remove the op fields.
1704 * linux-sh-low.cc (class sh_target)
1705 <low_cannot_fetch_register>
1706 <low_cannot_store_register>: Declare.
1707 (sh_cannot_fetch_register): Turn into...
1708 (sh_target::low_cannot_fetch_register): ...this.
1709 (sh_cannot_store_register): Turn into...
1710 (sh_target::low_cannot_store_register): ...this.
1711 (the_low_target): Remove the op fields.
1712 * linux-sparc-low.cc (class sparc_target)
1713 <low_cannot_fetch_register>
1714 <low_cannot_store_register>: Declare.
1715 (sparc_cannot_fetch_register): Turn into...
1716 (sparc_target::low_cannot_fetch_register): ...this.
1717 (sparc_cannot_store_register): Turn into...
1718 (sparc_target::low_cannot_store_register): ...this.
1719 (the_low_target): Remove the op fields.
1720 * linux-tic6x-low.cc (class tic6x_target)
1721 <low_cannot_fetch_register>
1722 <low_cannot_store_register>: Declare.
1723 (tic6x_cannot_fetch_register): Turn into...
1724 (tic6x_target::low_cannot_fetch_register): ...this.
1725 (tic6x_cannot_store_register): Turn into...
1726 (tic6x_target::low_cannot_store_register): ...this.
1727 (the_low_target): Remove the op fields.
1728 * linux-tile-low.cc (class tile_target)
1729 <low_cannot_fetch_register>
1730 <low_cannot_store_register>: Declare.
1731 (tile_cannot_fetch_register): Turn into...
1732 (tile_target::low_cannot_fetch_register): ...this.
1733 (tile_cannot_store_register): Turn into...
1734 (tile_target::low_cannot_store_register): ...this.
1735 (the_low_target): Remove the op fields.
1736 * linux-xtensa-low.cc (class xtensa_target)
1737 <low_cannot_fetch_register>
1738 <low_cannot_store_register>: Declare.
1739 (xtensa_target::low_cannot_fetch_register)
1740 (xtensa_target::low_cannot_store_register): Define.
1741 (the_low_target): Remove the op fields.
1743 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1745 Turn the 'regs_info' linux target op into a method of
1746 linux_process_target.
1748 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1749 (class linux_process_target) <get_regs_info>: Define.
1751 Update the callers below.
1753 * linux-low.cc (linux_process_target::fetch_registers)
1754 (linux_process_target::store_registers)
1755 * proc-service.cc (gregset_info)
1757 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1758 (x86_linux_regs_info): Turn into ...
1759 (x86_target::get_regs_info): ...this.
1760 (the_low_target): Remove the op field.
1761 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1763 (aarch64_regs_info): Turn into ...
1764 (aarch64_target::get_regs_info): ...this.
1765 (the_low_target): Remove the op field.
1766 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1767 (arm_regs_info): Turn into ...
1768 (arm_target::get_regs_info): ...this.
1769 (the_low_target): Remove the op field.
1770 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1771 (bfin_regs_info): Turn into ...
1772 (bfin_target::get_regs_info): ...this.
1773 (the_low_target): Remove the op field.
1774 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1775 (cris_regs_info): Turn into ...
1776 (cris_target::get_regs_info): ...this.
1777 (the_low_target): Remove the op field.
1778 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1780 (crisv32_regs_info): Turn into ...
1781 (crisv32_target::get_regs_info): ...this.
1782 (the_low_target): Remove the op field.
1783 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1784 (ia64_regs_info): Turn into ...
1785 (ia64_target::get_regs_info): ...this.
1786 (the_low_target): Remove the op field.
1787 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1788 (m32r_regs_info): Turn into ...
1789 (m32r_target::get_regs_info): ...this.
1790 (the_low_target): Remove the op field.
1791 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1792 (m68k_regs_info): Turn into ...
1793 (m68k_target::get_regs_info): ...this.
1794 (the_low_target): Remove the op field.
1795 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1796 (mips_regs_info): Turn into ...
1797 (mips_target::get_regs_info): ...this.
1798 (the_low_target): Remove the op field.
1799 (get_usrregs_info): Update the call to the op.
1800 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1801 (nios2_regs_info): Turn into ...
1802 (nios2_target::get_regs_info): ...this.
1803 (the_low_target): Remove the op field.
1804 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1805 (ppc_regs_info): Turn into ...
1806 (ppc_target::get_regs_info): ...this.
1807 (the_low_target): Remove the op field.
1808 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1809 (riscv_regs_info): Turn into ...
1810 (riscv_target::get_regs_info): ...this.
1811 (the_low_target): Remove the op field.
1812 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1813 (s390_regs_info): Turn into ...
1814 (s390_target::get_regs_info): ...this.
1815 (the_low_target): Remove the op field.
1816 (s390_collect_ptrace_register)
1817 (s390_supply_ptrace_register)
1818 (s390_fill_gregset): Update the call to the op.
1819 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1820 (sh_regs_info): Turn into ...
1821 (sh_target::get_regs_info): ...this.
1822 (the_low_target): Remove the op field.
1823 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1824 (sparc_regs_info): Turn into ...
1825 (sparc_target::get_regs_info): ...this.
1826 (the_low_target): Remove the op field.
1827 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1828 (tic6x_regs_info): Turn into ...
1829 (tic6x_target::get_regs_info): ...this.
1830 (the_low_target): Remove the op field.
1831 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1832 (tile_regs_info): Turn into ...
1833 (tile_target::get_regs_info): ...this.
1834 (the_low_target): Remove the op field.
1835 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1837 (xtensa_regs_info): Turn into ...
1838 (xtensa_target::get_regs_info): ...this.
1839 (the_low_target): Remove the op field.
1841 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1843 Turn the 'arch_setup' linux target op into a method of
1844 linux_process_target.
1846 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1847 (class linux_process_target) <arch_setup_thread>
1848 <low_arch_setup>: New declarations.
1849 * linux-low.cc (linux_arch_setup): Delete.
1850 (linux_arch_setup_thread): Turn into...
1851 (linux_process_target::arch_setup_thread): ... this.
1853 Update the callers below.
1855 (linux_process_target::handle_extended_wait)
1856 (linux_process_target::post_create_inferior)
1857 (linux_process_target::filter_event)
1859 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1861 (x86_linux_update_xmltarget): Turn into...
1862 (x86_target::update_xmltarget): ...this.
1863 (x86_linux_process_qsupported): Update the call to
1864 x86_linux_update_xmltarget.
1865 (x86_arch_setup): Turn into ...
1866 (x86_target::low_arch_setup): ...this.
1867 (the_low_target): Remove the op field.
1868 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1870 (aarch64_arch_setup): Turn into ...
1871 (aarch64_target::low_arch_setup): ...this.
1872 (the_low_target): Remove the op field.
1873 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1875 (arm_arch_setup): Turn into ...
1876 (arm_target::low_arch_setup): ...this.
1877 (the_low_target): Remove the op field.
1878 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1880 (bfin_arch_setup): Turn into ...
1881 (bfin_target::low_arch_setup): ...this.
1882 (the_low_target): Remove the op field.
1883 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1885 (cris_arch_setup): Turn into ...
1886 (cris_target::low_arch_setup): ...this.
1887 (the_low_target): Remove the op field.
1888 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1890 (crisv32_arch_setup): Turn into ...
1891 (crisv32_target::low_arch_setup): ...this.
1892 (the_low_target): Remove the op field.
1893 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1895 (ia64_arch_setup): Turn into ...
1896 (ia64_target::low_arch_setup): ...this.
1897 (the_low_target): Remove the op field.
1898 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1900 (m32r_arch_setup): Turn into ...
1901 (m32r_target::low_arch_setup): ...this.
1902 (the_low_target): Remove the op field.
1903 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1905 (m68k_arch_setup): Turn into ...
1906 (m68k_target::low_arch_setup): ...this.
1907 (the_low_target): Remove the op field.
1908 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1910 (mips_arch_setup): Turn into ...
1911 (mips_target::low_arch_setup): ...this.
1912 (the_low_target): Remove the op field.
1913 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1915 (nios2_arch_setup): Turn into ...
1916 (nios2_target::low_arch_setup): ...this.
1917 (the_low_target): Remove the op field.
1918 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1920 (ppc_arch_setup): Turn into ...
1921 (ppc_target::low_arch_setup): ...this.
1922 (the_low_target): Remove the op field.
1923 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1925 (riscv_arch_setup): Turn into ...
1926 (riscv_target::low_arch_setup): ...this.
1927 (the_low_target): Remove the op field.
1928 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1930 (s390_arch_setup): Turn into ...
1931 (s390_target::low_arch_setup): ...this.
1932 (the_low_target): Remove the op field.
1933 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1935 (sh_arch_setup): Turn into ...
1936 (sh_target::low_arch_setup): ...this.
1937 (the_low_target): Remove the op field.
1938 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1940 (sparc_arch_setup): Turn into ...
1941 (sparc_target::low_arch_setup): ...this.
1942 (the_low_target): Remove the op field.
1943 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1945 (tic6x_arch_setup): Turn into ...
1946 (tic6x_target::low_arch_setup): ...this.
1947 (the_low_target): Remove the op field.
1948 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1950 (tile_arch_setup): Turn into ...
1951 (tile_target::low_arch_setup): ...this.
1952 (the_low_target): Remove the op field.
1953 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1955 (xtensa_arch_setup): Turn into ...
1956 (xtensa_target::low_arch_setup): ...this.
1957 (the_low_target): Remove the op field.
1959 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1961 * linux-low.h (the_linux_target): New extern declaration.
1962 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1964 (the_linux_target): Remove.
1965 * linux-x86-low.cc (class x86_target): New class.
1966 (the_x86_target): New static object.
1967 (the_linux_target): Define as pointer to the_x86_target.
1968 * linux-aarch64-low.cc (class aarch64_target): New class.
1969 (the_aarch64_target): New static object.
1970 (the_linux_target): Define as pointer to the_aarch64_target.
1971 * linux-arm-low.cc (class arm_target): New class.
1972 (the_arm_target): New static object.
1973 (the_linux_target): Define as pointer to the_arm_target.
1974 * linux-bfin-low.cc (class bfin_target): New class.
1975 (the_bfin_target): New static object.
1976 (the_linux_target): Define as pointer to the_bfin_target.
1977 * linux-cris-low.cc (class cris_target): New class.
1978 (the_cris_target): New static object.
1979 (the_linux_target): Define as pointer to the_cris_target.
1980 * linux-crisv32-low.cc (class crisv32_target): New class.
1981 (the_crisv32_target): New static object.
1982 (the_linux_target): Define as pointer to the_crisv32_target.
1983 * linux-ia64-low.cc (class ia64_target): New class.
1984 (the_ia64_target): New static object.
1985 (the_linux_target): Define as pointer to the_ia64_target.
1986 * linux-m32r-low.cc (class m32r_target): New class.
1987 (the_m32r_target): New static object.
1988 (the_linux_target): Define as pointer to the_m32r_target.
1989 * linux-m68k-low.cc (class m68k_target): New class.
1990 (the_m68k_target): New static object.
1991 (the_linux_target): Define as pointer to the_m68k_target.
1992 * linux-mips-low.cc (class mips_target): New class.
1993 (the_mips_target): New static object.
1994 (the_linux_target): Define as pointer to the_mips_target.
1995 * linux-nios2-low.cc (class nios2_target): New class.
1996 (the_nios2_target): New static object.
1997 (the_linux_target): Define as pointer to the_nios2_target.
1998 * linux-ppc-low.cc (class ppc_target): New class.
1999 (the_ppc_target): New static object.
2000 (the_linux_target): Define as pointer to the_ppc_target.
2001 * linux-riscv-low.cc (class riscv_target): New class.
2002 (the_riscv_target): New static object.
2003 (the_linux_target): Define as pointer to the_riscv_target.
2004 * linux-s390-low.cc (class s390_target): New class.
2005 (the_s390_target): New static object.
2006 (the_linux_target): Define as pointer to the_s390_target.
2007 * linux-sh-low.cc (class sh_target): New class.
2008 (the_sh_target): New static object.
2009 (the_linux_target): Define as pointer to the_sh_target.
2010 * linux-sparc-low.cc (class sparc_target): New class.
2011 (the_sparc_target): New static object.
2012 (the_linux_target): Define as pointer to the_sparc_target.
2013 * linux-tic6x-low.cc (class tic6x_target): New class.
2014 (the_tic6x_target): New static object.
2015 (the_linux_target): Define as pointer to the_tic6x_target.
2016 * linux-tile-low.cc (class tile_target): New class.
2017 (the_tile_target): New static object.
2018 (the_linux_target): Define as pointer to the_tile_target.
2019 * linux-xtensa-low.cc (class xtensa_target): New class.
2020 (the_xtensa_target): New static object.
2021 (the_linux_target): Define as pointer to the_xtensa_target.
2023 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2025 Turn some static functions in linux-low.cc into private methods of
2026 linux_process_target.
2028 * linux-low.cc (handle_extended_wait): Turn into ...
2029 (linux_process_target::handle_extended_wait): ...this. Call
2030 'mourn' on 'this' object instead of 'the_target'.
2031 (maybe_move_out_of_jump_pad): Turn into...
2032 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2033 (linux_low_filter_event): Turn into...
2034 (linux_process_target::filter_event): ...this.
2035 (linux_wait_for_event_filtered): Turn into...
2036 (linux_process_target::wait_for_event_filtered): ...this.
2037 (linux_wait_for_event): Turn into...
2038 (linux_process_target::wait_for_event): ...this.
2039 (linux_wait_1): Turn into...
2040 (linux_process_target::wait_1): ...this.
2041 (wait_for_sigstop): Turn into...
2042 (linux_process_target::wait_for_sigstop): ...this.
2043 (move_out_of_jump_pad_callback): Turn into...
2044 (linux_process_target::move_out_of_jump_pad): ...this.
2045 (stop_all_lwps): Turn into...
2046 (linux_process_target::stop_all_lwps): ...this.
2047 (start_step_over): Turn into...
2048 (linux_process_target::start_step_over): ...this.
2049 (complete_ongoing_step_over): Turn into...
2050 (linux_process_target::complete_ongoing_step_over): ...this.
2051 (proceed_all_lwps): Turn into...
2052 (linux_process_target::proceed_all_lwps): ...this.
2053 (unstop_all_lwps): Turn into...
2054 (linux_process_target::unstop_all_lwps): ...this.
2056 * linux-low.h (class linux_process_target)
2057 <handle_extended_wait>
2058 <maybe_move_out_of_jump_pad>
2060 <wait_for_event_filtered>
2064 <move_out_of_jump_pad>
2067 <complete_ongoing_step_over>
2069 <unstop_all_lwps>: Declare.
2071 Update the callers below.
2073 * linux-low.cc (linux_process_target::attach): Update.
2074 (linux_process_target::stabilize_threads): Ditto.
2075 (linux_process_target::wait): Ditto.
2077 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2079 * linux-low.h (struct linux_target_ops): Update the comment for
2080 'cannot_store_register' to return 0 or 1.
2081 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2084 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2086 * config.in: Re-generate.
2087 * configure: Re-generate.
2089 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2091 * regcache.cc (find_register_by_number): Update.
2092 * tdesc.cc (init_target_desc): Likewise.
2093 * tdesc.h (target_desc::reg_defs): Likewise.
2095 2020-03-12 Tom Tromey <tom@tromey.com>
2097 * configure: Rebuild.
2098 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2099 (WIN32APILIBS): New subst.
2100 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2102 (gdbsupport/%.o): Remove target.
2103 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2104 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2105 (WIN32APILIBS): New variable.
2106 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2107 (gdbreplay$(EXEEXT)): Likewise.
2109 2020-03-12 Tom Tromey <tom@tromey.com>
2111 * config.in, configure: Rebuild.
2112 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2113 * acinclude.m4: Include gettext-sister.m4.
2114 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2116 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2117 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2119 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2121 * acinclude.m4: Update path to selftest.m4.
2123 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2125 * configure.ac: Don't source bfd/development.sh, move
2126 GDB_AC_COMMON higher.
2127 * configure: Re-generate.
2129 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2131 * configure: Re-generate.
2133 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2135 * configure: Re-generate.
2137 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2139 * .dir-locals.el: New file.
2141 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2143 * .gitattributes: New file.
2145 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2147 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2148 reply into an S reply.
2149 * server.cc (disable_packet_T): New global.
2150 (captured_main): Set new global when appropriate.
2151 * server.h (disable_packet_T): Declare.
2153 2020-02-21 Tom Tromey <tom@tromey.com>
2155 * Makefile.in (mostlyclean): New target.
2157 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2159 * target.h (struct process_stratum_target): Remove.
2160 (class process_target): Rename to ...
2161 (class process_stratum_target): ... this.
2162 * linux-low.h (class linux_process_target): Derive from
2163 'process_stratum_target'.
2164 * linux-low.cc (linux_target_ops): Remove.
2165 (initialize_low): Set the_target to the singleton instance of
2166 linux_process_target.
2167 * lynx-low.h (class lynx_process_target): Derive from
2168 'process_stratum_target'.
2169 * lynx-low.cc (lynx_target_ops): Remove.
2170 (initialize_low): Set the_target to the singleton instance of
2171 lynx_process_target.
2172 * nto-low.h (class nto_process_target): Derive from
2173 'process_stratum_target'.
2174 * nto-low.cc (nto_target_ops): Remove.
2175 (initialize_low): Set the_target to the singleton instance of
2177 * win32-low.h (class win32_process_target): Derive from
2178 'process_stratum_target'.
2179 * win32-low.cc (win32_target_ops): Remove.
2180 (initialize_low): Set the_target to the singleton instance of
2181 win32_process_target.
2183 Replace 'the_target->pt' with 'the_target' in the uses below.
2185 * hostio.cc (hostio_error)
2190 * linux-aarch32-low.cc (arm_breakpoint_at)
2191 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2192 * linux-arm-low.cc (arm_sigreturn_next_pc)
2194 (arm_get_syscall_trapinfo)
2195 * linux-cris-low.cc (cris_breakpoint_at)
2196 * linux-crisv32-low.cc (cris_breakpoint_at)
2197 * linux-low.cc (handle_extended_wait)
2200 (linux_process_target::breakpoint_kind_from_pc)
2202 * linux-m32r-low.cc (m32r_breakpoint_at)
2203 * linux-mips-low.cc (mips_breakpoint_at)
2204 * linux-nios2-low.cc (nios2_breakpoint_at)
2205 * linux-ppc-low.cc (ppc_breakpoint_at)
2206 * linux-s390-low.cc (s390_get_hwcap)
2207 * linux-sh-low.cc (sh_breakpoint_at)
2208 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2209 (sparc_store_gregset_from_stack)
2210 (sparc_breakpoint_at)
2211 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2212 * linux-tile-low.cc (tile_breakpoint_at)
2213 * linux-x86-low.cc (x86_breakpoint_at)
2214 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2215 * mem-break.cc (bp_size)
2217 (insert_memory_breakpoint)
2218 (set_raw_breakpoint_at)
2219 (delete_raw_breakpoint)
2221 (uninsert_raw_breakpoint)
2222 (reinsert_raw_breakpoint)
2223 (validate_inserted_breakpoint)
2224 * regcache.cc (regcache_read_pc)
2226 * remote-utils.cc (putpkt_binary_1)
2229 (prepare_resume_reply)
2230 * server.cc (handle_general_set)
2233 (handle_qxfer_exec_file)
2234 (handle_qxfer_libraries_svr4)
2235 (handle_qxfer_osdata)
2236 (handle_qxfer_siginfo)
2237 (handle_qxfer_fdpic)
2241 (queue_stop_reply_callback)
2243 * target.cc (prepare_to_access_memory)
2244 (done_accessing_memory)
2245 (read_inferior_memory)
2246 (target_write_memory)
2247 (target_stop_and_wait)
2249 (target_mourn_inferior)
2250 (target_continue_no_signal)
2252 (target_supports_multi_process)
2255 (target_create_inferior)
2256 (target_post_create_inferior)
2258 (target_supports_fork_events)
2259 (target_supports_vfork_events)
2260 (target_supports_exec_events)
2261 (target_handle_new_gdb_connection)
2264 (fetch_inferior_registers)
2265 (store_inferior_registers)
2267 (target_supports_non_stop)
2269 (target_process_qsupported)
2270 (target_supports_catch_syscall)
2271 (target_get_ipa_tdesc_idx)
2272 (target_supports_tracepoints)
2273 (target_supports_fast_tracepoints)
2274 (target_get_min_fast_tracepoint_insn_len)
2275 (target_thread_stopped)
2277 (target_unpause_all)
2278 (target_stabilize_threads)
2279 (target_install_fast_tracepoint_jump_pad)
2281 (target_supports_disable_randomization)
2282 (target_supports_agent)
2283 (target_enable_btrace)
2284 (target_disable_btrace)
2285 (target_read_btrace)
2286 (target_read_btrace_conf)
2287 (target_supports_range_stepping)
2288 (target_supports_stopped_by_sw_breakpoint)
2289 (target_stopped_by_sw_breakpoint)
2290 (target_supports_stopped_by_hw_breakpoint)
2291 (target_supports_hardware_single_step)
2292 (target_stopped_by_hw_breakpoint)
2293 (target_breakpoint_kind_from_pc)
2294 (target_breakpoint_kind_from_current_state)
2295 (target_supports_software_single_step)
2296 (target_core_of_thread)
2297 (target_thread_name)
2298 (target_thread_handle)
2299 * win32-low.cc (do_initial_child_stuff)
2301 Rename target op default definitions listed below.
2303 * target.cc (process_target::post_create_inferior): Rename as ...
2304 (process_stratum_target::post_create_inferior): ... this.
2305 (process_target::prepare_to_access_memory): Rename as ...
2306 (process_stratum_target::prepare_to_access_memory): ... this.
2307 (process_target::done_accessing_memory): Rename as ...
2308 (process_stratum_target::done_accessing_memory): ... this.
2309 (process_target::look_up_symbols): Rename as ...
2310 (process_stratum_target::look_up_symbols): ... this.
2311 (process_target::supports_read_auxv): Rename as ...
2312 (process_stratum_target::supports_read_auxv): ... this.
2313 (process_target::read_auxv): Rename as ...
2314 (process_stratum_target::read_auxv): ... this.
2315 (process_target::supports_z_point_type): Rename as ...
2316 (process_stratum_target::supports_z_point_type): ... this.
2317 (process_target::insert_point): Rename as ...
2318 (process_stratum_target::insert_point): ... this.
2319 (process_target::remove_point): Rename as ...
2320 (process_stratum_target::remove_point): ... this.
2321 (process_target::stopped_by_sw_breakpoint): Rename as ...
2322 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2323 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2324 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2325 (process_target::stopped_by_hw_breakpoint): Rename as ...
2326 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2327 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2328 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2329 (process_target::supports_hardware_single_step): Rename as ...
2330 (process_stratum_target::supports_hardware_single_step): ... this.
2331 (process_target::stopped_by_watchpoint): Rename as ...
2332 (process_stratum_target::stopped_by_watchpoint): ... this.
2333 (process_target::stopped_data_address): Rename as ...
2334 (process_stratum_target::stopped_data_address): ... this.
2335 (process_target::supports_read_offsets): Rename as ...
2336 (process_stratum_target::supports_read_offsets): ... this.
2337 (process_target::read_offsets): Rename as ...
2338 (process_stratum_target::read_offsets): ... this.
2339 (process_target::supports_get_tls_address): Rename as ...
2340 (process_stratum_target::supports_get_tls_address): ... this.
2341 (process_target::get_tls_address): Rename as ...
2342 (process_stratum_target::get_tls_address): ... this.
2343 (process_target::hostio_last_error): Rename as ...
2344 (process_stratum_target::hostio_last_error): ... this.
2345 (process_target::supports_qxfer_osdata): Rename as ...
2346 (process_stratum_target::supports_qxfer_osdata): ... this.
2347 (process_target::qxfer_osdata): Rename as ...
2348 (process_stratum_target::qxfer_osdata): ... this.
2349 (process_target::supports_qxfer_siginfo): Rename as ...
2350 (process_stratum_target::supports_qxfer_siginfo): ... this.
2351 (process_target::qxfer_siginfo): Rename as ...
2352 (process_stratum_target::qxfer_siginfo): ... this.
2353 (process_target::supports_non_stop): Rename as ...
2354 (process_stratum_target::supports_non_stop): ... this.
2355 (process_target::async): Rename as ...
2356 (process_stratum_target::async): ... this.
2357 (process_target::start_non_stop): Rename as ...
2358 (process_stratum_target::start_non_stop): ... this.
2359 (process_target::supports_multi_process): Rename as ...
2360 (process_stratum_target::supports_multi_process): ... this.
2361 (process_target::supports_fork_events): Rename as ...
2362 (process_stratum_target::supports_fork_events): ... this.
2363 (process_target::supports_vfork_events): Rename as ...
2364 (process_stratum_target::supports_vfork_events): ... this.
2365 (process_target::supports_exec_events): Rename as ...
2366 (process_stratum_target::supports_exec_events): ... this.
2367 (process_target::handle_new_gdb_connection): Rename as ...
2368 (process_stratum_target::handle_new_gdb_connection): ... this.
2369 (process_target::handle_monitor_command): Rename as ...
2370 (process_stratum_target::handle_monitor_command): ... this.
2371 (process_target::core_of_thread): Rename as ...
2372 (process_stratum_target::core_of_thread): ... this.
2373 (process_target::supports_read_loadmap): Rename as ...
2374 (process_stratum_target::supports_read_loadmap): ... this.
2375 (process_target::read_loadmap): Rename as ...
2376 (process_stratum_target::read_loadmap): ... this.
2377 (process_target::process_qsupported): Rename as ...
2378 (process_stratum_target::process_qsupported): ... this.
2379 (process_target::supports_tracepoints): Rename as ...
2380 (process_stratum_target::supports_tracepoints): ... this.
2381 (process_target::read_pc): Rename as ...
2382 (process_stratum_target::read_pc): ... this.
2383 (process_target::write_pc): Rename as ...
2384 (process_stratum_target::write_pc): ... this.
2385 (process_target::supports_thread_stopped): Rename as ...
2386 (process_stratum_target::supports_thread_stopped): ... this.
2387 (process_target::thread_stopped): Rename as ...
2388 (process_stratum_target::thread_stopped): ... this.
2389 (process_target::supports_get_tib_address): Rename as ...
2390 (process_stratum_target::supports_get_tib_address): ... this.
2391 (process_target::get_tib_address): Rename as ...
2392 (process_stratum_target::get_tib_address): ... this.
2393 (process_target::pause_all): Rename as ...
2394 (process_stratum_target::pause_all): ... this.
2395 (process_target::unpause_all): Rename as ...
2396 (process_stratum_target::unpause_all): ... this.
2397 (process_target::stabilize_threads): Rename as ...
2398 (process_stratum_target::stabilize_threads): ... this.
2399 (process_target::supports_fast_tracepoints): Rename as ...
2400 (process_stratum_target::supports_fast_tracepoints): ... this.
2401 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2402 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2403 (process_target::emit_ops): Rename as ...
2404 (process_stratum_target::emit_ops): ... this.
2405 (process_target::supports_disable_randomization): Rename as ...
2406 (process_stratum_target::supports_disable_randomization): ... this.
2407 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2408 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2409 (process_target::qxfer_libraries_svr4): Rename as ...
2410 (process_stratum_target::qxfer_libraries_svr4): ... this.
2411 (process_target::supports_agent): Rename as ...
2412 (process_stratum_target::supports_agent): ... this.
2413 (process_target::enable_btrace): Rename as ...
2414 (process_stratum_target::enable_btrace): ... this.
2415 (process_target::disable_btrace): Rename as ...
2416 (process_stratum_target::disable_btrace): ... this.
2417 (process_target::read_btrace): Rename as ...
2418 (process_stratum_target::read_btrace): ... this.
2419 (process_target::read_btrace_conf): Rename as ...
2420 (process_stratum_target::read_btrace_conf): ... this.
2421 (process_target::supports_range_stepping): Rename as ...
2422 (process_stratum_target::supports_range_stepping): ... this.
2423 (process_target::supports_pid_to_exec_file): Rename as ...
2424 (process_stratum_target::supports_pid_to_exec_file): ... this.
2425 (process_target::pid_to_exec_file): Rename as ...
2426 (process_stratum_target::pid_to_exec_file): ... this.
2427 (process_target::supports_multifs): Rename as ...
2428 (process_stratum_target::supports_multifs): ... this.
2429 (process_target::multifs_open): Rename as ...
2430 (process_stratum_target::multifs_open): ... this.
2431 (process_target::multifs_unlink): Rename as ...
2432 (process_stratum_target::multifs_unlink): ... this.
2433 (process_target::multifs_readlink): Rename as ...
2434 (process_stratum_target::multifs_readlink): ... this.
2435 (process_target::breakpoint_kind_from_pc): Rename as ...
2436 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2437 (process_target::breakpoint_kind_from_current_state): Rename as ...
2438 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2439 (process_target::thread_name): Rename as ...
2440 (process_stratum_target::thread_name): ... this.
2441 (process_target::thread_handle): Rename as ...
2442 (process_stratum_target::thread_handle): ... this.
2443 (process_target::supports_software_single_step): Rename as ...
2444 (process_stratum_target::supports_software_single_step): ... this.
2445 (process_target::supports_catch_syscall): Rename as ...
2446 (process_stratum_target::supports_catch_syscall): ... this.
2447 (process_target::get_ipa_tdesc_idx): Rename as ...
2448 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2450 2020-02-20 Pedro Alves <palves@redhat.com>
2452 * target.cc (set_target_ops): Simply copy the given target pointer
2453 instead of creating a copy of the pointed object.
2455 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2457 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2460 * target.h (struct process_stratum_target): Remove the target op.
2461 (class process_target): Add the target op.
2462 (target_get_ipa_tdesc_idx): Update the macro.
2463 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2465 Update the derived classes and callers below.
2467 * linux-low.cc (linux_target_ops): Update.
2468 (linux_get_ipa_tdesc_idx): Turn into ...
2469 (linux_process_target::get_ipa_tdesc_idx): ... this.
2470 * linux-low.h (class linux_process_target): Update.
2471 * lynx-low.cc (lynx_target_ops): Update.
2472 * nto-low.cc (nto_target_ops): Update.
2473 * win32-low.cc (win32_target_ops): Update.
2475 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2477 Turn process_stratum_target's supports_catch_syscall op into a
2478 method of process_target.
2480 * target.h (struct process_stratum_target): Remove the target op.
2481 (class process_target): Add the target op.
2482 (target_supports_catch_syscall): Update the macro.
2483 * target.cc (process_target::supports_catch_syscall): Define.
2485 Update the derived classes and callers below.
2487 * linux-low.cc (linux_target_ops): Update.
2488 (linux_supports_catch_syscall): Turn into ...
2489 (linux_process_target::supports_catch_syscall): ... this.
2490 * linux-low.h (class linux_process_target): Update.
2491 * lynx-low.cc (lynx_target_ops): Update.
2492 * nto-low.cc (nto_target_ops): Update.
2493 * win32-low.cc (win32_target_ops): Update.
2495 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2497 Turn process_stratum_target's supports_software_single_step op
2498 into a method of process_target.
2500 * target.h (struct process_stratum_target): Remove the target op.
2501 (class process_target): Add the target op.
2502 (target_supports_software_single_step): Update the macro.
2503 * target.cc (process_target::supports_software_single_step): Define.
2505 Update the derived classes and callers below.
2507 * linux-low.cc (linux_target_ops): Update.
2508 (linux_supports_software_single_step): Turn into ...
2509 (linux_process_target::supports_software_single_step): ... this.
2510 * linux-low.h (class linux_process_target): Update.
2511 * lynx-low.cc (lynx_target_ops): Update.
2512 * nto-low.cc (nto_target_ops): Update.
2513 * win32-low.cc (win32_target_ops): Update.
2515 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2517 Turn process_stratum_target's thread_name and thread_handle ops
2518 into methods of process_target.
2520 * target.h (struct process_stratum_target): Remove the target ops.
2521 (class process_target): Add the target ops.
2522 (target_thread_name): Update the macro.
2523 (target_thread_handle): Update the macro.
2524 * target.cc (process_target::thread_name): Define.
2525 (process_target::thread_handle): Define.
2527 Update the derived classes and callers below.
2529 * linux-low.cc (linux_target_ops): Update.
2530 (linux_process_target::thread_name): Define.
2531 (linux_process_target::thread_handle): Define.
2532 * linux-low.h (class linux_process_target): Update.
2533 * lynx-low.cc (lynx_target_ops): Update.
2534 * nto-low.cc (nto_target_ops): Update.
2535 * win32-low.cc (win32_target_ops): Update.
2537 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2539 Turn process_stratum_target's breakpoint_kind_from_pc,
2540 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2541 ops into methods of process_target.
2543 * target.h (struct process_stratum_target): Remove the target op.
2544 (class process_target): Add the target op.
2545 (target_breakpoint_kind_from_pc): Update the macro.
2546 (target_breakpoint_kind_from_current_state): Update the macro.
2547 (default_breakpoint_kind_from_pc): Remove declaration.
2548 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2549 (process_target::breakpoint_kind_from_pc): ... this.
2550 (process_target::breakpoint_kind_from_current_state): Define.
2552 Update the derived classes and callers below.
2554 * mem-break.cc (bp_size): Update.
2555 (bp_opcode): Update.
2556 * linux-low.cc (linux_target_ops): Update.
2557 (linux_wait_1): Update.
2558 (linux_breakpoint_kind_from_pc): Turn into ...
2559 (linux_process_target::breakpoint_kind_from_pc): ... this.
2560 (linux_sw_breakpoint_from_kind): Turn into ...
2561 (linux_process_target::sw_breakpoint_from_kind): ... this.
2562 (linux_breakpoint_kind_from_current_state): Turn into ...
2563 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2564 * linux-low.h (class linux_process_target): Update.
2565 * lynx-low.cc (lynx_target_ops): Update.
2566 (lynx_process_target::sw_breakpoint_from_kind): Define.
2567 * lynx-low.h (class lynx_process_target): Update.
2568 * nto-low.cc (nto_target_ops): Update.
2569 (nto_sw_breakpoint_from_kind): Turn into ...
2570 (nto_process_target::sw_breakpoint_from_kind): ... this.
2571 * nto-low.h (class nto_process_target): Update.
2572 * win32-low.cc (win32_target_ops): Update.
2573 (win32_sw_breakpoint_from_kind): Turn into ...
2574 (win32_process_target::sw_breakpoint_from_kind): ... this.
2575 * win32-low.h (class win32_process_target): Update.
2577 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2579 Turn process_stratum_target's multifs_open, multifs_readlink,
2580 multifs_unlink ops into methods of process_target.
2582 * target.h (struct process_stratum_target): Remove the target ops.
2583 (class process_target): Add the target ops. Also add
2585 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2587 (process_target::supports_multifs): Define.
2588 (process_target::multifs_open): Define.
2589 (process_target::multifs_readlink): Define.
2590 (process_target::multifs_unlink): Define.
2592 Update the derived classes and callers below.
2594 * hostio.cc (handle_setfs): Update.
2595 (handle_open): Update.
2596 (handle_unlink): Update.
2597 (handle_readlink): Update.
2598 * linux-low.cc (linux_target_ops): Update.
2599 (linux_process_target::supports_multifs): Define.
2600 (linux_process_target::multifs_open): Define.
2601 (linux_process_target::multifs_readlink): Define.
2602 (linux_process_target::multifs_unlink): Define.
2603 * linux-low.h (class linux_process_target): Update.
2604 * lynx-low.cc (lynx_target_ops): Update.
2605 * nto-low.cc (nto_target_ops): Update.
2606 * win32-low.cc (win32_target_ops): Update.
2608 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2610 Turn process_stratum_target's pid_to_exec_file op into a method
2613 * target.h (struct process_stratum_target): Remove the target op.
2614 (class process_target): Add the target op. Also add
2615 'supports_pid_to_exec_file'.
2616 * target.cc (process_target::pid_to_exec_file): Define.
2617 (process_target::supports_pid_to_exec_file): Define.
2619 Update the derived classes and callers below.
2621 * server.cc (handle_qxfer_exec_file): Update.
2622 (handle_query): Update.
2623 * linux-low.cc (linux_target_ops): Update.
2624 (linux_process_target::supports_pid_to_exec_file): Define.
2625 (linux_process_target::pid_to_exec_file): Define.
2626 * linux-low.h (class linux_process_target): Update.
2627 * lynx-low.cc (lynx_target_ops): Update.
2628 * nto-low.cc (nto_target_ops): Update.
2629 * win32-low.cc (win32_target_ops): Update.
2631 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2633 Turn process_stratum_target's supports_range_stepping op into a
2634 method of process_target.
2636 * target.h (struct process_stratum_target): Remove the target op.
2637 (class process_target): Add the target op.
2638 (target_supports_range_stepping): Update the macro.
2639 * target.cc (process_target::supports_range_stepping): Define.
2641 Update the derived classes and callers below.
2643 * linux-low.cc (linux_target_ops): Update.
2644 (linux_supports_range_stepping): Turn into ...
2645 (linux_process_target::supports_range_stepping): ... this.
2646 * linux-low.h (class linux_process_target): Update.
2647 * lynx-low.cc (lynx_target_ops): Update.
2648 * nto-low.cc (nto_target_ops): Update.
2649 * win32-low.cc (win32_target_ops): Update.
2651 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2653 Turn process_stratum_target's btrace-related ops (enable_btrace,
2654 disable_btrace, read_btrace, read_btrace_conf) into methods of
2657 * target.h (struct process_stratum_target): Remove the target ops.
2658 (class process_target): Add the target ops.
2659 (target_enable_btrace): Update.
2660 (target_disable_btrace): Update.
2661 (target_read_btrace): Update.
2662 (target_read_btrace_conf): Update.
2663 * target.cc (process_target::enable_btrace): Define.
2664 (process_target::disable_btrace): Define.
2665 (process_target::read_btrace): Define.
2666 (process_target::read_btrace_conf): Define.
2668 Update the derived classes and callers below.
2670 * linux-low.cc (linux_target_ops): Update.
2671 (linux_process_target:enable_btrace): Define as a wrapper around
2672 linux_enable_btrace.
2673 (linux_low_disable_btrace): Turn into ...
2674 (linux_process_target::disable_btrace): ... this.
2675 (linux_low_read_btrace): Turn into ...
2676 (linux_process_target::read_btrace): ... this.
2677 (linux_low_btrace_conf): Turn into ...
2678 (linux_process_target::read_btrace_conf): ... this.
2679 * linux-low.h (class linux_process_target): Update.
2680 * lynx-low.cc (lynx_target_ops): Update.
2681 * nto-low.cc (nto_target_ops): Update.
2682 * win32-low.cc (win32_target_ops): Update.
2684 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2686 Turn process_stratum_target's supports_agent op into a method of
2689 * target.h (struct process_stratum_target): Remove the target op.
2690 (class process_target): Add the target op.
2691 (target_supports_agent): Update the macro.
2692 * target.cc (process_target::supports_agent): Define.
2694 Update the derived classes and callers below.
2696 * linux-low.cc (linux_target_ops): Update.
2697 (linux_supports_agent): Turn into ...
2698 (linux_process_target::supports_agent): ... this.
2699 * linux-low.h (class linux_process_target): Update.
2700 * lynx-low.cc (lynx_target_ops): Update.
2701 * nto-low.cc (nto_target_ops): Update.
2702 * win32-low.cc (win32_target_ops): Update.
2704 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2706 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2707 method of process_target.
2709 * target.h (struct process_stratum_target): Remove the target op.
2710 (class process_target): Add the target op. Also add
2711 'supports_qxfer_libraries_svr4'.
2712 * target.cc (process_target::qxfer_libraries_svr4): Define.
2713 (process_target::supports_qxfer_libraries_svr4): Define.
2715 Update the derived classes and callers below.
2717 * server.cc (handle_qxfer_libraries_svr4): Update.
2718 (handle_query): Update.
2719 * linux-low.cc (linux_target_ops): Update.
2720 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2721 (linux_qxfer_libraries_svr4): Turn into ...
2722 (linux_process_target::qxfer_libraries_svr4): ... this.
2723 * linux-low.h (class linux_process_target): Update.
2724 * lynx-low.cc (lynx_target_ops): Update.
2725 * nto-low.cc (nto_target_ops): Update.
2726 * win32-low.cc (win32_target_ops): Update.
2728 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2730 Turn process_stratum_target's supports_disable_randomization op
2731 into a method of process_target.
2733 * target.h (struct process_stratum_target): Remove the target op.
2734 (class process_target): Add the target op.
2735 (target_supports_disable_randomization): Update the macro.
2736 * target.cc (process_target::supports_disable_randomization): Define.
2738 Update the derived classes and callers below.
2740 * linux-low.cc (linux_target_ops): Update.
2741 (linux_supports_disable_randomization): Turn into ...
2742 (linux_process_target::supports_disable_randomization): ... this.
2743 * linux-low.h (class linux_process_target): Update.
2744 * lynx-low.cc (lynx_target_ops): Update.
2745 * nto-low.cc (nto_target_ops): Update.
2746 * win32-low.cc (win32_target_ops): Update.
2748 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2750 Turn process_stratum_target's emit_ops op into a method of
2753 * target.h (struct process_stratum_target): Remove the target op.
2754 (class process_target): Add the target op.
2755 (target_emit_ops): Update the macro.
2756 * target.cc (process_target::emit_ops): Define.
2758 Update the derived classes and callers below.
2760 * linux-low.cc (linux_target_ops): Update.
2761 (linux_emit_ops): Turn into ...
2762 (linux_process_target::emit_ops): ... this.
2763 * linux-low.h (class linux_process_target): Update.
2764 * lynx-low.cc (lynx_target_ops): Update.
2765 * nto-low.cc (nto_target_ops): Update.
2766 * win32-low.cc (win32_target_ops): Update.
2768 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2770 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2771 and get_min_fast_tracepoint_insn_len ops into methods of
2774 * target.h (struct process_stratum_target): Remove the target ops.
2775 (class process_target): Add the target ops. Also add
2776 'supports_fast_tracepoints'.
2777 (target_supports_fast_tracepoints): Update the macro.
2778 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2779 (install_fast_tracepoint_jump_pad): Update and rename the macro
2781 (target_install_fast_tracepoint_jump_pad): ... this.
2782 * target.cc (process_target::supports_fast_tracepoints): Define.
2783 (process_target::install_fast_tracepoint_jump_pad): Define.
2784 (process_target::get_min_fast_tracepoint_insn_len): Define.
2786 Update the derived classes and callers below.
2788 * tracepoint.cc (install_fast_tracepoint): Update.
2789 * linux-low.cc (linux_target_ops): Update.
2790 (linux_process_target::supports_fast_tracepoints): Define.
2791 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2792 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2793 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2794 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2795 * linux-low.h (class linux_process_target): Update.
2796 * lynx-low.cc (lynx_target_ops): Update.
2797 * nto-low.cc (nto_target_ops): Update.
2798 * win32-low.cc (win32_target_ops): Update.
2800 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2802 Turn process_stratum_target's stabilize_threads op into a
2803 method of process_target.
2805 * target.h (struct process_stratum_target): Remove the target op.
2806 (class process_target): Add the target op.
2807 (target_stabilize_threads): Update the macro.
2808 * target.cc (process_target::stabilize_threads): Define.
2810 Update the derived classes and callers below.
2812 * server.cc (handle_status): Update.
2813 * tracepoint.cc (cmd_qtdp): Update.
2814 (cmd_qtstart): Update.
2815 * linux-low.cc (linux_target_ops): Update.
2816 (linux_stabilize_threads): Turn into ...
2817 (linux_process_target::stabilize_threads): ... this.
2818 (linux_wait_1): Update.
2819 * linux-low.h (class linux_process_target): Update.
2820 * lynx-low.cc (lynx_target_ops): Update.
2821 * nto-low.cc (nto_target_ops): Update.
2822 * win32-low.cc (win32_target_ops): Update.
2824 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2826 Turn process_stratum_target's pause_all and unpause_all ops
2827 into methods of process_target.
2829 * target.h (struct process_stratum_target): Remove the target ops.
2830 (class process_target): Add the target ops.
2831 (pause_all): Update the macro and rename to...
2832 (target_pause_all): ... this.
2833 (unpause_all): Update the macro and rename to...
2834 (target_unpause_all): ... this.
2835 * target.cc (process_target::pause_all): Define.
2836 (process_target::unpause_all): Define.
2838 Update the derived classes and callers below.
2840 * server.cc (handle_status): Update.
2841 * tracepoint.cc (clear_installed_tracepoints): Update.
2843 (cmd_qtstart): Update.
2844 (stop_tracing): Update.
2845 (cmd_qtstatus): Update.
2846 (upload_fast_traceframes): Update.
2847 (run_inferior_command): Update.
2848 * linux-low.cc (linux_target_ops): Update.
2849 (linux_pause_all): Turn into ...
2850 (linux_process_target::pause_all): ... this.
2851 (linux_unpause_all): Turn into ...
2852 (linux_process_target::unpause_all): ... this.
2853 (linux_process_target::prepare_to_access_memory): Update.
2854 (linux_process_target::done_accessing_memory): Update.
2855 * linux-low.h (class linux_process_target): Update.
2856 * lynx-low.cc (lynx_target_ops): Update.
2857 * nto-low.cc (nto_target_ops): Update.
2858 * win32-low.cc (win32_target_ops): Update.
2860 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2862 Turn process_stratum_target's get_tib_address op into a method of
2865 * target.h (struct process_stratum_target): Remove the target op.
2866 (class process_target): Add the target op. Also add
2867 'supports_get_tib_address'.
2868 * target.cc (process_target::get_tib_address): Define.
2869 (process_target::supports_get_tib_address): Define.
2871 Update the derived classes and callers below.
2873 * server.cc (handle_query): Update.
2874 * linux-low.cc (win32_target_ops): Update.
2875 * lynx-low.cc (lynx_target_ops): Update.
2876 * nto-low.cc (nto_target_ops): Update.
2877 * win32-low.cc (win32_target_ops): Update.
2878 (win32_process_target::supports_get_tib_address): Define.
2879 (win32_get_tib_address): Turn into ...
2880 (win32_process_target::get_tib_address): ... this.
2881 * win32-low.h (class win32_process_target): Update.
2883 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2885 Turn process_stratum_target's thread_stopped op into a method of
2888 * target.h (struct process_stratum_target): Remove the target op.
2889 (class process_target): Add the target op. Also add
2890 'supports_thread_stopped'.
2891 (target_thread_stopped): Update the macro.
2892 * target.cc (process_target::thread_stopped): Define.
2893 (process_target::supports_thread_stopped): Define.
2894 (prepare_to_access_memory): Update.
2896 Update the derived classes and callers below.
2898 * server.cc (queue_stop_reply_callback): Update.
2899 * linux-low.cc (linux_target_ops): Update.
2900 (linux_process_target::supports_thread_stopped): Define.
2901 (linux_thread_stopped): Turn into ...
2902 (linux_process_target::thread_stopped): ... this.
2903 * linux-low.h (class linux_process_target): Update.
2904 * lynx-low.cc (lynx_target_ops): Update.
2905 * nto-low.cc (nto_target_ops): Update.
2906 * win32-low.cc (win32_target_ops): Update.
2908 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2910 Turn process_stratum_target's read_pc and write_pc ops into
2911 methods of process_target.
2913 * target.h (struct process_stratum_target): Remove the target ops.
2914 (class process_target): Add the target ops.
2915 * target.cc (process_target::read_pc): Define.
2916 (process_target::write_pc): Define.
2918 Update the derived classes and callers below.
2920 * regcache.cc (regcache_read_pc): Update.
2921 (regcache_write_pc): Update.
2922 * linux-low.cc (linux_target_ops): Update.
2923 (linux_read_pc): Turn into ...
2924 (linux_process_target::read_pc): ... this.
2925 (linux_write_pc): Turn into ...
2926 (linux_process_target::write_pc): ... this.
2927 * linux-low.h (class linux_process_target): Update.
2928 * lynx-low.cc (lynx_target_ops): Update.
2929 * nto-low.cc (nto_target_ops): Update.
2930 * win32-low.cc (win32_target_ops): Update.
2932 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2934 Turn process_stratum_target's supports_tracepoints op into a
2935 method of process_target.
2937 * target.h (struct process_stratum_target): Remove the target op.
2938 (class process_target): Add the target op.
2939 (target_supports_tracepoints): Update the macro.
2940 * target.cc (process_target::supports_tracepoints): Define.
2942 Update the derived classes and callers below.
2944 * linux-low.cc (linux_target_ops): Update.
2945 (linux_supports_tracepoints): Turn into ...
2946 (linux_process_target::supports_tracepoints): ... this.
2947 * linux-low.h (class linux_process_target): Update.
2948 * lynx-low.cc (lynx_target_ops): Update.
2949 * nto-low.cc (nto_target_ops): Update.
2950 * win32-low.cc (win32_target_ops): Update.
2952 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2954 Turn process_stratum_target's process_qsupported op into a method
2957 * target.h (struct process_stratum_target): Remove the target op.
2958 (class process_target): Add the target op.
2959 (target_process_qsupported): Update the macro.
2960 * target.cc (process_target::process_qsupported): Define.
2962 Update the derived classes and callers below.
2964 * linux-low.cc (linux_target_ops): Update.
2965 (linux_process_qsupported): Turn into ...
2966 (linux_process_target::process_qsupported): ... this.
2967 * linux-low.h (class linux_process_target): Update.
2968 * lynx-low.cc (lynx_target_ops): Update.
2969 * nto-low.cc (nto_target_ops): Update.
2970 * win32-low.cc (win32_target_ops): Update.
2972 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2974 Turn process_stratum_target's read_loadmap op into a method of
2977 * target.h (struct process_stratum_target): Remove the target op.
2978 (class process_target): Add the target op. Also add
2979 'supports_read_loadmap'.
2980 * target.cc (process_target::read_loadmap): Define.
2981 (process_target::supports_read_loadmap): Define.
2983 Update the derived classes and callers below.
2985 * server.cc (handle_qxfer_fdpic): Update.
2986 (handle_query): Update.
2987 * linux-low.cc (linux_target_ops): Update.
2988 (linux_process_target::supports_read_loadmap): Define.
2989 (linux_read_loadmap): Turn into ...
2990 (linux_process_target::read_loadmap): ... this.
2991 * linux-low.h (class linux_process_target): Update.
2992 * lynx-low.cc (lynx_target_ops): Update.
2993 * nto-low.cc (nto_target_ops): Update.
2994 * win32-low.cc (win32_target_ops): Update.
2996 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2998 Turn process_stratum_target's core_of_thread op into a method of
3001 * target.h (struct process_stratum_target): Remove the target op.
3002 (class process_target): Add the target op.
3003 (target_core_of_thread): Update the macro.
3004 * target.cc (process_target::core_of_thread): Define.
3006 Update the derived classes and callers below.
3008 * linux-low.cc (linux_target_ops): Update.
3009 (linux_process_target::core_of_thread): Define.
3010 * linux-low.h (class linux_process_target): Update.
3011 * lynx-low.cc (lynx_target_ops): Update.
3012 * nto-low.cc (nto_target_ops): Update.
3013 * win32-low.cc (win32_target_ops): Update.
3015 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3017 Turn process_stratum_target's handle_monitor_command op into a
3018 method of process_target.
3020 * target.h (struct process_stratum_target): Remove the target op.
3021 (class process_target): Add the target op.
3022 (target_handle_monitor_command): Update the macro.
3023 * target.cc (process_target::handle_monitor_command): Define.
3025 Update the derived classes and callers below.
3027 * server.cc (handle_query): Update.
3028 * linux-low.cc (linux_target_ops): Update.
3029 (linux_process_target::handle_monitor_command): Define.
3030 * linux-low.h (class linux_process_target): Update.
3031 * lynx-low.cc (lynx_target_ops): Update.
3032 * nto-low.cc (nto_target_ops): Update.
3033 * win32-low.cc (win32_target_ops): Update.
3035 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3037 Turn process_stratum_target's handle_new_gdb_connection op into a
3038 method of process_target.
3040 * target.h (struct process_stratum_target): Remove the target op.
3041 (class process_target): Add the target op.
3042 (target_handle_new_gdb_connection): Update the macro.
3043 * target.cc (process_target::handle_new_gdb_connection): Define.
3045 Update the derived classes and callers below.
3047 * linux-low.cc (linux_target_ops): Update.
3048 (linux_handle_new_gdb_connection): Turn into ...
3049 (linux_process_target::handle_new_gdb_connection): ... this.
3050 * linux-low.h (class linux_process_target): Update.
3051 * lynx-low.cc (lynx_target_ops): Update.
3052 * nto-low.cc (nto_target_ops): Update.
3053 * win32-low.cc (win32_target_ops): Update.
3055 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3057 Turn process_stratum_target's supports_fork_events,
3058 supports_vfork_events, and supports_exec_events ops into methods
3061 * target.h (struct process_stratum_target): Remove the target ops.
3062 (class process_target): Add the target ops.
3063 (target_supports_fork_events): Update the macro.
3064 (target_supports_vfork_events): Update the macro.
3065 (target_supports_exec_events): Update the macro.
3066 * target.cc (process_target::supports_fork_events): Define.
3067 (process_target::supports_vfork_events): Define.
3068 (process_target::supports_exec_events): Define.
3070 Update the derived classes and callers below.
3072 * linux-low.cc (linux_target_ops): Update.
3073 (linux_supports_fork_events): Turn into ...
3074 (linux_process_target::supports_fork_events): ... this.
3075 (linux_supports_vfork_events): Turn into ...
3076 (linux_process_target::supports_vfork_events): ... this.
3077 (linux_supports_exec_events): Turn into ...
3078 (linux_process_target::supports_exec_events): ... this.
3079 * linux-low.h (class linux_process_target): Update.
3080 * lynx-low.cc (lynx_target_ops): Update.
3081 * nto-low.cc (nto_target_ops): Update.
3082 * win32-low.cc (win32_target_ops): Update.
3084 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3086 Turn process_stratum_target's supports_multi_process op into a
3087 method of process_target.
3089 * target.h (struct process_stratum_target): Remove the target op.
3090 (class process_target): Add the target op.
3091 * target.cc (process_target::supports_multi_process): Define.
3092 (target_supports_multi_process): Update.
3094 Update the derived classes and callers below.
3096 * linux-low.cc (linux_target_ops): Update.
3097 (linux_supports_multi_process): Turn into ...
3098 (linux_process_target::supports_multi_process): ... this.
3099 * linux-low.h (class linux_process_target): Update.
3100 * lynx-low.cc (lynx_target_ops): Update.
3101 * nto-low.cc (nto_target_ops): Update.
3102 * win32-low.cc (win32_target_ops): Update.
3104 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3106 Turn process_stratum_target's supports_non_stop, async, and
3107 start_non_stop ops into methods of process_target.
3109 * target.h (struct process_stratum_target): Remove the target ops.
3110 (class process_target): Add the target ops.
3111 (target_supports_non_stop): Update the macro.
3112 (target_async): Update the macro.
3113 (start_non_stop): Remove declaration.
3114 * target.cc (process_target::supports_non_stop): Define.
3115 (process_target::async): Define.
3116 (process_target::start_non_stop): Define.
3117 (start_non_stop): Remove.
3119 Update the derived classes and callers below.
3121 * server.cc (handle_qxfer_siginfo): Update.
3122 (handle_query): Update.
3123 * linux-low.cc (linux_target_ops): Update.
3124 (linux_supports_non_stop): Turn into ...
3125 (linux_process_target::supports_non_stop): ... this.
3126 (linux_async): Turn into ...
3127 (linux_process_target::async): ... this.
3128 (linux_start_non_stop): Turn into ...
3129 (linux_process_target::start_non_stop): ... this.
3130 * linux-low.h (class linux_process_target): Update.
3131 * lynx-low.cc (lynx_target_ops): Update.
3132 * nto-low.cc (nto_target_ops): Update.
3133 (nto_supports_non_stop): Remove; rely on the default behavior
3135 * win32-low.cc (win32_target_ops): Update.
3137 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3139 Turn process_stratum_target's qxfer_siginfo op into a method of
3142 * target.h (struct process_stratum_target): Remove the target op.
3143 (class process_target): Add the target op. Also add
3144 'supports_qxfer_siginfo'.
3145 * target.cc (process_target::qxfer_siginfo): Define.
3146 (process_target::supports_qxfer_siginfo): Define.
3148 Update the derived classes and callers below.
3150 * server.cc (handle_qxfer_siginfo): Update.
3151 (handle_query): Update.
3152 * linux-low.cc (linux_target_ops): Update.
3153 (linux_process_target::supports_qxfer_siginfo): Define.
3154 (linux_xfer_siginfo): Turn into ...
3155 (linux_process_target::qxfer_siginfo): ... this.
3156 * linux-low.h (class linux_process_target): Update.
3157 * lynx-low.cc (lynx_target_ops): Update.
3158 * nto-low.cc (nto_target_ops): Update.
3159 * win32-low.cc (win32_target_ops): Update.
3161 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3163 Turn process_stratum_target's qxfer_osdata op into a method of
3166 * target.h (struct process_stratum_target): Remove the target op.
3167 (class process_target): Add the target op. Also add
3168 'supports_qxfer_osdata'.
3169 * target.cc (process_target::qxfer_osdata): Define.
3170 (process_target::supports_qxfer_osdata): Define.
3172 Update the derived classes and callers below.
3174 * server.cc (handle_qxfer_osdata): Update.
3175 (handle_query): Update.
3176 * linux-low.cc (linux_target_ops): Update.
3177 (linux_process_target::supports_qxfer_osdata): Define.
3178 (linux_qxfer_osdata): Turn into ...
3179 (linux_process_target::qxfer_osdata): ... this.
3180 * linux-low.h (class linux_process_target): Update.
3181 * lynx-low.cc (lynx_target_ops): Update.
3182 * nto-low.cc (nto_target_ops): Update.
3183 * win32-low.cc (win32_target_ops): Update.
3185 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3187 Turn process_stratum_target's hostio_last_error op into a
3188 method of process_target.
3190 * target.h (struct process_stratum_target): Remove the target op.
3191 (class process_target): Add the target op.
3192 * target.cc: Add "hostio.h" to includes.
3193 (process_target::hostio_last_error): Define.
3195 Update the derived classes and callers below.
3197 * hostio.cc (hostio_error): Update.
3198 * linux-low.cc: Remove "hostio.h" from includes.
3199 (linux_target_ops): Update.
3200 * lynx-low.cc (lynx_target_ops): Update.
3201 * nto-low.cc (nto_target_ops): Update.
3202 * win32-low.h (class win32_process_target): Update.
3203 * win32-low.cc (win32_target_ops): Update.
3204 (wince_hostio_last_error): Turn into ...
3205 (win32_process_target::hostio_last_error): ... this.
3207 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3209 Turn process_stratum_target's get_tls_address op into a method of
3212 * target.h (struct process_stratum_target): Remove the target op.
3213 (class process_target): Add the target op. Also add
3214 'supports_get_tls_address'.
3215 * target.cc (process_target::get_tls_address): Define.
3216 (process_target::supports_get_tls_address): Define.
3218 Update the derived classes and callers below.
3220 * server.cc (handle_query): Update.
3221 * linux-low.cc (linux_target_ops): Update.
3222 (linux_process_target::supports_get_tls_address): Define.
3223 (linux_process_target::get_tls_address): Define.
3224 * linux-low.h (class linux_process_target): Update.
3225 * lynx-low.cc (lynx_target_ops): Update.
3226 * nto-low.cc (nto_target_ops): Update.
3227 * win32-low.cc (win32_target_ops): Update.
3229 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3231 Turn process_stratum_target's read_offsets op into a method of
3234 * target.h (struct process_stratum_target): Remove the target op.
3235 (class process_target): Add the target op. Also add
3236 'supports_read_offsets'.
3237 * target.cc (process_target::read_offsets): Define.
3238 (process_target::supports_read_offsets): Define.
3240 Update the derived classes and callers below.
3242 * server.cc (handle_query): Update.
3243 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3244 (linux_target_ops): Update.
3245 (linux_process_target::supports_read_offsets): Define.
3246 (linux_read_offsets): Turn into ...
3247 (linux_process_target::read_offsets): ... this.
3248 * linux-low.h (class linux_process_target): Update.
3249 * lynx-low.cc (lynx_target_ops): Update.
3250 * nto-low.cc (nto_target_ops): Update.
3251 * win32-low.cc (win32_target_ops): Update.
3253 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3255 Turn process_stratum_target's stopped_by_watchpoint and
3256 stopped_data_address ops into methods of process_target.
3258 * target.h (struct process_stratum_target): Remove the target ops.
3259 (class process_target): Add the target ops.
3260 * target.cc (process_target::stopped_by_watchpoint): Define.
3261 (process_target::stopped_data_address): Define.
3263 Update the derived classes and callers below.
3265 * remote-utils.cc (prepare_resume_reply): Update.
3266 * linux-low.cc (linux_target_ops): Update.
3267 (linux_stopped_by_watchpoint): Turn into ...
3268 (linux_process_target::stopped_by_watchpoint): ... this.
3269 (linux_stopped_data_address): Turn into ...
3270 (linux_process_target::stopped_data_address): ... this.
3271 * linux-low.h (class linux_process_target): Update.
3272 * lynx-low.cc (lynx_target_ops): Update.
3273 * nto-low.cc (nto_target_ops): Update.
3274 (nto_stopped_by_watchpoint): Turn into ...
3275 (nto_process_target::stopped_by_watchpoint): ... this.
3276 (nto_stopped_data_address): Turn into ...
3277 (nto_process_target::stopped_data_address): ... this.
3278 * nto-low.h (class nto_process_target): Update.
3279 * win32-low.cc (win32_target_ops): Update.
3280 (win32_stopped_by_watchpoint): Turn into ...
3281 (win32_process_target::stopped_by_watchpoint): ... this.
3282 (win32_stopped_data_address): Turn into ...
3283 (win32_process_target::stopped_data_address): ... this.
3284 * win32-low.h (class win32_process_target): Update.
3286 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3288 Turn process_stratum_target's supports_hardware_single_step op into
3289 a method of process_target.
3291 * target.h (struct process_stratum_target): Remove the target op.
3292 (class process_target): Add the target op.
3293 (target_supports_hardware_single_step): Update the macro.
3294 (target_can_do_hardware_single_step): Remove declaration.
3295 * target.cc (process_target::supports_hardware_single_step): Define.
3296 (target_can_do_hardware_single_step): Remove.
3298 Update the derived classes and callers below.
3300 * linux-low.h (class linux_process_target): Update.
3301 * linux-low.cc (linux_target_ops): Update.
3302 (linux_supports_hardware_single_step): Turn into ...
3303 (linux_process_target::supports_hardware_single_step): ... this.
3304 * lynx-low.h (class lynx_process_target): Update.
3305 * lynx-low.cc (lynx_target_ops): Update.
3306 (lynx_process_target::supports_hardware_single_step): Define.
3307 * nto-low.h (class nto_process_target): Update.
3308 * nto-low.cc (nto_target_ops): Update.
3309 (nto_process_target::supports_hardware_single_step): Define.
3310 * win32-low.h (class win32_process_target): Update.
3311 * win32-low.cc (win32_target_ops): Update.
3312 (win32_process_target::supports_hardware_single_step): Define.
3314 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3316 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3317 ops into methods of process_target.
3319 * target.h (struct process_stratum_target): Remove the target ops.
3320 (class process_target): Add the target ops.
3321 (target_stopped_by_hw_breakpoint): Update the macro.
3322 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3323 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3324 (process_target::supports_stopped_by_hw_breakpoint): Define.
3326 Update the derived classes and callers below.
3328 * linux-low.cc (linux_target_ops): Update.
3329 (linux_stopped_by_hw_breakpoint): Turn into ...
3330 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3331 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3332 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3333 * linux-low.h (class linux_process_target): Update.
3334 * lynx-low.cc (lynx_target_ops): Update.
3335 * nto-low.cc (nto_target_ops): Update.
3336 * win32-low.cc (win32_target_ops): Update.
3338 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3340 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3341 ops into methods of process_target.
3343 * target.h (struct process_stratum_target): Remove the target ops.
3344 (class process_target): Add the target ops.
3345 (target_stopped_by_sw_breakpoint): Update the macro.
3346 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3347 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3348 (process_target::supports_stopped_by_sw_breakpoint): Define.
3350 Update the derived classes and callers below.
3352 * linux-low.cc (linux_target_ops): Update.
3353 (linux_stopped_by_sw_breakpoint): Turn into ...
3354 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3355 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3356 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3357 * linux-low.h (class linux_process_target): Update.
3358 * lynx-low.cc (lynx_target_ops): Update.
3359 * nto-low.cc (nto_target_ops): Update.
3360 * win32-low.cc (win32_target_ops): Update.
3362 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3364 Turn process_stratum_target's insert_point and remove_point ops
3365 into methods of process_target.
3367 * target.h (struct process_stratum_target): Remove the target ops.
3368 (class process_target): Add the target ops.
3369 * target.cc (process_target::insert_point): Define.
3370 (process_target::remove_point): Define.
3372 Update the derived classes and callers below.
3374 * mem-break.cc (set_raw_breakpoint_at): Update.
3375 (delete_raw_breakpoint): Update.
3376 (uninsert_raw_breakpoint): Update.
3377 (reinsert_raw_breakpoint): Update.
3378 * linux-low.cc (linux_target_ops): Update.
3379 (linux_insert_point): Turn into ...
3380 (linux_process_target::insert_point): ... this.
3381 (linux_remove_point): Turn into ...
3382 (linux_process_target::remove_point): ... this.
3383 * linux-low.h (class linux_process_target): Update.
3384 * lynx-low.cc (lynx_target_ops): Update.
3385 * nto-low.cc (nto_target_ops): Update.
3386 (nto_insert_point): Turn into ...
3387 (nto_process_target::insert_point): ... this.
3388 (nto_remove_point): Turn into ...
3389 (nto_process_target::remove_point): ... this.
3390 * nto-low.h (class nto_process_target): Update.
3391 * win32-low.cc (win32_target_ops): Update.
3392 (win32_insert_point): Turn into ...
3393 (win32_process_target::insert_point): ... this.
3394 (win32_remove_point): Turn into ...
3395 (win32_process_target::remove_point): ... this.
3396 * win32-low.h (class win32_process_target): Update.
3398 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3400 Turn process_stratum_target's supports_z_point_type op into a
3401 method of process_target.
3403 * target.h (struct process_stratum_target): Remove the target op.
3404 (class process_target): Add the target op.
3405 * target.cc (process_target::supports_z_point_type): Define.
3407 Update the derived classes and callers below.
3409 * mem-break.cc (z_type_supported): Update.
3410 * linux-low.cc (linux_target_ops): Update.
3411 (linux_supports_z_point_type): Turn into ...
3412 (linux_process_target::supports_z_point_type): ... this.
3413 * linux-low.h (class linux_process_target): Update.
3414 * lynx-low.cc (lynx_target_ops): Update.
3415 * nto-low.cc (nto_target_ops): Update.
3416 (nto_supports_z_point_type): Turn into ...
3417 (nto_process_target::supports_z_point_type): ... this.
3418 * nto-low.h (class nto_process_target): Update.
3419 * win32-low.cc (win32_target_ops): Update.
3420 (win32_supports_z_point_type): Turn into ...
3421 (win32_process_target::supports_z_point_type): ... this.
3422 * win32-low.h (class win32_process_target): Update.
3424 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3426 Turn process_stratum_target's read_auxv op into a method of
3429 * target.h (class process_stratum_target): Remove the target op.
3430 (struct process_target): Add the target op. Also add
3431 'supports_read_auxv'.
3432 * target.cc (process_target::read_auxv): Define.
3433 (process_target::supports_read_auxv): Define.
3435 Update the derived classes and callers below.
3437 * server.cc (handle_qxfer_auxv): Update.
3438 (handle_query): Update.
3439 * linux-low.cc (linux_target_ops): Update.
3440 (linux_process_target::supports_read_auxv): Define.
3441 (linux_read_auxv): Turn into ...
3442 (linux_process_target::read_auxv): ... this.
3443 * linux-low.h (class linux_process_target): Update.
3444 * lynx-low.cc (lynx_target_ops): Update.
3445 * nto-low.cc (nto_target_ops): Update.
3446 (nto_process_target::supports_read_auxv): Define.
3447 (nto_read_auxv): Turn into ...
3448 (nto_process_target::read_auxv): ... this.
3449 * nto-low.h (class nto_process_target): Update.
3450 * win32-low.cc (win32_target_ops): Update.
3452 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3454 Turn process_stratum_target's request_interrupt op into a method of
3457 * target.h (struct process_stratum_target): Remove the target op.
3458 (class process_target): Add the target op.
3460 Update the derived classes and callers below.
3462 * remote-utils.cc (putpkt_binary_1): Update.
3463 (input_interrupt): Update.
3465 * server.cc (handle_v_requests): Update.
3466 * linux-low.cc (linux_target_ops): Update.
3467 (linux_request_interrupt): Turn into ...
3468 (linux_process_target::request_interrupt): ... this.
3469 * linux-low.h (class linux_process_target): Update.
3470 * lynx-low.cc (lynx_target_ops): Update.
3471 (lynx_request_interrupt): Turn into ...
3472 (lynx_process_target::request_interrupt): ... this.
3473 * lynx-low.h (class lynx_process_target): Update.
3474 * nto-low.cc (nto_target_ops): Update.
3475 (nto_request_interrupt): Turn into ...
3476 (nto_process_target::request_interrupt): ... this.
3477 * nto-low.h (class nto_process_target): Update.
3478 * win32-low.cc (win32_target_ops): Update.
3479 (win32_request_interrupt): Turn into ...
3480 (win32_process_target::request_interrupt): ... this.
3481 * win32-low.h (class win32_process_target): Update.
3483 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3485 Turn process_stratum_target's look_up_symbols op into a method of
3488 * target.h (struct process_stratum_target): Remove the target op.
3489 (class process_target): Add the target op.
3490 * target.cc (process_target::look_up_symbols): Define.
3492 Update the derived classes and callers below.
3494 * server.cc (handle_query): Update.
3495 * linux-low.cc (linux_target_ops): Update.
3496 (linux_look_up_symbols): Turn into ...
3497 (linux_process_target::look_up_symbols): ... this.
3498 * linux-low.h (class linux_process_target): Update.
3499 * lynx-low.cc (lynx_target_ops): Update.
3500 * nto-low.cc (nto_target_ops): Update.
3501 * win32-low.cc (win32_target_ops): Update.
3503 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3505 Turn process_stratum_target's read_memory and write_memory
3506 ops into methods of process_target.
3508 * target.h (struct process_stratum_target): Remove the target ops.
3509 (class process_target): Add the target ops.
3511 Update the derived classes and callers below.
3513 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3514 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3515 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3516 (arm_get_syscall_trapinfo): Update.
3517 * linux-cris-low.cc (cris_breakpoint_at): Update.
3518 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3519 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3520 * linux-mips-low.cc (mips_breakpoint_at): Update.
3521 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3522 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3523 * linux-sh-low.cc (sh_breakpoint_at): Update.
3524 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3525 (sparc_store_gregset_from_stack): Update.
3526 (sparc_breakpoint_at): Update.
3527 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3528 * linux-tile-low.cc (tile_breakpoint_at): Update.
3529 * linux-x86-low.cc (x86_breakpoint_at): Update.
3530 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3531 * mem-brea.cc (insert_memory_breakpoint): Update.
3532 (validate_inserted_breakpoint): Update.
3533 * target.cc (read_inferior_memory): Update.
3534 (target_write_memory): Update.
3535 * linux-low.cc (linux_target_ops): Update.
3536 (linux_read_memory): Make a wrapper around the read_memory target
3538 (linux_process_target::read_memory): Rename from linux_read_memory.
3539 (linux_write_memory): Turn into ...
3540 (linux_process_target::write_memory): ... this.
3541 * linux-low.h (class linux_process_target): Update.
3542 * lynx-low.cc (lynx_target_ops): Update.
3543 (lynx_read_memory): Turn into ...
3544 (lynx_process_target::read_memory): ... this.
3545 (lynx_write_memory): Turn into ...
3546 (lynx_process_target::write_memory): ... this.
3547 * lynx-low.h (class lynx_process_target): Update.
3548 * nto-low.cc (nto_target_ops): Update.
3549 (nto_read_memory): Turn into ...
3550 (nto_process_target::read_memory): ... this.
3551 (nto_write_memory): Turn into ...
3552 (nto_process_target::write_memory): ... this.
3553 * nto-low.h (class nto_process_target): Update.
3554 * win32-low.cc (win32_target_ops): Update.
3555 (win32_read_inferior_memory): Turn into ...
3556 (win32_process_target::read_memory): ... this.
3557 (win32_write_inferior_memory): Turn into ...
3558 (win32_process_target::write_memory): ... this.
3559 * win32-low.h (class win32_process_target): Update.
3561 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3563 Turn process_stratum_target's prepare_to_access_memory and
3564 done_accessing_memory ops into methods of process_target.
3566 * target.h (struct process_stratum_target): Remove the target ops.
3567 (class process_target): Add the target ops.
3568 * target.cc (process_target::prepare_to_access_memory): Define.
3569 (process_target::done_accessing_memory): Define.
3570 (prepare_to_access_memory): Update.
3571 (done_accessing_memory): Update.
3573 Update the derived classes and callers below.
3575 * linux-low.cc (linux_target_ops): Update.
3576 (linux_prepare_to_access_memory): Turn into ...
3577 (linux_process_target::prepare_to_access_memory): ... this.
3578 (linux_done_accessing_memory): Turn into ...
3579 (linux_process_target::done_accessing_memory): ... this.
3580 * linux-low.h (class linux_process_target): Update.
3581 * lynx-low.cc (lynx_target_ops): Update.
3582 * nto-low.cc (nto_target_ops): Update.
3583 * win32-low.cc (win32_target_ops): Update.
3585 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3587 Turn process_stratum_target's fetch_registers and store_registers
3588 ops into methods of process_target.
3590 * target.h (struct process_stratum_target): Remove the target ops.
3591 (class process_target): Add the target ops.
3592 (fetch_inferior_registers): Update the macro.
3593 (store_inferior_registers): Update the macro.
3595 Update the derived classes and callers below.
3597 * linux-low.cc (linux_target_ops): Update.
3598 (linux_fetch_registers): Turn into ...
3599 (linux_process_target::fetch_registers): ... this.
3600 (linux_store_registers): Turn into ...
3601 (linux_process_target::store_registers): ... this.
3602 * linux-low.h (class linux_process_target): Update.
3603 * lynx-low.cc (lynx_target_ops): Update.
3604 (lynx_fetch_registers): Turn into ...
3605 (lynx_process_target::fetch_registers): ... this.
3606 (lynx_store_registers): Turn into ...
3607 (lynx_process_target::store_registers): ... this.
3608 * lynx-low.h (class lynx_process_target): Update.
3609 * nto-low.cc (nto_target_ops): Update.
3610 (nto_fetch_registers): Turn into ...
3611 (nto_process_target::fetch_registers): ... this.
3612 (nto_store_registers): Turn into ...
3613 (nto_process_target::store_registers): ... this.
3614 * nto-low.h (class nto_process_target): Update.
3615 * win32-low.cc (win32_target_ops): Update.
3616 (win32_fetch_inferior_registers): Turn into ...
3617 (win32_process_target::fetch_registers): ... this.
3618 (win32_store_inferior_registers): Turn into ...
3619 (win32_process_target::store_registers): ... this.
3620 * win32-low.h (class win32_process_target): Update.
3622 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3624 Turn process_stratum_target's wait op into a method of
3627 * target.h (struct process_stratum_target): Remove the target op.
3628 (class process_target): Add the target op.
3630 Update the derived classes and callers below.
3632 * target.cc (target_wait): Update.
3633 * linux-low.cc (linux_target_ops): Update.
3634 (linux_wait): Turn into ...
3635 (linux_process_target::wait): ... this.
3636 * linux-low.h (class linux_process_target): Update.
3637 * lynx-low.cc (lynx_target_ops): Update.
3638 (lynx_wait): Turn into ...
3639 (lynx_process_target::wait): ... this.
3640 * lynx-low.h (class lynx_process_target): Update.
3641 * nto-low.cc (nto_target_ops): Update.
3642 (nto_wait): Turn into ...
3643 (nto_process_target::wait): ... this.
3644 * nto-low.h (class nto_process_target): Update.
3645 * win32-low.cc (win32_target_ops): Update.
3646 (win32_wait): Turn into ...
3647 (win32_process_target::wait): ... this.
3648 (do_initial_child_stuff): Update.
3649 * win32-low.h (class win32_process_target): Update.
3651 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3653 Turn process_stratum_target's resume op into a method of
3656 * target.h (struct process_stratum_target): Remove the target op.
3657 (class process_target): Add the target op.
3659 Update the derived classes and callers below.
3661 * server.cc (resume): Update.
3662 * target.cc (target_stop_and_wait): Update.
3663 (target_continue_no_signal): Update.
3664 (target_continue): Update.
3665 * linux-low.cc (linux_target_ops): Update.
3666 (linux_resume): Turn into ...
3667 (linux_process_target::resume): ... this.
3668 * linux-low.h (class linux_process_target): Update.
3669 * lynx-low.cc (lynx_target_ops): Update.
3670 (lynx_resume): Turn into ...
3671 (lynx_process_target::resume): ... this.
3672 * lynx-low.h (class lynx_process_target): Update.
3673 * nto-low.cc (nto_target_ops): Update.
3674 (nto_resume): Turn into ...
3675 (nto_process_target::resume): ... this.
3676 * nto-low.h (class nto_process_target): Update.
3677 * win32-low.cc (win32_target_ops): Update.
3678 (win32_resume): Turn into ...
3679 (win32_process_target::resume): ... this.
3680 (win32_process_target::detach): Update.
3681 (do_initial_child_stuff): Update.
3682 * win32-low.h (class win32_process_target): Update.
3684 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3686 Turn process_stratum_target's thread_alive op into a method of
3689 * target.h (struct process_stratum_target): Remove the target op.
3690 (class process_target): Add the target op.
3691 (mythread_alive): Update the macro.
3693 Update the derived classes and callers below.
3695 * linux-low.cc (linux_target_ops): Update.
3696 (linux_thread_alive): Turn into ...
3697 (linux_process_target::thread_alive): ... this.
3698 (wait_for_sigstop): Update.
3699 * linux-low.h (class linux_process_target): Update.
3700 * lynx-low.cc (lynx_target_ops): Update.
3701 (lynx_thread_alive): Turn into ...
3702 (lynx_process_target::thread_alive): ... this.
3703 * lynx-low.h (class lynx_process_target): Update.
3704 * nto-low.cc (nto_target_ops): Update.
3705 (nto_thread_alive): Turn into ...
3706 (nto_process_target::thread_alive): ... this.
3707 * nto-low.h (class nto_process_target): Update.
3708 * win32-low.cc (win32_target_ops): Update.
3709 (win32_thread_alive): Turn into ...
3710 (win32_process_target::thread_alive): ... this.
3711 * win32-low.h (class win32_process_target): Update.
3713 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3715 Turn process_stratum_target's join op into a method of
3718 * target.h (struct process_stratum_target): Remove the target op.
3719 (class process_target): Add the target op.
3720 (join_inferior): Update the macro.
3722 Update the derived classes and callers below.
3724 * linux-low.cc (linux_target_ops): Update.
3725 (linux_join): Turn into ...
3726 (linux_process_target::join): ... this.
3727 * linux-low.h (class linux_process_target): Update.
3728 * lynx-low.cc (lynx_target_ops): Update.
3729 (lynx_join): Turn into ...
3730 (lynx_process_target::join): ... this.
3731 * lynx-low.h (class lynx_process_target): Update.
3732 * nto-low.cc (nto_target_ops): Update.
3733 (nto_process_target::join): Define.
3734 * nto-low.h (class nto_process_target): Update.
3735 * win32-low.cc (win32_target_ops): Update.
3736 (win32_join): Turn into ...
3737 (win32_process_target::join): ... this.
3738 * win32-low.h (class win32_process_target): Update.
3740 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3742 Turn process_stratum_target's mourn op into a method of
3745 * target.h (struct process_stratum_target): Remove the target op.
3746 (class process_target): Add the target op.
3748 Update the derived classes and callers below.
3750 * target.cc (target_mourn_inferior): Update.
3751 * linux-low.cc (linux_target_ops): Update.
3752 (linux_mourn): Turn into ...
3753 (linux_process_target::mourn): ... this.
3754 (handle_extended_wait): Update.
3755 (linux_process_target::kill): Update.
3756 (linux_process_target::detach): Update.
3757 * linux-low.h (class linux_process_target): Update.
3758 * lynx-low.cc (lynx_target_ops): Update.
3759 (lynx_mourn): Turn into ...
3760 (lynx_process_target::mourn): ... this.
3761 * lynx-low.h (class lynx_process_target): Update.
3762 * nto-low.cc (nto_target_ops): Update.
3763 (nto_mourn): Turn into ...
3764 (nto_process_target::mourn): ... this.
3765 * nto-low.h (class nto_process_target): Update.
3766 * win32-low.cc (win32_target_ops): Update.
3767 (win32_mourn): Turn into ...
3768 (win32_process_target::mourn): ... this.
3769 * win32-low.h (class win32_process_target): Update.
3771 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3773 Turn process_stratum_target's detach op into a method of
3776 * target.h (struct process_stratum_target): Remove the target op.
3777 (class process_target): Add the target op.
3778 (detach_inferior): Update the macro.
3780 Update the derived classes and callers below.
3782 * linux-low.cc (linux_target_ops): Update.
3783 (linux_detach): Turn into ...
3784 (linux_process_target::detach): ... this.
3785 * linux-low.h (class linux_process_target): Update.
3786 * lynx-low.cc (lynx_target_ops): Update.
3787 (lynx_detach): Turn into ...
3788 (lynx_process_target::detach): ... this.
3789 * lynx-low.h (class lynx_process_target): Update.
3790 * nto-low.cc (nto_target_ops): Update.
3791 (nto_detach): Turn into ...
3792 (nto_process_target::detach): ... this.
3793 * nto-low.h (class nto_process_target): Update.
3794 * win32-low.cc (win32_target_ops): Update.
3795 (win32_detach): Turn into ...
3796 (win32_process_target::detach): ... this.
3797 * win32-low.h (class win32_process_target): Update.
3799 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3801 Turn process_stratum_target's kill op into a method of
3804 * target.h (struct process_stratum_target): Remove the target op.
3805 (class process_target): Add the target op.
3807 Update the derived classes and callers below.
3809 * target.cc (kill_inferior): Update.
3810 * linux-low.cc (linux_target_ops): Update.
3811 (linux_kill): Turn into ...
3812 (linux_process_target::kill): ... this.
3813 * linux-low.h (class linux_process_target): Update.
3814 * lynx-low.cc (lynx_target_ops): Update.
3815 (lynx_kill): Turn into ...
3816 (lynx_process_target::kill): ... this.
3817 * lynx-low.h (class lynx_process_target): Update.
3818 * nto-low.cc (nto_target_ops): Update.
3819 (nto_kill): Turn into ...
3820 (nto_process_target::kill): ... this.
3821 * nto-low.h (class nto_process_target): Update.
3822 * win32-low.cc (win32_target_ops): Update.
3823 (win32_kill): Turn into ...
3824 (win32_process_target::kill): ... this.
3825 * win32-low.h (class win32_process_target): Update.
3827 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3829 Turn process_stratum_target's attach op into a method of
3832 * target.h (struct process_stratum_target): Remove the target op.
3833 (class process_target): Add the target op.
3834 (myattach): Update the macro.
3836 Update the derived classes and callers below.
3838 * linux-low.cc (linux_target_ops): Update.
3839 (linux_attach): Turn into ...
3840 (linux_process_target::attach): ... this.
3841 * linux-low.h (class linux_process_target): Update.
3842 * lynx-low.cc (lynx_target_ops): Update.
3843 (lynx_attach): Turn into ...
3844 (lynx_process_target::attach): ... this.
3845 * lynx-low.h (class lynx_process_target): Update.
3846 * nto-low.cc (nto_target_ops): Update.
3847 (nto_attach): Turn into ...
3848 (nto_process_target::attach): ... this.
3849 * nto-low.h (class nto_process_target): Update.
3850 * win32-low.cc (win32_target_ops): Update.
3851 (win32_attach): Turn into ...
3852 (win32_process_target::attach): ... this.
3853 * win32-low.h (class win32_process_target): Update.
3855 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3857 Turn process_stratum_target's post_create_inferior op into a method
3860 * target.h (struct process_stratum_target): Remove the target op.
3861 (class process_target): Add the target op.
3862 (target_post_create_inferior): Update the macro.
3863 * target.cc (process_target::post_create_inferior): Define.
3865 Update the derived classes and callers below.
3867 * linux-low.cc (linux_target_ops): Update.
3868 (linux_post_create_inferior): Turn into ...
3869 (linux_process_target::post_create_inferior): ... this.
3870 * linux-low.h (class linux_process_target): Update.
3871 * lynx-low.cc (lynx_target_ops): Update.
3872 * nto-low.cc (nto_target_ops): Update.
3873 * win32-low.cc (win32_target_ops): Update.
3875 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3877 Turn process_stratum_target's create_inferior op into a method of
3880 * target.h (struct process_stratum_target): Remove the target op.
3881 (class process_target): Add the target op.
3882 (create_inferior): Rename the macro to ...
3883 (target_create_inferior): ... this.
3885 Update the derived classes and callers below.
3887 * server.cc (handle_v_run): Update.
3888 (captured_main): Update.
3889 (process_serial_event): Update.
3890 * linux-low.cc (linux_target_ops): Update.
3891 (linux_create_inferior): Turn into ...
3892 (linux_process_target::create_inferior): ... this.
3893 * linux-low.h (class linux_process_target): Update.
3894 * lynx-low.cc (lynx_target_ops): Update.
3895 (lynx_create_inferior): Turn into ...
3896 (lynx_process_target::create_inferior): ... this.
3897 * lynx-low.h (class lynx_process_target): Update.
3898 * nto-low.cc (nto_target_ops): Update.
3899 (nto_create_inferior): Turn into ...
3900 (nto_process_target::create_inferior): ... this.
3901 * nto-low.h (class nto_process_target): Update.
3902 * win32-low.cc (win32_target_ops): Update.
3903 (win32_create_inferior): Turn into ...
3904 (win32_process_target::create_inferior): ... this.
3905 * win32-low.h (class win32_process_target): Update.
3907 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3909 * target.h (class process_target): New class definition.
3910 (struct process_stratum_target) <pt>: New field with type
3912 * linux-low.h (class linux_process_target): Define as a derived
3913 class of 'process_target'.
3914 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3916 * lynx-low.h (class lynx_process_target): Define as a derived
3917 class of 'process_target'.
3918 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3920 * nto-low.h (class nto_process_target): Define as a derived
3921 class of 'process_target'.
3922 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3924 * win32-low.h (class win32_process_target): Define as a derived
3925 class of 'process_target'.
3926 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3929 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3931 * configure: Regenerate.
3933 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
3934 Andrew Burgess <andrew.burgess@embecosm.com>
3936 * linux-riscv-low.cc: New file.
3937 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3938 and nat/riscv-linux-tdesc.c.
3939 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3940 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3943 2020-02-14 Tom Tromey <tom@tromey.com>
3945 * acinclude.m4: Don't include acx_configure_dir.m4.
3946 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3947 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3948 (all, install-only, uninstall, clean-info, clean)
3949 (maintainer-clean): Don't recurse.
3950 (subdir_do, all-lib): Remove.
3951 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3953 (generated_files): Update.
3954 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3955 * configure: Rebuild.
3956 * configure.ac: Don't configure gnulib or libiberty.
3959 2020-02-14 Eli Zaretskii <eliz@gnu.org>
3961 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3962 preparing the command line for CreateProcess.
3963 (win32_create_inferior): Reflect the program name in debugging
3964 output that shows the process and its command line.
3966 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3968 * Makefile.in: Rename source files from .c to .cc.
3969 * %.c: Rename to %.cc.
3970 * configure.ac: Rename server.c to server.cc.
3971 * configure: Re-generate.
3973 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3975 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3977 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
3979 * win32-low.c (win32_create_inferior): Set signal_pid.
3981 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
3982 Pedro Alves <palves@redhat.com>
3984 Skip building gdbserver in a cross-configuration.
3985 * configure.srv: Set $gdbserver_host depending on whether $target
3986 is $host. Use $gdbserver_host instead of $host.
3988 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3990 * configure: Re-generate.
3992 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3994 * configure: Re-generate.
3996 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3998 * acinclude.m4: Update warning.m4 path.
4000 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4002 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4003 (handle_exception): Set siginfo_er.
4004 (win32_xfer_siginfo): New function.
4006 2020-02-07 Tom Tromey <tom@tromey.com>
4007 Pedro Alves <palves@redhat.com>
4009 * README: Update build documentation.
4010 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4012 * configure.ac: Update paths.
4013 * configure: Rebuild.
4014 * acinclude.m4: Update paths.
4015 * Makefile.in: Update include paths.
4016 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4017 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4018 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4019 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4020 (%-generated.c): Update paths.
4021 * Move entire directory from ../gdb/gdbserver.
4023 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4025 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4027 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4029 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4030 assignment instead of srv_linux_obj.
4032 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4034 * server.c (handle_qxfer_libraries): Write segment-address with
4037 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4039 * Makefile.in (install-strip): New target.
4040 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4041 * aclocal.m4: Regenerate.
4042 * configure: Regenerate.
4043 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4045 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4047 * Makefile.in (SFILES): Adjust paths to point to real files.
4048 (OBS): Move waitstatus.o to target/waitstatus.o.
4049 (TAGS): Transform paths appropriately.
4051 (nat/%.o): ... this pattern rule.
4053 (target/%.o): ... this pattern rule.
4054 * configure.srv: Adjust paths throughout to include nat/ prefix
4055 with the revant files.
4056 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4057 * configure: Regenerate.
4059 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4061 * Makefile.in (TAGS): Remove config files from the recipe.
4063 2020-01-14 Tom Tromey <tom@tromey.com>
4065 * configure: Rebuild.
4066 * configure.ac: Remove any checks that were added to common.m4.
4067 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4070 2020-01-14 Tom Tromey <tom@tromey.com>
4072 * server.h: Include config.h.
4073 * gdbreplay.c: Include config.h.
4074 * configure: Rebuild.
4075 * configure.ac: Don't source common.host.
4076 * acinclude.m4: Update path.
4077 * Makefile.in (INCSUPPORT): New variable.
4078 (INCLUDE_CFLAGS): Add INCSUPPORT.
4079 (SFILES): Update paths.
4080 (version-generated.c): Update path to create-version.sh.
4081 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4083 2020-01-14 Tom Tromey <tom@tromey.com>
4085 * configure.ac (LIBS): Use WIN32APILIBS.
4086 (USE_WIN32API): Don't define.
4087 * configure: Rebuild.
4089 2020-01-14 Tom Tromey <tom@tromey.com>
4091 * configure: Rebuild.
4093 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4095 * Makefile.in (%-generated.c): Remove rule for files from
4098 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4100 * configure: Re-generate.
4102 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4104 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4106 * tracepoint.c (stop_tracing, flush_trace_buffer,
4107 about_to_request_buffer_space, get_trace_state_variable_value,
4108 set_trace_state_variable_value, gdb_collect): Add declaration.
4110 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4112 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4113 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4114 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4115 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4116 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4119 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4121 * inferiors.c: Include gdbsupport/common-inferior.h.
4123 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4125 * hostio-errno.c: Include hostio.h.
4127 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4129 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4132 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4134 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4135 * linux-arm-tdesc.h: Include arch/arm.h.
4137 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4139 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4141 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4143 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4144 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4146 2020-01-10 Pedro Alves <palves@redhat.com>
4148 * fork-child.c (post_fork_inferior): Pass target down to
4150 * inferiors.c (switch_to_thread): Add process_stratum_target
4152 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4153 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4154 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4155 * remote-utils.c (prepare_resume_reply): Pass the target to
4157 * target.c (the_target): Now a process_stratum_target.
4158 (done_accessing_memory): Pass the target to switch_to_thread.
4159 (set_target_ops): Ajust to use process_stratum_target.
4160 * target.h (struct target_ops): Rename to ...
4161 (struct process_stratum_target): ... this.
4162 (the_target, set_target_ops): Adjust.
4163 (prepare_to_access_memory): Adjust comment.
4164 * win32-low.c (child_xfer_memory): Adjust to use
4165 process_stratum_target.
4166 (win32_target_ops): Now a process_stratum_target.
4168 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4169 Pedro Alves <palves@redhat.com>
4171 * win32-low.c (get_child_debug_event): Extract the fatal exception
4172 from the exit status and convert to the equivalent Posix signal
4174 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4175 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4177 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4179 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4181 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4183 * server.c (gdbserver_version): Change copyright year to 2020.
4184 * gdbreplay.c (gdbreplay_version): Likewise.
4186 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4188 * configure: Regenerate.
4189 * configure.ac: Quote variable arguments of test.
4191 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4193 * Makefile.in: Fix build with GNU Make 3.81
4195 2019-12-16 Tom Tromey <tromey@adacore.com>
4197 * server.c (get_exec_file): Constify result.
4199 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4201 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4202 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4203 * config.in: Regenerate.
4204 * configure: Regenerate.
4205 * configure.ac: Don't check for strerror.
4206 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4207 Call safe_strerror instead of strerror.
4208 * server.h (strerror): Remove this now-unnecessary declaration.
4209 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4211 (gdb_agent_helper_thread): Likewise.
4212 * utils.c (perror_with_name): Likewise.
4214 2019-11-26 Tom Tromey <tom@tromey.com>
4216 * configure, config.in: Rebuild.
4218 2019-11-26 Tom Tromey <tom@tromey.com>
4220 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4221 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4223 * configure, config.in: Rebuild.
4225 2019-11-26 Tom Tromey <tom@tromey.com>
4227 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4228 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4229 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4230 * acinclude.m4: Include ax_pthread.m4.
4231 * config.in, configure: Rebuild.
4233 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4235 * debug.c (debug_set_output): Call safe_strerror instead of
4237 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4238 (linux_kill_one_lwp): Likewise.
4239 (linux_detach_one_lwp): Likewise.
4240 (linux_wait_for_event_filtered): Likewise.
4241 (store_register): Likewise.
4242 * lynx-low.c (lynx_attach): Likewise.
4243 * mem-break.c (insert_memory_breakpoint): Likewise.
4244 (remove_memory_breakpoint): Likewise.
4245 (delete_fast_tracepoint_jump): Likewise.
4246 (set_fast_tracepoint_jump): Likewise.
4247 (uninsert_fast_tracepoint_jumps_at): Likewise.
4248 (reinsert_fast_tracepoint_jumps_at): Likewise.
4249 * nto-low.c (nto_xfer_memory): Likewise.
4250 (nto_resume): Likewise.
4252 2019-11-20 Luis Machado <luis.machado@linaro.org>
4254 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4255 instead of register count.
4256 * tdesc.c (tdesc_contains_feature): New function.
4257 * tdesc.h (tdesc_contains_feature): New prototype.
4259 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4261 * Makefile.in: Add safe-strerror.c.
4262 * configure: Regenerate.
4263 * configure.ac: Don't source common.host.
4265 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4267 * config.in: Regenerate.
4268 * configure: Regenerate.
4270 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4272 * ax.c (ax_printf): Handle size_t_arg.
4274 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4276 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4277 * mi/mi-main.c (output_cores): Likewise.
4278 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4279 (linux_xfer_osdata_modules): Likewise.
4280 * remote.c (register_remote_support_xml): Likewise.
4281 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4282 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4284 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4286 * configure: Regenerate.
4287 * configure.ac: Remove check for strerror_r.
4289 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4291 * config.in: Regenerate.
4292 * configure: Regenerate.
4293 * configure.ac: Also check for strerror_r.
4295 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4297 * ax.h (debug_agent): Remove duplicate declaration.
4299 2019-10-26 Tom de Vries <tdevries@suse.de>
4301 * linux-aarch64-low.c: Fix typos in comments.
4302 * linux-arm-low.c: Same.
4303 * linux-low.c: Same.
4304 * linux-ppc-low.c: Same.
4305 * proc-service.c: Same.
4308 * tracepoint.c: Same.
4309 * win32-low.c: Same.
4311 2019-10-25 Tom Tromey <tromey@adacore.com>
4313 * utils.c (xstrdup): Remove.
4315 2019-10-23 Tom Tromey <tom@tromey.com>
4317 * configure, config.in: Rebuild.
4319 2019-10-23 Tom Tromey <tom@tromey.com>
4321 * configure: Rebuild.
4322 * acinclude.m4: Use m4_include, not sinclude.
4324 2019-10-17 Tom Tromey <tromey@adacore.com>
4326 * configure: Rebuild.
4327 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4328 in AC_CONFIG_FILES invocation.
4329 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4332 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4334 * server.c: Include xml-builtin.h.
4335 (get_xml_features): Don't declare xml_builtins here.
4337 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4339 * Makefile.in: Remove references to vec-ipa.o.
4341 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4343 * Makefile.in: Remove references to vec.c.
4345 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4347 * server.c (server_waiting): Change to bool.
4348 (extended_protocol): Likewise.
4349 (response_needed): Likewise.
4350 (exit_requested): Likewise.
4351 (run_once): Likewise.
4352 (report_no_resumed): Likewise.
4353 (non_stop): Likewise.
4354 (disable_packet_vCont): Likewise.
4355 (disable_packet_Tthread): Likewise.
4356 (disable_packet_qC): Likewise.
4357 (disable_packet_qfThreadInfo): Likewise.
4358 (handle_general_set): Update.
4359 (handle_detach): Update.
4360 (handle_monitor_command): Update.
4361 (handle_query): Update.
4362 (captured_main): Update.
4363 (process_serial_event): Update.
4364 * server.h (server_waiting): Change to bool.
4365 (disable_packet_vCont): Likewise.
4366 (disable_packet_Tthread): Likewise.
4367 (disable_packet_qC): Likewise.
4368 (disable_packet_qfThreadInfo): Likewise.
4369 (run_once): Likewise.
4370 (non_stop): Likewise.
4371 * target.c (target_stop_and_wait): Update.
4373 2019-10-02 Tom Tromey <tromey@adacore.com>
4375 * Makefile.in (SFILES): Add common-inferior.c.
4376 (OBS): Add common-inferior.o.
4377 * server.c (startup_with_shell): Don't define.
4379 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4381 * linux-low.c (linux_low_read_btrace): Update for change to
4384 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4386 * debug.c (debug_threads): Remove comment in favor of the header.
4387 * debug.h (using_threads): Add declaration.
4388 (debug_threads): Add comment.
4389 * linux-aarch64-low.c: Include debug.h and remove declaration of
4391 * nto-low.c: Likewise.
4392 * remote-utils.c: Likewise.
4393 * thread-db.c: Likewise.
4395 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4397 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4398 and powerpc-cell64l-ipa.o.
4399 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4400 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4401 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4404 * spu-low.c: Remove file.
4406 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4407 (parse_spufs_run): Remove.
4408 (ppc_get_pc): Remove Cell/B.E. support.
4409 (ppc_set_pc): Likewise.
4410 (ppc_breakpoint_at): Likewise.
4411 (ppc_arch_setup): Likewise.
4412 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4413 tdesc_powerpc_cell32l.
4414 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4415 or init_registers_powerpc_cell32l.
4416 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4417 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4418 or init_registers_powerpc_cell32l.
4419 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4420 (init_registers_powerpc_cell32l): Remove prototype.
4421 (init_registers_powerpc_cell64l): Likewise.
4423 * target.h (struct target_ops): Remove qxfer_spu member.
4424 * server.c (handle_qxfer_spu): Remove.
4425 (qxfer_packets): Remove entry for "spu".
4426 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4427 * linux-low.c (SPUFS_MAGIC): Remove.
4428 (spu_enumerate_spu_ids): Remove.
4429 (linux_qxfer_spu): Remove.
4430 (linux_target_ops): Remove qxfer_spu member.
4431 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4432 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4433 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4435 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4437 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4438 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4439 * config.in: Regenerate.
4440 * configure: Regenerate.
4442 2019-08-15 Tom Tromey <tromey@adacore.com>
4444 * target.c (target_write_memory): Use gdb::byte_vector.
4446 2019-08-15 Tom Tromey <tromey@adacore.com>
4448 * tracepoint.c (write_inferior_data_pointer)
4449 (write_inferior_integer, write_inferior_int8)
4450 (write_inferior_uinteger, m_tracepoint_action_download)
4451 (r_tracepoint_action_download, x_tracepoint_action_download)
4452 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4453 (download_agent_expr, download_tracepoint_1)
4454 (download_trace_state_variables, upload_fast_traceframes): Update.
4455 * server.c (gdb_write_memory): Update.
4456 * remote-utils.c (relocate_instruction): Update.
4457 * proc-service.c (ps_pdwrite): Update.
4458 * mem-break.c (remove_memory_breakpoint)
4459 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4460 (uninsert_fast_tracepoint_jumps_at)
4461 (reinsert_fast_tracepoint_jumps_at): Update.
4462 * linux-x86-low.c (append_insns)
4463 (i386_install_fast_tracepoint_jump_pad)
4464 (amd64_write_goto_address, i386_write_goto_address): Update.
4465 * linux-s390-low.c (append_insns, s390_write_goto_address):
4467 * linux-ppc-low.c (ppc_relocate_instruction)
4468 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4469 (ppc_write_goto_address): Update.
4470 * linux-aarch64-low.c (append_insns): Update.
4471 * target.h (struct target_ops): Update.
4472 (write_inferior_memory): Don't declare.
4473 * target.c (target_write_memory): Rename from
4474 write_inferior_memory. Remove old target_write_memory.
4476 2019-08-15 Tom Tromey <tromey@adacore.com>
4478 * target.c (write_inferior_memory): Use std::vector.
4480 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4483 * configure.ac: Drop enable-libmcheck support.
4484 * configure, config.in: Rebuild.
4485 * acinclude.m4: Don't include it.
4487 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4489 * configure.srv: Remove Arm xml files.
4491 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4493 * configure.srv: Add new files. Remove xml generated files.
4494 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4496 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4497 * linux-aarch32-tdesc.c: New file.
4498 * linux-aarch32-tdesc.h: New file.
4499 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4500 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4501 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4502 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4503 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4504 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4505 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4506 (arm_read_description): Call arm_linux_read_description.
4507 (initialize_low_arch): Don't init registers.
4508 * linux-arm-tdesc.c: New file.
4509 * linux-arm-tdesc.h: New file.
4511 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4513 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4514 Move counter inside for.
4515 (arm_read_description): Check ptrace earlier.
4516 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4518 2019-07-09 Tom Tromey <tom@tromey.com>
4520 * configure: Rebuild.
4521 * configure.ac: Change common to gdbsupport.
4522 * acinclude.m4: Change common to gdbsupport.
4523 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4524 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4525 common to gdbsupport.
4526 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4527 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4528 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4529 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4530 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4531 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4532 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4533 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4534 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4535 common to gdbsupport.
4537 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4539 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4541 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4543 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4545 * configure.srv: Remove legacy xml.
4546 * linux-aarch64-low.c (initialize_low_arch): Remove
4547 initialize_low_tdesc call.
4548 * linux-aarch64-tdesc-selftest.c: Remove file.
4549 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4550 * linux-x86-low.c (initialize_low_arch): Remove
4551 initialize_low_tdesc call.
4552 * linux-x86-tdesc-selftest.c: Remove file.
4553 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4555 2019-06-20 Tom de Vries <tdevries@suse.de>
4557 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4558 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4560 2019-06-19 Tom de Vries <tdevries@suse.de>
4562 * debug.h (debug_write): Change return type to ssize_t.
4563 * debug.c (debug_write): Same.
4565 2019-06-14 Tom Tromey <tom@tromey.com>
4567 * configure.ac: Use new path to gnulib.
4568 * configure: Rebuild.
4569 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4572 2019-06-11 Tom Tromey <tom@tromey.com>
4574 * Makefile.in (SFILES): Add alloc.c.
4576 (IPA_OBJS): Add alloc-ipa.o.
4577 (alloc-ipa.o): New target.
4578 (%.o: ../%.c): New pattern rule.
4580 2019-06-10 Tom Tromey <tromey@adacore.com>
4582 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4583 end warning with a newline.
4584 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4586 * thread-db.c (attach_thread): Don't end warning with a newline.
4587 (thread_db_notice_clone): Likewise.
4588 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4590 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4591 end warning with a newline.
4593 2019-06-04 Pedro Alves <palves@redhat.com>
4595 * server.c (captured_main): Use make_unique_xstrdup.
4597 2019-06-02 Tom Tromey <tom@tromey.com>
4599 * gdbreplay.c (fromhex): Remove.
4600 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4602 2019-05-29 Tom Tromey <tromey@adacore.com>
4604 * configure: Rebuild.
4606 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4608 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4609 sign extension code on 32-bit builds.
4611 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4614 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4616 2019-04-19 Tom Tromey <tom@tromey.com>
4618 * server.c (struct vstop_notif): Derive from notif_event.
4620 (queue_stop_reply): Update.
4621 (remove_all_on_match_ptid): Change type. Rewrite.
4622 (discard_queued_stop_replies): Rewrite.
4623 (in_queued_stop_replies_ptid): Change type.
4624 (in_queued_stop_replies): Rewrite.
4625 (notif_stop): Update.
4626 (queue_stop_reply_callback): Update.
4627 (captured_main): Don't call initialize_notif.
4628 (push_stop_notification): Update.
4629 * notif.c (notif_write_event, handle_notif_ack)
4630 (notif_event_enque, notif_push): Update.
4631 (notif_event_xfree, initialize_notif): Remove.
4632 * notif.h (struct notif_event): Include <list>, not
4634 (struct notif_server) <queue>: Now a std::list.
4635 (notif_event_p): Remove typedef.
4636 (initialize_notif): Don't declare.
4637 (struct notif_event): Add virtual destructor.
4639 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4641 * ax.c (ax_vdebug): Call debug_printf.
4642 * debug.c (debug_write): New function.
4643 * debug.h (debug_write): New declaration.
4644 * linux-low.c (sigchld_handler): Call debug_write.
4646 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4648 * debug.c (debug_set_output): New function.
4649 (debug_vprintf): Send output to debug_file.
4650 (debug_flush): Likewise.
4651 * debug.h (debug_set_output): New declaration.
4652 * server.c (handle_monitor_command): Add debug-file option.
4653 (captured_main): Likewise.
4655 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4657 * debug.c (remote_debug): Add definition.
4658 * debug.h (remote_debug): Add declaration.
4659 * hostio.c (remote_debug): Remove declaration.
4660 * remote-utils.c (struct ui_file): Likewise.
4661 (remote_debug): Likewise.
4662 * remote-utils.h (remote_debug): Likewise,
4663 * server.c (remote_debug): Remove definition.
4665 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4667 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4668 when using a 64-bit gdbserver.
4670 2019-04-09 Tom Tromey <tromey@adacore.com>
4672 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4674 2019-04-08 Tom Tromey <tom@tromey.com>
4676 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4678 (linux_resume_one_lwp): Likewise.
4680 2019-04-08 Tom Tromey <tom@tromey.com>
4682 * gdbreplay.c: Update.
4683 * linux-low.c: Update.
4686 2019-04-08 Tom Tromey <tom@tromey.com>
4688 * server.c: Use C++ exception handling.
4689 * linux-low.c: Use C++ exception handling.
4690 * gdbreplay.c: Use C++ exception handling.
4692 2019-04-08 Tom Tromey <tom@tromey.com>
4694 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4695 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4696 (captured_main, main): Update.
4697 * gdbreplay.c (main): Update.
4699 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4701 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4702 value in argument pointer, return 1 if the entry is found and 0
4703 otherwise. Move comment.
4704 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4705 * linux-low.h (linux_get_auxv): Declare.
4706 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4708 2019-04-05 Tom Tromey <tromey@adacore.com>
4710 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4713 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4715 * linux-low.c (AT_HWCAP2): Add define if not already included.
4717 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4719 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4720 (aarch64_arch_setup): Call linux_get_hwcap.
4721 * linux-arm-low.c (arm_get_hwcap): Remove function.
4722 (arm_read_description): Call linux_get_hwcap.
4723 * linux-low.c (linux_get_auxv): New function.
4724 (linux_get_hwcap): Likewise.
4725 (linux_get_hwcap2): Likewise.
4726 * linux-low.h (linux_get_hwcap): New declaration.
4727 (linux_get_hwcap2): Likewise.
4728 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4729 (ppc_arch_setup): Call linux_get_hwcap.
4730 * linux-s390-low.c (s390_get_hwcap): Remove function.
4731 (s390_arch_setup): Call linux_get_hwcap.
4733 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4734 Jiong Wang <jiong.wang@arm.com>
4736 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4737 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4739 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4741 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4742 Jiong Wang <jiong.wang@arm.com>
4744 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4745 (aarch64_get_hwcap): New function.
4746 (aarch64_arch_setup): Read APIA hwcap.
4748 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4749 Jiong Wang <jiong.wang@arm.com>
4751 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4752 (initialize_low_tracepoint): Likewise.
4753 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4754 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4755 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4756 (aarch64_linux_read_description): Likewise.
4757 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4759 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4761 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4762 i386_create_target_description for 'segments' parameter.
4763 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4764 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4765 * win32-i386-low.c (i386_arch_setup): Likewise.
4767 2019-03-12 Tom Tromey <tromey@adacore.com>
4769 * linux-low.c (iterate_over_lwps): Update.
4771 2019-03-06 Tom Tromey <tom@tromey.com>
4773 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4774 (captured_main): Use SCOPE_EXIT.
4776 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4778 * configure.srv: Use '$enable_unittest' instead of '$development'
4779 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4782 2019-02-27 Tom Tromey <tromey@adacore.com>
4784 * gdbreplay.c (logchar): Handle \r\n.
4786 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4788 * linux-low.c (linux_attach): Add process before lwp.
4789 * server.c (attach_inferior): Check if already attached.
4791 2019-02-07 Tom Tromey <tom@tromey.com>
4793 * x86-tdesc.h: Rename include guard.
4794 * x86-low.h: Add include guard.
4795 * wincecompat.h: Rename include guard.
4796 * win32-low.h: Add include guard.
4797 * utils.h: Rename include guard.
4798 * tracepoint.h: Rename include guard.
4799 * tdesc.h: Rename include guard.
4800 * target.h: Rename include guard.
4801 * server.h: Rename include guard.
4802 * remote-utils.h: Rename include guard.
4803 * regcache.h: Rename include guard.
4804 * nto-low.h: Rename include guard.
4805 * notif.h: Add include guard.
4806 * mem-break.h: Rename include guard.
4807 * lynx-low.h: Add include guard.
4808 * linux-x86-tdesc.h: Add include guard.
4809 * linux-s390-tdesc.h: Add include guard.
4810 * linux-ppc-tdesc-init.h: Add include guard.
4811 * linux-low.h: Add include guard.
4812 * linux-aarch64-tdesc.h: Add include guard.
4813 * linux-aarch32-low.h: Add include guard.
4814 * inferiors.h: Rename include guard.
4815 * i387-fp.h: Rename include guard.
4816 * hostio.h: Rename include guard.
4817 * gdbthread.h: Rename include guard.
4818 * gdb_proc_service.h: Rename include guard.
4819 * event-loop.h: Rename include guard.
4820 * dll.h: Rename include guard.
4821 * debug.h: Rename include guard.
4822 * ax.h: Rename include guard.
4824 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4827 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4828 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4830 2019-01-25 Tom Tromey <tom@tromey.com>
4832 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4834 2019-01-25 Tom Tromey <tom@tromey.com>
4836 * win32-low.c: Fix common/ includes.
4837 * win32-i386-low.c: Fix common/ includes.
4838 * tracepoint.c: Fix common/ includes.
4839 * thread-db.c: Fix common/ includes.
4840 * target.h: Fix common/ includes.
4841 * symbol.c: Fix common/ includes.
4842 * spu-low.c: Fix common/ includes.
4843 * server.h: Fix common/ includes.
4844 * server.c: Fix common/ includes.
4845 * remote-utils.c: Fix common/ includes.
4846 * regcache.h: Fix common/ includes.
4847 * regcache.c: Fix common/ includes.
4848 * nto-x86-low.c: Fix common/ includes.
4849 * notif.h: Fix common/ includes.
4850 * mem-break.h: Fix common/ includes.
4851 * lynx-low.c: Fix common/ includes.
4852 * lynx-i386-low.c: Fix common/ includes.
4853 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4854 * linux-x86-low.c: Fix common/ includes.
4855 * linux-low.c: Fix common/ includes.
4856 * inferiors.h: Fix common/ includes.
4857 * i387-fp.c: Fix common/ includes.
4858 * hostio.c: Fix common/ includes.
4859 * hostio-errno.c: Fix common/ includes.
4860 * gdbthread.h: Fix common/ includes.
4861 * gdbreplay.c: Fix common/ includes.
4862 * fork-child.c: Fix common/ includes.
4863 * event-loop.c: Fix common/ includes.
4865 (enum gdb_agent_op): Fix common/ includes.
4867 2019-01-21 Tom Tromey <tom@tromey.com>
4869 * tracepoint.c: Fix includes.
4870 * remote-utils.c: Fix includes.
4871 * linux-x86-low.c: Fix includes.
4873 2019-01-01 Joel Brobecker <brobecker@adacore.com>
4875 * gdbreplay.c (gdbreplay_version): Update copyright year in
4877 * server.c (gdbserver_version): Likewise.
4879 2018-12-05 Alan Hayward <alan.hayward@arm.com>
4881 * linux-low.c (add_lwp): Switch ordering.
4883 2018-11-29 Tom Tromey <tom@tromey.com>
4885 * win32-low.c (win32_join): Take pid, not process.
4886 * target.h (struct target_ops) <join>: Change argument type.
4887 (join_inferior): Change argument name.
4888 * spu-low.c (spu_join): Take pid, not process.
4889 * server.c (handle_detach): Preserve pid before destroying
4891 * lynx-low.c (lynx_join): Take pid, not process.
4892 * linux-low.c (linux_join): Take pid, not process.
4894 2018-11-23 Alan Hayward <alan.hayward@arm.com>
4896 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4897 (aarch64_cannot_fetch_register): Likewise.
4898 (struct linux_target_ops): Update references.
4900 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4902 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4904 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4906 * configure.srv (ipa_ppc_linux_regobj): Add
4907 powerpc-isa207-htm-vsx32l-ipa.o and
4908 powerpc-isa207-htm-vsx64l-ipa.o.
4909 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4910 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4911 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4912 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4913 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4914 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4915 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4916 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4917 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4918 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4919 (init_registers_powerpc_isa207_htm_vsx32l)
4920 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4921 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4922 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4923 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4924 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4925 (ppc_store_tm_ctarregset): New functions.
4926 (ppc_regsets): Add entries for HTM regsets.
4927 (ppc_arch_setup): Set htm in features struct when needed. Set
4928 sizes for the HTM regsets.
4929 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4930 (initialize_low_arch): Call
4931 init_registers_powerpc_isa207_htm_vsx32l and
4932 init_registers_powerpc_isa207_htm_vsx64l.
4933 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4934 PPC_TDESC_ISA207_HTM_VSX.
4935 (initialize_low_tracepoint): Call
4936 init_registers_powerpc_isa207_htm_vsx32l and
4937 init_registers_powerpc_isa207_htm_vsx64l.
4939 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4941 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4942 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4943 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4944 (ppc_store_pmuregset): New functions.
4945 (ppc_regsets): Add entries for ebb and pmu regsets.
4946 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4947 pmu regsets are available. Set sizes for these regsets.
4949 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4951 * configure.srv (ipa_ppc_linux_regobj): Add
4952 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4953 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4954 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4955 rs6000/powerpc-isa207-vsx32l.xml, and
4956 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4957 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4958 <PPC_TDESC_ISA207_VSX>: New enum value.
4959 (init_registers_powerpc_isa207_vsx32l): Declare.
4960 (init_registers_powerpc_isa207_vsx64l): Declare.
4961 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4962 (ppc_store_tarregset): New function.
4963 (ppc_regsets): Add entry for the TAR regset.
4964 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4965 size for the TAR regsets.
4966 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4967 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4968 and init_registers_powerpc_isa207_vsx64l.
4969 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4970 (initialize_low_tracepoint): Call
4971 init_registers_powerpc_isa207_vsx32l and
4972 init_registers_powerpc_isa207_vsx64l.
4974 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4975 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4977 * configure.srv (ipa_ppc_linux_regobj): Add
4978 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4979 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4980 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4981 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4982 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4983 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4984 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4985 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4986 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
4987 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
4988 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
4989 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
4990 (ppc_hwcap): Add comment.
4991 (ppc_hwcap2): New global.
4992 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
4993 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
4994 (ppc_regsets): Add entries for the DSCR and PPR regsets.
4995 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
4996 when needed. Set sizes for the the DSCR and PPR regsets.
4997 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
4998 (initialize_low_arch): Call
4999 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5000 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5001 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5002 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5003 (initialize_low_tracepoint): Call
5004 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5005 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5007 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5009 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5011 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5012 Simon Marchi <simark@simark.ca>
5014 * acinclude.m4: Include "../selftest.m4".
5015 * configure: Regenerate.
5016 * configure.ac: Use "GDB_AC_SELFTEST".
5017 * configure.srv: Use "$enable_unittests" instead of
5018 "$development" when checking whether unit tests have been
5020 * server.c (captured_main): Update message informing that
5021 selftests have been disabled.
5023 2018-10-04 Tom Tromey <tom@tromey.com>
5025 * configure: Rebuild.
5027 2018-10-04 Tom Tromey <tom@tromey.com>
5029 * server.c (handle_status): Rename inner "thread".
5030 (process_serial_event): Declare "res" in 'm' case.
5031 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5032 (iterate_over_lwps): Rename inner "thread".
5033 (linux_qxfer_libraries_svr4): Rename inner "len".
5034 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5036 2018-10-01 Gary Benson <gbenson@redhat.com>
5038 * gdb_proc_service.h: Moved common code to
5039 common/gdb_proc_service.h.
5041 2018-10-01 Gary Benson <gbenson@redhat.com>
5043 * gdb_proc_service.h: Synchronize comments and whitespace with
5044 GDB's version of this file.
5046 2018-09-25 Tom Tromey <tom@tromey.com>
5048 * configure: Rebuild.
5049 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5051 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5053 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5054 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5055 ($(IPA_LIB)): Sort IPA_OBJS.
5057 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5059 * Makefile.in: Remove references to $(ADD_DEPS).
5061 2018-09-16 Tom Tromey <tom@tromey.com>
5063 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5065 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5068 2018-09-05 Tom Tromey <tom@tromey.com>
5070 * configure: Rebuild.
5072 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5075 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5077 2018-08-27 Tom Tromey <tom@tromey.com>
5080 * configure: Rebuild.
5082 2018-08-27 Tom Tromey <tom@tromey.com>
5084 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5085 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5086 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5087 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5088 (s390x_emit_stack_adjust): Add casts to unsigned char.
5090 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5094 * server.h (struct client_state) <disable_randomization>:
5097 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5099 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5101 (mips_supply_ptrace_register): Likewise.
5103 2018-07-22 Tom Tromey <tom@tromey.com>
5105 * configure: Rebuild.
5107 2018-07-22 Tom Tromey <tom@tromey.com>
5109 * win32-low.c (win32_create_inferior): Remove unused variables.
5110 * gdbreplay.c (remote_open): Remove unused variable.
5111 * remote-utils.c (remote_prepare): Remove unused variable.
5112 * x86-tdesc.h (X86_TDESC_H): Define.
5113 (amd64_expedite_regs): Define conditionally.
5114 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5115 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5116 * remote-utils.c (readchar): Remove unused variable.
5118 2018-07-13 Pedro Alves <palves@redhat.com>
5120 * linux-low.c (linux_kill): Change parameter to process_info
5121 pointer instead of pid. Adjust.
5122 * lynx-low.c (lynx_kill): Likewise.
5123 * nto-low.c (nto_kill): Likewise.
5124 * spu-low.c (spu_kill): Likewise.
5125 * win32-low.c (win32_kill): Likewise.
5126 * server.c (handle_v_kill, kill_inferior_callback)
5127 (detach_or_kill_for_exit): Adjust.
5128 * target.c (kill_inferior): Change parameter to process_info
5129 pointer instead of pid. Adjust.
5130 * target.h (struct target_ops) <kill>: Change parameter to
5131 process_info pointer instead of pid. Adjust all implementations
5133 (kill_inferior): Likewise.
5135 2018-07-13 Pedro Alves <palves@redhat.com>
5137 * linux-low.c (linux_detach, linux_join): Change parameter to
5138 process_info pointer instead of pid. Adjust.
5139 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5140 * nto-low.c (nto_detach): Likewise.
5141 * spu-low.c (spu_detach, spu_join): Likewise.
5142 * win32-low.c (win32_detach, win32_join): Likewise.
5143 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5144 * target.h (struct target_ops) <detach, join>: Change parameter to
5145 process_info pointer instead of pid. Adjust all implementations
5147 (detach_inferior, join_inferior): Rename 'pid' parameter to
5150 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5151 Jan Kratochvil <jan.kratochvil@redhat.com>
5152 Paul Fertser <fercerpav@gmail.com>
5153 Tsutomu Seki <sekiriki@gmail.com>
5155 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5156 (OBS): Add 'common/netstuff.o'.
5157 (GDBREPLAY_OBS): Likewise.
5158 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5159 (remote_open): Implement support for IPv6
5161 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5163 (handle_accept_event): Accept connections from IPv6 sources.
5164 (remote_prepare): Handle IPv6-style hostnames; implement
5165 support for IPv6 connections.
5166 (remote_open): Implement support for printing connections from
5169 2018-07-11 Pedro Alves <palves@redhat.com>
5172 * mem-break.c (any_persistent_commands): Add process_info
5173 parameter and use it instead of relying on the current process.
5174 Change return type to bool.
5175 * mem-break.h (any_persistent_commands): Add process_info
5176 parameter and change return type to bool.
5177 * server.c (handle_detach): Remove require_running_or_return call.
5178 Look up the process_info for the process we're about to detach.
5179 If not found, return back error to GDB. Adjust
5180 any_persistent_commands call to pass down a process pointer.
5182 2018-07-11 Pedro Alves <palves@redhat.com>
5184 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5185 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5186 instead of collect_register_by_name.
5187 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5188 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5190 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5191 Pedro Alves <palves@redhat.com>
5193 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5195 2018-07-03 Tom Tromey <tom@tromey.com>
5197 * linux-low.c: Update.
5198 * lynx-low.c: Update.
5199 * mem-break.c: Update.
5200 * nto-low.c: Update.
5201 * remote-utils.c: Update.
5203 * spu-low.c: Update.
5205 * win32-low.c: Update.
5207 2018-07-03 Tom Tromey <tom@tromey.com>
5211 2018-07-03 Tom Tromey <tom@tromey.com>
5213 * linux-low.c: Update.
5215 2018-07-03 Tom Tromey <tom@tromey.com>
5219 2018-07-03 Tom Tromey <tom@tromey.com>
5221 * linux-low.c: Update.
5222 * linux-mips-low.c: Update.
5223 * lynx-low.c: Update.
5224 * nto-low.c: Update.
5225 * remote-utils.c: Update.
5227 * spu-low.c: Update.
5229 * thread-db.c: Update.
5231 2018-07-03 Tom Tromey <tom@tromey.com>
5233 * linux-low.c: Update.
5234 * linux-mips-low.c: Update.
5235 * lynx-low.c: Update.
5236 * mem-break.c: Update.
5237 * nto-low.c: Update.
5238 * remote-utils.c: Update.
5240 * spu-low.c: Update.
5242 * tracepoint.c: Update.
5244 2018-07-03 Tom Tromey <tom@tromey.com>
5246 * linux-low.c: Update.
5247 * linux-ppc-low.c: Update.
5248 * linux-x86-low.c: Update.
5249 * proc-service.c: Update.
5251 * spu-low.c: Update.
5252 * thread-db.c: Update.
5253 * win32-low.c: Update.
5255 2018-07-03 Tom Tromey <tom@tromey.com>
5257 * linux-low.c: Update.
5258 * lynx-low.c: Update.
5259 * nto-low.c: Update.
5260 * remote-utils.c: Update.
5261 * spu-low.c: Update.
5262 * thread-db.c: Update.
5263 * win32-low.c: Update.
5265 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5267 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5268 parameter in call to 'amd64_create_target_description'.
5270 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5272 * x86-tdesc.h: Remove executable permission flag.
5274 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5276 * configure.ac: Remove AC_PREREQ, add missing quoting.
5277 * configure: Re-generate.
5278 * config.in: Re-generate.
5279 * aclocal.m4: Re-generate.
5281 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5283 * tracepoint.h (current_traceframe): Remove declaration.
5285 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5287 * linux-aarch64-low.c (is_sve_tdesc): New function.
5288 (aarch64_sve_regs_copy_to_regcache): Likewise.
5289 (aarch64_sve_regs_copy_from_regcache): Likewise.
5290 (aarch64_regs_info): Add SVE checks.
5291 (initialize_low_arch): Initialize SVE.
5293 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5295 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5297 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5299 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5300 (initialize_low_tracepoint): Likewise
5301 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5302 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5304 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5306 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5308 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5310 * server.h (PBUFSIZ): Increase size
5312 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5314 * regcache.c (regcache::raw_compare): New function.
5315 * regcache.h (regcache::raw_compare): New declaration.
5317 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5319 * regcache.c (new_register_cache): Use new.
5320 (free_register_cache): Use delete.
5321 (register_data): Use const.
5322 (supply_register): Move body inside regcache.
5323 (regcache::raw_supply): New override function.
5324 (collect_register): Move body inside regcache.
5325 (regcache::raw_collect): New override function.
5326 (regcache::get_register_status): New override function.
5327 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5329 2018-06-09 Tom Tromey <tom@tromey.com>
5331 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5333 (event_queue): Use std::queue.
5334 (gdb_event_xfree): Remove.
5335 (initialize_event_loop, process_event, wait_for_event): Update.
5337 2018-06-08 Stan Cox <scox@redhat.com>
5339 * win32-low.c (win32_create_inferior): last_ptid and last_status
5340 moved to client_state.
5342 2018-06-08 Pedro Alves <palves@redhat.com>
5344 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5345 common/common-exceptions.o, common/common-utils.o,
5346 common/errors.o, common/print-utils.o and utils.o.
5347 * gdbreplay.c: Include "common-defs.h" instead of the two
5348 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5349 string.h or alloca.h.
5350 (perror_with_name): Delete.
5351 (remote_open): Use xstrdup instead of strdup.
5352 (main): Rename to ...
5353 (captured_main): ... this.
5356 2018-06-08 Tom Tromey <tom@tromey.com>
5358 * linux-low.c (linux_low_read_btrace): Update.
5360 2018-06-04 Stan Cox <scox@redhat.com>
5362 * server.h (struct client_state): New.
5363 * server.c (cont_thread, general_thread, multi_process)
5364 (report_fork_events, report_vfork_events, report_exec_events)
5365 (report_thread_events, swbreak_feature, hwbreak_feature)
5366 (vCont_supported, disable_randomization, pass_signals)
5367 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5368 Moved to client_state.
5369 * remote-utils.c (remote_debug, noack_mode)
5370 (transport_is_reliable): Moved to client_state.
5371 * tracepoint.c (current_traceframe): Moved to client_state.
5374 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5375 linux-low.c, remote-utils.h, target.c: Use client_state.
5377 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5379 * configure.srv: Add new c/h file.
5381 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5383 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5386 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5388 * gdb.arch/mips-fpregset-core.exp: New test.
5389 * gdb.arch/mips-fpregset-core.c: New test source.
5391 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5394 * hostio.c (require_int): Do not report overflow for integers
5395 between 0xfffffff and 0x7fffffff.
5397 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5399 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5400 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5401 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5403 (the_low_target): Wire them.
5405 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5407 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5408 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5409 mode. Call collect_register_by_name with vscr using
5410 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5411 (ppc_store_vrregset): Add and set vscr_offset variable as in
5412 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5415 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5417 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5418 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5419 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5421 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5423 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5424 (ppc_store_vsxregset): Likewise.
5425 (ppc_fill_vrregset): Likewise.
5426 (ppc_store_vrregset): Likewise.
5427 (ppc_fill_evrregset): Likewise.
5428 (ppc_store_evrregset): Likewise.
5429 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5430 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5433 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5435 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5436 wordsize of the inferior. Call ppc_linux_target_wordsize.
5438 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5440 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5441 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5442 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5443 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5444 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5445 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5446 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5447 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5448 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5449 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5450 (tdesc_powerpc_e500l): Remove.
5451 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5452 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5453 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5454 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5456 (ppc_arch_setup): Remove target description matching code. Fill a
5457 ppc_linux_features struct and call ppc_linux_match_description
5460 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5462 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5463 width of the requested register exceeds the width of the
5465 (mips_cannot_store_register): Likewise.
5467 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5469 * linux-mips-low.c (mips_fetch_register): New function. Update
5471 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5472 (the_low_target): Wire `mips_fetch_register'.
5474 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5476 * lynx-i386-low.c (LYNXOS_178): New macro.
5477 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5478 the layout on LynxOS-178.
5479 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5480 handle floating point registers that are not supported by
5483 2018-05-10 Tom Tromey <tom@tromey.com>
5485 * configure: Rebuild.
5487 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5490 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5491 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5492 Use it to set the expedite_regs field in the given tdesc.
5493 * x86-tdesc.h: New file.
5494 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5495 Adjust following the addition of the new expedite_regs parameter
5496 to init_target_desc.
5497 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5498 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5499 (i386_linux_read_description, amd64_linux_read_description):
5500 Adjust following the addition of the new expedite_regs parameter
5501 to init_target_desc.
5502 * lynx-i386-low.c: #include "x86-tdesc.h".
5503 (lynx_i386_arch_setup): Adjust following the addition of the new
5504 expedite_regs parameter to init_target_desc.
5505 * nto-x86-low.c: #include "x86-tdesc.h".
5506 (nto_x86_arch_setup): Adjust following the addition of the new
5507 expedite_regs parameter to init_target_desc.
5508 * win32-i386-low.c: #include "x86-tdesc.h".
5509 (i386_arch_setup): Adjust following the addition of the new
5510 expedite_regs parameter to init_target_desc.
5512 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5515 * win32-low.c (win32_create_inferior): Add call to my_wait
5516 setting last_status global.
5518 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5521 * win32-low.c (create_process): Only call gdb_tilde_expand if
5522 inferior_cwd is not NULL.
5524 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5526 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5527 registers to the cache if their values have changed.
5528 (i387_xsave_to_cache): Provide default values for x87 control
5529 registers when these features are available, but disabled.
5530 * regcache.c (supply_register_by_name_zeroed): New function.
5531 * regcache.h (supply_register_by_name_zeroed): Declare new
5534 2018-05-07 Tom Tromey <tom@tromey.com>
5536 * configure: Rebuild.
5538 2018-05-04 Tom Tromey <tom@tromey.com>
5540 * configure: Rebuild.
5542 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5543 Pedro Alves <palves@redhat.com>
5545 * linux-aarch64-low.c (aarch64_stopped_data_address):
5548 2018-04-27 Tom Tromey <tom@tromey.com>
5550 * configure: Rebuild.
5552 2018-04-23 Tom Tromey <tom@tromey.com>
5554 * configure: Rebuild.
5556 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5558 * Makefile.in (depcomp): Add "..".
5559 (all_deps_files): New and use it.
5561 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5563 * configure.srv (aarch64*-*-linux*): Don't include xml.
5564 (i[34567]86-*-cygwin*): Likewise.
5565 (i[34567]86-*-linux*): Likewise.
5566 (i[34567]86-*-lynxos*): Likewise.
5567 (i[34567]86-*-mingw32ce*): Likewise.
5568 (i[34567]86-*-mingw*): Likewise.
5569 (i[34567]86-*-nto*): Likewise.
5570 (tic6x-*-uclinux): Likewise.
5571 (x86_64-*-linux*): Likewise.
5572 (x86_64-*-mingw*): Likewise.
5573 (x86_64-*-cygwin*): Likewise.
5575 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5577 * tdesc.c: Remove xml parameter.
5579 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5581 * server.c (get_features_xml): Remove cast.
5582 * tdesc.c (void target_desc::accept): Fill in function.
5583 (tdesc_get_features_xml): Remove old xml creation.
5584 (print_xml_feature::visit_pre): Add xml vistor.
5585 * tdesc.h (struct target_desc): Make xmltarget mutable.
5586 (tdesc_get_features_xml): Remove declaration.
5588 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5590 * tdesc.c (tdesc_architecture_name): Add new function.
5591 (tdesc_osabi_name): Likewise.
5592 (tdesc_get_features_xml): Use new functions.
5594 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5596 * tdesc.c (tdesc_create_flags): Remove.
5597 (tdesc_add_flag): Likewise.
5598 (tdesc_named_type): Likewise.
5599 (tdesc_create_union): Likewise.
5600 (tdesc_create_struct): Likewise.
5601 (tdesc_create_vector): Likewise.
5602 (tdesc_add_bitfield): Likewise.
5603 (tdesc_add_field): Likewise.
5604 (tdesc_set_struct_size): Likewise.
5606 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5608 * tdesc.c (~target_desc): Remove implictly deleted items.
5609 (init_target_desc): Iterate all features.
5610 (tdesc_get_features_xml): Use vector.
5611 (tdesc_create_feature): Create feature.
5612 * tdesc.h (tdesc_feature) Remove
5613 (target_desc): Add features.
5615 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5617 * Makefile.in: Add common/tdesc.c
5618 * tdesc.c (init_target_desc): init all reg_defs from register
5620 (tdesc_create_reg): Create tdesc_reg.
5621 * tdesc.h (tdesc_feature): Add register vector.
5623 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5625 * tdesc.h (struct target_desc) <features>: Change type to
5626 std::vector<std::string>.
5627 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5629 (tdesc_get_features_xml): Likewise.
5630 (tdesc_create_feature): Likewise.
5632 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5634 * regcache.c (find_register_by_number): Return a ref.
5635 (find_regno): Use references.
5636 (register_size): Likewise.
5637 (register_data): Likewise.
5638 * tdesc.c (target_desc::~target_desc): Remove free calls.
5639 (target_desc::operator==): Use std::vector compare.
5640 (init_target_desc): Use reference.
5641 (tdesc_create_reg): Use reg constructors.
5642 * tdesc.h (struct target_desc): Replace pointer with object.
5644 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5646 * regcache.c (find_register_by_number): Make static.
5647 (find_regno): Use find_register_by_number
5648 * regcache.h (struct reg): Remove declaration.
5650 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5652 * tdesc.c (target_desc::~target_desc): Move to here.
5653 (target_desc::operator==): Likewise.
5654 * tdesc.h (target_desc::~target_desc): Move from here.
5655 (target_desc::operator==): Likewise.
5657 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5659 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5661 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5663 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5665 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5666 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5667 and init_registers_s390_gs_linux64.
5669 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5671 * linux-s390-low.c (s390_fill_gs): Remove function.
5672 (s390_fill_gsbc): Remove function.
5673 (s390_regsets): Set fill functions for the guarded storage regsets
5676 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5678 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5679 the word size. Add comment.
5680 (s390_get_wordsize): New function.
5681 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5682 pswm with it. Instead, use s390_get_wordsize to determine the
5683 word size first and derive the correct tdesc from that directly.
5685 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5687 * Makefile.in: Include silent-rules.mk.
5688 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5689 (COMPILE): Add ECHO_CXX.
5690 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5691 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5692 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5693 (version-generated.c): Add ECHO_GEN.
5694 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5695 (IPAGENT_COMPILE): Add ECHO_CXX.
5696 (%-generated.c): Add ECHO_REGDAT.
5698 2018-03-14 Tom Tromey <tom@tromey.com>
5701 * ax.c (ax_printf): Special case for NULL.
5703 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5705 * linux-low.c (linux_qxfer_libraries_svr4): Use
5706 xml_escape_text_append.
5708 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5710 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5712 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5714 * server.c (handle_general_set): Remove unnecessary xstrdup.
5716 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5718 * server.c (parse_debug_format_options): Adjust to
5719 delim_string_to_char_ptr_vec changes.
5720 * thread-db.c (thread_db_load_search): Adjust to
5721 dirnames_to_char_ptr_vec changes.
5723 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5725 * target.h (target_enable_btrace, target_disable_btrace)
5726 (target_read_btrace, target_read_btrace_conf): Turn macro into
5727 inline function. Throw error if target method is not defined.
5728 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5729 check for btrace target method. Be prepared to handle exceptions
5730 from btrace target methods.
5732 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5734 * server.c (captured_main): Change order of error message printed
5735 when the current working directory cannot be found.
5737 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5739 * server.c: Include "filenames.h" and "pathstuff.h".
5740 (program_name): Delete variable.
5741 (program_path): New anonymous class.
5742 (get_exec_wrapper): Use "program_path" instead of
5744 (handle_v_run): Likewise.
5745 (captured_main): Likewise.
5746 (process_serial_event): Likewise.
5748 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5750 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5751 (OBJS): Add "pathstuff.o".
5752 * server.c (current_directory): New global variable.
5753 (captured_main): Initialize "current_directory".
5755 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5757 * tdesc.c: Use common/tdesc.h.
5758 * tdesc.h: Likewise.
5760 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5761 Simon Marchi <simon.marchi@ericsson.com>
5763 * Makefile.in: Switch order of make rules.
5765 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5767 * Makefile.in: Add common directory in build.
5768 * configure.ac: Add common reference.
5769 * configure: Regenerate.
5771 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5773 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5774 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5775 * spu-low.c (spu_target_ops): Likewise.
5776 * win32-low.c (win32_target_ops): Likewise.
5777 * server.c (supported_btrace_packets): Report packets unconditionally.
5778 * target.h (target_ops) <supports_btrace>: Remove.
5779 (target_supports_btrace): Remove.
5781 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5783 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5784 (handle_btrace_disable): Change return type to void. Use exceptions
5786 (handle_btrace_general_set): Catch exception and copy message to
5789 2018-02-08 Tom Tromey <tom@tromey.com>
5791 * linux-low.c (install_software_single_step_breakpoints): Use
5792 make_scoped_restore.
5793 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5794 (do_restore_current_thread_cleanup): Remove.
5795 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5798 2018-02-08 Tom Tromey <tom@tromey.com>
5800 * mem-break.c (set_raw_breakpoint_at): Use
5801 gdb::unique_xmalloc_ptr.
5803 2018-01-30 Pedro Alves <palves@redhat.com>
5806 * target.c (target_terminal::terminal_state): Rename to ...
5807 (target_terminal::m_terminal_state): ... this.
5809 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5811 * linux-low.c (handle_extended_wait): Surround call to
5812 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5814 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5816 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5817 linux_ptrace_attach_fail_reason_string now returning an
5819 (linux_attach): Likewise.
5820 * thread-db.c (attach_thread): Likewise.
5822 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5825 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5826 checking for fs_base/gs_base fields in struct user_regs_struct.
5827 * configure: Regenerate.
5829 2018-01-16 Yao Qi <yao.qi@linaro.org>
5832 * linux-low.c (fetch_register): Call supply_register instead of
5835 2018-01-08 Yao Qi <yao.qi@linaro.org>
5836 Simon Marchi <simon.marchi@ericsson.com>
5838 * Makefile.in (OBS): Remove selftest.o.
5839 * configure.ac: Set srv_selftest_objs if $development is true.
5840 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5841 * configure: Re-generated.
5842 * server.c (captured_main): Wrap variable selftest_filter with
5845 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5847 * server.c (parse_debug_format_options): Return std::string.
5848 (handle_monitor_command, captured_main): Adjust.
5850 2018-01-05 Pedro Alves <palves@redhat.com>
5853 * server.c (captured_main): Pass quiet=false to
5854 save_original_signals_state.
5856 2018-01-01 Joel Brobecker <brobecker@adacore.com>
5858 * gdbreplay.c (gdbreplay_version): Update copyright year in
5860 * server.c (gdbserver_version): Likewise.
5862 2017-12-08 Tom Tromey <tom@tromey.com>
5864 * ax.c (ax_printf): Update.
5866 2017-12-07 Yao Qi <yao.qi@linaro.org>
5868 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5869 aarch64_linux_read_description.
5870 * linux-amd64-ipa.c (idx2mask): New array.
5871 (get_ipa_tdesc): Move idx2mask out.
5872 (initialize_low_tracepoint): Initialize target descriptions.
5873 * linux-i386-ipa.c (idx2mask): New array.
5874 (get_ipa_tdesc): Move idx2mask out.
5875 (initialize_low_tracepoint): Initialize target descriptions.
5877 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5879 * tdesc.c (struct tdesc_type): Change return type.
5880 (tdesc_add_flag): Change parameter type.
5881 (tdesc_add_bitfield): Likewise.
5882 (tdesc_add_field): Likewise.
5883 (tdesc_set_struct_size): Likewise.
5885 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5887 * regcache.c (registers_to_string): Remove unused variable.
5889 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5891 * inferiors.c (for_each_inferior_with_data): Remove.
5892 * inferiors.h (for_each_inferior_with_data): Remove.
5893 * server.c (handle_qxfer_threads_worker): Change parameter type.
5894 (handle_qxfer_threads_proper): Use for_each_thread.
5896 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5898 * inferiors.c (for_each_inferior): Remove.
5899 (clear_inferiors): Use for_each_thread.
5900 * inferiors.h (for_each_inferior): Remove.
5901 * linux-low.c (linux_wait_for_event_filtered): Use
5903 (linux_stabilize_threads): Likewise.
5904 * regcache.c (regcache_release): Likewise.
5905 * server.c (gdb_wants_all_threads_stopped): Likewise.
5906 (clear_pending_status_callback): Remove.
5907 (handle_status): Use for_each_thread.
5908 (captured_main): Likewise.
5909 * win32-low.c (child_init_thread_list): Likewise.
5910 (win32_clear_inferiors): Likewise.
5911 (fake_breakpoint_event): Likewise.
5913 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5915 * inferiors.h (find_inferior): Remove.
5916 * inferiors.c (find_inferior): Remove.
5918 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5920 * linux-low.c (resume_status_pending_p): Update comment.
5921 (need_step_over_p): Update comment.
5923 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5925 * linux-low.c (proceed_one_lwp): Return void, change parameter
5927 (unsuspend_and_proceed_one_lwp): Likewise.
5928 (proceed_all_lwps): Use for_each_thread.
5929 (unstop_all_lwps): Likewise.
5931 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5933 * linux-low.c (linux_resume_one_thread): Return void, take
5935 (linux_resume): Use for_each_thread.
5937 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5939 * linux-low.c (send_sigstop_callback): Return void, change
5940 parameter type. Rename to...
5941 (send_sigstop): ... this.
5942 (suspend_and_send_sigstop_callback): Return void, change parameter
5944 (suspend_and_send_sigstop): ... this.
5945 (stop_all_lwps): Use for_each_thread.
5947 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5949 * linux-low.c (lwp_running): Return bool, remove unused
5951 (linux_stabilize_threads): Use find_thread.
5953 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5955 * linux-low.c (select_singlestep_lwp_callback): Remove.
5956 (count_events_callback): Remove.
5957 (select_event_lwp_callback): Remove.
5958 (select_event_lwp): Use find_thread/for_each_thread.
5960 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5962 * linux-low.c (not_stopped_callback): Return bool, take filter
5964 (linux_wait_for_event_filtered): Use find_thread.
5965 (linux_wait_1): Likewise.
5967 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5969 * linux-low.c (same_lwp): Remove.
5970 (find_lwp_pid): Use find_thread.
5972 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5974 * linux-low.c (delete_lwp_callback): Remove.
5975 (linux_mourn): Use for_each_thread.
5977 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5979 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5980 args parameter, don't check for pid.
5981 (linux_detach): Use for_each_thread.
5983 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5985 * linux-low.c (struct counter): Remove.
5986 (second_thread_of_pid_p): Remove.
5987 (last_thread_of_process_p): Use find_thread.
5989 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5991 * inferiors.c (find_inferior_in_random): Remove.
5992 * inferiors.h (find_inferior_in_random): Remove.
5993 * linux-low.c (status_pending_p_callback): Return bool, accept
5994 parameter ptid directly.
5995 (linux_wait_for_event_filtered): Use find_thread_in_random.
5996 (linux_wait_1): Likewise.
5998 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6000 * inferiors.c (find_inferior_id): Remove.
6001 (find_thread_ptid): Move implemention from find_inferior_id to
6003 * inferiors.h (find_inferior_id): Remove.
6004 * server.c (handle_status): Use find_thread_ptid.
6005 (process_serial_event): Likewise.
6006 * thread-db.c (find_one_thread): Likewise.
6007 (thread_db_thread_handle): Likewise.
6008 * win32-low.c (thread_rec): Likewise.
6009 (child_delete_thread): Likewise.
6010 (win32_thread_alive): Likewise.
6011 (get_child_debug_event): Likewise.
6013 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6015 * linux-mips-low.c (update_watch_registers_callback): Return
6016 void, remove pid_p parameter, don't check for pid.
6017 (mips_insert_point, mips_remove_point): Use for_each_thread.
6019 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6021 * lynx.low (lynx_delete_thread_callback): Remove.
6022 (lynx_mourn): Use for_each_thread.
6024 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6026 * regcache.c (regcache_invalidate_one): Remove.
6027 (regcache_invalidate_pid): use for_each_thread.
6029 2017-11-26 Tom Tromey <tom@tromey.com>
6031 * linux-low.c (linux_create_inferior): Update.
6033 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6035 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6037 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6039 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6040 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6041 * linux-aarch64-tdesc-selftest.c: New file.
6042 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6044 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6046 * configure.srv: Add new file.
6047 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6048 * linux-aarch64-tdesc-selftest.c: New file.
6049 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6051 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6053 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6054 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6055 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6057 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6059 * configure.srv: Add new files.
6060 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6061 aarch64_linux_read_description.
6062 * linux-aarch64-low.c (aarch64_linux_read_description):
6063 Merge with aarch64_arch_setup.
6064 (aarch64_arch_setup): Call aarch64_linux_read_description.
6065 * linux-aarch64-tdesc.c: New file.
6066 * linux-aarch64-tdesc.h: New file.
6068 2017-11-24 Yao Qi <yao.qi@linaro.org>
6070 * configure.srv: Set $srv_regobj for tic6x-linux.
6071 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6072 (tic6x_read_description): Move some code to tic6x_arch_setup.
6073 (tic6x_tdesc_test): New function.
6074 (initialize_low_arch): Call selftests::register_test.
6076 2017-11-22 Yao Qi <yao.qi@linaro.org>
6078 * remote-utils.c (prepare_resume_reply): Use memcpy.
6080 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6082 * linux-low.c (kill_one_lwp_callback): Return void, take
6083 argument directly, don't filter on pid.
6084 (linux_kill): Use for_each_thread.
6086 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6088 * linux-low.c (need_step_over_p): Return bool, remove dummy
6090 (linux_resume, proceed_all_lwps): Use find_thread.
6092 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6094 * linux-low.c (resume_status_pending_p): Return bool, remove
6096 (linux_resume): Use find_thread.
6098 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6100 * linux-low.c (struct thread_resume_array): Remove.
6101 (linux_set_resume_request): Return void, take arguments
6103 (linux_resume): Use for_each_thread.
6105 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6107 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6108 return bool, remove data argument.
6109 (linux_stabilize_threads): Use find_thread.
6111 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6113 * linux-low.c (unsuspend_one_lwp): Remove.
6114 (unsuspend_all_lwps): Use for_each_thread, inline code from
6117 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6119 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6120 * linux-low.c (struct iterate_over_lwps_args): Remove.
6121 (iterate_over_lwps_filter): Remove.
6122 (iterate_over_lwps): Use find_thread.
6124 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6126 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6127 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6128 code from reset_lwp_ptrace_options_callback.
6130 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6132 * linux-arm-low.c (struct update_registers_data): Remove.
6133 (update_registers_callback): Return void, take arguments
6134 directly, don't check thread's pid.
6135 (arm_insert_point, arm_remove_point): Use for_each_thread.
6137 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6139 * win32-low.c (continue_one_thread): Return void, take argument
6141 (child_continue): Use for_each_thread.
6143 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6145 * win32-i386-low.c (update_debug_registers_callback): Rename
6147 (update_debug_registers): ... this, return void, remove pid_p arg.
6148 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6150 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6152 * inferiors.h (struct process_info): Add constructor, initialize
6154 <syscalls_to_catch>: Change type to std::vector<int>.
6155 * inferiors.c (add_process): Allocate process_info with new.
6156 (remove_process): Free process_info with delete.
6157 * linux-low.c (handle_extended_wait): Adjust.
6158 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6159 * server.c (handle_general_set): Adjust.
6161 2017-11-16 Pedro Alves <palves@redhat.com>
6163 * remote-utils.c (remote_close): Block SIGIO signals instead of
6164 uninstalling the SIGIO handler.
6166 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6168 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6170 2017-11-16 Yao Qi <yao.qi@linaro.org>
6172 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6173 (tic6x_store_gregset): Likewise.
6174 (tic6x_usrregs_info): Move it up.
6176 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6178 * Makefile.in: Update arch rules.
6179 * configure.srv: Explicitly mark arch/ files.
6181 2017-11-13 Andreas Schwab <schwab@suse.de>
6183 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6185 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6187 2017-11-06 Pedro Alves <palves@redhat.com>
6189 * config.in, configure: Regenerate.
6191 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6193 * target.c (struct thread_search): Remove.
6194 (thread_search_callback): Remove.
6195 (prepare_to_access_memory): Use for_each_thread instead of
6196 find_inferior. Inline code from thread_search_callback.
6198 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6200 * server.c (struct visit_actioned_threads_data): Remove.
6201 (visit_actioned_threads): Change prototype to take arguments
6203 (resume): Use find_thread instead of find_inferior.
6205 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6207 * server.c (queue_stop_reply_callback): Change prototype, return
6209 (find_status_pending_thread_callback): Remove.
6210 (handle_status): Replace find_inferior with find_thread and
6213 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6215 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6217 (aarch64_store_gregset): Likewise.
6218 (aarch64_fill_fpregset): Likewise.
6219 (aarch64_store_fpregset): Likewise.
6221 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6223 * gdbthread.h (find_thread, for_each_thread): New functions.
6224 * inferiors.c (thread_of_pid): Remove.
6225 (find_any_thread_of_pid): Use find_thread.
6226 * linux-low.c (num_lwps): Use for_each_thread.
6228 2017-10-17 Yao Qi <yao.qi@linaro.org>
6230 * Makefile.in: Remove one rule.
6231 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6233 2017-10-17 Yao Qi <yao.qi@linaro.org>
6235 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6236 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6238 2017-10-17 Yao Qi <yao.qi@linaro.org>
6240 * configure.srv: Rename arm.o with arch/arm.o.
6242 2017-10-17 Yao Qi <yao.qi@linaro.org>
6244 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6245 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6246 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6247 (arch-i386.o, arch-amd64.o): Remove rules.
6248 (arch/%.o): New rule.
6249 Update POSTCOMPILE and COMPILE.pre.
6250 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6251 * configure: Re-generated.
6252 * configure.srv: Replace arch-i386.o with arch/i386.o.
6253 Replace arch-amd64.o with arch/amd64.o.
6255 2017-10-16 Yao Qi <yao.qi@linaro.org>
6257 * configure: Regenerated.
6259 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6261 * inferiors.h: (struct inferior_list): Remove.
6262 (struct inferior_list_entry); Remove.
6263 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6264 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6265 get_first_inferior): Remove.
6266 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6267 find_inferior_id, find_inferior_in_random): Change signature.
6268 * inferiors.c (all_threads): Change type to
6269 std::list<thread_info *>.
6270 (get_thread): Remove macro.
6271 (find_inferior, find_inferior_id): Change signature, implement
6273 (find_inferior_in_random): Change signature, implement using
6274 find_thread_in_random.
6275 (for_each_inferior, for_each_inferior_with_data): Change
6276 signature, implement using for_each_thread.
6277 (add_inferior_to_list, remove_inferior): Remove.
6278 (add_thread, get_first_thread, thread_of_pid,
6279 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6280 (get_first_inferior, one_inferior_p, clear_inferior_list):
6282 (clear_inferiors, get_thread_process): Update.
6283 * gdbthread.h: Include <list>.
6284 (struct thread_info) <entry>: Remove field.
6286 (all_threads): Change type to std::list<thread_info *>.
6287 (get_first_inferior): Add doc.
6288 (find_thread, for_each_thread, find_thread_in_random): New
6290 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6291 * linux-arm-low.c (update_registers_callback): Update.
6292 * linux-low.c (second_thread_of_pid_p): Update.
6293 (kill_one_lwp_callback, linux_detach_lwp_callback,
6294 delete_lwp_callback, status_pending_p_callback, same_lwp,
6295 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6296 iterate_over_lwps, not_stopped_callback,
6297 resume_stopped_resumed_lwps, count_events_callback,
6298 select_singlestep_lwp_callback, select_event_lwp_callback,
6299 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6300 suspend_and_send_sigstop_callback, wait_for_sigstop,
6301 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6302 lwp_running, linux_set_resume_request, resume_status_pending_p,
6303 need_step_over_p, start_step_over, linux_resume_one_thread,
6304 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6305 reset_lwp_ptrace_options_callback): Update.
6306 * linux-mips-low.c (update_watch_registers_callback): Update.
6307 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6309 (free_register_cache_thread_one): Remove.
6310 (regcache_release): Update.
6311 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6312 handle_qxfer_threads_worker): Update.
6313 (handle_query): Update, use list iterator.
6314 (visit_actioned_threads, handle_pending_status,
6315 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6316 clear_pending_status_callback, set_pending_status_callback,
6317 find_status_pending_thread_callback, handle_status,
6318 process_serial_event): Update.
6319 * target.c (thread_search_callback): Update.
6320 * thread-db.c (thread_db_get_tls_address): Update.
6321 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6323 * win32-i386-low.c (update_debug_registers_callback): Update.
6324 * win32-low.c (delete_thread_info, child_delete_thread,
6325 continue_one_thread, suspend_one_thread,
6326 get_child_debug_event): Adjust.
6328 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6330 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6331 * inferiors.h: Include <list>.
6332 (struct process_info) <entry>: Remove field.
6334 (pid_of): Change macro to function.
6335 (ptid_of, lwpid_of): Remove macro.
6336 (all_processes): Change type to std::list<process_info *>.
6337 (ALL_PROCESSES): Remove macro.
6338 (for_each_process, find_process): New function.
6339 * inferiors.c (all_processes): Change type to
6340 std::list<process_info *>.
6341 (find_thread_process): Adjust.
6342 (add_process): Likewise.
6343 (remove_process): Likewise.
6344 (find_process_pid): Likewise.
6345 (get_first_process): Likewise.
6346 (started_inferior_callback): Remove.
6347 (have_started_inferiors_p): Adjust.
6348 (attached_inferior_callback): Remove.
6349 (have_attached_inferiors_p): Adjust.
6350 * linux-low.c (check_zombie_leaders): Likewise.
6351 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6352 (x86_linux_update_xmltarget): Adjust.
6353 * server.c (handle_query): Likewise.
6354 (gdb_reattached_process): Remove.
6355 (handle_status): Adjust.
6356 (kill_inferior_callback): Likewise.
6357 (detach_or_kill_inferior): Remove.
6358 (print_started_pid): Likewise.
6359 (print_attached_pid): Likewise.
6360 (detach_or_kill_for_exit): Update.
6361 (process_serial_event): Likewise.
6362 * linux-arm-low.c (arm_new_fork): Likewise.
6364 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6366 * dll.h: Include <list>.
6367 (struct dll_info): Add constructor.
6368 <entry>: Remove field.
6369 (all_dlls): Change type to std::list<dll_info>.
6370 * dll.c: Include <algorithm>.
6371 (get_dll): Remove macro.
6372 (all_dlls): Change type to std::list<dll_info *>.
6373 (free_one_dll): Remove.
6374 (match_dll): Likewise.
6375 (loaded_dll): Adjust.
6376 (unloaded_dll): Adjust to all_dlls type change, use
6377 std::find_if. Inline code from match_dll.
6378 (clear_dlls): Adjust to all_dlls type change.
6379 * server.c (emit_dll_description): Remove.
6380 (handle_qxfer_libraries): Adjust to all_dlls type change,
6381 integrate emit_dll_description's functionality.
6383 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6385 * linux-low.h (struct linux_target_ops) <delete_process>: New
6387 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6388 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6389 (struct linux_target_ops): Add delete_process callback.
6390 * linux-arm-low.c (arm_delete_process): New.
6391 (struct linux_target_ops): Add delete_process callback.
6392 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6393 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6394 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6395 * linux-mips-low.c (mips_linux_delete_process): New.
6396 (struct linux_target_ops): Add delete_process callback.
6397 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6398 * linux-s390-low.c (struct linux_target_ops): Likewise.
6399 * linux-sh-low.c (struct linux_target_ops): Likewise.
6400 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6401 * linux-tile-low.c (struct linux_target_ops): Likewise.
6402 * linux-x86-low.c (x86_linux_delete_process): New.
6403 (struct linux_target_ops): Add delete_process callback.
6404 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6406 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6408 * linux-aarch64-low.c (the_low_target): Add thread delete
6410 * linux-arm-low.c (arm_delete_thread): New function.
6411 (the_low_target): Add thread delete callback.
6412 * linux-bfin-low.c (the_low_target): Likewise.
6413 * linux-crisv32-low.c (the_low_target): Likewise.
6414 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6416 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6418 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6419 * linux-mips-low.c (mips_linux_delete_thread): New function.
6420 (the_low_target): Add thread delete callback.
6421 * linux-ppc-low.c (the_low_target): Likewise.
6422 * linux-s390-low.c (the_low_target): Likewise.
6423 * linux-sh-low.c (the_low_target): Likewise.
6424 * linux-tic6x-low.c (the_low_target): Likewise.
6425 * linux-tile-low.c (the_low_target): Likewise.
6426 * linux-x86-low.c (the_low_target): Likewise.
6427 * linux-xtensa-low.c (the_low_target): Likewise.
6429 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6431 * win32-low.c: Include "common-inferior.h".
6433 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6435 * inferiors.c (set_inferior_cwd): New function.
6436 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6437 (handle_query): Inform that QSetWorkingDir is supported.
6438 * win32-low.c (create_process): Pass the inferior's cwd to
6441 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6443 * inferiors.c (current_inferior_cwd): New global variable.
6444 (get_inferior_cwd): New function.
6445 * inferiors.h (struct process_info) <cwd>: New field.
6447 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6449 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6450 (OBS): Add gdb_tilde_expand.o.
6452 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6454 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6455 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6457 2017-09-29 Pedro Alves <palves@redhat.com>
6459 * ax.c (gdb_parse_agent_expr): Constify.
6460 * ax.h (gdb_parse_agent_expr): Constify.
6461 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6463 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6464 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6465 * remote-utils.h (read_ptid): Constify.
6466 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6467 (process_point_options, process_serial_event): Constify.
6468 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6469 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6470 (cmd_qtbuffer): Constify.
6472 2017-09-29 Pedro Alves <palves@redhat.com>
6474 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6477 2017-09-29 Pedro Alves <palves@redhat.com>
6479 * linux-low.c (handle_extended_wait): Pass parent thread instead
6480 of process to thread_db_notice_clone.
6481 * linux-low.h (thread_db_notice_clone): Replace parent process
6482 parameter with parent thread parameter.
6483 * thread-db.c (find_one_thread): Add comment.
6484 (thread_db_notice_clone): Replace parent process parameter with
6485 parent thread parameter. Temporarily switch to the parent thread.
6487 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6489 * gdbthread.h: Include "common-gdbthread.h".
6490 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6491 "if" when validating the ptid.
6492 * remote-utils.c: Include "gdbthread.h".
6493 (prepare_resume_reply): Use "switch_to_thread".
6494 * target.c (done_accessing_memory): Likewise.
6496 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6498 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6499 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6500 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6501 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6502 s390x-gs-linux64-ipa.o to ipa_obj.
6503 * linux-s390-low.c (HWCAP_S390_GS): New define.
6504 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6506 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6507 (s390_arch_setup): Check for guarded-storage support and choose
6509 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6510 init_registers_s390x_gs_linux64.
6511 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6513 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6514 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6516 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6518 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6520 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6522 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6523 (thread_db_thread_handle): Declare.
6524 * linux-low.c (linux_target_ops): Initialize thread_handle.
6525 * server.c (handle_qxfer_threads_worker): Add support for
6527 * target.h (struct target_ops): Add new function pointer,
6529 (target_thread_handle): Define.
6530 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6532 (thread_db_thread_handle): New function.
6534 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6536 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6537 * linux-low.h (thread_db_notice_clone): Declare.
6538 * thread-db.c (thread_db_notice_clone): New function.
6540 2017-09-21 Pedro Alves <palves@redhat.com>
6542 * server.c (gdb_read_memory, handle_status, process_serial_event)
6543 (handle_serial_event, handle_target_event): Adjust to
6544 set_desired_thread prototype change.
6545 * target.c (set_desired_thread): Remove 'use_general' parameter
6547 * target.h (set_desired_thread): Remove 'use_general' parameter.
6549 2017-09-20 Tom Tromey <tom@tromey.com>
6551 * target.c (target_terminal::terminal_state): Define.
6552 (target_terminal::init): Rename from target_terminal_init.
6553 (target_terminal::inferior): Rename from
6554 target_terminal_inferior.
6555 (target_terminal::ours): Rename from target_terminal_ours.
6556 (target_terminal::ours_for_output, target_terminal::info): New.
6558 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6560 * server.c (accumulate_file_name_length): Remove.
6561 (emit_dll_description): Adjust to std::string change.
6562 (handle_qxfer_libraries): Use std::string to hold document.
6564 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6566 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6567 return type of xml_escape_text.
6568 * server.c (emit_dll_description): Likewise.
6570 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6572 * server.c (captured_main): Accept argument for --selftest.
6573 Update run_tests call.
6574 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6575 when registering selftests.
6577 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6579 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6580 instead of "VEC" for "target_desc.reg_defs".
6581 (regcache_cpy): Likewise.
6582 (registers_to_string): Likewise.
6583 (registers_from_string): Likewise.
6584 (find_regno): Likewise.
6585 (supply_regblock): Likewise.
6586 (regcache_raw_read_unsigned): Likewise.
6587 * tdesc.c (init_target_desc): Likewise.
6588 (tdesc_create_reg): Likewise.
6589 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6590 (struct target_desc) <reg_defs>: Convert to "std::vector".
6591 (target_desc): Do not initialize "reg_defs".
6592 (~target_desc): Update code to use "std::vector" instead of "VEC"
6593 for "target_desc.reg_defs".
6594 (operator==): Likewise.
6596 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6598 * inferiors.h (thread_to_gdb_id): Remove.
6599 * inferiors.c (thread_to_gdb_id): Remove.
6600 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6601 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6602 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6604 * nto-low.c (nto_fetch_registers, nto_store_registers,
6605 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6607 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6609 * inferiors.h (gdb_id_to_thread_id): Remove.
6610 * inferiors.c (gdb_id_to_thread_id): Remove.
6611 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6612 removal. Move pid declaration closer to where it's used.
6614 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6616 * server.c (handle_detach): New function.
6617 (process_serial_event): Move code out, call handle_detach.
6619 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6621 * server.c (require_running): Rename to ...
6622 (require_running_or_return): ... this ...
6623 (require_running_or_break): ... and this.
6624 (handle_query, process_serial_event): Adjust.
6626 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6628 * linux-low.c (linux_set_resume_request): Remove unused
6631 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6633 * server.c (first_thread_of): Remove.
6634 (process_serial_event): Replace usage of first_thread_of with
6635 find_any_thread_of_pid.
6636 * tracepoint.c (same_process_p): Remove.
6637 (gdb_agent_about_to_close): Replace usage of same_process_p with
6638 find_any_thread_of_pid.
6639 * linux-x86-low.c (same_process_callback): Remove.
6640 (x86_arch_setup_process_callback): Replace usage of
6641 same_process_callback with find_any_thread_of_pid.
6642 * thread-db.c (any_thread_of): Remove.
6643 (switch_to_process): Replace usage of any_thread_of with
6644 find_any_thread_of_pid.
6645 * inferiors.c (thread_pid_matches_callback): Remove.
6646 (find_thread_process): Adjust to use find_any_thread_of_pid.
6648 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6650 * regcache.c (get_thread_regcache): Guard calls to "memset"
6653 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6655 * linux-low.c (handle_extended_wait): Use
6656 "allocate_target_description" instead of "XNEW".
6657 * linux-x86-low.c (initialize_low_arch): Likewise.
6659 2017-09-05 Yao Qi <yao.qi@linaro.org>
6661 * configure.srv (srv_i386_regobj): Remove.
6662 (srv_amd64_regobj): Remove.
6663 (srv_regobj): Set it to "" for x86 non-linux targets.
6664 * linux-x86-tdesc.c (i386_linux_read_description):
6665 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6666 (init_registers_i386): Remove the declaration.
6667 (tdesc_i386): Remove the declaration.
6668 (lynx_i386_arch_setup): Call i386_create_target_description.
6669 * nto-x86-low.c: Likewise.
6670 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6671 [!__x86_64__]: include arch/i386.h.
6672 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6674 2017-09-05 Yao Qi <yao.qi@linaro.org>
6676 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6677 i386/amd64-XXX-linux from it.
6679 2017-09-05 Yao Qi <yao.qi@linaro.org>
6681 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6683 (ipa_amd64_linux_regobj): Remove.
6684 (ipa_x32_linux_regobj): Remove.
6686 2017-09-05 Yao Qi <yao.qi@linaro.org>
6688 * Makefile.in (arch-amd64.o): New rule.
6689 * configure.srv: Append arch-amd64.o.
6690 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6691 (get_ipa_tdesc): Call amd64_linux_read_description.
6692 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6693 and init_registers_amd64_XXX.
6694 * linux-x86-low.c (x86_linux_read_description): Call
6695 amd64_linux_read_description.
6696 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6697 (initialize_low_arch): Don't call init_registers_x32_XXX and
6698 init_registers_amd64_XXX.
6699 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6700 and tdesc_amd64_XXX.
6701 [__x86_64__] (amd64_tdesc_test): New function.
6702 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6703 and init_registers_amd64_XXX.
6704 * linux-x86-tdesc.c: Include arch/amd64.h.
6705 (xcr0_to_tdesc_idx): New function.
6706 (i386_linux_read_description): New function.
6707 (amd64_get_ipa_tdesc_idx): New function.
6708 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6709 (amd64_get_ipa_tdesc): Declare.
6711 2017-09-05 Yao Qi <yao.qi@linaro.org>
6713 * configure.srv (srv_i386_linux_xmlfiles): Remove
6714 i386/i386-XXX-linux.xml from it.
6716 2017-09-05 Yao Qi <yao.qi@linaro.org>
6718 * configure.srv: Set srv_i386_linux_regobj empty if $development
6720 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6721 initialize_low_tdesc.
6722 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6723 with #if initialize_low_tdesc.
6724 * linux-x86-tdesc-selftest.c: New file.
6725 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6727 2017-09-05 Yao Qi <yao.qi@linaro.org>
6729 * Makefile.in (arch-i386.o): New rule.
6730 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6731 (x86_64-*-linux*): Likewise.
6732 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6733 include arch/i386.h.
6734 (i386_linux_read_description): Remove code and call
6735 i386_create_target_description.
6736 * tdesc.c (allocate_target_description): New function.
6737 * tdesc.h (set_tdesc_architecture): Remove declaration.
6738 (set_tdesc_osabi): Likewise.
6740 2017-09-05 Yao Qi <yao.qi@linaro.org>
6742 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6743 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6744 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6746 * server.c (get_features_xml): Call tdesc_get_features_xml.
6747 * tdesc.c (set_tdesc_architecture): New function.
6748 (set_tdesc_osabi): New function.
6749 (tdesc_get_features_xml): New function.
6750 (tdesc_create_feature): Add an argument.
6751 * tdesc.h (struct target_desc) <features>: New field.
6752 <arch, osabi>: New field.
6753 (~target_desc): xfree features, arch, and osabi.
6754 (target_desc::oerator==): Don't compare .xmltarget.
6755 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6756 (set_tdesc_osabi): Likewise.
6757 (tdesc_get_features_xml): Likewise.
6759 2017-09-05 Yao Qi <yao.qi@linaro.org>
6761 * linux-x86-tdesc.c: Include selftest.h.
6762 (i386_tdesc_test): New function.
6763 (initialize_low_tdesc): Call selftests::register_test.
6764 * tdesc.h: Include regdef.h.
6765 (target_desc): Override operator == and !=.
6767 2017-09-05 Yao Qi <yao.qi@linaro.org>
6769 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6770 (ipa_obj): Likewise.
6771 * linux-i386-ipa.c: Include common/x86-xstate.h
6772 (get_ipa_tdesc): Call i386_linux_read_description.
6773 (initialize_low_tracepoint): Don't call init_registers_XXX
6774 functions, call initialize_low_tdesc instead.
6775 * linux-x86-low.c (x86_linux_read_description): Call
6776 i386_linux_read_description.
6777 (initialize_low_arch): Don't call init_registers_i386_XXX
6778 functions, call initialize_low_tdesc.
6779 * linux-x86-tdesc.c: New file.
6780 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6781 (i386_get_ipa_tdesc_idx): Declare.
6782 (i386_get_ipa_tdesc): Declare.
6783 (initialize_low_tdesc): Declare.
6785 2017-09-05 Yao Qi <yao.qi@linaro.org>
6787 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6790 2017-09-05 Yao Qi <yao.qi@linaro.org>
6792 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6793 * regcache.c (get_thread_regcache): Use VEC_length.
6794 (init_register_cache): Likewise.
6795 (regcache_cpy): Likewise.
6796 (registers_to_string): Iterate reg_defs via VEC_iterate.
6797 (find_regno): Likewise.
6798 (find_register_by_number): Use VEC_index.
6799 (register_size): Call find_register_by_number.
6800 (register_data): Call find_register_by_number.
6801 (supply_regblock): Use VEC_length.
6802 (regcache_raw_read_unsigned): Likewise.
6803 * tdesc.c (init_target_desc): Iterate reg_defs via
6805 (default_description): Update initializer.
6806 (copy_target_description): Don't update field num_registers.
6807 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6808 <num_registers>: Remove.
6810 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6812 * Makefile.in (.SECONDARY): Define target.
6814 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6816 * linux-low.c (linux_wait_1): Adjust.
6817 * server.c (queue_stop_reply_callback): Adjust.
6819 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6821 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6822 QEnvironmentUnset and QEnvironmentReset packets.
6823 (handle_query): Inform remote that QEnvironmentHexEncoded,
6824 QEnvironmentUnset and QEnvironmentReset are supported.
6826 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6828 * inferiors.h (inferior_target_data): Rename to ...
6829 (thread_target_data): ... this.
6830 (inferior_regcache_data): Rename to ...
6831 (thread_regcache_data): ... this.
6832 (set_inferior_regcache_data): Rename to ...
6833 (set_thread_regcache_data): ... this.
6834 * inferiors.c (inferior_target_data): Rename to ...
6835 (thread_target_data): ... this.
6836 (inferior_regcache_data): Rename to ...
6837 (thread_regcache_data): ... this.
6838 (set_inferior_regcache_data): Rename to ...
6839 (set_thread_regcache_data): ... this.
6840 (free_one_thread): Update.
6841 * linux-low.h (get_thread_lwp): Update.
6842 * regcache.c (get_thread_regcache): Update.
6843 (regcache_invalidate_thread): Update.
6844 (free_register_cache_thread): Update.
6845 * win32-i386-low.c (update_debug_registers_callback): Update.
6846 (win32_get_current_dr): Update.
6847 * win32-low.c (thread_rec): Update.
6848 (delete_thread_info): Update.
6849 (continue_one_thread): Update.
6850 (suspend_one_thread): Update.
6852 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6854 * inferiors.c (set_inferior_target_data): Remove.
6855 * inferiors.h (set_inferior_target_data): Remove.
6857 2017-08-18 Yao Qi <yao.qi@linaro.org>
6859 * Makefile.in (OBS): Add selftest.o.
6860 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6861 * configure, config.in: Re-generated.
6862 * server.c: Include common/sefltest.h.
6863 (captured_main): Handle option --selftest.
6865 2017-08-09 Yao Qi <yao.qi@linaro.org>
6867 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6868 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6869 i386-avx-mpx.o and i386-mmx.o.
6870 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6871 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6872 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6873 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6874 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6875 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6876 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6877 i386/amd64-avx-mpx.xml.
6879 2017-08-09 Yao Qi <yao.qi@linaro.org>
6881 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6882 and x32-avx-avx512.o.
6883 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6884 i386/x32-avx-avx512.xml.
6886 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6888 * tracepoint.h (enum class fast_tpoint_collect_result): New
6890 (fast_tracepoint_collecting): Change return type to
6891 fast_tpoint_collect_result.
6892 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6893 * linux-low.h: Include tracepoint.h.
6894 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6895 fast_tpoint_collect_result.
6896 * linux-low.c (handle_tracepoints): Adjust.
6897 (linux_fast_tracepoint_collecting): Change return type to
6898 fast_tpoint_collect_result.
6899 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6900 linux_wait_1, stuck_in_jump_pad_callback,
6901 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6902 proceed_one_lwp): Adjust to type change.
6904 2017-07-10 Yao Qi <yao.qi@linaro.org>
6906 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6908 2017-06-29 Yao Qi <yao.qi@linaro.org>
6910 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6912 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6914 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6916 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6918 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6920 * linux-low.c (linux_create_inferior): Adjust code to access the
6921 environment information via 'gdb_environ' class.
6922 * lynx-low.c (lynx_create_inferior): Likewise.
6923 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6924 (get_environ): Return a pointer to 'our_environ'.
6925 (captured_main): Initialize 'our_environ'.
6926 * server.h (get_environ): Adjust prototype.
6927 * spu-low.c (spu_create_inferior): Adjust code to access the
6928 environment information via 'gdb_environ' class.
6930 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6932 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6933 usage of "register" keyword.
6935 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6937 * configure: Re-generate.
6939 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6941 * configure: Re-generate.
6943 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6945 * Makefile.in (COMPILE.pre): Add "-x c++".
6947 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6949 * fork-child.c: Conditionally include <signal.h>.
6951 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6953 * server.c (handle_general_set): Handle new packet
6954 "QStartupWithShell".
6955 (handle_query): Add "QStartupWithShell" to the list of supported
6957 (gdbserver_usage): Add help text explaining the
6958 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6960 (captured_main): Recognize and act upon the presence of the new
6963 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6964 Pedro Alves <palves@redhat.com>
6966 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6967 * configure: Regenerate.
6968 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6970 (i[34567]86-*-lynxos*): Likewise.
6971 (spu*-*-*): Likewise.
6972 * fork-child.c: New file.
6973 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6975 (linux_ptrace_fun): New function.
6976 (linux_create_inferior): Adjust function prototype to reflect
6977 change on "target.h". Adjust function code to use
6979 (linux_request_interrupt): Delete "signal_pid".
6980 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6981 (lynx_ptrace_fun): New function.
6982 (lynx_create_inferior): Adjust function prototype to reflect
6983 change on "target.h". Adjust function code to use
6985 * nto-low.c (nto_create_inferior): Adjust function prototype and
6986 code to reflect change on "target.h". Update comments.
6987 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
6988 "common-terminal.h" and "environ.h".
6989 (terminal_fd): Moved to fork-child.c.
6990 (old_foreground_pgrp): Likewise.
6991 (restore_old_foreground_pgrp): Likewise.
6992 (last_status): Make it global.
6993 (last_ptid): Likewise.
6994 (our_environ): New variable.
6995 (startup_with_shell): Likewise.
6996 (program_name): Likewise.
6997 (program_argv): Rename to...
6998 (program_args): ...this.
6999 (wrapper_argv): New variable.
7000 (start_inferior): Delete function.
7001 (get_exec_wrapper): New function.
7002 (get_exec_file): Likewise.
7003 (get_environ): Likewise.
7004 (prefork_hook): Likewise.
7005 (post_fork_inferior): Likewise.
7006 (postfork_hook): Likewise.
7007 (postfork_child_hook): Likewise.
7008 (handle_v_run): Update code to deal with arguments coming from the
7009 remote host. Update calls from "start_inferior" to
7011 (captured_main): Likewise. Initialize environment variable. Call
7013 * server.h (post_fork_inferior): New prototype.
7014 (get_environ): Likewise.
7015 (last_status): Declare.
7016 (last_ptid): Likewise.
7017 (signal_pid): Likewise.
7018 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7019 (spu_ptrace_fun): New function.
7020 (spu_create_inferior): Adjust function prototype to reflect change
7021 on "target.h". Adjust function code to use "fork_inferior".
7022 * target.c (target_terminal_init): New function.
7023 (target_terminal_inferior): Likewise.
7024 (target_terminal_ours): Likewise.
7025 * target.h: Include <vector>.
7026 (struct target_ops) <create_inferior>: Update prototype.
7027 (create_inferior): Update macro.
7028 * utils.c (gdb_flush_out_err): New function.
7029 * win32-low.c (win32_create_inferior): Adjust function prototype
7030 and code to reflect change on "target.h".
7032 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7034 * inferiors.c (switch_to_thread): New function.
7036 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7038 * Makefile.in (SFILE): Add "common/job-control.c".
7039 (OBS): Add "job-control.o".
7041 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7043 * Makefile: Remove "@host_makefile_frag@".
7045 2017-05-05 Pedro Alves <palves@redhat.com>
7047 * configure: Regenerate.
7049 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7051 * configure: Regenerate.
7053 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7055 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7056 software_single_step change of return type to
7057 std::vector<CORE_ADDR>.
7058 * linux-low.c (install_software_single_step_breakpoints):
7060 * linux-low.h (install_software_single_step_breakpoints):
7063 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7065 * remote-utils.c: Include "gdb_termios.h" instead of
7067 * terminal.h: Delete file.
7069 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7071 * server.c: Include <vector>.
7072 <program_argv, wrapper_argv>: Convert to std::vector.
7073 (start_inferior): Rewrite function to use C++.
7074 (handle_v_run): Likewise. Update code that calculates the argv
7075 based on the vRun packet; use C++.
7076 (captured_main): Likewise.
7078 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7080 * server.c (handle_v_cont): Initialize thread_resume::thread
7083 2017-04-05 Pedro Alves <palves@redhat.com>
7085 * configure: Regenerate.
7087 2017-04-05 Pedro Alves <palves@redhat.com>
7089 * gdbreplay.c (sync_error): Constify.
7090 * linux-x86-low.c (push_opcode): Constify.
7092 2017-04-05 Pedro Alves <palves@redhat.com>
7094 * win32-low.c (get_child_debug_event)
7095 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7096 Report TARGET_WAITKIND_SPURIOUS instead.
7098 2017-04-05 Pedro Alves <palves@redhat.com>
7100 * remote-utils.c (remote_prepare, remote_open): Constify.
7101 * remote-utils.h (remote_prepare, remote_open): Constify.
7102 * server.c (captured_main): Constify 'port' handling.
7104 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7106 * Makefile.in (clean): Clear .deps.
7108 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7110 * .gitignore: Remove generated files, replace with wildcard.
7111 * (clean): Replace removal of generated files with wildcard.
7112 (version.c): Replace with...
7113 (version-generated.c): ...this.
7114 (xml-builtin.c): Replace with...
7115 (xml-builtin-generated.c): ...this.
7116 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7117 (%.c: *regformats*): Replace with...
7118 (%-generated.c: *regformats*): ...this.
7120 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7122 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7123 (xtensa_fill_gregset): Call collect_register_by_name for
7125 (xtensa_store_gregset): Call supply_register_by_name for
7128 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7130 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7131 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7132 (xtensa_store_gregset): Call supply_register for all registers in
7133 a0_regnum..a0_regnum + C0_NREGS range.
7135 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7137 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7138 (ax-ipa.o: ax.c): Remove.
7139 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7140 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7141 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7142 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7143 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7145 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7147 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7148 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7149 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7150 (errors-ipa.o: ../common/errors.c): Remove.
7151 (format-ipa.o: ../common/format.c): Remove.
7152 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7154 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7156 * Makefile.in (%-ipa.o: %.c): New rule.
7157 (tracepoint-ipa.o: tracepoint.c): Remove.
7158 (utils-ipa.o: utils.c): Remove.
7159 (remote-utils-ipa.o: remote-utils.c): Remove.
7160 (regcache-ipa.o: regcache.c): Remove.
7161 (i386-linux-ipa.o: i386-linux.c): Remove.
7162 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7163 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7164 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7165 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7166 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7167 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7168 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7169 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7170 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7171 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7172 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7173 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7174 (aarch64-ipa.o: aarch64.c): Remove.
7175 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7176 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7177 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7178 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7179 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7180 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7181 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7182 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7183 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7184 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7185 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7186 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7187 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7188 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7189 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7190 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7191 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7192 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7193 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7194 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7195 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7196 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7197 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7198 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7199 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7200 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7201 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7202 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7203 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7204 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7205 (tdesc-ipa.o: tdesc.c): Remove.
7206 (x32-linux-ipa.o: x32-linux.c): Remove.
7207 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7208 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7210 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7212 * Makefile.in (%.o: ../arch/%.c): New rule.
7213 (arm.o: ../arch/arm.c): Remove.
7214 (arm-linux.o: ../arch/arm-linux.c): Remove.
7215 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7216 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7218 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7220 * Makefile.in (%.o: ../nat/%.c): New rule.
7221 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7222 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7223 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7224 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7225 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7226 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7227 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7228 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7229 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7230 (linux-personality.o: ../nat/linux-personality.c): Remove.
7231 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7232 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7233 (x86-linux.o: ../nat/x86-linux.c): Remove.
7234 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7235 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7237 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7239 * Makefile.in (%.o: ../common/%.c): New rule.
7240 (signals.o: ../common/signals.c): Remove.
7241 (print-utils.o: ../common/print-utils.c): Remove.
7242 (rsp-low.o: ../common/rsp-low.c): Remove.
7243 (common-utils.o: ../common/common-utils.c): Remove.
7244 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7245 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7246 (vec.o: ../common/vec.c): Remove.
7247 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7248 (xml-utils.o: ../common/xml-utils.c): Remove.
7249 (ptid.o: ../common/ptid.c): Remove.
7250 (buffer.o: ../common/buffer.c): Remove.
7251 (format.o: ../common/format.c): Remove.
7252 (filestuff.o: ../common/filestuff.c): Remove.
7253 (agent.o: ../common/agent.c): Remove.
7254 (errors.o: ../common/errors.c): Remove.
7255 (environ.o: ../common/environ.c): Remove.
7256 (common-debug.o: ../common/common-debug.c): Remove.
7257 (cleanups.o: ../common/cleanups.c): Remove.
7258 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7259 (fileio.o: ../common/fileio.c): Remove.
7260 (common-regcache.o: ../common/common-regcache.c): Remove.
7261 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7262 (new-op.o: ../common/new-op.c): Remove.
7263 (btrace-common.o: ../common/btrace-common.c): Remove.
7265 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7267 * Makefile.in (%.o: ../target/%.c): New rule.
7268 (waitstatus.o: ../target/waitstatus.c): Remove.
7270 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7273 (%.c: ../regformats/%.dat,
7274 (%.c: ../regformats/arm/%.dat,
7275 (%.c: ../regformats/i386/%.dat,
7276 (%.c: ../regformats/rs6000/%.dat): New rules.
7277 (aarch64.c): Remove.
7278 (reg-arm.c): Remove.
7279 (arm-with-iwmmxt.c): Remove.
7280 (arm-with-vfpv2.c): Remove.
7281 (arm-with-vfpv3.c): Remove.
7282 (arm-with-neon.c): Remove.
7283 (reg-bfin.c): Remove.
7284 (reg-cris.c): Remove.
7285 (reg-crisv32.c): Remove.
7287 (i386-linux.c): Remove.
7288 (i386-avx.c): Remove.
7289 (i386-avx-linux.c): Remove.
7290 (i386-avx-avx512.c): Remove.
7291 (i386-avx-avx512-linux.c): Remove.
7292 (i386-mpx.c): Remove.
7293 (i386-mpx-linux.c): Remove.
7294 (i386-avx-mpx-avx512-pku.c): Remove.
7295 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7296 (i386-avx-mpx.c): Remove.
7297 (i386-avx-mpx-linux.c): Remove.
7298 (i386-mmx.c): Remove.
7299 (i386-mmx-linux.c): Remove.
7300 (reg-ia64.c): Remove.
7301 (reg-m32r.c): Remove.
7302 (reg-m68k.c): Remove.
7304 (mips-linux.c): Remove.
7305 (mips-dsp-linux.c): Remove.
7306 (mips64-linux.c): Remove.
7307 (mips64-dsp-linux.c): Remove.
7308 (nios2-linux.c): Remove.
7309 (powerpc-32.c): Remove.
7310 (powerpc-32l.c): Remove.
7311 (powerpc-altivec32l.c): Remove.
7312 (powerpc-cell32l.c): Remove.
7313 (powerpc-vsx32l.c): Remove.
7314 (powerpc-isa205-32l.c): Remove.
7315 (powerpc-isa205-altivec32l.c): Remove.
7316 (powerpc-isa205-vsx32l.c): Remove.
7317 (powerpc-e500l.c): Remove.
7318 (powerpc-64l.c): Remove.
7319 (powerpc-altivec64l.c): Remove.
7320 (powerpc-cell64l.c): Remove.
7321 (powerpc-vsx64l.c): Remove.
7322 (powerpc-isa205-64l.c): Remove.
7323 (powerpc-isa205-altivec64l.c): Remove.
7324 (powerpc-isa205-vsx64l.c): Remove.
7325 (s390-linux32.c): Remove.
7326 (s390-linux32v1.c): Remove.
7327 (s390-linux32v2.c): Remove.
7328 (s390-linux64.c): Remove.
7329 (s390-linux64v1.c): Remove.
7330 (s390-linux64v2.c): Remove.
7331 (s390-te-linux64.c): Remove.
7332 (s390-vx-linux64.c): Remove.
7333 (s390-tevx-linux64.c): Remove.
7334 (s390x-linux64.c): Remove.
7335 (s390x-linux64v1.c): Remove.
7336 (s390x-linux64v2.c): Remove.
7337 (s390x-te-linux64.c): Remove.
7338 (s390x-vx-linux64.c): Remove.
7339 (s390x-tevx-linux64.c): Remove.
7340 (tic6x-c64xp-linux.c): Remove.
7341 (tic6x-c64x-linux.c): Remove.
7342 (tic6x-c62x-linux.c): Remove.
7344 (reg-sparc64.c): Remove.
7345 (reg-spu.c): Remove.
7347 (amd64-linux.c): Remove.
7348 (amd64-avx.c): Remove.
7349 (amd64-avx-linux.c): Remove.
7350 (amd64-avx-avx512.c): Remove.
7351 (amd64-avx-avx512-linux.c): Remove.
7352 (amd64-mpx.c): Remove.
7353 (amd64-mpx-linux.c): Remove.
7354 (amd64-avx-mpx-avx512-pku.c): Remove.
7355 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7356 (amd64-avx-mpx.c): Remove.
7357 (amd64-avx-mpx-linux.c): Remove.
7359 (x32-linux.c): Remove.
7360 (x32-avx.c): Remove.
7361 (x32-avx-linux.c): Remove.
7362 (x32-avx-avx512.c): Remove.
7363 (x32-avx-avx512-linux.c): Remove.
7364 (reg-xtensa.c): Remove.
7365 (reg-tilegx.c): Remove.
7366 (reg-tilegx32.c): Remove.
7368 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7370 * Makefile.in (SFILES): Add "common/environ.c".
7371 (OBJS): Add "common/environ.h".
7373 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7375 * configure.ac: Check if the fs_base and gs_base members of
7376 `struct user_regs_struct' exist.
7377 * config.in: Regenerated.
7378 * configure: Likewise.
7380 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7382 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7384 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7385 (get_next_pcs_syscall_next_pc): Likewise.
7387 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7389 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7390 * nto-x86-low.c: Likewise.
7392 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7394 * Makefile.in: Include disable-implicit-rules.mk.
7396 2016-11-23 Pedro Alves <palves@redhat.com>
7398 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7399 (debug_vprintf): Use std::chrono::steady_clock instead of
7400 gettimeofday. Use '.' instead of ':'.
7401 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7402 (get_timestamp): Use std::chrono::steady_clock instead of
7405 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7407 * Makefile.in: Fix whitespace formatting.
7409 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7411 * Makefile.in (SFILES, OBS): Flatten list and order
7414 2016-11-23 Pedro Alves <palves@redhat.com>
7416 * event-loop.c (handle_file_event): Use warning.
7417 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7418 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7421 2016-11-23 Pedro Alves <palves@redhat.com>
7423 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7425 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7426 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7427 debug_printf and debug_flush for debug output.
7428 * server.c (handle_general_set): Likewise.
7429 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7432 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7434 * Makefile.in (.c.o): Replace rule with ...
7435 (%.o: %.c): ... this one.
7437 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7439 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7440 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7442 * configure.ac: Remove checks for the make program.
7443 * configure: Re-generate.
7445 2016-10-28 Pedro Alves <palves@redhat.com>
7447 * Makefile.in (CXX_DIALECT): Get from configure.
7448 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7449 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7450 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7451 * config.in: Regenerate.
7452 * configure: Regenerate.
7454 2016-10-27 Yao Qi <yao.qi@linaro.org>
7456 * linux-low.c (linux_supports_range_stepping): Return true if
7457 can_software_single_step return true.
7459 2016-10-27 Yao Qi <yao.qi@linaro.org>
7461 * inferiors.c (find_inferior_in_random): New function.
7462 * inferiors.h (find_inferior_in_random): Declare.
7463 * linux-low.c (linux_wait_for_event_filtered): Call
7464 find_inferior_in_random instead of find_inferior.
7466 2016-10-27 Yao Qi <yao.qi@linaro.org>
7468 * linux-low.c (linux_wait_1): If single-step breakpoints are
7469 inserted, remove them.
7471 2016-10-26 Pedro Alves <palves@redhat.com>
7473 * linux-low.c (handle_extended_wait): Link parent/child fork
7475 (linux_wait_1): Unlink them.
7476 (linux_set_resume_request): Ignore resume requests for
7477 already-resumed and unhandled fork child threads.
7478 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7479 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7481 (handle_v_requests) <vCont>: Don't call require_running.
7482 * server.h (in_queued_stop_replies): New declaration.
7484 2016-10-24 Yao Qi <yao.qi@linaro.org>
7487 * linux-aarch64-low.c (append_insns): Cast the return value to
7490 2016-10-10 Yao Qi <yao.qi@linaro.org>
7492 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7494 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7496 * target.c (target_supports_multi_process): New function, moved
7498 * target.h (target_supports_multi_process): ... here. Remove
7501 2016-10-05 Tom Tromey <tom@tromey.com>
7504 * tracepoint.c (handle_tracepoint_bkpts): Check
7505 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7507 2016-10-05 Yao Qi <yao.qi@linaro.org>
7509 * configure.srv: Update the path of arm-*.xml files.
7511 2016-10-05 Terry Guo <terry.guo@arm.com>
7512 Yao Qi <yao.qi@linaro.org>
7514 * Makefile.in: Adjust the path of rules.
7515 * configure.srv: Update the path of xml files.
7516 * regformats/arm-with-iwmmxt.dat: Regenerated.
7517 * regformats/arm-with-neon.dat: Likewise.
7518 * regformats/arm-with-vfpv2.dat: Likewise.
7519 * regformats/arm-with-vfpv3.dat Likewise.
7521 2016-09-30 Yao Qi <yao.qi@linaro.org>
7524 * target.c (target_stop_and_wait): Don't call
7525 target_continue_no_signal, use resume_stop instead.
7527 2016-09-26 Yao Qi <yao.qi@linaro.org>
7529 * linux-low.c (linux_wait_1): Call debug_exit.
7531 2016-09-23 Pedro Alves <palves@redhat.com>
7533 * Makefile.in (SFILES): Add common/new-op.c.
7534 (OBS): Add common/new-op.o.
7535 (new-op.o): New rule.
7537 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7539 * .gitinore: Ignore more files.
7541 2016-09-21 Yao Qi <yao.qi@linaro.org>
7543 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7546 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7548 * server.c (start_inferior): Call target_mourn_inferior instead of
7549 mourn_inferior; pass ptid_t argument to it.
7551 (handle_target_event): Likewise.
7552 * target.c (target_mourn_inferior): New function.
7553 * target.h (mourn_inferior): Delete macro.
7555 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7557 * linux-low.c (lwp_is_stepping): New function.
7559 2016-09-06 Carl Love <cel@us.ibm.com>
7561 * server.c (start_inferior): Fixed comment, requested comment change
7562 didn't get updated correctly. Removed reference to ptrace () call as
7563 it is only true on Linux systems.
7565 2016-09-06 Carl Love <cel@us.ibm.com>
7567 * server.c (start_inferior): Do not call
7568 function target_post_create_inferior () if the
7569 inferior process has already exited.
7571 2016-09-05 Pedro Alves <palves@redhat.com>
7573 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7574 (COMPILE.pre, CC_LD): Use CXX directly.
7575 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7576 * acinclude.m4: Don't include build-with-cxx.m4.
7577 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7578 * configure: Regenerate.
7580 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7583 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7584 call writing data to own_buf.
7586 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7588 * target.c (mywait): Call target_wait instead of
7590 (target_wait): New function.
7592 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7594 * server.c (start_inferior): New variable 'ptid'. Replace calls
7595 to the_target->resume by target_continue{,_no_signal}, depending
7597 * target.c (target_stop_and_wait): Call target_continue_no_signal
7598 instead of the_target->resume.
7599 (target_continue): New function.
7601 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7603 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7605 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7608 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7610 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7611 * linux-arm-low.c (ps_get_thread_area): Likewise.
7612 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7613 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7614 * linux-mips-low.c (ps_get_thread_area): Likewise.
7615 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7616 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7617 * linux-x86-low.c (ps_get_thread_area): Likewise.
7618 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7620 2016-08-19 Pedro Alves <palves@redhat.com>
7622 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7624 2016-08-19 Pedro Alves <palves@redhat.com>
7626 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7627 comment. Use memcpy instead of casting through unsigned long.
7629 2016-08-19 Pedro Alves <palves@redhat.com>
7631 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7632 allocating around 0x80000000.
7634 2016-08-19 Pedro Alves <palves@redhat.com>
7637 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7638 (x32-avx512-linux-ipa.o): New rules.
7639 * configure.ac (x86_64-*-linux*): New x32 check.
7640 * configure.srv (ipa_x32_linux_regobj): New.
7641 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7642 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7644 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7646 * configure: Regenerate.
7648 2016-08-09 Pedro Alves <palves@redhat.com>
7651 * Makefile.in (OBS): Add signals-state-save-restore.o.
7652 (signals-state-save-restore.o): New rule.
7653 * config.in: Regenerate.
7654 * configure: Regenerate.
7655 * linux-low.c: Include "signals-state-save-restore.h".
7656 (linux_create_inferior): Call
7657 restore_original_signals_state.
7658 * server.c: Include "dispositions-save-restore.h".
7659 (captured_main): Call save_original_signals_state.
7661 2016-08-05 Pedro Alves <palves@redhat.com>
7663 * configure: Regenerate.
7665 2016-08-04 Yao Qi <yao.qi@linaro.org>
7667 * linux-low.c (regsets_fetch_inferior_registers): Check
7668 errno is ESRCH or not.
7670 2016-08-02 Yao Qi <yao.qi@linaro.org>
7672 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7673 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7674 (thread_db_load_search): Update.
7675 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7676 td_ta_set_event and td_ta_event_getmsg.
7678 2016-07-26 Pedro Alves <palves@redhat.com>
7681 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7682 of unsigned long for 64-bit registers and use uint32_t instead of
7683 unsigned int for 32-bit registers.
7685 2016-07-26 Pedro Alves <palves@redhat.com>
7687 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7690 2016-07-21 Tom Tromey <tom@tromey.com>
7692 * configure: Rebuild.
7694 2016-07-21 Yao Qi <yao.qi@linaro.org>
7696 * mem-break.c (find_gdb_breakpoint): Cast bp to
7697 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7699 2016-07-21 Yao Qi <yao.qi@linaro.org>
7701 * server.c (handle_v_requests): Support s and S actions
7702 if target_supports_software_single_step return true.
7704 2016-07-21 Yao Qi <yao.qi@linaro.org>
7706 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7707 is resume_step, call maybe_hw_step.
7708 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7710 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7712 (proceed_one_lwp): If resume request is resume_step, install
7713 reinsert breakpoints and call maybe_hw_step.
7715 2016-07-21 Yao Qi <yao.qi@linaro.org>
7717 * linux-low.c (proceed_one_lwp): Declare.
7718 (linux_resume_one_thread): Remove local variable 'step'.
7719 Lift code enqueue signal. Call proceed_one_lwp instead of
7720 linux_resume_one_lwp.
7722 2016-07-21 Yao Qi <yao.qi@linaro.org>
7724 * linux-low.c (linux_resume_one_thread): Call
7725 enqueue_pending_signal.
7727 2016-07-21 Yao Qi <yao.qi@linaro.org>
7729 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7730 * inferiors.c (do_restore_current_thread_cleanup): New function.
7731 (make_cleanup_restore_current_thread): Likewise.
7732 * linux-low.c (install_software_single_step_breakpoints): Call
7733 make_cleanup_restore_current_thread. Switch current_thread to
7736 2016-07-21 Yao Qi <yao.qi@linaro.org>
7738 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7739 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7740 (clone_one_breakpoint): Likewise.
7741 (delete_reinsert_breakpoints): Change parameter to thread.
7743 (has_reinsert_breakpoints): Likewise.
7744 (uninsert_reinsert_breakpoints): Likewise.
7745 (reinsert_reinsert_breakpoints): Likewise.
7746 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7747 (delete_reinsert_breakpoints): Likewise.
7748 (reinsert_reinsert_breakpoints): Likewise.
7749 (uninsert_reinsert_breakpoints): Likewise.
7750 (has_reinsert_breakpoints): Likewise.
7752 2016-07-21 Yao Qi <yao.qi@linaro.org>
7754 * inferiors.c (get_thread_process): Make parameter const.
7755 * inferiors.h (get_thread_process): Update declaration.
7756 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7757 Add new parameters child_thread and parent_thread. Callers
7759 * mem-break.h (clone_all_breakpoints): Update declaration.
7761 2016-07-21 Yao Qi <yao.qi@linaro.org>
7763 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7764 <command_list, handler>: Remove.
7765 (struct gdb_breakpoint): New.
7766 (struct other_breakpoint): New.
7767 (struct reinsert_breakpoint): New.
7768 (is_gdb_breakpoint): New function.
7769 (any_persistent_commands): Update command_list if
7770 is_gdb_breakpoint returns true.
7771 (set_breakpoint): Create breakpoints according to their types.
7772 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7773 (set_gdb_breakpoint_1): Likewise.
7774 (set_gdb_breakpoint): Likewise.
7775 (clear_breakpoint_conditions): Change parameter type to
7776 'struct gdb_breakpoint *'.
7777 (clear_breakpoint_commands): Likewise.
7778 (clear_breakpoint_conditions_and_commands): Likewise.
7779 (add_condition_to_breakpoint): Likewise.
7780 (add_breakpoint_condition): Likewise.
7781 (add_commands_to_breakpoint): Likewise.
7782 (check_breakpoints): Check other_breakpoint.
7783 (clone_one_breakpoint): Clone breakpopint according to its type.
7784 * mem-break.h (struct gdb_breakpoint): Declare.
7785 (set_gdb_breakpoint): Update declaration.
7786 (clear_breakpoint_conditions_and_commands): Likewise.
7787 (add_breakpoint_condition): Likewise.
7788 (add_breakpoint_commands): Likewise.
7789 * server.c (process_point_options): Change parameter type to
7790 'struct gdb_breakpoint *'.
7792 2016-07-21 Yao Qi <yao.qi@linaro.org>
7794 * mem-break.c (set_breakpoint_at): Rename it to ...
7795 (set_breakpoint_type_at): ... it.
7796 (set_breakpoint_at): Call set_breakpoint_type_at.
7797 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7798 * mem-break.h (set_breakpoint_at): Update comments.
7800 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7802 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7804 (nios2_store_gregset): Likewise.
7806 2016-07-01 Pedro Alves <palves@redhat.com>
7807 Antoine Tremblay <antoine.tremblay@ericsson.com>
7809 * linux-low.c: Change interface to take the target lwp_info
7810 pointer directly and return void. Handle detaching from a zombie
7812 (linux_detach_lwp_callback): New function.
7813 (linux_detach): Detach from the leader thread after detaching from
7816 2016-06-28 Yao Qi <yao.qi@linaro.org>
7818 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7819 for variable new_offset.
7820 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7821 (aarch64_ftrace_insn_reloc_cb): Likewise.
7822 (aarch64_ftrace_insn_reloc_tb): Likewise.
7823 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7824 PRIx64 instead of PRIx32.
7826 2016-06-28 Yao Qi <yao.qi@linaro.org>
7828 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7829 (the_low_target): Install arm_get_syscall_trapinfo.
7831 2016-06-28 Yao Qi <yao.qi@linaro.org>
7833 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7835 (the_low_target): Install aarch64_get_syscall_trapinfo.
7837 2016-06-28 Yao Qi <yao.qi@linaro.org>
7839 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7841 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7842 Remove parameter sysno.
7843 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7846 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7848 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7849 (s390_emit_ne_goto): Likewise.
7850 (s390_emit_lt_goto): Likewise.
7851 (s390_emit_le_goto): Likewise.
7852 (s390_emit_gt_goto): Likewise.
7853 (s390_emit_ge_goto): Likewise.
7854 (s390x_emit_eq_goto): Likewise.
7855 (s390x_emit_ne_goto): Likewise.
7856 (s390x_emit_lt_goto): Likewise.
7857 (s390x_emit_le_goto): Likewise.
7858 (s390x_emit_gt_goto): Likewise.
7859 (s390x_emit_ge_goto): Likewise.
7860 (s390_emit_ops_impl): Mark variable static.
7861 (s390x_emit_ops): Likewise.
7863 2016-06-17 Yao Qi <yao.qi@linaro.org>
7865 * linux-low.c (handle_extended_wait): Call
7866 uninsert_reinsert_breakpoints for the parent process. Remove
7867 reinsert breakpoints from the child process. Reinsert them to
7868 the parent process when vfork is done.
7869 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7870 (reinsert_reinsert_breakpoints): New function.
7871 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7872 (reinsert_reinsert_breakpoints): Declare.
7874 2016-06-17 Yao Qi <yao.qi@linaro.org>
7876 * linux-low.c (handle_extended_wait): If the parent is doing
7877 step-over, remove the reinsert breakpoints from the forked child.
7879 2016-06-17 Yao Qi <yao.qi@linaro.org>
7881 * linux-low.c (unsuspend_all_lwps): Declare.
7882 (linux_low_filter_event): If thread exited, call finish_step_over.
7883 If step-over is finished, unsuspend other threads.
7885 2016-06-17 Yao Qi <yao.qi@linaro.org>
7887 * linux-low.c (linux_resume_one_lwp_throw): Assert
7888 has_reinsert_breakpoints returns false.
7889 * mem-break.c (delete_disabled_breakpoints): Assert
7890 bp type isn't reinsert_breakpoint.
7892 2016-06-17 Yao Qi <yao.qi@linaro.org>
7894 * linux-low.c (maybe_hw_step): New function.
7895 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7896 (finish_step_over): Switch current_thread to lwp temporarily,
7897 and assert has_reinsert_breakpoints returns true.
7898 (proceed_one_lwp): Call maybe_hw_step.
7899 * mem-break.c (has_reinsert_breakpoints): New function.
7900 * mem-break.h (has_reinsert_breakpoints): Declare.
7902 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7904 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7906 2016-05-17 Yao Qi <yao.qi@linaro.org>
7908 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7909 instead of find_inferior.
7911 2016-05-05 Yao Qi <yao.qi@linaro.org>
7913 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7914 Initialize res to zero.
7916 2016-05-05 Yao Qi <yao.qi@linaro.org>
7918 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7921 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7923 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7924 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7925 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7927 2016-04-28 Par Olsson <par.olsson@windriver.com>
7928 Simon Marchi <simon.marchi@ericsson.com>
7930 * tracepoint.c (write_inferior_int8): New function.
7931 (cmd_qtenable_disable): Write enable flag using
7932 write_inferior_int8.
7934 2016-04-25 Yao Qi <yao.qi@linaro.org>
7936 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7937 (need_step_over_p): Return zero if the LWP has pending signals
7938 can be delivered on software single step target.
7940 2016-04-25 Yao Qi <yao.qi@linaro.org>
7942 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7943 return instead of error.
7945 2016-04-22 Yao Qi <yao.qi@linaro.org>
7947 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7950 2016-04-22 Yao Qi <yao.qi@linaro.org>
7952 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7953 signal when stepping over breakpoint with software single
7956 2016-04-21 Pedro Alves <palves@redhat.com>
7958 * linux-s390-low.c (s390_collect_ptrace_register)
7959 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7961 (s390_check_regset): Use void * instead of gdb_byte *.
7963 2016-04-20 Pedro Alves <palves@redhat.com>
7965 * configure: Renegerate.
7967 2016-04-20 Yao Qi <yao.qi@linaro.org>
7969 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7970 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7972 (arm_store_gregset): Likewise.
7974 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7976 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7977 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7978 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7979 (amd64-avx-mpx-linux.c): New rules.
7980 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7981 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7982 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7983 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7984 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7985 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7986 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
7987 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
7988 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
7989 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
7990 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
7991 * linux-x86-low.c (x86_linux_read_description): Add case for
7992 X86_XSTATE_AVX_MPX_MASK.
7993 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
7994 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
7995 init_registers_i386_avx_mpx_linux.
7996 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7997 (initialize_low_tracepoint): Call
7998 init_registers_i386_avx_mpx_linux.
7999 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8000 (initialize_low_tracepoint): Call
8001 init_registers_amd64_avx_mpx_linux.
8002 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8003 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8004 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8007 2016-04-18 Pedro Alves <palves@redhat.com>
8009 * configure: Regenerate.
8011 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8013 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8014 (aarch64_emit_sub): Likewise.
8016 2016-04-12 Pedro Alves <palves@redhat.com>
8018 * utils.c (prepare_to_throw_exception): Delete.
8020 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8022 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8024 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8026 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8028 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8030 * linux-aarch64-ipa.c: Add <elf.h> include.
8031 * linux-ppc-ipa.c: Add <elf.h> include.
8032 * linux-s390-ipa.c: Add <elf.h> include.
8034 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8036 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8037 (get_raw_reg_ptr): Likewise.
8038 (get_trace_state_variable_value_ptr): Likewise.
8039 (set_trace_state_variable_value_ptr): Likewise.
8040 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8043 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8044 Marcin Kościelnicki <koriakin@0x04.net>
8047 * linux-ppc-low.c (emit_insns): New function.
8048 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8049 (ppc_emit_prologue): New function.
8050 (ppc_emit_epilogue): New function.
8051 (ppc_emit_add): New function.
8052 (ppc_emit_sub): New function.
8053 (ppc_emit_mul): New function.
8054 (ppc_emit_lsh): New function.
8055 (ppc_emit_rsh_signed): New function.
8056 (ppc_emit_rsh_unsigned): New function.
8057 (ppc_emit_ext): New function.
8058 (ppc_emit_zero_ext): New function.
8059 (ppc_emit_log_not): New function.
8060 (ppc_emit_bit_and): New function.
8061 (ppc_emit_bit_or): New function.
8062 (ppc_emit_bit_xor): New function.
8063 (ppc_emit_bit_not): New function.
8064 (ppc_emit_equal): New function.
8065 (ppc_emit_less_signed): New function.
8066 (ppc_emit_less_unsigned): New function.
8067 (ppc_emit_ref): New function.
8068 (ppc_emit_const): New function.
8069 (ppc_emit_reg): New function.
8070 (ppc_emit_pop): New function.
8071 (ppc_emit_stack_flush): New function.
8072 (ppc_emit_swap): New function.
8073 (ppc_emit_stack_adjust): New function.
8074 (ppc_emit_call): New function.
8075 (ppc_emit_int_call_1): New function.
8076 (ppc_emit_void_call_2): New function.
8077 (ppc_emit_if_goto): New function.
8078 (ppc_emit_goto): New function.
8079 (ppc_emit_eq_goto): New function.
8080 (ppc_emit_ne_goto): New function.
8081 (ppc_emit_lt_goto): New function.
8082 (ppc_emit_le_goto): New function.
8083 (ppc_emit_gt_goto): New function.
8084 (ppc_emit_ge_goto): New function.
8085 (ppc_write_goto_address): New function.
8086 (ppc_emit_ops_impl): New static variable.
8087 (ppc64v1_emit_prologue): New function.
8088 (ppc64v2_emit_prologue): New function.
8089 (ppc64_emit_epilogue): New function.
8090 (ppc64_emit_add): New function.
8091 (ppc64_emit_sub): New function.
8092 (ppc64_emit_mul): New function.
8093 (ppc64_emit_lsh): New function.
8094 (ppc64_emit_rsh_signed): New function.
8095 (ppc64_emit_rsh_unsigned): New function.
8096 (ppc64_emit_ext): New function.
8097 (ppc64_emit_zero_ext): New function.
8098 (ppc64_emit_log_not): New function.
8099 (ppc64_emit_bit_and): New function.
8100 (ppc64_emit_bit_or): New function.
8101 (ppc64_emit_bit_xor): New function.
8102 (ppc64_emit_bit_not): New function.
8103 (ppc64_emit_equal): New function.
8104 (ppc64_emit_less_signed): New function.
8105 (ppc64_emit_less_unsigned): New function.
8106 (ppc64_emit_ref): New function.
8107 (ppc64_emit_const): New function.
8108 (ppc64v1_emit_reg): New function.
8109 (ppc64v2_emit_reg): New function.
8110 (ppc64_emit_pop): New function.
8111 (ppc64_emit_stack_flush): New function.
8112 (ppc64_emit_swap): New function.
8113 (ppc64v1_emit_call): New function.
8114 (ppc64v2_emit_call): New function.
8115 (ppc64v1_emit_int_call_1): New function.
8116 (ppc64v2_emit_int_call_1): New function.
8117 (ppc64v1_emit_void_call_2): New function.
8118 (ppc64v2_emit_void_call_2): New function.
8119 (ppc64_emit_if_goto): New function.
8120 (ppc64_emit_eq_goto): New function.
8121 (ppc64_emit_ne_goto): New function.
8122 (ppc64_emit_lt_goto): New function.
8123 (ppc64_emit_le_goto): New function.
8124 (ppc64_emit_gt_goto): New function.
8125 (ppc64_emit_ge_goto): New function.
8126 (ppc64v1_emit_ops_impl): New static variable.
8127 (ppc64v2_emit_ops_impl): New static variable.
8128 (ppc_emit_ops): New function.
8129 (linux_low_target): Wire in ppc_emit_ops.
8131 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8132 Marcin Kościelnicki <koriakin@0x04.net>
8135 * Makefile.in: Add powerpc-*-ipa.o
8136 * configure.srv: Add ipa_obj for powerpc*-linux.
8137 * linux-ppc-ipa.c: New file.
8138 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8140 (PPC_FIELD): New macro.
8141 (PPC_SEXT): New macro.
8142 (PPC_OP6): New macro.
8143 (PPC_BO): New macro.
8144 (PPC_LI): New macro.
8145 (PPC_BD): New macro.
8146 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8147 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8148 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8149 (ppc_get_thread_area): New function.
8150 (is_elfv2_inferior): New function.
8151 (gen_ds_form): New function.
8152 (GEN_STD): New macro.
8153 (GEN_STDU): New macro.
8154 (GEN_LD): New macro.
8155 (GEN_LDU): New macro.
8156 (gen_d_form): New function.
8157 (GEN_ADDI): New macro.
8158 (GEN_ADDIS): New macro.
8159 (GEN_LI): New macro.
8160 (GEN_LIS): New macro.
8161 (GEN_ORI): New macro.
8162 (GEN_ORIS): New macro.
8163 (GEN_LWZ): New macro.
8164 (GEN_STW): New macro.
8165 (GEN_STWU): New macro.
8166 (gen_xfx_form): New function.
8167 (GEN_MFSPR): New macro.
8168 (GEN_MTSPR): New macro.
8169 (GEN_MFCR): New macro.
8170 (GEN_MTCR): New macro.
8171 (GEN_SYNC): New macro.
8172 (GEN_LWSYNC): New macro.
8173 (gen_x_form): New function.
8174 (GEN_OR): New macro.
8175 (GEN_MR): New macro.
8176 (GEN_LWARX): New macro.
8177 (GEN_STWCX): New macro.
8178 (GEN_CMPW): New macro.
8179 (gen_md_form): New function.
8180 (GEN_RLDICL): New macro.
8181 (GEN_RLDICR): New macro.
8182 (gen_i_form): New function.
8184 (GEN_BL): New macro.
8185 (gen_b_form): New function.
8186 (GEN_BNE): New macro.
8187 (GEN_LOAD): New macro.
8188 (GEN_STORE): New macro.
8189 (gen_limm): New function.
8190 (gen_atomic_xchg): New function.
8191 (gen_call): New function.
8192 (ppc_relocate_instruction): New function.
8193 (ppc_install_fast_tracepoint_jump_pad): New function.
8194 (ppc_get_min_fast_tracepoint_insn_len): New function.
8195 (ppc_get_ipa_tdesc_idx): New function.
8196 (the_low_target): Wire in the new functions.
8197 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8199 * linux-ppc-tdesc.h: New file.
8201 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8203 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8204 (alloc_jump_pad_buffer): New function.
8205 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8206 (alloc_jump_pad_buffer): New function.
8207 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8208 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8209 (alloc_jump_pad_buffer): New function.
8210 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8211 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8212 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8213 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8215 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8217 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8218 * linux-amd64-ipa.c: Likewise.
8219 * linux-i386-ipa.c: Likewise.
8220 * linux-s390-ipa.c: Likewise.
8221 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8222 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8223 set_trace_state_variable_value_ptr.
8224 (struct ipa_sym_addresses): Likewise.
8225 (symbol_list): Likewise.
8226 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8227 accessing gdb_collect directly.
8228 (gdb_collect_ptr_type): New typedef.
8229 (get_raw_reg_ptr_type): New typedef.
8230 (get_trace_state_variable_value_ptr_type): New typedef.
8231 (set_trace_state_variable_value_ptr_type): New typedef.
8232 (gdb_collect_ptr): New global.
8233 (get_raw_reg_ptr): New global.
8234 (get_trace_state_variable_value_ptr): New global.
8235 (set_trace_state_variable_value_ptr): New global.
8236 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8237 accessing get_raw_reg directly.
8238 (get_get_tsv_func_addr): Likewise for
8239 get_trace_state_variable_value_ptr.
8240 (get_set_tsv_func_addr): Likewise for
8241 set_trace_state_variable_value_ptr.
8242 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8244 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8246 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8248 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8250 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8252 (relocate_instruction): Remove own_buf.
8253 * server.c (own_buf): Make global.
8254 (handle_v_requests): Make global.
8255 * server.h (own_buf): New declaration.
8256 (handle_v_requests): New prototype.
8258 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8261 * linux-s390-low.c (add_insns): New function.
8262 (s390_emit_prologue): New function.
8263 (s390_emit_epilogue): New function.
8264 (s390_emit_add): New function.
8265 (s390_emit_sub): New function.
8266 (s390_emit_mul): New function.
8267 (s390_emit_lsh): New function.
8268 (s390_emit_rsh_signed): New function.
8269 (s390_emit_rsh_unsigned): New function.
8270 (s390_emit_ext): New function.
8271 (s390_emit_log_not): New function.
8272 (s390_emit_bit_and): New function.
8273 (s390_emit_bit_or): New function.
8274 (s390_emit_bit_xor): New function.
8275 (s390_emit_bit_not): New function.
8276 (s390_emit_equal): New function.
8277 (s390_emit_less_signed): New function.
8278 (s390_emit_less_unsigned): New function.
8279 (s390_emit_ref): New function.
8280 (s390_emit_if_goto): New function.
8281 (s390_emit_goto): New function.
8282 (s390_write_goto_address): New function.
8283 (s390_emit_litpool): New function.
8284 (s390_emit_const): New function.
8285 (s390_emit_call): New function.
8286 (s390_emit_reg): New function.
8287 (s390_emit_pop): New function.
8288 (s390_emit_stack_flush): New function.
8289 (s390_emit_zero_ext): New function.
8290 (s390_emit_swap): New function.
8291 (s390_emit_stack_adjust): New function.
8292 (s390_emit_set_r2): New function.
8293 (s390_emit_int_call_1): New function.
8294 (s390_emit_void_call_2): New function.
8295 (s390_emit_eq_goto): New function.
8296 (s390_emit_ne_goto): New function.
8297 (s390_emit_lt_goto): New function.
8298 (s390_emit_le_goto): New function.
8299 (s390_emit_gt_goto): New function.
8300 (s390_emit_ge_goto): New function.
8301 (s390x_emit_prologue): New function.
8302 (s390x_emit_epilogue): New function.
8303 (s390x_emit_add): New function.
8304 (s390x_emit_sub): New function.
8305 (s390x_emit_mul): New function.
8306 (s390x_emit_lsh): New function.
8307 (s390x_emit_rsh_signed): New function.
8308 (s390x_emit_rsh_unsigned): New function.
8309 (s390x_emit_ext): New function.
8310 (s390x_emit_log_not): New function.
8311 (s390x_emit_bit_and): New function.
8312 (s390x_emit_bit_or): New function.
8313 (s390x_emit_bit_xor): New function.
8314 (s390x_emit_bit_not): New function.
8315 (s390x_emit_equal): New function.
8316 (s390x_emit_less_signed): New function.
8317 (s390x_emit_less_unsigned): New function.
8318 (s390x_emit_ref): New function.
8319 (s390x_emit_if_goto): New function.
8320 (s390x_emit_const): New function.
8321 (s390x_emit_call): New function.
8322 (s390x_emit_reg): New function.
8323 (s390x_emit_pop): New function.
8324 (s390x_emit_stack_flush): New function.
8325 (s390x_emit_zero_ext): New function.
8326 (s390x_emit_swap): New function.
8327 (s390x_emit_stack_adjust): New function.
8328 (s390x_emit_int_call_1): New function.
8329 (s390x_emit_void_call_2): New function.
8330 (s390x_emit_eq_goto): New function.
8331 (s390x_emit_ne_goto): New function.
8332 (s390x_emit_lt_goto): New function.
8333 (s390x_emit_le_goto): New function.
8334 (s390x_emit_gt_goto): New function.
8335 (s390x_emit_ge_goto): New function.
8336 (s390_emit_ops): New function.
8337 (struct linux_target_ops): Fill in emit_ops hook.
8339 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8342 * Makefile.in: Add s390 IPA files.
8343 * configure.srv: Build IPA for s390.
8344 * linux-s390-ipa.c: New file.
8345 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8346 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8347 (tdesc_s390_linux32): Likewise.
8348 (init_registers_s390_linux32v1): Likewise.
8349 (tdesc_s390_linux32v1): Likewise.
8350 (init_registers_s390_linux32v2): Likewise.
8351 (tdesc_s390_linux32v2): Likewise.
8352 (init_registers_s390_linux64): Likewise.
8353 (tdesc_s390_linux64): Likewise.
8354 (init_registers_s390_linux64v1): Likewise.
8355 (tdesc_s390_linux64v1): Likewise.
8356 (init_registers_s390_linux64v2): Likewise.
8357 (tdesc_s390_linux64v2): Likewise.
8358 (init_registers_s390_te_linux64): Likewise.
8359 (tdesc_s390_te_linux64): Likewise.
8360 (init_registers_s390_vx_linux64): Likewise.
8361 (tdesc_s390_vx_linux64): Likewise.
8362 (init_registers_s390_tevx_linux64): Likewise.
8363 (tdesc_s390_tevx_linux64): Likewise.
8364 (init_registers_s390x_linux64): Likewise.
8365 (tdesc_s390x_linux64): Likewise.
8366 (init_registers_s390x_linux64v1): Likewise.
8367 (tdesc_s390x_linux64v1): Likewise.
8368 (init_registers_s390x_linux64v2): Likewise.
8369 (tdesc_s390x_linux64v2): Likewise.
8370 (init_registers_s390x_te_linux64): Likewise.
8371 (tdesc_s390x_te_linux64): Likewise.
8372 (init_registers_s390x_vx_linux64): Likewise.
8373 (tdesc_s390x_vx_linux64): Likewise.
8374 (init_registers_s390x_tevx_linux64): Likewise.
8375 (tdesc_s390x_tevx_linux64): Likewise.
8376 (have_hwcap_s390_vx): New static variable.
8377 (s390_arch_setup): Fill have_hwcap_s390_vx.
8378 (s390_get_thread_area): New function.
8379 (s390_ft_entry_gpr_esa): New const.
8380 (s390_ft_entry_gpr_zarch): New const.
8381 (s390_ft_entry_misc): New const.
8382 (s390_ft_entry_fr): New const.
8383 (s390_ft_entry_vr): New const.
8384 (s390_ft_main_31): New const.
8385 (s390_ft_main_64): New const.
8386 (s390_ft_exit_fr): New const.
8387 (s390_ft_exit_vr): New const.
8388 (s390_ft_exit_misc): New const.
8389 (s390_ft_exit_gpr_esa): New const.
8390 (s390_ft_exit_gpr_zarch): New const.
8391 (append_insns): New function.
8392 (s390_relocate_instruction): New function.
8393 (s390_install_fast_tracepoint_jump_pad): New function.
8394 (s390_get_min_fast_tracepoint_insn_len): New function.
8395 (s390_get_ipa_tdesc_idx): New function.
8396 (struct linux_target_ops): Wire in the above functions.
8397 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8398 * linux-s390-tdesc.h: New file.
8400 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8402 * linux-s390-low.c (s390_supports_tracepoints): New function.
8403 (struct linux_target_ops): Fill supports_tracepoints hook.
8405 2016-03-18 Yao Qi <yao.qi@linaro.org>
8407 * linux-low.c (lwp_signal_can_be_delivered): New function.
8408 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8410 2016-03-18 Yao Qi <yao.qi@linaro.org>
8412 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8413 0 if signal is enqueued. Remove 'signal' from one debugging
8414 message. Move one debugging message to some lines below.
8415 Remove code setting 'signal' to 0.
8417 2016-03-18 Yao Qi <yao.qi@linaro.org>
8419 * linux-low.c (linux_low_filter_event): Remove redundant
8420 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8422 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8424 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8425 (struct linux_target_ops): Wire in the above.
8427 2016-03-03 Yao Qi <yao.qi@linaro.org>
8429 * linux-low.c: Update comments to start_step_over.
8431 2016-03-03 Yao Qi <yao.qi@linaro.org>
8434 * linux-low.c (handle_extended_wait): Set child suspended
8435 if event_lwp->bp_reinsert isn't zero.
8437 2016-03-02 Yao Qi <yao.qi@linaro.org>
8439 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8440 enqueue_pending_signal.
8442 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8444 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8447 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8449 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8450 (s390_regmap_3264) [!__s390x__]: New global.
8451 (s390_collect_ptrace_register): Skip map entries containing -1.
8452 (s390_supply_ptrace_register): Ditto.
8453 (s390_fill_gprs_high): New function.
8454 (s390_store_gprs_high): New function.
8455 (s390_regsets): Add NT_S390_HIGH_GPRS.
8456 (s390_get_hwcap): Enable on 31-bit.
8457 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8458 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8459 Detect NT_S390_HIGH_GPRS.
8460 (s390_usrregs_info_3264): Enable on 31-bit.
8461 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8462 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8464 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8467 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8468 * configure.srv: Ditto.
8469 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8470 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8471 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8472 (init_registers_amd64_linux): Remove prototype.
8473 (tdesc_amd64_linux): Remove declaration.
8474 (get_ipa_tdesc): New function.
8475 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8476 initialize remaining tdescs.
8477 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8478 (init_registers_i386_linux): Remove prototype.
8479 (tdesc_i386_linux): Remove declaration.
8480 (get_ipa_tdesc): New function.
8481 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8482 initialize remaining tdescs.
8483 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8484 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8485 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8486 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8487 (x86_get_ipa_tdesc_idx): New function.
8488 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8489 * linux-x86-tdesc.h: New file.
8490 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8491 (target_get_ipa_tdesc_idx): New macro.
8492 * tracepoint.c (ipa_tdesc_idx): New macro.
8493 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8494 (symbol_list): Add ipa_tdesc_idx.
8495 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8496 (ipa_tdesc): Remove.
8497 (ipa_tdesc_idx): New variable.
8498 (get_context_regcache): Use get_ipa_tdesc.
8499 (gdb_collect): Ditto.
8501 * tracepoint.h (get_ipa_tdesc): New prototype.
8502 (ipa_tdesc): Remove.
8504 2016-02-24 Pedro Alves <palves@redhat.com>
8506 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8507 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8508 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8509 Factor out common code between the USE_SIGTRAP_SIGINFO and
8510 !USE_SIGTRAP_SIGINFO blocks.
8511 (linux_low_filter_event): Call save_stop_reason instead of
8512 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8514 (linux_wait_1): Update comments.
8516 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8518 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8519 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8520 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8521 ppc_insert_point, ppc_remove_point.
8523 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8525 * linux-s390-low.c (s390_supports_z_point_type): New function.
8526 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8528 2016-02-16 Yao Qi <yao.qi@linaro.org>
8530 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8531 PC. Get pc from regcache_read_pc.
8533 2016-02-12 Yao Qi <yao.qi@linaro.org>
8535 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8536 or linux_get_pc_32bit.
8537 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8539 2016-02-12 Yao Qi <yao.qi@linaro.org>
8541 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8542 arm_linux_get_next_pcs_fixup.
8544 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8546 * tracepoint.c (x_tracepoint_action_download): Change
8547 write_inferior_data_ptr to write_inferior_data_pointer.
8548 (cmd_qtstart): Likewise.
8549 (write_inferior_data_ptr): Remove.
8550 (download_agent_expr): Change write_inferior_data_ptr to
8551 write_inferior_data_pointer.
8552 (download_tracepoint_1): Likewise.
8553 (download_tracepoint): Likewise.
8554 (download_trace_state_variables): Likewise.
8556 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8557 Marcin Kościelnicki <koriakin@0x04.net>
8559 * tracepoint.c (struct tracepoint_action_ops): Remove.
8560 (struct tracepoint_action): Remove ops.
8561 (m_tracepoint_action_download, r_tracepoint_action_download)
8562 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8563 size and offset accordingly.
8564 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8565 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8566 (tracepoint_action_send, tracepoint_action_download): New functions.
8567 Helpers for trace action handlers.
8568 (add_tracepoint_action): Remove setup actions ops.
8569 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8571 2016-02-10 Yao Qi <yao.qi@linaro.org>
8573 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8575 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8577 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8579 * configure: Regenerate.
8581 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8583 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8584 void * to gdb_byte *.
8585 * linux-low.c (siginfo_fixup): Likewise.
8586 (linux_xfer_siginfo): Likewise.
8587 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8589 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8591 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8593 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8595 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8597 * linux-x86-low.c [__x86_64__]: Include
8598 "nat/amd64-linux-siginfo.h".
8599 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8600 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8601 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8602 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8603 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8604 (cpt_si_fd, si_timerid, si_overrun): Move from
8605 nat/amd64-linux-siginfo.c.
8606 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8608 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8610 * server.c (skip_to_semicolon): Remove.
8611 (process_point_options): Use strchrnul instead of
8614 2016-01-26 Yao Qi <yao.qi@linaro.org>
8616 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8617 * linux-low.c (install_software_single_step_breakpoints): Don't
8618 call regcache_read_pc.
8619 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8622 2016-01-26 Yao Qi <yao.qi@linaro.org>
8624 * linux-low.c (install_software_single_step_breakpoints): Call
8625 regcache_read_pc instead of get_pc.
8627 2016-01-26 Yao Qi <yao.qi@linaro.org>
8629 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8630 (unblock_async_io): Rename to ...
8631 (block_unblock_async_io): ... it. New function.
8632 (enable_async_io): Don't install SIGIO handler. Unblock it
8634 (disable_async_io): Don't ignore SIGIO. Block it instead.
8635 (initialize_async_io): Install SIGIO handler. Don't call
8638 2016-01-26 Yao Qi <yao.qi@linaro.org>
8640 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8641 first character is '\003', call *the_target->request_interrupt.
8643 2016-01-25 Yao Qi <yao.qi@linaro.org>
8645 * remote-utils.c (new_thread_notify): Remove.
8646 (dead_thread_notify): Likewise.
8647 * remote-utils.h (new_thread_notify): Remove declaration.
8648 (dead_thread_notify): Likewise.
8650 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8652 * gdb.trace/pending.exp: Fix expected message on continue.
8654 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8656 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8657 it works properly on big-endian machines where sizeof (CORE_ADDR)
8660 2016-01-21 Pedro Alves <palves@redhat.com>
8662 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8663 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8664 * configure: Regenerate.
8666 2016-01-21 Yao Qi <yao.qi@linaro.org>
8668 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8669 is_thumb and set it according to CPSR saved on the stack.
8670 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8671 arm_sigreturn_next_pc.
8673 2016-01-18 Yao Qi <yao.qi@linaro.org>
8675 * linux-low.c (linux_set_pc_64bit): New function.
8676 (linux_get_pc_64bit): New function.
8677 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8679 * linux-sparc-low.c (debug_threads): Remove declaration.
8680 (sparc_get_pc): Remove.
8681 (the_low_target): Use linux_get_pc_64bit instead of
8683 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8684 (the_low_target): Use linux_get_pc_64bit and
8687 2016-01-18 Yao Qi <yao.qi@linaro.org>
8689 * linux-arm-low.c (debug_threads): Remove declaration.
8690 (arm_get_pc, arm_set_pc): Remove.
8691 (the_low_target): Use linux_get_pc_32bit and
8693 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8694 (the_low_target): Use linux_get_pc_32bit and
8696 * linux-cris-low.c (debug_threads): Remove declaration.
8697 (cris_get_pc, cris_set_pc,): Remove.
8698 (the_low_target): Use linux_get_pc_32bit and
8700 * linux-crisv32-low.c (debug_threads): Remove declaration.
8701 (cris_get_pc, cris_set_pc): Remove.
8702 (the_low_target): Use linux_get_pc_32bit and
8704 * linux-low.c: Include inttypes.h.
8705 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8706 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8707 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8708 (the_low_target): Use linux_get_pc_32bit and
8710 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8711 (the_low_target): Use linux_get_pc_32bit and
8713 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8714 (the_low_target): Use linux_get_pc_32bit and
8716 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8717 (the_low_target): Use linux_get_pc_32bit and
8719 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8720 (the_low_target): Use linux_get_pc_32bit and
8723 2016-01-18 Gary Benson <gbenson@redhat.com>
8725 * configure.ac (AC_FUNC_FORK): New check.
8726 * config.in: Regenerate.
8727 * configure: Likewise.
8729 2016-01-14 Yao Qi <yao.qi@linaro.org>
8731 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8732 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8733 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8734 arm_get_next_pcs_ctor.
8736 2016-01-12 Josh Stone <jistone@redhat.com>
8737 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8739 * inferiors.h: Include "gdb_vecs.h".
8740 (struct process_info): Add syscalls_to_catch.
8741 * inferiors.c (remove_process): Free syscalls_to_catch.
8742 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8743 syscall_return stops.
8744 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8745 * server.c (handle_general_set): Handle QCatchSyscalls.
8746 (handle_query): Report support for QCatchSyscalls.
8747 * target.h (struct target_ops): Add supports_catch_syscall.
8748 (target_supports_catch_syscall): New macro.
8749 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8750 (struct lwp_info): Add syscall_state.
8751 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8752 Maintain syscall_state and syscalls_to_catch across exec.
8753 (get_syscall_trapinfo): New function, proxy to the_low_target.
8754 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8755 (linux_low_filter_event): Toggle syscall_state entry/return for
8756 syscall traps, and set it ignored for all others.
8757 (gdb_catching_syscalls_p): New function.
8758 (gdb_catch_this_syscall_p): New function.
8759 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8760 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8761 (linux_supports_catch_syscall): New function.
8762 (linux_target_ops): Install it.
8763 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8764 (the_low_target): Install it.
8766 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8768 * acinclude.m4: Include new ../warning.m4 file.
8769 * configure: Regenerated.
8770 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8772 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8774 * ax.c (is_goto_target): Mark static.
8775 * linux-low.c (register_addr): Likewise.
8776 (linux_fetch_registers, linux_store_registers): Likewise.
8777 * mem-break.c (any_persistent_commands): Fix old prototype.
8778 (add_commands_to_breakpoint): Mark static.
8779 * regcache.c (find_register_by_name): Delete unused func.
8780 * remote-utils.c (hex_or_minus_one): Mark static.
8781 * server.c (monitor_show_help): Mark static.
8782 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8783 handle_v_requests): Likewise.
8785 2016-01-12 Pedro Alves <palves@redhat.com>
8787 Remove use of the registered trademark symbol throughout.
8789 2016-01-08 Yao Qi <yao.qi@linaro.org>
8791 * remote-utils.c (getpkt): If c is '\003', call target hook
8794 2016-01-06 Yao Qi <yao.qi@linaro.org>
8796 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8797 linux-aarch32-low.c.
8798 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8799 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8800 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8801 (thumb2_breakpoint): Declare.
8802 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8803 linux-aarch32-low.h.
8804 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8805 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8806 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8808 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8810 * gdbreplay.c (gdbreplay_version): Change copyright year in
8812 * server.c (gdbserver_version): Likewise.
8814 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8816 * server.c (crc32_table): Delete.
8817 (crc32): Use libiberty's xcrc32 function.
8819 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8821 * lynx-low.c (lynx_delete_thread_callback): New function.
8822 (lynx_mourn): Properly delete our process and all of its
8823 threads. Remove call to clear_inferiors.
8825 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8827 * target.c (thread_search_callback): Add check that
8828 the thread_stopped target callback is not NULL before
8831 2015-12-21 Yao Qi <yao.qi@linaro.org>
8833 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8836 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8838 * server.c (handle_query): Call target_supports_software_single_step.
8840 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8842 * linux-low.c (single_step): New function.
8843 (linux_resume_one_lwp_throw): Call single_step.
8844 (start_step_over): Likewise.
8846 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8848 * Makefile.in (SFILES): Append arch/arm-linux.c,
8849 arch/arm-get-next-pcs.c.
8850 (arm-linux.o): New rule.
8851 (arm-get-next-pcs.o): New rule.
8852 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8854 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8855 to linux-aarch32-low.c.
8856 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8857 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8858 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8859 (thumb2_breakpoint_len): Likewise.
8860 (arm_is_thumb_mode): Make non-static.
8861 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8862 from linux-aarch32-low.c.
8863 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8864 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8865 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8866 (thumb2_breakpoint_len): Likewise.
8867 (arm_is_thumb_mode): New declaration.
8868 * linux-arm-low.c: Include arch/arm-linux.h
8869 aarch/arm-get-next-pcs.h, sys/syscall.h.
8870 (get_next_pcs_ops): New struct.
8871 (get_next_pcs_addr_bits_remove): New function.
8872 (get_next_pcs_is_thumb): New function.
8873 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8874 (arm_sigreturn_next_pc): Likewise.
8875 (get_next_pcs_syscall_next_pc): Likewise.
8876 (arm_gdbserver_get_next_pcs): Likewise.
8877 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8879 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8880 * server.h: Include gdb_vecs.h.
8882 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8884 * Makefile.in (SFILES): Append common/common-regcache.c.
8885 (OBS): Append common-regcache.o.
8886 (common-regcache.o): New rule.
8887 * regcache.c (init_register_cache): Initialize cache to
8889 (regcache_raw_read_unsigned): New function.
8890 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8891 register_status enum.
8893 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8895 * linux-aarch64-low.c (the_low_targets): Rename
8896 breakpoint_reinsert_addr to get_next_pcs.
8897 * linux-arm-low.c (the_low_targets): Likewise.
8898 * linux-bfin-low.c (the_low_targets): Likewise.
8899 * linux-cris-low.c (the_low_targets): Likewise.
8900 * linux-crisv32-low.c (the_low_targets): Likewise.
8901 * linux-low.c (can_software_single_step): Likewise.
8902 (install_software_single_step_breakpoints): New function.
8903 (start_step_over): Use install_software_single_step_breakpoints.
8904 * linux-low.h: New CORE_ADDR vector.
8905 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8907 * linux-mips-low.c (the_low_targets): Likewise.
8908 * linux-nios2-low.c (the_low_targets): Likewise.
8909 * linux-sparc-low.c (the_low_targets): Likewise.
8911 2015-12-17 Pedro Alves <palves@redhat.com>
8913 * linux-low.c (linux_kill_one_lwp): Remove references to
8915 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8917 (linux_init_signals): Delete.
8918 (initialize_low): Adjust.
8919 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8921 2015-12-16 Pedro Alves <palves@redhat.com>
8923 * configure.ac (compiler warning flags): When testing a
8924 -Wno-foo option, check whether -Wfoo works instead.
8925 * configure: Regenerate.
8927 2015-12-11 Don Breazeal <donb@codesourcery.com>
8929 * server.c (process_serial_event): Don't exit from gdbserver
8930 in remote mode if there are still active inferiors.
8932 2015-12-11 Yao Qi <yao.qi@linaro.org>
8934 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8935 arm_breakpoint_at if the process is 32-bit.
8937 2015-12-11 Yao Qi <yao.qi@linaro.org>
8939 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8942 2015-12-07 Yao Qi <yao.qi@linaro.org>
8944 * configure.srv: Append arm.o to srv_tgtobj for
8945 aarch64*-*-linux* target.
8946 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8947 from linux-arm-low.c.
8948 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8949 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8950 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8951 (thumb2_breakpoint_len): Likewise.
8952 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8953 (arm_breakpoint_kinds): Likewise.
8954 (arm_breakpoint_kind_from_pc): Likewise.
8955 (arm_sw_breakpoint_from_kind): Likewise.
8956 (arm_breakpoint_kind_from_current_state): Likewise.
8957 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8958 (arm_sw_breakpoint_from_kind): Declare.
8959 (arm_breakpoint_kind_from_current_state): Declare.
8960 (arm_breakpoint_at): Declare.
8961 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8962 arm_sw_breakpoint_from_kind if process is 32-bit.
8963 (aarch64_breakpoint_kind_from_pc): New function.
8964 (aarch64_breakpoint_kind_from_current_state): New function.
8965 (the_low_target): Initialize fields breakpoint_kind_from_pc
8966 and breakpoint_kind_from_current_state.
8967 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8968 linux-aarch32-low.c.
8969 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8970 (arm_breakpoint, arm_breakpoint_len): Likewise.
8971 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8972 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8973 (arm_is_thumb_mode): Likewise.
8974 (arm_breakpoint_at): Likewise.
8975 (arm_breakpoint_kind_from_pc): Likewise.
8976 (arm_sw_breakpoint_from_kind): Likewise.
8977 (arm_breakpoint_kind_from_current_state): Likewise.
8980 2015-08-04 Yao Qi <yao.qi@linaro.org>
8982 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8983 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8984 * server.c (extended_protocol): Remove "static".
8985 * server.h (extended_protocol): Declare it.
8987 2015-12-04 Josh Stone <jistone@redhat.com>
8989 * target.h (struct target_ops) <arch_setup>: Rename to ...
8990 (struct target_ops) <post_create_inferior>: ... this.
8991 (target_arch_setup): Rename to ...
8992 (target_post_create_inferior): ... this, calling post_create_inferior.
8993 * server.c (start_inferior): Update target_arch_setup calls to
8994 target_post_create_inferior.
8995 * linux-low.c (linux_low_ptrace_options): Forward declare.
8996 (linux_arch_setup): Update its comment for general use.
8997 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
8998 (struct linux_target_ops): Use linux_post_create_inferior.
8999 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9000 to post_create_inferior.
9001 * nto-low.c (struct nto_target_ops): Likewise.
9002 * spu-low.c (struct spu_target_ops): Likewise.
9003 * win32-low.c (struct win32_target_ops): Likewise.
9005 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9007 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9009 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9011 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9012 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9013 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9014 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9015 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9016 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9017 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9018 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9019 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9020 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9021 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9022 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9024 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9026 * linux-low.c (linux_look_up_symbols): Don't call
9027 linux_supports_traceclone.
9028 * linux-low.h (thread_db_init): Remove use_events argument.
9029 * thread-db.c (thread_db_use_event): Remove global variable.
9030 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9031 (struct thread_db) <td_create_bp>: Remove field.
9032 (thread_db_create_event): Remove function.
9033 (thread_db_enable_reporting): Likewise.
9034 (find_one_thread): Don't check for thread_db_use_events.
9035 (attach_thread): Likewise.
9036 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9037 (try_thread_db_load_1): Don't check for thread_db_use_events.
9038 (thread_db_init): Remove use_events argument and thread events
9040 (remove_thread_event_breakpoints): Remove function.
9041 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9043 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9045 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9047 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9048 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9049 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9050 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9051 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9053 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9055 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9056 * linux-low.c (can_hardware_single_step): Use
9057 supports_hardware_single_step.
9058 (can_software_single_step): New function.
9059 (start_step_over): Call can_software_single_step.
9060 (linux_supports_hardware_single_step): New function.
9061 (struct target_ops) <supports_software_single_step>: Initialize.
9062 * linux-low.h (struct linux_target_ops)
9063 <supports_hardware_single_step>: Initialize.
9064 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9065 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9066 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9067 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9068 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9069 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9070 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9071 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9072 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9073 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9075 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9076 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9078 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9079 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9080 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9082 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9083 * target.h (struct target_ops): <supports_software_single_step>:
9085 (target_supports_software_single_step): New macro.
9087 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9089 * linux-low.c (linux_wait_1): Fix pc advance condition.
9090 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9091 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9093 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9095 * linux-arm-low.c (arm_is_thumb_mode): New function.
9096 (arm_breakpoint_at): Use arm_is_thumb_mode.
9097 (arm_breakpoint_kind_from_current_state): New function.
9098 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9100 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9101 (linux_breakpoint_kind_from_current_state): New function.
9102 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9103 * linux-low.h (struct linux_target_ops)
9104 <breakpoint_kind_from_current_state>: New field.
9105 * target.h (struct target_ops): Likewise.
9106 (target_breakpoint_kind_from_current_state): New macro.
9108 2015-11-30 Pedro Alves <palves@redhat.com>
9110 * linux-low.c (linux_resume): Wake up the event loop before
9113 2015-11-30 Pedro Alves <palves@redhat.com>
9115 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9117 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9119 * target.c (struct thread_search): New structure.
9120 (thread_search_callback): New function.
9121 (prev_general_thread): New global.
9122 (prepare_to_access_memory, done_accessing_memory): New functions.
9123 * target.h (prepare_to_access_memory, done_accessing_memory):
9124 Replace macros with function declarations.
9126 2015-11-30 Pedro Alves <palves@redhat.com>
9129 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9130 report TARGET_WAITKIND_NO_RESUMED.
9131 * remote-utils.c (prepare_resume_reply): Handle
9132 TARGET_WAITKIND_NO_RESUMED.
9133 * server.c (report_no_resumed): New global.
9134 (handle_query) <qSupported>: Handle "no-resumed+". Report
9135 "no-resumed+" support.
9136 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9137 return error if the client doesn't support no-resumed events.
9138 (push_stop_notification): New function.
9139 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9140 events if the client supports them.
9142 2015-11-30 Pedro Alves <palves@redhat.com>
9144 * linux-low.c (thread_still_has_status_pending_p): Don't check
9146 (lwp_resumed): New function.
9147 (status_pending_p_callback): Return early if the LWP is not
9148 supposed to be resumed.
9150 2015-11-30 Pedro Alves <palves@redhat.com>
9152 * linux-low.c (handle_extended_wait): Assert that the LWP's
9153 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9154 thread create events, leave the new child's status pending.
9155 (linux_low_filter_event): If GDB wants to hear about thread exit
9156 events, leave the LWP marked dead and don't delete it.
9157 (linux_wait_for_event_filtered): Don't check for thread exit.
9158 (filter_exit_event): New function.
9159 (linux_wait_1): Use it, when returning an exit event.
9160 (linux_resume_one_lwp_throw): Assert that the LWP's
9161 waitstatus is TARGET_WAITKIND_IGNORE.
9162 * remote-utils.c (prepare_resume_reply): Handle
9163 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9164 * server.c (report_thread_events): New global.
9165 (handle_general_set): Handle QThreadEvents.
9166 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9167 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9168 TARGET_WAITKIND_THREAD_EXITED.
9169 * server.h (report_thread_events): Declare.
9171 2015-11-30 Pedro Alves <palves@redhat.com>
9173 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9174 the thread's last_resume_kind was resume_stop.
9176 2015-11-30 Pedro Alves <palves@redhat.com>
9178 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9181 2015-11-30 Pedro Alves <palves@redhat.com>
9183 * server.c (handle_v_requests): Handle vCtrlC.
9185 2015-11-30 Pedro Alves <palves@redhat.com>
9187 * gdbthread.h (find_any_thread_of_pid): Declare.
9188 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9190 * server.c (handle_query): If current_thread is NULL, look for
9191 another thread of the selected process.
9193 2015-11-26 Daniel Colascione <dancol@dancol.org>
9194 Simon Marchi <simon.marchi@ericsson.com>
9196 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9197 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9199 * target.h (struct target_ops) <thread_name>: New field.
9200 (target_thread_name): New macro.
9202 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9204 * regcache.h (regcache_invalidate_pid): Add declaration.
9205 * regcache.c (regcache_invalidate_pid): New function, extracted
9206 from regcache_invalidate.
9207 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9208 Add trivial documentation comment.
9209 * lynx-low.c: Use regcache_invalidate_pid instead of
9210 regcache_invalidate.
9212 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9214 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9215 and Elf64_auxv_t if the target is Android.
9217 2015-11-22 Doug Evans <xdje42@gmail.com>
9219 * target.h: #include <sys/types.h>.
9221 2015-11-19 Pedro Alves <palves@redhat.com>
9223 * linux-low.c (linux_process_qsupported): Change prototype.
9225 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9227 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9228 and adjust to loop over all features.
9229 * server.c (handle_query) <qSupported>: Adjust to call
9230 target_process_qsupported once, passing it a vector of unprocessed
9232 * target.h (struct target_ops) <process_qsupported>: Change
9234 (target_process_qsupported): Adjust.
9236 2015-11-19 Pedro Alves <palves@redhat.com>
9238 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9240 * configure: Regenerate.
9242 2015-11-19 Pedro Alves <palves@redhat.com>
9244 * configure: Regenerate.
9246 2015-11-19 Yao Qi <yao.qi@linaro.org>
9248 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9251 2015-11-19 Yao Qi <yao.qi@linaro.org>
9253 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9254 (struct aarch64_operand): Move enum out.
9256 2015-11-19 Yao Qi <yao.qi@linaro.org>
9258 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9259 struct user_fpsimd_state *.
9260 (aarch64_store_fpregset): Likewise.
9262 2015-11-19 Yao Qi <yao.qi@linaro.org>
9264 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9265 struct user_pt_regs *.
9266 (aarch64_store_gregset): Likewise.
9268 2015-11-18 Pedro Alves <palves@redhat.com>
9270 * Makefile.in (all_object_files): Add $IPA_OBJS.
9272 2015-11-17 Pedro Alves <palves@redhat.com>
9274 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9275 GDB_SIGNAL_0 and gdb_signal_to_string.
9277 2015-11-17 Pedro Alves <palves@redhat.com>
9279 * win32-low.c (handle_output_debug_string): Remove parameter.
9280 (win32_kill): Remove our_status local and adjust call to
9281 handle_output_debug_string.
9282 (get_child_debug_event): Adjust call to
9283 handle_output_debug_string.
9285 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9287 * linux-mips-low.c (mips_fill_gregset): Add cast.
9288 (mips_store_gregset): Likewise.
9289 (mips_fill_fpregset): Likewise.
9290 (mips_store_fpregset): Likewise.
9292 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9294 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9297 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9299 * linux-mips-low.c (mips_linux_new_thread): Change type of
9300 watch_type to enum target_hw_bp_type.
9302 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9304 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9305 Change return type to arm_hwbp_type.
9307 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9309 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9310 (arm_store_gregset): Likewise.
9311 * linux-arm-low.c (arm_get_hwcap): Likewise.
9312 (arm_read_description): Likewise.
9314 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9316 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9318 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9320 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9321 (ppc_fill_vsxregset): Likewise.
9322 (ppc_store_vsxregset): Likewise.
9323 (ppc_fill_vrregset): Likewise.
9324 (ppc_store_vrregset): Likewise.
9325 (ppc_fill_evrregset): Likewise.
9326 (ppc_store_evrregset): Likewise.
9328 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9330 * linux-ppc-low.c (ppc_usrregs_info): Remove
9331 forward-declaration.
9332 (ppc_arch_setup): Move lower in file.
9334 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9336 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9337 (ps_pdwrite): Likewise.
9339 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9341 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9342 to after assert checks.
9344 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9346 * proc-service.c (ps_pdread): Add/adjust casts.
9347 (ps_pdwrite): Add/adjust casts.
9349 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9351 * server.c (handle_search_memory_1): Cast return value of
9354 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9356 * server.c (write_qxfer_response): Change type of data to
9359 2015-10-29 Pedro Alves <palves@redhat.com>
9361 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9363 2015-10-29 Pedro Alves <palves@redhat.com>
9365 * tracepoint.c (clear_installed_tracepoints): Add casts.
9367 2015-10-29 Pedro Alves <palves@redhat.com>
9369 * server.c (handle_v_cont, process_serial_event): Add enum
9370 gdb_signal casts to signal parsing code.
9372 2015-10-29 Pedro Alves <palves@redhat.com>
9374 * linux-low.h (NULL_REGSET): Define.
9375 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9376 * linux-arm-low.c (arm_regsets): Likewise.
9377 * linux-crisv32-low.c (cris_regsets): Likewise.
9378 * linux-m68k-low.c (m68k_regsets): Likewise.
9379 * linux-mips-low.c (mips_regsets): Likewise.
9380 * linux-nios2-low.c (nios2_regsets): Likewise.
9381 * linux-ppc-low.c (ppc_regsets): Likewise.
9382 * linux-s390-low.c (s390_regsets): Likewise.
9383 * linux-sh-low.c (sh_regsets): Likewise.
9384 * linux-sparc-low.c (sparc_regsets): Likewise.
9385 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9386 * linux-tile-low.c (tile_regsets): Likewise.
9387 * linux-x86-low.c (x86_regsets): Likewise.
9388 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9390 2015-10-29 Pedro Alves <palves@redhat.com>
9392 * linux-low.h (NULL_REGSET): Define.
9393 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9394 * linux-arm-low.c (arm_regsets): Likewise.
9395 * linux-crisv32-low.c (cris_regsets): Likewise.
9396 * linux-m68k-low.c (m68k_regsets): Likewise.
9397 * linux-mips-low.c (mips_regsets): Likewise.
9398 * linux-nios2-low.c (nios2_regsets): Likewise.
9399 * linux-ppc-low.c (ppc_regsets): Likewise.
9400 * linux-s390-low.c (s390_regsets): Likewise.
9401 * linux-sh-low.c (sh_regsets): Likewise.
9402 * linux-sparc-low.c (sparc_regsets): Likewise.
9403 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9404 * linux-tile-low.c (tile_regsets): Likewise.
9405 * linux-x86-low.c (x86_regsets): Likewise.
9406 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9408 2015-10-26 Doug Evans <dje@google.com>
9410 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9412 2015-10-26 Doug Evans <dje@google.com>
9414 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9416 2015-10-26 Doug Evans <dje@google.com>
9418 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9420 (attach_thread, find_new_threads_callback): Ditto.
9422 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9424 * mem-break.h (set_breakpoint_data): Remove.
9426 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9428 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9429 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9430 (initialize_low): Remove set_breakpoint_data call.
9431 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9432 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9433 (initialize_low): Remove set_breakpoint_data call.
9434 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9435 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9436 (initialize_low): Remove set_breakpoint_data call.
9438 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9440 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9441 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9442 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9443 * target.h (target_breakpoint_kind_from_pc): New macro.
9445 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9447 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9448 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9449 the default breakpoint kind.
9451 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9453 * linux-arm-low.c (arm_supports_z_point_type): Add software
9456 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9458 * linux-arm-low.c: Refactor breakpoint definitions.
9459 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9460 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9462 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9464 * Makefile.in: Add arm.c/o.
9465 * configure.srv: Likewise.
9466 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9467 (arm_breakpoint_kind_from_pc): New function.
9468 (arm_sw_breakpoint_from_kind): Return proper kind.
9469 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9471 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9473 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9475 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9476 (struct raw_breakpoint) <size>: Remove.
9477 (struct raw_breakpoint) <kind>: Add.
9478 (bp_size): New function.
9479 (bp_opcode): Likewise.
9480 (find_raw_breakpoint_at): Adjust for kind.
9481 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9482 (remove_memory_breakpoint): Adjust for kind call bp_size.
9483 (set_raw_breakpoint_at): Adjust for kind.
9484 (set_breakpoint): Likewise.
9485 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9486 (delete_raw_breakpoint): Adjust for kind.
9487 (delete_breakpoint): Likewise.
9488 (find_gdb_breakpoint): Likewise.
9489 (set_gdb_breakpoint_1): Likewise.
9490 (set_gdb_breakpoint): Likewise.
9491 (delete_gdb_breakpoint_1): Likewise.
9492 (delete_gdb_breakpoint): Likewise.
9493 (uninsert_raw_breakpoint): Likewise.
9494 (reinsert_raw_breakpoint): Likewise.
9495 (set_breakpoint_data): Remove.
9496 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9497 (check_mem_read): Adjust for kind call bp_size.
9498 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9499 (clone_one_breakpoint): Adjust for kind.
9500 * mem-break.h (set_gdb_breakpoint): Likewise.
9501 (delete_gdb_breakpoint): Likewise.
9502 * server.c (process_serial_event): Likewise.
9504 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9506 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9507 (struct linux_target_ops) <breakpoint>: Remove.
9508 (struct linux_target_ops) <breakpoint_len>: Remove.
9509 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9510 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9511 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9512 (arm_sw_breakpoint_from_kind): New function.
9513 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9514 (struct linux_target_ops) <breakpoint>: Remove.
9515 (struct linux_target_ops) <breakpoint_len>: Remove.
9516 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9517 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9518 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9519 (struct linux_target_ops) <breakpoint>: Remove.
9520 (struct linux_target_ops) <breakpoint_len>: Remove.
9521 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9522 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9523 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9524 (struct linux_target_ops) <breakpoint>: Remove.
9525 (struct linux_target_ops) <breakpoint_len>: Remove.
9526 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9527 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9528 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9529 and sw_breakpoint_from_kind to increment the pc.
9530 (linux_breakpoint_kind_from_pc): New function.
9531 (linux_sw_breakpoint_from_kind): New function.
9532 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9533 (initialize_low): Call breakpoint_kind_from_pc and
9534 sw_breakpoint_from_kind to replace breakpoint_data/len.
9535 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9537 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9538 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9539 (struct linux_target_ops) <breakpoint>: Remove.
9540 (struct linux_target_ops) <breakpoint_len>: Remove.
9541 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9542 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9543 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9544 (struct linux_target_ops) <breakpoint>: Remove.
9545 (struct linux_target_ops) <breakpoint_len>: Remove.
9546 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9547 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9548 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9549 (struct linux_target_ops) <breakpoint>: Remove.
9550 (struct linux_target_ops) <breakpoint_len>: Remove.
9551 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9552 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9553 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9554 (struct linux_target_ops) <breakpoint>: Remove.
9555 (struct linux_target_ops) <breakpoint_len>: Remove.
9556 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9557 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9558 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9559 (struct linux_target_ops) <breakpoint>: Remove.
9560 (struct linux_target_ops) <breakpoint_len>: Remove.
9561 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9562 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9563 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9564 (struct linux_target_ops) <breakpoint>: Remove.
9565 (struct linux_target_ops) <breakpoint_len>: Remove.
9566 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9567 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9568 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9569 (struct linux_target_ops) <breakpoint>: Remove.
9570 (struct linux_target_ops) <breakpoint_len>: Remove.
9571 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9572 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9573 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9574 (struct linux_target_ops) <breakpoint>: Remove.
9575 (struct linux_target_ops) <breakpoint_len>: Remove.
9576 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9577 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9578 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9579 (struct linux_target_ops) <breakpoint>: Remove.
9580 (struct linux_target_ops) <breakpoint_len>: Remove.
9581 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9582 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9583 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9584 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9585 (struct linux_target_ops) <breakpoint>: Remove.
9586 (struct linux_target_ops) <breakpoint_len>: Remove.
9587 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9588 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9589 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9590 (struct linux_target_ops) <breakpoint>: Remove.
9591 (struct linux_target_ops) <breakpoint_len>: Remove.
9592 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9593 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9595 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9597 * linux-cris-low.c (cris_get_pc): Remove void arg.
9599 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9601 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9604 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9606 * inferiors.c (thread_pid_matches_callback): New function.
9607 (find_thread_process): New function.
9608 (remove_thread): Reset current_thread.
9609 (remove_process): Assert threads have been removed first.
9611 2015-10-15 Yao Qi <yao.qi@linaro.org>
9613 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9615 (aarch64_remove_point): Likewise.
9616 * regcache.c (regcache_register_size): New function.
9618 2015-10-12 Yao Qi <yao.qi@linaro.org>
9620 * linux-aarch64-low.c: Update all callers as emit_load_store
9621 is renamed to aarch64_emit_load_store.
9623 2015-10-12 Yao Qi <yao.qi@linaro.org>
9625 * linux-aarch64-low.c: Update all callers of function renaming
9626 from emit_insn to aarch64_emit_insn.
9628 2015-10-12 Yao Qi <yao.qi@linaro.org>
9630 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9631 arch/aarch64-insn.h.
9632 (struct aarch64_memory_operand): Likewise.
9634 (emit_insn): Move to arch/aarch64-insn.c.
9635 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9636 (emit_load_store): Move to arch/aarch64-insn.c.
9637 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9638 (can_encode_int32): Remove.
9640 2015-10-12 Yao Qi <yao.qi@linaro.org>
9642 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9643 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9644 (aarch64_relocate_instruction): Likewise.
9645 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9646 (struct aarch64_insn_visitor): Likewise.
9648 2015-10-12 Yao Qi <yao.qi@linaro.org>
9650 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9651 (struct aarch64_insn_visitor): New.
9652 (struct aarch64_insn_relocation_data): New.
9653 (aarch64_ftrace_insn_reloc_b): New function.
9654 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9655 (aarch64_ftrace_insn_reloc_cb): Likewise.
9656 (aarch64_ftrace_insn_reloc_tb): Likewise.
9657 (aarch64_ftrace_insn_reloc_adr): Likewise.
9658 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9659 (aarch64_ftrace_insn_reloc_others): Likewise.
9661 (aarch64_relocate_instruction): Use visitor.
9663 2015-10-12 Yao Qi <yao.qi@linaro.org>
9665 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9666 int. Add argument buf.
9667 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9668 aarch64_relocate_instruction.
9670 2015-10-12 Yao Qi <yao.qi@linaro.org>
9672 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9673 argument insn. Remove local variable insn. Don't call
9675 (aarch64_install_fast_tracepoint_jump_pad): Call
9678 2015-09-30 Yao Qi <yao.qi@linaro.org>
9680 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9681 (emit_load_store_pair): Likewise.
9683 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9685 * dll.c (match_dll): Add cast(s).
9686 (unloaded_dll): Likewise.
9687 * linux-low.c (second_thread_of_pid_p): Likewise.
9688 (delete_lwp_callback): Likewise.
9689 (count_events_callback): Likewise.
9690 (select_event_lwp_callback): Likewise.
9691 (linux_set_resume_request): Likewise.
9692 * server.c (accumulate_file_name_length): Likewise.
9693 (emit_dll_description): Likewise.
9694 (handle_qxfer_threads_worker): Likewise.
9695 (visit_actioned_threads): Likewise.
9696 * thread-db.c (any_thread_of): Likewise.
9697 * tracepoint.c (same_process_p): Likewise.
9698 (match_blocktype): Likewise.
9699 (build_traceframe_info_xml): Likewise.
9701 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9703 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9705 (gdb_unparse_agent_expr): Likewise.
9706 * hostio.c (require_data): Likewise.
9707 (handle_pread): Likewise.
9708 * linux-low.c (disable_regset): Likewise.
9709 (fetch_register): Likewise.
9710 (store_register): Likewise.
9711 (get_dynamic): Likewise.
9712 (linux_qxfer_libraries_svr4): Likewise.
9713 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9714 (set_fast_tracepoint_jump): Likewise.
9715 (uninsert_fast_tracepoint_jumps_at): Likewise.
9716 (reinsert_fast_tracepoint_jumps_at): Likewise.
9717 (validate_inserted_breakpoint): Likewise.
9718 (clone_agent_expr): Likewise.
9719 * regcache.c (init_register_cache): Likewise.
9720 * remote-utils.c (putpkt_binary_1): Likewise.
9721 (decode_M_packet): Likewise.
9722 (decode_X_packet): Likewise.
9723 (look_up_one_symbol): Likewise.
9724 (relocate_instruction): Likewise.
9725 (monitor_output): Likewise.
9726 * server.c (handle_search_memory): Likewise.
9727 (handle_qxfer_exec_file): Likewise.
9728 (handle_qxfer_libraries): Likewise.
9729 (handle_qxfer): Likewise.
9730 (handle_query): Likewise.
9731 (handle_v_cont): Likewise.
9732 (handle_v_run): Likewise.
9733 (captured_main): Likewise.
9734 * target.c (write_inferior_memory): Likewise.
9735 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9736 * tracepoint.c (init_trace_buffer): Likewise.
9737 (add_tracepoint_action): Likewise.
9738 (add_traceframe): Likewise.
9739 (add_traceframe_block): Likewise.
9740 (cmd_qtdpsrc): Likewise.
9741 (cmd_qtdv): Likewise.
9742 (cmd_qtstatus): Likewise.
9743 (response_source): Likewise.
9744 (response_tsv): Likewise.
9745 (cmd_qtnotes): Likewise.
9746 (gdb_collect): Likewise.
9747 (initialize_tracepoint): Likewise.
9749 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9751 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9752 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9753 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9755 (enum aarch64_condition_codes): New enum.
9756 (w0): New static global.
9759 (struct aarch64_memory_operand) <type>: New
9760 MEMORY_OPERAND_POSTINDEX type.
9761 (postindex_memory_operand): New helper function.
9762 (emit_ret): New function.
9763 (emit_load_store_pair): New function, factored out of emit_stp
9764 with support for MEMORY_OPERAND_POSTINDEX.
9765 (emit_stp): Rewrite using emit_load_store_pair.
9766 (emit_ldp): New function.
9767 (emit_load_store): Likewise.
9768 (emit_ldr): Mention post-index instruction in comment.
9769 (emit_ldrh): New function.
9770 (emit_ldrb): New function.
9771 (emit_ldrsw): Mention post-index instruction in comment.
9772 (emit_str): Likewise.
9773 (emit_subs): New function.
9774 (emit_cmp): Likewise.
9775 (emit_and): Likewise.
9776 (emit_orr): Likewise.
9777 (emit_orn): Likewise.
9778 (emit_eor): Likewise.
9779 (emit_mvn): Likewise.
9780 (emit_lslv): Likewise.
9781 (emit_lsrv): Likewise.
9782 (emit_asrv): Likewise.
9783 (emit_mul): Likewise.
9784 (emit_sbfm): Likewise.
9785 (emit_sbfx): Likewise.
9786 (emit_ubfm): Likewise.
9787 (emit_ubfx): Likewise.
9788 (emit_csinc): Likewise.
9789 (emit_cset): Likewise.
9790 (emit_nop): Likewise.
9791 (emit_ops_insns): New helper function.
9792 (emit_pop): Likewise.
9793 (emit_push): Likewise.
9794 (aarch64_emit_prologue): New function.
9795 (aarch64_emit_epilogue): Likewise.
9796 (aarch64_emit_add): Likewise.
9797 (aarch64_emit_sub): Likewise.
9798 (aarch64_emit_mul): Likewise.
9799 (aarch64_emit_lsh): Likewise.
9800 (aarch64_emit_rsh_signed): Likewise.
9801 (aarch64_emit_rsh_unsigned): Likewise.
9802 (aarch64_emit_ext): Likewise.
9803 (aarch64_emit_log_not): Likewise.
9804 (aarch64_emit_bit_and): Likewise.
9805 (aarch64_emit_bit_or): Likewise.
9806 (aarch64_emit_bit_xor): Likewise.
9807 (aarch64_emit_bit_not): Likewise.
9808 (aarch64_emit_equal): Likewise.
9809 (aarch64_emit_less_signed): Likewise.
9810 (aarch64_emit_less_unsigned): Likewise.
9811 (aarch64_emit_ref): Likewise.
9812 (aarch64_emit_if_goto): Likewise.
9813 (aarch64_emit_goto): Likewise.
9814 (aarch64_write_goto_address): Likewise.
9815 (aarch64_emit_const): Likewise.
9816 (aarch64_emit_call): Likewise.
9817 (aarch64_emit_reg): Likewise.
9818 (aarch64_emit_pop): Likewise.
9819 (aarch64_emit_stack_flush): Likewise.
9820 (aarch64_emit_zero_ext): Likewise.
9821 (aarch64_emit_swap): Likewise.
9822 (aarch64_emit_stack_adjust): Likewise.
9823 (aarch64_emit_int_call_1): Likewise.
9824 (aarch64_emit_void_call_2): Likewise.
9825 (aarch64_emit_eq_goto): Likewise.
9826 (aarch64_emit_ne_goto): Likewise.
9827 (aarch64_emit_lt_goto): Likewise.
9828 (aarch64_emit_le_goto): Likewise.
9829 (aarch64_emit_gt_goto): Likewise.
9830 (aarch64_emit_ge_got): Likewise.
9831 (aarch64_emit_ops_impl): New static global variable.
9832 (aarch64_emit_ops): New target function, return
9833 &aarch64_emit_ops_impl.
9834 (struct linux_target_ops): Install it.
9836 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9838 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9839 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9841 * linux-aarch64-ipa.c: New file.
9842 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9844 (aarch64_get_thread_area): New target method.
9845 (extract_signed_bitfield): New helper function.
9846 (aarch64_decode_ldr_literal): New function.
9847 (enum aarch64_opcodes): New enum.
9848 (struct aarch64_register): New struct.
9849 (struct aarch64_operand): New struct.
9850 (x0): New static global.
9859 (aarch64_register): New helper function.
9860 (register_operand): Likewise.
9861 (immediate_operand): Likewise.
9862 (struct aarch64_memory_operand): New struct.
9863 (offset_memory_operand): New helper function.
9864 (preindex_memory_operand): Likewise.
9865 (enum aarch64_system_control_registers): New enum.
9866 (ENCODE): New macro.
9867 (emit_insn): New helper function.
9868 (emit_b): New function.
9869 (emit_bcond): Likewise.
9870 (emit_cb): Likewise.
9871 (emit_tb): Likewise.
9872 (emit_blr): Likewise.
9873 (emit_stp): Likewise.
9874 (emit_ldp_q_offset): Likewise.
9875 (emit_stp_q_offset): Likewise.
9876 (emit_load_store): Likewise.
9877 (emit_ldr): Likewise.
9878 (emit_ldrsw): Likewise.
9879 (emit_str): Likewise.
9880 (emit_ldaxr): Likewise.
9881 (emit_stxr): Likewise.
9882 (emit_stlr): Likewise.
9883 (emit_data_processing_reg): Likewise.
9884 (emit_data_processing): Likewise.
9885 (emit_add): Likewise.
9886 (emit_sub): Likewise.
9887 (emit_mov): Likewise.
9888 (emit_movk): Likewise.
9889 (emit_mov_addr): Likewise.
9890 (emit_mrs): Likewise.
9891 (emit_msr): Likewise.
9892 (emit_sevl): Likewise.
9893 (emit_wfe): Likewise.
9894 (append_insns): Likewise.
9895 (can_encode_int32_in): New helper function.
9896 (aarch64_relocate_instruction): New function.
9897 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9898 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9899 (struct linux_target_ops): Install aarch64_get_thread_area,
9900 aarch64_install_fast_tracepoint_jump_pad and
9901 aarch64_get_min_fast_tracepoint_insn_len.
9903 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9905 * Makefile.in (aarch64-insn.o): New rule.
9906 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9908 2015-09-21 Yao Qi <yao.qi@linaro.org>
9910 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9912 2015-09-21 Yao Qi <yao.qi@linaro.org>
9914 * tracepoint.c (max_jump_pad_size): Remove.
9916 2015-09-18 Yao Qi <yao.qi@linaro.org>
9918 * linux-aarch64-low.c: Don't include sys/uio.h.
9919 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9921 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
9923 * tracepoint.c (eval_result_type): Change prototype.
9924 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9926 2015-09-15 Pedro Alves <palves@redhat.com>
9928 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9929 Check whether to report exec events instead of checking whether
9930 multiprocess is enabled.
9932 2015-09-15 Pedro Alves <palves@redhat.com>
9935 * remote-utils.c (prepare_resume_reply): Merge
9936 TARGET_WAITKIND_VFORK_DONE switch case with the
9937 TARGET_WAITKIND_FORKED case.
9939 2015-09-15 Yao Qi <yao.qi@linaro.org>
9941 * server.c (handle_query): Check string comparison using
9942 "else if" instead of "if".
9944 2015-09-15 Yao Qi <yao.qi@linaro.org>
9946 * server.c (vCont_supported): New global variable.
9947 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9948 matches. Append ";vContSupported+" to own_buf.
9949 (handle_v_requests): Append ";s;S" to own_buf if target supports
9950 hardware single step or vCont_supported is false.
9951 (capture_main): Set vCont_supported to zero.
9953 2015-09-15 Yao Qi <yao.qi@linaro.org>
9955 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9957 (linux_supports_hardware_single_step): ... New function.
9958 (linux_target_ops): Update.
9959 * lynx-low.c (lynx_target_ops): Set field
9960 supports_hardware_single_step to target_can_do_hardware_single_step.
9961 * nto-low.c (nto_target_ops): Likewise.
9962 * spu-low.c (spu_target_ops): Likewise.
9963 * win32-low.c (win32_target_ops): Likewise.
9964 * target.c (target_can_do_hardware_single_step): New function.
9965 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9966 Remove. <supports_hardware_single_step>: New field.
9967 (target_supports_conditional_breakpoints): Remove.
9968 (target_supports_hardware_single_step): New macro.
9969 (target_can_do_hardware_single_step): Declare.
9970 * server.c (handle_query): Use target_supports_hardware_single_step
9971 instead of target_supports_conditional_breakpoints.
9973 2015-09-15 Yao Qi <yao.qi@linaro.org>
9975 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9977 (struct linux_target_ops the_low_target): Install
9978 aarch64_linux_siginfo_fixup.
9980 2015-09-11 Don Breazeal <donb@codesourcery.com>
9981 Luis Machado <lgustavo@codesourcery.com>
9983 * linux-low.c (linux_mourn): Static declaration.
9984 (linux_arch_setup): Move in front of
9985 handle_extended_wait.
9986 (linux_arch_setup_thread): New function.
9987 (handle_extended_wait): Handle exec events. Call
9988 linux_arch_setup_thread. Make event_lwp argument a
9989 pointer-to-a-pointer.
9990 (check_zombie_leaders): Do not check stopped threads.
9991 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
9992 (linux_low_filter_event): Add lwp and thread for exec'ing
9993 non-leader thread if leader thread has been deleted.
9994 Refactor code into linux_arch_setup_thread and call it.
9995 Pass child lwp pointer by reference to handle_extended_wait.
9996 (linux_wait_for_event_filtered): Update comment.
9997 (linux_wait_1): Prevent clobbering exec event status.
9998 (linux_supports_exec_events): New function.
9999 (linux_target_ops) <supports_exec_events>: Initialize new member.
10000 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10002 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10003 * server.c (report_exec_events): New global variable.
10004 (handle_query): Handle qSupported query for exec-events feature.
10005 (captured_main): Initialize report_exec_events.
10006 * server.h (report_exec_events): Declare new global variable.
10007 * target.h (struct target_ops) <supports_exec_events>: New
10009 (target_supports_exec_events): New macro.
10010 * win32-low.c (win32_target_ops) <supports_exec_events>:
10011 Initialize new member.
10013 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10015 * linux-low.c (linux_low_enable_btrace): Remove.
10016 (linux_target_ops): Replace linux_low_enable_btrace with
10017 linux_enable_btrace.
10019 2015-09-03 Yao Qi <yao.qi@linaro.org>
10021 * linux-aarch64-low.c (aarch64_insert_point): Call
10022 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10025 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10027 * linux-low.c (check_stopped_by_breakpoint): Use
10028 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10030 2015-08-27 Pedro Alves <palves@redhat.com>
10032 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10034 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10036 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10037 the XNEW-family equivalent.
10038 (compile_bytecodes): Likewise.
10039 * dll.c (loaded_dll): Likewise.
10040 * event-loop.c (append_callback_event): Likewise.
10041 (create_file_handler): Likewise.
10042 (create_file_event): Likewise.
10043 * hostio.c (handle_open): Likewise.
10044 * inferiors.c (add_thread): Likewise.
10045 (add_process): Likewise.
10046 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10047 * linux-arm-low.c (arm_new_process): Likewise.
10048 (arm_new_thread): Likewise.
10049 * linux-low.c (add_to_pid_list): Likewise.
10050 (linux_add_process): Likewise.
10051 (handle_extended_wait): Likewise.
10052 (add_lwp): Likewise.
10053 (enqueue_one_deferred_signal): Likewise.
10054 (enqueue_pending_signal): Likewise.
10055 (linux_resume_one_lwp_throw): Likewise.
10056 (linux_resume_one_thread): Likewise.
10057 (linux_read_memory): Likewise.
10058 (linux_write_memory): Likewise.
10059 * linux-mips-low.c (mips_linux_new_process): Likewise.
10060 (mips_linux_new_thread): Likewise.
10061 (mips_add_watchpoint): Likewise.
10062 * linux-x86-low.c (initialize_low_arch): Likewise.
10063 * lynx-low.c (lynx_add_process): Likewise.
10064 * mem-break.c (set_raw_breakpoint_at): Likewise.
10065 (set_breakpoint): Likewise.
10066 (add_condition_to_breakpoint): Likewise.
10067 (add_commands_to_breakpoint): Likewise.
10068 (clone_agent_expr): Likewise.
10069 (clone_one_breakpoint): Likewise.
10070 * regcache.c (new_register_cache): Likewise.
10071 * remote-utils.c (look_up_one_symbol): Likewise.
10072 * server.c (queue_stop_reply): Likewise.
10073 (start_inferior): Likewise.
10074 (queue_stop_reply_callback): Likewise.
10075 (handle_target_event): Likewise.
10076 * spu-low.c (fetch_ppc_memory): Likewise.
10077 (store_ppc_memory): Likewise.
10078 * target.c (set_target_ops): Likewise.
10079 * thread-db.c (thread_db_load_search): Likewise.
10080 (try_thread_db_load_1): Likewise.
10081 * tracepoint.c (add_tracepoint): Likewise.
10082 (add_tracepoint_action): Likewise.
10083 (create_trace_state_variable): Likewise.
10084 (cmd_qtdpsrc): Likewise.
10085 (cmd_qtro): Likewise.
10086 (add_while_stepping_state): Likewise.
10087 * win32-low.c (child_add_thread): Likewise.
10088 (get_image_name): Likewise.
10090 2015-08-25 Yao Qi <yao.qi@linaro.org>
10092 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10094 2015-08-25 Yao Qi <yao.qi@linaro.org>
10096 * Makefile.in (aarch64-linux.o): New rule.
10097 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10099 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10100 (aarch64_init_debug_reg_state): Make it extern.
10101 (aarch64_linux_prepare_to_resume): Remove.
10103 2015-08-25 Yao Qi <yao.qi@linaro.org>
10105 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10106 lwp_arch_private_info and ptid_of_lwp.
10108 2015-08-25 Yao Qi <yao.qi@linaro.org>
10110 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10111 Find proc_info by find_process_pid. All callers updated.
10113 2015-08-25 Yao Qi <yao.qi@linaro.org>
10115 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10117 (debug_reg_change_callback): Remove.
10118 (aarch64_notify_debug_reg_change): Remove.
10120 2015-08-25 Yao Qi <yao.qi@linaro.org>
10122 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10123 Call current_lwp_ptid.
10125 2015-08-25 Yao Qi <yao.qi@linaro.org>
10127 * linux-aarch64-low.c (debug_reg_change_callback): Use
10130 2015-08-25 Yao Qi <yao.qi@linaro.org>
10132 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10134 2015-08-25 Yao Qi <yao.qi@linaro.org>
10136 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10138 2015-08-25 Yao Qi <yao.qi@linaro.org>
10140 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10143 2015-08-25 Yao Qi <yao.qi@linaro.org>
10145 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10147 (debug_reg_change_callback): Remove argument entry and add argument
10148 lwp. Remove local variable thread. Don't print thread id in the
10149 debugging output. Don't check whether pid of thread equals to pid.
10150 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10151 iterate_over_lwps instead find_inferior.
10153 2015-08-24 Pedro Alves <palves@redhat.com>
10155 * inferiors.c (get_first_process): New function.
10156 * inferiors.h (get_first_process): New declaration.
10157 * remote-utils.c (read_ptid): Default to the first process in the
10158 list, instead of to the current thread's process.
10160 2015-08-24 Pedro Alves <palves@redhat.com>
10162 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10163 * event-loop.c: Likewise.
10164 * remote-utils.c: Likewise.
10165 * tracepoint.c: Likewise.
10167 2015-08-24 Pedro Alves <palves@redhat.com>
10169 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10172 2015-08-21 Pedro Alves <palves@redhat.com>
10174 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10175 instead of literal 1.
10177 2015-08-21 Pedro Alves <palves@redhat.com>
10179 * tdesc.c (default_description): Explicitly zero-initialize.
10181 2015-08-21 Pedro Alves <palves@redhat.com>
10184 * inferiors.c (remove_thread): Discard any pending stop reply for
10186 * server.c (remove_all_on_match_pid): Rename to ...
10187 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10189 (discard_queued_stop_replies): Change parameter to a ptid. Now
10191 (handle_v_kill, kill_inferior_callback, captured_main)
10192 (process_serial_event): Adjust.
10193 * server.h (discard_queued_stop_replies): Declare.
10195 2015-08-21 Pedro Alves <palves@redhat.com>
10197 * linux-low.c (wait_for_sigstop): Always switch to no thread
10198 selected if the previously current thread dies.
10199 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10200 process instead of the current thread's.
10201 * remote-utils.c (input_interrupt): Don't check if there's no
10203 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10204 current thread to the general thread fails, error out.
10205 (handle_qxfer_auxv, handle_qxfer_libraries)
10206 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10207 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10208 (handle_query): Check if there's a thread selected instead of
10209 checking whether there's any thread in the thread list.
10210 (handle_qxfer_threads, handle_qxfer_btrace)
10211 (handle_qxfer_btrace_conf): Don't error out early if there's no
10212 thread in the thread list.
10213 (handle_v_cont, myresume): Don't set the current thread to the
10215 (process_serial_event) <Hg handling>: Also set thread_id if the
10216 previous general thread is still alive.
10217 (process_serial_event) <g/G handling>: If setting the current
10218 thread to the general thread fails, error out.
10219 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10220 thread's lwp instead of the current thread's.
10221 * target.c (set_desired_thread): If the desired thread was not
10222 found, leave the current thread pointing to NULL. Return an int
10223 (boolean) indicating success.
10224 * target.h (set_desired_thread): Change return type to int.
10226 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10228 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10229 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10231 (ps_get_thread_area): New function.
10233 2015-08-19 Gary Benson <gbenson@redhat.com>
10235 * hostio.c (handle_pread): Do not attempt to read more data
10236 than hostio_reply_with_data can fit in a packet.
10238 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10240 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10242 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10244 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10246 2015-08-06 Pedro Alves <palves@redhat.com>
10248 * tracepoint.c (expr_eval_result): Now an int.
10250 2015-08-06 Pedro Alves <palves@redhat.com>
10252 * gdbthread.h (struct regcache): Forward declare.
10253 (struct thread_info) <regcache_data>: Now a struct regcache
10255 * inferiors.c (inferior_regcache_data)
10256 (set_inferior_regcache_data): Now work with struct regcache
10258 * inferiors.h (struct regcache): Forward declare.
10259 (inferior_regcache_data, set_inferior_regcache_data): Now work
10260 with struct regcache pointers.
10261 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10262 (free_register_cache_thread): Remove struct regcache pointer
10265 2015-08-06 Pedro Alves <palves@redhat.com>
10267 * server.c (captured_main): On error, print the exception message
10268 to stderr, and if run_once is set, throw a quit.
10270 2015-08-06 Pedro Alves <palves@redhat.com>
10272 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10273 the current thread.
10275 2015-08-06 Pedro Alves <palves@redhat.com>
10277 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10278 reading beyond the passed in buffer length.
10280 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10282 * tracepoint.c (symbol_list) <required>: Remove.
10284 2015-08-06 Pedro Alves <palves@redhat.com>
10286 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10287 count if stopping and suspending threads.
10288 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10289 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10290 (linux_detach): Complete an ongoing step-over.
10291 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10293 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10294 (linux_wait_1): If passing a signal to the inferior after
10295 finishing a step-over, unsuspend and re-resume all lwps. If we
10296 see a single-step event but the thread should be continuing, don't
10297 pass the trap to gdb.
10298 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10299 internal_error instead of gdb_assert.
10300 (enqueue_pending_signal): New function.
10301 (check_ptrace_stopped_lwp_gone): Add debug output.
10302 (start_step_over): Use internal_error instead of gdb_assert.
10303 (complete_ongoing_step_over): New function.
10304 (linux_resume_one_thread): Don't resume a suspended thread.
10305 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10308 2015-08-06 Pedro Alves <palves@redhat.com>
10310 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10311 (linux_thread_alive): Use lwp_is_marked_dead.
10312 (extended_event_reported): Delete.
10313 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10314 instead of extended_event_reported.
10315 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10317 (lwp_is_marked_dead): New function.
10318 (lwp_running): Use lwp_is_marked_dead.
10319 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10322 2015-08-06 Pedro Alves <palves@redhat.com>
10324 * linux-low.c (linux_wait_1): Move fork event output out of the
10325 !report_to_gdb check. Pass event_child->waitstatus to
10326 target_waitstatus_to_string instead of ourstatus.
10328 2015-08-04 Yao Qi <yao.qi@linaro.org>
10330 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10331 if current_thread is 32 bit.
10333 2015-08-04 Yao Qi <yao.qi@linaro.org>
10335 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10336 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10337 * server.c (extended_protocol): Remove "static".
10338 * server.h (extended_protocol): Declare it.
10340 2015-08-04 Yao Qi <yao.qi@linaro.org>
10342 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10343 both aarch64 and aarch32.
10344 (aarch64_set_pc): Likewise.
10346 2015-08-04 Yao Qi <yao.qi@linaro.org>
10348 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10349 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10350 arm-with-neon.xml to srv_xmlfiles.
10351 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10352 (is_64bit_tdesc): New function.
10353 (aarch64_linux_read_description): New function.
10354 (aarch64_arch_setup): Call aarch64_linux_read_description.
10355 (regs_info): Rename to regs_info_aarch64.
10356 (aarch64_regs_info): Return right regs_info.
10357 (initialize_low_arch): Call initialize_low_arch_aarch32.
10359 2015-08-04 Yao Qi <yao.qi@linaro.org>
10361 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10362 * linux-aarch32-low.c: New file.
10363 * linux-aarch32-low.h: New file.
10364 * linux-arm-low.c (arm_fill_gregset): Move it to
10365 linux-aarch32-low.c.
10366 (arm_store_gregset): Likewise.
10367 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10368 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10369 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10370 (regs_info): Rename to regs_info_arm.
10371 (arm_regs_info): Return regs_info_aarch32 if
10372 have_ptrace_getregset is 1 and target description is
10373 arm_with_neon or arm_with_vfpv3.
10374 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10375 Call initialize_low_arch_aarch32 instead.
10377 2015-08-04 Yao Qi <yao.qi@linaro.org>
10379 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10380 * linux-low.c: ... here.
10381 * linux-low.h (have_ptrace_getregset): Declare it.
10383 2015-08-04 Pedro Alves <palves@redhat.com>
10385 * thread-db.c (struct thread_db): Use new typedefs.
10386 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10388 (disable_thread_event_reporting): Cast result of dlsym to
10389 destination function pointer type.
10390 (thread_db_mourn): Use td_ta_delete_ftype.
10392 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10394 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10396 (CDX_BREAKPOINT): Define for R2.
10397 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10398 (the_low_target): Add comments.
10400 2015-07-30 Yao Qi <yao.qi@linaro.org>
10402 * linux-arm-low.c (arm_hwcap): Remove it.
10403 (arm_read_description): New local variable arm_hwcap. Don't
10404 set arm_hwcap to zero.
10406 2015-07-30 Yao Qi <yao.qi@linaro.org>
10408 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10409 Use regcache->tdesc instead.
10410 (arm_store_wmmxregset): Likewise.
10411 (arm_fill_vfpregset): Likewise.
10412 (arm_store_vfpregset): Likewise.
10414 2015-07-30 Yao Qi <yao.qi@linaro.org>
10416 * linux-arm-low.c: Include arch/arm.h.
10417 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10418 (arm_store_gregset): Likewise.
10420 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10422 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10423 ptrace's 4th parameter.
10425 2015-07-27 Yao Qi <yao.qi@linaro.org>
10427 * configure.srv (case aarch64*-*-linux*): Don't set
10430 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10432 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10434 * linux-arm-low.c: Likewise.
10435 * linux-cris-low.c: Likewise.
10436 * linux-crisv32-low.c: Likewise.
10437 * linux-low.c: Likewise.
10438 * linux-m68k-low.c: Likewise.
10439 * linux-mips-low.c: Likewise.
10440 * linux-nios2-low.c: Likewise.
10441 * linux-s390-low.c: Likewise.
10442 * linux-sparc-low.c: Likewise.
10443 * linux-tic6x-low.c: Likewise.
10444 * linux-tile-low.c: Likewise.
10445 * linux-x86-low.c: Likewise.
10447 2015-07-24 Pedro Alves <palves@redhat.com>
10449 * config.in: Regenerate.
10450 * configure: Regenerate.
10452 2015-07-24 Pedro Alves <palves@redhat.com>
10454 * acinclude.m4: Include ../ptrace.m4.
10455 * configure.ac: Call GDB_AC_PTRACE.
10456 * config.in, configure: Regenerate.
10458 2015-07-24 Yao Qi <yao.qi@linaro.org>
10460 * linux-low.c (linux_create_inferior): Remove setting to
10461 proc->priv->new_inferior.
10462 (linux_attach): Likewise.
10463 (linux_low_filter_event): Likewise.
10464 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10466 2015-07-24 Yao Qi <yao.qi@linaro.org>
10468 * linux-low.c (linux_arch_setup): New function.
10469 (linux_low_filter_event): If proc->tdesc is NULL and
10470 proc->attached is true, call the_low_target.arch_setup.
10471 Otherwise, keep status pending, and return.
10472 (linux_resume_one_lwp_throw): Don't call get_pc if
10473 thread->while_stepping isn't NULL. Don't call
10474 get_thread_regcache if proc->tdesc is NULL.
10475 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10476 (linux_target_ops): Install arch_setup.
10477 * server.c (start_inferior): Call the_target->arch_setup.
10478 * target.h (struct target_ops) <arch_setup>: New field.
10479 (target_arch_setup): New marco.
10480 * lynx-low.c (lynx_target_ops): Update.
10481 * nto-low.c (nto_target_ops): Update.
10482 * spu-low.c (spu_target_ops): Update.
10483 * win32-low.c (win32_target_ops): Update.
10485 2015-07-24 Yao Qi <yao.qi@linaro.org>
10487 * linux-low.c (linux_add_process): Don't set
10488 proc->priv->new_inferior.
10489 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10490 (linux_attach): Likewise.
10492 2015-07-24 Yao Qi <yao.qi@linaro.org>
10494 * server.c (start_inferior): Code refactor.
10496 2015-07-24 Yao Qi <yao.qi@linaro.org>
10498 * server.c (process_serial_event): Set general_thread.
10500 2015-07-21 Yao Qi <yao.qi@linaro.org>
10502 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10503 aarch64_linux_get_debug_reg_capacity.
10505 2015-07-17 Yao Qi <yao.qi@linaro.org>
10507 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10508 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10509 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10510 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10511 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10512 (AARCH64_HWP_ALIGNMENT): Likewise.
10513 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10514 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10515 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10516 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10517 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10518 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10519 (struct aarch64_debug_reg_state): Likewise.
10520 (struct arch_lwp_info): Likewise.
10521 (aarch64_align_watchpoint): Likewise.
10522 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10523 (aarch64_watchpoint_length): Likewise.
10524 (aarch64_point_encode_ctrl_reg): Likewise
10525 (aarch64_point_is_aligned): Likewise.
10526 (aarch64_align_watchpoint): Likewise.
10527 (aarch64_linux_set_debug_regs):
10528 (aarch64_dr_state_insert_one_point): Likewise.
10529 (aarch64_dr_state_remove_one_point): Likewise.
10530 (aarch64_handle_breakpoint): Likewise.
10531 (aarch64_handle_aligned_watchpoint): Likewise.
10532 (aarch64_handle_unaligned_watchpoint): Likewise.
10533 (aarch64_handle_watchpoint): Likewise.
10535 2015-07-17 Yao Qi <yao.qi@linaro.org>
10537 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10538 and don't aarch64_get_debug_reg_state. All callers update.
10539 (aarch64_handle_aligned_watchpoint): Likewise.
10540 (aarch64_handle_unaligned_watchpoint): Likewise.
10541 (aarch64_handle_watchpoint): Likewise.
10542 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10543 (aarch64_remove_point): Likewise.
10545 2015-07-17 Yao Qi <yao.qi@linaro.org>
10547 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10549 (aarch64_handle_unaligned_watchpoint): Likewise.
10551 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10553 Revert the previous 3 commits:
10554 Move gdb_regex* to common/
10555 Move linux_find_memory_regions_full & co.
10556 gdbserver build-id attribute generator
10558 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10559 Jan Kratochvil <jan.kratochvil@redhat.com>
10561 gdbserver build-id attribute generator.
10562 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10563 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10564 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10566 (get_dynamic): Use find_pdhr to traverse program headers.
10567 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10568 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10569 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10570 (get_hex_build_id): New.
10571 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10572 to reply XML document.
10574 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10575 Jan Kratochvil <jan.kratochvil@redhat.com>
10577 * target.c: Include target/target-utils.h and fcntl.h.
10578 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10579 (target_fileio_read_stralloc): New functions.
10581 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10583 * Makefile.in (OBS): Add gdb_regex.o.
10584 (gdb_regex.o): New.
10585 * config.in: Rebuilt.
10586 * configure: Rebuilt.
10588 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10589 Jan Kratochvil <jan.kratochvil@redhat.com>
10591 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10592 * Makefile.in (OBS): Add target-utils.o.
10593 (linux-maps.o, target-utils.o): New.
10594 * configure.srv (srv_linux_obj): Add linux-maps.o.
10596 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10598 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10599 function, return 1.
10600 (the_low_target): Install it.
10602 2015-07-14 Pedro Alves <palves@redhat.com>
10604 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10605 Instead, ignore ECHILD, and throw an error for other errnos.
10607 2015-07-10 Pedro Alves <palves@redhat.com>
10609 * event-loop.c (struct callback_event) <data>: Change type to
10610 gdb_client_data instance instead of gdb_client_data pointer.
10611 (append_callback_event): Adjust.
10613 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10615 * linux-aarch64-low.c: Add comments for each linux_target_ops
10616 method. Remove comments already covered in target_ops and
10617 linux_target_ops definitions.
10618 (the_low_target): Add comments for each unimplemented method.
10620 2015-07-09 Yao Qi <yao.qi@linaro.org>
10622 * linux-aarch64-low.c (aarch64_regmap): Remove.
10623 (aarch64_usrregs_info): Remove.
10624 (regs_info): Set field usrregs to NULL.
10626 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10628 * linux-low.c: Include "rsp-low.h"
10629 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10630 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10631 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10632 (handle_btrace_enable_pt): New.
10633 (handle_btrace_general_set): Support "pt".
10634 (handle_btrace_conf_general_set): Support "pt:size".
10636 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10638 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10641 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10643 * linux-aarch64-low.c: Remove comment about endianness.
10644 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10645 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10648 2015-06-24 Gary Benson <gbenson@redhat.com>
10650 * linux-i386-ipa.c (stdint.h): Do not include.
10651 * lynx-i386-low.c (stdint.h): Likewise.
10652 * lynx-ppc-low.c (stdint.h): Likewise.
10653 * mem-break.c (stdint.h): Likewise.
10654 * thread-db.c (stdint.h): Likewise.
10655 * tracepoint.c (stdint.h): Likewise.
10656 * win32-low.c (stdint.h): Likewise.
10658 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10660 * server.c (write_qxfer_response): Update call to
10661 remote_escape_output.
10663 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10664 Jan Kratochvil <jan.kratochvil@redhat.com>
10666 Merge multiple hex conversions.
10667 * gdbreplay.c (tohex): Rename to 'fromhex'.
10668 (logchar): Use fromhex.
10670 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10672 * server.c (handle_qxfer_libraries): Set `version' attribute for
10675 2015-06-10 Gary Benson <gbenson@redhat.com>
10677 * target.h (struct target_ops) <multifs_open>: New field.
10678 <multifs_unlink>: Likewise.
10679 <multifs_readlink>: Likewise.
10680 * linux-low.c (nat/linux-namespaces.h): New include.
10681 (linux_target_ops): Initialize the_target->multifs_open,
10682 the_target->multifs_unlink and the_target->multifs_readlink.
10683 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10684 * hostio.c (hostio_fs_pid): New static variable.
10685 (hostio_handle_new_gdb_connection): New function.
10686 (handle_setfs): Likewise.
10687 (handle_open): Use the_target->multifs_open as appropriate.
10688 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10689 (handle_readlink): Use the_target->multifs_readlink as
10691 (handle_vFile): Handle vFile:setfs packets.
10692 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10693 after target_handle_new_gdb_connection.
10695 2015-06-10 Gary Benson <gbenson@redhat.com>
10697 * configure.ac (AC_CHECK_FUNCS): Add setns.
10698 * config.in: Regenerate.
10699 * configure: Likewise.
10700 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10701 (linux-namespaces.o): New rule.
10702 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10704 2015-06-09 Gary Benson <gbenson@redhat.com>
10706 * hostio.c (handle_open): Process mode argument with
10707 fileio_to_host_mode.
10709 2015-06-01 Yao Qi <yao.qi@linaro.org>
10711 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10712 * linux-x86-low.c: Likewise.
10714 2015-05-28 Don Breazeal <donb@codesourcery.com>
10716 * linux-low.c (handle_extended_wait): Initialize
10717 thread_info.last_resume_kind for new fork children.
10719 2015-05-15 Pedro Alves <palves@redhat.com>
10721 * target.h (target_handle_new_gdb_connection): Rewrite using if
10722 wrapped in do/while.
10724 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10726 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10727 * configure, config.in: Regenerate.
10728 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10731 2015-05-12 Don Breazeal <donb@codesourcery.com>
10733 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10734 PTRACE_EVENT_VFORK_DONE.
10735 (linux_low_ptrace_options, extended_event_reported): Add vfork
10737 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10738 and "vforkdone" for RSP 'T' Stop Reply Packet.
10739 * server.h (report_vfork_events): Declare
10742 2015-05-12 Don Breazeal <donb@codesourcery.com>
10744 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10745 (the_low_target) <new_fork>: Initialize new member.
10746 * linux-arm-low.c (arm_new_fork): New function.
10747 (the_low_target) <new_fork>: Initialize new member.
10748 * linux-low.c (handle_extended_wait): Call new target function
10750 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10751 * linux-mips-low.c (mips_add_watchpoint): New function
10752 extracted from mips_insert_point.
10753 (the_low_target) <new_fork>: Initialize new member.
10754 (mips_linux_new_fork): New function.
10755 (mips_insert_point): Call mips_add_watchpoint.
10756 * linux-x86-low.c (x86_linux_new_fork): New function.
10757 (the_low_target) <new_fork>: Initialize new member.
10759 2015-05-12 Don Breazeal <donb@codesourcery.com>
10761 * linux-low.c (handle_extended_wait): Implement return value,
10762 rename argument 'event_child' to 'event_lwp', handle
10763 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10764 (linux_low_ptrace_options): New function.
10765 (linux_low_filter_event): Call linux_low_ptrace_options,
10766 use different argument fo linux_enable_event_reporting,
10767 use return value from handle_extended_wait.
10768 (extended_event_reported): New function.
10769 (linux_wait_1): Call extended_event_reported and set
10770 status to report fork events.
10771 (linux_write_memory): Add pid to debug message.
10772 (reset_lwp_ptrace_options_callback): New function.
10773 (linux_handle_new_gdb_connection): New function.
10774 (linux_target_ops): Initialize new structure member.
10775 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10776 * lynx-low.c: Initialize new structure member.
10777 * remote-utils.c (prepare_resume_reply): Implement stop reason
10778 "fork" for "T" stop message.
10779 * server.c (handle_query): Call handle_new_gdb_connection.
10780 * server.h (report_fork_events): Declare global flag.
10781 * target.h (struct target_ops) <handle_new_gdb_connection>:
10783 (target_handle_new_gdb_connection): New macro.
10784 * win32-low.c: Initialize new structure member.
10786 2015-05-12 Don Breazeal <donb@codesourcery.com>
10788 * mem-break.c (APPEND_TO_LIST): Define macro.
10789 (clone_agent_expr): New function.
10790 (clone_one_breakpoint): New function.
10791 (clone_all_breakpoints): New function.
10792 * mem-break.h: Declare new functions.
10794 2015-05-12 Don Breazeal <donb@codesourcery.com>
10796 * linux-low.c (linux_supports_fork_events): New function.
10797 (linux_supports_vfork_events): New function.
10798 (linux_target_ops): Initialize new structure members.
10799 (initialize_low): Call linux_check_ptrace_features.
10800 * lynx-low.c (lynx_target_ops): Initialize new structure
10802 * server.c (report_fork_events, report_vfork_events):
10804 (handle_query): Add new features to qSupported packet and
10806 (captured_main): Initialize new global variables.
10807 * target.h (struct target_ops) <supports_fork_events>:
10809 <supports_vfork_events>: New member.
10810 (target_supports_fork_events): New macro.
10811 (target_supports_vfork_events): New macro.
10812 * win32-low.c (win32_target_ops): Initialize new structure
10815 2015-05-12 Gary Benson <gbenson@redhat.com>
10817 * server.c (handle_qxfer_exec_file): Use current process
10820 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10822 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10823 Remove HAVE_PTRACE_GETREGS conditionals.
10824 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10825 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10827 2015-05-08 Yao Qi <yao.qi@linaro.org>
10829 * linux-low.c (linux_supports_conditional_breakpoints): New
10831 (linux_target_ops): Install new target method.
10832 * lynx-low.c (lynx_target_ops): Install NULL hook for
10833 supports_conditional_breakpoints.
10834 * nto-low.c (nto_target_ops): Likewise.
10835 * spu-low.c (spu_target_ops): Likewise.
10836 * win32-low.c (win32_target_ops): Likewise.
10837 * server.c (handle_query): Check
10838 target_supports_conditional_breakpoints.
10839 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10841 (target_supports_conditional_breakpoints): New macro.
10843 2015-05-06 Pedro Alves <palves@redhat.com>
10846 * server.c (start_inferior): If the process exits, mourn it.
10848 2015-04-21 Gary Benson <gbenson@redhat.com>
10850 * hostio.c (fileio_open_flags_to_host): Factored out to
10851 fileio_to_host_openflags in common/fileio.c. Single use
10854 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10856 * linux-xtensa-low.c (xtensa_fill_gregset)
10857 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10860 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10862 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10863 (regs_info): Replace usrregs pointer with NULL.
10865 2015-04-17 Gary Benson <gbenson@redhat.com>
10867 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10868 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10869 * server.c (handle_qxfer_exec_file): New function.
10870 (qxfer_packets): Add exec-file entry.
10871 (handle_query): Report qXfer:exec-file:read as supported packet.
10873 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10875 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10877 2015-04-09 Gary Benson <gbenson@redhat.com>
10879 * hostio-errno.c (errno_to_fileio_error): Remove function.
10880 Update caller to use remote_fileio_to_fio_error.
10882 2015-04-09 Yao Qi <yao.qi@linaro.org>
10884 * linux-low.c (linux_insert_point): Call
10885 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10886 (linux_remove_point): Call remove_memory_breakpoint if type is
10888 * linux-x86-low.c (x86_insert_point): Don't call
10889 insert_memory_breakpoint.
10890 (x86_remove_point): Don't call remove_memory_breakpoint.
10892 2015-04-01 Pedro Alves <palves@redhat.com>
10893 Cleber Rosa <crosa@redhat.com>
10895 * server.c (gdbserver_usage): Reorganize and extend the usage
10898 2015-03-24 Pedro Alves <palves@redhat.com>
10900 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10901 output. Also dump TRAP_TRACE.
10902 (linux_low_filter_event): In debug output, distinguish a
10903 resume_stop SIGSTOP from a delayed SIGSTOP.
10905 2015-03-24 Gary Benson <gbenson@redhat.com>
10907 * linux-x86-low.c (x86_linux_new_thread): Moved to
10909 (x86_linux_prepare_to_resume): Likewise.
10911 2015-03-24 Gary Benson <gbenson@redhat.com>
10913 * Makefile.in (x86-linux-dregs.o): New rule.
10914 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10915 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10916 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10917 (x86_linux_dr_get): Likewise.
10918 (x86_linux_dr_set): Likewise.
10919 (update_debug_registers_callback): Likewise.
10920 (x86_linux_dr_set_addr): Likewise.
10921 (x86_linux_dr_get_addr): Likewise.
10922 (x86_linux_dr_set_control): Likewise.
10923 (x86_linux_dr_get_control): Likewise.
10924 (x86_linux_dr_get_status): Likewise.
10925 (x86_linux_update_debug_registers): Likewise.
10927 2015-03-24 Gary Benson <gbenson@redhat.com>
10929 * linux-x86-low.c (x86_linux_update_debug_registers):
10930 New function, factored out from...
10931 (x86_linux_prepare_to_resume): ...this.
10933 2015-03-24 Gary Benson <gbenson@redhat.com>
10935 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10936 (x86_linux_dr_set): Likewise.
10937 (update_debug_registers_callback): Likewise.
10938 (x86_linux_dr_set_addr): Likewise.
10939 (x86_linux_dr_get_addr): Likewise.
10940 (x86_linux_dr_set_control): Likewise.
10941 (x86_linux_dr_get_control): Likewise.
10942 (x86_linux_dr_get_status): Likewise.
10943 (x86_linux_prepare_to_resume): Likewise.
10945 2015-03-24 Gary Benson <gbenson@redhat.com>
10947 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10948 Use perror_with_name. Pass string through gettext.
10949 (x86_linux_dr_set): Likewise.
10951 2015-03-24 Gary Benson <gbenson@redhat.com>
10953 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10954 (x86_linux_dr_set_addr): ...this.
10955 (x86_dr_low_get_addr): Rename to...
10956 (x86_linux_dr_get_addr): ...this.
10957 (x86_dr_low_set_control): Rename to...
10958 (x86_linux_dr_set_control): ...this.
10959 (x86_dr_low_get_control): Rename to...
10960 (x86_linux_dr_get_control): ...this.
10961 (x86_dr_low_get_status): Rename to...
10962 (x86_linux_dr_get_status): ...this.
10963 (x86_dr_low): Update with new function names.
10965 2015-03-24 Gary Benson <gbenson@redhat.com>
10967 * Makefile.in (x86-linux.o): New rule.
10968 * configure.srv: Add x86-linux.o to relevant targets.
10969 * linux-low.c (lwp_set_arch_private_info): New function.
10970 (lwp_arch_private_info): Likewise.
10971 * linux-x86-low.c: Include nat/x86-linux.h.
10972 (arch_lwp_info): Removed structure.
10973 (update_debug_registers_callback):
10974 Use lwp_set_debug_registers_changed.
10975 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10976 and lwp_set_debug_registers_changed.
10977 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10979 2015-03-24 Gary Benson <gbenson@redhat.com>
10981 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10982 * linux-arm-low.c (arm_new_thread): Likewise.
10983 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10984 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10985 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10986 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
10988 2015-03-24 Gary Benson <gbenson@redhat.com>
10990 * linux-low.c (ptid_of_lwp): New function.
10991 (lwp_is_stopped): Likewise.
10992 (lwp_stop_reason): Likewise.
10993 * linux-x86-low.c (update_debug_registers_callback):
10994 Use lwp_is_stopped.
10995 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10998 2015-03-24 Gary Benson <gbenson@redhat.com>
11000 * linux-low.h (linux_stop_lwp): Remove declaration.
11002 2015-03-24 Gary Benson <gbenson@redhat.com>
11004 * linux-low.h: Include nat/linux-nat.h.
11005 * linux-low.c (iterate_over_lwps_args): New structure.
11006 (iterate_over_lwps_filter): New function.
11007 (iterate_over_lwps): Likewise.
11008 * linux-x86-low.c (update_debug_registers_callback):
11009 Update signature to what iterate_over_lwps expects.
11010 Remove PID check that iterate_over_lwps now performs.
11011 (x86_dr_low_set_addr): Use iterate_over_lwps.
11012 (x86_dr_low_set_control): Likewise.
11014 2015-03-24 Gary Benson <gbenson@redhat.com>
11016 * linux-x86-low.c (x86_debug_reg_state): New function.
11017 (x86_linux_prepare_to_resume): Use the above.
11019 2015-03-24 Gary Benson <gbenson@redhat.com>
11021 * linux-low.c (current_lwp_ptid): New function.
11022 * linux-x86-low.c: Include nat/linux-nat.h.
11023 (x86_dr_low_get_addr): Use current_lwp_ptid.
11024 (x86_dr_low_get_control): Likewise.
11025 (x86_dr_low_get_status): Likewise.
11027 2015-03-20 Pedro Alves <palves@redhat.com>
11029 * tracepoint.c (cmd_qtstatus): Make "str" const.
11031 2015-03-20 Pedro Alves <palves@redhat.com>
11033 * server.c (handle_general_set): Make "req_str" const.
11035 2015-03-19 Pedro Alves <palves@redhat.com>
11037 * linux-low.c (linux_resume_one_lwp): Rename to ...
11038 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11039 instead call perror_with_name.
11040 (check_ptrace_stopped_lwp_gone): New function.
11041 (linux_resume_one_lwp): Reimplement as wrapper around
11042 linux_resume_one_lwp_throw that swallows errors if the LWP is
11045 2015-03-19 Pedro Alves <palves@redhat.com>
11047 * linux-low.c (count_events_callback, select_event_lwp_callback):
11048 No longer check whether the thread has resume_stop as last resume
11051 2015-03-19 Pedro Alves <palves@redhat.com>
11053 * linux-low.c (count_events_callback, select_event_lwp_callback):
11054 Use the lwp's status_pending_p field, not the thread's.
11056 2015-03-19 Pedro Alves <palves@redhat.com>
11058 * linux-low.c (select_event_lwp_callback): Update comments to
11059 no longer mention SIGTRAP.
11061 2015-03-18 Gary Benson <gbenson@redhat.com>
11063 * server.c (handle_query): Do not report vFile:fstat as supported.
11065 2015-03-11 Gary Benson <gbenson@redhat.com>
11067 * hostio.c (sys/types.h): New include.
11068 (sys/stat.h): Likewise.
11069 (common-remote-fileio.h): Likewise.
11070 (handle_fstat): New function.
11071 (handle_vFile): Handle vFile:fstat packets.
11073 2015-03-11 Gary Benson <gbenson@redhat.com>
11075 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11076 struct stat.st_blocks and struct stat.st_blksize.
11077 * configure: Regenerate.
11078 * config.in: Likewise.
11079 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11080 (OBS): Add common-remote-fileio.o.
11081 (common-remote-fileio.o): New rule.
11083 2015-03-09 Pedro Alves <palves@redhat.com>
11085 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11086 'struct sockaddr' pointer in 'accept' call.
11088 2015-03-09 Pedro Alves <palves@redhat.com>
11091 2015-03-07 Pedro Alves <palves@redhat.com>
11092 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11093 or <winsock2.h> here. Instead include "gdb_socket.h".
11094 (remote_open): Use union gdb_sockaddr_u.
11095 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11096 or <winsock2.h> here. Instead include "gdb_socket.h".
11097 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11098 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11100 (init_named_socket, gdb_agent_helper_thread): Use union
11103 2015-03-07 Pedro Alves <palves@redhat.com>
11105 * configure.ac (build_warnings): Move
11106 -Wdeclaration-after-statement to the C-specific set.
11107 * configure: Regenerate.
11109 2015-03-07 Pedro Alves <palves@redhat.com>
11111 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11112 or <winsock2.h> here. Instead include "gdb_socket.h".
11113 (remote_open): Use union gdb_sockaddr_u.
11114 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11115 or <winsock2.h> here. Instead include "gdb_socket.h".
11116 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11117 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11119 (init_named_socket, gdb_agent_helper_thread): Use union
11122 2015-03-07 Pedro Alves <palves@redhat.com>
11124 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11127 2015-03-06 Yao Qi <yao.qi@linaro.org>
11129 * linux-aarch64-low.c (aarch64_insert_point): Use
11130 show_debug_regs as a boolean.
11131 (aarch64_remove_point): Likewise.
11133 2015-03-05 Pedro Alves <palves@redhat.com>
11135 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11136 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11137 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11138 * nto-low.c (nto_target_ops): Likewise.
11139 * spu-low.c (spu_target_ops): Likewise.
11140 * win32-low.c (win32_target_ops): Likewise.
11142 2015-03-04 Pedro Alves <palves@redhat.com>
11144 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11145 Decide whether a breakpoint triggered based on the SIGTRAP's
11147 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11148 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11149 (linux_low_filter_event): Check for breakpoints before checking
11151 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11153 (linux_stopped_by_sw_breakpoint)
11154 (linux_supports_stopped_by_sw_breakpoint)
11155 (linux_stopped_by_hw_breakpoint)
11156 (linux_supports_stopped_by_hw_breakpoint): New functions.
11157 (linux_target_ops): Install new target methods.
11159 2015-03-04 Pedro Alves <palves@redhat.com>
11161 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11162 * server.c (swbreak_feature, hwbreak_feature): New globals.
11163 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11164 (captured_main): Clear swbreak_feature and hwbreak_feature.
11165 * server.h (swbreak_feature, hwbreak_feature): Declare.
11166 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11167 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11168 supports_stopped_by_hw_breakpoint>: New fields.
11169 (target_supports_stopped_by_sw_breakpoint)
11170 (target_stopped_by_sw_breakpoint)
11171 (target_supports_stopped_by_hw_breakpoint)
11172 (target_stopped_by_hw_breakpoint): Declare.
11174 2015-03-04 Pedro Alves <palves@redhat.com>
11176 enum lwp_stop_reason -> enum target_stop_reason
11177 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11178 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11179 (linux_wait_1, stuck_in_jump_pad_callback)
11180 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11181 (linux_stopped_by_watchpoint):
11182 * linux-low.h (enum lwp_stop_reason): Delete.
11183 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11184 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11186 2015-03-04 Yao Qi <yao.qi@linaro.org>
11188 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11190 2015-03-03 Gary Benson <gbenson@redhat.com>
11192 * hostio.c (handle_vFile): Fix prefix lengths.
11194 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11196 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11199 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11201 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11202 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11203 (clean): Add "rm -f" for above C files.
11204 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11205 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11206 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11207 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11208 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11209 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11210 (init_registers_s390x_vx_linux64)
11211 (init_registers_s390x_tevx_linux64)
11212 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11213 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11215 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11216 (s390_store_vxrs_high): New functions.
11217 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11219 (s390_arch_setup): Add logic for selecting one of the new target
11220 descriptions. Activate the new vector regsets if applicable.
11221 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11222 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11223 and init_registers_s390x_tevx_linux64.
11225 2015-03-01 Pedro Alves <palves@redhat.com>
11227 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11230 2015-02-27 Pedro Alves <palves@redhat.com>
11232 * linux-x86-low.c (u_debugreg_offset): New function.
11233 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11235 2015-02-27 Pedro Alves <palves@redhat.com>
11237 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11238 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11239 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11240 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11241 (ps_lsetfpregs, ps_getpid)
11242 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11243 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11244 (ps_lsetxregs, ps_plog): Declare.
11246 2015-02-27 Pedro Alves <palves@redhat.com>
11248 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11249 IP_AGENT_EXPORT_FUNC.
11250 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11251 IP_AGENT_EXPORT_FUNC.
11252 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11253 (IP_AGENT_EXPORT): Delete.
11254 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11255 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11256 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11257 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11258 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11259 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11260 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11261 (traceframe_read_count, traceframe_write_count)
11262 (traceframes_created, trace_state_variables, get_raw_reg)
11263 (get_trace_state_variable_value, set_trace_state_variable_value)
11264 (ust_loaded, helper_thread_id, cmd_buf): Use
11265 IPA_SYM_EXPORTED_NAME.
11266 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11267 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11268 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11269 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11270 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11271 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11272 EXTERN_C_PUSH/EXTERN_C_POP.
11273 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11274 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11275 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11276 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11277 (traceframe_write_count, traceframe_read_count)
11278 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11279 (about_to_request_buffer_space, get_trace_state_variable_value)
11280 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11281 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11282 EXTERN_C_PUSH/EXTERN_C_POP.
11283 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11284 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11285 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11286 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11287 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11288 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11289 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11290 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11292 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11293 (IP_AGENT_EXPORT_VAR_DECL): Define.
11294 (tracing): Declare.
11295 (gdb_agent_get_raw_reg): Declare.
11297 2015-02-27 Tom Tromey <tromey@redhat.com>
11298 Pedro Alves <palves@redhat.com>
11300 Rename symbols whose names are reserved C++ keywords throughout.
11302 2015-02-27 Pedro Alves <palves@redhat.com>
11304 * Makefile.in (COMPILER): New, get it from autoconf.
11305 (CXX): Get from autoconf instead.
11306 (COMPILE.pre): Use COMPILER.
11307 (CC-LD): Rename to ...
11308 (CC_LD): ... this. Use COMPILER.
11309 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11310 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11311 * acinclude.m4: Include build-with-cxx.m4.
11312 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11313 Disable -Werror by default if building in C++ mode.
11314 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11315 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11316 the C++ compiler. Save/restore CXXFLAGS too.
11317 * configure: Regenerate.
11319 2015-02-27 Pedro Alves <palves@redhat.com>
11321 * acinclude.m4: Include libiberty.m4.
11322 * configure.ac: Call libiberty_INIT.
11323 * config.in, configure: Regenerate.
11325 2015-02-26 Pedro Alves <palves@redhat.com>
11327 * linux-low.c (linux_wait_1): When incrementing the PC past a
11328 program breakpoint always use the_low_target.breakpoint_len as
11329 increment, rather than the maximum between that and
11330 the_low_target.decr_pc_after_break.
11332 2015-02-23 Pedro Alves <palves@redhat.com>
11334 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11335 thread was doing a step-over; always adjust the PC if
11336 we stepped over a permanent breakpoint.
11337 (linux_wait_1): If we stepped over breakpoint that was on top of a
11338 permanent breakpoint, manually advance the PC past it.
11340 2015-02-23 Pedro Alves <palves@redhat.com>
11342 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11344 (x86_fill_gregset, x86_store_gregset): Use it when handling
11347 2015-02-20 Pedro Alves <palves@redhat.com>
11349 * thread-db.c: Include "nat/linux-procfs.h".
11350 (thread_db_init): Skip listing new threads if the kernel supports
11351 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11353 2015-02-20 Pedro Alves <palves@redhat.com>
11355 * linux-low.c (status_pending_p_callback): Use ptid_match.
11357 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11359 PR breakpoints/16812
11360 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11361 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11362 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11364 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11366 PR breakpoints/15956
11367 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11369 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11371 * linux-low.c (linux_low_btrace_conf): Print size.
11372 * server.c (handle_btrace_conf_general_set): New.
11373 (hanle_general_set): Call handle_btrace_conf_general_set.
11374 (handle_query): Report Qbtrace-conf:bts:size as supported.
11376 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11378 * linux-low.c (linux_low_enable_btrace): Update parameters.
11379 (linux_low_btrace_conf): New.
11380 (linux_target_ops)<to_btrace_conf>: Initialize.
11381 * server.c (current_btrace_conf): New.
11382 (handle_btrace_enable): Rename to ...
11383 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11384 to target_enable_btrace. Update comment. Update users.
11385 (handle_qxfer_btrace_conf): New.
11386 (qxfer_packets): Add btrace-conf entry.
11387 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11388 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11389 (target_ops)<read_btrace_conf>: New.
11390 (target_enable_btrace): Update parameters.
11391 (target_read_btrace_conf): New.
11393 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11395 * server.c (handle_btrace_general_set): Remove call to
11396 target_supports_btrace.
11397 (supported_btrace_packets): New.
11398 (handle_query): Call supported_btrace_packets.
11399 * target.h: include btrace-common.h.
11400 (btrace_target_info): Removed.
11401 (supports_btrace, target_supports_btrace): Update parameters.
11403 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11405 * Makefile.in (SFILES): Add common/btrace-common.c.
11406 (OBS): Add common/btrace-common.o.
11407 (btrace-common.o): Add build rules.
11408 * linux-low: Include btrace-common.h.
11409 (linux_low_read_btrace): Use struct btrace_data. Call
11410 btrace_data_init and btrace_data_fini.
11412 2015-02-06 Pedro Alves <palves@redhat.com>
11414 * thread-db.c (find_new_threads_callback): Add debug output.
11416 2015-02-04 Pedro Alves <palves@redhat.com>
11418 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11419 (resume_stopped_resumed_lwps): New function.
11420 (linux_wait_for_event_filtered): Use it.
11422 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11424 * Makefile.in (SFILES): Add linux-personality.c.
11425 (linux-personality.o): New rule.
11426 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11427 list of objects to be built.
11428 * linux-low.c: Include nat/linux-personality.h.
11429 (linux_create_inferior): Remove code to disable address space
11430 randomization (moved to ../nat/linux-personality.c). Create
11431 cleanup to disable address space randomization.
11433 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11435 * Makefile.in (posix-strerror.o): New rule.
11436 (mingw-strerror.o): Likewise.
11437 * configure: Regenerated.
11438 * configure.ac: Source file ../common/common.host. Initialize new
11439 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11441 2015-01-14 Yao Qi <yao@codesourcery.com>
11443 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11444 (ppc-linux.o): New rule.
11445 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11446 * configure.ac: AC_CHECK_FUNCS(getauxval).
11447 * config.in: Re-generated.
11448 * configure: Re-generated.
11449 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11450 ppc64_64bit_inferior_p
11452 2015-01-14 Yao Qi <yao@codesourcery.com>
11454 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11455 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11456 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11457 (PT_ORIG_R3, PT_TRAP): Likewise.
11458 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11459 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11460 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11462 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11464 * i387-fp.c (i387_cache_to_xsave): In look over
11465 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11466 zmmh_low_space field by use of zmmh_high_space.
11468 2015-01-09 Pedro Alves <palves@redhat.com>
11470 * linux-low.c (step_over_bkpt): Move higher up in the file.
11471 (handle_extended_wait): Don't store the stop_pc here.
11472 (get_stop_pc): Adjust comments and rename to ...
11473 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11474 stopped for a software breakpoint or hardware breakpoint.
11475 (thread_still_has_status_pending_p): New function.
11476 (status_pending_p_callback): Use
11477 thread_still_has_status_pending_p. If the event is no longer
11478 interesting, resume the LWP.
11479 (handle_tracepoints): Add assert.
11480 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11481 (wstatus_maybe_breakpoint): New function.
11482 (cancel_breakpoint): Delete function.
11483 (check_stopped_by_watchpoint): New function, factored out from
11484 linux_low_filter_event.
11485 (lp_status_maybe_breakpoint): Delete function.
11486 (linux_low_filter_event): Remove filter_ptid argument.
11487 Leave thread group exits pending here. Store the LWP's stop PC.
11488 Always leave events pending.
11489 (linux_wait_for_event_filtered): Pull all events out of the
11490 kernel, and leave them all pending.
11491 (count_events_callback, select_event_lwp_callback): Consider all
11493 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11494 (select_event_lwp): Only give preference to the stepping LWP in
11495 all-stop mode. Adjust comments.
11496 (ignore_event): New function.
11497 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11498 references to cancel_breakpoints. Adjust to renames. Also give
11499 equal priority to all LWPs that have had events in non-stop mode.
11500 If reporting a software breakpoint event, unadjust the LWP's PC.
11501 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11502 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11504 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11505 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11506 (linux_stopped_by_watchpoint): Adjust.
11507 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11508 * linux-low.h (enum lwp_stop_reason): New.
11509 (struct lwp_info) <stop_pc>: Adjust comment.
11510 <stopped_by_watchpoint>: Delete field.
11511 <stop_reason>: New field.
11512 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11513 * mem-break.c (software_breakpoint_inserted_here)
11514 (hardware_breakpoint_inserted_here): New function.
11515 * mem-break.h (software_breakpoint_inserted_here)
11516 (hardware_breakpoint_inserted_here): Declare.
11517 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11518 (cancel_breakpoints): Delete.
11519 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11520 (upload_fast_traceframes): Remove references to
11521 cancel_breakpoints.
11523 2015-01-09 Pedro Alves <palves@redhat.com>
11525 * thread-db.c (find_new_threads_callback): Ignore thread if the
11526 kernel thread ID is -1.
11528 2015-01-09 Pedro Alves <palves@redhat.com>
11530 * linux-low.c (linux_attach_fail_reason_string): Move to
11531 nat/linux-ptrace.c, and rename.
11532 (linux_attach_lwp): Update comment.
11533 (attach_proc_task_lwp_callback): New function.
11534 (linux_attach): Adjust to rename and use
11535 linux_proc_attach_tgid_threads.
11536 (linux_attach_fail_reason_string): Delete declaration.
11538 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11540 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11541 * server.c (gdbserver_version): Likewise.
11543 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11545 * remote-utils.c: Include ctype.h.
11546 (input_interrupt): Explicitly handle the case when the char
11547 received is the NUL byte. Improve the printing of non-ASCII
11550 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11552 * linux-low.c (linux_low_filter_event): Update call to
11553 linux_enable_event_reporting following the addition of
11554 a new parameter to that function.
11556 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11559 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11560 (AARCH64_FPCR_REGNO): Likewise.
11561 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11562 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11563 (aarch64_store_fpregset): Likewise.
11565 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11567 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11568 Remove FIXME comment about assumption about N.
11570 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11572 * configure.ac: If large-file support is disabled in GDBserver,
11573 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11574 * configure: Regenerate.
11576 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11578 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11579 warning upon ENODATA from ptrace.
11580 * linux-s390-low.c (s390_store_tdb): New.
11581 (s390_regsets): Add regset for NT_S390_TDB.
11583 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11585 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11586 without a fill_function.
11587 * linux-s390-low.c (s390_fill_last_break): Remove.
11588 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11589 (s390_arch_setup): Use regset's size instead of fill_function for
11590 loop end condition.
11592 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11594 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11595 the regset's store function when ptrace returned an error.
11596 * regcache.c (get_thread_regcache): Invalidate register cache
11597 before fetching inferior's registers.
11599 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11601 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11602 while-loop as for-loop.
11603 (regsets_store_inferior_registers): Likewise.
11605 2014-11-28 Yao Qi <yao@codesourcery.com>
11607 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11608 * config.in, configure: Re-generate.
11609 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11612 2014-11-21 Yao Qi <yao@codesourcery.com>
11614 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11615 (AC_CHECK_HEADERS): Remove malloc.h.
11616 * configure: Re-generated.
11617 * config.in: Re-generated.
11618 * server.h: Don't include alloca.h and malloc.h.
11619 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11620 Don't include malloc.h.
11622 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11624 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11625 corresponding ERRNO check in same block.
11627 2014-11-12 Pedro Alves <palves@redhat.com>
11629 * server.c (cont_thread): Update comment.
11630 (start_inferior, attach_inferior): No longer clear cont_thread.
11631 (handle_v_cont): No longer set cont_thread.
11632 (captured_main): Clear cont_thread each time a GDB connects.
11634 2014-11-12 Pedro Alves <palves@redhat.com>
11636 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11637 thread, and don't resume all threads if the Hc thread has exited.
11639 2014-11-12 Pedro Alves <palves@redhat.com>
11641 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11642 the process group instead of to a specific LWP.
11644 2014-10-15 Pedro Alves <palves@redhat.com>
11647 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11649 (arm_set_thread_context): Delete.
11650 (the_low_target): Adjust.
11651 * win32-i386-low.c (debug_registers_changed)
11652 (debug_registers_used): Delete.
11653 (update_debug_registers_callback): New function.
11654 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11655 needing to update their debug registers.
11656 (win32_get_current_dr): New function.
11657 (x86_dr_low_get_addr, x86_dr_low_get_control)
11658 (x86_dr_low_get_status): Fetch the debug register from the thread
11660 (i386_initial_stuff): Adjust.
11661 (i386_get_thread_context): Remove current_event parameter. Don't
11662 clear debug_registers_changed nor copy DR values to
11664 (i386_set_thread_context): Delete.
11665 (i386_prepare_to_resume): New function.
11666 (i386_thread_added): Mark the thread as needing to update irs
11668 (the_low_target): Remove i386_set_thread_context and install
11669 i386_prepare_to_resume.
11670 * win32-low.c (win32_get_thread_context): Adjust.
11671 (win32_set_thread_context): Use SetThreadContext
11673 (win32_prepare_to_resume): New function.
11674 (win32_require_context): New function, factored out from ...
11675 (thread_rec): ... this.
11676 (continue_one_thread): Call win32_prepare_to_resume on each thread
11677 we're about to continue.
11678 (win32_resume): Call win32_prepare_to_resume on the event thread.
11679 * win32-low.h (struct win32_thread_info)
11680 <debug_registers_changed>: New field.
11681 (struct win32_target_ops): Change prototype of set_thread_context,
11682 delete set_thread_context and add prepare_to_resume.
11683 (win32_require_context): New declaration.
11685 2014-10-08 Gary Benson <gbenson@redhat.com>
11687 * server.h: Do not include common-exceptions.h.
11689 2014-10-08 Gary Benson <gbenson@redhat.com>
11691 * server.h: Do not include cleanups.h.
11693 2014-09-30 James Hogan <james.hogan@imgtec.com>
11695 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11696 mips64-dsp-linux.c.
11698 2014-09-23 Yao Qi <yao@codesourcery.com>
11700 * linux-low.c (lp_status_maybe_breakpoint): New function.
11701 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11702 (count_events_callback): Likewise.
11703 (select_event_lwp_callback): Likewise.
11704 (cancel_breakpoints_callback): Likewise.
11706 2014-09-19 Don Breazeal <donb@codesourcery.com>
11708 * linux-low.c (handle_extended_wait): Call
11709 linux_ptrace_get_extended_event.
11710 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11711 linux_is_extended_waitstatus.
11713 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11715 * Makefile.in (CPPFLAGS): Define.
11716 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11717 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11719 2014-09-16 Gary Benson <gbenson@redhat.com>
11721 * inferiors.h (current_inferior): Renamed as...
11722 (current_thread): New variable. All uses updated.
11723 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11724 (maybe_move_out_of_jump_pad): Likewise.
11725 (cancel_breakpoint): Likewise.
11726 (linux_low_filter_event): Likewise.
11727 (wait_for_sigstop): Likewise.
11728 (linux_resume_one_lwp): Likewise.
11729 (need_step_over_p): Likewise.
11730 (start_step_over): Likewise.
11731 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11732 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11733 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11734 and save_inferior as saved_thread.
11735 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11737 (regcache_invalidate_thread): Likewise.
11738 * remote-utils.c (prepare_resume_reply): Likewise.
11739 * thread-db.c (thread_db_get_tls_address): Likewise.
11740 (disable_thread_event_reporting): Likewise.
11741 (remove_thread_event_breakpoints): Likewise.
11742 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11744 * target.h (set_desired_inferior): Renamed as...
11745 (set_desired_thread): New declaration. All uses updated.
11746 * server.c (myresume): Updated comment to reference thread instead
11748 (handle_serial_event): Likewise.
11749 (handle_target_event): Likewise.
11751 2014-09-12 Tom Tromey <tromey@redhat.com>
11752 Gary Benson <gbenson@redhat.com>
11754 * regcache.h: Include common-regcache.h.
11755 (regcache_read_pc): Don't declare.
11756 * regcache.c (get_thread_regcache_for_ptid): New function.
11758 2014-09-11 Tom Tromey <tromey@redhat.com>
11759 Gary Benson <gbenson@redhat.com>
11761 * symbol.c: New file.
11762 * Makefile.in (SFILES): Add symbol.c.
11763 (OBS): Add symbol.o.
11765 2014-09-11 Gary Benson <gbenson@redhat.com>
11767 * target.c (target_stop_ptid, target_continue_ptid): New
11770 2014-09-11 Tom Tromey <tromey@redhat.com>
11771 Gary Benson <gbenson@redhat.com>
11773 * target.h: Include target/target.h.
11774 * target.c (target_read_memory, target_read_uint32)
11775 (target_write_memory): New functions.
11777 2014-09-11 Gary Benson <gbenson@redhat.com>
11779 * server.h (debug_hw_points): Don't declare.
11780 * server.c (debug_hw_points): Don't define. Replace all uses
11781 with show_debug_regs.
11782 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11783 all uses with show_debug_regs.
11785 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11787 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11788 endianness into account.
11789 (ppc_supply_ptrace_register): Likewise.
11791 2014-09-03 James Hogan <james.hogan@imgtec.com>
11793 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11794 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11796 2014-09-03 Gary Benson <gbenson@redhat.com>
11798 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11799 ALL_DEBUG_ADDRESS_REGISTERS.
11801 2014-09-02 Gary Benson <gbenson@redhat.com>
11803 * i386-low.h: Renamed as...
11804 * x86-low.h: New file. All type, function and variable name
11805 prefixes changed from "i386_" to "x86_". All references updated.
11806 * i386-low.c: Renamed as...
11807 * x86-low.c: New file. All type, function and variable name
11808 prefixes changed from "i386_" to "x86_". All references updated.
11810 2014-09-02 Gary Benson <gbenson@redhat.com>
11812 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11813 (x86_linux_new_thread): Likewise.
11815 2014-08-29 Gary Benson <gbenson@redhat.com>
11817 * server.h (setjmp.h): Do not include.
11818 (toplevel): Do not declare.
11819 (common-exceptions.h): Include.
11820 (cleanups.h): Likewise.
11821 * server.c (toplevel): Do not define.
11822 (exit_code): New static global.
11823 (detach_or_kill_for_exit_cleanup): New function.
11824 (main): New function. Original main renamed to...
11825 (captured_main): New function.
11826 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11828 2014-08-29 Gary Benson <gbenson@redhat.com>
11830 * Makefile.in (SFILES): Add common/common-exceptions.c.
11831 (OBS): Add common-exceptions.o.
11832 (common-exceptions.o): New rule.
11833 * utils.c (prepare_to_throw_exception): New function.
11835 2014-08-29 Gary Benson <gbenson@redhat.com>
11837 * config.in: Regenerate.
11838 * configure: Likewise.
11840 2014-08-29 Gary Benson <gbenson@redhat.com>
11842 * Makefile.in (SFILES): Add common/cleanups.c.
11844 (cleanups.o): New rule.
11846 2014-08-29 Gary Benson <gbenson@redhat.com>
11848 * utils.c (internal_vwarning): New function.
11850 2014-08-28 Gary Benson <gbenson@redhat.com>
11852 * utils.h (fatal): Remove declaration.
11853 * utils.c (fatal): Remove function.
11855 2014-08-28 Gary Benson <gbenson@redhat.com>
11857 * tracepoint.c (gdb_agent_init): Replace fatal with
11859 (initialize_tracepoint): Likewise.
11861 2014-08-28 Gary Benson <gbenson@redhat.com>
11863 * remote-utils.c (remote_prepare): Replace fatal with error.
11865 2014-08-28 Gary Benson <gbenson@redhat.com>
11867 * linux-low.c (linux_async): Replace fatal with warning.
11868 Tidy up and return.
11869 (linux_start_non_stop): Return -1 if linux_async failed.
11871 2014-08-28 Gary Benson <gbenson@redhat.com>
11873 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11875 (i386_dr_low_get_addr): Remove vague comment.
11876 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11879 2014-08-28 Gary Benson <gbenson@redhat.com>
11881 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11882 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11884 (linux_resume_one_lwp): Likewise.
11885 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11887 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11888 with internal_error.
11889 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11890 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11891 (find_register_by_name): Replace fatal with internal_error.
11892 (find_regno): Likewise.
11893 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11894 * thread-db.c (thread_db_create_event): Likewise.
11895 (thread_db_load_search): Likewise.
11896 (try_thread_db_load_1): Likewise.
11897 * tracepoint.c (get_jump_space_head): Replace fatal with
11899 (claim_trampoline_space): Likewise.
11900 (have_fast_tracepoint_trampoline_buffer): Likewise.
11901 (cmd_qtstart): Likewise.
11902 (stop_tracing): Likewise.
11903 (fast_tracepoint_collecting): Likewise.
11904 (target_malloc): Likewise.
11905 (download_tracepoint): Likewise.
11906 (download_trace_state_variables): Replace check with gdb_assert.
11907 (upload_fast_traceframes): Replace fatal with internal_error.
11909 2014-08-19 Tom Tromey <tromey@redhat.com>
11910 Gary Benson <gbenson@redhat.com>
11912 * Makefile.in (SFILES): Add common/common-debug.c.
11913 (OBS): Add common-debug.o.
11914 (common-debug.o): New rule.
11915 * debug.h (debug_printf): Don't declare.
11916 * debug.c (debug_printf): Renamed and rewritten as...
11917 (debug_vprintf): New function.
11919 2014-08-19 Gary Benson <gbenson@redhat.com>
11921 * utils.h: Do not include print-utils.h.
11923 2014-08-19 Tom Tromey <tromey@redhat.com>
11924 Gary Benson <gbenson@redhat.com>
11926 * server.h: Add static assertion.
11927 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11929 2014-08-19 Tom Tromey <tromey@redhat.com>
11930 Gary Benson <gbenson@redhat.com>
11932 * Makefile.in (SFILES): Add common/errors.c.
11933 (OBS): Add errors.o.
11934 (IPA_OBS): Add errors-ipa.o.
11935 (errors.o): New rule.
11936 (errors-ipa.o): Likewise.
11937 * utils.h (perror_with_name, error, warning): Don't declare.
11938 * utils.c (warning): Renamed and rewritten as...
11939 (vwarning): New function.
11940 (error): Renamed and rewritten as...
11941 (verror): New function.
11942 (internal_error): Renamed and rewritten as...
11943 (internal_verror): New function.
11945 2014-08-07 Gary Benson <gbenson@redhat.com>
11947 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11948 * configure: Regenerate.
11949 * config.in: Likewise.
11950 * server.h: Do not include errno.h.
11951 * event-loop.c: Likewise.
11952 * hostio-errno.c: Likewise.
11953 * linux-low.c: Likewise.
11954 * remote-utils.c: Likewise.
11955 * spu-low.c: Likewise.
11956 * utils.c: Likewise.
11957 * gdbreplay.c: Unconditionally include errno.h.
11959 2014-08-07 Gary Benson <gbenson@redhat.com>
11961 * server.h: Do not include string.h.
11962 * event-loop.c: Likewise.
11963 * linux-low.c: Likewise.
11964 * regcache.c: Likewise.
11965 * remote-utils.c: Likewise.
11966 * spu-low.c: Likewise.
11967 * utils.c: Likewise.
11969 2014-08-07 Gary Benson <gbenson@redhat.com>
11971 * server.h: Do not include gdb_assert.h.
11973 2014-08-07 Gary Benson <gbenson@redhat.com>
11975 * server.h: Do not include common-utils.h.
11977 2014-08-07 Gary Benson <gbenson@redhat.com>
11979 * server.h: Do not include ptid.h.
11980 * notif.h: Likewise.
11982 2014-08-07 Gary Benson <gbenson@redhat.com>
11984 * server.h: Do not include gdb_locale.h.
11986 2014-08-07 Gary Benson <gbenson@redhat.com>
11988 * server.h: Do not include gdb/signals.h.
11989 * win32-low.c: Likewise.
11991 2014-08-07 Gary Benson <gbenson@redhat.com>
11993 * server.h: Do not include pathmax.h.
11995 2014-08-07 Gary Benson <gbenson@redhat.com>
11997 * server.h: Do not include libiberty.h.
11998 * linux-bfin-low.c: Likewise.
12000 2014-08-07 Gary Benson <gbenson@redhat.com>
12002 * server.h: Do not include ansidecl.h.
12004 2014-08-07 Gary Benson <gbenson@redhat.com>
12006 * linux-x86-low.c: Do not include stddef.h.
12007 * lynx-ppc-low.c: Likewise.
12008 * tracepoint.c: Likewise.
12010 2014-08-07 Gary Benson <gbenson@redhat.com>
12012 * server.h: Do not include stdarg.h.
12013 * nto-low.c: Likewise.
12015 2014-08-07 Gary Benson <gbenson@redhat.com>
12017 * server.h: Do not include stdlib.h.
12018 * inferiors.c: Likewise.
12019 * linux-low.c: Likewise.
12020 * regcache.c: Likewise.
12021 * spu-low.c: Likewise.
12022 * tracepoint.c: Likewise.
12023 * utils.c: Likewise.
12025 2014-08-07 Gary Benson <gbenson@redhat.com>
12027 * server.h: Do not include stdio.h.
12028 * linux-low.c: Likewise.
12029 * remote-utils.c: Likewise.
12030 * spu-low.c: Likewise.
12031 * utils.c: Likewise.
12032 * wincecompat.c: Likewise.
12034 2014-08-06 Gary Benson <gbenson@redhat.com>
12036 * regcache.c (init_register_cache): Move conditionals inside if.
12038 2014-08-06 Gary Benson <gbenson@redhat.com>
12040 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12042 2014-07-31 Gary Benson <gbenson@redhat.com>
12044 * ax.h: Do not include server.h.
12045 * gdbthread.h: Likewise.
12046 * lynx-low.h: Likewise.
12047 * notif.h: Likewise.
12049 2014-07-30 Gary Benson <gbenson@redhat.com>
12051 * server.h: Include common-defs.h.
12052 Do not include config.h or build-gnulib-gdbserver/config.h.
12054 2014-07-30 Gary Benson <gbenson@redhat.com>
12056 * hostio-errno.c: Move server.h to top of includes list.
12057 * inferiors.c: Likewise.
12058 * linux-x86-low.c: Likewise.
12059 * notif.c: Include server.h.
12061 2014-07-24 Tom Tromey <tromey@redhat.com>
12062 Gary Benson <gbenson@redhat.com>
12064 * server.h (CORE_ADDR): Now unsigned.
12066 2014-07-16 Pedro Alves <palves@redhat.com>
12068 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12070 2014-07-15 Pedro Alves <palves@redhat.com>
12072 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12075 2014-07-11 Pedro Alves <palves@redhat.com>
12077 * linux-low.c (kill_wait_lwp): New function, based on
12078 kill_one_lwp_callback, but use my_waitpid directly.
12079 (kill_one_lwp_callback, linux_kill): Use it.
12081 2014-06-23 Pedro Alves <palves@redhat.com>
12083 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12084 before setting DR0..DR3.
12086 2014-06-20 Gary Benson <gbenson@redhat.com>
12088 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12089 * configure: Regenerated.
12090 * config.in: Likewise.
12092 2014-06-20 Gary Benson <gbenson@redhat.com>
12094 * Makefile.in (SFILES): Update locations for files moved
12095 from common to nat.
12096 (object file files): Reordered.
12098 2014-06-20 Gary Benson <gbenson@redhat.com>
12100 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12101 (i386_dr_low_set_addr): Likewise.
12102 (i386_dr_low_get_addr): Likewise.
12103 (i386_dr_low_can_set_control): Likewise.
12104 (i386_dr_low_set_control): Likewise.
12105 (i386_dr_low_get_control): Likewise.
12106 (i386_dr_low_get_status): Likewise.
12107 (i386_get_debug_register_length): Likewise.
12108 * linux-x86-low.c (i386_dr_low_set_addr):
12109 Changed signature. Made static.
12110 (i386_dr_low_get_addr): Likewise.
12111 (i386_dr_low_set_control): Likewise.
12112 (i386_dr_low_get_control): Likewise.
12113 (i386_dr_low_get_status): Likewise.
12114 (i386_dr_low): New global variable.
12115 * win32-i386-low.c (i386_dr_low_set_addr):
12116 Changed signature. Made static.
12117 (i386_dr_low_get_addr): Likewise.
12118 (i386_dr_low_set_control): Likewise.
12119 (i386_dr_low_get_control): Likewise.
12120 (i386_dr_low_get_status): Likewise.
12121 (i386_dr_low): New global variable.
12123 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12125 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12126 * Makefile.in (AR, AR_FLAGS): Define.
12127 * configure: Regenerate.
12129 2014-06-19 Gary Benson <gbenson@redhat.com>
12131 * Makefile.in (i386-dregs.o): New rule.
12132 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12133 * i386-low.c (target.h): Remove include.
12134 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12135 (DR_CONTROL_SHIFT): Likewise.
12136 (DR_CONTROL_SIZE): Likewise.
12137 (DR_RW_EXECUTE): Likewise.
12138 (DR_RW_WRITE): Likewise.
12139 (DR_RW_READ): Likewise.
12140 (DR_RW_IORW): Likewise.
12141 (DR_LEN_1): Likewise.
12142 (DR_LEN_2): Likewise.
12143 (DR_LEN_4): Likewise.
12144 (DR_LEN_8): Likewise.
12145 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12146 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12147 (DR_ENABLE_SIZE): Likewise.
12148 (DR_LOCAL_SLOWDOWN): Likewise.
12149 (DR_GLOBAL_SLOWDOWN): Likewise.
12150 (DR_CONTROL_RESERVED): Likewise.
12151 (I386_DR_CONTROL_MASK): Likewise.
12152 (I386_DR_VACANT): Likewise.
12153 (I386_DR_LOCAL_ENABLE): Likewise.
12154 (I386_DR_GLOBAL_ENABLE): Likewise.
12155 (I386_DR_DISABLE): Likewise.
12156 (I386_DR_SET_RW_LEN): Likewise.
12157 (I386_DR_GET_RW_LEN): Likewise.
12158 (I386_DR_WATCH_HIT): Likewise.
12159 (i386_wp_op_t): Likewise.
12160 (i386_show_dr): Likewise.
12161 (i386_length_and_rw_bits): Likewise.
12162 (i386_insert_aligned_watchpoint): Likewise.
12163 (i386_remove_aligned_watchpoint): Likewise.
12164 (i386_handle_nonaligned_watchpoint): Likewise.
12165 i386_update_inferior_debug_regs(): Likewise.
12166 (i386_dr_insert_watchpoint): Likewise.
12167 (i386_dr_remove_watchpoint): Likewise.
12168 (i386_dr_region_ok_for_watchpoint): Likewise.
12169 (i386_dr_stopped_data_address): Likewise.
12170 (i386_dr_stopped_by_watchpoint): Likewise.
12172 2014-06-19 Gary Benson <gbenson@redhat.com>
12174 * i386-low.c (i386_dr_show): Renamed to
12175 i386_show_dr and made static. All uses updated.
12176 (i386_dr_length_and_rw_bits): Renamed to
12177 i386_length_and_rw_bits and made static.
12179 (i386_dr_insert_aligned_watchpoint): Renamed to
12180 i386_insert_aligned_watchpoint and made static.
12182 (i386_dr_remove_aligned_watchpoint): Renamed to
12183 i386_remove_aligned_watchpoint and made static.
12185 (i386_dr_update_inferior_debug_regs): Renamed to
12186 i386_update_inferior_debug_regs and made static.
12189 2014-06-18 Gary Benson <gbenson@redhat.com>
12191 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12192 (i386_dr_low_can_set_control): Likewise.
12193 (i386_get_debug_register_length): Likewise.
12194 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12195 (i386_dr_low_can_set_control): Likewise.
12196 (i386_get_debug_register_length): Likewise.
12198 2014-06-17 Gary Benson <gbenson@redhat.com>
12200 * i386-low.h (i386-dregs.h): New include.
12201 (DR_FIRSTADDR): Now in i386-dregs.h.
12202 (DR_LASTADDR): Likewise.
12203 (DR_NADDR): Likewise.
12204 (DR_STATUS): Likewise.
12205 (DR_CONTROL): Likewise.
12206 (i386_debug_reg_state): Likewise.
12207 (i386_dr_insert_watchpoint): Likewise.
12208 (i386_dr_remove_watchpoint): Likewise.
12209 (i386_dr_region_ok_for_watchpoint): Likewise.
12210 (i386_dr_stopped_data_address): Likewise.
12211 (i386_dr_stopped_by_watchpoint): Likewise.
12212 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12214 2014-06-18 Gary Benson <gbenson@redhat.com>
12216 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12217 i386_dr_insert_watchpoint.
12218 (i386_low_remove_watchpoint): Renamed to
12219 i386_dr_remove_watchpoint.
12220 (i386_low_region_ok_for_watchpoint): Renamed to
12221 i386_dr_region_ok_for_watchpoint.
12222 (i386_low_stopped_data_address): Renamed to
12223 i386_dr_stopped_data_address.
12224 (i386_low_stopped_by_watchpoint): Renamed to
12225 i386_dr_stopped_by_watchpoint.
12226 * i386-low.c (i386_show_dr): Renamed to
12227 i386_dr_show and made nonstatic. All uses updated.
12228 (i386_length_and_rw_bits): Renamed to
12229 i386_dr_length_and_rw_bits and made nonstatic.
12231 (i386_insert_aligned_watchpoint): Renamed to
12232 i386_dr_insert_aligned_watchpoint and made nonstatic.
12234 (i386_remove_aligned_watchpoint): Renamed to
12235 i386_dr_remove_aligned_watchpoint and made nonstatic.
12237 (i386_update_inferior_debug_regs): Renamed to
12238 i386_dr_update_inferior_debug_regs and made nonstatic.
12240 (i386_low_insert_watchpoint): Renamed to
12241 i386_dr_insert_watchpoint. All uses updated.
12242 (i386_low_remove_watchpoint): Renamed to
12243 i386_dr_remove_watchpoint. All uses updated.
12244 (i386_low_region_ok_for_watchpoint): Renamed to
12245 i386_dr_region_ok_for_watchpoint. All uses updated.
12246 (i386_low_stopped_data_address): Renamed to
12247 i386_dr_stopped_data_address. All uses updated.
12248 (i386_low_stopped_by_watchpoint): Renamed to
12249 i386_dr_stopped_by_watchpoint. All uses updated.
12251 2014-06-18 Gary Benson <gbenson@redhat.com>
12253 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12254 (i386_dr_low_can_set_control): Likewise.
12255 (i386_insert_aligned_watchpoint): New check.
12257 2014-06-18 Gary Benson <gbenson@redhat.com>
12259 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12262 2014-06-18 Gary Benson <gbenson@redhat.com>
12264 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12265 instead of fatal and error.
12266 (i386_handle_nonaligned_watchpoint): Likewise.
12268 2014-06-18 Gary Benson <gbenson@redhat.com>
12270 * i386-low.c (i386_get_debug_register_length): New macro.
12271 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12272 (i386_show_dr): Use debug_printf instead of fprintf. Use
12273 phex to format values.
12275 2014-06-18 Gary Benson <gbenson@redhat.com>
12277 * i386-low.h: Comment changes.
12278 * i386-low.c: Likewise.
12280 2014-06-18 Gary Benson <gbenson@redhat.com>
12282 * i386-low.c: Whitespace changes.
12284 2014-06-12 Tom Tromey <tromey@redhat.com>
12286 * utils.c (freeargv): Remove.
12288 2014-06-12 Tom Tromey <tromey@redhat.com>
12290 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12291 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12292 (parse_debug_format_options): Likewise.
12293 (gdbserver_usage): Likewise.
12294 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12295 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12296 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12298 ($(LIBGNU)): Depend on libiberty.
12299 (all-lib): Recurse into all subdirs.
12300 (install-only): Invoke "install" target in subdirs.
12301 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12303 * configure: Rebuild.
12304 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12305 for vasprintf, vsnprintf, or gettimeofday.
12306 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12309 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12311 * development.sh: Delete.
12312 * Makefile.in (config.status): Adjust dependency on development.sh.
12313 * configure.ac: Adjust development.sh source call.
12314 * configure: Regenerate.
12316 2014-06-02 Pedro Alves <palves@redhat.com>
12318 * ax.c (gdb_free_agent_expr): New function.
12319 * ax.h (gdb_free_agent_expr): New declaration.
12320 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12322 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12324 (clear_breakpoint_conditions_and_commands): New function.
12325 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12326 (clear_breakpoint_conditions_and_commands): New declaration.
12328 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12330 * linux-aarch64-low.c (asm/ptrace.h): Include.
12332 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12334 Fix TLS access for -static -pthread.
12335 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12336 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12337 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12339 2014-05-20 Pedro Alves <palves@redhat.com>
12341 * linux-aarch64-low.c (aarch64_insert_point)
12342 (aarch64_remove_point): No longer check whether the type is
12343 supported here. Adjust to new interface.
12344 (the_low_target): Install aarch64_supports_z_point_type as
12345 supports_z_point_type method.
12346 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12347 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12348 instead of a Z packet char. Adjust.
12349 (arm_supports_z_point_type): New function.
12350 (arm_insert_point, arm_remove_point): Adjust to new interface.
12351 (the_low_target): Install arm_supports_z_point_type.
12352 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12353 (cris_insert_point, cris_remove_point): Adjust to new interface.
12354 Don't check whether the type is supported here.
12355 (the_low_target): Install cris_supports_z_point_type.
12356 * linux-low.c (linux_supports_z_point_type): New function.
12357 (linux_insert_point, linux_remove_point): Adjust to new interface.
12358 * linux-low.h (struct linux_target_ops) <insert_point,
12359 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12360 raw_breakpoint pointer parameter.
12361 <supports_z_point_type>: New method.
12362 * linux-mips-low.c (mips_supports_z_point_type): New function.
12363 (mips_insert_point, mips_remove_point): Adjust to new interface.
12364 Use mips_supports_z_point_type.
12365 (the_low_target): Install mips_supports_z_point_type.
12366 * linux-ppc-low.c (the_low_target): Install NULL as
12367 supports_z_point_type method.
12368 * linux-s390-low.c (the_low_target): Install NULL as
12369 supports_z_point_type method.
12370 * linux-sparc-low.c (the_low_target): Install NULL as
12371 supports_z_point_type method.
12372 * linux-x86-low.c (x86_supports_z_point_type): New function.
12373 (x86_insert_point): Adjust to new insert_point interface. Use
12374 insert_memory_breakpoint. Adjust to new
12375 i386_low_insert_watchpoint interface.
12376 (x86_remove_point): Adjust to remove_point interface. Use
12377 remove_memory_breakpoint. Adjust to new
12378 i386_low_remove_watchpoint interface.
12379 (the_low_target): Install x86_supports_z_point_type.
12380 * lynx-low.c (lynx_target_ops): Install NULL as
12381 supports_z_point_type callback.
12382 * nto-low.c (nto_supports_z_point_type): New.
12383 (nto_insert_point, nto_remove_point): Adjust to new interface.
12384 (nto_target_ops): Install nto_supports_z_point_type.
12385 * mem-break.c: Adjust intro comment.
12386 (struct raw_breakpoint) <raw_type, size>: New fields.
12387 <inserted>: Update comment.
12388 <shlib_disabled>: Delete field.
12389 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12390 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12391 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12392 (raw_bkpt_type_to_target_hw_bp_type): New function.
12393 (find_enabled_raw_code_breakpoint_at): New function.
12394 (find_raw_breakpoint_at): New type and size parameters. Use them.
12395 (insert_memory_breakpoint): New function, based off
12396 set_raw_breakpoint_at.
12397 (remove_memory_breakpoint): New function.
12398 (set_raw_breakpoint_at): Reimplement.
12399 (set_breakpoint): New, based on set_breakpoint_at.
12400 (set_breakpoint_at): Reimplement.
12401 (delete_raw_breakpoint): Go through the_target->remove_point
12402 instead of assuming memory breakpoints.
12403 (find_gdb_breakpoint_at): Delete.
12404 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12405 (find_gdb_breakpoint): New function.
12406 (set_gdb_breakpoint_at): Delete.
12407 (z_type_supported): New function.
12408 (set_gdb_breakpoint_1): New function, loosely based off
12409 set_gdb_breakpoint_at.
12410 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12411 (delete_gdb_breakpoint_at): Delete.
12412 (delete_gdb_breakpoint_1): New function, loosely based off
12413 delete_gdb_breakpoint_at.
12414 (delete_gdb_breakpoint): New function.
12415 (clear_gdb_breakpoint_conditions): Rename to ...
12416 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12418 (add_condition_to_breakpoint): Make static.
12419 (add_breakpoint_condition): Take a struct breakpoint pointer
12420 instead of an address. Adjust.
12421 (gdb_condition_true_at_breakpoint): Rename to ...
12422 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12424 (gdb_condition_true_at_breakpoint): Reimplement.
12425 (add_breakpoint_commands): Take a struct breakpoint pointer
12426 instead of an address. Adjust.
12427 (gdb_no_commands_at_breakpoint): Rename to ...
12428 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12429 parameter. Return true if no breakpoint was found. Change debug
12431 (gdb_no_commands_at_breakpoint): Reimplement.
12432 (run_breakpoint_commands): Rename to ...
12433 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12434 and change return type to boolean.
12435 (run_breakpoint_commands): New function.
12436 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12437 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12438 breakpoint. Go through the_target->remove_point instead of
12439 assuming memory breakpoint.
12440 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12441 software and hardware breakpoints.
12442 (reinsert_raw_breakpoint): Go through the_target->insert_point
12443 instead of assuming memory breakpoint.
12444 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12445 software and hardware breakpoints.
12446 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12447 Check both software and hardware breakpoints.
12448 (validate_inserted_breakpoint): Assert the breakpoint is a
12449 software breakpoint. Set the inserted flag to -1 instead of
12450 setting shlib_disabled.
12451 (delete_disabled_breakpoints): Adjust.
12452 (validate_breakpoints): Only validate software breakpoints.
12453 Adjust to inserted flag change.
12454 (check_mem_read, check_mem_write): Skip breakpoint types other
12455 than software breakpoints. Adjust to inserted flag change.
12456 * mem-break.h (enum raw_bkpt_type): New enum.
12457 (raw_breakpoint, struct process_info): Forward declare.
12458 (Z_packet_to_target_hw_bp_type): Delete declaration.
12459 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12460 (set_gdb_breakpoint, delete_gdb_breakpoint)
12461 (clear_breakpoint_conditions): New declarations.
12462 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12463 (breakpoint_inserted_here): Update comment.
12464 (add_breakpoint_condition, add_breakpoint_commands): Replace
12465 address parameter with a breakpoint pointer parameter.
12466 (gdb_breakpoint_here): Update comment.
12467 (delete_gdb_breakpoint_at): Delete.
12468 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12469 * server.c (process_point_options): Take a struct breakpoint
12470 pointer instead of an address. Adjust.
12471 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12472 delete_gdb_breakpoint.
12473 * spu-low.c (spu_target_ops): Install NULL as
12474 supports_z_point_type method.
12475 * target.h: Include mem-break.h.
12476 (struct target_ops) <prepare_to_access_memory>: Update comment.
12477 <supports_z_point_type>: New field.
12478 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12479 instead of a char. Also take a raw breakpoint pointer.
12480 * win32-arm-low.c (the_low_target): Install NULL as
12481 supports_z_point_type.
12482 * win32-i386-low.c (i386_supports_z_point_type): New function.
12483 (i386_insert_point, i386_remove_point): Adjust to new interface.
12484 (the_low_target): Install i386_supports_z_point_type.
12485 * win32-low.c (win32_supports_z_point_type): New function.
12486 (win32_insert_point, win32_remove_point): Adjust to new interface.
12487 (win32_target_ops): Install win32_supports_z_point_type.
12488 * win32-low.h (struct win32_target_ops):
12489 <supports_z_point_type>: New method.
12490 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12491 instead of a char. Also take a raw breakpoint pointer.
12493 2014-05-20 Pedro Alves <palves@redhat.com>
12495 * mem-break.h: Include break-common.h.
12496 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12497 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12498 (Z_packet_to_target_hw_bp_type): New declaration.
12499 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12500 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12501 (Z_PACKET_ACCESS_WP): Delete macros.
12502 (Z_packet_to_hw_type): Delete function.
12503 * i386-low.h: Don't include break-common.h here.
12504 (Z_packet_to_hw_type): Delete declaration.
12505 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12506 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12507 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12508 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12509 * linux-aarch64-low.c: Don't include break-common.h here.
12510 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12511 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12512 (Z_packet_to_target_hw_bp_type): Delete function.
12513 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12515 (mips_insert_point, mips_remove_point): Use
12516 Z_packet_to_target_hw_bp_type.
12518 2014-05-20 Pedro Alves <palves@redhat.com>
12520 * linux-aarch64-low.c: Include break-common.h.
12521 (enum target_point_type): Delete.
12522 (Z_packet_to_point_type): Rename to ...
12523 (Z_packet_to_target_hw_bp_type): ... this, and return a
12524 target_hw_bp_type instead.
12525 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12526 instead of an enum target_point_type.
12527 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12529 (aarch64_dr_state_insert_one_point)
12530 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12531 (aarch64_handle_aligned_watchpoint)
12532 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12533 Take an enum target_hw_bp_type instead of an enum
12535 (aarch64_supports_z_point_type): New function.
12536 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12537 use Z_packet_to_target_hw_bp_type.
12539 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12541 * configure.ac: Only use -Werror by default when DEVELOPMENT
12543 * configure: Regenerate.
12545 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12547 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12548 * linux-x86-low.c (X86_64_USER_REGS): New.
12549 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12551 2014-04-28 Yao Qi <yao@codesourcery.com>
12553 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12556 2014-04-25 Pedro Alves <palves@redhat.com>
12559 * linux-low.c (linux_attach_fail_reason_string): New function.
12560 (linux_attach_lwp): Delete.
12561 (linux_attach_lwp_1): Rename to ...
12562 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12563 argument. Remove "initial" parameter. Return int instead of
12564 void. Don't error or warn here.
12565 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12566 failure to attach to the tgid. Call warning when failing to
12568 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12569 argument. Remove "initial" parameter. Return int instead of
12570 void. Don't error or warn here.
12571 (linux_attach_fail_reason_string): New declaration.
12572 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12573 interface change. Use linux_attach_fail_reason_string.
12575 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12576 Walfred Tedeschi <walfred.tedeschi@intel.com>
12578 * Makefile.in: Added rules to handle new files
12579 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12580 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12581 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12582 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12583 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12584 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12585 x32-avx512-linux.o.
12586 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12587 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12588 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12589 i386/x32-avx512.xml.
12590 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12591 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12592 i386/x32-avx512-linux.xml.
12593 * i387-fp.c (num_avx512_k_registers): New constant for number
12595 (num_avx512_zmmh_low_registers): New constant for number of
12596 lower ZMM registers (0-15).
12597 (num_avx512_zmmh_high_registers): New constant for number of
12598 higher ZMM registers (16-31).
12599 (num_avx512_ymmh_registers): New contant for number of higher
12600 YMM registers (ymm16-31 added by avx521 on x86_64).
12601 (num_avx512_xmm_registers): New constant for number of higher
12602 XMM registers (xmm16-31 added by AVX512 on x86_64).
12603 (struct i387_xsave): Add space for AVX512 registers.
12604 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12605 Add code to handle AVX512 registers.
12606 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12607 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12608 prototypei from generated file.
12609 (tdesc_amd64_avx512_linux): Likewise.
12610 (init_registers_x32_avx512_linux): Likewise.
12611 (tdesc_x32_avx512_linux): Likewise.
12612 (init_registers_i386_avx512_linux): Likewise.
12613 (tdesc_i386_avx512_linux): Likewise.
12614 (x86_64_regmap): Add AVX512 registers.
12615 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12617 (initialize_low_arch): Add code to initialize AVX512 registers.
12619 2014-04-23 Pedro Alves <palves@redhat.com>
12621 * mem-break.c (find_gdb_breakpoint_at): Make static.
12622 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12624 2014-04-23 Pedro Alves <palves@redhat.com>
12626 * i386-low.c: Don't include break-common.h here.
12627 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12628 prototype to take target_hw_bp_type as argument instead of a Z
12630 * i386-low.h: Include break-common.h here.
12631 (Z_packet_to_hw_type): Declare.
12632 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12634 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12635 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12636 (x86_remove_point): Convert the packet number to a
12637 target_hw_bp_type before calling i386_low_remove_watchpoint.
12638 * win32-i386-low.c (i386_insert_point): Convert the packet number
12639 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12640 (i386_remove_point): Convert the packet number to a
12641 target_hw_bp_type before calling i386_low_remove_watchpoint.
12643 2014-04-23 Pedro Alves <palves@redhat.com>
12645 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12647 2014-04-10 Pedro Alves <palves@redhat.com>
12649 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12650 Check if the condition or command is NULL before checking if the
12651 breakpoint is known. On success, return true.
12652 * mem-break.h (add_breakpoint_condition): Document return.
12653 (add_breakpoint_commands): Add describing comment.
12654 * server.c (skip_to_semicolon): New function.
12655 (process_point_options): Use it.
12657 2014-04-09 Pedro Alves <palves@redhat.com>
12659 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12662 2014-02-27 Pedro Alves <palves@redhat.com>
12665 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12667 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12669 (last_thread_of_process_p): Take a PID argument instead of a
12671 (linux_wait_for_lwp): Delete.
12672 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12674 (linux_low_filter_event): New function, party factored out from
12675 linux_wait_for_event.
12676 (linux_wait_for_event): Rename to ...
12677 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12678 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12679 sigsuspend. Check for zombie leaders.
12680 (linux_wait_for_event): Reimplement as wrapper around
12681 linux_wait_for_event_filtered.
12682 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12683 a normal or signal exit is seen, it's the whole process exiting.
12684 (wait_for_sigstop): No longer a for_each_inferior callback.
12685 Rewrite on top of linux_wait_for_event_filtered.
12686 (stop_all_lwps): Call wait_for_sigstop directly.
12687 * server.c (resume, handle_target_event): Handle
12688 TARGET_WAITKIND_NO_RESUMED.
12690 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12692 * win32-low.c (psapi_get_dll_name,
12693 * win32_CreateToolhelp32Snapshot): Delete.
12694 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12695 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12697 (handle_load_dll): Add function description.
12698 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12700 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12702 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12704 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12705 base address when calling win32_add_one_solib.
12706 (handle_load_dll): Delete local variable load_addr.
12707 Remove 0x1000 offset applied to DLL base address when calling
12708 win32_add_one_solib.
12709 (handle_unload_dll): Add comment.
12711 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12713 * win32-low.c (win32_add_all_dlls): Renames
12714 win32_ensure_ntdll_loaded. Rewrite function documentation.
12715 Adjust implementation to always load all DLLs.
12716 Add 0x1000 offset to DLL base address when calling
12717 win32_add_one_solib.
12718 (child_initialization_done): New static global.
12719 (do_initial_child_stuff): Set child_initialization_done to
12720 zero during child initialization, and 1 after. Replace call
12721 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12723 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12724 (handle_unload_dll): Add function documentation.
12725 (get_child_debug_event): Ignore load and unload DLL events
12726 during child initialization.
12728 2014-02-20 Doug Evans <dje@google.com>
12730 Remove global all_lwps.
12731 * inferiors.h (ptid_of): Move here from linux-low.h.
12732 (pid_of, lwpid_of): Ditto.
12733 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12734 parameter is a struct thread_info * now.
12735 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12736 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12737 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12739 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12740 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12741 * linux-arm-low.c (update_registers_callback): Update, "entry"
12742 parameter is a struct thread_info * now.
12743 Fetch lwpid from current_inferior directly.
12744 (arm_insert_point): Pass &all_threads to find_inferior instead of
12746 (arm_remove_point): Ditto.
12747 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12748 (arm_prepare_to_resume): Fetch pid from thread.
12749 (arm_read_description): Fetch lwpid from current_inferior directly.
12750 * linux-low.c (all_lwps): Delete.
12751 (delete_lwp): Delete call to remove_inferior.
12752 (handle_extended_wait): Fetch lwpid from thread.
12753 (add_lwp): Don't set lwp->entry.id. Remove call to
12754 add_inferior_to_list.
12755 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12756 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12757 (kill_one_lwp_callback): Ditto.
12758 (linux_kill): Don't dereference NULL pointer.
12759 Fetch ptid,lwpid from thread.
12760 (get_detach_signal): Fetch ptid from thread.
12761 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12762 Simplify call to regcache_invalidate_thread.
12763 (delete_lwp_callback): Update, "entry" parameter is a
12764 struct thread_info * now. Fetch pid from thread.
12765 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12766 (status_pending_p_callback): Update, "entry" parameter is a
12767 struct thread_info * now. Fetch ptid from thread.
12768 (find_lwp_pid): Update, "entry" parameter is a
12769 struct thread_info * now.
12770 (linux_wait_for_lwp): Fetch pid from thread.
12771 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12772 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12773 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12774 (dequeue_one_deferred_signal): Ditto.
12775 (cancel_breakpoint): Fetch ptid from current_inferior.
12776 (linux_wait_for_event): Pass &all_threads to find_inferior,
12777 not &all_lwps. Fetch ptid, lwpid from thread.
12778 (count_events_callback): Update, "entry" parameter is a
12779 struct thread_info * now.
12780 (select_singlestep_lwp_callback): Ditto.
12781 (select_event_lwp_callback): Ditto.
12782 (cancel_breakpoints_callback): Ditto.
12783 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12785 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12786 (unsuspend_one_lwp): Update, "entry" parameter is a
12787 struct thread_info * now.
12788 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12790 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12791 Fetch lwpid from thread, not lwp.
12792 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12793 Pass &all_threads to find_inferior, not &all_lwps.
12794 (send_sigstop): Fetch lwpid from thread, not lwp.
12795 (send_sigstop_callback): Update, "entry" parameter is a
12796 struct thread_info * now.
12797 (suspend_and_send_sigstop_callback): Ditto.
12798 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12799 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12800 struct thread_info * now.
12801 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12803 (lwp_running): Update, "entry" parameter is a
12804 struct thread_info * now.
12805 (stop_all_lwps): Fetch ptid from thread.
12806 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12807 (linux_resume_one_lwp): Fetch lwpid from thread.
12808 (linux_set_resume_request): Update, "entry" parameter is a
12809 struct thread_info * now. Fetch pid, lwpid from thread.
12810 (resume_status_pending_p): Update, "entry" parameter is a
12811 struct thread_info * now.
12812 (need_step_over_p): Ditto. Fetch lwpid from thread.
12813 (start_step_over): Fetch lwpid from thread.
12814 (linux_resume_one_thread): Update, "entry" parameter is a
12815 struct thread_info * now. Fetch lwpid from thread.
12816 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12817 (proceed_one_lwp): Update, "entry" parameter is a
12818 struct thread_info * now. Fetch lwpid from thread.
12819 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12820 struct thread_info * now.
12821 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12822 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12823 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12825 (regsets_store_inferior_registers): Ditto.
12826 (fetch_register, store_register): Ditto.
12827 (linux_read_memory, linux_write_memory): Ditto.
12828 (linux_request_interrupt): Ditto.
12829 (linux_read_auxv): Ditto.
12830 (linux_xfer_siginfo): Ditto.
12831 (linux_qxfer_spu): Ditto.
12832 (linux_qxfer_libraries_svr4): Ditto.
12833 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12834 moved to inferiors.h.
12836 (get_thread_lwp): Update.
12837 (struct lwp_info): Delete member "entry". Simplify comment for
12839 (all_lwps): Delete.
12840 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12841 current_inferior directly.
12842 (update_watch_registers_callback): Update, "entry" parameter is a
12843 struct thread_info * now. Fetch pid from thread.
12844 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12845 (mips_insert_point): Fetch lwpid from current_inferior.
12846 Pass &all_threads to find_inferior, not &all_lwps.
12847 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12848 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12850 (mips_stopped_data_address): Ditto.
12851 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12853 * linux-tile-low.c (tile_arch_setup): Ditto.
12854 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12855 (update_debug_registers_callback): Update, "entry" parameter is a
12856 struct thread_info * now. Fetch pid from thread.
12857 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12858 Pass &all_threads to find_inferior, not &all_lwps.
12859 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12860 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12861 Pass &all_threads to find_inferior, not &all_lwps.
12862 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12863 (i386_dr_low_get_status): Ditto.
12864 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12865 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12866 (x86_linux_read_description): Ditto.
12867 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12869 2014-02-20 Doug Evans <dje@google.com>
12871 * inferiors.c (get_first_inferior): Fix buglet.
12873 2014-02-19 Doug Evans <dje@google.com>
12875 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12876 * inferiors.c (add_thread): Change result type to struct thread_info *.
12877 All callers updated.
12878 (add_lwp): Call add_thread here instead of in callers.
12879 All callers updated.
12880 * linux-low.h (get_lwp_thread): Rewrite.
12881 (struct lwp_info): New member "thread".
12883 2014-02-19 Doug Evans <dje@google.com>
12885 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12886 All callers updated.
12888 2014-02-19 Doug Evans <dje@google.com>
12890 * inferiors.c (add_thread): Fix whitespace.
12892 2014-02-19 Doug Evans <dje@google.com>
12894 * dll.c (clear_dlls): Replace accessing list implemention details
12896 * gdbthread.h (get_first_thread): Declare.
12897 * inferiors.c (for_each_inferior_with_data): New function.
12898 (get_first_thread): New function.
12899 (find_thread_ptid): Simplify.
12900 (get_first_inferior): New function.
12901 (clear_list): Delete.
12902 (one_inferior_p): New function.
12903 (clear_inferior_list): New function.
12904 (clear_inferiors): Update.
12905 * inferiors.h (for_each_inferior_with_data): Declare.
12906 (clear_inferior_list): Declare.
12907 (one_inferior_p): Declare.
12908 (get_first_inferior): Declare.
12909 * linux-low.c (linux_wait_for_event): Replace accessing list
12910 implemention details with API function.
12911 * server.c (target_running): Ditto.
12912 (accumulate_file_name_length): New function.
12913 (emit_dll_description): New function.
12914 (handle_qxfer_libraries): Replace accessing list implemention
12915 details with API function.
12916 (handle_qxfer_threads_worker): New function.
12917 (handle_qxfer_threads_proper): Replace accessing list implemention
12918 details with API function.
12919 (handle_query): Ditto.
12920 (visit_actioned_threads_callback_ftype): New typedef.
12921 (visit_actioned_threads_data): New struct.
12922 (visit_actioned_threads): Rewrite to be find_inferior callback.
12923 (resume): Call find_inferior.
12924 (handle_status): Replace accessing list implemention
12925 details with API function.
12926 (process_serial_event): Replace accessing list implemention details
12928 * target.c (set_desired_inferior): Replace accessing list implemention
12929 details with API function.
12930 * tracepoint.c (same_process_p): New function.
12931 (gdb_agent_about_to_close): Replace accessing list implemention
12932 details with API function.
12933 * win32-low.c (child_delete_thread): Replace accessing list
12934 implemention details with API function.
12935 (match_dll_by_basename): New function.
12936 (dll_is_loaded_by_basename): New function.
12937 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12938 details call to dll_is_loaded_by_basename.
12940 2014-02-19 Doug Evans <dje@google.com>
12942 * dll.h (struct dll_info): Add comment.
12943 * gdbthread.h (struct thread_info): Add comment.
12944 (current_ptid): Simplify.
12945 * inferiors.c (add_process): Update.
12946 (remove_process): Update.
12947 * inferiors.h (struct process_info): Rename member "head" to "entry".
12948 * linux-low.c (delete_lwp): Update.
12950 (last_thread_of_process_p): Update.
12951 (kill_one_lwp_callback, linux_kill): Update.
12952 (status_pending_p_callback): Update.
12953 (wait_for_sigstop): Update. Simplify read of ptid.
12954 (start_step_over): Update.
12955 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12956 (get_lwp_thread): Update.
12957 (struct lwp_info): Rename member "head" to "entry".
12958 * regcache.h (inferior_list_entry): Delete.
12959 * server.c (kill_inferior_callback): Update.
12960 (detach_or_kill_inferior_callback): Update.
12961 (print_started_pid): Update.
12962 (print_attached_pid): Update.
12963 (process_serial_event): Simplify read of ptid.
12964 * thread-db.c (thread_db_create_event): Update.
12965 (thread_db_get_tls_address): Update.
12966 * win32-low.c (current_inferior_ptid): Simplify.
12968 2014-02-19 Tom Tromey <tromey@redhat.com>
12970 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12972 (target_supports_btrace): Update.
12974 2014-02-14 Yao Qi <yao@codesourcery.com>
12976 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12977 (rsp-low-ipa.o): New target.
12979 2014-02-12 Tom Tromey <tromey@redhat.com>
12981 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12982 convert_ascii_to_int.
12983 * regcache.c (registers_to_string): Likewise.
12984 * remote-utils.c (decode_M_packet): Likewise.
12985 * server.c (process_serial_event): Likewise.
12987 2014-02-12 Tom Tromey <tromey@redhat.com>
12989 * server.c (handle_query, handle_v_run): Use hex2bin, not
12991 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12993 2014-02-12 Tom Tromey <tromey@redhat.com>
12995 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
12996 convert_int_to_ascii.
12997 * regcache.c (registers_to_string, collect_register_as_string):
12999 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13001 * server.c (process_serial_event): Likewise.
13002 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13003 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13005 2014-02-12 Tom Tromey <tromey@redhat.com>
13007 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13008 bin2hex, not hexify.
13009 * tracepoint.c (cmd_qtstatus): Likewise.
13011 2014-02-12 Tom Tromey <tromey@redhat.com>
13013 * remote-utils.c (monitor_output): Pass explicit length to
13016 2014-02-12 Tom Tromey <tromey@redhat.com>
13018 * tracepoint.c: Include rsp-low.h.
13019 * server.c: Include rsp-low.h.
13020 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13021 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13023 * remote-utils.c: Include rsp-low.h.
13024 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13025 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13026 (convert_int_to_ascii, convert_ascii_to_int): Move to
13028 * regcache.c: Include rsp-low.h.
13029 * ax.c: Include rsp-low.h.
13030 * Makefile.in (SFILES): Add common/rsp-low.c.
13031 (OBS): Add rsp-low.o.
13032 (rsp-low.o): New target.
13034 2014-02-12 Tom Tromey <tromey@redhat.com>
13036 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13037 Include print-utils.h.
13038 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13039 (plongest, thirty_two, phex_nz): Remove.
13040 * Makefile.in (SFILES): Add common/print-utils.c.
13041 (OBS): Add print-utils.o.
13042 (print-utils-ipa.o): New target.
13043 (print-utils.o): New target.
13044 (IPA_OBJS): Add print-utils-ipa.o.
13046 2014-02-06 Tom Tromey <tromey@redhat.com>
13048 * Makefile.in (SFILES): Fix indentation.
13050 2014-02-05 Doug Evans <dje@google.com>
13052 * linux-low.c (linux_wait_for_event): Improve comment.
13053 (linux_wait_1): Keep current_inferior in sync with event_child.
13055 2014-01-22 Doug Evans <dje@google.com>
13057 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13059 2014-01-22 Doug Evans <dje@google.com>
13061 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13062 * configure: Regenerate.
13063 * config.in: Regenerate.
13064 * Makefile.in (SFILES): Add debug.c.
13065 (OBS): Add debug.o.
13066 * debug.c: New file.
13067 * debug.h: New file.
13068 * linux-aarch64-low.c (*): Update all debugging printfs to use
13069 debug_printf instead of fprintf.
13070 * linux-arm-low.c (*): Ditto.
13071 * linux-cris-low.c (*): Ditto.
13072 * linux-crisv32-low.c (*): Ditto.
13073 * linux-m32r-low.c (*): Ditto.
13074 * linux-sparc-low.c (*): Ditto.
13075 * linux-x86.c (*): Ditto.
13076 * linux-low.c (*): Ditto.
13077 (linux_wait_1): Add calls to debug_enter, debug_exit.
13078 (linux_wait): Remove redundant debugging printf.
13079 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13080 (linux_resume, unstop_all_lwps): Ditto.
13081 * mem-break.c (*): Update all debugging printfs to use
13082 debug_printf instead of fprintf.
13083 * remote-utils.c (*): Ditto.
13084 * thread-db.c (*): Ditto.
13085 * server.c #include <ctype.h>, "gdb_vecs.h".
13086 (debug_threads): Moved to debug.c.
13087 (*): Update all debugging printfs to use debug_printf instead of
13089 (start_inferior): Replace call to fflush with call to debug_flush.
13090 (monitor_show_help): Mention set debug-format.
13091 (parse_debug_format_options): New function.
13092 (handle_monitor_command): Handle "monitor set debug-format".
13093 (gdbserver_usage): Mention --debug-format.
13094 (main): Parse --debug-format.
13095 * server.h (debug_threads): Declaration moved to debug.h.
13096 #include "debug.h".
13097 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13098 trace_debug_1 that uses debug_printf.
13099 (tracepoint_look_up_symbols): Update all debugging printfs to use
13100 debug_printf instead of fprintf.
13102 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13104 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13107 2014-01-17 Pedro Alves <palves@redhat.com>
13110 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13111 defined after including gdb_proc_service.h.
13113 2014-01-16 Doug Evans <dje@google.com>
13115 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13116 (match_dll): Use it.
13118 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13120 * target.h (target_ops) <read_btrace>: Change parameters and
13121 return type to allow error reporting.
13122 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13123 trace reading errors on.
13124 * linux-low.c (linux_low_read_btrace): Pass trace reading
13126 (linux_low_disable_btrace): New.
13128 2014-01-15 Doug Evans <dje@google.com>
13130 * inferiors.c (thread_id_to_gdb_id): Delete.
13131 * inferiors.h (thread_id_to_gdb_id): Delete.
13133 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13135 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13136 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13139 2014-01-08 Pedro Alves <palves@redhat.com>
13141 * server.c (handle_status): Don't discard previous queued stop
13142 replies or thread's pending status here.
13143 (main) <disconnection>: Do it here instead.
13145 2014-01-08 Pedro Alves <palves@redhat.com>
13147 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13148 * server.c (visit_actioned_threads, handle_pending_status): New
13150 (handle_v_cont): Factor out parts to ...
13151 (resume): ... this new function. If in all-stop, and a thread
13152 being resumed has a pending status, report it without actually
13154 (myresume): Adjust to use the new 'resume' function.
13155 (clear_pending_status_callback, set_pending_status_callback)
13156 (find_status_pending_thread_callback): New functions.
13157 (handle_status): Handle the case of multiple threads having
13158 interesting statuses to report. Report threads' real last signal
13159 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13160 with an interesting thread to report the status for, instead of
13161 always reporting the status of the first thread.
13163 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13165 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13166 * gdbreplay.c (gdbreplay_version): Likewise.
13168 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13170 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13171 iov.iov_len with the real length in use.
13173 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13175 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13176 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13177 for all targets that use win32-low.c.
13178 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13179 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13181 2013-12-13 Pedro Alves <palves@redhat.com>
13183 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13184 if equal to TARGET_WAITKIND_LOADED.
13185 * win32-low.c (cached_status): New static global.
13186 (win32_wait): Add declaration.
13187 (do_initial_child_stuff): Flush all initial pending debug events
13188 up to the initial breakpoint.
13189 (win32_wait): If CACHED_STATUS was set, return that instead
13190 of doing a real wait. Remove the code resuming the execution
13191 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13192 during the initial phase. Also remove the code changing
13193 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13194 TARGET_WAITKIND_STOPPED.
13196 2013-12-11 Yao Qi <yao@codesourcery.com>
13198 * notif.c (handle_notif_ack): Return 0 if no notification
13201 2013-11-20 Doug Evans <dje@google.com>
13203 * linux-low.c (linux_set_resume_request): Fix comment.
13205 2013-11-20 Doug Evans <dje@google.com>
13207 * linux-low.c (resume_status_pending_p): Tweak comment.
13209 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13211 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13212 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13213 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13214 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13215 (srv_amd64_regobj): Add amd64-mpx.o.
13216 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13217 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13218 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13219 * i387-fp.c (num_pl_bnd_register) Added constant.
13220 (num_pl_bnd_cfg_registers) Added constant.
13221 (struct i387_xsave) Added reserved area and MPX fields.
13222 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13223 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13225 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13226 (init_registers_amd64_mpx_linux): Declare new function.
13227 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13228 (x86_64_regmap): Add MPX registers.
13229 (x86_linux_read_description): Add MPX case.
13230 (initialize_low_arch): Initialize MPX targets.
13232 2013-11-18 Tom Tromey <tromey@redhat.com>
13234 * configure: Rebuild.
13235 * configure.ac: Don't check for stdlib.h.
13236 * gdbreplay.c: Unconditionally include stdlib.h.
13238 2013-11-18 Tom Tromey <tromey@redhat.com>
13240 * config.in: Rebuild.
13241 * configure: Rebuild.
13242 * configure.ac: Don't use AC_HEADER_DIRENT.
13244 2013-11-18 Tom Tromey <tromey@redhat.com>
13246 * server.h: Don't check HAVE_STRING_H.
13247 * gdbreplay.c: Don't check HAVE_STRING_H.
13248 * configure: Rebuild.
13250 2013-11-18 Tom Tromey <tromey@redhat.com>
13252 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13255 2013-11-08 Tom Tromey <tromey@redhat.com>
13257 * configure, config.in: Rebuild.
13258 * configure.ac: Remove unused configury.
13260 2013-11-08 Tom Tromey <tromey@redhat.com>
13262 * acinclude.m4: Include common.m4, codeset.m4.
13263 * configure, config.in: Rebuild.
13264 * configure.ac: Use GDB_AC_COMMON.
13266 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13268 * linux-s390-low.c (HWCAP_S390_TE): New define.
13269 (s390_arch_setup): Consider the TE field in the HWCAP for
13270 determining 'have_regset_tdb'.
13272 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13275 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13278 2013-10-02 Pedro Alves <palves@redhat.com>
13280 * server.c (process_serial_event): Don't output "GDBserver
13281 exiting" if GDB is connected through stdio.
13282 * target.c (mywait): Likewise, be silent if GDB is connected
13285 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13287 * lynx-low.c (lynx_add_threads_after_attach): New function.
13288 (lynx_attach): Remove call to add_thread. Add call to
13289 lynx_add_threads_after_attach instead.
13291 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13293 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13294 * config.in, configure: Regenerated.
13296 2013-09-18 Yao Qi <yao@codesourcery.com>
13299 * server.c (start_inferior): Clear 'resume_info'.
13301 2013-09-16 Jiong Wang <jiwang@tilera.com>
13303 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13306 2013-09-16 Jiong Wang <jiwang@tilera.com>
13308 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13309 linux-tile-low.o to srv_tgtobj.
13311 2013-09-16 Will Newton <will.newton@linaro.org>
13313 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13316 2013-09-06 Pedro Alves <palves@redhat.com>
13318 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13319 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13320 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13321 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13322 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13323 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13325 2013-09-06 Pedro Alves <palves@redhat.com>
13327 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13328 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13330 2013-09-06 Pedro Alves <palves@redhat.com>
13332 * linux-amd64-ipa.c: Include tracepoint.h.
13333 * linux-i386-ipa.c: Include tracepoint.h.
13335 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13337 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13338 (ps_get_thread_area): New function.
13340 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13342 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13343 (initialize_low_arch): Call init_registers_crisv32 rather than
13344 init_register_crisv32.
13346 2013-09-05 Pedro Alves <palves@redhat.com>
13348 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13350 * hostio.h: ... this new file.
13351 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13352 win32-low.c: Include hostio.h.
13354 2013-09-05 Pedro Alves <palves@redhat.com>
13356 * server.h (gdb_client_data, handler_func, callback_handler_func)
13357 (delete_file_handler, add_file_handler, append_callback_event)
13358 (delete_callback_event, start_event_loop, initialize_event_loop):
13359 Move to event-loop.h and include it.
13360 * event-loop.h: New file.
13362 2013-09-05 Pedro Alves <palves@redhat.com>
13364 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13365 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13366 (loaded_dll, unloaded_dll): Move to ...
13367 * dll.h: ... this new file.
13368 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13370 2013-09-05 Pedro Alves <palves@redhat.com>
13372 * server.h (current_process, get_thread_process, all_processes)
13373 (add_inferior_to_list, for_each_inferior, current_inferior)
13374 (remove_inferior, add_process, remove_process, find_process_pid)
13375 (have_started_inferiors_p, have_attached_inferiors_p)
13376 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13377 (clear_inferiors, find_inferior, find_inferior_id)
13378 (inferior_target_data, set_inferior_target_data)
13379 (inferior_regcache_data, set_inferior_regcache_data): Move to
13380 inferiors.h, and include it.
13381 * inferiors.h: New file.
13383 2013-09-05 Pedro Alves <palves@redhat.com>
13385 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13389 2013-09-05 Pedro Alves <palves@redhat.com>
13391 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13393 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13394 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13395 (handle_tracepoint_general_set, handle_tracepoint_query)
13396 (tracepoint_finished_step, tracepoint_was_hit)
13397 (release_while_stepping_state_list, current_traceframe)
13398 (in_readonly_region, traceframe_read_mem)
13399 (fetch_traceframe_registers, traceframe_read_sdata)
13400 (traceframe_read_info, struct fast_tpoint_collect_status)
13401 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13402 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13403 (supply_fast_tracepoint_registers)
13404 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13405 (ipa_tdesc, claim_trampoline_space)
13406 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13407 (agent_mem_read, agent_get_trace_state_variable_value)
13408 (agent_set_trace_state_variable_value, agent_tsv_read)
13409 (agent_mem_read_string, get_raw_reg_func_addr)
13410 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13411 * tracepoint.h: ... this new file.
13413 2013-09-05 Pedro Alves <palves@redhat.com>
13415 * server.h (perror_with_name, error, fatal, warning, paddress)
13416 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13418 * utils.h: New file.
13420 2013-09-05 Pedro Alves <palves@redhat.com>
13422 * server.h (remote_debug, noack_mode, transport_is_reliable)
13423 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13424 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13425 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13426 (write_enn, initialize_async_io, enable_async_io)
13427 (disable_async_io, check_remote_input_interrupt_request)
13428 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13429 (dead_thread_notify, prepare_resume_reply)
13430 (decode_address_to_semicolon, decode_address, decode_m_packet)
13431 (decode_M_packet, decode_X_packet, decode_xfer_write)
13432 (decode_search_memory_packet, unhexify, hexify)
13433 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13434 (look_up_one_symbol, relocate_instruction)
13435 (monitor_output): Move to remote-utils.h, and include it.
13436 * remote-utils.h: New file.
13438 2013-09-05 Pedro Alves <palves@redhat.com>
13440 * server.h (_): Delete.
13442 2013-09-02 Pedro Alves <palves@redhat.com>
13444 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13445 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13447 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13449 2013-09-02 Pierre Muller <muller@sourceware.org>
13451 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13452 or WriteProcessMemory complete successfully and handle
13453 ERROR_PARTIAL_COPY error.
13455 2013-09-02 Pedro Alves <palves@redhat.com>
13457 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13458 error instead of EIO.
13460 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13463 * linux-low.c: Include filestuff.h.
13464 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13465 * lynx-low.c: Include filestuff.h.
13466 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13467 * server.c: Include filestuff.h.
13468 (main): Call notice_open_fds.
13469 * spu-low.c: Include filestuff.h.
13470 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13472 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13474 * Makefile.in: Explain why ../target and ../nat are not
13475 listed as include file search paths.
13476 (linux-waitpid.o): New object file rule.
13477 * configure.srv (srv_native_linux_obj): New variable.
13478 Replace all occurrences of linux native object files with
13479 $srv_native_linux_obj.
13480 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13481 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13482 (linux_enable_event_reporting): Remove declaration.
13483 (my_waitpid): Moved to common/linux-waitpid.c.
13484 (linux_wait_for_event): Pass ptid when calling
13485 linux_enable_event_reporting.
13486 (linux_supports_tracefork_flag): Remove.
13487 (linux_enable_event_reporting): Likewise.
13488 (linux_tracefork_grandchild): Remove.
13489 (STACK_SIZE): Moved to common/linux-ptrace.c.
13490 (linux_tracefork_child): Remove.
13491 (linux_test_for_tracefork): Remove.
13492 (linux_look_up_symbols): Call linux_supports_traceclone.
13493 (initialize_low): Remove call to linux_test_for_tracefork.
13494 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13495 common/linux-ptrace.h.
13496 (PTRACE_TYPE_ARG4): Likewise.
13497 Include linux-ptrace.h.
13499 2013-08-21 Pedro Alves <palves@redhat.com>
13501 * config.in: Renegerate.
13503 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13505 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13506 (SFILES): Remove $(srcdir)/common/target-common.c and
13507 add $(srcdir)/target/waitstatus.c.
13508 (OBS): Remove target-common.o and add waitstatus.o.
13509 (server_h): Remove $(srcdir)/../common/target-common.h and
13510 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13511 and $(srcdir)/../target/waitstatus.h.
13512 (target-common.o): Remove.
13513 (waitstatus.o): New target object file.
13514 * target.h: Do not include target-common.h and
13515 include target/resume.h, target/wait.h and
13516 target/waitstatus.h.
13518 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13520 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13521 to PTRACE_TYPE_ARG3.
13522 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13523 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13525 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13526 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13528 2013-07-27 Jie Zhang <jie@codesourcery.com>
13529 Daniel Jacobowitz <dan@codesourcery.com>
13530 Yao Qi <yao@codesourcery.com>
13532 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13533 (mips-linux-watch.o): New rule.
13534 (mips_linux_watch_h): New variable.
13535 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13537 * linux-mips-low.c: Include mips-linux-watch.h.
13538 (struct arch_process_info, struct arch_lwp_info): New.
13539 (update_watch_registers_callback): New function.
13540 (mips_linux_new_process, mips_linux_new_thread) New functions.
13541 (mips_linux_prepare_to_resume, mips_insert_point): New
13543 (mips_remove_point, mips_stopped_by_watchpoint): New
13545 (rsp_bp_type_to_target_hw_bp_type): New function.
13546 (mips_stopped_data_address): New function.
13547 (the_low_target): Add watchpoint support functions.
13549 2013-07-27 Yao Qi <yao@codesourcery.com>
13551 * i386-low.c: Include break-common.h.
13552 (enum target_hw_bp_type): Remove.
13554 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13556 * Makefile.in (SFILES): /common/target-common.c.
13557 (OBS): Add target-common.o.
13558 (server_h): Add $(srcdir)/../common/target-common.h.
13559 (target-common.o): New target.
13560 * server.c (queue_stop_reply_callback): Free
13561 status string after use.
13562 * target.c (target_waitstatus_to_string): Remove.
13563 * target.h: Include target-common.h.
13564 (resume_kind): Likewise.
13565 (target_waitkind): Likewise.
13566 (target_waitstatus): Likewise.
13567 (TARGET_WNOHANG): Likewise.
13569 2013-07-04 Yao Qi <yao@codesourcery.com>
13571 * Makefile.in (host_alias): Use @host_noncanonical@.
13572 (target_alias): Use @target_noncanonical@.
13573 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13574 ACX_NONCANONICAL_HOST.
13575 * configure: Regenerated.
13578 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13580 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13581 * configure: Rebuild.
13582 * Makefile.in (version_host, version_target): Get from configure.
13583 (version.c): Use $(version_host) and $(version_target).
13585 2013-07-03 Pedro Alves <palves@redhat.com>
13587 * Makefile.in (config.status): Depend on development.sh.
13588 * acinclude.m4: Include libmcheck.m4.
13589 * configure: Regenerate.
13591 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13593 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13594 attribute inside the parentheses.
13595 (winapi_DebugSetProcessKillOnExit): Ditto.
13596 (winapi_DebugBreakProcess): Ditto.
13597 (winapi_GenerateConsoleCtrlEvent): Ditto.
13599 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13601 * notif.h (notif_event): Add a dummy member to avoid compiler
13604 2013-07-01 Pedro Alves <palves@redhat.com>
13606 * hostio.c (HOSTIO_PATH_MAX): Define.
13607 (require_filename, handle_open, handle_unlink, handle_readlink):
13610 2013-07-01 Pedro Alves <palves@redhat.com>
13612 * server.h: Include "pathmax.h".
13613 * linux-low.c: Don't include sys/param.h.
13614 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13616 * win32-low.c: Don't include sys/param.h.
13617 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13619 2013-07-01 Pedro Alves <palves@redhat.com>
13621 * event-loop.c: Don't check HAVE_UNISTD_H before including
13623 * gdbreplay.c: Likewise.
13624 * remote-utils.c: Likewise.
13625 * server.c: Likewise.
13626 * configure.ac: Don't check for unistd.h.
13627 * configure: Regenerate.
13629 2013-06-28 Tom Tromey <tromey@redhat.com>
13631 * Makefile.in (version.c): Use version.in, not
13634 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13636 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13637 * configure: Rebuild.
13638 * Makefile.in (version_host, version_target): Get from configure.
13639 (version.c): Use $(version_host) and $(version_target).
13641 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13643 Fix trace-status to output user name without trailing colon.
13644 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13646 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13648 Fix trace-status to output proper start-time and stop-time.
13649 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13650 output start time and stop time in hex as gdb expects.
13652 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13654 * tracepoint.c (build_traceframe_info_xml): Output trace state
13655 variables present in the trace buffer.
13657 2013-06-24 Tom Tromey <tromey@redhat.com>
13659 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13661 (version.o): Remove.
13662 * gdbreplay.c: Include version.h.
13663 (version, host_name): Don't declare.
13664 * server.h: Include version.h.
13665 (version, host_name): Don't declare.
13667 2013-06-12 Pedro Alves <palves@redhat.com>
13669 * linux-x86-low.c (linux_is_elf64): Delete global.
13670 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13671 with local linux_pid_exe_is_elf_64_file use.
13673 2013-06-11 Pedro Alves <palves@redhat.com>
13675 * linux-low.c (regset_disabled, disable_regset): New functions.
13676 (regsets_fetch_inferior_registers)
13677 (regsets_store_inferior_registers): Use them.
13678 (initialize_regsets_info); Don't allocate the disabled_regsets
13680 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13683 2013-06-11 Pedro Alves <palves@redhat.com>
13685 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13688 2013-06-11 Pedro Alves <palves@redhat.com>
13690 * linux-x86-low.c (initialize_low_arch): Call
13691 init_registers_x32_avx_linux.
13693 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13695 Fix compatibility with Android Bionic.
13696 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13699 2013-06-07 Pedro Alves <palves@redhat.com>
13702 * Makefile.in (OBS): Add tdesc.o.
13703 (IPA_OBJS): Add tdesc-ipa.o.
13704 (tdesc-ipa.o): New rule.
13705 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13707 * linux-low.c (new_inferior): Delete.
13708 (disabled_regsets, num_regsets): Delete.
13709 (linux_add_process): Adjust to set the new per-process
13711 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13712 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13713 was a stop. When calling arch_setup, switch the current inferior
13714 to the thread that got an event.
13715 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13716 (regsets_fetch_inferior_registers)
13717 (regsets_store_inferior_registers): New regsets_info parameter.
13719 (linux_register_in_regsets): New regs_info parameter. Adjust to
13721 (register_addr, fetch_register, store_register): New usrregs_info
13722 parameter. Adjust to use it.
13723 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13724 parameter regs_info. Adjust to use it.
13725 (linux_fetch_registers): Get the current inferior's regs_info, and
13727 (linux_store_registers): Ditto.
13728 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13729 (initialize_low): Don't initialize the target_regsets here. Call
13730 initialize_low_arch.
13731 * linux-low.h (target_regsets): Delete declaration.
13732 (struct regsets_info): New.
13733 (struct usrregs_info): New.
13734 (struct regs_info): New.
13735 (struct process_info_private) <new_inferior>: New field.
13736 (struct linux_target_ops): Delete the num_regs, regmap, and
13737 regset_bitmap fields. New field regs_info.
13738 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13739 * i387-fp.c (num_xmm_registers): Delete.
13740 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13741 calls to new interface.
13742 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13743 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13744 Infer the number of xmm registers from the regcache's target
13746 * i387-fp.h (num_xmm_registers): Delete.
13747 * inferiors.c (add_thread): Don't install the thread's regcache
13749 * proc-service.c (gregset_info): Fetch the current inferior's
13750 regs_info. Adjust to use it.
13751 * regcache.c: Include tdesc.h.
13752 (register_bytes, reg_defs, num_registers)
13753 (gdbserver_expedite_regs): Delete.
13754 (get_thread_regcache): If the thread doesn't have a regcache yet,
13755 create one, instead of aborting gdbserver.
13756 (regcache_invalidate_one): Rename to ...
13757 (regcache_invalidate_thread): ... this.
13758 (regcache_invalidate_one): New.
13759 (regcache_invalidate): Only invalidate registers of the current
13761 (init_register_cache): Add target_desc parameter, and use it.
13762 (new_register_cache): Ditto. Assert the target description has a
13763 non zero registers_size.
13764 (regcache_cpy): Add assertions. Adjust.
13765 (realloc_register_cache, set_register_cache): Delete.
13766 (registers_to_string, registers_from_string): Adjust.
13767 (find_register_by_name, find_regno, find_register_by_number)
13768 (register_cache_size): Add target_desc parameter, and use it.
13769 (free_register_cache_thread, free_register_cache_thread_one)
13770 (regcache_release, register_cache_size): New.
13771 (register_size): Add target_desc parameter, and use it.
13772 (register_data, supply_register, supply_register_zeroed)
13773 (supply_regblock, supply_register_by_name, collect_register)
13774 (collect_register_as_string, collect_register_by_name): Adjust.
13775 * regcache.h (struct target_desc): Forward declare.
13776 (struct regcache) <tdesc>: New field.
13777 (init_register_cache, new_register_cache): Add target_desc
13779 (regcache_invalidate_thread): Declare.
13780 (regcache_invalidate_one): Delete declaration.
13781 (regcache_release): Declare.
13782 (find_register_by_number, register_cache_size, register_size)
13783 (find_regno): Add target_desc parameter.
13784 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13786 * remote-utils.c: Include tdesc.h.
13787 (outreg, prepare_resume_reply): Adjust.
13788 * server.c: Include tdesc.h.
13789 (gdbserver_xmltarget): Delete declaration.
13790 (get_features_xml, process_serial_event): Adjust.
13791 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13793 (struct process_info) <tdesc>: New field.
13794 (ipa_tdesc): Declare.
13795 * tdesc.c: New file.
13796 * tdesc.h: New file.
13797 * tracepoint.c: Include tdesc.h.
13798 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13799 (get_context_regcache): Adjust to pass ipa_tdesc down.
13800 (do_action_at_tracepoint): Adjust to get the register cache size
13801 from the context regcache's description.
13802 (traceframe_walk_blocks): Adjust to get the register cache size
13803 from the current trace frame's description.
13804 (traceframe_get_pc): Adjust to get current trace frame's
13805 description and pass it down.
13806 (gdb_collect): Adjust to get the register cache size from the
13808 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13809 (gdbserver_xmltarget): Delete.
13810 (initialize_low_tracepoint): Set the ipa's target description.
13811 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13812 (initialize_low_tracepoint): Set the ipa's target description.
13813 * linux-x86-low.c: Include tdesc.h.
13814 [__x86_64__] (is_64bit_tdesc): New.
13815 (ps_get_thread_area, x86_get_thread_area): Use it.
13816 (i386_cannot_store_register): Rename to ...
13817 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13818 (i386_cannot_fetch_register): Rename to ...
13819 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13820 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13822 (target_regsets): Rename to ...
13823 (x86_regsets): ... this.
13824 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13826 (x86_siginfo_fixup): Use is_64bit_tdesc.
13827 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13828 (tdesc_x32_avx_linux, tdesc_x32_linux)
13829 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13831 (x86_linux_update_xmltarget): Delete.
13832 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13833 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13834 (AMD64_LINUX_USER64_CS): New.
13835 (x86_linux_read_description): New, based on
13836 x86_linux_update_xmltarget.
13837 (same_process_callback): New.
13838 (x86_arch_setup_process_callback): New.
13839 (x86_linux_update_xmltarget): New.
13840 (x86_regsets_info): New.
13841 (amd64_linux_regs_info): New.
13842 (i386_linux_usrregs_info): New.
13843 (i386_linux_regs_info): New.
13844 (x86_linux_regs_info): New.
13845 (x86_arch_setup): Reimplement.
13846 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13847 (x86_emit_ops): Ditto.
13848 (the_low_target): Adjust. Install x86_linux_regs_info,
13849 x86_cannot_fetch_register, and x86_cannot_store_register.
13850 (initialize_low_arch): New.
13851 * linux-ia64-low.c (tdesc_ia64): Declare.
13852 (ia64_fetch_register): Adjust.
13853 (ia64_usrregs_info, regs_info): New globals.
13854 (ia64_regs_info): New function.
13855 (the_low_target): Adjust.
13856 (initialize_low_arch): New function.
13857 * linux-sparc-low.c (tdesc_sparc64): Declare.
13858 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13860 (sparc_arch_setup): New function.
13861 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13862 (the_low_target): Adjust.
13863 (initialize_low_arch): New function.
13864 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13865 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13866 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13867 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13868 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13869 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13870 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13871 (tdesc_powerpc_isa205_vsx64l): Declare.
13872 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13873 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13874 (ppc_set_pc, ppc_get_hwcap): Adjust.
13875 (ppc_usrregs_info): Forward declare.
13876 (!__powerpc64__) ppc_regmap_adjusted: New global.
13877 (ppc_arch_setup): Adjust to the current process'es target
13879 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13880 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13881 (ppc_store_evrregset): Adjust.
13882 (target_regsets): Rename to ...
13883 (ppc_regsets): ... this, and make static.
13884 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13885 (ppc_regs_info): New function.
13886 (the_low_target): Adjust.
13887 (initialize_low_arch): New function.
13888 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13889 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13890 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13891 (tdesc_s390x_linux64v2): Declare.
13892 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13893 (s390_fill_gregset, s390_store_last_break): Adjust.
13894 (target_regsets): Rename to ...
13895 (s390_regsets): ... this, and make static.
13896 (s390_get_pc, s390_set_pc): Adjust.
13897 (s390_get_hwcap): New target_desc parameter, and use it.
13898 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13899 (s390_arch_setup): Adjust to set the current process'es target
13900 description. Don't adjust the regmap.
13901 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13902 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13903 (regs_info_3264): New globals.
13904 (s390_regs_info): New function.
13905 (the_low_target): Adjust.
13906 (initialize_low_arch): New function.
13907 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13908 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13909 [__mips64] (init_registers_mips_linux)
13910 (init_registers_mips_dsp_linux): Delete defines.
13911 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13912 (have_dsp): New global.
13913 (mips_read_description): New, based on mips_arch_setup.
13914 (mips_arch_setup): Reimplement.
13915 (get_usrregs_info): New function.
13916 (mips_cannot_fetch_register, mips_cannot_store_register)
13917 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13918 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13919 (target_regsets): Rename to ...
13920 (mips_regsets): ... this, and make static.
13921 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13922 (dsp_regs_info, regs_info): New globals.
13923 (mips_regs_info): New function.
13924 (the_low_target): Adjust.
13925 (initialize_low_arch): New function.
13926 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13927 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13929 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13930 (arm_read_description): New, with bits factored from
13932 (arm_arch_setup): Reimplement.
13933 (target_regsets): Rename to ...
13934 (arm_regsets): ... this, and make static.
13935 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13936 (arm_regs_info): New function.
13937 (the_low_target): Adjust.
13938 (initialize_low_arch): New function.
13939 * linux-m68k-low.c (tdesc_m68k): Declare.
13940 (target_regsets): Rename to ...
13941 (m68k_regsets): ... this, and make static.
13942 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13943 (m68k_regs_info): New function.
13944 (m68k_arch_setup): New function.
13945 (the_low_target): Adjust.
13946 (initialize_low_arch): New function.
13947 * linux-sh-low.c (tdesc_sharch): Declare.
13948 (target_regsets): Rename to ...
13949 (sh_regsets): ... this, and make static.
13950 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13951 (sh_regs_info, sh_arch_setup): New functions.
13952 (the_low_target): Adjust.
13953 (initialize_low_arch): New function.
13954 * linux-bfin-low.c (tdesc_bfin): Declare.
13955 (bfin_arch_setup): New function.
13956 (bfin_usrregs_info, regs_info): New globals.
13957 (bfin_regs_info): New function.
13958 (the_low_target): Adjust.
13959 (initialize_low_arch): New function.
13960 * linux-cris-low.c (tdesc_cris): Declare.
13961 (cris_arch_setup): New function.
13962 (cris_usrregs_info, regs_info): New globals.
13963 (cris_regs_info): New function.
13964 (the_low_target): Adjust.
13965 (initialize_low_arch): New function.
13966 * linux-cris-low.c (tdesc_crisv32): Declare.
13967 (cris_arch_setup): New function.
13968 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13969 (cris_regs_info): New function.
13970 (the_low_target): Adjust.
13971 (initialize_low_arch): New function.
13972 * linux-m32r-low.c (tdesc_m32r): Declare.
13973 (m32r_arch_setup): New function.
13974 (m32r_usrregs_info, regs_info): New globals.
13975 (m32r_regs_info): Adjust.
13976 (initialize_low_arch): New function.
13977 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13978 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13979 (tic6x_usrregs_info): Forward declare.
13980 (tic6x_read_description): New function, based on ...
13981 (tic6x_arch_setup): ... this. Reimplement.
13982 (target_regsets): Rename to ...
13983 (tic6x_regsets): ... this, and make static.
13984 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13985 (tic6x_regs_info): New function.
13986 (the_low_target): Adjust.
13987 (initialize_low_arch): New function.
13988 * linux-xtensa-low.c (tdesc_xtensa): Declare.
13989 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
13990 (target_regsets): Rename to ...
13991 (xtensa_regsets): ... this, and make static.
13992 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
13994 (xtensa_arch_setup, xtensa_regs_info): New functions.
13995 (the_low_target): Adjust.
13996 (initialize_low_arch): New function.
13997 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
13998 (nios2_arch_setup): Set the current process'es tdesc.
13999 (target_regsets): Rename to ...
14000 (nios2_regsets): ... this.
14001 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14002 (nios2_regs_info): New function.
14003 (the_low_target): Adjust.
14004 (initialize_low_arch): New function.
14005 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14006 (aarch64_arch_setup): Set the current process'es tdesc.
14007 (target_regsets): Rename to ...
14008 (aarch64_regsets): ... this.
14009 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14010 (aarch64_regs_info): New function.
14011 (the_low_target): Adjust.
14012 (initialize_low_arch): New function.
14013 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14015 (target_regsets): Rename to ...
14016 (tile_regsets): ... this.
14017 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14018 (tile_regs_info): New function.
14019 (tile_arch_setup): Set the current process'es tdesc.
14020 (the_low_target): Adjust.
14021 (initialize_low_arch): New function.
14022 * spu-low.c (tdesc_spu): Declare.
14023 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14024 * win32-arm-low.c (tdesc_arm): Declare.
14025 (arm_arch_setup): New function.
14026 (the_low_target): Install arm_arch_setup instead of
14027 init_registers_arm.
14028 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14029 (init_windows_x86): Rename to ...
14030 (i386_arch_setup): ... this. Set `win32_tdesc'.
14031 (the_low_target): Adjust.
14032 * win32-low.c (win32_tdesc): New global.
14033 (child_add_thread): Don't create the thread cache here.
14034 (do_initial_child_stuff): Set the new process'es tdesc.
14035 * win32-low.h (struct target_desc): Forward declare.
14036 (win32_tdesc): Declare.
14037 * lynx-i386-low.c (tdesc_i386): Declare global.
14038 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14039 * lynx-low.c (lynx_tdesc): New global.
14040 (lynx_add_process): Set the new process'es tdesc.
14041 * lynx-low.h (struct target_desc): Forward declare.
14042 (lynx_tdesc): Declare global.
14043 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14044 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14045 * nto-low.c (nto_tdesc): New global.
14046 (do_attach): Set the new process'es tdesc.
14047 * nto-low.h (struct target_desc): Forward declare.
14048 (nto_tdesc): Declare.
14049 * nto-x86-low.c (tdesc_i386): Declare.
14050 (nto_x86_arch_setup): Set `nto_tdesc'.
14052 2013-06-04 Gary Benson <gbenson@redhat.com>
14054 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14055 to qSupported response when appropriate.
14056 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14057 with nonzero-length annex.
14058 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14059 arguments supplied in annex.
14061 2013-05-31 Doug Evans <dje@google.com>
14064 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14065 64 bits in 64-cross-32 environment.
14067 2013-05-28 Pedro Alves <palves@redhat.com>
14069 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14070 (aarch64-without-fpu.c): Delete rule.
14071 * configure.srv (aarch64*-*-linux*): Remove references to
14072 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14073 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14076 2013-05-24 Pedro Alves <palves@redhat.com>
14078 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14079 instead of strchr/decode_address. Error if the range isn't split
14080 with a ','. Don't assume there's be a ':' in the action.
14082 2013-05-23 Yao Qi <yao@codesourcery.com>
14083 Pedro Alves <palves@redhat.com>
14085 * linux-low.c (lwp_in_step_range): New function.
14086 (linux_wait_1): If the thread was range stepping and stopped
14087 outside the stepping range, report the stop to GDB. Otherwise,
14088 continue stepping. Add range stepping debug output.
14089 (linux_set_resume_request): Copy the step range from the resume
14090 request to the lwp.
14091 (linux_supports_range_stepping): New.
14092 (linux_target_ops) <supports_range_stepping>: Set to
14093 linux_supports_range_stepping.
14094 * linux-low.h (struct linux_target_ops)
14095 <supports_range_stepping>: New field.
14096 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14097 * linux-x86-low.c (x86_supports_range_stepping): New.
14098 (the_low_target) <supports_range_stepping>: Set to
14099 x86_supports_range_stepping.
14100 * server.c (handle_v_cont): Handle 'r' action.
14101 (handle_v_requests): Append ";r" if the target supports range
14103 * target.h (struct thread_resume) <step_range_start,
14104 step_range_end>: New fields.
14105 (struct target_ops) <supports_range_stepping>:
14107 (target_supports_range_stepping): New macro.
14109 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14111 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14112 confusion in comment.
14114 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14116 * lynx-low.c (struct process_info_private): New type.
14117 (lynx_add_process): New function.
14118 (lynx_create_inferior, lynx_attach): Replace calls to
14119 add_process by calls to lynx_add_process.
14120 (lynx_resume): If PTID is null, then try using
14121 current_process()->private->last_wait_event_ptid.
14123 (lynx_clear_inferiors): Delete. The contents of that function
14124 has been inlined in lynx_mourn;
14125 (lynx_wait_1): Save the ptid in the process's private data.
14126 (lynx_mourn): Free the process' private data. Replace call
14127 to lynx_clear_inferiors by call to clear_inferiors.
14129 2013-05-17 Yao Qi <yao@codesourcery.com>
14131 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14134 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14136 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14137 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14138 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14139 PT_TEXT_END_ADDR guards. Update comments.
14140 (linux_target_op) <read_offsets>: Conditionally define to
14141 linux_read_offsets if the target is UCLIBC and if it defines
14142 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14144 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14145 Andrew Jenner <andrew@codesourcery.com>
14147 * Makefile.in (SFILES): Add linux-nios2-low.c.
14148 (clean): Add action to delete nios2-linux.c.
14149 (nios2-linux.c): New rule.
14150 * configure.srv: Add nios2*-*-linux*.
14151 * linux-nios2-low.c: New.
14153 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14155 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14157 2013-04-25 Hui Zhu <hui@codesourcery.com>
14160 * ax.c (ax_printf): Add fflush.
14162 2013-04-22 Tom Tromey <tromey@redhat.com>
14164 * Makefile.in (SFILES): Add filestuff.c.
14165 (OBS): Add filestuff.o.
14166 (filestuff.o): New target.
14167 * config.in, configure: Rebuild.
14168 * configure.ac: Check for fdwalk, pipe2.
14170 2013-04-17 Pedro Alves <palves@redhat.com>
14172 * configure.ac (USE_THREAD_DB): Delete variable.
14173 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14174 Don't AC_SUBST USE_THREAD_DB.
14175 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14176 * config.in, configure: Regenerate.
14178 2013-04-16 Pedro Alves <palves@redhat.com>
14180 * linux-low.h (struct lwp_info) <thread_known>: Move under
14181 the USE_THREAD_DB #ifdef.
14183 2013-04-16 Pedro Alves <palves@redhat.com>
14185 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14186 (linux-low.o): Delete rule.
14187 * linux-low.h: Always include "gdb_thread_db.h" instead of
14188 conditionally including thread_db.h.
14189 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14192 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14194 * Makefile.in (install-only): Fix make install regression.
14196 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14198 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14199 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14201 * gdbserver.1: Remove.
14203 2013-03-22 Pedro Alves <palves@redhat.com>
14205 * linux-low.c (handle_extended_wait): Don't call
14206 linux_enable_event_reporting.
14208 2013-03-15 Tony Theodore <tonyt@logyst.com>
14211 * Makefile.in (SHELL): Use @SHELL@.
14213 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14215 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14218 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14220 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14221 Remove extraneous NULL element.
14223 2013-03-13 Yao Qi <yao@codesourcery.com>
14225 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14226 'V' block in trace frame.
14228 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14230 * target.h (struct target_ops): Add btrace ops.
14231 (target_supports_btrace): New macro.
14232 (target_enable_btrace): New macro.
14233 (target_disable_btrace): New macro.
14234 (target_read_btrace): New macro.
14235 * gdbthread.h (struct thread_info): Add btrace field.
14236 * server.c: Include btrace-common.h.
14237 (handle_btrace_general_set): New function.
14238 (handle_btrace_enable): New function.
14239 (handle_btrace_disable): New function.
14240 (handle_general_set): Call handle_btrace_general_set.
14241 (handle_qxfer_btrace): New function.
14242 (struct qxfer qxfer_packets[]): Add btrace entry.
14243 * inferiors.c (remove_thread): Disable btrace.
14244 * linux-low: Include linux-btrace.h.
14245 (linux_low_enable_btrace): New function.
14246 (linux_low_read_btrace): New function.
14247 (linux_target_ops): Add btrace ops.
14248 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14249 Add srv_linux_btrace=yes.
14250 (x86_64-*-linux*): Add linux-btrace.o.
14251 Add srv_linux_btrace=yes.
14252 * configure.ac: Define HAVE_LINUX_BTRACE.
14253 * config.in: Regenerated.
14254 * configure: Regenerated.
14256 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14258 * server.c (handle_qxfer): Preserve error message if -3 is
14260 (qxfer): Document the -3 return value.
14262 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14264 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14265 (linux_btrace_h): New variable.
14266 (linux-btrace.o): New rule.
14268 2013-03-08 Stan Shebs <stan@codesourcery.com>
14269 Hafiz Abid Qadeer <abidh@codesourcery.com>
14271 * tracepoint.c (trace_buffer_size): New global.
14272 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14273 (init_trace_buffer): Change to one-argument function. Allocate
14274 trace buffer memory.
14275 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14276 handle QTBuffer:size packet.
14277 (cmd_bigqtbuffer_size): New function.
14278 (initialize_tracepoint): Call init_trace_buffer with
14279 DEFAULT_TRACE_BUFFER_SIZE.
14280 * server.c (handle_query): Add QTBuffer:size in the
14283 2013-03-07 Yao Qi <yao@codesourcery.com>
14285 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14286 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14288 (cmd_qtsp): Adjust condition. Do post increment.
14289 Set cur_action and cur_step_action back to 0.
14291 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14294 * linux-low.c (linux_write_memory): Return early success if LEN is
14297 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14299 * configure.srv: Add x86_64-*-cygwin* as target.
14301 2013-02-28 Tom Tromey <tromey@redhat.com>
14303 * configure.ac: Invoke AC_SYS_LARGEFILE.
14304 * configure, config.in: Rebuild.
14306 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14308 * win32-low.c: Throughout, fix format strings and casts of
14309 printf-like functions to avoid type related warnings on all
14311 (get_child_debug_event): Print dwDebugEventCode as hex since
14312 that's how it's usually documented.
14314 2013-02-28 Yao Qi <yao@codesourcery.com>
14316 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14319 2013-02-27 Jiong Wang <jiwang@tilera.com>
14321 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14322 (reg-tilegx32.c): New rule.
14323 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14324 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14325 different register info initializer according to elf class.
14326 (init_registers_tilgx32): New function. The tilegx32 register info
14328 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14329 (tile_store_gregset): Likewise.
14331 2013-02-27 Yao Qi <yao@codesourcery.com>
14333 * server.c (process_point_options): Print debug message when
14334 debug_threads is true.
14336 2013-02-26 Yao Qi <yao@codesourcery.com>
14338 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14340 2013-02-19 Pedro Alves <palves@redhat.com>
14341 Kai Tietz <ktietz@redhat.com>
14345 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14346 instead of strtoul to extract address from packet.
14347 (process_serial_event) <'z'>: Likewise.
14349 2013-02-18 Yao Qi <yao@codesourcery.com>
14351 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14353 2013-02-14 Pedro Alves <palves@redhat.com>
14357 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14358 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14360 2013-02-14 Pedro Alves <palves@redhat.com>
14362 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14364 2013-02-14 Pedro Alves <palves@redhat.com>
14366 * tracepoint.c (save_string): Delete.
14367 (add_tracepoint_action): Use savestring instead of save_string.
14369 2013-02-12 Pedro Alves <palves@redhat.com>
14371 * linux-xtensa-low.c: Ditto.
14372 * xtensa-xtregs.c: Ditto.
14374 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14376 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14379 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14381 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14382 aarch64_num_wp_regs and aarch64_num_bp_regs to
14383 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14385 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14387 * linux-aarch64-low.c (ps_get_thread_area): Replace
14388 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14390 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14391 Marcus Shawcroft <marcus.shawcroft@arm.com>
14392 Nigel Stephens <nigel.stephens@arm.com>
14393 Yufeng Zhang <yufeng.zhang@arm.com>
14395 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14396 (aarch64.c, aarch64-without-fpu.c): New targets.
14397 * configure.srv (aarch64*-*-linux*): New.
14398 * linux-aarch64-low.c: New file.
14400 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14402 * linux-low.c (handle_extended_wait, linux_create_inferior)
14403 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14404 (dequeue_one_deferred_signal, linux_resume_one_thread)
14405 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14406 (linux_tracefork_grandchild, linux_test_for_tracefork)
14407 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14408 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14409 where the argument is 0.
14411 2013-01-25 Yao Qi <yao@codesourcery.com>
14413 * event-loop.c: Include "queue.h".
14414 (gdb_event_p): New typedef.
14415 (struct gdb_event) <next_event>: Remove.
14416 (event_queue): Change to QUEUE(gdb_event_p).
14417 (async_queue_event): Remove.
14418 (gdb_event_xfree): New.
14419 (initialize_event_loop): New.
14420 (process_event): Use API from QUEUE.
14421 (wait_for_event): Likewise.
14422 * server.c (main): Call initialize_event_loop.
14423 * server.h (initialize_event_loop): Declare.
14425 2013-01-18 Yao Qi <yao@codesourcery.com>
14427 * ax.h (struct eval_agent_expr_context): New.
14428 (gdb_eval_agent_expr): Update declaration.
14429 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14430 TFRAME. Add new argument CTX.
14431 * server.h (struct eval_agent_expr_context): Declare.
14432 (agent_mem_read, agent_tsv_read): Update declaration.
14433 (agent_mem_read_string): Likewise.
14434 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14435 (add_traceframe_block): Add new argument TPOINT.
14436 Increase TPOINT->traceframe_usage.
14437 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14438 eval_tracepoint_agent_expr.
14439 (condition_true_at_tracepoint): Likewise.
14440 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14441 (agent_mem_read_string, agent_tsv_read): Likewise.
14443 2013-01-16 Yao Qi <yao@codesourcery.com>
14445 * linux-low.c (linux_resume_one_lwp): Don't check
14446 'lwp->bp_reinsert != 0'.
14448 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14449 Pedro Alves <palves@redhat.com>
14451 * lynx-low.c (ptrace_request_to_str): Define a temporary
14452 macro and use it to simplify this function's implementation.
14454 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14456 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14459 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14461 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14463 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14465 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14467 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14469 * lynx-low.c (lynx_resume): Use the resume_info parameter
14470 to determine the ptid for the lynx_ptrace call, unless
14471 it is equal to minus_one_ptid, in which case we use the
14472 ptid of the current_inferior.
14473 (lynx_wait_1): After having received a thread create/exit
14474 event, resume the inferior's execution using the signaling
14475 thread's ptid, rather than the old ptid.
14477 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14479 * lynx-low.c (lynx_resume): Delete variable ret.
14481 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14483 * gdbreplay.c (gdbreplay_version): Update copyright year.
14484 * server.c (gdbserver_version): Likewise.
14486 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14488 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14491 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14493 * lynx-low.c (ptrace_request_to_str): Add handling for
14494 PTRACE_GETTRACESIG.
14496 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14498 * lynx-low.c (lynx_attach): Delete variable new_process.
14500 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14502 * lynx-low.c (lynx_create_inferior): Delete variable
14505 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14507 * lynx-low.c (ptrace_request_to_str): Do not handle
14508 PTRACE_GETTHREADLIST if this macro does not exist.
14510 2012-12-15 Yao Qi <yao@codesourcery.com>
14512 * Makefile.in (OBS): Add notif.o.
14513 * notif.c, notif.h: New.
14514 * server.c: Include "notif.h".
14515 (struct vstop_notif) <next>: Remove.
14517 (queue_stop_reply): Update.
14518 (push_event, send_next_stop_reply): Remove.
14519 (discard_queued_stop_replies): Update.
14520 (notif_stop): New variable.
14521 (handle_v_stopped): Remove.
14522 (handle_v_requests): Don't call handle_v_stopped. Call
14523 handle_ack_notif instead.
14524 (queue_stop_reply_callback): Call notif_event_enque instead
14525 of queue_stop_reply.
14526 (handle_status): Don't call send_next_stop_reply, call
14527 notif_write_event instead.
14528 (kill_inferior_callback): Likewise.
14529 (detach_or_kill_inferior_callback): Likewise.
14530 (main): Call initialize_notif.
14531 (process_serial_event): Call QUEUE_is_empty.
14532 (handle_target_event): Call notif_push instead of push event.
14533 * server.h (push_event): Remove declaration.
14535 2012-12-10 Tom Tromey <tromey@redhat.com>
14537 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14538 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14541 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14542 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14543 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14544 (amd64-linux-ipa.o, ax.o): Rewrite.
14545 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14546 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14547 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14548 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14549 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14550 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14551 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14552 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14553 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14554 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14555 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14556 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14557 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14558 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14559 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14560 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14561 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14562 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14563 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14564 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14565 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14566 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14567 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14568 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14569 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14570 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14571 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14572 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14573 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14574 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14575 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14576 (reg-tilegx.o): Remove.
14577 (all_object_files): New macro.
14578 Include .deps files.
14579 * aclocal.m4, configure: Rebuild.
14580 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14581 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14582 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14584 2012-12-05 Tom Tromey <tromey@redhat.com>
14587 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14589 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14591 * configure.ac: Check for linux/perf_event.h.
14592 * config.in: Regenerated.
14593 * configure: Regenerated.
14595 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14597 * hostio.c (handle_readlink): Decrease buffer size
14598 parameter passed to readlink by one byte.
14600 2012-11-26 Yao Qi <yao@codesourcery.com>
14602 * configure.ac (build_warnings): Append '-Wempty-body'.
14603 * configure: Regenerated.
14604 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14607 2012-11-15 Pierre Muller <muller@sourceware.org>
14609 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14610 * config.in: Regenerate.
14611 * configure: Regenerate.
14612 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14613 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14614 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14615 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14617 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14618 instead of <sys/wait.h> header.
14619 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14621 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14623 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14624 (various make rules): Remove -DGDBSERVER
14626 2012-11-09 Yao Qi <yao@codesourcery.com>
14628 * spu-low.c (current_ptid): Move it to ..
14629 * gdbthread.h: ... here. New.
14630 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14631 * server.c (myresume, process_serial_event): Likewise.
14632 * thread-db.c (thread_db_find_new_threads): Likewise.
14633 * tracepoint.c (run_inferior_command): Likewise.
14635 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14637 * server.c (handle_search_memory_1): Include access length in
14640 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14642 * linux-crisv32-low.c: Fix compile errors.
14644 2012-09-04 Yao Qi <yao@codesourcery.com>
14646 * tracepoint.c (cmd_qtsv): Adjust debug message.
14647 Don't check CUR_TPOINT.
14649 2012-08-28 Yao Qi <yao@codesourcery.com>
14651 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14652 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14653 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14654 Remove declarations of xmalloc, xreallloc, xstrdup and
14656 * Makefile.in (libiberty_h): New.
14657 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14658 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14660 2012-08-23 Yao Qi <yao@codesourcery.com>
14662 * server.h: Remove declaration of 'xsnprintf'.
14664 2012-08-22 Keith Seitz <keiths@redhat.com>
14666 * server.h: Include build-gnulib-gbserver/config.h.
14667 * gdbreplay.c: Likewise.
14669 2012-08-08 Doug Evans <dje@google.com>
14671 * Makefile.in (SFILES): Add gdb_vecs.c.
14672 (OBS): Add gdb_vecs.o.
14673 (gdb_vecs_h, host_defs_h): New variables.
14674 (thread-db.o): Add $(gdb_vecs_h) dependency.
14675 (gdb_vecs.o): New rule.
14676 * thread-db.c: #include "gdb_vecs.h".
14677 (thread_db_load_search): Use a vector to iterate over path elements.
14678 Handle text appearing after "$pdir".
14680 * configure.ac: Add check for strstr.
14681 * config.in: Regenerate.
14682 * configure: Regenerate.
14684 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14686 * hostio.c (handle_pread): If pread fails, fall back to attempting
14688 (handle_pwrite): Likewise for pwrite.
14690 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14692 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14693 between unsupported TYPE and unimplementable ADDR/LEN combination.
14694 (arm_insert_point): Act on new return value.
14696 2012-07-31 Pedro Alves <palves@redhat.com>
14698 * server.c (process_point_options): Only skip tokens if we find
14699 one that is unrecognized. Don't treat 'X' specially while
14700 skipping unrecognized tokens.
14702 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14704 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14705 to 4-byte-align HW breakpoint addresses for Thumb.
14707 2012-07-27 Yao Qi <yao@codesourcery.com>
14711 * server.h: Declare gdb_agent_about_to_close.
14712 * target.c (kill_inferior): Include "agent.h".
14713 New. Send command 'kill'.
14714 * target.h (kill_inferior): Removed macro.
14715 * tracepoint.c (gdb_agent_about_to_close): New.
14716 (gdb_agent_helper_thread): Handle command 'close'.
14717 Wait endlessly until the inferior stops.
14718 Install gdb_agent_remove_socket to atexit hook.
14719 (agent_socket_name): New static variable.
14720 (gdb_agent_socket_init): Replace local variable 'name' with
14721 'agent_socket_name'.
14722 (gdb_agent_remove_socket): New.
14724 2012-07-27 Yao Qi <yao@codesourcery.com>
14726 * server.c (process_point_options): Stop at 'X' when parsing.
14728 2012-07-19 Michael Eager <eager@eagercon.com>
14730 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14732 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14733 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14734 hardware breakpoint.
14736 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14738 * gdbserver/linux-low.c (initialize_low): Call
14739 linux_ptrace_init_warnings.
14741 2012-07-02 Doug Evans <dje@google.com>
14743 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14746 2012-07-02 Stan Shebs <stan@codesourcery.com>
14748 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14749 (ax.o): Add it to build rule.
14751 (OBS): Add format.o.
14752 (IPA_OBS): Add format.o.
14753 * server.c (handle_query): Claim support for breakpoint commands.
14754 (process_point_options): Add command case.
14755 (process_serial_event): Leave running if there are printfs in
14757 * mem-break.h (any_persistent_commands): Declare.
14758 (add_breakpoint_commands): Declare.
14759 (gdb_no_commands_at_breakpoint): Declare.
14760 (run_breakpoint_commands): Declare.
14761 * mem-break.c (struct point_command_list): New struct.
14762 (struct breakpoint): New field command_list.
14763 (any_persistent_commands): New function.
14764 (add_commands_to_breakpoint): New function.
14765 (add_breakpoint_commands): New function.
14766 (gdb_no_commands_at_breakpoint): New function.
14767 (run_breakpoint_commands): New function.
14768 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14770 * ax.c: Include format.h.
14771 (ax_printf): New function.
14772 (gdb_eval_agent_expr): Add printf opcode.
14774 2012-06-13 Yao Qi <yao@codesourcery.com>
14776 * server.c (start_inferior): Remove duplicated writes to fields
14777 'last_resume_kind' and 'last_status' of 'current_inferior'.
14779 2012-06-12 Yao Qi <yao@codesourcery.com>
14780 Pedro Alves <palves@redhat.com>
14782 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14784 * server.c (handle_v_cont): Extend comment.
14786 2012-06-11 Yao Qi <yao@codesourcery.com>
14788 * linux-low.c (linux_attach): Add 'static'.
14790 2012-06-06 Yao Qi <yao@codesourcery.com>
14792 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14794 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14796 Fix gcc -flto compilation warning.
14797 * server.c (main): Make variable multi_mode and attach volatile.
14799 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14801 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14802 if the platform doesn't know about it.
14804 2012-05-30 Jeff Kenton <jkenton@tilera.com>
14806 * Makefile.in (SFILES): Add linux-tile-low.c.
14807 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14808 * configure.srv: Handle tilegx-*-linux*.
14809 * linux-tile-low.c: New file.
14811 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14813 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14815 2012-05-24 Pedro Alves <palves@redhat.com>
14819 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14821 2012-05-24 Pedro Alves <palves@redhat.com>
14825 Replace target_signal with gdb_signal throughout.
14827 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14829 * linux-low.c (linux_store_registers): Avoid the copying sequence
14830 when no data has been retrieved by ptrace.
14832 2012-05-22 Will Deacon <will.deacon@arm.com>
14834 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14835 Include asm/ptrace.h.
14836 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14839 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14841 * linux-low.c (linux_store_registers): Don't re-retrieve data
14842 with ptrace that has already been obtained from /proc. Always
14843 copy any data retrieved with ptrace to the buffer supplied.
14845 2012-05-11 Yao Qi <yao@codesourcery.com>
14846 Pedro Alves <palves@redhat.com>
14848 * linux-low.c (enum stopping_threads_kind): New.
14849 (stopping_threads): Change type to `enum stopping_threads_kind'.
14850 (handle_extended_wait): If stopping and suspending threads, leave
14851 the new_lwp suspended too.
14852 (linux_wait_for_event): Adjust.
14853 (stop_all_lwps): Set `stopping_threads' to
14854 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14855 whether we're suspending threads or just stopping them. Assert no
14858 2012-04-29 Yao Qi <yao@codesourcery.com>
14860 * server.h: Move some code to ...
14861 * gdbthread.h: ... here. New.
14862 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14863 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14864 (nto-low.o, win32-low.o): Likewise.
14865 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14866 * regcache.c, remote-utils.c, server.c: Likewise.
14867 * target.c, tracepoint.c, win32-low.c: Likewise.
14869 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14871 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14872 (PTRACE_ARG4_TYPE): Likewise.
14873 (PTRACE_XFER_TYPE): Likewise.
14874 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14875 ptrace to PTRACE_ARG3_TYPE.
14876 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14877 (PTRACE_ARG4_TYPE): Likewise.
14878 (PTRACE_XFER_TYPE): Likewise.
14879 (linux_detach_one_lwp): Cast fourth argument of
14880 ptrace to long then PTRACE_ARG4_TYPE.
14881 (regsets_fetch_inferior_registers): Cast third argument of
14882 ptrace to long then PTRACE_ARG3_TYPE.
14883 (regsets_store_inferior_registers): Likewise.
14885 2012-04-20 Pedro Alves <palves@redhat.com>
14887 * configure: Regenerate.
14889 2012-04-19 Pedro Alves <palves@redhat.com>
14891 * Makefile.in (GNULIB_BUILDDIR): New.
14892 (LIBGNU, INCGNU, GNULIB_H): Adjust.
14893 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14894 (all, install-only, uninstall, clean-info, all-lib, clean): No
14895 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14896 (maintainer-clean realclean distclean): Use subdir_do.
14898 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
14899 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
14900 * acinclude.m4: Include acx_configure_dir.m4.
14901 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14902 calls. Call AC_PROG_RANLIB. Configure gnulib using
14905 (GNULIB_STDINT_H): Adjust.
14906 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14907 * gdbreplay.c: Include build-gnulib/config.h.
14908 * server.h: Likewise.
14909 * aclocal.m4: Regenerate.
14910 * config.in: Regenerate.
14911 * configure: Regenerate.
14913 2012-04-19 Pedro Alves <palves@redhat.com>
14915 * Makefile.in (LIBGNU, INCGNU): Adjust.
14916 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14917 (all, install-only, uninstall, clean-info, all-lib, clean)
14918 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14919 * configure.ac: Adjust AC_OUTPUT output.
14920 * aclocal.m4: Regenerate.
14921 * configure: Regenerate.
14923 2012-04-19 Pedro Alves <palves@redhat.com>
14925 * Makefile.in (generated_files): New.
14926 (server_h): Remove the explicit dependency on config.h, and depend
14927 on $generated_files.
14929 2012-04-19 Pedro Alves <palves@redhat.com>
14931 * Makefile.in (INCGNU): Add -Ignulib.
14933 2012-04-19 Pedro Alves <palves@redhat.com>
14935 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14936 (INCGNU): ... this, and spell out -I here.
14937 (GNULIB_LIB): Rename to ...
14938 (LIBGNU): ... this.
14939 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14941 2012-04-19 Pedro Alves <palves@redhat.com>
14943 * config.in: Regenerate.
14945 2012-04-19 Pedro Alves <palves@redhat.com>
14947 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14948 * server.h (memmem): Remove declaration.
14949 * config.in: Regenerate.
14950 * configure: Regenerate.
14952 2012-04-19 Yao Qi <yao@codesourcery.com>
14954 * Makefile.in (SFILES): Add common/vec.c.
14958 2012-04-19 Yao Qi <yao@codesourcery.com>
14960 * remote-utils.c (prepare_resume_reply): Replace with macro
14961 target_core_of_thread.
14962 * server.c (handle_qxfer_threads_proper): Likewise.
14963 * target.h (traget_core_of_thread): New macro.
14965 2012-04-18 Pedro Alves <palves@redhat.com>
14967 * aclocal.m4: Regenerate.
14968 * configure: Regenerate.
14970 2012-04-16 Yao Qi <yao@codesourcery.com>
14972 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14973 duplicated on address.
14975 2012-04-16 Yao Qi <yao@codesourcery.com>
14977 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14978 (struct tracepoint_action_ops) <send>: New field.
14979 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14980 (agent_expr_send, x_tracepoint_action_send): New.
14981 (l_tracepoint_action_send): New.
14982 (cmd_qtdp): Download and install tracepoint
14983 according to `use_agent'.
14984 (run_inferior_command): Add one more parameter `len'.
14986 (tracepoint_send_agent): New.
14987 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14989 2012-04-16 Yao Qi <yao@codesourcery.com>
14991 * tracepoint.c (download_tracepoints): Moved to ...
14992 (cmd_qtstart): ... here.
14994 2012-04-14 Yao Qi <yao@codesourcery.com>
14996 * tracepoint.c: Include inttypes.h.
14997 (struct collect_memory_action): Use sized types.
14998 (struct tracepoint): Likewise.
14999 (cmd_qtdp, stop_tracing): Update print specifiers.
15000 (cmd_qtp, response_tracepoint): Likewise.
15001 (collect_data_at_tracepoint): Likewise.
15002 (collect_data_at_step): Likewise.
15004 2012-04-14 Yao Qi <yao@codesourcery.com>
15006 Import gnulib module inttypes.
15007 * aclocal.m4, config.in, configure: Regenerated.
15009 2012-04-14 Yao Qi <yao@codesourcery.com>
15011 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15012 Makefile and config.status at last.
15014 2012-04-13 Yao Qi <yao@codesourcery.com>
15016 * tracepoint.c: Include stdint.h unconditionally.
15018 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15020 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15021 on BFD_HAVE_SYS_PROCFS_TYPE.
15022 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15023 * configure: Regenerate.
15024 * config.in: Likewise.
15026 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15028 * Makefile.in (clean): Also remove x32.c x32-linux.c
15029 x32-avx.c x32-avx-linux.c.
15030 (x32.o): New target.
15032 (x32-linux.o): Likewise.
15033 (x32-linux.c): Likewise.
15034 (x32-avx.o): Likewise.
15035 (x32-avx.c): Likewise.
15036 (x32-avx-linux.o): Likewise.
15037 (x32-avx-linux.c): Likewise.
15039 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15040 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15041 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15042 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15043 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15044 i386/x32-avx-linux.xml.
15046 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15047 (init_registers_x32_avx_linux): Likwise.
15048 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15049 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15051 2012-04-13 Pedro Alves <palves@redhat.com>
15053 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15054 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15055 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15056 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15059 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15061 * linux-x86-low.c (compat_x32_clock_t): New.
15062 (compat_x32_siginfo_t): Likewise.
15063 (compat_x32_siginfo_from_siginfo): Likewise.
15064 (siginfo_from_compat_x32_siginfo): Likewise.
15065 (linux_is_elf64): Likewise.
15066 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15067 and siginfo_from_compat_x32_siginfo for x32.
15068 (x86_arch_setup): Set linux_is_elf64.
15070 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15073 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15075 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15076 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15077 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15078 compatible with process.
15080 2012-04-12 Yao Qi <yao@codesourcery.com>
15082 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15083 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15084 (install-only, install-info, clean): Handle sub dir gnulib.
15085 (all-lib, am--refresh): New targets.
15086 (memmem.o): Remove target.
15087 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15088 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15089 (AC_REPLACE_FUNCS): Remove memmem.
15090 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15091 (AC_OUTPUT): Generate Makefile in gnulib/.
15092 * aclocal.m4, config.in, configure: Regenerated.
15094 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15096 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15098 2012-04-05 Pedro Alves <palves@redhat.com>
15100 -Werror=strict-aliasing
15102 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15105 2012-04-04 Pedro Alves <palves@redhat.com>
15107 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15108 (sparc_store_gregset_from_stack, sparc_store_gregset)
15109 (sparc_breakpoint_at): Fix formatting.
15111 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15113 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15115 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15116 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15117 * config.in: Regenerate.
15118 * configure: Likewise.
15120 2012-03-29 Pedro Alves <palves@redhat.com>
15122 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15123 Correct ptrace arguments.
15125 2012-03-28 Pedro Alves <palves@redhat.com>
15127 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15128 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15129 (IA64_FR1_REGNUM): New defines.
15130 (ia64_fetch_register): New.
15131 (the_low_target): Install it.
15132 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15134 * linux-low.c (linux_fetch_registers): Try the
15135 the_low_target.fetch_register hook first.
15137 * linux-arm-low.c (the_low_target): Adjust.
15138 * linux-bfin-low.c (the_low_target): Adjust.
15139 * linux-cris-low.c (the_low_target): Adjust.
15140 * linux-crisv32-low.c (the_low_target): Adjust.
15141 * linux-m32r-low.c (the_low_target): Adjust.
15142 * linux-m68k-low.c (the_low_target): Adjust.
15143 * linux-mips-low.c (the_low_target): Adjust.
15144 * linux-ppc-low.c (the_low_target): Adjust.
15145 * linux-s390-low.c (the_low_target): Adjust.
15146 * linux-sh-low.c (the_low_target): Adjust.
15147 * linux-sparc-low.c (the_low_target): Adjust.
15148 * linux-tic6x-low.c (the_low_target): Adjust.
15149 * linux-x86-low.c (the_low_target): Adjust.
15150 * linux-xtensa-low.c (the_low_target): Adjust.
15152 2012-03-26 Pedro Alves <palves@redhat.com>
15154 * server.c (handle_qxfer_libraries): Don't bail early if
15155 the_target->qxfer_libraries_svr4 is not NULL.
15157 2012-03-26 Pedro Alves <palves@redhat.com>
15159 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15161 2012-03-23 Pedro Alves <palves@redhat.com>
15163 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15164 "library-list-svr4" element's start tag when the the DSO list is
15167 2012-03-23 Pedro Alves <palves@redhat.com>
15169 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15170 a variable whose type size is the same as the inferior's pointer
15173 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15175 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15177 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15178 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15179 * linux-low.h: Include <signal.h>.
15180 (struct siginfo): Remove forward declaration.
15181 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15184 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15186 * .gitignore: Ignore more files.
15188 2012-03-19 Pedro Alves <palves@redhat.com>
15189 Jan Kratochvil <jan.kratochvil@redhat.com>
15191 * server.c (cont_thread, general_thread): Add describing comments.
15192 (start_inferior): Clear `cont_thread'.
15193 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15196 2012-03-15 Yao Qi <yao@codesourcery.com>
15198 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15200 (cmd_qtdp): ... here.
15202 2012-03-15 Yao Qi <yao@codesourcery.com>
15204 * tracepoint.c (struct tracepoint_action_ops): New.
15205 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15206 (m_tracepoint_action_download): New.
15207 (r_tracepoint_action_download): New.
15208 (x_tracepoint_action_download): New.
15209 (l_tracepoint_action_download): New.
15210 (add_tracepoint_action): Install `action->ops' according type.
15211 (download_tracepoint_1): Move code `download' function pointer
15212 of various tracepoint_action_ops.
15214 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15216 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15217 linux_ptrace_attach_warnings.
15219 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15221 * Makefile.in (linux-ptrace.o): New.
15222 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15223 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15224 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15225 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15226 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15228 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15230 2012-03-08 Yao Qi <yao@codesourcery.com>
15231 Pedro Alves <palves@redhat.com>
15233 Fix PR server/13392.
15234 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15235 offset of JMP insn.
15236 * tracepoint.c (remove_tracepoint): New.
15237 (cmd_qtdp): Call remove_tracepoint when failed to install.
15239 2012-03-07 Pedro Alves <palves@redhat.com>
15241 * linux-low.c (get_detach_signal): New.
15242 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15243 Pass on pending signals to PTRACE_DETACH. Check the result of the
15245 * server.c (program_signals, program_signals_p): New.
15246 (handle_general_set): Handle QProgramSignals.
15247 * server.h (program_signals, program_signals_p): Declare.
15249 2012-03-05 Pedro Alves <palves@redhat.com>
15250 Jan Kratochvil <jan.kratochvil@redhat.com>
15252 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15255 2012-03-03 Yao Qi <yao@codesourcery.com>
15257 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15258 agent_look_up_symbols.
15260 2012-03-03 Yao Qi <yao@codesourcery.com>
15262 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15263 (linux-x86-low.o): Likewise.
15264 * server.h: Remove in_process_agent_loaded.
15265 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15269 2012-03-03 Yao Qi <yao@codesourcery.com>
15271 * tracepoint.c (gdb_agent_capability): New global.
15272 (in_process_agent_loaded_ust): Renamed to
15273 `in_process_agent_supports_ust'.
15275 (in_process_agent_supports_ust): Call agent_capability_check.
15276 (clear_installed_tracepoints): Assert that agent supports
15279 2012-03-03 Yao Qi <yao@codesourcery.com>
15281 * linux-low.c (linux_supports_agent): New.
15282 (linux_target_ops): Initialize field `supports_agent' with
15283 linux_supports_agent.
15284 * target.h (struct target_ops) <supports_agent>: New.
15285 (target_supports_agent): New macro.
15286 * server.c (handle_general_set): Handle packet 'QAgent'.
15287 (handle_query): Send `QAgent+'.
15288 * Makefile.in (server.o): Depends on agent.h.
15290 2012-03-03 Yao Qi <yao@codesourcery.com>
15292 * Makefile.in (OBS): Add agent.o.
15293 Add new rule for agent.o.
15294 Track dependence of tracepoint.c on agent.h.
15295 * tracepoint.c (run_inferior_command_1):
15296 (run_inferior_command): Call agent_run_command.
15297 (gdb_ust_connect_sync_socket): Deleted. Move it to
15299 (resume_thread, stop_thread): Likewise.
15300 (gdb_ust_socket_init): Renamed to ...
15301 (gdb_agent_socket_init): ... New.
15302 (gdb_ust_thread): Renamed to ...
15303 (gdb_agent_helper_thread): ... New.
15304 (gdb_ust_init): Move some code to ...
15305 (gdb_agent_init): ... here. New.
15306 [HAVE_UST]: Call gdb_ust_init.
15307 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15308 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15309 * config.in, configure: Regenerated.
15311 2012-03-02 Pedro Alves <palves@redhat.com>
15313 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15314 * linux-low.c (struct simple_pid_list): New.
15315 (stopped_pids): New a struct simple_pid_list pointer.
15316 (add_to_pid_list, pull_pid_from_list): New.
15317 (handle_extended_wait): Don't assume the first signal new children
15318 report is SIGSTOP. Adjust call to pull_pid_from_list.
15319 (linux_wait_for_lwp): Adjust.
15321 2012-03-02 Yao Qi <yao@codesourcery.com>
15323 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15326 2012-03-02 Yao Qi <yao@codesourcery.com>
15328 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15329 `stop_pc' and `tpoint'. Update caller.
15331 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15333 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15334 * linux-low.c (use_linux_regsets): New macro.
15335 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15336 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15337 (linux_register_in_regsets): New function.
15338 (usr_fetch_inferior_registers): Skip registers covered by
15340 (usr_store_inferior_registers): Likewise.
15341 (usr_fetch_inferior_registers): New macro.
15342 (usr_store_inferior_registers): Likewise.
15343 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15344 (linux_store_registers): Likewise.
15345 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15347 (init_registers_mips64_dsp_linux): Likewise.
15348 (init_registers_mips_linux): New macro.
15349 (init_registers_mips_dsp_linux): Likewise.
15350 (mips_dsp_num_regs): Likewise.
15351 (DSP_BASE, DSP_CONTROL): New fallback macros.
15352 (mips_base_regs): New macro.
15353 (mips_regmap): Use it. Fix the size.
15354 (mips_dsp_regmap): New variable.
15355 (mips_dsp_regset_bitmap): Likewise.
15356 (mips_arch_setup): New function.
15357 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15359 (mips_cannot_store_register): Likewise.
15360 (the_low_target): Update .arch_setup, .num_regs and .regmap
15361 initializers. Add .regset_bitmap initializer.
15362 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15364 * linux-bfin-low.c (the_low_target): Likewise.
15365 * linux-cris-low.c (the_low_target): Likewise.
15366 * linux-crisv32-low.c (the_low_target): Likewise.
15367 * linux-ia64-low.c (the_low_target): Likewise.
15368 * linux-m32r-low.c (the_low_target): Likewise.
15369 * linux-m68k-low.c (the_low_target): Likewise.
15370 * linux-ppc-low.c (the_low_target): Likewise.
15371 * linux-s390-low.c (the_low_target): Likewise.
15372 * linux-sh-low.c (the_low_target): Likewise.
15373 * linux-sparc-low.c (the_low_target): Likewise.
15374 * linux-tic6x-low.c (the_low_target): Likewise.
15375 * linux-x86-low.c (the_low_target): Likewise.
15376 * linux-xtensa-low.c (the_low_target): Likewise.
15377 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15378 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15379 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15381 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15382 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15384 2012-02-29 Yao Qi <yao@codesourcery.com>
15385 Pedro Alves <palves@redhat.com>
15387 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15388 `step_over_finished' is true.
15390 2012-02-27 Pedro Alves <palves@redhat.com>
15392 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15393 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15395 2012-02-27 Pedro Alves <palves@redhat.com>
15398 * linux-low.c (pid_is_stopped): New.
15399 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15401 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15403 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15406 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15408 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15410 2012-02-24 Luis Machado <lgustavo@codesourcery>
15412 * server.c (handle_query): Advertise support for target-side
15413 breakpoint condition evaluation.
15414 (process_point_options): New function.
15415 (process_serial_event): When inserting a breakpoint, check for
15416 a target-side condition that should be evaluated.
15418 * mem-break.c: Include regcache.h and ax.h.
15419 (point_cond_list_t): New data structure.
15420 (breakpoint) <cond_list>: New field.
15421 (find_gdb_breakpoint_at): Make non-static.
15422 (delete_gdb_breakpoint_at): Clear any target-side
15424 (clear_gdb_breakpoint_conditions): New function.
15425 (add_condition_to_breakpoint): Likewise.
15426 (add_breakpoint_condition): Likewise.
15427 (gdb_condition_true_at_breakpoint): Likewise.
15428 (gdb_breakpoint_here): Return result directly instead
15429 of going through a local variable.
15431 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15432 (clear_gdb_breakpoint_conditions): Likewise.
15433 (add_breakpoint_condition): Likewise.
15434 (gdb_condition_true_at_breakpoint): Likewise.
15436 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15437 (need_step_over_p): Take target-side breakpoint condition into
15440 2012-02-24 Luis Machado <lgustavo@codesourcery>
15442 * server.h: Include tracepoint.h.
15443 (agent_mem_read, agent_get_trace_state_variable_value,
15444 agent_set_trace_state_variable_value,
15445 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15446 get_set_tsv_func_addr): New prototypes.
15448 * ax.h: New include file.
15449 * ax.c: New source file.
15451 * tracepoint.c: Include ax.h.
15452 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15453 agent_expr, eval_result_type): Move to ax.h.
15454 (parse_agent_expr): Rename to ...
15455 (gdb_parse_agent_expr): ... this, make it non-static and move
15457 (unparse_agent_expr) Rename to ...
15458 (gdb_unparse_agent_expr): ... this, make it non-static and move
15460 (eval_agent_expr): Rename to ...
15461 (eval_tracepoint_agent_expr): ... this.
15462 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15463 forward declarations.
15464 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15465 (agent_get_trace_state_variable_value): New function.
15466 (agent_set_trace_state_variable_value): New function.
15467 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15468 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15469 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15470 (condition_true_at_tracepoint): Likewise.
15471 (parse_agent_expr): Rename to ...
15472 (gdb_parse_agent_expr): ... this and move to ax.c.
15473 (unparse_agent_expr): Rename to ...
15474 (gdb_unparse_agent_expr): ... this and move to ax.c.
15475 (gdb_agent_op_name): Move to ax.c.
15476 (eval_agent_expr): Rename to ...
15477 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15479 (eval_tracepoint_agent_expr): New function.
15480 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15482 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15484 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15485 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15486 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15487 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15488 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15489 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15490 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15491 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15492 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15493 (compile_bytecodes): Remove forward declaration.
15494 (is_goto_target): Move to ax.c.
15495 (compile_bytecodes): Move to ax.c and call
15496 agent_get_trace_state_variable_value (...) and
15497 agent_set_trace_state_variable_value (...).
15499 * Makefile.in: Update ax.c and IPA dependencies.
15501 2012-02-24 Pedro Alves <palves@redhat.com>
15503 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15504 (cmd_bigqtbuffer_circular): ... this. Only handle
15505 'QTBuffer:circular:'.
15506 (handle_tracepoint_general_set): Adjust.
15508 2012-02-16 Yao Qi <yao@codesourcery.com>
15510 * inferiors.c: Move code to ...
15511 * dll.c: .... here. New.
15512 * server.h: Declare clear_dlls.
15513 * Makefile.in (SFILES): Add dll.c.
15517 2012-02-11 Yao Qi <yao@codesourcery.com>
15519 * server.c: (handle_monitor_command): Add a new parameter
15521 (handle_query): Update caller.
15523 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15525 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15526 * configure, config.in: Regenerate.
15527 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15530 2012-02-02 Pedro Alves <palves@redhat.com>
15532 Try SIGKILL first, then PTRACE_KILL.
15533 * linux-low.c (linux_kill_one_lwp): New.
15534 (linux_kill_one_lwp): Rename to ...
15535 (kill_one_lwp_callback): ... this. Use the new
15536 linux_kill_one_lwp.
15538 2012-02-02 Pedro Alves <palves@redhat.com>
15540 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15543 2012-01-27 Pedro Alves <palves@redhat.com>
15545 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15546 (elf_64_file_p): Make static.
15547 (linux_pid_exe_is_elf_64_file): New.
15548 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15549 Delete declarations.
15550 (linux_pid_exe_is_elf_64_file): Declare.
15551 * linux-x86-low.c (x86_arch_setup): Use
15552 linux_pid_exe_is_elf_64_file.
15554 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15556 * linux-low.c (linux_wait_for_event_1): Rename to ...
15557 (linux_wait_for_event): ... here and merge it with former
15558 linux_wait_for_event - new variable wait_ptid, use it.
15559 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15561 2012-01-23 Pedro Alves <palves@redhat.com>
15563 * server.c (main): Avoid yet another case of infinite loop while
15564 detaching/killing after a longjmp.
15566 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15569 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15571 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15573 * hostio.c (handle_readlink): New function.
15574 (handle_vFile): Call it to handle "vFile:readlink" packets.
15576 2012-01-20 Pedro Alves <palves@redhat.com>
15577 Ulrich Weigand <ulrich.weigand@linaro.org>
15579 * server.c (handle_v_requests): Only support vAttach and vRun to
15580 start multiple processes when in extended protocol mode.
15582 2012-01-17 Pedro Alves <palves@redhat.com>
15584 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15585 memalign plus mprotect to allocate the scratch buffer.
15587 2012-01-13 Pedro Alves <palves@redhat.com>
15589 * server.c (attach_inferior): Clear `cont_thread'.
15591 2012-01-13 Pedro Alves <palves@redhat.com>
15593 * server.c (main): Avoid infinite loop while detaching/killing
15596 2012-01-09 Doug Evans <dje@google.com>
15598 * server.c (start_inferior): Set last_ptid in --wrapper case.
15600 2012-01-06 Yao Qi <yao@codesourcery.com>
15602 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15604 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15606 2012-01-04 Yao Qi <yao@codesourcery.com>
15608 * tracepoint.c (cmd_qtdp): Print debug message
15609 for static tracepoint.
15611 2012-01-04 Yao Qi <yao@codesourcery.com>
15613 * tracepoint.c (trace_vdebug): Differentiate debug message
15614 between gdbserver and IPA.
15616 2012-01-03 Yao Qi <yao@codesourcery.com>
15618 * tracepoint.c (tracepoint_was_hit): Don't collect for
15621 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15623 * terminal.h: Reformat copyright header.
15625 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15627 * server.c (gdbserver_version): Update copyright year.
15628 * gdbreplay.c (gdbreplay_version): Likewise.
15630 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15632 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15635 2011-12-18 Hui Zhu <teawater@gmail.com>
15636 * linux-low.c (linux_create_inferior): Save return value to ret.
15638 2011-12-18 Hui Zhu <teawater@gmail.com>
15640 * linux-low.c (linux_create_inferior): Save return value to ret.
15642 2011-12-16 Doug Evans <dje@google.com>
15644 * linux-low.c (linux_create_inferior): If stdio connection,
15645 redirect stdin from /dev/null, stdout to stderr.
15646 * remote-utils.c (remote_is_stdio): New static global.
15647 (remote_connection_is_stdio): New function.
15648 (remote_prepare): Handle stdio connection.
15649 (remote_open): Ditto.
15650 (remote_close): Don't close stdin for stdio connections.
15651 (read_prim,write_prim): New functions. Replace all calls to
15652 read/write to these.
15653 * server.c (main): Watch for "-" argument. Move call to
15654 remote_prepare before start_inferior.
15655 * server.h (STDIO_CONNECTION_NAME): New macro.
15656 (remote_connection_is_stdio): Declare.
15658 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15659 in debugging output.
15661 2011-12-15 Yao Qi <yao@codesourcery.com>
15663 * tracepoint.c: Include sys/syscall.h.
15664 (gdb_ust_thread): Remove preprocessor conditional.
15666 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15668 * linux-low.c (linux_detach_one_lwp): Call
15669 the_low_target.prepare_to_resume before detaching.
15671 2011-12-14 Yao Qi <yao@codesourcery.com>
15673 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15676 2011-12-14 Yao Qi <yao@codesourcery.com>
15678 * i386-low.c (i386_low_stopped_data_address): Initialize local
15679 variable `control'.
15681 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15685 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15686 DR_CONTROL unless necessary. Extend comments.
15687 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15688 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15690 2011-12-13 Yao Qi <yao@codesourcery.com>
15692 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15694 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15696 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15698 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15699 Print new debug message for such case.
15701 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15703 Fix overlapping memcpy.
15704 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15705 the read_inferior_memory transfer.
15706 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15707 write_inferior_memory transfer.
15708 (set_fast_tracepoint_jump): New variable buf. Use it for the
15709 read_inferior_memory and write_inferior_memory transfers.
15710 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15711 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15712 Use it for the write_inferior_memory transfer.
15713 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15716 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15718 * linux-low.c (fetch_register, store_register): Make code
15719 consistent, fix formatting.
15721 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15723 * linux-low.c (usr_store_inferior_registers): Factor out code
15724 to handle individual registers into...
15725 (store_register): ... this new function.
15727 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15729 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15730 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15731 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15732 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15733 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15734 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15735 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15736 (srv_xmlfiles): Add new XML files.
15738 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15740 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15741 (init_registers_s390_linux32v1): Add prototype.
15742 (init_registers_s390_linux32v2): Likewise.
15743 (init_registers_s390_linux64v1): Likewise.
15744 (init_registers_s390_linux64v2): Likewise.
15745 (init_registers_s390x_linux64v1): Likewise.
15746 (init_registers_s390x_linux64v2): Likewise.
15747 (s390_num_regs): Increment to 52.
15748 (s390_regmap): Add orig_r2 register.
15749 (s390_num_regs_3264): Increment to 68.
15750 (s390_regmap_3264): Add orig_r2 register.
15751 (s390_collect_ptrace_register): Handle orig_r2 register.
15752 (s390_supply_ptrace_register): Likewise.
15753 (s390_fill_last_break): New function.
15754 (s390_store_last_break): Likewise.
15755 (s390_fill_system_call): New function.
15756 (s390_store_system_call): Likewise.
15757 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15759 (s390_check_regset): New function.
15760 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15761 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15762 Update target_regsets for available register sets.
15764 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15765 Jan Kratochvil <jan.kratochvil@redhat.com>
15767 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15768 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15770 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15771 * linux-low.h (struct process_info_private): New member r_debug.
15772 * server.c (handle_qxfer_libraries): Call
15773 the_target->qxfer_libraries_svr4.
15774 (handle_qxfer_libraries_svr4): New function.
15775 (qxfer_packets): New entry "libraries-svr4".
15776 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15777 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15778 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15779 PACKET_qXfer_libraries_svr4.
15781 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15783 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15784 PSW address/mask between 8-byte and 16-byte formats.
15785 (s390_supply_ptrace_register): Likewise.
15786 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15787 basic addressing mode bit.
15789 2011-11-24 Stan Shebs <stan@codesourcery.com>
15791 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15793 2011-11-17 Stan Shebs <stan@codesourcery.com>
15795 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15796 (tracing_start_time): New global.
15797 (tracing_stop_time): New global.
15798 (tracing_user_name): New global.
15799 (tracing_notes): New global.
15800 (tracing_stop_note): New global.
15801 (cmd_qtstart): Set traceframe_usage, start_time.
15802 (stop_tracing): Set stop_time.
15803 (cmd_qtstatus): Report additional status.
15804 (cmd_qtp): New function.
15805 (handle_tracepoint_query): Call it.
15806 (cmd_qtnotes): New function.
15807 (handle_tracepoint_general_set): Call it.
15808 (get_timestamp): Rename from tsv_get_timestamp.
15810 2011-11-14 Stan Shebs <stan@codesourcery.com>
15811 Kwok Cheung Yeung <kcy@codesourcery.com>
15813 * linux-x86-low.c (small_jump_insn): New.
15814 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15815 trampoline and error message, build a trampoline and issue a small
15816 jump instruction to it.
15817 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15818 trampoline and error message.
15819 (x86_get_min_fast_tracepoint_insn_len): New.
15820 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15821 * linux-low.h (struct linux_target_ops): Add arguments to
15822 install_fast_tracepoint_jump_pad operation, add new operation.
15823 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15825 (linux_get_min_fast_tracepoint_insn_len): New function.
15826 (linux_target_op): Add new operation.
15827 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15828 (gdb_trampoline_buffer_end): Ditto.
15829 (gdb_trampoline_buffer_error): Ditto.
15830 (struct ipa_sym_addresses): Add fields for new IPA variables.
15831 (symbol_list): Add entries for new IPA variables.
15832 (struct tracepoint): Add fields to hold the address range of the
15833 trampoline used by the tracepoint.
15834 (trampoline_buffer_head): New static variable.
15835 (trampoline_buffer_tail): Ditto.
15836 (claim_trampoline_space): New function.
15837 (have_fast_tracepoint_trampoline_buffer): New function.
15838 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15840 (install_fast_tracepoint): Ditto, also add error buffer argument.
15841 (cmd_qtminftpilen): New function.
15842 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15843 (fast_tracepoint_from_trampoline_address): New function.
15844 (fast_tracepoint_collecting): Handle trampoline as part of jump
15846 (set_trampoline_buffer_space): New function.
15847 (initialize_tracepoint): Initialize new IPA variables.
15848 * target.h (struct target_ops): Add arguments to
15849 install_fast_tracepoint_jump_pad operation, add new
15850 get_min_fast_tracepoint_insn_len operation.
15851 (target_get_min_fast_tracepoint_insn_len): New.
15852 (install_fast_tracepoint_jump_pad): Add arguments.
15853 * server.h (IPA_BUFSIZ): Define.
15854 * linux-i386-ipa.c: Include extra header files.
15855 (initialize_fast_tracepoint_trampoline_buffer): New function.
15856 (initialize_low_tracepoint): Call it.
15857 * server.h (set_trampoline_buffer_space): Declare.
15858 (claim_trampoline_space): Ditto.
15859 (have_fast_tracepoint_trampoline_buffer): Ditto.
15861 2011-11-14 Yao Qi <yao@codesourcery.com>
15863 * server.c (handle_query): Handle InstallInTrace for qSupported.
15864 * tracepoint.c (add_tracepoint): Sort list.
15865 (install_tracepoint, download_tracepoint): New.
15866 (cmd_qtdp): Call them to install and download tracepoints.
15867 (sort_tracepoints): Removed.
15868 (cmd_qtstart): Update.
15870 2011-11-14 Yao Qi <yao@codesourcery.com>
15872 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15873 * mem-break.h: Declare.
15874 * tracepoint.c (cmd_qtstart): Move some code to ...
15875 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15877 (download_tracepoints): Move some code to ...
15878 (download_tracepoint_1): ... here. New.
15880 2011-11-08 Yao Qi <yao@codesourcery.com>
15882 * remote-utils.c (relocate_instruction): A comment fix.
15884 2011-11-07 Joel Brobecker <brobecker@adacore.com>
15886 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15887 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15888 dr_status_mirror and dr_control_mirror from debug_reg_state.
15889 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15890 (i386_initial_stuff): Remove use of deleted globals.
15891 (i386_get_thread_context, i386_set_thread_context,
15892 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15893 from debug_reg_state.
15895 2011-11-05 Yao Qi <yao@codesourcery.com>
15897 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15898 address as TPOINT's.
15900 2011-11-02 Stan Shebs <stan@codesourcery.com>
15902 * tracepoint.c (agent_mem_read_string): New function.
15903 (eval_agent_expr): Call it for tracenz.
15904 * server.c (handle_query): Report support for tracenz.
15906 2011-11-02 Yao Qi <yao@codesourcery.com>
15908 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15910 2011-11-02 Yao Qi <yao@codesourcery.com>
15912 * target.h: Fix a typo in comment.
15914 2011-10-31 Pedro Alves <pedro@codesourcery.com>
15916 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15917 clobber the breakpoints' shadows with fast tracepoint jumps.
15918 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15919 * target.c (write_inferior_memory): Also pass MYADDR down to
15922 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15924 * configure.ac: Check support for personality routine.
15925 * configure: Regenerate.
15926 * config.in: Likewise.
15927 * linux-low.c: Include <sys/personality.h>.
15928 Define ADDR_NO_RANDOMIZE if necessary.
15929 (linux_create_inferior): Disable address space randomization when
15930 forking inferior, if requested.
15931 (linux_supports_disable_randomization): New function.
15932 (linux_target_ops): Install it.
15933 * server.h (disable_randomization): Declare.
15934 * server.c (disable_randomization): New global variable.
15935 (handle_general_set): Handle QDisableRandomization.
15936 (handle_query): Likewise for qSupported.
15937 (main): Support --disable-randomization and --no-disable-randomization
15938 command line arguments.
15939 * target.h (struct target_ops): Add supports_disable_randomization.
15940 (target_supports_disable_randomization): New macro.
15942 2011-09-29 Mike Frysinger <vapier@gentoo.org>
15944 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15946 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15947 [!PT_GETDSBT] (target_loadmap): New definition.
15948 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15949 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15950 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15951 and PT_GETDSBT to LINUX_LOADMAP.
15952 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15953 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15955 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15957 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15958 (arm_linux_hwbp_cap): New static variable.
15959 (arm_linux_get_hwbp_cap): Replace by ...
15960 (arm_linux_init_hwbp_cap): ... this new function.
15961 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15962 (arm_linux_get_hw_watchpoint_count): Likewise.
15963 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15964 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15965 (arm_prepare_to_resume): Use perror_with_name instead of error.
15967 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15969 * linux-arm-low.c: Include <signal.h>.
15970 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15971 (struct arm_linux_hwbp_cap): New data type.
15972 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15973 (struct arm_linux_hw_breakpoint): New data type.
15974 (MAX_BPTS, MAX_WPTS): Define.
15975 (struct arch_process_info, struct arch_lwp_info): New data types.
15976 (arm_linux_get_hwbp_cap): New function.
15977 (arm_linux_get_hw_breakpoint_count): Likewise.
15978 (arm_linux_get_hw_watchpoint_count): Likewise.
15979 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15980 (arm_hwbp_control_initialize): Likewise.
15981 (arm_hwbp_control_is_enabled): Likewise.
15982 (arm_hwbp_control_is_initialized): Likewise.
15983 (arm_hwbp_control_disable): Likewise.
15984 (arm_linux_hw_breakpoint_equal): Likewise.
15985 (arm_linux_hw_point_initialize): Likewise.
15986 (struct update_registers_data): New data structure.
15987 (update_registers_callback: New function.
15988 (arm_insert_point): Likewise.
15989 (arm_remove_point): Likewise.
15990 (arm_stopped_by_watchpoint): Likewise.
15991 (arm_stopped_data_address): Likewise.
15992 (arm_new_process): Likewise.
15993 (arm_new_thread): Likewise.
15994 (arm_prepare_to_resume): Likewise.
15995 (the_low_target): Register arm_insert_point, arm_remove_point,
15996 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
15997 arm_new_thread, and arm_prepare_to_resume.
15999 2011-09-15 Stan Shebs <stan@codesourcery.com>
16001 * server.h (struct emit_ops): Add compare-goto fields.
16002 * tracepoint.c (gdb_agent_op_sizes): New table.
16003 (emit_eq_goto): New function.
16004 (emit_ne_goto): New function.
16005 (emit_lt_goto): New function.
16006 (emit_le_goto): New function.
16007 (emit_gt_goto): New function.
16008 (emit_ge_goto): New function.
16009 (is_goto_target): New function.
16010 (compile_bytecodes): Recognize special cases of compare-goto
16011 combinations and call specialized emitters for them.
16012 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16013 (amd64_emit_ne_goto): New function.
16014 (amd64_emit_lt_goto): New function.
16015 (amd64_emit_le_goto): New function.
16016 (amd64_emit_gt_goto): New function.
16017 (amd64_emit_ge_goto): New function.
16018 (amd64_emit_ops): Add the new functions.
16019 (i386_emit_eq_goto): New function.
16020 (i386_emit_ne_goto): New function.
16021 (i386_emit_lt_goto): New function.
16022 (i386_emit_le_goto): New function.
16023 (i386_emit_gt_goto): New function.
16024 (i386_emit_ge_goto): New function.
16025 (i386_emit_ops): Add the new functions.
16027 2011-09-08 Stan Shebs <stan@codesourcery.com>
16029 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16030 (i386_emit_epilogue): Restore %ebx.
16032 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16034 * server.c (step_thread): Remove definition.
16035 (process_serial_event): Don't handle Hs.
16036 * server.h (step_thread): Remove declaration.
16037 * target.c (set_desired_inferior): Remove use of step_thread.
16039 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16041 * linux-low.c: Include linux-procfs.h.
16042 (linux_attach_lwp_1): Update comments.
16043 (linux_attach): Scan for existing threads when attaching to a
16044 process that is the tgid.
16045 * Makefile.in: Update dependencies.
16047 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16049 * configure.srv: Add linux-procfs.o dependencies.
16051 2011-08-14 Yao Qi <yao@codesourcery.com>
16053 * target.h (struct target_ops): Fix indent.
16054 * win32-low.c (win32_target_ops): Fix comment.
16056 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16057 Yao Qi <yao@codesourcery.com>
16059 * Makefile.in (clean): Remove tic6x-*.c files.
16060 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16061 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16062 (tic6x-c64xp-linux.c): Likewise.
16063 * configure.srv: Add support for tic6x-*-uclinux.
16064 * linux-tic6x-low.c: New.
16065 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16067 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16068 Yao Qi <yao@codesourcery.com>
16070 * target.h (struct target_ops): Add read_loadmap.
16071 * linux-low.c (struct target_loadseg): New type.
16072 (struct target_loadmap): New type.
16073 (linux_read_loadmap): New function.
16074 (linux_target_ops): Add linux_read_loadmap.
16075 * server.c (handle_query): Support qXfer:fdpic:read packet.
16076 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16079 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16081 * win32-low.c: Include <stdint.h>.
16083 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16085 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16086 to the inferior here.
16087 (i386_remove_aligned_watchpoint): Ditto.
16088 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16089 fit part of the watchpoint in the debug registers.
16090 (i386_update_inferior_debug_regs): New.
16091 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16092 registers, and only update the inferior on success.
16093 (i386_low_remove_watchpoint): Ditto.
16095 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16097 * linux-low.c (compare_ints, unique, list_threads, show_process,
16098 linux_core_of_thread): Delete.
16099 (linux_target_ops): Change linux_core_of_thread to
16100 linux_common_core_of_thread.
16101 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16102 * utils.c (malloc_failure): Change type of argument.
16103 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16104 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16105 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16106 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16107 (IPA_OBJS): Add common-utils-ipa.o.
16108 (ptid_h, linux_osdata_h): New macros.
16109 (server_h): Add common/common-utils.h, common/xml-utils.h,
16110 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16112 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16113 ptid.o, buffer.o): New rules.
16114 (linux-low.o): Add common/linux-osdata.h as a dependency.
16115 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16116 * configure.ac: Add AC_HEADER_DIRENT check.
16117 * config.in: Regenerate.
16118 * configure: Regenerate.
16119 * remote-utils.c (xml_escape_text): Delete.
16120 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16121 buffer_xml_printf): Move to common/buffer.c.
16122 * server.c (main): Remove call to initialize_inferiors.
16123 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16124 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16125 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16126 internal_error, gdb_assert, gdb_assert_fail): Delete.
16127 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16128 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16130 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16131 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16132 initialize_inferiors): Delete.
16134 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16136 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16139 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16141 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16143 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16145 2011-05-26 Yao Qi <yao@codesourcery.com>
16147 * Makefile.in (thread-db.o): Track dependence to
16148 common/gdb_thread_db.h.
16149 * thread-db.c: include gdb_thread_db.h from right place.
16151 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16153 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16154 __FILE__ and __LINE__ to internal_error.
16156 2011-05-13 Doug Evans <dje@google.com>
16158 * thread-db.c (try_thread_db_load_from_sdir): New function.
16159 (try_thread_db_load_from_dir): New function.
16160 (thread_db_load_search): Handle $sdir, ignore $pdir.
16161 Remove trying of system directories if search of
16162 libthread-db-search-path fails, that is now done via $sdir.
16164 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16166 * server.c (handle_query): Add EnableDisableTracepoints to the list
16167 of supported features.
16168 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16170 (cmd_qtenable_disable): New.
16171 (cmd_qtstart): Install tracepoints even if disabled.
16172 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16173 receiving a QTEnable or QTDisable packet.
16174 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16175 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16177 (gdb_probe): Skip data collection if static tracepoint is disabled.
16179 2011-05-10 Doug Evans <dje@google.com>
16181 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16183 2011-05-04 Doug Evans <dje@google.com>
16185 * linux-low.c (linux_join): Skip process lookup.
16186 * spu-low.c (spu_join): Ditto.
16187 * server.c (join_inferiors_callback): Delete.
16188 (process_serial_event): For 'D' packet (detach) call join_inferior
16191 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16193 * README: Don't mention xscale*-*-linux*.
16194 * configure.srv (xscale*-*-linux*): Don't handle target.
16196 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16198 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16200 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16201 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16202 (i386_emit_void_call_2): Likewise.
16204 2011-04-26 Yao Qi <yao@codesourcery.com>
16206 * linux-low.c: Move common macros to linux-ptrace.h.
16207 Include linux-ptrace.h.
16208 * Makefile.in (linux_ptrace_h): New.
16209 (linux-low.o): Depends on linux-ptrace.h.
16211 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16213 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16214 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16215 (remote_prepare): New function with most of the TCP code from ...
16216 (remote_open): ... here. Detect PORT here unconditionally. Move also
16217 setting transport_is_reliable.
16218 * server.c (run_once): New variable.
16219 (gdbserver_usage): Document it.
16220 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16221 the first run if RUN_ONCE.
16222 * server.h (run_once, remote_prepare): New declarations.
16224 2011-04-19 Tom Tromey <tromey@redhat.com>
16226 * win32-low.c (handle_load_dll): Remove duplicate "the".
16228 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16230 Remove support for old Cygwin 1.5 versions.
16231 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16232 function to avoid warning.
16233 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16236 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16238 * gdbserver/server.h (Macro _): Define it if not available.
16240 2011-03-14 Michael Snyder <msnyder@vmware.com>
16242 * hostio.c (handle_close): Remove unnecessary null test.
16244 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16246 * Makefile.in (maintainer-clean realclean distclean): Remove
16247 "make ... subdir_do" command.
16249 2011-03-10 Michael Snyder <msnyder@vmware.com>
16251 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16253 * server.c (handle_v_run): Free alloced buffer on early return.
16255 2011-03-09 Yao Qi <yao@codesourcery.com>
16258 2011-03-04 Yao Qi <yao@codesourcery.com>
16260 * Makefile.in: Remove GNU make feature --directory.
16262 2011-03-05 Yao Qi <yao@codesourcery.com>
16264 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16265 (subdir_do): New make target. Copied from gdb/Makefile.
16266 (maintainer-clean, realclean, distclean, clean): Call corresponding
16267 make targets in common/Makefile.
16269 2011-02-11 Yao Qi <yao@codesourcery.com>
16271 * configure.ac: Call AC_PROG_RANLIB.
16272 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16273 * configure: Regenerate.
16275 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16277 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16279 2011-03-06 Yao Qi <yao@codesourcery.com>
16281 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16283 2011-03-05 Yao Qi <yao@codesourcery.com>
16285 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16286 (subdir_do): New make target. Copied from gdb/Makefile.
16287 (maintainer-clean, realclean, distclean, clean): Call corresponding
16288 make targets in common/Makefile.
16290 2011-03-04 Yao Qi <yao@codesourcery.com>
16292 * Makefile.in: Remove GNU make feature --directory.
16294 2011-03-04 Michael Snyder <msnyder@vmware.com>
16296 * server.c (queue_stop_reply): Call xmalloc not malloc.
16298 2011-03-02 Michael Snyder <msnyder@vmware.com>
16300 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16302 2011-02-28 Michael Snyder <msnyder@vmware.com>
16304 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16305 (cmd_qtframe): Ditto.
16306 (cmd_qtbuffer): Ditto.
16307 (cmd_bigqtbuffer): Ditto.
16309 * utils.c (decimal2str): Initialize 'width' to nine, then
16310 don't mess with it.
16312 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16314 * hostio.c (require_data): Free *data, not data.
16316 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16318 * hostio.c (require_data): Use free, not xfree.
16320 2011-02-27 Michael Snyder <msnyder@vmware.com>
16322 * server.c (handle_query): Discard unused value.
16324 * hostio.c (require_data): Free malloc memory before returning
16327 2011-02-26 Michael Snyder <msnyder@vmware.com>
16329 * linux-low.c (list_threads): Call closedir for dirent.
16331 2011-02-27 Michael Snyder <msnyder@vmware.com>
16333 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16334 a case statement falls through.
16336 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16338 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16341 2011-02-26 Michael Snyder <msnyder@vmware.com>
16343 * utils.c (decimal2str): Eliminate dead code and dead param.
16344 (pulongest): Drop dead param from call to decimal2str.
16347 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16349 Revert the following patch (not approved yet):
16350 2011-02-21 Hui Zhu <teawater@gmail.com>
16351 * tracepoint.c (tp_printf): New function.
16352 (eval_agent_expr): Handle gdb_agent_op_printf.
16354 2011-02-21 Hui Zhu <teawater@gmail.com>
16356 * tracepoint.c (tp_printf): New function.
16357 (eval_agent_expr): Handle gdb_agent_op_printf.
16359 2011-02-18 Tom Tromey <tromey@redhat.com>
16361 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16362 (tracepoint.o): Likewise.
16363 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16364 (gdb_agent_op_names): Likewise.
16366 2011-02-18 Tom Tromey <tromey@redhat.com>
16368 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16369 gdb_agent_op_rot>: New constants.
16370 (gdb_agent_op_names): Add pick and roll.
16371 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16374 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16376 * aclocal.m4: Regenerated with aclocal-1.11.1.
16378 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16380 * server.c (handle_qxfer_traceframe_info): New.
16381 (qxfer_packets): Register "traceframe-info".
16382 (handle_query): Report support for qXfer:traceframe-info:read+.
16383 * tracepoint.c (match_blocktype): New.
16384 (traceframe_find_block_type): Rename to ...
16385 (traceframe_walk_blocks): ... this. Add callback filter argument,
16387 (traceframe_find_block_type): New, reimplemented on top of
16388 traceframe_walk_blocks.
16389 (build_traceframe_info_xml): New.
16390 (traceframe_read_info): New.
16391 * server.h (traceframe_read_info): Declare.
16393 2011-02-11 Yao Qi <yao@codesourcery.com>
16395 * configure.ac: Call AC_PROG_RANLIB.
16396 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16397 * configure: Regenerate.
16399 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16401 * server.c (gdb_read_memory): Change return semantics to allow
16403 (handle_search_memory_1): Adjust.
16404 (process_serial_event) <'m' packet>: Handle partial transfers.
16405 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16407 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16409 * regcache.c (init_register_cache): Initialize
16410 regcache->register_status.
16411 (free_register_cache): Release regcache->register_status.
16412 (regcache_cpy): Copy register_status.
16413 (registers_to_string): Print 'x's for unavailable registers.
16414 (supply_register): Mark the register's status valid or
16415 unavailable, depending on whether a buffer was passed in or not.
16416 (supply_register_zeroed): New.
16417 (supply_regblock): Mark the registers' status valid or
16418 unavailable, depending on whether a buffer was passed in or not.
16419 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16420 (struct regcache): New `register_status' field.
16421 (supply_register_zeroed): Declare.
16422 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16423 supply_register_zeroed, rather than passing a NULL buffer to
16425 * tracepoint.c (fetch_traceframe_registers): Update comment.
16427 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16429 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16432 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16434 * server.h (decode_xfer_write): Change prototype.
16435 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16436 and don't extract the annex here.
16437 * server.c (decode_xfer_read): Remove `annex' parameter,
16438 and don't extract the annex here.
16439 (decode_xfer): New.
16440 (struct qxfer): New.
16441 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16442 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16443 (handle_qxfer_statictrace): New functions, abstracted out from
16444 handle_query, and made to use the struct qxfer interface.
16445 (handle_threads_qxfer_proper): Rename to ...
16446 (handle_qxfer_threads_proper): ... this.
16447 (handle_threads_qxfer): Rename to ...
16448 (handle_qxfer_threads): ... this. Adjust.
16449 (qxfer_packets): New array.
16450 (handle_qxfer): New function.
16451 (handle_query): Use handle_qxfer.
16453 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16455 * gdbreplay.c: Shorten lines of >= 80 columns.
16456 * linux-low.c: Ditto.
16457 * linux-ppc-low.c: Ditto.
16458 * linux-s390-low.c: Ditto.
16459 * linux-sparc-low.c: Ditto.
16460 * linux-x86-low.c: Ditto.
16461 * linux-xtensa-low.c: Ditto.
16462 * mem-break.c: Ditto.
16463 * nto-low.c: Ditto.
16464 * regcache.h: Ditto.
16465 * remote-utils.c: Ditto.
16468 * thread-db.c: Ditto.
16469 * tracepoint.c: Ditto.
16471 * win32-low.h: Ditto.
16473 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16475 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16478 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16480 * server.c (gdbserver_version): Update copyright year in version
16482 * gdbreplay.c (gdbreplay_version): Ditto.
16484 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16486 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16487 * linux-bfin-low.c: New file.
16488 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16489 PT_DATA_ADDR for BFIN targets.
16490 * Makefile.in (SFILES): Add linux-bfin-low.c.
16491 (clean): Remove reg-bfin.c.
16492 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16493 * README: Mention supported Blackfin targets.
16495 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16497 * .gitignore: New file.
16499 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16501 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16503 2010-10-22 Jie Zhang <jie@codesourcery.com>
16505 * Makefile.in: Add FLAGS_TO_PASS variable.
16506 (install): Remove dependency of install-only and recursively
16507 invoke make for install-only.
16509 2010-10-04 Doug Evans <dje@google.com>
16511 * Makefile.in (uninstall): Use $(DESTDIR).
16513 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16517 * linux-x86-low.c (compat_siginfo_from_siginfo)
16518 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16519 si_code is < 0. Check for si_code == SI_TIMER before checking for
16522 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16524 * lynx-i386-low.c: New file.
16525 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16527 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16529 * lynx-low.c (ptrace_request_to_str): Remove handling for
16530 request values that have been removed in LynxOS 5.x.
16532 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16534 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16537 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16539 * configure.ac: Add --enable-inprocess-agent option.
16540 * configure: Rebuilt.
16542 2010-09-06 Yao Qi <yao@codesourcery.com>
16544 * linux-low.c (linux_kill): Remove unused variable.
16545 (linux_stabilize_threads): Likewise.
16546 * server.c (start_inferior): Likewise.
16547 (queue_stop_reply_callback): Likewise.
16548 * tracepoint.c (do_action_at_tracepoint): Likewise.
16550 2010-09-06 Yao Qi <yao@codesourcery.com>
16552 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16555 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16557 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16559 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16561 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16564 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16566 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16567 gdbserver/lynx-ppc-low.c: New files.
16568 * Makefile.in (lynx_low_h): New variable.
16569 (lynx-low.o, lynx-ppc-low.o): New rules.
16570 * configure.ac: On LynxOS, link with -lnetinet.
16571 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16572 * configure: regenerate.
16574 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16576 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16577 * configure.ac: Add check for vasprintf and vsnprintf.
16578 * configure, config.in: Regenerate.
16579 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16581 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16583 * gdbreplay.c: Move include of alloca.h up, next to include of
16585 * server.h: Add include of malloc.h.
16586 * mem-break.c: Remove include of malloc.h.
16587 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16589 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16591 * Makefile.in (memmem.o): Build with -Wno-error.
16593 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16595 * utils.c (xsnprintf): Make non-static.
16596 * server.h: Add xsnprintf declaration.
16597 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16598 replace calls to snprintf by calls to xsnprintf throughout.
16600 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16602 * configure.ac: Add configure check for alloca.
16603 * configure, config.in: Regenerate.
16604 * server.h: Include alloca.h if it exists.
16605 * gdbreplay.c: Include alloca.h if it exists.
16607 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16609 * linux-low.c (__SIGRTMIN): Define if not already defined.
16610 (linux_create_inferior): Check for __ANDROID__ rather than
16612 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16613 are already deferred.
16614 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16615 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16616 stopped and already has a pending signal to report.
16617 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16618 a pending signal to report or is moving out of a jump pad.
16619 (linux_init_signals): Check for __ANDROID__ rather than
16622 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16624 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16625 debug_threads check. Avoid a linear search when not doing debug
16628 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16630 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16631 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16632 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16633 (process_event): Change local fd's type to gdb_fildes_t.
16634 (create_file_handler): Adjust prototype.
16635 (delete_file_handler): Adjust prototype.
16636 (handle_file_event): Adjust prototype. Use pfildes.
16637 (create_file_event): Adjsut prototype.
16638 * remote-utils.c (remote_desc, listen_desc): Change type to
16640 * server.h: New gdb_fildes_t typedef.
16641 [USE_WIN32API]: Include winsock2.h.
16642 (delete_file_handler, add_file_handler): Adjust prototypes.
16643 (pfildes): Declare.
16644 * utils.c (pfildes): New.
16646 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16648 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16649 * configure: Regenerate.
16651 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16653 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16654 (linux_done_accessing_memory): ... this.
16655 (linux_target_ops): Adjust.
16656 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16657 * nto-low.c (nto_target_ops): Adjust comment.
16658 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16659 * spu-low.c (spu_target_ops): Adjust comment.
16660 * target.h (target_ops): Rename unprepare_to_access_memory field
16661 to done_accessing_memory.
16662 (unprepare_to_access_memory): Rename to ...
16663 (done_accessing_memory): ... this.
16665 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16667 * linux-low.c (linux_prepare_to_access_memory): New.
16668 (linux_unprepare_to_access_memory): New.
16669 (linux_target_ops): Install them.
16670 * server.c (read_memory): Rename to ...
16671 (gdb_read_memory): ... this. Use
16672 prepare_to_access_memory/prepare_to_access_memory.
16673 (write_memory): Rename to ...
16674 (gdb_write_memory): ... this. Use
16675 prepare_to_access_memory/prepare_to_access_memory.
16676 (handle_search_memory_1): Adjust.
16677 (process_serial_event): Adjust.
16678 * target.h (struct target_ops): New fields
16679 prepare_to_access_memory and unprepare_to_access_memory.
16680 (prepare_to_access_memory, unprepare_to_access_memory): New.
16681 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16682 prepare_to_access_memory/prepare_to_access_memory.
16683 * nto-low.c (nto_target_ops): Adjust.
16684 * spu-low.c (spu_target_ops): Adjust.
16685 * win32-low.c (win32_target_ops): Adjust.
16687 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16689 * Makefile.in (WARN_CFLAGS): Get it from configure.
16690 (WERROR_CFLAGS): New.
16691 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16692 * configure.ac: Introduce --enable-werror, which adds -Werror to
16693 the compiler command line. Enabled by default. Disable with
16694 --disable-werror. Add -Wdeclaration-after-statement
16695 Wpointer-arith and -Wformat-nonliteral to warning flags.
16696 * configure: Regenerate.
16698 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16700 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16702 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16704 * gdbreplay.c (remote_error): New.
16706 (expect): Use gdbchar. Check for error reading from GDB.
16707 Clarify sync error output.
16708 (play): Check for errors writing to GDB.
16709 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16710 * remote-utils.c (getpkt): Check for errors writing to the remote
16713 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16715 * linux-low.c (linux_wait_1): Move non-debugging code out of
16716 `debug_threads' control.
16718 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16720 * linux-low.c (linux_wait_1): Don't set last_status here.
16721 * server.c (push_event, queue_stop_reply_callback): Assert we're
16722 not pushing a TARGET_WAITKIND_IGNORE event.
16723 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16724 (myresume, handle_target_event): Set the thread's last_resume_kind
16725 and last_status from the target returned status.
16727 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16731 * linux-x86-low.c (update_debug_registers_callback): New.
16732 (i386_dr_low_set_addr): Use it.
16733 (i386_dr_low_get_addr): New.
16734 (i386_dr_low_set_control): Use update_debug_registers_callback.
16735 (i386_dr_low_get_control): New.
16736 (i386_dr_low_get_status): Adjust.
16737 * linux-low.c (linux_stop_lwp): New.
16738 * linux-low.h (linux_stop_lwp): Declare.
16740 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16741 argument instead of a i386_debug_reg_state.
16742 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16743 a i386_debug_reg_state.
16744 (i386_insert_aligned_watchpoint): Adjust.
16745 (i386_remove_aligned_watchpoint): Adjust.
16746 (i386_low_stopped_data_address): Read the debug registers from the
16747 inferior instead of from the mirrors.
16748 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16749 (i386_dr_low_get_addr): Declare.
16750 (i386_dr_low_get_control): Declare.
16751 (i386_dr_low_get_status): Change prototype.
16753 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16754 (i386_dr_low_get_addr): New.
16755 (i386_dr_low_get_control): New.
16756 (i386_dr_low_get_status): Adjust prototype. Return
16758 (i386_initial_stuff): Clear dr_status_mirror and
16760 (i386_get_thread_context): Adjust.
16761 (i386_set_thread_context): Adjust.
16762 (i386_thread_added): Adjust.
16764 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16766 * linux-low.h (linux_thread_area): Delete declaration.
16768 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16770 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16771 after its termination.
16773 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16775 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16776 (gdb_wants_all_stopped): Delete.
16777 (linux_wait_1): Don't call them.
16778 * server.c (handle_v_cont): Tag all threads as want-stopped.
16779 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16780 stopped as "client-wants-stopped".
16782 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16784 * Makefile.in (signals_h): New.
16785 (server_h): Depend on it.
16786 (server.o): Don't depend on $(signals_def).
16787 (signals.o): Depend on $(signals_def).
16789 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16791 * Makefile.in (signals_def): New.
16792 (server_h): Append include/gdb/signals.h and signals_def.
16793 (server.o): Append signals_def.
16795 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16797 * server.c (handle_target_event): Use target_signal_to_host for
16798 resume_info.sig initialization.
16799 * target.h (struct thread_resume) <sig>: New comment.
16801 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16803 * server.c (handle_query): strcpy() the returned string from paddress()
16804 instead of sprintf().
16805 * utils.c (paddress): Return phex_nz().
16807 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16809 * server.c (handle_v_cont): Call mourn_inferior if process
16811 (myresume): Likewise.
16813 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16815 Static tracepoints, and integration with UST.
16817 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16818 * mem-break.c (uninsert_all_breakpoints)
16819 (reinsert_all_breakpoints): New.
16820 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16821 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16822 (gdb_agent_ust_loaded, helper_thread_id)
16823 (gdb_agent_helper_thread_id): New macros.
16824 (struct ipa_sym_addresses): Add addr_ust_loaded,
16825 addr_helper_thread_id, addr_cmd_buf.
16826 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16827 (in_process_agent_loaded_ust): New.
16828 (write_e_ust_not_loaded): New.
16829 (maybe_write_ipa_ust_not_loaded): New.
16830 (struct collect_static_trace_data_action): New.
16831 (enum tracepoint_type) <static_tracepoint>: New.
16832 (struct tracepoint) <handle>: Mention static tracepoints.
16833 (struct static_tracepoint_ctx): New.
16834 (CMD_BUF_SIZE): New.
16835 (add_tracepoint_action): Handle static tracepoint actions.
16836 (unprobe_marker_at): New.
16837 (clear_installed_tracepoints): Handle static tracepoints.
16838 (cmd_qtdp): Handle static tracepoints.
16839 (probe_marker_at): New.
16840 (cmd_qtstart): Handle static tracepoints.
16841 (response_tracepoint): Handle static tracepoints.
16842 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16843 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16844 (get_context_regcache): Handle static tracepoints.
16845 (do_action_at_tracepoint): Handle static tracepoint actions.
16846 (traceframe_find_block_type): Handle static trace data blocks.
16847 (traceframe_read_sdata): New.
16848 (download_tracepoints): Download static tracepoint actions.
16849 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16850 (GDB_PROBE_NAME): New.
16852 (GET_UST_SYM): New.
16855 (ust_marker_to_static_tracepoint): New.
16857 (collect_ust_data_at_tracepoint): New.
16858 (gdb_ust_probe): New.
16859 (UNIX_PATH_MAX, SOCK_DIR): New.
16860 (gdb_ust_connect_sync_socket): New.
16861 (resume_thread, stop_thread): New.
16862 (run_inferior_command): New.
16863 (init_named_socket): New.
16864 (gdb_ust_socket_init): New.
16865 (cstr_to_hexstr): New.
16867 (first_marker, next_marker): New.
16868 (response_ust_marker): New.
16869 (cmd_qtfstm, cmd_qtsstm): New.
16870 (unprobe_marker_at, probe_marker_at): New.
16871 (cmd_qtstmat, gdb_ust_thread): New.
16872 (gdb_ust_init): New.
16873 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16874 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16875 (ST_REGENTRY): New.
16876 (x86_64_st_collect_regmap): New.
16877 (X86_64_NUM_ST_COLLECT_GREGS): New.
16878 (AMD64_RIP_REGNUM): New.
16879 (supply_static_tracepoint_registers): New.
16880 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16881 (ST_REGENTRY): New.
16882 (i386_st_collect_regmap): New.
16883 (i386_NUM_ST_COLLECT_GREGS): New.
16884 (supply_static_tracepoint_registers): New.
16885 * server.c (handle_query): Handle qXfer:statictrace:read.
16886 <qSupported>: Report support for StaticTracepoints, and
16887 qXfer:statictrace:read features.
16888 * server.h (traceframe_read_sdata)
16889 (supply_static_tracepoint_registers): Declare.
16890 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16891 (unpack_varlen_hex): Include in IPA build.
16892 * Makefile.in (ustlibs, ustinc): New.
16893 (IPA_OBJS): Add remote-utils-ipa.o.
16894 ($(IPA_LIB)): Link -ldl and -lpthread.
16896 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16897 * config.in, configure: Regenerate.
16899 2010-06-20 Ian Lance Taylor <iant@google.com>
16900 Pedro Alves <pedro@codesourcery.com>
16902 * linux-x86-low.c (always_true): Delete.
16903 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16904 trying to fool the compiler with always_true.
16906 2010-06-20 Pedro Alves <pedro@codesourcery.com>
16908 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16909 conditions in gdbserver.
16911 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16913 * spu-low.c (spu_read_memory): Wrap around local store limit.
16914 (spu_write_memory): Likewise.
16916 2010-06-15 Pedro Alves <pedro@codesourcery.com>
16918 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16919 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16921 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16923 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16924 uses with LONGEST uses.
16926 2010-06-14 Stan Shebs <stan@codesourcery.com>
16927 Pedro Alves <pedro@codesourcery.com>
16931 * linux-x86-low.c: Include limits.h.
16933 (always_true): New.
16936 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16937 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16938 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16939 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16940 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16941 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16942 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16943 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16944 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16945 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16946 (amd64_emit_void_call_2): New.
16947 (amd64_emit_ops): New.
16948 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16949 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16950 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16951 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16952 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16953 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16954 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16955 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16956 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16957 (i386_emit_stack_adjust, i386_emit_int_call_1)
16958 (i386_emit_void_call_2): New.
16959 (i386_emit_ops): New.
16960 (x86_emit_ops): New.
16961 (the_low_target): Install x86_emit_ops.
16962 * server.h (struct emit_ops): New.
16963 (get_raw_reg_func_addr): Declare.
16964 (current_insn_ptr, emit_error): Declare.
16965 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16966 (set_trace_state_variable_value): New defines.
16967 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16968 addr_get_trace_state_variable_value and
16969 addr_set_trace_state_variable_value.
16970 (symbol_list): New fields for get_raw_reg,
16971 get_trace_state_variable_value and set_trace_state_variable_value.
16972 (condfn): New typedef.
16973 (struct tracepoint): New field `compiled_cond'.
16974 (do_action_at_tracepoint): Clear compiled_cond.
16975 (get_trace_state_variable_value, set_trace_state_variable_value):
16977 (condition_true_at_tracepoint): If there's a compiled condition,
16979 (current_insn_ptr, emit_error): New globals.
16980 (struct bytecode_address): New.
16981 (get_raw_reg_func_addr): New.
16982 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16983 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16984 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16985 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16986 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
16987 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
16988 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
16989 (compile_tracepoint_condition, compile_bytecodes): New.
16990 * target.h (emit_ops): Forward declare.
16991 (struct target_ops): New field emit_ops.
16992 (target_emit_ops): New.
16993 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
16994 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
16995 * linux-low.c (linux_emit_ops): New.
16996 (linux_target_ops): Install it.
16997 * linux-low.h (struct linux_target_ops): New field emit_ops.
16999 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17001 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17002 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17004 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17005 Stan Shebs <stan@codesourcery.com>
17007 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17008 (all): Depend on $(extra_libraries).
17009 (install-only): Install the IPA.
17010 (IPA_OBJS, IPA_LIB): New.
17011 (clean): Remove the IPA lib.
17012 (IPAGENT_CFLAGS): New.
17013 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17014 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17015 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17016 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17017 * configure.ac: Check for atomic builtins support in the compiler.
17018 (IPA_DEPFILES, extra_libraries): Define.
17019 * configure.srv (ipa_obj): Add description.
17020 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17021 (i[34567]86-*-linux*): Set ipa_obj.
17022 (x86_64-*-linux*): Set ipa_obj.
17023 * linux-low.c (stabilizing_threads): New.
17024 (supports_fast_tracepoints): New.
17025 (linux_detach): Stabilize threads before detaching.
17026 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17027 the lwp is either not stabilizing, or is moving out of a jump pad.
17028 (linux_fast_tracepoint_collecting): New.
17029 (maybe_move_out_of_jump_pad): New.
17030 (enqueue_one_deferred_signal): New.
17031 (dequeue_one_deferred_signal): New.
17032 (linux_wait_for_event_1): If moving out of a jump pad, defer
17033 pending signals to later.
17034 (linux_stabilize_threads): New.
17035 (linux_wait_1): Check if threads need moving out of jump pads, and
17037 (stuck_in_jump_pad_callback): New.
17038 (move_out_of_jump_pad_callback): New.
17039 (lwp_running): New.
17040 (linux_resume_one_lwp): Handle moving out of jump pads.
17041 (linux_set_resume_request): Dequeue deferred signals.
17042 (need_step_over_p): Also step over fast tracepoint jumps.
17043 (start_step_over): Also uninsert fast tracepoint jumps.
17044 (finish_step_over): Also reinsert fast tracepoint jumps.
17045 (linux_install_fast_tracepoint_jump): New.
17046 (linux_target_ops): Install linux_stabilize_threads and
17047 linux_install_fast_tracepoint_jump_pad.
17048 * linux-low.h (linux_target_ops) <get_thread_area,
17049 install_fast_tracepoint_jump_pad>: New fields.
17050 (struct lwp_info) <collecting_fast_tracepoint,
17051 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17052 (linux_get_thread_area): Declare.
17053 * linux-x86-low.c (jump_insn): New.
17054 (x86_get_thread_area): New.
17055 (append_insns): New.
17056 (push_opcode): New.
17057 (amd64_install_fast_tracepoint_jump_pad): New.
17058 (i386_install_fast_tracepoint_jump_pad): New.
17059 (x86_install_fast_tracepoint_jump_pad): New.
17060 (the_low_target): Install x86_get_thread_area and
17061 x86_install_fast_tracepoint_jump_pad.
17062 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17063 (struct fast_tracepoint_jump): New.
17064 (fast_tracepoint_jump_insn): New.
17065 (fast_tracepoint_jump_shadow): New.
17066 (find_fast_tracepoint_jump_at): New.
17067 (fast_tracepoint_jump_here): New.
17068 (delete_fast_tracepoint_jump): New.
17069 (set_fast_tracepoint_jump): New.
17070 (uninsert_fast_tracepoint_jumps_at): New.
17071 (reinsert_fast_tracepoint_jumps_at): New.
17072 (set_breakpoint_at): Use write_inferior_memory.
17073 (uninsert_raw_breakpoint): Use write_inferior_memory.
17074 (check_mem_read): Mask out fast tracepoint jumps.
17075 (check_mem_write): Mask out fast tracepoint jumps.
17076 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17077 (set_fast_tracepoint_jump): Declare.
17078 (delete_fast_tracepoint_jump)
17079 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17080 (reinsert_fast_tracepoint_jumps_at): Declare.
17081 * regcache.c: Don't compile many functions when building the
17082 in-process agent library.
17083 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17084 the register buffer in the heap.
17085 (free_register_cache): If the register buffer isn't owned by the
17086 regcache, don't free it.
17087 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17088 pre-existing register caches.
17089 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17091 (convert_ascii_to_int): : Constify `from' parameter type.
17092 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17093 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17094 the needed buffer in-place.
17095 (relocate_instruction): New.
17096 * server.c (handle_query) <qSymbols>: If the target supports
17097 tracepoints, give it a chance of looking up symbols. Report
17098 support for fast tracepoints.
17099 (handle_status): Stabilize threads.
17100 (process_serial_event): Adjust.
17101 * server.h (struct fast_tracepoint_jump): Forward declare.
17102 (struct process_info) <fast_tracepoint_jumps>: New field.
17103 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17104 (decode_X_packet, decode_M_packet): Adjust.
17105 (relocate_instruction): Declare.
17106 (in_process_agent_loaded): Declare.
17107 (tracepoint_look_up_symbols): Declare.
17108 (struct fast_tpoint_collect_status): Declare.
17109 (fast_tracepoint_collecting): Declare.
17110 (force_unlock_trace_buffer): Declare.
17111 (handle_tracepoint_bkpts): Declare.
17112 (initialize_low_tracepoint)
17113 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17114 * target.h (struct target_ops) <stabilize_threads,
17115 install_fast_tracepoint_jump_pad>: New fields.
17116 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17117 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17118 [HAVE_STDINT_H]: Include stdint.h.
17119 (trace_debug_1): Rename to ...
17120 (trace_vdebug): ... this.
17121 (trace_debug): Rename to ...
17122 (trace_debug_1): ... this. Add `level' parameter.
17123 (trace_debug): New.
17124 (ATTR_USED, ATTR_NOINLINE): New.
17125 (IP_AGENT_EXPORT): New.
17126 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17127 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17128 (about_to_request_buffer_space, trace_buffer_is_full)
17129 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17130 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17131 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17132 (traceframe_write_count, traceframes_created)
17133 (trace_state_variables)
17134 New renaming defines.
17135 (struct ipa_sym_addresses): New.
17136 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17137 (symbol_list): New.
17138 (ipa_sym_addrs): New.
17139 (all_tracepoint_symbols_looked_up): New.
17140 (in_process_agent_loaded): New.
17141 (write_e_ipa_not_loaded): New.
17142 (maybe_write_ipa_not_loaded): New.
17143 (tracepoint_look_up_symbols): New.
17144 (debug_threads) [IN_PROCESS_AGENT]: New.
17145 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17146 (UNKNOWN_SIDE_EFFECTS): New.
17147 (stop_tracing): New.
17148 (flush_trace_buffer): New.
17149 (stop_tracing_bkpt): New.
17150 (flush_trace_buffer_bkpt): New.
17151 (read_inferior_integer): New.
17152 (read_inferior_uinteger): New.
17153 (read_inferior_data_pointer): New.
17154 (write_inferior_data_pointer): New.
17155 (write_inferior_integer): New.
17156 (write_inferior_uinteger): New.
17157 (struct collect_static_trace_data_action): Delete.
17158 (enum tracepoint_type): New.
17159 (struct tracepoint) <type>: New field `type'.
17160 <actions_str, step_actions, step_actions_str>: Only include in
17162 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17163 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17164 (tracepoints): Use IP_AGENT_EXPORT.
17165 (last_tracepoint): Don't include in the IPA.
17166 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17167 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17168 (alloced_trace_state_variables): New.
17169 (trace_state_variables): Use IP_AGENT_EXPORT.
17170 (traceframe_t): Delete unused variable.
17171 (circular_trace_buffer): Don't include in the IPA.
17172 (trace_buffer_start): Delete.
17173 (struct trace_buffer_control): New.
17174 (trace_buffer_free): Delete.
17175 (struct ipa_trace_buffer_control): New.
17176 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17177 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17179 (trace_buffer_ctrl): New.
17180 (TRACE_BUFFER_CTRL_CURR): New.
17181 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17182 Reimplement as macros.
17183 (trace_buffer_wrap): Delete.
17184 (traceframe_write_count, traceframe_read_count)
17185 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17186 (struct tracepoint_hit_ctx) <type>: New field.
17187 (struct fast_tracepoint_ctx): New.
17188 (memory_barrier): New.
17190 (record_tracepoint_error): Update atomically in the IPA.
17191 (clear_inferior_trace_buffer): New.
17192 (about_to_request_buffer_space): New.
17193 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17194 updating the same buffer.
17195 (add_tracepoint): Default the tracepoint's type to trap
17196 tracepoint, and orig_size to -1.
17197 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17198 internal variables.
17199 (create_trace_state_variable): New parameter `gdb'. Handle it.
17200 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17201 (cmd_qtdp): Handle fast tracepoints.
17202 (cmd_qtdv): Adjust.
17203 (max_jump_pad_size): New.
17204 (gdb_jump_pad_head): New.
17205 (get_jump_space_head): New.
17206 (claim_jump_space): New.
17207 (sort_tracepoints): New.
17208 (MAX_JUMP_SIZE): New.
17209 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17211 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17212 support. Upload fast traceframes, and delete internal IPA
17214 (stop_tracing_handler): New.
17215 (flush_trace_buffer_handler): New.
17216 (cmd_qtstop): Upload fast tracepoints.
17217 (response_tracepoint): Handle fast tracepoints.
17218 (tracepoint_finished_step): Upload fast traceframes. Set the
17219 tracepoint hit context's tracepoint type.
17220 (handle_tracepoint_bkpts): New.
17221 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17222 type. Add comment about fast tracepoints.
17223 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17224 non-existing action_str field.
17225 (get_context_regcache): Handle fast tracepoints.
17226 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17228 (fast_tracepoint_from_jump_pad_address): New.
17229 (fast_tracepoint_from_ipa_tpoint_address): New.
17230 (collecting_t): New.
17231 (force_unlock_trace_buffer): New.
17232 (fast_tracepoint_collecting): New.
17234 (gdb_collect): New.
17235 (write_inferior_data_ptr): New.
17236 (target_tp_heap): New.
17237 (target_malloc): New.
17238 (download_agent_expr): New.
17240 (download_tracepoints): New.
17241 (download_trace_state_variables): New.
17242 (upload_fast_traceframes): New.
17243 (IPA_FIRST_TRACEFRAME): New.
17244 (IPA_NEXT_TRACEFRAME_1): New.
17245 (IPA_NEXT_TRACEFRAME): New.
17246 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17247 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17248 (gdb_jump_pad_buffer_end): New.
17249 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17250 (initialize_tracepoint): Adjust.
17251 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17252 buffer. Initialize the low module.
17253 * utils.c (PREFIX, TOOLNAME): New.
17254 (malloc_failure): Use PREFIX.
17255 (error): In the IPA, an error causes an exit.
17256 (fatal, warning): Use PREFIX.
17257 (internal_error): Use TOOLNAME.
17258 (NUMCELLS): Increase to 10.
17259 * configure, config.in: Regenerate.
17261 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17263 * server.c (handle_query) <qSupported>: Do two passes over the
17264 qSupported string to avoid nesting strtok.
17266 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17268 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17270 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17271 -Wl,--dynamic-list.
17272 * configure: Regenerate.
17273 * proc-service.list: New.
17275 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17277 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17280 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17282 * gdbreplay.c (remote_open): Check error return from socket() call by
17283 its equality to -1 not by it being negative.
17284 * remote-utils.c (remote_open): Likewise.
17286 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17288 * config.h: Regenerate.
17290 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17292 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17293 doesn't provide PTRACE_GET_THREAD_AREA.
17295 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17297 * linux-m68k-low.c: Include <asm/ptrace.h>
17298 (ps_get_thread_area): Implement.
17300 2010-05-03 Doug Evans <dje@google.com>
17302 * event-loop.c (struct callback_event): New struct.
17303 (callback_list): New global.
17304 (append_callback_event, delete_callback_event): New functions.
17305 (process_callback): New function.
17306 (start_event_loop): Call it.
17307 * remote-utils.c (NOT_SCHEDULED): Define.
17308 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17309 moved out of readchar.
17310 (readchar): Rewrite. Call reschedule before returning.
17311 (reset_readchar): New function.
17312 (remote_close): Call it.
17313 (process_remaining, reschedule): New functions.
17314 * server.h (callback_handler_func): New typedef.
17315 (append_callback_event, delete_callback_event): Declare.
17317 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17319 * proc-service.c (ps_pglobal_lookup): Use
17320 thread_db_look_up_one_symbol.
17321 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17322 parameter. Use it instead of all_symbols_looked_up.
17323 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17325 (all_symbols_looked_up): Don't declare.
17326 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17327 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17329 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17330 Set all_symbols_looked_up here.
17331 (thread_db_look_up_one_symbol): New.
17332 (thread_db_get_tls_address): Adjust.
17333 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17334 thread_db object on the heap, and tentatively set it in the
17336 (thread_db_init): Don't set all_symbols_looked_up here.
17337 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17339 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17341 * linux-low.c (linux_kill, linux_detach): Adjust.
17342 (status_pending_p_callback): Remove redundant statement. Check
17343 for !TARGET_WAITIKIND_IGNORE, instead of
17344 TARGET_WAITKIND_STOPPED.
17345 (handle_tracepoints): Make sure LWP is locked. Adjust.
17346 (linux_wait_for_event_1): Adjust.
17347 (linux_cancel_breakpoints): New.
17348 (unsuspend_one_lwp): New.
17349 (unsuspend_all_lwps): New.
17350 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17351 (send_sigstop_callback): Change return type to int, add new
17352 `except' parameter and handle it.
17353 (suspend_and_send_sigstop_callback): New.
17354 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17355 pass them down. If SUSPEND, also increment the lwp's suspend
17357 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17358 (need_step_over_p): Don't consider suspended LWPs.
17359 (start_step_over): Adjust.
17360 (proceed_one_lwp): Change return type to int, add new `except'
17361 parameter and handle it.
17362 (unsuspend_and_proceed_one_lwp): New.
17363 (proceed_all_lwps): Use find_inferior instead of
17365 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17366 also decrement the suspend count of LWPs. Pass `except' down,
17367 instead of hacking its suspend count.
17368 (linux_pause_all): Add `freeze' parameter. Adjust.
17369 (linux_unpause_all): New.
17370 (linux_target_ops): Install linux_unpause_all.
17371 * server.c (handle_status): Adjust.
17372 * target.h (struct target_ops): New fields `unpause_all' and
17373 `cancel_breakpoints'. Add new parameter to `pause_all'.
17374 (pause_all): Add new `freeze' parameter.
17375 (unpause_all): New.
17376 (cancel_breakpoints): New.
17377 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17378 cancel breakpoints.
17379 (cmd_qtstart): Pause threads.
17380 (stop_tracing): Pause threads, and cancel breakpoints.
17381 * win32-low.c (win32_target_ops): Adjust.
17383 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17385 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17386 the inferior right away from here...
17387 (linux_wait_1): ... to here, and adjust to check the thread's
17388 last_resume_kind instead of the lwp's step or stop_expected flags.
17390 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17392 * README: Use consistent `GDB' and `GDBserver' spellings.
17394 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17396 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17397 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17398 (linux_detach_one_lwp): Assume the lwp is stopped.
17399 (any_thread_of): Delete.
17400 (linux_detach): Stop all lwps here. Don't blindly delete all
17402 (delete_lwp_callback): New.
17403 (linux_mourn): Delete all lwps of the process that is gone.
17404 (linux_wait_1): Don't delete the last lwp of the process here.
17405 * mem-break.h (mark_breakpoints_out): Declare.
17406 * mem-break.c (mark_breakpoints_out): New.
17407 (free_all_breakpoints): Use it.
17408 * server.c (handle_target_event): If the process is gone, mark
17410 * thread-db.c (struct thread_db) <create_bp>: New field.
17411 (thread_db_enable_reporting): Fix prototype. Store a thread event
17412 breakpoint reference in the thread_db struct.
17413 (thread_db_load_search): Clear the thread_db object.
17414 (try_thread_db_load_1): Ditto.
17415 (switch_to_process): New.
17416 (disable_thread_event_reporting): Use it.
17417 (remove_thread_event_breakpoints): New.
17418 (thread_db_detach, thread_db_mourn): Use it.
17420 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17422 * linux-low.c (linux_enable_event_reporting): New.
17423 (linux_wait_for_event_1, handle_extended_wait): Use it.
17425 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17427 * linux-low.c (linux_kill_one_lwp, linux_kill)
17428 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17429 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17430 SIGSTOP even if the LWP is stopped.
17431 (send_sigstop_callback): New.
17432 (stop_all_lwps): Use send_sigstop_callback instead.
17433 (linux_resume_one_thread): Adjust.
17434 (proceed_one_lwp): Still proceed an LWP that the client has
17435 requested to stop, if we haven't reported it as stopped yet. Make
17436 sure that LWPs the client want stopped, have a pending SIGSTOP.
17438 2010-04-26 Doug Evans <dje@google.com>
17440 * server.c (handle_general_set): Make static.
17442 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17443 Print received char after testing for error/eof instead of before.
17444 (input_interrupt): Tweak comment.
17446 2010-04-23 Doug Evans <dje@google.com>
17448 * server.c (start_inferior): Print inferior argv if --debug.
17450 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17452 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17453 * nto-x86-low.c: Include server.h
17455 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17457 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17458 be consistent with other sources of this directory.
17459 (init_registers_amd64): Correct name of source file of this function
17462 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17464 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17465 64-bit executables.
17467 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17469 * win32-i386-low.c: Add 64-bit support.
17470 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17471 (init_registers_amd64): Declare.
17472 (mappings): Add 64-bit version of array.
17473 (init_windows_x86): New function.
17474 (the_low_target): Change init_arch field to init_windows_x86.
17476 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17478 * win32-low.c: Adapt to support also 64-bit architecture.
17479 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17480 (get_image_name): Use SIZE_T type for local variable `done'.
17481 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17482 (toolhelp_get_dll_name): Idem.
17483 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17484 Use uintptr_t typecast to avoid warning.
17485 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17486 (handle_exception): Use phex_nz to avoid warning.
17487 (win32_wait): Remove unused local variable `process'.
17489 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17491 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17494 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17496 * configure.ac: Use `ws2_32' library for srv_mingw.
17497 * configure: Regenerate.
17498 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17499 * remote-utils.c: Likewise.
17501 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17503 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17504 if __x86_64__ is defined.
17506 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17508 * configure: Regenerate.
17510 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17512 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17513 * target.h (target_ops): New get_tib_address field.
17514 * win32-low.h (win32_thread_info): Add thread_local_base field.
17515 * win32-low.c (child_add_thread): Add tlb argument.
17516 Set thread_local_base field to TLB.
17517 (get_child_debug_event): Adapt to child_add_thread change.
17518 (win32_get_tib_address): New function.
17519 (win32_target_ops): Set get_tib_address field to
17520 win32_get_tib_address.
17521 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17523 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17525 * linux-low.c (linux_mourn): Also remove the process.
17526 * server.c (handle_target_event): Don't remove the process here.
17527 * nto-low.c (nto_mourn): New.
17528 (nto_target_ops): Install it.
17529 * spu-low.c (spu_mourn): New.
17530 (spu_target_ops): Install it.
17531 * win32-low.c (win32_mourn): New.
17532 (win32_target_ops): Install it.
17534 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17536 * server.h (buffer_xml_printf): Remove redundant `;'.
17538 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17540 * regcache.c (set_register_cache): Invalidate regcaches before
17541 changing the register cache layout.
17542 (regcache_invalidate_one): Allow a NULL regcache.
17543 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17544 regcaches before changing the register cache layout or the target
17547 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17549 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17550 variable warning on Linux/x86-64.
17552 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17554 GDBserver disconnected tracing support.
17556 * linux-low.c (linux_remove_process): Delete.
17557 (add_lwp): Don't set last_resume_kind here.
17558 (linux_kill): Use `mourn'.
17559 (linux_detach): Use `thread_db_detach', and `mourn'.
17560 (linux_mourn): New.
17561 (linux_attach_lwp_1): Adjust comment.
17562 (linux_attach): last_resume_kind moved the thread_info; adjust.
17563 (status_pending_p_callback): Adjust.
17564 (linux_wait_for_event_1): Adjust.
17565 (count_events_callback, select_singlestep_lwp_callback)
17566 (select_event_lwp_callback, cancel_breakpoints_callback)
17567 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17568 (proceed_one_lwp): Adjust.
17569 (linux_async): Add debug output.
17570 (linux_thread_stopped): New.
17571 (linux_pause_all): New.
17572 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17574 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17575 (thread_db_free): Delete declaration.
17576 (thread_db_detach, thread_db_mourn): Declare.
17577 * thread-db.c (thread_db_init): Use thread_db_mourn.
17578 (thread_db_free): Delete, split in two.
17579 (disable_thread_event_reporting): New.
17580 (thread_db_detach): New.
17581 (thread_db_mourn): New.
17583 * server.h (struct thread_info) <last_resume_kind>: New field.
17584 <attached>: Add comment.
17585 <gdb_detached>: New field.
17586 (handler_func): Change return type to int.
17587 (handle_serial_event, handle_target_event): Ditto.
17588 (gdb_connected): Declare.
17590 (disconnected_tracing): Declare.
17591 (stop_tracing): Declare.
17593 * server.c (handle_query) <qSupported>: Report support for
17594 disconnected tracing.
17595 (queue_stop_reply_callback): Account for running threads.
17596 (gdb_wants_thread_stopped): New.
17597 (gdb_wants_all_threads_stopped): New.
17598 (gdb_reattached_process): New.
17599 (handle_status): Clear the `gdb_detached' flag of all processes.
17600 In all-stop, stop all threads.
17601 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17602 (process_serial_event): If the remote connection breaks, or if an
17603 exit was forced with "monitor exit", force an event loop exit.
17604 Handle disconnected tracing on detach.
17605 (handle_serial_event): Adjust.
17606 (handle_target_event): If GDB isn't connected, forward events back
17607 to the inferior, unless the last process exited, in which case,
17608 exit gdbserver. Adjust interface.
17610 * remote-utils.c (remote_open): Don't block in accept. Instead
17611 register an event loop source on the listen socket file
17612 descriptor. Refactor bits into ...
17613 (listen_desc): ... this new global.
17614 (gdb_connected): ... this new function.
17615 (enable_async_notification): ... this new function.
17616 (handle_accept_event): ... this new function.
17617 (remote_close): Clear remote_desc.
17619 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17621 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17623 (mourn_inferior): Define.
17624 (target_process_qsupported): Avoid the dangling else problem.
17625 (thread_stopped): Define.
17626 (pause_all): Define.
17627 (target_waitstatus_to_string): Declare.
17628 * target.c (target_waitstatus_to_string): New.
17630 * tracepoint.c (tracing): Make extern.
17631 (disconnected_tracing): New.
17632 (stop_tracing): Make extern. Handle tracing stops due to GDB
17634 (cmd_qtdisconnected): New.
17635 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17636 (handle_tracepoint_general_set): Handle QTDisconnected.
17638 * event-loop.c (event_handler_func): Change return type to int.
17639 (process_event): Bail out if the event handler wants the event
17641 (handle_file_event): Ditto.
17642 (start_event_loop): Bail out if the event handler wants the event
17645 * nto-low.c (nto_target_ops): Adjust.
17646 * spu-low.c (spu_wait): Don't remove the process here.
17647 (spu_target_ops): Adjust.
17648 * win32-low.c (win32_wait): Don't remove the process here.
17649 (win32_target_ops): Adjust.
17651 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17653 * regcache.c (realloc_register_cache): Invalidate inferior's
17654 regcache before recreating it.
17656 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17658 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17660 2010-04-09 Stan Shebs <stan@codesourcery.com>
17661 Pedro Alves <pedro@codesourcery.com>
17663 * server.h (LONGEST): New.
17664 (struct thread_info) <while_stepping>: New field.
17665 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17667 (initialize_tracepoint, handle_tracepoint_general_set)
17668 (handle_tracepoint_query, tracepoint_finished_step)
17669 (tracepoint_was_hit, release_while_stepping_state_list):
17670 (current_traceframe): Declare.
17671 * server.c (handle_general_set): Handle tracepoint packets.
17672 (read_memory): New.
17673 (write_memory): New.
17674 (handle_search_memory_1): Use read_memory.
17675 (handle_query): Report support for conditional tracepoints, trace
17676 state variables, and tracepoint sources. Handle tracepoint
17678 (main): Initialize the tracepoints module.
17679 (process_serial_event): Handle traceframe reads/writes.
17681 * linux-low.c (handle_tracepoints): New.
17682 (linux_wait_1): Call it.
17683 (linux_resume_one_lwp): Handle while-stepping.
17684 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17685 (linux_target_ops): Install them.
17686 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17688 * linux-x86-low.c (x86_supports_tracepoints): New.
17689 (the_low_target). Install it.
17691 * mem-break.h (delete_breakpoint): Declare.
17692 * mem-break.c (delete_breakpoint): Make external.
17694 * target.h (struct target_ops): Add `supports_tracepoints',
17695 `read_pc', and `write_pc' fields.
17696 (target_supports_tracepoints): Define.
17697 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17700 * regcache.h (struct regcache) <registers_owned>: New field.
17701 (init_register_cache, regcache_cpy): Declare.
17702 (regcache_read_pc, regcache_write_pc): Declare.
17703 (register_cache_size): Declare.
17704 (supply_regblock): Declare.
17705 * regcache.c (init_register_cache): New.
17706 (new_register_cache): Use it.
17707 (regcache_cpy): New.
17708 (register_cache_size): New.
17709 (supply_regblock): New.
17710 (regcache_read_pc, regcache_write_pc): New.
17712 * tracepoint.c: New.
17714 * Makefile.in (OBS): Add tracepoint.o.
17715 (tracepoint.o): New rule.
17717 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17719 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17721 (i386-mmx.c): Likewise.
17722 (i386-mmx-linux.o): Likewise.
17723 (i386-mmx-linux.c): Likewise.
17725 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17726 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17727 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17728 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17730 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17731 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17732 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17734 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17736 * Makefile.in (clean): Updated.
17738 (i386-avx.c): Likewise.
17739 (i386-avx-linux.o): Likewise.
17740 (i386-avx-linux.c): Likewise.
17741 (amd64-avx.o): Likewise.
17742 (amd64-avx.c): Likewise.
17743 (amd64-avx-linux.o): Likewise.
17744 (amd64-avx-linux.c): Likewise.
17746 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17747 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17748 (srv_amd64_regobj): Add amd64-avx.o.
17749 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17750 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17751 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17752 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17753 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17754 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17755 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17757 * i387-fp.c: Include "i386-xstate.h".
17759 (i387_cache_to_xsave): Likewise.
17760 (i387_xsave_to_cache): Likewise.
17761 (x86_xcr0): Likewise.
17763 * i387-fp.h (i387_cache_to_xsave): Likewise.
17764 (i387_xsave_to_cache): Likewise.
17765 (x86_xcr0): Likewise.
17767 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17768 * linux-crisv32-low.c (target_regsets): Likewise.
17769 * linux-m68k-low.c (target_regsets): Likewise.
17770 * linux-mips-low.c (target_regsets): Likewise.
17771 * linux-ppc-low.c (target_regsets): Likewise.
17772 * linux-s390-low.c (target_regsets): Likewise.
17773 * linux-sh-low.c (target_regsets): Likewise.
17774 * linux-sparc-low.c (target_regsets): Likewise.
17775 * linux-xtensa-low.c (target_regsets): Likewise.
17777 * linux-low.c: Include <sys/uio.h>.
17778 (regsets_fetch_inferior_registers): Support nt_type.
17779 (regsets_store_inferior_registers): Likewise.
17780 (linux_process_qsupported): New.
17781 (linux_target_ops): Add linux_process_qsupported.
17783 * linux-low.h (regset_info): Add nt_type.
17784 (linux_target_ops): Add process_qsupported.
17786 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17788 (init_registers_i386_avx_linux): New.
17789 (init_registers_amd64_avx_linux): Likewise.
17790 (xmltarget_i386_linux_no_xml): Likewise.
17791 (xmltarget_amd64_linux_no_xml): Likewise.
17792 (PTRACE_GETREGSET): Likewise.
17793 (PTRACE_SETREGSET): Likewise.
17794 (x86_fill_xstateregset): Likewise.
17795 (x86_store_xstateregset): Likewise.
17796 (use_xml): Likewise.
17797 (x86_linux_update_xmltarget): Likewise.
17798 (x86_linux_process_qsupported): Likewise.
17799 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17800 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17801 init_registers_i386_linux here. Call
17802 x86_linux_update_xmltarget.
17803 (the_low_target): Add x86_linux_process_qsupported.
17805 * server.c (handle_query): Call target_process_qsupported.
17807 * target.h (target_ops): Add process_qsupported.
17808 (target_process_qsupported): New.
17810 2010-04-03 Pedro Alves <pedro@codesourcery.com>
17812 * inferiors.c (add_thread): Set last_status kind to
17813 TARGET_WAITKIND_IGNORE.
17814 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17815 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17816 (linux_wait_1): Move `thread' local definition to block that uses
17817 it. Don't NULL initialize `event_child'.
17818 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17819 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17820 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17822 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17824 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17825 an extended waitstatus, or by a watchpoint.
17826 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17827 thread was stepping or has been stopped by a watchpoint.
17829 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17831 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17832 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17833 of another, then delete the previous, and validate all
17835 (validate_inserted_breakpoint): New.
17836 (delete_disabled_breakpoints): New.
17837 (validate_breakpoints): New.
17838 (check_mem_read): Validate breakpoints before trusting their
17839 shadow. Delete disabled breakpoints.
17840 (check_mem_write): Validate breakpoints before trusting they
17841 should be inserted. Delete disabled breakpoints.
17842 * mem-break.h (validate_breakpoints):
17843 * server.c (handle_query): Validate breakpoints when we see a
17846 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17848 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17849 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17850 if we could tell there's a GDB breakpoint at stop_pc.
17851 (need_step_over_p): Don't do a step over if we find a GDB
17852 breakpoint at the resume PC.
17854 * mem-break.c (struct raw_breakpoint): New.
17855 (enum bkpt_type): New type `gdb_breakpoint'.
17856 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17857 fields. New field `raw'.
17858 (find_raw_breakpoint_at): New.
17859 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17860 breakpoint instead.
17861 (set_breakpoint_at): Adjust.
17862 (delete_raw_breakpoint): New.
17863 (release_breakpoint): New.
17864 (delete_breakpoint): Rename to...
17865 (delete_breakpoint_1): ... this. Add proc parameter. Use
17866 release_breakpoint. Return ENOENT.
17867 (delete_breakpoint): Reimplement.
17868 (find_breakpoint_at): Delete.
17869 (find_gdb_breakpoint_at): New.
17870 (delete_breakpoint_at): Delete.
17871 (set_gdb_breakpoint_at): New.
17872 (delete_gdb_breakpoint_at): New.
17873 (gdb_breakpoint_here): New.
17874 (set_reinsert_breakpoint): Use release_breakpoint.
17875 (uninsert_breakpoint): Rename to ...
17876 (uninsert_raw_breakpoint): ... this.
17877 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17878 (reinsert_raw_breakpoint): Change parameter type to
17880 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17882 (check_breakpoints): Adjust. Use release_breakpoint.
17883 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17884 (breakpoint_inserted_here): Ditto.
17885 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17886 Don't trust the breakpoint's shadow if it is not inserted.
17887 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17888 (delete_all_breakpoints): Adjust.
17889 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17890 use delete_breakpoint_1.
17892 * mem-break.h (breakpoints_supported): Delete declaration.
17893 (set_gdb_breakpoint_at): Declare.
17894 (gdb_breakpoint_here): Declare.
17895 (delete_breakpoint_at): Delete.
17896 (delete_gdb_breakpoint_at): Declare.
17898 * server.h (struct raw_breakpoint): Forward declare.
17899 (struct process_info): New field `raw_breakpoints'.
17901 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17904 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17906 * linux-low.c (status_pending_p_callback): Fix comment.
17907 (linux_wait_for_event_1): Move most of the internal breakpoint
17908 handling from here...
17909 (linux_wait_1): ... to here.
17910 (count_events_callback): New.
17911 (select_singlestep_lwp_callback): New.
17912 (select_event_lwp_callback): New.
17913 (cancel_breakpoints_callback): New.
17914 (select_event_lwp): New.
17915 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17916 priority to all LWPs that have had events that should be reported
17917 to the client. Cancel breakpoints when about to reporting the
17918 event to the client, not while stopping lwps. No longer cancel
17919 finished single-steps here.
17920 (cancel_finished_single_step): Delete.
17921 (cancel_finished_single_steps): Delete.
17923 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17925 * mem-break.c (enum bkpt_type): New.
17926 (struct breakpoint): New field `type'.
17927 (set_breakpoint_at): Change return type to struct breakpoint
17928 pointer. Set type to `other_breakpoint' by default.
17929 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17930 in the breakpoint list.
17931 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17932 (reinsert_breakpoint): Rename to ...
17933 (reinsert_raw_breakpoint): ... this.
17934 (reinsert_breakpoints_at): Adjust.
17935 * mem-break.h (struct breakpoint): Declare.
17936 (set_breakpoint_at): Change return type to struct breakpoint
17939 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17941 * server.c (handle_query): Assign, not compare.
17943 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17945 Teach linux gdbserver to step-over-breakpoints.
17947 * linux-low.c (can_hardware_single_step): New.
17948 (supports_breakpoints): New.
17949 (handle_extended_wait): If stopping threads, read the stop pc of
17950 the new cloned LWP.
17952 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17953 low target doesn't support retrieving the PC.
17954 (add_lwp): Set last_resume_kind to resume_continue.
17955 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17956 (linux_attach): Don't clear stop_expected. Set the lwp's
17957 last_resume_kind to resume_stop.
17958 (linux_detach_one_lwp): Don't check for removed breakpoints.
17959 (check_removed_breakpoint): Delete.
17960 (status_pending_p): Rename to ...
17961 (status_pending_p_callback): ... this. Don't check for removed
17962 breakpoints. Don't consider threads that are stopped from GDB's
17964 (linux_wait_for_lwp): Always read the stop_pc here.
17965 (cancel_breakpoint): New.
17966 (step_over_bkpt): New global.
17967 (linux_wait_for_event_1): Implement stepping over breakpoints.
17968 (gdb_wants_lwp_stopped): New.
17969 (gdb_wants_all_stopped): New.
17970 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17971 single-step traps here. Store the thread's last reported target
17973 (send_sigstop): Don't clear stop_expected. Always set it,
17975 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17976 (cancel_finished_single_step): New.
17977 (cancel_finished_single_steps): New.
17978 (wait_for_sigstop): Don't cancel finished single-step traps here.
17979 (linux_resume_one_lwp): Don't check for removed breakpoints.
17980 Don't set `step' on non-hardware step archs.
17981 (linux_set_resume_request): Ignore resume_stop requests if already
17982 stopping or stopped. Set the lwp's last_resume_kind.
17983 (resume_status_pending_p): Don't check for removed breakpoints.
17984 (need_step_over_p): New.
17985 (start_step_over): New.
17986 (finish_step_over): New.
17987 (linux_resume_one_thread): Always queue a sigstop for resume_stop
17988 requests. Clear the thread's last reported target waitstatus.
17989 Don't use the `suspended' flag. Don't consider pending breakpoints.
17990 (linux_resume): Start a step-over if necessary.
17991 (proceed_one_lwp): New.
17992 (proceed_all_lwps): New.
17993 (unstop_all_lwps): New.
17994 * linux-low.h (struct lwp_info): Rewrite comment for the
17995 `suspended' flag. Add the `stop_pc' field. Delete the
17996 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
17997 Add `'last_resume_kind' and `need_step_over' fields.
17998 * inferiors.c (struct thread_info): Delete, moved elsewhere.
17999 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18000 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18001 (set_raw_breakpoint_at): New.
18002 (set_breakpoint_at): Rewrite to use it.
18003 (reinsert_breakpoint_handler): Delete.
18004 (set_reinsert_breakpoint): New.
18005 (reinsert_breakpoint_by_bp): Delete.
18006 (delete_reinsert_breakpoints): New.
18007 (uninsert_breakpoint): Rewrite.
18008 (uninsert_breakpoints_at): New.
18009 (reinsert_breakpoint): Rewrite.
18010 (reinsert_breakpoints_at): New.
18011 (check_breakpoints): Rewrite.
18012 (breakpoint_here): New.
18013 (breakpoint_inserted_here): New.
18014 (check_mem_read): Adjust.
18015 * mem-break.h (breakpoints_supported, breakpoint_here)
18016 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18017 (reinsert_breakpoint_by_bp): Delete declaration.
18018 (delete_reinsert_breakpoints): Declare.
18019 (reinsert_breakpoint): Delete declaration.
18020 (reinsert_breakpoints_at): Declare.
18021 (uninsert_breakpoint): Delete declaration.
18022 (uninsert_breakpoints_at): Declare.
18023 (check_breakpoints): Adjust prototype.
18024 * server.h: Adjust include order.
18025 (struct thread_info): Declare here. Add a `last_status' field.
18027 2010-03-23 Michael Snyder <msnyder@vmware.com>
18029 * server.c (crc32): New function.
18030 (handle_query): Add handling for 'qCRC:' request.
18032 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18034 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18035 lwp had been stopped by a watchpoint.
18037 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18039 * server.h (internal_error): Declare.
18040 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18041 * utils.c (internal_error): New function.
18043 2010-03-15 Andreas Schwab <schwab@redhat.com>
18045 * configure.srv: Fix typo setting srv_regobj.
18047 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18049 * linux-low.c (fetch_register): Avoid passing a non string literal
18051 (usr_store_inferior_registers): Ditto.
18053 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18055 * linux-low.c (linux_write_memory): Bail out early if peeking
18058 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18060 * linux-low.h (struct lwp_info): New fields
18061 `stopped_by_watchpoint' and `stopped_data_address'.
18062 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18063 here, and cache them in the lwp object.
18064 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18066 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18068 (linux_stopped_by_watchpoint): Rewrite.
18069 (linux_stopped_data_address): Rewrite.
18071 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18073 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18074 switching the current inferior, not before.
18076 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18078 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18079 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18080 i386-linux.c and amd64-linux.c.
18081 (reg-i386.o): Removed.
18082 (reg-i386.c): Likewise.
18083 (reg-i386-linux.o): Likewise.
18084 (reg-i386-linux.c): Likewise.
18085 (reg-x86-64.o): Likewise.
18086 (reg-x86-64.c): Likewise.
18087 (reg-x86-64-linux.o): Likewise.
18088 (reg-x86-64-linux.c): Likewise.
18090 (i386.c): Likewise.
18091 (i386-linux.o): Likewise.
18092 (i386-linux.c): Likewise.
18093 (amd64.o): Likewise.
18094 (amd64.c): Likewise.
18095 (amd64-linux.o): Likewise.
18096 (amd64-linux.c): Likewise.
18098 * configure.srv (srv_i386_regobj): New.
18099 (srv_i386_linux_regobj): Likewise.
18100 (srv_amd64_regobj): Likewise.
18101 (srv_amd64_linux_regobj): Likewise.
18102 (srv_i386_32bit_xmlfiles): Likewise.
18103 (srv_i386_64bit_xmlfiles): Likewise.
18104 (srv_i386_xmlfiles): Likewise.
18105 (srv_amd64_xmlfiles): Likewise.
18106 (srv_i386_linux_xmlfiles): Likewise.
18107 (srv_amd64_linux_xmlfiles): Likewise.
18108 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18109 srv_xmlfiles to $srv_i386_xmlfiles.
18110 (i[34567]86-*-mingw32ce*): Likewise.
18111 (i[34567]86-*-mingw*): Likewise.
18112 (i[34567]86-*-nto*): Likewise.
18113 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18114 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18115 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18116 (x86_64-*-linux*): Likewise.
18118 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18119 (init_registers_amd64_linux): New.
18120 (x86_arch_setup): Replace init_registers_x86_64_linux with
18121 init_registers_amd64_linux.
18123 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18125 * configure.ac: Check for libdl. If it is not available link against
18126 static libthread_db.
18127 * configure: Regenerate.
18129 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18133 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18134 handing a read watchpoint.
18135 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18137 2010-02-12 Doug Evans <dje@google.com>
18139 * linux-low.c (linux_supports_tracefork_flag): Document.
18140 (linux_look_up_symbols): Add comment.
18142 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18144 * regcache.c (supply_register): Clear regcache if buf is NULL.
18146 2010-02-02 Nicolas Roche <roche@sourceware.org>
18147 Joel Brobecker <brobecker@adacore.com>
18149 * inferiors.c (find_inferior): Add function documentation.
18150 (unloaded_dll): Handle the case where the unloaded dll has not
18151 been previously registered in the dll list.
18153 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18155 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18156 (thumb2_breakpoint): New.
18157 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18159 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18161 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18162 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18165 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18167 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18169 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18171 * linux-s390-low.c (s390_collect_ptrace_register)
18172 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18174 2010-01-21 Doug Evans <dje@google.com>
18176 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18177 (PTRACE_ARG4_TYPE): New macro.
18178 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18179 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18180 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18181 (usr_store_inferior_registers): Ditto.
18182 (linux_read_memory, linux_write_memory): Ditto.
18183 (linux_test_for_tracefork): Ditto.
18185 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18186 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18188 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18190 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18193 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18195 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18196 prototype to take a regcache. Adjust.
18198 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18200 * regcache.h (struct thread_info): Forward declare.
18201 (struct regcache): New.
18202 (new_register_cache): Adjust prototype.
18203 (get_thread_regcache): Declare.
18204 (free_register_cache): Adjust prototype.
18205 (registers_to_string, registers_from_string): Ditto.
18206 (supply_register, supply_register_by_name, collect_register)
18207 (collect_register_as_string, collect_register_by_name): Ditto.
18208 * regcache.c (struct inferior_regcache_data): Delete.
18209 (get_regcache): Rename to ...
18210 (get_thread_regcache): ... this. Adjust. Switch inferior before
18211 fetching registers.
18212 (regcache_invalidate_one): Adjust.
18213 (regcache_invalidate): Fix prototype.
18214 (new_register_cache): Return the new register cache.
18215 (free_register_cache): Change prototype.
18216 (realloc_register_cache): Adjust.
18217 (registers_to_string): Change prototype to take a regcache. Adjust.
18218 (registers_from_string): Ditto.
18219 (register_data): Ditto.
18220 (supply_register): Ditto.
18221 (supply_register_by_name): Ditto.
18222 (collect_register): Ditto.
18223 (collect_register_as_string): Ditto.
18224 (collect_register_by_name): Ditto.
18225 * server.c (process_serial_event): Adjust.
18226 * linux-low.h (regset_fill_func, regset_store_func): Change
18228 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18230 * linux-low.c (get_stop_pc): Adjust.
18231 (check_removed_breakpoint): Adjust.
18232 (linux_wait_for_event): Adjust.
18233 (linux_resume_one_lwp): Adjust.
18234 (fetch_register): Add regcache parameter. Adjust.
18235 (usr_store_inferior_registers): Ditto.
18236 (regsets_fetch_inferior_registers): Ditto.
18237 (regsets_store_inferior_registers): Ditto.
18238 (linux_fetch_registers, linux_store_registers): Ditto.
18239 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18241 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18243 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18244 prototype to take a regcache.
18245 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18246 * remote-utils.c (convert_ascii_to_int, outreg)
18247 (prepare_resume_reply): Change prototype to take a regcache.
18249 * target.h (struct target_ops) <fetch_registers, store_registers>:
18250 Change prototype to take a regcache.
18251 (fetch_inferior_registers, store_inferior_registers): Change
18252 prototype to take a regcache. Adjust.
18253 * proc-service.c (ps_lgetregs): Adjust.
18254 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18255 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18256 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18257 take a regcache. Adjust.
18258 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18259 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18260 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18261 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18262 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18263 (cris_cannot_fetch_register):
18264 (cris_breakpoint_at): Change prototype to take a regcache.
18266 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18267 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18268 to take a regcache. Adjust.
18269 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18271 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18272 take a regcache. Adjust.
18273 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18274 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18275 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18276 * linux-mips-low.c (mips_get_pc):
18277 (mips_set_pc): Change prototype to take a regcache. Adjust.
18278 (mips_reinsert_addr): Adjust.
18279 (mips_collect_register): Change prototype to take a regcache.
18281 (mips_supply_register):
18282 (mips_collect_register_32bit, mips_supply_register_32bit)
18283 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18284 (mips_store_fpregset): Ditto.
18285 * linux-ppc-low.c (ppc_supply_ptrace_register)
18286 (ppc_supply_ptrace_register): Ditto.
18287 (parse_spufs_run): Adjust.
18288 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18289 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18290 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18291 take a regcache. Adjust.
18292 * linux-s390-low.c (s390_collect_ptrace_register)
18293 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18294 (s390_set_pc): Change prototype to take a regcache. Adjust.
18295 (s390_arch_setup): Adjust.
18296 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18297 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18298 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18299 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18300 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18302 (sparc_breakpoint_at): Adjust.
18303 * linux-xtensa-low.c (xtensa_fill_gregset):
18304 (xtensa_store_gregset):
18305 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18306 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18307 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18308 prototype to take a regcache. Adjust.
18309 * win32-arm-low.c (arm_fetch_inferior_register)
18310 (arm_store_inferior_register): Change prototype to take a
18312 * win32-i386-low.c (i386_fetch_inferior_register)
18313 (i386_store_inferior_register): Change prototype to take a
18315 * win32-low.c (child_fetch_inferior_registers)
18316 (child_store_inferior_registers): Change prototype to take a
18318 (win32_wait): Adjust.
18319 (win32_fetch_inferior_registers): Change prototype to take a
18321 (win32_store_inferior_registers): Adjust.
18322 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18323 store_inferior_register>: Change prototype to take a regcache.
18325 2010-01-20 Doug Evans <dje@google.com>
18327 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18329 (linux_wait_for_event1, linux_init_signals): Ditto.
18330 (W_STOPCODE): Provide definition if missing.
18332 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18334 * linux-low.c (linux_core_of_thread): New.
18335 (compare_ints, show_process, list_threads): New.
18336 (linux_qxfer_osdata): Report threads and cores.
18337 (linux_target_op): Register linux_core_of_thread.
18338 * remote-utils.c (prepare_resume_reply): Report the core.
18339 (buffer_xml_printf): Support %d specifier.
18340 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18342 (handle_query): Handle qXfer:threads. Announce availability
18344 * target.h (struct target_ops): New field core_of_thread.
18346 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18348 * Makefile.in (clean): Remove new generated files.
18349 (reg-s390.o, reg-s390.c): Remove rules.
18350 (reg-s390x.o, reg-s390x.c): Likewise.
18351 (s390-linux32.o, s390-linux32.c): Add rules.
18352 (s390-linux64.o, s390-linux64.c): Likewise.
18353 (s390x-linux64.o, s390x-linux64.c): Likewise.
18354 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18355 * linux-s390-low.c: Include <elf.h>.
18356 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18357 (init_registers_s390): Remove prototype.
18358 (init_registers_s390x): Likewise.
18359 (init_registers_s390_linux32): Add prototype.
18360 (init_registers_s390_linux64): Likewise.
18361 (init_registers_s390x_linux64): Likewise.
18362 (s390_num_regs_3264): New define.
18363 (s390_regmap_3264): New global variable.
18364 (s390_cannot_fetch_register): Remove obsolete check.
18365 (s390_cannot_store_register): Likewise.
18366 (s390_collect_ptrace_register): Handle upper/lower register halves.
18367 (s390_supply_ptrace_register): Likewise.
18368 (s390_fill_gregset): Update to register number changes.
18369 (s390_get_hwcap): New routine.
18370 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18371 Install appropriate regmap and register set.
18373 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18375 * server.c (gdbserver_version): Update copyright year to 2010.
18376 * gdbreplay.c (gdbreplay_version): Likewise.
18378 2009-12-28 Doug Evans <dje@google.com>
18380 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18381 elf/external.h. Include <elf.h> instead but only if necessary.
18383 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18385 * linux-low.c (linux_remove_process): Remove `detaching'
18386 parameter. Don't release/detach from thread_db here.
18387 (linux_kill): Release/detach from thread_db here, ...
18388 (linux_detach): ... and here, before actually detaching.
18389 (linux_wait_1): ... and here, when a process exits.
18390 * thread-db.c (any_thread_of): New.
18391 (thread_db_free): Switch the current inferior to a thread of the
18394 2009-12-21 Doug Evans <dje@google.com>
18396 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18398 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18399 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18400 warning ifndef __NR_tkill. Move setting of errno there too.
18401 Delete unnecessary resetting of errno after syscall.
18402 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18404 * configure.ac: Check for dladdr.
18405 * config.in: Regenerate.
18406 * configure: Regenerate.
18407 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18408 (try_thread_db_load): Update.
18410 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18412 2009-12-18 Doug Evans <dje@google.com>
18414 * event-loop.c: Include unistd.h if it exists.
18416 * linux-low.c (my_waitpid): Move definition away from being in
18417 between linux_tracefork_child/linux_test_for_tracefork.
18419 * gdb_proc_service.h (psaddr_t): Fix type.
18420 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18421 signature to match glibc.
18423 2009-12-16 Doug Evans <dje@google.com>
18425 * linux-low.c (linux_read_memory): Fix argument to read.
18427 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18429 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18430 events, don't leave current_inferior pointing at null.
18432 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18434 * win32-low.c (LOG): Delete.
18435 (OUTMSG): Output to stderr.
18436 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18437 on compile time LOG macro.
18438 (win32_wait): Fix debug output.
18440 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18442 * win32-low.c (win32_add_one_solib): If the dll name is
18443 "ntdll.dll", prepend the system directory to the dll path.
18445 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18447 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18449 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18450 Vladimir Prus <vladimir@codesourcery.com>
18452 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18453 * configure.ac: Check for __mcoldfire__ and set
18454 gdb_cv_m68k_is_coldfire.
18455 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18456 reg-cf.o and reg-m68k.o.
18457 * configure: Regenerated.
18459 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18461 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18462 Pass it to thread_db_free.
18463 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18464 proper `detaching' argument to linux_remove_process.
18465 * linux-low.h (thread_db_free): Add `detaching' parameter.
18466 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18468 (thread_db_free): Add `detaching' parameter. Only
18469 call td_ta_clear_event if detaching from process.
18471 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18473 * thread-db.c (thread_db_free): Fix typo.
18475 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18478 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18480 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18482 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18483 with an i686 compiler.
18484 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18486 * configure: Rebuilt.
18488 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18492 * server.c (handle_search_memory_1): Correct read_addr initialization
18493 in loop for searching subsequent chunks.
18495 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18497 * configure.ac: New --with-libthread-db option.
18498 * thread-db.c: Allow direct dependence on libthread_db.
18499 (thread_db_free): Adjust.
18500 * config.in: Regenerate.
18501 * configure: Likewise.
18503 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18506 * thread-db.c (attach_thread): New function.
18507 (maybe_attach_thread): Return success/failure.
18508 (find_new_threads_callback): Adjust.
18509 (thread_db_find_new_threads): Loop until no new threads.
18511 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18513 * proc-service.c (ps_lgetregs): Formatting.
18515 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18517 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18518 * configure.ac: Adjust.
18519 * linux-low.h (struct process_info_private): Move members to struct
18521 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18522 * linux-low.c (linux_remove_process): Adjust.
18523 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18524 * server.c (handle_query): Move code ...
18525 (handle_monitor_command): ... here. New function.
18526 * target.h (struct target_ops): New member.
18527 * thread-db.c (struct thread_db): New.
18528 (libthread_db_search_path): New variable.
18529 (thread_db_create_event, thread_db_enable_reporting)
18530 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18531 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18532 (try_thread_db_load_1, dladdr_to_soname): New functions.
18533 (try_thread_db_load, thread_db_load_search): New functions.
18534 (thread_db_init): Search for libthread_db.
18535 (thread_db_free): New function.
18536 (thread_db_handle_monitor_command): Likewise.
18537 * config.in: Regenerate.
18538 * configure: Regenerate.
18540 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18542 * spu-low.c (spu_kill): Wait for inferior to terminate.
18543 Call clear_inferiors.
18544 (spu_detach): Call clear_inferiors.
18546 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18548 * aclocal.m4: Regenerate.
18549 * config.in: Likewise.
18550 * configure: Likewise.
18552 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18554 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18555 (parse_spufs_run): New function.
18556 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18557 (ppc_breakpoint_at): Handle SPU breakpoints.
18559 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18561 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18562 (SPUFS_MAGIC): Define.
18563 (spu_enumerate_spu_ids): New function.
18564 (linux_qxfer_spu): New function.
18565 (linux_target_ops): Install linux_qxfer_spu.
18567 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18569 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18570 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18571 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18572 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18573 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18574 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18575 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18576 (init_registers_powerpc_cell32l): Add prototype.
18577 (init_registers_powerpc_cell64l): Likewise.
18578 (ppc_arch_setup): Detect Cell/B.E. architecture.
18580 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18582 * Makefile.in (datarootdir): New variable.
18584 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18586 * linux-low.c (linux_write_memory): Update debugging output.
18587 * Makefile.in (clean): Add new descriptions.
18588 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18589 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18590 * configure.srv: Add new files for arm*-*-linux*.
18591 * linux-arm-low.c: Add new declarations.
18592 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18593 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18594 (HWCAP_VFPv3D16): New.
18595 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18596 instead of __IWMMXT__.
18597 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18598 (arm_arch_setup): New.
18599 (target_regsets): Remove #ifdef. Add VFP regset.
18600 (the_low_target): Use arm_arch_setup.
18602 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18604 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18605 the main thread again.
18607 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18609 Adding Neutrino gdbserver.
18610 * configure: Regenerated.
18611 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18612 * configure.srv (i[34567]86-*-nto*): New target.
18613 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18614 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18615 (nto_comctrl) [__QNX__]: New function.
18616 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18618 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18620 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18623 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18624 Pedro Alves <pedro@codesourcery.com>
18626 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18627 don't support CONTEXT_EXTENDED_REGISTERS.
18628 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18629 (the_low_target): Install them.
18630 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18631 failing with ERROR_PIPE_NOT_CONNECTED.
18633 2009-06-30 Doug Evans <dje@google.com>
18634 Pierre Muller <muller@ics.u-strasbg.fr>
18636 Add h/w watchpoint support to x86-linux, win32-i386.
18637 * Makefile.in (SFILES): Add i386-low.c
18638 (i386_low_h): Define.
18639 (i386-low.o): Add dependencies.
18640 (linux-x86-low.o): Add i386-low.h dependency.
18641 (win32-i386-low.o): Ditto.
18642 * i386-low.c: New file.
18643 * i386-low.h: New file.
18644 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18645 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18646 * linux-low.c (linux_add_process): Initialize arch_private.
18647 (linux_remove_process): Free arch_private.
18648 (add_lwp): Initialize arch_private.
18649 (delete_lwp): Free arch_private.
18650 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18652 * linux-low.h (process_info_private): New member arch_private.
18653 (lwp_info): New member arch_private.
18654 (linux_target_ops): New members new_process, new_thread,
18656 (ptid_of): New macro.
18657 * linux-x86-low.c: Include stddef.h, i386-low.h.
18658 (arch_process_info): New struct.
18659 (arch_lwp_info): New struct.
18660 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18661 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18662 (i386_dr_low_get_status): New function.
18663 (x86_insert_point, x86_remove_point): New functions.
18664 (x86_stopped_by_watchpoint): New function.
18665 (x86_stopped_data_address): New function.
18666 (x86_linux_new_process, x86_linux_new_thread): New functions.
18667 (x86_linux_prepare_to_resume): New function.
18668 (the_low_target): Add entries for insert_point, remove_point,
18669 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18671 * server.c (debug_hw_points): New global.
18672 (monitor_show_help): Document set debug-hw-points.
18673 (handle_query): Process "set debug-hw-points".
18674 * server.h (debug_hw_points): Declare.
18675 (paddress): Declare.
18676 * utils.c (NUMCELLS, CELLSIZE): New macros.
18677 (get_sell, xsnprintf, paddress): New functions.
18678 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18679 remove_point, stopped_by_watchpoint, stopped_data_address.
18680 * win32-i386-low.c: Include i386-low.h.
18681 (debug_reg_state): Replaces dr.
18682 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18683 (i386_dr_low_get_status): New function.
18684 (i386_insert_point, i386_remove_point): New functions.
18685 (i386_stopped_by_watchpoint): New function.
18686 (i386_stopped_data_address): New function.
18687 (i386_initial_stuff): Update.
18688 (get_thread_context,set_thread_context,i386_thread_added): Update.
18689 (the_low_target): Add entries for insert_point,
18690 remove_point, stopped_by_watchpoint, stopped_data_address.
18691 * win32-low.c (win32_insert_watchpoint): New function.
18692 (win32_remove_watchpoint): New function.
18693 (win32_stopped_by_watchpoint): New function.
18694 (win32_stopped_data_address): New function.
18695 (win32_target_ops): Add entries for insert_watchpoint,
18696 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18697 * win32-low.h (win32_target_ops): New members insert_point,
18698 remove_point, stopped_by_watchpoint, stopped_data_address.
18700 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18702 * server.c (process_serial_event): Re-return unsupported, not
18703 error, if the type isn't recognized. Re-allow supporting only
18704 insert or remove packets. Also call require_running for
18705 breakpoints. Add missing break statement to default case. Tidy.
18706 * target.h (struct target_ops): Rename insert_watchpoint to
18707 insert_point, and remove_watchpoint to remove_point.
18709 * linux-low.h (struct linux_target_ops): Likewise.
18710 * linux-low.c (linux_insert_watchpoint): Rename to ...
18711 (linux_insert_point): ... this. Adjust.
18712 (linux_remove_watchpoint): Rename to ...
18713 (linux_remove_point): ... this. Adjust.
18714 (linux_target_ops): Adjust.
18715 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18716 (cris_insert_point): ... this.
18717 (cris_remove_watchpoint): Rename to ...
18718 (cris_remove_point): ... this.
18719 (the_low_target): Adjust.
18721 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18723 * server.c (handle_v_kill): Pass signal_pid to
18724 kill_inferior if multi_process is zero.
18726 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18728 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18729 * target.h (target_ops): Comment for *_watchpoint to make it clear
18730 the functions can get types '0' and '1'.
18732 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18734 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18735 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18736 * regcache.c (get_regcache): Likewise.
18737 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18738 * win32-low.c (child_fetch_inferior_registers): Remove check for
18741 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18742 Pedro Alves <pedro@codesourcery.com>
18744 * target.h (struct target_ops) <supports_multi_process>: New
18746 (target_supports_multi_process): New.
18747 * server.c (handle_query): Even if GDB reports support, only
18748 enable multi-process if the target also supports it. Report
18749 multi-process support only if the target backend supports it.
18750 * linux-low.c (linux_supports_multi_process): New function.
18751 (linux_target_ops): Install it as target_supports_multi_process
18754 2009-05-24 Doug Evans <dje@google.com>
18756 Global renaming of find_thread_pid to find_thread_ptid.
18757 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18758 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18759 All callers updated.
18761 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18762 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18765 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18766 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18767 (linux_resume_one_lwp): Ditto.
18769 2009-05-23 Doug Evans <dje@google.com>
18771 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18772 from struct inferior_list_entry * to struct lwp_info *.
18773 All callers updated.
18775 2009-05-13 Doug Evans <dje@google.com>
18777 * linux-x86-low.c: Don't include assert.h.
18778 (x86_siginfo_fixup): Use fatal, not assert.
18779 (x86_arch_setup): Fix comment.
18781 2009-05-12 Doug Evans <dje@google.com>
18783 Biarch support for i386/amd64 gdbserver.
18784 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18785 Add linux-x86-low.c.
18786 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18787 (linux-x86-low.o): Add.
18788 * linux-x86-64-low.c: Delete.
18789 * linux-i386-low.c: Delete.
18790 * linux-x86-low.c: New file.
18791 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18793 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18795 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18796 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18797 (linux_child_pid_to_exec_file): New function.
18798 (elf_64_header_p, elf_64_file_p): New functions.
18799 (siginfo_fixup): New function.
18800 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18801 give target a chance to convert layout.
18802 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18803 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18805 2009-05-07 Doug Evans <dje@google.com>
18807 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18808 (regsets_store_inferior_registers): Ditto.
18810 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18814 * linux-low.c (must_set_ptrace_flags): Delete.
18815 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18817 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18818 `lwp->must_set_ptrace_flags' instead.
18819 (linux_wait_for_event_1): Set ptrace options here.
18820 (linux_wait_1): ... not here.
18822 2009-04-30 Doug Evans <dje@google.com>
18824 * inferiors.c (started_inferior_callback): New function.
18825 (attached_inferior_callback): New function.
18826 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18827 * server.c (print_started_pid, print_attached_pid): New functions.
18828 (detach_or_kill_for_exit): New function.
18829 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18830 * server.h (have_started_inferiors_p): Declare.
18831 (have_attached_inferiors_p): Declare.
18833 * inferiors.c (remove_process): Fix memory leak, free process.
18834 * linux-low.c (linux_remove_process): New function.
18835 (linux_kill): Call it instead of remove_process.
18836 (linux_detach, linux_wait_1): Ditto.
18838 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18840 * configure.srv: Add x86 Windows CE target.
18842 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18844 * inferiors.c (get_thread_process): Make global.
18845 * server.h (get_thread_process): Add prototype.
18846 * thread-db.c (find_one_thread): Use get_thread_process
18847 instead of current_process.
18848 (thread_db_get_tls_address): Do not crash if called when
18849 thread layer is not yet initialized.
18851 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18853 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18854 * spu-low.c (current_tid): Rename to ...
18855 (current_ptid): ... this.
18856 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18857 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18858 ptid_get_lwp (current_ptid) instead of current_tid.
18859 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18860 instead of current_tid. Use find_process_pid to verify pid
18861 argument is valid. Pass proper argument to remove_process.
18862 (spu_thread_alive): Compare current_ptid instead of current_tid.
18863 (spu_resume): Likewise.
18865 2009-04-02 Pedro Alves <pedro@codesourcery.com>
18867 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18870 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18872 Implement the multiprocess extensions, and add linux multiprocess
18875 * server.h (ULONGEST): Declare.
18876 (struct ptid, ptid_t): New.
18877 (minus_one_ptid, null_ptid): Declare.
18878 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18879 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18880 (struct inferior_list_entry): Change `id' type from unsigned from
18882 (struct sym_cache, struct breakpoint, struct
18883 process_info_private): Forward declare.
18884 (struct process_info): Declare.
18885 (current_process): Declare.
18886 (all_processes): Declare.
18887 (initialize_inferiors): Declare.
18888 (add_thread): Adjust to use ptid_t.
18889 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18890 (add_process, remove_process, find_thread_pid): Declare.
18891 (find_inferior_id): Adjust to use ptid_t.
18892 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18893 (multi_process): Declare.
18894 (push_event): Adjust to use ptid_t.
18895 (read_ptid, write_ptid): Declare.
18896 (prepare_resume_reply): Adjust to use ptid_t.
18897 (clear_symbol_cache): Declare.
18898 * inferiors.c (all_processes): New.
18899 (null_ptid, minus_one_ptid): New.
18900 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18901 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18902 (add_thread): Change unsigned long to ptid. Remove gdb_id
18904 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18905 (gdb_id_to_thread): Rename to ...
18906 (find_thread_pid): ... this. Change unsigned long to ptid.
18907 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18908 (loaded_dll, pull_pid_from_list): Adjust.
18909 (add_process, remove_process, find_process_pid)
18910 (get_thread_process, current_process, initialize_inferiors): New.
18911 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18912 (struct target_waitstatus) <related_pid>: Ditto.
18913 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18914 return type to int.
18915 (struct target_ops) <join>: Add `pid' argument.
18916 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18917 (struct target_ops) <wait>: Add `ptid' field. Change return type
18919 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18920 (mywait): Add `ptid' argument. Change return type to ptid_t.
18921 (target_pid_to_str): Declare.
18922 * target.c (set_desired_inferior): Adjust to use ptids.
18923 (mywait): Add new `ptid' argument. Adjust.
18924 (target_pid_to_str): New.
18925 * mem-break.h (free_all_breakpoints): Declare.
18926 * mem-break.c (breakpoints): Delelete.
18927 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18928 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18929 to use per-process breakpoint list.
18930 (free_all_breakpoints): New.
18931 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18932 (symbol_cache, all_symbols_looked_up): Delete.
18934 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18936 (prepare_resume_reply): Change ptid argument's type from unsigned
18937 long to ptid_t. Adjust. Implement W;process and X;process.
18938 (free_sym_cache, clear_symbol_cache): New.
18939 (look_up_one_symbol): Adjust to per-process symbol cache. *
18940 * server.c (cont_thread, general_thread, step_thread): Change type
18942 (attached): Delete.
18943 (multi_process): New.
18944 (last_ptid): Change type to ptid_t.
18945 (struct vstop_notif) <ptid>: Change type to ptid_t.
18946 (queue_stop_reply, push_event): Change `ptid' argument's type to
18948 (discard_queued_stop_replies): Add `pid' argument.
18949 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18950 changes. Don't reference the `attached' global.
18951 (attach_inferior): Adjust to mywait interface changes.
18952 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18953 features. Handle and report "multiprocess+". Handle
18955 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18957 (handle_v_kill): New.
18958 (handle_v_stopped): Adjust to use target_pid_to_str.
18959 (handle_v_requests): Allow multiple attaches and runs when
18960 multiprocess extensions are in effect. Handle "vKill".
18961 (myresume): Adjust to use ptids.
18962 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18963 (handle_status): Adjust to discard_queued_stop_replies interface
18965 (first_thread_of, kill_inferior_callback)
18966 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18967 (main): Call initialize_inferiors. Adjust to use ptids, killing
18968 and detaching from all inferiors. Handle multiprocess packet
18970 * linux-low.h: Include gdb_proc_service.h.
18971 (struct process_info_private): New.
18972 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18973 <lwpid_of>: Use ptid_get_lwp.
18974 (get_lwp_thread): Adjust.
18975 (struct lwp_info): Add `dead' member.
18976 (find_lwp_pid): Declare.
18977 * linux-low.c (thread_db_active): Delete.
18978 (new_inferior): Adjust comment.
18979 (inferior_pid): Delete.
18980 (linux_add_process): New.
18981 (handle_extended_wait): Adjust.
18982 (add_lwp): Change unsigned long to ptid.
18983 (linux_create_inferior): Add process to processes table. Adjust
18984 to use ptids. Don't set new_inferior here.
18985 (linux_attach_lwp): Rename to ...
18986 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
18987 it. Adjust to use ptids.
18988 (linux_attach_lwp): New.
18989 (linux_attach): Add process to processes table. Don't set
18991 (struct counter): New.
18992 (second_thread_of_pid_p, last_thread_of_process_p): New.
18993 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
18994 multiple processes.
18995 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
18996 processes. Remove process from process table.
18997 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
18998 to multiple processes.
18999 (any_thread_of): New.
19000 (linux_detach): Add `pid' argument, and handle it. Remove process
19001 from processes table.
19002 (linux_join): Add `pid' argument. Handle it.
19003 (linux_thread_alive): Change unsighed long argument to ptid_t.
19004 Consider dead lwps as not being alive.
19005 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19006 threads we're not interested in.
19007 (same_lwp, find_lwp_pid): New.
19008 (linux_wait_for_lwp): Change `pid' argument's type from int to
19010 (linux_wait_for_event): Rename to ...
19011 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19012 from int to ptid_t. Adjust.
19013 (linux_wait_for_event): New.
19014 (linux_wait_1): Add `ptid' argument. Change return type to
19015 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19016 that exit from the process table.
19017 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19019 (mark_lwp_dead): New.
19020 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19021 stopping all threads, mark its main lwp as dead.
19022 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19024 (fetch_register, usr_store_inferior_registers)
19025 (regsets_fetch_inferior_registers)
19026 (regsets_store_inferior_registers, linux_read_memory)
19027 (linux_write_memory): Inline `inferior_pid'.
19028 (linux_look_up_symbols): Adjust to use per-process
19029 `thread_db_active'.
19030 (linux_request_interrupt): Adjust to use ptids.
19031 (linux_read_auxv): Inline `inferior_pid'.
19032 (initialize_low): Don't reference thread_db_active.
19033 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19034 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19035 (ps_getpid): Return the pid of the current inferior.
19036 * thread-db.c (proc_handle, thread_agent): Delete.
19037 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19039 (find_one_thread): Change argument type to ptid_t. Adjust to
19041 (maybe_attach_thread): Adjust to per-process data and ptids.
19042 (thread_db_find_new_threads): Ditto.
19043 (thread_db_init): Ditto.
19044 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19045 processes table. Adjust to use ptids.
19046 (spu_kill, spu_detach): Adjust interface. Remove process from
19048 (spu_join, spu_thread_alive): Adjust interface.
19049 (spu_wait): Adjust interface. Remove process from processes
19050 table. Adjust to use ptids.
19051 * win32-low.c (current_inferior_tid): Delete.
19052 (current_inferior_ptid): New.
19053 (debug_event_ptid): New.
19054 (thread_rec): Take a ptid. Adjust.
19055 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19056 (child_delete_thread): Ditto.
19057 (do_initial_child_stuff): Add `attached' argument. Add process to
19059 (child_fetch_inferior_registers, child_store_inferior_registers):
19061 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19062 (win32_attach): Pass 1 to do_initial_child_stuff.
19063 (win32_kill): Adjust interface. Remove process from processes
19065 (win32_detach): Ditto.
19066 (win32_join): Adjust interface.
19067 (win32_thread_alive): Take a ptid.
19068 (win32_resume): Adjust to use ptids.
19069 (get_child_debug_event): Ditto.
19070 (win32_wait): Adjust interface. Remove exiting process from
19073 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19075 Non-stop mode support.
19077 * server.h (non_stop): Declare.
19078 (gdb_client_data, handler_func): Declare.
19079 (delete_file_handler, add_file_handler, start_event_loop):
19081 (handle_serial_event, handle_target_event, push_event)
19082 (putpkt_notif): Declare.
19083 * target.h (enum resume_kind): New.
19084 (struct thread_resume): Replace `step' field by `kind' field.
19085 (TARGET_WNOHANG): Define.
19086 (struct target_ops) <wait>: Add `options' argument.
19087 <supports_non_stop, async, start_non_stop>: New fields.
19088 (target_supports_non_stop, target_async): New.
19089 (start_non_stop): Declare.
19090 (mywait): Add `options' argument.
19091 * target.c (mywait): Add `options' argument. Print child exit
19092 notifications here.
19093 (start_non_stop): New.
19094 * server.c (non_stop, own_buf, mem_buf): New globals.
19095 (struct vstop_notif): New.
19096 (notif_queue): New global.
19097 (queue_stop_reply, push_event, discard_queued_stop_replies)
19098 (send_next_stop_reply): New.
19099 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19101 (attach_inferior): In non-stop mode, don't wait for the target
19103 (handle_general_set): Handle QNonStop.
19104 (handle_query): When handling qC, return the current general
19105 thread, instead of the first thread of the list.
19106 (handle_query): If the backend supports non-stop mode, include
19107 QNonStop+ in the qSupported query response.
19108 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19110 (handle_v_attach, handle_v_run): Handle non-stop mode.
19111 (handle_v_stopped): New.
19112 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19113 (myresume): Adjust to use resume_kind. Handle non-stop.
19114 (queue_stop_reply_callback): New.
19115 (handle_status): Handle non-stop mode.
19116 (main): Clear non_stop flag on reconnection. Use the event-loop.
19117 Refactor serial protocol handling from here ...
19118 (process_serial_event): ... to this new function. When GDB
19119 selects any thread, select one here. In non-stop mode, wait until
19120 GDB acks all pending events before exiting.
19121 (handle_serial_event, handle_target_event): New.
19122 * remote-utils.c (remote_open): Install remote_desc in the event
19124 (remote_close): Remove remote_desc from the event loop.
19125 (putpkt_binary): Rename to...
19126 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19127 (putpkt_binary): New as wrapper around putpkt_binary_1.
19128 (putpkt_notif): New.
19129 (prepare_resume_reply): In non-stop mode, don't change the
19131 * event-loop.c: New.
19132 * Makefile.in (OBJ): Add event-loop.o.
19133 (event-loop.o): New rule.
19135 * linux-low.h (pid_of): Moved here.
19137 (get_lwp_thread): Use lwpid_of.
19138 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19139 * linux-low.c (pid_of): Delete.
19140 (inferior_pid): Use lwpid_of.
19141 (linux_event_pipe): New.
19142 (target_is_async_p): New.
19144 (handle_extended_wait): Use lwpid_of.
19145 (add_lwp): Don't set lwpid field.
19146 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19147 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19148 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19149 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19150 first. Adjust to linux_wait_for_event interface changes. Use
19152 (linux_detach): Don't delete the main lwp here.
19153 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19154 (status_pending_p): Don't consider explicitly suspended lwps.
19155 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19156 pointer. Add OPTIONS argument. Change return type to int. Use
19157 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19158 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19159 pointer. Add status pointer argument. Return a pid instead of a
19160 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19161 changes. In non-stop mode, don't switch to a random thread.
19162 (linux_wait): Rename to...
19163 (linux_wait_1): ... this. Add target_options argument, and handle
19164 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19165 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19166 clean exit and signal exit code. Don't stop all threads in
19167 non-stop mode. In all-stop mode, only stop all threads when
19168 reporting a stop to GDB. Handle explicit thread stop requests.
19169 (async_file_flush, async_file_mark): New.
19171 (send_sigstop): Use lwpid_of.
19172 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19173 interface changes. In non-stop mode, don't switch to a random
19175 (linux_resume_one_lwp): Use lwpid_of.
19176 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19177 (linux_resume_one_thread): ... this. Handle resume_stop. In
19178 non-stop mode, don't look for pending flag in all threads.
19179 (resume_status_pending_p): Don't consider explicitly suspended
19181 (my_waitpid): Reimplement. Emulate __WALL.
19182 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19184 (sigchld_handler, linux_supports_non_stop, linux_async)
19185 (linux_start_non_stop): New.
19186 (linux_target_ops): Register linux_supports_non_stop, linux_async
19187 and linux_start_non_stop.
19188 (initialize_low): Install SIGCHLD handler.
19189 * thread-db.c (thread_db_create_event, find_one_thread)
19190 (thread_db_get_tls_address): Use lwpid_of.
19191 * win32-low.c (win32_detach): Adjust to use resume_kind.
19192 (win32_wait): Add `options' argument.
19193 * spu-low.c (spu_resume): Adjust to use resume_kind.
19194 (spu_wait): Add `options' argument.
19196 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19198 Decouple target code from remote protocol.
19200 * target.h (enum target_waitkind): New.
19201 (struct target_waitstatus): New.
19202 (struct target_ops) <wait>: Return an unsigned long. Take a
19203 target_waitstatus pointer instead of a char pointer.
19204 (mywait): Likewise.
19205 * target.c (mywait): Change prototype to return an unsigned long.
19206 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19207 * server.h (thread_from_wait, old_thread_from_wait): Delete
19209 (prepare_resume_reply): Change prototype to take a
19211 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19212 (last_status, last_ptid): New.
19213 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19214 pid instead of a signal.
19215 (attach_inferior): Remove "status" and "signal" parameters.
19217 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19219 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19220 (handle_v_requests, myresume): Remove "status" and "signal"
19221 parameters. Adjust.
19222 (handle_status): New.
19223 (main): Delete local `status'. Adjust.
19224 * remote-utils.c: Include target.h.
19225 (prepare_resume_reply): Change prototype to take a
19226 target_waitstatus. Adjust.
19228 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19230 * spu-low.c (spu_wait): Adjust.
19231 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19233 (win32_wait): Adjust.
19235 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19237 * target.h (struct thread_resume): Delete leave_stopped member.
19238 (struct target_ops): Add a `n' argument to the `resume' callback.
19239 * server.c (start_inferior): Adjust.
19240 (handle_v_cont, myresume): Adjust.
19241 * linux-low.c (check_removed_breakpoint): Adjust to resume
19242 interface change, and to removed leave_stopped field.
19243 (resume_ptr): Delete.
19244 (struct thread_resume_array): New.
19245 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19246 resume interface change.
19247 (linux_continue_one_thread, linux_queue_one_thread)
19248 (resume_status_pending_p): Check if the resume field is NULL
19249 instead of checking the leave_stopped member.
19250 (linux_resume): Adjust to the target resume interface change.
19251 * spu-low.c (spu_resume): Adjust to the target resume interface
19253 * win32-low.c (win32_detach, win32_resume): Ditto.
19255 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19257 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19259 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19261 (linux_continue_one_thread): Only preserve the stepping flag if
19262 there's a pending breakpoint.
19264 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19266 * server.c (main): After the inferior having exited, call
19267 remote_close before exiting gdbserver.
19269 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19271 Fix size of FPSCR in Power 7 processors.
19272 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19273 (PPC_FEATURE_HAS_DFP): New #define.
19274 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19277 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19279 * server.c (handle_query) Whitespace and formatting.
19281 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19283 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19284 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19285 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19286 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19287 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19288 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19289 Makefile.in, configure.ac: Fix whitespace throughout.
19290 * configure: Regenerate.
19292 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19294 * inferiors.c (find_inferior): Make it safe for the callback
19295 function to delete the currently iterated inferior.
19297 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19299 * Makefile.in (linuw_low_h): Move higher.
19300 (thread-db.o): Depend on $(linux_low_h).
19302 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19304 Rename "process" to "lwp" throughout.
19306 * linux-low.c (all_processes): Rename to...
19307 (all_lwps): ... this.
19308 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19309 (add_process): Rename to ...
19310 (add_lwp): ... this. Adjust.
19311 (linux_create_inferior): Adjust.
19312 (linux_attach_lwp): Adjust.
19313 (linux_attach): Adjust.
19314 (linux_kill_one_process): Rename to ...
19315 (linux_kill_one_lwp): ... this. Adjust.
19316 (linux_kill): Adjust.
19317 (linux_detach_one_process): Rename to ...
19318 (linux_detach_one_lwp): ... this. Adjust.
19319 (linux_detach): Adjust.
19320 (check_removed_breakpoint): Adjust.
19321 (status_pending_p): Adjust.
19322 (linux_wait_for_process): Rename to ...
19323 (linux_wait_for_lwp): ... this. Adjust.
19324 (linux_wait_for_event): Adjust.
19325 (send_sigstop): Adjust.
19326 (wait_for_sigstop): Adjust.
19327 (stop_all_processes): Rename to ...
19328 (stop_all_lwps): ... this.
19329 (linux_resume_one_process): Rename to ...
19330 (linux_resume_one_lwp): ... this. Adjust.
19331 (linux_set_resume_request, linux_continue_one_thread)
19332 (linux_queue_one_thread, resume_status_pending_p)
19333 (usr_store_inferior_registers, regsets_store_inferior_registers)
19334 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19336 * linux-low.h (get_process): Rename to ...
19337 (get_lwp): ... this. Adjust.
19338 (get_thread_process): Rename to ...
19339 (get_thread_lwp): ... this. Adjust.
19340 (get_process_thread): Rename to ...
19341 (get_lwp_thread): ... this. Adjust.
19342 (struct process_info): Rename to ...
19343 (struct lwp_info): ... this.
19344 (all_processes): Rename to ...
19345 (all_lwps): ... this.
19346 * proc-service.c (ps_lgetregs): Adjust.
19347 * thread-db.c (thread_db_create_event, find_one_thread)
19348 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19350 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19352 * server.c (handle_query): Handle "qAttached".
19354 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19356 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19357 GPLv3, update license URL.
19359 2009-03-01 Doug Evans <dje@google.com>
19361 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19362 (server_h): Add gdb_signals.h.
19363 (signals.o): Update.
19364 * server.h (target_signal_from_host,target_signal_to_host_p)
19365 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19367 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19369 * remote-utils.c (getpkt): Also generate remote-debug
19370 information if noack_mode is set.
19372 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19374 * server.c (handle_query): Report qXfer:siginfo:read and
19375 qXfer:siginfo:write as supported and handle them.
19376 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19377 * linux-low.c (linux_xfer_siginfo): New.
19378 (linux_target_ops): Set it.
19380 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19382 * server.c (gdbserver_usage): Mention --remote-debug.
19383 (main): Accept '--remote-debug' switch.
19385 2009-01-18 Doug Evans <dje@google.com>
19387 * regcache.c (new_register_cache): No need to check result of xcalloc.
19388 * server.c (handle_search_memory): Back out calls to xmalloc,
19389 result is checked and error is returned to user upon failure.
19390 (handle_query): Ditto. Add more checks for result of malloc.
19391 (handle_v_cont): Check result of malloc, report error back to
19393 (handle_v_run): Ditto. Call freeargv.
19394 * server.h (freeargv): Declare.
19395 * utils.c (freeargv): New fn.
19397 2009-01-15 Doug Evans <dje@google.com>
19399 * gdbreplay.c (perror_with_name): Make arg const char *.
19400 * server.h (target_signal_to_name): Make return type const char *.
19401 * thread-db.c (thread_db_err_str): Make return type const char *.
19402 * utils.c (perror_with_name): Make arg const char *.
19404 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19406 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19407 when handling a EXIT_PROCESS_DEBUG_EVENT.
19409 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19411 * gdbreplay.c (gdbreplay_version): Update copyright year.
19412 * server.c (gdbserver_version): Likewise.
19414 2009-01-05 Doug Evans <dje@google.com>
19416 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19417 (handle_extended_wait): Improve comment.
19419 2008-12-13 Doug Evans <dje@google.com>
19421 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19422 * server.h (ATTR_MALLOC): New macro.
19423 (xmalloc,xcalloc,xstrdup): Declare.
19424 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19425 * inferiors.c: Ditto.
19426 * linux-low.c: Ditto.
19427 * mem-break.c: Ditto.
19428 * regcache.c: Ditto.
19429 * remote-utils.c: Ditto.
19432 * win32-low.c: Ditto.
19434 2008-12-12 Doug Evans <dje@google.com>
19436 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19437 in debugging printf.
19439 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19441 2008-12-09 Doug Evans <dje@google.com>
19443 * linux-low.h (struct process_info): Delete member tid, unused.
19444 * thread-db.c (find_one_thread): Update.
19445 (maybe_attach_thread): Update.
19447 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19449 * target.h (struct target_ops): Add qxfer_osdata member.
19450 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19452 (linux_qxfer_osdata): New functions.
19453 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19455 * server.c (handle_query): Handle "qXfer:osdata:read:".
19456 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19457 (buffer_xml_printf): New functions.
19458 * server.h (struct buffer): New.
19459 (buffer_grow_str, buffer_grow_str0): New macros.
19460 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19461 (buffer_xml_printf): Declare.
19463 2008-11-24 Doug Evans <dje@google.com>
19465 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19467 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19469 * server.c (handle_v_run): Always use the supplied argument list.
19471 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19473 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19474 (xtensa_regmap_table): Add entry for scompare1.
19476 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19478 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19479 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19480 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19481 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19482 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19483 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19484 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19485 XML target descriptions.
19486 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19487 when inferior is running on an ISA 2.05 or later processor. Add
19488 special case to return offset for full 64-bit slot of FPSCR when
19491 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19493 * Makefile.in (SFILES, clean): Added sparc64 files.
19494 (reg-sparc64.o, reg-sparc64.c): New.
19495 * configure.srv (sparc*-*-linux*): New configuration.
19496 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19497 syscall arguments for SPARC.
19498 (regsets_store_inferior_registers): Likewise.
19499 * linux-sparc-low.c: New file.
19501 2008-10-21 Doug Evans <dje@google.com>
19503 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19504 (READLINE_DIR,READLINE_DEP): Delete.
19505 (INTERNAL_CFLAGS): Update.
19506 (LINTFLAGS): Update.
19508 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19510 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19511 whole argv from the last run, not just argv[0].
19513 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19515 * regcache.c (new_register_cache): Return NULL if the register
19516 cache size isn't known yet.
19517 (free_register_cache): Avoid dereferencing a NULL regcache.
19519 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19521 * configure.srv: Merge MIPS and MIPS64.
19523 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19525 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19527 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19529 * Makefile.in: Add required vsx dependencies.
19531 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19532 Declare init_registers_powerpc_vsx32l.
19533 Declare init_registers_powerpc_vsx64l.
19534 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19535 (ppc_arch_setup): Check for VSX in hwcap.
19536 (ppc_fill_vsxregset): New function.
19537 (ppc_store_vsxregset): New function.
19538 Add new VSX entry in regset_info target_regsets.
19540 * configure.srv: Add new VSX dependencies.
19542 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19544 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19545 (remote_open): Set or clear transport_is_reliable.
19546 (putpkt_binary): Don't expect acks in noack mode.
19547 (getpkt): Don't send ack/nac in noack mode.
19548 * server.c (handle_general_set): Handle QStartNoAckMode.
19549 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19551 (main): Reset noack_mode on every connection.
19552 * server.h (noack_mode): Declare.
19554 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19556 * Makefile.in (GDBREPLAY_OBS): New variable.
19557 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19559 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19560 Daniel Jacobowitz <dan@codesourcery.com>
19562 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19563 (usr_store_inferior_registers): Likewise.
19564 (regsets_store_inferior_registers): Likewise.
19566 2008-07-31 Rolf Jansen <rj@surtec.com>
19567 Pedro Alves <pedro@codesourcery.com>
19569 * configure.ac: Check for memmem declaration.
19570 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19571 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19572 (disable_packet_qfThreadInfo): Unconditionally compile.
19573 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19574 * configure, config.in: Regenerate.
19576 2008-07-28 Doug Kwan <dougkwan@google.com>
19578 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19579 (linux_write_memory): Remove declaration of errno.
19581 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19583 * linux-low.c (handle_extended_wait): Do not use "status"
19584 variable uninitialized.
19586 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19588 * server.c (handle_v_attach): Inhibit reporting dll changes.
19590 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19592 * remote-utils.c (prepare_resume_reply): If requested, don't
19593 output "thread:TID" in the T stop reply.
19595 * server.c (disable_packet_vCont, disable_packet_Tthread)
19596 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19597 (handle_query): If requested, disable support for qC, qfThreadInfo
19599 (handle_v_requests): If requested, disable support for vCont.
19600 (gdbserver_show_disableable): New.
19601 (main): Handle --disable-packet and --disable-packet=LIST.
19603 * server.h (disable_packet_vCont, disable_packet_Tthread)
19604 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19606 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19608 * server.c (gdbserver_usage): Mention --version.
19610 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19612 * Makefile.in (gdbreplay.o): New rule.
19614 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19616 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19617 message, not gdbserver.
19619 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19620 Nathan Sidwell <nathan@codesourcery.com>
19621 Joseph Myers <joseph@codesourcery.com>
19623 * acinclude.m4: Include ../../config/acx.m4.
19624 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19625 * configure, config.in: Regenerate.
19626 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19627 * server.c (gdbserver_version): Print PKGVERSION.
19628 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19629 (main): Adjust gdbserver_usage calls.
19630 * gdbreplay.c (version, host_name): Add declarations.
19631 (gdbreplay_version, gdbreplay_usage): New.
19632 (main): Accept --version and --help options.
19634 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19636 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19637 (arm_breakpoint_at): Handle Thumb.
19638 (the_low_target): Add comment.
19640 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19642 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19644 2008-05-09 Doug Evans <dje@google.com>
19646 * server.h (decode_search_memory_packet): Declare.
19647 * remote-utils.c (decode_search_memory_packet): New fn.
19648 * server.c (handle_search_memory_1): New fn.
19649 (handle_search_memory): New fn.
19650 (handle_query): Process qSearch:memory packets.
19652 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19654 * regcache.c (registers_length): Remove.
19655 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19656 full register packet.
19657 * regcache.h (registers_length): Remove prototype.
19658 * server.h (PBUFSIZ): Define to 16384.
19660 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19662 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19663 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19664 powerpc-64l.o, and powerpc-altivec64l.o.
19665 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19666 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19667 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19668 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19669 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19672 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19673 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19674 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19675 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19676 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19677 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19678 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19679 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19680 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19681 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19684 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19685 (init_registers_powerpc_32l): ... this new prototype.
19686 (init_registers_powerpc_32): Remove, replace by ...
19687 (init_registers_powerpc_altivec32l): ... this new prototype.
19688 (init_registers_powerpc_e500): Remove, replace by ...
19689 (init_registers_powerpc_e500l): ... this new prototype.
19690 (init_registers_ppc64): Remove, replace by ...
19691 (init_registers_powerpc_64l): ... this new prototype.
19692 (init_registers_powerpc_64): Remove, replace by ...
19693 (init_registers_powerpc_altivec64l): ... this new prototype.
19694 (ppc_num_regs): Set to 73.
19695 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19696 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19697 (ppc_cannot_store_register): Handle orig_r3 and trap.
19698 (ppc_arch_setup): Update init_registers_... calls.
19699 (ppc_fill_gregset): Handle orig_r3 and trap.
19701 * inferiors.c (clear_inferiors): Reset current_inferior.
19703 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19705 * acinclude.m4: Add override.m4.
19706 * configure: Regenerate.
19708 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19710 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19711 initial call to init_register_ppc64.
19713 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19715 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19716 single powerpc*-*-linux* case.
19717 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19719 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19721 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19722 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19724 * linux-ppc-low.c: Include <elf.h>.
19725 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19726 (ppc_hwcap): New global variable.
19727 (ppc_regmap): Remove __SPE__ #ifdef sections.
19728 (ppc_regmap_e500): New global variable.
19729 (ppc_cannot_store_register): Update __SPE__ special case.
19730 (ppc_get_hwcap): New function.
19731 (ppc_arch_setup): Use it to determine whether inferior supports
19732 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19733 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19734 Do not access registers if target does not support AltiVec.
19735 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19736 Do not access registers if target does not support SPE.
19737 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19739 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19741 * linux-low.c (disabled_regsets, num_regsets): New.
19742 (use_regsets_p): Delete.
19743 (linux_wait_for_process): Clear disabled_regsets.
19744 (regsets_fetch_inferior_registers): Check and set it.
19745 (regsets_store_inferior_registers): Likewise.
19746 (linux_fetch_registers, linux_store_registers): Do not use
19748 (initialize_low): Allocate disabled_regsets.
19750 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19752 * Makefile.in (LIBOBJS): New.
19753 (OBS): Use LIBOBJS.
19754 (memmem.o): New rule.
19755 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19756 * configure: Regenerated.
19758 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19760 * server.c (handle_query): Never return "unsupported" for
19761 qXfer:features:read queries.
19763 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19765 * server.c (get_features_xml): Fix inverted condition.
19766 (handle_query): Always support qXfer:feature:read.
19768 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19770 * server.c (wrapper_argv): New.
19771 (start_inferior): Handle wrapper_argv. If set, expect an extra
19773 (gdbserver_usage): Document --wrapper.
19774 (main): Parse --wrapper.
19776 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19778 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19779 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19780 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19781 (ppc_set_pc): Likewise.
19782 (ppc_arch_setup): New function.
19783 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19784 of collect_register.
19785 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19787 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19789 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19790 instead of linux-ppc64-low.o.
19791 * linux-ppc64-low.c: Remove file.
19792 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19793 (linux-ppc64-low.o): Remove rule.
19795 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19796 (init_registers_powerpc_64): Likewise.
19797 (ppc_regmap): Conditionally define depending on __powerpc64__.
19798 (ppc_cannot_store_register): Do not special-case "fpscr" when
19799 compiled on __powerpc64__.
19800 (ppc_collect_ptrace_register): New function.
19801 (ppc_supply_ptrace_register): New function.
19802 (ppc_breakpoint): Change type to "unsigned int".
19803 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19804 (the_low_target): Conditionally provide initializers for the
19805 arch_setup member depending on __powerpc64__. Install
19806 collect_ptrace_register and supply_ptrace_register members.
19808 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19810 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19811 * server.c (gdbserver_xmltarget): Define.
19812 (get_features_xml): Use it to replace "target.xml" and arch_string.
19814 * configure.srv: Remove srv_xmltarget. Add XML files that were
19815 mentioned there to srv_xmlfiles instead. Remove conditional tests
19816 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19817 srv_xmlfiles and srv_regobj to include all possible choices.
19818 * configure.ac (srv_xmltarget): Remove.
19819 (srv_xmlfiles): Do not add "target.xml".
19820 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19821 checks for supplementary target information.
19822 * configure: Regenerate.
19823 * Makefile.in (XML_TARGET): Remove.
19824 (target.xml): Remove rule.
19825 (clean): Do not clean up target.xml.
19826 (.PRECIOUS): Do not mention target.xml.
19828 * target.h (struct target_ops): Remove arch_string member.
19829 * linux-low.c (linux_arch_string): Remove.
19830 (linux_target_ops): Remove arch_string initializer.
19831 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19832 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19833 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19834 * spu-low.c (spu_arch_string): Remove.
19835 (spu_target_ops): Remove arch_string initializer.
19836 * win32-low.c (win32_arch_string): Remove.
19837 (win32_target_ops): Remove arch_string initializer.
19838 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19839 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19840 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19842 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19844 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19845 by collect_ptrace_register and supply_ptrace_register hooks.
19846 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19847 instead of checking for the_low_target.left_pad_xfer.
19848 (usr_store_inferior_registers): Use collect_ptrace_register callback
19849 instead of checking for the_low_target.left_pad_xfer.
19851 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19852 (s390_supply_ptrace_register): Likewise.
19853 (s390_fill_gregset): Call s390_collect_ptrace_register.
19854 (the_low_target): Update.
19856 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19857 (ppc_supply_ptrace_register): Likewise.
19858 (the_low_target): Update.
19860 * linux-i386-low.c (the_low_target): Update.
19861 * linux-x86-64-low.c (the_low_target): Update.
19863 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19865 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19866 reg-s390.o and reg-s390x.o.
19868 * linux-low.c (new_inferior): New global variable.
19869 (linux_create_inferior, linux_attach): Set it.
19870 (linux_wait_for_process): Call the_low_target.arch_setup after the
19871 target has stopped for the first time.
19872 (initialize_low): Do not call the_low_target.arch_setup.
19874 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19875 (s390_set_pc): Likewise.
19876 (s390_arch_setup): New function.
19877 (the_low_target): Use s390_arch_setup as arch_setup routine.
19879 * regcache.c (realloc_register_cache): New function.
19880 (set_register_cache): Call it for each existing regcache.
19882 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19884 * server.h (init_registers): Remove prototype.
19886 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19887 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19888 instead of init_registers ().
19889 * linux-arm-low.c (init_registers_arm): Add prototype.
19890 (init_registers_arm_with_iwmmxt): Likewise.
19891 (the_low_target): Add initializer for arch_setup field.
19892 * linux-cris-low.c (init_registers_cris): Add prototype.
19893 (the_low_target): Add initializer for arch_setup field.
19894 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19895 (the_low_target): Add initializer for arch_setup field.
19896 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19897 (the_low_target): Add initializer for arch_setup field.
19898 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19899 (the_low_target): Add initializer for arch_setup field.
19900 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19901 (the_low_target): Add initializer for arch_setup field.
19902 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19903 (the_low_target): Add initializer for arch_setup field.
19904 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19905 (init_registers_mips64_linux): Likewise.
19906 (the_low_target): Add initializer for arch_setup field.
19907 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19908 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19909 (the_low_target): Add initializer for arch_setup field.
19910 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19911 (init_registers_powerpc_64): Likewise.
19912 (the_low_target): Add initializer for arch_setup field.
19913 * linux-s390-low.c (init_registers_s390): Add prototype.
19914 (init_registers_s390x): Likewise.
19915 (the_low_target): Add initializer for arch_setup field.
19916 * linux-sh-low.c (init_registers_sh): Add prototype.
19917 (the_low_target): Add initializer for arch_setup field.
19918 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19919 (the_low_target): Add initializer for arch_setup field.
19920 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19921 (the_low_target): Add initializer for arch_setup field.
19923 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19924 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19925 instead of init_registers ().
19926 * win32-arm-low.c (init_registers_arm): Add prototype.
19927 (the_low_target): Add initializer for arch_setup field.
19928 * win32-i386-low.c (init_registers_i386): Add prototype.
19929 (the_low_target): Add initializer for arch_setup field.
19931 * spu-low.c (init_registers_spu): Add prototype.
19932 (initialize_low): Call initialie_registers_spu () instead of
19933 initialize_registers ().
19935 2008-02-19 Pedro Alves <pedro@codesourcery.com>
19937 * server.c (handle_v_requests): When handling the vRun and vAttach
19938 packets, if already debugging a process, don't kill it. Return an
19941 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19943 * server.c (handle_query): Correct length check.
19945 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19947 * win32-low.c (do_initial_child_stuff): Add process handle
19948 parameter. Set current_process_handle and current_process_id from the
19949 parameters. Clear globals.
19950 (win32_create_inferior): Don't set current_process_handle and
19951 current_process_id here. Instead pass them on the call to
19952 do_initial_child_stuff.
19953 (win32_attach): Likewise.
19954 (win32_clear_inferiors): New.
19955 (win32_kill): Don't close the current process handle or the
19956 current thread handle here. Instead call win32_clear_inferiors.
19957 (win32_detach): Don't open a new handle to the process. Call
19958 win32_clear_inferiors.
19959 (win32_join): Don't rely on current_process_handle; open a new
19960 handle using the process id.
19961 (win32_wait): Call win32_clear_inferiors when the inferior process
19964 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19966 * server.c (monitor_show_help): Add "exit".
19968 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19970 * Makefile.in (SFILES): Add linux-xtensa-low.c.
19971 (clean): Add reg-xtensa.c.
19972 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
19973 * configure.srv (xtensa*-*-linux*) New target.
19974 * linux-xtensa-low.c: New.
19975 * xtensa-xtregs.c: New.
19977 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19979 * hostio.c: Don't include errno.h.
19980 (errno_to_fileio_errno): Move to hostio-errno.
19981 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19982 error number outputting to the target->hostio_last_error callback.
19983 (hostio_packet_error): Use FILEIO_EINVAL directly.
19984 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19985 calls to hostio_error.
19986 * hostio-errno.c: New.
19987 * server.h (hostio_last_error_from_errno): Declare.
19988 * target.h (target_ops): Add hostio_last_error member.
19989 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
19990 as hostio_last_error handler.
19991 * spu-low.c (spu_target_ops): Likewise.
19992 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
19993 (wince_hostio_last_error): New functions.
19994 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
19995 as hostio_last_error handler.
19996 (win32_target_ops) [!_WIN32_WCE]: Register
19997 hostio_last_error_from_errno as hostio_last_error handler.
19998 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
19999 (hostio-errno.o): New rule.
20000 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20001 * configure.srv (srv_hostio_err_objs): New variable. Default to
20003 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20004 * configure: Regenerate.
20006 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20008 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20009 (linux_kill, linux_detach): Clean up the process list.
20010 * remote-utils.c (remote_open): Improve port number parsing.
20011 (putpkt_binary, input_interrupt): Only send interrupts if the target
20013 * server.c (extended_protocol): Make static.
20014 (attached): Define earlier.
20015 (exit_requested, response_needed, program_argv): New variables.
20016 (target_running): New.
20017 (start_inferior): Clear attached here.
20018 (attach_inferior): Set attached here.
20019 (require_running): Define.
20020 (handle_query): Use require_running and target_running. Implement
20022 (handle_v_attach, handle_v_run): New.
20023 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20024 (gdbserver_usage): Update.
20025 (main): Redo argument parsing. Handle --debug and --multi. Handle
20026 --attach along with other options or after the port. Save
20027 program_argv. Support no initial program. Resynchronize
20028 communication with GDB after an error. Handle "monitor exit".
20029 Use require_running and target_running. Always allow the extended
20030 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20031 restart in extended mode.
20032 * README: Refer to the GDB manual. Update --attach usage.
20034 2007-12-20 Andreas Schwab <schwab@suse.de>
20036 * linux-low.c (STACK_SIZE): Define.
20037 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20038 (linux_test_for_tracefork): Likewise.
20040 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20042 * linux-low.c (linux_wait_for_event): Update messages. Do not
20043 reinsert auto-delete breakpoints.
20044 * mem-break.c (struct breakpoint): Change return type of handler to
20046 (set_breakpoint_at): Update handler type.
20047 (reinsert_breakpoint_handler): Return 1 instead of calling
20049 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20051 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20052 * mem-break.h (set_breakpoint_at): Update handler type.
20053 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20054 * win32-low.c (auto_delete_breakpoint): New.
20055 (get_child_debug_event): Use it.
20057 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20059 * configure.ac: Check for pread and pwrite.
20060 * hostio.c (handle_pread): Fall back to lseek and read.
20061 (handle_pwrite): Fall back to lseek and write.
20062 * config.in, configure: Regenerated.
20064 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20066 * server.c (myresume): Add own_buf argument.
20067 (main): Update calls.
20069 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20071 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20072 * remote-utils.c (remote_open): Do not call disable_async_io.
20073 (block_async_io): Delete.
20074 (unblock_async_io): Make static.
20075 (initialize_async_io): New.
20076 * server.c (handle_v_cont): Handle async I/O here.
20077 (myresume): Likewise. Move other common resume tasks here...
20078 (main): ... from here. Call initialize_async_io. Disable async
20079 I/O before the main loop.
20080 * server.h (initialize_async_io): Declare.
20081 (block_async_io, unblock_async_io): Delete prototypes.
20082 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20084 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20086 * remote-utils.c (readchar): Allow binary data in received messages.
20088 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20090 * win32-low.c (attaching): New global.
20091 (win32_create_inferior): Clear the `attaching' global.
20092 (win32_attach): Set the `attaching' global.
20093 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20094 attaching. Only set a breakpoint at the entry point if not
20097 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20099 * server.c (main): Don't report dll events on the initial
20100 connection on attaches.
20102 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20104 * server.c (main): Relax numerical bases supported for the pid of
20105 the --attach command line argument.
20107 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20109 * win32-low.c (win32_attach): Call OpenProcess before
20110 DebugActiveProcess, not after. Add last error output to error
20113 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20115 * win32-low.c (win32_get_thread_context)
20116 (win32_set_thread_context): New functions.
20117 (thread_rec): Use win32_get_thread_context.
20118 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20119 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20122 2007-12-03 Leo Zayas
20123 Pedro Alves <pedro_alves@portugalmail.pt>
20125 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20127 (child_add_thread): Minor cleanup.
20128 (child_continue): Resume artificially suspended threads before
20129 calling ContinueDebugEvent.
20130 (suspend_one_thread): New.
20131 (fake_breakpoint_event): New.
20132 (get_child_debug_event): Change return type to int. Check here if
20133 gdb sent an interrupt request. If a soft interrupt was requested,
20134 fake a breakpoint event. Return 0 if there is no event to handle,
20136 (win32_wait): Don't check here if gdb sent an interrupt request.
20137 Ensure there is a valid event to handle.
20138 (win32_request_interrupt): Add soft interruption method as last
20141 2007-12-03 Leo Zayas
20142 Pedro Alves <pedro_alves@portugalmail.pt>
20144 * win32-low.h (win32_thread_info): Add descriptions to the
20145 structure members. Replace `suspend_count' counter by a
20147 * win32-low.c (thread_rec): Update condition of when to get the
20148 context from the inferior. Rely on ContextFlags being set if it
20149 has already been retrieved. Only suspend the inferior thread if
20150 we haven't already. Warn if that fails.
20151 (continue_one_thread): s/suspend_count/suspended/. Only call
20152 ResumeThread once. Warn if that fails.
20154 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20156 * win32-low.c (win32_wait): Don't read from the inferior when it
20157 has already exited.
20159 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20161 * Makefile.in (win32_low_h): New variable.
20162 (win32-low.o): Add dependency on $(win32_low_h).
20163 (win32-arm-low.o, win32-i386-low.o): New rules.
20165 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20167 * hostio.c: Correct copyright year.
20169 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20171 * Makefile.in (OBS): Add hostio.o.
20172 (hostio.o): New rule.
20173 * server.h (handle_vFile): Declare.
20174 * hostio.c: New file.
20175 * server.c (handle_v_requests): Take packet_len and new_packet_len
20176 for binary packets. Call handle_vFile.
20177 (main): Update call to handle_v_requests.
20179 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20181 * linux-low.c: Include <sched.h>.
20183 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20185 * linux-low.c (linux_tracefork_grandchild): New.
20186 (linux_tracefork_child): Use clone.
20187 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20189 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20191 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20193 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20195 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20197 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20199 * inferiors.c (change_inferior_id): Delete.
20200 (add_pid_to_list, pull_pid_from_list): New.
20201 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20202 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20203 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20204 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20205 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20206 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20207 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20208 (using_threads): Always set to 1.
20209 (handle_extended_wait): New.
20210 (add_process): Do not set TID.
20211 (linux_create_inferior): Set must_set_ptrace_flags.
20212 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20213 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20214 (linux_thread_alive): Rename TID argument to LWPID.
20215 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20216 (linux_wait_for_event): Do not use TID or check using_threads. Update
20217 call to dead_thread_notify. Call handle_extended_wait.
20218 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20219 (send_sigstop): Delete sigstop_sent.
20220 (wait_for_sigstop): Avoid TID.
20221 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20222 (linux_test_for_tracefork): New.
20223 (linux_lookup_signals): Use thread_db_active and
20224 linux_supports_tracefork_flag.
20225 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20226 * linux-low.h (get_process_thread): Avoid TID.
20227 (struct process_ifo): Move thread_known and tid to the end. Remove
20229 (linux_attach_lwp, thread_db_init): Update prototypes.
20230 * server.h (change_inferior_id): Delete prototype.
20231 (add_pid_to_list, pull_pid_from_list): New prototypes.
20232 * thread-db.c (thread_db_use_events): New.
20233 (find_first_thread): Rename to...
20234 (find_one_thread): ...this. Update callers and messages. Do not
20235 call fatal. Check thread_db_use_events. Do not call
20236 change_inferior_id or new_thread_notify.
20237 (maybe_attach_thread): Update. Do not call new_thread_notify.
20238 (thread_db_init): Set thread_db_use_events. Check use_events.
20239 * utils.c (fatal, warning): Correct message prefix.
20241 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20243 * Makefile.in (clean): Remove new files.
20244 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20245 (powerpc-64.o, powerpc-64.c): New rules.
20246 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20247 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20249 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20251 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20252 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20253 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20254 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20255 (target_regsets): Add AltiVec and SPE register sets.
20256 * configure.ac: Check for AltiVec and SPE.
20257 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20258 (ppc_fill_vrregset, ppc_store_vrregset): New.
20259 (target_regsets): Add AltiVec register set.
20260 * configure: Regenerated.
20262 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20264 * linux-low.c (O_LARGEFILE): Define.
20265 (linux_read_memory): Use /proc/PID/mem.
20266 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20267 * configure, config.in: Regenerated.
20269 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20271 * linux-low.c (linux_wait_for_event): Do not pass signals while
20274 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20276 * win32-low.c (create_process): New.
20277 (win32_create_inferior): Use create_process instead of
20278 CreateProcess. If create_process failed retry appending an ".exe"
20279 suffix. Store the GetLastError result immediatelly after
20280 create_process calls and use it on the call to error.
20282 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20284 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20286 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20288 * configure.ac: Switch license to GPLv3.
20290 2007-08-01 Michael Snyder <msnyder@access-company.com>
20292 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20294 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20296 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20298 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20299 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20300 CloseToolhelp32Snapshot.
20301 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20302 CloseToolhelp32Snapshot.
20304 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20306 * server.c (main): Check for inferior exit before main loop.
20308 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20310 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20311 instead of on tmp_desc.
20313 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20314 Daniel Jacobowitz <dan@codesourcery.com>
20316 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20317 (add_thread): Minor cleanups.
20318 (clear_inferiors): Move lower in the file. Clear the DLL
20320 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20321 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20322 (xml_escape_text): New.
20323 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20325 (handle_v_cont): Report errors.
20326 (gdbserver_version): Update.
20327 (main): Correct size of own_buf. Do not report initial DLL events.
20328 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20329 (unloaded_dll, xml_escape_text): New.
20330 * win32-low.c (enum target_waitkind): Update comments.
20331 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20332 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20333 (win32_EnumProcessModules, win32_GetModuleInformation)
20334 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20335 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20336 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20337 (win32_Module32First, win32_Module32Next, load_toolhelp)
20338 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20339 (get_child_debug_event): Handle DLL events.
20340 (win32_wait): Likewise.
20342 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20344 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20345 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20347 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20349 * win32-low.c (handle_output_debug_string): Ignore event if not
20352 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20354 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20356 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20358 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20360 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20362 * inferiors.c (change_inferior_id): Add comment.
20363 * linux-low.c (check_removed_breakpoint): Add an early
20364 prototype. Improve debug output.
20365 (linux_attach): Doc update.
20366 (linux_detach_one_process, linux_detach): Clean up before releasing
20368 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20369 * linux-low.h (struct process_info): Doc improvement.
20370 * mem-break.c (delete_all_breakpoints): New.
20371 * mem-break.h (delete_all_breakpoints): New prototype.
20372 * thread-db.c (find_first_thread): New.
20373 (thread_db_create_event): Call it instead of
20374 thread_db_find_new_threads. Clean up unused variables.
20375 (maybe_attach_thread): Remove first thread handling.
20376 (thread_db_find_new_threads): Use find_first_thread.
20377 (thread_db_get_tls_address): Likewise.
20379 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20381 * thread-db.c (thread_db_find_new_threads): Add prototype.
20382 (thread_db_create_event): Check for the main thread before adding
20384 (maybe_attach_thread): Only enable event reporting if TID == 0.
20385 (thread_db_get_tls_address): Check for new threads.
20387 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20389 * linux-low.c (linux_create_inferior): Try execv before execvp.
20390 * spu-low.c (spu_create_inferior): Likewise.
20392 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20394 * linux-low.c (linux_create_inferior): Change execv to execvp.
20395 * spu-low.c (spu_create_inferior): Likewies.
20397 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20399 * Makefile.in (clean): Clean new files instead of deleted ones.
20400 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20401 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20403 * configure.srv: Specify XML files and new regformats for MIPS and
20405 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20406 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20407 an entry for the restart register.
20408 (mips_cannot_fetch_register, mips_cannot_store_register)
20409 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20410 register names to match the XML descriptions.
20411 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20412 restart register instead of $0.
20414 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20415 Markus Deuling <deuling@de.ibm.com>
20417 * remote-utils.c (decode_xfer_write): New function.
20418 * server.h (decode_xfer_write): Add prototype.
20419 * server.c (handle_query): Add PACKET_LEN argument. Support
20420 qXfer:spu:read and qXfer:spu:write packets.
20421 (main): Pass packet_len to handle_query.
20422 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20423 * target.h (target_ops): Add qxfer_spu.
20425 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20427 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20428 accessing non-seekable spufs files.
20430 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20432 * server.c (handle_query): Add reply for qC packet.
20434 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20435 Leo Zayas <lerele@champenstudios@com>
20437 * server.h (check_remote_input_interrupt_request): New function.
20438 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20439 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20440 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20441 (check_remote_input_interrupt_request): New function.
20442 * server.h (check_remote_input_interrupt_request): Declare.
20443 * win32-low.c (winapi_DebugBreakProcess,
20444 winapi_GenerateConsoleCtrlEvent): New typedefs.
20445 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20447 (win32_wait): Check for remote interrupt request
20448 with check_remote_input_interrupt_request.
20449 (win32_request_interrupt): New function.
20450 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20452 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20454 * win32-low.c (debug_registers_changed,
20455 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20456 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20457 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20458 (thread_rec): Get context using the low target.
20459 (child_add_thread): Call thread_added on the low target,
20460 which does the same thing.
20462 (do_initial_child_stuff): Remove debug registers references.
20463 Set context using the low target. Resume threads after
20464 setting the contexts.
20465 (child_continue): Remove dead variable. Remove debug
20466 registers references.
20467 (child_fetch_inferior_registers): Go through the low target.
20468 (do_child_store_inferior_registers): Remove.
20469 (child_store_inferior_registers): Go through the low target.
20470 (win32_resume): Remove debug registers references.
20471 Set context using the low target.
20472 (handle_exception): Change return type to void. Don't record
20473 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20474 first chance exception.
20475 (get_child_debug_event): Change return type to void. Remove
20476 goto loop. Always return after waiting for debug event.
20477 (win32_wait): Convert to switch statement. Handle spurious
20480 * win32-i386-low.c (debug_registers_changed,
20481 debug_registers_used): New.
20482 (initial_stuff): Rename to ...
20483 (i386_initial_stuff): ... this. Clear debug registers
20485 (store_debug_registers): Delete.
20486 (i386_get_thread_context): New.
20487 (load_debug_registers): Delete.
20488 (i386_set_thread_context): New.
20489 (i386_thread_added): New.
20490 (single_step): Rename to ...
20491 (i386_single_step): ... this.
20492 (do_fetch_inferior_registers): Rename to ...
20493 (i386_fetch_inferior_register): ... this.
20494 (i386_store_inferior_register): New.
20495 (the_low_target): Adapt to new interface.
20497 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20498 (arm_get_thread_context): New.
20499 (arm_set_thread_context): New.
20501 (do_fetch_inferior_registers): Rename to ...
20502 (arm_fetch_inferior_register): ... this.
20503 (arm_store_inferior_register): New.
20504 (arm_wince_breakpoint): Reimplement as unsigned long.
20505 (arm_wince_breakpoint_len): Define.
20506 (the_low_target): Adapt to new interface.
20508 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20509 load_debug_registers. Add get_thread_context, set_thread_context,
20510 thread_added and store_inferior_register. Rename
20511 fetch_inferior_registers to fetch_inferior_register.
20512 (regptr): Remove declaration.
20514 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20516 * linux-low.c (linux_detach): Change return type to int. Return 0.
20517 * spu-low.c (spu_detach): Likewise.
20519 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20521 * target.h (target_ops): Change return type of detach to int.
20523 (join_inferior): New.
20524 * server.c (main): Don't skip detach support on mingw32.
20525 If the inferior doesn't support detaching return error.
20526 Call join_inferior instead of using waitpid.
20527 * linux-low.c (linux_join): New.
20528 (linux_target_op): Add linux_join.
20529 * spu-low.c (spu_join): New.
20530 (spu_target_ops): Add spu_join.
20531 * win32-low.c (win32_detach): Adapt to new interface.
20532 Reopen current_process_handle before detaching. Issue a child
20533 resume before detaching.
20535 (win32_target_op): Add win32_join.
20537 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20539 * win32-low.c (win32-attach): Fix return value.
20540 * target.h (target_ops): Describe ATTACH return values.
20542 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20544 * win32-low.c (GETPROCADDRESS): Define.
20545 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20546 (winapi_DebugSetProcessKillOnExit): Likewise.
20547 (win32_create_inferior): Force usage of ansi CreateProcessA.
20548 (win32_attach): Use GETPROCADDRESS.
20549 (win32_detach): Likewise.
20551 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20553 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20555 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20557 * win32-low.c: Commit leftover changes from 2007-03-29.
20559 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20561 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20562 fields short instead of int. Add explicit padding.
20563 (i387_cache_to_fsave): Remove unnecessary casts.
20564 (i387_fsave_to_cache): Doc fix.
20565 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20567 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20569 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20570 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20572 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20574 * configure.srv (arm*-*-mingw32ce*): Move near the other
20577 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20579 * configure.ac: Add errno checking.
20580 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20581 sys/file.h and malloc.h.
20582 (AC_CHECK_DECLS): Add perror.
20583 (srv_mingwce): Handle.
20584 * configure.srv (i[34567]86-*-cygwin*): Add
20585 win32-i386-low.o to srv_tgtobj.
20586 (i[34567]86-*-mingw*): Likewise.
20587 (arm*-*-mingw32ce*): Add case.
20588 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20589 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20590 [__MINGW32CE__] (strerror): New function.
20591 [__MINGW32CE__] (errno): Define to GetLastError.
20592 [__MINGW32CE__] (COUNTOF): New macro.
20593 (remote_open): Remove extra close call.
20594 * mem-break.c (delete_breakpoint_at): New function.
20595 * mem-break.h (delete_breakpoint_at): Declare.
20596 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20597 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20598 [USE_WIN32API] (read, write): Add char* casts.
20599 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20600 * server.h: Include wincecompat.h on Windows CE.
20601 [HAVE_ERRNO_H]: Check.
20602 (perror): Declare if not declared.
20603 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20604 (perror_with_name): Remove errno declaration.
20605 * wincecompat.h: New.
20606 * wincecompat.c: New.
20607 * win32-low.h: New.
20608 * win32-arm-low.c: New.
20609 * win32-i386-low.c: New.
20610 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20611 (OUTMSG2): Make it safe.
20613 (COUNTOF): New macro.
20614 (NUM_REGS): Get it from the low target.
20615 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20616 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20617 (thread_rec): Let low target handle debug registers.
20618 (child_add_thread): Likewise.
20619 (child_init_thread_list): Likewise.
20620 (continue_one_thread): Likewise.
20622 (do_child_fetch_inferior_registers): Move to ...
20623 * win32-i386-low.c: ... here, and rename to ...
20624 (do_fetch_inferior_registers): ... this.
20625 * win32-low.c (child_fetch_inferior_registers):
20626 Go through the low target.
20627 (do_child_store_inferior_registers): Use regptr.
20628 (strwinerror): New function.
20629 (win32_create_inferior): Handle Windows CE.
20630 Use strwinerror instead of strerror on Windows error
20631 codes. Add program to the error output.
20632 Don't close the main thread handle on Windows CE.
20633 (win32_attach): Use coredll.dll on Windows CE.
20634 (win32_kill): Close current process and current
20636 (win32_detach): Use coredll.dll on Windows CE.
20637 (win32_resume): Let low target handle debug registers, and
20639 (handle_exception): Add/Remove initial breakpoint. Avoid
20640 non-existant WSTOPSIG on Windows CE.
20641 (win32_read_inferior_memory): Cast to remove warning.
20642 (win32_arch_string): Go through the low target.
20643 (initialize_low): Call set_breakpoint_data with the low
20644 target's breakpoint.
20645 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20646 FOP_REGNUM, mappings): Move to ...
20647 * win32-i386-low.c: ... here.
20648 * win32-low.c (win32_thread_info): Move to ...
20649 * win32-low.h: ... here.
20650 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20651 win32-arm-low.c and wincecompat.c.
20652 (all:): Add $EXEEXT.
20653 (install-only:): Likewise.
20654 (gdbserver:): Likewise.
20655 (gdbreplay:): Likewise.
20656 * config.in: Regenerate.
20657 * configure: Regenerate.
20659 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20661 * win32-low.c: Rename typedef thread_info to
20662 win32_thread_info throughout.
20664 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20666 * win32-i386-low.c: Rename to ...
20667 * win32-low.c: ... this.
20668 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20669 * Makefile.in: Likewise.
20671 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20673 * remote-utils.c (monitor_output): Constify msg parameter.
20674 * server.h (monitor_output): Likewise.
20675 * win32-i386-low.c (handle_output_debug_string): New.
20676 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20677 handle_output_debug_string.
20678 (get_child_debug_event): Likewise.
20680 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20682 * server.c (main): Correct strtoul check.
20684 2007-03-27 Jon Ringle <jon@ringle.org>
20686 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20688 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20690 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20692 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20694 * terminal.h: Check HAVE_SGTTY_H.
20696 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20698 * remote-utils.c (remote_open): Print out the assigned port number.
20700 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20702 * remote-utils.c (monitor_output): New function.
20703 * server.c (debug_threads): Define here.
20704 (monitor_show_help): New function.
20705 (handle_query): Handle qRcmd.
20706 (main): Do not handle 'd' packet.
20707 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20708 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20711 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20713 * Makefile.in (EXEEXT): New.
20714 (clean): Use $(EXEEXT).
20716 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20718 * target.h (target_ops): Rename send_signal to request_interrupt,
20719 and remove enum target_signal parameter.
20720 * linux-low.c (linux_request_interrupt): Rename from
20721 linux_send_signal, and always send SIGINT.
20722 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20723 and always send SIGINT.
20724 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20726 (input_interrupt): Likewise.
20728 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20730 * server.c (get_features_xml): Check if target implemented
20732 * win32-i386-low.c (win32_arch_string): New.
20733 (win32_target_ops): Add win32_arch_string as arch_string member.
20735 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20737 * spu-low.c (spu_arch_string): New.
20738 (spu_target_ops): Add spu_arch_string.
20740 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20742 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20743 * configure.ac: Do not check for terminal.h.
20744 * configure, config.in: Regenerated.
20746 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20748 * Makefile.in (OBS): Add $(XML_BUILTIN).
20749 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20751 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20752 (arm-with-iwmmxt.c): New.
20753 * config.in, configure: Regenerate.
20754 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20755 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20756 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20757 (arm*-*-linux*): Add iWMMXt and regset support.
20758 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20759 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20760 (arm_store_wmmxregset, target_regsets): New.
20761 * server.c (get_features_xml): Take annex argument. Check builtin
20763 (handle_query): Handle multiple annexes.
20765 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20767 * remote-utils.c [USE_WIN32API] (read, write): Define.
20768 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20771 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20773 * linux-i386-low.c (the_low_target): Set arch_string.
20774 * linux-x86-64-low.c (the_low_target): Likewise.
20775 * linux-low.c (linux_arch_string): New.
20776 (linux_target_ops): Add it.
20777 * linux-low.h (struct linux_target_ops): Add arch_string.
20778 * server.c (write_qxfer_response): Use const void * for DATA.
20779 (get_features_xml): New.
20780 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20781 * target.h (struct target_ops): Add arch_string method.
20783 2007-01-03 Denis Pilat <denis.pilat@st.com>
20784 Daniel Jacobowitz <dan@codesourcery.com>
20786 * linux-low.c (linux_kill): Handle being called with no threads.
20787 * win32-i386-low.c (win32_kill): Likewise.
20788 (get_child_debug_event): Clear current_process_handle.
20790 2006-12-30 Denis PILAT <denis.pilat@st.com>
20791 Daniel Jacobowitz <dan@codesourcery.com>
20793 * remote-utils.c (remote_open): Check the type of specified
20794 serial port devices before opening them.
20795 * server.c (main): Kill the inferior if an error occurs during
20796 the first remote_open.
20798 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20800 * README: Update supported targets.
20802 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20804 * Makefile.in (clean): Remove reg-mips64.c.
20805 (reg-mips64.c, reg-mips64.o): New rules.
20806 * configure.srv: Handle mips64. Include regset support for mips.
20807 * linux-mips-low.c (union mips_register): New.
20808 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20809 (mips_breakpoint, mips_breakpoint_at): Use int.
20810 (mips_collect_register, mips_supply_register)
20811 (mips_collect_register_32bit, mips_supply_register_32bit)
20812 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20813 (mips_store_fpregset, target_regsets): New.
20814 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20816 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20818 * configure.srv: Add target "spu*-*-*".
20819 * Makefile.in (clean): Remove reg-spu.c.
20820 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20821 * spu-low.c: New file.
20823 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20825 * configure.ac: Correct td_thr_tls_get_addr test.
20826 * configure: Regenerated.
20828 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20830 * linux-low.c (linux_wait_for_event): Reformat. Use the
20831 pass_signals array.
20832 * remote-utils.c (decode_address_to_semicolon): New.
20833 * server.c (pass_signals, handle_general_set): New.
20834 (handle_query): Mention QPassSignals for qSupported.
20835 (main): Call handle_general_set.
20836 * server.h (pass_signals, decode_address_to_semicolon): New.
20838 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20840 * server.c (handle_query): Correct error handling for read_auxv.
20842 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20844 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20845 and srv_linux_thread_db to yes.
20846 * linux-s390-low.c (s390_fill_gregset): New function.
20847 (target_regsets): Define data structure.
20849 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20851 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20852 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20853 * config.in, configure: Regenerated.
20854 * inferiors.c (gdb_id_to_thread): New function.
20855 (gdb_id_to_thread_id): Use it.
20856 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20857 * linux-low.h (struct process_info): Add th member.
20858 (thread_db_get_tls_address): New prototype.
20859 * remote-utils.c (decode_address): Make non-static.
20860 * server.c (handle_query): Handle qGetTLSAddr.
20861 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20862 * target.h (struct target_ops): Add get_tls_address.
20863 * thread-db.c (maybe_attach_thread): Save the thread handle.
20864 (thread_db_get_tls_address): New.
20866 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20868 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20869 (linux_resume_one_process): Take a siginfo_t *. Update all
20870 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20871 (struct pending_signals): Add a siginfo_t.
20872 (linux_wait_for_process): Always set last_status.
20873 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20874 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20875 * linux-low.h (struct process_info): Add last_status.
20877 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20879 * remote-utils.c (try_rle): New function.
20880 (putpkt_binary): Use it.
20882 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20884 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20885 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20886 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20887 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20888 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20891 2006-08-08 Richard Sandiford <richard@codesourcery.com>
20893 * server.c (terminal_fd): New variable.
20894 (old_foreground_pgrp): Likewise.
20895 (restore_old_foreground_pgrp): New function.
20896 (start_inferior): Record the terminal file descriptor in terminal_fd
20897 and its original foreground group in old_foreground_pgrp. Register
20898 restore_old_foreground_pgrp with atexit().
20900 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20902 * server.c (handle_query): Correct qPart to qXfer.
20904 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20906 * configure.ac: Check for more headers which are missing on
20907 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20908 * configure.srv: Add Cygwin and mingw32.
20909 * remote-utils.c: Don't include headers unconditionally which
20910 are missing on mingw32. Include <winsock.h> for mingw32.
20911 (remote_open): Adjust for mingw32 support. Flush
20912 standard error after writing to it.
20913 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20914 (unblock_async_io, enable_async_io, disable_async_io)
20915 (readchar, getpkt): Update for Winsock support.
20916 (prepare_resume_reply): Expect a protocol signal number.
20917 * server.c: Disable <sys/wait.h> on mingw32.
20918 (start_inferior): Adjust for mingw32 support. Flush
20919 standard error after writing to it.
20920 (attach_inferior): Likewise. Use protocol signal
20922 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20924 * win32-i386-low.c: New file.
20925 * Makefile.in (XM_CLIBS): Set.
20926 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20927 (win32-i386-low.o): New dependency rule.
20928 * linux-low.c (linux_wait): Use target signal numbers.
20929 * target.h (struct target_ops): Doc fix.
20930 * server.h (target_signal_to_name): New prototype.
20931 * gdbreplay.c: Don't include headers unconditionally which
20932 are missing on mingw32. Include <winsock.h> for mingw32.
20933 (remote_close, remote_open): Adjust for Winsock support.
20934 * configure, config.in: Regenerated.
20936 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20938 * server.c (decode_xfer_read, write_qxfer_response): New.
20939 (handle_query): Take a packet length argument. Handle
20940 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20941 the qSupported response.
20942 (main): Update call to handle_query.
20944 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20946 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20947 (putpkt_binary): Renamed from putpkt and adjusted for binary
20949 (putpkt): New wrapper for putpkt_binary.
20950 (readchar): Don't mask off the high bit.
20951 (decode_X_packet): New function.
20952 * server.c (main): Call putpkt_binary if a handler sets the packet
20953 length. Save the length of the incoming packet. Handle 'X'.
20954 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20956 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20958 * server.c (handle_query): Handle qSupported.
20960 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20962 * remote-utils.c (all_symbols_looked_up): New variable.
20963 (look_up_one_symbol): Check it.
20964 * server.h (look_up_one_symbol): New declaration.
20965 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20967 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20969 * Makefile.in (linux-arm-low.o): Update dependencies.
20970 * linux-arm-low.c: Include "gdb_proc_service.h".
20971 (PTRACE_GET_THREAD_AREA): Define.
20972 (ps_get_thread_area): New function.
20974 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20976 * configure.srv (m68k*-*-uclinux*): New target.
20977 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20978 (linux_resume_one_process): Remove extraneous cast.
20979 (linux_read_offsets): New.
20980 (linux_target_op): Add linux_read_offsets on mmuless systems.
20981 * server.c (handle_query): Add qOffsets logic.
20982 * target.h (struct target_ops): Add read_offsets.
20984 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20986 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
20987 (PTRACE_GET_THREAD_AREA): Define.
20988 (ps_get_thread_area): New function.
20989 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
20990 (linux-x86-64-low.o): Update.
20992 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20994 * configure.ac: Remove checks for prfpregset_t.
20995 * gdb_proc_service.h: New file.
20996 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
20997 new "gdb_proc_service.h".
20998 * proc-service.c: Likewise.
20999 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21000 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21001 * Makefile.in (gdb_proc_service_h): Updated.
21002 * configure, config.in: Regenerated.
21004 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21006 * remote-utils.c (prepare_resume_reply): Move declaration
21007 of gdb_id_from_wait to the top of the block.
21009 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21011 * linux-low.c (regsets_store_inferior_registers): Read the regset
21012 from the target before filling it.
21014 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21016 * server.c (attach_inferior): Return SIGTRAP for a successful
21019 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21021 * Makefile.in (OBS): Add version.o.
21022 (STAGESTUFF): Delete.
21023 (version.o): Add dependencies.
21024 (version.c): Replace rule.
21025 (clean): Remove version.c.
21026 * server.c (gdbserver_version): New.
21027 (gdbserver_usage): Use printf.
21028 (main): Handle --version and --help.
21029 * server.h (version, host_name): Add declarations.
21031 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21043 * linux-x86-64-low.c:
21045 * linux-s390-low.c:
21046 * linux-ppc64-low.c:
21048 * linux-mips-low.c:
21049 * linux-m68k-low.c:
21050 * linux-m32r-low.c:
21053 * linux-ia64-low.c:
21054 * linux-i386-low.c:
21055 * linux-crisv32-low.c:
21067 * gdbserver.1: Add (C) after Copyright. Update the FSF
21070 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21072 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21073 (arm_breakpoint_at): Recognize both breakpoints.
21074 (the_low_target): Use the correct breakpoint instruction.
21076 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21078 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21079 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21080 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21081 (the_low_target): Update.
21083 2005-10-25 Andreas Schwab <schwab@suse.de>
21085 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21087 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21088 (ia64_num_regs): Reduce to 462.
21090 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21092 * acinclude.m4: Correct quoting.
21093 * aclocal.m4: Regenerated.
21095 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21096 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21097 (thread_db_init): Call thread_db_err_str.
21098 * configure.ac: Check for TD_VERSION.
21099 * config.in, configure: Regenerated.
21101 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21103 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21105 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21107 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21108 is not available. Define HAVE_PTRACE_GETREGS if it is.
21109 * config.in, configure: Regenerated.
21110 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21111 * linux-i386-low.c, linux-m68k-low.c: Update to use
21112 HAVE_PTRACE_GETREGS.
21113 * linux-low.c (regsets_fetch_inferior_registers)
21114 (regsets_store_inferior_registers): Only return 0 if we processed
21116 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21117 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21119 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21121 * inferiors.c (struct thread_info): Add gdb_id.
21122 (add_thread): Add gdb_id argument.
21123 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21124 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21125 calls to add_thread.
21126 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21127 * server.c (handle_query): Use thread_to_gdb_id.
21128 (handle_v_cont, main): Use gdb_id_to_thread_id.
21129 * server.h (add_thread): Update prototype.
21130 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21133 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21135 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21136 left-padded registers.
21137 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21138 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21140 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21142 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21143 * configure: Regenerate.
21144 * config.in: Regenerate.
21145 * server.h (NEED_DECLARATION_STRERROR):
21146 Replace with !HAVE_DECL_STRERROR.
21148 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21150 * linux-low.c (linux_wait, linux_send_signal): Don't test
21151 an unsigned long variable for > 0 if it could be MAX_ULONG.
21152 * server.c (myresume): Likewise.
21153 * target.c (set_desired_inferior): Likewise.
21155 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21157 * configure.ac: Simplify and improve check for socklen_t.
21158 * configure, config.in: Regenerate.
21160 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21162 * acconfig.h: Remove.
21163 * configure.ac: Add a test for socklen_t. Use three-argument
21164 AC_DEFINE throughout.
21165 * config.in: Regenerated using autoheader 2.59.
21166 * configure: Regenerated.
21168 * gdbreplay.c (socklen_t): Provide a default.
21169 (remote_open): Use socklen_t.
21170 * remote-utils.c (socklen_t): Provide a default.
21171 (remote_open): Use socklen_t.
21172 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21175 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21177 * linux-low.c (linux_read_memory, linux_write_memory)
21178 (linux_read_auxv): Likewise.
21179 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21180 (check_mem_write): Likewise.
21181 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21183 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21184 (registers_from_string, register_data): Likewise.
21185 * server.c (handle_query, main): Likewise.
21186 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21187 (decode_M_packet): Likewise.
21188 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21189 * target.h (struct target_ops): Update read_memory, write_memory,
21191 (read_inferior_memory, write_inferior_memory): Update.
21192 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21193 to unsigned char *.
21194 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21195 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21196 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21197 linux-s390-low.c, linux-sh-low.c: Update for changes in
21198 read_inferior_memory and the_low_target->breakpoint.
21200 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21202 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21203 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21204 * configure.srv: Add powerpc64-*-linux*.
21205 * linux-ppc64-low.c: New file.
21207 2005-05-23 Orjan Friberg <orjanf@axis.com>
21209 * linux-cris-low.c: New file with support for CRIS.
21210 * linux-crisv32-low.c: Ditto for CRISv32.
21211 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21212 (clean): Add reg-cris.c and reg-crisv32.c.
21213 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21214 reg-crisv32.o, and reg-crisv32.c to make rules.
21215 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21216 recognized targets.
21218 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21220 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21221 of sizeof (PTRACE_XFER_TYPE).
21222 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21224 2005-05-12 Orjan Friberg <orjanf@axis.com>
21226 * target.h (struct target_ops): Add insert_watchpoint,
21227 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21228 pointers for hardware watchpoint support.
21229 * linux-low.h (struct linux_target_ops): Ditto.
21230 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21231 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21232 to linux_target_ops.
21233 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21235 * server.c (main): Recognize 'Z' and 'z' packets.
21237 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21239 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21240 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21241 (the_low_target): Add new members.
21243 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21245 * proc-service.c (ps_lgetregs): Search all_processes instead of
21248 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21250 * server.c (start_inferior): Change return type to int.
21251 (attach_inferior): Change sigptr to int *.
21252 (handle_v_cont, handle_v_requests): Change signal to int *.
21253 (main): Change signal to int.
21255 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21257 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21258 * configure.srv: Add m32r*-*-linux*.
21259 * linux-m32r-low.c: New file.
21261 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21263 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21265 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21267 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21268 Take unsigned long arguments for PIDs.
21269 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21270 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21271 (wait_for_sigstop, linux_resume_one_process)
21272 (regsets_fetch_inferior_registers, linux_send_signal)
21273 (linux_read_auxv): Likewise. Update the types of variables holding
21274 PIDs. Update format string specifiers.
21275 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21276 * remote-utils.c (prepare_resume_reply): Likewise.
21277 * server.c (cont_thread, general_thread, step_thread)
21278 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21280 (handle_query): Update format specifiers.
21281 (handle_v_cont, main): Use strtoul for thread IDs.
21282 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21283 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21284 (general_thread, step_thread, thread_from_wait)
21285 (old_thread_from_wait): Update.
21286 * target.h (struct thread_resume): Use unsigned long for THREAD.
21287 (struct target_ops): Use unsigned long for arguments to attach and
21290 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21292 * acinclude.m4: Include bfd/bfd.m4 directly.
21293 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21294 <agriffis@toolchain.org>.
21295 * aclocal.m4, configure: Regenerated.
21297 2005-01-07 Andrew Cagney <cagney@gnu.org>
21299 * configure.ac: Rename configure.in, require autoconf 2.59.
21300 * configure: Re-generate.
21302 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21304 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21305 LIBS when finished.
21306 * aclocal.m4: Regenerated.
21307 * configure: Regenerated.
21309 2004-11-21 Andreas Schwab <schwab@suse.de>
21311 * linux-m68k-low.c (m68k_num_gregs): Define.
21312 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21313 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21314 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21315 (m68k_breakpoint_at): New. Add to the_low_target.
21317 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21318 srv_linux_thread_db to yes.
21320 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21322 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21323 (ARCH_SET_FS): Likewise.
21324 (ARCH_GET_FS): Likewise.
21325 (ARCH_GET_GS): Likewise.
21327 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21329 * linux-i386-low.c (ps_get_thread_area): New.
21330 * linux-x86-64-low.c (ps_get_thread_area): New.
21331 * linux-low.c: Include <sys/syscall.h>.
21332 (linux_kill_one_process): Don't kill the first thread here.
21333 (linux_kill): Kill the first thread here.
21334 (kill_lwp): New function.
21335 (send_sigstop, linux_send_signal): Use it.
21336 * proc-service.c: Clean up #ifdefs.
21337 (fpregset_info): Delete.
21338 (ps_lgetregs): Update and enable implementation.
21339 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21341 * remote-utils.c (struct sym_cache, symbol_cache): New.
21342 (input_interrupt): Print a clearer message.
21343 (async_io_enabled): New variable.
21344 (enable_async_io, disable_async_io): Use it. Update comments.
21345 (look_up_one_symbol): Use the symbol cache.
21346 * thread-db.c (thread_db_look_up_symbols): New function.
21347 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21349 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21351 * configure.in: Test for -rdynamic.
21352 * configure: Regenerated.
21353 * Makefile (INTERNAL_LDFLAGS): New.
21354 (gdbserver, gdbreplay): Use it.
21356 2004-09-02 Andrew Cagney <cagney@gnu.org>
21358 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21360 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21362 * linux-low.c (linux_wait): Clear all_processes list also.
21364 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21366 * linux-low.c: Include <errno.h>. Remove extern declaration of
21369 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21371 * gdbreplay.c, server.h, utils.c: Update copyright years.
21373 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21375 * server.c (main): Print child status or termination signal from
21376 variable 'signal', not 'sig'.
21378 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21380 * linux-low.c (linux_read_memory): Change return type to
21381 int. Check for and return error from ptrace().
21382 * target.c (read_inferior_memory): Change return type to int. Pass
21383 back return status from the_target->read_memory().
21384 * target.h (struct target_ops): Adapt *read_memory() prototype.
21386 (read_inferior_memory): Adapt prototype.
21387 * server.c (main): Return an error packet if
21388 read_inferior_memory() returns an error.
21390 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21392 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21393 Unify with other clean targets.
21395 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21397 * server.c (handle_v_cont): Call set_desired_inferior.
21399 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21401 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21403 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21405 * linux-low.c (linux_wait): Unblock async I/O.
21406 (linux_resume): Block and enable async I/O.
21407 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21408 * server.h (block_async_io, unblock_async_io): Add prototypes.
21410 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21412 * remote-utils.c (remote_open): Print a status notice after
21413 opening a TCP port.
21414 * server.c (attach_inferior): Print a status notice after
21417 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21419 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21421 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21423 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21425 * server.c, target.h: Update copyright years.
21427 2004-02-25 Roland McGrath <roland@redhat.com>
21429 * target.h (struct target_ops): New member `read_auxv'.
21430 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21431 * linux-low.c (linux_read_auxv): New function.
21432 (linux_target_ops): Initialize `read_auxv' member to that.
21434 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21436 Committed by Jim Blandy <jimb@redhat.com>.
21438 * linux-s390-low.c (s390_num_regs): Update.
21439 (s390_regmap): Remove control registers. Use __s390x__ predefine
21440 instead of GPR_SIZE to distiguish s390 and s390x targets.
21442 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21444 * linux-low.c: Update copyright year.
21445 (check_removed_breakpoint): Clear pending_is_breakpoint.
21446 (linux_set_resume_request, linux_queue_one_thread)
21447 (resume_status_pending_p): New functions.
21448 (linux_continue_one_thread): Use process->resume.
21449 (linux_resume): Only resume threads if there are no pending events.
21450 * linux-low.h (struct process_info): Add resume request
21453 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21455 * regcache.c (new_register_cache): Clear the allocated register
21456 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21458 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21460 * linux-low.c (linux_resume): Take a struct thread_resume *
21462 (linux_wait): Update call.
21463 (resume_ptr): New static variable.
21464 (linux_continue_one_thread): Renamed from
21465 linux_continue_one_process. Use resume_ptr.
21466 (linux_resume): Use linux_continue_one_thread.
21467 * server.c (handle_v_cont, handle_v_requests): New functions.
21468 (myresume): New function.
21469 (main): Handle 'v' case.
21470 * target.h (struct thread_resume): New type.
21471 (struct target_ops): Change argument of "resume" to struct
21473 (myresume): Delete macro.
21475 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21477 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21478 (uninstall): Support DESTDIR.
21480 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21482 * configure.srv: Add xscale*linux copy of arm*linux entry.
21484 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21486 * linux-arm-low.c (arm_reinsert_addr): New function.
21487 (the_low_target): Add arm_reinsert_addr.
21489 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21491 * mem-break.c: Remove whitespace at end of file.
21493 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21495 * configure.in: Check whether we need to prototype strerror.
21496 * server.h: Optionally prototype strerror.
21497 * gdbreplay.c (perror_with_name): Use strerror.
21498 * linux-low.c (linux_attach_lwp): Use strerror.
21499 * utils.c (perror_with_name): Use strerror.
21500 * config.in, configure: Regenerated.
21502 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21504 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21505 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21507 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21509 * Makefile.in (SFILES): Update.
21510 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21511 low-sun3.c: Remove files.
21513 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21515 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21516 (linux_detach_one_process, linux_detach): New functions.
21517 (linux_target_ops): Add linux_detach.
21518 * server.c (main): Handle 'D' packet.
21519 * target.h (struct target_ops): Add "detach" member.
21520 (detach_inferior): Define.
21522 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21524 From Kelley Cook <kelleycook@wideopenwest.com>:
21525 * configure.srv: Accept i[34567]86 variants.
21527 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21529 * linux-low.c (linux_wait_for_event): Correct comment typos.
21530 (linux_resume_one_process): Call check_removed_breakpoint.
21531 (linux_send_signal): New function.
21532 (linux_target_ops): Add linux_send_signal.
21533 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21535 * target.h (struct target_ops): Add send_signal.
21537 2003-05-29 Jim Blandy <jimb@redhat.com>
21539 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21540 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21541 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21542 away part of the register's value.
21544 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21546 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21547 (linux_wait_for_event, linux_init_signals): Likewise.
21549 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21551 * configure.in: Check for stdlib.h.
21552 * configure: Regenerated.
21553 * config.in: Regenerated.
21555 2003-01-04 Andreas Schwab <schwab@suse.de>
21557 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21559 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21561 * Makefile.in: Remove obsolete code.
21563 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21565 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21566 defined(PT_FPR0_HI).
21568 2002-11-17 Stuart Hughes <seh@zee2.com>
21570 * linux-arm-low.c (arm_num_regs): Increase.
21571 (arm_regmap): Include status register.
21573 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21575 * linux-low.c (register_addr): Remove incorrect -1 check.
21577 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21579 * linux-low.c (linux_create_inferior): Call setpgid. Return
21581 (unstopped_p, linux_signal_pid): Remove.
21582 (linux_target_ops): Remove linux_signal_pid.
21583 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21584 global instead of target method.
21585 * target.h (struct target_ops): Remove signal_pid. Update comment
21586 for create_inferior.
21587 * server.c (signal_pid): New variable.
21588 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21589 gdbserver. Set the child to be the foreground process group.
21590 (attach_inferior): Set signal_pid.
21592 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21594 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21596 2002-08-20 Jim Blandy <jimb@redhat.com>
21598 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21601 2002-08-01 Andrew Cagney <cagney@redhat.com>
21603 * Makefile.in: Make chill references obsolete.
21605 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21607 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21608 * configure: Regenerate.
21609 * config.in: Regenerate.
21611 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21613 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21614 (perror_with_name, remote_close, remote_open, expect, play): Static.
21616 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21618 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21619 byte offsets instead of an array of indexes.
21620 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21622 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21624 * regcache.c: Add comment.
21626 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21628 * thread-db.c: New file.
21629 * proc-service.c: New file.
21630 * acinclude.m4: New file.
21631 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21632 proc-service.o, and thread-db.o.
21633 (linux-low.o): Add USE_THREAD_DB.
21634 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21635 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21636 * aclocal.m4: Regenerated.
21637 * config.in: Regenerated.
21638 * configure: Regenerated.
21639 * configure.in: Check for proc_service.h, sys/procfs.h,
21640 thread_db.h, and linux/elf.h headrs.
21641 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21642 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21643 Check for -lthread_db and thread support.
21644 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21645 PowerPC, and SuperH.
21646 * i387-fp.c: Constify arguments.
21647 * i387-fp.h: Likewise.
21648 * inferiors.c: (struct thread_info): Renamed from
21649 `struct inferior_info'. Remove PID member. Use generic inferior
21650 list header. All uses updated.
21651 (inferiors, signal_pid): Removed.
21652 (all_threads): New variable.
21653 (get_thread): Define.
21654 (add_inferior_to_list): New function.
21655 (for_each_inferior): New function.
21656 (change_inferior_id): New function.
21657 (add_inferior): Removed.
21658 (remove_inferior): New function.
21659 (add_thread): New function.
21660 (free_one_thread): New function.
21661 (remove_thread): New function.
21662 (clear_inferiors): Use for_each_inferior and free_one_thread.
21663 (find_inferior): New function.
21664 (find_inferior_id): New function.
21665 (inferior_target_data): Update argument type.
21666 (set_inferior_target_data): Likewise.
21667 (inferior_regcache_data): Likewise.
21668 (set_inferior_regcache_data): Likewise.
21669 * linux-low.c (linux_bp_reinsert): Remove.
21670 (all_processes, stopping_threads, using_thrads)
21671 (struct pending_signals, debug_threads, pid_of): New.
21672 (inferior_pid): Replace with macro.
21673 (struct inferior_linux_data): Remove.
21674 (get_stop_pc, add_process): New functions.
21675 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21676 Use add_process and add_thread.
21677 (linux_attach_lwp): New function, based on old linux_attach. Use
21678 add_process and add_thread. Set stop_expected for new threads.
21679 (linux_attach): New function.
21680 (linux_kill_one_process): New function.
21681 (linux_kill): Kill all LWPs.
21682 (linux_thread_alive): Use find_inferior_id.
21683 (check_removed_breakpoints, status_pending_p): New functions.
21684 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21685 Update. Use WNOHANG. Wait for cloned processes also. Update process
21686 struct for the found process.
21687 (linux_wait_for_event): New function.
21688 (linux_wait): Use it. Support LWPs.
21689 (send_sigstop, wait_for_sigstop, stop_all_processes)
21690 (linux_resume_one_process, linux_continue_one_process): New functions.
21691 (linux_resume): Support LWPs.
21692 (REGISTER_RAW_SIZE): Remove.
21693 (fetch_register): Use register_size instead. Call supply_register.
21694 (usr_store_inferior_registers): Likewise. Call collect_register.
21695 Fix recursive case.
21696 (regsets_fetch_inferior_registers): Improve error message.
21697 (regsets_store_inferior_registers): Add debugging.
21698 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21699 (unstopped_p, linux_signal_pid): New functions.
21700 (linux_target_ops): Add linux_signal_pid.
21701 (linux_init_signals): New function.
21702 (initialize_low): Call it. Initialize using_threads.
21703 * regcache.c (inferior_regcache_data): Add valid
21705 (get_regcache): Fetch registers lazily. Add fetch argument
21706 and update all callers.
21707 (regcache_invalidate_one, regcache_invalidate): New
21709 (new_register_cache): Renamed from create_register_cache.
21710 Return the new regcache.
21711 (free_register_cache): Change argument to a void *.
21712 (registers_to_string, registers_from_string): Call get_regcache
21713 with fetch flag set.
21714 (register_data): Make static. Pass fetch flag to get_regcache.
21715 (supply_register): Call get_regcache with fetch flag clear.
21716 (collect_register): Call get_regcache with fetch flag set.
21717 (collect_register_as_string): New function.
21718 * regcache.h: Update.
21719 * remote-utils.c (putpkt): Flush after debug output and use
21721 Handle input interrupts while waiting for an ACK.
21722 (input_interrupt): Use signal_pid method.
21723 (getpkt): Flush after debug output and use stderr.
21724 (outreg): Use collect_register_as_string.
21725 (new_thread_notify, dead_thread_notify): New functions.
21726 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21727 and general_thread.
21728 (look_up_one_symbol): Flush after debug output.
21729 * server.c (step_thread, server_waiting): New variables.
21730 (start_inferior): Don't use signal_pid. Update call to mywait.
21731 (attach_inferior): Update call to mywait.
21732 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21733 (main): Don't fetch/store registers explicitly. Use
21734 set_desired_inferior. Support proposed ``Hs'' packet. Update
21736 * server.h: Update.
21737 (struct inferior_list, struct_inferior_list_entry): New.
21738 * target.c (set_desired_inferior): New.
21739 (write_inferior_memory): Constify.
21740 (mywait): New function.
21741 * target.h: Update.
21742 (struct target_ops): New signal_pid method.
21743 (mywait): Removed macro, added prototype.
21745 * linux-low.h (regset_func): Removed.
21746 (regset_fill_func, regset_store_func): New.
21747 (enum regset_type): New.
21748 (struct regset_info): Add type field. Use new operation types.
21749 (struct linux_target_ops): stop_pc renamed to get_pc.
21750 Add decr_pc_after_break and breakpoint_at.
21751 (get_process, get_thread_proess, get_process_thread)
21752 (strut process_info, all_processes, linux_attach_lwp)
21753 (thread_db_init): New.
21755 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21756 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21757 (the_low_target): Add new members.
21758 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21759 (i386_store_fpxregset): Constify.
21760 (target_regsets): Add new kind identifier.
21761 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21762 (i386_set_pc): Add debugging.
21763 (i386_breakpoint_at): New function.
21764 (the_low_target): Add new members.
21765 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21766 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21767 (mips_breakpoint_at): New.
21768 (the_low_target): Add new members.
21769 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21770 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21771 (the_low_target): Add new members.
21772 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21773 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21774 (the_low_target): Add new members.
21775 * linux-x86-64-low.c (target_regsets): Add new kind
21778 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21780 From Martin Pool <mbp@samba.org>:
21781 * server.c (gdbserver_usage): New function.
21784 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21786 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21787 stop_at -> stop_pc.
21789 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21791 * Makefile.in: Remove obsolete code.
21793 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21795 * linux-low.c (regsets_fetch_inferior_registers),
21796 (regsets_store_inferior_registers): Removed cast to int from
21798 * regcache.h: Added declaration of struct inferior_info.
21800 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21802 * inferiors.c (struct inferior_info): Add regcache_data.
21803 (add_inferior): Call create_register_cache.
21804 (clear_inferiors): Call free_register_cache.
21805 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21806 * regcache.c (struct inferior_regcache_data): New.
21807 (registers): Remove.
21808 (get_regcache): New function.
21809 (create_register_cache, free_register_cache): New functions.
21810 (set_register_cache): Don't initialize the register cache here.
21811 (registers_to_string, registers_from_string, register_data): Call
21813 * regcache.h: Add prototypes.
21814 * server.h: Likewise.
21816 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21818 * mem-break.c: New file.
21819 * mem-break.h: New file.
21820 * Makefile.in: Add mem-break.o rule; update server.h
21822 * inferiors.c (struct inferior_info): Add target_data
21824 (clear_inferiors): Free target_data member if set.
21825 (inferior_target_data, set_inferior_target_data): New functions.
21826 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21827 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21828 * linux-low.c (linux_bp_reinsert): New variable.
21829 (struct inferior_linux_data): New.
21830 (linux_create_inferior): Use set_inferior_target_data.
21831 (linux_attach): Likewise. Call add_inferior.
21832 (linux_wait_for_one_inferior): New function.
21833 (linux_wait): Call it.
21834 (linux_write_memory): Add const.
21835 (initialize_low): Call set_breakpoint_data.
21836 * linux-low.h (struct linux_target_ops): Add breakpoint
21838 * server.c (attach_inferior): Remove extra add_inferior
21840 * server.h: Include mem-break.h. Update inferior.c
21842 * target.c (read_inferior_memory)
21843 (write_inferior_memory): New functions.
21844 * target.h (read_inferior_memory)
21845 (write_inferior_memory): Change macros to prototypes.
21846 (struct target_ops): Update comments. Add const to write_memory
21849 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
21851 * linux-low.c (usr_store_inferior_registers): Support
21852 registers which are allowed to fail to store.
21853 * linux-low.h (linux_target_ops): Likewise.
21854 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21855 (ppc_cannot_store_register): FPSCR may not be storable.
21857 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21859 * server.h: Include <string.h> if HAVE_STRING_H.
21860 * ChangeLog: Correct paths in last ChangeLog entry.
21862 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21864 * linux-low.h: Remove obsolete prototypes.
21865 (struct linux_target_ops): New.
21866 (extern the_low_target): New.
21867 * linux-low.c (num_regs, regmap): Remove declarations.
21868 (register_addr): Use the_low_target explicitly.
21869 (fetch_register): Likewise.
21870 (usr_fetch_inferior_registers): Likewise.
21871 (usr_store_inferior_registers): Likewise.
21872 * linux-arm-low.c (num_regs): Remove.
21873 (arm_num_regs): Define.
21874 (arm_regmap): Renamed from regmap, made static.
21875 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21877 (arm_cannot_store_register): Renamed from cannot_store_register,
21879 (the_low_target): New.
21880 * linux-i386-low.c (num_regs): Remove.
21881 (i386_num_regs): Define.
21882 (i386_regmap): Renamed from regmap, made static.
21883 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21885 (i386_cannot_store_register): Renamed from cannot_store_register,
21887 (the_low_target): New.
21888 * linux-ia64-low.c (num_regs): Remove.
21889 (ia64_num_regs): Define.
21890 (ia64_regmap): Renamed from regmap, made static.
21891 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21893 (ia64_cannot_store_register): Renamed from cannot_store_register,
21895 (the_low_target): New.
21896 * linux-m68k-low.c (num_regs): Remove.
21897 (m68k_num_regs): Define.
21898 (m68k_regmap): Renamed from regmap, made static.
21899 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21901 (m68k_cannot_store_register): Renamed from cannot_store_register,
21903 (the_low_target): New.
21904 * linux-mips-low.c (num_regs): Remove.
21905 (mips_num_regs): Define.
21906 (mips_regmap): Renamed from regmap, made static.
21907 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21909 (mips_cannot_store_register): Renamed from cannot_store_register,
21911 (the_low_target): New.
21912 * linux-ppc-low.c (num_regs): Remove.
21913 (ppc_num_regs): Define.
21914 (ppc_regmap): Renamed from regmap, made static.
21915 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21917 (ppc_cannot_store_register): Renamed from cannot_store_register,
21919 (the_low_target): New.
21920 * linux-s390-low.c (num_regs): Remove.
21921 (s390_num_regs): Define.
21922 (s390_regmap): Renamed from regmap, made static.
21923 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21925 (s390_cannot_store_register): Renamed from cannot_store_register,
21927 (the_low_target): New.
21928 * linux-sh-low.c (num_regs): Remove.
21929 (sh_num_regs): Define.
21930 (sh_regmap): Renamed from regmap, made static.
21931 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21933 (sh_cannot_store_register): Renamed from cannot_store_register,
21935 (the_low_target): New.
21936 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21937 (the_low_target): New.
21939 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21941 * Makefile.in: Add stamp-h target.
21942 * configure.in: Create stamp-h.
21943 * configure: Regenerated.
21945 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21947 * inferiors.c: New file.
21948 * target.c: New file.
21949 * target.h: New file.
21950 * Makefile.in: Add target.o and inferiors.o. Update
21952 * linux-low.c (inferior_pid): New static variable,
21953 moved from server.c.
21954 (linux_create_inferior): Renamed from create_inferior.
21955 Call add_inferior. Return 0 on success instead of a PID.
21956 (linux_attach): Renamed from myattach.
21957 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21958 (linux_thread_alive): Renamed from mythread_alive.
21959 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21961 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21962 (regsets_store_inferior_registers): Correct error message.
21963 Add missing ``return 0''.
21964 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21965 (linux_store_registers): Renamed from store_inferior_registers.
21966 (linux_read_memory): Renamed from read_inferior_memory.
21967 (linux_write_memory): Renamed from write_inferior_memory.
21968 (linux_target_ops): New structure.
21969 (initialize_low): Call set_target_ops ().
21970 * remote-utils.c (unhexify): New function.
21971 (hexify): New function.
21972 (input_interrupt): Send signals to ``signal_pid''.
21973 * server.c (inferior_pid): Remove.
21974 (start_inferior): Update create_inferior call.
21975 (attach_inferior): Call add_inferior.
21976 (handle_query): New function.
21977 (main): Call handle_query for `q' packets.
21978 * server.h: Include "target.h". Remove obsolete prototypes.
21979 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21981 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21983 * Makefile.in: Add WARN_CFLAGS. Update configury
21985 * configure.in: Check for <string.h>
21986 * configure: Regenerate.
21987 * config.in: Regenerate.
21988 * gdbreplay.c: Include needed system headers.
21989 (remote_open): Remove strchr prototype.
21990 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
21991 * regcache.c (supply_register): Change buf argument to const void *.
21992 (supply_register_by_name): Likewise.
21993 (collect_register): Change buf argument to void *.
21994 (collect_register_by_name): Likewise.
21995 * regcache.h: Add missing prototypes.
21996 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
21997 * server.c (handle_query): New function.
21998 (attached): New static variable, moved out of main.
21999 (main): Quiet longjmp clobber warnings.
22000 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22001 * utils.c (error): Remove NORETURN.